@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,616 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import { Component, OnInit, Input, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { MatGridListModule } from '@angular/material/grid-list';
|
|
6
|
+
import { MatInputModule } from '@angular/material/input';
|
|
7
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
8
|
+
import isEqual from 'fast-deep-equal';
|
|
9
|
+
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
10
|
+
import { Utils } from '@pega/angular-sdk-components';
|
|
11
|
+
|
|
12
|
+
declare const window: any;
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'app-feed-container',
|
|
16
|
+
templateUrl: './feed-container.component.html',
|
|
17
|
+
styleUrls: ['./feed-container.component.scss'],
|
|
18
|
+
providers: [Utils],
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule, MatFormFieldModule, MatInputModule, MatGridListModule, MatButtonModule]
|
|
21
|
+
})
|
|
22
|
+
export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
23
|
+
@Input() pConn$: typeof PConnect;
|
|
24
|
+
|
|
25
|
+
// Used with AngularPConnect
|
|
26
|
+
angularPConnectData: AngularPConnectData = {};
|
|
27
|
+
|
|
28
|
+
userName$: string;
|
|
29
|
+
imageKey$: string;
|
|
30
|
+
|
|
31
|
+
currentUserInitials$: string;
|
|
32
|
+
currentUserName$: string;
|
|
33
|
+
|
|
34
|
+
pulseMessages$: any[];
|
|
35
|
+
showReplyComment$: Object = {};
|
|
36
|
+
|
|
37
|
+
svgComment$: string;
|
|
38
|
+
svgLike$: string;
|
|
39
|
+
svgLikedByMe$: string;
|
|
40
|
+
svgSend$: string;
|
|
41
|
+
|
|
42
|
+
pulseConversation: string;
|
|
43
|
+
userData: Map<any, any> = new Map();
|
|
44
|
+
|
|
45
|
+
pulseComment: Object = {};
|
|
46
|
+
|
|
47
|
+
// functions
|
|
48
|
+
actionsAPI: any;
|
|
49
|
+
// until FeedAPI moved back to PCore, we access the methods directly (see ngInit)
|
|
50
|
+
feedAPI: any;
|
|
51
|
+
|
|
52
|
+
pulseData: any;
|
|
53
|
+
|
|
54
|
+
// Temporary way to use FeedApi...
|
|
55
|
+
fetchMessages: any;
|
|
56
|
+
likeMessage: any;
|
|
57
|
+
postMessage: any;
|
|
58
|
+
|
|
59
|
+
constructor(
|
|
60
|
+
private angularPConnect: AngularPConnectService,
|
|
61
|
+
private cdRef: ChangeDetectorRef,
|
|
62
|
+
private utils: Utils
|
|
63
|
+
) {}
|
|
64
|
+
|
|
65
|
+
ngOnInit(): void {
|
|
66
|
+
this.userName$ = PCore.getEnvironmentInfo().getOperatorName();
|
|
67
|
+
this.imageKey$ = PCore.getEnvironmentInfo().getOperatorImageInsKey();
|
|
68
|
+
this.updateCurrentUserName(this.userName$);
|
|
69
|
+
|
|
70
|
+
// First thing in initialization is registering and subscribing to the AngularPConnect service
|
|
71
|
+
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
72
|
+
|
|
73
|
+
// Then, continue on with other initialization
|
|
74
|
+
// debugger;
|
|
75
|
+
|
|
76
|
+
// const {
|
|
77
|
+
// fetchMessages,
|
|
78
|
+
// likeMessage,
|
|
79
|
+
// postMessage
|
|
80
|
+
// } = FeedApi(this.pConn$);
|
|
81
|
+
// this.fetchMessages = fetchMessages;
|
|
82
|
+
// this.likeMessage = likeMessage;
|
|
83
|
+
// this.postMessage = postMessage;
|
|
84
|
+
|
|
85
|
+
// // this.userName$ = this.pConn$.getValue("pxRequestor.pxUserName");
|
|
86
|
+
// // this.imageKey$ = this.pConn$.getValue("OperatorID.pyImageInsKey");
|
|
87
|
+
|
|
88
|
+
// //this.userName$ = this.pConn$.getDataObject()["D_pxEnvironmentInfo"].pxOperator.pyUserName;
|
|
89
|
+
// //this.imageKey$ = this.pConn$.getDataObject()["D_pxEnvironmentInfo"].pxOperator.pyImageInsKey;
|
|
90
|
+
// this.userName$ = this.pConn$.getEnvironmentInfo().getOperatorName();
|
|
91
|
+
// this.imageKey$ = this.pConn$.getEnvironmentInfo().getOperatorImageInsKey();
|
|
92
|
+
|
|
93
|
+
// this.actionsAPI = this.pConn$.getActionsApi();
|
|
94
|
+
|
|
95
|
+
// let owner = this.pConn$.getConfigProps().value;
|
|
96
|
+
|
|
97
|
+
// // with new FeedAPI: owner is the proper value to pass in
|
|
98
|
+
// // and no longer takes 2nd argument
|
|
99
|
+
// this./*feedAPI.*/fetchMessages(owner /*, this.pConn$.getContextName()*/);
|
|
100
|
+
|
|
101
|
+
// const configProps: any = this.pConn$.getConfigProps();
|
|
102
|
+
|
|
103
|
+
// const { messageIDs } = configProps;
|
|
104
|
+
|
|
105
|
+
// const { fetchMessages, postMessage, getMentionSuggestions, getTagSuggestions } = FeedApi(this.pConn$);
|
|
106
|
+
|
|
107
|
+
const appName = PCore.getEnvironmentInfo().getApplicationName();
|
|
108
|
+
let value = '';
|
|
109
|
+
let feedID = '';
|
|
110
|
+
let feedClass = '';
|
|
111
|
+
|
|
112
|
+
if (this.pConn$.getCaseSummary().ID) {
|
|
113
|
+
value = this.pConn$.getCaseSummary().ID;
|
|
114
|
+
feedID = 'pyCaseFeed';
|
|
115
|
+
feedClass = this.pConn$.getCaseSummary().content.classID;
|
|
116
|
+
} else {
|
|
117
|
+
value = `DATA-PORTAL $${appName}`;
|
|
118
|
+
feedID = 'pyDashboardFeed';
|
|
119
|
+
feedClass = '@baseclass';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const onUploadProgress = () => {};
|
|
123
|
+
const errorHandler = () => {};
|
|
124
|
+
const attachments = () => {};
|
|
125
|
+
|
|
126
|
+
const postComment = ({ value: message, clear }) => {
|
|
127
|
+
const attachmentIDs = [];
|
|
128
|
+
const attachmentUtils = PCore.getAttachmentUtils();
|
|
129
|
+
if (attachments && !!attachments.length) {
|
|
130
|
+
/* attachments;
|
|
131
|
+
.filter((file) => !file.error)
|
|
132
|
+
.map((file) => {
|
|
133
|
+
return attachmentUtils
|
|
134
|
+
.uploadAttachment(file, onUploadProgress, errorHandler)
|
|
135
|
+
.then((fileResponse) => {
|
|
136
|
+
const fileConfig = {
|
|
137
|
+
type: "File",
|
|
138
|
+
category: "File",
|
|
139
|
+
fileName: file.name,
|
|
140
|
+
ID: fileResponse.data.ID
|
|
141
|
+
};
|
|
142
|
+
attachmentIDs.push(fileConfig);
|
|
143
|
+
if (attachments.length === attachmentIDs.length) {
|
|
144
|
+
postMessage(
|
|
145
|
+
value,
|
|
146
|
+
transformMarkdownToMsg(message),
|
|
147
|
+
attachmentIDs
|
|
148
|
+
);
|
|
149
|
+
clear();
|
|
150
|
+
setAttachments([]);
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
.catch(console.error);
|
|
155
|
+
}); */
|
|
156
|
+
} else {
|
|
157
|
+
// postMessage(value, transformMarkdownToMsg(message));
|
|
158
|
+
clear();
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/*
|
|
163
|
+
|
|
164
|
+
const { getPConnect, messageIDs } = props;
|
|
165
|
+
const [mentionResults, setMentionResults] = useState([]);
|
|
166
|
+
const [tagResults, setTagResults] = useState([]);
|
|
167
|
+
const [attachments, setAttachments] = useState([]);
|
|
168
|
+
const [feedFilters, setFeedFilters] = useState();
|
|
169
|
+
const {
|
|
170
|
+
fetchMessages,
|
|
171
|
+
postMessage,
|
|
172
|
+
getMentionSuggestions,
|
|
173
|
+
getTagSuggestions
|
|
174
|
+
} = FeedApi(getPConnect());
|
|
175
|
+
const appName = PCore.getEnvironmentInfo().getApplicationName();
|
|
176
|
+
let value = "";
|
|
177
|
+
let feedID = "";
|
|
178
|
+
let feedClass = "";
|
|
179
|
+
if (getPConnect().getCaseSummary().ID) {
|
|
180
|
+
value = getPConnect().getCaseSummary().ID;
|
|
181
|
+
feedID = "pyCaseFeed";
|
|
182
|
+
feedClass = getPConnect().getCaseSummary().content.classID;
|
|
183
|
+
} else {
|
|
184
|
+
value = `DATA-PORTAL $${appName}`;
|
|
185
|
+
feedID = "pyDashboardFeed";
|
|
186
|
+
feedClass = "@baseclass";
|
|
187
|
+
}
|
|
188
|
+
// For cancelling fetchrequest for filetrs
|
|
189
|
+
const fetchMessagesCancelTokenSource = useRef([]);
|
|
190
|
+
|
|
191
|
+
useEffect(() => {
|
|
192
|
+
fetchMessages(
|
|
193
|
+
value,
|
|
194
|
+
feedID,
|
|
195
|
+
feedClass,
|
|
196
|
+
null,
|
|
197
|
+
fetchMessagesCancelTokenSource.current
|
|
198
|
+
).then((res) => {
|
|
199
|
+
setFeedFilters(res);
|
|
200
|
+
});
|
|
201
|
+
PCore.getAssetLoader().getLoader("component-loader")(["Activity"]);
|
|
202
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
203
|
+
}, []);
|
|
204
|
+
|
|
205
|
+
const onUploadProgress = useCallback((file) => {
|
|
206
|
+
return ({ loaded, total }) => {
|
|
207
|
+
file.progress = Math.floor((loaded / total) * 100);
|
|
208
|
+
setAttachments((current) => {
|
|
209
|
+
return current.map((currFile) => {
|
|
210
|
+
return currFile.name === file.name ? file : currFile;
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
}, []);
|
|
215
|
+
|
|
216
|
+
const errorHandler = useCallback((isFetchCanceled, file) => {
|
|
217
|
+
return (error) => {
|
|
218
|
+
if (!isFetchCanceled(error)) {
|
|
219
|
+
let localizedValue = "Upload failed";
|
|
220
|
+
if (
|
|
221
|
+
error.response &&
|
|
222
|
+
error.response.data &&
|
|
223
|
+
error.response.data.errorDetails
|
|
224
|
+
) {
|
|
225
|
+
localizedValue = error.response.data.errorDetails[0].localizedValue;
|
|
226
|
+
}
|
|
227
|
+
delete file.progress;
|
|
228
|
+
setAttachments((current) => {
|
|
229
|
+
return current.map((currFile) => {
|
|
230
|
+
if (currFile.name === file.name) {
|
|
231
|
+
currFile.meta = localizedValue;
|
|
232
|
+
currFile.error = true;
|
|
233
|
+
}
|
|
234
|
+
return currFile;
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
error.isHandled = true;
|
|
238
|
+
}
|
|
239
|
+
throw error;
|
|
240
|
+
};
|
|
241
|
+
}, []);
|
|
242
|
+
|
|
243
|
+
const postComment = ({ value: message, clear }) => {
|
|
244
|
+
const attachmentIDs = [];
|
|
245
|
+
const attachmentUtils = PCore.getAttachmentUtils();
|
|
246
|
+
if (attachments && !!attachments.length) {
|
|
247
|
+
attachments
|
|
248
|
+
.filter((file) => !file.error)
|
|
249
|
+
.map((file) => {
|
|
250
|
+
return attachmentUtils
|
|
251
|
+
.uploadAttachment(file, onUploadProgress, errorHandler)
|
|
252
|
+
.then((fileResponse) => {
|
|
253
|
+
const fileConfig = {
|
|
254
|
+
type: "File",
|
|
255
|
+
category: "File",
|
|
256
|
+
fileName: file.name,
|
|
257
|
+
ID: fileResponse.data.ID
|
|
258
|
+
};
|
|
259
|
+
attachmentIDs.push(fileConfig);
|
|
260
|
+
if (attachments.length === attachmentIDs.length) {
|
|
261
|
+
postMessage(
|
|
262
|
+
value,
|
|
263
|
+
transformMarkdownToMsg(message),
|
|
264
|
+
attachmentIDs
|
|
265
|
+
);
|
|
266
|
+
clear();
|
|
267
|
+
setAttachments([]);
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
.catch(console.error);
|
|
272
|
+
});
|
|
273
|
+
} else {
|
|
274
|
+
postMessage(value, transformMarkdownToMsg(message));
|
|
275
|
+
clear();
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/* On search is called when @ character is entered and will display the mention */
|
|
282
|
+
|
|
283
|
+
/*
|
|
284
|
+
const onSearch = debounce((event) => {
|
|
285
|
+
if (event.type === "mention") {
|
|
286
|
+
getMentionSuggestions({
|
|
287
|
+
pulseContext: value,
|
|
288
|
+
searchFor: event.search
|
|
289
|
+
}).then((res) => {
|
|
290
|
+
setMentionResults(res);
|
|
291
|
+
});
|
|
292
|
+
} else {
|
|
293
|
+
getTagSuggestions({
|
|
294
|
+
searchFor: event.search
|
|
295
|
+
}).then((res) => {
|
|
296
|
+
setTagResults(res);
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}, 150);
|
|
300
|
+
|
|
301
|
+
const userName = getPConnect().getEnvironmentInfo().getOperatorName();
|
|
302
|
+
const imageKey = getPConnect().getEnvironmentInfo().getOperatorImageInsKey();
|
|
303
|
+
|
|
304
|
+
const onFilesAdded = useCallback((newlyAddedFiles) => {
|
|
305
|
+
setAttachments((current) => [
|
|
306
|
+
...newlyAddedFiles.map((file) => {
|
|
307
|
+
if (!validateMaxSize(file, 5)) {
|
|
308
|
+
file.error = true;
|
|
309
|
+
file.meta = "File is too big. Max allowed size is 5MB.";
|
|
310
|
+
}
|
|
311
|
+
file.icon = getIconFromFileType(file.type);
|
|
312
|
+
file.onDelete = () => {
|
|
313
|
+
setAttachments((c) => c.filter((f) => f.name !== file.name));
|
|
314
|
+
};
|
|
315
|
+
return file;
|
|
316
|
+
}),
|
|
317
|
+
...current
|
|
318
|
+
]);
|
|
319
|
+
}, []);
|
|
320
|
+
|
|
321
|
+
const onFilterChange = useCallback(
|
|
322
|
+
(filterID) => {
|
|
323
|
+
const updatedFilters = [...feedFilters];
|
|
324
|
+
const filterToUpdate = updatedFilters.find(
|
|
325
|
+
(feedItem) => feedItem.id === filterID
|
|
326
|
+
);
|
|
327
|
+
filterToUpdate.on = !filterToUpdate.on;
|
|
328
|
+
if (filterID === "All")
|
|
329
|
+
updatedFilters.forEach((feedFilter) => {
|
|
330
|
+
feedFilter.on = filterToUpdate.on;
|
|
331
|
+
});
|
|
332
|
+
else if (
|
|
333
|
+
updatedFilters.find(
|
|
334
|
+
(feedItem) => feedItem.on === false && feedItem.id !== "All"
|
|
335
|
+
)
|
|
336
|
+
)
|
|
337
|
+
updatedFilters.find((feedItem) => feedItem.id === "All").on = false;
|
|
338
|
+
else updatedFilters.find((feedItem) => feedItem.id === "All").on = true;
|
|
339
|
+
setFeedFilters(updatedFilters);
|
|
340
|
+
fetchMessages(
|
|
341
|
+
value,
|
|
342
|
+
feedID,
|
|
343
|
+
feedClass,
|
|
344
|
+
feedFilters,
|
|
345
|
+
fetchMessagesCancelTokenSource.current
|
|
346
|
+
);
|
|
347
|
+
},
|
|
348
|
+
[
|
|
349
|
+
value,
|
|
350
|
+
feedID,
|
|
351
|
+
feedClass,
|
|
352
|
+
feedFilters,
|
|
353
|
+
fetchMessagesCancelTokenSource,
|
|
354
|
+
fetchMessages
|
|
355
|
+
]
|
|
356
|
+
);
|
|
357
|
+
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
// set up svg images
|
|
361
|
+
this.svgComment$ = this.utils.getImageSrc('chat', this.utils.getSDKStaticContentUrl());
|
|
362
|
+
this.svgLike$ = this.utils.getImageSrc('thumbs-up', this.utils.getSDKStaticContentUrl());
|
|
363
|
+
this.svgLikedByMe$ = this.utils.getImageSrc('thumbs-up-solid', this.utils.getSDKStaticContentUrl());
|
|
364
|
+
this.svgSend$ = this.utils.getImageSrc('send', this.utils.getSDKStaticContentUrl());
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
ngOnDestroy(): void {
|
|
368
|
+
if (this.angularPConnectData.unsubscribeFn) {
|
|
369
|
+
this.angularPConnectData.unsubscribeFn();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// Callback passed when subscribing to store change
|
|
374
|
+
onStateChange() {
|
|
375
|
+
const bLogging = false;
|
|
376
|
+
if (bLogging) {
|
|
377
|
+
// console.log( `in ${this.constructor.name} onStateChange` );
|
|
378
|
+
// debugger;
|
|
379
|
+
}
|
|
380
|
+
// Should always check the bridge to see if the component should update itself (re-render)
|
|
381
|
+
const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
|
|
382
|
+
// console.log( `${this.constructor.name} shouldComponentUpdate: ${bUpdateSelf}`);
|
|
383
|
+
|
|
384
|
+
// ONLY call updateSelf when the component should update
|
|
385
|
+
// AND removing the "gate" that was put there since shouldComponentUpdate
|
|
386
|
+
// should be the real "gate"
|
|
387
|
+
if (bUpdateSelf) {
|
|
388
|
+
this.updateSelf();
|
|
389
|
+
} else {
|
|
390
|
+
// @ts-ignore - parameter “contextName” for getDataObject method should be optional
|
|
391
|
+
const newPulseData = this.pConn$.getDataObject().pulse;
|
|
392
|
+
|
|
393
|
+
if (!isEqual(newPulseData, this.pulseData)) {
|
|
394
|
+
this.updateSelf();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// @ts-ignore - parameter “contextName” for getDataObject method should be optional
|
|
399
|
+
this.pulseData = this.pConn$.getDataObject().pulse;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
updateSelf() {
|
|
403
|
+
this.getMessageData();
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
getMessageData() {
|
|
407
|
+
const messageIDs = (this.pConn$.getConfigProps() as any).messageIDs;
|
|
408
|
+
const userName = (this.pConn$.getConfigProps() as any).currentUser;
|
|
409
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
410
|
+
const imageKey = this.pConn$.getValue('OperatorID.pyImageInsKey');
|
|
411
|
+
|
|
412
|
+
// @ts-ignore - parameter “contextName” for getDataObject method should be optional
|
|
413
|
+
const oData: any = this.pConn$.getDataObject();
|
|
414
|
+
|
|
415
|
+
if (messageIDs && messageIDs.length > 0) {
|
|
416
|
+
this.pulseMessages$ = JSON.parse(JSON.stringify(oData.pulse.messages));
|
|
417
|
+
|
|
418
|
+
// convert to just an array of objects
|
|
419
|
+
this.pulseMessages$ = this.convertToArray(this.pulseMessages$);
|
|
420
|
+
|
|
421
|
+
// create a copy, so we can modify
|
|
422
|
+
this.pulseMessages$ = this.appendPulseMessage(this.pulseMessages$);
|
|
423
|
+
|
|
424
|
+
// most recent on top
|
|
425
|
+
this.pulseMessages$ = this.pulseMessages$.sort((a, b) => (a.updateTimeUTC < b.updateTimeUTC ? 1 : -1));
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
convertToArray(messages: any[]): any[] {
|
|
430
|
+
const arMessages: any[] = [];
|
|
431
|
+
|
|
432
|
+
for (let i = 0; i < messages.length; i++) {
|
|
433
|
+
arMessages.push(messages[i]);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
return arMessages;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
appendPulseMessage(messages: any[]): any[] {
|
|
440
|
+
for (let i = 0; i < messages.length; i++) {
|
|
441
|
+
const message = messages[i];
|
|
442
|
+
const postedTime = message.postedTime;
|
|
443
|
+
const updatedTime = message.updatedTime;
|
|
444
|
+
|
|
445
|
+
this.showReplyComment$[message.ID] = false;
|
|
446
|
+
|
|
447
|
+
message.displayPostedTime = this.utils.generateDateTime(postedTime, 'DateTime-Since');
|
|
448
|
+
|
|
449
|
+
// for sorting lasted update
|
|
450
|
+
if (updatedTime != null) {
|
|
451
|
+
message.updateTimeUTC = new Date(updatedTime).getTime();
|
|
452
|
+
} else {
|
|
453
|
+
message.updateTimeUTC = new Date(postedTime).getTime();
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
message.displayPostedBy = message.postedByUser.name;
|
|
457
|
+
message.displayPostedByInitials = this.utils.getInitials(message.postedByUser.name);
|
|
458
|
+
|
|
459
|
+
// if didn't break, then look at the replies
|
|
460
|
+
for (let j = 0; j < message.replies.length; j++) {
|
|
461
|
+
const reply = message.replies[j];
|
|
462
|
+
|
|
463
|
+
const replyPostedTime = reply.postedTime;
|
|
464
|
+
reply.displayPostedTime = this.utils.generateDateTime(replyPostedTime, 'DateTime-Since');
|
|
465
|
+
|
|
466
|
+
// let oReplyUser = this.userData.get(reply.postedByUser);
|
|
467
|
+
const oReplyUser = reply.postedByUser;
|
|
468
|
+
|
|
469
|
+
if (oReplyUser) {
|
|
470
|
+
reply.displayPostedBy = oReplyUser.name;
|
|
471
|
+
reply.displayPostedByInitials = this.utils.getInitials(oReplyUser.name);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
} // for
|
|
475
|
+
|
|
476
|
+
return messages;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
updateMessagesWithOperators() {
|
|
480
|
+
for (let i = 0; i < this.pulseMessages$.length; i++) {
|
|
481
|
+
const message = this.pulseMessages$[i];
|
|
482
|
+
|
|
483
|
+
const postedTime = message.postedTime;
|
|
484
|
+
|
|
485
|
+
this.showReplyComment$[message.ID] = false;
|
|
486
|
+
|
|
487
|
+
message.displayPostedTime = this.utils.generateDateTime(postedTime, 'DateTime-Since');
|
|
488
|
+
|
|
489
|
+
const oUser = this.userData.get(message.postedBy);
|
|
490
|
+
|
|
491
|
+
if (oUser) {
|
|
492
|
+
message.displayPostedBy = oUser.pyUserName;
|
|
493
|
+
message.displayPostedByInitials = this.utils.getInitials(oUser.pyUserName);
|
|
494
|
+
} else {
|
|
495
|
+
const oUserParams = {
|
|
496
|
+
OperatorId: message.postedBy
|
|
497
|
+
};
|
|
498
|
+
// Do something with oUserParams
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// if didn't break, then look at the replies
|
|
502
|
+
for (let j = 0; j < message.replies.length; j++) {
|
|
503
|
+
const reply = message.replies[j];
|
|
504
|
+
|
|
505
|
+
const replyPostedTime = reply.postedTime;
|
|
506
|
+
reply.displayPostedTime = this.utils.generateDateTime(replyPostedTime, 'DateTime-Since');
|
|
507
|
+
|
|
508
|
+
// let oReplyUser = this.userData.get(reply.postedByUser);
|
|
509
|
+
const oReplyUser = reply.postedByUser;
|
|
510
|
+
|
|
511
|
+
if (oReplyUser) {
|
|
512
|
+
reply.displayPostedBy = oReplyUser.name;
|
|
513
|
+
reply.displayPostedByInitials = this.utils.getInitials(oReplyUser.name);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
} // for
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
updateCurrentUserName(sUser: string) {
|
|
520
|
+
this.currentUserInitials$ = this.utils.getInitials(sUser);
|
|
521
|
+
this.currentUserName$ = sUser;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
postClick() {
|
|
525
|
+
// don't send a blank message
|
|
526
|
+
if (this.pulseConversation && this.pulseConversation != '') {
|
|
527
|
+
// let pulseMessage = {
|
|
528
|
+
// contextName : this.pConn$.getContextName(),
|
|
529
|
+
// message: this.pulseConversation,
|
|
530
|
+
// pulseContext: this.pConn$.getValue(".pzInsKey")
|
|
531
|
+
// };
|
|
532
|
+
|
|
533
|
+
// debugger;
|
|
534
|
+
// used to be: this./*feedAPI.*/postMessage(pulseMessage);
|
|
535
|
+
// With latest FeedAPI, the 1st arg should be getConfigProps().value
|
|
536
|
+
|
|
537
|
+
// If feedAPI is defined then only post message
|
|
538
|
+
if (this.feedAPI) {
|
|
539
|
+
this./* feedAPI. */ postMessage((this.pConn$.getConfigProps() as any).value, this.pulseConversation);
|
|
540
|
+
} else {
|
|
541
|
+
console.log("We don't support Pulse yet");
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// clear out local copy
|
|
546
|
+
(document.getElementById('pulseMessage') as HTMLElement | any).value = '';
|
|
547
|
+
this.pulseConversation = '';
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
messageChange(event: any) {
|
|
551
|
+
this.pulseConversation = event.target.value;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
likeClick(messageID: string, rMessageID: string, bLikedByMe: boolean, level: string) {
|
|
555
|
+
let pulseMessage = {};
|
|
556
|
+
|
|
557
|
+
if (level === 'top') {
|
|
558
|
+
pulseMessage = {
|
|
559
|
+
pulseContext: rMessageID,
|
|
560
|
+
isReply: null,
|
|
561
|
+
contextName: this.pConn$.getContextName(),
|
|
562
|
+
likedBy: bLikedByMe,
|
|
563
|
+
messageID
|
|
564
|
+
};
|
|
565
|
+
} else {
|
|
566
|
+
pulseMessage = {
|
|
567
|
+
pulseContext: rMessageID,
|
|
568
|
+
isReply: true,
|
|
569
|
+
contextName: this.pConn$.getContextName(),
|
|
570
|
+
likedBy: bLikedByMe,
|
|
571
|
+
messageID
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// debugger;
|
|
576
|
+
this./* feedAPI. */ likeMessage(pulseMessage);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
commentClick(messageID) {
|
|
580
|
+
// iterator through messages, find match, turn on comment entry
|
|
581
|
+
const foundMessage = this.pulseMessages$.find(message => message.ID === messageID);
|
|
582
|
+
|
|
583
|
+
if (foundMessage) {
|
|
584
|
+
this.showReplyComment$[foundMessage.ID] = true;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
this.cdRef.detectChanges();
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
postCommentClick(messageID) {
|
|
591
|
+
// debugger;
|
|
592
|
+
|
|
593
|
+
if (this.pulseComment[messageID] && this.pulseComment[messageID] != '') {
|
|
594
|
+
// let pulseMessage = {
|
|
595
|
+
// contextName : this.pConn$.getContextName(),
|
|
596
|
+
// message: this.pulseComment[messageID],
|
|
597
|
+
// pulseContext: messageID,
|
|
598
|
+
// reply: true
|
|
599
|
+
// };
|
|
600
|
+
|
|
601
|
+
// debugger;
|
|
602
|
+
// Used to be: this./*feedAPI.*/postMessage(pulseMessage);
|
|
603
|
+
// Latest update to API has changed and the postMessage actually gets
|
|
604
|
+
// the pulse context...
|
|
605
|
+
// used to use: contextName
|
|
606
|
+
// new FeedAPI wants args to be messageID, this.pulseComment[messageID], true (since this is a reply)
|
|
607
|
+
this./* feedAPI. */ postMessage(messageID, this.pulseComment[messageID], true);
|
|
608
|
+
|
|
609
|
+
this.pulseComment[messageID] = '';
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
newCommentChange(event, messageID) {
|
|
614
|
+
this.pulseComment[messageID] = event.target.value;
|
|
615
|
+
}
|
|
616
|
+
}
|