@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,31 @@
|
|
|
1
|
+
<div class="psdk-view-container-top" id="{{ buildName$ }}">
|
|
2
|
+
<div *ngIf="isViewContainer$; else isReference">
|
|
3
|
+
<h3 *ngIf="title$ !== ''">{{ title$ }}</h3>
|
|
4
|
+
<div *ngIf="templateName$; else showChildren">
|
|
5
|
+
<component-mapper
|
|
6
|
+
[name]="templateName$"
|
|
7
|
+
[props]="{
|
|
8
|
+
pConn$: createdViewPConn$,
|
|
9
|
+
formGroup$: formGroup$,
|
|
10
|
+
displayOnlyFA$: displayOnlyFA$
|
|
11
|
+
}"
|
|
12
|
+
errorMsg="View Container missing Template {{ templateName$ }}"
|
|
13
|
+
></component-mapper>
|
|
14
|
+
</div>
|
|
15
|
+
<ng-template #showChildren>
|
|
16
|
+
<div *ngFor="let kid of arChildren$">
|
|
17
|
+
<component-mapper
|
|
18
|
+
[name]="kid.getPConnect().getComponentName()"
|
|
19
|
+
[props]="{
|
|
20
|
+
pConn$: kid.getPConnect(),
|
|
21
|
+
displayOnlyFA$: displayOnlyFA$
|
|
22
|
+
}"
|
|
23
|
+
errorMsg="ViewContainer Missing (no template): {{ kid.getPConnect().getComponentName() }}"
|
|
24
|
+
></component-mapper>
|
|
25
|
+
</div>
|
|
26
|
+
</ng-template>
|
|
27
|
+
</div>
|
|
28
|
+
<ng-template #isReference>
|
|
29
|
+
<component-mapper name="View" [props]="{ pConn$: viewPConn$, displayOnlyFA$ }"></component-mapper>
|
|
30
|
+
</ng-template>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ViewContainerComponent } from './view-container.component';
|
|
4
|
+
|
|
5
|
+
describe('ViewContainerComponent', () => {
|
|
6
|
+
let component: ViewContainerComponent;
|
|
7
|
+
let fixture: ComponentFixture<ViewContainerComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ViewContainerComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(ViewContainerComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { Component, OnInit, Input, NgZone, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ProgressSpinnerService } from '@pega/angular-sdk-components';
|
|
6
|
+
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
7
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
11
|
+
* Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
|
|
12
|
+
* is totally at your own risk.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
interface ViewContainerProps {
|
|
16
|
+
// If any, enter additional props that only exist on this component
|
|
17
|
+
mode?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
limit?: number;
|
|
20
|
+
template?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
routingInfo: object;
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'app-view-container',
|
|
28
|
+
templateUrl: './view-container.component.html',
|
|
29
|
+
styleUrls: ['./view-container.component.scss'],
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
32
|
+
})
|
|
33
|
+
export class ViewContainerComponent implements OnInit, OnDestroy {
|
|
34
|
+
@Input() pConn$: typeof PConnect;
|
|
35
|
+
@Input() formGroup$: FormGroup;
|
|
36
|
+
@Input() displayOnlyFA$: boolean;
|
|
37
|
+
|
|
38
|
+
// For interaction with AngularPConnect
|
|
39
|
+
angularPConnectData: AngularPConnectData = {};
|
|
40
|
+
configProps$: ViewContainerProps;
|
|
41
|
+
|
|
42
|
+
arChildren$: any[];
|
|
43
|
+
templateName$: string;
|
|
44
|
+
buildName$: string;
|
|
45
|
+
context$: string;
|
|
46
|
+
title$ = '';
|
|
47
|
+
|
|
48
|
+
viewPConn$: any;
|
|
49
|
+
|
|
50
|
+
isViewContainer$ = true;
|
|
51
|
+
|
|
52
|
+
// JA - created object is now a View with a Template
|
|
53
|
+
// Use its PConnect to render the CaseView; DON'T replace this.pConn$
|
|
54
|
+
createdViewPConn$: any;
|
|
55
|
+
state: any;
|
|
56
|
+
dispatchObject: any;
|
|
57
|
+
|
|
58
|
+
constructor(
|
|
59
|
+
private angularPConnect: AngularPConnectService,
|
|
60
|
+
private psService: ProgressSpinnerService,
|
|
61
|
+
private ngZone: NgZone
|
|
62
|
+
) {}
|
|
63
|
+
|
|
64
|
+
ngOnInit() {
|
|
65
|
+
if (this.displayOnlyFA$ == null) {
|
|
66
|
+
this.displayOnlyFA$ = false;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// debugger;
|
|
70
|
+
|
|
71
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
72
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
73
|
+
|
|
74
|
+
// Then, continue on with other initialization
|
|
75
|
+
|
|
76
|
+
// this.configProps$ = this.pConn$.getConfigProps();
|
|
77
|
+
// children may have a 'reference' so normalize the children array
|
|
78
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
|
|
79
|
+
|
|
80
|
+
this.buildName$ = this.buildName();
|
|
81
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as ViewContainerProps;
|
|
82
|
+
this.templateName$ = this.configProps$.template || '';
|
|
83
|
+
this.title$ = this.configProps$.title || '';
|
|
84
|
+
const { CONTAINER_TYPE, APP } = PCore.getConstants();
|
|
85
|
+
const { name, mode, limit } = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as ViewContainerProps;
|
|
86
|
+
|
|
87
|
+
this.pConn$.isBoundToState();
|
|
88
|
+
|
|
89
|
+
const containerMgr: any = this.pConn$.getContainerManager();
|
|
90
|
+
|
|
91
|
+
this.prepareDispatchObject = this.prepareDispatchObject.bind(this);
|
|
92
|
+
|
|
93
|
+
this.dispatchObject = this.prepareDispatchObject();
|
|
94
|
+
|
|
95
|
+
// TODO: Plan is to rename window.constellationCore to window.pega (or similar)
|
|
96
|
+
// And expose less via ui-bootstrap.js
|
|
97
|
+
this.state = {
|
|
98
|
+
dispatchObject: this.dispatchObject,
|
|
99
|
+
// PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore
|
|
100
|
+
|
|
101
|
+
visible: !PCore.checkIfSemanticURL()
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// here, to match Nebula/Constellation, the constructor of ViewContainer is only called once, and thus init/add container is only
|
|
105
|
+
// called once. Because of Angular creating and destroy components if the parent changes a lot, this component will be
|
|
106
|
+
// created and destroyed more than once. So the sessionStore "hasViewContainer" is set to false in rootContainer and then
|
|
107
|
+
// after first round is true here. Subsequent ViewContainer creation will not init/add more containers.
|
|
108
|
+
|
|
109
|
+
if (sessionStorage.getItem('hasViewContainer') == 'false') {
|
|
110
|
+
// unlike Nebula/Constellation, have to initializeContainer after we create a dispatcObject and state, otherwise, when calling
|
|
111
|
+
// initializeContainer before, code will get executed that needs state that wasn't defined.
|
|
112
|
+
|
|
113
|
+
containerMgr.initializeContainers({
|
|
114
|
+
type: mode === CONTAINER_TYPE.MULTIPLE ? CONTAINER_TYPE.MULTIPLE : CONTAINER_TYPE.SINGLE
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
if (mode === CONTAINER_TYPE.MULTIPLE && limit) {
|
|
118
|
+
/* NOTE: setContainerLimit use is temporary. It is a non-public, unsupported API. */
|
|
119
|
+
PCore.getContainerUtils().setContainerLimit(`${APP.APP}/${name}`, limit);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (sessionStorage.getItem('hasViewContainer') == 'false') {
|
|
124
|
+
// @ts-ignore - Property 'getMetadata' is private and only accessible within class
|
|
125
|
+
if (this.pConn$.getMetadata().children) {
|
|
126
|
+
containerMgr.addContainerItem(this.dispatchObject);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
sessionStorage.setItem('hasViewContainer', 'true');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// cannot call checkAndUpdate becasue first time through, will call updateSelf and that is incorrect (causes issues).
|
|
133
|
+
// however, need angularPConnect to be initialized with currentProps for future updates, so calling shouldComponentUpdate directly
|
|
134
|
+
// without checking to update here in init, will initialize and this is correct
|
|
135
|
+
this.angularPConnect.shouldComponentUpdate(this);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
ngOnDestroy() {
|
|
139
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
140
|
+
this.angularPConnectData.unsubscribeFn();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Callback passed when subscribing to store change
|
|
145
|
+
onStateChange() {
|
|
146
|
+
this.checkAndUpdate();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
checkAndUpdate() {
|
|
150
|
+
// Should always check the bridge to see if the component should
|
|
151
|
+
// update itself (re-render)
|
|
152
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
153
|
+
|
|
154
|
+
// ONLY call updateSelf when the component should update
|
|
155
|
+
if (bUpdateSelf) {
|
|
156
|
+
this.updateSelf();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
updateSelf() {
|
|
161
|
+
// *** DON'T call updateSelf in ngInit!! ***
|
|
162
|
+
|
|
163
|
+
if (this.arChildren$ == null) {
|
|
164
|
+
// children may have a 'reference' so normalize the children array
|
|
165
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// routingInfo was added as component prop in populateAdditionalProps
|
|
169
|
+
const routingInfo = this.angularPConnect.getComponentProp(this, 'routingInfo');
|
|
170
|
+
|
|
171
|
+
let loadingInfo;
|
|
172
|
+
try {
|
|
173
|
+
// @ts-ignore - Property 'getLoadingStatus' is private and only accessible within class 'C11nEnv'
|
|
174
|
+
loadingInfo = this.pConn$.getLoadingStatus();
|
|
175
|
+
|
|
176
|
+
this.psService.sendMessage(loadingInfo);
|
|
177
|
+
} catch (ex) {
|
|
178
|
+
/* empty */
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// const buildName = this.buildName();
|
|
182
|
+
const { CREATE_DETAILS_VIEW_NAME } = PCore.getConstants();
|
|
183
|
+
if (routingInfo) {
|
|
184
|
+
const { accessedOrder, items } = routingInfo;
|
|
185
|
+
if (accessedOrder && items) {
|
|
186
|
+
const key = accessedOrder[accessedOrder.length - 1];
|
|
187
|
+
let componentVisible = accessedOrder.length > 0;
|
|
188
|
+
const { visible } = this.state;
|
|
189
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
190
|
+
componentVisible = visible || componentVisible;
|
|
191
|
+
if (items[key] && items[key].view && Object.keys(items[key].view).length > 0) {
|
|
192
|
+
const latestItem = items[key];
|
|
193
|
+
const rootView = latestItem.view;
|
|
194
|
+
const { context, name: viewName } = rootView.config;
|
|
195
|
+
const config: any = { meta: rootView };
|
|
196
|
+
config.options = {
|
|
197
|
+
context: latestItem.context,
|
|
198
|
+
pageReference: context || this.pConn$.getPageReference(),
|
|
199
|
+
containerName: this.pConn$.getContainerName(),
|
|
200
|
+
containerItemName: key,
|
|
201
|
+
hasForm: viewName === CREATE_DETAILS_VIEW_NAME
|
|
202
|
+
};
|
|
203
|
+
const configObject = PCore.createPConnect(config);
|
|
204
|
+
|
|
205
|
+
// THIS is where the ViewContainer creates a View
|
|
206
|
+
// The config has meta.config.type = "view"
|
|
207
|
+
const newComp = configObject.getPConnect();
|
|
208
|
+
// const newCompName = newComp.getComponentName();
|
|
209
|
+
// The metadata for pyDetails changed such that the "template": "CaseView"
|
|
210
|
+
// is no longer a child of the created View but is in the created View's
|
|
211
|
+
// config. So, we DON'T want to replace this.pConn$ since the created
|
|
212
|
+
// component is a View (and not a ViewContainer). We now look for the
|
|
213
|
+
// "template" type directly in the created component (newComp) and NOT
|
|
214
|
+
// as a child of the newly created component.
|
|
215
|
+
|
|
216
|
+
// Use the newly created component (View) info but DO NOT replace
|
|
217
|
+
// this ViewContainer's pConn$, etc.
|
|
218
|
+
// Note that we're now using the newly created View's PConnect in the
|
|
219
|
+
// ViewContainer HTML template to guide what's rendered similar to what
|
|
220
|
+
// the Nebula/Constellation return of React.Fragment does
|
|
221
|
+
|
|
222
|
+
this.ngZone.run(() => {
|
|
223
|
+
if (newComp.getComponentName() === 'reference') {
|
|
224
|
+
// if a refernece, it will de reference to a "view"
|
|
225
|
+
// so hand this off to the "View" component to do that
|
|
226
|
+
this.isViewContainer$ = false;
|
|
227
|
+
this.viewPConn$ = newComp;
|
|
228
|
+
|
|
229
|
+
/*
|
|
230
|
+
*** this commmented out code should be removed, once we test out that
|
|
231
|
+
*** handing off refernce to View component always works
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
// When newComp is a reference, we want to de-reference
|
|
235
|
+
// it (to get the View) and then use that View to get the
|
|
236
|
+
// template, title, children, etc.
|
|
237
|
+
|
|
238
|
+
/*
|
|
239
|
+
|
|
240
|
+
const theDereferencedView = ReferenceComponent.normalizePConn(newComp);
|
|
241
|
+
const newConfigProps = theDereferencedView.getConfigProps();
|
|
242
|
+
|
|
243
|
+
// children may have a 'reference' so normalize the children arra
|
|
244
|
+
|
|
245
|
+
const theDereferencedViewChildren = ReferenceComponent.normalizePConnArray(theDereferencedView.getChildren());
|
|
246
|
+
this.templateName$ = ('template' in newConfigProps) ? newConfigProps["template"] : "";
|
|
247
|
+
this.title$ = ('title' in newConfigProps) ? newConfigProps["title"] : "";
|
|
248
|
+
this.arChildren$ = theDereferencedViewChildren;
|
|
249
|
+
this.createdViewPConn$ = theDereferencedView;
|
|
250
|
+
*/
|
|
251
|
+
} else {
|
|
252
|
+
// old style when newComp is NOT a 'reference'
|
|
253
|
+
this.isViewContainer$ = true;
|
|
254
|
+
|
|
255
|
+
console.error(`ViewContainer has a newComp that is NOT a reference!`);
|
|
256
|
+
|
|
257
|
+
this.createdViewPConn$ = newComp;
|
|
258
|
+
const newConfigProps: any = newComp.getConfigProps();
|
|
259
|
+
this.templateName$ = newConfigProps.template || '';
|
|
260
|
+
this.title$ = newConfigProps.title || '';
|
|
261
|
+
// update children with new view's children
|
|
262
|
+
// children may have a 'reference' so normalize the children array
|
|
263
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(newComp.getChildren());
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
prepareDispatchObject(): any {
|
|
272
|
+
const baseContext = this.pConn$.getContextName();
|
|
273
|
+
// const { acName = "primary" } = pConn.getContainerName(); // doesn't work with 8.23 typings
|
|
274
|
+
const acName = this.pConn$.getContainerName() || 'primary';
|
|
275
|
+
|
|
276
|
+
return {
|
|
277
|
+
semanticURL: '',
|
|
278
|
+
context: baseContext,
|
|
279
|
+
acName
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
buildName(): string {
|
|
284
|
+
const sContext = this.pConn$.getContextName();
|
|
285
|
+
const sName = this.pConn$.getContainerName();
|
|
286
|
+
|
|
287
|
+
return `${sContext.toUpperCase()}/${sName.toUpperCase()}`;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<mat-grid-list cols="2" rowHeight="6.25rem">
|
|
2
|
+
<mat-grid-tile>
|
|
3
|
+
<button *ngFor="let aButton of arSecondaryButtons$" mat-raised-button color="secondary" (click)="buttonClick(aButton.jsAction, 'secondary')">
|
|
4
|
+
{{ localizedVal(aButton.name, localeCategory) }}
|
|
5
|
+
</button>
|
|
6
|
+
</mat-grid-tile>
|
|
7
|
+
<mat-grid-tile>
|
|
8
|
+
<button *ngFor="let aButton of arMainButtons$" mat-raised-button color="primary" (click)="buttonClick(aButton.jsAction, 'primary')">
|
|
9
|
+
{{ localizedVal(aButton.name, localeCategory) }}
|
|
10
|
+
</button>
|
|
11
|
+
</mat-grid-tile>
|
|
12
|
+
</mat-grid-list>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ActionButtonsComponent } from './action-buttons.component';
|
|
4
|
+
|
|
5
|
+
describe('ActionButtonsComponent', () => {
|
|
6
|
+
let component: ActionButtonsComponent;
|
|
7
|
+
let fixture: ComponentFixture<ActionButtonsComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ActionButtonsComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(ActionButtonsComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
4
|
+
import { MatGridListModule } from '@angular/material/grid-list';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-action-buttons',
|
|
8
|
+
templateUrl: './action-buttons.component.html',
|
|
9
|
+
styleUrls: ['./action-buttons.component.scss'],
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [CommonModule, MatGridListModule, MatButtonModule]
|
|
12
|
+
})
|
|
13
|
+
export class ActionButtonsComponent {
|
|
14
|
+
@Input() arMainButtons$: any[];
|
|
15
|
+
@Input() arSecondaryButtons$: any[];
|
|
16
|
+
|
|
17
|
+
@Output() actionButtonClick: EventEmitter<any> = new EventEmitter();
|
|
18
|
+
|
|
19
|
+
localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
20
|
+
localeCategory = 'Assignment';
|
|
21
|
+
|
|
22
|
+
buttonClick(sAction, sButtonType) {
|
|
23
|
+
this.actionButtonClick.emit({ action: sAction, buttonType: sButtonType });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<div><component-mapper name="AlertBanner" [props]="{ banners }" [parent]="this"></component-mapper></div>
|
|
3
|
+
<div *ngIf="bHasNavigation$" class="psdk-stepper">
|
|
4
|
+
<component-mapper
|
|
5
|
+
name="MultiStep"
|
|
6
|
+
[props]="{
|
|
7
|
+
pConn$: newPConn$,
|
|
8
|
+
formGroup$,
|
|
9
|
+
arChildren$,
|
|
10
|
+
arMainButtons$,
|
|
11
|
+
arSecondaryButtons$,
|
|
12
|
+
bIsVertical$,
|
|
13
|
+
arCurrentStepIndicies$,
|
|
14
|
+
arNavigationSteps$
|
|
15
|
+
}"
|
|
16
|
+
[parent]="this"
|
|
17
|
+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
18
|
+
></component-mapper>
|
|
19
|
+
</div>
|
|
20
|
+
<div *ngIf="!bHasNavigation$">
|
|
21
|
+
<component-mapper
|
|
22
|
+
name="AssignmentCard"
|
|
23
|
+
[props]="{ pConn$: newPConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$, updateToken$ }"
|
|
24
|
+
[parent]="this"
|
|
25
|
+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
26
|
+
></component-mapper>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AssignmentComponent } from './assignment.component';
|
|
4
|
+
|
|
5
|
+
describe('AssignmentComponent', () => {
|
|
6
|
+
let component: AssignmentComponent;
|
|
7
|
+
let fixture: ComponentFixture<AssignmentComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [AssignmentComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(AssignmentComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|