diff --git a/flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml b/flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
diff --git a/flow_action_components/ApprovalChecker/LockCheckerTest.cls b/flow_action_components/ApprovalChecker/LockCheckerTest.cls
new file mode 100644
index 000000000..5e0d351df
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/LockCheckerTest.cls
@@ -0,0 +1,16 @@
+@isTest
+private class LockCheckerTest {
+ @isTest
+ static void testIsLocked() {
+ // Create test data
+ Account acc = new Account(Name='Test Account');
+ insert acc;
+
+ // Call the method to be tested
+ List result = LockChecker.isLocked(new List{acc.Id});
+
+ // Perform assertions
+ System.assertEquals(1, result.size(), 'Result should have only one entry');
+ System.assertEquals(false, result[0], 'The test account should not be locked');
+ }
+}
diff --git a/flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml b/flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
diff --git a/flow_action_components/LockChecker/LockChecker.cls b/flow_action_components/LockChecker/LockChecker.cls
new file mode 100644
index 000000000..c7b5a64a3
--- /dev/null
+++ b/flow_action_components/LockChecker/LockChecker.cls
@@ -0,0 +1,9 @@
+public class LockChecker {
+ @InvocableMethod (label='Check if a record is locked')
+ public static List isLocked(List recordIdToCheck) {
+ List isLockedList = new List();
+ for (Id recordId : recordIdToCheck) {
+ isLockedList.add(system.Approval.isLocked(recordId));
+ }
+ return isLockedList;}
+}
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml
index d000d7828..70fcb62e1 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml
@@ -2,7 +2,7 @@
- 57.0
+ 60.0
false
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html
index fea9c29ca..f172d8d59 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html
@@ -2,7 +2,7 @@
@description :
@author : ChangeMeIn@UserSettingsUnder.SFDoc
@group :
- @last modified on : 08-20-2023
+ @last modified on : 04-29-2024
@last modified by : Josh Dayment
-->
@@ -27,35 +27,50 @@
onvaluechanged={handleFlowComboboxValueChange} required=true>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
@@ -66,7 +81,6 @@
-
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js
index 068bbf5f2..c50bb7759 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js
@@ -2,7 +2,7 @@
* @description :
* @author : Josh Dayment
* @group :
- * @last modified on : 05-31-2023
+ * @last modified on : 04-29-2024
* @last modified by : Josh Dayment
**/
import { api, track, LightningElement } from 'lwc';
@@ -54,10 +54,26 @@ export default class fsc_flexcardCPE extends LightningElement {
];
componentStyling = [
- { label: 'Card Size', helpText: 'Size in pixels default is 300px' },
+ { label: 'Component Label', helpText: 'Label for the entire component does support rich text' },
+ { label: 'Card Width', helpText: 'Size in pixels default is 300px' },
+ { label: 'Card Height', helpText: 'Size in pixels default is 300px' },
+
+ ];
+
+ headerStyling = [
+ { label: 'Header Field', helpText: 'Choose the field name to populate in the card header' },
{ label: 'Style attribute for the card headers', helpText: 'Standard HTML syling to apply to the card headers' },
{ label: 'Pick an Icon', helpText: 'When an Icon is selected it will apply it before the name in the card header' },
+ { label: 'Apply SLDS class to header field?', helptText: 'Select SLDS class to apply to header text' },
+ ];
+
+ cardStyling = [
+ { label: 'Style attribute for the card body', helpText: 'Standard HTML syling to apply to the card body' },
+ { label: 'Apply SLDS class to field values?', helptText: 'Select SLDS class to apply to field values' },
+ { label: 'Show or hide field labels?', helptText: 'Decide if you want to show the field labels or just the values' },
+
];
+
flexCardActions = [
{ label: 'List or Menu', helpText: 'Menu will display that action in a dropdown list, list will display the action as a list on the card' },
{ label: 'Actons Menu Label', helpText: 'When there is a text string here it either adds a label to the menu button or if list it will add a label with an h1 tag' },
@@ -90,6 +106,8 @@ export default class fsc_flexcardCPE extends LightningElement {
cardWidth: { value: null, valueDataType: null, isCollection: false, label: 'Card Width', helpText: 'This is the width of the card in Pixels' },
fieldVariant: { value: null, valueDatatType: null, isCollection: false, label: 'Field Variant' },
fieldClass: { value: null, valueDataType: null, isCollection: false, label: 'Field Class' },
+ headerField: { value: null, valueDataType: null, isCollection: false, label: 'Header Field' },
+ headerFieldClass: { value: null, valueDataType: null, isCollection: false, label: 'Header Field Class' },
};
@api get builderContext() {
@@ -175,7 +193,7 @@ export default class fsc_flexcardCPE extends LightningElement {
get fieldClassOptions() {
return [
- { label: '--None--', value:''},
+ { label: '--None--', value: '' },
{ label: 'Body Small', value: 'slds-text-body_small' },
{ label: 'Heading Large', value: 'slds-text-heading_large' },
{ label: 'Heading Medium', value: 'slds-text-heading_medium' },
@@ -370,10 +388,18 @@ export default class fsc_flexcardCPE extends LightningElement {
this.dispatchFlowValueChangeEvent('fieldClass', event.detail.value, 'String')
}
+ handleHeaderFieldClassChange(event) {
+ this.dispatchFlowValueChangeEvent('headerFieldClass', event.detail.value, 'String')
+ }
+
handleAllowAllObjects(event) {
this.dispatchFlowValueChangeEvent('allowAllObjects', event.detail.value, 'String');
}
+ handleHeaderFieldNameChange(event) {
+ this.dispatchFlowValueChangeEvent('headerField', event.detail.value, 'String');
+ }
+
get isMenu() {
let displayType = this.inputValues.actionDisplayType.value
if (displayType == 'menu')
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
index 46450740a..34f44cf9d 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
@@ -1,6 +1,6 @@
- 58.0
+ 60.0
true
Flow Flex Card CPE
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html
index 0a1032257..d45a41bac 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html
@@ -2,7 +2,7 @@
@description :
@author : ChangeMeIn@UserSettingsUnder.SFDoc
@group :
- @last modified on : 01-03-2024
+ @last modified on : 04-29-2024
@last modified by : Josh Dayment
-->
@@ -31,7 +31,15 @@
- {record.Name}
+
+
+
+
+
+
+
+
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
index 7d7915747..901004363 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
@@ -2,7 +2,7 @@
* @description :
* @author : Josh Dayment
* @group :
- * @last modified on : 01-03-2024
+ * @last modified on : 04-29-2024
* @last modified by : Josh Dayment
**/
import { LightningElement, api, track, wire } from 'lwc';
@@ -107,6 +107,8 @@ export default class FlexcardFlow extends LightningElement {
@api cardWidth = 300;
@api fieldVariant;
@api fieldClass;
+ @api headerField = 'Name';
+ @api headerFieldClass = 'slds-text-heading_small';
curRecord;
@@ -121,6 +123,7 @@ export default class FlexcardFlow extends LightningElement {
renderedCallback() {
if (this.value != null && !this.allowMultiSelect && this.isClickable) {
this.template.querySelector('[data-id="' + this.value + '"]').checked = true;
+
}
}
@@ -131,6 +134,10 @@ export default class FlexcardFlow extends LightningElement {
}
//console.log('records are: ' + JSON.stringify(this.records));
this.recs = JSON.parse(JSON.stringify(this.records));
+
+
+
+
}
@@ -140,7 +147,6 @@ export default class FlexcardFlow extends LightningElement {
this.recs = JSON.parse(JSON.stringify(this._records));
-
}
retrieveFieldLabels(item, index) {
@@ -215,4 +221,5 @@ export default class FlexcardFlow extends LightningElement {
}
}
+
}
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml
index f9544cfdf..9775c9e8c 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml
@@ -1,7 +1,8 @@
- 57.0
+ 60.0
true
+ Flow Flex Cards
lightning__FlowScreen
@@ -66,6 +67,8 @@
+
+
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js
index d69918ee3..63bd03a3b 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js
@@ -2,11 +2,12 @@
* @description :
* @author : Josh Dayment
* @group :
- * @last modified on : 05-31-2023
+ * @last modified on : 04-29-2024
* @last modified by : Josh Dayment
**/
import { LightningElement, api } from 'lwc';
import LightningModal from 'lightning/modal';
+import { notifyRecordUpdateAvailable } from 'lightning/uiRecordApi'; // Added by Brian Paul
export default class fsc_modalFlow extends LightningModal {
@api flowNameToInvoke;
@@ -16,7 +17,11 @@ export default class fsc_modalFlow extends LightningModal {
handleOpenModal(event){
if(event.detail.status === 'FINISHED' || event.detail.status === 'FINISHED_SCREEN'){
+ const recordId = this.flowParams[0]?.value;
+ if(recordId) {
+ notifyRecordUpdateAvailable([{recordId: recordId}])
+ } // Add by Brian Paul
this.close('modal closed, flow status is ' + event.detail.status);
}
}
-}
\ No newline at end of file
+}
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
index 26bba5fe3..dca00dbec 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
@@ -1,5 +1,5 @@
- 56.0
+ 60.0
true
-
\ No newline at end of file
+