@pega/angular-sdk-overrides 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/designSystemExtension/alert/alert.component.html +19 -0
- package/lib/designSystemExtension/alert/alert.component.scss +52 -0
- package/lib/designSystemExtension/alert/alert.component.spec.ts +22 -0
- package/lib/designSystemExtension/alert/alert.component.ts +43 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.html +12 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.scss +0 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.spec.ts +22 -0
- package/lib/designSystemExtension/alert-banner/alert-banner.component.ts +27 -0
- package/lib/designSystemExtension/banner/banner.component.html +28 -0
- package/lib/designSystemExtension/banner/banner.component.scss +64 -0
- package/lib/designSystemExtension/banner/banner.component.spec.ts +22 -0
- package/lib/designSystemExtension/banner/banner.component.ts +26 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.html +12 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.scss +0 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.spec.ts +24 -0
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +58 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.html +52 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.scss +142 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +80 -0
- package/lib/designSystemExtension/material-details/material-details.component.html +40 -0
- package/lib/designSystemExtension/material-details/material-details.component.scss +121 -0
- package/lib/designSystemExtension/material-details/material-details.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-details/material-details.component.ts +32 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.html +23 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss +33 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.spec.ts +22 -0
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts +29 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.html +37 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss +127 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.ts +32 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.html +3 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.scss +1 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.ts +17 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.html +17 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.scss +52 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-utility/material-utility.component.ts +26 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +12 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.scss +28 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.spec.ts +24 -0
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.ts +40 -0
- package/lib/designSystemExtension/operator/operator.component.html +20 -0
- package/lib/designSystemExtension/operator/operator.component.scss +83 -0
- package/lib/designSystemExtension/operator/operator.component.spec.ts +24 -0
- package/lib/designSystemExtension/operator/operator.component.ts +146 -0
- package/lib/designSystemExtension/pulse/pulse.component.html +3 -0
- package/lib/designSystemExtension/pulse/pulse.component.scss +8 -0
- package/lib/designSystemExtension/pulse/pulse.component.spec.ts +24 -0
- package/lib/designSystemExtension/pulse/pulse.component.ts +40 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.html +33 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +20 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.spec.ts +24 -0
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +89 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
- package/lib/field/auto-complete/auto-complete.component.html +32 -0
- package/lib/field/auto-complete/auto-complete.component.scss +20 -0
- package/lib/field/auto-complete/auto-complete.component.spec.ts +24 -0
- package/lib/field/auto-complete/auto-complete.component.ts +345 -0
- package/lib/field/auto-complete/config-ext.json +10 -0
- package/lib/field/cancel-alert/cancel-alert.component.html +18 -0
- package/lib/field/cancel-alert/cancel-alert.component.scss +24 -0
- package/lib/field/cancel-alert/cancel-alert.component.spec.ts +24 -0
- package/lib/field/cancel-alert/cancel-alert.component.ts +107 -0
- package/lib/field/check-box/check-box.component.html +41 -0
- package/lib/field/check-box/check-box.component.scss +24 -0
- package/lib/field/check-box/check-box.component.spec.ts +24 -0
- package/lib/field/check-box/check-box.component.ts +188 -0
- package/lib/field/check-box/config-ext.json +9 -0
- package/lib/field/currency/config-ext.json +9 -0
- package/lib/field/currency/currency.component.html +31 -0
- package/lib/field/currency/currency.component.scss +28 -0
- package/lib/field/currency/currency.component.spec.ts +24 -0
- package/lib/field/currency/currency.component.ts +197 -0
- package/lib/field/date/config-ext.json +9 -0
- package/lib/field/date/date.component.html +31 -0
- package/lib/field/date/date.component.scss +24 -0
- package/lib/field/date/date.component.spec.ts +24 -0
- package/lib/field/date/date.component.ts +245 -0
- package/lib/field/date-time/config-ext.json +8 -0
- package/lib/field/date-time/date-time.component.html +29 -0
- package/lib/field/date-time/date-time.component.scss +80 -0
- package/lib/field/date-time/date-time.component.spec.ts +24 -0
- package/lib/field/date-time/date-time.component.ts +224 -0
- package/lib/field/decimal/config-ext.json +8 -0
- package/lib/field/decimal/decimal.component.html +28 -0
- package/lib/field/decimal/decimal.component.scss +20 -0
- package/lib/field/decimal/decimal.component.spec.ts +24 -0
- package/lib/field/decimal/decimal.component.ts +187 -0
- package/lib/field/dropdown/config-ext.json +8 -0
- package/lib/field/dropdown/dropdown.component.html +31 -0
- package/lib/field/dropdown/dropdown.component.scss +25 -0
- package/lib/field/dropdown/dropdown.component.spec.ts +24 -0
- package/lib/field/dropdown/dropdown.component.ts +247 -0
- package/lib/field/email/config-ext.json +8 -0
- package/lib/field/email/email.component.html +27 -0
- package/lib/field/email/email.component.scss +20 -0
- package/lib/field/email/email.component.spec.ts +24 -0
- package/lib/field/email/email.component.ts +180 -0
- package/lib/field/integer/config-ext.json +8 -0
- package/lib/field/integer/integer.component.html +28 -0
- package/lib/field/integer/integer.component.scss +20 -0
- package/lib/field/integer/integer.component.spec.ts +24 -0
- package/lib/field/integer/integer.component.ts +185 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.html +12 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.scss +1 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.spec.ts +22 -0
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.ts +40 -0
- package/lib/field/percentage/config-ext.json +8 -0
- package/lib/field/percentage/percentage.component.html +29 -0
- package/lib/field/percentage/percentage.component.scss +20 -0
- package/lib/field/percentage/percentage.component.spec.ts +24 -0
- package/lib/field/percentage/percentage.component.ts +181 -0
- package/lib/field/phone/config-ext.json +8 -0
- package/lib/field/phone/phone.component.html +26 -0
- package/lib/field/phone/phone.component.scss +81 -0
- package/lib/field/phone/phone.component.spec.ts +24 -0
- package/lib/field/phone/phone.component.ts +199 -0
- package/lib/field/radio-buttons/config-ext.json +8 -0
- package/lib/field/radio-buttons/radio-buttons.component.html +37 -0
- package/lib/field/radio-buttons/radio-buttons.component.scss +39 -0
- package/lib/field/radio-buttons/radio-buttons.component.spec.ts +24 -0
- package/lib/field/radio-buttons/radio-buttons.component.ts +241 -0
- package/lib/field/rich-text/rich-text.component.html +20 -0
- package/lib/field/rich-text/rich-text.component.scss +0 -0
- package/lib/field/rich-text/rich-text.component.spec.ts +24 -0
- package/lib/field/rich-text/rich-text.component.ts +131 -0
- package/lib/field/scalar-list/config-ext.json +8 -0
- package/lib/field/scalar-list/scalar-list.component.html +9 -0
- package/lib/field/scalar-list/scalar-list.component.scss +0 -0
- package/lib/field/scalar-list/scalar-list.component.spec.ts +22 -0
- package/lib/field/scalar-list/scalar-list.component.ts +119 -0
- package/lib/field/semantic-link/config-ext.json +7 -0
- package/lib/field/semantic-link/semantic-link.component.html +10 -0
- package/lib/field/semantic-link/semantic-link.component.scss +16 -0
- package/lib/field/semantic-link/semantic-link.component.spec.ts +0 -0
- package/lib/field/semantic-link/semantic-link.component.ts +70 -0
- package/lib/field/text/text.component.html +14 -0
- package/lib/field/text/text.component.scss +30 -0
- package/lib/field/text/text.component.spec.ts +24 -0
- package/lib/field/text/text.component.ts +158 -0
- package/lib/field/text-area/config-ext.json +8 -0
- package/lib/field/text-area/text-area.component.html +29 -0
- package/lib/field/text-area/text-area.component.scss +20 -0
- package/lib/field/text-area/text-area.component.spec.ts +24 -0
- package/lib/field/text-area/text-area.component.ts +186 -0
- package/lib/field/text-content/config-ext.json +7 -0
- package/lib/field/text-content/text-content.component.html +7 -0
- package/lib/field/text-content/text-content.component.scss +4 -0
- package/lib/field/text-content/text-content.component.spec.ts +24 -0
- package/lib/field/text-content/text-content.component.ts +89 -0
- package/lib/field/text-input/config-ext.json +8 -0
- package/lib/field/text-input/text-input.component.html +27 -0
- package/lib/field/text-input/text-input.component.scss +20 -0
- package/lib/field/text-input/text-input.component.spec.ts +24 -0
- package/lib/field/text-input/text-input.component.ts +183 -0
- package/lib/field/time/config-ext.json +8 -0
- package/lib/field/time/time.component.html +26 -0
- package/lib/field/time/time.component.scss +20 -0
- package/lib/field/time/time.component.spec.ts +24 -0
- package/lib/field/time/time.component.ts +177 -0
- package/lib/field/url/config-ext.json +8 -0
- package/lib/field/url/url.component.html +26 -0
- package/lib/field/url/url.component.scss +20 -0
- package/lib/field/url/url.component.spec.ts +24 -0
- package/lib/field/url/url.component.ts +179 -0
- package/lib/field/user-reference/config-ext.json +7 -0
- package/lib/field/user-reference/user-reference.component.html +48 -0
- package/lib/field/user-reference/user-reference.component.scss +30 -0
- package/lib/field/user-reference/user-reference.component.spec.ts +24 -0
- package/lib/field/user-reference/user-reference.component.ts +213 -0
- package/lib/infra/Containers/flow-container/flow-container.component.html +39 -0
- package/lib/infra/Containers/flow-container/flow-container.component.scss +33 -0
- package/lib/infra/Containers/flow-container/flow-container.component.spec.ts +24 -0
- package/lib/infra/Containers/flow-container/flow-container.component.ts +633 -0
- package/lib/infra/Containers/flow-container/helpers.ts +79 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.html +1 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.scss +0 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.ts +24 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.html +35 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.scss +29 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +394 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.html +1 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.scss +0 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.ts +35 -0
- package/lib/infra/Containers/view-container/view-container.component.html +31 -0
- package/lib/infra/Containers/view-container/view-container.component.scss +7 -0
- package/lib/infra/Containers/view-container/view-container.component.spec.ts +24 -0
- package/lib/infra/Containers/view-container/view-container.component.ts +289 -0
- package/lib/infra/action-buttons/action-buttons.component.html +12 -0
- package/lib/infra/action-buttons/action-buttons.component.scss +1 -0
- package/lib/infra/action-buttons/action-buttons.component.spec.ts +24 -0
- package/lib/infra/action-buttons/action-buttons.component.ts +25 -0
- package/lib/infra/assignment/assignment.component.html +28 -0
- package/lib/infra/assignment/assignment.component.scss +0 -0
- package/lib/infra/assignment/assignment.component.spec.ts +24 -0
- package/lib/infra/assignment/assignment.component.ts +463 -0
- package/lib/infra/assignment-card/assignment-card.component.html +26 -0
- package/lib/infra/assignment-card/assignment-card.component.scss +9 -0
- package/lib/infra/assignment-card/assignment-card.component.spec.ts +24 -0
- package/lib/infra/assignment-card/assignment-card.component.ts +39 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.html +35 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
- package/lib/infra/dashboard-filter/dashboard-filter.component.ts +90 -0
- package/lib/infra/defer-load/defer-load.component.html +3 -0
- package/lib/infra/defer-load/defer-load.component.scss +0 -0
- package/lib/infra/defer-load/defer-load.component.spec.ts +24 -0
- package/lib/infra/defer-load/defer-load.component.ts +169 -0
- package/lib/infra/error-boundary/error-boundary.component.html +1 -0
- package/lib/infra/error-boundary/error-boundary.component.scss +0 -0
- package/lib/infra/error-boundary/error-boundary.component.spec.ts +22 -0
- package/lib/infra/error-boundary/error-boundary.component.ts +16 -0
- package/lib/infra/multi-step/multi-step.component.html +98 -0
- package/lib/infra/multi-step/multi-step.component.scss +247 -0
- package/lib/infra/multi-step/multi-step.component.spec.ts +24 -0
- package/lib/infra/multi-step/multi-step.component.ts +85 -0
- package/lib/infra/navbar/navbar.component.html +55 -0
- package/lib/infra/navbar/navbar.component.scss +154 -0
- package/lib/infra/navbar/navbar.component.spec.ts +24 -0
- package/lib/infra/navbar/navbar.component.ts +175 -0
- package/lib/infra/reference/reference.component.html +1 -0
- package/lib/infra/reference/reference.component.scss +0 -0
- package/lib/infra/reference/reference.component.ts +165 -0
- package/lib/infra/region/region.component.html +11 -0
- package/lib/infra/region/region.component.scss +0 -0
- package/lib/infra/region/region.component.spec.ts +24 -0
- package/lib/infra/region/region.component.ts +37 -0
- package/lib/infra/root-container/root-container.component.html +36 -0
- package/lib/infra/root-container/root-container.component.scss +20 -0
- package/lib/infra/root-container/root-container.component.spec.ts +24 -0
- package/lib/infra/root-container/root-container.component.ts +256 -0
- package/lib/infra/stages/stages.component.html +15 -0
- package/lib/infra/stages/stages.component.scss +109 -0
- package/lib/infra/stages/stages.component.spec.ts +24 -0
- package/lib/infra/stages/stages.component.ts +83 -0
- package/lib/infra/view/view.component.html +38 -0
- package/lib/infra/view/view.component.scss +16 -0
- package/lib/infra/view/view.component.spec.ts +24 -0
- package/lib/infra/view/view.component.ts +214 -0
- package/lib/template/app-shell/app-shell.component.html +15 -0
- package/lib/template/app-shell/app-shell.component.scss +51 -0
- package/lib/template/app-shell/app-shell.component.spec.ts +24 -0
- package/lib/template/app-shell/app-shell.component.ts +192 -0
- package/lib/template/banner-page/banner-page.component.html +12 -0
- package/lib/template/banner-page/banner-page.component.scss +0 -0
- package/lib/template/banner-page/banner-page.component.spec.ts +22 -0
- package/lib/template/banner-page/banner-page.component.ts +65 -0
- package/lib/template/case-summary/case-summary.component.html +1 -0
- package/lib/template/case-summary/case-summary.component.scss +44 -0
- package/lib/template/case-summary/case-summary.component.spec.ts +24 -0
- package/lib/template/case-summary/case-summary.component.ts +100 -0
- package/lib/template/case-summary/config-ext.json +8 -0
- package/lib/template/case-view/case-view.component.html +89 -0
- package/lib/template/case-view/case-view.component.scss +107 -0
- package/lib/template/case-view/case-view.component.spec.ts +24 -0
- package/lib/template/case-view/case-view.component.ts +242 -0
- package/lib/template/case-view/config-ext.json +8 -0
- package/lib/template/confirmation/config-ext.json +11 -0
- package/lib/template/confirmation/confirmation.component.html +23 -0
- package/lib/template/confirmation/confirmation.component.scss +10 -0
- package/lib/template/confirmation/confirmation.component.spec.ts +23 -0
- package/lib/template/confirmation/confirmation.component.ts +91 -0
- package/lib/template/data-reference/config-ext.json +8 -0
- package/lib/template/data-reference/data-reference.component.html +13 -0
- package/lib/template/data-reference/data-reference.component.scss +0 -0
- package/lib/template/data-reference/data-reference.component.spec.ts +24 -0
- package/lib/template/data-reference/data-reference.component.ts +275 -0
- package/lib/template/default-form/config-ext.json +8 -0
- package/lib/template/default-form/default-form.component.html +19 -0
- package/lib/template/default-form/default-form.component.scss +38 -0
- package/lib/template/default-form/default-form.component.spec.ts +24 -0
- package/lib/template/default-form/default-form.component.ts +76 -0
- package/lib/template/details/config-ext.json +9 -0
- package/lib/template/details/details.component.html +3 -0
- package/lib/template/details/details.component.scss +7 -0
- package/lib/template/details/details.component.spec.ts +24 -0
- package/lib/template/details/details.component.ts +113 -0
- package/lib/template/details-narrow-wide/config-ext.json +8 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.html +4 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.scss +7 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.spec.ts +24 -0
- package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +82 -0
- package/lib/template/details-one-column/config-ext.json +9 -0
- package/lib/template/details-one-column/details-one-column.component.html +1 -0
- package/lib/template/details-one-column/details-one-column.component.scss +0 -0
- package/lib/template/details-one-column/details-one-column.component.spec.ts +24 -0
- package/lib/template/details-one-column/details-one-column.component.ts +85 -0
- package/lib/template/details-sub-tabs/config-ext.json +8 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.html +15 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.scss +0 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.spec.ts +24 -0
- package/lib/template/details-sub-tabs/details-sub-tabs.component.ts +73 -0
- package/lib/template/details-three-column/config-ext.json +8 -0
- package/lib/template/details-three-column/details-three-column.component.html +4 -0
- package/lib/template/details-three-column/details-three-column.component.scss +7 -0
- package/lib/template/details-three-column/details-three-column.component.spec.ts +24 -0
- package/lib/template/details-three-column/details-three-column.component.ts +94 -0
- package/lib/template/details-two-column/config-ext.json +8 -0
- package/lib/template/details-two-column/details-two-column.component.html +4 -0
- package/lib/template/details-two-column/details-two-column.component.scss +7 -0
- package/lib/template/details-two-column/details-two-column.component.spec.ts +24 -0
- package/lib/template/details-two-column/details-two-column.component.ts +92 -0
- package/lib/template/details-wide-narrow/config-ext.json +8 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.html +4 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.scss +7 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.spec.ts +24 -0
- package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +88 -0
- package/lib/template/dynamic-tabs/config-ext.json +36 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +78 -0
- package/lib/template/field-group-list/field-group-list.component.html +8 -0
- package/lib/template/field-group-list/field-group-list.component.scss +12 -0
- package/lib/template/field-group-list/field-group-list.component.spec.ts +22 -0
- package/lib/template/field-group-list/field-group-list.component.ts +18 -0
- package/lib/template/field-group-template/field-group-template.component.html +33 -0
- package/lib/template/field-group-template/field-group-template.component.scss +8 -0
- package/lib/template/field-group-template/field-group-template.component.spec.ts +22 -0
- package/lib/template/field-group-template/field-group-template.component.ts +168 -0
- package/lib/template/field-value-list/field-value-list.component.html +15 -0
- package/lib/template/field-value-list/field-value-list.component.scss +18 -0
- package/lib/template/field-value-list/field-value-list.component.spec.ts +22 -0
- package/lib/template/field-value-list/field-value-list.component.ts +15 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.html +19 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.scss +31 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.spec.ts +24 -0
- package/lib/template/inline-dashboard/inline-dashboard.component.ts +24 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.html +1 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.scss +0 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.spec.ts +24 -0
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.ts +55 -0
- package/lib/template/list-page/config-ext.json +7 -0
- package/lib/template/list-page/list-page.component.html +1 -0
- package/lib/template/list-page/list-page.component.scss +0 -0
- package/lib/template/list-page/list-page.component.spec.ts +24 -0
- package/lib/template/list-page/list-page.component.ts +13 -0
- package/lib/template/list-view/DefaultViewMeta.ts +220 -0
- package/lib/template/list-view/config-ext.json +8 -0
- package/lib/template/list-view/list-view.component.html +253 -0
- package/lib/template/list-view/list-view.component.scss +169 -0
- package/lib/template/list-view/list-view.component.spec.ts +24 -0
- package/lib/template/list-view/list-view.component.ts +1408 -0
- package/lib/template/list-view/listViewHelpers.ts +87 -0
- package/lib/template/list-view/utils.ts +745 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.html +4 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.scss +0 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.spec.ts +22 -0
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.ts +54 -0
- package/lib/template/narrow-wide-form/config-ext.json +8 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.html +16 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.scss +20 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.spec.ts +24 -0
- package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +34 -0
- package/lib/template/one-column/config-ext.json +8 -0
- package/lib/template/one-column/one-column.component.html +11 -0
- package/lib/template/one-column/one-column.component.scss +3 -0
- package/lib/template/one-column/one-column.component.spec.ts +24 -0
- package/lib/template/one-column/one-column.component.ts +34 -0
- package/lib/template/one-column-page/config-ext.json +8 -0
- package/lib/template/one-column-page/one-column-page.component.html +1 -0
- package/lib/template/one-column-page/one-column-page.component.scss +0 -0
- package/lib/template/one-column-page/one-column-page.component.spec.ts +24 -0
- package/lib/template/one-column-page/one-column-page.component.ts +15 -0
- package/lib/template/one-column-tab/config-ext.json +8 -0
- package/lib/template/one-column-tab/one-column-tab.component.html +9 -0
- package/lib/template/one-column-tab/one-column-tab.component.scss +9 -0
- package/lib/template/one-column-tab/one-column-tab.component.ts +34 -0
- package/lib/template/page/page.component.html +12 -0
- package/lib/template/page/page.component.scss +3 -0
- package/lib/template/page/page.component.spec.ts +24 -0
- package/lib/template/page/page.component.ts +68 -0
- package/lib/template/promoted-filters/promoted-filters.component.html +27 -0
- package/lib/template/promoted-filters/promoted-filters.component.scss +7 -0
- package/lib/template/promoted-filters/promoted-filters.component.spec.ts +24 -0
- package/lib/template/promoted-filters/promoted-filters.component.ts +157 -0
- package/lib/template/repeating-structures/repeating-structures.component.html +21 -0
- package/lib/template/repeating-structures/repeating-structures.component.scss +17 -0
- package/lib/template/repeating-structures/repeating-structures.component.spec.ts +24 -0
- package/lib/template/repeating-structures/repeating-structures.component.ts +155 -0
- package/lib/template/simple-table/config-ext.json +7 -0
- package/lib/template/simple-table/simple-table.component.html +13 -0
- package/lib/template/simple-table/simple-table.component.scss +0 -0
- package/lib/template/simple-table/simple-table.component.spec.ts +24 -0
- package/lib/template/simple-table/simple-table.component.ts +171 -0
- package/lib/template/simple-table-manual/helpers.ts +294 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.html +147 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.scss +185 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.spec.ts +24 -0
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +950 -0
- package/lib/template/simple-table-select/simple-table-select.component.html +14 -0
- package/lib/template/simple-table-select/simple-table-select.component.scss +0 -0
- package/lib/template/simple-table-select/simple-table-select.component.spec.ts +24 -0
- package/lib/template/simple-table-select/simple-table-select.component.ts +151 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.html +1 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.scss +0 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.spec.ts +22 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.ts +15 -0
- package/lib/template/sub-tabs/config-ext.json +8 -0
- package/lib/template/sub-tabs/sub-tabs.component.html +12 -0
- package/lib/template/sub-tabs/sub-tabs.component.scss +3 -0
- package/lib/template/sub-tabs/sub-tabs.component.spec.ts +24 -0
- package/lib/template/sub-tabs/sub-tabs.component.ts +76 -0
- package/lib/template/three-column/config-ext.json +8 -0
- package/lib/template/three-column/three-column.component.html +13 -0
- package/lib/template/three-column/three-column.component.scss +16 -0
- package/lib/template/three-column/three-column.component.spec.ts +24 -0
- package/lib/template/three-column/three-column.component.ts +34 -0
- package/lib/template/three-column-page/config-ext.json +8 -0
- package/lib/template/three-column-page/three-column-page.component.html +1 -0
- package/lib/template/three-column-page/three-column-page.component.scss +0 -0
- package/lib/template/three-column-page/three-column-page.component.spec.ts +24 -0
- package/lib/template/three-column-page/three-column-page.component.ts +15 -0
- package/lib/template/two-column/config-ext.json +8 -0
- package/lib/template/two-column/two-column.component.html +16 -0
- package/lib/template/two-column/two-column.component.scss +28 -0
- package/lib/template/two-column/two-column.component.spec.ts +24 -0
- package/lib/template/two-column/two-column.component.ts +34 -0
- package/lib/template/two-column-page/config-ext.json +8 -0
- package/lib/template/two-column-page/two-column-page.component.html +1 -0
- package/lib/template/two-column-page/two-column-page.component.scss +0 -0
- package/lib/template/two-column-page/two-column-page.component.spec.ts +24 -0
- package/lib/template/two-column-page/two-column-page.component.ts +43 -0
- package/lib/template/two-column-tab/config-ext.json +8 -0
- package/lib/template/two-column-tab/two-column-tab.component.html +16 -0
- package/lib/template/two-column-tab/two-column-tab.component.scss +28 -0
- package/lib/template/two-column-tab/two-column-tab.component.spec.ts +24 -0
- package/lib/template/two-column-tab/two-column-tab.component.ts +34 -0
- package/lib/template/utils.ts +23 -0
- package/lib/template/wide-narrow-form/config-ext.json +8 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.html +16 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.scss +20 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.spec.ts +24 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +34 -0
- package/lib/template/wide-narrow-page/config-ext.json +8 -0
- package/lib/template/wide-narrow-page/wide-narrow-page.component.html +6 -0
- package/lib/template/wide-narrow-page/wide-narrow-page.component.scss +0 -0
- package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +61 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.scss +166 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
- package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +172 -0
- package/lib/widget/app-announcement/app-announcement.component.html +13 -0
- package/lib/widget/app-announcement/app-announcement.component.scss +21 -0
- package/lib/widget/app-announcement/app-announcement.component.spec.ts +24 -0
- package/lib/widget/app-announcement/app-announcement.component.ts +35 -0
- package/lib/widget/app-announcement/config-ext.json +8 -0
- package/lib/widget/attachment/attachment.component.html +31 -0
- package/lib/widget/attachment/attachment.component.scss +57 -0
- package/lib/widget/attachment/attachment.component.spec.ts +24 -0
- package/lib/widget/attachment/attachment.component.ts +705 -0
- package/lib/widget/attachment/config-ext.json +7 -0
- package/lib/widget/case-history/case-history.component.html +12 -0
- package/lib/widget/case-history/case-history.component.scss +22 -0
- package/lib/widget/case-history/case-history.component.spec.ts +24 -0
- package/lib/widget/case-history/case-history.component.ts +104 -0
- package/lib/widget/case-history/config-ext.json +8 -0
- package/lib/widget/feed-container/config-ext.json +12 -0
- package/lib/widget/feed-container/feed-api.ts +410 -0
- package/lib/widget/feed-container/feed-container.component.html +137 -0
- package/lib/widget/feed-container/feed-container.component.scss +188 -0
- package/lib/widget/feed-container/feed-container.component.spec.ts +24 -0
- package/lib/widget/feed-container/feed-container.component.ts +616 -0
- package/lib/widget/file-utility/config-ext.json +8 -0
- package/lib/widget/file-utility/file-utility.component.html +100 -0
- package/lib/widget/file-utility/file-utility.component.scss +107 -0
- package/lib/widget/file-utility/file-utility.component.spec.ts +24 -0
- package/lib/widget/file-utility/file-utility.component.ts +759 -0
- package/lib/widget/list-utility/list-utility.component.html +32 -0
- package/lib/widget/list-utility/list-utility.component.scss +135 -0
- package/lib/widget/list-utility/list-utility.component.spec.ts +24 -0
- package/lib/widget/list-utility/list-utility.component.ts +47 -0
- package/lib/widget/quick-create/quick-create.component.html +1 -0
- package/lib/widget/quick-create/quick-create.component.scss +0 -0
- package/lib/widget/quick-create/quick-create.component.spec.ts +22 -0
- package/lib/widget/quick-create/quick-create.component.ts +96 -0
- package/lib/widget/todo/config-ext.json +8 -0
- package/lib/widget/todo/todo.component.html +47 -0
- package/lib/widget/todo/todo.component.scss +98 -0
- package/lib/widget/todo/todo.component.spec.ts +24 -0
- package/lib/widget/todo/todo.component.ts +265 -0
- package/lib/widget/utility/utility.component.html +1 -0
- package/lib/widget/utility/utility.component.scss +0 -0
- package/lib/widget/utility/utility.component.spec.ts +24 -0
- package/lib/widget/utility/utility.component.ts +50 -0
- package/package.json +14 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { MultiStepComponent } from './multi-step.component';
|
|
4
|
+
|
|
5
|
+
describe('MultiStepComponent', () => {
|
|
6
|
+
let component: MultiStepComponent;
|
|
7
|
+
let fixture: ComponentFixture<MultiStepComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [MultiStepComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(MultiStepComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Component, OnInit, Input, Output, EventEmitter, forwardRef } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-multi-step',
|
|
9
|
+
templateUrl: './multi-step.component.html',
|
|
10
|
+
styleUrls: ['./multi-step.component.scss'],
|
|
11
|
+
providers: [Utils],
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
14
|
+
})
|
|
15
|
+
export class MultiStepComponent implements OnInit {
|
|
16
|
+
@Input() pConn$: typeof PConnect;
|
|
17
|
+
@Input() formGroup$: FormGroup;
|
|
18
|
+
@Input() arMainButtons$: any[];
|
|
19
|
+
@Input() arSecondaryButtons$: any[];
|
|
20
|
+
@Input() arChildren$: any[];
|
|
21
|
+
@Input() bIsVertical$: boolean;
|
|
22
|
+
@Input() arCurrentStepIndicies$: number[];
|
|
23
|
+
@Input() arNavigationSteps$: any[];
|
|
24
|
+
@Output() actionButtonClick: EventEmitter<any> = new EventEmitter();
|
|
25
|
+
|
|
26
|
+
svgCurrent$: string;
|
|
27
|
+
svgNotCurrent$: string;
|
|
28
|
+
bShow$ = true;
|
|
29
|
+
|
|
30
|
+
constructor(private utils: Utils) {}
|
|
31
|
+
|
|
32
|
+
ngOnInit(): void {
|
|
33
|
+
// svg icons
|
|
34
|
+
this.svgCurrent$ = this.utils.getImageSrc('circle-solid', this.utils.getSDKStaticContentUrl());
|
|
35
|
+
this.svgNotCurrent$ = this.utils.getImageSrc('circle-solid', this.utils.getSDKStaticContentUrl());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
onActionButtonClick(oData: any) {
|
|
39
|
+
this.actionButtonClick.emit(oData);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
_getVIconClass(status): string {
|
|
43
|
+
if (status == 'current') {
|
|
44
|
+
return 'psdk-vertical-step-icon-selected';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return 'psdk-vertical-step-icon';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_getVLabelClass(status): string {
|
|
51
|
+
if (status == 'current') {
|
|
52
|
+
return 'psdk-vertical-step-label-selected';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return 'psdk-vertical-step-label';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
_getVBodyClass(index: number): string {
|
|
59
|
+
if (index < this.arNavigationSteps$.length - 1) {
|
|
60
|
+
return 'psdk-vertical-step-body psdk-vertical-step-line';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return 'psdk-vertical-step-body';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_getHIconClass(status): string {
|
|
67
|
+
if (status == 'current') {
|
|
68
|
+
return 'psdk-horizontal-step-icon-selected';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return 'psdk-horizontal-step-icon';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
_getHLabelClass(status): string {
|
|
75
|
+
if (status == 'current') {
|
|
76
|
+
return 'psdk-horizontal-step-label-selected';
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return 'psdk-horizontal-step-label';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_showHLine(index: number): boolean {
|
|
83
|
+
return index < this.arNavigationSteps$.length - 1;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<div class="psdk-appshell-nav">
|
|
2
|
+
<div class="psdk-nav-header">
|
|
3
|
+
<div>
|
|
4
|
+
<img src="{{ portalLogoImage$ }}" class="psdk-nav-logo" />
|
|
5
|
+
</div>
|
|
6
|
+
<div class="psdk-nav-portal-info">
|
|
7
|
+
<div class="psdk-nav-portal-app">{{ portalApp$ }}</div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="psdk-nav-divider"></div>
|
|
11
|
+
<div>
|
|
12
|
+
<mat-list>
|
|
13
|
+
<mat-list-item id="create-case-button" (click)="navPanelCreateButtonClick()">
|
|
14
|
+
<div class="flex-box">
|
|
15
|
+
<img class="psdk-nav-svg-icon" src="{{ navExpandCollapse$ }}" />
|
|
16
|
+
<span class="psdk-nav-button-span">Create</span>
|
|
17
|
+
</div>
|
|
18
|
+
</mat-list-item>
|
|
19
|
+
<mat-list *ngIf="bShowCaseTypes$" style="margin-left: 40px">
|
|
20
|
+
<mat-list-item
|
|
21
|
+
id="case-list-item"
|
|
22
|
+
*ngFor="let caseType of caseTypes$"
|
|
23
|
+
(click)="navPanelCreateCaseType(caseType.pyClassName, caseType.pyFlowType)"
|
|
24
|
+
>
|
|
25
|
+
<span class="psdk-nav-button-span">{{ caseType.pyLabel }}</span>
|
|
26
|
+
</mat-list-item>
|
|
27
|
+
</mat-list>
|
|
28
|
+
</mat-list>
|
|
29
|
+
</div>
|
|
30
|
+
<div style="height: 100%">
|
|
31
|
+
<mat-list *ngFor="let page of navPages$">
|
|
32
|
+
<mat-list-item (click)="navPanelButtonClick(page)">
|
|
33
|
+
<div class="flex-box">
|
|
34
|
+
<img class="psdk-nav-svg-icon" src="{{ page.iconName }}" />
|
|
35
|
+
<span class="psdk-nav-button-span">{{ localizedVal(page.pyLabel, localeCategory) }}</span>
|
|
36
|
+
</div>
|
|
37
|
+
</mat-list-item>
|
|
38
|
+
</mat-list>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="psdk-nav-divider"></div>
|
|
41
|
+
<div>
|
|
42
|
+
<mat-list>
|
|
43
|
+
<mat-list-item [matMenuTriggerFor]="menu" class="psdk-profile-list-item">
|
|
44
|
+
<div class="flex-box">
|
|
45
|
+
<div class="psdk-nav-oper-avatar">{{ portalOperatorInitials$ }}</div>
|
|
46
|
+
<span class="psdk-nav-button-span">{{ portalOperator$ }}</span>
|
|
47
|
+
</div>
|
|
48
|
+
</mat-list-item>
|
|
49
|
+
<mat-menu #menu="matMenu">
|
|
50
|
+
<button mat-menu-item>Profile</button>
|
|
51
|
+
<button mat-menu-item (click)="navPanelLogoutClick()">{{ localizedVal('Logoff', localeCategory) }}</button>
|
|
52
|
+
</mat-menu>
|
|
53
|
+
</mat-list>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
// Things related to movement
|
|
4
|
+
$transition-slow: 0.5s !default;
|
|
5
|
+
$transition-medium: 0.3s !default;
|
|
6
|
+
$transition-fast: 0.1s !default;
|
|
7
|
+
$natural-ease: cubic-bezier(0.4, 0.6, 0.1, 1) !default;
|
|
8
|
+
|
|
9
|
+
.psdk-nav-divider {
|
|
10
|
+
border-bottom: 0.0625rem solid invert($app-nav-bg, 15%);
|
|
11
|
+
width: 100%;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.psdk-nav-header {
|
|
16
|
+
display: flex;
|
|
17
|
+
padding-top: 0.625rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.psdk-nav-logo {
|
|
21
|
+
width: 3.75rem;
|
|
22
|
+
padding: 0.625rem;
|
|
23
|
+
margin-right: 1.25rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// background color white
|
|
27
|
+
.psdk-nav-svg-icon {
|
|
28
|
+
filter: $app-white-color-filter;
|
|
29
|
+
width: 1.6rem;
|
|
30
|
+
padding-right: 0.625rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.psdk-nav-portal-name {
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.psdk-nav-portal-app {
|
|
38
|
+
font-size: 1.25rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.psdk-appshell-nav {
|
|
42
|
+
z-index: 199;
|
|
43
|
+
position: fixed;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
background: $app-nav-bg;
|
|
48
|
+
width: $app-nav-width;
|
|
49
|
+
height: 100%;
|
|
50
|
+
color: invert($app-nav-bg, 100%);
|
|
51
|
+
overflow-y: auto;
|
|
52
|
+
overflow-x: hidden;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
transition: width $transition-medium $natural-ease;
|
|
55
|
+
will-change: width;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.psdk-appshell-nav:hover {
|
|
59
|
+
width: $app-nav-width-expanded;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.psdk-appshell-topnav {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
justify-content: flex-start;
|
|
66
|
+
background: $app-nav-bg;
|
|
67
|
+
width: $app-nav-width;
|
|
68
|
+
height: 15%;
|
|
69
|
+
color: invert($app-nav-bg, 100%);
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
transition: width $transition-medium $natural-ease;
|
|
73
|
+
will-change: width;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.psdk-appshell-middlenav {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
background: $app-nav-bg;
|
|
81
|
+
width: $app-nav-width;
|
|
82
|
+
height: 50%;
|
|
83
|
+
color: invert($app-nav-bg, 100%);
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
transition: width $transition-medium $natural-ease;
|
|
87
|
+
will-change: width;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.psdk-nav-ul-middle {
|
|
91
|
+
display: block;
|
|
92
|
+
list-style-type: none;
|
|
93
|
+
margin: 0rem;
|
|
94
|
+
padding-inline-start: 30px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.psdk-nav-li-middle {
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
text-align: left;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.psdk-icon {
|
|
103
|
+
padding: 0rem 0.125rem;
|
|
104
|
+
min-width: unset;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.psdk-nav-button-span {
|
|
108
|
+
padding: 0 1rem;
|
|
109
|
+
color: invert($app-nav-bg, 100%);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.psdk-nav-oper-avatar {
|
|
113
|
+
margin: 0rem;
|
|
114
|
+
padding: 0rem;
|
|
115
|
+
min-width: 2.5rem;
|
|
116
|
+
min-height: 2.5rem;
|
|
117
|
+
max-width: 2.5rem;
|
|
118
|
+
max-height: 2.5rem;
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
text-align: center;
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
background: $app-neutral-color;
|
|
125
|
+
color: white;
|
|
126
|
+
font-weight: normal;
|
|
127
|
+
font-size: 1rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
mat-list {
|
|
131
|
+
padding: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.psdk-profile-list-item {
|
|
135
|
+
padding-left: 24px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
mat-list-item {
|
|
139
|
+
padding: 20px 30px;
|
|
140
|
+
padding-right: 0;
|
|
141
|
+
cursor: pointer !important;
|
|
142
|
+
height: auto !important;
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.flex-box {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
width: 100%;
|
|
152
|
+
text-align: left;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { NavbarComponent } from './navbar.component';
|
|
4
|
+
|
|
5
|
+
describe('NavbarComponent', () => {
|
|
6
|
+
let component: NavbarComponent;
|
|
7
|
+
let fixture: ComponentFixture<NavbarComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [NavbarComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(NavbarComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { Component, OnInit, Input, ChangeDetectorRef, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
4
|
+
import { MatListModule } from '@angular/material/list';
|
|
5
|
+
import { logout } from '@pega/auth/lib/sdk-auth-manager';
|
|
6
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
7
|
+
import { ProgressSpinnerService } from '@pega/angular-sdk-components';
|
|
8
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
9
|
+
|
|
10
|
+
declare const window: any;
|
|
11
|
+
|
|
12
|
+
interface NavBarProps {
|
|
13
|
+
// If any, enter additional props that only exist on this component
|
|
14
|
+
showAppName?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'app-navbar',
|
|
19
|
+
templateUrl: './navbar.component.html',
|
|
20
|
+
styleUrls: ['./navbar.component.scss'],
|
|
21
|
+
providers: [Utils],
|
|
22
|
+
standalone: true,
|
|
23
|
+
imports: [CommonModule, MatListModule, MatMenuModule]
|
|
24
|
+
})
|
|
25
|
+
export class NavbarComponent implements OnInit, OnDestroy {
|
|
26
|
+
@Input() pConn$: typeof PConnect;
|
|
27
|
+
@Input() appName$: string;
|
|
28
|
+
@Input() pages$: any[];
|
|
29
|
+
@Input() caseTypes$: any[];
|
|
30
|
+
|
|
31
|
+
// For interaction with AngularPConnect
|
|
32
|
+
angularPConnectData: AngularPConnectData = {};
|
|
33
|
+
configProps$: NavBarProps;
|
|
34
|
+
|
|
35
|
+
navPages$: any[];
|
|
36
|
+
navExpandCollapse$: string;
|
|
37
|
+
bShowCaseTypes$ = false;
|
|
38
|
+
|
|
39
|
+
portalApp$ = '';
|
|
40
|
+
portalLogoImage$: string;
|
|
41
|
+
showAppName$?: boolean = false;
|
|
42
|
+
|
|
43
|
+
portalOperator$: string;
|
|
44
|
+
portalOperatorInitials$: string;
|
|
45
|
+
|
|
46
|
+
actionsAPI: any;
|
|
47
|
+
createWork: any;
|
|
48
|
+
showPage: any;
|
|
49
|
+
logout: any;
|
|
50
|
+
|
|
51
|
+
navIcon$: string;
|
|
52
|
+
localizedVal: any;
|
|
53
|
+
localeCategory = 'AppShell';
|
|
54
|
+
|
|
55
|
+
constructor(
|
|
56
|
+
private angularPConnect: AngularPConnectService,
|
|
57
|
+
private chRef: ChangeDetectorRef,
|
|
58
|
+
private psService: ProgressSpinnerService,
|
|
59
|
+
private ngZone: NgZone,
|
|
60
|
+
private utils: Utils
|
|
61
|
+
) {}
|
|
62
|
+
|
|
63
|
+
ngOnInit(): void {
|
|
64
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
65
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
66
|
+
|
|
67
|
+
this.navIcon$ = this.utils.getSDKStaticContentUrl().concat('assets/pzpega-logo-mark.svg');
|
|
68
|
+
|
|
69
|
+
// this is a dummy "get", because right now images are in http and the main screen is https
|
|
70
|
+
// so the images don't load automatically. This call, makes an initial hit that allows the
|
|
71
|
+
// rest of the images to show up
|
|
72
|
+
this.loadImage(this.navIcon$);
|
|
73
|
+
|
|
74
|
+
this.initComponent();
|
|
75
|
+
this.localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// ngOnDestroy
|
|
79
|
+
// unsubscribe from Store
|
|
80
|
+
ngOnDestroy(): void {
|
|
81
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
82
|
+
this.angularPConnectData.unsubscribeFn();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
loadImage(src: string) {
|
|
87
|
+
return new Promise(resolve => {
|
|
88
|
+
resolve(src);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Callback passed when subscribing to store change
|
|
93
|
+
onStateChange() {
|
|
94
|
+
// Should always check the bridge to see if the component should update itself (re-render)
|
|
95
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
96
|
+
|
|
97
|
+
// NOTE: can call angularPConnect.getState with optional args for detailed logging: bLogMsg and component object
|
|
98
|
+
this.angularPConnect.getState();
|
|
99
|
+
|
|
100
|
+
if (bUpdateSelf) {
|
|
101
|
+
this.updateSelf();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
updateSelf(): void {
|
|
106
|
+
this.initComponent();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
initComponent() {
|
|
110
|
+
this.ngZone.run(() => {
|
|
111
|
+
this.navIcon$ = this.utils.getSDKStaticContentUrl().concat('assets/pzpega-logo-mark.svg');
|
|
112
|
+
this.navExpandCollapse$ = this.utils.getImageSrc('plus', this.utils.getSDKStaticContentUrl());
|
|
113
|
+
|
|
114
|
+
// Then, continue on with other initialization
|
|
115
|
+
|
|
116
|
+
// making a copy, so can add info
|
|
117
|
+
this.navPages$ = JSON.parse(JSON.stringify(this.pages$));
|
|
118
|
+
|
|
119
|
+
this.navPages$.forEach(page => {
|
|
120
|
+
page.iconName = this.utils.getImageSrc(page.pxPageViewIcon, this.utils.getSDKStaticContentUrl());
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
this.actionsAPI = this.pConn$.getActionsApi();
|
|
124
|
+
this.createWork = this.actionsAPI.createWork.bind(this.actionsAPI);
|
|
125
|
+
this.showPage = this.actionsAPI.showPage.bind(this.actionsAPI);
|
|
126
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as NavBarProps;
|
|
127
|
+
this.logout = this.actionsAPI.logout.bind(this.actionsAPI);
|
|
128
|
+
|
|
129
|
+
// const oData = this.pConn$.getDataObject();
|
|
130
|
+
|
|
131
|
+
this.portalLogoImage$ = this.utils.getSDKStaticContentUrl().concat('assets/pzpega-logo-mark.svg');
|
|
132
|
+
this.portalOperator$ = PCore.getEnvironmentInfo().getOperatorName();
|
|
133
|
+
this.portalOperatorInitials$ = this.utils.getInitials(this.portalOperator$);
|
|
134
|
+
this.showAppName$ = this.configProps$.showAppName;
|
|
135
|
+
|
|
136
|
+
this.portalApp$ = PCore.getEnvironmentInfo().getApplicationLabel();
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
navPanelButtonClick(oPageData: any) {
|
|
141
|
+
const { pyClassName, pyRuleName } = oPageData;
|
|
142
|
+
|
|
143
|
+
this.showPage(pyRuleName, pyClassName);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
navPanelCreateButtonClick() {
|
|
147
|
+
if (this.navExpandCollapse$.indexOf('plus') > 0) {
|
|
148
|
+
this.navExpandCollapse$ = this.utils.getImageSrc('times', this.utils.getSDKStaticContentUrl());
|
|
149
|
+
this.bShowCaseTypes$ = true;
|
|
150
|
+
} else {
|
|
151
|
+
this.navExpandCollapse$ = this.utils.getImageSrc('plus', this.utils.getSDKStaticContentUrl());
|
|
152
|
+
this.bShowCaseTypes$ = false;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
this.chRef.detectChanges();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
navPanelCreateCaseType(sCaseType: string, sFlowType: string) {
|
|
159
|
+
this.psService.sendMessage(true);
|
|
160
|
+
this.navPanelCreateButtonClick();
|
|
161
|
+
|
|
162
|
+
const actionInfo = {
|
|
163
|
+
containerName: 'primary',
|
|
164
|
+
flowType: sFlowType || 'pyStartCase'
|
|
165
|
+
};
|
|
166
|
+
this.createWork(sCaseType, actionInfo);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
navPanelLogoutClick() {
|
|
170
|
+
logout().then(() => {
|
|
171
|
+
// Reload the page to kick off the login
|
|
172
|
+
window.location.reload();
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- Reference component is all static methods so .html not used -->
|
|
File without changes
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
5
|
+
* Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
|
|
6
|
+
* is totally at your own risk.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'app-reference',
|
|
11
|
+
templateUrl: './reference.component.html',
|
|
12
|
+
styleUrls: ['./reference.component.scss'],
|
|
13
|
+
standalone: true
|
|
14
|
+
})
|
|
15
|
+
export class ReferenceComponent {
|
|
16
|
+
referencedComponent: any = null;
|
|
17
|
+
|
|
18
|
+
/* Used to toggle some class-wide logging */
|
|
19
|
+
private static bLogging = false;
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
// With new static method approach, this shouldn't be called any more
|
|
23
|
+
window.alert(`in ReferenceComponent constructor!`);
|
|
24
|
+
|
|
25
|
+
console.error(`in ReferenceComponent constructor!`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// onStateChange and updateSelf methods removed from original implementation
|
|
29
|
+
// when we moved to the static method implementation.
|
|
30
|
+
|
|
31
|
+
// STATIC method to create a normalized PConn (a fully realized View that the 'reference'
|
|
32
|
+
// component refers to) from the given pConn. Has to add in some stuff as in the constructor
|
|
33
|
+
static createFullReferencedViewFromRef(inPConn: any) {
|
|
34
|
+
// BAIL and ERROR if inPConn is NOT a reference!
|
|
35
|
+
if (inPConn.getComponentName() !== 'reference') {
|
|
36
|
+
// debugger;
|
|
37
|
+
|
|
38
|
+
console.error(`Reference component: createFullReferencedViewFromRef inPConn is NOT a reference! ${inPConn.getComponentName()}`);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const theResolvedConfigProps = inPConn.resolveConfigProps(inPConn.getConfigProps());
|
|
42
|
+
|
|
43
|
+
const referenceConfig = { ...inPConn.getComponentConfig() } || {};
|
|
44
|
+
|
|
45
|
+
// Since SDK-A implements Reference as static methods and we don't rely on
|
|
46
|
+
// the Reference component's handling of the visibility prop, we leave it in
|
|
47
|
+
// (and also leaving the others in for now) so the referenced View can act on
|
|
48
|
+
// the visibility prop. (The following 3 lines were carried over from React SDK)
|
|
49
|
+
delete referenceConfig?.name;
|
|
50
|
+
// delete referenceConfig?.type;
|
|
51
|
+
// delete referenceConfig?.visibility;
|
|
52
|
+
|
|
53
|
+
const viewMetadata = inPConn.getReferencedView();
|
|
54
|
+
|
|
55
|
+
if (!viewMetadata) {
|
|
56
|
+
console.log('View not found ', inPConn.getComponentConfig());
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// If we get here, we have metadata for a View component...
|
|
61
|
+
// const referencedComponentName = viewMetadata.type;
|
|
62
|
+
|
|
63
|
+
const viewObject = {
|
|
64
|
+
...viewMetadata,
|
|
65
|
+
config: {
|
|
66
|
+
...viewMetadata.config,
|
|
67
|
+
...referenceConfig
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
if (ReferenceComponent.bLogging) {
|
|
72
|
+
console.log(`Reference: about to call createComponent with pageReference: context: ${theResolvedConfigProps.context}`);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const viewComponent = inPConn.createComponent(viewObject, null, null, {
|
|
76
|
+
pageReference: theResolvedConfigProps.context
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// updating the referencedComponent should trigger a render
|
|
80
|
+
const newCompPConnect = viewComponent.getPConnect();
|
|
81
|
+
|
|
82
|
+
newCompPConnect.setInheritedConfig({
|
|
83
|
+
...referenceConfig,
|
|
84
|
+
readOnly: theResolvedConfigProps.readOnly ? theResolvedConfigProps.readOnly : false,
|
|
85
|
+
displayMode: theResolvedConfigProps.displayMode ? theResolvedConfigProps.displayMode : null
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
if (ReferenceComponent.bLogging) {
|
|
89
|
+
console.log(
|
|
90
|
+
`Angular Reference component: createFullReferencedViewFromRef -> newCompPConnect configProps: ${JSON.stringify(
|
|
91
|
+
newCompPConnect.getConfigProps()
|
|
92
|
+
)}`
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return newCompPConnect;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// STATIC method that other components can call to normalize
|
|
100
|
+
// a pConn object that might be a 'reference'. If the incoming
|
|
101
|
+
// pConn is a reference, return its dereferenced View PConnect's
|
|
102
|
+
// getPConnect. Otherwise, return the passed in pConn unchanged
|
|
103
|
+
// inPConn = a PConn object (ex: { getPConnect()} )
|
|
104
|
+
static normalizePConn(inPConn: any) {
|
|
105
|
+
// debugger;
|
|
106
|
+
|
|
107
|
+
let returnObj = false;
|
|
108
|
+
let thePConnType = '';
|
|
109
|
+
|
|
110
|
+
if (inPConn.getPConnect) {
|
|
111
|
+
// inPConn is an object (ex: { getPConnect()} ), so we want to return
|
|
112
|
+
// any referenced view as the object containing the
|
|
113
|
+
// the getPConnect function
|
|
114
|
+
returnObj = true;
|
|
115
|
+
thePConnType = inPConn.getPConnect().getComponentName();
|
|
116
|
+
} else {
|
|
117
|
+
// inPConn is an object with the PConnect function, so we want
|
|
118
|
+
// to return any referenced view as the object containing the
|
|
119
|
+
// the c11n function
|
|
120
|
+
returnObj = false;
|
|
121
|
+
thePConnType = inPConn.getComponentName();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (thePConnType === 'reference') {
|
|
125
|
+
if (returnObj) {
|
|
126
|
+
// WAS...
|
|
127
|
+
// const theRefViewPConn = inPConn.getPConnect().getReferencedViewPConnect(true);
|
|
128
|
+
// Now: ALWAYS calling createFullReferencedViewFromRef to have options, PageReference, etc.
|
|
129
|
+
// set correctly in the C11nEnv (PConnect) object
|
|
130
|
+
// debugger;
|
|
131
|
+
let theRefViewPConn = this.createFullReferencedViewFromRef(inPConn.getPConnect());
|
|
132
|
+
// now return its PConnect
|
|
133
|
+
theRefViewPConn = theRefViewPConn.getComponent();
|
|
134
|
+
|
|
135
|
+
// const theFullReference = theRefViewPConn.getPConnect().getFullReference();
|
|
136
|
+
// console.log(`theFullReference: ${theFullReference}`);
|
|
137
|
+
|
|
138
|
+
return theRefViewPConn;
|
|
139
|
+
}
|
|
140
|
+
// console.log(`created theFullRefView full reference: ${theFullRefView.getFullReference()}`);
|
|
141
|
+
// debugger;
|
|
142
|
+
|
|
143
|
+
return this.createFullReferencedViewFromRef(inPConn);
|
|
144
|
+
}
|
|
145
|
+
return inPConn;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// STATIC method that other components can call to normalize
|
|
149
|
+
// an array of pConn objects where any of the children might
|
|
150
|
+
// be a 'reference'. The array returns an array of children
|
|
151
|
+
// where any 'reference' is replaced with its ReferencedView
|
|
152
|
+
// inPConnArray is an array of PConn objects or functions.
|
|
153
|
+
// Its value is passed to normalizePConn
|
|
154
|
+
|
|
155
|
+
static normalizePConnArray(inPConnArray: any) {
|
|
156
|
+
if (!(inPConnArray?.length > 0)) {
|
|
157
|
+
// null or empty array, return what was passed in
|
|
158
|
+
return inPConnArray;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return inPConnArray.map(child => {
|
|
162
|
+
return ReferenceComponent.normalizePConn(child);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- When adding a component here, add the same component in 'default-form' template as well -->
|
|
2
|
+
<div *ngFor="let kid of arChildren$">
|
|
3
|
+
<component-mapper
|
|
4
|
+
[name]="kid.getPConnect().getComponentName()"
|
|
5
|
+
[props]="{
|
|
6
|
+
pConn$: kid.getPConnect(),
|
|
7
|
+
formGroup$: formGroup$
|
|
8
|
+
}"
|
|
9
|
+
errorMsg="Region wants component not yet available: {{ kid.getPConnect().getComponentName() }}"
|
|
10
|
+
></component-mapper>
|
|
11
|
+
</div>
|