@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,131 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup, ReactiveFormsModule } 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 handleEvent from '@pega/angular-sdk-components';
|
|
8
|
+
import { PConnFieldProps } from '@pega/angular-sdk-components';
|
|
9
|
+
|
|
10
|
+
interface RichTextProps extends PConnFieldProps {
|
|
11
|
+
// If any, enter additional props that only exist on RichText here
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'app-rich-text',
|
|
16
|
+
templateUrl: './rich-text.component.html',
|
|
17
|
+
styleUrls: ['./rich-text.component.scss'],
|
|
18
|
+
standalone: true,
|
|
19
|
+
imports: [CommonModule, ReactiveFormsModule, forwardRef(() => ComponentMapperComponent)]
|
|
20
|
+
})
|
|
21
|
+
export class RichTextComponent implements OnInit, OnDestroy {
|
|
22
|
+
@Input() pConn$: typeof PConnect;
|
|
23
|
+
@Input() formGroup$: FormGroup;
|
|
24
|
+
|
|
25
|
+
// Used with AngularPConnect
|
|
26
|
+
angularPConnectData: AngularPConnectData = {};
|
|
27
|
+
configProps$: RichTextProps;
|
|
28
|
+
|
|
29
|
+
label$ = '';
|
|
30
|
+
value$ = '';
|
|
31
|
+
bRequired$ = false;
|
|
32
|
+
bReadonly$ = false;
|
|
33
|
+
bDisabled$ = false;
|
|
34
|
+
bVisible$ = true;
|
|
35
|
+
displayMode$?: string = '';
|
|
36
|
+
controlName$: string;
|
|
37
|
+
testId: string;
|
|
38
|
+
helperText: string;
|
|
39
|
+
placeholder: any;
|
|
40
|
+
info: any;
|
|
41
|
+
error: boolean;
|
|
42
|
+
status: any;
|
|
43
|
+
|
|
44
|
+
constructor(
|
|
45
|
+
private angularPConnect: AngularPConnectService,
|
|
46
|
+
private utils: Utils
|
|
47
|
+
) {}
|
|
48
|
+
|
|
49
|
+
ngOnInit(): void {
|
|
50
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
51
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
52
|
+
|
|
53
|
+
// call updateSelf when initializing
|
|
54
|
+
this.checkAndUpdate();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ngOnDestroy(): void {
|
|
58
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
59
|
+
this.angularPConnectData.unsubscribeFn();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Callback passed when subscribing to store change
|
|
64
|
+
onStateChange() {
|
|
65
|
+
this.checkAndUpdate();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
checkAndUpdate() {
|
|
69
|
+
// Should always check the bridge to see if the component should
|
|
70
|
+
// update itself (re-render)
|
|
71
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
72
|
+
|
|
73
|
+
// ONLY call updateSelf when the component should update
|
|
74
|
+
if (bUpdateSelf) {
|
|
75
|
+
this.updateSelf();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// updateSelf
|
|
80
|
+
updateSelf(): void {
|
|
81
|
+
// moved this from ngOnInit() and call this from there instead...
|
|
82
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as RichTextProps;
|
|
83
|
+
const stateProps: any = this.pConn$.getStateProps();
|
|
84
|
+
this.status = stateProps?.status;
|
|
85
|
+
|
|
86
|
+
if (this.configProps$.value != undefined) {
|
|
87
|
+
this.value$ = this.configProps$.value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
this.testId = this.configProps$.testId;
|
|
91
|
+
this.displayMode$ = this.configProps$.displayMode;
|
|
92
|
+
this.label$ = this.configProps$.label;
|
|
93
|
+
this.placeholder = this.configProps$.placeholder;
|
|
94
|
+
this.info = stateProps?.validatemessage || this.configProps$.helperText;
|
|
95
|
+
this.error = stateProps?.status === 'error';
|
|
96
|
+
|
|
97
|
+
if (this.configProps$.required != null) {
|
|
98
|
+
this.bRequired$ = this.utils.getBooleanValue(this.configProps$.required);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (this.configProps$.visibility != null) {
|
|
102
|
+
this.bVisible$ = this.utils.getBooleanValue(this.configProps$.visibility);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (this.configProps$.disabled != undefined) {
|
|
106
|
+
this.bDisabled$ = this.utils.getBooleanValue(this.configProps$.disabled);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (this.configProps$.readOnly != null) {
|
|
110
|
+
this.bReadonly$ = this.utils.getBooleanValue(this.configProps$.readOnly);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
fieldOnChange() {
|
|
115
|
+
if (this.status === 'error') {
|
|
116
|
+
const property = (this.pConn$.getStateProps() as any).value;
|
|
117
|
+
this.pConn$.clearErrorMessages({
|
|
118
|
+
property,
|
|
119
|
+
category: '',
|
|
120
|
+
context: ''
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
fieldOnBlur(editorValue: any) {
|
|
126
|
+
// PConnect wants to use eventHandler for onBlur
|
|
127
|
+
const actionsApi = this.pConn$?.getActionsApi();
|
|
128
|
+
const propName = (this.pConn$?.getStateProps() as any).value;
|
|
129
|
+
handleEvent(actionsApi, 'changeNblur', propName, editorValue);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div *ngIf="isDisplayModeEnabled">
|
|
2
|
+
<div *ngFor="let value of items">
|
|
3
|
+
<component-mapper [name]="value?.getPConnect().getComponentName()" [props]="{ pConn$: value.getPConnect(), formGroup$ }"></component-mapper>
|
|
4
|
+
<!-- <span key="i">{{ value }}</span> -->
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div *ngIf="!isDisplayModeEnabled">
|
|
8
|
+
<component-mapper name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
9
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ScalarListComponent } from './scalar-list.component';
|
|
4
|
+
|
|
5
|
+
describe('ScalarListComponent', () => {
|
|
6
|
+
let component: ScalarListComponent;
|
|
7
|
+
let fixture: ComponentFixture<ScalarListComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ScalarListComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
|
|
14
|
+
fixture = TestBed.createComponent(ScalarListComponent);
|
|
15
|
+
component = fixture.componentInstance;
|
|
16
|
+
fixture.detectChanges();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should create', () => {
|
|
20
|
+
expect(component).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, forwardRef, Input, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
import { PConnFieldProps } from '@pega/angular-sdk-components';
|
|
7
|
+
|
|
8
|
+
interface ScalarListProps extends Omit<PConnFieldProps, 'value'> {
|
|
9
|
+
// If any, enter additional props that only exist on ScalarList here
|
|
10
|
+
displayInModal: boolean;
|
|
11
|
+
value: any[];
|
|
12
|
+
componentType: string;
|
|
13
|
+
restProps?: object;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'app-scalar-list',
|
|
18
|
+
templateUrl: './scalar-list.component.html',
|
|
19
|
+
styleUrls: ['./scalar-list.component.scss'],
|
|
20
|
+
standalone: true,
|
|
21
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
22
|
+
})
|
|
23
|
+
export class ScalarListComponent implements OnInit, OnDestroy {
|
|
24
|
+
@Input() pConn$: typeof PConnect;
|
|
25
|
+
@Input() formGroup$: FormGroup;
|
|
26
|
+
|
|
27
|
+
angularPConnectData: AngularPConnectData = {};
|
|
28
|
+
configProps$: ScalarListProps;
|
|
29
|
+
|
|
30
|
+
label$ = '';
|
|
31
|
+
value$: any;
|
|
32
|
+
displayMode$?: string = '';
|
|
33
|
+
items: any[];
|
|
34
|
+
isDisplayModeEnabled = false;
|
|
35
|
+
controlName$: string;
|
|
36
|
+
fieldControl = new FormControl('', null);
|
|
37
|
+
bHasForm$ = true;
|
|
38
|
+
bReadonly$ = false;
|
|
39
|
+
|
|
40
|
+
constructor(private angularPConnect: AngularPConnectService) {}
|
|
41
|
+
|
|
42
|
+
ngOnInit(): void {
|
|
43
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
44
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
45
|
+
this.controlName$ = this.angularPConnect.getComponentID(this);
|
|
46
|
+
// Then, continue on with other initialization
|
|
47
|
+
|
|
48
|
+
// call updateSelf when initializing
|
|
49
|
+
// this.updateSelf();
|
|
50
|
+
this.checkAndUpdate();
|
|
51
|
+
|
|
52
|
+
if (this.formGroup$) {
|
|
53
|
+
// add control to formGroup
|
|
54
|
+
this.formGroup$.addControl(this.controlName$, this.fieldControl);
|
|
55
|
+
this.fieldControl.setValue(this.value$);
|
|
56
|
+
this.bHasForm$ = true;
|
|
57
|
+
} else {
|
|
58
|
+
this.bReadonly$ = true;
|
|
59
|
+
this.bHasForm$ = false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ngOnDestroy(): void {
|
|
64
|
+
if (this.formGroup$) {
|
|
65
|
+
this.formGroup$.removeControl(this.controlName$);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
69
|
+
this.angularPConnectData.unsubscribeFn();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Callback passed when subscribing to store change
|
|
74
|
+
onStateChange() {
|
|
75
|
+
this.checkAndUpdate();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
checkAndUpdate() {
|
|
79
|
+
// Should always check the bridge to see if the component should
|
|
80
|
+
// update itself (re-render)
|
|
81
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
82
|
+
|
|
83
|
+
// ONLY call updateSelf when the component should update
|
|
84
|
+
if (bUpdateSelf) {
|
|
85
|
+
this.updateSelf();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// updateSelf
|
|
90
|
+
updateSelf(): void {
|
|
91
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as ScalarListProps;
|
|
92
|
+
this.label$ = this.configProps$.label;
|
|
93
|
+
const componentType = this.configProps$.componentType;
|
|
94
|
+
const scalarValues = this.configProps$.value;
|
|
95
|
+
this.displayMode$ = this.configProps$.displayMode;
|
|
96
|
+
const restProps = this.configProps$.restProps;
|
|
97
|
+
console.log('scalar values: ', scalarValues);
|
|
98
|
+
this.items = scalarValues?.map(scalarValue => {
|
|
99
|
+
console.log('scalar value: ', scalarValue);
|
|
100
|
+
return this.pConn$.createComponent(
|
|
101
|
+
{
|
|
102
|
+
type: componentType,
|
|
103
|
+
config: {
|
|
104
|
+
value: scalarValue,
|
|
105
|
+
displayMode: 'LABELS_LEFT',
|
|
106
|
+
label: this.label$,
|
|
107
|
+
...restProps,
|
|
108
|
+
readOnly: 'true'
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
'',
|
|
112
|
+
'',
|
|
113
|
+
{}
|
|
114
|
+
); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional;
|
|
115
|
+
});
|
|
116
|
+
this.isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL', 'DISPLAY_ONLY'].includes(this.displayMode$ as string);
|
|
117
|
+
this.value$ = this.items;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<div *ngIf="displayMode$; else noDisplayMode">
|
|
2
|
+
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<ng-template #noDisplayMode>
|
|
6
|
+
<div *ngIf="label$ !== undefined && bVisible$ !== false" class="psdk-grid-filter">
|
|
7
|
+
<div class="psdk-grid-label">{{ label$ }}</div>
|
|
8
|
+
<div class="psdk-value">{{ value$ || '---' }}</div>
|
|
9
|
+
</div>
|
|
10
|
+
</ng-template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.psdk-grid-filter {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4
|
+
column-gap: calc(2 * 0.5rem);
|
|
5
|
+
row-gap: calc(2 * 0.5rem);
|
|
6
|
+
align-items: start;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.psdk-label {
|
|
10
|
+
color: rgba(0, 0, 0, 0.54);
|
|
11
|
+
margin: 8px 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.psdk-value {
|
|
15
|
+
margin: 8px 0px;
|
|
16
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
7
|
+
import { PConnFieldProps } from '@pega/angular-sdk-components';
|
|
8
|
+
|
|
9
|
+
interface SemanticLinkProps extends PConnFieldProps {
|
|
10
|
+
// If any, enter additional props that only exist on SemanticLink here
|
|
11
|
+
text: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'app-semantic-link',
|
|
16
|
+
templateUrl: './semantic-link.component.html',
|
|
17
|
+
styleUrls: ['./semantic-link.component.scss'],
|
|
18
|
+
standalone: true,
|
|
19
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
20
|
+
})
|
|
21
|
+
export class SemanticLinkComponent implements OnInit, OnDestroy {
|
|
22
|
+
@Input() pConn$: typeof PConnect;
|
|
23
|
+
@Input() formGroup$: FormGroup;
|
|
24
|
+
|
|
25
|
+
angularPConnectData: AngularPConnectData = {};
|
|
26
|
+
configProps$: SemanticLinkProps;
|
|
27
|
+
|
|
28
|
+
label$ = '';
|
|
29
|
+
value$ = '';
|
|
30
|
+
displayMode$?: string = '';
|
|
31
|
+
bVisible$ = true;
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
private angularPConnect: AngularPConnectService,
|
|
35
|
+
private utils: Utils
|
|
36
|
+
) {}
|
|
37
|
+
|
|
38
|
+
ngOnInit(): void {
|
|
39
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
40
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
41
|
+
this.updateSelf();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ngOnDestroy(): void {
|
|
45
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
46
|
+
this.angularPConnectData.unsubscribeFn();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
onStateChange() {
|
|
51
|
+
// Should always check the bridge to see if the component should
|
|
52
|
+
// update itself (re-render)
|
|
53
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
54
|
+
|
|
55
|
+
// ONLY call updateSelf when the component should update
|
|
56
|
+
if (bUpdateSelf) {
|
|
57
|
+
this.updateSelf();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
updateSelf() {
|
|
62
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as SemanticLinkProps;
|
|
63
|
+
this.value$ = this.configProps$.text || '---';
|
|
64
|
+
this.displayMode$ = this.configProps$.displayMode;
|
|
65
|
+
this.label$ = this.configProps$.label;
|
|
66
|
+
if (this.configProps$.visibility) {
|
|
67
|
+
this.bVisible$ = this.utils.getBooleanValue(this.configProps$.visibility);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div *ngIf="displayMode$; else noDisplayMode">
|
|
2
|
+
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
3
|
+
</div>
|
|
4
|
+
<ng-template #noDisplayMode>
|
|
5
|
+
<div *ngIf="bVisible$ !== false" class="psdk-label-infix-readonly">
|
|
6
|
+
<span class="psdk-label-wrapper-readonly">
|
|
7
|
+
<label class="psdk-label-readonly">{{ label$ }}</label>
|
|
8
|
+
</span>
|
|
9
|
+
<div class="psdk-data-readonly">
|
|
10
|
+
<label *ngIf="formatAs$ != 'url'">{{ formattedValue$ }}</label>
|
|
11
|
+
<a *ngIf="formatAs$ == 'url'" href="{{ formattedUrl$ }}">{{ formattedValue$ }}</a>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</ng-template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.psdk-full-width {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.psdk-label-readonly {
|
|
6
|
+
opacity: 54%;
|
|
7
|
+
font-size: 0.7rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.psdk-data-readonly {
|
|
11
|
+
padding-top: 0.625rem;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::ng-deep .mat-mdc-form-field-infix {
|
|
16
|
+
width: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.psdk-grid-filter {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
22
|
+
column-gap: calc(2 * 0.5rem);
|
|
23
|
+
row-gap: calc(2 * 0.5rem);
|
|
24
|
+
align-items: start;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.psdk-details-fields-label {
|
|
28
|
+
color: rgba(0, 0, 0, 0.54);
|
|
29
|
+
margin: 8px 0px;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TextComponent } from './text.component';
|
|
4
|
+
|
|
5
|
+
describe('TextComponent', () => {
|
|
6
|
+
let component: TextComponent;
|
|
7
|
+
let fixture: ComponentFixture<TextComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [TextComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(TextComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
4
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
|
+
import { PConnFieldProps } from '@pega/angular-sdk-components';
|
|
7
|
+
|
|
8
|
+
interface TextProps extends PConnFieldProps {
|
|
9
|
+
// If any, enter additional props that only exist on Text here
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'app-text',
|
|
14
|
+
templateUrl: './text.component.html',
|
|
15
|
+
styleUrls: ['./text.component.scss'],
|
|
16
|
+
standalone: true,
|
|
17
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
18
|
+
})
|
|
19
|
+
export class TextComponent implements OnInit, OnDestroy {
|
|
20
|
+
@Input() pConn$: typeof PConnect;
|
|
21
|
+
@Input() formatAs$: string;
|
|
22
|
+
|
|
23
|
+
// Used with AngularPConnect
|
|
24
|
+
angularPConnectData: AngularPConnectData = {};
|
|
25
|
+
configProps$: TextProps;
|
|
26
|
+
|
|
27
|
+
label$ = '';
|
|
28
|
+
value$ = '';
|
|
29
|
+
bRequired$ = false;
|
|
30
|
+
bReadonly$ = false;
|
|
31
|
+
bDisabled$ = false;
|
|
32
|
+
bVisible$ = true;
|
|
33
|
+
displayMode$?: string = '';
|
|
34
|
+
controlName$: string;
|
|
35
|
+
componentReference = '';
|
|
36
|
+
formattedValue$: string;
|
|
37
|
+
format$ = 'text';
|
|
38
|
+
formattedUrl$ = '';
|
|
39
|
+
|
|
40
|
+
constructor(
|
|
41
|
+
private angularPConnect: AngularPConnectService,
|
|
42
|
+
private utils: Utils
|
|
43
|
+
) {}
|
|
44
|
+
|
|
45
|
+
ngOnInit(): void {
|
|
46
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
47
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
48
|
+
|
|
49
|
+
// Then, continue on with other initialization
|
|
50
|
+
|
|
51
|
+
// call updateSelf when initializing
|
|
52
|
+
this.checkAndUpdate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
ngOnDestroy(): void {
|
|
56
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
57
|
+
this.angularPConnectData.unsubscribeFn();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
checkAndUpdate() {
|
|
62
|
+
// Should always check the bridge to see if the component should
|
|
63
|
+
// update itself (re-render)
|
|
64
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
65
|
+
|
|
66
|
+
// ONLY call updateSelf when the component should update
|
|
67
|
+
if (bUpdateSelf) {
|
|
68
|
+
this.updateSelf();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// updateSelf
|
|
73
|
+
updateSelf(): void {
|
|
74
|
+
// moved this from ngOnInit() and call this from there instead...
|
|
75
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as TextProps;
|
|
76
|
+
if (this.configProps$.value != undefined) {
|
|
77
|
+
this.value$ = this.configProps$.value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (this.configProps$.visibility != null) {
|
|
81
|
+
this.bVisible$ = this.utils.getBooleanValue(this.configProps$.visibility);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
this.label$ = this.configProps$.label;
|
|
85
|
+
this.displayMode$ = this.configProps$.displayMode;
|
|
86
|
+
|
|
87
|
+
// TDB - get formats
|
|
88
|
+
switch (this.formatAs$) {
|
|
89
|
+
case 'text':
|
|
90
|
+
this.formattedValue$ = this.value$;
|
|
91
|
+
break;
|
|
92
|
+
case 'date':
|
|
93
|
+
this.formattedValue$ = this.generateDate(this.value$);
|
|
94
|
+
break;
|
|
95
|
+
case 'date-time':
|
|
96
|
+
this.formattedValue$ = this.generateDateTime(this.value$);
|
|
97
|
+
break;
|
|
98
|
+
case 'time':
|
|
99
|
+
if (this.value$) {
|
|
100
|
+
const timeParts = this.value$.split(':');
|
|
101
|
+
this.formattedValue$ = `${timeParts[0]}:${timeParts[1]}`;
|
|
102
|
+
} else {
|
|
103
|
+
this.formattedValue$ = '';
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
case 'url':
|
|
107
|
+
this.formattedUrl$ = this.generateUrl(this.value$);
|
|
108
|
+
this.formattedValue$ = this.value$;
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Callback passed when subscribing to store change
|
|
116
|
+
onStateChange() {
|
|
117
|
+
this.checkAndUpdate();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
generateUrl(sVal): string {
|
|
121
|
+
if (sVal.indexOf('https://') == 0 || sVal.indexOf('http://') == 0) {
|
|
122
|
+
/* empty */
|
|
123
|
+
} else {
|
|
124
|
+
// assume no http
|
|
125
|
+
sVal = `http://${sVal}`;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return sVal;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
generateDate(sVal): string {
|
|
132
|
+
if (!sVal) return '';
|
|
133
|
+
// const value = new Intl.DateTimeFormat('default', {
|
|
134
|
+
// year: 'numeric',
|
|
135
|
+
// month: 'numeric',
|
|
136
|
+
// day: 'numeric'
|
|
137
|
+
// }).format(new Date(sVal + "T00:00"));
|
|
138
|
+
|
|
139
|
+
return this.utils.generateDate(sVal, 'Date-Long-Custom-YYYY');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
generateDateTime(sVal): string {
|
|
143
|
+
if (!sVal) return '';
|
|
144
|
+
if (sVal.length === 10) return this.generateDate(sVal);
|
|
145
|
+
const value = sVal.substring(0, sVal.length - 1);
|
|
146
|
+
// value = new Intl.DateTimeFormat('default', {
|
|
147
|
+
// year: 'numeric',
|
|
148
|
+
// month: 'numeric',
|
|
149
|
+
// day: 'numeric',
|
|
150
|
+
// hour: 'numeric',
|
|
151
|
+
// minute: 'numeric',
|
|
152
|
+
// second: 'numeric',
|
|
153
|
+
// hour12: true,
|
|
154
|
+
// }).format(new Date(value))
|
|
155
|
+
|
|
156
|
+
return this.utils.generateDateTime(value, 'DateTime-Long-YYYY-Custom');
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<div *ngIf="displayMode$; else noDisplayMode">
|
|
2
|
+
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
3
|
+
</div>
|
|
4
|
+
<ng-template #noDisplayMode>
|
|
5
|
+
<div *ngIf="!bReadonly$ && bHasForm$; else noEdit">
|
|
6
|
+
<div [formGroup]="formGroup$">
|
|
7
|
+
<div *ngIf="bVisible$">
|
|
8
|
+
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
|
|
9
|
+
<textarea
|
|
10
|
+
matInput
|
|
11
|
+
rows="5"
|
|
12
|
+
[placeholder]="label$"
|
|
13
|
+
type="text"
|
|
14
|
+
[attr.data-test-id]="testId"
|
|
15
|
+
[value]="value$"
|
|
16
|
+
[required]="bRequired$"
|
|
17
|
+
[disabled]="bDisabled$"
|
|
18
|
+
[formControl]="fieldControl"
|
|
19
|
+
(change)="fieldOnChange($event)"
|
|
20
|
+
></textarea>
|
|
21
|
+
<mat-error *ngIf="fieldControl.invalid">{{ getErrorMessage() }}</mat-error>
|
|
22
|
+
</mat-form-field>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</ng-template>
|
|
27
|
+
<ng-template #noEdit>
|
|
28
|
+
<component-mapper *ngIf="bVisible$ !== false" name="Text" [props]="{ pConn$, formatAs$: 'text' }"></component-mapper>
|
|
29
|
+
</ng-template>
|