@pega/dx-component-builder-sdk 0.242.2 → 0.242.4
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 +1 -1
- package/src/tasks/create/templates/Constellation/field/Decimal/index.tsx.mustache +3 -6
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.tsx.mustache +1 -3
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.tsx.mustache +2 -5
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/index.tsx.mustache +10 -52
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/Avatar.tsx.mustache +5 -7
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/Avatar.tsx.mustache +5 -7
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/Avatar.tsx.mustache +5 -7
- package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +9 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +21 -7
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/field/Picklist-Autocomplete/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +27 -6
- package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +25 -6
- 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 +25 -6
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +9 -5
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +5 -4
- package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +5 -5
- 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 +3 -3
- 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 +3 -2
- 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.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 +41 -34
- 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 +29 -25
- 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_MyCurrency/index.tsx +1 -3
- 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_MyDecimal/index.tsx +3 -6
- 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-constellation/field/Pega_DXIL_MyPercentage/index.tsx +2 -5
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/index.tsx +10 -52
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/utils.ts +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Avatar.tsx +5 -7
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +5 -7
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +5 -7
- 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 +4 -3
- 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 +6 -5
- 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 +6 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +2 -1
- 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 +18 -15
- 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 +3 -3
- 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 +3 -2
- 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.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 +41 -34
- 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 +29 -25
- 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/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/PConnProps.d.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/create-nonce.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/demo.stories.tsx +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/event-utils.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/index.tsx +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/mock.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/styles.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/suggestions-handler.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/textformat-utils.tsx +0 -0
|
@@ -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
|
}
|
|
@@ -25,7 +25,7 @@ type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
|
|
|
25
25
|
const renderField = resolvedProps => {
|
|
26
26
|
const { displayMode, value = '', label = '', onChange } = resolvedProps;
|
|
27
27
|
|
|
28
|
-
const variant = displayMode === '
|
|
28
|
+
const variant = displayMode === 'DISPLAY_ONLY' ? 'inline' : 'stacked';
|
|
29
29
|
let val: any = '';
|
|
30
30
|
|
|
31
31
|
{{! pick new delimiters for mustache }}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import withStyles from '@mui/styles/withStyles';
|
|
3
|
+
import createStyles from '@mui/styles/createStyles';
|
|
3
4
|
import Table from '@mui/material/Table';
|
|
4
5
|
import TableBody from '@mui/material/TableBody';
|
|
5
6
|
import TableCell from '@mui/material/TableCell';
|
|
@@ -152,9 +153,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
152
153
|
const theKey = `CaseHistory-${index}`;
|
|
153
154
|
theDataRows.push(
|
|
154
155
|
<TableRow key={theKey}>
|
|
155
|
-
<StyledTableCell>{dataRow[0] ? (dataRow[0]
|
|
156
|
-
<StyledTableCell>{dataRow[1] ? (dataRow[1]
|
|
157
|
-
<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>
|
|
158
159
|
</TableRow>
|
|
159
160
|
);
|
|
160
161
|
});
|
|
@@ -112,7 +112,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
112
112
|
function computeRowData(rows: Object[]): void {
|
|
113
113
|
const theRowData: Object[] = [];
|
|
114
114
|
|
|
115
|
-
rows
|
|
115
|
+
rows?.forEach((row: any, rowIndex: number) => {
|
|
116
116
|
// Now, for each property in the index of row properties (displayedColumns), add an object
|
|
117
117
|
// to a new array of values
|
|
118
118
|
const rowDisplayValues: any = [];
|
|
@@ -194,10 +194,10 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
194
194
|
const theKey = `CaseHistory-${index}`;
|
|
195
195
|
theDataRows.push(
|
|
196
196
|
<TableRow key={theKey}>
|
|
197
|
-
<StyledTableCell>{dataRow[0] ? (dataRow[0]
|
|
198
|
-
<StyledTableCell>{dataRow[1] ? (dataRow[1]
|
|
199
|
-
<StyledTableCell>{dataRow[2] ? (dataRow[2]
|
|
200
|
-
<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>
|
|
201
201
|
</TableRow>
|
|
202
202
|
);
|
|
203
203
|
});
|
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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
3
|
-
import Grid from '@material
|
|
4
|
-
import TextField from '@material
|
|
3
|
+
import Grid from '@mui/material/Grid';
|
|
4
|
+
import TextField from '@mui/material/TextField';
|
|
5
5
|
|
|
6
6
|
import { getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
7
7
|
import { getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils';
|
|
@@ -43,6 +43,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
43
43
|
default:
|
|
44
44
|
return (
|
|
45
45
|
<TextField
|
|
46
|
+
variant='standard'
|
|
46
47
|
value='---'
|
|
47
48
|
label={field.config.label}
|
|
48
49
|
InputProps={{
|
|
@@ -61,6 +62,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
61
62
|
case 'dropdown':
|
|
62
63
|
return (
|
|
63
64
|
<TextField
|
|
65
|
+
variant='standard'
|
|
64
66
|
value={field.config.value}
|
|
65
67
|
label={field.config.label}
|
|
66
68
|
InputProps={{
|
|
@@ -77,6 +79,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
77
79
|
|
|
78
80
|
return (
|
|
79
81
|
<TextField
|
|
82
|
+
variant='standard'
|
|
80
83
|
value={fieldValue}
|
|
81
84
|
label={fieldLabel}
|
|
82
85
|
InputProps={{
|
|
@@ -90,6 +93,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
90
93
|
case 'status':
|
|
91
94
|
return (
|
|
92
95
|
<TextField
|
|
96
|
+
variant='standard'
|
|
93
97
|
className='psdk-csf-status-style'
|
|
94
98
|
value={field.config.value}
|
|
95
99
|
label={field.config.label}
|
|
@@ -105,6 +109,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
105
109
|
return (
|
|
106
110
|
<a href={`tel:${displayPhone}`}>
|
|
107
111
|
<TextField
|
|
112
|
+
variant='standard'
|
|
108
113
|
value={field.config.value}
|
|
109
114
|
label={field.config.label}
|
|
110
115
|
InputProps={{
|
|
@@ -124,6 +129,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
124
129
|
return (
|
|
125
130
|
<a href={`mailto:${displayEmail}`}>
|
|
126
131
|
<TextField
|
|
132
|
+
variant='standard'
|
|
127
133
|
value={field.config.value}
|
|
128
134
|
label={field.config.label}
|
|
129
135
|
InputProps={{
|
|
@@ -145,6 +151,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
145
151
|
|
|
146
152
|
return (
|
|
147
153
|
<TextField
|
|
154
|
+
variant='standard'
|
|
148
155
|
value={format(field.config.value, field.type, {
|
|
149
156
|
format: theFormat
|
|
150
157
|
})}
|
|
@@ -161,6 +168,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
161
168
|
const theCurrencyOptions = getCurrencyOptions(field.config?.currencyISOCode);
|
|
162
169
|
return (
|
|
163
170
|
<TextField
|
|
171
|
+
variant='standard'
|
|
164
172
|
value={format(field.config.value, field.type, theCurrencyOptions)}
|
|
165
173
|
label={field.config.label}
|
|
166
174
|
InputProps={{
|
|
@@ -175,6 +183,7 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
|
175
183
|
case 'userreference':
|
|
176
184
|
return (
|
|
177
185
|
<TextField
|
|
186
|
+
variant='standard'
|
|
178
187
|
value={format(field.config.value, field.type)}
|
|
179
188
|
label={field.config.label}
|
|
180
189
|
InputProps={{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable react/no-array-index-key */
|
|
2
2
|
import React, { createElement, isValidElement } from 'react';
|
|
3
|
-
import Grid from '@material
|
|
4
|
-
import Typography from '@material
|
|
5
|
-
import
|
|
3
|
+
import Grid from '@mui/material/Grid';
|
|
4
|
+
import Typography from '@mui/material/Typography';
|
|
5
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
6
6
|
|
|
7
7
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
8
8
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
@@ -48,7 +48,7 @@ export default function DetailsFields(props: DetailsFieldsProps) {
|
|
|
48
48
|
const { label } = thePConn.getConfigProps();
|
|
49
49
|
const configObj = thePConn?.getReferencedView();
|
|
50
50
|
configObj.config.readOnly = true;
|
|
51
|
-
configObj.config.displayMode = '
|
|
51
|
+
configObj.config.displayMode = 'DISPLAY_ONLY';
|
|
52
52
|
const propToUse = { ...thePConn.getInheritedProps() };
|
|
53
53
|
configObj.config.label = theCompType === 'reference' ? propToUse?.label : label;
|
|
54
54
|
fieldComponents.push({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren, useState } from 'react';
|
|
2
|
-
import Grid from '@material
|
|
3
|
-
import
|
|
4
|
-
import KeyboardArrowRightIcon from '@
|
|
5
|
-
import KeyboardArrowDownIcon from '@
|
|
2
|
+
import Grid from '@mui/material/Grid';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
|
+
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
|
|
5
|
+
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
|
|
6
6
|
|
|
7
7
|
// FieldGroupProps is one of the few components that does NOT have getPConnect.
|
|
8
8
|
// So, no need to extend PConnProps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Grid from '@material
|
|
2
|
-
import Divider from '@material
|
|
3
|
-
import Link from '@material
|
|
1
|
+
import Grid from '@mui/material/Grid';
|
|
2
|
+
import Divider from '@mui/material/Divider';
|
|
3
|
+
import Link from '@mui/material/Link';
|
|
4
4
|
|
|
5
5
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ export default function FieldGroupList(props: FieldGroupListProps) {
|
|
|
47
47
|
</Grid>
|
|
48
48
|
))}
|
|
49
49
|
{props.onAdd && (
|
|
50
|
-
<Link onClick={props.onAdd} style={{ cursor: 'pointer' }}>
|
|
50
|
+
<Link onClick={props.onAdd} style={{ cursor: 'pointer' }} underline='hover'>
|
|
51
51
|
+Add
|
|
52
52
|
</Link>
|
|
53
53
|
)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Grid from '@material
|
|
2
|
-
import Typography from '@material
|
|
3
|
-
import
|
|
1
|
+
import Grid from '@mui/material/Grid';
|
|
2
|
+
import Typography from '@mui/material/Typography';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
4
|
|
|
5
5
|
// FieldValueList is one of the few components that does NOT have getPConnect.
|
|
6
6
|
// So, no need to extend PConnProps
|
|
@@ -1,9 +1,9 @@
|
|
|
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
7
|
|
|
8
8
|
import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
9
9
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
@@ -189,6 +189,7 @@ export default function Operator(props: OperatorProps) {
|
|
|
189
189
|
return (
|
|
190
190
|
<>
|
|
191
191
|
<TextField
|
|
192
|
+
variant='standard'
|
|
192
193
|
defaultValue={caseOpName}
|
|
193
194
|
label={caseOpLabel}
|
|
194
195
|
onClick={showOperatorDetails}
|
package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Pulse/Pulse.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Card, CardContent, CardHeader, Typography } from '@material
|
|
3
|
-
import
|
|
2
|
+
import { Card, CardContent, CardHeader, Typography } from '@mui/material';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
4
|
|
|
5
5
|
// Pulse is one of the few components that does NOT have getPConnect.
|
|
6
6
|
// So, no need to extend PConnProps
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { Editor } from '@tinymce/tinymce-react';
|
|
3
|
-
import { FormControl, FormHelperText, InputLabel
|
|
3
|
+
import { FormControl, FormHelperText, InputLabel } from '@mui/material';
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
5
|
|
|
5
6
|
import { useAfterInitialEffect, useConsolidatedRef, useUID } from '@pega/react-sdk-components/lib/hooks';
|
|
6
7
|
|
|
@@ -107,7 +108,7 @@ const RichTextEditor = forwardRef(function RichTextEditor(props: RichTextEditorP
|
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
return (
|
|
110
|
-
<FormControl data-test-id={testId} error={error} required={required}>
|
|
111
|
+
<FormControl variant='standard' data-test-id={testId} error={error} required={required}>
|
|
111
112
|
{!labelHidden && (
|
|
112
113
|
<InputLabel id='demo-simple-select-error-label' className={classes.fieldLabel}>
|
|
113
114
|
{label}
|
package/tests/assets/sdk-r/components/create/override-sdk/field/AutoComplete/AutoComplete.tsx
CHANGED
|
@@ -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';
|
|
@@ -150,7 +150,7 @@ export default function AutoComplete(props: AutoCompleteProps) {
|
|
|
150
150
|
}
|
|
151
151
|
}, []);
|
|
152
152
|
|
|
153
|
-
if (displayMode === '
|
|
153
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
154
154
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -191,7 +191,7 @@ export default function AutoComplete(props: AutoCompleteProps) {
|
|
|
191
191
|
getOptionLabel={(option: IOption) => {
|
|
192
192
|
return option.value ? option.value : '';
|
|
193
193
|
}}
|
|
194
|
-
|
|
194
|
+
isOptionEqualToValue={(option: any) => {
|
|
195
195
|
return option.value ? option.value : '';
|
|
196
196
|
}}
|
|
197
197
|
fullWidth
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { Button, Grid, IconButton, Snackbar } from '@material
|
|
3
|
-
import CloseIcon from '@
|
|
2
|
+
import { Button, Grid, IconButton, Snackbar } from '@mui/material';
|
|
3
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
4
4
|
|
|
5
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
6
|
import './CancelAlert.css';
|
|
@@ -89,7 +89,7 @@ export default function CancelAlert(props: CancelAlertProps) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function handleSnackbarClose(event: React.SyntheticEvent |
|
|
92
|
+
function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {
|
|
93
93
|
if (reason === 'clickaway') {
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable react/no-array-index-key */
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { Checkbox, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel } from '@material
|
|
3
|
+
import { Checkbox, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel } from '@mui/material';
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
5
|
|
|
5
6
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
7
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
8
|
import { insertInstruction, deleteInstruction, updateNewInstuctions } from '@pega/react-sdk-components/lib/components/helpers/instructions-utils';
|
|
8
9
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
10
10
|
|
|
11
11
|
interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
|
|
12
12
|
// If any, enter additional props that only exist on Checkbox here
|
|
@@ -77,7 +77,7 @@ export default function CheckboxComponent(props: CheckboxProps) {
|
|
|
77
77
|
}
|
|
78
78
|
}, [thePConn]);
|
|
79
79
|
|
|
80
|
-
if (displayMode === '
|
|
80
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
81
81
|
return <FieldValueList name={hideLabel ? '' : caption} value={value ? trueLabel : falseLabel} />;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -161,7 +161,7 @@ export default function CheckboxComponent(props: CheckboxProps) {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
return (
|
|
164
|
-
<FormControl required={required} error={status === 'error'}>
|
|
164
|
+
<FormControl variant='standard' required={required} error={status === 'error'}>
|
|
165
165
|
{!hideLabel && <FormLabel component='legend'>{label}</FormLabel>}
|
|
166
166
|
<FormGroup>{theCheckbox}</FormGroup>
|
|
167
167
|
<FormHelperText>{helperTextToDisplay}</FormHelperText>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextField } from '@material-ui/core';
|
|
2
1
|
import { useState } from 'react';
|
|
3
2
|
import { NumericFormat } from 'react-number-format';
|
|
3
|
+
import { TextField } from '@mui/material';
|
|
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';
|
|
6
6
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
@@ -67,7 +67,7 @@ export default function Currency(props: CurrrencyProps) {
|
|
|
67
67
|
let currencyProp = {};
|
|
68
68
|
currencyProp = { prefix: theCurrSym, decimalSeparator: theCurrDec, thousandSeparator: theCurrSep };
|
|
69
69
|
|
|
70
|
-
if (displayMode === '
|
|
70
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
71
71
|
return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
3
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
4
|
|
|
3
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
4
6
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
@@ -20,22 +22,9 @@ export default function Date(props: DateProps) {
|
|
|
20
22
|
const TextInput = getComponentFromMap('TextInput');
|
|
21
23
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
22
24
|
|
|
23
|
-
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
required,
|
|
27
|
-
disabled,
|
|
28
|
-
value = '',
|
|
29
|
-
validatemessage,
|
|
30
|
-
status,
|
|
31
|
-
onChange,
|
|
32
|
-
onBlur,
|
|
33
|
-
readOnly,
|
|
34
|
-
testId,
|
|
35
|
-
helperText,
|
|
36
|
-
displayMode,
|
|
37
|
-
hideLabel
|
|
38
|
-
} = props;
|
|
25
|
+
const { getPConnect, label, required, disabled, value, validatemessage, status, readOnly, testId, helperText, displayMode, hideLabel } = props;
|
|
26
|
+
|
|
27
|
+
const [dateValue, setDateValue] = useState<Dayjs | null>(value ? dayjs(value) : null);
|
|
39
28
|
|
|
40
29
|
const pConn = getPConnect();
|
|
41
30
|
const actions = pConn.getActionsApi();
|
|
@@ -50,7 +39,7 @@ export default function Date(props: DateProps) {
|
|
|
50
39
|
dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
|
|
51
40
|
dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
|
|
52
41
|
|
|
53
|
-
if (displayMode === '
|
|
42
|
+
if (displayMode === 'DISPLAY_ONLY') {
|
|
54
43
|
const formattedDate = format(props.value, 'date', {
|
|
55
44
|
format: dateFormatInfo.dateFormatString
|
|
56
45
|
});
|
|
@@ -77,37 +66,29 @@ export default function Date(props: DateProps) {
|
|
|
77
66
|
|
|
78
67
|
const handleChange = date => {
|
|
79
68
|
if (date && date.isValid()) {
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const handleAccept = date => {
|
|
85
|
-
if (date && date.isValid()) {
|
|
69
|
+
setDateValue(date);
|
|
86
70
|
handleEvent(actions, 'changeNblur', propName, getFormattedDate(date));
|
|
87
71
|
}
|
|
88
72
|
};
|
|
89
73
|
|
|
90
74
|
return (
|
|
91
|
-
<
|
|
92
|
-
disableToolbar
|
|
93
|
-
variant='inline'
|
|
94
|
-
inputVariant='outlined'
|
|
95
|
-
placeholder={dateFormatInfo.dateFormatStringLC}
|
|
96
|
-
format={dateFormatInfo.dateFormatString}
|
|
97
|
-
mask={dateFormatInfo.dateFormatMask}
|
|
98
|
-
fullWidth
|
|
99
|
-
autoOk
|
|
100
|
-
required={required}
|
|
101
|
-
disabled={disabled}
|
|
102
|
-
error={status === 'error'}
|
|
103
|
-
helperText={helperTextToDisplay}
|
|
104
|
-
size='small'
|
|
75
|
+
<DatePicker
|
|
105
76
|
label={label}
|
|
106
|
-
|
|
77
|
+
disabled={disabled}
|
|
78
|
+
format={dateFormatInfo.dateFormatString}
|
|
79
|
+
value={dateValue}
|
|
80
|
+
slotProps={{
|
|
81
|
+
textField: {
|
|
82
|
+
required,
|
|
83
|
+
variant: 'outlined',
|
|
84
|
+
placeholder: dateFormatInfo.dateFormatStringLC,
|
|
85
|
+
error: status === 'error',
|
|
86
|
+
helperText: helperTextToDisplay,
|
|
87
|
+
size: 'small',
|
|
88
|
+
InputProps: { ...testProp }
|
|
89
|
+
}
|
|
90
|
+
}}
|
|
107
91
|
onChange={handleChange}
|
|
108
|
-
onBlur={!readOnly ? onBlur : undefined}
|
|
109
|
-
onAccept={handleAccept}
|
|
110
|
-
InputProps={{ ...testProp }}
|
|
111
92
|
/>
|
|
112
93
|
);
|
|
113
94
|
}
|