@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,157 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
6
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
7
|
+
|
|
8
|
+
const SUPPORTED_TYPES_IN_PROMOTED_FILTERS = [
|
|
9
|
+
'TextInput',
|
|
10
|
+
'Percentage',
|
|
11
|
+
'Email',
|
|
12
|
+
'Integer',
|
|
13
|
+
'Decimal',
|
|
14
|
+
'Checkbox',
|
|
15
|
+
'DateTime',
|
|
16
|
+
'Date',
|
|
17
|
+
'Time',
|
|
18
|
+
'Text',
|
|
19
|
+
'TextArea',
|
|
20
|
+
'Currency',
|
|
21
|
+
'URL',
|
|
22
|
+
'RichText'
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'app-promoted-filters',
|
|
27
|
+
templateUrl: './promoted-filters.component.html',
|
|
28
|
+
styleUrls: ['./promoted-filters.component.scss'],
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [CommonModule, MatButtonModule, forwardRef(() => ComponentMapperComponent)]
|
|
31
|
+
})
|
|
32
|
+
export class PromotedFiltersComponent implements OnInit, OnDestroy {
|
|
33
|
+
@Input() viewName;
|
|
34
|
+
@Input() filters;
|
|
35
|
+
@Input() listViewProps;
|
|
36
|
+
@Input() pageClass;
|
|
37
|
+
@Input() pConn$: typeof PConnect;
|
|
38
|
+
@Input() formGroup$: FormGroup;
|
|
39
|
+
@Input() parameters = {};
|
|
40
|
+
|
|
41
|
+
angularPConnectData: AngularPConnectData = {};
|
|
42
|
+
|
|
43
|
+
showFilters: boolean;
|
|
44
|
+
localeCategory = 'SimpleTable';
|
|
45
|
+
localizedVal;
|
|
46
|
+
filtersProperties = {};
|
|
47
|
+
showTable;
|
|
48
|
+
transientItemID;
|
|
49
|
+
processedFilters: any[] = [];
|
|
50
|
+
payload = {};
|
|
51
|
+
|
|
52
|
+
constructor(private angularPConnect: AngularPConnectService) {}
|
|
53
|
+
|
|
54
|
+
ngOnInit(): void {
|
|
55
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
56
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
57
|
+
this.updateSelf();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ngOnDestroy(): void {
|
|
61
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
62
|
+
this.angularPConnectData.unsubscribeFn();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
onStateChange() {
|
|
67
|
+
// Should always check the bridge to see if the component should
|
|
68
|
+
// update itself (re-render)
|
|
69
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
70
|
+
|
|
71
|
+
// ONLY call updateSelf when the component should update
|
|
72
|
+
if (bUpdateSelf) {
|
|
73
|
+
this.updateSelf();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
updateSelf() {
|
|
78
|
+
this.localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
79
|
+
this.filters.forEach(filter => {
|
|
80
|
+
this.filtersProperties[PCore.getAnnotationUtils().getPropertyName(filter.config.value)] = '';
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const filtersWithClassID = { ...this.filtersProperties, classID: this.pageClass };
|
|
84
|
+
this.transientItemID = (this.pConn$.getContainerManager() as any).addTransientItem({ id: this.viewName, data: filtersWithClassID });
|
|
85
|
+
this.processedFilters = [];
|
|
86
|
+
this.filters.forEach(filter => {
|
|
87
|
+
const filterClone = { ...filter };
|
|
88
|
+
// convert any field which is not supported to TextInput and delete the placeholder as it may contain placeholder specific to original type.
|
|
89
|
+
if (!SUPPORTED_TYPES_IN_PROMOTED_FILTERS.includes(filterClone.type)) {
|
|
90
|
+
filterClone.type = 'TextInput';
|
|
91
|
+
delete filterClone.config.placeholder;
|
|
92
|
+
}
|
|
93
|
+
filterClone.config.contextName = this.transientItemID;
|
|
94
|
+
filterClone.config.readOnly = false;
|
|
95
|
+
filterClone.config.context = this.transientItemID;
|
|
96
|
+
filterClone.config.localeReference = this.listViewProps.localeReference;
|
|
97
|
+
const c11nEnv = PCore.createPConnect({
|
|
98
|
+
meta: filterClone,
|
|
99
|
+
options: {
|
|
100
|
+
hasForm: true,
|
|
101
|
+
contextName: this.transientItemID
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
this.processedFilters.push(c11nEnv);
|
|
105
|
+
});
|
|
106
|
+
this.showFilters = true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
formatPromotedFilters(promotedFilters) {
|
|
110
|
+
return Object.entries(promotedFilters).reduce((acc, [field, value]) => {
|
|
111
|
+
if (value) {
|
|
112
|
+
acc[field] = {
|
|
113
|
+
lhs: {
|
|
114
|
+
field
|
|
115
|
+
},
|
|
116
|
+
comparator: 'EQ',
|
|
117
|
+
rhs: {
|
|
118
|
+
value
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
return acc;
|
|
123
|
+
}, {});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
isValidInput(input) {
|
|
127
|
+
return Object.values(input).findIndex(v => v) >= 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
getFilterData() {
|
|
131
|
+
const changes = PCore.getFormUtils().getChanges(this.transientItemID);
|
|
132
|
+
const formValues = {};
|
|
133
|
+
Object.keys(changes).forEach(key => {
|
|
134
|
+
if (!['context_data', 'pageInstructions'].includes(key)) {
|
|
135
|
+
formValues[key] = changes[key];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const promotedFilters = this.formatPromotedFilters(formValues);
|
|
139
|
+
if (PCore.getFormUtils().isFormValid(this.transientItemID) && this.isValidInput(formValues)) {
|
|
140
|
+
this.showTable = true;
|
|
141
|
+
const Query: any = {
|
|
142
|
+
dataViewParameters: this.parameters || {}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
if (Object.keys(promotedFilters).length > 0) {
|
|
146
|
+
Query.query = { filter: { filterConditions: promotedFilters } };
|
|
147
|
+
}
|
|
148
|
+
this.payload = Query;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
clearFilterData() {
|
|
153
|
+
PCore.getContainerUtils().clearTransientData(this.transientItemID);
|
|
154
|
+
this.showTable = false;
|
|
155
|
+
this.pConn$?.getListActions?.()?.setSelectedRows([]); // Clear the selection (if any made by user)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<mat-form-field class="psdk-search">
|
|
3
|
+
<mat-label
|
|
4
|
+
><mat-icon class="psdk-icon-search" style="transform: scale(1.2); width: 2rem; vertical-align: sub" svgIcon="magnify" mastListIcon></mat-icon>
|
|
5
|
+
Search</mat-label
|
|
6
|
+
>
|
|
7
|
+
<input matInput (keyup)="applySearch($event)" placeholder="" />
|
|
8
|
+
</mat-form-field>
|
|
9
|
+
|
|
10
|
+
<table mat-table [dataSource]="repeatList$" matSort>
|
|
11
|
+
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.name">
|
|
12
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ dCol.label }}</th>
|
|
13
|
+
<td mat-cell *matCellDef="let element">{{ element[dCol.name] }}</td>
|
|
14
|
+
</ng-container>
|
|
15
|
+
|
|
16
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns$"></tr>
|
|
17
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns$" (click)="rowClick(row)"></tr>
|
|
18
|
+
</table>
|
|
19
|
+
|
|
20
|
+
<mat-paginator [pageSizeOptions]="[10, 20, 50, 100, 500]" showFirstLastButtons></mat-paginator>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { RepeatingStructuresComponent } from './repeating-structures.component';
|
|
4
|
+
|
|
5
|
+
describe('RepeatingStructuresComponent', () => {
|
|
6
|
+
let component: RepeatingStructuresComponent;
|
|
7
|
+
let fixture: ComponentFixture<RepeatingStructuresComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [RepeatingStructuresComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(RepeatingStructuresComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Component, OnInit, Input, ViewChild, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatInputModule } from '@angular/material/input';
|
|
4
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
|
+
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
7
|
+
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
8
|
+
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
9
|
+
import { ProgressSpinnerService } from '@pega/angular-sdk-components';
|
|
10
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
11
|
+
|
|
12
|
+
interface RepeatingStructuresProps {
|
|
13
|
+
referenceList?: any[];
|
|
14
|
+
rowClickAction?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'app-repeating-structures',
|
|
19
|
+
templateUrl: './repeating-structures.component.html',
|
|
20
|
+
styleUrls: ['./repeating-structures.component.scss'],
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [CommonModule, MatFormFieldModule, MatIconModule, MatInputModule, MatTableModule, MatSortModule, MatPaginatorModule]
|
|
23
|
+
})
|
|
24
|
+
export class RepeatingStructuresComponent implements OnInit, AfterViewInit {
|
|
25
|
+
@ViewChild(MatPaginator) paginator: MatPaginator;
|
|
26
|
+
@ViewChild(MatSort) sort: MatSort;
|
|
27
|
+
@Input() pConn$: typeof PConnect;
|
|
28
|
+
|
|
29
|
+
configProps$: RepeatingStructuresProps;
|
|
30
|
+
repeatList$: MatTableDataSource<any>;
|
|
31
|
+
fields$: any[];
|
|
32
|
+
displayedColumns$ = Array<string>();
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
private psService: ProgressSpinnerService,
|
|
36
|
+
private utils: Utils
|
|
37
|
+
) {}
|
|
38
|
+
|
|
39
|
+
ngOnInit(): void {
|
|
40
|
+
const componentConfig = (this.pConn$.getRawMetadata() as any).config || { fields: [] };
|
|
41
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
|
|
42
|
+
this.fields$ = this.initializeColumns(componentConfig.fields);
|
|
43
|
+
|
|
44
|
+
const refList = this.configProps$.referenceList;
|
|
45
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
46
|
+
const tableDataResults = JSON.parse(JSON.stringify(this.pConn$.getValue(refList)));
|
|
47
|
+
|
|
48
|
+
// update elements like date format
|
|
49
|
+
const updatedRefList = this.updateData(tableDataResults, this.fields$);
|
|
50
|
+
|
|
51
|
+
this.repeatList$ = new MatTableDataSource(updatedRefList);
|
|
52
|
+
this.displayedColumns$ = this.getDisplayColumns(this.fields$);
|
|
53
|
+
this.repeatList$.paginator = this.paginator;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
ngAfterViewInit() {
|
|
57
|
+
// paginator has to exist for this to work,
|
|
58
|
+
// so called after init (paginator drawn)
|
|
59
|
+
this.repeatList$.paginator = this.paginator;
|
|
60
|
+
this.repeatList$.sort = this.sort;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
applySearch(event: Event) {
|
|
64
|
+
const filterValue = (event.target as HTMLInputElement).value;
|
|
65
|
+
this.repeatList$.filter = filterValue.trim().toLowerCase();
|
|
66
|
+
|
|
67
|
+
if (this.repeatList$.paginator) {
|
|
68
|
+
this.repeatList$.paginator.firstPage();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
rowClick(row) {
|
|
73
|
+
// eslint-disable-next-line sonarjs/no-small-switch
|
|
74
|
+
switch (this.configProps$.rowClickAction) {
|
|
75
|
+
case 'openAssignment':
|
|
76
|
+
this.psService.sendMessage(true);
|
|
77
|
+
this.openAssignment(row);
|
|
78
|
+
break;
|
|
79
|
+
default:
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
updateData(listData: any[], fieldData: any[]): any[] {
|
|
85
|
+
const returnList: any[] = new Array<any>();
|
|
86
|
+
listData.forEach(row => {
|
|
87
|
+
// copy
|
|
88
|
+
const rowData = JSON.parse(JSON.stringify(listData[row]));
|
|
89
|
+
|
|
90
|
+
for (let fieldIndex = 0; fieldIndex < fieldData.length; fieldIndex++) {
|
|
91
|
+
if (fieldData[fieldIndex].type == 'date') {
|
|
92
|
+
const fieldName = fieldData[fieldIndex].name;
|
|
93
|
+
const formattedDate = rowData[fieldName];
|
|
94
|
+
|
|
95
|
+
// format date
|
|
96
|
+
// formattedDate = formattedDate.replace("GMT", "+0000");
|
|
97
|
+
this.utils.generateDateTime(formattedDate, 'MMMM D, YYYY h:mm:ss A');
|
|
98
|
+
|
|
99
|
+
// update
|
|
100
|
+
rowData[fieldName] = formattedDate;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
returnList.push(rowData);
|
|
104
|
+
});
|
|
105
|
+
return returnList;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
openAssignment(row) {
|
|
109
|
+
const { pxRefObjectClass, pzInsKey } = row;
|
|
110
|
+
const sTarget = this.pConn$.getContainerName();
|
|
111
|
+
const options: any = { containerName: sTarget };
|
|
112
|
+
this.pConn$
|
|
113
|
+
.getActionsApi()
|
|
114
|
+
.openAssignment(pzInsKey, pxRefObjectClass, options)
|
|
115
|
+
.then(() => {});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
initializeData(data) {
|
|
119
|
+
data.forEach((item, idx) => {
|
|
120
|
+
item.__original_index = idx;
|
|
121
|
+
item.__level = 1;
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
return data;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
getType(field) {
|
|
128
|
+
const { config = {}, type } = field;
|
|
129
|
+
const { formatType } = config;
|
|
130
|
+
if (formatType === 'datetime' || formatType === 'date') {
|
|
131
|
+
// currently cosmos has only support for date ... it also need to support dateTime
|
|
132
|
+
return 'date';
|
|
133
|
+
}
|
|
134
|
+
return type.toLowerCase();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
initializeColumns(fields = []) {
|
|
138
|
+
return fields.map((field: any, originalColIndex) => ({
|
|
139
|
+
...field,
|
|
140
|
+
type: this.getType(field),
|
|
141
|
+
name: field.config.value.substring(4),
|
|
142
|
+
label: field.config.label.substring(3),
|
|
143
|
+
id: originalColIndex,
|
|
144
|
+
groupingEnabled: true,
|
|
145
|
+
grouped: false,
|
|
146
|
+
minWidth: 50,
|
|
147
|
+
cellRenderer: this.getType(field) === 'text' ? null : field.type,
|
|
148
|
+
filter: true
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
getDisplayColumns(fields: any[] = []): string[] {
|
|
153
|
+
return fields.map((field: any) => field.name);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<ng-container *ngIf="bVisible$">
|
|
2
|
+
<div *ngIf="fieldGroupProps || listViewProps; else table">
|
|
3
|
+
<div *ngIf="fieldGroupProps">
|
|
4
|
+
<component-mapper name="FieldGroupTemplate" [props]="{ configProps$: fieldGroupProps, pConn$, formGroup$ }"></component-mapper>
|
|
5
|
+
</div>
|
|
6
|
+
<div *ngIf="listViewProps">
|
|
7
|
+
<component-mapper name="ListView" [props]="{ pConn$: refToPConnect, payload: listViewProps }"></component-mapper>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<ng-template #table>
|
|
11
|
+
<component-mapper name="SimpleTableManual" [props]="{ pConn$, formGroup$ }"></component-mapper>
|
|
12
|
+
</ng-template>
|
|
13
|
+
</ng-container>
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SimpleTableComponent } from './simple-table.component';
|
|
4
|
+
|
|
5
|
+
describe('SimpleTableComponent', () => {
|
|
6
|
+
let component: SimpleTableComponent;
|
|
7
|
+
let fixture: ComponentFixture<SimpleTableComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [SimpleTableComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(SimpleTableComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
5
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
6
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
7
|
+
import { buildMetaForListView, getContext } from '@pega/angular-sdk-components';
|
|
8
|
+
|
|
9
|
+
interface SimpleTableProps {
|
|
10
|
+
// If any, enter additional props that only exist on this component
|
|
11
|
+
multiRecordDisplayAs: string;
|
|
12
|
+
contextClass: any;
|
|
13
|
+
visibility: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
propertyLabel: string;
|
|
16
|
+
displayMode: string;
|
|
17
|
+
fieldMetadata: any;
|
|
18
|
+
hideLabel: boolean;
|
|
19
|
+
parameters: any;
|
|
20
|
+
isDataObject: boolean;
|
|
21
|
+
type: string;
|
|
22
|
+
ruleClass: string;
|
|
23
|
+
authorContext: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@Component({
|
|
28
|
+
selector: 'app-simple-table',
|
|
29
|
+
templateUrl: './simple-table.component.html',
|
|
30
|
+
styleUrls: ['./simple-table.component.scss'],
|
|
31
|
+
standalone: true,
|
|
32
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
33
|
+
})
|
|
34
|
+
export class SimpleTableComponent implements OnInit, OnDestroy {
|
|
35
|
+
@Input() pConn$: typeof PConnect;
|
|
36
|
+
@Input() formGroup$: FormGroup;
|
|
37
|
+
|
|
38
|
+
angularPConnectData: AngularPConnectData = {};
|
|
39
|
+
|
|
40
|
+
bVisible$ = true;
|
|
41
|
+
configProps$: SimpleTableProps;
|
|
42
|
+
fieldGroupProps: any;
|
|
43
|
+
listViewProps: any;
|
|
44
|
+
refToPConnect: any;
|
|
45
|
+
|
|
46
|
+
constructor(
|
|
47
|
+
private angularPConnect: AngularPConnectService,
|
|
48
|
+
private utils: Utils
|
|
49
|
+
) {}
|
|
50
|
+
|
|
51
|
+
ngOnInit(): void {
|
|
52
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
53
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
54
|
+
// Then, continue on with other initialization
|
|
55
|
+
|
|
56
|
+
// call checkAndUpdate when initializing
|
|
57
|
+
this.checkAndUpdate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ngOnDestroy(): void {
|
|
61
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
62
|
+
this.angularPConnectData.unsubscribeFn();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
checkAndUpdate() {
|
|
67
|
+
// Should always check the bridge to see if the component should
|
|
68
|
+
// update itself (re-render)
|
|
69
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
70
|
+
|
|
71
|
+
// ONLY call updateSelf when the component should update
|
|
72
|
+
if (bUpdateSelf) {
|
|
73
|
+
this.updateSelf();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// updateSelf
|
|
78
|
+
updateSelf(): void {
|
|
79
|
+
// moved this from ngOnInit() and call this from there instead...
|
|
80
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as SimpleTableProps;
|
|
81
|
+
|
|
82
|
+
if (this.configProps$.visibility != null) {
|
|
83
|
+
// eslint-disable-next-line no-multi-assign
|
|
84
|
+
this.bVisible$ = this.bVisible$ = this.utils.getBooleanValue(this.configProps$.visibility);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const { multiRecordDisplayAs } = this.configProps$;
|
|
88
|
+
let { contextClass } = this.configProps$;
|
|
89
|
+
if (!contextClass) {
|
|
90
|
+
// @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'
|
|
91
|
+
let listName = this.pConn$.getComponentConfig().referenceList;
|
|
92
|
+
listName = PCore.getAnnotationUtils().getPropertyName(listName);
|
|
93
|
+
// @ts-ignore - Property 'getFieldMetadata' is private and only accessible within class 'C11nEnv'
|
|
94
|
+
contextClass = this.pConn$.getFieldMetadata(listName)?.pageClass;
|
|
95
|
+
}
|
|
96
|
+
if (multiRecordDisplayAs === 'fieldGroup') {
|
|
97
|
+
this.fieldGroupProps = { ...this.configProps$, contextClass };
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const {
|
|
101
|
+
label: labelProp,
|
|
102
|
+
propertyLabel,
|
|
103
|
+
displayMode,
|
|
104
|
+
fieldMetadata,
|
|
105
|
+
hideLabel,
|
|
106
|
+
parameters,
|
|
107
|
+
isDataObject,
|
|
108
|
+
type,
|
|
109
|
+
ruleClass,
|
|
110
|
+
authorContext,
|
|
111
|
+
name
|
|
112
|
+
} = this.configProps$;
|
|
113
|
+
|
|
114
|
+
const label = labelProp || propertyLabel;
|
|
115
|
+
|
|
116
|
+
const propsToUse = { label, ...this.pConn$.getInheritedProps() };
|
|
117
|
+
const isDisplayModeEnabled = displayMode === 'DISPLAY_ONLY';
|
|
118
|
+
|
|
119
|
+
if (fieldMetadata && fieldMetadata.type === 'Page List' && fieldMetadata.dataRetrievalType === 'refer') {
|
|
120
|
+
const {
|
|
121
|
+
children: [{ children: rawFields }],
|
|
122
|
+
parameters: rawParams
|
|
123
|
+
} = (this.pConn$.getRawMetadata() as any).config;
|
|
124
|
+
|
|
125
|
+
if (isDisplayModeEnabled && hideLabel) {
|
|
126
|
+
propsToUse.label = '';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const metaForListView = buildMetaForListView(
|
|
130
|
+
fieldMetadata,
|
|
131
|
+
rawFields,
|
|
132
|
+
type,
|
|
133
|
+
ruleClass,
|
|
134
|
+
name,
|
|
135
|
+
propsToUse.label,
|
|
136
|
+
isDataObject,
|
|
137
|
+
parameters // resolved params
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
const metaForPConnect = JSON.parse(JSON.stringify(metaForListView));
|
|
141
|
+
// @ts-ignore - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.
|
|
142
|
+
metaForPConnect.config.parameters = rawParams ?? PCore.getMetadataUtils().getPropertyMetadata(name)?.datasource?.parameters;
|
|
143
|
+
|
|
144
|
+
const { referenceListStr: referenceList } = getContext(this.pConn$);
|
|
145
|
+
let requiredContextForQueryInDisplayMode = {};
|
|
146
|
+
if (isDisplayModeEnabled) {
|
|
147
|
+
requiredContextForQueryInDisplayMode = {
|
|
148
|
+
referenceList
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
const options = {
|
|
152
|
+
context: this.pConn$.getContextName(),
|
|
153
|
+
pageReference: this.pConn$.getPageReference(),
|
|
154
|
+
...requiredContextForQueryInDisplayMode
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
this.refToPConnect = PCore.createPConnect({ meta: metaForPConnect, options }).getPConnect();
|
|
158
|
+
|
|
159
|
+
this.listViewProps = {
|
|
160
|
+
...metaForListView.config,
|
|
161
|
+
displayMode,
|
|
162
|
+
fieldName: authorContext
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Callback passed when subscribing to store change
|
|
168
|
+
onStateChange() {
|
|
169
|
+
this.checkAndUpdate();
|
|
170
|
+
}
|
|
171
|
+
}
|