@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
package/tests/assets/sdk-r/components/create/override-sdk/widget/CaseHistory/CaseHistory.tsx
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import withStyles from '@mui/styles/withStyles';
|
|
4
|
+
import createStyles from '@mui/styles/createStyles';
|
|
5
|
+
import Table from '@mui/material/Table';
|
|
6
|
+
import TableBody from '@mui/material/TableBody';
|
|
7
|
+
import TableCell from '@mui/material/TableCell';
|
|
8
|
+
import TableContainer from '@mui/material/TableContainer';
|
|
9
|
+
import TableHead from '@mui/material/TableHead';
|
|
10
|
+
import TableRow from '@mui/material/TableRow';
|
|
9
11
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
10
12
|
|
|
11
13
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
@@ -145,9 +147,9 @@ export default function CaseHistory(props: CaseHistoryProps) {
|
|
|
145
147
|
const theKey = `CaseHistory-${index}`;
|
|
146
148
|
theDataRows.push(
|
|
147
149
|
<TableRow key={theKey}>
|
|
148
|
-
<StyledTableCell>{dataRow[0] ? dataRow[0] : '---'}</StyledTableCell>
|
|
149
|
-
<StyledTableCell>{dataRow[1] ? dataRow[1] : '---'}</StyledTableCell>
|
|
150
|
-
<StyledTableCell>{dataRow[2] ? dataRow[2] : '---'}</StyledTableCell>
|
|
150
|
+
<StyledTableCell>{dataRow[0] ? dataRow[0] : ('---' as any)}</StyledTableCell>
|
|
151
|
+
<StyledTableCell>{dataRow[1] ? dataRow[1] : ('---' as any)}</StyledTableCell>
|
|
152
|
+
<StyledTableCell>{dataRow[2] ? dataRow[2] : ('---' as any)}</StyledTableCell>
|
|
151
153
|
</TableRow>
|
|
152
154
|
);
|
|
153
155
|
});
|
package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/FileUtility.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import TextField from '@material
|
|
2
|
+
import TextField from '@mui/material/TextField';
|
|
3
3
|
|
|
4
4
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
5
5
|
|
|
@@ -7,8 +7,8 @@ import download from 'downloadjs';
|
|
|
7
7
|
// import SummaryList from '../../SummaryList';
|
|
8
8
|
// import ActionButtonsForFileUtil from '../ActionButtonsForFileUtil';
|
|
9
9
|
import './FileUtility.css';
|
|
10
|
-
import { IconButton, Menu, MenuItem, Button, CircularProgress } from '@material
|
|
11
|
-
import MoreVertIcon from '@
|
|
10
|
+
import { IconButton, Menu, MenuItem, Button, CircularProgress } from '@mui/material';
|
|
11
|
+
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
12
12
|
|
|
13
13
|
import { validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
|
|
14
14
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
@@ -508,6 +508,7 @@ export default function FileUtility(props: FileUtilityProps) {
|
|
|
508
508
|
aria-expanded={open ? 'true' : undefined}
|
|
509
509
|
aria-haspopup='true'
|
|
510
510
|
onClick={handleClick}
|
|
511
|
+
size='large'
|
|
511
512
|
>
|
|
512
513
|
<MoreVertIcon />
|
|
513
514
|
</IconButton>
|
|
@@ -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
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
5
5
|
|
|
6
6
|
interface FollowersProps extends PConnProps {
|
package/tests/assets/sdk-r/components/create/override-sdk/widget/SummaryItem/SummaryItem.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { IconButton, Menu, MenuItem } from '@material
|
|
3
|
-
import MoreVertIcon from '@
|
|
2
|
+
import { IconButton, Menu, MenuItem } from '@mui/material';
|
|
3
|
+
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
4
4
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
5
5
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
6
|
|
|
@@ -69,6 +69,7 @@ export default function SummaryItem(props: SummaryItemProps) {
|
|
|
69
69
|
aria-expanded={open ? 'true' : undefined}
|
|
70
70
|
aria-haspopup='true'
|
|
71
71
|
onClick={handleClick}
|
|
72
|
+
size='large'
|
|
72
73
|
>
|
|
73
74
|
<MoreVertIcon />
|
|
74
75
|
</IconButton>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
2
|
-
import React, { useState } from 'react';
|
|
2
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
Box,
|
|
5
5
|
Button,
|
|
@@ -13,19 +13,53 @@ import {
|
|
|
13
13
|
ListItem,
|
|
14
14
|
ListItemText,
|
|
15
15
|
ListItemSecondaryAction
|
|
16
|
-
} from '@material
|
|
17
|
-
import Snackbar from '@material
|
|
18
|
-
import IconButton from '@material
|
|
19
|
-
import CloseIcon from '@
|
|
20
|
-
import ArrowForwardIosOutlinedIcon from '@
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
16
|
+
} from '@mui/material';
|
|
17
|
+
import Snackbar from '@mui/material/Snackbar';
|
|
18
|
+
import IconButton from '@mui/material/IconButton';
|
|
19
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
20
|
+
import ArrowForwardIosOutlinedIcon from '@mui/icons-material/ArrowForwardIosOutlined';
|
|
21
|
+
import { useTheme } from '@mui/material/styles';
|
|
22
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
23
|
+
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
23
24
|
|
|
24
25
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
25
26
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
26
27
|
|
|
27
28
|
import './ToDo.css';
|
|
28
29
|
|
|
30
|
+
const fetchMyWorkList = (datapage, fields, numberOfRecords, includeTotalCount, context) => {
|
|
31
|
+
return PCore.getDataPageUtils()
|
|
32
|
+
.getDataAsync(
|
|
33
|
+
datapage,
|
|
34
|
+
context,
|
|
35
|
+
{},
|
|
36
|
+
{
|
|
37
|
+
pageNumber: 1,
|
|
38
|
+
pageSize: numberOfRecords
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
select: Object.keys(fields).map(key => ({ field: PCore.getAnnotationUtils().getPropertyName(fields[key]) }))
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
invalidateCache: true,
|
|
45
|
+
additionalApiParams: {
|
|
46
|
+
includeTotalCount
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
.then(response => {
|
|
51
|
+
return {
|
|
52
|
+
...response,
|
|
53
|
+
data: (Array.isArray(response?.data) ? response.data : []).map(row =>
|
|
54
|
+
Object.keys(fields).reduce((obj, key) => {
|
|
55
|
+
obj[key] = row[PCore.getAnnotationUtils().getPropertyName(fields[key])];
|
|
56
|
+
return obj;
|
|
57
|
+
}, {})
|
|
58
|
+
)
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
|
|
29
63
|
interface ToDoProps extends PConnProps {
|
|
30
64
|
// If any, enter additional props that only exist on this component
|
|
31
65
|
datasource?: any;
|
|
@@ -37,7 +71,7 @@ interface ToDoProps extends PConnProps {
|
|
|
37
71
|
itemKey?: string;
|
|
38
72
|
showTodoList?: boolean;
|
|
39
73
|
type?: string;
|
|
40
|
-
|
|
74
|
+
|
|
41
75
|
context?: string;
|
|
42
76
|
isConfirm?: boolean;
|
|
43
77
|
}
|
|
@@ -81,12 +115,20 @@ const useStyles = makeStyles(theme => ({
|
|
|
81
115
|
}));
|
|
82
116
|
|
|
83
117
|
export default function ToDo(props: ToDoProps) {
|
|
84
|
-
const {
|
|
118
|
+
const {
|
|
119
|
+
getPConnect,
|
|
120
|
+
context,
|
|
121
|
+
datasource = [],
|
|
122
|
+
headerText = 'To do',
|
|
123
|
+
showTodoList = true,
|
|
124
|
+
myWorkList = {},
|
|
125
|
+
type = 'worklist',
|
|
126
|
+
isConfirm = false
|
|
127
|
+
} = props;
|
|
85
128
|
|
|
86
129
|
const CONSTS = PCore.getConstants();
|
|
87
130
|
|
|
88
131
|
const bLogging = true;
|
|
89
|
-
let assignmentCount = 0;
|
|
90
132
|
const currentUser = PCore.getEnvironmentInfo().getOperatorName();
|
|
91
133
|
const currentUserInitials = Utils.getInitials(currentUser);
|
|
92
134
|
const assignmentsSource = datasource?.source || myWorkList?.source;
|
|
@@ -106,17 +148,36 @@ export default function ToDo(props: ToDoProps) {
|
|
|
106
148
|
const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');
|
|
107
149
|
const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');
|
|
108
150
|
const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;
|
|
109
|
-
|
|
151
|
+
const [count, setCount] = useState(0);
|
|
152
|
+
|
|
153
|
+
const {
|
|
154
|
+
WORK_BASKET: { MY_WORK_LIST }
|
|
155
|
+
} = PCore.getConstants();
|
|
110
156
|
|
|
111
157
|
function initAssignments(): any[] {
|
|
112
158
|
if (assignmentsSource) {
|
|
113
|
-
assignmentCount = assignmentsSource.length;
|
|
114
159
|
return topThreeAssignments(assignmentsSource);
|
|
115
160
|
}
|
|
116
161
|
// turn off todolist
|
|
117
162
|
return [];
|
|
118
163
|
}
|
|
119
164
|
|
|
165
|
+
const deferLoadWorklistItems = useCallback(
|
|
166
|
+
responseData => {
|
|
167
|
+
setCount(responseData.totalCount);
|
|
168
|
+
setAssignments(responseData.data);
|
|
169
|
+
},
|
|
170
|
+
[MY_WORK_LIST]
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
useEffect(() => {
|
|
174
|
+
if (Object.keys(myWorkList).length && myWorkList.datapage) {
|
|
175
|
+
fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, 3, true, context).then(responseData => {
|
|
176
|
+
deferLoadWorklistItems(responseData);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}, []);
|
|
180
|
+
|
|
120
181
|
const getAssignmentId = assignment => {
|
|
121
182
|
return type === CONSTS.TODO ? assignment.ID : assignment.id;
|
|
122
183
|
};
|
|
@@ -137,7 +198,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
137
198
|
setShowSnackbar(true);
|
|
138
199
|
}
|
|
139
200
|
|
|
140
|
-
function handleSnackbarClose(event: React.SyntheticEvent |
|
|
201
|
+
function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {
|
|
141
202
|
if (reason === 'clickaway') {
|
|
142
203
|
return;
|
|
143
204
|
}
|
|
@@ -146,12 +207,18 @@ export default function ToDo(props: ToDoProps) {
|
|
|
146
207
|
|
|
147
208
|
function _showMore() {
|
|
148
209
|
setBShowMore(false);
|
|
149
|
-
|
|
210
|
+
if (type === CONSTS.WORKLIST && count && count > assignments.length && !assignmentsSource) {
|
|
211
|
+
fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, count, false, context).then(response => {
|
|
212
|
+
setAssignments(response.data);
|
|
213
|
+
});
|
|
214
|
+
} else {
|
|
215
|
+
setAssignments(assignmentsSource);
|
|
216
|
+
}
|
|
150
217
|
}
|
|
151
218
|
|
|
152
219
|
function _showLess() {
|
|
153
220
|
setBShowMore(true);
|
|
154
|
-
setAssignments(
|
|
221
|
+
setAssignments(assignments => assignments.slice(0, 3));
|
|
155
222
|
}
|
|
156
223
|
|
|
157
224
|
function clickGo(assignment) {
|
|
@@ -223,12 +290,15 @@ export default function ToDo(props: ToDoProps) {
|
|
|
223
290
|
);
|
|
224
291
|
};
|
|
225
292
|
|
|
293
|
+
// eslint-disable-next-line no-nested-ternary
|
|
294
|
+
const getCount = () => (assignmentsSource ? assignmentsSource.length : type === CONSTS.WORKLIST ? count : 0);
|
|
295
|
+
|
|
226
296
|
const toDoContent = (
|
|
227
297
|
<>
|
|
228
298
|
{showTodoList && (
|
|
229
299
|
<CardHeader
|
|
230
300
|
title={
|
|
231
|
-
<Badge badgeContent={
|
|
301
|
+
<Badge badgeContent={getCount()} overlap='rectangular' color='primary'>
|
|
232
302
|
<Typography variant='h6'>{headerText} </Typography>
|
|
233
303
|
</Badge>
|
|
234
304
|
}
|
|
@@ -249,7 +319,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
249
319
|
</div>
|
|
250
320
|
{(!isConfirm || canPerform) && (
|
|
251
321
|
<div style={{ marginLeft: 'auto' }}>
|
|
252
|
-
<IconButton id='go-btn' onClick={() => clickGo(assignment)}>
|
|
322
|
+
<IconButton id='go-btn' onClick={() => clickGo(assignment)} size='large'>
|
|
253
323
|
<ArrowForwardIosOutlinedIcon />
|
|
254
324
|
</IconButton>
|
|
255
325
|
</div>
|
|
@@ -267,7 +337,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
267
337
|
{showTodoList && (
|
|
268
338
|
<CardHeader
|
|
269
339
|
title={
|
|
270
|
-
<Badge badgeContent={
|
|
340
|
+
<Badge badgeContent={getCount()} overlap='rectangular' color='primary'>
|
|
271
341
|
<Typography variant='h6'>{headerText} </Typography>
|
|
272
342
|
</Badge>
|
|
273
343
|
}
|
|
@@ -280,7 +350,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
280
350
|
<ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>
|
|
281
351
|
<ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />
|
|
282
352
|
<ListItemSecondaryAction>
|
|
283
|
-
<IconButton onClick={() => clickGo(assignment)}>
|
|
353
|
+
<IconButton onClick={() => clickGo(assignment)} size='large'>
|
|
284
354
|
<ArrowForwardIosOutlinedIcon />
|
|
285
355
|
</IconButton>
|
|
286
356
|
</ListItemSecondaryAction>
|
|
@@ -294,7 +364,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
294
364
|
{type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}
|
|
295
365
|
{type === CONSTS.TODO && isConfirm && <>{toDoContent}</>}
|
|
296
366
|
|
|
297
|
-
{
|
|
367
|
+
{getCount() > 3 && (
|
|
298
368
|
<Box display='flex' justifyContent='center'>
|
|
299
369
|
{bShowMore ? (
|
|
300
370
|
<Button color='primary' onClick={_showMore}>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
// @ts-nocheck
|
|
4
3
|
import { useState } from 'react';
|
|
5
4
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
6
5
|
|
|
@@ -17,7 +16,7 @@ const meta: Meta<typeof PegaDxilMyBoolean> = {
|
|
|
17
16
|
export default meta;
|
|
18
17
|
type Story = StoryObj<typeof PegaDxilMyBoolean>;
|
|
19
18
|
|
|
20
|
-
export const BasePegaDxilMyBoolean: Story = args => {
|
|
19
|
+
export const BasePegaDxilMyBoolean: Story = (args: any) => {
|
|
21
20
|
|
|
22
21
|
const [value, setValue] = useState(configProps.value);
|
|
23
22
|
|
|
@@ -31,7 +30,7 @@ export const BasePegaDxilMyBoolean: Story = args => {
|
|
|
31
30
|
},
|
|
32
31
|
getActionsApi: () => {
|
|
33
32
|
return {
|
|
34
|
-
updateFieldValue: (propName, theValue) => {
|
|
33
|
+
updateFieldValue: (propName: string, theValue: any) => {
|
|
35
34
|
setValue(theValue);
|
|
36
35
|
},
|
|
37
36
|
triggerFieldChange: () => { /* nothing */}
|
|
@@ -87,7 +87,6 @@ function PegaDxilMyBoolean(props: PegaDxilMyBooleanProps) {
|
|
|
87
87
|
handleEvent(actions, "changeNblur", propName, event.target.checked);
|
|
88
88
|
}}
|
|
89
89
|
onBlur={(event: { target: { checked: any; }; }) => {
|
|
90
|
-
// @ts-ignore
|
|
91
90
|
pConn.getValidationApi().validate(event.target.checked);
|
|
92
91
|
}}
|
|
93
92
|
data-testid={testId}
|
|
@@ -98,15 +97,17 @@ function PegaDxilMyBoolean(props: PegaDxilMyBooleanProps) {
|
|
|
98
97
|
|
|
99
98
|
let displayComponent;
|
|
100
99
|
if (displayMode) {
|
|
101
|
-
// @ts-ignore
|
|
102
100
|
displayComponent = (
|
|
103
|
-
// @ts-ignore
|
|
104
101
|
<BooleanDisplay value={value} trueLabel={trueLabel} falseLabel={falseLabel} />
|
|
105
102
|
);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
109
|
-
return (
|
|
106
|
+
return (
|
|
107
|
+
<StyledPegaDxilMyBooleanWrapper>
|
|
108
|
+
{displayComponent}
|
|
109
|
+
</StyledPegaDxilMyBooleanWrapper>
|
|
110
|
+
);
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
if (displayMode === "LABELS_LEFT") {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import { useState, useEffect } from 'react';
|
|
3
2
|
import {
|
|
4
3
|
CurrencyInput as CosmosCurrency,
|
|
@@ -262,9 +261,8 @@ function PegaDxilMyCurrency(props: PegaDxilMyCurrencyProps) {
|
|
|
262
261
|
});
|
|
263
262
|
}}
|
|
264
263
|
onBlur={(enteredValue) => {
|
|
265
|
-
const parsedValue = enteredValue !== '' ? Number(enteredValue) : enteredValue;
|
|
264
|
+
const parsedValue = enteredValue !== '' ? Number(enteredValue).toString() : enteredValue;
|
|
266
265
|
if (!readOnly && (!value || value !== parsedValue)) {
|
|
267
|
-
// @ts-ignore
|
|
268
266
|
handleEvent(actions, 'changeNblur', propName, parsedValue);
|
|
269
267
|
if (hasSuggestions) {
|
|
270
268
|
pConn.ignoreSuggestion('');
|
|
@@ -104,8 +104,7 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
|
|
|
104
104
|
}, [validatemessage, hasSuggestions, myStatus]);
|
|
105
105
|
|
|
106
106
|
// calculate min and max range of calendar
|
|
107
|
-
|
|
108
|
-
const currentYear = getFullYear();
|
|
107
|
+
const currentYear = getFullYear(null);
|
|
109
108
|
|
|
110
109
|
const yearFromValue = getFullYear(value);
|
|
111
110
|
const maxDate = getMaxDate(
|
|
@@ -161,7 +160,7 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
|
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
|
|
164
|
-
if (formatter !== "" && formatExists(formatter)){
|
|
163
|
+
if (formatter !== "" && formatExists(formatter)) {
|
|
165
164
|
// @ts-ignore
|
|
166
165
|
const {variantVal, formatVal} = datetimedisplayformatter(formatter);
|
|
167
166
|
variantValue = variantVal;
|
|
@@ -225,8 +224,7 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
|
|
|
225
224
|
hideLabel={hideLabel}
|
|
226
225
|
testId={testId}
|
|
227
226
|
additionalProps={textAdditionalProps}
|
|
228
|
-
|
|
229
|
-
customFormat={getDateFormat(locale)}
|
|
227
|
+
customFormat={getDateFormat(locale, null)}
|
|
230
228
|
/>
|
|
231
229
|
</StyledPegaDxilMyDateWrapper>
|
|
232
230
|
);
|
|
@@ -88,9 +88,8 @@ function PegaDxilMyDecimal(props: PegaDxilMyDecimalProps) {
|
|
|
88
88
|
}, [validatemessage, hasSuggestions, status]);
|
|
89
89
|
|
|
90
90
|
const { decimalPrecision, currencyDecimalPrecision } = props;
|
|
91
|
-
let numberOfDecimals = parseInt(decimalPrecision, 10);
|
|
91
|
+
let numberOfDecimals: number | undefined = parseInt(decimalPrecision, 10);
|
|
92
92
|
if (Number.isNaN(numberOfDecimals)) {
|
|
93
|
-
// @ts-ignore
|
|
94
93
|
numberOfDecimals = decimalPrecision === '' ? undefined : 2;
|
|
95
94
|
}
|
|
96
95
|
let noOfFractionDigits = currencyDecimalPrecision === 'auto' ? undefined : parseInt(currencyDecimalPrecision, 10);
|
|
@@ -223,15 +222,13 @@ function PegaDxilMyDecimal(props: PegaDxilMyDecimalProps) {
|
|
|
223
222
|
}
|
|
224
223
|
setDecimalValue(enteredValue);
|
|
225
224
|
if (value !== (enteredValue !== '' ? Number(enteredValue) : '')) {
|
|
226
|
-
|
|
227
|
-
handleEvent(actions, 'change', propName, enteredValue !== '' ? Number(enteredValue) : '');
|
|
225
|
+
handleEvent(actions, 'change', propName, enteredValue !== '' ? Number(enteredValue).toString() : '');
|
|
228
226
|
hasValueChange.current = true;
|
|
229
227
|
}
|
|
230
228
|
}}
|
|
231
229
|
onBlur={() => {
|
|
232
230
|
if (!value || hasValueChange.current) {
|
|
233
|
-
|
|
234
|
-
handleEvent(actions, 'blur', propName, decimalValue !== '' ? Number(decimalValue) : '');
|
|
231
|
+
handleEvent(actions, 'blur', propName, decimalValue !== '' ? Number(decimalValue).toString() : '');
|
|
235
232
|
if (hasSuggestions) {
|
|
236
233
|
pConn.ignoreSuggestion("");
|
|
237
234
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
2
|
-
// @ts-nocheck
|
|
3
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
3
|
|
|
5
4
|
import { stateProps, configProps, fieldMetadata } from './mock';
|
|
@@ -15,7 +14,7 @@ const meta: Meta<typeof PegaDxilMyInteger> = {
|
|
|
15
14
|
export default meta;
|
|
16
15
|
type Story = StoryObj<typeof PegaDxilMyInteger>;
|
|
17
16
|
|
|
18
|
-
export const BasePegaDxilMyInteger: Story = args => {
|
|
17
|
+
export const BasePegaDxilMyInteger: Story = (args: any) => {
|
|
19
18
|
|
|
20
19
|
const props = {
|
|
21
20
|
value: configProps.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const handleEvent = (actions: any, eventType: string, propName: string, value: string) => {
|
|
1
|
+
const handleEvent = (actions: any, eventType: string, propName: string, value: string | number) => {
|
|
2
2
|
switch (eventType) {
|
|
3
3
|
case 'change':
|
|
4
4
|
actions.updateFieldValue(propName, value);
|
|
@@ -112,21 +112,17 @@ function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
|
|
|
112
112
|
|
|
113
113
|
useEffect(() => {
|
|
114
114
|
if (displayAs === 'slider' && value === '') {
|
|
115
|
-
// @ts-ignore
|
|
116
115
|
handleEvent(actions, 'change', propName, sliderDefaultValue);
|
|
117
116
|
}
|
|
118
117
|
}, [actions, displayAs, propName, sliderDefaultValue, value]);
|
|
119
118
|
|
|
120
119
|
const { decimalPrecision, currencyDecimalPrecision = 'auto', currencyISOCode = 'USD' } = props;
|
|
121
|
-
let noOfDecimals = parseInt(decimalPrecision, 10);
|
|
122
|
-
// @ts-ignore
|
|
120
|
+
let noOfDecimals : number | undefined = parseInt(decimalPrecision, 10);
|
|
123
121
|
if (Number.isNaN(noOfDecimals)) noOfDecimals = undefined;
|
|
124
122
|
let noOfFractionDigits = currencyDecimalPrecision === 'auto' ? undefined : parseInt(currencyDecimalPrecision, 10);
|
|
125
123
|
let unit;
|
|
126
|
-
let unitPlacement;
|
|
127
124
|
|
|
128
|
-
|
|
129
|
-
if (['LABELS_LEFT', 'STACKED_LARGE_VAL', 'DISPLAY_ONLY'].includes(displayMode)) {
|
|
125
|
+
if (['LABELS_LEFT', 'STACKED_LARGE_VAL', 'DISPLAY_ONLY'].includes(displayMode as string)) {
|
|
130
126
|
switch (formatter) {
|
|
131
127
|
case 'Decimal': {
|
|
132
128
|
break;
|
|
@@ -134,7 +130,6 @@ function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
|
|
|
134
130
|
case 'Percentage': {
|
|
135
131
|
showGroupSeparators = false;
|
|
136
132
|
unit = '%';
|
|
137
|
-
unitPlacement = 'after';
|
|
138
133
|
break;
|
|
139
134
|
}
|
|
140
135
|
case 'Decimal-Auto': {
|
|
@@ -178,7 +173,6 @@ function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
|
|
|
178
173
|
notation
|
|
179
174
|
}}
|
|
180
175
|
unit={unit}
|
|
181
|
-
unitPlacement={unitPlacement}
|
|
182
176
|
/>
|
|
183
177
|
);
|
|
184
178
|
|
|
@@ -230,13 +224,11 @@ function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
|
|
|
230
224
|
setIntegerValue(enteredValue);
|
|
231
225
|
// const parsedValue = integerValue !== '' ? Number(integerValue) : '';
|
|
232
226
|
if (value !== (enteredValue !== '' ? Number(enteredValue) : '')) {
|
|
233
|
-
// @ts-ignore
|
|
234
227
|
handleEvent(actions, 'change', propName, enteredValue !== '' ? Number(enteredValue) : '');
|
|
235
228
|
hasValueChange.current = true;
|
|
236
229
|
}
|
|
237
230
|
// In case of stepper variation there is no blur event as component is never focussed unless forced. Need to update redux on change.
|
|
238
231
|
if (displayAs === 'stepper') {
|
|
239
|
-
// @ts-ignore
|
|
240
232
|
handleEvent(actions, 'changeNblur', propName, enteredValue !== '' ? Number(enteredValue) : '');
|
|
241
233
|
}
|
|
242
234
|
}
|
|
@@ -268,7 +260,6 @@ function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
|
|
|
268
260
|
ticks={showTicks && { [min]: `${min}`, [max]: `${max}` }}
|
|
269
261
|
onChange={(selectedValue) => {
|
|
270
262
|
onChangeHandler(selectedValue.toString());
|
|
271
|
-
// @ts-ignore
|
|
272
263
|
handleEvent(actions, 'changeNblur', propName, selectedValue);
|
|
273
264
|
}}
|
|
274
265
|
/>
|
|
@@ -295,7 +286,6 @@ function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
|
|
|
295
286
|
}}
|
|
296
287
|
onBlur={() => {
|
|
297
288
|
if (!readOnly && (hasValueChange.current || !value)) {
|
|
298
|
-
// @ts-ignore
|
|
299
289
|
handleEvent(actions, 'blur', propName, integerValue !== '' ? Number(integerValue) : '');
|
|
300
290
|
if (hasSuggestions) {
|
|
301
291
|
pConn.ignoreSuggestion('');
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
export const configProps = {
|
|
3
2
|
value: '',
|
|
4
3
|
label: 'Integer Sample',
|
|
@@ -12,7 +11,9 @@ export const configProps = {
|
|
|
12
11
|
required: false,
|
|
13
12
|
disabled: false,
|
|
14
13
|
status: '',
|
|
15
|
-
validatemessage: ''
|
|
14
|
+
validatemessage: '',
|
|
15
|
+
placeholder: '',
|
|
16
|
+
variant: ''
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
export const stateProps = {
|
|
@@ -94,9 +94,8 @@ function PegaDxilMyPercentage(props: PegaDxilMyPercentageProps) {
|
|
|
94
94
|
}
|
|
95
95
|
}, [validatemessage, hasSuggestions, status]);
|
|
96
96
|
|
|
97
|
-
let numberOfDecimals = parseInt(decimalPrecision, 10);
|
|
97
|
+
let numberOfDecimals : number | undefined = parseInt(decimalPrecision, 10);
|
|
98
98
|
if (Number.isNaN(numberOfDecimals)) {
|
|
99
|
-
// @ts-ignore
|
|
100
99
|
numberOfDecimals = decimalPrecision === '' ? undefined : 2;
|
|
101
100
|
}
|
|
102
101
|
|
|
@@ -241,15 +240,13 @@ function PegaDxilMyPercentage(props: PegaDxilMyPercentageProps) {
|
|
|
241
240
|
}
|
|
242
241
|
setPercentageValue(enteredValue);
|
|
243
242
|
if (value !== enteredValue) {
|
|
244
|
-
// @ts-ignore
|
|
245
243
|
handleEvent(actions, 'change', propName, enteredValue);
|
|
246
244
|
hasValueChange.current = true;
|
|
247
245
|
}
|
|
248
246
|
}}
|
|
249
247
|
onBlur={() => {
|
|
250
|
-
const parsedValue = percentageValue !== '' ? Number(percentageValue) : '';
|
|
248
|
+
const parsedValue = percentageValue !== '' ? Number(percentageValue).toString() : '';
|
|
251
249
|
if (!value || hasValueChange.current) {
|
|
252
|
-
// @ts-ignore
|
|
253
250
|
handleEvent(actions, 'blur', propName, parsedValue);
|
|
254
251
|
if (hasSuggestions) {
|
|
255
252
|
pConn.ignoreSuggestion("");
|