@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,294 @@
|
|
|
1
|
+
import { getSeconds } from '@pega/angular-sdk-components';
|
|
2
|
+
|
|
3
|
+
export const TABLE_CELL = 'SdkRenderer';
|
|
4
|
+
export const DELETE_ICON = 'DeleteIcon';
|
|
5
|
+
|
|
6
|
+
// BUG-615253: Workaround for autosize in table with lazy loading components
|
|
7
|
+
/* istanbul ignore next */
|
|
8
|
+
function getFieldWidth(field, label) {
|
|
9
|
+
let width;
|
|
10
|
+
switch (field.type) {
|
|
11
|
+
case 'Time':
|
|
12
|
+
width = 150;
|
|
13
|
+
break;
|
|
14
|
+
case 'Date':
|
|
15
|
+
width = 160;
|
|
16
|
+
break;
|
|
17
|
+
case 'DateTime':
|
|
18
|
+
width = 205;
|
|
19
|
+
break;
|
|
20
|
+
case 'AutoComplete':
|
|
21
|
+
case 'TextArea':
|
|
22
|
+
width = 190;
|
|
23
|
+
break;
|
|
24
|
+
case 'Currency':
|
|
25
|
+
case 'TextInput':
|
|
26
|
+
width = 182;
|
|
27
|
+
break;
|
|
28
|
+
case 'Checkbox':
|
|
29
|
+
// eslint-disable-next-line no-case-declarations
|
|
30
|
+
const text = document.createElement('span');
|
|
31
|
+
document.body.appendChild(text);
|
|
32
|
+
text.style.fontSize = '13px';
|
|
33
|
+
text.style.position = 'absolute';
|
|
34
|
+
text.innerHTML = label;
|
|
35
|
+
width = Math.ceil(text.clientWidth) + 30;
|
|
36
|
+
document.body.removeChild(text);
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
width = 180;
|
|
40
|
+
}
|
|
41
|
+
return width;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const getContext = thePConn => {
|
|
45
|
+
const contextName = thePConn.getContextName();
|
|
46
|
+
const pageReference = thePConn.getPageReference();
|
|
47
|
+
// 8.7 change = referenceList may now be in top-level of state props,
|
|
48
|
+
// not always in config of state props
|
|
49
|
+
let { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
|
|
50
|
+
const pageReferenceForRows = referenceList.startsWith('.') ? `${pageReference}.${referenceList.substring(1)}` : referenceList;
|
|
51
|
+
|
|
52
|
+
// removing "caseInfo.content" prefix to avoid setting it as a target while preparing pageInstructions
|
|
53
|
+
referenceList = pageReferenceForRows.replace(PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT, '');
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
contextName,
|
|
57
|
+
referenceListStr: referenceList,
|
|
58
|
+
pageReferenceForRows
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const populateRowKey = rawData => {
|
|
63
|
+
return rawData.map((row, index) => {
|
|
64
|
+
return { ...row, index };
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const getApiContext = (processedData, pConnect, reorderCB) => {
|
|
69
|
+
return {
|
|
70
|
+
fetchData: () => {
|
|
71
|
+
return new Promise(resolve => {
|
|
72
|
+
resolve({
|
|
73
|
+
data: processedData,
|
|
74
|
+
filteredRecordCount: processedData.length,
|
|
75
|
+
totalRecordCount: processedData.length
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
fetchPersonalizations: () => {
|
|
80
|
+
return Promise.resolve({});
|
|
81
|
+
},
|
|
82
|
+
applyRowReorder: (sourceKey, destinationKey) => {
|
|
83
|
+
// indexes are keys for simple table so, it should work.
|
|
84
|
+
reorderCB();
|
|
85
|
+
return Promise.resolve(pConnect.getListActions().reorder(parseInt(sourceKey, 10), parseInt(destinationKey, 10)));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const buildMetaForListView = (fieldMetadata, fields, type, ruleClass, name, propertyLabel, isDataObject, parameters) => {
|
|
91
|
+
return {
|
|
92
|
+
name,
|
|
93
|
+
config: {
|
|
94
|
+
type,
|
|
95
|
+
referenceList: fieldMetadata.datasource.name,
|
|
96
|
+
parameters: parameters ?? fieldMetadata.datasource.parameters,
|
|
97
|
+
personalization: false,
|
|
98
|
+
isDataObject,
|
|
99
|
+
grouping: true,
|
|
100
|
+
globalSearch: true,
|
|
101
|
+
reorderFields: true,
|
|
102
|
+
toggleFieldVisibility: true,
|
|
103
|
+
title: propertyLabel,
|
|
104
|
+
personalizationId: '' /* TODO */,
|
|
105
|
+
template: 'ListView',
|
|
106
|
+
presets: [
|
|
107
|
+
{
|
|
108
|
+
name: 'presets',
|
|
109
|
+
template: 'Table',
|
|
110
|
+
config: {},
|
|
111
|
+
children: [
|
|
112
|
+
{
|
|
113
|
+
name: 'Columns',
|
|
114
|
+
type: 'Region',
|
|
115
|
+
children: fields
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
label: propertyLabel,
|
|
119
|
+
id: 'P_' /* TODO */
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
ruleClass
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const buildFieldsForTable = (configFields, fields, showDeleteButton) => {
|
|
128
|
+
const fieldDefs = configFields?.map((field, index) => {
|
|
129
|
+
return {
|
|
130
|
+
type: 'text',
|
|
131
|
+
label: fields[index].config.label || fields[index].config.caption,
|
|
132
|
+
fillAvailableSpace: !!field.config.fillAvailableSpace,
|
|
133
|
+
id: index,
|
|
134
|
+
name: field.config.value.substr(4),
|
|
135
|
+
cellRenderer: TABLE_CELL,
|
|
136
|
+
sort: false,
|
|
137
|
+
noContextMenu: true,
|
|
138
|
+
showMenu: false,
|
|
139
|
+
meta: {
|
|
140
|
+
...field
|
|
141
|
+
},
|
|
142
|
+
// BUG-615253: Workaround for autosize in table with lazy loading components
|
|
143
|
+
width: getFieldWidth(field, fields[index].config.label)
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
// ONLY add DELETE_ICON to fields when the table is requested as EDITABLE
|
|
148
|
+
if (showDeleteButton) {
|
|
149
|
+
fieldDefs.push({
|
|
150
|
+
type: 'text',
|
|
151
|
+
label: '',
|
|
152
|
+
name: DELETE_ICON,
|
|
153
|
+
id: fieldDefs.length,
|
|
154
|
+
cellRenderer: DELETE_ICON,
|
|
155
|
+
sort: false,
|
|
156
|
+
noContextMenu: true,
|
|
157
|
+
showMenu: false,
|
|
158
|
+
// BUG-615253: Workaround for autosize in table with lazy loading components
|
|
159
|
+
width: 46
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return fieldDefs;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export const createMetaForTable = (fields, renderMode) => {
|
|
167
|
+
return {
|
|
168
|
+
height: {
|
|
169
|
+
minHeight: 'auto',
|
|
170
|
+
fitHeightToElement: 'fitHeightToElement',
|
|
171
|
+
deltaAdjustment: 'deltaAdjustment',
|
|
172
|
+
autoSize: true
|
|
173
|
+
},
|
|
174
|
+
fieldDefs: fields,
|
|
175
|
+
itemKey: 'index',
|
|
176
|
+
grouping: false,
|
|
177
|
+
reorderFields: false,
|
|
178
|
+
reorderItems: renderMode === 'Editable',
|
|
179
|
+
dragHandle: renderMode === 'Editable',
|
|
180
|
+
globalSearch: false,
|
|
181
|
+
personalization: false,
|
|
182
|
+
toggleFieldVisibility: false,
|
|
183
|
+
toolbar: false,
|
|
184
|
+
footer: false,
|
|
185
|
+
filterExpression: null,
|
|
186
|
+
editing: false,
|
|
187
|
+
timezone: PCore.getEnvironmentInfo().getTimeZone()
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export const filterDataByDate = (item, filterObj) => {
|
|
192
|
+
let bKeep;
|
|
193
|
+
let value = item[filterObj.ref] != null ?? item[filterObj.ref] != '' ? getSeconds(item[filterObj.ref]) : null;
|
|
194
|
+
let filterValue = filterObj.containsFilterValue != null && filterObj.containsFilterValue != '' ? getSeconds(filterObj.containsFilterValue) : null;
|
|
195
|
+
|
|
196
|
+
switch (filterObj.containsFilter) {
|
|
197
|
+
case 'notequal':
|
|
198
|
+
// becasue filterValue is in minutes, need to have a range of less than 60 secons
|
|
199
|
+
|
|
200
|
+
if (value != null && filterValue != null) {
|
|
201
|
+
// get rid of millisecons
|
|
202
|
+
value /= 1000;
|
|
203
|
+
filterValue /= 1000;
|
|
204
|
+
|
|
205
|
+
const diff = value - filterValue;
|
|
206
|
+
if (diff >= 0 && diff < 60) {
|
|
207
|
+
bKeep = false;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
break;
|
|
212
|
+
case 'after':
|
|
213
|
+
if (value < filterValue) {
|
|
214
|
+
bKeep = false;
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
217
|
+
case 'before':
|
|
218
|
+
if (value > filterValue) {
|
|
219
|
+
bKeep = false;
|
|
220
|
+
}
|
|
221
|
+
break;
|
|
222
|
+
case 'null':
|
|
223
|
+
if (value != null) {
|
|
224
|
+
bKeep = false;
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
case 'notnull':
|
|
228
|
+
if (value == null) {
|
|
229
|
+
bKeep = false;
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
default:
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return bKeep;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export const filterDataByCommonFields = (item, filterObj) => {
|
|
240
|
+
let bKeep;
|
|
241
|
+
const value = item[filterObj.ref].toLowerCase();
|
|
242
|
+
const filterValue = filterObj.containsFilterValue.toLowerCase();
|
|
243
|
+
|
|
244
|
+
switch (filterObj.containsFilter) {
|
|
245
|
+
case 'contains':
|
|
246
|
+
if (value.indexOf(filterValue) < 0) {
|
|
247
|
+
bKeep = false;
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
250
|
+
case 'equals':
|
|
251
|
+
if (value != filterValue) {
|
|
252
|
+
bKeep = false;
|
|
253
|
+
}
|
|
254
|
+
break;
|
|
255
|
+
case 'startswith':
|
|
256
|
+
if (value.indexOf(filterValue) != 0) {
|
|
257
|
+
bKeep = false;
|
|
258
|
+
}
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
return bKeep;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* This method returns a callBack function for Add action.
|
|
269
|
+
* @param {object} pConnect - PConnect object
|
|
270
|
+
* @param {number} index - index of the page list to add
|
|
271
|
+
*/
|
|
272
|
+
export const getAddRowCallback = (pConnect, index) => {
|
|
273
|
+
return () => pConnect.getListActions().insert({}, index);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* This method creates a PConnect object with proper options for Add and Delete actions
|
|
278
|
+
* @param {string} contextName - contextName
|
|
279
|
+
* @param {string} referenceList - referenceList
|
|
280
|
+
* @param {string} pageReference - pageReference
|
|
281
|
+
*/
|
|
282
|
+
export const createPConnect = (contextName, referenceList, pageReference) => {
|
|
283
|
+
const options = {
|
|
284
|
+
context: contextName,
|
|
285
|
+
pageReference,
|
|
286
|
+
referenceList
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
// create PConnect object
|
|
290
|
+
const config = { meta: {}, options };
|
|
291
|
+
const { getPConnect } = PCore.createPConnect(config);
|
|
292
|
+
|
|
293
|
+
return getPConnect();
|
|
294
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<ng-container *ngIf="bVisible$">
|
|
2
|
+
<div class="simple-table-wrapper">
|
|
3
|
+
<h3 *ngIf="label" className="label" style="font-weight: bold">
|
|
4
|
+
{{ label }} <span class="results-count">{{ getResultsText() }}</span>
|
|
5
|
+
</h3>
|
|
6
|
+
<table *ngIf="readOnlyMode || allowEditingInModal" mat-table [dataSource]="rowData" class="mat-elevation-z8" id="readonly-table" matSort>
|
|
7
|
+
<ng-container *ngFor="let dCol of processedFields" [matColumnDef]="dCol.config.name">
|
|
8
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header (click)="_headerSortClick($event, dCol)" arrowPosition="before">
|
|
9
|
+
<div>{{ dCol.config.label }}</div>
|
|
10
|
+
<div class="psdk-mat-header-filter">
|
|
11
|
+
<img class="psdk-filter-svg-icon" name="filterOnIcon" />
|
|
12
|
+
</div>
|
|
13
|
+
<div (click)="$event.stopPropagation()">
|
|
14
|
+
<button mat-icon-button [matMenuTriggerFor]="groupMenu">
|
|
15
|
+
<img class="psdk-list-view-svg-icon" src="{{ menuSvgIcon$ }}" />
|
|
16
|
+
</button>
|
|
17
|
+
<mat-menu #groupMenu>
|
|
18
|
+
<button mat-menu-item (click)="_groupBy($event, dCol)">
|
|
19
|
+
<img class="psdk-list-view-svg-icon" src="{{ groupBySvgIcon$ }}" /><span>Group By</span>
|
|
20
|
+
</button>
|
|
21
|
+
<button *ngIf="_showUnGroupBy(dCol) && bGrouping$" mat-menu-item (click)="_unGroupBy($event, dCol)">
|
|
22
|
+
<img class="psdk-list-view-svg-icon" src="{{ groupBySvgIcon$ }}" /><span>Ungroup</span>
|
|
23
|
+
</button>
|
|
24
|
+
<button mat-menu-item (click)="_filter($event, dCol)">
|
|
25
|
+
<img class="psdk-list-view-svg-icon" src="{{ filterSvgIcon$ }}" /><span>Filter</span>
|
|
26
|
+
</button>
|
|
27
|
+
</mat-menu>
|
|
28
|
+
</div>
|
|
29
|
+
</th>
|
|
30
|
+
<td mat-cell *matCellDef="let element">{{ element[dCol.config.name] }}</td>
|
|
31
|
+
</ng-container>
|
|
32
|
+
<ng-container matColumnDef="DeleteIcon">
|
|
33
|
+
<div *ngIf="allowEditingInModal">
|
|
34
|
+
<th mat-header-cell *matHeaderCellDef></th>
|
|
35
|
+
<td mat-cell *matCellDef="let element; index as j">
|
|
36
|
+
<div class="header-icon">
|
|
37
|
+
<button mat-icon-button [matMenuTriggerFor]="utilityMenu">
|
|
38
|
+
<img class="psdk-utility-card-actions-svg-icon" src="{{ settingsSvgIcon$ }}" />
|
|
39
|
+
</button>
|
|
40
|
+
<mat-menu #utilityMenu="matMenu" overlapTrigger="false">
|
|
41
|
+
<button mat-menu-item (click)="editRecord(element, j)">Edit</button>
|
|
42
|
+
<button mat-menu-item (click)="deleteRecord(j)">Delete</button>
|
|
43
|
+
</mat-menu>
|
|
44
|
+
</div>
|
|
45
|
+
</td>
|
|
46
|
+
</div>
|
|
47
|
+
</ng-container>
|
|
48
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
49
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
50
|
+
</table>
|
|
51
|
+
<table *ngIf="editableMode && !allowEditingInModal" mat-table [dataSource]="elementsData" class="mat-elevation-z8" id="editable-table">
|
|
52
|
+
<ng-container *ngFor="let dCol of fieldDefs; let i = index">
|
|
53
|
+
<ng-container *ngIf="dCol.name != 'DeleteIcon'" [matColumnDef]="dCol.name">
|
|
54
|
+
<th mat-header-cell *matHeaderCellDef class="psdk-mat-header">{{ dCol.label }}</th>
|
|
55
|
+
<td mat-cell *matCellDef="let element">
|
|
56
|
+
<component-mapper
|
|
57
|
+
[name]="element[i].getPConnect().getComponentName()"
|
|
58
|
+
[props]="{
|
|
59
|
+
pConn$: element[i].getPConnect(),
|
|
60
|
+
formGroup$: formGroup$
|
|
61
|
+
}"
|
|
62
|
+
errorMsg="Table wants component not yet available: {{ element[i].getPConnect().getComponentName() }}"
|
|
63
|
+
></component-mapper>
|
|
64
|
+
</td>
|
|
65
|
+
</ng-container>
|
|
66
|
+
</ng-container>
|
|
67
|
+
<ng-container matColumnDef="DeleteIcon">
|
|
68
|
+
<th mat-header-cell *matHeaderCellDef></th>
|
|
69
|
+
<td mat-cell *matCellDef="let element; index as j">
|
|
70
|
+
<button id="delete-button" mat-icon-button (click)="deleteRecord(j)">
|
|
71
|
+
<img class="psdk-utility-card-action-svg-icon" src="{{ menuIconOverride$ }}" />
|
|
72
|
+
</button>
|
|
73
|
+
</td>
|
|
74
|
+
</ng-container>
|
|
75
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
76
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
77
|
+
</table>
|
|
78
|
+
<div class="psdk-no-records" id="no-records" *ngIf="editableMode && referenceList?.length === 0">No Records Found.</div>
|
|
79
|
+
<div class="psdk-no-records" id="no-records" *ngIf="readOnlyMode && rowData?.data?.length === 0">No Records Found.</div>
|
|
80
|
+
</div>
|
|
81
|
+
<button *ngIf="showAddRowButton" mat-button color="primary" style="font-size: 16px" (click)="addRecord()">+ Add</button>
|
|
82
|
+
</ng-container>
|
|
83
|
+
|
|
84
|
+
<!-- pop overs for filters-->
|
|
85
|
+
<div *ngIf="bShowFilterPopover$" class="psdk-dialog-background">
|
|
86
|
+
<div class="psdk-modal-file-top">
|
|
87
|
+
<h4>
|
|
88
|
+
Filter:<b> {{ filterContainsLabel$ }}</b>
|
|
89
|
+
</h4>
|
|
90
|
+
<div *ngIf="bContains$">
|
|
91
|
+
<mat-form-field class="psdk-full-width">
|
|
92
|
+
<mat-select [value]="filterContainsType$" (selectionChange)="_filterContainsType($event)">
|
|
93
|
+
<mat-option value="contains">Contains</mat-option>
|
|
94
|
+
<mat-option value="equals">Equals</mat-option>
|
|
95
|
+
<mat-option value="startswith">Starts with</mat-option>
|
|
96
|
+
</mat-select>
|
|
97
|
+
</mat-form-field>
|
|
98
|
+
|
|
99
|
+
<mat-form-field class="psdk-full-width">
|
|
100
|
+
<input matInput type="text" [value]="filterContainsValue$" (change)="_filterContainsValue($event)" />
|
|
101
|
+
</mat-form-field>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div *ngIf="bDateTime$">
|
|
105
|
+
<mat-form-field class="psdk-full-width">
|
|
106
|
+
<mat-select [value]="filterContainsType$" (selectionChange)="_filterContainsType($event)">
|
|
107
|
+
<mat-option value="notequal">is not equal to</mat-option>
|
|
108
|
+
<mat-option value="after">after</mat-option>
|
|
109
|
+
<mat-option value="before">before</mat-option>
|
|
110
|
+
<mat-option value="null">is null</mat-option>
|
|
111
|
+
<mat-option value="notnull">is not null</mat-option>
|
|
112
|
+
</mat-select>
|
|
113
|
+
</mat-form-field>
|
|
114
|
+
|
|
115
|
+
<mat-form-field *ngIf="bIsDate$ && filterContainsType$ !== 'null' && filterContainsType$ != 'notnull'" class="psdk-full-width">
|
|
116
|
+
<mat-label>Date</mat-label>
|
|
117
|
+
<input
|
|
118
|
+
matInput
|
|
119
|
+
#dateInput
|
|
120
|
+
[matDatepicker]="pegadate"
|
|
121
|
+
type="text"
|
|
122
|
+
[value]="filterContainsValue$"
|
|
123
|
+
(dateChange)="_filterContainsDateValue($event, dateInput.value)"
|
|
124
|
+
/>
|
|
125
|
+
<mat-datepicker-toggle matSuffix [for]="pegadate"></mat-datepicker-toggle>
|
|
126
|
+
<mat-datepicker #pegadate [startAt]="filterContainsValue$"></mat-datepicker>
|
|
127
|
+
</mat-form-field>
|
|
128
|
+
|
|
129
|
+
<mat-form-field *ngIf="bIsDateTime$ && filterContainsType$ !== 'null' && filterContainsType$ != 'notnull'" class="psdk-full-width">
|
|
130
|
+
<mat-label>Date time</mat-label>
|
|
131
|
+
<input matInput type="datetime-local" [value]="filterContainsValue$" (change)="_filterContainsDateTimeValue($event)" />
|
|
132
|
+
</mat-form-field>
|
|
133
|
+
|
|
134
|
+
<mat-form-field *ngIf="bIsTime$ && filterContainsType$ !== 'null' && filterContainsType$ != 'notnull'" class="psdk-full-width">
|
|
135
|
+
<mat-label>Time</mat-label>
|
|
136
|
+
<input matInput type="time" [value]="filterContainsValue$" (change)="_filterContainsTimeValue($event)" />
|
|
137
|
+
</mat-form-field>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<component-mapper
|
|
141
|
+
name="ActionButtons"
|
|
142
|
+
[props]="{ arMainButtons$: arFilterMainButtons$, arSecondaryButtons$: arFilterSecondaryButtons$ }"
|
|
143
|
+
[parent]="this"
|
|
144
|
+
[outputEvents]="{ actionButtonClick: _onFilterActionButtonClick }"
|
|
145
|
+
></component-mapper>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
/* Adapted from list-view.component.scss */
|
|
4
|
+
|
|
5
|
+
.simple-table-wrapper {
|
|
6
|
+
width: 100%;
|
|
7
|
+
margin-top: 0.5rem;
|
|
8
|
+
margin-bottom: 0.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
table {
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::ng-deep .mat-sort-header-content {
|
|
16
|
+
white-space: normal;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
::ng-deep td.mat-mdc-cell {
|
|
20
|
+
white-space: normal;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
::ng-deep th.mat-mdc-header-cell,
|
|
24
|
+
td.mat-mdc-cell,
|
|
25
|
+
td.mat-mdc-footer-cell {
|
|
26
|
+
border-right: 1px solid lightgray;
|
|
27
|
+
padding: 8px !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::ng-deep .mat-mdc-button {
|
|
31
|
+
padding: 0px;
|
|
32
|
+
text-align: left;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mat-mdc-icon-button {
|
|
36
|
+
width: fit-content;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mat-mdc-row .mat-mdc-cell {
|
|
40
|
+
text-align: left;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.psdk-mat-header {
|
|
44
|
+
white-space: normal;
|
|
45
|
+
padding-right: 5px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.psdk-mat-header-button {
|
|
49
|
+
display: inline-grid;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.psdk-mat-header-arrow {
|
|
53
|
+
display: inline-grid;
|
|
54
|
+
vertical-align: middle;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.psdk-mat-header-filter {
|
|
58
|
+
display: inline-grid;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.psdk-full-width {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.psdk-search {
|
|
67
|
+
padding-left: 0.625rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.psdk-icon-search {
|
|
71
|
+
vertical-align: sub;
|
|
72
|
+
padding: 0rem 0.125rem;
|
|
73
|
+
min-width: unset;
|
|
74
|
+
width: 1.1rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.psdk-outer-div-in-form {
|
|
78
|
+
display: inline-grid;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.psdk-inner-div-in-form {
|
|
82
|
+
height: auto;
|
|
83
|
+
position: relative;
|
|
84
|
+
width: 100%;
|
|
85
|
+
overflow: auto;
|
|
86
|
+
max-height: 550px;
|
|
87
|
+
min-height: auto;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.psdk-list-view-svg-icon {
|
|
91
|
+
width: 1.4rem;
|
|
92
|
+
display: inline-block;
|
|
93
|
+
vertical-align: middle;
|
|
94
|
+
filter: $app-primary-color-filter;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.psdk-filter-svg-icon {
|
|
98
|
+
width: 1rem;
|
|
99
|
+
display: inline-block;
|
|
100
|
+
vertical-align: middle;
|
|
101
|
+
filter: $app-neutral-color-filter;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.psdk-arrow-svg-icon {
|
|
105
|
+
width: 1rem;
|
|
106
|
+
display: inline-block;
|
|
107
|
+
vertical-align: middle;
|
|
108
|
+
filter: $app-neutral-color-filter;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.psdk-filter-popover {
|
|
112
|
+
display: table;
|
|
113
|
+
margin: auto;
|
|
114
|
+
min-width: 100px;
|
|
115
|
+
background-color: white;
|
|
116
|
+
border: 1px solid black;
|
|
117
|
+
border-radius: 10px;
|
|
118
|
+
padding: 20px;
|
|
119
|
+
box-shadow: 0 0 10px 3px #777;
|
|
120
|
+
position: absolute;
|
|
121
|
+
z-index: 99;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.psdk-dialog-background {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
align-items: center;
|
|
129
|
+
height: 100%;
|
|
130
|
+
width: 100%;
|
|
131
|
+
background-color: rgba(100, 100, 100, 0.4);
|
|
132
|
+
position: fixed;
|
|
133
|
+
z-index: 999;
|
|
134
|
+
top: 0px;
|
|
135
|
+
left: 0px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.psdk-modal-file-top {
|
|
139
|
+
display: table;
|
|
140
|
+
margin: auto;
|
|
141
|
+
min-width: 150px;
|
|
142
|
+
background-color: white;
|
|
143
|
+
border: 1px solid black;
|
|
144
|
+
border-radius: 10px;
|
|
145
|
+
padding: 20px;
|
|
146
|
+
box-shadow: 0 0 10px 3px #777;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
tr.mat-mdc-row {
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
tr.mat-mdc-header-row {
|
|
154
|
+
background: #f5f5f5;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.psdk-data-readonly {
|
|
158
|
+
margin-top: 0.625rem;
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.psdk-no-records {
|
|
163
|
+
height: 56px;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
border: 1px solid lightgray;
|
|
168
|
+
border-top: none;
|
|
169
|
+
background: white;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.psdk-utility-card-action-svg-icon {
|
|
173
|
+
width: 1.4rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.label {
|
|
177
|
+
margin: 8px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.results-count {
|
|
181
|
+
opacity: 0.7;
|
|
182
|
+
font-size: 0.8rem;
|
|
183
|
+
font-weight: bold;
|
|
184
|
+
margin-inline-start: 0.625rem;
|
|
185
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SimpleTableManualComponent } from './simple-table-manual.component';
|
|
4
|
+
|
|
5
|
+
describe('SimpleTableManualComponent', () => {
|
|
6
|
+
let component: SimpleTableManualComponent;
|
|
7
|
+
let fixture: ComponentFixture<SimpleTableManualComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [SimpleTableManualComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(SimpleTableManualComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|