@pega/angular-sdk-overrides 0.23.1
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/lib/designSystemExtension/alert/alert.component.html +19 -0
- package/lib/designSystemExtension/alert/alert.component.scss +52 -0
- package/lib/designSystemExtension/alert/alert.component.spec.ts +22 -0
- package/lib/designSystemExtension/alert/alert.component.ts +43 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.html +12 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.scss +0 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.spec.ts +22 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.ts +27 -0
- package/lib/designSystemExtension/banner/banner.component.html +28 -0
- package/lib/designSystemExtension/banner/banner.component.scss +64 -0
- package/lib/designSystemExtension/banner/banner.component.spec.ts +22 -0
- package/lib/designSystemExtension/banner/banner.component.ts +26 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.html +12 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.scss +0 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.spec.ts +24 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +58 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.html +52 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.scss +142 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +80 -0
- package/lib/designSystemExtension/material-details/material-details.component.html +40 -0
- package/lib/designSystemExtension/material-details/material-details.component.scss +121 -0
- package/lib/designSystemExtension/material-details/material-details.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-details/material-details.component.ts +32 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.html +23 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss +33 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.spec.ts +22 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts +29 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.html +37 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss +127 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.ts +32 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.html +3 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.scss +1 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.ts +17 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.html +17 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.scss +52 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.ts +26 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +12 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.scss +28 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.ts +40 -0
- package/lib/designSystemExtension/operator/operator.component.html +20 -0
- package/lib/designSystemExtension/operator/operator.component.scss +83 -0
- package/lib/designSystemExtension/operator/operator.component.spec.ts +24 -0
- package/lib/designSystemExtension/operator/operator.component.ts +146 -0
- package/lib/designSystemExtension/pulse/pulse.component.html +3 -0
- package/lib/designSystemExtension/pulse/pulse.component.scss +8 -0
- package/lib/designSystemExtension/pulse/pulse.component.spec.ts +24 -0
- package/lib/designSystemExtension/pulse/pulse.component.ts +40 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.html +33 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +20 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.spec.ts +24 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +89 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
- package/lib/field/auto-complete/auto-complete.component.html +32 -0
- package/lib/field/auto-complete/auto-complete.component.scss +20 -0
- package/lib/field/auto-complete/auto-complete.component.spec.ts +24 -0
- package/lib/field/auto-complete/auto-complete.component.ts +345 -0
- package/lib/field/auto-complete/config-ext.json +10 -0
- package/lib/field/cancel-alert/cancel-alert.component.html +18 -0
- package/lib/field/cancel-alert/cancel-alert.component.scss +24 -0
- package/lib/field/cancel-alert/cancel-alert.component.spec.ts +24 -0
- package/lib/field/cancel-alert/cancel-alert.component.ts +107 -0
- package/lib/field/check-box/check-box.component.html +41 -0
- package/lib/field/check-box/check-box.component.scss +24 -0
- package/lib/field/check-box/check-box.component.spec.ts +24 -0
- package/lib/field/check-box/check-box.component.ts +188 -0
- package/lib/field/check-box/config-ext.json +9 -0
- package/lib/field/currency/config-ext.json +9 -0
- package/lib/field/currency/currency.component.html +31 -0
- package/lib/field/currency/currency.component.scss +28 -0
- package/lib/field/currency/currency.component.spec.ts +24 -0
- package/lib/field/currency/currency.component.ts +197 -0
- package/lib/field/date/config-ext.json +9 -0
- package/lib/field/date/date.component.html +31 -0
- package/lib/field/date/date.component.scss +24 -0
- package/lib/field/date/date.component.spec.ts +24 -0
- package/lib/field/date/date.component.ts +245 -0
- package/lib/field/date-time/config-ext.json +8 -0
- package/lib/field/date-time/date-time.component.html +29 -0
- package/lib/field/date-time/date-time.component.scss +80 -0
- package/lib/field/date-time/date-time.component.spec.ts +24 -0
- package/lib/field/date-time/date-time.component.ts +224 -0
- package/lib/field/decimal/config-ext.json +8 -0
- package/lib/field/decimal/decimal.component.html +28 -0
- package/lib/field/decimal/decimal.component.scss +20 -0
- package/lib/field/decimal/decimal.component.spec.ts +24 -0
- package/lib/field/decimal/decimal.component.ts +187 -0
- package/lib/field/dropdown/config-ext.json +8 -0
- package/lib/field/dropdown/dropdown.component.html +31 -0
- package/lib/field/dropdown/dropdown.component.scss +25 -0
- package/lib/field/dropdown/dropdown.component.spec.ts +24 -0
- package/lib/field/dropdown/dropdown.component.ts +247 -0
- package/lib/field/email/config-ext.json +8 -0
- package/lib/field/email/email.component.html +27 -0
- package/lib/field/email/email.component.scss +20 -0
- package/lib/field/email/email.component.spec.ts +24 -0
- package/lib/field/email/email.component.ts +180 -0
- package/lib/field/integer/config-ext.json +8 -0
- package/lib/field/integer/integer.component.html +28 -0
- package/lib/field/integer/integer.component.scss +20 -0
- package/lib/field/integer/integer.component.spec.ts +24 -0
- package/lib/field/integer/integer.component.ts +185 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.html +12 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.scss +1 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.spec.ts +22 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.ts +40 -0
- package/lib/field/percentage/config-ext.json +8 -0
- package/lib/field/percentage/percentage.component.html +29 -0
- package/lib/field/percentage/percentage.component.scss +20 -0
- package/lib/field/percentage/percentage.component.spec.ts +24 -0
- package/lib/field/percentage/percentage.component.ts +181 -0
- package/lib/field/phone/config-ext.json +8 -0
- package/lib/field/phone/phone.component.html +26 -0
- package/lib/field/phone/phone.component.scss +81 -0
- package/lib/field/phone/phone.component.spec.ts +24 -0
- package/lib/field/phone/phone.component.ts +199 -0
- package/lib/field/radio-buttons/config-ext.json +8 -0
- package/lib/field/radio-buttons/radio-buttons.component.html +37 -0
- package/lib/field/radio-buttons/radio-buttons.component.scss +39 -0
- package/lib/field/radio-buttons/radio-buttons.component.spec.ts +24 -0
- package/lib/field/radio-buttons/radio-buttons.component.ts +241 -0
- package/lib/field/rich-text/rich-text.component.html +20 -0
- package/lib/field/rich-text/rich-text.component.scss +0 -0
- package/lib/field/rich-text/rich-text.component.spec.ts +24 -0
- package/lib/field/rich-text/rich-text.component.ts +131 -0
- package/lib/field/scalar-list/config-ext.json +8 -0
- package/lib/field/scalar-list/scalar-list.component.html +9 -0
- package/lib/field/scalar-list/scalar-list.component.scss +0 -0
- package/lib/field/scalar-list/scalar-list.component.spec.ts +22 -0
- package/lib/field/scalar-list/scalar-list.component.ts +119 -0
- package/lib/field/semantic-link/config-ext.json +7 -0
- package/lib/field/semantic-link/semantic-link.component.html +10 -0
- package/lib/field/semantic-link/semantic-link.component.scss +16 -0
- package/lib/field/semantic-link/semantic-link.component.spec.ts +0 -0
- package/lib/field/semantic-link/semantic-link.component.ts +70 -0
- package/lib/field/text/text.component.html +14 -0
- package/lib/field/text/text.component.scss +30 -0
- package/lib/field/text/text.component.spec.ts +24 -0
- package/lib/field/text/text.component.ts +158 -0
- package/lib/field/text-area/config-ext.json +8 -0
- package/lib/field/text-area/text-area.component.html +29 -0
- package/lib/field/text-area/text-area.component.scss +20 -0
- package/lib/field/text-area/text-area.component.spec.ts +24 -0
- package/lib/field/text-area/text-area.component.ts +186 -0
- package/lib/field/text-content/config-ext.json +7 -0
- package/lib/field/text-content/text-content.component.html +7 -0
- package/lib/field/text-content/text-content.component.scss +4 -0
- package/lib/field/text-content/text-content.component.spec.ts +24 -0
- package/lib/field/text-content/text-content.component.ts +89 -0
- package/lib/field/text-input/config-ext.json +8 -0
- package/lib/field/text-input/text-input.component.html +27 -0
- package/lib/field/text-input/text-input.component.scss +20 -0
- package/lib/field/text-input/text-input.component.spec.ts +24 -0
- package/lib/field/text-input/text-input.component.ts +183 -0
- package/lib/field/time/config-ext.json +8 -0
- package/lib/field/time/time.component.html +26 -0
- package/lib/field/time/time.component.scss +20 -0
- package/lib/field/time/time.component.spec.ts +24 -0
- package/lib/field/time/time.component.ts +177 -0
- package/lib/field/url/config-ext.json +8 -0
- package/lib/field/url/url.component.html +26 -0
- package/lib/field/url/url.component.scss +20 -0
- package/lib/field/url/url.component.spec.ts +24 -0
- package/lib/field/url/url.component.ts +179 -0
- package/lib/field/user-reference/config-ext.json +7 -0
- package/lib/field/user-reference/user-reference.component.html +48 -0
- package/lib/field/user-reference/user-reference.component.scss +30 -0
- package/lib/field/user-reference/user-reference.component.spec.ts +24 -0
- package/lib/field/user-reference/user-reference.component.ts +213 -0
- package/lib/infra/Containers/flow-container/flow-container.component.html +39 -0
- package/lib/infra/Containers/flow-container/flow-container.component.scss +33 -0
- package/lib/infra/Containers/flow-container/flow-container.component.spec.ts +24 -0
- package/lib/infra/Containers/flow-container/flow-container.component.ts +633 -0
- package/lib/infra/Containers/flow-container/helpers.ts +79 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.html +1 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.scss +0 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.ts +24 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.html +35 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.scss +29 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +394 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.html +1 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.scss +0 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.ts +35 -0
- package/lib/infra/Containers/view-container/view-container.component.html +31 -0
- package/lib/infra/Containers/view-container/view-container.component.scss +7 -0
- package/lib/infra/Containers/view-container/view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/view-container/view-container.component.ts +289 -0
- package/lib/infra/action-buttons/action-buttons.component.html +12 -0
- package/lib/infra/action-buttons/action-buttons.component.scss +1 -0
- package/lib/infra/action-buttons/action-buttons.component.spec.ts +24 -0
- package/lib/infra/action-buttons/action-buttons.component.ts +25 -0
- package/lib/infra/assignment/assignment.component.html +28 -0
- package/lib/infra/assignment/assignment.component.scss +0 -0
- package/lib/infra/assignment/assignment.component.spec.ts +24 -0
- package/lib/infra/assignment/assignment.component.ts +463 -0
- package/lib/infra/assignment-card/assignment-card.component.html +26 -0
- package/lib/infra/assignment-card/assignment-card.component.scss +9 -0
- package/lib/infra/assignment-card/assignment-card.component.spec.ts +24 -0
- package/lib/infra/assignment-card/assignment-card.component.ts +39 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.html +35 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.ts +90 -0
- package/lib/infra/defer-load/defer-load.component.html +3 -0
- package/lib/infra/defer-load/defer-load.component.scss +0 -0
- package/lib/infra/defer-load/defer-load.component.spec.ts +24 -0
- package/lib/infra/defer-load/defer-load.component.ts +169 -0
- package/lib/infra/error-boundary/error-boundary.component.html +1 -0
- package/lib/infra/error-boundary/error-boundary.component.scss +0 -0
- package/lib/infra/error-boundary/error-boundary.component.spec.ts +22 -0
- package/lib/infra/error-boundary/error-boundary.component.ts +16 -0
- package/lib/infra/multi-step/multi-step.component.html +98 -0
- package/lib/infra/multi-step/multi-step.component.scss +247 -0
- package/lib/infra/multi-step/multi-step.component.spec.ts +24 -0
- package/lib/infra/multi-step/multi-step.component.ts +85 -0
- package/lib/infra/navbar/navbar.component.html +55 -0
- package/lib/infra/navbar/navbar.component.scss +154 -0
- package/lib/infra/navbar/navbar.component.spec.ts +24 -0
- package/lib/infra/navbar/navbar.component.ts +175 -0
- package/lib/infra/reference/reference.component.html +1 -0
- package/lib/infra/reference/reference.component.scss +0 -0
- package/lib/infra/reference/reference.component.ts +165 -0
- package/lib/infra/region/region.component.html +11 -0
- package/lib/infra/region/region.component.scss +0 -0
- package/lib/infra/region/region.component.spec.ts +24 -0
- package/lib/infra/region/region.component.ts +37 -0
- package/lib/infra/root-container/root-container.component.html +36 -0
- package/lib/infra/root-container/root-container.component.scss +20 -0
- package/lib/infra/root-container/root-container.component.spec.ts +24 -0
- package/lib/infra/root-container/root-container.component.ts +256 -0
- package/lib/infra/stages/stages.component.html +15 -0
- package/lib/infra/stages/stages.component.scss +109 -0
- package/lib/infra/stages/stages.component.spec.ts +24 -0
- package/lib/infra/stages/stages.component.ts +83 -0
- package/lib/infra/view/view.component.html +38 -0
- package/lib/infra/view/view.component.scss +16 -0
- package/lib/infra/view/view.component.spec.ts +24 -0
- package/lib/infra/view/view.component.ts +214 -0
- package/lib/template/app-shell/app-shell.component.html +15 -0
- package/lib/template/app-shell/app-shell.component.scss +51 -0
- package/lib/template/app-shell/app-shell.component.spec.ts +24 -0
- package/lib/template/app-shell/app-shell.component.ts +192 -0
- package/lib/template/banner-page/banner-page.component.html +12 -0
- package/lib/template/banner-page/banner-page.component.scss +0 -0
- package/lib/template/banner-page/banner-page.component.spec.ts +22 -0
- package/lib/template/banner-page/banner-page.component.ts +65 -0
- package/lib/template/case-summary/case-summary.component.html +1 -0
- package/lib/template/case-summary/case-summary.component.scss +44 -0
- package/lib/template/case-summary/case-summary.component.spec.ts +24 -0
- package/lib/template/case-summary/case-summary.component.ts +100 -0
- package/lib/template/case-summary/config-ext.json +8 -0
- package/lib/template/case-view/case-view.component.html +89 -0
- package/lib/template/case-view/case-view.component.scss +107 -0
- package/lib/template/case-view/case-view.component.spec.ts +24 -0
- package/lib/template/case-view/case-view.component.ts +242 -0
- package/lib/template/case-view/config-ext.json +8 -0
- package/lib/template/confirmation/config-ext.json +11 -0
- package/lib/template/confirmation/confirmation.component.html +23 -0
- package/lib/template/confirmation/confirmation.component.scss +10 -0
- package/lib/template/confirmation/confirmation.component.spec.ts +23 -0
- package/lib/template/confirmation/confirmation.component.ts +91 -0
- package/lib/template/data-reference/config-ext.json +8 -0
- package/lib/template/data-reference/data-reference.component.html +13 -0
- package/lib/template/data-reference/data-reference.component.scss +0 -0
- package/lib/template/data-reference/data-reference.component.spec.ts +24 -0
- package/lib/template/data-reference/data-reference.component.ts +275 -0
- package/lib/template/default-form/config-ext.json +8 -0
- package/lib/template/default-form/default-form.component.html +19 -0
- package/lib/template/default-form/default-form.component.scss +38 -0
- package/lib/template/default-form/default-form.component.spec.ts +24 -0
- package/lib/template/default-form/default-form.component.ts +76 -0
- package/lib/template/details/config-ext.json +9 -0
- package/lib/template/details/details.component.html +3 -0
- package/lib/template/details/details.component.scss +7 -0
- package/lib/template/details/details.component.spec.ts +24 -0
- package/lib/template/details/details.component.ts +113 -0
- package/lib/template/details-narrow-wide/config-ext.json +8 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.html +4 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.scss +7 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.spec.ts +24 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +82 -0
- package/lib/template/details-one-column/config-ext.json +9 -0
- package/lib/template/details-one-column/details-one-column.component.html +1 -0
- package/lib/template/details-one-column/details-one-column.component.scss +0 -0
- package/lib/template/details-one-column/details-one-column.component.spec.ts +24 -0
- package/lib/template/details-one-column/details-one-column.component.ts +85 -0
- package/lib/template/details-sub-tabs/config-ext.json +8 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.html +15 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.scss +0 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.spec.ts +24 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.ts +73 -0
- package/lib/template/details-three-column/config-ext.json +8 -0
- package/lib/template/details-three-column/details-three-column.component.html +4 -0
- package/lib/template/details-three-column/details-three-column.component.scss +7 -0
- package/lib/template/details-three-column/details-three-column.component.spec.ts +24 -0
- package/lib/template/details-three-column/details-three-column.component.ts +94 -0
- package/lib/template/details-two-column/config-ext.json +8 -0
- package/lib/template/details-two-column/details-two-column.component.html +4 -0
- package/lib/template/details-two-column/details-two-column.component.scss +7 -0
- package/lib/template/details-two-column/details-two-column.component.spec.ts +24 -0
- package/lib/template/details-two-column/details-two-column.component.ts +92 -0
- package/lib/template/details-wide-narrow/config-ext.json +8 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.html +4 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.scss +7 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.spec.ts +24 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +88 -0
- package/lib/template/dynamic-tabs/config-ext.json +36 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +78 -0
- package/lib/template/field-group-list/field-group-list.component.html +8 -0
- package/lib/template/field-group-list/field-group-list.component.scss +12 -0
- package/lib/template/field-group-list/field-group-list.component.spec.ts +22 -0
- package/lib/template/field-group-list/field-group-list.component.ts +18 -0
- package/lib/template/field-group-template/field-group-template.component.html +33 -0
- package/lib/template/field-group-template/field-group-template.component.scss +8 -0
- package/lib/template/field-group-template/field-group-template.component.spec.ts +22 -0
- package/lib/template/field-group-template/field-group-template.component.ts +168 -0
- package/lib/template/field-value-list/field-value-list.component.html +15 -0
- package/lib/template/field-value-list/field-value-list.component.scss +18 -0
- package/lib/template/field-value-list/field-value-list.component.spec.ts +22 -0
- package/lib/template/field-value-list/field-value-list.component.ts +15 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.html +19 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.scss +31 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.spec.ts +24 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.ts +24 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.html +1 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.scss +0 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.spec.ts +24 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.ts +55 -0
- package/lib/template/list-page/config-ext.json +7 -0
- package/lib/template/list-page/list-page.component.html +1 -0
- package/lib/template/list-page/list-page.component.scss +0 -0
- package/lib/template/list-page/list-page.component.spec.ts +24 -0
- package/lib/template/list-page/list-page.component.ts +13 -0
- package/lib/template/list-view/DefaultViewMeta.ts +220 -0
- package/lib/template/list-view/config-ext.json +8 -0
- package/lib/template/list-view/list-view.component.html +253 -0
- package/lib/template/list-view/list-view.component.scss +169 -0
- package/lib/template/list-view/list-view.component.spec.ts +24 -0
- package/lib/template/list-view/list-view.component.ts +1408 -0
- package/lib/template/list-view/listViewHelpers.ts +87 -0
- package/lib/template/list-view/utils.ts +745 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.html +4 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.scss +0 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.spec.ts +22 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.ts +54 -0
- package/lib/template/narrow-wide-form/config-ext.json +8 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.html +16 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.scss +20 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.spec.ts +24 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +34 -0
- package/lib/template/one-column/config-ext.json +8 -0
- package/lib/template/one-column/one-column.component.html +11 -0
- package/lib/template/one-column/one-column.component.scss +3 -0
- package/lib/template/one-column/one-column.component.spec.ts +24 -0
- package/lib/template/one-column/one-column.component.ts +34 -0
- package/lib/template/one-column-page/config-ext.json +8 -0
- package/lib/template/one-column-page/one-column-page.component.html +1 -0
- package/lib/template/one-column-page/one-column-page.component.scss +0 -0
- package/lib/template/one-column-page/one-column-page.component.spec.ts +24 -0
- package/lib/template/one-column-page/one-column-page.component.ts +15 -0
- package/lib/template/one-column-tab/config-ext.json +8 -0
- package/lib/template/one-column-tab/one-column-tab.component.html +9 -0
- package/lib/template/one-column-tab/one-column-tab.component.scss +9 -0
- package/lib/template/one-column-tab/one-column-tab.component.ts +34 -0
- package/lib/template/page/page.component.html +12 -0
- package/lib/template/page/page.component.scss +3 -0
- package/lib/template/page/page.component.spec.ts +24 -0
- package/lib/template/page/page.component.ts +68 -0
- package/lib/template/promoted-filters/promoted-filters.component.html +27 -0
- package/lib/template/promoted-filters/promoted-filters.component.scss +7 -0
- package/lib/template/promoted-filters/promoted-filters.component.spec.ts +24 -0
- package/lib/template/promoted-filters/promoted-filters.component.ts +157 -0
- package/lib/template/repeating-structures/repeating-structures.component.html +21 -0
- package/lib/template/repeating-structures/repeating-structures.component.scss +17 -0
- package/lib/template/repeating-structures/repeating-structures.component.spec.ts +24 -0
- package/lib/template/repeating-structures/repeating-structures.component.ts +155 -0
- package/lib/template/simple-table/config-ext.json +7 -0
- package/lib/template/simple-table/simple-table.component.html +13 -0
- package/lib/template/simple-table/simple-table.component.scss +0 -0
- package/lib/template/simple-table/simple-table.component.spec.ts +24 -0
- package/lib/template/simple-table/simple-table.component.ts +171 -0
- package/lib/template/simple-table-manual/helpers.ts +294 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.html +147 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.scss +185 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.spec.ts +24 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +950 -0
- package/lib/template/simple-table-select/simple-table-select.component.html +14 -0
- package/lib/template/simple-table-select/simple-table-select.component.scss +0 -0
- package/lib/template/simple-table-select/simple-table-select.component.spec.ts +24 -0
- package/lib/template/simple-table-select/simple-table-select.component.ts +151 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.html +1 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.scss +0 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.spec.ts +22 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.ts +15 -0
- package/lib/template/sub-tabs/config-ext.json +8 -0
- package/lib/template/sub-tabs/sub-tabs.component.html +12 -0
- package/lib/template/sub-tabs/sub-tabs.component.scss +3 -0
- package/lib/template/sub-tabs/sub-tabs.component.spec.ts +24 -0
- package/lib/template/sub-tabs/sub-tabs.component.ts +76 -0
- package/lib/template/three-column/config-ext.json +8 -0
- package/lib/template/three-column/three-column.component.html +13 -0
- package/lib/template/three-column/three-column.component.scss +16 -0
- package/lib/template/three-column/three-column.component.spec.ts +24 -0
- package/lib/template/three-column/three-column.component.ts +34 -0
- package/lib/template/three-column-page/config-ext.json +8 -0
- package/lib/template/three-column-page/three-column-page.component.html +1 -0
- package/lib/template/three-column-page/three-column-page.component.scss +0 -0
- package/lib/template/three-column-page/three-column-page.component.spec.ts +24 -0
- package/lib/template/three-column-page/three-column-page.component.ts +15 -0
- package/lib/template/two-column/config-ext.json +8 -0
- package/lib/template/two-column/two-column.component.html +16 -0
- package/lib/template/two-column/two-column.component.scss +28 -0
- package/lib/template/two-column/two-column.component.spec.ts +24 -0
- package/lib/template/two-column/two-column.component.ts +34 -0
- package/lib/template/two-column-page/config-ext.json +8 -0
- package/lib/template/two-column-page/two-column-page.component.html +1 -0
- package/lib/template/two-column-page/two-column-page.component.scss +0 -0
- package/lib/template/two-column-page/two-column-page.component.spec.ts +24 -0
- package/lib/template/two-column-page/two-column-page.component.ts +43 -0
- package/lib/template/two-column-tab/config-ext.json +8 -0
- package/lib/template/two-column-tab/two-column-tab.component.html +16 -0
- package/lib/template/two-column-tab/two-column-tab.component.scss +28 -0
- package/lib/template/two-column-tab/two-column-tab.component.spec.ts +24 -0
- package/lib/template/two-column-tab/two-column-tab.component.ts +34 -0
- package/lib/template/utils.ts +23 -0
- package/lib/template/wide-narrow-form/config-ext.json +8 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.html +16 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.scss +20 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.spec.ts +24 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +34 -0
- package/lib/template/wide-narrow-page/config-ext.json +8 -0
- package/lib/template/wide-narrow-page/wide-narrow-page.component.html +6 -0
- package/lib/template/wide-narrow-page/wide-narrow-page.component.scss +0 -0
- package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +61 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.scss +166 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +172 -0
- package/lib/widget/app-announcement/app-announcement.component.html +13 -0
- package/lib/widget/app-announcement/app-announcement.component.scss +21 -0
- package/lib/widget/app-announcement/app-announcement.component.spec.ts +24 -0
- package/lib/widget/app-announcement/app-announcement.component.ts +35 -0
- package/lib/widget/app-announcement/config-ext.json +8 -0
- package/lib/widget/attachment/attachment.component.html +31 -0
- package/lib/widget/attachment/attachment.component.scss +57 -0
- package/lib/widget/attachment/attachment.component.spec.ts +24 -0
- package/lib/widget/attachment/attachment.component.ts +705 -0
- package/lib/widget/attachment/config-ext.json +7 -0
- package/lib/widget/case-history/case-history.component.html +12 -0
- package/lib/widget/case-history/case-history.component.scss +22 -0
- package/lib/widget/case-history/case-history.component.spec.ts +24 -0
- package/lib/widget/case-history/case-history.component.ts +104 -0
- package/lib/widget/case-history/config-ext.json +8 -0
- package/lib/widget/feed-container/config-ext.json +12 -0
- package/lib/widget/feed-container/feed-api.ts +410 -0
- package/lib/widget/feed-container/feed-container.component.html +137 -0
- package/lib/widget/feed-container/feed-container.component.scss +188 -0
- package/lib/widget/feed-container/feed-container.component.spec.ts +24 -0
- package/lib/widget/feed-container/feed-container.component.ts +616 -0
- package/lib/widget/file-utility/config-ext.json +8 -0
- package/lib/widget/file-utility/file-utility.component.html +100 -0
- package/lib/widget/file-utility/file-utility.component.scss +107 -0
- package/lib/widget/file-utility/file-utility.component.spec.ts +24 -0
- package/lib/widget/file-utility/file-utility.component.ts +759 -0
- package/lib/widget/list-utility/list-utility.component.html +32 -0
- package/lib/widget/list-utility/list-utility.component.scss +135 -0
- package/lib/widget/list-utility/list-utility.component.spec.ts +24 -0
- package/lib/widget/list-utility/list-utility.component.ts +47 -0
- package/lib/widget/quick-create/quick-create.component.html +1 -0
- package/lib/widget/quick-create/quick-create.component.scss +0 -0
- package/lib/widget/quick-create/quick-create.component.spec.ts +22 -0
- package/lib/widget/quick-create/quick-create.component.ts +96 -0
- package/lib/widget/todo/config-ext.json +8 -0
- package/lib/widget/todo/todo.component.html +47 -0
- package/lib/widget/todo/todo.component.scss +98 -0
- package/lib/widget/todo/todo.component.spec.ts +24 -0
- package/lib/widget/todo/todo.component.ts +265 -0
- package/lib/widget/utility/utility.component.html +1 -0
- package/lib/widget/utility/utility.component.scss +0 -0
- package/lib/widget/utility/utility.component.spec.ts +24 -0
- package/lib/widget/utility/utility.component.ts +50 -0
- package/package.json +14 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
4
|
+
import { publicConstants } from '@pega/pcore-pconnect-typedefs/constants';
|
|
5
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
6
|
+
import { getToDoAssignments } from '@pega/angular-sdk-components';
|
|
7
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
8
|
+
|
|
9
|
+
interface ConfirmationProps {
|
|
10
|
+
// If any, enter additional props that only exist on this component
|
|
11
|
+
datasource: { source: any };
|
|
12
|
+
label: string;
|
|
13
|
+
showLabel: boolean;
|
|
14
|
+
showTasks: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'app-confirmation',
|
|
19
|
+
templateUrl: './confirmation.component.html',
|
|
20
|
+
styleUrls: ['./confirmation.component.scss'],
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [CommonModule, MatButtonModule, forwardRef(() => ComponentMapperComponent)]
|
|
23
|
+
})
|
|
24
|
+
export class ConfirmationComponent implements OnInit, OnDestroy {
|
|
25
|
+
@Input() pConn$: typeof PConnect;
|
|
26
|
+
|
|
27
|
+
angularPConnectData: AngularPConnectData = {};
|
|
28
|
+
configProps$: ConfirmationProps;
|
|
29
|
+
|
|
30
|
+
rootInfo: any;
|
|
31
|
+
datasource: any;
|
|
32
|
+
showTasks: any;
|
|
33
|
+
detailProps: any;
|
|
34
|
+
toDoList: any;
|
|
35
|
+
label: string;
|
|
36
|
+
CONSTS: typeof publicConstants;
|
|
37
|
+
showDetails: boolean;
|
|
38
|
+
showConfirmView = true;
|
|
39
|
+
|
|
40
|
+
constructor(private angularPConnect: AngularPConnectService) {}
|
|
41
|
+
|
|
42
|
+
ngOnInit(): void {
|
|
43
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
44
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
45
|
+
this.CONSTS = PCore.getConstants();
|
|
46
|
+
const activeContainerItemID = PCore.getContainerUtils().getActiveContainerItemName(this.pConn$.getTarget());
|
|
47
|
+
this.rootInfo = PCore.getContainerUtils().getContainerItemData(this.pConn$.getTarget(), activeContainerItemID);
|
|
48
|
+
this.checkAndUpdate();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
ngOnDestroy() {
|
|
52
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
53
|
+
this.angularPConnectData.unsubscribeFn();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
onStateChange() {
|
|
58
|
+
this.checkAndUpdate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
checkAndUpdate() {
|
|
62
|
+
// Should always check the bridge to see if the component should
|
|
63
|
+
// update itself (re-render)
|
|
64
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
65
|
+
|
|
66
|
+
// ONLY call updateSelf when the component should update
|
|
67
|
+
if (bUpdateSelf) {
|
|
68
|
+
this.updateSelf();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
updateSelf() {
|
|
73
|
+
const theConfigProps = this.pConn$.getConfigProps() as ConfirmationProps;
|
|
74
|
+
this.datasource = theConfigProps?.datasource;
|
|
75
|
+
this.showTasks = theConfigProps?.showTasks;
|
|
76
|
+
this.label = theConfigProps?.label;
|
|
77
|
+
// Get the inherited props from the parent to determine label settings
|
|
78
|
+
// Not using whatsNext at the moment, need to figure out the use of it
|
|
79
|
+
// const whatsNext = this.datasource?.source;
|
|
80
|
+
// const items = whatsNext?.length > 0 ? whatsNext.map((item) => item.label) : '';
|
|
81
|
+
// const todoProps = { ...theConfigProps, renderTodoInConfirm: true };
|
|
82
|
+
this.toDoList = getToDoAssignments(this.pConn$);
|
|
83
|
+
this.detailProps = { ...theConfigProps, showLabel: false };
|
|
84
|
+
this.showDetails = this.pConn$?.getChildren()?.[0]?.getPConnect()?.getChildren()?.length > 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
onConfirmViewClose() {
|
|
88
|
+
this.showConfirmView = false;
|
|
89
|
+
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CLOSE_CONFIRM_VIEW, this.rootInfo);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div *ngIf="childrenToRender && childrenToRender.length > 0">
|
|
2
|
+
<div *ngIf="!displayMultiRef">
|
|
3
|
+
<div *ngFor="let kid of childrenToRender">
|
|
4
|
+
<component-mapper [name]="kid?.getPConnect().getComponentName()" [props]="{ pConn$: kid.getPConnect(), formGroup$ }"></component-mapper>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div *ngIf="displaySingleRef">
|
|
8
|
+
<component-mapper name="SingleReferenceReadOnly" [props]="{ pConn$: firstChildPConnect() }"></component-mapper>
|
|
9
|
+
</div>
|
|
10
|
+
<div *ngIf="displayMultiRef">
|
|
11
|
+
<component-mapper name="MultiReferenceReadOnly" [props]="{ pConn$: firstChildPConnect() }"></component-mapper>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DataReferenceComponent } from './data-reference.component';
|
|
4
|
+
|
|
5
|
+
describe('DataReferenceComponent', () => {
|
|
6
|
+
let component: DataReferenceComponent;
|
|
7
|
+
let fixture: ComponentFixture<DataReferenceComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [DataReferenceComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(DataReferenceComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
|
|
7
|
+
const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'app-data-reference',
|
|
11
|
+
templateUrl: './data-reference.component.html',
|
|
12
|
+
styleUrls: ['./data-reference.component.scss'],
|
|
13
|
+
standalone: true,
|
|
14
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
15
|
+
})
|
|
16
|
+
export class DataReferenceComponent implements OnInit, OnDestroy {
|
|
17
|
+
@Input() pConn$: typeof PConnect;
|
|
18
|
+
@Input() formGroup$: FormGroup;
|
|
19
|
+
|
|
20
|
+
// Used with AngularPConnect
|
|
21
|
+
angularPConnectData: AngularPConnectData = {};
|
|
22
|
+
|
|
23
|
+
arFields$: any[] = [];
|
|
24
|
+
referenceType = '';
|
|
25
|
+
selectionMode = '';
|
|
26
|
+
parameters;
|
|
27
|
+
hideLabel = false;
|
|
28
|
+
childrenToRender: any[] = [];
|
|
29
|
+
dropDownDataSource = '';
|
|
30
|
+
isDisplayModeEnabled = false;
|
|
31
|
+
propsToUse: any = {};
|
|
32
|
+
rawViewMetadata: any = {};
|
|
33
|
+
viewName = '';
|
|
34
|
+
firstChildMeta: any = {};
|
|
35
|
+
canBeChangedInReviewMode = false;
|
|
36
|
+
propName = '';
|
|
37
|
+
firstChildPConnect;
|
|
38
|
+
children;
|
|
39
|
+
displaySingleRef: boolean;
|
|
40
|
+
displayMultiRef: boolean;
|
|
41
|
+
refList: any;
|
|
42
|
+
|
|
43
|
+
constructor(private angularPConnect: AngularPConnectService) {}
|
|
44
|
+
|
|
45
|
+
ngOnInit(): void {
|
|
46
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
47
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
48
|
+
this.children = this.pConn$.getChildren() as any[];
|
|
49
|
+
this.updateSelf();
|
|
50
|
+
if (this.firstChildMeta?.type === 'Dropdown' && this.rawViewMetadata.config?.parameters) {
|
|
51
|
+
const { value, key, text } = this.firstChildMeta.config.datasource.fields;
|
|
52
|
+
(
|
|
53
|
+
PCore.getDataApiUtils().getData(
|
|
54
|
+
this.refList,
|
|
55
|
+
{
|
|
56
|
+
dataViewParameters: this.parameters
|
|
57
|
+
} as any,
|
|
58
|
+
''
|
|
59
|
+
) as Promise<any>
|
|
60
|
+
)
|
|
61
|
+
.then(res => {
|
|
62
|
+
if (res.data.data !== null) {
|
|
63
|
+
const ddDataSource = res.data.data
|
|
64
|
+
.map(listItem => ({
|
|
65
|
+
key: listItem[key.split(' .', 2)[1]],
|
|
66
|
+
text: listItem[text.split(' .', 2)[1]],
|
|
67
|
+
value: listItem[value.split(' .', 2)[1]]
|
|
68
|
+
}))
|
|
69
|
+
.filter(item => item.key);
|
|
70
|
+
// Filtering out undefined entries that will break preview
|
|
71
|
+
this.dropDownDataSource = ddDataSource;
|
|
72
|
+
this.updateSelf();
|
|
73
|
+
} else {
|
|
74
|
+
const ddDataSource: any = [];
|
|
75
|
+
this.dropDownDataSource = ddDataSource;
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
.catch(() => {
|
|
79
|
+
return Promise.resolve({
|
|
80
|
+
data: { data: [] }
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ngOnDestroy(): void {
|
|
87
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
88
|
+
this.angularPConnectData.unsubscribeFn();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Callback passed when subscribing to store change
|
|
93
|
+
onStateChange() {
|
|
94
|
+
// Should always check the bridge to see if the component should
|
|
95
|
+
// update itself (re-render)
|
|
96
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
97
|
+
|
|
98
|
+
// ONLY call updateSelf when the component should update
|
|
99
|
+
if (bUpdateSelf) {
|
|
100
|
+
this.updateSelf();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
updateSelf() {
|
|
105
|
+
// Update properties based on configProps
|
|
106
|
+
const theConfigProps: any = this.pConn$.getConfigProps();
|
|
107
|
+
this.updatePropertiesFromProps(theConfigProps);
|
|
108
|
+
|
|
109
|
+
const displayAs = theConfigProps.displayAs;
|
|
110
|
+
const displayMode = theConfigProps.displayMode;
|
|
111
|
+
this.rawViewMetadata = this.pConn$.getRawMetadata();
|
|
112
|
+
this.viewName = this.rawViewMetadata.name;
|
|
113
|
+
this.firstChildMeta = this.rawViewMetadata.children[0];
|
|
114
|
+
this.refList = this.rawViewMetadata.config.referenceList;
|
|
115
|
+
this.canBeChangedInReviewMode = theConfigProps.allowAndPersistChangesInReviewMode && (displayAs === 'autocomplete' || displayAs === 'dropdown');
|
|
116
|
+
// this.childrenToRender = this.children;
|
|
117
|
+
this.isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL'].includes(displayMode);
|
|
118
|
+
|
|
119
|
+
if (this.firstChildMeta?.type !== 'Region') {
|
|
120
|
+
this.firstChildPConnect = this.pConn$.getChildren()[0].getPConnect;
|
|
121
|
+
|
|
122
|
+
/* remove refresh When condition from those old view so that it will not be used for runtime */
|
|
123
|
+
if (this.firstChildMeta.config?.readOnly) {
|
|
124
|
+
delete this.firstChildMeta.config.readOnly;
|
|
125
|
+
}
|
|
126
|
+
if (this.firstChildMeta?.type === 'Dropdown') {
|
|
127
|
+
this.firstChildMeta.config.datasource.source = this.rawViewMetadata.config?.parameters
|
|
128
|
+
? this.dropDownDataSource
|
|
129
|
+
: '@DATASOURCE '.concat(this.refList).concat('.pxResults');
|
|
130
|
+
} else if (this.firstChildMeta?.type === 'AutoComplete') {
|
|
131
|
+
this.firstChildMeta.config.datasource = this.refList;
|
|
132
|
+
|
|
133
|
+
/* Insert the parameters to the component only if present */
|
|
134
|
+
if (this.rawViewMetadata.config?.parameters) {
|
|
135
|
+
this.firstChildMeta.config.parameters = this.parameters;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// set displayMode conditionally
|
|
139
|
+
if (!this.canBeChangedInReviewMode) {
|
|
140
|
+
this.firstChildMeta.config.displayMode = displayMode;
|
|
141
|
+
}
|
|
142
|
+
if (this.firstChildMeta.type === 'SimpleTableSelect' && this.selectionMode === SELECTION_MODE.MULTI) {
|
|
143
|
+
this.propName = PCore.getAnnotationUtils().getPropertyName(this.firstChildMeta.config.selectionList);
|
|
144
|
+
} else {
|
|
145
|
+
this.propName = PCore.getAnnotationUtils().getPropertyName(this.firstChildMeta.config.value);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
this.generateChildrenToRender();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
updatePropertiesFromProps(theConfigProps) {
|
|
153
|
+
const label = theConfigProps.label;
|
|
154
|
+
const showLabel = theConfigProps.showLabel;
|
|
155
|
+
this.referenceType = theConfigProps.referenceType;
|
|
156
|
+
this.selectionMode = theConfigProps.selectionMode;
|
|
157
|
+
this.parameters = theConfigProps.parameters;
|
|
158
|
+
this.hideLabel = theConfigProps.hideLabel;
|
|
159
|
+
|
|
160
|
+
this.propsToUse = { label, showLabel, ...this.pConn$.getInheritedProps() };
|
|
161
|
+
if (this.propsToUse.showLabel === false) {
|
|
162
|
+
this.propsToUse.label = '';
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
generateChildrenToRender() {
|
|
167
|
+
const theRecreatedFirstChild = this.recreatedFirstChild();
|
|
168
|
+
const viewsRegion = this.rawViewMetadata.children[1];
|
|
169
|
+
if (viewsRegion?.name === 'Views' && viewsRegion.children.length) {
|
|
170
|
+
this.childrenToRender = [theRecreatedFirstChild, ...this.children.slice(1)];
|
|
171
|
+
} else {
|
|
172
|
+
this.childrenToRender = [theRecreatedFirstChild];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
handleSelection(event) {
|
|
177
|
+
const caseKey = this.pConn$.getCaseInfo().getKey();
|
|
178
|
+
const refreshOptions = { autoDetectRefresh: true };
|
|
179
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
180
|
+
if (this.canBeChangedInReviewMode && this.pConn$.getValue('__currentPageTabViewName')) {
|
|
181
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
182
|
+
this.pConn$.getActionsApi().refreshCaseView(caseKey, this.pConn$.getValue('__currentPageTabViewName'), null, refreshOptions);
|
|
183
|
+
PCore.getDeferLoadManager().refreshActiveComponents(this.pConn$.getContextName());
|
|
184
|
+
} else {
|
|
185
|
+
const pgRef = this.pConn$.getPageReference().replace('caseInfo.content', '');
|
|
186
|
+
this.pConn$.getActionsApi().refreshCaseView(caseKey, this.viewName, pgRef, refreshOptions);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// AutoComplete sets value on event.id whereas Dropdown sets it on event.target.value
|
|
190
|
+
const propValue = event?.id || event?.target?.value;
|
|
191
|
+
if (propValue && this.canBeChangedInReviewMode && this.isDisplayModeEnabled) {
|
|
192
|
+
(PCore.getDataApiUtils().getCaseEditLock(caseKey, '') as Promise<any>).then(caseResponse => {
|
|
193
|
+
const pageTokens = this.pConn$.getPageReference().replace('caseInfo.content', '').split('.');
|
|
194
|
+
let curr = {};
|
|
195
|
+
const commitData = curr;
|
|
196
|
+
|
|
197
|
+
pageTokens.forEach(el => {
|
|
198
|
+
if (el !== '') {
|
|
199
|
+
curr[el] = {};
|
|
200
|
+
curr = curr[el];
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
// expecting format like {Customer: {pyID:"C-100"}}
|
|
205
|
+
const propArr = this.propName.split('.');
|
|
206
|
+
propArr.forEach((element, idx) => {
|
|
207
|
+
if (idx + 1 === propArr.length) {
|
|
208
|
+
curr[element] = propValue;
|
|
209
|
+
} else {
|
|
210
|
+
curr[element] = {};
|
|
211
|
+
curr = curr[element];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
(
|
|
216
|
+
PCore.getCaseUtils().updateCaseEditFieldsData(
|
|
217
|
+
caseKey,
|
|
218
|
+
{ [caseKey]: commitData },
|
|
219
|
+
caseResponse.headers.etag,
|
|
220
|
+
this.pConn$.getContextName()
|
|
221
|
+
) as Promise<any>
|
|
222
|
+
).then(response => {
|
|
223
|
+
PCore.getContainerUtils().updateParentLastUpdateTime(this.pConn$.getContextName(), response.data.data.caseInfo.lastUpdateTime);
|
|
224
|
+
PCore.getContainerUtils().updateRelatedContextEtag(this.pConn$.getContextName(), response.headers.etag);
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Re-create first child with overridden props
|
|
231
|
+
// Memoized child in order to stop unmount and remount of the child component when data reference
|
|
232
|
+
// rerenders without any actual change
|
|
233
|
+
recreatedFirstChild() {
|
|
234
|
+
const { type, config } = this.firstChildMeta;
|
|
235
|
+
if (this.firstChildMeta?.type !== 'Region') {
|
|
236
|
+
this.pConn$.clearErrorMessages({
|
|
237
|
+
property: this.propName,
|
|
238
|
+
category: '',
|
|
239
|
+
context: ''
|
|
240
|
+
} as any);
|
|
241
|
+
if (!this.canBeChangedInReviewMode && this.isDisplayModeEnabled && this.selectionMode === SELECTION_MODE.SINGLE) {
|
|
242
|
+
this.displaySingleRef = true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (this.isDisplayModeEnabled && this.selectionMode === SELECTION_MODE.MULTI) {
|
|
246
|
+
this.displayMultiRef = true;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// In the case of a datasource with parameters you cannot load the dropdown before the parameters
|
|
250
|
+
if (type === 'Dropdown' && this.rawViewMetadata.config?.parameters && this.dropDownDataSource === null) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return this.firstChildPConnect().createComponent({
|
|
255
|
+
type,
|
|
256
|
+
config: {
|
|
257
|
+
...config,
|
|
258
|
+
required: this.propsToUse.required,
|
|
259
|
+
visibility: this.propsToUse.visibility,
|
|
260
|
+
disabled: this.propsToUse.disabled,
|
|
261
|
+
label: this.propsToUse.label,
|
|
262
|
+
viewName: this.pConn$.getCurrentView(),
|
|
263
|
+
parameters: this.rawViewMetadata.config.parameters,
|
|
264
|
+
readOnly: false,
|
|
265
|
+
localeReference: this.rawViewMetadata.config.localeReference,
|
|
266
|
+
...(this.selectionMode === SELECTION_MODE.SINGLE ? { referenceType: this.referenceType } : ''),
|
|
267
|
+
dataRelationshipContext:
|
|
268
|
+
this.rawViewMetadata.config.contextClass && this.rawViewMetadata.config.name ? this.rawViewMetadata.config.name : null,
|
|
269
|
+
hideLabel: this.hideLabel,
|
|
270
|
+
onRecordChange: this.handleSelection.bind(this)
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- When adding a component here, add the same component in 'region' template as well -->
|
|
2
|
+
<div *ngIf="!NO_HEADER_TEMPLATES.includes(template) && showLabel">
|
|
3
|
+
<div class="template-title-container">{{ label }}</div>
|
|
4
|
+
</div>
|
|
5
|
+
<div *ngIf="instructions" class="psdk-default-form-instruction-text">
|
|
6
|
+
<div key="instructions" id="instruction-text" [innerHTML]="instructions"></div>
|
|
7
|
+
</div>
|
|
8
|
+
<div [className]="divClass$">
|
|
9
|
+
<div *ngFor="let kid of arChildren$" [ngClass]="{ 'grid-column': kid.getPConnect().getComponentName() === 'View' }">
|
|
10
|
+
<component-mapper
|
|
11
|
+
[name]="kid.getPConnect().getComponentName()"
|
|
12
|
+
[props]="{
|
|
13
|
+
pConn$: kid.getPConnect(),
|
|
14
|
+
formGroup$: formGroup$
|
|
15
|
+
}"
|
|
16
|
+
errorMsg="DefaultForm wants component not yet available: {{ kid.getPConnect().getComponentName() }}"
|
|
17
|
+
></component-mapper>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
.psdk-default-form-one-column {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
6
|
+
gap: calc(1rem);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.psdk-default-form-two-column {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(2, 1fr);
|
|
12
|
+
gap: calc(1rem);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.psdk-default-form-three-column {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: repeat(3, 1fr);
|
|
18
|
+
gap: calc(1rem);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.psdk-default-form-two-column .grid-column {
|
|
22
|
+
grid-column: 1 / span 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.psdk-default-form-three-column .grid-column {
|
|
26
|
+
grid-column: 1 / span 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.template-title-container {
|
|
30
|
+
font-size: calc(0.9375rem);
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
margin: 10px 0px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.psdk-default-form-instruction-text {
|
|
36
|
+
padding-top: 0.625rem;
|
|
37
|
+
padding-bottom: 0.625rem;
|
|
38
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DefaultFormComponent } from './default-form.component';
|
|
4
|
+
|
|
5
|
+
describe('DefaultFormComponent', () => {
|
|
6
|
+
let component: DefaultFormComponent;
|
|
7
|
+
let fixture: ComponentFixture<DefaultFormComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [DefaultFormComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(DefaultFormComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
import { TemplateUtils } from '@pega/angular-sdk-components';
|
|
7
|
+
|
|
8
|
+
interface DefaultFormProps {
|
|
9
|
+
// If any, enter additional props that only exist on this component
|
|
10
|
+
NumCols: string;
|
|
11
|
+
template: string;
|
|
12
|
+
instructions: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'app-default-form',
|
|
17
|
+
templateUrl: './default-form.component.html',
|
|
18
|
+
styleUrls: ['./default-form.component.scss'],
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
21
|
+
})
|
|
22
|
+
export class DefaultFormComponent implements OnInit {
|
|
23
|
+
@Input() pConn$: typeof PConnect;
|
|
24
|
+
@Input() formGroup$: FormGroup;
|
|
25
|
+
|
|
26
|
+
arChildren$: any[];
|
|
27
|
+
divClass$: string;
|
|
28
|
+
template: any;
|
|
29
|
+
showLabel: any;
|
|
30
|
+
label: any;
|
|
31
|
+
instructions: string;
|
|
32
|
+
|
|
33
|
+
NO_HEADER_TEMPLATES = [
|
|
34
|
+
'SubTabs',
|
|
35
|
+
'SimpleTable',
|
|
36
|
+
'Details',
|
|
37
|
+
'DetailsTwoColumn',
|
|
38
|
+
'DetailsThreeColumn',
|
|
39
|
+
'NarrowWideDetails',
|
|
40
|
+
'WideNarrowDetails',
|
|
41
|
+
'Confirmation'
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
constructor(private templateUtils: TemplateUtils) {}
|
|
45
|
+
|
|
46
|
+
ngOnInit(): void {
|
|
47
|
+
const configProps = this.pConn$.getConfigProps() as DefaultFormProps;
|
|
48
|
+
this.template = configProps?.template;
|
|
49
|
+
const propToUse: any = { ...this.pConn$.getInheritedProps() };
|
|
50
|
+
this.showLabel = propToUse?.showLabel;
|
|
51
|
+
this.label = propToUse?.label;
|
|
52
|
+
const kids = this.pConn$.getChildren() as any[];
|
|
53
|
+
this.instructions = this.templateUtils.getInstructions(this.pConn$, configProps?.instructions);
|
|
54
|
+
|
|
55
|
+
const numCols = configProps.NumCols ? configProps.NumCols : '1';
|
|
56
|
+
switch (numCols) {
|
|
57
|
+
case '1':
|
|
58
|
+
this.divClass$ = 'psdk-default-form-one-column';
|
|
59
|
+
break;
|
|
60
|
+
case '2':
|
|
61
|
+
this.divClass$ = 'psdk-default-form-two-column';
|
|
62
|
+
break;
|
|
63
|
+
case '3':
|
|
64
|
+
this.divClass$ = 'psdk-default-form-three-column';
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
this.divClass$ = 'psdk-default-form-one-column';
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// repoint children before getting templateArray
|
|
72
|
+
// Children may contain 'reference' component, so we need to
|
|
73
|
+
// normalize them
|
|
74
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(kids[0].getPConnect().getChildren());
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DetailsComponent } from './details.component';
|
|
4
|
+
|
|
5
|
+
describe('DetailsComponent', () => {
|
|
6
|
+
let component: DetailsComponent;
|
|
7
|
+
let fixture: ComponentFixture<DetailsComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [DetailsComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(DetailsComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|