@pega/sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +111 -0
- package/SECURITY.md +10 -0
- package/dist/index.js +753 -0
- package/package.json +41 -0
- package/templates/angular-sdk-reference/.github/AGENTS.md +23 -0
- package/templates/angular-sdk-reference/.github/copilot-instructions.md +40 -0
- package/templates/angular-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
- package/templates/angular-sdk-reference/angular.json +34 -0
- package/templates/angular-sdk-reference/package.json +31 -0
- package/templates/angular-sdk-reference/sdk-config.json +26 -0
- package/templates/angular-sdk-reference/src/app/app.component.ts +54 -0
- package/templates/angular-sdk-reference/src/index.html +12 -0
- package/templates/angular-sdk-reference/src/main.ts +4 -0
- package/templates/angular-sdk-reference/src/styles.css +19 -0
- package/templates/angular-sdk-reference/tsconfig.json +32 -0
- package/templates/react-native-sdk-reference/.github/AGENTS.md +23 -0
- package/templates/react-native-sdk-reference/.github/copilot-instructions.md +40 -0
- package/templates/react-native-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
- package/templates/react-native-sdk-reference/App.tsx +51 -0
- package/templates/react-native-sdk-reference/app.json +11 -0
- package/templates/react-native-sdk-reference/package.json +22 -0
- package/templates/react-native-sdk-reference/sdk-config.json +14 -0
- package/templates/react-native-sdk-reference/tsconfig.json +12 -0
- package/templates/react-sdk-reference/.github/copilot-instructions.md +185 -0
- package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +40 -0
- package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +77 -0
- package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +73 -0
- package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +94 -0
- package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +89 -0
- package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +21 -0
- package/templates/react-sdk-reference/.github/prompts/component-manifest.json +111 -0
- package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +110 -0
- package/templates/react-sdk-reference/.github/prompts/replace-all-fields.prompt.md +48 -0
- package/templates/react-sdk-reference/.github/prompts/replace-component.prompt.md +81 -0
- package/templates/react-sdk-reference/.github/prompts/replace-design-system.prompt.md +524 -0
- package/templates/react-sdk-reference/.github/prompts/replace-field.prompt.md +41 -0
- package/templates/react-sdk-reference/.github/prompts/swap-design-system.prompt.md +49 -0
- package/templates/react-sdk-reference/.github/skills/component-contracts.md +140 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/AlertBanner.md +135 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +149 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +154 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +144 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +131 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +111 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +115 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +149 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +83 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +206 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +135 -0
- package/templates/react-sdk-reference/.github/skills/design-system-extension.md +249 -0
- package/templates/react-sdk-reference/.github/skills/field-components.md +262 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +112 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +203 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +158 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +106 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +99 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +103 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +98 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +114 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +107 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +90 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +87 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +136 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +164 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +164 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +92 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +110 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +146 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +138 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +124 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +216 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +148 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +96 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/TextContent.md +101 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +104 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +88 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +85 -0
- package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +180 -0
- package/templates/react-sdk-reference/.github/skills/run-and-verify.md +68 -0
- package/templates/react-sdk-reference/.github/skills/swap-design-system.md +105 -0
- package/templates/react-sdk-reference/.github/skills/template-components.md +285 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +144 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +122 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +83 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +100 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +131 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +126 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +107 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +120 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +102 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DefaultPage.md +110 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +88 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +95 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +78 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +78 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +101 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +109 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +113 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +104 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +85 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +68 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +139 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/MultiReferenceReadOnly.md +80 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +141 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +109 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +124 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +135 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +127 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +103 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +79 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +131 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +150 -0
- package/templates/react-sdk-reference/.github/skills/template-skills/WssNavBar.md +135 -0
- package/templates/react-sdk-reference/.github/skills/widget-components.md +234 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +82 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +146 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +107 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/FileUtility.md +200 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +99 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +114 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +167 -0
- package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +190 -0
- package/templates/react-sdk-reference/AGENTS.md +59 -0
- package/templates/react-sdk-reference/assets/icons/analytics-good-solid.svg +3 -0
- package/templates/react-sdk-reference/assets/icons/cart-solid.svg +3 -0
- package/templates/react-sdk-reference/assets/icons/headset.svg +3 -0
- package/templates/react-sdk-reference/assets/icons/mobile-phone-solid.svg +3 -0
- package/templates/react-sdk-reference/assets/icons/money-solid.svg +3 -0
- package/templates/react-sdk-reference/assets/icons/multi-device-solid.svg +3 -0
- package/templates/react-sdk-reference/index.html +36 -0
- package/templates/react-sdk-reference/package.json +52 -0
- package/templates/react-sdk-reference/sdk-config.json +26 -0
- package/templates/react-sdk-reference/src/AppSelector.tsx +18 -0
- package/templates/react-sdk-reference/src/FallbackComponent.tsx +40 -0
- package/templates/react-sdk-reference/src/MashupApp.styles.ts +105 -0
- package/templates/react-sdk-reference/src/MashupApp.tsx +254 -0
- package/templates/react-sdk-reference/src/PortalApp.tsx +175 -0
- package/templates/react-sdk-reference/src/components/component-map.ts +255 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.css +46 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.tsx +91 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.css +39 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.tsx +53 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +16 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +270 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/DetailsFields.tsx +164 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/FieldGroup.tsx +79 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx +58 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/FieldValueList.tsx +84 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/Operator.tsx +220 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/Pulse.tsx +33 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx +201 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +33 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +48 -0
- package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +218 -0
- package/templates/react-sdk-reference/src/components/field/AutoComplete/config-ext.json +10 -0
- package/templates/react-sdk-reference/src/components/field/AutoComplete/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.css +24 -0
- package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.tsx +148 -0
- package/templates/react-sdk-reference/src/components/field/CancelAlert/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +263 -0
- package/templates/react-sdk-reference/src/components/field/Checkbox/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/field/Checkbox/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Currency/Currency.tsx +111 -0
- package/templates/react-sdk-reference/src/components/field/Currency/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/field/Currency/currency-utils.ts +67 -0
- package/templates/react-sdk-reference/src/components/field/Currency/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Date/Date.tsx +94 -0
- package/templates/react-sdk-reference/src/components/field/Date/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/field/Date/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/DateTime/DateTime.tsx +101 -0
- package/templates/react-sdk-reference/src/components/field/DateTime/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/DateTime/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Decimal/Decimal.tsx +122 -0
- package/templates/react-sdk-reference/src/components/field/Decimal/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Decimal/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +238 -0
- package/templates/react-sdk-reference/src/components/field/Dropdown/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Dropdown/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Email/Email.tsx +96 -0
- package/templates/react-sdk-reference/src/components/field/Email/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Email/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Group/Group.tsx +41 -0
- package/templates/react-sdk-reference/src/components/field/Group/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/field/Group/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Integer/Integer.tsx +100 -0
- package/templates/react-sdk-reference/src/components/field/Integer/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Integer/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Location/Location.css +4 -0
- package/templates/react-sdk-reference/src/components/field/Location/Location.tsx +258 -0
- package/templates/react-sdk-reference/src/components/field/Location/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Location/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Multiselect/Multiselect.tsx +238 -0
- package/templates/react-sdk-reference/src/components/field/Multiselect/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Multiselect/utils.ts +230 -0
- package/templates/react-sdk-reference/src/components/field/ObjectReference/ObjectReference.tsx +235 -0
- package/templates/react-sdk-reference/src/components/field/ObjectReference/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/ObjectReference/utils.ts +111 -0
- package/templates/react-sdk-reference/src/components/field/Percentage/Percentage.tsx +112 -0
- package/templates/react-sdk-reference/src/components/field/Percentage/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Percentage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Phone/Phone.tsx +113 -0
- package/templates/react-sdk-reference/src/components/field/Phone/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Phone/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +158 -0
- package/templates/react-sdk-reference/src/components/field/RadioButtons/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/RadioButtons/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/RichText/RichText.css +79 -0
- package/templates/react-sdk-reference/src/components/field/RichText/RichText.tsx +98 -0
- package/templates/react-sdk-reference/src/components/field/RichText/config-ext.json +10 -0
- package/templates/react-sdk-reference/src/components/field/RichText/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/ScalarList/ScalarList.tsx +63 -0
- package/templates/react-sdk-reference/src/components/field/ScalarList/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/field/ScalarList/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/SelectableCard/SelectableCard.tsx +189 -0
- package/templates/react-sdk-reference/src/components/field/SelectableCard/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/SelectableCard/utils.tsx +223 -0
- package/templates/react-sdk-reference/src/components/field/SemanticLink/SemanticLink.tsx +208 -0
- package/templates/react-sdk-reference/src/components/field/SemanticLink/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/field/SemanticLink/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/SemanticLink/utils.ts +49 -0
- package/templates/react-sdk-reference/src/components/field/TextArea/TextArea.tsx +94 -0
- package/templates/react-sdk-reference/src/components/field/TextArea/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/TextArea/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/TextContent/TextContent.tsx +46 -0
- package/templates/react-sdk-reference/src/components/field/TextContent/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/field/TextContent/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/TextInput/TextInput.tsx +92 -0
- package/templates/react-sdk-reference/src/components/field/TextInput/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/TextInput/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/Time/Time.tsx +79 -0
- package/templates/react-sdk-reference/src/components/field/Time/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/Time/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/URL/URL.tsx +89 -0
- package/templates/react-sdk-reference/src/components/field/URL/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/field/URL/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/field/UserReference/UserReference.tsx +198 -0
- package/templates/react-sdk-reference/src/components/field/UserReference/UserReferenceUtils.ts +13 -0
- package/templates/react-sdk-reference/src/components/field/UserReference/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/field/UserReference/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/helpers/attachmentShared.ts +6 -0
- package/templates/react-sdk-reference/src/components/helpers/case-utils.tsx +99 -0
- package/templates/react-sdk-reference/src/components/helpers/common-utils.ts +26 -0
- package/templates/react-sdk-reference/src/components/helpers/data_page.ts +20 -0
- package/templates/react-sdk-reference/src/components/helpers/date-format-utils.ts +76 -0
- package/templates/react-sdk-reference/src/components/helpers/event-utils.ts +20 -0
- package/templates/react-sdk-reference/src/components/helpers/field-group-utils.ts +63 -0
- package/templates/react-sdk-reference/src/components/helpers/formatters/Boolean.ts +21 -0
- package/templates/react-sdk-reference/src/components/helpers/formatters/Currency.ts +77 -0
- package/templates/react-sdk-reference/src/components/helpers/formatters/CurrencyMap.ts +913 -0
- package/templates/react-sdk-reference/src/components/helpers/formatters/Date.ts +71 -0
- package/templates/react-sdk-reference/src/components/helpers/formatters/common.ts +14 -0
- package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +130 -0
- package/templates/react-sdk-reference/src/components/helpers/instructions-utils.ts +38 -0
- package/templates/react-sdk-reference/src/components/helpers/object-utils.ts +10 -0
- package/templates/react-sdk-reference/src/components/helpers/reactContextHelpers.ts +3 -0
- package/templates/react-sdk-reference/src/components/helpers/simpleTableHelpers.ts +452 -0
- package/templates/react-sdk-reference/src/components/helpers/state-utils.tsx +43 -0
- package/templates/react-sdk-reference/src/components/helpers/template-utils.ts +76 -0
- package/templates/react-sdk-reference/src/components/helpers/utils.ts +349 -0
- package/templates/react-sdk-reference/src/components/helpers/versionHelpers.ts +14 -0
- package/templates/react-sdk-reference/src/components/index.ts +8 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/AdvancedSearch.tsx +86 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts +52 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +329 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/TemplateContext.ts +11 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/template/AdvancedSearch/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.css +35 -0
- package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.tsx +259 -0
- package/templates/react-sdk-reference/src/components/template/AppShell/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/BannerPage/BannerPage.tsx +54 -0
- package/templates/react-sdk-reference/src/components/template/BannerPage/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/template/BannerPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/CaseSummary/CaseSummary.tsx +79 -0
- package/templates/react-sdk-reference/src/components/template/CaseSummary/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/CaseSummary/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/CaseView/CaseView.tsx +261 -0
- package/templates/react-sdk-reference/src/components/template/CaseView/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/CaseView/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +117 -0
- package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/Confirmation/Confirmation.tsx +102 -0
- package/templates/react-sdk-reference/src/components/template/Confirmation/config-ext.json +11 -0
- package/templates/react-sdk-reference/src/components/template/Confirmation/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/DataReference/DataReference.tsx +590 -0
- package/templates/react-sdk-reference/src/components/template/DataReference/DataReferenceAdvancedSearchContext.ts +10 -0
- package/templates/react-sdk-reference/src/components/template/DataReference/SearchForm.tsx +213 -0
- package/templates/react-sdk-reference/src/components/template/DataReference/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/DataReference/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/DataReference/utils.ts +90 -0
- package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.css +34 -0
- package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +74 -0
- package/templates/react-sdk-reference/src/components/template/DefaultForm/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/DefaultForm/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/DefaultForm/utils/index.ts +26 -0
- package/templates/react-sdk-reference/src/components/template/DefaultPage/DefaultPage.tsx +108 -0
- package/templates/react-sdk-reference/src/components/template/DefaultPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/Details/Details/Details.tsx +74 -0
- package/templates/react-sdk-reference/src/components/template/Details/Details/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +58 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +79 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +79 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/DynamicTabs.tsx +79 -0
- package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/config.json +36 -0
- package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx +116 -0
- package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/HierarchicalForm/HierarchicalForm.tsx +58 -0
- package/templates/react-sdk-reference/src/components/template/HierarchicalForm/hooks.ts +293 -0
- package/templates/react-sdk-reference/src/components/template/HierarchicalForm/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/InlineDashboard/InlineDashboard.tsx +72 -0
- package/templates/react-sdk-reference/src/components/template/InlineDashboard/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/InlineDashboardPage.tsx +39 -0
- package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/ListPage/ListPage.tsx +16 -0
- package/templates/react-sdk-reference/src/components/template/ListPage/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/template/ListPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/ListView/DefaultViewMeta.ts +220 -0
- package/templates/react-sdk-reference/src/components/template/ListView/ListView.css +10 -0
- package/templates/react-sdk-reference/src/components/template/ListView/ListView.tsx +1391 -0
- package/templates/react-sdk-reference/src/components/template/ListView/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/ListView/hooks.ts +93 -0
- package/templates/react-sdk-reference/src/components/template/ListView/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/ListView/utils.ts +781 -0
- package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +52 -0
- package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.css +19 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.tsx +37 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +85 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +19 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +22 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +28 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/ObjectPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/OneColumn.tsx +32 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/OneColumnPage.tsx +17 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/OneColumnTab.tsx +11 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.css +7 -0
- package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.tsx +204 -0
- package/templates/react-sdk-reference/src/components/template/PromotedFilters/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx +153 -0
- package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx +126 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/config-ext.json +7 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +985 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +122 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.tsx +207 -0
- package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +71 -0
- package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SubTabs/SubTabs.tsx +46 -0
- package/templates/react-sdk-reference/src/components/template/SubTabs/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/SubTabs/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/SubTabs/tabUtils.ts +185 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.css +12 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx +54 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +17 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.css +12 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +54 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.css +19 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx +37 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +96 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +19 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +22 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +28 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.css +11 -0
- package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.tsx +160 -0
- package/templates/react-sdk-reference/src/components/template/WssNavBar/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/template/utils.tsx +58 -0
- package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/AppAnnouncement.tsx +60 -0
- package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.css +95 -0
- package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.tsx +541 -0
- package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.types.ts +96 -0
- package/templates/react-sdk-reference/src/components/widget/Attachment/AttachmentUtils.ts +316 -0
- package/templates/react-sdk-reference/src/components/widget/Attachment/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/CaseHistory/CaseHistory.tsx +171 -0
- package/templates/react-sdk-reference/src/components/widget/CaseHistory/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/widget/CaseHistory/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +13 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +32 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.css +118 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.tsx +653 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/Followers/Followers.tsx +43 -0
- package/templates/react-sdk-reference/src/components/widget/Followers/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/widget/Followers/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/QuickCreate/QuickCreate.tsx +88 -0
- package/templates/react-sdk-reference/src/components/widget/QuickCreate/config-ext.json +9 -0
- package/templates/react-sdk-reference/src/components/widget/QuickCreate/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.css +76 -0
- package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.tsx +89 -0
- package/templates/react-sdk-reference/src/components/widget/SummaryItem/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/SummaryList/SummaryList.tsx +23 -0
- package/templates/react-sdk-reference/src/components/widget/SummaryList/index.tsx +1 -0
- package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.css +81 -0
- package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.tsx +507 -0
- package/templates/react-sdk-reference/src/components/widget/ToDo/config-ext.json +8 -0
- package/templates/react-sdk-reference/src/components/widget/ToDo/index.tsx +1 -0
- package/templates/react-sdk-reference/src/main.tsx +13 -0
- package/templates/react-sdk-reference/src/mui-theme-augmentation.d.ts +6 -0
- package/templates/react-sdk-reference/tsconfig.json +24 -0
- package/templates/react-sdk-reference/vite.config.ts +65 -0
- package/templates/wc-sdk-reference/.github/AGENTS.md +23 -0
- package/templates/wc-sdk-reference/.github/copilot-instructions.md +40 -0
- package/templates/wc-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
- package/templates/wc-sdk-reference/index.html +21 -0
- package/templates/wc-sdk-reference/package.json +19 -0
- package/templates/wc-sdk-reference/sdk-config.json +19 -0
- package/templates/wc-sdk-reference/src/index.ts +98 -0
- package/templates/wc-sdk-reference/tsconfig.json +21 -0
- package/templates/wc-sdk-reference/vite.config.ts +8 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
3
|
+
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
|
4
|
+
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
5
|
+
import { SdkConfigAccess } from '@pega/auth/lib/sdk-auth-manager';
|
|
6
|
+
|
|
7
|
+
dayjs.extend(customParseFormat);
|
|
8
|
+
dayjs.extend(localizedFormat);
|
|
9
|
+
dayjs.extend(relativeTime);
|
|
10
|
+
|
|
11
|
+
export class Utils {
|
|
12
|
+
static lastControlID = 0;
|
|
13
|
+
|
|
14
|
+
static getSDKStaticConentUrl() {
|
|
15
|
+
const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();
|
|
16
|
+
|
|
17
|
+
// NOTE: Needs a trailing slash! So add one if not provided
|
|
18
|
+
if (!sdkConfigServer.sdkContentServerUrl.endsWith('/')) {
|
|
19
|
+
sdkConfigServer.sdkContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}/`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return `${sdkConfigServer.sdkContentServerUrl}constellation/`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static getUniqueControlID(): string {
|
|
26
|
+
const sPrefix = 'control-';
|
|
27
|
+
|
|
28
|
+
this.lastControlID += 1;
|
|
29
|
+
|
|
30
|
+
return sPrefix + this.lastControlID.toString();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static getOptionList(configProps: any, dataObject: any): any[] {
|
|
34
|
+
const listType = configProps.listType;
|
|
35
|
+
let arReturn: any[] = [];
|
|
36
|
+
|
|
37
|
+
if (listType) {
|
|
38
|
+
switch (listType.toLowerCase()) {
|
|
39
|
+
case 'associated':
|
|
40
|
+
// data source should be an array
|
|
41
|
+
if (typeof configProps.datasource === 'object') {
|
|
42
|
+
arReturn = configProps.datasource;
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
|
|
46
|
+
case 'datapage':
|
|
47
|
+
// get data page
|
|
48
|
+
// eslint-disable-next-line no-case-declarations
|
|
49
|
+
const dataPage = configProps.datasource;
|
|
50
|
+
if (typeof dataPage === 'string' && dataObject[dataPage]) {
|
|
51
|
+
alert('need to handle data page');
|
|
52
|
+
} else {
|
|
53
|
+
let listSourceItems = configProps.listOutput;
|
|
54
|
+
if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {
|
|
55
|
+
listSourceItems = dataPage.source ? dataPage.source : [];
|
|
56
|
+
}
|
|
57
|
+
(listSourceItems || []).forEach(item => {
|
|
58
|
+
item.value = item.text ? item.text : item.value;
|
|
59
|
+
});
|
|
60
|
+
arReturn = listSourceItems || [];
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
|
|
64
|
+
default:
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return arReturn;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
static getInitials(userName: string): string {
|
|
73
|
+
let userInitials = userName;
|
|
74
|
+
|
|
75
|
+
if (userName && userName !== '') {
|
|
76
|
+
userInitials = userName.charAt(0);
|
|
77
|
+
|
|
78
|
+
if (userName.lastIndexOf(' ') > 0) {
|
|
79
|
+
const lastName = userName.substring(userName.lastIndexOf(' ') + 1);
|
|
80
|
+
userInitials += lastName.charAt(0);
|
|
81
|
+
} else if (userName.lastIndexOf('.') > 0) {
|
|
82
|
+
const lastName = userName.substring(userName.lastIndexOf('.') + 1);
|
|
83
|
+
userInitials += lastName.charAt(0);
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
userInitials = '';
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return userInitials.toUpperCase();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static getImageSrc(name: string, serverUrl: string): string {
|
|
93
|
+
let iconName = name.replace('pi-', '').replace('pi ', '').trim();
|
|
94
|
+
if (iconName === 'line-chart') {
|
|
95
|
+
iconName = 'chart-line';
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return this.getIconPath(serverUrl).concat(iconName).concat('.svg');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static getIconPath(serverUrl: string): string {
|
|
102
|
+
// Directory in the constellation folder where the icons will be
|
|
103
|
+
return serverUrl.concat('icons/');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static getBooleanValue(inValue: any): boolean {
|
|
107
|
+
let bReturn = false;
|
|
108
|
+
|
|
109
|
+
if (typeof inValue === 'string') {
|
|
110
|
+
// Experiment with having "" be true, too (and "on")
|
|
111
|
+
if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {
|
|
112
|
+
bReturn = true;
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
bReturn = inValue;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return bReturn;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke
|
|
122
|
+
// format and do away with all the separate Pega possible dateFormats.
|
|
123
|
+
static generateDate(dateVal, dateFormat) {
|
|
124
|
+
let sReturnDate = dateVal;
|
|
125
|
+
|
|
126
|
+
if (dateVal === null || dateVal === '') {
|
|
127
|
+
return dateVal;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)
|
|
131
|
+
// dateTimeVal = dateTimeVal.replace("GMT", "+0000")
|
|
132
|
+
// Anything else would require a specific String pattern be specified as an argument to the dayjs constructor
|
|
133
|
+
|
|
134
|
+
// if date has a ".", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD
|
|
135
|
+
if (dateVal.indexOf('.') >= 0) {
|
|
136
|
+
// VRS: Dont think we need the dateVal.replace("GMT", "+0000"). Commenting out for now. (2020.05.20)
|
|
137
|
+
// dateVal = dayjs(dateVal.replace("GMT", "+0000"), "YYYYMMDD[T]HHmmss[.]SSS Z").format("YYYYMMDD");
|
|
138
|
+
// dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)
|
|
139
|
+
// Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)
|
|
140
|
+
// (better might be just doing that in a default switch block)
|
|
141
|
+
sReturnDate = dayjs(dateVal).format('YYYYMMDD');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
switch (dateFormat) {
|
|
145
|
+
case 'Date-Short':
|
|
146
|
+
// 1/1/01
|
|
147
|
+
sReturnDate = dayjs(dateVal).format('M/D/YY');
|
|
148
|
+
break;
|
|
149
|
+
case 'Date-Short-YYYY':
|
|
150
|
+
// 1/1/2001
|
|
151
|
+
sReturnDate = dayjs(dateVal).format('M/D/YYYY');
|
|
152
|
+
break;
|
|
153
|
+
case 'Date-Short-Custom':
|
|
154
|
+
// 01/01/01
|
|
155
|
+
sReturnDate = dayjs(dateVal).format('MM/DD/YY');
|
|
156
|
+
break;
|
|
157
|
+
case 'Date-Short-Custom-YYYY':
|
|
158
|
+
// 01/01/2001
|
|
159
|
+
sReturnDate = dayjs(dateVal).format('L');
|
|
160
|
+
break;
|
|
161
|
+
case 'Date-Medium':
|
|
162
|
+
// Jan 1, 2001
|
|
163
|
+
sReturnDate = dayjs(dateVal).format('ll');
|
|
164
|
+
break;
|
|
165
|
+
case 'Date-DayMonthYear-Custom':
|
|
166
|
+
// 01-Jan-2001
|
|
167
|
+
sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');
|
|
168
|
+
break;
|
|
169
|
+
case 'Date-Full':
|
|
170
|
+
// Monday, January 1, 2001
|
|
171
|
+
sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');
|
|
172
|
+
break;
|
|
173
|
+
case 'DateTime-Frame':
|
|
174
|
+
case 'DateTime-Frame-Short':
|
|
175
|
+
case 'DateTime-Since':
|
|
176
|
+
// 2 days, 5 hours ago
|
|
177
|
+
sReturnDate = dayjs(dateVal).fromNow();
|
|
178
|
+
break;
|
|
179
|
+
case 'Date-Long':
|
|
180
|
+
// January 1, 2001
|
|
181
|
+
sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');
|
|
182
|
+
break;
|
|
183
|
+
case 'Date-ISO-8601':
|
|
184
|
+
// 2001/01/01 y/m/d
|
|
185
|
+
sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');
|
|
186
|
+
break;
|
|
187
|
+
case 'Date-Gregorian-1':
|
|
188
|
+
// 01 January, 2001
|
|
189
|
+
sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');
|
|
190
|
+
break;
|
|
191
|
+
case 'Date-Gregorian-2':
|
|
192
|
+
// January 01, 2001
|
|
193
|
+
sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');
|
|
194
|
+
break;
|
|
195
|
+
case 'Date-Gregorian-3':
|
|
196
|
+
// 2001, January 01
|
|
197
|
+
sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');
|
|
198
|
+
break;
|
|
199
|
+
case 'DateTime-Custom':
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return sReturnDate;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke
|
|
209
|
+
// format and do away with all the separate Pega possible dateFormats.
|
|
210
|
+
static generateDateTime(dateTimeVal, dateFormat) {
|
|
211
|
+
let sReturnDate = dateTimeVal;
|
|
212
|
+
|
|
213
|
+
if (dateTimeVal === null || dateTimeVal === '') {
|
|
214
|
+
return dateTimeVal;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)
|
|
218
|
+
// dateTimeVal = dateTimeVal.replace("GMT", "+0000")
|
|
219
|
+
// dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)
|
|
220
|
+
// Anything else would require a specific String pattern be specified as an argument to the dayjs constructor
|
|
221
|
+
|
|
222
|
+
switch (dateFormat) {
|
|
223
|
+
case 'DateTime-Short':
|
|
224
|
+
// 1/1/01 1:00 AM
|
|
225
|
+
sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');
|
|
226
|
+
break;
|
|
227
|
+
case 'DateTime-Short-Custom':
|
|
228
|
+
// 01/01/01 01:00 AM
|
|
229
|
+
sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');
|
|
230
|
+
break;
|
|
231
|
+
case 'DateTime-Short-YYYY-Custom':
|
|
232
|
+
// 01/01/2001 01:00 AM
|
|
233
|
+
sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');
|
|
234
|
+
break;
|
|
235
|
+
case 'DateTime-Short-YYYY':
|
|
236
|
+
// 1/1/2001 1:00 AM
|
|
237
|
+
sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');
|
|
238
|
+
break;
|
|
239
|
+
case 'DateTime-Medium':
|
|
240
|
+
// Jan 1, 2001 1:00:00 AM
|
|
241
|
+
sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');
|
|
242
|
+
break;
|
|
243
|
+
case 'DateTime-Long':
|
|
244
|
+
// January 1, 2001 1:00:00 AM
|
|
245
|
+
sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');
|
|
246
|
+
break;
|
|
247
|
+
case 'DateTime-DayMonthYear-Custom':
|
|
248
|
+
// 01-Jan-2001 1:00:00 AM
|
|
249
|
+
sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');
|
|
250
|
+
break;
|
|
251
|
+
case 'DateTime-Full':
|
|
252
|
+
// Monday, January 1, 2001 1:00 AM EDT
|
|
253
|
+
sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');
|
|
254
|
+
break;
|
|
255
|
+
case 'DateTime-Frame':
|
|
256
|
+
case 'DateTime-Frame-Short':
|
|
257
|
+
case 'DateTime-Since':
|
|
258
|
+
// 2 days, 5 hours ago
|
|
259
|
+
sReturnDate = dayjs(dateTimeVal).fromNow();
|
|
260
|
+
break;
|
|
261
|
+
case 'DateTime-ISO-8601':
|
|
262
|
+
// 2001/01/01 1:00:00 AM y/m/d
|
|
263
|
+
sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');
|
|
264
|
+
break;
|
|
265
|
+
case 'DateTime-Gregorian-1':
|
|
266
|
+
// 01 January, 2001 1:00:00 AM
|
|
267
|
+
sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');
|
|
268
|
+
break;
|
|
269
|
+
case 'DateTime-Gregorian-2':
|
|
270
|
+
// January 01, 2001 1:00:00 AM
|
|
271
|
+
sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');
|
|
272
|
+
break;
|
|
273
|
+
case 'DateTime-Gregorian-3':
|
|
274
|
+
// 2001, January 01 1:00:00 AM
|
|
275
|
+
sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');
|
|
276
|
+
break;
|
|
277
|
+
case 'DateTime-Custom':
|
|
278
|
+
break;
|
|
279
|
+
default:
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return sReturnDate;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
static getSeconds(sTime): any {
|
|
287
|
+
return dayjs(sTime).valueOf();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
static getIconFromFileType(fileType): string {
|
|
291
|
+
let icon = 'document-doc';
|
|
292
|
+
if (!fileType) return icon;
|
|
293
|
+
if (fileType.startsWith('audio')) {
|
|
294
|
+
icon = 'audio';
|
|
295
|
+
} else if (fileType.startsWith('video')) {
|
|
296
|
+
icon = 'video';
|
|
297
|
+
} else if (fileType.startsWith('image')) {
|
|
298
|
+
icon = 'picture';
|
|
299
|
+
} else if (fileType.includes('pdf')) {
|
|
300
|
+
icon = 'document-pdf';
|
|
301
|
+
} else {
|
|
302
|
+
const [, subtype] = fileType.split('/');
|
|
303
|
+
const foundMatch = sources => {
|
|
304
|
+
return sources.some(key => subtype.includes(key));
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
if (foundMatch(['excel', 'spreadsheet'])) {
|
|
308
|
+
icon = 'document-xls';
|
|
309
|
+
} else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {
|
|
310
|
+
icon = 'document-compress';
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return icon;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
static getIconForAttachment(attachment) {
|
|
318
|
+
let icon;
|
|
319
|
+
switch (attachment.type) {
|
|
320
|
+
case 'FILE':
|
|
321
|
+
icon = this.getIconFromFileType(attachment.mimeType);
|
|
322
|
+
break;
|
|
323
|
+
case 'URL':
|
|
324
|
+
icon = 'chain';
|
|
325
|
+
break;
|
|
326
|
+
default:
|
|
327
|
+
icon = 'document-doc';
|
|
328
|
+
}
|
|
329
|
+
return icon;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
static getLastChar(text) {
|
|
333
|
+
return text.charAt(text.length - 1);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
static isObject(objValue) {
|
|
337
|
+
return objValue && typeof objValue === 'object' && objValue.constructor === Object;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
static getMappedKey(key) {
|
|
341
|
+
const mappedKey = PCore.getEnvironmentInfo().getKeyMapping(key);
|
|
342
|
+
if (!mappedKey) {
|
|
343
|
+
return key;
|
|
344
|
+
}
|
|
345
|
+
return mappedKey;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export default Utils;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* versionHelpers.ts
|
|
3
|
+
*
|
|
4
|
+
* Container helper functions that can identify which version of
|
|
5
|
+
* PCore/PConnect is being run
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const sdkVersion = '8.7';
|
|
9
|
+
|
|
10
|
+
export function compareSdkPCoreVersions() {
|
|
11
|
+
// const theConstellationVersion = PCore.getPCoreVersion();
|
|
12
|
+
|
|
13
|
+
console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// === Component map (registers all field/template/widget/designSystemExtension components) ===
|
|
2
|
+
export {
|
|
3
|
+
getSampleComponentMap,
|
|
4
|
+
registerSampleComponents,
|
|
5
|
+
} from './component-map';
|
|
6
|
+
|
|
7
|
+
// === Infrastructure components from sdk-react ===
|
|
8
|
+
export { sdkComponents } from '@pega/sdk-react';
|
package/templates/react-sdk-reference/src/components/template/AdvancedSearch/AdvancedSearch.tsx
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { useContext, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import { getComponentFromRegistry } from '@pega/sdk-react';
|
|
4
|
+
import DataReferenceAdvancedSearchContext from '../DataReference/DataReferenceAdvancedSearchContext';
|
|
5
|
+
import { getFirstChildConfig } from '../DataReference/utils';
|
|
6
|
+
|
|
7
|
+
export default function AdvancedSearch(props) {
|
|
8
|
+
const { getPConnect, targetObjectClass, localeReference } = props;
|
|
9
|
+
const SearchGroups = getComponentFromRegistry('SearchGroups');
|
|
10
|
+
const { dataReferenceConfigToChild, isCreateNewReferenceEnabled, disableStartingFieldsForReference, pyID, searchSelectCacheKey } = useContext(
|
|
11
|
+
DataReferenceAdvancedSearchContext
|
|
12
|
+
) as any;
|
|
13
|
+
|
|
14
|
+
const { selectionMode, value: singleSelectFieldValue, readonlyContextList: multiSelectField } = dataReferenceConfigToChild;
|
|
15
|
+
|
|
16
|
+
let isSelectionExist = false;
|
|
17
|
+
const { MULTI } = PCore.getConstants().LIST_SELECTION_MODE;
|
|
18
|
+
|
|
19
|
+
if (selectionMode === MULTI) {
|
|
20
|
+
isSelectionExist = getPConnect().getValue(multiSelectField)?.length || false;
|
|
21
|
+
} else {
|
|
22
|
+
isSelectionExist = getPConnect().getValue(singleSelectFieldValue) || false;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const [showRecords, setShowRecords] = useState(isSelectionExist);
|
|
26
|
+
|
|
27
|
+
const pConn = getPConnect();
|
|
28
|
+
const rawViewMetadata = pConn.getRawMetadata();
|
|
29
|
+
|
|
30
|
+
const searchFieldsSet = new Set();
|
|
31
|
+
const searchFields: any = [];
|
|
32
|
+
rawViewMetadata.config.searchGroups.forEach(group => {
|
|
33
|
+
group.children.forEach(child => {
|
|
34
|
+
if (!searchFieldsSet.has(child.config.value) && !child.config.validator) {
|
|
35
|
+
searchFields.push(child);
|
|
36
|
+
searchFieldsSet.add(child.config.value);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const firstChildPConnect = getPConnect().getChildren()[0].getPConnect;
|
|
42
|
+
const [firstChildMeta] = rawViewMetadata.children;
|
|
43
|
+
|
|
44
|
+
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
45
|
+
const cache = PCore.getNavigationUtils().getComponentCache(searchSelectCacheKey) ?? {};
|
|
46
|
+
|
|
47
|
+
const editableFieldComp = firstChildPConnect().createComponent({
|
|
48
|
+
type: firstChildMeta.type,
|
|
49
|
+
config: {
|
|
50
|
+
...getFirstChildConfig({
|
|
51
|
+
firstChildMeta,
|
|
52
|
+
getPConnect,
|
|
53
|
+
rawViewMetadata,
|
|
54
|
+
contextClass: targetObjectClass,
|
|
55
|
+
dataReferenceConfigToChild,
|
|
56
|
+
isCreateNewReferenceEnabled,
|
|
57
|
+
disableStartingFieldsForReference,
|
|
58
|
+
pyID
|
|
59
|
+
}),
|
|
60
|
+
searchFields,
|
|
61
|
+
showRecords,
|
|
62
|
+
label: localizedVal('Search results', 'DataReference'),
|
|
63
|
+
searchSelectCacheKey,
|
|
64
|
+
cache
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const { selectionList, dataRelationshipContext } = editableFieldComp.props.getPConnect().getConfigProps();
|
|
69
|
+
const editableField = selectionMode === MULTI ? selectionList.substring(1) : dataRelationshipContext;
|
|
70
|
+
|
|
71
|
+
const searchGroupsProps = {
|
|
72
|
+
getPConnect,
|
|
73
|
+
editableField,
|
|
74
|
+
localeReference,
|
|
75
|
+
setShowRecords,
|
|
76
|
+
searchSelectCacheKey,
|
|
77
|
+
cache
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<>
|
|
82
|
+
<SearchGroups {...searchGroupsProps} />
|
|
83
|
+
{editableFieldComp}
|
|
84
|
+
</>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Utils } from '../../../helpers/utils';
|
|
2
|
+
|
|
3
|
+
const SKIP_CACHE_KEY = '';
|
|
4
|
+
|
|
5
|
+
const getComponentStateKey = (getPConnect, propertyName: string) => {
|
|
6
|
+
const pConnect = getPConnect();
|
|
7
|
+
const caseID = `.${Utils.getMappedKey('pyID')}`; // Enhance this later when use-case arrives for data objects using S&S.
|
|
8
|
+
const resolvedCaseID = pConnect.getValue(caseID);
|
|
9
|
+
|
|
10
|
+
if (!resolvedCaseID) {
|
|
11
|
+
return SKIP_CACHE_KEY;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return `Search-${resolvedCaseID}-${pConnect.getPageReference()}-${propertyName}-${pConnect.getCurrentView()}`;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const getComponentStateOptions = getPConnect => {
|
|
18
|
+
return { clearOnCancelForContext: getPConnect().getContextName() };
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
interface SearchCategory {
|
|
22
|
+
// tabId of search category selected
|
|
23
|
+
selectedCategory: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface SearchGroup {
|
|
27
|
+
// searchFields can be any object based on what fields are authored.
|
|
28
|
+
searchFields: unknown;
|
|
29
|
+
activeGroupId: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const setComponentCache = ({
|
|
33
|
+
cacheKey,
|
|
34
|
+
state,
|
|
35
|
+
options
|
|
36
|
+
}: {
|
|
37
|
+
cacheKey: string;
|
|
38
|
+
state: SearchCategory | SearchGroup;
|
|
39
|
+
options: ReturnType<typeof getComponentStateOptions>;
|
|
40
|
+
}) => {
|
|
41
|
+
if (cacheKey !== SKIP_CACHE_KEY) {
|
|
42
|
+
(PCore.getNavigationUtils() as any).setComponentCache(cacheKey, state, options);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const componentCachePersistUtils = {
|
|
47
|
+
getComponentStateKey,
|
|
48
|
+
getComponentStateOptions,
|
|
49
|
+
setComponentCache
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default componentCachePersistUtils;
|