@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
|
@@ -4,22 +4,16 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
4
4
|
|
|
5
5
|
import {{COMPONENT_CLASS_NAME}} from './index';
|
|
6
6
|
|
|
7
|
-
window.PCore = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
CASE_INFO: {
|
|
19
|
-
INSTRUCTIONS: ''
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
7
|
+
window.PCore.getErrorHandler = (): any => {
|
|
8
|
+
return {
|
|
9
|
+
getOperatorDetails: () => {
|
|
10
|
+
return {
|
|
11
|
+
getGenericFailedMessage() {
|
|
12
|
+
/* nothing */
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
};
|
|
23
17
|
};
|
|
24
18
|
|
|
25
19
|
const meta: Meta<typeof {{COMPONENT_CLASS_NAME}}> = {
|
|
@@ -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 Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -35,8 +35,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: PropsWithChildren<{{COMP
|
|
|
35
35
|
// Calculate the size
|
|
36
36
|
// Default to assume the 2 columns are evenly split. However, override if templateCol
|
|
37
37
|
// (example value: "1fr 1fr")
|
|
38
|
-
let aSize = 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 {{COMPONENT_CLASS_NAME}}(props: PropsWithChildren<{{COMP
|
|
|
44
44
|
.map(itm => Number(itm));
|
|
45
45
|
const totalCols = colAArray.reduce((v, itm) => itm + v, 0);
|
|
46
46
|
const ratio = 12 / totalCols;
|
|
47
|
-
aSize = (ratio * colAArray[0]) as
|
|
48
|
-
bSize = (ratio * colAArray[1]) as
|
|
47
|
+
aSize = (ratio * colAArray[0]) as GridSize;
|
|
48
|
+
bSize = (ratio * colAArray[1]) as GridSize;
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
51
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
@@ -3,6 +3,16 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
3
3
|
import {{COMPONENT_CLASS_NAME}} from './index';
|
|
4
4
|
import { historyData } from './mock';
|
|
5
5
|
|
|
6
|
+
window.PCore.getDataApiUtils = (): any => {
|
|
7
|
+
return {
|
|
8
|
+
getData: () => {
|
|
9
|
+
return new Promise(resolve => {
|
|
10
|
+
resolve(historyData);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
6
16
|
const meta: Meta<typeof {{COMPONENT_CLASS_NAME}}> = {
|
|
7
17
|
title: '{{COMPONENT_CLASS_NAME}}',
|
|
8
18
|
component: {{COMPONENT_CLASS_NAME}},
|
|
@@ -13,26 +23,6 @@ export default meta;
|
|
|
13
23
|
type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
|
|
14
24
|
|
|
15
25
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
16
|
-
window.PCore = {
|
|
17
|
-
...window.PCore,
|
|
18
|
-
getDataApiUtils: (): any => {
|
|
19
|
-
return {
|
|
20
|
-
getData: (): any => {
|
|
21
|
-
return new Promise(resolve => {
|
|
22
|
-
resolve(historyData);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
getConstants: (): any => {
|
|
28
|
-
return {
|
|
29
|
-
CASE_INFO: {
|
|
30
|
-
CASE_INFO_ID: 'caseInfo.ID'
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
26
|
const props = {
|
|
37
27
|
label: 'Case history',
|
|
38
28
|
|
|
@@ -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 {{COMPONENT_CLASS_NAME}}Props 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',
|
|
@@ -12,27 +12,17 @@ const meta: Meta<typeof {{COMPONENT_CLASS_NAME}}> = {
|
|
|
12
12
|
export default meta;
|
|
13
13
|
type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
resolve(worklistData);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
getConstants: (): any => {
|
|
28
|
-
return {
|
|
29
|
-
CASE_INFO: {
|
|
30
|
-
INSTRUCTIONS: 'caseInfo.assignments[0].instructions'
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
},
|
|
15
|
+
window.PCore.getDataApiUtils = (): any => {
|
|
16
|
+
return {
|
|
17
|
+
getData: () => {
|
|
18
|
+
return new Promise(resolve => {
|
|
19
|
+
resolve(worklistData);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
34
22
|
};
|
|
23
|
+
};
|
|
35
24
|
|
|
25
|
+
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
36
26
|
const props = {
|
|
37
27
|
datasource: configProps.datasource,
|
|
38
28
|
whatsnewlink: configProps.whatsnewlink,
|
|
@@ -3,6 +3,16 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
3
3
|
import {{COMPONENT_CLASS_NAME}} from './index';
|
|
4
4
|
import { caseOpConfig, operatorDetails } from './mock';
|
|
5
5
|
|
|
6
|
+
window.PCore.getUserApi = (): any => {
|
|
7
|
+
return {
|
|
8
|
+
getOperatorDetails: () => {
|
|
9
|
+
return new Promise(resolve => {
|
|
10
|
+
resolve(operatorDetails);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
6
16
|
const meta: Meta<typeof {{COMPONENT_CLASS_NAME}}> = {
|
|
7
17
|
title: '{{COMPONENT_CLASS_NAME}}',
|
|
8
18
|
component: {{COMPONENT_CLASS_NAME}},
|
|
@@ -13,26 +23,6 @@ export default meta;
|
|
|
13
23
|
type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
|
|
14
24
|
|
|
15
25
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
16
|
-
window.PCore = {
|
|
17
|
-
...window.PCore,
|
|
18
|
-
getUserApi: (): any => {
|
|
19
|
-
return {
|
|
20
|
-
getOperatorDetails: () => {
|
|
21
|
-
return new Promise(resolve => {
|
|
22
|
-
resolve(operatorDetails);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
getLocaleUtils: (): any => {
|
|
28
|
-
return {
|
|
29
|
-
getLocaleValue: val => {
|
|
30
|
-
return val;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
26
|
const props = {
|
|
37
27
|
getPConnect: () => {
|
|
38
28
|
return {
|
|
@@ -9,7 +9,7 @@ const meta: Meta<PegaDxilMyTestTextComponent> = {
|
|
|
9
9
|
title: 'PegaDxilMyTestText',
|
|
10
10
|
component: PegaDxilMyTestTextComponent,
|
|
11
11
|
excludeStories: /.*Data$/,
|
|
12
|
-
render: (args
|
|
12
|
+
render: (args) => ({
|
|
13
13
|
props: {
|
|
14
14
|
...args,
|
|
15
15
|
pConn$: {
|
|
@@ -8,13 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div [formGroup]="formGroup$" *ngIf="type === 'dropdown'">
|
|
10
10
|
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
|
|
11
|
-
<mat-select
|
|
12
|
-
[value]="value$"
|
|
13
|
-
[required]="bRequired$"
|
|
14
|
-
[formControl]="fieldControl"
|
|
15
|
-
[attr.data-test-id]="testId"
|
|
16
|
-
(selectionChange)="fieldOnChange($event)"
|
|
17
|
-
>
|
|
11
|
+
<mat-select [required]="bRequired$" [formControl]="fieldControl" [attr.data-test-id]="testId" (selectionChange)="fieldOnChange($event)">
|
|
18
12
|
<mat-option *ngFor="let opt of options$" [value]="opt.key">
|
|
19
13
|
{{ opt.value }}
|
|
20
14
|
</mat-option>
|
|
@@ -32,14 +26,12 @@
|
|
|
32
26
|
matInput
|
|
33
27
|
[placeholder]="placeholder"
|
|
34
28
|
[formControl]="fieldControl"
|
|
35
|
-
[value]="value$"
|
|
36
29
|
[required]="bRequired$"
|
|
37
30
|
[matAutocomplete]="auto"
|
|
38
31
|
[attr.data-test-id]="testId"
|
|
39
|
-
(change)="fieldOnChange($event)"
|
|
40
32
|
(blur)="fieldOnBlur($event)"
|
|
41
33
|
/>
|
|
42
|
-
<mat-autocomplete #auto="matAutocomplete">
|
|
34
|
+
<mat-autocomplete #auto="matAutocomplete" autoActiveFirstOption (optionSelected)="optionChanged($event)">
|
|
43
35
|
<mat-option *ngFor="let opt of filteredOptions | async" [value]="opt.value">
|
|
44
36
|
<span>{{ opt.value }}</span>
|
|
45
37
|
</mat-option>
|
|
@@ -23,6 +23,7 @@ interface UserReferenceProps extends Omit<PConnFieldProps, 'value'> {
|
|
|
23
23
|
value?: any;
|
|
24
24
|
showAsFormattedText?: boolean;
|
|
25
25
|
additionalProps?: object;
|
|
26
|
+
onRecordChange?: any;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
@Component({
|
|
@@ -66,6 +67,7 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
66
67
|
fieldControl = new FormControl('', null);
|
|
67
68
|
actionsApi: Object;
|
|
68
69
|
propName: string;
|
|
70
|
+
onRecordChange: any;
|
|
69
71
|
|
|
70
72
|
constructor(
|
|
71
73
|
private angularPConnect: AngularPConnectService,
|
|
@@ -83,11 +85,11 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
83
85
|
if (this.formGroup$) {
|
|
84
86
|
// add control to formGroup
|
|
85
87
|
this.formGroup$.addControl(this.controlName$, this.fieldControl);
|
|
86
|
-
this.fieldControl.setValue(this.value$);
|
|
88
|
+
this.fieldControl.setValue(this.getValue(this.value$));
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
this.filteredOptions = this.fieldControl.valueChanges.pipe(
|
|
90
|
-
startWith(''),
|
|
92
|
+
startWith(this.getValue(this.value$) || ''),
|
|
91
93
|
map(value => this._filter(value || ''))
|
|
92
94
|
);
|
|
93
95
|
}
|
|
@@ -126,6 +128,21 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
126
128
|
return this.options$?.filter(option => option.value?.toLowerCase().includes(filterVal));
|
|
127
129
|
}
|
|
128
130
|
|
|
131
|
+
isUserNameAvailable = user => {
|
|
132
|
+
return typeof user === 'object' && user !== null && user.userName;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
getUserName = user => {
|
|
136
|
+
return user.userName;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
getValue = user => {
|
|
140
|
+
if (this.displayAs$ === DROPDOWN_LIST) {
|
|
141
|
+
return this.utils.getUserId(user) || this.getUserName(user);
|
|
142
|
+
}
|
|
143
|
+
return this.isUserNameAvailable(user) ? this.getUserName(user) : this.utils.getUserId(user);
|
|
144
|
+
};
|
|
145
|
+
|
|
129
146
|
async checkAndUpdate() {
|
|
130
147
|
// Should always check the bridge to see if the component should
|
|
131
148
|
// update itself (re-render)
|
|
@@ -140,6 +157,7 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
140
157
|
async updateSelf() {
|
|
141
158
|
const props = this.pConn$.getConfigProps() as UserReferenceProps;
|
|
142
159
|
this.testId = props.testId;
|
|
160
|
+
this.onRecordChange = props?.onRecordChange;
|
|
143
161
|
|
|
144
162
|
const { label, displayAs, value, showAsFormattedText, helperText, placeholder, displayMode } = props;
|
|
145
163
|
|
|
@@ -150,20 +168,18 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
150
168
|
this.placeholder = placeholder || '';
|
|
151
169
|
this.displayMode$ = displayMode;
|
|
152
170
|
|
|
171
|
+
this.value$ = this.pConn$.getConfigProps()?.value;
|
|
172
|
+
|
|
153
173
|
const { readOnly, required } = props;
|
|
154
174
|
[this.bReadonly$, this.bRequired$] = [readOnly, required].map(prop => prop === true || (typeof prop === 'string' && prop === 'true'));
|
|
155
175
|
|
|
156
176
|
this.actionsApi = this.pConn$.getActionsApi();
|
|
157
177
|
this.propName = this.pConn$.getStateProps().value;
|
|
158
178
|
|
|
159
|
-
const isUserNameAvailable = user => {
|
|
160
|
-
return typeof user === 'object' && user !== null && user.userName;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
179
|
this.userID$ = this.utils.getUserId(value);
|
|
164
180
|
|
|
165
181
|
if (this.userID$ && this.bReadonly$ && this.showAsFormattedText$) {
|
|
166
|
-
if (isUserNameAvailable(value)) {
|
|
182
|
+
if (this.isUserNameAvailable(value)) {
|
|
167
183
|
this.userName$ = value.userName;
|
|
168
184
|
} else {
|
|
169
185
|
// if same user ref field is referred in view as editable & readonly formatted text
|
|
@@ -201,7 +217,12 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
201
217
|
if (event?.target) {
|
|
202
218
|
this.filterValue = (event.target as HTMLInputElement).value;
|
|
203
219
|
}
|
|
204
|
-
const value = event?.
|
|
220
|
+
const value = event?.value;
|
|
221
|
+
handleEvent(this.actionsApi, 'change', this.propName, value);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
optionChanged(event: any) {
|
|
225
|
+
const value = event?.option?.value;
|
|
205
226
|
handleEvent(this.actionsApi, 'change', this.propName, value);
|
|
206
227
|
}
|
|
207
228
|
|
|
@@ -211,11 +232,12 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
211
232
|
const index = this.options$?.findIndex(element => element.value === event.target.value);
|
|
212
233
|
key = index > -1 ? (key = this.options$[index].key) : event.target.value;
|
|
213
234
|
}
|
|
214
|
-
|
|
215
|
-
const value = {
|
|
216
|
-
value: key
|
|
217
|
-
};
|
|
235
|
+
const value = key;
|
|
218
236
|
handleEvent(this.actionsApi, 'changeNblur', this.propName, value);
|
|
237
|
+
if (this.onRecordChange) {
|
|
238
|
+
event.target.value = value;
|
|
239
|
+
this.onRecordChange(event);
|
|
240
|
+
}
|
|
219
241
|
}
|
|
220
242
|
|
|
221
243
|
getErrorMessage() {
|
|
@@ -8,6 +8,20 @@ import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
|
8
8
|
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
9
9
|
|
|
10
10
|
const NO_HEADER_TEMPLATES = ['SubTabs', 'SimpleTable', 'Confirmation', 'DynamicTabs', 'DetailsSubTabs'];
|
|
11
|
+
const DETAILS_TEMPLATES = [
|
|
12
|
+
'Details',
|
|
13
|
+
'DetailsFields',
|
|
14
|
+
'DetailsOneColumn',
|
|
15
|
+
'DetailsSubTabs',
|
|
16
|
+
'DetailsThreeColumn',
|
|
17
|
+
'DetailsTwoColumn',
|
|
18
|
+
'NarrowWideDetails',
|
|
19
|
+
'WideNarrowDetails'
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
function isDetailsTemplate(template) {
|
|
23
|
+
return DETAILS_TEMPLATES.includes(template);
|
|
24
|
+
}
|
|
11
25
|
|
|
12
26
|
/**
|
|
13
27
|
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
@@ -146,7 +160,7 @@ export class ViewComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
146
160
|
this.templateName$ = this.configProps$.template || '';
|
|
147
161
|
this.title$ = this.configProps$.title || '';
|
|
148
162
|
this.label$ = this.configProps$.label || '';
|
|
149
|
-
this.showLabel$ = this.configProps$.showLabel || this.showLabel$;
|
|
163
|
+
this.showLabel$ = this.configProps$.showLabel || isDetailsTemplate(this.templateName$) || this.showLabel$;
|
|
150
164
|
// label & showLabel within inheritedProps takes precedence over configProps
|
|
151
165
|
this.label$ = this.inheritedProps$.label || this.label$;
|
|
152
166
|
this.showLabel$ = this.inheritedProps$.showLabel || this.showLabel$;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
// @ts-nocheck
|
|
4
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
4
|
import { configProps, stateProps } from './mock';
|
|
6
5
|
import PegaDxilMyDate from './index';
|
|
@@ -14,21 +13,6 @@ const meta: Meta<typeof PegaDxilMyDate> = {
|
|
|
14
13
|
export default meta;
|
|
15
14
|
type Story = StoryObj<typeof PegaDxilMyDate>;
|
|
16
15
|
|
|
17
|
-
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
window.PCore.getEnvironmentInfo = () => {
|
|
22
|
-
return {
|
|
23
|
-
getTimeZone: () => {
|
|
24
|
-
return '';
|
|
25
|
-
},
|
|
26
|
-
getLocale: () => {
|
|
27
|
-
return 'en-GB';
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
16
|
export const BasePegaDxilMyDate: Story = args => {
|
|
33
17
|
const props = {
|
|
34
18
|
value: configProps.value,
|
|
@@ -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
|
import { configProps, stateProps } from './mock';
|
|
5
4
|
import PegaDxilMyDateTime from './index';
|
|
@@ -13,22 +12,6 @@ const meta: Meta<typeof PegaDxilMyDateTime> = {
|
|
|
13
12
|
export default meta;
|
|
14
13
|
type Story = StoryObj<typeof PegaDxilMyDateTime>;
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
window.PCore.getEnvironmentInfo = () => {
|
|
22
|
-
return {
|
|
23
|
-
getTimeZone: () => {
|
|
24
|
-
return '';
|
|
25
|
-
},
|
|
26
|
-
getLocale: () => {
|
|
27
|
-
return 'en-GB';
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
15
|
export const BasePegaDxilMyDateTime: Story = args => {
|
|
33
16
|
const props = {
|
|
34
17
|
value: configProps.value,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
// @ts-nocheck
|
|
4
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
4
|
|
|
6
5
|
import PegaDxilMyIconButtonUrl from './index';
|
|
@@ -15,10 +14,6 @@ const meta: Meta<typeof PegaDxilMyIconButtonUrl> = {
|
|
|
15
14
|
export default meta;
|
|
16
15
|
type Story = StoryObj<typeof PegaDxilMyIconButtonUrl>;
|
|
17
16
|
|
|
18
|
-
if (!window.PCore) {
|
|
19
|
-
window.PCore = {};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
17
|
const statelistData = {
|
|
23
18
|
data: [
|
|
24
19
|
{
|
|
@@ -36,23 +31,17 @@ const statelistData = {
|
|
|
36
31
|
]
|
|
37
32
|
};
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
getDataAsync: () => {
|
|
49
|
-
return new Promise(resolve => {
|
|
50
|
-
resolve(statelistData);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
};
|
|
34
|
+
window.PCore.getDataPageUtils = (): any => {
|
|
35
|
+
return {
|
|
36
|
+
getDataAsync: () => {
|
|
37
|
+
return new Promise(resolve => {
|
|
38
|
+
resolve(statelistData);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
54
41
|
};
|
|
42
|
+
};
|
|
55
43
|
|
|
44
|
+
export const BasePegaDxilMyIconButtonUrl: Story = args => {
|
|
56
45
|
const props = {
|
|
57
46
|
countryCode: configProps.countryCode,
|
|
58
47
|
getPConnect: () => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
// @ts-nocheck
|
|
4
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
4
|
|
|
6
5
|
import PegaDxilMyPhone from './index';
|
|
@@ -47,7 +46,7 @@ export const BasePegaDxilMyPhone: Story = args => {
|
|
|
47
46
|
};
|
|
48
47
|
|
|
49
48
|
BasePegaDxilMyPhone.args = {
|
|
50
|
-
datasource: configProps.datasource,
|
|
49
|
+
datasource: configProps.datasource as any,
|
|
51
50
|
label: configProps.label,
|
|
52
51
|
helperText: configProps.helperText,
|
|
53
52
|
placeholder: configProps.placeholder,
|
|
@@ -77,9 +77,7 @@ function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProps) {
|
|
|
77
77
|
const propName: string = stateProps.value;
|
|
78
78
|
const configProps = pConn.getConfigProps();
|
|
79
79
|
const className = pConn.getCaseInfo().getClassName();
|
|
80
|
-
|
|
81
|
-
const { getLocaleRuleNameFromKeys, getLocalizedValue } = pConn;
|
|
82
|
-
|
|
80
|
+
|
|
83
81
|
// @ts-ignore
|
|
84
82
|
let configProperty = pConn.getRawMetadata()?.config?.value || '';
|
|
85
83
|
configProperty = configProperty.startsWith('@P') ? configProperty.substring(3) : configProperty;
|
|
@@ -141,10 +139,10 @@ function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProps) {
|
|
|
141
139
|
id={`${fullReference}.${item.key}`}
|
|
142
140
|
value={item.key}
|
|
143
141
|
key={`${fullReference}.${item.key}`}
|
|
144
|
-
label={getLocalizedValue(
|
|
142
|
+
label={pConn.getLocalizedValue(
|
|
145
143
|
isDatapage ? item.text : item.value,
|
|
146
144
|
localePath,
|
|
147
|
-
getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
|
|
145
|
+
pConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
|
|
148
146
|
)}
|
|
149
147
|
name={fullReference}
|
|
150
148
|
/>
|