@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,220 @@
|
|
|
1
|
+
const LOCALIZATON_ANNOTATION = '@L ';
|
|
2
|
+
const PROPERTY_ANNOTATION = '@P .';
|
|
3
|
+
const USER_ANNOTATION = '@USER .';
|
|
4
|
+
const ASSOCIATED_ANNOTATION = '@ASSOCIATED .';
|
|
5
|
+
const ASSOCIATION_ANNOTATION = '@CA ';
|
|
6
|
+
|
|
7
|
+
const getDefaultConfig = (fieldMeta, classID, show) => {
|
|
8
|
+
const {
|
|
9
|
+
name,
|
|
10
|
+
label,
|
|
11
|
+
fieldID,
|
|
12
|
+
fieldType,
|
|
13
|
+
dataType,
|
|
14
|
+
type,
|
|
15
|
+
classID: fieldMetaClassID,
|
|
16
|
+
displayAs,
|
|
17
|
+
displayAsLink,
|
|
18
|
+
category,
|
|
19
|
+
associationClassID,
|
|
20
|
+
associationID
|
|
21
|
+
} = fieldMeta;
|
|
22
|
+
return {
|
|
23
|
+
value: (associationClassID ? ASSOCIATION_ANNOTATION : PROPERTY_ANNOTATION).concat(fieldID),
|
|
24
|
+
label: LOCALIZATON_ANNOTATION.concat(name || label),
|
|
25
|
+
fieldType,
|
|
26
|
+
propertyType: dataType || type,
|
|
27
|
+
classID: classID || fieldMetaClassID,
|
|
28
|
+
displayAs,
|
|
29
|
+
displayAsLink,
|
|
30
|
+
category,
|
|
31
|
+
show,
|
|
32
|
+
...(associationClassID ? { associationLabel: LOCALIZATON_ANNOTATION.concat(category) } : {}),
|
|
33
|
+
associationID
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export function getDefaultViewMeta(fieldMeta, classID, showField) {
|
|
38
|
+
const { type, name, displayAs, fieldID, isUserReference, associationID, datasource, label, fieldType } = fieldMeta;
|
|
39
|
+
const mapperKey = type && displayAs ? type.concat(':').concat(displayAs) : type;
|
|
40
|
+
const defaultConfig = getDefaultConfig(fieldMeta, classID, showField);
|
|
41
|
+
let viewMeta;
|
|
42
|
+
switch (mapperKey) {
|
|
43
|
+
case 'True-False:pxCheckbox':
|
|
44
|
+
viewMeta = {
|
|
45
|
+
type: 'Checkbox',
|
|
46
|
+
config: {
|
|
47
|
+
...defaultConfig,
|
|
48
|
+
trueLabel: '@L Yes',
|
|
49
|
+
falseLabel: '@L No',
|
|
50
|
+
caption: LOCALIZATON_ANNOTATION.concat(name || label),
|
|
51
|
+
label: undefined
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
break;
|
|
55
|
+
case 'Decimal:pxCurrency':
|
|
56
|
+
viewMeta = {
|
|
57
|
+
type: 'Currency',
|
|
58
|
+
config: defaultConfig
|
|
59
|
+
};
|
|
60
|
+
break;
|
|
61
|
+
case 'Date Time:pxDateTime':
|
|
62
|
+
case 'Date & time:pxDateTime':
|
|
63
|
+
viewMeta = {
|
|
64
|
+
type: 'DateTime',
|
|
65
|
+
config: defaultConfig
|
|
66
|
+
};
|
|
67
|
+
break;
|
|
68
|
+
case 'Date:pxDateTime':
|
|
69
|
+
case 'Date only:pxDateTime':
|
|
70
|
+
viewMeta = {
|
|
71
|
+
type: 'Date',
|
|
72
|
+
config: defaultConfig
|
|
73
|
+
};
|
|
74
|
+
break;
|
|
75
|
+
case 'Decimal:pxNumber':
|
|
76
|
+
viewMeta = {
|
|
77
|
+
type: 'Decimal',
|
|
78
|
+
config: defaultConfig
|
|
79
|
+
};
|
|
80
|
+
break;
|
|
81
|
+
case 'Text:pxEmail':
|
|
82
|
+
viewMeta = {
|
|
83
|
+
type: 'Email',
|
|
84
|
+
config: defaultConfig
|
|
85
|
+
};
|
|
86
|
+
break;
|
|
87
|
+
case 'Integer:pxInteger':
|
|
88
|
+
viewMeta = {
|
|
89
|
+
type: 'Integer',
|
|
90
|
+
config: defaultConfig
|
|
91
|
+
};
|
|
92
|
+
break;
|
|
93
|
+
case 'Decimal:pxPercentage':
|
|
94
|
+
viewMeta = {
|
|
95
|
+
type: 'Percentage',
|
|
96
|
+
config: defaultConfig
|
|
97
|
+
};
|
|
98
|
+
break;
|
|
99
|
+
case 'Text:pxPhone':
|
|
100
|
+
viewMeta = {
|
|
101
|
+
type: 'Phone',
|
|
102
|
+
config: {
|
|
103
|
+
...defaultConfig,
|
|
104
|
+
datasource: {
|
|
105
|
+
source: '@DATASOURCE D_pyCountryCallingCodeList.pxResults',
|
|
106
|
+
fields: {
|
|
107
|
+
value: '@P .pyCallingCode'
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
break;
|
|
113
|
+
case 'TimeOfDay:pxDateTime':
|
|
114
|
+
viewMeta = {
|
|
115
|
+
type: 'Time',
|
|
116
|
+
config: defaultConfig
|
|
117
|
+
};
|
|
118
|
+
break;
|
|
119
|
+
case 'Text:pxURL':
|
|
120
|
+
case 'Text:pxUrl':
|
|
121
|
+
viewMeta = {
|
|
122
|
+
type: 'URL',
|
|
123
|
+
config: defaultConfig
|
|
124
|
+
};
|
|
125
|
+
break;
|
|
126
|
+
case 'Text:pxTextArea':
|
|
127
|
+
viewMeta = {
|
|
128
|
+
type: 'TextArea',
|
|
129
|
+
config: defaultConfig
|
|
130
|
+
};
|
|
131
|
+
break;
|
|
132
|
+
case 'Text:pxRichTextEditor':
|
|
133
|
+
viewMeta = {
|
|
134
|
+
type: 'RichText',
|
|
135
|
+
config: defaultConfig
|
|
136
|
+
};
|
|
137
|
+
break;
|
|
138
|
+
case 'Text:pxAutoComplete':
|
|
139
|
+
if (isUserReference || fieldType === 'User reference') {
|
|
140
|
+
viewMeta = {
|
|
141
|
+
type: 'UserReference',
|
|
142
|
+
config: {
|
|
143
|
+
...defaultConfig,
|
|
144
|
+
value: USER_ANNOTATION.concat(fieldID),
|
|
145
|
+
placeholder: 'Select...',
|
|
146
|
+
displayAs: 'Search box',
|
|
147
|
+
associationID,
|
|
148
|
+
associationLabel: undefined
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
} else {
|
|
152
|
+
const { tableType = '' } = datasource || {};
|
|
153
|
+
viewMeta = {
|
|
154
|
+
type: 'AutoComplete',
|
|
155
|
+
config: {
|
|
156
|
+
...defaultConfig,
|
|
157
|
+
placeholder: 'Select...',
|
|
158
|
+
listType: 'associated',
|
|
159
|
+
datasource: ASSOCIATED_ANNOTATION.concat(fieldID),
|
|
160
|
+
deferDatasource: tableType === 'DataPage'
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
break;
|
|
165
|
+
case 'Text:pxDropdown':
|
|
166
|
+
if (isUserReference || fieldType === 'User reference') {
|
|
167
|
+
viewMeta = {
|
|
168
|
+
type: 'UserReference',
|
|
169
|
+
config: {
|
|
170
|
+
...defaultConfig,
|
|
171
|
+
value: USER_ANNOTATION.concat(fieldID),
|
|
172
|
+
placeholder: 'Select...',
|
|
173
|
+
displayAs: 'Drop-down list',
|
|
174
|
+
associationID,
|
|
175
|
+
associationLabel: undefined
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
} else {
|
|
179
|
+
const { tableType = '' } = datasource || {};
|
|
180
|
+
viewMeta = {
|
|
181
|
+
type: 'Dropdown',
|
|
182
|
+
config: {
|
|
183
|
+
...defaultConfig,
|
|
184
|
+
placeholder: 'Select...',
|
|
185
|
+
listType: 'associated',
|
|
186
|
+
datasource: ASSOCIATED_ANNOTATION.concat(fieldID),
|
|
187
|
+
deferDatasource: tableType === 'DataPage'
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
break;
|
|
192
|
+
case 'Text:pxRadioButtons':
|
|
193
|
+
{
|
|
194
|
+
const { tableType = '' } = datasource || {};
|
|
195
|
+
viewMeta = {
|
|
196
|
+
type: 'RadioButtons',
|
|
197
|
+
config: {
|
|
198
|
+
...defaultConfig,
|
|
199
|
+
placeholder: 'Select...',
|
|
200
|
+
listType: 'associated',
|
|
201
|
+
datasource: ASSOCIATED_ANNOTATION.concat(fieldID),
|
|
202
|
+
deferDatasource: tableType === 'DataPage'
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
break;
|
|
207
|
+
case 'Text:pxTextInput':
|
|
208
|
+
viewMeta = {
|
|
209
|
+
type: 'TextInput',
|
|
210
|
+
config: defaultConfig
|
|
211
|
+
};
|
|
212
|
+
break;
|
|
213
|
+
default:
|
|
214
|
+
viewMeta = {
|
|
215
|
+
type,
|
|
216
|
+
config: defaultConfig
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
return viewMeta;
|
|
220
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
<div class="psdk-list-header">
|
|
2
|
+
<div>
|
|
3
|
+
<mat-form-field class="psdk-search" *ngIf="bShowSearch$">
|
|
4
|
+
<mat-label><img class="psdk-icon-search" src="{{ searchIcon$ }}" /> <span class="psdk-search-label">Search</span> </mat-label>
|
|
5
|
+
<input matInput id="search" (keyup)="applySearch($event)" placeholder="" />
|
|
6
|
+
</mat-form-field>
|
|
7
|
+
|
|
8
|
+
<div *ngIf="!bInForm$" class="psdk-outer-div-in-form">
|
|
9
|
+
<div class="psdk-inner-div-in-form" *ngIf="bColumnReorder$">
|
|
10
|
+
<div>
|
|
11
|
+
<table
|
|
12
|
+
mat-table
|
|
13
|
+
id="list-view"
|
|
14
|
+
[dataSource]="repeatList$"
|
|
15
|
+
matSort
|
|
16
|
+
cdkDropList
|
|
17
|
+
cdkDropListOrientation="horizontal"
|
|
18
|
+
(cdkDropListDropped)="drop($event)"
|
|
19
|
+
>
|
|
20
|
+
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.config.name" sticky="true">
|
|
21
|
+
<th mat-header-cell *matHeaderCellDef class="psdk-mat-header" (click)="_headerSortClick($event, dCol)" arrowPosition="before" cdkDrag>
|
|
22
|
+
{{ dCol.config.label }}
|
|
23
|
+
<div class="psdk-mat-header-filter">
|
|
24
|
+
<img class="psdk-filter-svg-icon" name="filterOnIcon" />
|
|
25
|
+
</div>
|
|
26
|
+
<div class="psdk-mat-header-arrow">
|
|
27
|
+
<img class="psdk-arrow-svg-icon" arrow="none" [attr.arrowid]="dCol.config.name" />
|
|
28
|
+
</div>
|
|
29
|
+
<div class="psdk-mat-header-button" (click)="$event.stopPropagation()">
|
|
30
|
+
<button mat-icon-button [matMenuTriggerFor]="groupMenu">
|
|
31
|
+
<img class="psdk-list-view-svg-icon" src="{{ menuSvgIcon$ }}" />
|
|
32
|
+
</button>
|
|
33
|
+
<mat-menu #groupMenu>
|
|
34
|
+
<button *ngIf="!_showUnGroupBy(dCol) && bGrouping$" mat-menu-item (click)="_groupBy($event, dCol)">
|
|
35
|
+
<img class="psdk-list-view-svg-icon" src="{{ groupBySvgIcon$ }}" /><span>Group By</span>
|
|
36
|
+
</button>
|
|
37
|
+
<button *ngIf="_showUnGroupBy(dCol) && bGrouping$" mat-menu-item (click)="_unGroupBy($event, dCol)">
|
|
38
|
+
<img class="psdk-list-view-svg-icon" src="{{ groupBySvgIcon$ }}" /><span>Ungroup</span>
|
|
39
|
+
</button>
|
|
40
|
+
<button mat-menu-item (click)="_filter($event, dCol)">
|
|
41
|
+
<img class="psdk-list-view-svg-icon" src="{{ filterSvgIcon$ }}" /><span>Filter</span>
|
|
42
|
+
</button>
|
|
43
|
+
</mat-menu>
|
|
44
|
+
</div>
|
|
45
|
+
</th>
|
|
46
|
+
<td mat-cell *matCellDef="let element; index as i">
|
|
47
|
+
<button
|
|
48
|
+
*ngIf="_showButton(dCol.config.name, dCol); else regular"
|
|
49
|
+
mat-button
|
|
50
|
+
color="primary"
|
|
51
|
+
(click)="_listViewClick(dCol.config, element)"
|
|
52
|
+
>
|
|
53
|
+
{{ element[dCol.config.name] }}
|
|
54
|
+
</button>
|
|
55
|
+
<ng-template #regular>
|
|
56
|
+
{{ element[dCol.config.name] || '---' }}
|
|
57
|
+
</ng-template>
|
|
58
|
+
</td>
|
|
59
|
+
</ng-container>
|
|
60
|
+
|
|
61
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns$; sticky: true"></tr>
|
|
62
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns$"></tr>
|
|
63
|
+
|
|
64
|
+
<!-- Group header -->
|
|
65
|
+
<ng-container matColumnDef="groupHeader">
|
|
66
|
+
<td mat-cell colspan="999" *matCellDef="let group">
|
|
67
|
+
<mat-icon *ngIf="group.expanded" [attr.style]="_getIconStyle(group.level)">expand_less</mat-icon>
|
|
68
|
+
<mat-icon *ngIf="!group.expanded" [attr.style]="_getIconStyle(group.level)">expand_more</mat-icon>
|
|
69
|
+
<strong
|
|
70
|
+
>{{ _getGroupName(groupByColumns$[group.level - 1]) }}: {{ group[groupByColumns$[group.level - 1]] }} ({{
|
|
71
|
+
group.totalCounts
|
|
72
|
+
}})</strong
|
|
73
|
+
>
|
|
74
|
+
</td>
|
|
75
|
+
</ng-container>
|
|
76
|
+
|
|
77
|
+
<tr mat-row *matRowDef="let row; columns: ['groupHeader']; when: isGroup" (click)="_groupHeaderClick(row)"></tr>
|
|
78
|
+
</table>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="psdk-inner-div-in-form" *ngIf="!bColumnReorder$">
|
|
82
|
+
<div>
|
|
83
|
+
<table mat-table id="list-view" [dataSource]="repeatList$" matSort>
|
|
84
|
+
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.config.name" sticky="true">
|
|
85
|
+
<th mat-header-cell *matHeaderCellDef class="psdk-mat-header" (click)="_headerSortClick($event, dCol)" arrowPosition="before">
|
|
86
|
+
{{ dCol.config.label }}
|
|
87
|
+
<div class="psdk-mat-header-filter">
|
|
88
|
+
<img class="psdk-filter-svg-icon" name="filterOnIcon" />
|
|
89
|
+
</div>
|
|
90
|
+
<div class="psdk-mat-header-arrow">
|
|
91
|
+
<img class="psdk-arrow-svg-icon" arrow="none" [attr.arrowid]="dCol.config.name" />
|
|
92
|
+
</div>
|
|
93
|
+
<div class="psdk-mat-header-button" (click)="$event.stopPropagation()">
|
|
94
|
+
<button mat-icon-button [matMenuTriggerFor]="groupMenu">
|
|
95
|
+
<img class="psdk-list-view-svg-icon" src="{{ menuSvgIcon$ }}" />
|
|
96
|
+
</button>
|
|
97
|
+
<mat-menu #groupMenu>
|
|
98
|
+
<button *ngIf="!_showUnGroupBy(dCol) && bGrouping$" mat-menu-item (click)="_groupBy($event, dCol)">
|
|
99
|
+
<img class="psdk-list-view-svg-icon" src="{{ groupBySvgIcon$ }}" /><span>Group By</span>
|
|
100
|
+
</button>
|
|
101
|
+
<button *ngIf="_showUnGroupBy(dCol) && bGrouping$" mat-menu-item (click)="_unGroupBy($event, dCol)">
|
|
102
|
+
<img class="psdk-list-view-svg-icon" src="{{ groupBySvgIcon$ }}" /><span>Ungroup</span>
|
|
103
|
+
</button>
|
|
104
|
+
<button mat-menu-item (click)="_filter($event, dCol)">
|
|
105
|
+
<img class="psdk-list-view-svg-icon" src="{{ filterSvgIcon$ }}" /><span>Filter</span>
|
|
106
|
+
</button>
|
|
107
|
+
</mat-menu>
|
|
108
|
+
</div>
|
|
109
|
+
</th>
|
|
110
|
+
<td mat-cell *matCellDef="let element; index as i">
|
|
111
|
+
<button
|
|
112
|
+
*ngIf="_showButton(dCol.config.name, dCol); else regular"
|
|
113
|
+
mat-button
|
|
114
|
+
color="primary"
|
|
115
|
+
(click)="_listViewClick(dCol.config, element)"
|
|
116
|
+
>
|
|
117
|
+
{{ element[dCol.config.name] }}
|
|
118
|
+
</button>
|
|
119
|
+
<ng-template #regular>
|
|
120
|
+
{{ element[dCol.config.name] }}
|
|
121
|
+
</ng-template>
|
|
122
|
+
</td>
|
|
123
|
+
</ng-container>
|
|
124
|
+
|
|
125
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns$; sticky: true"></tr>
|
|
126
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns$"></tr>
|
|
127
|
+
|
|
128
|
+
<!-- Group header -->
|
|
129
|
+
<ng-container matColumnDef="groupHeader">
|
|
130
|
+
<td mat-cell colspan="999" *matCellDef="let group">
|
|
131
|
+
<mat-icon *ngIf="group.expanded" [attr.style]="_getIconStyle(group.level)">expand_less</mat-icon>
|
|
132
|
+
<mat-icon *ngIf="!group.expanded" [attr.style]="_getIconStyle(group.level)">expand_more</mat-icon>
|
|
133
|
+
<strong
|
|
134
|
+
>{{ _getGroupName(groupByColumns$[group.level - 1]) }}: {{ group[groupByColumns$[group.level - 1]] }} ({{
|
|
135
|
+
group.totalCounts
|
|
136
|
+
}})</strong
|
|
137
|
+
>
|
|
138
|
+
</td>
|
|
139
|
+
</ng-container>
|
|
140
|
+
|
|
141
|
+
<tr mat-row *matRowDef="let row; columns: ['groupHeader']; when: isGroup" (click)="_groupHeaderClick(row)"></tr>
|
|
142
|
+
</table>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
<div *ngIf="bInForm$">
|
|
147
|
+
<div>
|
|
148
|
+
<div class="psdk-inner-div-in-form">
|
|
149
|
+
<table id="list-view" *ngIf="repeatListData.length > 0" mat-table [dataSource]="repeatList$" matSort>
|
|
150
|
+
<ng-container *ngIf="singleSelectionMode" matColumnDef="select">
|
|
151
|
+
<th mat-header-cell *matHeaderCellDef></th>
|
|
152
|
+
<td mat-cell *matCellDef="let row">
|
|
153
|
+
<mat-radio-button [value]="row[rowID]" (change)="fieldOnChange(row)"></mat-radio-button>
|
|
154
|
+
</td>
|
|
155
|
+
</ng-container>
|
|
156
|
+
<ng-container *ngIf="multiSelectionMode" matColumnDef="select">
|
|
157
|
+
<th mat-header-cell *matHeaderCellDef></th>
|
|
158
|
+
<td mat-cell *matCellDef="let row">
|
|
159
|
+
<mat-checkbox [value]="row[rowID]" (change)="onCheckboxClick(row, $event)"></mat-checkbox>
|
|
160
|
+
</td>
|
|
161
|
+
</ng-container>
|
|
162
|
+
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.config.name">
|
|
163
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header (click)="_headerSortClick($event, dCol)" arrowPosition="before">
|
|
164
|
+
{{ dCol.config.label }}
|
|
165
|
+
</th>
|
|
166
|
+
<td mat-cell *matCellDef="let element">{{ element[dCol.config.name] }}</td>
|
|
167
|
+
</ng-container>
|
|
168
|
+
|
|
169
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns$"></tr>
|
|
170
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns$"></tr>
|
|
171
|
+
</table>
|
|
172
|
+
<div *ngIf="repeatListData?.length === 0">
|
|
173
|
+
<table id="list-view" *ngIf="repeatListData?.length === 0" mat-table [dataSource]="repeatList$">
|
|
174
|
+
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.config.name">
|
|
175
|
+
<th mat-header-cell *matHeaderCellDef>{{ dCol.config.label }}</th>
|
|
176
|
+
</ng-container>
|
|
177
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns$"></tr>
|
|
178
|
+
</table>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="psdk-no-records" *ngIf="repeatListData?.length === 0">No Records Found.</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<mat-paginator id="pagination" *ngIf="bInForm$" [pageSizeOptions]="[10, 20, 50, 100, 500, 1000]" showFirstLastButtons></mat-paginator>
|
|
186
|
+
<mat-paginator id="pagination" *ngIf="!bInForm$" [pageSizeOptions]="[10, 20, 50, 100, 500]" showFirstLastButtons></mat-paginator>
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<!-- pop overs for filters-->
|
|
190
|
+
<div *ngIf="bShowFilterPopover$" class="psdk-dialog-background">
|
|
191
|
+
<div class="psdk-modal-file-top">
|
|
192
|
+
<h4>
|
|
193
|
+
Filter:<b> {{ filterContainsLabel$ }}</b>
|
|
194
|
+
</h4>
|
|
195
|
+
<div *ngIf="bContains$">
|
|
196
|
+
<mat-form-field class="psdk-full-width">
|
|
197
|
+
<mat-select [value]="filterContainsType$" (selectionChange)="_filterContainsType($event)">
|
|
198
|
+
<mat-option value="contains">Contains</mat-option>
|
|
199
|
+
<mat-option value="equals">Equals</mat-option>
|
|
200
|
+
<mat-option value="startswith">Starts with</mat-option>
|
|
201
|
+
</mat-select>
|
|
202
|
+
</mat-form-field>
|
|
203
|
+
|
|
204
|
+
<mat-form-field class="psdk-full-width">
|
|
205
|
+
<input matInput type="text" [value]="filterContainsValue$" (change)="_filterContainsValue($event)" />
|
|
206
|
+
</mat-form-field>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
<div *ngIf="bDateTime$">
|
|
210
|
+
<mat-form-field class="psdk-full-width">
|
|
211
|
+
<mat-select [value]="filterContainsType$" (selectionChange)="_filterContainsType($event)">
|
|
212
|
+
<mat-option value="notequal">is not equal to</mat-option>
|
|
213
|
+
<mat-option value="after">after</mat-option>
|
|
214
|
+
<mat-option value="before">before</mat-option>
|
|
215
|
+
<mat-option value="null">is null</mat-option>
|
|
216
|
+
<mat-option value="notnull">is not null</mat-option>
|
|
217
|
+
</mat-select>
|
|
218
|
+
</mat-form-field>
|
|
219
|
+
|
|
220
|
+
<mat-form-field *ngIf="bIsDate$ && filterContainsType$ !== 'null' && filterContainsType$ != 'notnull'" class="psdk-full-width">
|
|
221
|
+
<mat-label>Date</mat-label>
|
|
222
|
+
<input
|
|
223
|
+
matInput
|
|
224
|
+
#dateInput
|
|
225
|
+
[matDatepicker]="pegadate"
|
|
226
|
+
type="text"
|
|
227
|
+
[value]="filterContainsValue$"
|
|
228
|
+
(dateChange)="_filterContainsDateValue($event, dateInput.value)"
|
|
229
|
+
/>
|
|
230
|
+
<mat-datepicker-toggle matSuffix [for]="pegadate"></mat-datepicker-toggle>
|
|
231
|
+
<mat-datepicker #pegadate [startAt]="filterContainsValue$"></mat-datepicker>
|
|
232
|
+
</mat-form-field>
|
|
233
|
+
|
|
234
|
+
<mat-form-field *ngIf="bIsDateTime$ && filterContainsType$ !== 'null' && filterContainsType$ != 'notnull'" class="psdk-full-width">
|
|
235
|
+
<mat-label>Date time</mat-label>
|
|
236
|
+
<input matInput type="datetime-local" [value]="filterContainsValue$" (change)="_filterContainsDateTimeValue($event)" />
|
|
237
|
+
</mat-form-field>
|
|
238
|
+
|
|
239
|
+
<mat-form-field *ngIf="bIsTime$ && filterContainsType$ !== 'null' && filterContainsType$ != 'notnull'" class="psdk-full-width">
|
|
240
|
+
<mat-label>Time</mat-label>
|
|
241
|
+
<input matInput type="time" [value]="filterContainsValue$" (change)="_filterContainsTimeValue($event)" />
|
|
242
|
+
</mat-form-field>
|
|
243
|
+
</div>
|
|
244
|
+
|
|
245
|
+
<component-mapper
|
|
246
|
+
name="ActionButtons"
|
|
247
|
+
[props]="{ arMainButtons$: arFilterMainButtons$, arSecondaryButtons$: arFilterSecondaryButtons$ }"
|
|
248
|
+
[parent]="this"
|
|
249
|
+
[outputEvents]="{ actionButtonClick: _onFilterActionButtonClick }"
|
|
250
|
+
></component-mapper>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-components/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
.psdk-list-header {
|
|
4
|
+
background-color: white;
|
|
5
|
+
padding: 1rem;
|
|
6
|
+
margin: 0.5rem;
|
|
7
|
+
border-radius: 0.6125rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
table {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
::ng-deep .mat-sort-header-content {
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::ng-deep td.mat-mdc-cell {
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
::ng-deep th.mat-mdc-header-cell,
|
|
23
|
+
td.mat-mdc-cell,
|
|
24
|
+
td.mat-mdc-footer-cell {
|
|
25
|
+
padding: 0rem 0.188rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
::ng-deep .mat-mdc-button {
|
|
29
|
+
padding: 0px;
|
|
30
|
+
text-align: left;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mat-mdc-icon-button {
|
|
34
|
+
width: fit-content;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mat-mdc-row .mat-mdc-cell {
|
|
38
|
+
text-align: left;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.psdk-mat-header {
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
padding-right: 5px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.psdk-mat-header-button {
|
|
47
|
+
display: inline-grid;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.psdk-mat-header-arrow {
|
|
51
|
+
display: inline-grid;
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.psdk-mat-header-filter {
|
|
56
|
+
display: inline-grid;
|
|
57
|
+
vertical-align: middle;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.psdk-full-width {
|
|
61
|
+
width: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.psdk-search {
|
|
65
|
+
padding-left: 0.625rem;
|
|
66
|
+
padding-right: 0.625rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.psdk-icon-search {
|
|
70
|
+
vertical-align: sub;
|
|
71
|
+
padding: 0.125rem 0.125rem;
|
|
72
|
+
min-width: unset;
|
|
73
|
+
width: 1.1rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.psdk-outer-div-in-form {
|
|
77
|
+
padding: 1rem;
|
|
78
|
+
overflow: hidden;
|
|
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
|
+
.psdk-no-records {
|
|
154
|
+
height: 56px;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
border: 1px solid lightgray;
|
|
159
|
+
border-top: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.psdk-table-field-link {
|
|
163
|
+
color: $app-primary-color;
|
|
164
|
+
padding: 0;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
border: 0;
|
|
167
|
+
background-color: transparent;
|
|
168
|
+
align-items: center;
|
|
169
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ListViewComponent } from './list-view.component';
|
|
4
|
+
|
|
5
|
+
describe('ListViewComponent', () => {
|
|
6
|
+
let component: ListViewComponent;
|
|
7
|
+
let fixture: ComponentFixture<ListViewComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ListViewComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(ListViewComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|