@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,12 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<h2 class="psdk-case-history-title">{{ configProps$.label }}</h2>
|
|
3
|
+
<table mat-table [dataSource]="repeatList$">
|
|
4
|
+
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.fieldName">
|
|
5
|
+
<th mat-header-cell *matHeaderCellDef>{{ dCol.label }}</th>
|
|
6
|
+
<td mat-cell *matCellDef="let element">{{ element[dCol.fieldName] }}</td>
|
|
7
|
+
</ng-container>
|
|
8
|
+
|
|
9
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns$"></tr>
|
|
10
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns$"></tr>
|
|
11
|
+
</table>
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
table {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.mat-mdc-row .mat-mdc-cell {
|
|
6
|
+
text-align: left;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.psdk-search {
|
|
10
|
+
padding-left: 0.625rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.psdk-icon-search {
|
|
14
|
+
vertical-align: sub;
|
|
15
|
+
padding: 0rem 0.125rem;
|
|
16
|
+
min-width: unset;
|
|
17
|
+
width: 1.1rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.psdk-case-history-title {
|
|
21
|
+
margin-left: 0.5rem;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CaseHistoryComponent } from './case-history.component';
|
|
4
|
+
|
|
5
|
+
describe('CaseHistoryComponent', () => {
|
|
6
|
+
let component: CaseHistoryComponent;
|
|
7
|
+
let fixture: ComponentFixture<CaseHistoryComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [CaseHistoryComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(CaseHistoryComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
4
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
5
|
+
|
|
6
|
+
interface CaseHistoryProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'app-case-history',
|
|
12
|
+
templateUrl: './case-history.component.html',
|
|
13
|
+
styleUrls: ['./case-history.component.scss'],
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, MatTableModule]
|
|
16
|
+
})
|
|
17
|
+
export class CaseHistoryComponent implements OnInit {
|
|
18
|
+
@Input() pConn$: typeof PConnect;
|
|
19
|
+
|
|
20
|
+
configProps$: CaseHistoryProps;
|
|
21
|
+
|
|
22
|
+
repeatList$: MatTableDataSource<any>;
|
|
23
|
+
fields$: any[];
|
|
24
|
+
displayedColumns$ = Array<any>();
|
|
25
|
+
waitingForData = false;
|
|
26
|
+
|
|
27
|
+
constructor(private utils: Utils) {}
|
|
28
|
+
|
|
29
|
+
ngOnInit(): void {
|
|
30
|
+
this.configProps$ = this.pConn$.getConfigProps();
|
|
31
|
+
|
|
32
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
33
|
+
const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
34
|
+
const dataViewName = 'D_pyWorkHistory';
|
|
35
|
+
const context = this.pConn$.getContextName();
|
|
36
|
+
|
|
37
|
+
this.waitingForData = true;
|
|
38
|
+
|
|
39
|
+
const caseHistoryData = PCore.getDataApiUtils().getData(
|
|
40
|
+
dataViewName,
|
|
41
|
+
{ dataViewParameters: [{ CaseInstanceKey: caseID }] } as any,
|
|
42
|
+
context
|
|
43
|
+
) as Promise<any>;
|
|
44
|
+
|
|
45
|
+
caseHistoryData.then((historyJSON: any) => {
|
|
46
|
+
this.fields$ = [
|
|
47
|
+
{ label: this.pConn$.getLocalizedValue('Date', '', ''), type: 'DateTime', fieldName: 'pxTimeCreated' },
|
|
48
|
+
{ label: this.pConn$.getLocalizedValue('Description', '', ''), type: 'TextInput', fieldName: 'pyMessageKey' },
|
|
49
|
+
{ label: this.pConn$.getLocalizedValue('User', '', ''), type: 'TextInput', fieldName: 'pyPerformer' }
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const tableDataResults = this.updateData(historyJSON.data.data, this.fields$);
|
|
53
|
+
|
|
54
|
+
this.displayedColumns$ = this.getDisplayColumns(this.fields$);
|
|
55
|
+
|
|
56
|
+
this.repeatList$ = new MatTableDataSource(tableDataResults);
|
|
57
|
+
|
|
58
|
+
this.waitingForData = false;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// This method isn't being used anywhere, keeping it as a reference for now
|
|
62
|
+
// updateFields(arFields, arColumns): any[] {
|
|
63
|
+
// const arReturn = arFields;
|
|
64
|
+
// for (const i in arReturn) {
|
|
65
|
+
// arReturn[i].config.name = arColumns[i];
|
|
66
|
+
// }
|
|
67
|
+
|
|
68
|
+
// return arReturn;
|
|
69
|
+
// }
|
|
70
|
+
|
|
71
|
+
updateData(listData: any[], fieldData: any[]): any[] {
|
|
72
|
+
const returnList: any[] = new Array<any>();
|
|
73
|
+
listData.forEach(row => {
|
|
74
|
+
// copy
|
|
75
|
+
const rowData = JSON.parse(JSON.stringify(row));
|
|
76
|
+
|
|
77
|
+
for (const field of fieldData) {
|
|
78
|
+
const fieldName = field.fieldName;
|
|
79
|
+
let formattedDate;
|
|
80
|
+
|
|
81
|
+
switch (field.type) {
|
|
82
|
+
case 'Date':
|
|
83
|
+
formattedDate = this.utils.generateDate(rowData[fieldName], 'Date-Short-YYYY');
|
|
84
|
+
rowData[fieldName] = formattedDate;
|
|
85
|
+
break;
|
|
86
|
+
case 'DateTime':
|
|
87
|
+
formattedDate = this.utils.generateDateTime(rowData[fieldName], 'DateTime-Short-YYYY');
|
|
88
|
+
rowData[fieldName] = formattedDate;
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
returnList.push(rowData);
|
|
95
|
+
});
|
|
96
|
+
return returnList;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
getDisplayColumns(fields: any[] = []) {
|
|
100
|
+
return fields.map(field => {
|
|
101
|
+
return field.fieldName;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
// const FeedApi = pConnect => {
|
|
2
|
+
// const { invokeRestApi, getCancelTokenSource, isRequestCanceled } = PCore.getRestClient();
|
|
3
|
+
// const appName = PCore.getEnvironmentInfo().getApplicationName();
|
|
4
|
+
// let mentionsTagsCancelTokenSource: any = [];
|
|
5
|
+
|
|
6
|
+
// const getPulseContext = pulseContext => {
|
|
7
|
+
// if (pulseContext && pulseContext.indexOf('DATA-PORTAL') !== -1) {
|
|
8
|
+
// pulseContext = `DATA-PORTAL $${appName}`;
|
|
9
|
+
// }
|
|
10
|
+
// return pulseContext;
|
|
11
|
+
// };
|
|
12
|
+
|
|
13
|
+
// const fetchMessages = (pulseContext, feedID, feedClass, feedFilters, fetchMessagesCancelTokenSource) => {
|
|
14
|
+
// pulseContext = getPulseContext(pulseContext);
|
|
15
|
+
// let filterBy = '';
|
|
16
|
+
// if (feedFilters) {
|
|
17
|
+
// feedFilters.forEach(feedFilter => {
|
|
18
|
+
// if (feedFilter.on) filterBy = `${filterBy}${feedFilter.id},`;
|
|
19
|
+
// });
|
|
20
|
+
// if (filterBy === '') filterBy = 'ClearFilters';
|
|
21
|
+
// }
|
|
22
|
+
// const queryPayload = {
|
|
23
|
+
// filterForContext: pulseContext,
|
|
24
|
+
// feedID,
|
|
25
|
+
// feedClass,
|
|
26
|
+
// filterBy
|
|
27
|
+
// };
|
|
28
|
+
|
|
29
|
+
// for (let i = 0; i < fetchMessagesCancelTokenSource.length; i += 1) {
|
|
30
|
+
// fetchMessagesCancelTokenSource[i].cancel();
|
|
31
|
+
// }
|
|
32
|
+
// const newCancelTokenSource = getCancelTokenSource();
|
|
33
|
+
// fetchMessagesCancelTokenSource.push(newCancelTokenSource);
|
|
34
|
+
|
|
35
|
+
// return invokeRestApi(
|
|
36
|
+
// 'getFeedMessages',
|
|
37
|
+
// // @ts-ignore - PCore.getRestClient().invokeRestApi(): 2nd parameter missing the following properties from type 'RestApiOptionsObject': body, headers
|
|
38
|
+
// {
|
|
39
|
+
// queryPayload,
|
|
40
|
+
// cancelTokenSource: newCancelTokenSource
|
|
41
|
+
// },
|
|
42
|
+
// pConnect.getContextName()
|
|
43
|
+
// )
|
|
44
|
+
// .then(response => {
|
|
45
|
+
// if (response.status === 200 && response.data) {
|
|
46
|
+
// fetchMessagesCancelTokenSource.pop();
|
|
47
|
+
|
|
48
|
+
// const respMessageIDs: string[] = [];
|
|
49
|
+
// const respMessages = {};
|
|
50
|
+
// const feedViewResponse = response.data;
|
|
51
|
+
// if (response.data) {
|
|
52
|
+
// if (response.data.data.FeedList) {
|
|
53
|
+
// const feedItemList = response.data.data.FeedList.pxResults;
|
|
54
|
+
// if (Array.isArray(feedItemList)) {
|
|
55
|
+
// feedItemList.forEach(message => {
|
|
56
|
+
// message.ID = message.pzInsKey;
|
|
57
|
+
// respMessageIDs.push(message.ID);
|
|
58
|
+
// respMessages[message.ID] = message;
|
|
59
|
+
// });
|
|
60
|
+
// }
|
|
61
|
+
// }
|
|
62
|
+
// if (!feedFilters) {
|
|
63
|
+
// feedFilters = [{ id: 'All', label: 'All', on: 'true', disabled: false }];
|
|
64
|
+
// if (response.data.data.FeedFilters) {
|
|
65
|
+
// const feedFiltersList = response.data.data.FeedFilters.pxResults;
|
|
66
|
+
// let allFilter: any = 'true';
|
|
67
|
+
// if (Array.isArray(feedFiltersList)) {
|
|
68
|
+
// feedFiltersList.forEach(feedFilter => {
|
|
69
|
+
// const feedFilterItem = {
|
|
70
|
+
// id: feedFilter.pyFeedSourceReference,
|
|
71
|
+
// label: feedFilter.pyLabel,
|
|
72
|
+
// disabled: false,
|
|
73
|
+
// on: feedFilter.pySelected
|
|
74
|
+
// };
|
|
75
|
+
// if (!feedFilterItem.on) allFilter = false;
|
|
76
|
+
// feedFilters.push(feedFilterItem);
|
|
77
|
+
// });
|
|
78
|
+
|
|
79
|
+
// feedFilters.find(feedItem => feedItem.id === 'All').on = allFilter;
|
|
80
|
+
// }
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
// }
|
|
84
|
+
// // if filters appllied, need to reset store
|
|
85
|
+
// if (filterBy !== '' || !pConnect.getValue(`pulse.messageIDs`))
|
|
86
|
+
// pConnect.updateState({
|
|
87
|
+
// pulse: {
|
|
88
|
+
// messages: respMessages,
|
|
89
|
+
// messageIDs: respMessageIDs,
|
|
90
|
+
// feedViewResponse
|
|
91
|
+
// }
|
|
92
|
+
// });
|
|
93
|
+
// else
|
|
94
|
+
// pConnect.updateState({
|
|
95
|
+
// pulse: {
|
|
96
|
+
// messages: {
|
|
97
|
+
// ...pConnect.getValue(`pulse.messages`),
|
|
98
|
+
// ...respMessages
|
|
99
|
+
// },
|
|
100
|
+
// messageIDs: [...pConnect.getValue(`pulse.messageIDs`), ...respMessageIDs],
|
|
101
|
+
// feedViewResponse
|
|
102
|
+
// }
|
|
103
|
+
// });
|
|
104
|
+
// return feedFilters;
|
|
105
|
+
// }
|
|
106
|
+
|
|
107
|
+
// pConnect.reportError(`fetchMessages call failed ${response.status}`, response.data);
|
|
108
|
+
// return '';
|
|
109
|
+
// })
|
|
110
|
+
// .catch(error => {
|
|
111
|
+
// if (!isRequestCanceled(error)) {
|
|
112
|
+
// pConnect.reportError(': Error ocurred during ajax call at fetchMessages API : ', error.response);
|
|
113
|
+
// }
|
|
114
|
+
// });
|
|
115
|
+
// };
|
|
116
|
+
|
|
117
|
+
// const postMessage = (pulseContext, message, attachmentIDs, isReply = false) => {
|
|
118
|
+
// pulseContext = getPulseContext(pulseContext);
|
|
119
|
+
// const reqBody = JSON.stringify({
|
|
120
|
+
// context: pulseContext,
|
|
121
|
+
// message,
|
|
122
|
+
// attachments: attachmentIDs
|
|
123
|
+
// });
|
|
124
|
+
|
|
125
|
+
// // @ts-ignore - Type 'string' is not assignable to type 'object': The expected type comes from property 'body' which is declared here on type 'RestApiOptionsObject'
|
|
126
|
+
// invokeRestApi('postFeedMessages', { body: reqBody }, pConnect.getContextName())
|
|
127
|
+
// .then(response => {
|
|
128
|
+
// if (response.status === 201 && response.data) {
|
|
129
|
+
// const messageData = response.data;
|
|
130
|
+
// const messageObject = {
|
|
131
|
+
// ID: messageData.ID,
|
|
132
|
+
// pzInsKey: messageData.ID,
|
|
133
|
+
// pyFeed: {
|
|
134
|
+
// pyPostedOn: messageData.postedTime,
|
|
135
|
+
// pyFeedTitle: messageData.postedByUser.name,
|
|
136
|
+
// pyCommentContext: 'pzInsKey',
|
|
137
|
+
// pyIconType: 'user',
|
|
138
|
+
// pyIconReference: 'pi pi-case'
|
|
139
|
+
// },
|
|
140
|
+
// postedByUser: messageData.postedByUser,
|
|
141
|
+
// pyMessage: messageData.message,
|
|
142
|
+
// mentions: messageData.mentions || [],
|
|
143
|
+
// pyMessageViewReference: 'pzPostDetails',
|
|
144
|
+
// pxIcon: 'globe',
|
|
145
|
+
// pxResults: [],
|
|
146
|
+
// tags: messageData.tags || []
|
|
147
|
+
// };
|
|
148
|
+
|
|
149
|
+
// if (isReply) {
|
|
150
|
+
// let pxResults = pConnect.getValue('.pxResults');
|
|
151
|
+
// if (!pxResults) pxResults = [];
|
|
152
|
+
// pConnect.setValue('.pxResults', [...pxResults, messageObject]);
|
|
153
|
+
// } else {
|
|
154
|
+
// messageObject.pxResults = [];
|
|
155
|
+
// if (pConnect.getValue(`pulse.messageIDs`)) {
|
|
156
|
+
// const messageIDs = pConnect.getValue(`pulse.messageIDs`);
|
|
157
|
+
// const messages = pConnect.getValue(`pulse.messages`);
|
|
158
|
+
// pConnect.updateState({
|
|
159
|
+
// pulse: {
|
|
160
|
+
// messages: { ...messages, [messageObject.ID]: messageObject },
|
|
161
|
+
// messageIDs: [messageObject.ID, ...messageIDs]
|
|
162
|
+
// }
|
|
163
|
+
// });
|
|
164
|
+
// } else {
|
|
165
|
+
// pConnect.updateState({
|
|
166
|
+
// pulse: {
|
|
167
|
+
// messages: { [messageObject.ID]: messageObject },
|
|
168
|
+
// messageIDs: [messageObject.ID]
|
|
169
|
+
// }
|
|
170
|
+
// });
|
|
171
|
+
// }
|
|
172
|
+
// }
|
|
173
|
+
// } else {
|
|
174
|
+
// pConnect.reportError(`postMessage call failed with status ${response.status}`, response);
|
|
175
|
+
// }
|
|
176
|
+
// })
|
|
177
|
+
// .catch(error => {
|
|
178
|
+
// pConnect.reportError(': Error ocurred during ajax call at postMessage API : ', error.response);
|
|
179
|
+
// });
|
|
180
|
+
// };
|
|
181
|
+
|
|
182
|
+
// const likeMessage = ({ pulseContext, likedBy: unLiked, messageID, isReply }) => {
|
|
183
|
+
// pulseContext = getPulseContext(pulseContext);
|
|
184
|
+
// const routeKey = unLiked ? 'unlikeFeedMessages' : 'likeFeedMessages';
|
|
185
|
+
// const body = JSON.stringify({
|
|
186
|
+
// ContextClass: pulseContext
|
|
187
|
+
// });
|
|
188
|
+
// const queryPayload = {
|
|
189
|
+
// pulseContext
|
|
190
|
+
// };
|
|
191
|
+
|
|
192
|
+
// // @ts-ignore - Type 'string' is not assignable to type 'object': The expected type comes from property 'body' which is declared here on type 'RestApiOptionsObject'
|
|
193
|
+
// invokeRestApi(routeKey, { body, queryPayload }, pConnect.getContextName())
|
|
194
|
+
// .then(response => {
|
|
195
|
+
// if (response.status === 200) {
|
|
196
|
+
// if (isReply) {
|
|
197
|
+
// const msg = pConnect.getValue(`pulse.messages.${messageID}`);
|
|
198
|
+
|
|
199
|
+
// const pxResults = msg.pxResults.map(reply => {
|
|
200
|
+
// reply = { ...reply };
|
|
201
|
+
// if (reply.pzInsKey === pulseContext) {
|
|
202
|
+
// let updatedLikeCount = 0;
|
|
203
|
+
// let updatedLikedFlag = false;
|
|
204
|
+
// const likeCount = reply.pyLikes ? reply.pyLikes.pxLikeCount : 0;
|
|
205
|
+
// if (unLiked) {
|
|
206
|
+
// updatedLikeCount = likeCount - 1;
|
|
207
|
+
// updatedLikedFlag = false;
|
|
208
|
+
// } else {
|
|
209
|
+
// updatedLikeCount = likeCount + 1;
|
|
210
|
+
// updatedLikedFlag = true;
|
|
211
|
+
// }
|
|
212
|
+
// reply.pyLikes = {
|
|
213
|
+
// pxLikeCount: updatedLikeCount,
|
|
214
|
+
// pxIsLiked: updatedLikedFlag
|
|
215
|
+
// };
|
|
216
|
+
// }
|
|
217
|
+
// return reply;
|
|
218
|
+
// });
|
|
219
|
+
|
|
220
|
+
// pConnect.updateState({
|
|
221
|
+
// pulse: {
|
|
222
|
+
// messages: {
|
|
223
|
+
// [messageID]: {
|
|
224
|
+
// pxResults
|
|
225
|
+
// }
|
|
226
|
+
// }
|
|
227
|
+
// }
|
|
228
|
+
// });
|
|
229
|
+
// } else {
|
|
230
|
+
// const msg = { ...pConnect.getValue(`pulse.messages.${messageID}`) };
|
|
231
|
+
// const likeCount = msg.pyLikes ? msg.pyLikes.pxLikeCount : 0;
|
|
232
|
+
// let updatedLikeCount = 0;
|
|
233
|
+
// let updatedLikedFlag = false;
|
|
234
|
+
|
|
235
|
+
// if (unLiked) {
|
|
236
|
+
// updatedLikeCount = likeCount - 1;
|
|
237
|
+
// updatedLikedFlag = false;
|
|
238
|
+
// } else {
|
|
239
|
+
// updatedLikeCount = likeCount + 1;
|
|
240
|
+
// updatedLikedFlag = true;
|
|
241
|
+
// }
|
|
242
|
+
|
|
243
|
+
// msg.pyLikes = {
|
|
244
|
+
// pxLikeCount: updatedLikeCount,
|
|
245
|
+
// pxIsLiked: updatedLikedFlag
|
|
246
|
+
// };
|
|
247
|
+
|
|
248
|
+
// pConnect.updateState({
|
|
249
|
+
// pulse: {
|
|
250
|
+
// messages: {
|
|
251
|
+
// [pulseContext]: msg
|
|
252
|
+
// }
|
|
253
|
+
// }
|
|
254
|
+
// });
|
|
255
|
+
// }
|
|
256
|
+
// } else {
|
|
257
|
+
// pConnect.reportError(`likeMessage call failed with status ${response.status}`, response);
|
|
258
|
+
// }
|
|
259
|
+
// })
|
|
260
|
+
// .catch(error => {
|
|
261
|
+
// pConnect.reportError(': Error ocurred during ajax call at likeMessage API : ', error.response.data);
|
|
262
|
+
// });
|
|
263
|
+
// };
|
|
264
|
+
|
|
265
|
+
// const deleteMessage = (messageID, isReply, replyID) => {
|
|
266
|
+
// let messageKey = messageID;
|
|
267
|
+
// if (isReply) {
|
|
268
|
+
// messageKey = replyID;
|
|
269
|
+
// }
|
|
270
|
+
// const queryPayload = {
|
|
271
|
+
// messageID: messageKey
|
|
272
|
+
// };
|
|
273
|
+
|
|
274
|
+
// // @ts-ignore - PCore.getRestClient().invokeRestApi(): 2nd parameter missing the following properties from type 'RestApiOptionsObject': body, headers, cancelTokenSource
|
|
275
|
+
// invokeRestApi('deleteFeedMessage', { queryPayload }, pConnect.getContextName())
|
|
276
|
+
// .then(response => {
|
|
277
|
+
// if (response.status === 200) {
|
|
278
|
+
// if (isReply) {
|
|
279
|
+
// const msg = pConnect.getValue(`pulse.messages.${messageID}`);
|
|
280
|
+
// const pxResults = msg.pxResults.filter(reply => reply.pzInsKey !== replyID);
|
|
281
|
+
|
|
282
|
+
// pConnect.updateState({
|
|
283
|
+
// pulse: {
|
|
284
|
+
// messages: {
|
|
285
|
+
// [messageID]: {
|
|
286
|
+
// pxResults
|
|
287
|
+
// }
|
|
288
|
+
// }
|
|
289
|
+
// }
|
|
290
|
+
// });
|
|
291
|
+
// } else {
|
|
292
|
+
// const msgIDs = pConnect.getValue(`pulse.messageIDs`);
|
|
293
|
+
// const newMsgIDs = msgIDs.filter(msgID => msgID !== messageID);
|
|
294
|
+
|
|
295
|
+
// const msgs = { ...pConnect.getValue(`pulse.messages`) };
|
|
296
|
+
// delete msgs[messageID];
|
|
297
|
+
|
|
298
|
+
// pConnect.updateState({
|
|
299
|
+
// pulse: {
|
|
300
|
+
// messageIDs: newMsgIDs,
|
|
301
|
+
// messages: msgs
|
|
302
|
+
// }
|
|
303
|
+
// });
|
|
304
|
+
// }
|
|
305
|
+
// } else {
|
|
306
|
+
// pConnect.reportError(`deleteMessage call failed with status ${response.status}`, response);
|
|
307
|
+
// }
|
|
308
|
+
// })
|
|
309
|
+
// .catch(error => {
|
|
310
|
+
// pConnect.reportError(': Error ocurred during ajax call at deleteMessage API : ', error.response);
|
|
311
|
+
// });
|
|
312
|
+
// };
|
|
313
|
+
|
|
314
|
+
// const getMentionSuggestions = mentionProps => {
|
|
315
|
+
// const { searchFor, mentionsType = 'Users', listSize = 5 } = mentionProps;
|
|
316
|
+
// const pulseContext = getPulseContext(mentionProps.pulseContext);
|
|
317
|
+
// const queryPayload = {
|
|
318
|
+
// pulseContext,
|
|
319
|
+
// searchFor,
|
|
320
|
+
// mentionsType,
|
|
321
|
+
// listSize
|
|
322
|
+
// };
|
|
323
|
+
|
|
324
|
+
// for (let i = 0; i < mentionsTagsCancelTokenSource.length; i += 1) {
|
|
325
|
+
// mentionsTagsCancelTokenSource[i].cancel();
|
|
326
|
+
// }
|
|
327
|
+
// const newCancelTokenSource = getCancelTokenSource();
|
|
328
|
+
// mentionsTagsCancelTokenSource.push(newCancelTokenSource);
|
|
329
|
+
|
|
330
|
+
// return invokeRestApi(
|
|
331
|
+
// 'getMentionSuggestions',
|
|
332
|
+
// // @ts-ignore - PCore.getRestClient().invokeRestApi(): 2nd parameter missing the following properties from type 'RestApiOptionsObject': body, headers
|
|
333
|
+
// {
|
|
334
|
+
// queryPayload,
|
|
335
|
+
// cancelTokenSource: newCancelTokenSource
|
|
336
|
+
// },
|
|
337
|
+
// pConnect.getContextName()
|
|
338
|
+
// )
|
|
339
|
+
// .then(response => {
|
|
340
|
+
// mentionsTagsCancelTokenSource = [];
|
|
341
|
+
// let mentionSuggestions = [];
|
|
342
|
+
// if (response.status === 200 && response.data) {
|
|
343
|
+
// mentionSuggestions = response.data.map(mentionSuggestion => {
|
|
344
|
+
// return {
|
|
345
|
+
// fullname: mentionSuggestion.caption,
|
|
346
|
+
// id: mentionSuggestion.mentionsID
|
|
347
|
+
// };
|
|
348
|
+
// });
|
|
349
|
+
// } else {
|
|
350
|
+
// pConnect.reportError(`Get mention suggestions call failed ${response.status}`, response.data);
|
|
351
|
+
// }
|
|
352
|
+
// return mentionSuggestions;
|
|
353
|
+
// })
|
|
354
|
+
// .catch(err => {
|
|
355
|
+
// if (!isRequestCanceled(err)) {
|
|
356
|
+
// pConnect.reportError(': Error ocurred during ajax call at getMentionSuggestions API : ', err.response.data);
|
|
357
|
+
// }
|
|
358
|
+
// });
|
|
359
|
+
// };
|
|
360
|
+
|
|
361
|
+
// const getTagSuggestions = mentionProps => {
|
|
362
|
+
// const { searchFor, listSize = 5 } = mentionProps;
|
|
363
|
+
// const queryPayload = {
|
|
364
|
+
// searchFor,
|
|
365
|
+
// listSize
|
|
366
|
+
// };
|
|
367
|
+
|
|
368
|
+
// for (let i = 0; i < mentionsTagsCancelTokenSource.length; i += 1) {
|
|
369
|
+
// mentionsTagsCancelTokenSource[i].cancel();
|
|
370
|
+
// }
|
|
371
|
+
// const newCancelTokenSource = getCancelTokenSource();
|
|
372
|
+
// mentionsTagsCancelTokenSource.push(newCancelTokenSource);
|
|
373
|
+
|
|
374
|
+
// return invokeRestApi(
|
|
375
|
+
// 'getTagSuggestions',
|
|
376
|
+
// // @ts-ignore - PCore.getRestClient().invokeRestApi(): 2nd parameter missing the following properties from type 'RestApiOptionsObject': body, headers
|
|
377
|
+
// {
|
|
378
|
+
// queryPayload,
|
|
379
|
+
// cancelTokenSource: newCancelTokenSource
|
|
380
|
+
// },
|
|
381
|
+
// pConnect.getContextName()
|
|
382
|
+
// )
|
|
383
|
+
// .then(response => {
|
|
384
|
+
// mentionsTagsCancelTokenSource = [];
|
|
385
|
+
// let tagSuggestions = [];
|
|
386
|
+
// if (response.status === 200 && response.data) {
|
|
387
|
+
// tagSuggestions = response.data.tags.map(tag => `#${tag}`);
|
|
388
|
+
// } else {
|
|
389
|
+
// pConnect.reportError(`Get tag suggestions call failed ${response.status}`, response.data);
|
|
390
|
+
// }
|
|
391
|
+
// return tagSuggestions;
|
|
392
|
+
// })
|
|
393
|
+
// .catch(err => {
|
|
394
|
+
// if (!isRequestCanceled(err)) {
|
|
395
|
+
// pConnect.reportError(': Error ocurred during ajax call at getTagSuggestions API : ', err.response.data);
|
|
396
|
+
// }
|
|
397
|
+
// });
|
|
398
|
+
// };
|
|
399
|
+
|
|
400
|
+
// return {
|
|
401
|
+
// // fetchMessages,
|
|
402
|
+
// postMessage,
|
|
403
|
+
// // likeMessage,
|
|
404
|
+
// deleteMessage,
|
|
405
|
+
// getMentionSuggestions,
|
|
406
|
+
// getTagSuggestions
|
|
407
|
+
// };
|
|
408
|
+
// };
|
|
409
|
+
|
|
410
|
+
// export default FeedApi;
|