@pega/dx-component-builder-sdk 24.2.11 → 24.2.12
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/README.md +3 -3
- package/package.json +1 -1
- package/src/constants.js +39 -6
- package/src/tasks/create/templates/Constellation/field/Date/demo.stories.tsx.mustache +0 -16
- package/src/tasks/create/templates/Constellation/field/DateTime/demo.stories.tsx.mustache +0 -17
- package/src/tasks/create/templates/Constellation/field/Decimal/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/demo.stories.tsx.mustache +9 -20
- package/src/tasks/create/templates/Constellation/field/Picklist/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/field/Text/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Email/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Email/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text-Input/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Paragraph/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Phone/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/field/Text-URL/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/TimeOfDay/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/template/DETAILS/demo.stories.tsx.mustache +10 -0
- package/src/tasks/create/templates/Constellation/template/PAGE/demo.stories.tsx.mustache +1 -13
- package/src/tasks/create/templates/Constellation/widget/CASE/demo.stories.tsx.mustache +10 -32
- package/src/tasks/create/templates/Constellation/widget/CASE/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/widget/PAGE/demo.stories.tsx.mustache +10 -21
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/demo.stories.tsx.mustache +10 -22
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.spec.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Date/demo.stories.tsx.mustache +1 -11
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/demo.stories.tsx.mustache +1 -12
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.spec.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/demo.stories.tsx.mustache +1 -15
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.spec.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/demo.stories.tsx.mustache +10 -21
- package/src/tasks/create/templates/SDK-Angular/field/Integer/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-Autocomplete/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-RadioButtons/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/template/FORM/demo.stories.tsx.mustache +9 -17
- package/src/tasks/create/templates/SDK-Angular/template/FORM/mock.ts.mustache +19 -1
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/demo.stories.tsx.mustache +7 -16
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/mock.ts.mustache +19 -1
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/demo.stories.tsx.mustache +35 -47
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/demo.stories.tsx.mustache +7 -17
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/demo.stories.tsx.mustache +7 -10
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/demo.stories.tsx.mustache +9 -17
- package/src/tasks/create/templates/SDK-React/field/Date/demo.stories.tsx.mustache +0 -21
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +5 -1
- package/src/tasks/create/templates/SDK-React/field/DateTime/demo.stories.tsx.mustache +0 -21
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +13 -5
- package/src/tasks/create/templates/SDK-React/field/Decimal/demo.stories.tsx.mustache +0 -14
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +6 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/demo.stories.tsx.mustache +0 -14
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +6 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/demo.stories.tsx.mustache +0 -14
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +5 -1
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/demo.stories.tsx.mustache +2 -6
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Integer/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +25 -20
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/index.tsx.mustache +1 -4
- package/src/tasks/create/templates/SDK-React/field/Text/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/Text-Email/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/Text-Input/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/Text-URL/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/template/DETAILS/demo.stories.tsx.mustache +8 -28
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +7 -2
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/demo.stories.tsx.mustache +8 -28
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +7 -2
- package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +10 -16
- package/src/tasks/create/templates/SDK-React/template/FORM-region/index.tsx.mustache +5 -5
- package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +10 -20
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +2 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE/demo.stories.tsx.mustache +9 -19
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +10 -20
- package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/create/custom-sdk/field/pega-dxil-my-test-text/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/user-reference/user-reference.component.html +2 -10
- package/tests/assets/sdk-a/components/create/override-sdk/field/user-reference/user-reference.component.ts +34 -12
- package/tests/assets/sdk-a/components/create/override-sdk/infra/view/view.component.ts +15 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/demo.stories.tsx +0 -16
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -17
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/mock.ts +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +9 -20
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/mock.ts +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/demo.stories.tsx +1 -2
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/index.tsx +3 -5
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/demo.stories.tsx +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/demo.stories.tsx +10 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/demo.stories.tsx +1 -13
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +10 -32
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/index.tsx +2 -2
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +10 -22
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +10 -21
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/demo.stories.tsx +1 -15
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date/demo.stories.tsx +1 -11
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date/pega-dxil-my-date.component.spec.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/demo.stories.tsx +1 -12
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/pega-dxil-my-decimal.component.spec.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-email/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/demo.stories.tsx +10 -21
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-integer/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-paragraph/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.spec.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-phone/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-picklist/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-radiobuttons/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-searchbox/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-text/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-text-input/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-time-of-day/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-url/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-details/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/demo.stories.tsx +9 -17
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/mock.ts +19 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-page/demo.stories.tsx +35 -47
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-details/demo.stories.tsx +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-form/demo.stories.tsx +7 -16
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-form/mock.ts +19 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-case-widget/demo.stories.tsx +7 -17
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-case-widget/demo.stories.tsx +9 -17
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/demo.stories.tsx +7 -10
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/user-reference/user-reference.component.html +2 -10
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/user-reference/user-reference.component.ts +34 -12
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view/view.component.ts +15 -1
- package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +2 -2
- package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +5 -5
- package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/FlowContainer.tsx +360 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/helpers.ts +138 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +68 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ListViewActionButtons/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ModalViewContainer.tsx +345 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.css +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Reference/Reference.tsx +52 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Reference/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Region/Region.tsx +17 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Region/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/RootContainer/RootContainer.tsx +240 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/RootContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/SimpleView.tsx +48 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/helper.ts +125 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ViewContainer/ViewContainer.tsx +201 -0
- package/tests/assets/sdk-r/components/create/override-sdk/infra/ViewContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/DynamicTabs.tsx +80 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/config.json +36 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +29 -28
- package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +13 -5
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyRadiobuttons/index.tsx +3 -5
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/index.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +6 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +5 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +13 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +6 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/index.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +5 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +25 -20
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/index.tsx +1 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/demo.stories.tsx +3 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +7 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +7 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +28 -13
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/index.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx +2 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +5 -5
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/FlowContainer.tsx +360 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/helpers.ts +138 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +68 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ListViewActionButtons/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ModalViewContainer.tsx +345 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.css +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Reference/Reference.tsx +52 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Reference/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Region/Region.tsx +17 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Region/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/RootContainer/RootContainer.tsx +240 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/RootContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/SimpleView.tsx +48 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/helper.ts +125 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ViewContainer/ViewContainer.tsx +201 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ViewContainer/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/DynamicTabs.tsx +80 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/config.json +36 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +29 -28
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +13 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
3
3
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
4
4
|
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
@@ -46,6 +46,10 @@ export default function PegaDxilMyDate(props: PegaDxilMyDateProps) {
|
|
|
46
46
|
dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
|
|
47
47
|
dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
|
|
48
48
|
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
setDateValue(dayjs(value));
|
|
51
|
+
}, [value]);
|
|
52
|
+
|
|
49
53
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
50
54
|
const formattedDate = format(props.value, 'date', {
|
|
51
55
|
format: dateFormatInfo.dateFormatString
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
|
|
3
3
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
4
4
|
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
5
5
|
import dayjs, { Dayjs } from 'dayjs';
|
|
6
|
-
|
|
6
|
+
import DateFormatter from '@pega/react-sdk-components/lib/components/helpers/formatters/Date';
|
|
7
7
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
8
8
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
9
9
|
import { dateFormatInfoDefault, getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
@@ -26,7 +26,10 @@ export default function PegaDxilMyDateTime(props: PegaDxilMyDateTimeProps) {
|
|
|
26
26
|
|
|
27
27
|
const { getPConnect, label, required, disabled, value = '', validatemessage, status, readOnly, testId, helperText, displayMode, hideLabel } = props;
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const environmentInfo = PCore.getEnvironmentInfo();
|
|
30
|
+
const timezone = environmentInfo && environmentInfo.getTimeZone();
|
|
31
|
+
|
|
32
|
+
const [dateValue, setDateValue] = useState<Dayjs | null>(value ? dayjs(DateFormatter.convertToTimezone(value, { timezone })) : null);
|
|
30
33
|
|
|
31
34
|
const pConn = getPConnect();
|
|
32
35
|
const actions = pConn.getActionsApi();
|
|
@@ -41,6 +44,10 @@ export default function PegaDxilMyDateTime(props: PegaDxilMyDateTimeProps) {
|
|
|
41
44
|
dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
|
|
42
45
|
dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
|
|
43
46
|
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
setDateValue(dayjs(DateFormatter.convertToTimezone(value, { timezone })));
|
|
49
|
+
}, [value]);
|
|
50
|
+
|
|
44
51
|
if (displayMode === 'DISPLAY_ONLY') {
|
|
45
52
|
const formattedDateTime = format(props.value, 'datetime', {
|
|
46
53
|
format: `${dateFormatInfo.dateFormatString} hh:mm a`
|
|
@@ -67,8 +74,9 @@ export default function PegaDxilMyDateTime(props: PegaDxilMyDateTimeProps) {
|
|
|
67
74
|
};
|
|
68
75
|
|
|
69
76
|
const handleChange = date => {
|
|
70
|
-
|
|
71
|
-
const changeValue =
|
|
77
|
+
const timeZoneDateTime = dayjs.tz(date.format('YYYY-MM-DDTHH:mm:ss'), timezone);
|
|
78
|
+
const changeValue = timeZoneDateTime && timeZoneDateTime.isValid() ? timeZoneDateTime.toISOString() : '';
|
|
79
|
+
setDateValue(timeZoneDateTime);
|
|
72
80
|
handleEvent(actions, 'changeNblur', propName, changeValue);
|
|
73
81
|
};
|
|
74
82
|
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumericFormat } from 'react-number-format';
|
|
2
2
|
import { TextField } from '@mui/material';
|
|
3
|
-
import { useState } from 'react';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
4
|
import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
6
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
@@ -63,6 +63,10 @@ export default function PegaDxilMyDecimal(props: PegaDxilMyDecimalProps) {
|
|
|
63
63
|
|
|
64
64
|
const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
|
|
65
65
|
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
setValues(value.toString());
|
|
68
|
+
}, [value]);
|
|
69
|
+
|
|
66
70
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
67
71
|
|
|
68
72
|
if (readOnly) {
|
|
@@ -115,6 +119,7 @@ export default function PegaDxilMyDecimal(props: PegaDxilMyDecimalProps) {
|
|
|
115
119
|
}}
|
|
116
120
|
onBlur={!readOnly ? decimalOnBlur : undefined}
|
|
117
121
|
prefix={readOnly && formatter === 'Currency' ? theCurrSym : ''}
|
|
122
|
+
suffix={readOnly && formatter === 'Percentage' ? '%' : ''}
|
|
118
123
|
decimalSeparator={theCurrDec}
|
|
119
124
|
thousandSeparator={showGroupSeparators ? theCurrSep : ''}
|
|
120
125
|
decimalScale={readOnly && formatter === 'Currency' ? undefined : decimalPrecision}
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/index.tsx
CHANGED
|
@@ -125,7 +125,7 @@ export default function PegaDxilMyIconButtonUrl(props: PegaDxilMyIconButtonUrlPr
|
|
|
125
125
|
</Tooltip>
|
|
126
126
|
{
|
|
127
127
|
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
128
|
-
<a href={validUrl} style={{ display: 'flex' }}>
|
|
128
|
+
<a href={validUrl} target='_blank' style={{ display: 'flex' }} rel='noreferrer'>
|
|
129
129
|
<LanguageIcon />
|
|
130
130
|
</a>
|
|
131
131
|
}
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { NumericFormat } from 'react-number-format';
|
|
3
3
|
import { TextField } from '@mui/material';
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
@@ -56,6 +56,10 @@ export default function PegaDxilMyPercentage(props: PegaDxilMyPercentageProps) {
|
|
|
56
56
|
const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
|
|
57
57
|
const formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
|
|
58
58
|
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
setValues(value.toString());
|
|
61
|
+
}, [value]);
|
|
62
|
+
|
|
59
63
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
60
64
|
|
|
61
65
|
if (readOnly) {
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import MuiPhoneNumber from 'material-ui-phone-number';
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
2
|
+
import { MuiTelInput } from 'mui-tel-input';
|
|
3
3
|
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
@@ -63,12 +63,12 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
63
63
|
return (
|
|
64
64
|
<div>
|
|
65
65
|
<StyledPegaDxilMyPhoneWrapper>
|
|
66
|
-
<
|
|
66
|
+
<MuiTelInput
|
|
67
67
|
fullWidth
|
|
68
68
|
helperText={helperTextToDisplay}
|
|
69
69
|
placeholder={placeholder ?? ''}
|
|
70
70
|
size='small'
|
|
71
|
-
defaultCountry='
|
|
71
|
+
defaultCountry='US'
|
|
72
72
|
required={required}
|
|
73
73
|
disabled={disabled}
|
|
74
74
|
onChange={onChange}
|
|
@@ -99,13 +99,13 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
99
99
|
|
|
100
100
|
return (
|
|
101
101
|
<StyledPegaDxilMyPhoneWrapper>
|
|
102
|
-
<
|
|
102
|
+
<MuiTelInput
|
|
103
103
|
fullWidth
|
|
104
104
|
variant='outlined'
|
|
105
105
|
helperText={helperTextToDisplay}
|
|
106
106
|
placeholder={placeholder ?? ''}
|
|
107
107
|
size='small'
|
|
108
|
-
defaultCountry='
|
|
108
|
+
defaultCountry='US'
|
|
109
109
|
required={required}
|
|
110
110
|
disabled={disabled}
|
|
111
111
|
onChange={handleChange}
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx
CHANGED
|
@@ -143,7 +143,7 @@ export default function PegaDxilMyPicklist(props: PegaDxilMyPicklistProps) {
|
|
|
143
143
|
}, [theDatasource]);
|
|
144
144
|
|
|
145
145
|
useEffect(() => {
|
|
146
|
-
if (
|
|
146
|
+
if (listType !== 'associated' && typeof datasource === 'string') {
|
|
147
147
|
getDataPage(datasource, parameters, context).then((results: any) => {
|
|
148
148
|
const optionsData: any[] = [];
|
|
149
149
|
const displayColumn = getDisplayFieldsMetaData(columns);
|
|
@@ -171,25 +171,31 @@ export default function PegaDxilMyPicklist(props: PegaDxilMyPicklistProps) {
|
|
|
171
171
|
|
|
172
172
|
let readOnlyProp = {};
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
174
|
+
const displayFn = (displayM, val) => {
|
|
175
|
+
if (displayM === 'DISPLAY_ONLY') {
|
|
176
|
+
return (
|
|
177
|
+
<FieldValueList
|
|
178
|
+
name={hideLabel ? '' : label}
|
|
179
|
+
value={thePConn.getLocalizedValue(val, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
180
|
+
/>
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (displayM === 'STACKED_LARGE_VAL') {
|
|
185
|
+
return (
|
|
186
|
+
<FieldValueList
|
|
187
|
+
name={hideLabel ? '' : label}
|
|
188
|
+
value={thePConn.getLocalizedValue(val, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
189
|
+
variant='stacked'
|
|
190
|
+
/>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return null;
|
|
195
|
+
};
|
|
183
196
|
|
|
184
|
-
if (displayMode
|
|
185
|
-
return (
|
|
186
|
-
<FieldValueList
|
|
187
|
-
name={hideLabel ? '' : label}
|
|
188
|
-
// @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'
|
|
189
|
-
value={thePConn.getLocalizedValue(value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
190
|
-
variant='stacked'
|
|
191
|
-
/>
|
|
192
|
-
);
|
|
197
|
+
if (displayMode) {
|
|
198
|
+
return displayFn(displayMode, options.find(option => option.key === value)?.value || value);
|
|
193
199
|
}
|
|
194
200
|
|
|
195
201
|
if (readOnly) {
|
|
@@ -231,7 +237,6 @@ export default function PegaDxilMyPicklist(props: PegaDxilMyPicklistProps) {
|
|
|
231
237
|
>
|
|
232
238
|
{options.map((option: any) => (
|
|
233
239
|
<MenuItem key={option.key} value={option.key}>
|
|
234
|
-
{/* @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv' */}
|
|
235
240
|
{thePConn.getLocalizedValue(option.value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
236
241
|
</MenuItem>
|
|
237
242
|
))}
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/index.tsx
CHANGED
|
@@ -70,7 +70,6 @@ export default function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProp
|
|
|
70
70
|
return (
|
|
71
71
|
<FieldValueList
|
|
72
72
|
name={hideLabel ? '' : label}
|
|
73
|
-
// @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'
|
|
74
73
|
value={thePConn.getLocalizedValue(value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
75
74
|
/>
|
|
76
75
|
);
|
|
@@ -80,7 +79,6 @@ export default function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProp
|
|
|
80
79
|
return (
|
|
81
80
|
<FieldValueList
|
|
82
81
|
name={hideLabel ? '' : label}
|
|
83
|
-
// @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'
|
|
84
82
|
value={thePConn.getLocalizedValue(value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))}
|
|
85
83
|
variant='stacked'
|
|
86
84
|
/>
|
|
@@ -97,7 +95,7 @@ export default function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProp
|
|
|
97
95
|
|
|
98
96
|
return (
|
|
99
97
|
<StyledPegaDxilMyRadiobuttonsWrapper>
|
|
100
|
-
<FormControl error={status === 'error'} required={required}>
|
|
98
|
+
<FormControl variant='standard' error={status === 'error'} required={required}>
|
|
101
99
|
<FormLabel component='legend'>{label}</FormLabel>
|
|
102
100
|
<RadioGroup value={theSelectedButton} onChange={handleChange} onBlur={!readOnly ? handleBlur : undefined} row={inline}>
|
|
103
101
|
{theOptions.map(theOption => {
|
|
@@ -108,7 +106,6 @@ export default function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProp
|
|
|
108
106
|
label={thePConn.getLocalizedValue(
|
|
109
107
|
theOption.value,
|
|
110
108
|
localePath,
|
|
111
|
-
// @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'
|
|
112
109
|
thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
|
|
113
110
|
)}
|
|
114
111
|
control={<Radio key={theOption.key} color='primary' disabled={readOnly} />}
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx
CHANGED
|
@@ -47,7 +47,7 @@ export default function PegaDxilMyTimeOfDay(props: PegaDxilMyTimeOfDayProps) {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
const handleChange = date => {
|
|
50
|
-
const theValue = date && date.isValid() ? date.format('HH:mm') : null;
|
|
50
|
+
const theValue = date && date.isValid() ? date.format('HH:mm:ss') : null;
|
|
51
51
|
handleEvent(actions, 'changeNblur', propName, theValue);
|
|
52
52
|
};
|
|
53
53
|
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx
CHANGED
|
@@ -9,6 +9,8 @@ import StyledPegaDxilMyDetailsWrapper from './styles';
|
|
|
9
9
|
|
|
10
10
|
interface PegaDxilMyDetailsProps extends PConnProps {
|
|
11
11
|
// If any, enter additional props that only exist on this component
|
|
12
|
+
label: string;
|
|
13
|
+
showLabel: boolean;
|
|
12
14
|
showHighlightedData: boolean;
|
|
13
15
|
}
|
|
14
16
|
// Duplicated runtime code from React SDK
|
|
@@ -17,8 +19,11 @@ export default function PegaDxilMyDetails(props: PegaDxilMyDetailsProps) {
|
|
|
17
19
|
// Get emitted components from map (so we can get any override that may exist)
|
|
18
20
|
const FieldGroup = getComponentFromMap('FieldGroup');
|
|
19
21
|
|
|
20
|
-
const { getPConnect, showHighlightedData } = props;
|
|
22
|
+
const { label, showLabel, getPConnect, showHighlightedData } = props;
|
|
21
23
|
|
|
24
|
+
// Get the inherited props from the parent to determine label settings
|
|
25
|
+
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
26
|
+
|
|
22
27
|
// Set display mode prop and re-create the children so this part of the dom tree renders
|
|
23
28
|
// in a readonly (display) mode instead of a editable
|
|
24
29
|
getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
|
|
@@ -50,7 +55,7 @@ export default function PegaDxilMyDetails(props: PegaDxilMyDetailsProps) {
|
|
|
50
55
|
|
|
51
56
|
return (
|
|
52
57
|
<StyledPegaDxilMyDetailsWrapper>
|
|
53
|
-
<FieldGroup>
|
|
58
|
+
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
|
54
59
|
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
55
60
|
<Grid container spacing={1} style={{ padding: '0 0 1em' }}>
|
|
56
61
|
{highlightedDataArr.map((child, i) => (
|
|
@@ -9,6 +9,8 @@ import StyledPegaDxilMyTwoColumnDetailsWrapper from './styles';
|
|
|
9
9
|
|
|
10
10
|
interface PegaDxilMyTwoColumnDetailsProps extends PConnProps {
|
|
11
11
|
// If any, enter additional props that only exist on this component
|
|
12
|
+
showLabel: boolean;
|
|
13
|
+
label: string;
|
|
12
14
|
showHighlightedData: boolean;
|
|
13
15
|
}
|
|
14
16
|
// Duplicated runtime code from React SDK
|
|
@@ -17,7 +19,10 @@ export default function PegaDxilMyTwoColumnDetails(props: PegaDxilMyTwoColumnDet
|
|
|
17
19
|
// Get emitted components from map (so we can get any override that may exist)
|
|
18
20
|
const FieldGroup = getComponentFromMap('FieldGroup');
|
|
19
21
|
|
|
20
|
-
const { getPConnect, showHighlightedData = false } = props;
|
|
22
|
+
const { label, showLabel = true, getPConnect, showHighlightedData = false } = props;
|
|
23
|
+
|
|
24
|
+
// Get the inherited props from the parent to determine label settings
|
|
25
|
+
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
21
26
|
|
|
22
27
|
// Set display mode prop and re-create the children so this part of the dom tree renders
|
|
23
28
|
// in a readonly (display) mode instead of a editable
|
|
@@ -50,7 +55,7 @@ export default function PegaDxilMyTwoColumnDetails(props: PegaDxilMyTwoColumnDet
|
|
|
50
55
|
|
|
51
56
|
return (
|
|
52
57
|
<StyledPegaDxilMyTwoColumnDetailsWrapper>
|
|
53
|
-
<FieldGroup>
|
|
58
|
+
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
|
54
59
|
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
55
60
|
<Grid container spacing={1} style={{ padding: '0 0 1em' }}>
|
|
56
61
|
{highlightedDataArr.map((child, i) => (
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
|
|
4
4
|
import { TextField } from '@mui/material';
|
|
5
|
-
import
|
|
5
|
+
import { MuiTelInput } from 'mui-tel-input';
|
|
6
6
|
import { DatePicker, LocalizationProvider } from '@mui/x-date-pickers';
|
|
7
7
|
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
8
8
|
import dayjs from 'dayjs';
|
|
@@ -23,11 +23,17 @@ export default meta;
|
|
|
23
23
|
type Story = StoryObj<typeof PegaDxilMyTwoColumnForm>;
|
|
24
24
|
|
|
25
25
|
const renderField = resolvedProps => {
|
|
26
|
-
const { displayMode, value = '', label = '', onChange } = resolvedProps;
|
|
26
|
+
const { displayMode, value = '', label = '', onChange, required, disabled, helperText, placeholder, validatemessage, status, testId } = resolvedProps;
|
|
27
27
|
|
|
28
|
+
const helperTextToDisplay = validatemessage || helperText;
|
|
29
|
+
let testProp = {};
|
|
30
|
+
|
|
31
|
+
testProp = {
|
|
32
|
+
'data-test-id': testId
|
|
33
|
+
};
|
|
28
34
|
const variant = displayMode === 'DISPLAY_ONLY' ? 'inline' : 'stacked';
|
|
29
35
|
let val: any = '';
|
|
30
|
-
|
|
36
|
+
|
|
31
37
|
if (label === 'Service Date')
|
|
32
38
|
val = (
|
|
33
39
|
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
|
@@ -64,18 +70,27 @@ const renderField = resolvedProps => {
|
|
|
64
70
|
if (label === 'First Name' || label === 'Last Name' || label === 'Middle Name')
|
|
65
71
|
val = <TextField value={value} fullWidth size='small' variant='outlined' style={{ fontSize: '14px' }} label={label} onChange={onChange} />;
|
|
66
72
|
|
|
73
|
+
const disableDropdown = true;
|
|
67
74
|
if (label === 'Phone Number')
|
|
68
75
|
val = (
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
<MuiTelInput
|
|
77
|
+
fullWidth
|
|
78
|
+
helperText={helperTextToDisplay}
|
|
79
|
+
placeholder={placeholder ?? ''}
|
|
80
|
+
size='small'
|
|
81
|
+
defaultCountry='US'
|
|
82
|
+
required={required}
|
|
83
|
+
disabled={disabled}
|
|
84
|
+
onChange={onChange}
|
|
85
|
+
error={status === 'error'}
|
|
86
|
+
label={label}
|
|
87
|
+
value={value}
|
|
88
|
+
InputProps={{
|
|
89
|
+
readOnly: true,
|
|
90
|
+
inputProps: { ...testProp }
|
|
91
|
+
}}
|
|
92
|
+
disableDropdown={disableDropdown}
|
|
93
|
+
/>
|
|
79
94
|
);
|
|
80
95
|
|
|
81
96
|
if (variant === 'inline') {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { Grid } from '@mui/material';
|
|
2
|
+
import { Grid, GridSize } from '@mui/material';
|
|
3
3
|
import makeStyles from '@mui/styles/makeStyles';
|
|
4
4
|
|
|
5
5
|
import StyledPegaDxilMyTwoColumnFormWrapper from './styles';
|
|
@@ -35,8 +35,8 @@ export default function PegaDxilMyTwoColumnForm(props: PropsWithChildren<PegaDxi
|
|
|
35
35
|
// Calculate the size
|
|
36
36
|
// Default to assume the 2 columns are evenly split. However, override if templateCol
|
|
37
37
|
// (example value: "1fr 1fr")
|
|
38
|
-
let aSize = 6;
|
|
39
|
-
let bSize = 6;
|
|
38
|
+
let aSize: GridSize = 6;
|
|
39
|
+
let bSize: GridSize = 6;
|
|
40
40
|
|
|
41
41
|
const colAArray = templateCol
|
|
42
42
|
.replaceAll(/[a-z]+/g, '')
|
|
@@ -44,8 +44,8 @@ export default function PegaDxilMyTwoColumnForm(props: PropsWithChildren<PegaDxi
|
|
|
44
44
|
.map(itm => Number(itm));
|
|
45
45
|
const totalCols = colAArray.reduce((v, itm) => itm + v, 0);
|
|
46
46
|
const ratio = 12 / totalCols;
|
|
47
|
-
aSize = (ratio * colAArray[0]) as
|
|
48
|
-
bSize = (ratio * colAArray[1]) as
|
|
47
|
+
aSize = (ratio * colAArray[0]) as GridSize;
|
|
48
|
+
bSize = (ratio * colAArray[1]) as GridSize;
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
51
|
<StyledPegaDxilMyTwoColumnFormWrapper>
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
2
3
|
import withStyles from '@mui/styles/withStyles';
|
|
3
4
|
import createStyles from '@mui/styles/createStyles';
|
|
4
5
|
import Table from '@mui/material/Table';
|
|
@@ -18,7 +19,7 @@ interface PegaDxilMyCaseWidgetProps extends PConnProps {
|
|
|
18
19
|
// If any, enter additional props that only exist on this component
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
const StyledTableCell = withStyles((myTheme) =>
|
|
22
|
+
const StyledTableCell = withStyles((myTheme: Theme) =>
|
|
22
23
|
createStyles({
|
|
23
24
|
head: {
|
|
24
25
|
borderWidth: '1px',
|
|
@@ -51,7 +51,7 @@ export default function FieldValueList(props: FieldValueListProps) {
|
|
|
51
51
|
|
|
52
52
|
function getGridItemLabel() {
|
|
53
53
|
return (
|
|
54
|
-
<Grid item xs={variant === 'stacked' ? 12 :
|
|
54
|
+
<Grid item xs={variant === 'stacked' ? 12 : 4} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>
|
|
55
55
|
<Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>
|
|
56
56
|
{name}
|
|
57
57
|
</Typography>
|
|
@@ -63,7 +63,7 @@ export default function FieldValueList(props: FieldValueListProps) {
|
|
|
63
63
|
const formattedValue = formatItemValue(value);
|
|
64
64
|
|
|
65
65
|
return (
|
|
66
|
-
<Grid item xs={variant === 'stacked' ? 12 :
|
|
66
|
+
<Grid item xs={variant === 'stacked' ? 12 : 8} className={variant === 'stacked' ? classes.noPaddingTop : ''}>
|
|
67
67
|
{isHtml ? (
|
|
68
68
|
// eslint-disable-next-line react/no-danger
|
|
69
69
|
<div dangerouslySetInnerHTML={{ __html: formattedValue }} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { MuiTelInput } from 'mui-tel-input';
|
|
3
3
|
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
@@ -57,12 +57,12 @@ export default function Phone(props: PhoneProps) {
|
|
|
57
57
|
const disableDropdown = true;
|
|
58
58
|
return (
|
|
59
59
|
<div>
|
|
60
|
-
<
|
|
60
|
+
<MuiTelInput
|
|
61
61
|
fullWidth
|
|
62
62
|
helperText={helperTextToDisplay}
|
|
63
63
|
placeholder={placeholder ?? ''}
|
|
64
64
|
size='small'
|
|
65
|
-
defaultCountry='
|
|
65
|
+
defaultCountry='US'
|
|
66
66
|
required={required}
|
|
67
67
|
disabled={disabled}
|
|
68
68
|
onChange={onChange}
|
|
@@ -91,13 +91,13 @@ export default function Phone(props: PhoneProps) {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
return (
|
|
94
|
-
<
|
|
94
|
+
<MuiTelInput
|
|
95
95
|
fullWidth
|
|
96
96
|
variant='outlined'
|
|
97
97
|
helperText={helperTextToDisplay}
|
|
98
98
|
placeholder={placeholder ?? ''}
|
|
99
99
|
size='small'
|
|
100
|
-
defaultCountry='
|
|
100
|
+
defaultCountry='US'
|
|
101
101
|
required={required}
|
|
102
102
|
disabled={disabled}
|
|
103
103
|
onChange={handleChange}
|