@hmcts/ccd-case-ui-toolkit 7.0.21-CVE-fix → 7.0.21-accessibility
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/esm2020/lib/app.config.mjs +45 -0
- package/esm2020/lib/components/banners/alert/alert-icon-class.pipe.mjs +25 -0
- package/esm2020/lib/components/banners/alert/alert.component.mjs +95 -0
- package/esm2020/lib/components/banners/alert/alert.module.mjs +32 -0
- package/esm2020/lib/components/banners/banners.module.mjs +32 -0
- package/esm2020/lib/components/banners/notification-banner/notification-banner.component.mjs +120 -0
- package/esm2020/lib/components/banners/notification-banner/notification-banner.module.mjs +19 -0
- package/esm2020/lib/components/body/body.component.mjs +20 -0
- package/esm2020/lib/components/body/body.module.mjs +20 -0
- package/esm2020/lib/components/footer/footer.component.mjs +105 -0
- package/esm2020/lib/components/footer/footers.module.mjs +25 -0
- package/esm2020/lib/components/form/date-input/date-input.component.mjs +331 -0
- package/esm2020/lib/components/form/form.module.mjs +29 -0
- package/esm2020/lib/components/header/header-bar/header-bar.component.mjs +97 -0
- package/esm2020/lib/components/header/headers.module.mjs +25 -0
- package/esm2020/lib/components/header/navigation/navigation-item.component.mjs +41 -0
- package/esm2020/lib/components/header/navigation/navigation.component.mjs +24 -0
- package/esm2020/lib/components/header/phase/phase.component.mjs +45 -0
- package/esm2020/lib/components/tabs/tab.component.mjs +28 -0
- package/esm2020/lib/components/tabs/tabs.component.mjs +79 -0
- package/esm2020/lib/components/tabs/tabs.module.mjs +38 -0
- package/esm2020/lib/shared/commons/address-validation-constants.mjs +13 -0
- package/esm2020/lib/shared/commons/case-edit-data/case-edit-data.module.mjs +19 -0
- package/esm2020/lib/shared/commons/case-edit-data/case-edit-data.service.mjs +47 -0
- package/esm2020/lib/shared/commons/constants.mjs +13 -0
- package/esm2020/lib/shared/components/activity/activity-banner/activity-banner.component.mjs +39 -0
- package/esm2020/lib/shared/components/activity/activity-icon/activity-icon.component.mjs +33 -0
- package/esm2020/lib/shared/components/activity/activity.component.mjs +151 -0
- package/esm2020/lib/shared/components/activity/activity.module.mjs +55 -0
- package/esm2020/lib/shared/components/case-editor/case-access-utils/index.mjs +105 -0
- package/esm2020/lib/shared/components/case-editor/case-create/case-create.component.mjs +87 -0
- package/esm2020/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +432 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.mjs +125 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.mjs +135 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.mjs +69 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +751 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +542 -0
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +213 -0
- package/esm2020/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.mjs +86 -0
- package/esm2020/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.mjs +80 -0
- package/esm2020/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.mjs +153 -0
- package/esm2020/lib/shared/components/case-editor/case-progress/case-progress.component.mjs +77 -0
- package/esm2020/lib/shared/components/case-editor/domain/confirmation.model.mjs +21 -0
- package/esm2020/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.mjs +4 -0
- package/esm2020/lib/shared/components/case-editor/domain/wizard-page-field.model.mjs +3 -0
- package/esm2020/lib/shared/components/case-editor/domain/wizard-page.model.mjs +26 -0
- package/esm2020/lib/shared/components/case-editor/domain/wizard.model.mjs +54 -0
- package/esm2020/lib/shared/components/case-editor/services/case-edit-wizard.guard.mjs +93 -0
- package/esm2020/lib/shared/components/case-editor/services/case-flag-state.service.mjs +19 -0
- package/esm2020/lib/shared/components/case-editor/services/case-worker.service.mjs +32 -0
- package/esm2020/lib/shared/components/case-editor/services/case.notifier.mjs +51 -0
- package/esm2020/lib/shared/components/case-editor/services/cases.service.mjs +294 -0
- package/esm2020/lib/shared/components/case-editor/services/convert-href-to-router.service.mjs +41 -0
- package/esm2020/lib/shared/components/case-editor/services/event-completion-state-machine.service.mjs +143 -0
- package/esm2020/lib/shared/components/case-editor/services/event-trigger.service.mjs +20 -0
- package/esm2020/lib/shared/components/case-editor/services/judicial-worker.service.mjs +32 -0
- package/esm2020/lib/shared/components/case-editor/services/page-validation.service.mjs +53 -0
- package/esm2020/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.mjs +39 -0
- package/esm2020/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.mjs +117 -0
- package/esm2020/lib/shared/components/case-editor/services/work-allocation.service.mjs +209 -0
- package/esm2020/lib/shared/components/case-header/case-header.component.mjs +61 -0
- package/esm2020/lib/shared/components/case-header/case-header.module.mjs +33 -0
- package/esm2020/lib/shared/components/case-history/case-history.component.mjs +242 -0
- package/esm2020/lib/shared/components/case-history/case-history.module.mjs +64 -0
- package/esm2020/lib/shared/components/case-history/domain/case-history.model.mjs +29 -0
- package/esm2020/lib/shared/components/case-history/services/case-history.service.mjs +40 -0
- package/esm2020/lib/shared/components/case-list/case-list.component.mjs +362 -0
- package/esm2020/lib/shared/components/case-list/case-list.module.mjs +47 -0
- package/esm2020/lib/shared/components/case-list-filters/case-list-filters.component.mjs +52 -0
- package/esm2020/lib/shared/components/case-list-filters/case-list-filters.module.mjs +64 -0
- package/esm2020/lib/shared/components/case-timeline/case-timeline.component.mjs +109 -0
- package/esm2020/lib/shared/components/case-timeline/case-timeline.module.mjs +52 -0
- package/esm2020/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.mjs +247 -0
- package/esm2020/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.mjs +298 -0
- package/esm2020/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.mjs +72 -0
- package/esm2020/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +141 -0
- package/esm2020/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +684 -0
- package/esm2020/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.mjs +58 -0
- package/esm2020/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.mjs +241 -0
- package/esm2020/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.mjs +199 -0
- package/esm2020/lib/shared/components/case-viewer/case-specific-access-success/case-specific-access-success.component.mjs +47 -0
- package/esm2020/lib/shared/components/case-viewer/case-view/case-view.component.mjs +98 -0
- package/esm2020/lib/shared/components/case-viewer/case-viewer.component.mjs +128 -0
- package/esm2020/lib/shared/components/case-viewer/case-viewer.module.mjs +191 -0
- package/esm2020/lib/shared/components/case-viewer/printer/case-printer.component.mjs +110 -0
- package/esm2020/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.mjs +60 -0
- package/esm2020/lib/shared/components/case-viewer/services/case.resolver.mjs +131 -0
- package/esm2020/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +64 -0
- package/esm2020/lib/shared/components/create-case-filters/create-case-filters-selection.model.mjs +8 -0
- package/esm2020/lib/shared/components/create-case-filters/create-case-filters.component.mjs +275 -0
- package/esm2020/lib/shared/components/create-case-filters/create-case-filters.module.mjs +44 -0
- package/esm2020/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.mjs +57 -0
- package/esm2020/lib/shared/components/dialogs/dialogs.module.mjs +51 -0
- package/esm2020/lib/shared/components/dialogs/document-dialog/document-dialog.component.mjs +59 -0
- package/esm2020/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.mjs +57 -0
- package/esm2020/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.mjs +61 -0
- package/esm2020/lib/shared/components/error/callback-errors.component.mjs +148 -0
- package/esm2020/lib/shared/components/error/domain/error-context.mjs +3 -0
- package/esm2020/lib/shared/components/error/errors.module.mjs +33 -0
- package/esm2020/lib/shared/components/error-message/error-message.component.mjs +43 -0
- package/esm2020/lib/shared/components/error-message/error-message.module.mjs +41 -0
- package/esm2020/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.mjs +59 -0
- package/esm2020/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.mjs +53 -0
- package/esm2020/lib/shared/components/event-start/components/task-assigned/task-assigned.component.mjs +104 -0
- package/esm2020/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.mjs +68 -0
- package/esm2020/lib/shared/components/event-start/components/task-conflict/task-conflict.component.mjs +58 -0
- package/esm2020/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.mjs +53 -0
- package/esm2020/lib/shared/components/event-start/event-guard/event-start.guard.mjs +94 -0
- package/esm2020/lib/shared/components/event-start/event-start.component.mjs +49 -0
- package/esm2020/lib/shared/components/event-start/event-start.module.mjs +71 -0
- package/esm2020/lib/shared/components/event-start/resolvers/event-tasks-resolver.service.mjs +29 -0
- package/esm2020/lib/shared/components/event-start/services/event-start-state-machine.service.mjs +168 -0
- package/esm2020/lib/shared/components/event-trigger/event-trigger.component.mjs +111 -0
- package/esm2020/lib/shared/components/event-trigger/event-trigger.module.mjs +37 -0
- package/esm2020/lib/shared/components/loading-spinner/loading-spinner.component.mjs +27 -0
- package/esm2020/lib/shared/components/loading-spinner/loading-spinner.module.mjs +29 -0
- package/esm2020/lib/shared/components/pagination/pagination.component.mjs +262 -0
- package/esm2020/lib/shared/components/pagination/pagination.module.mjs +35 -0
- package/esm2020/lib/shared/components/palette/address/address-option.model.mjs +21 -0
- package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +282 -0
- package/esm2020/lib/shared/components/palette/base-field/abstract-field-read.component.mjs +31 -0
- package/esm2020/lib/shared/components/palette/base-field/abstract-field-write.component.mjs +44 -0
- package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +83 -0
- package/esm2020/lib/shared/components/palette/base-field/field-read-label.component.mjs +86 -0
- package/esm2020/lib/shared/components/palette/base-field/field-read.component.mjs +85 -0
- package/esm2020/lib/shared/components/palette/base-field/field-write.component.mjs +74 -0
- package/esm2020/lib/shared/components/palette/base-field/payment-field.component.mjs +35 -0
- package/esm2020/lib/shared/components/palette/case-file-view/case-file-view-field.component.mjs +171 -0
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.mjs +48 -0
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.mjs +48 -0
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +340 -0
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +153 -0
- package/esm2020/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.mjs +94 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +190 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +288 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.mjs +207 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.mjs +165 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +219 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +306 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +200 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +343 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +267 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +510 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/flag-field-display.pipe.mjs +41 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/language-interpreter-display.pipe.mjs +41 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/manage-case-flags-label-display.pipe.mjs +109 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/update-flag-title-display.pipe.mjs +77 -0
- package/esm2020/lib/shared/components/palette/case-flag/read-case-flag-field.component.mjs +246 -0
- package/esm2020/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +686 -0
- package/esm2020/lib/shared/components/palette/case-link/read-case-link-field.component.mjs +32 -0
- package/esm2020/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +122 -0
- package/esm2020/lib/shared/components/palette/collection/collection-create-checker.service.mjs +42 -0
- package/esm2020/lib/shared/components/palette/collection/read-collection-field.component.mjs +81 -0
- package/esm2020/lib/shared/components/palette/collection/write-collection-field.component.mjs +443 -0
- package/esm2020/lib/shared/components/palette/complex/read-complex-field-collection-table.component.mjs +379 -0
- package/esm2020/lib/shared/components/palette/complex/read-complex-field-raw.component.mjs +53 -0
- package/esm2020/lib/shared/components/palette/complex/read-complex-field-table.component.mjs +78 -0
- package/esm2020/lib/shared/components/palette/complex/read-complex-field.component.mjs +73 -0
- package/esm2020/lib/shared/components/palette/complex/write-complex-field.component.mjs +171 -0
- package/esm2020/lib/shared/components/palette/date/read-date-field.component.mjs +28 -0
- package/esm2020/lib/shared/components/palette/date/write-date-container-field.component.mjs +33 -0
- package/esm2020/lib/shared/components/palette/date/write-date-field.component.mjs +76 -0
- package/esm2020/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +309 -0
- package/esm2020/lib/shared/components/palette/document/document-url.pipe.mjs +24 -0
- package/esm2020/lib/shared/components/palette/document/file-upload-progress.guard.mjs +29 -0
- package/esm2020/lib/shared/components/palette/document/file-upload-state.service.mjs +16 -0
- package/esm2020/lib/shared/components/palette/document/read-document-field.component.mjs +81 -0
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +383 -0
- package/esm2020/lib/shared/components/palette/dynamic-list/dynamic-list.pipe.mjs +18 -0
- package/esm2020/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.mjs +36 -0
- package/esm2020/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +124 -0
- package/esm2020/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.mjs +43 -0
- package/esm2020/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.mjs +145 -0
- package/esm2020/lib/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.mjs +25 -0
- package/esm2020/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.mjs +42 -0
- package/esm2020/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.mjs +124 -0
- package/esm2020/lib/shared/components/palette/email/read-email-field.component.mjs +35 -0
- package/esm2020/lib/shared/components/palette/email/write-email-field.component.mjs +73 -0
- package/esm2020/lib/shared/components/palette/fixed-list/fixed-list.pipe.mjs +23 -0
- package/esm2020/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.mjs +26 -0
- package/esm2020/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.mjs +106 -0
- package/esm2020/lib/shared/components/palette/fixed-radio-list/fixed-radio-list.pipe.mjs +18 -0
- package/esm2020/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.mjs +26 -0
- package/esm2020/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.mjs +95 -0
- package/esm2020/lib/shared/components/palette/history/case-history-viewer-field.component.mjs +16 -0
- package/esm2020/lib/shared/components/palette/history/event-log/event-log-details.component.mjs +97 -0
- package/esm2020/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +225 -0
- package/esm2020/lib/shared/components/palette/history/event-log/event-log.component.mjs +72 -0
- package/esm2020/lib/shared/components/palette/judicial-user/read-judicial-user-field.component.mjs +45 -0
- package/esm2020/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.mjs +242 -0
- package/esm2020/lib/shared/components/palette/label/label-field.component.mjs +50 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +108 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +189 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +530 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.mjs +204 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.mjs +280 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +66 -0
- package/esm2020/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +201 -0
- package/esm2020/lib/shared/components/palette/linked-cases/domain/linked-cases.model.mjs +22 -0
- package/esm2020/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.mjs +163 -0
- package/esm2020/lib/shared/components/palette/linked-cases/services/linked-cases.service.mjs +132 -0
- package/esm2020/lib/shared/components/palette/linked-cases/utils/validators.utils.mjs +27 -0
- package/esm2020/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +229 -0
- package/esm2020/lib/shared/components/palette/markdown/markdown-component.module.mjs +40 -0
- package/esm2020/lib/shared/components/palette/markdown/markdown.component.mjs +43 -0
- package/esm2020/lib/shared/components/palette/money-gbp/money-gbp-input.component.mjs +123 -0
- package/esm2020/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.mjs +47 -0
- package/esm2020/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.mjs +78 -0
- package/esm2020/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.mjs +45 -0
- package/esm2020/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.mjs +126 -0
- package/esm2020/lib/shared/components/palette/number/read-number-field.component.mjs +24 -0
- package/esm2020/lib/shared/components/palette/number/write-number-field.component.mjs +73 -0
- package/esm2020/lib/shared/components/palette/order-summary/fee-value.model.mjs +3 -0
- package/esm2020/lib/shared/components/palette/order-summary/fee.model.mjs +4 -0
- package/esm2020/lib/shared/components/palette/order-summary/order-summary.model.mjs +3 -0
- package/esm2020/lib/shared/components/palette/order-summary/read-order-summary-field.component.mjs +73 -0
- package/esm2020/lib/shared/components/palette/order-summary/read-order-summary-row.component.mjs +43 -0
- package/esm2020/lib/shared/components/palette/order-summary/write-order-summary-field.component.mjs +44 -0
- package/esm2020/lib/shared/components/palette/organisation/read-organisation-field-raw.component.mjs +83 -0
- package/esm2020/lib/shared/components/palette/organisation/read-organisation-field-table.component.mjs +87 -0
- package/esm2020/lib/shared/components/palette/organisation/read-organisation-field.component.mjs +56 -0
- package/esm2020/lib/shared/components/palette/organisation/write-organisation-complex-field.component.mjs +33 -0
- package/esm2020/lib/shared/components/palette/organisation/write-organisation-field.component.mjs +384 -0
- package/esm2020/lib/shared/components/palette/palette.module.mjs +738 -0
- package/esm2020/lib/shared/components/palette/palette.service.mjs +155 -0
- package/esm2020/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.mjs +24 -0
- package/esm2020/lib/shared/components/palette/phone-uk/read-phone-uk-field.component.mjs +22 -0
- package/esm2020/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.mjs +73 -0
- package/esm2020/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +42 -0
- package/esm2020/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +144 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.mjs +64 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.mjs +60 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +281 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +327 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.mjs +22 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-list/query-list.component.mjs +164 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.mjs +74 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.mjs +107 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +201 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +101 -0
- package/esm2020/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.mjs +21 -0
- package/esm2020/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +38 -0
- package/esm2020/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +121 -0
- package/esm2020/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +22 -0
- package/esm2020/lib/shared/components/palette/text/read-text-field.component.mjs +24 -0
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +77 -0
- package/esm2020/lib/shared/components/palette/text-area/read-text-area-field.component.mjs +24 -0
- package/esm2020/lib/shared/components/palette/text-area/write-text-area-field.component.mjs +87 -0
- package/esm2020/lib/shared/components/palette/unsupported-field.component.mjs +17 -0
- package/esm2020/lib/shared/components/palette/utils/dash.pipe.mjs +16 -0
- package/esm2020/lib/shared/components/palette/utils/date.pipe.mjs +132 -0
- package/esm2020/lib/shared/components/palette/utils/field-label.pipe.mjs +29 -0
- package/esm2020/lib/shared/components/palette/utils/first-error.pipe.mjs +59 -0
- package/esm2020/lib/shared/components/palette/utils/is-compound.pipe.mjs +43 -0
- package/esm2020/lib/shared/components/palette/utils/is-mandatory.pipe.mjs +21 -0
- package/esm2020/lib/shared/components/palette/utils/is-read-only-and-not-collection.pipe.mjs +31 -0
- package/esm2020/lib/shared/components/palette/utils/is-read-only.pipe.mjs +21 -0
- package/esm2020/lib/shared/components/palette/utils/utils.module.mjs +71 -0
- package/esm2020/lib/shared/components/palette/waystopay/waystopay-field.component.mjs +34 -0
- package/esm2020/lib/shared/components/palette/yes-no/read-yes-no-field.component.mjs +34 -0
- package/esm2020/lib/shared/components/palette/yes-no/write-yes-no-field.component.mjs +100 -0
- package/esm2020/lib/shared/components/palette/yes-no/yes-no.service.mjs +50 -0
- package/esm2020/lib/shared/components/search-filters/domain/search-input.model.mjs +10 -0
- package/esm2020/lib/shared/components/search-filters/search-filters-wrapper.component.mjs +58 -0
- package/esm2020/lib/shared/components/search-filters/search-filters.component.mjs +326 -0
- package/esm2020/lib/shared/components/search-filters/search-filters.module.mjs +71 -0
- package/esm2020/lib/shared/components/search-result/search-result.component.mjs +815 -0
- package/esm2020/lib/shared/components/search-result/search-result.module.mjs +82 -0
- package/esm2020/lib/shared/components/workbasket-filters/workbasket-filters.component.mjs +479 -0
- package/esm2020/lib/shared/components/workbasket-filters/workbasket-filters.module.mjs +67 -0
- package/esm2020/lib/shared/directives/conditional-show/conditional-show-form.directive.mjs +164 -0
- package/esm2020/lib/shared/directives/conditional-show/conditional-show.module.mjs +33 -0
- package/esm2020/lib/shared/directives/conditional-show/domain/conditional-show.model.mjs +200 -0
- package/esm2020/lib/shared/directives/conditional-show/services/conditional-show-registrar.service.mjs +19 -0
- package/esm2020/lib/shared/directives/conditional-show/services/grey-bar.service.mjs +47 -0
- package/esm2020/lib/shared/directives/focus-element/focus-element.directive.mjs +36 -0
- package/esm2020/lib/shared/directives/focus-element/focus-element.module.mjs +21 -0
- package/esm2020/lib/shared/directives/substitutor/label-substitutor.directive.mjs +82 -0
- package/esm2020/lib/shared/directives/substitutor/label-substitutor.module.mjs +30 -0
- package/esm2020/lib/shared/directives/substitutor/services/placeholder.service.mjs +200 -0
- package/esm2020/lib/shared/domain/activity/activity.model.mjs +10 -0
- package/esm2020/lib/shared/domain/addresses/address.model.mjs +13 -0
- package/esm2020/lib/shared/domain/alert/alert.model.mjs +3 -0
- package/esm2020/lib/shared/domain/case-details.model.mjs +4 -0
- package/esm2020/lib/shared/domain/case-event-data.model.mjs +4 -0
- package/esm2020/lib/shared/domain/case-file-view/case-file-view-category.model.mjs +3 -0
- package/esm2020/lib/shared/domain/case-file-view/case-file-view-document.model.mjs +4 -0
- package/esm2020/lib/shared/domain/case-file-view/categories-and-documents.model.mjs +7 -0
- package/esm2020/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.mjs +117 -0
- package/esm2020/lib/shared/domain/case-flag/flag-type.model.mjs +28 -0
- package/esm2020/lib/shared/domain/case-flag/hmcts-service-detail.model.mjs +10 -0
- package/esm2020/lib/shared/domain/case-view/case-event-trigger.model.mjs +23 -0
- package/esm2020/lib/shared/domain/case-view/case-print-document.model.mjs +3 -0
- package/esm2020/lib/shared/domain/case-view/case-tab.model.mjs +12 -0
- package/esm2020/lib/shared/domain/case-view/case-view-event.model.mjs +4 -0
- package/esm2020/lib/shared/domain/case-view/case-view-trigger.model.mjs +3 -0
- package/esm2020/lib/shared/domain/case-view/case-view.model.mjs +17 -0
- package/esm2020/lib/shared/domain/definition/access-control-list.model.mjs +3 -0
- package/esm2020/lib/shared/domain/definition/banner.model.mjs +3 -0
- package/esm2020/lib/shared/domain/definition/case-event.model.mjs +3 -0
- package/esm2020/lib/shared/domain/definition/case-field.model.mjs +198 -0
- package/esm2020/lib/shared/domain/definition/case-state.model.mjs +3 -0
- package/esm2020/lib/shared/domain/definition/case-type-lite.model.mjs +5 -0
- package/esm2020/lib/shared/domain/definition/case-type.model.mjs +12 -0
- package/esm2020/lib/shared/domain/definition/event-case-field.model.mjs +4 -0
- package/esm2020/lib/shared/domain/definition/field-type.model.mjs +22 -0
- package/esm2020/lib/shared/domain/definition/fixed-list-item.model.mjs +3 -0
- package/esm2020/lib/shared/domain/definition/jurisdiction.model.mjs +3 -0
- package/esm2020/lib/shared/domain/document/document-data.model.mjs +14 -0
- package/esm2020/lib/shared/domain/draft.model.mjs +11 -0
- package/esm2020/lib/shared/domain/http/http-error.model.mjs +34 -0
- package/esm2020/lib/shared/domain/organisation/organisation-converter.mjs +42 -0
- package/esm2020/lib/shared/domain/pagination-metadata.model.mjs +3 -0
- package/esm2020/lib/shared/domain/profile/profile.model.mjs +29 -0
- package/esm2020/lib/shared/domain/search/field.model.mjs +11 -0
- package/esm2020/lib/shared/domain/search/search-result-view-column.model.mjs +3 -0
- package/esm2020/lib/shared/domain/search/search-result-view-item.model.mjs +12 -0
- package/esm2020/lib/shared/domain/search/search-result-view.model.mjs +23 -0
- package/esm2020/lib/shared/domain/search/sorting/sort-parameters.mjs +7 -0
- package/esm2020/lib/shared/domain/workbasket/workbasket-input.model.mjs +5 -0
- package/esm2020/lib/shared/fixture/case-field-builder.mjs +69 -0
- package/esm2020/lib/shared/pipes/case-reference/case-reference.pipe.mjs +33 -0
- package/esm2020/lib/shared/pipes/case-title/ccd-case-title.pipe.mjs +29 -0
- package/esm2020/lib/shared/pipes/complex/ccd-collection-table-value-case-fields.pipe.mjs +32 -0
- package/esm2020/lib/shared/pipes/complex/ccd-cyapage-label-filter.pipe.mjs +29 -0
- package/esm2020/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +39 -0
- package/esm2020/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.mjs +173 -0
- package/esm2020/lib/shared/pipes/complex/ccd-tab-fields.pipe.mjs +31 -0
- package/esm2020/lib/shared/pipes/complex/fields-filter.pipe.mjs +105 -0
- package/esm2020/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.mjs +16 -0
- package/esm2020/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.mjs +27 -0
- package/esm2020/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.mjs +27 -0
- package/esm2020/lib/shared/pipes/pipes.module.mjs +64 -0
- package/esm2020/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.mjs +24 -0
- package/esm2020/lib/shared/services/activity/activity.polling.service.mjs +114 -0
- package/esm2020/lib/shared/services/activity/activity.service.mjs +82 -0
- package/esm2020/lib/shared/services/addresses/addresses.service.mjs +63 -0
- package/esm2020/lib/shared/services/alert/alert.service.mjs +142 -0
- package/esm2020/lib/shared/services/auth/auth.service.mjs +33 -0
- package/esm2020/lib/shared/services/banners/banners.service.mjs +33 -0
- package/esm2020/lib/shared/services/browser/browser.service.mjs +24 -0
- package/esm2020/lib/shared/services/case-fields/case-field.service.mjs +34 -0
- package/esm2020/lib/shared/services/case-fields/format-translator.service.mjs +242 -0
- package/esm2020/lib/shared/services/case-file-view/case-file-view.service.mjs +46 -0
- package/esm2020/lib/shared/services/case-flag/case-flag-refdata.service.mjs +102 -0
- package/esm2020/lib/shared/services/common-data-service/common-data-service.mjs +28 -0
- package/esm2020/lib/shared/services/definitions/definitions.module.mjs +19 -0
- package/esm2020/lib/shared/services/definitions/definitions.service.mjs +30 -0
- package/esm2020/lib/shared/services/document-management/document-management.service.mjs +112 -0
- package/esm2020/lib/shared/services/draft/draft.service.mjs +86 -0
- package/esm2020/lib/shared/services/error/error-notifier.service.mjs +18 -0
- package/esm2020/lib/shared/services/eventStatusService/event-status.service.mjs +21 -0
- package/esm2020/lib/shared/services/fields/fields.purger.mjs +303 -0
- package/esm2020/lib/shared/services/fields/fields.utils.mjs +615 -0
- package/esm2020/lib/shared/services/form/field-type-sanitiser.mjs +91 -0
- package/esm2020/lib/shared/services/form/form-error.service.mjs +46 -0
- package/esm2020/lib/shared/services/form/form-validators.service.mjs +56 -0
- package/esm2020/lib/shared/services/form/form-value.service.mjs +551 -0
- package/esm2020/lib/shared/services/http/http-error.service.mjs +65 -0
- package/esm2020/lib/shared/services/http/http.service.mjs +93 -0
- package/esm2020/lib/shared/services/jurisdiction/jurisdiction.service.mjs +34 -0
- package/esm2020/lib/shared/services/loading/loading.module.mjs +22 -0
- package/esm2020/lib/shared/services/loading/loading.service.mjs +37 -0
- package/esm2020/lib/shared/services/navigation/navigation-notifier.service.mjs +18 -0
- package/esm2020/lib/shared/services/order/order.service.mjs +39 -0
- package/esm2020/lib/shared/services/organisation/organisation.service.mjs +54 -0
- package/esm2020/lib/shared/services/profile/profile.notifier.mjs +19 -0
- package/esm2020/lib/shared/services/profile/profile.service.mjs +34 -0
- package/esm2020/lib/shared/services/request/request.options.builder.mjs +61 -0
- package/esm2020/lib/shared/services/router/router-helper.service.mjs +20 -0
- package/esm2020/lib/shared/services/search/search.service.mjs +89 -0
- package/esm2020/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.mjs +71 -0
- package/esm2020/lib/shared/services/session/session-storage.service.mjs +34 -0
- package/esm2020/lib/shared/services/utils/retry/retry.service.mjs +86 -0
- package/esm2020/lib/shared/services/window/window.service.mjs +40 -0
- package/esm2020/lib/shared/services/workbasket/workbasket-input-filter.service.mjs +53 -0
- package/esm2020/lib/shared/test/test-route-snapshot-builder.mjs +40 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +38545 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -0
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +35581 -0
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -0
- package/lib/shared/components/case-editor/case-editor.module.d.ts +25 -0
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-header/case-header.module.d.ts +8 -0
- package/lib/shared/components/case-header/case-header.module.d.ts.map +1 -1
- package/lib/shared/components/case-history/case-history.module.d.ts +12 -0
- package/lib/shared/components/case-history/case-history.module.d.ts.map +1 -1
- package/lib/shared/components/case-list/case-list.module.d.ts +11 -0
- package/lib/shared/components/case-list/case-list.module.d.ts.map +1 -1
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts +11 -0
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts.map +1 -1
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts +11 -0
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts +36 -0
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts.map +1 -1
- package/lib/shared/components/pagination/pagination.module.d.ts +8 -0
- package/lib/shared/components/pagination/pagination.module.d.ts.map +1 -1
- package/lib/shared/components/palette/address/write-address-field.component.d.ts +2 -1
- package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +2 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts +2 -1
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/markdown-component.module.d.ts +10 -0
- package/lib/shared/components/palette/markdown/markdown-component.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +148 -0
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/search-filters/search-filters.module.d.ts +11 -0
- package/lib/shared/components/search-filters/search-filters.module.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.module.d.ts +15 -0
- package/lib/shared/components/search-result/search-result.module.d.ts.map +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts +10 -0
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts.map +1 -1
- package/package.json +11 -5
- package/esm2022/lib/app.config.mjs +0 -93
- package/esm2022/lib/components/banners/alert/alert-icon-class.pipe.mjs +0 -25
- package/esm2022/lib/components/banners/alert/alert.component.mjs +0 -94
- package/esm2022/lib/components/banners/alert/alert.module.mjs +0 -32
- package/esm2022/lib/components/banners/banners.module.mjs +0 -32
- package/esm2022/lib/components/banners/notification-banner/notification-banner.component.mjs +0 -119
- package/esm2022/lib/components/banners/notification-banner/notification-banner.module.mjs +0 -19
- package/esm2022/lib/components/body/body.component.mjs +0 -20
- package/esm2022/lib/components/body/body.module.mjs +0 -20
- package/esm2022/lib/components/footer/footer.component.mjs +0 -109
- package/esm2022/lib/components/footer/footers.module.mjs +0 -25
- package/esm2022/lib/components/form/date-input/date-input.component.mjs +0 -342
- package/esm2022/lib/components/form/form.module.mjs +0 -29
- package/esm2022/lib/components/header/header-bar/header-bar.component.mjs +0 -98
- package/esm2022/lib/components/header/headers.module.mjs +0 -25
- package/esm2022/lib/components/header/navigation/navigation-item.component.mjs +0 -44
- package/esm2022/lib/components/header/navigation/navigation.component.mjs +0 -25
- package/esm2022/lib/components/header/phase/phase.component.mjs +0 -48
- package/esm2022/lib/components/tabs/tab.component.mjs +0 -31
- package/esm2022/lib/components/tabs/tabs.component.mjs +0 -82
- package/esm2022/lib/components/tabs/tabs.module.mjs +0 -38
- package/esm2022/lib/shared/commons/address-validation-constants.mjs +0 -13
- package/esm2022/lib/shared/commons/case-edit-data/case-edit-data.module.mjs +0 -19
- package/esm2022/lib/shared/commons/case-edit-data/case-edit-data.service.mjs +0 -46
- package/esm2022/lib/shared/commons/constants.mjs +0 -13
- package/esm2022/lib/shared/components/activity/activity-banner/activity-banner.component.mjs +0 -42
- package/esm2022/lib/shared/components/activity/activity-icon/activity-icon.component.mjs +0 -35
- package/esm2022/lib/shared/components/activity/activity.component.mjs +0 -158
- package/esm2022/lib/shared/components/activity/activity.module.mjs +0 -55
- package/esm2022/lib/shared/components/case-editor/case-access-utils/index.mjs +0 -105
- package/esm2022/lib/shared/components/case-editor/case-create/case-create.component.mjs +0 -95
- package/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +0 -463
- package/esm2022/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.mjs +0 -131
- package/esm2022/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.mjs +0 -140
- package/esm2022/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.mjs +0 -70
- package/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +0 -779
- package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +0 -560
- package/esm2022/lib/shared/components/case-editor/case-editor.module.mjs +0 -118
- package/esm2022/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.mjs +0 -96
- package/esm2022/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.mjs +0 -82
- package/esm2022/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.mjs +0 -166
- package/esm2022/lib/shared/components/case-editor/case-progress/case-progress.component.mjs +0 -84
- package/esm2022/lib/shared/components/case-editor/domain/confirmation.model.mjs +0 -25
- package/esm2022/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.mjs +0 -9
- package/esm2022/lib/shared/components/case-editor/domain/wizard-page-field.model.mjs +0 -7
- package/esm2022/lib/shared/components/case-editor/domain/wizard-page.model.mjs +0 -33
- package/esm2022/lib/shared/components/case-editor/domain/wizard.model.mjs +0 -55
- package/esm2022/lib/shared/components/case-editor/services/case-edit-wizard.guard.mjs +0 -98
- package/esm2022/lib/shared/components/case-editor/services/case-flag-state.service.mjs +0 -19
- package/esm2022/lib/shared/components/case-editor/services/case-worker.service.mjs +0 -35
- package/esm2022/lib/shared/components/case-editor/services/case.notifier.mjs +0 -53
- package/esm2022/lib/shared/components/case-editor/services/cases.service.mjs +0 -302
- package/esm2022/lib/shared/components/case-editor/services/convert-href-to-router.service.mjs +0 -42
- package/esm2022/lib/shared/components/case-editor/services/event-completion-state-machine.service.mjs +0 -153
- package/esm2022/lib/shared/components/case-editor/services/event-trigger.service.mjs +0 -18
- package/esm2022/lib/shared/components/case-editor/services/judicial-worker.service.mjs +0 -35
- package/esm2022/lib/shared/components/case-editor/services/page-validation.service.mjs +0 -54
- package/esm2022/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.mjs +0 -40
- package/esm2022/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.mjs +0 -117
- package/esm2022/lib/shared/components/case-editor/services/work-allocation.service.mjs +0 -215
- package/esm2022/lib/shared/components/case-header/case-header.component.mjs +0 -64
- package/esm2022/lib/shared/components/case-header/case-header.module.mjs +0 -25
- package/esm2022/lib/shared/components/case-history/case-history.component.mjs +0 -252
- package/esm2022/lib/shared/components/case-history/case-history.module.mjs +0 -36
- package/esm2022/lib/shared/components/case-history/domain/case-history.model.mjs +0 -37
- package/esm2022/lib/shared/components/case-history/services/case-history.service.mjs +0 -43
- package/esm2022/lib/shared/components/case-list/case-list.component.mjs +0 -373
- package/esm2022/lib/shared/components/case-list/case-list.module.mjs +0 -31
- package/esm2022/lib/shared/components/case-list-filters/case-list-filters.component.mjs +0 -56
- package/esm2022/lib/shared/components/case-list-filters/case-list-filters.module.mjs +0 -39
- package/esm2022/lib/shared/components/case-timeline/case-timeline.component.mjs +0 -115
- package/esm2022/lib/shared/components/case-timeline/case-timeline.module.mjs +0 -32
- package/esm2022/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.mjs +0 -251
- package/esm2022/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.mjs +0 -310
- package/esm2022/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.mjs +0 -74
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +0 -155
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +0 -710
- package/esm2022/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.mjs +0 -60
- package/esm2022/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.mjs +0 -255
- package/esm2022/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.mjs +0 -210
- package/esm2022/lib/shared/components/case-viewer/case-specific-access-success/case-specific-access-success.component.mjs +0 -49
- package/esm2022/lib/shared/components/case-viewer/case-view/case-view.component.mjs +0 -106
- package/esm2022/lib/shared/components/case-viewer/case-viewer.component.mjs +0 -136
- package/esm2022/lib/shared/components/case-viewer/case-viewer.module.mjs +0 -98
- package/esm2022/lib/shared/components/case-viewer/printer/case-printer.component.mjs +0 -116
- package/esm2022/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.mjs +0 -61
- package/esm2022/lib/shared/components/case-viewer/services/case.resolver.mjs +0 -141
- package/esm2022/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +0 -70
- package/esm2022/lib/shared/components/create-case-filters/create-case-filters-selection.model.mjs +0 -11
- package/esm2022/lib/shared/components/create-case-filters/create-case-filters.component.mjs +0 -288
- package/esm2022/lib/shared/components/create-case-filters/create-case-filters.module.mjs +0 -44
- package/esm2022/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.mjs +0 -59
- package/esm2022/lib/shared/components/dialogs/dialogs.module.mjs +0 -51
- package/esm2022/lib/shared/components/dialogs/document-dialog/document-dialog.component.mjs +0 -61
- package/esm2022/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.mjs +0 -59
- package/esm2022/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.mjs +0 -63
- package/esm2022/lib/shared/components/error/callback-errors.component.mjs +0 -147
- package/esm2022/lib/shared/components/error/domain/error-context.mjs +0 -5
- package/esm2022/lib/shared/components/error/errors.module.mjs +0 -33
- package/esm2022/lib/shared/components/error-message/error-message.component.mjs +0 -44
- package/esm2022/lib/shared/components/error-message/error-message.module.mjs +0 -41
- package/esm2022/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.mjs +0 -61
- package/esm2022/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.mjs +0 -55
- package/esm2022/lib/shared/components/event-start/components/task-assigned/task-assigned.component.mjs +0 -111
- package/esm2022/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.mjs +0 -69
- package/esm2022/lib/shared/components/event-start/components/task-conflict/task-conflict.component.mjs +0 -60
- package/esm2022/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.mjs +0 -55
- package/esm2022/lib/shared/components/event-start/event-guard/event-start.guard.mjs +0 -97
- package/esm2022/lib/shared/components/event-start/event-start.component.mjs +0 -55
- package/esm2022/lib/shared/components/event-start/event-start.module.mjs +0 -71
- package/esm2022/lib/shared/components/event-start/resolvers/event-tasks-resolver.service.mjs +0 -31
- package/esm2022/lib/shared/components/event-start/services/event-start-state-machine.service.mjs +0 -177
- package/esm2022/lib/shared/components/event-trigger/event-trigger.component.mjs +0 -117
- package/esm2022/lib/shared/components/event-trigger/event-trigger.module.mjs +0 -37
- package/esm2022/lib/shared/components/loading-spinner/loading-spinner.component.mjs +0 -25
- package/esm2022/lib/shared/components/loading-spinner/loading-spinner.module.mjs +0 -29
- package/esm2022/lib/shared/components/pagination/pagination.component.mjs +0 -261
- package/esm2022/lib/shared/components/pagination/pagination.module.mjs +0 -26
- package/esm2022/lib/shared/components/palette/address/address-option.model.mjs +0 -23
- package/esm2022/lib/shared/components/palette/address/write-address-field.component.mjs +0 -287
- package/esm2022/lib/shared/components/palette/base-field/abstract-field-read.component.mjs +0 -30
- package/esm2022/lib/shared/components/palette/base-field/abstract-field-write.component.mjs +0 -44
- package/esm2022/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +0 -84
- package/esm2022/lib/shared/components/palette/base-field/field-read-label.component.mjs +0 -85
- package/esm2022/lib/shared/components/palette/base-field/field-read.component.mjs +0 -89
- package/esm2022/lib/shared/components/palette/base-field/field-write.component.mjs +0 -77
- package/esm2022/lib/shared/components/palette/base-field/payment-field.component.mjs +0 -37
- package/esm2022/lib/shared/components/palette/case-file-view/case-file-view-field.component.mjs +0 -182
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.mjs +0 -48
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.mjs +0 -49
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +0 -356
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +0 -155
- package/esm2022/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.mjs +0 -93
- package/esm2022/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +0 -191
- package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +0 -302
- package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.mjs +0 -208
- package/esm2022/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.mjs +0 -169
- package/esm2022/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +0 -224
- package/esm2022/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +0 -311
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +0 -202
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +0 -355
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +0 -268
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +0 -516
- package/esm2022/lib/shared/components/palette/case-flag/pipes/flag-field-display.pipe.mjs +0 -43
- package/esm2022/lib/shared/components/palette/case-flag/pipes/language-interpreter-display.pipe.mjs +0 -43
- package/esm2022/lib/shared/components/palette/case-flag/pipes/manage-case-flags-label-display.pipe.mjs +0 -111
- package/esm2022/lib/shared/components/palette/case-flag/pipes/update-flag-title-display.pipe.mjs +0 -79
- package/esm2022/lib/shared/components/palette/case-flag/read-case-flag-field.component.mjs +0 -255
- package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +0 -704
- package/esm2022/lib/shared/components/palette/case-link/read-case-link-field.component.mjs +0 -32
- package/esm2022/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +0 -125
- package/esm2022/lib/shared/components/palette/collection/collection-create-checker.service.mjs +0 -42
- package/esm2022/lib/shared/components/palette/collection/read-collection-field.component.mjs +0 -78
- package/esm2022/lib/shared/components/palette/collection/write-collection-field.component.mjs +0 -449
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-collection-table.component.mjs +0 -380
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-raw.component.mjs +0 -50
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-table.component.mjs +0 -75
- package/esm2022/lib/shared/components/palette/complex/read-complex-field.component.mjs +0 -70
- package/esm2022/lib/shared/components/palette/complex/write-complex-field.component.mjs +0 -173
- package/esm2022/lib/shared/components/palette/date/read-date-field.component.mjs +0 -25
- package/esm2022/lib/shared/components/palette/date/write-date-container-field.component.mjs +0 -33
- package/esm2022/lib/shared/components/palette/date/write-date-field.component.mjs +0 -77
- package/esm2022/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +0 -314
- package/esm2022/lib/shared/components/palette/document/document-url.pipe.mjs +0 -25
- package/esm2022/lib/shared/components/palette/document/file-upload-progress.guard.mjs +0 -31
- package/esm2022/lib/shared/components/palette/document/file-upload-state.service.mjs +0 -17
- package/esm2022/lib/shared/components/palette/document/read-document-field.component.mjs +0 -87
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +0 -404
- package/esm2022/lib/shared/components/palette/dynamic-list/dynamic-list.pipe.mjs +0 -18
- package/esm2022/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.mjs +0 -36
- package/esm2022/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +0 -125
- package/esm2022/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.mjs +0 -43
- package/esm2022/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.mjs +0 -147
- package/esm2022/lib/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.mjs +0 -25
- package/esm2022/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.mjs +0 -42
- package/esm2022/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.mjs +0 -125
- package/esm2022/lib/shared/components/palette/email/read-email-field.component.mjs +0 -35
- package/esm2022/lib/shared/components/palette/email/write-email-field.component.mjs +0 -74
- package/esm2022/lib/shared/components/palette/fixed-list/fixed-list.pipe.mjs +0 -23
- package/esm2022/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.mjs +0 -26
- package/esm2022/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.mjs +0 -107
- package/esm2022/lib/shared/components/palette/fixed-radio-list/fixed-radio-list.pipe.mjs +0 -18
- package/esm2022/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.mjs +0 -26
- package/esm2022/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.mjs +0 -96
- package/esm2022/lib/shared/components/palette/history/case-history-viewer-field.component.mjs +0 -16
- package/esm2022/lib/shared/components/palette/history/event-log/event-log-details.component.mjs +0 -98
- package/esm2022/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +0 -225
- package/esm2022/lib/shared/components/palette/history/event-log/event-log.component.mjs +0 -72
- package/esm2022/lib/shared/components/palette/judicial-user/read-judicial-user-field.component.mjs +0 -48
- package/esm2022/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.mjs +0 -253
- package/esm2022/lib/shared/components/palette/label/label-field.component.mjs +0 -50
- package/esm2022/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +0 -112
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +0 -194
- package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +0 -543
- package/esm2022/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.mjs +0 -214
- package/esm2022/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.mjs +0 -287
- package/esm2022/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +0 -69
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +0 -208
- package/esm2022/lib/shared/components/palette/linked-cases/domain/linked-cases.model.mjs +0 -67
- package/esm2022/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.mjs +0 -169
- package/esm2022/lib/shared/components/palette/linked-cases/services/linked-cases.service.mjs +0 -138
- package/esm2022/lib/shared/components/palette/linked-cases/utils/validators.utils.mjs +0 -27
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +0 -237
- package/esm2022/lib/shared/components/palette/markdown/markdown-component.module.mjs +0 -29
- package/esm2022/lib/shared/components/palette/markdown/markdown.component.mjs +0 -44
- package/esm2022/lib/shared/components/palette/money-gbp/money-gbp-input.component.mjs +0 -127
- package/esm2022/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.mjs +0 -49
- package/esm2022/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.mjs +0 -79
- package/esm2022/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.mjs +0 -45
- package/esm2022/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.mjs +0 -127
- package/esm2022/lib/shared/components/palette/number/read-number-field.component.mjs +0 -24
- package/esm2022/lib/shared/components/palette/number/write-number-field.component.mjs +0 -74
- package/esm2022/lib/shared/components/palette/order-summary/fee-value.model.mjs +0 -4
- package/esm2022/lib/shared/components/palette/order-summary/fee.model.mjs +0 -8
- package/esm2022/lib/shared/components/palette/order-summary/order-summary.model.mjs +0 -6
- package/esm2022/lib/shared/components/palette/order-summary/read-order-summary-field.component.mjs +0 -73
- package/esm2022/lib/shared/components/palette/order-summary/read-order-summary-row.component.mjs +0 -44
- package/esm2022/lib/shared/components/palette/order-summary/write-order-summary-field.component.mjs +0 -44
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field-raw.component.mjs +0 -87
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field-table.component.mjs +0 -91
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field.component.mjs +0 -53
- package/esm2022/lib/shared/components/palette/organisation/write-organisation-complex-field.component.mjs +0 -34
- package/esm2022/lib/shared/components/palette/organisation/write-organisation-field.component.mjs +0 -396
- package/esm2022/lib/shared/components/palette/palette.module.mjs +0 -291
- package/esm2022/lib/shared/components/palette/palette.service.mjs +0 -153
- package/esm2022/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.mjs +0 -24
- package/esm2022/lib/shared/components/palette/phone-uk/read-phone-uk-field.component.mjs +0 -22
- package/esm2022/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.mjs +0 -74
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +0 -43
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +0 -149
- package/esm2022/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.mjs +0 -66
- package/esm2022/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.mjs +0 -61
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +0 -292
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +0 -330
- package/esm2022/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.mjs +0 -23
- package/esm2022/lib/shared/components/palette/query-management/components/query-list/query-list.component.mjs +0 -164
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.mjs +0 -77
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.mjs +0 -111
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +0 -201
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +0 -106
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.mjs +0 -24
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +0 -45
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +0 -125
- package/esm2022/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +0 -22
- package/esm2022/lib/shared/components/palette/text/read-text-field.component.mjs +0 -24
- package/esm2022/lib/shared/components/palette/text/write-text-field.component.mjs +0 -78
- package/esm2022/lib/shared/components/palette/text-area/read-text-area-field.component.mjs +0 -24
- package/esm2022/lib/shared/components/palette/text-area/write-text-area-field.component.mjs +0 -89
- package/esm2022/lib/shared/components/palette/unsupported-field.component.mjs +0 -17
- package/esm2022/lib/shared/components/palette/utils/dash.pipe.mjs +0 -16
- package/esm2022/lib/shared/components/palette/utils/date.pipe.mjs +0 -133
- package/esm2022/lib/shared/components/palette/utils/field-label.pipe.mjs +0 -30
- package/esm2022/lib/shared/components/palette/utils/first-error.pipe.mjs +0 -62
- package/esm2022/lib/shared/components/palette/utils/is-compound.pipe.mjs +0 -43
- package/esm2022/lib/shared/components/palette/utils/is-mandatory.pipe.mjs +0 -22
- package/esm2022/lib/shared/components/palette/utils/is-read-only-and-not-collection.pipe.mjs +0 -32
- package/esm2022/lib/shared/components/palette/utils/is-read-only.pipe.mjs +0 -22
- package/esm2022/lib/shared/components/palette/utils/utils.module.mjs +0 -71
- package/esm2022/lib/shared/components/palette/waystopay/waystopay-field.component.mjs +0 -34
- package/esm2022/lib/shared/components/palette/yes-no/read-yes-no-field.component.mjs +0 -36
- package/esm2022/lib/shared/components/palette/yes-no/write-yes-no-field.component.mjs +0 -102
- package/esm2022/lib/shared/components/palette/yes-no/yes-no.service.mjs +0 -50
- package/esm2022/lib/shared/components/search-filters/domain/search-input.model.mjs +0 -15
- package/esm2022/lib/shared/components/search-filters/search-filters-wrapper.component.mjs +0 -62
- package/esm2022/lib/shared/components/search-filters/search-filters.component.mjs +0 -337
- package/esm2022/lib/shared/components/search-filters/search-filters.module.mjs +0 -44
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +0 -834
- package/esm2022/lib/shared/components/search-result/search-result.module.mjs +0 -46
- package/esm2022/lib/shared/components/workbasket-filters/workbasket-filters.component.mjs +0 -494
- package/esm2022/lib/shared/components/workbasket-filters/workbasket-filters.module.mjs +0 -42
- package/esm2022/lib/shared/directives/conditional-show/conditional-show-form.directive.mjs +0 -169
- package/esm2022/lib/shared/directives/conditional-show/conditional-show.module.mjs +0 -33
- package/esm2022/lib/shared/directives/conditional-show/domain/conditional-show.model.mjs +0 -201
- package/esm2022/lib/shared/directives/conditional-show/services/conditional-show-registrar.service.mjs +0 -17
- package/esm2022/lib/shared/directives/conditional-show/services/grey-bar.service.mjs +0 -48
- package/esm2022/lib/shared/directives/focus-element/focus-element.directive.mjs +0 -38
- package/esm2022/lib/shared/directives/focus-element/focus-element.module.mjs +0 -21
- package/esm2022/lib/shared/directives/substitutor/label-substitutor.directive.mjs +0 -88
- package/esm2022/lib/shared/directives/substitutor/label-substitutor.module.mjs +0 -30
- package/esm2022/lib/shared/directives/substitutor/services/placeholder.service.mjs +0 -209
- package/esm2022/lib/shared/domain/activity/activity.model.mjs +0 -17
- package/esm2022/lib/shared/domain/addresses/address.model.mjs +0 -11
- package/esm2022/lib/shared/domain/alert/alert.model.mjs +0 -5
- package/esm2022/lib/shared/domain/case-details.model.mjs +0 -13
- package/esm2022/lib/shared/domain/case-event-data.model.mjs +0 -11
- package/esm2022/lib/shared/domain/case-file-view/case-file-view-category.model.mjs +0 -8
- package/esm2022/lib/shared/domain/case-file-view/case-file-view-document.model.mjs +0 -10
- package/esm2022/lib/shared/domain/case-file-view/categories-and-documents.model.mjs +0 -10
- package/esm2022/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.mjs +0 -124
- package/esm2022/lib/shared/domain/case-flag/flag-type.model.mjs +0 -37
- package/esm2022/lib/shared/domain/case-flag/hmcts-service-detail.model.mjs +0 -18
- package/esm2022/lib/shared/domain/case-view/case-event-trigger.model.mjs +0 -34
- package/esm2022/lib/shared/domain/case-view/case-print-document.model.mjs +0 -6
- package/esm2022/lib/shared/domain/case-view/case-tab.model.mjs +0 -17
- package/esm2022/lib/shared/domain/case-view/case-view-event.model.mjs +0 -16
- package/esm2022/lib/shared/domain/case-view/case-view-trigger.model.mjs +0 -7
- package/esm2022/lib/shared/domain/case-view/case-view.model.mjs +0 -27
- package/esm2022/lib/shared/domain/definition/access-control-list.model.mjs +0 -8
- package/esm2022/lib/shared/domain/definition/banner.model.mjs +0 -8
- package/esm2022/lib/shared/domain/definition/case-event.model.mjs +0 -11
- package/esm2022/lib/shared/domain/definition/case-field.model.mjs +0 -216
- package/esm2022/lib/shared/domain/definition/case-state.model.mjs +0 -7
- package/esm2022/lib/shared/domain/definition/case-type-lite.model.mjs +0 -10
- package/esm2022/lib/shared/domain/definition/case-type.model.mjs +0 -20
- package/esm2022/lib/shared/domain/definition/event-case-field.model.mjs +0 -6
- package/esm2022/lib/shared/domain/definition/field-type.model.mjs +0 -30
- package/esm2022/lib/shared/domain/definition/fixed-list-item.model.mjs +0 -6
- package/esm2022/lib/shared/domain/definition/jurisdiction.model.mjs +0 -8
- package/esm2022/lib/shared/domain/document/document-data.model.mjs +0 -27
- package/esm2022/lib/shared/domain/draft.model.mjs +0 -16
- package/esm2022/lib/shared/domain/http/http-error.model.mjs +0 -43
- package/esm2022/lib/shared/domain/organisation/organisation-converter.mjs +0 -42
- package/esm2022/lib/shared/domain/pagination-metadata.model.mjs +0 -5
- package/esm2022/lib/shared/domain/profile/profile.model.mjs +0 -33
- package/esm2022/lib/shared/domain/search/field.model.mjs +0 -17
- package/esm2022/lib/shared/domain/search/search-result-view-column.model.mjs +0 -9
- package/esm2022/lib/shared/domain/search/search-result-view-item.model.mjs +0 -18
- package/esm2022/lib/shared/domain/search/search-result-view.model.mjs +0 -26
- package/esm2022/lib/shared/domain/search/sorting/sort-parameters.mjs +0 -9
- package/esm2022/lib/shared/domain/workbasket/workbasket-input.model.mjs +0 -11
- package/esm2022/lib/shared/fixture/case-field-builder.mjs +0 -67
- package/esm2022/lib/shared/pipes/case-reference/case-reference.pipe.mjs +0 -33
- package/esm2022/lib/shared/pipes/case-title/ccd-case-title.pipe.mjs +0 -31
- package/esm2022/lib/shared/pipes/complex/ccd-collection-table-value-case-fields.pipe.mjs +0 -32
- package/esm2022/lib/shared/pipes/complex/ccd-cyapage-label-filter.pipe.mjs +0 -27
- package/esm2022/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +0 -39
- package/esm2022/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.mjs +0 -173
- package/esm2022/lib/shared/pipes/complex/ccd-tab-fields.pipe.mjs +0 -31
- package/esm2022/lib/shared/pipes/complex/fields-filter.pipe.mjs +0 -105
- package/esm2022/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.mjs +0 -16
- package/esm2022/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.mjs +0 -28
- package/esm2022/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.mjs +0 -28
- package/esm2022/lib/shared/pipes/pipes.module.mjs +0 -64
- package/esm2022/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.mjs +0 -24
- package/esm2022/lib/shared/services/activity/activity.polling.service.mjs +0 -122
- package/esm2022/lib/shared/services/activity/activity.service.mjs +0 -85
- package/esm2022/lib/shared/services/addresses/addresses.service.mjs +0 -65
- package/esm2022/lib/shared/services/alert/alert.service.mjs +0 -157
- package/esm2022/lib/shared/services/auth/auth.service.mjs +0 -35
- package/esm2022/lib/shared/services/banners/banners.service.mjs +0 -35
- package/esm2022/lib/shared/services/browser/browser.service.mjs +0 -24
- package/esm2022/lib/shared/services/case-fields/case-field.service.mjs +0 -34
- package/esm2022/lib/shared/services/case-fields/format-translator.service.mjs +0 -242
- package/esm2022/lib/shared/services/case-file-view/case-file-view.service.mjs +0 -48
- package/esm2022/lib/shared/services/case-flag/case-flag-refdata.service.mjs +0 -104
- package/esm2022/lib/shared/services/common-data-service/common-data-service.mjs +0 -29
- package/esm2022/lib/shared/services/definitions/definitions.module.mjs +0 -19
- package/esm2022/lib/shared/services/definitions/definitions.service.mjs +0 -32
- package/esm2022/lib/shared/services/document-management/document-management.service.mjs +0 -114
- package/esm2022/lib/shared/services/draft/draft.service.mjs +0 -89
- package/esm2022/lib/shared/services/error/error-notifier.service.mjs +0 -16
- package/esm2022/lib/shared/services/eventStatusService/event-status.service.mjs +0 -21
- package/esm2022/lib/shared/services/fields/fields.purger.mjs +0 -304
- package/esm2022/lib/shared/services/fields/fields.utils.mjs +0 -615
- package/esm2022/lib/shared/services/form/field-type-sanitiser.mjs +0 -91
- package/esm2022/lib/shared/services/form/form-error.service.mjs +0 -46
- package/esm2022/lib/shared/services/form/form-validators.service.mjs +0 -56
- package/esm2022/lib/shared/services/form/form-value.service.mjs +0 -552
- package/esm2022/lib/shared/services/http/http-error.service.mjs +0 -67
- package/esm2022/lib/shared/services/http/http.service.mjs +0 -95
- package/esm2022/lib/shared/services/jurisdiction/jurisdiction.service.mjs +0 -36
- package/esm2022/lib/shared/services/loading/loading.module.mjs +0 -22
- package/esm2022/lib/shared/services/loading/loading.service.mjs +0 -35
- package/esm2022/lib/shared/services/navigation/navigation-notifier.service.mjs +0 -16
- package/esm2022/lib/shared/services/order/order.service.mjs +0 -37
- package/esm2022/lib/shared/services/organisation/organisation.service.mjs +0 -57
- package/esm2022/lib/shared/services/profile/profile.notifier.mjs +0 -17
- package/esm2022/lib/shared/services/profile/profile.service.mjs +0 -36
- package/esm2022/lib/shared/services/request/request.options.builder.mjs +0 -61
- package/esm2022/lib/shared/services/router/router-helper.service.mjs +0 -20
- package/esm2022/lib/shared/services/search/search.service.mjs +0 -96
- package/esm2022/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.mjs +0 -71
- package/esm2022/lib/shared/services/session/session-storage.service.mjs +0 -34
- package/esm2022/lib/shared/services/utils/retry/retry.service.mjs +0 -87
- package/esm2022/lib/shared/services/window/window.service.mjs +0 -40
- package/esm2022/lib/shared/services/workbasket/workbasket-input-filter.service.mjs +0 -57
- package/esm2022/lib/shared/test/test-route-snapshot-builder.mjs +0 -38
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +0 -36099
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +0 -1
- /package/{esm2022 → esm2020}/hmcts-ccd-case-ui-toolkit.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/alert/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/notification-banner/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/notification-banner/domain/notification-banner-config.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/notification-banner/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/notification-banner/enums/notification-banner-style.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/notification-banner/enums/notification-banner-type.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/banners/notification-banner/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/body/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/footer/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/form/date-input/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/form/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/header/header-bar/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/header/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/header/navigation/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/header/phase/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/components/tabs/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/commons/case-edit-data/case-edit-validation.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/commons/case-edit-data/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/activity/activity-banner/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/activity/activity-icon/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/activity/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-create/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-edit/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-edit-confirm/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-edit-form/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-edit-page/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-edit-submit/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-event-completion/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/case-progress/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/domain/event-completion-params.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/domain/event-completion-portal-types.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/domain/event-completion-return-states.enum.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/domain/event-completion-state-machine-context.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/domain/event-completion-states.enum.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/editor.routing.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-editor/services/wizard-factory.service.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-header/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-history/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-list-filters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-timeline/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-basic-access-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-challenged-access-request/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-challenged-access-request/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-challenged-access-success/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-event-trigger/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-full-access-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-review-specific-access-reject/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-review-specific-access-request/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-review-specific-access-request/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-specific-access-request/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-specific-access-request/models/case-specific-access-request.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-specific-access-request/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-specific-access-success/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/case-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/printer/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/printer/pipes/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/case-viewer/viewer.routing.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/create-case-filters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/dialogs/delete-or-cancel-dialog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/dialogs/document-dialog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/dialogs/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/dialogs/remove-dialog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/dialogs/save-or-discard-dialog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/error/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/error/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/error-message/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/event-start/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/event-start/models/event-start-state-machine-context.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/event-start/models/event-start-states-enum.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/event-start/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/event-start/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/event-trigger/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/helpers/init-dialog-helper.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/loading-spinner/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/pagination/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/address/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/base-field/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/base-field/palette-context.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-file-view/components/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-file-view/components/shared/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-file-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/components/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/domain/case-flag-state.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/domain/case-flag.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/domain/language.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/case-flag-form-fields.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/case-flag-summary-list-display-mode.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/confirm-status-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/search-language-interpreter-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/search-language-interpreter-step.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/select-flag-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/select-flag-location-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-step.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-flag/pipes/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/case-link/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/collection/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/complex/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/complex/sort-order.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/date/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/datetime-picker/datetime-picker-utils.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/datetime-picker/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/document/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/dynamic-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/dynamic-multi-select-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/dynamic-radio-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/email/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/fixed-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/fixed-radio-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/history/event-log/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/history/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/judicial-user/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/label/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/components/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/linked-cases/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/markdown/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/money-gbp/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/multi-select-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/number/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/order-summary/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/organisation/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/payment/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/phone-uk/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/__mocks__/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/components/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/models/case-queries-collection.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/models/qualifying-questions/casetype-qualifying-questions.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/models/qualifying-questions/qualifying-question.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/models/query-create-context.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/text/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/text-area/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/utils/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/waystopay/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/palette/yes-no/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/search-filters/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/search-filters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/search-result/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/components/workbasket-filters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/conditional-show/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/conditional-show/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/conditional-show/services/condition-parser.service.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/conditional-show/services/condition.peg.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/conditional-show/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/focus-element/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/substitutor/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/directives/substitutor/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/activity/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/addresses/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/alert/alert-level.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/alert/alert-status-params.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/alert/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-edit/case-edit.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-edit/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-file-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-flag/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/access-types.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/case-view-event-ids.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/challenged-access-request.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/review-specific-access-request.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/role-assignment-response.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/role-request.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/service-org-response.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/case-view/specific-access-request.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/definition/display-context-enum.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/definition/field-type-enum.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/definition/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/document/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/error-message.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/http/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/jurisdiction/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/jurisdiction/judicial-user.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/order/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/order/orderable.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/organisation/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/organisation/simple-organisation.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/predicate.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/profile/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/search/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/search/sorting/search-result-view-item-comparator.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/sort-order.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/user/user-details.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/user/user-info.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/Task.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/TaskPayload.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/case-worker.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/judicial-worker.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/task-response.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/task-search-parameter.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/work-allocation/wa-service-config.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/domain/workbasket/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/fixture/shared.test.fixture.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/case-reference/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/case-title/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/complex/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/generic/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/link-cases-from-reason-code/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/pipes/link-cases-reason-code/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/activity/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/addresses/address-parser.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/addresses/address-type.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/addresses/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/alert/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/auth/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/banners/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/browser/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/case-fields/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/case-file-view/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/case-flag/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/case-flag/refdata-case-flag-type.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/definitions/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/document-management/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/draft/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/error/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/eventStatusService/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/fields/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/form/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/http/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/jurisdiction/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/loading/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/navigation/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/navigation/navigation-origin.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/order/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/organisation/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/profile/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/request/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/router/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/search/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/session/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/utils/retry/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/window/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/shared/services/workbasket/index.mjs +0 -0
- /package/{esm2022 → esm2020}/public-api.mjs +0 -0
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Injectable, NgZone } from '@angular/core';
|
|
2
|
-
import { EMPTY, Subject } from 'rxjs';
|
|
3
|
-
import { AbstractAppConfig } from '../../../app.config';
|
|
4
|
-
import { ActivityService } from './activity.service';
|
|
5
|
-
import { polling } from 'rx-polling-hmcts';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "./activity.service";
|
|
8
|
-
import * as i2 from "../../../app.config";
|
|
9
|
-
// @dynamic
|
|
10
|
-
export class ActivityPollingService {
|
|
11
|
-
activityService;
|
|
12
|
-
ngZone;
|
|
13
|
-
config;
|
|
14
|
-
pendingRequests = new Map();
|
|
15
|
-
currentTimeoutHandle;
|
|
16
|
-
pollActivitiesSubscription;
|
|
17
|
-
pollConfig;
|
|
18
|
-
batchCollectionDelayMs;
|
|
19
|
-
maxRequestsPerBatch;
|
|
20
|
-
constructor(activityService, ngZone, config) {
|
|
21
|
-
this.activityService = activityService;
|
|
22
|
-
this.ngZone = ngZone;
|
|
23
|
-
this.config = config;
|
|
24
|
-
this.pollConfig = {
|
|
25
|
-
interval: config.getActivityNexPollRequestMs(),
|
|
26
|
-
attempts: config.getActivityRetry(),
|
|
27
|
-
backgroundPolling: true
|
|
28
|
-
};
|
|
29
|
-
this.batchCollectionDelayMs = config.getActivityBatchCollectionDelayMs();
|
|
30
|
-
this.maxRequestsPerBatch = config.getActivityMaxRequestPerBatch();
|
|
31
|
-
}
|
|
32
|
-
get isEnabled() {
|
|
33
|
-
return this.activityService.isEnabled;
|
|
34
|
-
}
|
|
35
|
-
subscribeToActivity(caseId, done) {
|
|
36
|
-
if (!this.isEnabled) {
|
|
37
|
-
return new Subject();
|
|
38
|
-
}
|
|
39
|
-
let subject = this.pendingRequests.get(caseId);
|
|
40
|
-
if (subject) {
|
|
41
|
-
subject.subscribe(done);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
subject = new Subject();
|
|
45
|
-
subject.subscribe(done);
|
|
46
|
-
this.pendingRequests.set(caseId, subject);
|
|
47
|
-
}
|
|
48
|
-
if (this.pendingRequests.size === 1) {
|
|
49
|
-
this.ngZone.runOutsideAngular(() => {
|
|
50
|
-
this.currentTimeoutHandle = setTimeout(() => this.ngZone.run(() => {
|
|
51
|
-
// console.log('timeout: flushing requests')
|
|
52
|
-
this.flushRequests();
|
|
53
|
-
}), this.batchCollectionDelayMs);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
if (this.pendingRequests.size >= this.maxRequestsPerBatch) {
|
|
57
|
-
// console.log('max pending hit: flushing requests');
|
|
58
|
-
this.flushRequests();
|
|
59
|
-
}
|
|
60
|
-
return subject;
|
|
61
|
-
}
|
|
62
|
-
stopPolling() {
|
|
63
|
-
if (this.pollActivitiesSubscription) {
|
|
64
|
-
this.pollActivitiesSubscription.unsubscribe();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
flushRequests() {
|
|
68
|
-
if (this.currentTimeoutHandle) {
|
|
69
|
-
clearTimeout(this.currentTimeoutHandle);
|
|
70
|
-
this.currentTimeoutHandle = undefined;
|
|
71
|
-
}
|
|
72
|
-
const requests = new Map(this.pendingRequests);
|
|
73
|
-
this.pendingRequests.clear();
|
|
74
|
-
this.performBatchRequest(requests);
|
|
75
|
-
}
|
|
76
|
-
pollActivities(...caseIds) {
|
|
77
|
-
if (!this.isEnabled) {
|
|
78
|
-
return EMPTY;
|
|
79
|
-
}
|
|
80
|
-
return polling(this.activityService.getActivities(...caseIds), this.pollConfig);
|
|
81
|
-
}
|
|
82
|
-
postViewActivity(caseId) {
|
|
83
|
-
return this.postActivity(caseId, ActivityService.ACTIVITY_VIEW);
|
|
84
|
-
}
|
|
85
|
-
postEditActivity(caseId) {
|
|
86
|
-
return this.postActivity(caseId, ActivityService.ACTIVITY_EDIT);
|
|
87
|
-
}
|
|
88
|
-
performBatchRequest(requests) {
|
|
89
|
-
const caseIds = Array.from(requests.keys()).join();
|
|
90
|
-
// console.log('issuing batch request for cases: ' + caseIds);
|
|
91
|
-
this.ngZone.runOutsideAngular(() => {
|
|
92
|
-
// run polling outside angular zone so it does not trigger change detection
|
|
93
|
-
this.pollActivitiesSubscription = this.pollActivities(caseIds).subscribe(
|
|
94
|
-
// process activity inside zone so it triggers change detection for activity.component.ts
|
|
95
|
-
(activities) => this.ngZone.run(() => {
|
|
96
|
-
activities.forEach((activity) => {
|
|
97
|
-
// console.log('pushing activity: ' + activity.caseId);
|
|
98
|
-
requests.get(activity.caseId).next(activity);
|
|
99
|
-
});
|
|
100
|
-
}, (err) => {
|
|
101
|
-
console.log(`error: ${err}`);
|
|
102
|
-
Array.from(requests.values()).forEach((subject) => subject.error(err));
|
|
103
|
-
}));
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
postActivity(caseId, activityType) {
|
|
107
|
-
if (!this.isEnabled) {
|
|
108
|
-
return EMPTY;
|
|
109
|
-
}
|
|
110
|
-
const pollingConfig = {
|
|
111
|
-
...this.pollConfig,
|
|
112
|
-
interval: 5000 // inline with CCD Backend
|
|
113
|
-
};
|
|
114
|
-
return polling(this.activityService.postActivity(caseId, activityType), pollingConfig);
|
|
115
|
-
}
|
|
116
|
-
static ɵfac = function ActivityPollingService_Factory(t) { return new (t || ActivityPollingService)(i0.ɵɵinject(i1.ActivityService), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.AbstractAppConfig)); };
|
|
117
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityPollingService, factory: ActivityPollingService.ɵfac });
|
|
118
|
-
}
|
|
119
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActivityPollingService, [{
|
|
120
|
-
type: Injectable
|
|
121
|
-
}], function () { return [{ type: i1.ActivityService }, { type: i0.NgZone }, { type: i2.AbstractAppConfig }]; }, null); })();
|
|
122
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkucG9sbGluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9zZXJ2aWNlcy9hY3Rpdml0eS9hY3Rpdml0eS5wb2xsaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLEtBQUssRUFBYyxPQUFPLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQ2hFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRXhELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsT0FBTyxFQUFZLE1BQU0sa0JBQWtCLENBQUM7Ozs7QUFFckQsV0FBVztBQUVYLE1BQU0sT0FBTyxzQkFBc0I7SUFRSjtJQUFtRDtJQUFpQztJQVBoRyxlQUFlLEdBQUcsSUFBSSxHQUFHLEVBQTZCLENBQUM7SUFDaEUsb0JBQW9CLENBQU07SUFDMUIsMEJBQTBCLENBQWU7SUFDaEMsVUFBVSxDQUFXO0lBQ3JCLHNCQU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gICAgICAgICAgcmVxdWVzdHMuZ2V0KGFjdGl2aXR5LmNhc2VJZCkubmV4dChhY3Rpdml0eSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9LFxuICAgICAgICAgIChlcnIpID0+IHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKGBlcnJvcjogJHtlcnJ9YCk7XG4gICAgICAgICAgICBBcnJheS5mcm9tKHJlcXVlc3RzLnZhbHVlcygpKS5mb3JFYWNoKChzdWJqZWN0KSA9PiBzdWJqZWN0LmVycm9yKGVycikpO1xuICAgICAgICAgIH1cbiAgICAgICAgKVxuICAgICAgKTtcbiAgICB9KTtcbiAgfVxuXG4gIHByaXZhdGUgcG9zdEFjdGl2aXR5KGNhc2VJZDogc3RyaW5nLCBhY3Rpdml0eVR5cGU6IHN0cmluZyk6IE9ic2VydmFibGU8QWN0aXZpdHlbXT4ge1xuICAgIGlmICghdGhpcy5pc0VuYWJsZWQpIHtcbiAgICAgIHJldHVybiBFTVBUWTtcbiAgICB9XG5cbiAgICBjb25zdCBwb2xsaW5nQ29uZmlnID0ge1xuICAgICAgLi4udGhpcy5wb2xsQ29uZmlnLFxuICAgICAgaW50ZXJ2YWw6IDUwMDAgLy8gaW5saW5lIHdpdGggQ0NEIEJhY2tlbmRcbiAgICB9O1xuXG4gICAgcmV0dXJuIHBvbGxpbmcodGhpcy5hY3Rpdml0eVNlcnZpY2UucG9zdEFjdGl2aXR5KGNhc2VJZCwgYWN0aXZpdHlUeXBlKSwgcG9sbGluZ0NvbmZpZyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { map } from 'rxjs/operators';
|
|
4
|
-
import { AbstractAppConfig } from '../../../app.config';
|
|
5
|
-
import { HttpErrorService, HttpService } from '../http';
|
|
6
|
-
import { SessionStorageService } from '../session';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../http";
|
|
9
|
-
import * as i2 from "../../../app.config";
|
|
10
|
-
import * as i3 from "../session";
|
|
11
|
-
// @dynamic
|
|
12
|
-
export class ActivityService {
|
|
13
|
-
http;
|
|
14
|
-
appConfig;
|
|
15
|
-
sessionStorageService;
|
|
16
|
-
static get ACTIVITY_VIEW() { return 'view'; }
|
|
17
|
-
static get ACTIVITY_EDIT() { return 'edit'; }
|
|
18
|
-
constructor(http, appConfig, sessionStorageService) {
|
|
19
|
-
this.http = http;
|
|
20
|
-
this.appConfig = appConfig;
|
|
21
|
-
this.sessionStorageService = sessionStorageService;
|
|
22
|
-
}
|
|
23
|
-
get isEnabled() {
|
|
24
|
-
return this.activityUrl() && this.userAuthorised;
|
|
25
|
-
}
|
|
26
|
-
static DUMMY_CASE_REFERENCE = '0';
|
|
27
|
-
userAuthorised = undefined;
|
|
28
|
-
static handleHttpError(response) {
|
|
29
|
-
const error = HttpErrorService.convertToHttpError(response);
|
|
30
|
-
if (response?.status !== error.status) {
|
|
31
|
-
error.status = response.status;
|
|
32
|
-
}
|
|
33
|
-
return error;
|
|
34
|
-
}
|
|
35
|
-
getOptions() {
|
|
36
|
-
const userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
37
|
-
const headers = new HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
|
|
38
|
-
return {
|
|
39
|
-
headers,
|
|
40
|
-
withCredentials: true,
|
|
41
|
-
observe: 'body',
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
getActivities(...caseId) {
|
|
45
|
-
try {
|
|
46
|
-
const options = this.getOptions();
|
|
47
|
-
const url = `${this.activityUrl()}/cases/${caseId.join(',')}/activity`;
|
|
48
|
-
return this.http
|
|
49
|
-
.get(url, options, false, ActivityService.handleHttpError)
|
|
50
|
-
.pipe(map(response => response));
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
console.log(`user may not be authenticated.${error}`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
postActivity(caseId, activity) {
|
|
57
|
-
try {
|
|
58
|
-
const options = this.getOptions();
|
|
59
|
-
const url = `${this.activityUrl()}/cases/${caseId}/activity`;
|
|
60
|
-
const body = { activity };
|
|
61
|
-
return this.http
|
|
62
|
-
.post(url, body, options, false)
|
|
63
|
-
.pipe(map(response => response));
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
console.log(`user may not be authenticated.${error}`);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
verifyUserIsAuthorized() {
|
|
70
|
-
if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
|
|
71
|
-
this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(() => this.userAuthorised = true, error => {
|
|
72
|
-
this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
activityUrl() {
|
|
77
|
-
return this.appConfig.getActivityUrl();
|
|
78
|
-
}
|
|
79
|
-
static ɵfac = function ActivityService_Factory(t) { return new (t || ActivityService)(i0.ɵɵinject(i1.HttpService), i0.ɵɵinject(i2.AbstractAppConfig), i0.ɵɵinject(i3.SessionStorageService)); };
|
|
80
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityService, factory: ActivityService.ɵfac });
|
|
81
|
-
}
|
|
82
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActivityService, [{
|
|
83
|
-
type: Injectable
|
|
84
|
-
}], function () { return [{ type: i1.HttpService }, { type: i2.AbstractAppConfig }, { type: i3.SessionStorageService }]; }, null); })();
|
|
85
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4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kRVTU1ZX0NBU0VfUkVGRVJFTkNFKS5zdWJzY3JpYmUoXG4gICAgICAgICgpID0+IHRoaXMudXNlckF1dGhvcmlzZWQgPSB0cnVlLFxuICAgICAgICBlcnJvciA9PiB7XG4gICAgICAgICAgdGhpcy51c2VyQXV0aG9yaXNlZCA9IFs0MDEsIDQwM10uaW5kZXhPZihlcnJvci5zdGF0dXMpIDw9IC0xO1xuICAgICAgICB9XG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgYWN0aXZpdHlVcmwoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5hcHBDb25maWcuZ2V0QWN0aXZpdHlVcmwoKTtcbiAgfVxufVxuIl19
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { map } from 'rxjs/operators';
|
|
4
|
-
import { AbstractAppConfig } from '../../../app.config';
|
|
5
|
-
import { HttpService } from '../http';
|
|
6
|
-
import { AddressParser } from './address-parser';
|
|
7
|
-
import { AddressType } from './address-type.enum';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../http";
|
|
10
|
-
import * as i2 from "../../../app.config";
|
|
11
|
-
export class AddressesService {
|
|
12
|
-
http;
|
|
13
|
-
appConfig;
|
|
14
|
-
mandatoryError = new BehaviorSubject(false);
|
|
15
|
-
constructor(http, appConfig) {
|
|
16
|
-
this.http = http;
|
|
17
|
-
this.appConfig = appConfig;
|
|
18
|
-
}
|
|
19
|
-
getAddressesForPostcode(postcode) {
|
|
20
|
-
return this.http
|
|
21
|
-
.get(this.appConfig.getPostcodeLookupUrl()
|
|
22
|
-
.replace('${postcode}', postcode), undefined, false)
|
|
23
|
-
.pipe(map(res => res.results))
|
|
24
|
-
.pipe(map(output => output.map(addresses => this.format(new AddressParser().parse(addresses[AddressType.DPA])))));
|
|
25
|
-
}
|
|
26
|
-
getMandatoryError() {
|
|
27
|
-
return this.mandatoryError.asObservable();
|
|
28
|
-
}
|
|
29
|
-
setMandatoryError(value) {
|
|
30
|
-
this.mandatoryError.next(value);
|
|
31
|
-
}
|
|
32
|
-
format(addressModel) {
|
|
33
|
-
return this.formatAddressLines(this.shiftAddressLinesUp(addressModel));
|
|
34
|
-
}
|
|
35
|
-
formatAddressLines(addressModel) {
|
|
36
|
-
['AddressLine1', 'AddressLine2', 'AddressLine3', 'PostTown'].forEach(value => {
|
|
37
|
-
addressModel[value] = this.toCapitalCase(addressModel[value]);
|
|
38
|
-
});
|
|
39
|
-
return addressModel;
|
|
40
|
-
}
|
|
41
|
-
shiftAddressLinesUp(addressModel) {
|
|
42
|
-
if (addressModel.AddressLine2 === '') {
|
|
43
|
-
addressModel.AddressLine2 = addressModel.AddressLine3;
|
|
44
|
-
addressModel.AddressLine3 = '';
|
|
45
|
-
}
|
|
46
|
-
if (addressModel.AddressLine1 === '') {
|
|
47
|
-
addressModel.AddressLine1 = addressModel.AddressLine2;
|
|
48
|
-
addressModel.AddressLine2 = '';
|
|
49
|
-
}
|
|
50
|
-
return addressModel;
|
|
51
|
-
}
|
|
52
|
-
toCapitalCase(sentence) {
|
|
53
|
-
sentence = sentence.toLowerCase();
|
|
54
|
-
sentence.split(' ').forEach((value, index) => {
|
|
55
|
-
sentence = sentence.replace(value, value.charAt(0).toUpperCase() + value.substr(1));
|
|
56
|
-
});
|
|
57
|
-
return sentence;
|
|
58
|
-
}
|
|
59
|
-
static ɵfac = function AddressesService_Factory(t) { return new (t || AddressesService)(i0.ɵɵinject(i1.HttpService), i0.ɵɵinject(i2.AbstractAppConfig)); };
|
|
60
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AddressesService, factory: AddressesService.ɵfac });
|
|
61
|
-
}
|
|
62
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressesService, [{
|
|
63
|
-
type: Injectable
|
|
64
|
-
}], function () { return [{ type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
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { NavigationStart, Router } from '@angular/router';
|
|
3
|
-
import { RpxTranslationService } from 'rpx-xui-translation';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { publish, refCount } from 'rxjs/operators';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/router";
|
|
8
|
-
import * as i2 from "rpx-xui-translation";
|
|
9
|
-
export class AlertService {
|
|
10
|
-
router;
|
|
11
|
-
rpxTranslationService;
|
|
12
|
-
// the preserved messages
|
|
13
|
-
preservedError = '';
|
|
14
|
-
preservedWarning = '';
|
|
15
|
-
preservedSuccess = '';
|
|
16
|
-
// TODO: Remove
|
|
17
|
-
message;
|
|
18
|
-
level;
|
|
19
|
-
successes;
|
|
20
|
-
errors;
|
|
21
|
-
warnings;
|
|
22
|
-
// TODO: Remove
|
|
23
|
-
alerts;
|
|
24
|
-
successObserver;
|
|
25
|
-
errorObserver;
|
|
26
|
-
warningObserver;
|
|
27
|
-
// TODO: Remove
|
|
28
|
-
alertObserver;
|
|
29
|
-
preserveAlerts = false;
|
|
30
|
-
constructor(router, rpxTranslationService) {
|
|
31
|
-
this.router = router;
|
|
32
|
-
this.rpxTranslationService = rpxTranslationService;
|
|
33
|
-
this.successes = Observable
|
|
34
|
-
.create(observer => this.successObserver = observer).pipe(publish(), refCount());
|
|
35
|
-
this.successes.subscribe();
|
|
36
|
-
this.errors = Observable
|
|
37
|
-
.create(observer => this.errorObserver = observer).pipe(publish(), refCount());
|
|
38
|
-
this.errors.subscribe();
|
|
39
|
-
this.warnings = Observable
|
|
40
|
-
.create(observer => this.warningObserver = observer).pipe(publish(), refCount());
|
|
41
|
-
this.warnings.subscribe();
|
|
42
|
-
// TODO: Remove
|
|
43
|
-
this.alerts = Observable
|
|
44
|
-
.create(observer => this.alertObserver = observer).pipe(publish(), refCount());
|
|
45
|
-
this.alerts.subscribe();
|
|
46
|
-
this.router
|
|
47
|
-
.events
|
|
48
|
-
.subscribe(event => {
|
|
49
|
-
if (event instanceof NavigationStart) {
|
|
50
|
-
// if there is no longer a preserve alerts setting for the page then clear all observers and preserved messages
|
|
51
|
-
if (!this.preserveAlerts) {
|
|
52
|
-
this.clear();
|
|
53
|
-
}
|
|
54
|
-
// if not, then set the preserving of alerts to false so rendering to a new page
|
|
55
|
-
this.preserveAlerts = false;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
clear() {
|
|
60
|
-
this.successObserver.next(null);
|
|
61
|
-
this.errorObserver.next(null);
|
|
62
|
-
this.warningObserver.next(null);
|
|
63
|
-
this.preservedError = '';
|
|
64
|
-
this.preservedWarning = '';
|
|
65
|
-
this.preservedSuccess = '';
|
|
66
|
-
// EUI-3381.
|
|
67
|
-
this.alertObserver.next(null);
|
|
68
|
-
this.message = '';
|
|
69
|
-
}
|
|
70
|
-
error({ phrase, replacements }) {
|
|
71
|
-
const message = this.getTranslationWithReplacements(phrase, replacements);
|
|
72
|
-
this.preservedError = this.preserveMessages(message);
|
|
73
|
-
const alert = { level: 'error', message };
|
|
74
|
-
this.errorObserver.next(alert);
|
|
75
|
-
// EUI-3381.
|
|
76
|
-
this.push(alert);
|
|
77
|
-
}
|
|
78
|
-
warning({ phrase, replacements }) {
|
|
79
|
-
const message = this.getTranslationWithReplacements(phrase, replacements);
|
|
80
|
-
this.preservedWarning = this.preserveMessages(message);
|
|
81
|
-
const alert = { level: 'warning', message };
|
|
82
|
-
this.warningObserver.next(alert);
|
|
83
|
-
// EUI-3381.
|
|
84
|
-
this.push(alert);
|
|
85
|
-
}
|
|
86
|
-
success({ preserve, phrase, replacements }) {
|
|
87
|
-
const message = this.getTranslationWithReplacements(phrase, replacements);
|
|
88
|
-
this.preserveAlerts = preserve || this.preserveAlerts;
|
|
89
|
-
const alert = { level: 'success', message };
|
|
90
|
-
this.preservedSuccess = this.preserveMessages(message);
|
|
91
|
-
this.successObserver.next(alert);
|
|
92
|
-
// EUI-3381.
|
|
93
|
-
this.push(alert);
|
|
94
|
-
}
|
|
95
|
-
getTranslationWithReplacements(phrase, replacements) {
|
|
96
|
-
let message;
|
|
97
|
-
if (replacements) {
|
|
98
|
-
this.rpxTranslationService.getTranslationWithReplacements$(phrase, replacements).subscribe(translation => {
|
|
99
|
-
message = translation;
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
this.rpxTranslationService.getTranslation$(phrase).subscribe(translation => {
|
|
104
|
-
message = translation;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return message;
|
|
108
|
-
}
|
|
109
|
-
setPreserveAlerts(preserve, urlInfo) {
|
|
110
|
-
// if there is no url setting then just preserve the messages
|
|
111
|
-
if (!urlInfo) {
|
|
112
|
-
this.preserveAlerts = preserve;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
// check if the url includes the sting given
|
|
116
|
-
this.preserveAlerts = this.currentUrlIncludesInfo(preserve, urlInfo);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
currentUrlIncludesInfo(preserve, urlInfo) {
|
|
120
|
-
// loop through the list of strings and check the router includes all of them
|
|
121
|
-
for (const urlSnip of urlInfo) {
|
|
122
|
-
if (!this.router.url.includes(urlSnip)) {
|
|
123
|
-
// return the opposite boolean value if the router does not include one of the strings
|
|
124
|
-
return !preserve;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// return the boolean value if all strings are in the url
|
|
128
|
-
return preserve;
|
|
129
|
-
}
|
|
130
|
-
isPreserveAlerts() {
|
|
131
|
-
return this.preserveAlerts;
|
|
132
|
-
}
|
|
133
|
-
preserveMessages(message) {
|
|
134
|
-
// preserve the messages if set to preserve them
|
|
135
|
-
if (this.isPreserveAlerts()) {
|
|
136
|
-
return message;
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return '';
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
// TODO: Remove
|
|
143
|
-
push(msgObject) {
|
|
144
|
-
this.message = msgObject.message;
|
|
145
|
-
this.level = msgObject.level;
|
|
146
|
-
this.alertObserver.next({
|
|
147
|
-
level: this.level,
|
|
148
|
-
message: this.message
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
static ɵfac = function AlertService_Factory(t) { return new (t || AlertService)(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.RpxTranslationService)); };
|
|
152
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AlertService, factory: AlertService.ɵfac });
|
|
153
|
-
}
|
|
154
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertService, [{
|
|
155
|
-
type: Injectable
|
|
156
|
-
}], function () { return [{ type: i1.Router }, { type: i2.RpxTranslationService }]; }, null); })();
|
|
157
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvc2VydmljZXMvYWxlcnQvYWxlcnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDMUQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDNUQsT0FBTyxFQUF5QixVQUFVLEVBQVksTUFBTSxNQUFNLENBQUM7QUFDbkUsT0FBTyxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7OztBQU1uRCxNQUFNLE9BQU8sWUFBWTtJQ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dXJuICFwcmVzZXJ2ZTtcbiAgICAgIH1cbiAgICB9XG4gICAgLy8gcmV0dXJuIHRoZSBib29sZWFuIHZhbHVlIGlmIGFsbCBzdHJpbmdzIGFyZSBpbiB0aGUgdXJsXG4gICAgcmV0dXJuIHByZXNlcnZlO1xuICB9XG5cbiAgcHVibGljIGlzUHJlc2VydmVBbGVydHMoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMucHJlc2VydmVBbGVydHM7XG4gIH1cblxuICBwdWJsaWMgcHJlc2VydmVNZXNzYWdlcyhtZXNzYWdlOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIC8vIHByZXNlcnZlIHRoZSBtZXNzYWdlcyBpZiBzZXQgdG8gcHJlc2VydmUgdGhlbVxuICAgIGlmICh0aGlzLmlzUHJlc2VydmVBbGVydHMoKSkge1xuICAgICAgcmV0dXJuIG1lc3NhZ2U7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiAnJztcbiAgICB9XG4gIH1cblxuICAvLyBUT0RPOiBSZW1vdmVcbiAgcHVibGljIHB1c2gobXNnT2JqZWN0KSB7XG4gICAgdGhpcy5tZXNzYWdlID0gbXNnT2JqZWN0Lm1lc3NhZ2U7XG4gICAgdGhpcy5sZXZlbCA9IG1zZ09iamVjdC5sZXZlbDtcblxuICAgIHRoaXMuYWxlcnRPYnNlcnZlci5uZXh0KHtcbiAgICAgIGxldmVsOiB0aGlzLmxldmVsLFxuICAgICAgbWVzc2FnZTogdGhpcy5tZXNzYWdlXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
-
import { Inject, Injectable } from '@angular/core';
|
|
3
|
-
import { AbstractAppConfig } from '../../../app.config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../../app.config";
|
|
6
|
-
/**
|
|
7
|
-
* `Oauth2Service` and `AuthService` cannot be merged as it creates a cyclic dependency on `AuthService` through `HttpErrorService`.
|
|
8
|
-
*/
|
|
9
|
-
export class AuthService {
|
|
10
|
-
appConfig;
|
|
11
|
-
document;
|
|
12
|
-
static PATH_OAUTH2_REDIRECT = '/oauth2redirect';
|
|
13
|
-
constructor(appConfig, document) {
|
|
14
|
-
this.appConfig = appConfig;
|
|
15
|
-
this.document = document;
|
|
16
|
-
}
|
|
17
|
-
signIn() {
|
|
18
|
-
const loginUrl = this.appConfig.getLoginUrl();
|
|
19
|
-
const clientId = this.appConfig.getOAuth2ClientId();
|
|
20
|
-
const redirectUri = encodeURIComponent(this.redirectUri());
|
|
21
|
-
this.document.location.href = `${loginUrl}?response_type=code&client_id=${clientId}&redirect_uri=${redirectUri}`;
|
|
22
|
-
}
|
|
23
|
-
redirectUri() {
|
|
24
|
-
return this.document.location.origin + AuthService.PATH_OAUTH2_REDIRECT;
|
|
25
|
-
}
|
|
26
|
-
static ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0.ɵɵinject(i1.AbstractAppConfig), i0.ɵɵinject(DOCUMENT)); };
|
|
27
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac });
|
|
28
|
-
}
|
|
29
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthService, [{
|
|
30
|
-
type: Injectable
|
|
31
|
-
}], function () { return [{ type: i1.AbstractAppConfig }, { type: undefined, decorators: [{
|
|
32
|
-
type: Inject,
|
|
33
|
-
args: [DOCUMENT]
|
|
34
|
-
}] }]; }, null); })();
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9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SgpKTtcblxuICAgIHRoaXMuZG9jdW1lbnQubG9jYXRpb24uaHJlZiA9IGAke2xvZ2luVXJsfT9yZXNwb25zZV90eXBlPWNvZGUmY2xpZW50X2lkPSR7Y2xpZW50SWR9JnJlZGlyZWN0X3VyaT0ke3JlZGlyZWN0VXJpfWA7XG4gIH1cblxuICBwdWJsaWMgcmVkaXJlY3RVcmkoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5kb2N1bWVudC5sb2NhdGlvbi5vcmlnaW4gKyBBdXRoU2VydmljZS5QQVRIX09BVVRIMl9SRURJUkVDVDtcbiAgfVxufVxuIl19
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { map } from 'rxjs/operators';
|
|
4
|
-
import { AbstractAppConfig } from '../../../app.config';
|
|
5
|
-
import { HttpService } from '../http/http.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../http/http.service";
|
|
8
|
-
import * as i2 from "../../../app.config";
|
|
9
|
-
export class BannersService {
|
|
10
|
-
httpService;
|
|
11
|
-
appConfig;
|
|
12
|
-
static V2_MEDIATYPE_BANNERS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-banners.v2+json;charset=UTF-8';
|
|
13
|
-
constructor(httpService, appConfig) {
|
|
14
|
-
this.httpService = httpService;
|
|
15
|
-
this.appConfig = appConfig;
|
|
16
|
-
}
|
|
17
|
-
getBanners(jurisdictionReferences) {
|
|
18
|
-
const url = this.appConfig.getBannersUrl();
|
|
19
|
-
const headers = new HttpHeaders()
|
|
20
|
-
.set('experimental', 'true')
|
|
21
|
-
.set('Accept', BannersService.V2_MEDIATYPE_BANNERS)
|
|
22
|
-
.set('Content-Type', 'application/json');
|
|
23
|
-
let params = new HttpParams();
|
|
24
|
-
jurisdictionReferences.forEach(reference => params = params.append('ids', reference));
|
|
25
|
-
return this.httpService
|
|
26
|
-
.get(url, { params, headers, observe: 'body' })
|
|
27
|
-
.pipe(map(body => body.banners));
|
|
28
|
-
}
|
|
29
|
-
static ɵfac = function BannersService_Factory(t) { return new (t || BannersService)(i0.ɵɵinject(i1.HttpService), i0.ɵɵinject(i2.AbstractAppConfig)); };
|
|
30
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BannersService, factory: BannersService.ɵfac });
|
|
31
|
-
}
|
|
32
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BannersService, [{
|
|
33
|
-
type: Injectable
|
|
34
|
-
}], function () { return [{ type: i1.HttpService }, { type: i2.AbstractAppConfig }]; }, null); })();
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFubmVycy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9zZXJ2aWNlcy9iYW5uZXJzL2Jhbm5lcnMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQy9ELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRXhELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7OztBQUduRCxNQUFNLE9BQU8sY0FBYztJQUdJO0lBQTJDO0lBRmpFLE1BQU0sQ0FBVSxvQkFBb0IsR0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biAgICAgIC5zZXQoJ2V4cGVyaW1lbnRhbCcsICd0cnVlJylcbiAgICAgIC5zZXQoJ0FjY2VwdCcsIEJhbm5lcnNTZXJ2aWNlLlYyX01FRElBVFlQRV9CQU5ORVJTKVxuICAgICAgLnNldCgnQ29udGVudC1UeXBlJywgJ2FwcGxpY2F0aW9uL2pzb24nKTtcbiAgICBsZXQgcGFyYW1zID0gbmV3IEh0dHBQYXJhbXMoKTtcbiAgICBqdXJpc2RpY3Rpb25SZWZlcmVuY2VzLmZvckVhY2gocmVmZXJlbmNlID0+IHBhcmFtcyA9IHBhcmFtcy5hcHBlbmQoJ2lkcycsIHJlZmVyZW5jZSkpO1xuICAgIHJldHVybiB0aGlzLmh0dHBTZXJ2aWNlXG4gICAgICAuZ2V0KHVybCwge3BhcmFtcywgaGVhZGVycywgb2JzZXJ2ZTogJ2JvZHknfSlcbiAgICAgIC5waXBlKFxuICAgICAgICBtYXAoYm9keSA9PiBib2R5LmJhbm5lcnMpXG4gICAgICApO1xuICB9XG59XG4iXX0=
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class BrowserService {
|
|
4
|
-
isFirefox() {
|
|
5
|
-
return window.navigator.userAgent.indexOf('Firefox') > -1;
|
|
6
|
-
}
|
|
7
|
-
isSafari() {
|
|
8
|
-
const isSafariAgent = window.navigator.userAgent.indexOf('Safari') > -1;
|
|
9
|
-
const isChromeAgent = window.navigator.userAgent.indexOf('Chrome') > -1;
|
|
10
|
-
if ((isChromeAgent) && (isSafariAgent)) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
return isSafariAgent;
|
|
14
|
-
}
|
|
15
|
-
isIEOrEdge() {
|
|
16
|
-
return /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
|
|
17
|
-
}
|
|
18
|
-
static ɵfac = function BrowserService_Factory(t) { return new (t || BrowserService)(); };
|
|
19
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BrowserService, factory: BrowserService.ɵfac });
|
|
20
|
-
}
|
|
21
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BrowserService, [{
|
|
22
|
-
type: Injectable
|
|
23
|
-
}], null, null); })();
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9zZXJ2aWNlcy9icm93c2VyL2Jyb3dzZXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUczQyxNQUFNLE9BQU8sY0FBYztJQUNsQixTQUFTO1FBQ2QsT0FBTyxNQUFNLENBQUMsU0FBUyxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFDNUQsQ0FBQztJQUNNLFFBQVE7UUFDYixNQUFNLGFBQWEsR0FBRyxNQUFNLENBQUMsU0FBUyxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7UUFDeEUsTUFBTSxhQUFhLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQ3hFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxFQUFFO1lBQ3RDLE9BQU8sS0FBSyxDQUFDO1NBQ2Q7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