@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,463 @@
|
|
|
1
|
+
/* eslint-disable no-case-declarations */
|
|
2
|
+
import { Component, OnInit, Input, NgZone, forwardRef, OnDestroy, OnChanges } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { MatSnackBarModule, MatSnackBar } from '@angular/material/snack-bar';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
7
|
+
import { ErrorMessagesService } from '@pega/angular-sdk-components';
|
|
8
|
+
import { ProgressSpinnerService } from '@pega/angular-sdk-components';
|
|
9
|
+
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
10
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
11
|
+
|
|
12
|
+
interface AssignmentProps {
|
|
13
|
+
// If any, enter additional props that only exist on this component
|
|
14
|
+
template: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'app-assignment',
|
|
19
|
+
templateUrl: './assignment.component.html',
|
|
20
|
+
styleUrls: ['./assignment.component.scss'],
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [CommonModule, MatSnackBarModule, forwardRef(() => ComponentMapperComponent)]
|
|
23
|
+
})
|
|
24
|
+
export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
25
|
+
@Input() pConn$: typeof PConnect;
|
|
26
|
+
@Input() formGroup$: FormGroup;
|
|
27
|
+
@Input() arChildren$: any[];
|
|
28
|
+
@Input() itemKey$: string;
|
|
29
|
+
@Input() isCreateStage$: boolean;
|
|
30
|
+
@Input() updateToken$: number;
|
|
31
|
+
@Input() isInModal$ = false;
|
|
32
|
+
@Input() banners;
|
|
33
|
+
|
|
34
|
+
// For interaction with AngularPConnect
|
|
35
|
+
angularPConnectData: AngularPConnectData = {};
|
|
36
|
+
configProps$: AssignmentProps;
|
|
37
|
+
|
|
38
|
+
newPConn$: any;
|
|
39
|
+
containerName$: string;
|
|
40
|
+
|
|
41
|
+
bIsRefComponent = false;
|
|
42
|
+
bInitialized = false;
|
|
43
|
+
|
|
44
|
+
templateName$: string;
|
|
45
|
+
|
|
46
|
+
arMainButtons$: any[];
|
|
47
|
+
arSecondaryButtons$: any[];
|
|
48
|
+
|
|
49
|
+
actionsAPI: any;
|
|
50
|
+
|
|
51
|
+
bHasNavigation$ = false;
|
|
52
|
+
bIsVertical$ = false;
|
|
53
|
+
arCurrentStepIndicies$: number[] = [];
|
|
54
|
+
arNavigationSteps$: any[] = [];
|
|
55
|
+
|
|
56
|
+
init: boolean;
|
|
57
|
+
finishAssignment: any;
|
|
58
|
+
navigateToStep: any;
|
|
59
|
+
saveAssignment: any;
|
|
60
|
+
cancelAssignment: any;
|
|
61
|
+
cancelCreateStageAssignment: any;
|
|
62
|
+
showPage: any;
|
|
63
|
+
|
|
64
|
+
// itemKey: string = ""; // JA - this is what Nebula/Constellation uses to pass to finishAssignment, navigateToStep
|
|
65
|
+
|
|
66
|
+
bReInit = false;
|
|
67
|
+
localizedVal;
|
|
68
|
+
localeCategory = 'Assignment';
|
|
69
|
+
localeReference;
|
|
70
|
+
|
|
71
|
+
constructor(
|
|
72
|
+
private angularPConnect: AngularPConnectService,
|
|
73
|
+
private psService: ProgressSpinnerService,
|
|
74
|
+
private erService: ErrorMessagesService,
|
|
75
|
+
private ngZone: NgZone,
|
|
76
|
+
private snackBar: MatSnackBar
|
|
77
|
+
) {}
|
|
78
|
+
|
|
79
|
+
ngOnInit(): void {
|
|
80
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
81
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
82
|
+
|
|
83
|
+
this.initComponent();
|
|
84
|
+
|
|
85
|
+
this.angularPConnect.shouldComponentUpdate(this);
|
|
86
|
+
|
|
87
|
+
this.bInitialized = true;
|
|
88
|
+
this.localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
89
|
+
this.localeReference = `${this.pConn$.getCaseInfo().getClassName()}!CASE!${this.pConn$.getCaseInfo().getName()}`.toUpperCase();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
ngOnDestroy() {
|
|
93
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
94
|
+
this.angularPConnectData.unsubscribeFn();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Callback passed when subscribing to store change
|
|
99
|
+
onStateChange() {
|
|
100
|
+
this.checkAndUpdate();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
checkAndUpdate() {
|
|
104
|
+
// Should always check the bridge to see if the component should update itself (re-render)
|
|
105
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
106
|
+
|
|
107
|
+
// ONLY call updateSelf when the component should update
|
|
108
|
+
// AND removing the "gate" that was put there since shouldComponentUpdate
|
|
109
|
+
// should be the real "gate"
|
|
110
|
+
if (bUpdateSelf) {
|
|
111
|
+
let loadingInfo;
|
|
112
|
+
try {
|
|
113
|
+
// loadingInfo = this.pConn$.getLoadingStatus();
|
|
114
|
+
loadingInfo = this.newPConn$.getLoadingStatus();
|
|
115
|
+
|
|
116
|
+
this.psService.sendMessage(loadingInfo);
|
|
117
|
+
} catch (ex) {
|
|
118
|
+
/* empty */
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
ngOnChanges() {
|
|
124
|
+
if (this.bInitialized) {
|
|
125
|
+
this.updateChanges();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
updateChanges() {
|
|
130
|
+
this.bIsRefComponent = this.checkIfRefComponent(this.pConn$);
|
|
131
|
+
|
|
132
|
+
this.ngZone.run(() => {
|
|
133
|
+
// pConn$ may be a 'reference' component, so normalize it
|
|
134
|
+
// this.pConn$ = ReferenceComponent.normalizePConn(this.pConn$);
|
|
135
|
+
this.newPConn$ = ReferenceComponent.normalizePConn(this.pConn$);
|
|
136
|
+
|
|
137
|
+
// If 'reference' so we need to get the children of the normalized pConn
|
|
138
|
+
if (this.bIsRefComponent) {
|
|
139
|
+
// this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
|
|
140
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.newPConn$.getChildren());
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
this.createButtons();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
checkIfRefComponent(thePConn: any): boolean {
|
|
148
|
+
let bReturn = false;
|
|
149
|
+
if (thePConn && thePConn.getComponentName() == 'reference') {
|
|
150
|
+
bReturn = true;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return bReturn;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
initComponent() {
|
|
157
|
+
this.bIsRefComponent = this.checkIfRefComponent(this.pConn$);
|
|
158
|
+
|
|
159
|
+
// pConn$ may be a 'reference' component, so normalize it
|
|
160
|
+
// this.pConn$ = ReferenceComponent.normalizePConn(this.pConn$);
|
|
161
|
+
this.newPConn$ = ReferenceComponent.normalizePConn(this.pConn$);
|
|
162
|
+
|
|
163
|
+
// If 'reference' so we need to get the children of the normalized pConn
|
|
164
|
+
if (this.bIsRefComponent) {
|
|
165
|
+
// this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
|
|
166
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.newPConn$.getChildren());
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// prevent re-intializing with flowContainer update unless an action is taken
|
|
170
|
+
this.bReInit = false;
|
|
171
|
+
this.bHasNavigation$ = false;
|
|
172
|
+
|
|
173
|
+
// this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
|
|
174
|
+
this.configProps$ = this.newPConn$.resolveConfigProps(this.newPConn$.getConfigProps());
|
|
175
|
+
|
|
176
|
+
this.templateName$ = this.configProps$.template;
|
|
177
|
+
|
|
178
|
+
// create pointers to functions
|
|
179
|
+
/*
|
|
180
|
+
let containerMgr = this.pConn$.getContainerManager();
|
|
181
|
+
let actionsAPI = this.pConn$.getActionsApi();
|
|
182
|
+
let baseContext = this.pConn$.getContextName();
|
|
183
|
+
let acName = this.pConn$.getContainerName();
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
const actionsAPI = this.newPConn$.getActionsApi();
|
|
187
|
+
const baseContext = this.newPConn$.getContextName();
|
|
188
|
+
const acName = this.newPConn$.getContainerName();
|
|
189
|
+
|
|
190
|
+
// for now, in general this should be overridden by updateSelf(), and not be blank
|
|
191
|
+
if (this.itemKey$ === '') {
|
|
192
|
+
this.itemKey$ = baseContext.concat('/').concat(acName);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// this.pConn$.isBoundToState();
|
|
196
|
+
this.newPConn$.isBoundToState();
|
|
197
|
+
|
|
198
|
+
this.init = false;
|
|
199
|
+
|
|
200
|
+
// store off bound functions to above pointers
|
|
201
|
+
this.finishAssignment = actionsAPI.finishAssignment.bind(actionsAPI);
|
|
202
|
+
this.navigateToStep = actionsAPI.navigateToStep.bind(actionsAPI);
|
|
203
|
+
this.saveAssignment = actionsAPI.saveAssignment.bind(actionsAPI);
|
|
204
|
+
this.cancelAssignment = actionsAPI.cancelAssignment.bind(actionsAPI);
|
|
205
|
+
this.showPage = actionsAPI.showPage.bind(actionsAPI);
|
|
206
|
+
|
|
207
|
+
this.cancelCreateStageAssignment = actionsAPI.cancelCreateStageAssignment.bind(actionsAPI);
|
|
208
|
+
|
|
209
|
+
this.createButtons();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
createButtons() {
|
|
213
|
+
// let oData = this.pConn$.getDataObject();
|
|
214
|
+
const oData = this.newPConn$.getDataObject();
|
|
215
|
+
|
|
216
|
+
// inside
|
|
217
|
+
// get fist kid, get the name and displa
|
|
218
|
+
// pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.
|
|
219
|
+
const oWorkItem = this.arChildren$[0].getPConnect();
|
|
220
|
+
const oWorkData = oWorkItem.getDataObject();
|
|
221
|
+
|
|
222
|
+
if (oWorkData) {
|
|
223
|
+
this.actionsAPI = oWorkItem.getActionsApi();
|
|
224
|
+
|
|
225
|
+
// this.containerName$ = oWorkMeta["name"];
|
|
226
|
+
|
|
227
|
+
if (oWorkData.caseInfo && oWorkData.caseInfo.assignments !== null) {
|
|
228
|
+
this.containerName$ = oWorkData.caseInfo.assignments?.[0].name;
|
|
229
|
+
|
|
230
|
+
// get caseInfo
|
|
231
|
+
const oCaseInfo = oData.caseInfo;
|
|
232
|
+
|
|
233
|
+
if (oCaseInfo && oCaseInfo.actionButtons) {
|
|
234
|
+
this.arMainButtons$ = oCaseInfo.actionButtons.main;
|
|
235
|
+
this.arSecondaryButtons$ = oCaseInfo.actionButtons.secondary;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (oCaseInfo.navigation != null) {
|
|
239
|
+
this.createButtonsForMultiStepForm(oCaseInfo);
|
|
240
|
+
} else {
|
|
241
|
+
this.bHasNavigation$ = false;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
createButtonsForMultiStepForm(oCaseInfo) {
|
|
248
|
+
this.bHasNavigation$ = true;
|
|
249
|
+
|
|
250
|
+
if ((oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'standard') || oCaseInfo?.navigation?.steps?.length === 1) {
|
|
251
|
+
this.bHasNavigation$ = false;
|
|
252
|
+
} else if (oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'vertical') {
|
|
253
|
+
this.bIsVertical$ = true;
|
|
254
|
+
} else {
|
|
255
|
+
this.bIsVertical$ = false;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// iterate through steps to find current one(s)
|
|
259
|
+
// immutable, so we want to change the local copy, so need to make a copy
|
|
260
|
+
this.ngZone.run(() => {
|
|
261
|
+
// what comes back now in configObject is the children of the flowContainer
|
|
262
|
+
this.arNavigationSteps$ = JSON.parse(JSON.stringify(oCaseInfo.navigation.steps));
|
|
263
|
+
this.arNavigationSteps$.forEach(step => {
|
|
264
|
+
if (step.name) {
|
|
265
|
+
step.name = PCore.getLocaleUtils().getLocaleValue(step.name, undefined, this.localeReference);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
this.arCurrentStepIndicies$ = [];
|
|
269
|
+
this.arCurrentStepIndicies$ = this.findCurrentIndicies(this.arNavigationSteps$, this.arCurrentStepIndicies$, 0);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
findCurrentIndicies(arStepperSteps: any[], arIndicies: number[], depth: number): number[] {
|
|
274
|
+
let count = 0;
|
|
275
|
+
arStepperSteps.forEach(step => {
|
|
276
|
+
if (step.visited_status == 'current') {
|
|
277
|
+
arIndicies[depth] = count;
|
|
278
|
+
|
|
279
|
+
// add in
|
|
280
|
+
step.step_status = '';
|
|
281
|
+
} else if (step.visited_status == 'success') {
|
|
282
|
+
count++;
|
|
283
|
+
step.step_status = 'completed';
|
|
284
|
+
} else {
|
|
285
|
+
count++;
|
|
286
|
+
step.step_status = '';
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (step.steps) {
|
|
290
|
+
arIndicies = this.findCurrentIndicies(step.steps, arIndicies, depth + 1);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
return arIndicies;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
onSaveActionSuccess(data) {
|
|
298
|
+
this.actionsAPI.cancelAssignment(this.itemKey$).then(() => {
|
|
299
|
+
this.psService.sendMessage(false);
|
|
300
|
+
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CREATE_STAGE_SAVED, data);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
onActionButtonClick(oData: any) {
|
|
305
|
+
this.buttonClick(oData.action, oData.buttonType);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
buttonClick(sAction, sButtonType) {
|
|
309
|
+
// right now, done on an individual basis, setting bReInit to true
|
|
310
|
+
// upon the next flow container state change, will cause the flow container
|
|
311
|
+
// to re-initialize
|
|
312
|
+
// this.bReInit =true;
|
|
313
|
+
|
|
314
|
+
/*
|
|
315
|
+
let baseContext = this.pConn$.getContextName();
|
|
316
|
+
let acName = this.pConn$.getContainerName();
|
|
317
|
+
let itemID = baseContext.concat("/").concat(acName);
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
// const baseContext = this.newPConn$.getContextName();
|
|
321
|
+
// const acName = this.newPConn$.getContainerName();
|
|
322
|
+
// const itemID = baseContext.concat('/').concat(acName);
|
|
323
|
+
|
|
324
|
+
if (sButtonType == 'secondary') {
|
|
325
|
+
// const stepID = ''; // ???
|
|
326
|
+
|
|
327
|
+
// need to handle cancel as this.cancel(dispatchInfo)
|
|
328
|
+
// this.actionsAPI[sAction](dispatchInfo);
|
|
329
|
+
switch (sAction) {
|
|
330
|
+
case 'navigateToStep':
|
|
331
|
+
this.erService.sendMessage('publish', '');
|
|
332
|
+
if (this.formValid()) {
|
|
333
|
+
this.bReInit = true;
|
|
334
|
+
this.psService.sendMessage(true);
|
|
335
|
+
|
|
336
|
+
const navigatePromise = this.navigateToStep('previous', this.itemKey$);
|
|
337
|
+
navigatePromise
|
|
338
|
+
.then(() => {
|
|
339
|
+
this.updateChanges();
|
|
340
|
+
this.psService.sendMessage(false);
|
|
341
|
+
})
|
|
342
|
+
.catch(() => {
|
|
343
|
+
this.psService.sendMessage(false);
|
|
344
|
+
this.snackBar.open(`${this.localizedVal('Navigation failed!', this.localeCategory)}`, 'Ok');
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
break;
|
|
348
|
+
|
|
349
|
+
case 'saveAssignment': {
|
|
350
|
+
const caseID = this.pConn$.getCaseInfo().getKey();
|
|
351
|
+
const assignmentID = this.pConn$.getCaseInfo().getAssignmentID();
|
|
352
|
+
const savePromise = this.saveAssignment(this.itemKey$);
|
|
353
|
+
|
|
354
|
+
savePromise
|
|
355
|
+
.then(() => {
|
|
356
|
+
const caseType = this.pConn$.getCaseInfo().c11nEnv.getValue(PCore.getConstants().CASE_INFO.CASE_TYPE_ID);
|
|
357
|
+
// @ts-ignore - second parameter “payload” for publish method should be optional
|
|
358
|
+
PCore.getPubSubUtils().publish('cancelPressed');
|
|
359
|
+
this.onSaveActionSuccess({ caseType, caseID, assignmentID });
|
|
360
|
+
})
|
|
361
|
+
.catch(() => {
|
|
362
|
+
this.psService.sendMessage(false);
|
|
363
|
+
this.snackBar.open(`${this.localizedVal('Save failed', this.localeCategory)}`, 'Ok');
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
case 'cancelAssignment':
|
|
370
|
+
this.bReInit = true;
|
|
371
|
+
this.erService.sendMessage('dismiss', '');
|
|
372
|
+
// @ts-ignore - Property 'isAssignmentInCreateStage' is private and only accessible within class 'CaseInfo'
|
|
373
|
+
const isAssignmentInCreateStage = this.pConn$.getCaseInfo().isAssignmentInCreateStage();
|
|
374
|
+
const isLocalAction =
|
|
375
|
+
// @ts-ignore - Property 'isLocalAction' is private and only accessible within class 'CaseInfo'.
|
|
376
|
+
this.pConn$.getCaseInfo().isLocalAction() ||
|
|
377
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
378
|
+
(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION && this.pConn$.getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION));
|
|
379
|
+
// check if create stage (modal)
|
|
380
|
+
if (isAssignmentInCreateStage && this.isInModal$ && !isLocalAction) {
|
|
381
|
+
const cancelPromise = this.cancelCreateStageAssignment(this.itemKey$);
|
|
382
|
+
cancelPromise
|
|
383
|
+
.then(() => {
|
|
384
|
+
this.psService.sendMessage(false);
|
|
385
|
+
// PCore.getPubSubUtils().publish(
|
|
386
|
+
// PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);
|
|
387
|
+
})
|
|
388
|
+
.catch(() => {
|
|
389
|
+
this.psService.sendMessage(false);
|
|
390
|
+
this.snackBar.open(`${this.localizedVal('Cancel failed!', this.localeCategory)}`, 'Ok');
|
|
391
|
+
});
|
|
392
|
+
} else {
|
|
393
|
+
this.psService.sendMessage(true);
|
|
394
|
+
|
|
395
|
+
// publish before cancel pressed, because
|
|
396
|
+
// cancel assignment happens "after" cancel assignment happens
|
|
397
|
+
// @ts-ignore - second parameter “payload” for publish method should be optional
|
|
398
|
+
PCore.getPubSubUtils().publish('cancelPressed');
|
|
399
|
+
|
|
400
|
+
const cancelPromise = this.cancelAssignment(this.itemKey$);
|
|
401
|
+
cancelPromise
|
|
402
|
+
.then(() => {
|
|
403
|
+
this.psService.sendMessage(false);
|
|
404
|
+
// @ts-ignore - second parameter “payload” for publish method should be optional
|
|
405
|
+
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);
|
|
406
|
+
})
|
|
407
|
+
.catch(() => {
|
|
408
|
+
this.psService.sendMessage(false);
|
|
409
|
+
this.snackBar.open(`${this.localizedVal('Cancel failed!', this.localeCategory)}`, 'Ok');
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
break;
|
|
413
|
+
|
|
414
|
+
default:
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
} else if (sButtonType == 'primary') {
|
|
418
|
+
// eslint-disable-next-line sonarjs/no-small-switch
|
|
419
|
+
switch (sAction) {
|
|
420
|
+
case 'finishAssignment':
|
|
421
|
+
this.erService.sendMessage('publish', '');
|
|
422
|
+
if (this.formValid()) {
|
|
423
|
+
this.bReInit = true;
|
|
424
|
+
this.psService.sendMessage(true);
|
|
425
|
+
const finishPromise = this.finishAssignment(this.itemKey$); // JA - was itemID but Nebula/Constellation uses itemKey
|
|
426
|
+
finishPromise
|
|
427
|
+
.then(() => {
|
|
428
|
+
this.psService.sendMessage(false);
|
|
429
|
+
this.updateChanges();
|
|
430
|
+
})
|
|
431
|
+
.catch(() => {
|
|
432
|
+
this.psService.sendMessage(false);
|
|
433
|
+
this.snackBar.open(`${this.localizedVal('Submit failed!', this.localeCategory)}`, 'Ok');
|
|
434
|
+
});
|
|
435
|
+
} else {
|
|
436
|
+
// let snackBarRef = this.snackBar.open("Please fix errors on form.", "Ok");
|
|
437
|
+
this.erService.sendMessage('show', this.localizedVal('Please fix errors on form.', this.localeCategory));
|
|
438
|
+
}
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
formValid(): boolean {
|
|
447
|
+
this.touchAll();
|
|
448
|
+
return this.formGroup$.valid;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
touchAll(): void {
|
|
452
|
+
Object.values(this.formGroup$.controls).forEach((control: any) => {
|
|
453
|
+
control.markAsTouched();
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
// eslint-disable-next-line sonarjs/no-identical-functions
|
|
458
|
+
topViewRefresh(): void {
|
|
459
|
+
Object.values(this.formGroup$.controls).forEach((control: any) => {
|
|
460
|
+
control.markAsTouched();
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<form [formGroup]="formGroup$" name="flowContainer" class="psdk-flow-container">
|
|
2
|
+
<div *ngFor="let kid of arChildren$">
|
|
3
|
+
<div [ngSwitch]="kid.getPConnect().getComponentName()">
|
|
4
|
+
<component-mapper *ngSwitchCase="'View'" name="View" [props]="{ formGroup$, pConn$: kid.getPConnect() }"></component-mapper>
|
|
5
|
+
<component-mapper
|
|
6
|
+
*ngSwitchCase="'CaseCreateStage'"
|
|
7
|
+
name="CaseCreateStage"
|
|
8
|
+
[props]="{ formGroup$, pConn$: kid.getPConnect() }"
|
|
9
|
+
></component-mapper>
|
|
10
|
+
<component-mapper *ngSwitchCase="'Region'" name="Region" [props]="{ formGroup$, pConn$: kid.getPConnect() }"></component-mapper>
|
|
11
|
+
<div *ngSwitchDefault>Assignment Card wants component not yet available: {{ kid.getPConnect().getComponentName() }}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</form>
|
|
15
|
+
|
|
16
|
+
<div>
|
|
17
|
+
<br />
|
|
18
|
+
<div class="psdk-case-view-divider"></div>
|
|
19
|
+
|
|
20
|
+
<component-mapper
|
|
21
|
+
name="ActionButtons"
|
|
22
|
+
[props]="{ arMainButtons$, arSecondaryButtons$ }"
|
|
23
|
+
[parent]="this"
|
|
24
|
+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
25
|
+
></component-mapper>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AssignmentCardComponent } from './assignment-card.component';
|
|
4
|
+
|
|
5
|
+
describe('AssignmentCardComponent', () => {
|
|
6
|
+
let component: AssignmentCardComponent;
|
|
7
|
+
let fixture: ComponentFixture<AssignmentCardComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [AssignmentCardComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(AssignmentCardComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, OnInit, Input, Output, EventEmitter, forwardRef, OnChanges } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-assignment-card',
|
|
9
|
+
templateUrl: './assignment-card.component.html',
|
|
10
|
+
styleUrls: ['./assignment-card.component.scss'],
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [CommonModule, ReactiveFormsModule, forwardRef(() => ComponentMapperComponent)]
|
|
13
|
+
})
|
|
14
|
+
export class AssignmentCardComponent implements OnInit, OnChanges {
|
|
15
|
+
@Input() pConn$: typeof PConnect;
|
|
16
|
+
@Input() formGroup$: FormGroup;
|
|
17
|
+
@Input() arMainButtons$: any[];
|
|
18
|
+
@Input() arSecondaryButtons$: any[];
|
|
19
|
+
@Input() arChildren$: any[];
|
|
20
|
+
@Input() updateToken$: number;
|
|
21
|
+
|
|
22
|
+
@Output() actionButtonClick: EventEmitter<any> = new EventEmitter();
|
|
23
|
+
|
|
24
|
+
ngOnInit(): void {
|
|
25
|
+
// Children may contain 'reference' component, so we need to
|
|
26
|
+
// normalize them
|
|
27
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.arChildren$);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ngOnChanges() {
|
|
31
|
+
// Children may contain 'reference' component, so we need to
|
|
32
|
+
// normalize them
|
|
33
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.arChildren$);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
onActionButtonClick(oData: any) {
|
|
37
|
+
this.actionButtonClick.emit(oData);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<div
|
|
2
|
+
[ngClass]="{
|
|
3
|
+
'psdk-block-style': inlineProps.filterPosition === 'block-start'
|
|
4
|
+
}"
|
|
5
|
+
>
|
|
6
|
+
<div *ngFor="let kid of children">
|
|
7
|
+
<div *ngIf="kid.type === 'DateTime'" [formGroup]="filtersFormGroup$">
|
|
8
|
+
<mat-form-field class="psdk-full-width">
|
|
9
|
+
<mat-label>{{ kid.label }}</mat-label>
|
|
10
|
+
<mat-date-range-input [rangePicker]="picker">
|
|
11
|
+
<input matStartDate placeholder="Start date" formControlName="start" />
|
|
12
|
+
<input matEndDate placeholder="End date" formControlName="end" (dateChange)="dateRangeChangeHandler(kid)" />
|
|
13
|
+
</mat-date-range-input>
|
|
14
|
+
<mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
|
|
15
|
+
<mat-date-range-picker #picker></mat-date-range-picker>
|
|
16
|
+
</mat-form-field>
|
|
17
|
+
</div>
|
|
18
|
+
<div *ngIf="kid.c11nEnv">
|
|
19
|
+
<span (input)="updateTmpData({ event: $event, field: kid })">
|
|
20
|
+
<component-mapper
|
|
21
|
+
[name]="kid.c11nEnv.getPConnect().getComponentName()"
|
|
22
|
+
[props]="{
|
|
23
|
+
pConn$: kid.c11nEnv.getPConnect(),
|
|
24
|
+
formGroup$: filtersFormGroup$
|
|
25
|
+
}"
|
|
26
|
+
errorMsg="Dashboard filter wants component not yet available: {{ kid.c11nEnv.getPConnect().getComponentName() }}"
|
|
27
|
+
>
|
|
28
|
+
</component-mapper>
|
|
29
|
+
</span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div>
|
|
33
|
+
<button mat-button color="primary" (click)="clearFilters()">Clear All</button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DashboardFilterComponent } from './dashboard-filter.component';
|
|
4
|
+
|
|
5
|
+
describe('DashboardFilterComponent', () => {
|
|
6
|
+
let component: DashboardFilterComponent;
|
|
7
|
+
let fixture: ComponentFixture<DashboardFilterComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [DashboardFilterComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(DashboardFilterComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|