@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
|
@@ -108,7 +108,7 @@ export const pyReviewRaw = {
|
|
|
108
108
|
value: 'John',
|
|
109
109
|
label: 'First Name',
|
|
110
110
|
hasSuggestions: false,
|
|
111
|
-
displayMode: '
|
|
111
|
+
displayMode: 'DISPLAY_ONLY',
|
|
112
112
|
getPConnect: () => {
|
|
113
113
|
return {
|
|
114
114
|
getActionsApi: () => {
|
|
@@ -133,7 +133,7 @@ export const pyReviewRaw = {
|
|
|
133
133
|
value: '',
|
|
134
134
|
label: 'Middle Name',
|
|
135
135
|
hasSuggestions: false,
|
|
136
|
-
displayMode: '
|
|
136
|
+
displayMode: 'DISPLAY_ONLY',
|
|
137
137
|
getPConnect: () => {
|
|
138
138
|
return {
|
|
139
139
|
getActionsApi: () => {
|
|
@@ -158,7 +158,7 @@ export const pyReviewRaw = {
|
|
|
158
158
|
value: 'Doe',
|
|
159
159
|
label: 'Last Name',
|
|
160
160
|
hasSuggestions: false,
|
|
161
|
-
displayMode: '
|
|
161
|
+
displayMode: 'DISPLAY_ONLY',
|
|
162
162
|
getPConnect: () => {
|
|
163
163
|
return {
|
|
164
164
|
getActionsApi: () => {
|
|
@@ -183,13 +183,30 @@ export const pyReviewRaw = {
|
|
|
183
183
|
required: true,
|
|
184
184
|
testId: 'CE8AE9DA5B7CD6C3DF2929543A9AF92D',
|
|
185
185
|
hasSuggestions: false,
|
|
186
|
-
displayMode: '
|
|
186
|
+
displayMode: 'DISPLAY_ONLY',
|
|
187
|
+
getPConnect: () => {
|
|
188
|
+
return {
|
|
189
|
+
getActionsApi: () => {
|
|
190
|
+
return {
|
|
191
|
+
updateFieldValue: () => {
|
|
192
|
+
/* nothing */
|
|
193
|
+
},
|
|
194
|
+
triggerFieldChange: () => {
|
|
195
|
+
/* nothing */
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
getStateProps: () => {
|
|
200
|
+
return { value: '.email' };
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
}
|
|
187
204
|
},
|
|
188
205
|
{
|
|
189
206
|
readOnly: undefined,
|
|
190
207
|
value: '+16397975093',
|
|
191
208
|
label: 'Phone',
|
|
192
|
-
displayMode: '
|
|
209
|
+
displayMode: 'DISPLAY_ONLY',
|
|
193
210
|
hasSuggestions: false,
|
|
194
211
|
getPConnect: () => {
|
|
195
212
|
return {
|
|
@@ -215,7 +232,7 @@ export const pyReviewRaw = {
|
|
|
215
232
|
value: '90.99',
|
|
216
233
|
label: 'Price',
|
|
217
234
|
hasSuggestions: false,
|
|
218
|
-
displayMode: '
|
|
235
|
+
displayMode: 'DISPLAY_ONLY',
|
|
219
236
|
getPConnect: () => {
|
|
220
237
|
return {
|
|
221
238
|
getActionsApi: () => {
|
|
@@ -237,7 +254,7 @@ export const pyReviewRaw = {
|
|
|
237
254
|
value: '100 Mbps',
|
|
238
255
|
label: 'Internet Plan',
|
|
239
256
|
hasSuggestions: false,
|
|
240
|
-
displayMode: '
|
|
257
|
+
displayMode: 'DISPLAY_ONLY',
|
|
241
258
|
getPConnect: () => {
|
|
242
259
|
return {
|
|
243
260
|
getActionsApi: () => {
|
|
@@ -347,7 +364,7 @@ export const pyReviewResolved = {
|
|
|
347
364
|
}
|
|
348
365
|
}
|
|
349
366
|
],
|
|
350
|
-
displayMode: '
|
|
367
|
+
displayMode: 'DISPLAY_ONLY'
|
|
351
368
|
};
|
|
352
369
|
|
|
353
370
|
export const regionChildrenResolved = [
|
|
@@ -355,13 +372,13 @@ export const regionChildrenResolved = [
|
|
|
355
372
|
readOnly: true,
|
|
356
373
|
value: '',
|
|
357
374
|
label: 'SLA Deadline',
|
|
358
|
-
displayMode: '
|
|
375
|
+
displayMode: 'DISPLAY_ONLY'
|
|
359
376
|
},
|
|
360
377
|
{
|
|
361
378
|
readOnly: true,
|
|
362
379
|
value: '',
|
|
363
380
|
label: 'SLA Goal',
|
|
364
|
-
displayMode: '
|
|
381
|
+
displayMode: 'DISPLAY_ONLY'
|
|
365
382
|
},
|
|
366
383
|
{
|
|
367
384
|
readOnly: true,
|
|
@@ -378,6 +395,6 @@ export const regionChildrenResolved = [
|
|
|
378
395
|
value: 'Current Date Time'
|
|
379
396
|
}
|
|
380
397
|
],
|
|
381
|
-
displayMode: '
|
|
398
|
+
displayMode: 'DISPLAY_ONLY'
|
|
382
399
|
}
|
|
383
400
|
];
|
|
@@ -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(), {
|
|
@@ -108,7 +108,7 @@ export const pyReviewRaw = {
|
|
|
108
108
|
value: 'John',
|
|
109
109
|
label: 'First Name',
|
|
110
110
|
hasSuggestions: false,
|
|
111
|
-
displayMode: '
|
|
111
|
+
displayMode: 'DISPLAY_ONLY',
|
|
112
112
|
getPConnect: () => {
|
|
113
113
|
return {
|
|
114
114
|
getActionsApi: () => {
|
|
@@ -133,7 +133,7 @@ export const pyReviewRaw = {
|
|
|
133
133
|
value: '',
|
|
134
134
|
label: 'Middle Name',
|
|
135
135
|
hasSuggestions: false,
|
|
136
|
-
displayMode: '
|
|
136
|
+
displayMode: 'DISPLAY_ONLY',
|
|
137
137
|
getPConnect: () => {
|
|
138
138
|
return {
|
|
139
139
|
getActionsApi: () => {
|
|
@@ -158,7 +158,7 @@ export const pyReviewRaw = {
|
|
|
158
158
|
value: 'Doe',
|
|
159
159
|
label: 'Last Name',
|
|
160
160
|
hasSuggestions: false,
|
|
161
|
-
displayMode: '
|
|
161
|
+
displayMode: 'DISPLAY_ONLY',
|
|
162
162
|
getPConnect: () => {
|
|
163
163
|
return {
|
|
164
164
|
getActionsApi: () => {
|
|
@@ -183,7 +183,7 @@ export const pyReviewRaw = {
|
|
|
183
183
|
required: true,
|
|
184
184
|
testId: 'CE8AE9DA5B7CD6C3DF2929543A9AF92D',
|
|
185
185
|
hasSuggestions: false,
|
|
186
|
-
displayMode: '
|
|
186
|
+
displayMode: 'DISPLAY_ONLY',
|
|
187
187
|
getPConnect: () => {
|
|
188
188
|
return {
|
|
189
189
|
getActionsApi: () => {
|
|
@@ -206,7 +206,7 @@ export const pyReviewRaw = {
|
|
|
206
206
|
readOnly: undefined,
|
|
207
207
|
value: '+16397975093',
|
|
208
208
|
label: 'Phone',
|
|
209
|
-
displayMode: '
|
|
209
|
+
displayMode: 'DISPLAY_ONLY',
|
|
210
210
|
hasSuggestions: false,
|
|
211
211
|
getPConnect: () => {
|
|
212
212
|
return {
|
|
@@ -232,7 +232,7 @@ export const pyReviewRaw = {
|
|
|
232
232
|
value: '90.99',
|
|
233
233
|
label: 'Price',
|
|
234
234
|
hasSuggestions: false,
|
|
235
|
-
displayMode: '
|
|
235
|
+
displayMode: 'DISPLAY_ONLY',
|
|
236
236
|
getPConnect: () => {
|
|
237
237
|
return {
|
|
238
238
|
getActionsApi: () => {
|
|
@@ -254,7 +254,7 @@ export const pyReviewRaw = {
|
|
|
254
254
|
value: '100 Mbps',
|
|
255
255
|
label: 'Internet Plan',
|
|
256
256
|
hasSuggestions: false,
|
|
257
|
-
displayMode: '
|
|
257
|
+
displayMode: 'DISPLAY_ONLY',
|
|
258
258
|
getPConnect: () => {
|
|
259
259
|
return {
|
|
260
260
|
getActionsApi: () => {
|
|
@@ -302,7 +302,7 @@ export const pyReviewRaw = {
|
|
|
302
302
|
value: '',
|
|
303
303
|
label: 'Middle Name',
|
|
304
304
|
hasSuggestions: false,
|
|
305
|
-
displayMode: '
|
|
305
|
+
displayMode: 'DISPLAY_ONLY',
|
|
306
306
|
getPConnect: () => {
|
|
307
307
|
return {
|
|
308
308
|
getActionsApi: () => {
|
|
@@ -327,7 +327,7 @@ export const pyReviewRaw = {
|
|
|
327
327
|
value: 'Doe',
|
|
328
328
|
label: 'Last Name',
|
|
329
329
|
hasSuggestions: false,
|
|
330
|
-
displayMode: '
|
|
330
|
+
displayMode: 'DISPLAY_ONLY',
|
|
331
331
|
getPConnect: () => {
|
|
332
332
|
return {
|
|
333
333
|
getActionsApi: () => {
|
|
@@ -352,7 +352,7 @@ export const pyReviewRaw = {
|
|
|
352
352
|
required: true,
|
|
353
353
|
testId: 'CE8AE9DA5B7CD6C3DF2929543A9AF92D',
|
|
354
354
|
hasSuggestions: false,
|
|
355
|
-
displayMode: '
|
|
355
|
+
displayMode: 'DISPLAY_ONLY',
|
|
356
356
|
getPConnect: () => {
|
|
357
357
|
return {
|
|
358
358
|
getActionsApi: () => {
|
|
@@ -375,7 +375,7 @@ export const pyReviewRaw = {
|
|
|
375
375
|
readOnly: undefined,
|
|
376
376
|
value: '+16397975093',
|
|
377
377
|
label: 'Phone',
|
|
378
|
-
displayMode: '
|
|
378
|
+
displayMode: 'DISPLAY_ONLY',
|
|
379
379
|
hasSuggestions: false,
|
|
380
380
|
getPConnect: () => {
|
|
381
381
|
return {
|
|
@@ -401,7 +401,7 @@ export const pyReviewRaw = {
|
|
|
401
401
|
value: '90.99',
|
|
402
402
|
label: 'Price',
|
|
403
403
|
hasSuggestions: false,
|
|
404
|
-
displayMode: '
|
|
404
|
+
displayMode: 'DISPLAY_ONLY',
|
|
405
405
|
getPConnect: () => {
|
|
406
406
|
return {
|
|
407
407
|
getActionsApi: () => {
|
|
@@ -423,7 +423,7 @@ export const pyReviewRaw = {
|
|
|
423
423
|
value: '100 Mbps',
|
|
424
424
|
label: 'Internet Plan',
|
|
425
425
|
hasSuggestions: false,
|
|
426
|
-
displayMode: '
|
|
426
|
+
displayMode: 'DISPLAY_ONLY',
|
|
427
427
|
getPConnect: () => {
|
|
428
428
|
return {
|
|
429
429
|
getActionsApi: () => {
|
|
@@ -274,6 +274,19 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
274
274
|
},
|
|
275
275
|
getPConnect: () => {
|
|
276
276
|
return {
|
|
277
|
+
getActionsApi: () => {
|
|
278
|
+
return {
|
|
279
|
+
updateFieldValue: () => {
|
|
280
|
+
/* nothing */
|
|
281
|
+
},
|
|
282
|
+
triggerFieldChange: () => {
|
|
283
|
+
/* nothing */
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
},
|
|
287
|
+
getStateProps: () => {
|
|
288
|
+
return { value: '.email' };
|
|
289
|
+
},
|
|
277
290
|
getComputedVisibility: () => {
|
|
278
291
|
return true;
|
|
279
292
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
|
|
4
|
-
import { TextField } from '@material
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
4
|
+
import { TextField } from '@mui/material';
|
|
5
|
+
import { MuiTelInput } from 'mui-tel-input';
|
|
6
|
+
import { DatePicker, LocalizationProvider } from '@mui/x-date-pickers';
|
|
7
|
+
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
8
9
|
|
|
9
10
|
import {{COMPONENT_CLASS_NAME}} from './index';
|
|
10
11
|
import { pyReviewRaw } from './mock';
|
|
@@ -22,30 +23,38 @@ export default meta;
|
|
|
22
23
|
type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
|
|
23
24
|
|
|
24
25
|
const renderField = resolvedProps => {
|
|
25
|
-
const { displayMode, value = '', label = '', onChange } = resolvedProps;
|
|
26
|
+
const { displayMode, value = '', label = '', readOnly, onChange, onBlur, required, disabled, helperText, placeholder, validatemessage, status, testId } = resolvedProps;
|
|
26
27
|
|
|
27
|
-
const
|
|
28
|
+
const helperTextToDisplay = validatemessage || helperText;
|
|
29
|
+
let testProp = {};
|
|
30
|
+
|
|
31
|
+
testProp = {
|
|
32
|
+
'data-test-id': testId
|
|
33
|
+
};
|
|
34
|
+
const variant = displayMode === 'DISPLAY_ONLY' ? 'inline' : 'stacked';
|
|
28
35
|
let val: any = '';
|
|
36
|
+
|
|
37
|
+
{{! pick new delimiters for mustache }}
|
|
38
|
+
{{=<% %>=}}
|
|
29
39
|
if (label === 'Service Date')
|
|
30
40
|
val = (
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
variant='inline'
|
|
34
|
-
inputVariant='outlined'
|
|
35
|
-
placeholder='mm/dd/yyyy'
|
|
36
|
-
fullWidth
|
|
37
|
-
format='MM/DD/YYYY'
|
|
38
|
-
mask='__/__/____'
|
|
39
|
-
size='small'
|
|
41
|
+
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
|
42
|
+
<DatePicker
|
|
40
43
|
label={label}
|
|
41
|
-
|
|
44
|
+
format='MM/DD/YYYY'
|
|
45
|
+
value={value ? dayjs(value) : null}
|
|
46
|
+
slotProps={{
|
|
47
|
+
textField: {
|
|
48
|
+
variant: 'outlined',
|
|
49
|
+
placeholder: 'mm/dd/yyyy',
|
|
50
|
+
size: 'small'
|
|
51
|
+
}
|
|
52
|
+
}}
|
|
42
53
|
onChange={onChange}
|
|
43
54
|
/>
|
|
44
|
-
</
|
|
55
|
+
</LocalizationProvider>
|
|
45
56
|
);
|
|
46
57
|
|
|
47
|
-
{{! pick new delimiters for mustache }}
|
|
48
|
-
{{=<% %>=}}
|
|
49
58
|
if (label === 'Email')
|
|
50
59
|
val = (
|
|
51
60
|
<TextField
|
|
@@ -65,15 +74,21 @@ const renderField = resolvedProps => {
|
|
|
65
74
|
|
|
66
75
|
if (label === 'Phone Number')
|
|
67
76
|
val = (
|
|
68
|
-
<
|
|
69
|
-
value={value}
|
|
77
|
+
<MuiTelInput
|
|
70
78
|
fullWidth
|
|
71
79
|
variant='outlined'
|
|
80
|
+
helperText={helperTextToDisplay}
|
|
81
|
+
placeholder={placeholder ?? ''}
|
|
72
82
|
size='small'
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
defaultCountry='US'
|
|
84
|
+
required={required}
|
|
85
|
+
disabled={disabled}
|
|
76
86
|
onChange={onChange}
|
|
87
|
+
onBlur={!readOnly ? onBlur : undefined}
|
|
88
|
+
error={status === 'error'}
|
|
89
|
+
label={label}
|
|
90
|
+
value={value}
|
|
91
|
+
InputProps={{ ...testProp }}
|
|
77
92
|
/>
|
|
78
93
|
);
|
|
79
94
|
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
@@ -155,7 +170,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
155
170
|
hasSuggestions: false,
|
|
156
171
|
onChange: val => {
|
|
157
172
|
setPhone(val);
|
|
158
|
-
}
|
|
173
|
+
},
|
|
174
|
+
onBlur: () => {}
|
|
159
175
|
},
|
|
160
176
|
{
|
|
161
177
|
readOnly: undefined,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { Grid
|
|
3
|
-
import
|
|
2
|
+
import { Grid } from '@mui/material';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
4
|
|
|
5
5
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
6
6
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
@@ -35,8 +35,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: PropsWithChildren<{{COMP
|
|
|
35
35
|
// Calculate the size
|
|
36
36
|
// Default to assume the 2 columns are evenly split. However, override if templateCol
|
|
37
37
|
// (example value: "1fr 1fr")
|
|
38
|
-
let aSize
|
|
39
|
-
let bSize
|
|
38
|
+
let aSize = 6;
|
|
39
|
+
let bSize = 6;
|
|
40
40
|
|
|
41
41
|
const colAArray = templateCol
|
|
42
42
|
.replaceAll(/[a-z]+/g, '')
|
|
@@ -44,8 +44,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: PropsWithChildren<{{COMP
|
|
|
44
44
|
.map(itm => Number(itm));
|
|
45
45
|
const totalCols = colAArray.reduce((v, itm) => itm + v, 0);
|
|
46
46
|
const ratio = 12 / totalCols;
|
|
47
|
-
aSize = (ratio * colAArray[0]) as
|
|
48
|
-
bSize = (ratio * colAArray[1]) as
|
|
47
|
+
aSize = (ratio * colAArray[0]) as number;
|
|
48
|
+
bSize = (ratio * colAArray[1]) as number;
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
51
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import Grid from '@mui/material/Grid';
|
|
2
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
3
3
|
|
|
4
4
|
interface OneColumnProps {
|
|
5
5
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import withStyles from '@mui/styles/withStyles';
|
|
3
|
+
import createStyles from '@mui/styles/createStyles';
|
|
4
|
+
import Table from '@mui/material/Table';
|
|
5
|
+
import TableBody from '@mui/material/TableBody';
|
|
6
|
+
import TableCell from '@mui/material/TableCell';
|
|
7
|
+
import TableContainer from '@mui/material/TableContainer';
|
|
8
|
+
import TableHead from '@mui/material/TableHead';
|
|
9
|
+
import TableRow from '@mui/material/TableRow';
|
|
9
10
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
10
11
|
|
|
11
12
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
12
13
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
14
|
+
|
|
13
15
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
14
16
|
|
|
15
17
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
|
|
16
18
|
// If any, enter additional props that only exist on this component
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
const StyledTableCell = withStyles((
|
|
21
|
+
const StyledTableCell = withStyles((myTheme) =>
|
|
20
22
|
createStyles({
|
|
21
23
|
head: {
|
|
22
24
|
borderWidth: '1px',
|
|
23
25
|
borderStyle: 'solid',
|
|
24
26
|
borderColor: 'silver',
|
|
25
|
-
backgroundColor:
|
|
26
|
-
color:
|
|
27
|
+
backgroundColor: myTheme.palette.text.disabled,
|
|
28
|
+
color: myTheme.palette.getContrastText(myTheme.palette.text.disabled)
|
|
27
29
|
},
|
|
28
30
|
body: {
|
|
29
31
|
borderWidth: '1px',
|
|
@@ -151,9 +153,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
151
153
|
const theKey = `CaseHistory-${index}`;
|
|
152
154
|
theDataRows.push(
|
|
153
155
|
<TableRow key={theKey}>
|
|
154
|
-
<StyledTableCell>{dataRow[0] ? (dataRow[0]
|
|
155
|
-
<StyledTableCell>{dataRow[1] ? (dataRow[1]
|
|
156
|
-
<StyledTableCell>{dataRow[2] ? (dataRow[2]
|
|
156
|
+
<StyledTableCell>{dataRow[0] ? (dataRow[0]) : '---' as any}</StyledTableCell>
|
|
157
|
+
<StyledTableCell>{dataRow[1] ? (dataRow[1]) : '---' as any}</StyledTableCell>
|
|
158
|
+
<StyledTableCell>{dataRow[2] ? (dataRow[2]) : '---' as any}</StyledTableCell>
|
|
157
159
|
</TableRow>
|
|
158
160
|
);
|
|
159
161
|
});
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Card,
|
|
3
|
-
CardContent,
|
|
4
|
-
CardHeader,
|
|
1
|
+
import {
|
|
2
|
+
Card,
|
|
3
|
+
CardContent,
|
|
4
|
+
CardHeader,
|
|
5
5
|
Typography,
|
|
6
|
-
CardActions,
|
|
6
|
+
CardActions,
|
|
7
7
|
Button,
|
|
8
8
|
TableContainer,
|
|
9
9
|
Table,
|
|
10
10
|
TableBody,
|
|
11
11
|
TableHead,
|
|
12
|
-
withStyles,
|
|
13
|
-
createStyles,
|
|
14
|
-
Theme,
|
|
15
12
|
TableCell,
|
|
16
|
-
TableRow
|
|
17
|
-
} from '@material
|
|
18
|
-
import {
|
|
13
|
+
TableRow
|
|
14
|
+
} from '@mui/material';
|
|
15
|
+
import { withStyles, createStyles } from '@mui/styles';
|
|
16
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
19
17
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
18
|
+
|
|
20
19
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
21
20
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
22
21
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
23
22
|
import { useRef, useEffect, useState } from 'react';
|
|
23
|
+
import { Theme as MuiTheme } from "@mui/material/styles";
|
|
24
|
+
|
|
25
|
+
declare module "@mui/private-theming" {
|
|
26
|
+
interface DefaultTheme extends MuiTheme {
|
|
27
|
+
spacing: (spacing: number) => string;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
24
30
|
|
|
25
31
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
|
|
26
32
|
// If any, enter additional props that only exist on this component
|
|
@@ -30,23 +36,23 @@ interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
|
|
|
30
36
|
whatsnewlink?: string;
|
|
31
37
|
}
|
|
32
38
|
|
|
33
|
-
const useStyles = makeStyles(
|
|
39
|
+
const useStyles = makeStyles(myTheme => ({
|
|
34
40
|
root: {
|
|
35
|
-
marginTop:
|
|
36
|
-
marginBottom:
|
|
41
|
+
marginTop: myTheme.spacing(1),
|
|
42
|
+
marginBottom: myTheme.spacing(1),
|
|
37
43
|
borderLeft: '6px solid',
|
|
38
|
-
borderLeftColor:
|
|
44
|
+
borderLeftColor: myTheme.palette.primary.light
|
|
39
45
|
}
|
|
40
46
|
}));
|
|
41
47
|
|
|
42
|
-
const StyledTableCell = withStyles((
|
|
48
|
+
const StyledTableCell = withStyles((myTheme) =>
|
|
43
49
|
createStyles({
|
|
44
50
|
head: {
|
|
45
51
|
borderWidth: '1px',
|
|
46
52
|
borderStyle: 'solid',
|
|
47
53
|
borderColor: 'silver',
|
|
48
|
-
backgroundColor:
|
|
49
|
-
color:
|
|
54
|
+
backgroundColor: myTheme.palette.text.disabled,
|
|
55
|
+
color: myTheme.palette.getContrastText(myTheme.palette.text.disabled)
|
|
50
56
|
},
|
|
51
57
|
body: {
|
|
52
58
|
borderWidth: '1px',
|
|
@@ -106,7 +112,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
106
112
|
function computeRowData(rows: Object[]): void {
|
|
107
113
|
const theRowData: Object[] = [];
|
|
108
114
|
|
|
109
|
-
rows
|
|
115
|
+
rows?.forEach((row: any, rowIndex: number) => {
|
|
110
116
|
// Now, for each property in the index of row properties (displayedColumns), add an object
|
|
111
117
|
// to a new array of values
|
|
112
118
|
const rowDisplayValues: any = [];
|
|
@@ -188,10 +194,10 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
188
194
|
const theKey = `CaseHistory-${index}`;
|
|
189
195
|
theDataRows.push(
|
|
190
196
|
<TableRow key={theKey}>
|
|
191
|
-
<StyledTableCell>{dataRow[0] ? (dataRow[0]
|
|
192
|
-
<StyledTableCell>{dataRow[1] ? (dataRow[1]
|
|
193
|
-
<StyledTableCell>{dataRow[2] ? (dataRow[2]
|
|
194
|
-
<StyledTableCell>{dataRow[3] ? (dataRow[3]
|
|
197
|
+
<StyledTableCell>{dataRow[0] ? (dataRow[0]) : '---' as any}</StyledTableCell>
|
|
198
|
+
<StyledTableCell>{dataRow[1] ? (dataRow[1]) : '---' as any}</StyledTableCell>
|
|
199
|
+
<StyledTableCell>{dataRow[2] ? (dataRow[2]) : '---' as any}</StyledTableCell>
|
|
200
|
+
<StyledTableCell>{dataRow[3] ? (dataRow[3]) : '---' as any}</StyledTableCell>
|
|
195
201
|
</TableRow>
|
|
196
202
|
);
|
|
197
203
|
});
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import TextField from '@material
|
|
3
|
-
import Popover from '@material
|
|
4
|
-
import Grid from '@material
|
|
5
|
-
import Typography from '@material
|
|
6
|
-
import
|
|
2
|
+
import TextField from '@mui/material/TextField';
|
|
3
|
+
import Popover from '@mui/material/Popover';
|
|
4
|
+
import Grid from '@mui/material/Grid';
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
7
|
+
import { Theme as MuiTheme } from "@mui/material/styles";
|
|
7
8
|
|
|
8
9
|
import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
9
10
|
|
|
10
11
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
12
|
+
|
|
11
13
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
12
14
|
|
|
15
|
+
declare module "@mui/private-theming" {
|
|
16
|
+
interface DefaultTheme extends MuiTheme {
|
|
17
|
+
spacing: (spacing: number) => string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
|
|
14
22
|
// If any, enter additional props that only exist on this component
|
|
15
23
|
label: string;
|
|
@@ -22,14 +30,14 @@ interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
|
|
|
22
30
|
displayLabel?: any;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
|
-
const useStyles = makeStyles(
|
|
33
|
+
const useStyles = makeStyles(myTheme => ({
|
|
26
34
|
root: {
|
|
27
|
-
padding:
|
|
28
|
-
margin:
|
|
35
|
+
padding: myTheme.spacing(1),
|
|
36
|
+
margin: myTheme.spacing(1)
|
|
29
37
|
},
|
|
30
38
|
popover: {
|
|
31
|
-
padding:
|
|
32
|
-
margin:
|
|
39
|
+
padding: myTheme.spacing(1),
|
|
40
|
+
margin: myTheme.spacing(1)
|
|
33
41
|
}
|
|
34
42
|
}));
|
|
35
43
|
|
package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx
CHANGED
|
@@ -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 StyledPegaDxilMyTestTextWrapper from './styles';
|
|
8
9
|
|
|
9
10
|
interface PegaDxilMyTestTextProps extends PConnFieldProps {
|
|
@@ -51,7 +52,7 @@ export default function PegaDxilMyTestText(props: PegaDxilMyTestTextProps) {
|
|
|
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
|
|