@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,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ViewComponent } from './view.component';
|
|
4
|
+
|
|
5
|
+
describe('ViewComponent', () => {
|
|
6
|
+
let component: ViewComponent;
|
|
7
|
+
let fixture: ComponentFixture<ViewComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ViewComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(ViewComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, SimpleChanges, OnDestroy, OnChanges } 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 { Utils } from '@pega/angular-sdk-components';
|
|
6
|
+
import { getAllFields } from '@pega/angular-sdk-components';
|
|
7
|
+
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
8
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
12
|
+
* Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
|
|
13
|
+
* is totally at your own risk.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param pConnn - PConnect Object
|
|
19
|
+
* @returns visibility expression result if exists, otherwise true
|
|
20
|
+
*/
|
|
21
|
+
function evaluateVisibility(pConnn) {
|
|
22
|
+
let bVisibility = true;
|
|
23
|
+
const sVisibility = pConnn.meta.config.visibility;
|
|
24
|
+
if (sVisibility && sVisibility.length) {
|
|
25
|
+
// e.g. "@E .EmbeddedData_SelectedTestName == 'Readonly' && .EmbeddedData_SelectedSubCategory == 'Mode'"
|
|
26
|
+
const aVisibility = sVisibility.split('&&');
|
|
27
|
+
// e.g. ["EmbeddedData_SelectedTestName": "Readonly", "EmbeddedData_SelectedSubCategory": "Mode"]
|
|
28
|
+
const context = pConnn.getContextName();
|
|
29
|
+
// Reading values from the Store to evaluate the visibility expressions
|
|
30
|
+
const storeData = PCore.getStore().getState()?.data[context].caseInfo.content;
|
|
31
|
+
|
|
32
|
+
const initialVal = {};
|
|
33
|
+
const oProperties = aVisibility.reduce((properties, property) => {
|
|
34
|
+
const keyStartIndex = property.indexOf('.');
|
|
35
|
+
const keyEndIndex = property.indexOf('=') - 1;
|
|
36
|
+
const valueStartIndex = property.indexOf("'");
|
|
37
|
+
const valueEndIndex = property.lastIndexOf("'") - 1;
|
|
38
|
+
return {
|
|
39
|
+
...properties,
|
|
40
|
+
[property.substr(keyStartIndex + 1, keyEndIndex - keyStartIndex - 1)]: property.substr(valueStartIndex + 1, valueEndIndex - valueStartIndex)
|
|
41
|
+
};
|
|
42
|
+
}, initialVal);
|
|
43
|
+
|
|
44
|
+
const propertyKeys = Object.keys(oProperties);
|
|
45
|
+
const propertyValues = Object.values(oProperties);
|
|
46
|
+
|
|
47
|
+
for (let propertyIndex = 0; propertyIndex < propertyKeys.length; propertyIndex++) {
|
|
48
|
+
if (storeData[propertyKeys[propertyIndex]] !== propertyValues[propertyIndex]) {
|
|
49
|
+
bVisibility = false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return bVisibility;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface ViewProps {
|
|
57
|
+
// If any, enter additional props that only exist on this component
|
|
58
|
+
template?: string;
|
|
59
|
+
label?: string;
|
|
60
|
+
showLabel: boolean;
|
|
61
|
+
title?: string;
|
|
62
|
+
visibility?: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@Component({
|
|
66
|
+
selector: 'app-view',
|
|
67
|
+
templateUrl: './view.component.html',
|
|
68
|
+
styleUrls: ['./view.component.scss'],
|
|
69
|
+
standalone: true,
|
|
70
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
71
|
+
})
|
|
72
|
+
export class ViewComponent implements OnInit, OnDestroy, OnChanges {
|
|
73
|
+
@Input() pConn$: typeof PConnect;
|
|
74
|
+
@Input() formGroup$: FormGroup;
|
|
75
|
+
@Input() displayOnlyFA$: boolean;
|
|
76
|
+
// @Input() updateToken$: number;
|
|
77
|
+
|
|
78
|
+
angularPConnectData: AngularPConnectData = {};
|
|
79
|
+
|
|
80
|
+
configProps$: ViewProps;
|
|
81
|
+
inheritedProps$: any;
|
|
82
|
+
arChildren$: any[];
|
|
83
|
+
templateName$: string;
|
|
84
|
+
title$ = '';
|
|
85
|
+
label$ = '';
|
|
86
|
+
showLabel$ = true;
|
|
87
|
+
visibility$ = true;
|
|
88
|
+
|
|
89
|
+
constructor(
|
|
90
|
+
private angularPConnect: AngularPConnectService,
|
|
91
|
+
private utils: Utils
|
|
92
|
+
) {}
|
|
93
|
+
|
|
94
|
+
ngOnInit() {
|
|
95
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
96
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
97
|
+
|
|
98
|
+
this.checkAndUpdate();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Callback passed when subscribing to store change
|
|
102
|
+
onStateChange() {
|
|
103
|
+
this.checkAndUpdate();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
checkAndUpdate() {
|
|
107
|
+
// Should always check the bridge to see if the component should
|
|
108
|
+
// update itself (re-render)
|
|
109
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
110
|
+
|
|
111
|
+
// ONLY call updateSelf when the component should update
|
|
112
|
+
if (bUpdateSelf) {
|
|
113
|
+
this.updateSelf();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
118
|
+
const { pConn$ } = changes;
|
|
119
|
+
|
|
120
|
+
if (pConn$.previousValue && pConn$.previousValue !== pConn$.currentValue) {
|
|
121
|
+
this.checkAndUpdate();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
updateSelf() {
|
|
126
|
+
if (this.angularPConnect.getComponentID(this) === undefined) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// debugger;
|
|
131
|
+
|
|
132
|
+
// normalize this.pConn$ in case it contains a 'reference'
|
|
133
|
+
this.pConn$ = ReferenceComponent.normalizePConn(this.pConn$);
|
|
134
|
+
|
|
135
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as ViewProps;
|
|
136
|
+
this.inheritedProps$ = this.pConn$.getInheritedProps();
|
|
137
|
+
|
|
138
|
+
// NOTE: this.configProps$.visibility'] is used in view.component.ts such that
|
|
139
|
+
// the View will only be rendered when this.configProps$.visibility'] is false.
|
|
140
|
+
// It WILL render if true or undefined.
|
|
141
|
+
|
|
142
|
+
this.templateName$ = this.configProps$.template || '';
|
|
143
|
+
this.title$ = this.configProps$.title || '';
|
|
144
|
+
this.label$ = this.configProps$.label || '';
|
|
145
|
+
this.showLabel$ = this.configProps$.showLabel || this.showLabel$;
|
|
146
|
+
// label & showLabel within inheritedProps takes precedence over configProps
|
|
147
|
+
this.label$ = this.inheritedProps$.label || this.label$;
|
|
148
|
+
this.showLabel$ = this.inheritedProps$.showLabel || this.showLabel$;
|
|
149
|
+
// children may have a 'reference' so normalize the children array
|
|
150
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
|
|
151
|
+
|
|
152
|
+
this.visibility$ = this.configProps$.visibility ?? this.visibility$;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* In instances where there is context, like with "shippingAddress," the pageReference becomes "caseInfo.content.shippingAddress."
|
|
156
|
+
* This leads to problems in the getProperty API, as it incorrectly assesses the visibility condition by looking in the wrong location
|
|
157
|
+
* in the Store for the property values. Reference component should be able to handle such scenarios(as done in SDK-R) since it has the
|
|
158
|
+
* expected pageReference values, the View component currently cannot handle this.
|
|
159
|
+
* The resolution lies in transferring this responsibility to the Reference component, eliminating the need for this code when Reference
|
|
160
|
+
* component is able to handle it.
|
|
161
|
+
*/
|
|
162
|
+
if (this.pConn$.getPageReference().length > 'caseInfo.content'.length) {
|
|
163
|
+
this.visibility$ = evaluateVisibility(this.pConn$);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// was: this.arChildren$ = this.pConn$.getChildren() as Array<any>;
|
|
167
|
+
|
|
168
|
+
// debug
|
|
169
|
+
// let kidList: string = "";
|
|
170
|
+
// for (let i in this.arChildren$) {
|
|
171
|
+
// kidList = kidList.concat(this.arChildren$[i].getPConnect().getComponentName()).concat(",");
|
|
172
|
+
// }
|
|
173
|
+
// console.log("-->view update: " + this.angularPConnect.getComponentID(this) + ", template: " + this.templateName$ + ", kids: " + kidList);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// JA - adapting additionalProps from Nebula/Constellation version which uses static methods
|
|
177
|
+
// on the component classes stored in PComponents (that Angular doesn't have)...
|
|
178
|
+
additionalProps(state: any, getPConnect: any) {
|
|
179
|
+
let propObj = {};
|
|
180
|
+
|
|
181
|
+
// We already have the template name in this.templateName$
|
|
182
|
+
if (this.templateName$ !== '') {
|
|
183
|
+
let allFields = {};
|
|
184
|
+
|
|
185
|
+
// These uses are adapted from Nebula/Constellation CaseSummary.additionalProps
|
|
186
|
+
switch (this.templateName$) {
|
|
187
|
+
case 'CaseSummary':
|
|
188
|
+
allFields = getAllFields(getPConnect);
|
|
189
|
+
// eslint-disable-next-line no-case-declarations
|
|
190
|
+
const unresFields = {
|
|
191
|
+
primaryFields: allFields[0],
|
|
192
|
+
secondaryFields: allFields[1]
|
|
193
|
+
};
|
|
194
|
+
propObj = getPConnect.resolveConfigProps(unresFields);
|
|
195
|
+
break;
|
|
196
|
+
|
|
197
|
+
case 'Details':
|
|
198
|
+
allFields = getAllFields(getPConnect);
|
|
199
|
+
propObj = { fields: allFields[0] };
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return propObj;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
ngOnDestroy(): void {
|
|
210
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
211
|
+
this.angularPConnectData.unsubscribeFn();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="appshell-top">
|
|
2
|
+
<div *ngIf="bShowAppShell$ && portalTemplate !== 'wss'">
|
|
3
|
+
<component-mapper name="NavBar" [props]="{ pConn$, appName$, pages$, caseTypes$ }"></component-mapper>
|
|
4
|
+
</div>
|
|
5
|
+
<div *ngIf="bShowAppShell$ && portalTemplate === 'wss'">
|
|
6
|
+
<component-mapper name="WssNavBar" [props]="{ pConn$, appName$, homePage: pages$[0], pages$: links, caseTypes$ }"></component-mapper>
|
|
7
|
+
</div>
|
|
8
|
+
<div [ngClass]="{ 'appshell-main': portalTemplate !== 'wss', 'appshell-main-wss': portalTemplate === 'wss' }">
|
|
9
|
+
<div *ngFor="let kid of arChildren$">
|
|
10
|
+
<div *ngIf="kid.getPConnect().getComponentName() == 'ViewContainer'">
|
|
11
|
+
<component-mapper name="ViewContainer" [props]="{ pConn$: kid.getPConnect() }"></component-mapper>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
.appshell-top {
|
|
4
|
+
background-color: $app-background-color;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.appshell-top-wss {
|
|
8
|
+
background-color: $app-background-color;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.appshell-main {
|
|
12
|
+
position: relative;
|
|
13
|
+
margin-left: $app-nav-width;
|
|
14
|
+
min-height: 100vh;
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.appshell-main-wss {
|
|
19
|
+
position: relative;
|
|
20
|
+
min-height: 100vh;
|
|
21
|
+
display: block;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.psdk-icon {
|
|
26
|
+
padding: 0rem 0.125rem;
|
|
27
|
+
min-width: unset;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.progress-box {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
height: 100%;
|
|
36
|
+
width: 100%;
|
|
37
|
+
background-color: whitesmoke;
|
|
38
|
+
position: fixed;
|
|
39
|
+
z-index: 999;
|
|
40
|
+
top: 0rem;
|
|
41
|
+
left: 0rem;
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.progress-spinner {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
::ng-deep snack-bar-container.snackbar-newline {
|
|
50
|
+
white-space: pre-line;
|
|
51
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AppShellComponent } from './app-shell.component';
|
|
4
|
+
|
|
5
|
+
describe('AppShellComponent', () => {
|
|
6
|
+
let component: AppShellComponent;
|
|
7
|
+
let fixture: ComponentFixture<AppShellComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [AppShellComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(AppShellComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Component, OnInit, Input, NgZone, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatSnackBarModule, MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
6
|
+
import { ErrorMessagesService } from '@pega/angular-sdk-components';
|
|
7
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
8
|
+
|
|
9
|
+
interface IPage {
|
|
10
|
+
classID: string;
|
|
11
|
+
pxPageViewIcon: string;
|
|
12
|
+
pyClassName: string;
|
|
13
|
+
pyLabel: string;
|
|
14
|
+
pyRuleName: string;
|
|
15
|
+
pyURLContent: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface AppShellProps {
|
|
19
|
+
// If any, enter additional props that only exist on this component
|
|
20
|
+
pages: IPage[];
|
|
21
|
+
caseTypes?: object[];
|
|
22
|
+
portalLogo: string;
|
|
23
|
+
portalName: string;
|
|
24
|
+
portalTemplate: string;
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
showAppHeaderBar: boolean;
|
|
27
|
+
showAppName: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@Component({
|
|
31
|
+
selector: 'app-app-shell',
|
|
32
|
+
templateUrl: './app-shell.component.html',
|
|
33
|
+
styleUrls: ['./app-shell.component.scss'],
|
|
34
|
+
standalone: true,
|
|
35
|
+
imports: [CommonModule, MatSnackBarModule, forwardRef(() => ComponentMapperComponent)]
|
|
36
|
+
})
|
|
37
|
+
export class AppShellComponent implements OnInit, OnDestroy {
|
|
38
|
+
@Input() pConn$: typeof PConnect;
|
|
39
|
+
|
|
40
|
+
// For interaction with AngularPConnect
|
|
41
|
+
angularPConnectData: AngularPConnectData = {};
|
|
42
|
+
configProps$: AppShellProps;
|
|
43
|
+
|
|
44
|
+
pages$: IPage[];
|
|
45
|
+
caseTypes$?: object[];
|
|
46
|
+
arChildren$: any[];
|
|
47
|
+
bShowAppShell$ = false;
|
|
48
|
+
appName$ = 'PEGA';
|
|
49
|
+
errorMessagesSubscription: Subscription;
|
|
50
|
+
sErrorMessages = '';
|
|
51
|
+
snackBarRef: any;
|
|
52
|
+
bOkDisplayError = false;
|
|
53
|
+
portalTemplate: string;
|
|
54
|
+
links: any = [];
|
|
55
|
+
|
|
56
|
+
constructor(
|
|
57
|
+
private angularPConnect: AngularPConnectService,
|
|
58
|
+
private erService: ErrorMessagesService,
|
|
59
|
+
private snackBar: MatSnackBar,
|
|
60
|
+
private ngZone: NgZone
|
|
61
|
+
) {}
|
|
62
|
+
|
|
63
|
+
ngOnInit() {
|
|
64
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
65
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
66
|
+
|
|
67
|
+
// Then, continue on with other initialization
|
|
68
|
+
|
|
69
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as AppShellProps;
|
|
70
|
+
|
|
71
|
+
// making a copy, so can add info
|
|
72
|
+
this.pages$ = this.configProps$.pages;
|
|
73
|
+
|
|
74
|
+
this.links = this.pages$.filter((page, index) => {
|
|
75
|
+
return index !== 0;
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
if (this.pages$) {
|
|
79
|
+
this.bShowAppShell$ = true;
|
|
80
|
+
}
|
|
81
|
+
this.caseTypes$ = this.configProps$.caseTypes;
|
|
82
|
+
|
|
83
|
+
this.arChildren$ = this.pConn$.getChildren() as any[];
|
|
84
|
+
|
|
85
|
+
this.portalTemplate = this.configProps$.portalTemplate;
|
|
86
|
+
|
|
87
|
+
// handle showing and hiding the progress spinner
|
|
88
|
+
this.errorMessagesSubscription = this.erService.getMessage().subscribe(message => {
|
|
89
|
+
this.showDismissErrorMessages(message);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// cannot call checkAndUpdate becasue first time through, will call updateSelf and that is incorrect (causes issues).
|
|
93
|
+
// however, need angularPConnect to be initialized with currentProps for future updates, so calling shouldComponentUpdate directly
|
|
94
|
+
// without checking to update here in init, will initialize and this is correct
|
|
95
|
+
this.angularPConnect.shouldComponentUpdate(this);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
ngOnDestroy(): void {
|
|
99
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
100
|
+
this.angularPConnectData.unsubscribeFn();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Callback passed when subscribing to store change
|
|
105
|
+
onStateChange() {
|
|
106
|
+
this.checkAndUpdate();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
checkAndUpdate() {
|
|
110
|
+
// Should always check the bridge to see if the component should
|
|
111
|
+
// update itself (re-render)
|
|
112
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
113
|
+
|
|
114
|
+
// ONLY call updateSelf when the component should update
|
|
115
|
+
if (bUpdateSelf) {
|
|
116
|
+
this.updateSelf();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
updateSelf() {
|
|
121
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as AppShellProps;
|
|
122
|
+
|
|
123
|
+
this.ngZone.run(() => {
|
|
124
|
+
// making a copy, so can add info
|
|
125
|
+
this.pages$ = this.configProps$.pages;
|
|
126
|
+
|
|
127
|
+
if (this.pages$) {
|
|
128
|
+
this.bShowAppShell$ = true;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
this.caseTypes$ = this.configProps$.caseTypes;
|
|
132
|
+
this.arChildren$ = this.pConn$.getChildren() as any[];
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// fpr show/hiding error messages in the SnackBar component
|
|
137
|
+
showDismissErrorMessages(errorMessages: any) {
|
|
138
|
+
switch (errorMessages.action) {
|
|
139
|
+
case 'update':
|
|
140
|
+
// won't show unless publish is turned on
|
|
141
|
+
// eslint-disable-next-line @typescript-eslint/prefer-includes
|
|
142
|
+
if (this.sErrorMessages.indexOf(errorMessages.actionMessage) < 0) {
|
|
143
|
+
this.sErrorMessages = this.sErrorMessages.concat(errorMessages.actionMessage).concat('\n');
|
|
144
|
+
|
|
145
|
+
if (this.bOkDisplayError) {
|
|
146
|
+
const config = { panelClass: ['snackbar-newline'] };
|
|
147
|
+
this.snackBarRef = this.snackBar.open(this.sErrorMessages, 'Ok', config);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
break;
|
|
151
|
+
case 'show':
|
|
152
|
+
// add error message if not in the list
|
|
153
|
+
// won't show unless publish is turned on
|
|
154
|
+
// eslint-disable-next-line @typescript-eslint/prefer-includes
|
|
155
|
+
if (this.sErrorMessages.indexOf(errorMessages.actionMessage) < 0) {
|
|
156
|
+
this.sErrorMessages = this.sErrorMessages.concat(errorMessages.actionMessage).concat('\n');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
this.bOkDisplayError = true;
|
|
160
|
+
|
|
161
|
+
if (this.bOkDisplayError) {
|
|
162
|
+
const config = { panelClass: ['snackbar-newline'] };
|
|
163
|
+
this.snackBarRef = this.snackBar.open(this.sErrorMessages, 'Ok', config);
|
|
164
|
+
}
|
|
165
|
+
// this.snackBarRef.afterDismissed().subscribe( info => {
|
|
166
|
+
// this.sErrorMessages = "";
|
|
167
|
+
// }
|
|
168
|
+
// )
|
|
169
|
+
break;
|
|
170
|
+
case 'dismiss':
|
|
171
|
+
// closes snack bar
|
|
172
|
+
// turns publish off
|
|
173
|
+
// clears out errors
|
|
174
|
+
// should be called to dimiss and at "cancel"
|
|
175
|
+
if (this.snackBarRef != null) {
|
|
176
|
+
this.snackBarRef.dismiss();
|
|
177
|
+
this.sErrorMessages = '';
|
|
178
|
+
this.bOkDisplayError = false;
|
|
179
|
+
}
|
|
180
|
+
break;
|
|
181
|
+
case 'publish':
|
|
182
|
+
// allows errors to be shown, clears out existing ones
|
|
183
|
+
// should be turned on at "submit" (finishAssignment, nextAssignment, etc.)
|
|
184
|
+
|
|
185
|
+
this.bOkDisplayError = true;
|
|
186
|
+
this.sErrorMessages = '';
|
|
187
|
+
break;
|
|
188
|
+
default:
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { BannerPageComponent } from './banner-page.component';
|
|
4
|
+
|
|
5
|
+
describe('BannerPageComponent', () => {
|
|
6
|
+
let component: BannerPageComponent;
|
|
7
|
+
let fixture: ComponentFixture<BannerPageComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [BannerPageComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
|
|
14
|
+
fixture = TestBed.createComponent(BannerPageComponent);
|
|
15
|
+
component = fixture.componentInstance;
|
|
16
|
+
fixture.detectChanges();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should create', () => {
|
|
20
|
+
expect(component).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Component, Input, OnChanges, OnInit, SimpleChanges, forwardRef } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
|
|
7
|
+
interface BannerPageProps {
|
|
8
|
+
// If any, enter additional props that only exist on this component
|
|
9
|
+
layout?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
backgroundImage?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'app-banner-page',
|
|
17
|
+
templateUrl: './banner-page.component.html',
|
|
18
|
+
styleUrls: ['./banner-page.component.scss'],
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
21
|
+
})
|
|
22
|
+
export class BannerPageComponent implements OnInit, OnChanges {
|
|
23
|
+
@Input() pConn$: typeof PConnect;
|
|
24
|
+
@Input() formGroup$: any;
|
|
25
|
+
|
|
26
|
+
configProps$: BannerPageProps;
|
|
27
|
+
arChildren$: any[];
|
|
28
|
+
title?: string;
|
|
29
|
+
message: any;
|
|
30
|
+
backgroundImage?: string;
|
|
31
|
+
layout$?: string;
|
|
32
|
+
divClass$: string;
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
this.backgroundImage = this.configProps$?.backgroundImage;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
// console.log(`ngOnInit (no registerAndSubscribe!): Region`);
|
|
40
|
+
this.backgroundImage = this.configProps$?.backgroundImage;
|
|
41
|
+
this.updateSelf();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
45
|
+
const { pConn$ } = changes;
|
|
46
|
+
this.backgroundImage = this.configProps$?.backgroundImage;
|
|
47
|
+
|
|
48
|
+
if (pConn$.previousValue && pConn$.previousValue !== pConn$.currentValue) {
|
|
49
|
+
this.updateSelf();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
updateSelf() {
|
|
54
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as BannerPageProps;
|
|
55
|
+
console.log(`url(${this.backgroundImage})`);
|
|
56
|
+
|
|
57
|
+
this.layout$ = this.configProps$.layout;
|
|
58
|
+
this.title = this.configProps$.title;
|
|
59
|
+
this.message = this.configProps$.message;
|
|
60
|
+
this.backgroundImage = this.configProps$.backgroundImage;
|
|
61
|
+
|
|
62
|
+
// The children may contain 'reference' components, so normalize the children...
|
|
63
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<component-mapper name="CaseSummaryFields" [props]="{ status$, bShowStatus$, primaryFields$, secondaryFields$ }"></component-mapper>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
.psdk-case-summary-info-box {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: space-evenly;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.psdk-case-summary-data {
|
|
10
|
+
flex: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.psdk-case-view-label {
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
display: block;
|
|
16
|
+
transform: translateY(0.2em) scale(0.75) perspective(100px) translateZ(0.001px);
|
|
17
|
+
-ms-transform: translateY(0.2em) scale(0.75);
|
|
18
|
+
width: 133.33333%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.psdk-label-readonly {
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
display: block;
|
|
24
|
+
transform: translateY(-1.28125em) scale(0.75) perspective(100px) translateZ(0.001px);
|
|
25
|
+
-ms-transform: translateY(-1.28125em) scale(0.75);
|
|
26
|
+
width: 133.33333%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.psdk-data-readonly {
|
|
30
|
+
padding-top: 0.625rem;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.psdk-status {
|
|
35
|
+
background-color: $app-primary-color;
|
|
36
|
+
color: white;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin-top: 0.625rem;
|
|
39
|
+
width: fit-content;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
::ng-deep .mat-mdc-form-field-infix {
|
|
43
|
+
width: auto;
|
|
44
|
+
}
|