@pega/dx-component-builder-sdk 0.24.3 → 0.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/constants.js +74 -2
- package/src/tasks/create/templates/Constellation/field/Boolean/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Boolean/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Date/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Date/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/DateTime/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/DateTime/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Decimal/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Decimal/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/demo.stories.tsx.mustache +15 -10
- package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Integer/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Integer/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Picklist/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Picklist/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Text/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text-Email/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Text-Email/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text-Input/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Text-Input/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text-Paragraph/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Text-Paragraph/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text-Phone/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Text-Phone/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/Text-URL/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/Text-URL/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/field/TimeOfDay/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/field/TimeOfDay/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/template/DETAILS/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/template/DETAILS/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/template/FORM/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/template/FORM/demo.stories.tsx.mustache +73 -8
- package/src/tasks/create/templates/Constellation/template/FORM/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/Constellation/template/FORM-region/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/template/FORM-region/demo.stories.tsx.mustache +95 -15
- package/src/tasks/create/templates/Constellation/template/FORM-region/index.tsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/template/PAGE/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/template/PAGE/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/widget/CASE/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/widget/CASE/demo.stories.tsx.mustache +22 -22
- package/src/tasks/create/templates/Constellation/widget/CASE/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/widget/PAGE/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/widget/PAGE/demo.stories.tsx.mustache +15 -17
- package/src/tasks/create/templates/Constellation/widget/PAGE/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/create-nonce.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.html.mustache +5 -5
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.ts.mustache +8 -39
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.html.mustache +14 -4
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.ts.mustache +42 -5
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/config.json.mustache +166 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.html.mustache +15 -6
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.scss.mustache +2 -2
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.ts.mustache +36 -18
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.html.mustache +15 -4
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.scss.mustache +18 -18
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.ts.mustache +29 -5
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/demo.stories.tsx.mustache +22 -5
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/mock.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.html.mustache +10 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.ts.mustache +93 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/config.json.mustache +166 -0
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +16 -7
- package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.ts.mustache +18 -1
- package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +13 -0
- package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +20 -20
- package/src/tasks/create/templates/SDK-React/widget/PAGE/demo.stories.tsx.mustache +45 -2
- package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +168 -3
- package/src/tasks/create/templates/SDK-React/widget/PAGE/mock.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +20 -20
- package/src/tasks/override/index.js +11 -1
- package/src/tasks/override-all/index.js +12 -9
- package/tests/assets/sdk-a/components/create/_components.md +6 -0
- package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/demo.stories.tsx +23 -9
- package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/index.tsx +97 -24
- package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/mock.ts +8 -1
- package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/styles.ts +7 -14
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.html +28 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.scss +64 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.ts +26 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.html +5 -2
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.ts +3 -1
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/operator/operator.component.ts +6 -4
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/auto-complete/auto-complete.component.ts +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/cancel-alert/cancel-alert.component.ts +0 -2
- package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.html +16 -15
- package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.scss +14 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.ts +127 -44
- package/tests/assets/sdk-a/components/create/override-sdk/field/currency/currency.component.html +15 -6
- package/tests/assets/sdk-a/components/create/override-sdk/field/currency/currency.component.ts +36 -18
- package/tests/assets/sdk-a/components/create/override-sdk/field/date-time/date-time.component.html +5 -5
- package/tests/assets/sdk-a/components/create/override-sdk/field/date-time/date-time.component.ts +8 -39
- package/tests/assets/sdk-a/components/create/override-sdk/field/decimal/decimal.component.html +14 -4
- package/tests/assets/sdk-a/components/create/override-sdk/field/decimal/decimal.component.ts +42 -5
- package/tests/assets/sdk-a/components/create/override-sdk/field/dropdown/dropdown.component.ts +0 -3
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.html +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.ts +4 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/percentage/percentage.component.html +15 -4
- package/tests/assets/sdk-a/components/create/override-sdk/field/percentage/percentage.component.ts +29 -5
- package/tests/assets/sdk-a/components/create/override-sdk/field/radio-buttons/radio-buttons.component.ts +0 -3
- package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/rich-text.component.html +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/scalar-list/scalar-list.component.ts +2 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/text-area/text-area.component.ts +0 -2
- package/tests/assets/sdk-a/components/create/override-sdk/field/time/time.component.html +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/time/time.component.ts +2 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/url/url.component.html +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/url/url.component.ts +2 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/user-reference/user-reference.component.html +50 -45
- package/tests/assets/sdk-a/components/create/override-sdk/field/user-reference/user-reference.component.ts +33 -15
- package/tests/assets/sdk-a/components/create/override-sdk/infra/assignment/assignment.component.ts +31 -7
- package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.html +35 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.ts +89 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/defer-load/defer-load.component.ts +5 -8
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.html +40 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.scss +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.ts +627 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/helpers.ts +79 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.html +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.html +35 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.scss +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.ts +393 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/multi-step/multi-step.component.html +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/infra/multi-step/multi-step.component.scss +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/navbar/navbar.component.html +4 -4
- package/tests/assets/sdk-a/components/create/override-sdk/infra/navbar/navbar.component.ts +6 -3
- package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.html +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.ts +35 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.html +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.ts +165 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.html +36 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.scss +18 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.ts +256 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.html +31 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.scss +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.ts +288 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.html +12 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.ts +65 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/case-summary/case-summary.component.ts +37 -3
- package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.html +3 -3
- package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.scss +2 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.ts +0 -6
- package/tests/assets/sdk-a/components/create/override-sdk/template/data-reference/data-reference.component.ts +1 -3
- package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/config-ext.json +37 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.ts +77 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/field-group-template/field-group-template.component.ts +4 -12
- package/tests/assets/sdk-a/components/create/override-sdk/template/field-value-list/field-value-list.component.html +7 -2
- package/tests/assets/sdk-a/components/create/override-sdk/template/field-value-list/field-value-list.component.ts +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/list-view.component.html +6 -6
- package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/list-view.component.ts +35 -27
- package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/listViewHelpers.ts +0 -1
- package/tests/assets/sdk-a/components/create/override-sdk/template/repeating-structures/repeating-structures.component.ts +1 -2
- package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table/simple-table.component.ts +0 -2
- package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/helpers.ts +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/simple-table-manual.component.html +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/simple-table-manual.component.ts +48 -16
- package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-select/simple-table-select.component.ts +2 -4
- package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.scss +164 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.ts +173 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/attachment/attachment.component.html +50 -26
- package/tests/assets/sdk-a/components/create/override-sdk/widget/attachment/attachment.component.scss +118 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/attachment/attachment.component.ts +256 -501
- package/tests/assets/sdk-a/components/create/override-sdk/widget/case-history/case-history.component.ts +1 -2
- package/tests/assets/sdk-a/components/create/override-sdk/widget/feed-container/feed-container.component.ts +0 -4
- package/tests/assets/sdk-a/components/create/override-sdk/widget/file-utility/file-utility.component.html +2 -2
- package/tests/assets/sdk-a/components/create/override-sdk/widget/file-utility/file-utility.component.ts +13 -17
- package/tests/assets/sdk-a/components/create/override-sdk/widget/list-utility/list-utility.component.html +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.html +1 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.ts +96 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/todo/todo.component.html +4 -4
- package/tests/assets/sdk-a/components/create/override-sdk/widget/todo/todo.component.ts +6 -5
- package/tests/assets/sdk-a/components/createAll/_components.md +6 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/Boolean.ts +35 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/{demo.stories.jsx → demo.stories.tsx} +28 -20
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/index.tsx +14 -49
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/mock.ts +2 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/demo.stories.tsx +28 -15
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/index.tsx +25 -76
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/mock.ts +11 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/{DateFormatter.js → DateFormatter.ts} +6 -6
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/FormattedText.tsx +20 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/{date.js → date.ts} +3 -2
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/demo.stories.tsx +31 -24
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/index.tsx +20 -60
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/mock.ts +2 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/{date-time.js → date-time.ts} +12 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyTimeOfDay/time-of-day.js → Pega_DXIL_MyDateTime/date-utils.ts} +27 -26
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/{date.js → date.ts} +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/demo.stories.tsx +32 -25
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/index.tsx +14 -60
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/mock.ts +3 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/demo.stories.tsx +25 -13
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/index.tsx +16 -68
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/demo.stories.tsx +24 -11
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/index.tsx +11 -47
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/mock.ts +8 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/PConnProps.d.ts +46 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +104 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/index.tsx +202 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/mock.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/styles.ts +8 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/demo.stories.tsx +25 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/index.tsx +25 -88
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/mock.ts +8 -2
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/demo.stories.tsx +24 -11
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/index.tsx +14 -49
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/demo.stories.tsx +25 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/index.tsx +15 -55
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/mock.ts +9 -2
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/demo.stories.tsx +25 -11
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/index.tsx +15 -53
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/demo.stories.tsx +25 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/index.tsx +14 -62
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/demo.stories.tsx +25 -13
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/index.tsx +12 -58
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/{textformat-utils.jsx → textformat-utils.tsx} +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{date.js → date.ts} +16 -37
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/demo.stories.tsx +26 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{embed-utils.js → embed-utils.ts} +2 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/index.tsx +27 -76
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/mock.ts +8 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{picklist-utils.js → picklist-utils.ts} +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{repeat-constants.js → repeat-constants.ts} +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{repeat-utils.js → repeat-utils.ts} +6 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{textformat-utils.jsx → textformat-utils.tsx} +30 -10
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/utils.ts +4 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/demo.stories.tsx +23 -9
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/index.tsx +97 -24
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/mock.ts +8 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/StatusWork.tsx +3 -9
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/demo.stories.tsx +24 -11
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/index.tsx +12 -51
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +28 -22
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/index.tsx +18 -53
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/mock.ts +2 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyDateTime/date-utils.js → Pega_DXIL_MyTimeOfDay/time-of-day.ts} +24 -23
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/demo.stories.tsx +24 -11
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/index.tsx +16 -71
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/mock.ts +9 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/{text-url.jsx → text-url.tsx} +4 -3
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Avatar.tsx +78 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Operator.tsx +215 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/StatusWork.tsx +17 -19
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/demo.stories.tsx +94 -29
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/index.tsx +51 -52
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/mock.ts +78 -20
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/styles.ts +21 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/demo.stories.tsx +91 -16
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/index.tsx +34 -16
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/demo.stories.tsx +14 -8
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/index.tsx +6 -16
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/localizations.json +4 -2
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/{utils.js → utils.ts} +28 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +78 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +17 -19
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +112 -34
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +43 -53
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/mock.ts +68 -10
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/styles.ts +20 -12
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/{utils.js → utils.ts} +15 -13
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +112 -22
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/index.tsx +27 -13
- package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +34 -28
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/index.tsx +4 -10
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +3 -13
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Operator.tsx +5 -20
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +15 -9
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +25 -39
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/create-nonce.ts +5 -0
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +100 -16
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/index.tsx +70 -21
- package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/styles.ts +7 -14
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.html +18 -17
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.ts +127 -44
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/config.json +166 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/pega-dxil-my-currency.component.html +15 -6
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/pega-dxil-my-currency.component.scss +2 -2
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/pega-dxil-my-currency.component.ts +36 -18
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.html +5 -5
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.ts +8 -39
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/pega-dxil-my-decimal.component.html +14 -4
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/pega-dxil-my-decimal.component.ts +42 -5
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/config.json +64 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/demo.stories.tsx +63 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/mock.ts +37 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.html +37 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.scss +24 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.spec.ts +26 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.ts +195 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.html +15 -4
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.scss +18 -18
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.ts +29 -5
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-time-of-day/pega-dxil-my-time-of-day.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-time-of-day/pega-dxil-my-time-of-day.component.ts +2 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-url/pega-dxil-my-url.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-url/pega-dxil-my-url.component.ts +2 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-form/pega-dxil-my-two-column-form.component.scss +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-case-widget/pega-dxil-my-case-widget.component.ts +2 -2
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-case-widget/pega-dxil-my-page-case-widget.component.ts +7 -5
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/demo.stories.tsx +22 -5
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/mock.ts +25 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/pega-dxil-my-page-widget.component.html +11 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/pega-dxil-my-page-widget.component.ts +93 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.html +28 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.scss +64 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.ts +26 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.html +5 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.ts +3 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/operator/operator.component.ts +6 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/auto-complete/auto-complete.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/cancel-alert/cancel-alert.component.ts +0 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.html +16 -15
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.scss +14 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.ts +127 -44
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/currency/currency.component.html +15 -6
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/currency/currency.component.ts +36 -18
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/date-time/date-time.component.html +5 -5
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/date-time/date-time.component.ts +8 -39
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/decimal/decimal.component.html +14 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/decimal/decimal.component.ts +42 -5
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/dropdown/dropdown.component.ts +0 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.ts +4 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/percentage/percentage.component.html +15 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/percentage/percentage.component.ts +29 -5
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/radio-buttons/radio-buttons.component.ts +0 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/rich-text.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/scalar-list/scalar-list.component.ts +2 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/text-area/text-area.component.ts +0 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/time/time.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/time/time.component.ts +2 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/url/url.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/url/url.component.ts +2 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/user-reference/user-reference.component.html +50 -45
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/user-reference/user-reference.component.ts +33 -15
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/assignment/assignment.component.ts +31 -7
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.html +35 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.ts +89 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/defer-load/defer-load.component.ts +5 -8
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.html +40 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.scss +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.ts +627 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/helpers.ts +79 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.html +35 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.scss +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.ts +393 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/multi-step/multi-step.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/multi-step/multi-step.component.scss +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/navbar/navbar.component.html +4 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/navbar/navbar.component.ts +6 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.ts +35 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.ts +165 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.html +36 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.scss +18 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.ts +256 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.html +31 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.scss +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.ts +288 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.html +12 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.ts +65 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-summary/case-summary.component.ts +37 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.html +3 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.scss +2 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.ts +0 -6
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/data-reference/data-reference.component.ts +1 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/config-ext.json +37 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.ts +77 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/field-group-template/field-group-template.component.ts +4 -12
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/field-value-list/field-value-list.component.html +7 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/field-value-list/field-value-list.component.ts +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/list-view.component.html +6 -6
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/list-view.component.ts +35 -27
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/listViewHelpers.ts +0 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/repeating-structures/repeating-structures.component.ts +1 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table/simple-table.component.ts +0 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/helpers.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/simple-table-manual.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/simple-table-manual.component.ts +48 -16
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-select/simple-table-select.component.ts +2 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.scss +164 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.ts +173 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/attachment/attachment.component.html +50 -26
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/attachment/attachment.component.scss +118 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/attachment/attachment.component.ts +256 -501
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/case-history/case-history.component.ts +1 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/feed-container/feed-container.component.ts +0 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/file-utility/file-utility.component.html +2 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/file-utility/file-utility.component.ts +13 -17
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/list-utility/list-utility.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.html +1 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.spec.ts +22 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.ts +96 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/todo/todo.component.html +4 -4
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/todo/todo.component.ts +6 -5
- package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +16 -7
- package/tests/assets/sdk-r/components/create/override-sdk/infra/Assignment/Assignment.tsx +26 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +16 -29
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/demo.stories.tsx +73 -8
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/index.tsx +3 -1
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +95 -15
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +16 -7
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/mock.ts +18 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/demo.stories.tsx +13 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +20 -20
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +20 -20
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +45 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx +168 -3
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/mock.ts +25 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +16 -7
- package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Assignment/Assignment.tsx +26 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +16 -29
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/Boolean.js +0 -38
- package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/FormattedText.jsx +0 -41
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{component-constants.js → component-constants.ts} +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{format-constants.js → format-constants.ts} +0 -0
|
@@ -24,12 +24,14 @@ function PegaDxilMyForm(props: PegaDxilMyFormProps) {
|
|
|
24
24
|
const nCols = parseInt(NumCols, 10);
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
if (readOnly && readOnly === true
|
|
27
|
+
if (readOnly && readOnly === true || displayMode && displayMode === 'DISPLAY_ONLY') {
|
|
28
28
|
const numRegions = '1';
|
|
29
29
|
const gridRepeat = 'repeat('.concat(numRegions).concat(', 1fr)');
|
|
30
30
|
const gridContainer = { colGap: 0, 'margin-line-start': 0 };
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
gridContainer.cols = gridRepeat;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
gridContainer.gap = 2;
|
|
33
35
|
|
|
34
36
|
return (
|
|
35
37
|
<StyledPegaDxilMyFormWrapper>
|
|
@@ -22,7 +22,7 @@ export default meta;
|
|
|
22
22
|
type Story = StoryObj<typeof PegaDxilMyTwoColumnForm>;
|
|
23
23
|
|
|
24
24
|
const renderField = resolvedProps => {
|
|
25
|
-
const { displayMode, value = '', label = '', key } = resolvedProps;
|
|
25
|
+
const { displayMode, value = '', label = '', key, readOnly } = resolvedProps;
|
|
26
26
|
|
|
27
27
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
28
28
|
const [inputValue, setInputValue] = useState(value);
|
|
@@ -128,6 +128,30 @@ const renderField = resolvedProps => {
|
|
|
128
128
|
</Text>
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
|
+
if (readOnly) {
|
|
132
|
+
return {
|
|
133
|
+
getPConnect: () => {
|
|
134
|
+
return {
|
|
135
|
+
getRawMetadata: () => {
|
|
136
|
+
return {};
|
|
137
|
+
},
|
|
138
|
+
resolveConfigProps: props => {
|
|
139
|
+
return props;
|
|
140
|
+
},
|
|
141
|
+
getConfigProps: () => {
|
|
142
|
+
return {
|
|
143
|
+
value: '',
|
|
144
|
+
label,
|
|
145
|
+
displayMode: 'LABELS_LEFT'
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
getComponent: () => {
|
|
149
|
+
return val;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
131
155
|
return (
|
|
132
156
|
<FieldValueList
|
|
133
157
|
variant={variant}
|
|
@@ -141,7 +165,10 @@ const renderField = resolvedProps => {
|
|
|
141
165
|
};
|
|
142
166
|
|
|
143
167
|
export const BasePegaDxilMyTwoColumnForm: Story = args => {
|
|
168
|
+
const { readOnly } = args;
|
|
169
|
+
|
|
144
170
|
const props = {
|
|
171
|
+
readOnly,
|
|
145
172
|
getPConnect: () => {
|
|
146
173
|
return {
|
|
147
174
|
getChildren: () => {
|
|
@@ -154,39 +181,92 @@ export const BasePegaDxilMyTwoColumnForm: Story = args => {
|
|
|
154
181
|
// eslint-disable-next-line default-case
|
|
155
182
|
switch (config.config.value) {
|
|
156
183
|
case '@P .FirstName':
|
|
157
|
-
return renderField(
|
|
184
|
+
return renderField({
|
|
185
|
+
...regionChildrenResolved[0],
|
|
186
|
+
readOnly,
|
|
187
|
+
displayMode: readOnly ? 'LABELS_LEFT' : ''
|
|
188
|
+
});
|
|
158
189
|
case '@P .MiddleName':
|
|
159
|
-
return renderField(
|
|
190
|
+
return renderField({
|
|
191
|
+
...regionChildrenResolved[1],
|
|
192
|
+
readOnly,
|
|
193
|
+
displayMode: readOnly ? 'LABELS_LEFT' : ''
|
|
194
|
+
});
|
|
160
195
|
case '@P .LastName':
|
|
161
|
-
return renderField(
|
|
196
|
+
return renderField({
|
|
197
|
+
...regionChildrenResolved[2],
|
|
198
|
+
readOnly,
|
|
199
|
+
displayMode: readOnly ? 'LABELS_LEFT' : ''
|
|
200
|
+
});
|
|
162
201
|
case '@P .Email':
|
|
163
|
-
return renderField(
|
|
202
|
+
return renderField({
|
|
203
|
+
...regionChildrenResolved[3],
|
|
204
|
+
readOnly,
|
|
205
|
+
displayMode: readOnly ? 'LABELS_LEFT' : ''
|
|
206
|
+
});
|
|
164
207
|
case '@P .PhoneNumber':
|
|
165
|
-
return renderField(
|
|
208
|
+
return renderField({
|
|
209
|
+
...regionChildrenResolved[4],
|
|
210
|
+
readOnly,
|
|
211
|
+
displayMode: readOnly ? 'LABELS_LEFT' : ''
|
|
212
|
+
});
|
|
166
213
|
case '@P .ServiceDate':
|
|
167
|
-
return renderField(
|
|
214
|
+
return renderField({
|
|
215
|
+
...regionChildrenResolved[5],
|
|
216
|
+
readOnly,
|
|
217
|
+
displayMode: readOnly ? 'LABELS_LEFT' : ''
|
|
218
|
+
});
|
|
168
219
|
}
|
|
169
220
|
}
|
|
170
221
|
};
|
|
171
222
|
}
|
|
172
223
|
};
|
|
173
224
|
|
|
174
|
-
const regionAChildren =
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
225
|
+
const regionAChildren = readOnly
|
|
226
|
+
? {
|
|
227
|
+
props: {
|
|
228
|
+
getPConnect: () => {
|
|
229
|
+
return {
|
|
230
|
+
getChildren: () => {
|
|
231
|
+
return pyReviewRaw.children[0].children.map(child => {
|
|
232
|
+
return props.getPConnect().createComponent(child);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
: pyReviewRaw.children[0].children.map(child => {
|
|
240
|
+
return props.getPConnect().createComponent(child);
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
const regionBChildren = readOnly
|
|
244
|
+
? {
|
|
245
|
+
props: {
|
|
246
|
+
getPConnect: () => {
|
|
247
|
+
return {
|
|
248
|
+
getChildren: () => {
|
|
249
|
+
return pyReviewRaw.children[1].children.map(child => {
|
|
250
|
+
return props.getPConnect().createComponent(child);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
: pyReviewRaw.children[1].children.map(child => {
|
|
258
|
+
return props.getPConnect().createComponent(child);
|
|
259
|
+
});
|
|
180
260
|
|
|
181
261
|
return (
|
|
182
262
|
<PegaDxilMyTwoColumnForm {...props} {...args}>
|
|
183
|
-
{regionAChildren}
|
|
184
|
-
{regionBChildren}
|
|
263
|
+
{[regionAChildren, regionBChildren]}
|
|
185
264
|
</PegaDxilMyTwoColumnForm>
|
|
186
265
|
);
|
|
187
266
|
};
|
|
188
267
|
|
|
189
268
|
BasePegaDxilMyTwoColumnForm.args = {
|
|
269
|
+
readOnly: false,
|
|
190
270
|
showLabel: true,
|
|
191
271
|
label: 'Form Region template',
|
|
192
272
|
};
|
|
@@ -32,7 +32,7 @@ function PegaDxilMyTwoColumnForm(props: PegaDxilMyTwoColumnFormProps) {
|
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
flexContainer.gap = 2;
|
|
34
34
|
|
|
35
|
-
if (readOnly && readOnly === true
|
|
35
|
+
if (readOnly && readOnly === true || displayMode && displayMode === 'DISPLAY_ONLY') {
|
|
36
36
|
return (
|
|
37
37
|
<StyledPegaDxilMyTwoColumnFormWrapper>
|
|
38
38
|
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import MuiPhoneNumber from 'material-ui-phone-number';
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
2
3
|
|
|
3
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
5
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
7
|
|
|
6
8
|
import StyledPegaDxilMyPhoneWrapper from './styles';
|
|
7
9
|
|
|
@@ -17,6 +19,7 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
17
19
|
const FieldValueList = getComponentFromMap('FieldValueList');
|
|
18
20
|
|
|
19
21
|
const {
|
|
22
|
+
getPConnect,
|
|
20
23
|
label,
|
|
21
24
|
required,
|
|
22
25
|
disabled,
|
|
@@ -24,7 +27,6 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
24
27
|
validatemessage,
|
|
25
28
|
status,
|
|
26
29
|
onChange,
|
|
27
|
-
onBlur,
|
|
28
30
|
readOnly,
|
|
29
31
|
testId,
|
|
30
32
|
helperText,
|
|
@@ -32,6 +34,14 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
32
34
|
hideLabel,
|
|
33
35
|
placeholder
|
|
34
36
|
} = props;
|
|
37
|
+
|
|
38
|
+
const pConn = getPConnect();
|
|
39
|
+
const actions = pConn.getActionsApi();
|
|
40
|
+
const propName = (pConn.getStateProps() as any).value;
|
|
41
|
+
|
|
42
|
+
const [inputValue, setInputValue] = useState(value);
|
|
43
|
+
useEffect(() => setInputValue(value), [value]);
|
|
44
|
+
|
|
35
45
|
const helperTextToDisplay = validatemessage || helperText;
|
|
36
46
|
|
|
37
47
|
let testProp = {};
|
|
@@ -76,15 +86,14 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
76
86
|
}
|
|
77
87
|
|
|
78
88
|
const handleChange = inputVal => {
|
|
79
|
-
|
|
80
|
-
phoneValue = `+${phoneValue}`;
|
|
81
|
-
onChange({ value: phoneValue });
|
|
89
|
+
setInputValue(inputVal);
|
|
82
90
|
};
|
|
83
91
|
|
|
84
92
|
const handleBlur = event => {
|
|
85
93
|
const phoneValue = event?.target?.value;
|
|
86
|
-
|
|
87
|
-
|
|
94
|
+
let phoneNumber = phoneValue.split(' ').slice(1).join();
|
|
95
|
+
phoneNumber = phoneNumber ? `+${phoneValue && phoneValue.replace(/\D+/g, '')}` : '';
|
|
96
|
+
handleEvent(actions, 'changeNblur', propName, phoneNumber);
|
|
88
97
|
};
|
|
89
98
|
|
|
90
99
|
return (
|
|
@@ -102,7 +111,7 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
|
102
111
|
onBlur={!readOnly ? handleBlur : undefined}
|
|
103
112
|
error={status === 'error'}
|
|
104
113
|
label={label}
|
|
105
|
-
value={
|
|
114
|
+
value={inputValue}
|
|
106
115
|
InputProps={{ ...testProp }}
|
|
107
116
|
/>
|
|
108
117
|
</StyledPegaDxilMyPhoneWrapper>
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/mock.ts
CHANGED
|
@@ -190,7 +190,24 @@ export const pyReviewRaw = {
|
|
|
190
190
|
value: '+16397975093',
|
|
191
191
|
label: 'Phone',
|
|
192
192
|
displayMode: 'LABELS_LEFT',
|
|
193
|
-
hasSuggestions: false
|
|
193
|
+
hasSuggestions: false,
|
|
194
|
+
getPConnect: () => {
|
|
195
|
+
return {
|
|
196
|
+
getActionsApi: () => {
|
|
197
|
+
return {
|
|
198
|
+
updateFieldValue: () => {
|
|
199
|
+
/* nothing */
|
|
200
|
+
},
|
|
201
|
+
triggerFieldChange: () => {
|
|
202
|
+
/* nothing */
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
getStateProps: () => {
|
|
207
|
+
return { value: '' };
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
194
211
|
},
|
|
195
212
|
{
|
|
196
213
|
readOnly: undefined,
|
|
@@ -182,6 +182,19 @@ export const BasePegaDxilMyForm: Story = args => {
|
|
|
182
182
|
return {
|
|
183
183
|
getComputedVisibility: () => {
|
|
184
184
|
return true;
|
|
185
|
+
},
|
|
186
|
+
getActionsApi: () => {
|
|
187
|
+
return {
|
|
188
|
+
updateFieldValue: () => {
|
|
189
|
+
/* nothing */
|
|
190
|
+
},
|
|
191
|
+
triggerFieldChange: () => {
|
|
192
|
+
/* nothing */
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
getStateProps: () => {
|
|
197
|
+
return { value: '' };
|
|
185
198
|
}
|
|
186
199
|
};
|
|
187
200
|
}
|
|
@@ -3,26 +3,6 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
3
3
|
import PegaDxilMyCaseWidget from './index';
|
|
4
4
|
import { historyData } from './mock';
|
|
5
5
|
|
|
6
|
-
window.PCore = {
|
|
7
|
-
...window.PCore,
|
|
8
|
-
getDataApiUtils: (): any => {
|
|
9
|
-
return {
|
|
10
|
-
getData: (): any => {
|
|
11
|
-
return new Promise(resolve => {
|
|
12
|
-
resolve(historyData);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
getConstants: (): any => {
|
|
18
|
-
return {
|
|
19
|
-
CASE_INFO: {
|
|
20
|
-
CASE_INFO_ID: 'caseInfo.ID'
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
6
|
const meta: Meta<typeof PegaDxilMyCaseWidget> = {
|
|
27
7
|
title: 'PegaDxilMyCaseWidget',
|
|
28
8
|
component: PegaDxilMyCaseWidget,
|
|
@@ -33,6 +13,26 @@ export default meta;
|
|
|
33
13
|
type Story = StoryObj<typeof PegaDxilMyCaseWidget>;
|
|
34
14
|
|
|
35
15
|
export const BasePegaDxilMyCaseWidget: 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
36
|
const props = {
|
|
37
37
|
label: 'Case history',
|
|
38
38
|
|
|
@@ -3,26 +3,6 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
3
3
|
import PegaDxilMyPageCaseWidget from './index';
|
|
4
4
|
import { caseOpConfig, operatorDetails } from './mock';
|
|
5
5
|
|
|
6
|
-
window.PCore = {
|
|
7
|
-
...window.PCore,
|
|
8
|
-
getUserApi: (): any => {
|
|
9
|
-
return {
|
|
10
|
-
getOperatorDetails: () => {
|
|
11
|
-
return new Promise(resolve => {
|
|
12
|
-
resolve(operatorDetails);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
getLocaleUtils: (): any => {
|
|
18
|
-
return {
|
|
19
|
-
getLocaleValue: val => {
|
|
20
|
-
return val;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
6
|
const meta: Meta<typeof PegaDxilMyPageCaseWidget> = {
|
|
27
7
|
title: 'PegaDxilMyPageCaseWidget',
|
|
28
8
|
component: PegaDxilMyPageCaseWidget,
|
|
@@ -33,6 +13,26 @@ export default meta;
|
|
|
33
13
|
type Story = StoryObj<typeof PegaDxilMyPageCaseWidget>;
|
|
34
14
|
|
|
35
15
|
export const BasePegaDxilMyPageCaseWidget: 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
36
|
const props = {
|
|
37
37
|
getPConnect: () => {
|
|
38
38
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
|
|
3
3
|
import PegaDxilMyPageWidget from './index';
|
|
4
|
-
import { configProps } from './mock';
|
|
4
|
+
import { configProps, worklistData } from './mock';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof PegaDxilMyPageWidget> = {
|
|
7
7
|
title: 'PegaDxilMyPageWidget',
|
|
@@ -13,9 +13,52 @@ export default meta;
|
|
|
13
13
|
type Story = StoryObj<typeof PegaDxilMyPageWidget>;
|
|
14
14
|
|
|
15
15
|
export const BasePegaDxilMyPageWidget: Story = args => {
|
|
16
|
+
window.PCore = {
|
|
17
|
+
...window.PCore,
|
|
18
|
+
getDataApiUtils: (): any => {
|
|
19
|
+
return {
|
|
20
|
+
getData: () => {
|
|
21
|
+
return new Promise(resolve => {
|
|
22
|
+
resolve(worklistData);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
getConstants: (): any => {
|
|
28
|
+
return {
|
|
29
|
+
CASE_INFO: {
|
|
30
|
+
INSTRUCTIONS: 'caseInfo.assignments[0].instructions'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
16
36
|
const props = {
|
|
17
37
|
datasource: configProps.datasource,
|
|
18
|
-
whatsnewlink: configProps.whatsnewlink
|
|
38
|
+
whatsnewlink: configProps.whatsnewlink,
|
|
39
|
+
getPConnect: () => {
|
|
40
|
+
return {
|
|
41
|
+
getValue: value => {
|
|
42
|
+
return value;
|
|
43
|
+
},
|
|
44
|
+
getContextName: () => {
|
|
45
|
+
return 'app/primary_1';
|
|
46
|
+
},
|
|
47
|
+
getLocalizedValue: value => {
|
|
48
|
+
return value;
|
|
49
|
+
},
|
|
50
|
+
getActionsApi: () => {
|
|
51
|
+
return {
|
|
52
|
+
updateFieldValue: () => {
|
|
53
|
+
/* nothing */
|
|
54
|
+
},
|
|
55
|
+
triggerFieldChange: () => {
|
|
56
|
+
/* nothing */
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
19
62
|
};
|
|
20
63
|
|
|
21
64
|
return <PegaDxilMyPageWidget {...props} {...args} />;
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Card,
|
|
3
|
+
CardContent,
|
|
4
|
+
CardHeader,
|
|
5
|
+
Typography,
|
|
6
|
+
CardActions,
|
|
7
|
+
Button,
|
|
8
|
+
TableContainer,
|
|
9
|
+
Table,
|
|
10
|
+
TableBody,
|
|
11
|
+
TableHead,
|
|
12
|
+
withStyles,
|
|
13
|
+
createStyles,
|
|
14
|
+
Theme,
|
|
15
|
+
TableCell,
|
|
16
|
+
TableRow
|
|
17
|
+
} from '@material-ui/core';
|
|
2
18
|
import { makeStyles } from '@material-ui/core/styles';
|
|
3
19
|
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
4
20
|
import StyledPegaDxilMyPageWidgetWrapper from './styles';
|
|
21
|
+
import isDeepEqual from 'fast-deep-equal/react';
|
|
22
|
+
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
23
|
+
import { useRef, useEffect, useState } from 'react';
|
|
5
24
|
|
|
6
25
|
interface PegaDxilMyPageWidgetProps extends PConnProps {
|
|
7
26
|
// If any, enter additional props that only exist on this component
|
|
@@ -20,13 +39,29 @@ const useStyles = makeStyles(theme => ({
|
|
|
20
39
|
}
|
|
21
40
|
}));
|
|
22
41
|
|
|
23
|
-
|
|
42
|
+
const StyledTableCell = withStyles((theme: Theme) =>
|
|
43
|
+
createStyles({
|
|
44
|
+
head: {
|
|
45
|
+
borderWidth: '1px',
|
|
46
|
+
borderStyle: 'solid',
|
|
47
|
+
borderColor: 'silver',
|
|
48
|
+
backgroundColor: theme.palette.text.disabled,
|
|
49
|
+
color: theme.palette.getContrastText(theme.palette.text.disabled)
|
|
50
|
+
},
|
|
51
|
+
body: {
|
|
52
|
+
borderWidth: '1px',
|
|
53
|
+
borderStyle: 'solid',
|
|
54
|
+
borderColor: 'silver'
|
|
55
|
+
// fontSize: 14,
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
)(TableCell);
|
|
24
59
|
|
|
25
60
|
// Page Widget example is the "App Announcment"
|
|
26
61
|
|
|
27
62
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
28
63
|
export default function PegaDxilMyPageWidget(props: PegaDxilMyPageWidgetProps) {
|
|
29
|
-
const { header = '', description = '', datasource = [], whatsnewlink = '' } = props;
|
|
64
|
+
const { header = '', description = '', datasource = [], whatsnewlink = '', getPConnect } = props;
|
|
30
65
|
let details = [];
|
|
31
66
|
if (datasource && datasource.source) {
|
|
32
67
|
details = datasource.source.map(item => {
|
|
@@ -34,12 +69,136 @@ export default function PegaDxilMyPageWidget(props: PegaDxilMyPageWidgetProps) {
|
|
|
34
69
|
});
|
|
35
70
|
}
|
|
36
71
|
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
73
|
+
const [waitingForData, setWaitingForData] = useState<boolean>(true);
|
|
74
|
+
const thePConn = getPConnect();
|
|
75
|
+
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef marked correctly
|
|
76
|
+
const dataViewName = 'D_pyWorkHistory';
|
|
77
|
+
const context = thePConn.getContextName();
|
|
78
|
+
|
|
79
|
+
const rowData: any = useRef([]);
|
|
80
|
+
|
|
37
81
|
const classes = useStyles();
|
|
38
82
|
|
|
83
|
+
const displayedColumns = [
|
|
84
|
+
{
|
|
85
|
+
label: thePConn.getLocalizedValue('Case type', '', ''),
|
|
86
|
+
type: 'TextInput',
|
|
87
|
+
fieldName: 'pxProcessName'
|
|
88
|
+
}, // 2nd and 3rd args empty string until typedef marked correctly
|
|
89
|
+
{
|
|
90
|
+
label: thePConn.getLocalizedValue('Key', '', ''),
|
|
91
|
+
type: 'TextInput',
|
|
92
|
+
fieldName: 'pxRefObjectInsName'
|
|
93
|
+
}, // 2nd and 3rd args empty string until typedef marked correctly
|
|
94
|
+
{
|
|
95
|
+
label: thePConn.getLocalizedValue('Status', '', ''),
|
|
96
|
+
type: 'TextInput',
|
|
97
|
+
fieldName: 'pyAssignmentStatus'
|
|
98
|
+
}, // 2nd and 3rd args empty string until typedef marked correctly
|
|
99
|
+
{
|
|
100
|
+
label: thePConn.getLocalizedValue('Stage', '', ''),
|
|
101
|
+
type: 'TextInput',
|
|
102
|
+
fieldName: 'pxTaskLabel'
|
|
103
|
+
} // 2nd and 3rd args empty string until typedef marked correctly
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
function computeRowData(rows: Object[]): void {
|
|
107
|
+
const theRowData: Object[] = [];
|
|
108
|
+
|
|
109
|
+
rows.forEach((row: any, rowIndex: number) => {
|
|
110
|
+
// Now, for each property in the index of row properties (displayedColumns), add an object
|
|
111
|
+
// to a new array of values
|
|
112
|
+
const rowDisplayValues: any = [];
|
|
113
|
+
|
|
114
|
+
displayedColumns.forEach((column: any, rowValIndex) => {
|
|
115
|
+
const theType = column.type;
|
|
116
|
+
const theFieldName = column.fieldName;
|
|
117
|
+
const theValue =
|
|
118
|
+
theType === 'Date' || theType === 'DateTime' ? Utils.generateDateTime(row[theFieldName], 'DateTime-Short') : row[theFieldName];
|
|
119
|
+
rowDisplayValues[rowValIndex] = theValue;
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
theRowData[rowIndex] = rowDisplayValues;
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
if (!isDeepEqual(theRowData, rowData.current)) {
|
|
126
|
+
// Only update rowData.current when it actually changes (to prevent infinite loop)
|
|
127
|
+
rowData.current = theRowData;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
39
131
|
const handleClick = () => {
|
|
40
132
|
window.open(whatsnewlink);
|
|
41
133
|
};
|
|
42
134
|
|
|
135
|
+
// Get the case history data when component mounted/initialized
|
|
136
|
+
useEffect(() => {
|
|
137
|
+
let bCallSetWaitingForData = true;
|
|
138
|
+
|
|
139
|
+
const worklistData = PCore.getDataApiUtils().getData(
|
|
140
|
+
dataViewName,
|
|
141
|
+
{ dataViewParameters: [{ CaseInstanceKey: caseID }] } as any,
|
|
142
|
+
context
|
|
143
|
+
) as Promise<any>;
|
|
144
|
+
|
|
145
|
+
worklistData.then((worklistJSON: any) => {
|
|
146
|
+
const tableDataResults = worklistJSON.data.data;
|
|
147
|
+
|
|
148
|
+
// compute the rowData using the tableDataResults
|
|
149
|
+
computeRowData(tableDataResults);
|
|
150
|
+
|
|
151
|
+
// At this point, if we have data ready to render and haven't been asked
|
|
152
|
+
// to NOT call setWaitingForData, we can stop progress indicator
|
|
153
|
+
if (bCallSetWaitingForData) {
|
|
154
|
+
setWaitingForData(false);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
return () => {
|
|
159
|
+
// Inspired by https://juliangaramendy.dev/blog/use-promise-subscription
|
|
160
|
+
// The useEffect closure lets us have access to the bCallSetWaitingForData
|
|
161
|
+
// variable inside the useEffect and inside the "then" clause of the
|
|
162
|
+
// historyData promise
|
|
163
|
+
// So, if this cleanup code gets run before the promise .then is called,
|
|
164
|
+
// we can avoid calling the useState setter which would otherwise show a warning
|
|
165
|
+
bCallSetWaitingForData = false;
|
|
166
|
+
};
|
|
167
|
+
}, []);
|
|
168
|
+
|
|
169
|
+
function getTableHeader() {
|
|
170
|
+
const theRowKey = 'CaseHistory.TableHeader';
|
|
171
|
+
|
|
172
|
+
const theHeaderCells: any[] = displayedColumns.map((headerCol, index) => {
|
|
173
|
+
const theCellKey = `${theRowKey}.${index}`;
|
|
174
|
+
return <StyledTableCell key={theCellKey}>{headerCol.label}</StyledTableCell>;
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
return <TableRow key={theRowKey}>{theHeaderCells}</TableRow>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function getTableData() {
|
|
181
|
+
const theDataRows: any[] = [];
|
|
182
|
+
|
|
183
|
+
// Note: using rowData.current since we're using useRef as a mutatable
|
|
184
|
+
// value that's only updated when it changes.
|
|
185
|
+
if (rowData.current.length > 0) {
|
|
186
|
+
rowData.current.forEach((dataRow: Object[], index) => {
|
|
187
|
+
// using dataRow[0]-dataRow[1] as the array key since it's a unique value
|
|
188
|
+
const theKey = `CaseHistory-${index}`;
|
|
189
|
+
theDataRows.push(
|
|
190
|
+
<TableRow key={theKey}>
|
|
191
|
+
<StyledTableCell>{dataRow[0] ? (dataRow[0] as any) : '---'}</StyledTableCell>
|
|
192
|
+
<StyledTableCell>{dataRow[1] ? (dataRow[1] as any) : '---'}</StyledTableCell>
|
|
193
|
+
<StyledTableCell>{dataRow[2] ? (dataRow[2] as any) : '---'}</StyledTableCell>
|
|
194
|
+
<StyledTableCell>{dataRow[3] ? (dataRow[3] as any) : '---'}</StyledTableCell>
|
|
195
|
+
</TableRow>
|
|
196
|
+
);
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return theDataRows;
|
|
200
|
+
}
|
|
201
|
+
|
|
43
202
|
return (
|
|
44
203
|
<StyledPegaDxilMyPageWidgetWrapper>
|
|
45
204
|
<Card title='AppAnnouncement' className={classes.root}>
|
|
@@ -63,6 +222,12 @@ export default function PegaDxilMyPageWidget(props: PegaDxilMyPageWidgetProps) {
|
|
|
63
222
|
</Button>
|
|
64
223
|
</CardActions>
|
|
65
224
|
</Card>
|
|
225
|
+
<TableContainer>
|
|
226
|
+
<Table>
|
|
227
|
+
<TableHead>{getTableHeader()}</TableHead>
|
|
228
|
+
<TableBody>{getTableData()}</TableBody>
|
|
229
|
+
</Table>
|
|
230
|
+
</TableContainer>
|
|
66
231
|
</StyledPegaDxilMyPageWidgetWrapper>
|
|
67
232
|
);
|
|
68
233
|
}
|