@pega/dx-component-builder-sdk 24.1.12 → 24.2.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/package.json +2 -2
- package/src/tasks/create/templates/Constellation/field/Boolean/demo.stories.tsx.mustache +2 -3
- package/src/tasks/create/templates/Constellation/field/Boolean/index.tsx.mustache +5 -4
- package/src/tasks/create/templates/Constellation/field/Boolean/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Date/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/field/Integer/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/field/Integer/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/field/Integer/index.tsx.mustache +2 -12
- package/src/tasks/create/templates/Constellation/field/Integer/mock.ts.mustache +3 -2
- package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +5 -4
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +32 -48
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +38 -38
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +5 -4
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +3 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +5 -4
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +13 -13
- package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +23 -8
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +6 -5
- package/src/tasks/create/templates/SDK-React/field/Picklist-Autocomplete/index.tsx.mustache +5 -4
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/index.tsx.mustache +3 -2
- package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +3 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +30 -8
- package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +3 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +27 -7
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +6 -5
- package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +27 -7
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +35 -25
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.ts.mustache +28 -11
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/mock.ts.mustache +13 -13
- package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +13 -0
- package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.tsx.mustache +41 -25
- package/src/tasks/create/templates/SDK-React/template/FORM-region/index.tsx.mustache +6 -6
- package/src/tasks/create/templates/SDK-React/template/PAGE/OneColumn.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +15 -13
- package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +29 -23
- package/src/tasks/create/templates/SDK-React/widget/PAGE/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +18 -10
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/mock.ts.mustache +1 -1
- package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +3 -2
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Banner/Banner.tsx +1 -1
- 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 +11 -2
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/DetailsFields/DetailsFields.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +5 -5
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Operator/Operator.tsx +6 -5
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Pulse/Pulse.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +3 -2
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/AutoComplete/AutoComplete.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/CancelAlert/CancelAlert.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/field/Checkbox/Checkbox.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/Currency/Currency.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/Date/Date.tsx +23 -42
- package/tests/assets/sdk-r/components/create/override-sdk/field/DateTime/DateTime.tsx +29 -34
- package/tests/assets/sdk-r/components/create/override-sdk/field/Decimal/Decimal.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/Dropdown/Dropdown.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/field/Email/Email.tsx +29 -8
- package/tests/assets/sdk-r/components/create/override-sdk/field/Group/Group.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/Integer/Integer.tsx +22 -8
- package/tests/assets/sdk-r/components/create/override-sdk/field/Multiselect/Multiselect.tsx +8 -14
- package/tests/assets/sdk-r/components/create/override-sdk/field/Percentage/Percentage.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +6 -5
- package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/config-ext.json +9 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/RadioButtons/RadioButtons.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/field/RichText/RichText.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/RichText/config-ext.json +11 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/ScalarList/ScalarList.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/SemanticLink/SemanticLink.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/TextArea/TextArea.tsx +26 -8
- package/tests/assets/sdk-r/components/create/override-sdk/field/TextContent/TextContent.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/field/TextInput/TextInput.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/Time/Time.tsx +27 -20
- package/tests/assets/sdk-r/components/create/override-sdk/field/URL/URL.tsx +26 -7
- package/tests/assets/sdk-r/components/create/override-sdk/field/UserReference/UserReference.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ActionButtons/ActionButtons.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Assignment/Assignment.tsx +10 -6
- package/tests/assets/sdk-r/components/create/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/infra/DashboardFilter/filterUtils.tsx +2 -1
- package/tests/assets/sdk-r/components/create/override-sdk/infra/DeferLoad/DeferLoad.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/infra/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +4 -3
- package/tests/assets/sdk-r/components/create/override-sdk/infra/MultiStep/MultiStep.tsx +14 -8
- package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.css +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.tsx +25 -17
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Stages/Stages.tsx +4 -4
- package/tests/assets/sdk-r/components/create/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/infra/View/View.tsx +37 -3
- package/tests/assets/sdk-r/components/create/override-sdk/template/AppShell/AppShell.tsx +55 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/BannerPage/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/CaseView/CaseView.tsx +5 -5
- package/tests/assets/sdk-r/components/create/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +7 -7
- package/tests/assets/sdk-r/components/create/override-sdk/template/Confirmation/Confirmation.tsx +2 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/DataReference.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/Details/Details.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsSubTabs/DetailsSubTabs.tsx +3 -3
- package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +10 -3
- package/tests/assets/sdk-r/components/create/override-sdk/template/InlineDashboard/InlineDashboard.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/InlineDashboardPage/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +69 -61
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/utils.ts +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumn/OneColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/PromotedFilters/PromotedFilters.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +39 -30
- 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/TwoColumn/TwoColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumnTab/TwoColumnTab.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/WssNavBar/WssNavBar.tsx +9 -9
- package/tests/assets/sdk-r/components/create/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
- package/tests/assets/sdk-r/components/create/override-sdk/widget/AppAnnouncement/AppAnnouncement.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/Attachment.tsx +5 -2
- package/tests/assets/sdk-r/components/create/override-sdk/widget/CaseHistory/CaseHistory.tsx +12 -10
- package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/FileUtility.tsx +4 -3
- package/tests/assets/sdk-r/components/create/override-sdk/widget/Followers/Followers.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/widget/QuickCreate/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/create/override-sdk/widget/SummaryItem/SummaryItem.tsx +3 -2
- package/tests/assets/sdk-r/components/create/override-sdk/widget/ToDo/ToDo.tsx +91 -21
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/demo.stories.tsx +2 -3
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/index.tsx +5 -4
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/mock.ts +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/index.tsx +3 -5
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/demo.stories.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/event-utils.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/index.tsx +2 -12
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/mock.ts +3 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +5 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +3 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +29 -45
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +35 -38
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +5 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/index.tsx +30 -8
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/index.tsx +13 -13
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/index.tsx +23 -8
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/index.tsx +27 -7
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +5 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +6 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +6 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/index.tsx +3 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MySearchbox/index.tsx +5 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/index.tsx +3 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/index.tsx +3 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +32 -22
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/index.tsx +27 -7
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/mock.ts +28 -11
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/demo.stories.tsx +13 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/OneColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/mock.ts +13 -13
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +39 -23
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/index.tsx +6 -6
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx +15 -13
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +18 -10
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/mock.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx +29 -23
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/mock.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Banner/Banner.tsx +1 -1
- 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 +11 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/DetailsFields/DetailsFields.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Operator/Operator.tsx +6 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Pulse/Pulse.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +3 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/AutoComplete/AutoComplete.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/CancelAlert/CancelAlert.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Checkbox/Checkbox.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Currency/Currency.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Date/Date.tsx +23 -42
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/DateTime/DateTime.tsx +29 -34
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Decimal/Decimal.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Dropdown/Dropdown.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Email/Email.tsx +29 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/Group.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Integer/Integer.tsx +22 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Multiselect/Multiselect.tsx +8 -14
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Percentage/Percentage.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +6 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/config-ext.json +9 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/RadioButtons/RadioButtons.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/RichText/RichText.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/RichText/config-ext.json +11 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/ScalarList/ScalarList.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/SemanticLink/SemanticLink.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextArea/TextArea.tsx +26 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextContent/TextContent.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextInput/TextInput.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Time/Time.tsx +27 -20
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/URL/URL.tsx +26 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/UserReference/UserReference.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ActionButtons/ActionButtons.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Assignment/Assignment.tsx +10 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/filterUtils.tsx +2 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DeferLoad/DeferLoad.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +4 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/MultiStep/MultiStep.tsx +14 -8
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.css +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.tsx +25 -17
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Stages/Stages.tsx +4 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/View/View.tsx +37 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/AppShell/AppShell.tsx +55 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/BannerPage/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseView/CaseView.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +7 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/Confirmation/Confirmation.tsx +2 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/DataReference.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/Details/Details.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsSubTabs/DetailsSubTabs.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +10 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/InlineDashboard/InlineDashboard.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/InlineDashboardPage/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +69 -61
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/utils.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumn/OneColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/PromotedFilters/PromotedFilters.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +39 -30
- 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/TwoColumn/TwoColumn.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumnTab/TwoColumnTab.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/WssNavBar/WssNavBar.tsx +9 -9
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/AppAnnouncement/AppAnnouncement.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/Attachment.tsx +5 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/CaseHistory/CaseHistory.tsx +12 -10
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/FileUtility/FileUtility.tsx +4 -3
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Followers/Followers.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/QuickCreate/config-ext.json +10 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/SummaryItem/SummaryItem.tsx +3 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ToDo/ToDo.tsx +91 -21
- package/tests/functional/sdk-r/localCreateAllListDeleteAllCustom.test.js +1 -1
- package/tests/functional/sdk-r/localCreateAllListDeleteAllOverride.test.js +1 -1
- package/tests/functional/sdk-r/localCreateBuildAllDeleteAllCustom.test.js +2 -2
- package/tests/functional/sdk-r/localCreateBuildDeleteCustom.test.js +1 -1
- package/tests/functional/sdk-r/localCreateBuildDeleteOverride.test.js +2 -2
- package/tests/functional/sdk-r/localCreateListDeleteCustom.test.js +1 -1
- package/tests/functional/sdk-r/localCreateListDeleteOverride.test.js +1 -1
- package/tests/functional/sdk-r/localCreateMapAllClearMap.test.js +1 -1
- package/tests/functional/sdk-r/localCreatePublishAllDeleteAllCustom.test.js +2 -2
- package/tests/functional/sdk-r/localCreatePublishAllDeleteAllOverride.test.js +1 -1
- package/tests/functional/sdk-r/localCreatePublishDeleteCustom.test.js +1 -1
- package/tests/functional/sdk-r/localCreatePublishDeleteOverride.test.js +2 -2
- package/tests/functional/sdk-r/localCreateRenameDeleteCustom.test.js +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import AccessTimeIcon from '@
|
|
1
|
+
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
|
|
2
|
+
// import AccessTimeIcon from '@mui/icons-material/AccessTime';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
|
|
5
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
6
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
8
|
|
|
@@ -14,10 +15,12 @@ export default function Time(props: TimeProps) {
|
|
|
14
15
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
15
16
|
const TextInput = getComponentFromMap('TextInput');
|
|
16
17
|
|
|
17
|
-
const { label, required, disabled, value = '', validatemessage, status,
|
|
18
|
+
const { getPConnect, label, required, disabled, value = '', validatemessage, status, readOnly, helperText, displayMode, hideLabel, testId } = props;
|
|
18
19
|
const helperTextToDisplay = validatemessage || helperText;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
const pConn = getPConnect();
|
|
21
|
+
const actions = pConn.getActionsApi();
|
|
22
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
23
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
21
24
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -37,11 +40,11 @@ export default function Time(props: TimeProps) {
|
|
|
37
40
|
|
|
38
41
|
const handleChange = date => {
|
|
39
42
|
const theValue = date && date.isValid() ? date.format('HH:mm') : null;
|
|
40
|
-
|
|
43
|
+
handleEvent(actions, 'changeNblur', propName, theValue);
|
|
41
44
|
};
|
|
42
45
|
|
|
43
46
|
let timeValue: any = null;
|
|
44
|
-
if (value) {
|
|
47
|
+
if (value && Object.keys(value).length) {
|
|
45
48
|
const timeArray = value.split(':').map(itm => Number(itm));
|
|
46
49
|
timeValue = dayjs().hour(timeArray[0]).minute(timeArray[1]);
|
|
47
50
|
}
|
|
@@ -52,25 +55,29 @@ export default function Time(props: TimeProps) {
|
|
|
52
55
|
//
|
|
53
56
|
|
|
54
57
|
return (
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
keyboardIcon={<AccessTimeIcon />}
|
|
60
|
-
fullWidth
|
|
61
|
-
required={required}
|
|
58
|
+
<TimePicker
|
|
59
|
+
// keyboardIcon={<AccessTimeIcon />}
|
|
60
|
+
// fullWidth
|
|
61
|
+
|
|
62
62
|
disabled={disabled}
|
|
63
|
-
error={status === 'error'}
|
|
64
|
-
helperText={helperTextToDisplay}
|
|
65
63
|
minutesStep={5}
|
|
66
|
-
size='small'
|
|
67
64
|
label={label}
|
|
68
|
-
autoOk
|
|
69
|
-
mask='__:__ _m'
|
|
65
|
+
// autoOk
|
|
66
|
+
// mask='__:__ _m'
|
|
70
67
|
format='hh:mm a'
|
|
71
68
|
value={timeValue}
|
|
72
69
|
onChange={handleChange}
|
|
73
|
-
|
|
70
|
+
slotProps={{
|
|
71
|
+
textField: {
|
|
72
|
+
variant: 'outlined',
|
|
73
|
+
placeholder: 'hh:mm am',
|
|
74
|
+
required,
|
|
75
|
+
error: status === 'error',
|
|
76
|
+
helperText: helperTextToDisplay,
|
|
77
|
+
size: 'small',
|
|
78
|
+
InputProps: { ...testProp }
|
|
79
|
+
}
|
|
80
|
+
}}
|
|
74
81
|
/>
|
|
75
82
|
);
|
|
76
83
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
2
3
|
|
|
4
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
3
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
6
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
5
7
|
|
|
@@ -16,14 +18,13 @@ export default function URLComponent(props: URLComponentProps) {
|
|
|
16
18
|
const TextInput = getComponentFromMap('TextInput');
|
|
17
19
|
|
|
18
20
|
const {
|
|
21
|
+
getPConnect,
|
|
19
22
|
label,
|
|
20
23
|
required,
|
|
21
24
|
disabled,
|
|
22
25
|
value = '',
|
|
23
26
|
validatemessage,
|
|
24
27
|
status,
|
|
25
|
-
onChange,
|
|
26
|
-
onBlur,
|
|
27
28
|
readOnly,
|
|
28
29
|
testId,
|
|
29
30
|
helperText,
|
|
@@ -33,7 +34,17 @@ export default function URLComponent(props: URLComponentProps) {
|
|
|
33
34
|
} = props;
|
|
34
35
|
const helperTextToDisplay = validatemessage || helperText;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
const [inputValue, setInputValue] = useState('');
|
|
38
|
+
|
|
39
|
+
const pConn = getPConnect();
|
|
40
|
+
const actions = pConn.getActionsApi();
|
|
41
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
setInputValue(value);
|
|
45
|
+
}, [value]);
|
|
46
|
+
|
|
47
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
37
48
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
38
49
|
}
|
|
39
50
|
|
|
@@ -51,6 +62,14 @@ export default function URLComponent(props: URLComponentProps) {
|
|
|
51
62
|
'data-test-id': testId
|
|
52
63
|
};
|
|
53
64
|
|
|
65
|
+
const handleChange = event => {
|
|
66
|
+
setInputValue(event?.target?.value);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
function handleBlur() {
|
|
70
|
+
handleEvent(actions, 'changeNblur', propName, inputValue);
|
|
71
|
+
}
|
|
72
|
+
|
|
54
73
|
return (
|
|
55
74
|
<TextField
|
|
56
75
|
type='url'
|
|
@@ -61,11 +80,11 @@ export default function URLComponent(props: URLComponentProps) {
|
|
|
61
80
|
size='small'
|
|
62
81
|
required={required}
|
|
63
82
|
disabled={disabled}
|
|
64
|
-
onChange={
|
|
65
|
-
onBlur={!readOnly ?
|
|
83
|
+
onChange={handleChange}
|
|
84
|
+
onBlur={!readOnly ? handleBlur : undefined}
|
|
66
85
|
error={status === 'error'}
|
|
67
86
|
label={label}
|
|
68
|
-
value={
|
|
87
|
+
value={inputValue}
|
|
69
88
|
InputProps={{ inputProps: { ...testProp } }}
|
|
70
89
|
/>
|
|
71
90
|
);
|
package/tests/assets/sdk-r/components/createAll/override-sdk/field/UserReference/UserReference.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo, useEffect, useState } from 'react';
|
|
2
|
-
import { Typography } from '@material
|
|
2
|
+
import { Typography } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
5
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
@@ -99,7 +99,7 @@ const UserReference = (props: UserReferenceProps) => {
|
|
|
99
99
|
|
|
100
100
|
let userReferenceComponent: any = null;
|
|
101
101
|
|
|
102
|
-
if (displayMode === '
|
|
102
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
103
103
|
return <FieldValueList name={hideLabel ? '' : label} value={userName || ''} />;
|
|
104
104
|
}
|
|
105
105
|
|
package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ActionButtons/ActionButtons.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Button from '@material
|
|
3
|
-
import { Grid, Divider } from '@material
|
|
1
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
2
|
+
import Button from '@mui/material/Button';
|
|
3
|
+
import { Grid, Divider } from '@mui/material';
|
|
4
4
|
|
|
5
5
|
// ActionButtons does NOT have getPConnect. So, no need to extend from PConnProps
|
|
6
6
|
interface ActionButtonsProps {
|
package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Assignment/Assignment.tsx
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useEffect, useState } from 'react';
|
|
2
|
-
import Snackbar from '@material
|
|
3
|
-
import IconButton from '@material
|
|
4
|
-
import CloseIcon from '@
|
|
2
|
+
import Snackbar from '@mui/material/Snackbar';
|
|
3
|
+
import IconButton from '@mui/material/IconButton';
|
|
4
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
5
5
|
|
|
6
6
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
|
+
import { useFocusFirstField, useScrolltoTop } from '@pega/react-sdk-components/lib/hooks';
|
|
7
8
|
|
|
8
9
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
10
|
|
|
@@ -86,6 +87,10 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
|
|
|
86
87
|
return formedSteps;
|
|
87
88
|
}
|
|
88
89
|
|
|
90
|
+
const scrollId = window.location.href.includes('embedded') ? '#pega-part-of-page' : '#portal';
|
|
91
|
+
useScrolltoTop(scrollId, children);
|
|
92
|
+
useFocusFirstField('Assignment', children);
|
|
93
|
+
|
|
89
94
|
useEffect(() => {
|
|
90
95
|
if (children) {
|
|
91
96
|
const firstChild = Array.isArray(children) ? children[0] : children;
|
|
@@ -94,7 +99,7 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
|
|
|
94
99
|
const oData: any = thePConn.getDataObject(''); // 1st arg empty string until typedefs allow it to be optional
|
|
95
100
|
|
|
96
101
|
if (oWorkData?.caseInfo && oWorkData.caseInfo.assignments !== null) {
|
|
97
|
-
const oCaseInfo = oData
|
|
102
|
+
const oCaseInfo = oData?.caseInfo;
|
|
98
103
|
|
|
99
104
|
if (oCaseInfo && oCaseInfo.actionButtons) {
|
|
100
105
|
setActionButtons(oCaseInfo.actionButtons);
|
|
@@ -134,7 +139,7 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
|
|
|
134
139
|
setShowSnackbar(true);
|
|
135
140
|
}
|
|
136
141
|
|
|
137
|
-
function handleSnackbarClose(event: React.SyntheticEvent |
|
|
142
|
+
function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {
|
|
138
143
|
if (reason === 'clickaway') {
|
|
139
144
|
return;
|
|
140
145
|
}
|
|
@@ -230,7 +235,6 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
|
|
|
230
235
|
break;
|
|
231
236
|
}
|
|
232
237
|
} else if (sButtonType === 'primary') {
|
|
233
|
-
// eslint-disable-next-line sonarjs/no-small-switch
|
|
234
238
|
switch (sAction) {
|
|
235
239
|
case 'finishAssignment': {
|
|
236
240
|
const finishPromise = finishAssignment(itemKey);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
2
2
|
/* eslint-disable operator-assignment */
|
|
3
3
|
import { forwardRef, PropsWithChildren, useEffect, useRef, useState } from 'react';
|
|
4
|
-
import { TextField } from '@material
|
|
4
|
+
import { TextField } from '@mui/material';
|
|
5
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
6
6
|
import { debounce } from 'throttle-debounce';
|
|
7
7
|
import DatePicker from 'react-datepicker';
|
package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/filterUtils.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable prefer-template */
|
|
2
2
|
/** This file contains various utility methods to generate filter components, regionLayout data, filter expressions, etc. */
|
|
3
3
|
|
|
4
|
-
import { Grid, Link } from '@material
|
|
4
|
+
import { Grid, Link } from '@mui/material';
|
|
5
5
|
|
|
6
6
|
import DashboardFilter from './DashboardFilter';
|
|
7
7
|
|
|
@@ -85,6 +85,7 @@ export const buildFilterComponents = (getPConnect, allFilters) => {
|
|
|
85
85
|
// @ts-ignore - second parameter “payload” for publish method should be optional
|
|
86
86
|
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL);
|
|
87
87
|
}}
|
|
88
|
+
underline='hover'
|
|
88
89
|
>
|
|
89
90
|
Clear All
|
|
90
91
|
</Link>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect, createElement } from 'react';
|
|
2
|
-
import { Box, Card, CircularProgress } from '@material
|
|
3
|
-
import
|
|
2
|
+
import { Box, Card, CircularProgress } from '@mui/material';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
4
|
|
|
5
5
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
6
6
|
|
|
@@ -95,7 +95,7 @@ export default function DeferLoad(props: DeferLoadProps) {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
const configObject = PCore.createPConnect(config);
|
|
98
|
-
configObject.getPConnect().setInheritedProp('displayMode', '
|
|
98
|
+
configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
|
|
99
99
|
setContent(createElement(createPConnectComponent(), configObject));
|
|
100
100
|
if (deferLoadId) {
|
|
101
101
|
PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Tab, Divider } from '@material
|
|
1
|
+
import withStyles from '@mui/styles/withStyles';
|
|
2
|
+
import { Tab, Divider } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
// LeftAlignVerticalTabs does NOT have getPConnect. So, no need to extend from PConnProps
|
|
5
5
|
|
|
@@ -18,7 +18,8 @@ interface LeftAlignVerticalTabsProps {
|
|
|
18
18
|
const LeftAlignVerticalTabs: any = withStyles((/* theme */) => ({
|
|
19
19
|
root: {
|
|
20
20
|
width: '100%',
|
|
21
|
-
maxWidth: '100%'
|
|
21
|
+
maxWidth: '100%',
|
|
22
|
+
alignItems: 'flex-start'
|
|
22
23
|
},
|
|
23
24
|
wrapper: {
|
|
24
25
|
display: 'block',
|
|
@@ -11,7 +11,7 @@ interface MultiStepProps extends PConnProps {
|
|
|
11
11
|
actionButtons: any[];
|
|
12
12
|
onButtonPress: any;
|
|
13
13
|
bIsVertical: boolean;
|
|
14
|
-
arNavigationSteps: any
|
|
14
|
+
arNavigationSteps: any;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export default function MultiStep(props: PropsWithChildren<MultiStepProps>) {
|
|
@@ -21,6 +21,12 @@ export default function MultiStep(props: PropsWithChildren<MultiStepProps>) {
|
|
|
21
21
|
const { getPConnect, children, itemKey = '', actionButtons, onButtonPress } = props;
|
|
22
22
|
const { bIsVertical, arNavigationSteps } = props;
|
|
23
23
|
|
|
24
|
+
let currentStep = arNavigationSteps.find(({ visited_status: vs }) => vs === 'current');
|
|
25
|
+
if (!currentStep) {
|
|
26
|
+
const lastActiveStepIndex = arNavigationSteps.findLastIndex(({ visited_status: vs }) => vs === 'success');
|
|
27
|
+
currentStep = arNavigationSteps[lastActiveStepIndex >= 0 ? lastActiveStepIndex : 0];
|
|
28
|
+
}
|
|
29
|
+
|
|
24
30
|
// const svgCurrent = Utils.getImageSrc("circle-solid", Utils.getSDKStaticConentUrl());
|
|
25
31
|
// const svgNotCurrent = Utils.getImageSrc("circle-solid", Utils.getSDKStaticConentUrl());
|
|
26
32
|
|
|
@@ -48,16 +54,16 @@ export default function MultiStep(props: PropsWithChildren<MultiStepProps>) {
|
|
|
48
54
|
return 'psdk-vertical-step-body';
|
|
49
55
|
}
|
|
50
56
|
|
|
51
|
-
function _getHIconClass(
|
|
52
|
-
if (
|
|
57
|
+
function _getHIconClass(step): string {
|
|
58
|
+
if (step.ID === currentStep?.ID) {
|
|
53
59
|
return 'psdk-horizontal-step-icon-selected';
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
return 'psdk-horizontal-step-icon';
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
function _getHLabelClass(
|
|
60
|
-
if (
|
|
65
|
+
function _getHLabelClass(step): string {
|
|
66
|
+
if (step.ID === currentStep?.ID) {
|
|
61
67
|
return 'psdk-horizontal-step-label-selected';
|
|
62
68
|
}
|
|
63
69
|
|
|
@@ -138,12 +144,12 @@ export default function MultiStep(props: PropsWithChildren<MultiStepProps>) {
|
|
|
138
144
|
return (
|
|
139
145
|
<React.Fragment key={mainStep.actionID}>
|
|
140
146
|
<div className='psdk-horizontal-step-header'>
|
|
141
|
-
<div className={_getHIconClass(mainStep
|
|
147
|
+
<div className={_getHIconClass(mainStep)}>
|
|
142
148
|
<div className='psdk-horizontal-step-icon-content'>
|
|
143
149
|
<span>{index + 1}</span>
|
|
144
150
|
</div>
|
|
145
151
|
</div>
|
|
146
|
-
<div className={_getHLabelClass(mainStep
|
|
152
|
+
<div className={_getHLabelClass(mainStep)}>
|
|
147
153
|
<div className='psdk-horizontal-step-text-label' id='selected-label'>
|
|
148
154
|
{mainStep.name}
|
|
149
155
|
</div>
|
|
@@ -176,7 +182,7 @@ export default function MultiStep(props: PropsWithChildren<MultiStepProps>) {
|
|
|
176
182
|
))}
|
|
177
183
|
</ul>
|
|
178
184
|
)}
|
|
179
|
-
{!mainStep?.steps && mainStep.
|
|
185
|
+
{!mainStep?.steps && mainStep.ID === currentStep?.ID && (
|
|
180
186
|
<AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>
|
|
181
187
|
{children}
|
|
182
188
|
</AssignmentCard>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useTheme } from '@mui/material/styles';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
|
|
5
6
|
import {
|
|
@@ -15,19 +16,22 @@ import {
|
|
|
15
16
|
Menu,
|
|
16
17
|
MenuItem,
|
|
17
18
|
Typography
|
|
18
|
-
} from '@material
|
|
19
|
-
import PersonOutlineIcon from '@
|
|
20
|
-
import ChevronLeftIcon from '@
|
|
21
|
-
import ChevronRightIcon from '@
|
|
22
|
-
import FlagOutlinedIcon from '@
|
|
23
|
-
import HomeOutlinedIcon from '@
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
19
|
+
} from '@mui/material';
|
|
20
|
+
import PersonOutlineIcon from '@mui/icons-material/PersonOutlineOutlined';
|
|
21
|
+
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
22
|
+
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
23
|
+
import FlagOutlinedIcon from '@mui/icons-material/FlagOutlined';
|
|
24
|
+
import HomeOutlinedIcon from '@mui/icons-material/HomeOutlined';
|
|
25
|
+
import TabletAndroidOutlineIcon from '@mui/icons-material/TabletAndroidOutlined';
|
|
26
|
+
import AirportShuttleOutlinedIcon from '@mui/icons-material/AirportShuttleOutlined';
|
|
27
|
+
import EditOutlinedIcon from '@mui/icons-material/EditOutlined';
|
|
28
|
+
import ExpandLess from '@mui/icons-material/ExpandLess';
|
|
29
|
+
import ExpandMore from '@mui/icons-material/ExpandMore';
|
|
30
|
+
import AddIcon from '@mui/icons-material/Add';
|
|
31
|
+
import WorkOutlineIcon from '@mui/icons-material/WorkOutline';
|
|
32
|
+
import ClearOutlinedIcon from '@mui/icons-material/ClearOutlined';
|
|
33
|
+
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
|
|
34
|
+
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
31
35
|
import { logout } from '@pega/auth/lib/sdk-auth-manager';
|
|
32
36
|
|
|
33
37
|
import { useNavBar } from '@pega/react-sdk-components/lib/components/helpers/reactContextHelpers';
|
|
@@ -48,7 +52,11 @@ interface NavBarProps extends PConnProps {
|
|
|
48
52
|
const iconMap = {
|
|
49
53
|
'pi pi-headline': <HomeOutlinedIcon fontSize='large' />,
|
|
50
54
|
'pi pi-flag-solid': <FlagOutlinedIcon fontSize='large' />,
|
|
51
|
-
'pi pi-home-solid': <HomeOutlinedIcon fontSize='large'
|
|
55
|
+
'pi pi-home-solid': <HomeOutlinedIcon fontSize='large' />,
|
|
56
|
+
'pi pi-tablet': <TabletAndroidOutlineIcon fontSize='large' />,
|
|
57
|
+
'pi pi-ambulance': <AirportShuttleOutlinedIcon fontSize='large' />,
|
|
58
|
+
'pi pi-ink-solid': <EditOutlinedIcon fontSize='large' />,
|
|
59
|
+
'pi pi-columns': <HomeOutlinedIcon fontSize='large' />
|
|
52
60
|
};
|
|
53
61
|
|
|
54
62
|
const drawerWidth = 300;
|
|
@@ -203,7 +211,7 @@ export default function NavBar(props: NavBarProps) {
|
|
|
203
211
|
}
|
|
204
212
|
/>
|
|
205
213
|
<ListItemSecondaryAction>
|
|
206
|
-
<IconButton edge='end' onClick={handleDrawerOpen}>
|
|
214
|
+
<IconButton edge='end' onClick={handleDrawerOpen} size='large'>
|
|
207
215
|
<ChevronLeftIcon className={classes.appListIcon} />
|
|
208
216
|
</IconButton>
|
|
209
217
|
</ListItemSecondaryAction>
|
|
@@ -256,7 +264,7 @@ export default function NavBar(props: NavBarProps) {
|
|
|
256
264
|
<ListItemText primary={portalOperator} />
|
|
257
265
|
{open && (
|
|
258
266
|
<ListItemSecondaryAction>
|
|
259
|
-
<IconButton edge='end' onClick={navPanelOperatorButtonClick}>
|
|
267
|
+
<IconButton edge='end' onClick={navPanelOperatorButtonClick} size='large'>
|
|
260
268
|
<ChevronRightIcon />
|
|
261
269
|
</IconButton>
|
|
262
270
|
</ListItemSecondaryAction>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Breadcrumbs, Card, Typography } from '@material
|
|
2
|
-
import DoubleArrowIcon from '@
|
|
3
|
-
import DoneIcon from '@
|
|
4
|
-
import
|
|
1
|
+
import { Breadcrumbs, Card, Typography } from '@mui/material';
|
|
2
|
+
import DoubleArrowIcon from '@mui/icons-material/DoubleArrow';
|
|
3
|
+
import DoneIcon from '@mui/icons-material/Done';
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
5
5
|
|
|
6
6
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
7
|
|
package/tests/assets/sdk-r/components/createAll/override-sdk/infra/VerticalTabs/VerticalTabs.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Tabs from '@material
|
|
2
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
3
|
+
import Tabs from '@mui/material/Tabs';
|
|
4
4
|
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, useEffect } from 'react';
|
|
2
2
|
|
|
3
3
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
4
|
import { getAllFields } from '@pega/react-sdk-components/lib/components/helpers/template-utils';
|
|
@@ -18,6 +18,7 @@ interface ViewProps extends PConnProps {
|
|
|
18
18
|
visibility?: boolean;
|
|
19
19
|
name?: string;
|
|
20
20
|
bInForm?: boolean;
|
|
21
|
+
type?: any;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
//
|
|
@@ -36,12 +37,14 @@ const NO_HEADER_TEMPLATES = [
|
|
|
36
37
|
'NarrowWideDetails',
|
|
37
38
|
'WideNarrowDetails',
|
|
38
39
|
'Confirmation',
|
|
39
|
-
'DynamicTabs'
|
|
40
|
+
'DynamicTabs',
|
|
41
|
+
'DetailsSubTabs'
|
|
40
42
|
];
|
|
41
43
|
|
|
42
44
|
export default function View(props: PropsWithChildren<ViewProps>) {
|
|
43
|
-
const { children, template, getPConnect, mode, visibility, name: pageName } = props;
|
|
45
|
+
const { children, template, getPConnect, mode, visibility, name: pageName, type, title } = props;
|
|
44
46
|
let { label = '', showLabel = false } = props;
|
|
47
|
+
const { PAGE_TYPES: { PAGE, LANDINGPAGE, LISTPAGE } = {}, MODAL } = PCore.getConstants();
|
|
45
48
|
|
|
46
49
|
// Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views
|
|
47
50
|
// Putting this logic here instead of copy/paste in every Form template index.js
|
|
@@ -49,12 +52,43 @@ export default function View(props: PropsWithChildren<ViewProps>) {
|
|
|
49
52
|
const inheritedProps: any = getPConnect().getInheritedProps(); // try to remove any when getInheritedProps typedefs are fixed
|
|
50
53
|
label = inheritedProps.label || label;
|
|
51
54
|
showLabel = inheritedProps.showLabel || showLabel;
|
|
55
|
+
const localeUtils = PCore.getLocaleUtils();
|
|
52
56
|
|
|
53
57
|
const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible
|
|
54
58
|
if (isEmbeddedDataView && showLabel === undefined) {
|
|
55
59
|
showLabel = true;
|
|
56
60
|
}
|
|
57
61
|
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
// Get the localized application label
|
|
64
|
+
let applicationLabel = PCore.getEnvironmentInfo().getApplicationLabel();
|
|
65
|
+
applicationLabel = localeUtils.getLocaleValue(`${applicationLabel}`, '', '');
|
|
66
|
+
const caseInfo = getPConnect().getCaseInfo();
|
|
67
|
+
const isAssignmentInCreateStage = caseInfo && caseInfo.isAssignmentInCreateStage();
|
|
68
|
+
const isRenderingInModal = getPConnect().getContainerName().includes(MODAL);
|
|
69
|
+
const isRenderingInPreviewPanel = getPConnect().getContainerName().includes('preview');
|
|
70
|
+
|
|
71
|
+
/* If assignment is in create stage and rendering in modal don't update the title.
|
|
72
|
+
Title will be updated on completion of create stage and when the assignment is rendered inline to the page.
|
|
73
|
+
*/
|
|
74
|
+
const canUpdateTitle =
|
|
75
|
+
!isRenderingInPreviewPanel &&
|
|
76
|
+
(type === PAGE || type === LANDINGPAGE || type === LISTPAGE) &&
|
|
77
|
+
!(isRenderingInModal && isAssignmentInCreateStage) &&
|
|
78
|
+
PCore.getEnvironmentInfo().getRenderingMode() === 'FULL_PORTAL';
|
|
79
|
+
// Incase of home route title is same as applicationLabel so setting to empty to just show applicationLabel
|
|
80
|
+
let titleVar = title === applicationLabel ? '' : title;
|
|
81
|
+
|
|
82
|
+
if (canUpdateTitle) {
|
|
83
|
+
if (caseInfo) {
|
|
84
|
+
const name = caseInfo.getName();
|
|
85
|
+
const id = caseInfo.getBusinessID();
|
|
86
|
+
titleVar = name && id ? `${name} (${id})` : titleVar;
|
|
87
|
+
}
|
|
88
|
+
document.title = titleVar ? `${titleVar} - ${applicationLabel}` : applicationLabel;
|
|
89
|
+
}
|
|
90
|
+
}, [type, title, getPConnect, PAGE, LANDINGPAGE, LISTPAGE]);
|
|
91
|
+
|
|
58
92
|
const key = `${getPConnect().getContextName()}_${getPConnect().getPageReference()}_${pageName}`;
|
|
59
93
|
// As long as the template is defined in the dependencies of the view
|
|
60
94
|
// it will be loaded, otherwise fall back to single column
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, useEffect, useState } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Avatar from '@material
|
|
2
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
3
|
+
import Avatar from '@mui/material/Avatar';
|
|
4
4
|
|
|
5
5
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
6
6
|
import { NavContext } from '@pega/react-sdk-components/lib/components/helpers/reactContextHelpers';
|
|
@@ -24,6 +24,8 @@ interface AppShellProps extends PConnProps {
|
|
|
24
24
|
portalName: string;
|
|
25
25
|
portalLogo: string;
|
|
26
26
|
navDisplayOptions: { alignment: string; position: string };
|
|
27
|
+
httpMessages: string[];
|
|
28
|
+
pageMessages: string[];
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
const useStyles = makeStyles(theme => ({
|
|
@@ -49,8 +51,21 @@ export default function AppShell(props: PropsWithChildren<AppShellProps>) {
|
|
|
49
51
|
// Get emitted components from map (so we can get any override that may exist)
|
|
50
52
|
const NavBar = getComponentFromMap('NavBar');
|
|
51
53
|
const WssNavBar = getComponentFromMap('WssNavBar');
|
|
54
|
+
const AlertBanner = getComponentFromMap('AlertBanner');
|
|
52
55
|
|
|
53
|
-
const {
|
|
56
|
+
const {
|
|
57
|
+
pages = [],
|
|
58
|
+
caseTypes = [],
|
|
59
|
+
showAppName,
|
|
60
|
+
children = [],
|
|
61
|
+
getPConnect,
|
|
62
|
+
httpMessages = [],
|
|
63
|
+
pageMessages = [],
|
|
64
|
+
portalTemplate,
|
|
65
|
+
portalName,
|
|
66
|
+
portalLogo,
|
|
67
|
+
navDisplayOptions
|
|
68
|
+
} = props;
|
|
54
69
|
|
|
55
70
|
const [open, setOpen] = useState(true);
|
|
56
71
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -75,6 +90,15 @@ export default function AppShell(props: PropsWithChildren<AppShellProps>) {
|
|
|
75
90
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76
91
|
const [mapChildren, setMapChildren] = useState([]);
|
|
77
92
|
|
|
93
|
+
const messages = [...httpMessages, ...pageMessages];
|
|
94
|
+
|
|
95
|
+
const hasBanner = messages && messages.length ? messages.length > 0 : false;
|
|
96
|
+
let banners: any = null;
|
|
97
|
+
banners = hasBanner && (
|
|
98
|
+
<div style={{ display: 'flex', flexDirection: 'column', padding: '1em 0' }}>
|
|
99
|
+
<AlertBanner id='AppShell' variant='urgent' messages={messages} />
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
78
102
|
// Initial setting of appName and mapChildren
|
|
79
103
|
useEffect(() => {
|
|
80
104
|
setAppName(PCore.getEnvironmentInfo().getApplicationName());
|
|
@@ -92,6 +116,25 @@ export default function AppShell(props: PropsWithChildren<AppShellProps>) {
|
|
|
92
116
|
setMapChildren(tempMap);
|
|
93
117
|
}, []);
|
|
94
118
|
|
|
119
|
+
useEffect(() => {
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
const caseTypesAvailableToCreateDP = PCore.getEnvironmentInfo().environmentInfoObject?.pxApplication?.pyCaseTypesAvailableToCreateDP;
|
|
122
|
+
if (caseTypesAvailableToCreateDP) {
|
|
123
|
+
const portalID = pConn.getValue('.pyOwner');
|
|
124
|
+
PCore.getDataPageUtils()
|
|
125
|
+
.getPageDataAsync(caseTypesAvailableToCreateDP, pConn.getContextName(), {
|
|
126
|
+
PortalName: portalID
|
|
127
|
+
})
|
|
128
|
+
.then(response => {
|
|
129
|
+
if (response?.pyCaseTypesAvailableToCreate) {
|
|
130
|
+
pConn.replaceState('.pyCaseTypesAvailableToCreate', response.pyCaseTypesAvailableToCreate, {
|
|
131
|
+
skipDirtyValidation: true
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}, []);
|
|
137
|
+
|
|
95
138
|
const [iconURL, setIconURL] = useState('');
|
|
96
139
|
const [fullIconURL, setFullIconURL] = useState('');
|
|
97
140
|
useEffect(() => {
|
|
@@ -187,7 +230,10 @@ export default function AppShell(props: PropsWithChildren<AppShellProps>) {
|
|
|
187
230
|
operator={getOperator()}
|
|
188
231
|
navDisplayOptions={navDisplayOptions}
|
|
189
232
|
/>
|
|
190
|
-
<div className={classes.wsscontent}>
|
|
233
|
+
<div className={classes.wsscontent}>
|
|
234
|
+
{banners}
|
|
235
|
+
{children}
|
|
236
|
+
</div>
|
|
191
237
|
</div>
|
|
192
238
|
);
|
|
193
239
|
}
|
|
@@ -203,7 +249,11 @@ export default function AppShell(props: PropsWithChildren<AppShellProps>) {
|
|
|
203
249
|
pages={pages}
|
|
204
250
|
caseTypes={caseTypes}
|
|
205
251
|
/>
|
|
206
|
-
|
|
252
|
+
|
|
253
|
+
<div className={classes.content}>
|
|
254
|
+
{banners}
|
|
255
|
+
{children}
|
|
256
|
+
</div>
|
|
207
257
|
</div>
|
|
208
258
|
</NavContext.Provider>
|
|
209
259
|
);
|