@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
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
.quick-link-ul-list {
|
|
2
2
|
list-style: none;
|
|
3
3
|
padding: 0;
|
|
4
|
-
grid-template-columns: repeat(auto-
|
|
4
|
+
grid-template-columns: repeat(auto-fit, minmax(min(20ch, 100%), 1fr));
|
|
5
5
|
display: grid;
|
|
6
6
|
gap: calc(1rem);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.quick-link-list {
|
|
10
|
-
background-color: #3f51b5;
|
|
11
|
-
color: white;
|
|
12
|
-
border-radius: 8px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
.quick-link-button {
|
|
16
10
|
text-transform: capitalize !important;
|
|
17
11
|
font-size: 16px !important;
|
|
18
|
-
color:
|
|
19
|
-
|
|
20
|
-
height: 6rem;
|
|
12
|
+
color: var(--app-text-color) !important;
|
|
13
|
+
height: 10rem;
|
|
21
14
|
width: 100%;
|
|
22
|
-
justify-content: start !important;
|
|
23
15
|
}
|
|
24
16
|
|
|
25
17
|
.quick-link-icon {
|
|
26
|
-
width: 1em;
|
|
27
|
-
height: 1em;
|
|
28
18
|
flex-shrink: 0;
|
|
29
|
-
|
|
19
|
+
object-fit: contain;
|
|
20
|
+
width: 3rem;
|
|
21
|
+
height: 3rem;
|
|
30
22
|
}
|
|
31
23
|
|
|
32
24
|
.quick-link-button-span {
|
|
33
25
|
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
34
27
|
align-items: center;
|
|
35
28
|
gap: 0.5rem;
|
|
36
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Button } from '@mui/material';
|
|
2
|
+
import { makeStyles } from '@mui/styles';
|
|
2
3
|
import './WssQuickCreate.css';
|
|
3
4
|
|
|
4
5
|
// WssQuickCreate is one of the few components that does NOT have getPConnect.
|
|
@@ -9,19 +10,29 @@ interface WssQuickCreateProps {
|
|
|
9
10
|
actions?: any[];
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
const useStyles = makeStyles(theme => ({
|
|
14
|
+
quickLinkList: {
|
|
15
|
+
backgroundColor: theme.palette.mode === 'dark' ? 'var(--app-background-color)' : 'var(--link-button-color)',
|
|
16
|
+
color: 'var(--app-text-color)',
|
|
17
|
+
borderRadius: '16px',
|
|
18
|
+
border: '1px solid var(--app-primary-color)'
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
|
|
12
22
|
export default function WssQuickCreate(props: WssQuickCreateProps) {
|
|
13
23
|
const { heading, actions } = props;
|
|
24
|
+
const classes = useStyles();
|
|
14
25
|
|
|
15
26
|
return (
|
|
16
27
|
<div>
|
|
17
|
-
<h1 id='quick-links-heading' className='quick-
|
|
28
|
+
<h1 id='quick-links-heading' className='quick-links-heading'>
|
|
18
29
|
{heading}
|
|
19
30
|
</h1>
|
|
20
31
|
<ul id='quick-links' className='quick-link-ul-list'>
|
|
21
32
|
{actions &&
|
|
22
33
|
actions.map(element => {
|
|
23
34
|
return (
|
|
24
|
-
<li className=
|
|
35
|
+
<li className={classes.quickLinkList} key={element.label}>
|
|
25
36
|
<Button className='quick-link-button' onClick={element.onClick}>
|
|
26
37
|
<span className='quick-link-button-span'>
|
|
27
38
|
{element.icon && <img className='quick-link-icon' src={element.icon} />}
|
package/tests/assets/sdk-r/components/createAll/override-sdk/field/AutoComplete/AutoComplete.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
|
7
7
|
import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
|
|
8
8
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
9
9
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
10
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
11
11
|
|
|
12
12
|
interface IOption {
|
|
13
13
|
key: string;
|
package/tests/assets/sdk-r/components/createAll/override-sdk/field/CancelAlert/CancelAlert.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
|
-
background-color:
|
|
8
|
+
background-color: var(--modal-background-color);
|
|
9
9
|
position: fixed;
|
|
10
10
|
z-index: 9999;
|
|
11
11
|
top: 0px;
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
display: table;
|
|
17
17
|
margin: auto;
|
|
18
18
|
min-width: 550px;
|
|
19
|
-
background-color:
|
|
20
|
-
border: 1px solid
|
|
19
|
+
background-color: var(--modal-top-color);
|
|
20
|
+
border: 1px solid var(--modal-border-color);
|
|
21
21
|
border-radius: 10px;
|
|
22
22
|
padding: 20px;
|
|
23
|
-
box-shadow: 0 0 10px 3px
|
|
23
|
+
box-shadow: 0 0 10px 3px var(--modal-box-shadow-color);
|
|
24
24
|
}
|
package/tests/assets/sdk-r/components/createAll/override-sdk/field/CancelAlert/CancelAlert.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { Button,
|
|
2
|
+
import { Button, Grid2, IconButton, Snackbar } from '@mui/material';
|
|
3
3
|
import CloseIcon from '@mui/icons-material/Close';
|
|
4
4
|
|
|
5
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
5
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
6
|
import './CancelAlert.css';
|
|
7
7
|
|
|
8
8
|
interface CancelAlertProps extends PConnFieldProps {
|
|
@@ -58,14 +58,12 @@ export default function CancelAlert(props: CancelAlertProps) {
|
|
|
58
58
|
function cancelHandler() {
|
|
59
59
|
if (isReverseCoexistence) {
|
|
60
60
|
dismiss(true);
|
|
61
|
-
// @ts-ignore - An argument for 'payload' was not provided.
|
|
62
61
|
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.REVERSE_COEXISTENCE_EVENTS.HANDLE_DISCARD);
|
|
63
62
|
} else if (!isDataObject && !isLocalAction && !isBulkAction) {
|
|
64
63
|
disableButton(btnIds.DELETE);
|
|
65
64
|
actionsAPI
|
|
66
65
|
.deleteCaseInCreateStage(containerItemID, hideDelete)
|
|
67
66
|
.then(() => {
|
|
68
|
-
// @ts-ignore - An argument for 'payload' was not provided.
|
|
69
67
|
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);
|
|
70
68
|
})
|
|
71
69
|
.catch(() => {
|
|
@@ -78,13 +76,12 @@ export default function CancelAlert(props: CancelAlertProps) {
|
|
|
78
76
|
});
|
|
79
77
|
} else if (isLocalAction) {
|
|
80
78
|
dismiss(true);
|
|
81
|
-
actionsAPI.cancelAssignment(containerItemID);
|
|
79
|
+
actionsAPI.cancelAssignment(containerItemID, false);
|
|
82
80
|
} else if (isBulkAction) {
|
|
83
81
|
dismiss(true);
|
|
84
82
|
actionsAPI.cancelBulkAction(containerItemID);
|
|
85
83
|
} else {
|
|
86
84
|
dismiss(true);
|
|
87
|
-
// @ts-ignore - Argument of type '{ containerItemID: string; skipReleaseLockRequest: any; }' is not assignable to parameter of type 'ContainerInfo'.
|
|
88
85
|
containerManagerAPI.removeContainerItem({ containerItemID, skipReleaseLockRequest });
|
|
89
86
|
}
|
|
90
87
|
}
|
|
@@ -128,10 +125,10 @@ export default function CancelAlert(props: CancelAlertProps) {
|
|
|
128
125
|
<p>{localizedVal(content, localeCategory)}</p>
|
|
129
126
|
</div>
|
|
130
127
|
<div className='action-controls'>
|
|
131
|
-
<
|
|
132
|
-
<
|
|
133
|
-
<
|
|
134
|
-
</
|
|
128
|
+
<Grid2 container spacing={4} justifyContent='space-between'>
|
|
129
|
+
<Grid2>{leftButton}</Grid2>
|
|
130
|
+
<Grid2>{rightButton}</Grid2>
|
|
131
|
+
</Grid2>
|
|
135
132
|
</div>
|
|
136
133
|
</div>
|
|
137
134
|
</div>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable react/no-array-index-key */
|
|
2
1
|
import { useState, useEffect } from 'react';
|
|
3
2
|
import { Checkbox, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel } from '@mui/material';
|
|
4
3
|
import makeStyles from '@mui/styles/makeStyles';
|
|
@@ -6,7 +5,7 @@ import makeStyles from '@mui/styles/makeStyles';
|
|
|
6
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
7
6
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
8
7
|
import { insertInstruction, deleteInstruction, updateNewInstuctions } from '@pega/react-sdk-components/lib/components/helpers/instructions-utils';
|
|
9
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
9
|
|
|
11
10
|
interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
|
|
12
11
|
// If any, enter additional props that only exist on Checkbox here
|
|
@@ -21,18 +20,33 @@ interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
|
|
|
21
20
|
primaryField: string;
|
|
22
21
|
readonlyContextList: any;
|
|
23
22
|
referenceList: string;
|
|
23
|
+
variant?: string;
|
|
24
|
+
hideFieldLabels: boolean;
|
|
25
|
+
additionalProps: any;
|
|
26
|
+
imagePosition: string;
|
|
27
|
+
imageSize: string;
|
|
28
|
+
showImageDescription: string;
|
|
29
|
+
renderMode: string;
|
|
30
|
+
image: string;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
const useStyles = makeStyles(() => ({
|
|
27
34
|
checkbox: {
|
|
28
35
|
display: 'flex',
|
|
29
36
|
flexDirection: 'column'
|
|
37
|
+
},
|
|
38
|
+
selectableCard: {
|
|
39
|
+
display: 'grid',
|
|
40
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 40ch), 1fr))',
|
|
41
|
+
gridAutoRows: '1fr',
|
|
42
|
+
gap: '0.5rem'
|
|
30
43
|
}
|
|
31
44
|
}));
|
|
32
45
|
|
|
33
46
|
export default function CheckboxComponent(props: CheckboxProps) {
|
|
34
47
|
// Get emitted components from map (so we can get any override that may exist)
|
|
35
48
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
49
|
+
const SelectableCard = getComponentFromMap('SelectableCard');
|
|
36
50
|
|
|
37
51
|
const {
|
|
38
52
|
getPConnect,
|
|
@@ -56,8 +70,20 @@ export default function CheckboxComponent(props: CheckboxProps) {
|
|
|
56
70
|
selectionList,
|
|
57
71
|
primaryField,
|
|
58
72
|
referenceList,
|
|
59
|
-
readonlyContextList: selectedvalues
|
|
73
|
+
readonlyContextList: selectedvalues,
|
|
74
|
+
variant,
|
|
75
|
+
hideFieldLabels,
|
|
76
|
+
additionalProps,
|
|
77
|
+
imagePosition,
|
|
78
|
+
imageSize,
|
|
79
|
+
showImageDescription,
|
|
80
|
+
renderMode,
|
|
81
|
+
image
|
|
60
82
|
} = props;
|
|
83
|
+
const readOnlyMode = renderMode === 'ReadOnly' || displayMode === 'DISPLAY_ONLY' || readOnly;
|
|
84
|
+
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
86
|
+
const [theSelectedButton, setSelectedButton] = useState(value);
|
|
61
87
|
const classes = useStyles();
|
|
62
88
|
const helperTextToDisplay = validatemessage || helperText;
|
|
63
89
|
const thePConn = getPConnect();
|
|
@@ -71,12 +97,17 @@ export default function CheckboxComponent(props: CheckboxProps) {
|
|
|
71
97
|
}, [value]);
|
|
72
98
|
|
|
73
99
|
useEffect(() => {
|
|
74
|
-
if (referenceList?.length > 0) {
|
|
100
|
+
if (referenceList?.length > 0 && !readOnlyMode) {
|
|
75
101
|
thePConn.setReferenceList(selectionList);
|
|
76
102
|
updateNewInstuctions(thePConn, selectionList);
|
|
77
103
|
}
|
|
78
104
|
}, [thePConn]);
|
|
79
105
|
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
// This update theSelectedButton which will update the UI to show the selected button correctly
|
|
108
|
+
setSelectedButton(value);
|
|
109
|
+
}, [value]);
|
|
110
|
+
|
|
80
111
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
81
112
|
return <FieldValueList name={hideLabel ? '' : caption} value={value ? trueLabel : falseLabel} />;
|
|
82
113
|
}
|
|
@@ -93,6 +124,68 @@ export default function CheckboxComponent(props: CheckboxProps) {
|
|
|
93
124
|
thePConn.getValidationApi().validate(event.target.checked);
|
|
94
125
|
};
|
|
95
126
|
|
|
127
|
+
const handleCheckboxChange = (event, item) => {
|
|
128
|
+
if (event.target.checked) {
|
|
129
|
+
insertInstruction(thePConn, selectionList, selectionKey, primaryField, item);
|
|
130
|
+
} else {
|
|
131
|
+
deleteInstruction(thePConn, selectionList, selectionKey, item);
|
|
132
|
+
}
|
|
133
|
+
thePConn.clearErrorMessages({ property: selectionList });
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const actions = thePConn.getActionsApi();
|
|
137
|
+
|
|
138
|
+
const commonProps = {
|
|
139
|
+
...additionalProps,
|
|
140
|
+
className: 'standard',
|
|
141
|
+
disabled,
|
|
142
|
+
readOnly,
|
|
143
|
+
onClick: (actions as any).onClick
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
if (variant === 'card') {
|
|
147
|
+
return (
|
|
148
|
+
<div>
|
|
149
|
+
<h4 style={{ marginTop: 0, marginBottom: 0 }}>{label}</h4>
|
|
150
|
+
<div className={classes.selectableCard}>
|
|
151
|
+
<SelectableCard
|
|
152
|
+
{...commonProps}
|
|
153
|
+
testId={testId}
|
|
154
|
+
displayMode={displayMode}
|
|
155
|
+
dataSource={datasource}
|
|
156
|
+
getPConnect={getPConnect}
|
|
157
|
+
readOnly={renderMode === 'ReadOnly' || displayMode === 'DISPLAY_ONLY' || readOnly}
|
|
158
|
+
onChange={e => {
|
|
159
|
+
e.stopPropagation();
|
|
160
|
+
const recordKey = selectionKey?.split('.').pop();
|
|
161
|
+
const selectedItem = datasource?.source?.find(item => item[recordKey as any] === e.target.id) ?? {};
|
|
162
|
+
handleCheckboxChange(e, {
|
|
163
|
+
id: selectedItem[recordKey as any],
|
|
164
|
+
primary: selectedItem[recordKey as any]
|
|
165
|
+
});
|
|
166
|
+
}}
|
|
167
|
+
onBlur={() => {
|
|
168
|
+
thePConn.getValidationApi().validate(selectedvalues, selectionList);
|
|
169
|
+
}}
|
|
170
|
+
hideFieldLabels={hideFieldLabels}
|
|
171
|
+
recordKey={selectionKey?.split('.').pop()}
|
|
172
|
+
cardLabel={primaryField.split('.').pop()}
|
|
173
|
+
image={{
|
|
174
|
+
imagePosition,
|
|
175
|
+
imageSize,
|
|
176
|
+
showImageDescription,
|
|
177
|
+
imageField: image?.split('.').pop(),
|
|
178
|
+
imageDescription: (thePConn?.getRawMetadata()?.config as any).imageDescription?.split('.').pop()
|
|
179
|
+
}}
|
|
180
|
+
readOnlyList={selectedvalues}
|
|
181
|
+
type='checkbox'
|
|
182
|
+
showNoValue={(renderMode === 'ReadOnly' || readOnly || displayMode === 'DISPLAY_ONLY') && selectedvalues.length === 0}
|
|
183
|
+
/>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
96
189
|
const handleChangeMultiMode = (event, element) => {
|
|
97
190
|
if (event.target.checked) {
|
|
98
191
|
insertInstruction(thePConn, selectionList, selectionKey, primaryField, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { NumericFormat } from 'react-number-format';
|
|
3
3
|
import { TextField } from '@mui/material';
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
5
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
6
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
7
7
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
8
8
|
import { getCurrencyCharacters, getCurrencyOptions } from './currency-utils';
|
|
@@ -45,9 +45,11 @@ export default function Currency(props: CurrrencyProps) {
|
|
|
45
45
|
const helperTextToDisplay = validatemessage || helperText;
|
|
46
46
|
const [values, setValues] = useState(value.toString());
|
|
47
47
|
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const testProps: any = { 'data-test-id': testId };
|
|
49
|
+
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
setValues(value.toString());
|
|
52
|
+
}, [value]);
|
|
51
53
|
|
|
52
54
|
// currencySymbols looks like this: { theCurrencySymbol: '$', theDecimalIndicator: '.', theSeparator: ',' }
|
|
53
55
|
const theSymbols = getCurrencyCharacters(currencyISOCode);
|
|
@@ -56,7 +58,7 @@ export default function Currency(props: CurrrencyProps) {
|
|
|
56
58
|
const theCurrSep = theSymbols.theDigitGroupSeparator;
|
|
57
59
|
|
|
58
60
|
const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
|
|
59
|
-
const formattedValue = format(value, pConn.getComponentName()
|
|
61
|
+
const formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
|
|
60
62
|
|
|
61
63
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
62
64
|
|
|
@@ -86,6 +88,7 @@ export default function Currency(props: CurrrencyProps) {
|
|
|
86
88
|
return (
|
|
87
89
|
<NumericFormat
|
|
88
90
|
valueIsNumericString
|
|
91
|
+
variant={readOnly ? 'standard' : 'outlined'}
|
|
89
92
|
label={label}
|
|
90
93
|
helperText={helperTextToDisplay}
|
|
91
94
|
placeholder={placeholder ?? ''}
|
|
@@ -101,7 +104,7 @@ export default function Currency(props: CurrrencyProps) {
|
|
|
101
104
|
{...currencyProp}
|
|
102
105
|
decimalScale={allowDecimals !== false ? 2 : 0}
|
|
103
106
|
fixedDecimalScale={allowDecimals}
|
|
104
|
-
|
|
107
|
+
slotProps={{ input: { ...readOnlyProp, inputProps: { ...testProps } } }}
|
|
105
108
|
customInput={TextField}
|
|
106
109
|
/>
|
|
107
110
|
);
|
package/tests/assets/sdk-r/components/createAll/override-sdk/field/Currency/currency-utils.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-named-default
|
|
2
1
|
import { default as CurrencyAlias } from '@pega/react-sdk-components/lib/components/helpers/formatters/Currency';
|
|
3
|
-
|
|
2
|
+
|
|
4
3
|
import { default as CurrencyMapAlias } from '@pega/react-sdk-components/lib/components/helpers/formatters/CurrencyMap';
|
|
5
4
|
|
|
6
5
|
export const getCurrencyOptions = (inISOCode: string) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
3
3
|
import dayjs, { Dayjs } from 'dayjs';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event
|
|
|
6
6
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
7
7
|
import { dateFormatInfoDefault, getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
8
8
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
9
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
10
|
|
|
11
11
|
// Will return the date string in YYYY-MM-DD format which we'll be POSTing to the server
|
|
12
12
|
function getFormattedDate(date) {
|
|
@@ -39,6 +39,10 @@ export default function Date(props: DateProps) {
|
|
|
39
39
|
dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
|
|
40
40
|
dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
|
|
41
41
|
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
setDateValue(dayjs(value));
|
|
44
|
+
}, [value]);
|
|
45
|
+
|
|
42
46
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
43
47
|
const formattedDate = format(props.value, 'date', {
|
|
44
48
|
format: dateFormatInfo.dateFormatString
|
|
@@ -58,11 +62,7 @@ export default function Date(props: DateProps) {
|
|
|
58
62
|
return <TextInput {...props} />;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
testProp = {
|
|
64
|
-
'data-test-id': testId
|
|
65
|
-
};
|
|
65
|
+
const testProps: any = { 'data-test-id': testId };
|
|
66
66
|
|
|
67
67
|
const handleChange = date => {
|
|
68
68
|
if (date && date.isValid()) {
|
|
@@ -85,7 +85,7 @@ export default function Date(props: DateProps) {
|
|
|
85
85
|
error: status === 'error',
|
|
86
86
|
helperText: helperTextToDisplay,
|
|
87
87
|
size: 'small',
|
|
88
|
-
InputProps: { ...
|
|
88
|
+
InputProps: { ...testProps }
|
|
89
89
|
}
|
|
90
90
|
}}
|
|
91
91
|
onChange={handleChange}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
|
|
3
3
|
import dayjs, { Dayjs } from 'dayjs';
|
|
4
|
-
|
|
4
|
+
import DateFormatter from '@pega/react-sdk-components/lib/components/helpers/formatters/Date';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
6
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
7
7
|
import { dateFormatInfoDefault, getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
8
8
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
9
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
10
|
|
|
11
11
|
interface DateTimeProps extends PConnFieldProps {
|
|
12
12
|
// If any, enter additional props that only exist on DateTime here
|
|
@@ -19,7 +19,10 @@ export default function DateTime(props: DateTimeProps) {
|
|
|
19
19
|
|
|
20
20
|
const { getPConnect, label, required, disabled, value = '', validatemessage, status, readOnly, testId, helperText, displayMode, hideLabel } = props;
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const environmentInfo = PCore.getEnvironmentInfo();
|
|
23
|
+
const timezone = environmentInfo && environmentInfo.getTimeZone();
|
|
24
|
+
|
|
25
|
+
const [dateValue, setDateValue] = useState<Dayjs | null>(value ? dayjs(DateFormatter.convertToTimezone(value, { timezone })) : null);
|
|
23
26
|
|
|
24
27
|
const pConn = getPConnect();
|
|
25
28
|
const actions = pConn.getActionsApi();
|
|
@@ -34,6 +37,10 @@ export default function DateTime(props: DateTimeProps) {
|
|
|
34
37
|
dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
|
|
35
38
|
dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
|
|
36
39
|
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
setDateValue(dayjs(DateFormatter.convertToTimezone(value, { timezone })));
|
|
42
|
+
}, [value]);
|
|
43
|
+
|
|
37
44
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
38
45
|
const formattedDateTime = format(props.value, 'datetime', {
|
|
39
46
|
format: `${dateFormatInfo.dateFormatString} hh:mm a`
|
|
@@ -53,15 +60,12 @@ export default function DateTime(props: DateTimeProps) {
|
|
|
53
60
|
return <TextInput {...props} value={formattedDateTime} />;
|
|
54
61
|
}
|
|
55
62
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
testProp = {
|
|
59
|
-
'data-test-id': testId
|
|
60
|
-
};
|
|
63
|
+
const testProps: any = { 'data-test-id': testId };
|
|
61
64
|
|
|
62
65
|
const handleChange = date => {
|
|
63
|
-
|
|
64
|
-
const changeValue =
|
|
66
|
+
const timeZoneDateTime = (dayjs as any).tz(date.format('YYYY-MM-DDTHH:mm:ss'), timezone);
|
|
67
|
+
const changeValue = timeZoneDateTime && timeZoneDateTime.isValid() ? timeZoneDateTime.toISOString() : '';
|
|
68
|
+
setDateValue(timeZoneDateTime);
|
|
65
69
|
handleEvent(actions, 'changeNblur', propName, changeValue);
|
|
66
70
|
};
|
|
67
71
|
|
|
@@ -81,7 +85,6 @@ export default function DateTime(props: DateTimeProps) {
|
|
|
81
85
|
label={label}
|
|
82
86
|
value={dateValue}
|
|
83
87
|
onChange={handleChange}
|
|
84
|
-
data-test-id={testId}
|
|
85
88
|
slotProps={{
|
|
86
89
|
textField: {
|
|
87
90
|
variant: 'outlined',
|
|
@@ -90,7 +93,7 @@ export default function DateTime(props: DateTimeProps) {
|
|
|
90
93
|
error: status === 'error',
|
|
91
94
|
helperText: helperTextToDisplay,
|
|
92
95
|
size: 'small',
|
|
93
|
-
InputProps: { ...
|
|
96
|
+
InputProps: { ...testProps }
|
|
94
97
|
}
|
|
95
98
|
}}
|
|
96
99
|
/>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NumericFormat } from 'react-number-format';
|
|
2
2
|
import { TextField } from '@mui/material';
|
|
3
|
-
import { useState } from 'react';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
4
|
import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
6
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
7
7
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
8
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
9
|
|
|
10
10
|
/* Using react-number-format component here, since it allows formatting decimal values,
|
|
11
11
|
as per the locale.
|
|
@@ -58,6 +58,10 @@ export default function Decimal(props: DecimalProps) {
|
|
|
58
58
|
|
|
59
59
|
const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
|
|
60
60
|
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
setValues(value.toString());
|
|
63
|
+
}, [value]);
|
|
64
|
+
|
|
61
65
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
62
66
|
|
|
63
67
|
if (readOnly) {
|
|
@@ -68,7 +72,7 @@ export default function Decimal(props: DecimalProps) {
|
|
|
68
72
|
if (formatter === 'Currency') {
|
|
69
73
|
formattedValue = format(value, formatter.toLowerCase(), theCurrencyOptions);
|
|
70
74
|
} else {
|
|
71
|
-
formattedValue = format(value, pConn.getComponentName()
|
|
75
|
+
formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
@@ -79,9 +83,7 @@ export default function Decimal(props: DecimalProps) {
|
|
|
79
83
|
return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
|
-
const
|
|
83
|
-
'data-test-id': testId
|
|
84
|
-
};
|
|
86
|
+
const testProps: any = { 'data-test-id': testId };
|
|
85
87
|
|
|
86
88
|
function decimalOnBlur() {
|
|
87
89
|
handleEvent(actions, 'changeNblur', propName, values);
|
|
@@ -109,10 +111,11 @@ export default function Decimal(props: DecimalProps) {
|
|
|
109
111
|
}}
|
|
110
112
|
onBlur={!readOnly ? decimalOnBlur : undefined}
|
|
111
113
|
prefix={readOnly && formatter === 'Currency' ? theCurrSym : ''}
|
|
114
|
+
suffix={readOnly && formatter === 'Percentage' ? '%' : ''}
|
|
112
115
|
decimalSeparator={theCurrDec}
|
|
113
116
|
thousandSeparator={showGroupSeparators ? theCurrSep : ''}
|
|
114
117
|
decimalScale={readOnly && formatter === 'Currency' ? undefined : decimalPrecision}
|
|
115
|
-
|
|
118
|
+
slotProps={{ input: { ...readOnlyProp, inputProps: { ...testProps } } }}
|
|
116
119
|
customInput={TextField}
|
|
117
120
|
/>
|
|
118
121
|
);
|
|
@@ -6,7 +6,7 @@ import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
|
6
6
|
import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
|
|
7
7
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
8
8
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
9
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
10
|
|
|
11
11
|
interface IOption {
|
|
12
12
|
key: string;
|
|
@@ -137,7 +137,7 @@ export default function Dropdown(props: DropdownProps) {
|
|
|
137
137
|
}, [theDatasource]);
|
|
138
138
|
|
|
139
139
|
useEffect(() => {
|
|
140
|
-
if (
|
|
140
|
+
if (listType !== 'associated' && typeof datasource === 'string') {
|
|
141
141
|
getDataPage(datasource, parameters, context).then((results: any) => {
|
|
142
142
|
const optionsData: any[] = [];
|
|
143
143
|
const displayColumn = getDisplayFieldsMetaData(columns);
|
|
@@ -165,34 +165,38 @@ export default function Dropdown(props: DropdownProps) {
|
|
|
165
165
|
|
|
166
166
|
let readOnlyProp = {};
|
|
167
167
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
const displayFn = (displayM, val) => {
|
|
169
|
+
if (displayM === 'DISPLAY_ONLY') {
|
|
170
|
+
return (
|
|
171
|
+
<FieldValueList
|
|
172
|
+
name={hideLabel ? '' : label}
|
|
173
|
+
value={thePConn.getLocalizedValue(val, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
174
|
+
/>
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (displayM === 'STACKED_LARGE_VAL') {
|
|
179
|
+
return (
|
|
180
|
+
<FieldValueList
|
|
181
|
+
name={hideLabel ? '' : label}
|
|
182
|
+
value={thePConn.getLocalizedValue(val, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
183
|
+
variant='stacked'
|
|
184
|
+
/>
|
|
185
|
+
);
|
|
186
|
+
}
|
|
177
187
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
value={thePConn.getLocalizedValue(value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
184
|
-
variant='stacked'
|
|
185
|
-
/>
|
|
186
|
-
);
|
|
188
|
+
return null;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
if (displayMode) {
|
|
192
|
+
return displayFn(displayMode, options.find(option => option.key === value)?.value || value);
|
|
187
193
|
}
|
|
188
194
|
|
|
189
195
|
if (readOnly) {
|
|
190
196
|
readOnlyProp = { readOnly: true };
|
|
191
197
|
}
|
|
192
198
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
testProp = {
|
|
199
|
+
const testProps: any = {
|
|
196
200
|
'data-test-id': testId
|
|
197
201
|
};
|
|
198
202
|
|
|
@@ -220,11 +224,12 @@ export default function Dropdown(props: DropdownProps) {
|
|
|
220
224
|
label={label}
|
|
221
225
|
value={value === '' && !readOnly ? placeholder : value}
|
|
222
226
|
select
|
|
223
|
-
|
|
227
|
+
slotProps={{
|
|
228
|
+
input: { ...readOnlyProp, ...testProps }
|
|
229
|
+
}}
|
|
224
230
|
>
|
|
225
231
|
{options.map((option: any) => (
|
|
226
232
|
<MenuItem key={option.key} value={option.key}>
|
|
227
|
-
{/* @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv' */}
|
|
228
233
|
{thePConn.getLocalizedValue(option.value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
229
234
|
</MenuItem>
|
|
230
235
|
))}
|