-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1538 from jdayment/master
Flow Flex Card Updates
- Loading branch information
Showing
13 changed files
with
124 additions
and
26 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>61.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
16 changes: 16 additions & 0 deletions
16
flow_action_components/ApprovalChecker/LockCheckerTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Boolean> result = LockChecker.isLocked(new List<Id>{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'); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>61.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
public class LockChecker { | ||
@InvocableMethod (label='Check if a record is locked') | ||
public static List<Boolean> isLocked(List<Id> recordIdToCheck) { | ||
List<Boolean> isLockedList = new List<Boolean>(); | ||
for (Id recordId : recordIdToCheck) { | ||
isLockedList.add(system.Approval.isLocked(recordId)); | ||
} | ||
return isLockedList;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
@description : | ||
@author : [email protected] | ||
@group : | ||
@last modified on : 08-20-2023 | ||
@last modified on : 04-29-2024 | ||
@last modified by : Josh Dayment | ||
--> | ||
<template> | ||
|
@@ -27,35 +27,50 @@ | |
onvaluechanged={handleFlowComboboxValueChange} required=true> | ||
</c-fsc_flow-combobox> | ||
|
||
<c-fsc_flow-combobox name="value" value={inputValues.value.value} | ||
label={inputValues.value.label} onvaluechanged={handleFlowComboboxValueChange} automatic-output-variables={automaticOutputVariables}></c-fsc_flow-combobox> | ||
<c-fsc_flow-combobox name="value" value={inputValues.value.value} label={inputValues.value.label} | ||
onvaluechanged={handleFlowComboboxValueChange} | ||
automatic-output-variables={automaticOutputVariables}></c-fsc_flow-combobox> | ||
|
||
<c-fsc_flow-banner banner-color="#4C6E96" banner-label="Component Styling" banner-info={componentStyling}> | ||
</c-fsc_flow-banner> | ||
|
||
<c-fsc_flow-combobox name="label" value={inputValues.label.value} label={inputValues.label.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
<c-fsc_flow-combobox name="cardHeight" value={inputValues.cardHeight.value} label={inputValues.cardHeight.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
<c-fsc_flow-combobox name="cardWidth" value={inputValues.cardWidth.value} label={inputValues.cardWidth.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
<c-fsc_flow-banner banner-color="#4C6E96" banner-label="Header Styling" banner-info={headerStyling}> | ||
</c-fsc_flow-banner> | ||
|
||
<c-fsc_flow-combobox name="headerStyle" value={inputValues.headerStyle.value} label={inputValues.headerStyle.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
<c-fsc_pick-object-and-field-3 field-label={inputValues.headerField.label} field={inputValues.headerField.value} | ||
object-type={inputValues.objectAPIName.value} onfieldselected={handleHeaderFieldNameChange} | ||
hide-object-picklist=true allow-multiselect=false> | ||
</c-fsc_pick-object-and-field-3> | ||
|
||
<lightning-combobox label="Apply SLDS class to header field?" options={fieldClassOptions} | ||
onchange={handleHeaderFieldClassChange} value={inputValues.headerFieldClass.value}></lightning-combobox> | ||
|
||
<c-fsc_pick-icon name="icons" mode="combobox" oniconselection={handlePickIcon} icon-name={inputValues.icon.value}> | ||
</c-fsc_pick-icon> | ||
|
||
<c-fsc_flow-banner banner-color="#4C6E96" banner-label="Card Styling" banner-info={cardStyling}> | ||
</c-fsc_flow-banner> | ||
|
||
<c-fsc_flow-combobox name="subheadCSS" value={inputValues.subheadCSS.value} label={inputValues.subheadCSS.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
<lightning-combobox label="Show or hide field labels?" options={fieldVariants} onchange={handleFieldVariantChange} | ||
value={inputValues.fieldVariant.value}></lightning-combobox> | ||
|
||
<lightning-combobox label="Apply SLDS class to field values?" options={fieldClassOptions} | ||
onchange={handleFieldClassChange} value={inputValues.fieldClass.value}></lightning-combobox> | ||
|
||
<c-fsc_flow-combobox name="label" value={inputValues.label.value} label={inputValues.label.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
<c-fsc_pick-icon name="icons" mode="combobox" oniconselection={handlePickIcon} icon-name={inputValues.icon.value}> | ||
</c-fsc_pick-icon> | ||
<lightning-combobox label="Show or hide field labels?" options={fieldVariants} onchange={handleFieldVariantChange} | ||
value={inputValues.fieldVariant.value}></lightning-combobox> | ||
|
||
<c-fsc_flow-banner banner-color="#4C6E96" banner-label="Flex Card Actions" banner-info={flexCardActions}> | ||
</c-fsc_flow-banner> | ||
|
@@ -66,7 +81,6 @@ | |
<c-fsc_flow-combobox name="buttonLabel" value={inputValues.buttonLabel.value} label={inputValues.buttonLabel.label} | ||
builder-context-filter-type="String" onvaluechanged={handleFlowComboboxValueChange}></c-fsc_flow-combobox> | ||
|
||
|
||
<c-fsc_flow-picker-3 label={inputValues.flows.label} show-active-flows-only onflowselect={handleFlowSelect}> | ||
</c-fsc_flow-picker-3> | ||
<template for:each={inputValues.flows.value} for:item="flow" for:index="index"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>58.0</apiVersion> | ||
<apiVersion>60.0</apiVersion> | ||
<isExposed>true</isExposed> | ||
<masterLabel>Flow Flex Card CPE</masterLabel> | ||
</LightningComponentBundle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
@description : | ||
@author : [email protected] | ||
@group : | ||
@last modified on : 01-03-2024 | ||
@last modified on : 04-29-2024 | ||
@last modified by : Josh Dayment | ||
--> | ||
<template> | ||
|
@@ -31,7 +31,15 @@ | |
<template lwc:if={showIcon}> | ||
<lightning-avatar src={record.src_URL__c} fallback-icon-name={icon} | ||
class="slds-m-right_small"></lightning-avatar> | ||
</template>{record.Name} | ||
</template> | ||
|
||
<lightning-record-view-form object-api-name={objectAPIName} record-id={record.Id}> | ||
|
||
<lightning-output-field field-name={headerField} variant=label-hidden | ||
field-class={headerFieldClass}> | ||
</lightning-output-field> | ||
|
||
</lightning-record-view-form> | ||
|
||
</header> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...reenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>56.0</apiVersion> | ||
<apiVersion>60.0</apiVersion> | ||
<isExposed>true</isExposed> | ||
</LightningComponentBundle> | ||
</LightningComponentBundle> |