@pega/dx-component-builder-sdk 24.2.13 → 25.1.10
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/README.md +3 -3
- package/package.json +1 -1
- package/src/constants.js +46 -0
- package/src/tasks/create/index.js +50 -51
- package/src/tasks/create/templates/Constellation/field/Boolean/Boolean.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/field/Boolean/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Date/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Date/date.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/DateTime/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Decimal/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Integer/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/date.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/index.tsx.mustache +7 -2
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/repeat-utils.ts.mustache +0 -4
- package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/field/Text/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Email/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Input/{StatusWork.tsx → StatusWork.tsx.mustache} +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Input/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Paragraph/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Phone/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/TimeOfDay/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/Avatar.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/HighlightRender.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/StatusWork.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/utils.js.mustache +0 -2
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/Avatar.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/HighlightRender.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/StatusWork.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/FORM/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/FORM-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/PAGE/GetNextWork.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/widget/CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/widget/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/Avatar.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/index.tsx.mustache +0 -2
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.html.mustache +14 -6
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +4 -3
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Date/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.ts.mustache +4 -3
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Integer/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.ts.mustache +7 -6
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-Autocomplete/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-Autocomplete/picklist-autocomplete.component.html.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-Autocomplete/picklist-autocomplete.component.ts.mustache +10 -14
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-RadioButtons/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-RadioButtons/picklist-radio-buttons.component.html.mustache +14 -6
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-RadioButtons/picklist-radio-buttons.component.ts.mustache +5 -2
- package/src/tasks/create/templates/SDK-Angular/field/Text/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.html.mustache +5 -4
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.ts.mustache +17 -5
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.ts.mustache +1 -2
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/template/FORM/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Boolean/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Date/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/DateTime/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +0 -2
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Integer/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Picklist/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Picklist-Autocomplete/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Email/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Email/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Input/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +6 -4
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-URL/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/DETAILS/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +10 -11
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +9 -10
- package/src/tasks/create/templates/SDK-React/template/FORM/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/FORM/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/FORM-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.tsx.mustache +5 -3
- package/src/tasks/create/templates/SDK-React/template/FORM-region/index.tsx.mustache +10 -8
- package/src/tasks/create/templates/SDK-React/template/PAGE/OneColumn.tsx.mustache +8 -5
- package/src/tasks/create/templates/SDK-React/template/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/widget/CASE/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +14 -12
- package/src/tasks/create-all/index.js +68 -55
- package/src/tasks/publish/helper.js +1 -1
- package/src/tasks/validator/index.js +19 -0
- package/src/util.js +89 -4
- package/tests/assets/sdk-r/components/create/custom-constellation/field/Pega_DXIL_MyTestText/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/config.json +0 -1
- package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/mock.ts +0 -1
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Banner/Banner.css +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Banner/Banner.tsx +10 -7
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +53 -37
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/DetailsFields/DetailsFields.tsx +11 -13
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +8 -9
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroupList/FieldGroupList.tsx +9 -9
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +8 -9
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Operator/Operator.tsx +21 -19
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Pulse/Pulse.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +32 -4
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +13 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/AutoComplete/AutoComplete.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/CancelAlert/CancelAlert.css +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/CancelAlert/CancelAlert.tsx +7 -10
- package/tests/assets/sdk-r/components/create/override-sdk/field/Checkbox/Checkbox.tsx +97 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/Currency/Currency.tsx +10 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/Currency/currency-utils.ts +1 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/Date/Date.tsx +8 -8
- package/tests/assets/sdk-r/components/create/override-sdk/field/DateTime/DateTime.tsx +16 -13
- package/tests/assets/sdk-r/components/create/override-sdk/field/Decimal/Decimal.tsx +10 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/Dropdown/Dropdown.tsx +30 -25
- package/tests/assets/sdk-r/components/create/override-sdk/field/Email/Email.tsx +11 -13
- package/tests/assets/sdk-r/components/create/override-sdk/field/Group/Group.tsx +10 -8
- package/tests/assets/sdk-r/components/create/override-sdk/field/Integer/Integer.tsx +5 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/Location/Location.css +4 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Location/Location.tsx +258 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Location/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Location/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Multiselect/utils.ts +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/ObjectReference/ObjectReference.tsx +235 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/ObjectReference/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/ObjectReference/utils.ts +111 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Percentage/Percentage.tsx +9 -9
- package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +7 -5
- package/tests/assets/sdk-r/components/create/override-sdk/field/RadioButtons/RadioButtons.tsx +47 -5
- package/tests/assets/sdk-r/components/create/override-sdk/field/RichText/RichText.css +79 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/RichText/RichText.tsx +3 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/ScalarList/ScalarList.tsx +2 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/SelectableCard/SelectableCard.tsx +175 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/SelectableCard/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/SelectableCard/utils.tsx +223 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/SemanticLink/SemanticLink.tsx +160 -28
- package/tests/assets/sdk-r/components/create/override-sdk/field/SemanticLink/utils.ts +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/TextArea/TextArea.tsx +5 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/TextContent/TextContent.tsx +1 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/TextInput/TextInput.tsx +5 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/Time/Time.tsx +4 -8
- package/tests/assets/sdk-r/components/create/override-sdk/field/URL/URL.tsx +5 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/UserReference/UserReference.tsx +3 -6
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ActionButtons/ActionButtons.tsx +28 -21
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Assignment/Assignment.tsx +38 -35
- package/tests/assets/sdk-r/components/create/override-sdk/infra/AssignmentCard/AssignmentCard.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +5 -9
- package/tests/assets/sdk-r/components/create/override-sdk/infra/DashboardFilter/filterUtils.tsx +3 -6
- package/tests/assets/sdk-r/components/create/override-sdk/infra/DeferLoad/DeferLoad.tsx +7 -9
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ErrorBoundary/ErrorBoundary.tsx +1 -3
- package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/FlowContainer.tsx +21 -113
- package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/helpers.ts +1 -5
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +4 -3
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ModalViewContainer.tsx +7 -6
- package/tests/assets/sdk-r/components/create/override-sdk/infra/MultiStep/MultiStep.css +48 -70
- package/tests/assets/sdk-r/components/create/override-sdk/infra/MultiStep/MultiStep.tsx +27 -58
- package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.css +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.tsx +31 -30
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Reference/Reference.tsx +3 -4
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Region/Region.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/infra/RootContainer/RootContainer.tsx +3 -4
- package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/helper.ts +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Stages/Stages.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/infra/View/View.tsx +4 -3
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ViewContainer/ViewContainer.tsx +4 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/AdvancedSearch.tsx +86 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/SearchGroup/persistUtils.ts +52 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +244 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/TemplateContext.ts +11 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AdvancedSearch/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/AppShell/AppShell.css +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/AppShell/AppShell.tsx +22 -23
- package/tests/assets/sdk-r/components/create/override-sdk/template/BannerPage/BannerPage.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/CaseSummary/CaseSummary.tsx +28 -41
- package/tests/assets/sdk-r/components/create/override-sdk/template/CaseView/CaseView.tsx +31 -38
- package/tests/assets/sdk-r/components/create/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/Confirmation/Confirmation.tsx +3 -4
- package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/DataReference.tsx +312 -106
- package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/DataReferenceAdvancedSearchContext.ts +10 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/SearchForm.tsx +149 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/utils.ts +90 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/DefaultForm/DefaultForm.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/template/DefaultForm/utils/index.ts +1 -3
- package/tests/assets/sdk-r/components/create/override-sdk/template/Details/Details.tsx +11 -11
- package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsSubTabs/DetailsSubTabs.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +11 -11
- package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +11 -11
- package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/DynamicTabs.tsx +1 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +2 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/InlineDashboard/InlineDashboard.tsx +14 -16
- package/tests/assets/sdk-r/components/create/override-sdk/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListPage/ListPage.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +285 -204
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/hooks.ts +1 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/utils.ts +38 -6
- package/tests/assets/sdk-r/components/create/override-sdk/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWide/NarrowWide.tsx +5 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +11 -11
- package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWideForm/NarrowWideForm.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWidePage/NarrowWidePage.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumn/OneColumn.tsx +7 -7
- package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumnPage/OneColumnPage.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumnTab/OneColumnTab.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/PromotedFilters/PromotedFilters.tsx +1 -3
- package/tests/assets/sdk-r/components/create/override-sdk/template/SearchGroups/SearchGroups.tsx +244 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/SearchGroups/hooks.ts +37 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/SearchGroups/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/SearchGroups/utils.ts +29 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTable/SimpleTable.tsx +2 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +99 -84
- package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableSelect/SimpleTableSelect.tsx +3 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +10 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/SubTabs/SubTabs.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/SubTabs/tabUtils.ts +118 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumn/TwoColumn.tsx +9 -10
- package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumnPage/TwoColumnPage.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumnTab/TwoColumnTab.tsx +9 -10
- package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrow/WideNarrow.tsx +5 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +11 -11
- package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowForm/WideNarrowForm.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowPage/WideNarrowPage.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/WssNavBar/WssNavBar.css +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/WssNavBar/WssNavBar.tsx +6 -6
- package/tests/assets/sdk-r/components/create/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
- package/tests/assets/sdk-r/components/create/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/widget/AppAnnouncement/AppAnnouncement.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/Attachment.css +7 -8
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/Attachment.tsx +304 -231
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/Attachment.types.ts +96 -0
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/AttachmentUtils.ts +316 -0
- package/tests/assets/sdk-r/components/create/override-sdk/widget/CaseHistory/CaseHistory.tsx +5 -5
- package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/FileUtility.css +7 -6
- package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/FileUtility.tsx +30 -23
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Followers/Followers.tsx +2 -4
- package/tests/assets/sdk-r/components/create/override-sdk/widget/QuickCreate/QuickCreate.tsx +1 -3
- package/tests/assets/sdk-r/components/create/override-sdk/widget/SummaryItem/SummaryItem.css +9 -11
- package/tests/assets/sdk-r/components/create/override-sdk/widget/SummaryItem/SummaryItem.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/widget/SummaryList/SummaryList.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/widget/ToDo/ToDo.css +1 -13
- package/tests/assets/sdk-r/components/create/override-sdk/widget/ToDo/ToDo.tsx +38 -37
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/Boolean.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/date.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/demo.stories.tsx +0 -16
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -17
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/mock.ts +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +9 -20
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/mock.ts +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/demo.stories.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyRadiobuttons/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyRadiobuttons/index.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/date.ts +0 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/index.tsx +7 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyText/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/demo.stories.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Avatar.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/HighlightRender.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/StatusWork.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/demo.stories.tsx +10 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/utils.js +0 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/GetNextWork.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/demo.stories.tsx +1 -13
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +10 -32
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +10 -22
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +10 -21
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -14
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/demo.stories.tsx +0 -24
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -24
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -14
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -6
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/index.tsx +0 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -14
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +6 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MySearchbox/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/demo.stories.tsx +8 -28
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +10 -11
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/demo.stories.tsx +10 -16
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/OneColumn.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +8 -28
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +9 -10
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +5 -3
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/index.tsx +7 -8
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +10 -20
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +10 -20
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +11 -12
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/config.json +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +9 -19
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Banner/Banner.css +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Banner/Banner.tsx +10 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +53 -37
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/DetailsFields/DetailsFields.tsx +11 -13
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +8 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroupList/FieldGroupList.tsx +9 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +8 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Operator/Operator.tsx +21 -19
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Pulse/Pulse.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +32 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +13 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/AutoComplete/AutoComplete.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/CancelAlert/CancelAlert.css +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/CancelAlert/CancelAlert.tsx +7 -10
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Checkbox/Checkbox.tsx +97 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Currency/Currency.tsx +10 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Currency/currency-utils.ts +1 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Date/Date.tsx +8 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/DateTime/DateTime.tsx +16 -13
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Decimal/Decimal.tsx +10 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Dropdown/Dropdown.tsx +30 -25
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Email/Email.tsx +11 -13
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/Group.tsx +10 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Integer/Integer.tsx +5 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Location/Location.css +4 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Location/Location.tsx +258 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Location/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Location/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Multiselect/utils.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/ObjectReference/ObjectReference.tsx +235 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/ObjectReference/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/ObjectReference/utils.ts +111 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Percentage/Percentage.tsx +9 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +7 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/RadioButtons/RadioButtons.tsx +47 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/RichText/RichText.css +79 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/RichText/RichText.tsx +3 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/ScalarList/ScalarList.tsx +2 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/SelectableCard/SelectableCard.tsx +175 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/SelectableCard/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/SelectableCard/utils.tsx +223 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/SemanticLink/SemanticLink.tsx +160 -28
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/SemanticLink/utils.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextArea/TextArea.tsx +5 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextContent/TextContent.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextInput/TextInput.tsx +5 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Time/Time.tsx +4 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/URL/URL.tsx +5 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/UserReference/UserReference.tsx +3 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ActionButtons/ActionButtons.tsx +28 -21
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Assignment/Assignment.tsx +38 -35
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/AssignmentCard/AssignmentCard.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +5 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/filterUtils.tsx +3 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DeferLoad/DeferLoad.tsx +7 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ErrorBoundary/ErrorBoundary.tsx +1 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/FlowContainer.tsx +21 -113
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/helpers.ts +1 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +4 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ModalViewContainer.tsx +7 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/MultiStep/MultiStep.css +48 -70
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/MultiStep/MultiStep.tsx +27 -58
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.css +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.tsx +31 -30
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Reference/Reference.tsx +3 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Region/Region.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/RootContainer/RootContainer.tsx +3 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/helper.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Stages/Stages.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/View/View.tsx +4 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ViewContainer/ViewContainer.tsx +4 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/AdvancedSearch.tsx +86 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/SearchGroup/persistUtils.ts +52 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +244 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/TemplateContext.ts +11 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AdvancedSearch/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AppShell/AppShell.css +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AppShell/AppShell.tsx +22 -23
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/BannerPage/BannerPage.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseSummary/CaseSummary.tsx +28 -41
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseView/CaseView.tsx +31 -38
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/Confirmation/Confirmation.tsx +3 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/DataReference.tsx +312 -106
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/DataReferenceAdvancedSearchContext.ts +10 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/SearchForm.tsx +149 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/utils.ts +90 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DefaultForm/DefaultForm.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DefaultForm/utils/index.ts +1 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/Details/Details.tsx +11 -11
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsSubTabs/DetailsSubTabs.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +11 -11
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +11 -11
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/DynamicTabs.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +2 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/InlineDashboard/InlineDashboard.tsx +14 -16
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListPage/ListPage.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +285 -204
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/hooks.ts +1 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/utils.ts +38 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWide/NarrowWide.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +11 -11
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWideForm/NarrowWideForm.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWidePage/NarrowWidePage.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumn/OneColumn.tsx +7 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumnPage/OneColumnPage.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumnTab/OneColumnTab.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/PromotedFilters/PromotedFilters.tsx +1 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SearchGroups/SearchGroups.tsx +244 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SearchGroups/hooks.ts +37 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SearchGroups/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SearchGroups/utils.ts +29 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTable/SimpleTable.tsx +2 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +99 -84
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableSelect/SimpleTableSelect.tsx +3 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +10 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SubTabs/SubTabs.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SubTabs/tabUtils.ts +118 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumn/TwoColumn.tsx +9 -10
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumnPage/TwoColumnPage.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumnTab/TwoColumnTab.tsx +9 -10
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrow/WideNarrow.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +11 -11
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowForm/WideNarrowForm.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowPage/WideNarrowPage.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WssNavBar/WssNavBar.css +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WssNavBar/WssNavBar.tsx +6 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/AppAnnouncement/AppAnnouncement.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/Attachment.css +7 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/Attachment.tsx +304 -231
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/Attachment.types.ts +96 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/AttachmentUtils.ts +316 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/CaseHistory/CaseHistory.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/FileUtility/FileUtility.css +7 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/FileUtility/FileUtility.tsx +30 -23
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Followers/Followers.tsx +2 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/QuickCreate/QuickCreate.tsx +1 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/SummaryItem/SummaryItem.css +9 -11
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/SummaryItem/SummaryItem.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/SummaryList/SummaryList.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ToDo/ToDo.css +1 -13
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ToDo/ToDo.tsx +38 -37
package/README.md
CHANGED
|
@@ -8,13 +8,13 @@ This project provides you with an environment to extend SDK-R/SDK-A by giving yo
|
|
|
8
8
|
|
|
9
9
|
Ensure you have access to the following in your system:
|
|
10
10
|
|
|
11
|
-
- Pega Infinity Server version
|
|
11
|
+
- Pega Infinity Server version 25.1 or later
|
|
12
12
|
|
|
13
13
|
- Git version 2.30 or later
|
|
14
14
|
|
|
15
|
-
- System node version
|
|
15
|
+
- System node version >= 24.4.1
|
|
16
16
|
|
|
17
|
-
- System npm version
|
|
17
|
+
- System npm version 11.4.2
|
|
18
18
|
|
|
19
19
|
- Installed SDK-R or SDK-A, as the below commands live in the package.json of the SDK-R/SDK-A an NOT in this npm module
|
|
20
20
|
|
package/package.json
CHANGED
package/src/constants.js
CHANGED
|
@@ -40,6 +40,8 @@ export const CATEGORY_CUSTOM = 'custom';
|
|
|
40
40
|
export const CATEGORY_OVERRIDE = 'override';
|
|
41
41
|
export const CATEGORY_CONSTELLATION = 'constellation';
|
|
42
42
|
|
|
43
|
+
export const MAX_RFT_CHARS = 64;
|
|
44
|
+
|
|
43
45
|
/* REST end points */
|
|
44
46
|
export const PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/publish_component';
|
|
45
47
|
export const LIST_COMPONENT_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/list_component';
|
|
@@ -321,10 +323,18 @@ export const COMPONENT_SCHEMA = {
|
|
|
321
323
|
name: 'Integer',
|
|
322
324
|
value: 'Integer'
|
|
323
325
|
},
|
|
326
|
+
{
|
|
327
|
+
name: 'Location',
|
|
328
|
+
value: 'Location'
|
|
329
|
+
},
|
|
324
330
|
{
|
|
325
331
|
name: 'Multi Select',
|
|
326
332
|
value: 'Multiselect'
|
|
327
333
|
},
|
|
334
|
+
{
|
|
335
|
+
name: 'Object Reference',
|
|
336
|
+
value: 'ObjectReference'
|
|
337
|
+
},
|
|
328
338
|
{
|
|
329
339
|
name: 'Percentage',
|
|
330
340
|
value: 'Percentage'
|
|
@@ -349,6 +359,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
349
359
|
name: 'Semantic Link',
|
|
350
360
|
value: 'SemanticLink'
|
|
351
361
|
},
|
|
362
|
+
{
|
|
363
|
+
name: 'Selectable Card',
|
|
364
|
+
value: 'SelectableCard'
|
|
365
|
+
},
|
|
352
366
|
{
|
|
353
367
|
name: 'Text Area',
|
|
354
368
|
value: 'TextArea'
|
|
@@ -503,6 +517,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
503
517
|
name: 'App Shell',
|
|
504
518
|
value: 'AppShell'
|
|
505
519
|
},
|
|
520
|
+
{
|
|
521
|
+
name: 'Advanced Search',
|
|
522
|
+
value: 'AdvancedSearch'
|
|
523
|
+
},
|
|
506
524
|
{
|
|
507
525
|
name: 'Banner Page',
|
|
508
526
|
value: 'BannerPage'
|
|
@@ -607,6 +625,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
607
625
|
name: 'Promoted Filters',
|
|
608
626
|
value: 'PromotedFilters'
|
|
609
627
|
},
|
|
628
|
+
{
|
|
629
|
+
name: 'Search Groups',
|
|
630
|
+
value: 'AdvancedSearch/SearchGroups'
|
|
631
|
+
},
|
|
610
632
|
{
|
|
611
633
|
name: 'Simple Table',
|
|
612
634
|
value: 'SimpleTable/SimpleTable'
|
|
@@ -750,6 +772,18 @@ export const COMPONENT_SCHEMA = {
|
|
|
750
772
|
name: 'Integer',
|
|
751
773
|
value: 'Integer'
|
|
752
774
|
},
|
|
775
|
+
{
|
|
776
|
+
name: 'Location',
|
|
777
|
+
value: 'Location'
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
name: 'Multi Select',
|
|
781
|
+
value: 'Multiselect'
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
name: 'Object Reference',
|
|
785
|
+
value: 'ObjectReference'
|
|
786
|
+
},
|
|
753
787
|
{
|
|
754
788
|
name: 'Percentage',
|
|
755
789
|
value: 'Percentage'
|
|
@@ -774,6 +808,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
774
808
|
name: 'Semantic Link',
|
|
775
809
|
value: 'SemanticLink'
|
|
776
810
|
},
|
|
811
|
+
{
|
|
812
|
+
name: 'Selectable Card',
|
|
813
|
+
value: 'SelectableCard'
|
|
814
|
+
},
|
|
777
815
|
{
|
|
778
816
|
name: 'Text',
|
|
779
817
|
value: 'Text'
|
|
@@ -940,6 +978,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
940
978
|
},
|
|
941
979
|
],
|
|
942
980
|
template: [
|
|
981
|
+
{
|
|
982
|
+
name: 'Advanced Search',
|
|
983
|
+
value: 'AdvancedSearch'
|
|
984
|
+
},
|
|
943
985
|
{
|
|
944
986
|
name: 'App Shell',
|
|
945
987
|
value: 'AppShell'
|
|
@@ -1060,6 +1102,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
1060
1102
|
name: 'Repeating Structures',
|
|
1061
1103
|
value: 'RepeatingStructures'
|
|
1062
1104
|
},
|
|
1105
|
+
{
|
|
1106
|
+
name: 'Search Groups',
|
|
1107
|
+
value: 'AdvancedSearch/SearchGroups'
|
|
1108
|
+
},
|
|
1063
1109
|
{
|
|
1064
1110
|
name: 'Simple Table',
|
|
1065
1111
|
value: 'SimpleTable'
|
|
@@ -10,7 +10,10 @@ import chalk from 'chalk';
|
|
|
10
10
|
|
|
11
11
|
import { checkPathAccess,
|
|
12
12
|
showVersion,
|
|
13
|
-
getFramework
|
|
13
|
+
getFramework,
|
|
14
|
+
updateComponentDefaultLibrary,
|
|
15
|
+
getStandaloneMaxComponentNameCount,
|
|
16
|
+
getStandaloneMaxLibraryCount} from '../../util.js';
|
|
14
17
|
import { CATEGORY_CONSTELLATION, CATEGORY_CUSTOM,
|
|
15
18
|
SDK_CONFIG_JSON_FILENAME,
|
|
16
19
|
DXCB_CONFIG,
|
|
@@ -70,8 +73,7 @@ export const compileMustacheTemplates = async (
|
|
|
70
73
|
type,
|
|
71
74
|
subtype,
|
|
72
75
|
description,
|
|
73
|
-
organization
|
|
74
|
-
allowedApplications
|
|
76
|
+
organization
|
|
75
77
|
}, componentType
|
|
76
78
|
) => {
|
|
77
79
|
const files = fs.readdirSync(componentDirectory);
|
|
@@ -115,19 +117,19 @@ export const compileMustacheTemplates = async (
|
|
|
115
117
|
|
|
116
118
|
const isPicklist = subtype === 'Picklist';
|
|
117
119
|
|
|
118
|
-
if (allowedApplications.trim() === '') {
|
|
119
|
-
|
|
120
|
-
} else {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
120
|
+
// if (allowedApplications.trim() === '') {
|
|
121
|
+
// allowedApplications = [];
|
|
122
|
+
// } else {
|
|
123
|
+
// if (allowedApplications.indexOf(',') !== -1) {
|
|
124
|
+
// allowedApplications = allowedApplications.split(',');
|
|
125
|
+
// }
|
|
126
|
+
// allowedApplications = [].concat(allowedApplications);
|
|
127
|
+
// }
|
|
126
128
|
|
|
127
129
|
const componentKeyKebab = convertIntoKebabCase(convertIntoPascalCase(componentKey));
|
|
128
130
|
const framework = await getFramework();
|
|
129
131
|
|
|
130
|
-
allowedApplications = allowedApplications.filter(el => !!el.trim()).map(el => el.trim());
|
|
132
|
+
// allowedApplications = allowedApplications.filter(el => !!el.trim()).map(el => el.trim());
|
|
131
133
|
files.forEach(file => {
|
|
132
134
|
|
|
133
135
|
const filePath = path.join(componentDirectory, file);
|
|
@@ -141,7 +143,6 @@ export const compileMustacheTemplates = async (
|
|
|
141
143
|
ORGANIZATION: organization,
|
|
142
144
|
VERSION: version,
|
|
143
145
|
LIBRARY: library,
|
|
144
|
-
ALLOWEDAPPS: JSON.stringify(allowedApplications),
|
|
145
146
|
TYPE: type,
|
|
146
147
|
SUB_TYPE: JSON.stringify(mustacheSubType),
|
|
147
148
|
DESCRIPTION: description || componentLabel,
|
|
@@ -188,8 +189,7 @@ export const validateCompile = async (
|
|
|
188
189
|
framework,
|
|
189
190
|
type,
|
|
190
191
|
subtype,
|
|
191
|
-
description
|
|
192
|
-
allowedApplications
|
|
192
|
+
description
|
|
193
193
|
},
|
|
194
194
|
options,
|
|
195
195
|
onlyCompanion = false
|
|
@@ -200,6 +200,12 @@ export const validateCompile = async (
|
|
|
200
200
|
sSubType = subtype.join("-");
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
// update defaults when changes
|
|
204
|
+
const configDef = await getComponentDefaults();
|
|
205
|
+
if (configDef.library == null || configDef.library !== library) {
|
|
206
|
+
await updateComponentDefaultLibrary(library);
|
|
207
|
+
}
|
|
208
|
+
|
|
203
209
|
const typeLC = type.toLowerCase();
|
|
204
210
|
|
|
205
211
|
await checkPathAccess(pegaConfigInternalJsonPath);
|
|
@@ -285,8 +291,7 @@ export const validateCompile = async (
|
|
|
285
291
|
type,
|
|
286
292
|
subtype,
|
|
287
293
|
description,
|
|
288
|
-
organization
|
|
289
|
-
allowedApplications
|
|
294
|
+
organization
|
|
290
295
|
}, "component");
|
|
291
296
|
}
|
|
292
297
|
|
|
@@ -305,8 +310,7 @@ export const validateCompile = async (
|
|
|
305
310
|
type,
|
|
306
311
|
subtype,
|
|
307
312
|
description,
|
|
308
|
-
organization
|
|
309
|
-
allowedApplications
|
|
313
|
+
organization
|
|
310
314
|
}, "associated");
|
|
311
315
|
|
|
312
316
|
if (!onlyCompanion) {
|
|
@@ -343,7 +347,6 @@ export default async options => {
|
|
|
343
347
|
type,
|
|
344
348
|
subtype,
|
|
345
349
|
description,
|
|
346
|
-
allowedApplications,
|
|
347
350
|
organization
|
|
348
351
|
},
|
|
349
352
|
options
|
|
@@ -369,6 +372,7 @@ export default async options => {
|
|
|
369
372
|
let componentDefaults = await getComponentDefaults();
|
|
370
373
|
componentDefaults.library = library;
|
|
371
374
|
|
|
375
|
+
const maxChars = await getStandaloneMaxComponentNameCount();
|
|
372
376
|
|
|
373
377
|
const questions = [
|
|
374
378
|
{
|
|
@@ -417,7 +421,7 @@ export default async options => {
|
|
|
417
421
|
},
|
|
418
422
|
{
|
|
419
423
|
name: 'componentName',
|
|
420
|
-
message:
|
|
424
|
+
message: `Enter component name (required, no spaces) (${maxChars} max chars)`,
|
|
421
425
|
validate: value => {
|
|
422
426
|
/* value should not be empty
|
|
423
427
|
It should not have spaces
|
|
@@ -425,6 +429,9 @@ export default async options => {
|
|
|
425
429
|
Only case-insensitive alphanumeric values are allowed
|
|
426
430
|
*/
|
|
427
431
|
if (value && !/^\d/.test(value) && value === sanitize(value)) {
|
|
432
|
+
if (value.length > maxChars) {
|
|
433
|
+
return `${value.length - maxChars} too many characters.`
|
|
434
|
+
}
|
|
428
435
|
return true;
|
|
429
436
|
}
|
|
430
437
|
return 'Only alphanumeric values are allowed, starting with alphabets';
|
|
@@ -450,10 +457,16 @@ export default async options => {
|
|
|
450
457
|
}
|
|
451
458
|
return 'Please provide semver compatible version e.g 0.0.1';
|
|
452
459
|
}
|
|
453
|
-
}
|
|
460
|
+
}
|
|
461
|
+
];
|
|
462
|
+
|
|
463
|
+
const answers = await inquirer.prompt(questions);
|
|
464
|
+
const maxLibChars = await getStandaloneMaxLibraryCount(answers.componentName);
|
|
465
|
+
|
|
466
|
+
const libQuestions = [
|
|
454
467
|
{
|
|
455
468
|
name: 'library',
|
|
456
|
-
message:
|
|
469
|
+
message: `Enter library name (required) (${maxLibChars} max chars)`,
|
|
457
470
|
default: componentDefaults.library,
|
|
458
471
|
validate: value => {
|
|
459
472
|
/* value should not be empty
|
|
@@ -462,16 +475,14 @@ export default async options => {
|
|
|
462
475
|
Only case-insensitive alphanumeric values are allowed
|
|
463
476
|
*/
|
|
464
477
|
if (value && !/^\d/.test(value) && value === sanitize(value)) {
|
|
478
|
+
if (value.length > maxLibChars) {
|
|
479
|
+
return `${value.length - maxLibChars} too many characters.`
|
|
480
|
+
}
|
|
465
481
|
return true;
|
|
466
482
|
}
|
|
467
483
|
return 'Only alphanumeric values are allowed, starting with alphabets';
|
|
468
484
|
}
|
|
469
485
|
},
|
|
470
|
-
{
|
|
471
|
-
name: 'allowedApplications',
|
|
472
|
-
message: 'Please enter the application names to be supported (comma-separated). ',
|
|
473
|
-
suffix: 'Keep empty for all applications'
|
|
474
|
-
},
|
|
475
486
|
{
|
|
476
487
|
name: 'description',
|
|
477
488
|
message: 'Enter description for the component (defaults to label)',
|
|
@@ -481,33 +492,21 @@ export default async options => {
|
|
|
481
492
|
}
|
|
482
493
|
];
|
|
483
494
|
|
|
484
|
-
await inquirer.prompt(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
componentLabel,
|
|
488
|
-
library,
|
|
489
|
-
version,
|
|
490
|
-
framework,
|
|
491
|
-
type,
|
|
492
|
-
subtype,
|
|
493
|
-
description,
|
|
494
|
-
allowedApplications
|
|
495
|
-
} = answers;
|
|
496
|
-
await validateCompile(
|
|
495
|
+
const libAnswers = await inquirer.prompt(libQuestions);
|
|
496
|
+
|
|
497
|
+
await validateCompile(
|
|
497
498
|
{
|
|
498
|
-
componentName,
|
|
499
|
-
componentLabel,
|
|
500
|
-
library,
|
|
501
|
-
version,
|
|
499
|
+
componentName : answers.componentName,
|
|
500
|
+
componentLabel : answers.componentLabel,
|
|
501
|
+
library: libAnswers.library,
|
|
502
|
+
version: answers.version,
|
|
502
503
|
framework,
|
|
503
|
-
type,
|
|
504
|
-
subtype,
|
|
505
|
-
description,
|
|
506
|
-
allowedApplications,
|
|
504
|
+
type : answers.type,
|
|
505
|
+
subtype : answers.subtype,
|
|
506
|
+
description: libAnswers.descriptions,
|
|
507
507
|
organization
|
|
508
508
|
},
|
|
509
509
|
options
|
|
510
|
-
);
|
|
511
|
-
});
|
|
510
|
+
);
|
|
512
511
|
}
|
|
513
512
|
};
|
package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/date.ts.mustache
CHANGED
|
@@ -64,7 +64,6 @@ const types = ['fromNow', 'customFormat'];
|
|
|
64
64
|
function DateFormatter(
|
|
65
65
|
value,
|
|
66
66
|
// @ts-ignore
|
|
67
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
68
67
|
{ type = types[1], format = 'DD/MM/YYYY', timezone, fieldType } = {}
|
|
69
68
|
) {
|
|
70
69
|
if (!value) return value;
|
|
@@ -108,7 +107,6 @@ function DateFormatter(
|
|
|
108
107
|
export function format(value, options) {
|
|
109
108
|
if (!value) return null;
|
|
110
109
|
const { type, locale, timezone, formatter, translate } = options;
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
112
110
|
const { format, variant } = (constellationToCosmosFormatterMap.get(type) as any).get(formatter);
|
|
113
111
|
return formatDateTime(parseToDate(value), {
|
|
114
112
|
t: translate,
|
package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/index.tsx.mustache
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
|
-
/* eslint-disable sonarjs/cognitive-complexity */
|
|
3
1
|
import { useEffect, useRef, useState, useMemo, type MutableRefObject, type SetStateAction } from 'react';
|
|
4
2
|
import { ComboBox, menuHelpers, debounce, throttle, Button, Icon, withConfiguration, type MenuGroupProps, type MenuItemProps } from '@pega/cosmos-react-core';
|
|
5
3
|
import get from 'lodash.get';
|
|
@@ -180,6 +178,7 @@ export const doSearch = (
|
|
|
180
178
|
let listIndex = -1;
|
|
181
179
|
const findSelectedItem = progressivePaginatedRecords.find(
|
|
182
180
|
(record: { id: string }, index: number) => {
|
|
181
|
+
// @ts-ignore
|
|
183
182
|
if (record.id === selectedItem?.id) {
|
|
184
183
|
listIndex = index;
|
|
185
184
|
return true;
|
|
@@ -412,6 +411,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
412
411
|
const { isSearchableOnKey } = props;
|
|
413
412
|
|
|
414
413
|
const [items, setItems] = useState(() => []);
|
|
414
|
+
// eslint-disable-next-line prefer-const
|
|
415
415
|
let selectItem: ((id: string, ev?: any) => void) | ((arg0: never) => void);
|
|
416
416
|
|
|
417
417
|
// convert associated to datapage listtype and transform props
|
|
@@ -830,8 +830,10 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
830
830
|
const clearSelections = () => {
|
|
831
831
|
// @ts-ignore
|
|
832
832
|
setItems(cur =>
|
|
833
|
+
// @ts-ignore
|
|
833
834
|
menuHelpers.mapTree(cur, item => {
|
|
834
835
|
return {
|
|
836
|
+
// @ts-ignore
|
|
835
837
|
...item,
|
|
836
838
|
selected: false
|
|
837
839
|
};
|
|
@@ -1114,8 +1116,11 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
1114
1116
|
onChange={onChangeHandler}
|
|
1115
1117
|
onBlur={onBlurHandler}
|
|
1116
1118
|
menu={{
|
|
1119
|
+
// @ts-ignore
|
|
1117
1120
|
items: menuHelpers.mapTree(items, (item) => ({
|
|
1121
|
+
// @ts-ignore
|
|
1118
1122
|
...item,
|
|
1123
|
+
// @ts-ignore
|
|
1119
1124
|
testId: item.id ?? undefined,
|
|
1120
1125
|
// @ts-ignore
|
|
1121
1126
|
selected: item.items ? undefined : !!item.selected || item.id === selected?.id
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable sonarjs/no-collapsible-if */
|
|
2
|
-
/* eslint-disable func-names */
|
|
3
1
|
// @ts-nocheck
|
|
4
2
|
import { splitConditionTree } from '@pega/cosmos-react-condition-builder';
|
|
5
3
|
import cloneDeep from 'lodash/cloneDeep.js';
|
|
@@ -54,7 +52,6 @@ export function launchLocalAction(getPConnect, rowContext, action, cb) {
|
|
|
54
52
|
// "ASSIGN-WORKLIST ON8TTL-C11NGALL-WORK LAT-3!ENTERINFO_FLOW_1" use case
|
|
55
53
|
const [assignKey] = assignmentID.split('!');
|
|
56
54
|
const [, className, workId] = assignKey.split(' ');
|
|
57
|
-
// eslint-disable-next-line prefer-template
|
|
58
55
|
caseID = className + ' ' + workId;
|
|
59
56
|
}
|
|
60
57
|
openLocalAction(action.ID, {
|
|
@@ -271,7 +268,6 @@ export function getDescriptorsFieldName(property, pageClass) {
|
|
|
271
268
|
return property;
|
|
272
269
|
}
|
|
273
270
|
|
|
274
|
-
// eslint-disable-next-line @typescript-eslint/default-param-last, sonarjs/cognitive-complexity
|
|
275
271
|
export function preparePatchQueryFields(fields, isDataObject = false, classID = '', getPConnect) {
|
|
276
272
|
const queryFields = [];
|
|
277
273
|
// Descriptors can be configured only for single selectionMode properties
|
package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/index.tsx.mustache
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-nested-ternary */
|
|
2
1
|
import { useMemo } from 'react';
|
|
3
2
|
import { RadioButton, RadioButtonGroup, withConfiguration } from '@pega/cosmos-react-core';
|
|
4
3
|
import type { PConnFieldProps } from './PConnProps';
|
|
@@ -77,7 +76,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
77
76
|
const propName: string = stateProps.value;
|
|
78
77
|
const configProps = pConn.getConfigProps();
|
|
79
78
|
const className = pConn.getCaseInfo().getClassName();
|
|
80
|
-
|
|
79
|
+
|
|
81
80
|
// @ts-ignore
|
|
82
81
|
let configProperty = pConn.getRawMetadata()?.config?.value || '';
|
|
83
82
|
configProperty = configProperty.startsWith('@P') ? configProperty.substring(3) : configProperty;
|