16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/force-app/extensions/sfpegProfile/objects/sfpegProfile__mdt/fields/ProfileAvatar__c.field-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ProfileAvatar__c
4 | Header avatar image of the profile component (image file path within the sfpegAvatar static resource)
5 | false
6 | SubscriberControlled
7 | Header avatar image of the profile component (image file path within the sfpegAvatar static resource)
8 |
9 | 255
10 | false
11 | Text
12 | false
13 |
14 |
--------------------------------------------------------------------------------
/force-app/extensions/sfpegProfile/objects/sfpegProfile__mdt/fields/ProfileBanner__c.field-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ProfileBanner__c
4 | Headline banner image of the profile component (image file path within the sfpegBanner static resource)
5 | false
6 | SubscriberControlled
7 | Headline banner image of the profile component (image file path within the sfpegBanner static resource)
8 |
9 | 255
10 | false
11 | Text
12 | false
13 |
14 |
--------------------------------------------------------------------------------
/force-app/core/sfpegList/objects/sfpegList__mdt/fields/RowActions__c.field-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | RowActions__c
4 | 'sfpegOpenEdit'
5 | JSON configuration of the Actions available on each Row (see sfpegAction metadata for details)
6 | false
7 | SubscriberControlled
8 | JSON configuration of the Actions available on each Row (see sfpegAction metadata for details)
9 |
10 | 100000
11 | LongTextArea
12 | 2
13 |
14 |
--------------------------------------------------------------------------------
/force-app/core/sfpegMerge/objects/sfpegConfiguration__mdt/fields/TargetField__c.field-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | TargetField__c
4 | 'Id'
5 | API name of the field used as target value for the configuration records (usually the ID)
6 | false
7 | SubscriberControlled
8 | API name of the field used as target value for the configuration records (usually the ID)
9 |
10 | 125
11 | false
12 | Text
13 | false
14 |
15 |
--------------------------------------------------------------------------------
/force-app/extensions/sfpegProfile/objects/sfpegProfile__mdt/fields/ProfileActions__c.field-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ProfileActions__c
4 | Configuration of the Actions displayed in the action bar between header and details (should be a sfpegAction record name)
5 | false
6 | SubscriberControlled
7 | Configuration of the Actions displayed in the action bar between header and details (should be a sfpegAction record name)
8 |
9 | 255
10 | false
11 | Text
12 | false
13 |
14 |
--------------------------------------------------------------------------------
/force-app/core/sfpegAction/messageChannels/sfpegAction.messageChannel-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | sfpegAction
4 | true
5 | This is a message channel used by the sfpegAction... components to trigger actions from the utility bar.
6 |
7 | action
8 | Configuration of the Action to be executed by the utility bar handler.
9 |
10 |
11 | context
12 | Context data to be used when executing the action (optional).
13 |
14 |
--------------------------------------------------------------------------------
/force-app/extensions/sfpegRecordDisplay/customMetadata/sfpegRecordDisplay.sfpegTest.md-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | false
5 |
6 | Description__c
7 | Test of the Record Display component
8 |
9 |
10 | DisplayConfig__c
11 | {
12 | "title":"TEST"
13 | }
14 |
15 |
16 | Scope__c
17 | sfpegTestObject__c
18 |
19 |
20 |
--------------------------------------------------------------------------------
/force-app/core/sfpegUtilities/lwc/sfpegWarningDsp/sfpegWarningDsp.html:
--------------------------------------------------------------------------------
1 |
2 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/force-app/core/sfpegAction/lwc/sfpegForceNavigationCmp/sfpegForceNavigationCmp.js-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64.0
4 | true
5 | SF PEG Force Navigation
6 | This component enables to force the navigation or reopening of a record in another page.
7 |
8 |
9 | lightning__RecordPage
10 |
11 |
12 |
13 |
14 |
15 |
19 |
20 |
24 |
25 |
29 |
30 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/force-app/core/sfpegList/lwc/sfpegListTabCmp/sfpegListTabCmp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
List Query:
29 |
{list}
30 |
Header Actions:
31 |
{actions}
32 |
Context:
33 |
{contextString}
34 |
Documentation:
35 |
36 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/help/sfpegSearchPopupCmp.md:
--------------------------------------------------------------------------------
1 | #  **sfpegSearchPopupCmp** Component
2 |
3 | This component is part of the [`sfpegList-utilities`](/help/sfpegListPkgUtilities.md) package
4 | of the **[PEG_LIST](/README.md)** repository.
5 |
6 | ⚠️ This page applies to the most recent (unlocked) packaging of the **PEG_LIST** repository.
7 | Some features described here may thus not be available on the old **[v0](https://github.com/pegros/PEG_LIST/tree/v0)** version.
8 |
9 |
10 | ## Introduction
11 |
12 | The **sfpegSearchPopupCmp** and **sfpegSearchPopupDsp** LWC Components are slightly
13 | similar to the **[sfpegSearchListCmp](/help/sfpegSearchListCmp.md)** component, the
14 | main difference being that the search form and result list are displayed in a Lightning
15 | [modal popup](https://developer.salesforce.com/docs/component-library/bundle/lightning-modal/documentation)
16 | instead of included in the Lightning page.
17 |
18 | 
19 |
20 | The **sfpegSearchPopupCmp** is a notification handler for `sfpegCustomAction` messages
21 | sent e.g. via *action* notifications from a **[sfpegActionBarCmp](/help/sfpegActionBarCmp.md)**
22 | component.
23 |
24 | ℹ️ Typical use case is to provide an **add** action on a list of junction object records
25 | to search and select new possible target records to join.
26 |
27 |
28 | ## Configuration
29 |
30 | ℹ️ Please refer to the [Component Configuration](/help/configuration.md) dedicated page to
31 | get more general information about the way the included components may be configured.
32 |
33 | 🚧 TO BE CONTINUED 🚧
34 |
35 | ## Technical Details
36 |
37 | ℹ️ Please refer to the [Technical Details](/help/technical.md) dedicated page to
38 | get more global information about the way the components have been implemented.
--------------------------------------------------------------------------------
/force-app/core/sfpegAction/lwc/sfpegActionHandlerCmp/sfpegActionHandlerCmp.js-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64.0
4 | true
5 | SF PEG Action Handler
6 |
7 |
8 | lightning__UtilityBar
9 |
10 |
11 |
12 |
13 |
18 |
19 |
24 |
25 |
30 |
31 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/force-app/core/sfpegAction/lwc/sfpegActionTriggerCmp/sfpegActionTriggerCmp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Action Name:
6 |
{actionName}
7 |
Config Params:
8 |
{configName}
9 |
Object Name:
10 |
{objectApiName}
11 |
Documentation:
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
30 |
31 |
--------------------------------------------------------------------------------
/force-app/core/sfpegAction/classes/sfpegActionTest_SVC.cls:
--------------------------------------------------------------------------------
1 | /***
2 | * @description Simple implementation of the generic sfpegAction_SVC class for
3 | * Apex test coverage purposes.
4 | * @author P-E GROS
5 | * @date April 2021
6 | * @see sfpegAction_TST
7 | * @see PEG_LIST package (https://github.com/pegros/PEG_LIST)
8 | *
9 | * Legal Notice
10 | *
11 | * MIT License
12 | *
13 | * Copyright (c) 2021 pegros
14 | *
15 | * Permission is hereby granted, free of charge, to any person obtaining a copy
16 | * of this software and associated documentation files (the "Software"), to deal
17 | * in the Software without restriction, including without limitation the rights
18 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 | * copies of the Software, and to permit persons to whom the Software is
20 | * furnished to do so, subject to the following conditions:
21 | *
22 | * The above copyright notice and this permission notice shall be included in all
23 | * copies or substantial portions of the Software.
24 | *
25 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 | * SOFTWARE.
32 | ***/
33 |
34 | @SuppressWarnings('PMD.ClassNamingConventions')
35 | public with sharing class sfpegActionTest_SVC extends sfpegAction_SVC {
36 |
37 | public override Object execute(final Object input, final String method) {
38 | System.debug('execute: START');
39 | System.debug('execute: END');
40 | return true;
41 | }
42 | }
--------------------------------------------------------------------------------
/force-app/examples/customMetadata/sfpegAction.sfpegSharingDetails.md-meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | false
5 |
6 | ActionControls__c
7 |
8 |
9 |
10 | Actions__c
11 | [
12 | {
13 | "name":"viewSharing",
14 | "label":"Détails",
15 | "iconName":"utility:asset_audit",
16 | "action": {
17 | "type":"navigation",
18 | "params": {
19 | "type": "standard__recordPage",
20 | "attributes": {
21 | "recordId":"{{{GEN.recordId}}}",
22 | "objectApiName":"{{{GEN.objectApiName}}}",
23 | "actionName":"recordShareHierarchy"
24 | }
25 | }
26 | }
27 | }
28 | ]
29 |
30 |
31 | Description__c
32 | Navigation action to open the sharing hierarchy display of a record
33 |
34 |
35 | DoEvaluation__c
36 | false
37 |
38 |
39 | NotificationChannels__c
40 |
41 |
42 |
43 | Permission__c
44 |
45 |
46 |
47 | Scope__c
48 | RECORDS
49 |
50 |
51 |
--------------------------------------------------------------------------------
/force-app/utilities/sfpegListUtl/lwc/sfpegOnDemandListCmp/sfpegOnDemandListCmp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/force-app/utilities/sfpegListUtl/classes/sfpegOrgLimits_TST.cls:
--------------------------------------------------------------------------------
1 | /***
2 | * @description Test class of the sfpegOrgLimits_SVC class.
3 | * Only code coverage objective for now (no real functional test).
4 | * @author P-E GROS
5 | * @date April 2024
6 | * @see sfpegOrgLimits_SVC
7 | * @see PEG_LIST package (https://github.com/pegros/PEG_LIST)
8 | *
9 | * Legal Notice
10 | *
11 | * MIT License
12 | *
13 | * Copyright (c) 2024 pegros
14 | *
15 | * Permission is hereby granted, free of charge, to any person obtaining a copy
16 | * of this software and associated documentation files (the "Software"), to deal
17 | * in the Software without restriction, including without limitation the rights
18 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 | * copies of the Software, and to permit persons to whom the Software is
20 | * furnished to do so, subject to the following conditions:
21 | *
22 | * The above copyright notice and this permission notice shall be included in all
23 | * copies or substantial portions of the Software.
24 | *
25 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 | * SOFTWARE.
32 | ***/
33 |
34 | @SuppressWarnings('PMD.ClassNamingConventions')
35 |
36 | @istest
37 | public class sfpegOrgLimits_TST {
38 |
39 | /***
40 | * @description Test of the main sfpegOrgLimits_SVC execute logic.
41 | ***/
42 | static testmethod void testGetData() {
43 | System.debug('testGetData: START');
44 | sfpegOrgLimits_SVC getDataSvc = new sfpegOrgLimits_SVC();
45 | getDataSvc.getData(null,null);
46 | System.debug('testGetData: END');
47 | }
48 | }
--------------------------------------------------------------------------------
/force-app/utilities/sfpegListUtl/classes/sfpegObjectKeys_TST.cls:
--------------------------------------------------------------------------------
1 | /***
2 | * @description Test class of the sfpegObjectKeys_SVC class.
3 | * Only code coverage objective for now (no real functional test).
4 | * @author P-E GROS
5 | * @date Dec 2025
6 | * @see sfpegObjectKeys_SVC
7 | * @see PEG_LIST package (https://github.com/pegros/PEG_LIST)
8 | *
9 | * Legal Notice
10 | *
11 | * MIT License
12 | *
13 | * Copyright (c) 2025 pegros
14 | *
15 | * Permission is hereby granted, free of charge, to any person obtaining a copy
16 | * of this software and associated documentation files (the "Software"), to deal
17 | * in the Software without restriction, including without limitation the rights
18 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 | * copies of the Software, and to permit persons to whom the Software is
20 | * furnished to do so, subject to the following conditions:
21 | *
22 | * The above copyright notice and this permission notice shall be included in all
23 | * copies or substantial portions of the Software.
24 | *
25 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 | * SOFTWARE.
32 | ***/
33 |
34 | @SuppressWarnings('PMD.ClassNamingConventions')
35 |
36 | @istest
37 | public class sfpegObjectKeys_TST {
38 |
39 | /***
40 | * @description Test of the main sfpegObjectKeys_SVC execute logic.
41 | ***/
42 | static testmethod void testGetData() {
43 | System.debug('testGetData: START');
44 | sfpegObjectKeys_SVC getDataSvc = new sfpegObjectKeys_SVC();
45 | getDataSvc.getData(null,null);
46 | System.debug('testGetData: END');
47 | }
48 | }
--------------------------------------------------------------------------------
/force-app/legacy/aura/sfpegListViewCmp/sfpegListViewCmpController.js:
--------------------------------------------------------------------------------
1 | ({
2 | /***
3 | * @author P-E GROS
4 | * @date Dec 2021
5 | * @description Addressable Aura component to display a sfpegListCmp LWC component within a standalone tab.
6 | * @see PEG_LIST package (https://github.com/pegros/PEG_LIST)
7 | *
8 | * Legal Notice
9 | *
10 | * MIT License
11 | *
12 | * Copyright (c) 2021 pegros
13 | *
14 | * Permission is hereby granted, free of charge, to any person obtaining a copy
15 | * of this software and associated documentation files (the "Software"), to deal
16 | * in the Software without restriction, including without limitation the rights
17 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18 | * copies of the Software, and to permit persons to whom the Software is
19 | * furnished to do so, subject to the following conditions:
20 | *
21 | * The above copyright notice and this permission notice shall be included in all
22 | * copies or substantial portions of the Software.
23 | *
24 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 | * SOFTWARE.
31 | ***/
32 |
33 | // Initialisation handling
34 | doInit : function(component, event, helper) {
35 | console.log('doInit: START');
36 | helper.initComponent(component, event, helper);
37 | console.log('doInit: END');
38 | },
39 | doneRendering : function(component, event, helper) {
40 | let isDebug = component.get("v.isDebug");
41 | if (isDebug) console.log('doneRendering: START');
42 | helper.initComponent(component, event, helper);
43 | if (isDebug) console.log('doneRendering: END');
44 | }
45 | })
46 |
--------------------------------------------------------------------------------
/force-app/core/sfpegUtilities/lwc/sfpegIconDsp/sfpegIconDsp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
39 |
40 |
41 |
42 |
43 |
44 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------