@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,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
2
3
|
|
|
3
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
7
|
+
|
|
5
8
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
6
9
|
|
|
7
10
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -17,14 +20,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
17
20
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
18
21
|
|
|
19
22
|
const {
|
|
23
|
+
getPConnect,
|
|
20
24
|
label,
|
|
21
25
|
required,
|
|
22
26
|
disabled,
|
|
23
27
|
value = '',
|
|
24
28
|
validatemessage,
|
|
25
29
|
status,
|
|
26
|
-
onChange,
|
|
27
|
-
onBlur,
|
|
28
30
|
readOnly,
|
|
29
31
|
testId,
|
|
30
32
|
helperText,
|
|
@@ -32,11 +34,20 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
32
34
|
hideLabel,
|
|
33
35
|
placeholder
|
|
34
36
|
} = props;
|
|
37
|
+
|
|
38
|
+
const pConn = getPConnect();
|
|
39
|
+
const actions = pConn.getActionsApi();
|
|
40
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
41
|
+
|
|
35
42
|
const helperTextToDisplay = validatemessage || helperText;
|
|
36
43
|
|
|
37
|
-
|
|
44
|
+
const [inputValue, setInputValue] = useState('');
|
|
38
45
|
|
|
39
|
-
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
setInputValue(value);
|
|
48
|
+
}, [value]);
|
|
49
|
+
|
|
50
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
40
51
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
41
52
|
}
|
|
42
53
|
|
|
@@ -68,7 +79,11 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
68
79
|
}
|
|
69
80
|
|
|
70
81
|
// Pass through to the Constellation change handler
|
|
71
|
-
|
|
82
|
+
setInputValue(event.target.value);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function handleBlur() {
|
|
86
|
+
handleEvent(actions, 'changeNblur', propName, inputValue);
|
|
72
87
|
}
|
|
73
88
|
|
|
74
89
|
return (
|
|
@@ -82,10 +97,10 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
82
97
|
required={required}
|
|
83
98
|
disabled={disabled}
|
|
84
99
|
onChange={intOnChange}
|
|
85
|
-
onBlur={!readOnly ?
|
|
100
|
+
onBlur={!readOnly ? handleBlur : undefined}
|
|
86
101
|
error={status === 'error'}
|
|
87
102
|
label={label}
|
|
88
|
-
value={
|
|
103
|
+
value={inputValue}
|
|
89
104
|
type='text'
|
|
90
105
|
{{! pick new delimiters for mustache }}
|
|
91
106
|
{{=<% %>=}}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { TextField } from '@material
|
|
3
|
-
import MenuItem from '@material
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
4
4
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
5
5
|
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
9
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
|
+
|
|
10
11
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
11
12
|
|
|
12
13
|
interface IOption {
|
|
@@ -135,7 +136,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
135
136
|
const optionsList = [...list];
|
|
136
137
|
optionsList.unshift({
|
|
137
138
|
key: placeholder,
|
|
138
|
-
value: thePConn.getLocalizedValue(placeholder
|
|
139
|
+
value: thePConn.getLocalizedValue(placeholder)
|
|
139
140
|
}); // 2nd and 3rd args empty string until typedef marked correctly
|
|
140
141
|
setOptions(optionsList);
|
|
141
142
|
}
|
|
@@ -170,7 +171,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
170
171
|
|
|
171
172
|
let readOnlyProp = {};
|
|
172
173
|
|
|
173
|
-
if (displayMode === '
|
|
174
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
174
175
|
return (
|
|
175
176
|
<FieldValueList
|
|
176
177
|
name={hideLabel ? '' : label}
|
|
@@ -217,7 +218,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
217
218
|
fullWidth
|
|
218
219
|
variant={readOnly ? 'standard' : 'outlined'}
|
|
219
220
|
helperText={helperTextToDisplay}
|
|
220
|
-
placeholder={thePConn.getLocalizedValue(placeholder, '', '')}
|
|
221
|
+
placeholder={thePConn.getLocalizedValue(placeholder, '', '')}
|
|
221
222
|
size='small'
|
|
222
223
|
required={required}
|
|
223
224
|
disabled={disabled}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { TextField } from '@material
|
|
3
|
-
import Autocomplete from '@material
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
|
+
import Autocomplete from '@mui/material/Autocomplete';
|
|
4
4
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
5
5
|
|
|
6
6
|
import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
@@ -8,6 +8,7 @@ import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/d
|
|
|
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
10
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
11
|
+
|
|
11
12
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
12
13
|
|
|
13
14
|
interface IOption {
|
|
@@ -154,7 +155,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
154
155
|
}
|
|
155
156
|
}, []);
|
|
156
157
|
|
|
157
|
-
if (displayMode === '
|
|
158
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
158
159
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
159
160
|
}
|
|
160
161
|
|
|
@@ -198,7 +199,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
198
199
|
getOptionLabel={(option: IOption) => {
|
|
199
200
|
return option.value ? option.value : '';
|
|
200
201
|
}}
|
|
201
|
-
|
|
202
|
+
isOptionEqualToValue={(option: any) => {
|
|
202
203
|
return option.value ? option.value : '';
|
|
203
204
|
}}
|
|
204
205
|
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import { Radio, RadioGroup, FormControl, FormControlLabel, FormLabel, FormHelperText } from '@material
|
|
2
|
+
import { Radio, RadioGroup, FormControl, FormControlLabel, FormLabel, FormHelperText } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
6
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
7
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
9
10
|
|
|
10
11
|
// Can't use RadioButtonProps until getLocaleRuleNameFromKeys is NOT private
|
|
@@ -65,7 +66,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
65
66
|
setSelectedButton(value);
|
|
66
67
|
}, [value]);
|
|
67
68
|
|
|
68
|
-
if (displayMode === '
|
|
69
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
69
70
|
return (
|
|
70
71
|
<FieldValueList
|
|
71
72
|
name={hideLabel ? '' : label}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import { TextField } from '@material
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
6
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
|
+
|
|
7
8
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
8
9
|
|
|
9
10
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -51,7 +52,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
51
52
|
setInputValue(value);
|
|
52
53
|
}, [value]);
|
|
53
54
|
|
|
54
|
-
if (displayMode === '
|
|
55
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
55
56
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { InputAdornment, TextField } from '@mui/material';
|
|
3
|
+
import MailOutlineIcon from '@mui/icons-material/MailOutline';
|
|
3
4
|
|
|
4
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
6
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
8
|
+
|
|
6
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
7
10
|
|
|
8
11
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -18,14 +21,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
18
21
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
19
22
|
|
|
20
23
|
const {
|
|
24
|
+
getPConnect,
|
|
21
25
|
label,
|
|
22
26
|
required,
|
|
23
27
|
disabled,
|
|
24
28
|
value = '',
|
|
25
29
|
validatemessage,
|
|
26
30
|
status,
|
|
27
|
-
onChange,
|
|
28
|
-
onBlur,
|
|
29
31
|
readOnly,
|
|
30
32
|
testId,
|
|
31
33
|
helperText,
|
|
@@ -33,9 +35,20 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
33
35
|
hideLabel,
|
|
34
36
|
placeholder
|
|
35
37
|
} = props;
|
|
38
|
+
|
|
39
|
+
const pConn = getPConnect();
|
|
40
|
+
const actions = pConn.getActionsApi();
|
|
41
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
42
|
+
|
|
36
43
|
const helperTextToDisplay = validatemessage || helperText;
|
|
37
44
|
|
|
38
|
-
|
|
45
|
+
const [inputValue, setInputValue] = useState('');
|
|
46
|
+
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
setInputValue(value);
|
|
49
|
+
}, [value]);
|
|
50
|
+
|
|
51
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
39
52
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
40
53
|
}
|
|
41
54
|
|
|
@@ -53,6 +66,15 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
53
66
|
'data-test-id': testId
|
|
54
67
|
};
|
|
55
68
|
|
|
69
|
+
function handleChange(event) {
|
|
70
|
+
// update internal value
|
|
71
|
+
setInputValue(event?.target?.value);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function handleBlur() {
|
|
75
|
+
handleEvent(actions, 'changeNblur', propName, inputValue);
|
|
76
|
+
}
|
|
77
|
+
|
|
56
78
|
return (
|
|
57
79
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
58
80
|
<TextField
|
|
@@ -63,11 +85,11 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
63
85
|
size='small'
|
|
64
86
|
required={required}
|
|
65
87
|
disabled={disabled}
|
|
66
|
-
onChange={
|
|
67
|
-
onBlur={!readOnly ?
|
|
88
|
+
onChange={handleChange}
|
|
89
|
+
onBlur={!readOnly ? handleBlur : undefined}
|
|
68
90
|
error={status === 'error'}
|
|
69
91
|
label={label}
|
|
70
|
-
value={
|
|
92
|
+
value={inputValue}
|
|
71
93
|
type='email'
|
|
72
94
|
{{! pick new delimiters for mustache }}
|
|
73
95
|
{{=<% %>=}}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import { TextField } from '@material
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
6
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
|
+
|
|
7
8
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
8
9
|
|
|
9
10
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -51,7 +52,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
51
52
|
setInputValue(value);
|
|
52
53
|
}, [value]);
|
|
53
54
|
|
|
54
|
-
if (displayMode === '
|
|
55
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
55
56
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
2
3
|
|
|
3
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
7
|
+
|
|
5
8
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
6
9
|
|
|
7
10
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -17,14 +20,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
17
20
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
18
21
|
|
|
19
22
|
const {
|
|
23
|
+
getPConnect,
|
|
20
24
|
label,
|
|
21
25
|
required,
|
|
22
26
|
disabled,
|
|
23
27
|
value = '',
|
|
24
28
|
validatemessage,
|
|
25
29
|
status,
|
|
26
|
-
onChange,
|
|
27
|
-
onBlur,
|
|
28
30
|
readOnly,
|
|
29
31
|
testId,
|
|
30
32
|
fieldMetadata,
|
|
@@ -35,11 +37,20 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
35
37
|
} = props;
|
|
36
38
|
const helperTextToDisplay = validatemessage || helperText;
|
|
37
39
|
|
|
40
|
+
const pConn = getPConnect();
|
|
41
|
+
const actions = pConn.getActionsApi();
|
|
42
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
38
43
|
const maxLength = fieldMetadata?.maxLength;
|
|
39
44
|
|
|
45
|
+
const [inputValue, setInputValue] = useState('');
|
|
46
|
+
|
|
40
47
|
let readOnlyProp = {};
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
setInputValue(value);
|
|
51
|
+
}, [value]);
|
|
52
|
+
|
|
53
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
43
54
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
44
55
|
}
|
|
45
56
|
|
|
@@ -59,6 +70,15 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
59
70
|
'data-test-id': testId
|
|
60
71
|
};
|
|
61
72
|
|
|
73
|
+
function handleChange(event) {
|
|
74
|
+
// update internal value
|
|
75
|
+
setInputValue(event?.target?.value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function handleBlur() {
|
|
79
|
+
handleEvent(actions, 'changeNblur', propName, inputValue);
|
|
80
|
+
}
|
|
81
|
+
|
|
62
82
|
return (
|
|
63
83
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
64
84
|
<TextField
|
|
@@ -72,11 +92,11 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
72
92
|
size='small'
|
|
73
93
|
required={required}
|
|
74
94
|
disabled={disabled}
|
|
75
|
-
onChange={
|
|
76
|
-
onBlur={!readOnly ?
|
|
95
|
+
onChange={handleChange}
|
|
96
|
+
onBlur={!readOnly ? handleBlur : undefined}
|
|
77
97
|
error={status === 'error'}
|
|
78
98
|
label={label}
|
|
79
|
-
value={
|
|
99
|
+
value={inputValue}
|
|
80
100
|
{{! pick new delimiters for mustache }}
|
|
81
101
|
{{=<% %>=}}
|
|
82
102
|
InputProps={{ ...readOnlyProp, inputProps: { maxLength, ...testProp } }}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import MuiPhoneNumber from 'material-ui-phone-number';
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
2
|
+
import { MuiTelInput } from 'mui-tel-input';
|
|
3
3
|
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
@@ -50,7 +50,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
50
50
|
'data-test-id': testId
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
if (displayMode === '
|
|
53
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
54
54
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -63,11 +63,12 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
63
63
|
return (
|
|
64
64
|
<div>
|
|
65
65
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
66
|
-
<
|
|
66
|
+
<MuiTelInput
|
|
67
67
|
fullWidth
|
|
68
68
|
helperText={helperTextToDisplay}
|
|
69
69
|
placeholder={placeholder ?? ''}
|
|
70
70
|
size='small'
|
|
71
|
+
defaultCountry='US'
|
|
71
72
|
required={required}
|
|
72
73
|
disabled={disabled}
|
|
73
74
|
onChange={onChange}
|
|
@@ -101,13 +102,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
101
102
|
|
|
102
103
|
return (
|
|
103
104
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
104
|
-
<
|
|
105
|
+
<MuiTelInput
|
|
105
106
|
fullWidth
|
|
106
107
|
variant='outlined'
|
|
107
108
|
helperText={helperTextToDisplay}
|
|
108
109
|
placeholder={placeholder ?? ''}
|
|
109
110
|
size='small'
|
|
110
|
-
defaultCountry='
|
|
111
|
+
defaultCountry='US'
|
|
111
112
|
required={required}
|
|
112
113
|
disabled={disabled}
|
|
113
114
|
onChange={handleChange}
|
|
@@ -1,7 +1,10 @@
|
|
|
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';
|
|
7
|
+
|
|
5
8
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
6
9
|
|
|
7
10
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -17,14 +20,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
17
20
|
const TextInput = getComponentFromMap('TextInput');
|
|
18
21
|
|
|
19
22
|
const {
|
|
23
|
+
getPConnect,
|
|
20
24
|
label,
|
|
21
25
|
required,
|
|
22
26
|
disabled,
|
|
23
27
|
value = '',
|
|
24
28
|
validatemessage,
|
|
25
29
|
status,
|
|
26
|
-
onChange,
|
|
27
|
-
onBlur,
|
|
28
30
|
readOnly,
|
|
29
31
|
testId,
|
|
30
32
|
helperText,
|
|
@@ -34,7 +36,17 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
34
36
|
} = props;
|
|
35
37
|
const helperTextToDisplay = validatemessage || helperText;
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
const [inputValue, setInputValue] = useState('');
|
|
40
|
+
|
|
41
|
+
const pConn = getPConnect();
|
|
42
|
+
const actions = pConn.getActionsApi();
|
|
43
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
44
|
+
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
setInputValue(value);
|
|
47
|
+
}, [value]);
|
|
48
|
+
|
|
49
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
38
50
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
39
51
|
}
|
|
40
52
|
|
|
@@ -52,6 +64,14 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
52
64
|
'data-test-id': testId
|
|
53
65
|
};
|
|
54
66
|
|
|
67
|
+
const handleChange = event => {
|
|
68
|
+
setInputValue(event?.target?.value);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
function handleBlur() {
|
|
72
|
+
handleEvent(actions, 'changeNblur', propName, inputValue);
|
|
73
|
+
}
|
|
74
|
+
|
|
55
75
|
return (
|
|
56
76
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
57
77
|
<TextField
|
|
@@ -63,11 +83,11 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
63
83
|
size='small'
|
|
64
84
|
required={required}
|
|
65
85
|
disabled={disabled}
|
|
66
|
-
onChange={
|
|
67
|
-
onBlur={!readOnly ?
|
|
86
|
+
onChange={handleChange}
|
|
87
|
+
onBlur={!readOnly ? handleBlur : undefined}
|
|
68
88
|
error={status === 'error'}
|
|
69
89
|
label={label}
|
|
70
|
-
value={
|
|
90
|
+
value={inputValue}
|
|
71
91
|
{{! pick new delimiters for mustache }}
|
|
72
92
|
{{=<% %>=}}
|
|
73
93
|
InputProps={{ inputProps: { ...testProp } }}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
|
|
2
|
+
// import AccessTimeIcon from '@mui/icons-material/AccessTime';
|
|
3
|
+
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
4
|
+
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
4
5
|
import dayjs from 'dayjs';
|
|
5
6
|
|
|
7
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
8
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
9
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
|
+
|
|
8
11
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
9
12
|
|
|
10
13
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
@@ -19,10 +22,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
19
22
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
20
23
|
const TextInput = getComponentFromMap('TextInput');
|
|
21
24
|
|
|
22
|
-
const { label, required, disabled, value = '', validatemessage, status,
|
|
25
|
+
const { getPConnect, label, required, disabled, value = '', validatemessage, status, readOnly, helperText, displayMode, hideLabel, testId } = props;
|
|
23
26
|
const helperTextToDisplay = validatemessage || helperText;
|
|
27
|
+
const pConn = getPConnect();
|
|
28
|
+
const actions = pConn.getActionsApi();
|
|
29
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
24
30
|
|
|
25
|
-
if (displayMode === '
|
|
31
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
26
32
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
27
33
|
}
|
|
28
34
|
|
|
@@ -42,11 +48,11 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
42
48
|
|
|
43
49
|
const handleChange = date => {
|
|
44
50
|
const theValue = date && date.isValid() ? date.format('HH:mm') : null;
|
|
45
|
-
|
|
51
|
+
handleEvent(actions, 'changeNblur', propName, theValue);
|
|
46
52
|
};
|
|
47
53
|
|
|
48
54
|
let timeValue: any = null;
|
|
49
|
-
if (value) {
|
|
55
|
+
if (value && Object.keys(value).length) {
|
|
50
56
|
const timeArray = value.split(':').map(itm => Number(itm));
|
|
51
57
|
timeValue = dayjs().hour(timeArray[0]).minute(timeArray[1]);
|
|
52
58
|
}
|
|
@@ -58,31 +64,35 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
58
64
|
|
|
59
65
|
return (
|
|
60
66
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
61
|
-
<
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
keyboardIcon={<AccessTimeIcon />}
|
|
67
|
-
fullWidth
|
|
68
|
-
required={required}
|
|
67
|
+
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
|
68
|
+
<TimePicker
|
|
69
|
+
// keyboardIcon={<AccessTimeIcon />}
|
|
70
|
+
// fullWidth
|
|
71
|
+
|
|
69
72
|
disabled={disabled}
|
|
70
|
-
error={status === 'error'}
|
|
71
|
-
helperText={helperTextToDisplay}
|
|
72
73
|
minutesStep={5}
|
|
73
|
-
size='small'
|
|
74
74
|
label={label}
|
|
75
|
-
autoOk
|
|
76
|
-
mask='__:__ _m'
|
|
75
|
+
// autoOk
|
|
76
|
+
// mask='__:__ _m'
|
|
77
77
|
format='hh:mm a'
|
|
78
78
|
value={timeValue}
|
|
79
79
|
onChange={handleChange}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
{{! pick new delimiters for mustache }}
|
|
81
|
+
{{=<% %>=}}
|
|
82
|
+
slotProps={{
|
|
83
|
+
textField: {
|
|
84
|
+
variant: 'outlined',
|
|
85
|
+
placeholder: 'hh:mm am',
|
|
86
|
+
required,
|
|
87
|
+
error: status === 'error',
|
|
88
|
+
helperText: helperTextToDisplay,
|
|
89
|
+
size: 'small',
|
|
90
|
+
InputProps: { ...testProp }
|
|
91
|
+
}
|
|
92
|
+
}}
|
|
93
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
84
94
|
/>
|
|
85
|
-
</
|
|
95
|
+
</LocalizationProvider>
|
|
86
96
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
87
97
|
);
|
|
88
98
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
|
-
import Grid from '@material
|
|
2
|
+
import Grid from '@mui/material/Grid';
|
|
3
3
|
|
|
4
4
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
@@ -21,7 +21,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
21
21
|
|
|
22
22
|
// Set display mode prop and re-create the children so this part of the dom tree renders
|
|
23
23
|
// in a readonly (display) mode instead of a editable
|
|
24
|
-
getPConnect().setInheritedProp('displayMode', '
|
|
24
|
+
getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
|
|
25
25
|
getPConnect().setInheritedProp('readOnly', true);
|
|
26
26
|
const children = (getPConnect().getChildren() as any[]).map((configObject, index) =>
|
|
27
27
|
createElement(createPConnectComponent(), {
|