@hmcts/ccd-case-ui-toolkit 7.0.34-angular-upgrade → 7.0.34-pre-release-markdown
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 +779 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +587 -0
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +214 -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 +58 -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 +681 -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 +342 -0
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +154 -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 +75 -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 +408 -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 +66 -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 +62 -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/condition-parser.service.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 +40 -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/address-parser.mjs +76 -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 +304 -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 +81 -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 +38711 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -0
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +35744 -0
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -0
- package/lib/components/banners/alert/alert.component.d.ts +1 -1
- package/lib/components/banners/notification-banner/notification-banner.component.d.ts +1 -1
- package/lib/components/footer/footer.component.d.ts +1 -1
- package/lib/components/form/date-input/date-input.component.d.ts +1 -1
- package/lib/components/header/header-bar/header-bar.component.d.ts +1 -1
- package/lib/components/header/navigation/navigation-item.component.d.ts +1 -1
- package/lib/components/header/navigation/navigation.component.d.ts +1 -1
- package/lib/components/header/phase/phase.component.d.ts +1 -1
- package/lib/components/tabs/tab.component.d.ts +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
- package/lib/shared/components/activity/activity-banner/activity-banner.component.d.ts +1 -1
- package/lib/shared/components/activity/activity-icon/activity-icon.component.d.ts +1 -1
- package/lib/shared/components/activity/activity.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-create/case-create.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +8 -3
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-progress/case-progress.component.d.ts +1 -1
- package/lib/shared/components/case-header/case-header.component.d.ts +1 -1
- package/lib/shared/components/case-history/case-history.component.d.ts +1 -1
- package/lib/shared/components/case-list/case-list.component.d.ts +1 -1
- package/lib/shared/components/case-list-filters/case-list-filters.component.d.ts +1 -1
- package/lib/shared/components/case-timeline/case-timeline.component.d.ts +1 -1
- package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +1 -1
- package/lib/shared/components/case-viewer/case-view/case-view.component.d.ts +1 -1
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts +1 -1
- package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts +1 -1
- package/lib/shared/components/error/callback-errors.component.d.ts +1 -1
- package/lib/shared/components/error-message/error-message.component.d.ts +1 -1
- package/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.d.ts +1 -1
- package/lib/shared/components/event-start/components/task-conflict/task-conflict.component.d.ts +1 -1
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts +1 -1
- package/lib/shared/components/loading-spinner/loading-spinner.component.d.ts +1 -1
- package/lib/shared/components/pagination/pagination.component.d.ts +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/base-field/abstract-field-read.component.d.ts +1 -1
- package/lib/shared/components/palette/base-field/abstract-field-write.component.d.ts +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +2 -2
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read-label.component.d.ts +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -1
- package/lib/shared/components/palette/base-field/field-write.component.d.ts +1 -1
- package/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.d.ts +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +1 -1
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +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 +3 -2
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-raw.component.d.ts +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-table.component.d.ts +1 -1
- package/lib/shared/components/palette/complex/read-complex-field.component.d.ts +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/datetime-picker/datetime-picker.component.d.ts +1 -1
- package/lib/shared/components/palette/history/event-log/event-log-details.component.d.ts +1 -1
- package/lib/shared/components/palette/history/event-log/event-log-table.component.d.ts +1 -1
- package/lib/shared/components/palette/history/event-log/event-log.component.d.ts +1 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts +1 -1
- package/lib/shared/components/palette/markdown/markdown-component.module.d.ts +2 -2
- package/lib/shared/components/palette/markdown/markdown.component.d.ts +4 -1
- package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
- package/lib/shared/components/palette/money-gbp/money-gbp-input.component.d.ts +1 -1
- package/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.d.ts +1 -1
- package/lib/shared/components/palette/order-summary/read-order-summary-row.component.d.ts +1 -1
- package/lib/shared/components/palette/organisation/read-organisation-field-raw.component.d.ts +1 -1
- package/lib/shared/components/palette/organisation/read-organisation-field-table.component.d.ts +1 -1
- package/lib/shared/components/palette/organisation/read-organisation-field.component.d.ts +1 -1
- package/lib/shared/components/palette/organisation/write-organisation-complex-field.component.d.ts +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +5 -4
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/models/qualifying-questions/casetype-qualifying-questions.model.d.ts +1 -1
- package/lib/shared/components/palette/query-management/models/qualifying-questions/casetype-qualifying-questions.model.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
- package/lib/shared/components/search-filters/search-filters-wrapper.component.d.ts +1 -1
- package/lib/shared/components/search-filters/search-filters.component.d.ts +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts +1 -1
- package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts +1 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +1 -1
- package/lib/shared/domain/alert/alert-level.model.d.ts +1 -1
- package/lib/shared/domain/alert/alert-level.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/access-types.model.d.ts +1 -1
- package/lib/shared/domain/case-view/access-types.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/role-request.model.d.ts +4 -4
- package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/domain/predicate.model.d.ts +1 -1
- package/lib/shared/domain/predicate.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/form/form-validators.service.d.ts +4 -0
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
- package/lib/shared/services/order/order.service.d.ts +2 -2
- package/lib/shared/services/order/order.service.d.ts.map +1 -1
- package/lib/shared/services/request/request.options.builder.d.ts +1 -1
- package/lib/shared/services/request/request.options.builder.d.ts.map +1 -1
- package/package.json +12 -6
- 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 -92
- 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 -116
- package/esm2022/lib/components/banners/notification-banner/notification-banner.module.mjs +0 -19
- package/esm2022/lib/components/body/body.component.mjs +0 -21
- 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 -341
- 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 -45
- package/esm2022/lib/components/header/navigation/navigation.component.mjs +0 -26
- package/esm2022/lib/components/header/phase/phase.component.mjs +0 -49
- package/esm2022/lib/components/tabs/tab.component.mjs +0 -32
- package/esm2022/lib/components/tabs/tabs.component.mjs +0 -83
- 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 -43
- package/esm2022/lib/shared/components/activity/activity-icon/activity-icon.component.mjs +0 -36
- package/esm2022/lib/shared/components/activity/activity.component.mjs +0 -156
- 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 -96
- package/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +0 -464
- package/esm2022/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.mjs +0 -130
- 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 -806
- package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +0 -555
- package/esm2022/lib/shared/components/case-editor/case-editor.module.mjs +0 -213
- package/esm2022/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.mjs +0 -97
- package/esm2022/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.mjs +0 -83
- package/esm2022/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.mjs +0 -167
- package/esm2022/lib/shared/components/case-editor/case-progress/case-progress.component.mjs +0 -85
- 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 -59
- 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 -33
- 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 -64
- 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 -368
- package/esm2022/lib/shared/components/case-list/case-list.module.mjs +0 -47
- package/esm2022/lib/shared/components/case-list-filters/case-list-filters.component.mjs +0 -57
- package/esm2022/lib/shared/components/case-list-filters/case-list-filters.module.mjs +0 -64
- 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 -52
- package/esm2022/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.mjs +0 -246
- package/esm2022/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.mjs +0 -311
- package/esm2022/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.mjs +0 -75
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +0 -156
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +0 -707
- package/esm2022/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.mjs +0 -61
- package/esm2022/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.mjs +0 -256
- package/esm2022/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.mjs +0 -211
- package/esm2022/lib/shared/components/case-viewer/case-specific-access-success/case-specific-access-success.component.mjs +0 -50
- package/esm2022/lib/shared/components/case-viewer/case-view/case-view.component.mjs +0 -107
- 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 -191
- package/esm2022/lib/shared/components/case-viewer/printer/case-printer.component.mjs +0 -117
- 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 -289
- 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 -60
- package/esm2022/lib/shared/components/dialogs/dialogs.module.mjs +0 -51
- package/esm2022/lib/shared/components/dialogs/document-dialog/document-dialog.component.mjs +0 -62
- package/esm2022/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.mjs +0 -60
- package/esm2022/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.mjs +0 -64
- package/esm2022/lib/shared/components/error/callback-errors.component.mjs +0 -146
- 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 -45
- 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 -62
- package/esm2022/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.mjs +0 -56
- package/esm2022/lib/shared/components/event-start/components/task-assigned/task-assigned.component.mjs +0 -112
- package/esm2022/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.mjs +0 -70
- package/esm2022/lib/shared/components/event-start/components/task-conflict/task-conflict.component.mjs +0 -61
- package/esm2022/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.mjs +0 -56
- 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 -56
- 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 -26
- package/esm2022/lib/shared/components/loading-spinner/loading-spinner.module.mjs +0 -29
- package/esm2022/lib/shared/components/pagination/pagination.component.mjs +0 -260
- package/esm2022/lib/shared/components/pagination/pagination.module.mjs +0 -35
- 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 -286
- 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 -90
- package/esm2022/lib/shared/components/palette/base-field/field-write.component.mjs +0 -78
- 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 -181
- 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 -50
- 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 -51
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +0 -358
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +0 -158
- package/esm2022/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.mjs +0 -94
- package/esm2022/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +0 -190
- package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +0 -301
- package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.mjs +0 -206
- 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 -225
- 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 -353
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +0 -269
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +0 -510
- 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 -253
- package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +0 -697
- package/esm2022/lib/shared/components/palette/case-link/read-case-link-field.component.mjs +0 -33
- 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 -447
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-collection-table.component.mjs +0 -378
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-raw.component.mjs +0 -51
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-table.component.mjs +0 -76
- package/esm2022/lib/shared/components/palette/complex/read-complex-field.component.mjs +0 -71
- 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 -26
- 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 -312
- 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 -88
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +0 -430
- 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 -37
- package/esm2022/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +0 -124
- package/esm2022/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.mjs +0 -44
- package/esm2022/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.mjs +0 -146
- 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 -43
- package/esm2022/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.mjs +0 -123
- package/esm2022/lib/shared/components/palette/email/read-email-field.component.mjs +0 -36
- 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 -27
- 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 -27
- 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 -17
- package/esm2022/lib/shared/components/palette/history/event-log/event-log-details.component.mjs +0 -99
- package/esm2022/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +0 -224
- 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 -49
- 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 -111
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +0 -191
- 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 -213
- 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 -209
- 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 -168
- 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 -234
- package/esm2022/lib/shared/components/palette/markdown/markdown-component.module.mjs +0 -40
- package/esm2022/lib/shared/components/palette/markdown/markdown.component.mjs +0 -46
- package/esm2022/lib/shared/components/palette/money-gbp/money-gbp-input.component.mjs +0 -128
- package/esm2022/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.mjs +0 -50
- 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 -46
- package/esm2022/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.mjs +0 -126
- package/esm2022/lib/shared/components/palette/number/read-number-field.component.mjs +0 -25
- 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 -74
- package/esm2022/lib/shared/components/palette/order-summary/read-order-summary-row.component.mjs +0 -45
- package/esm2022/lib/shared/components/palette/order-summary/write-order-summary-field.component.mjs +0 -45
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field-raw.component.mjs +0 -88
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field-table.component.mjs +0 -92
- package/esm2022/lib/shared/components/palette/organisation/read-organisation-field.component.mjs +0 -52
- package/esm2022/lib/shared/components/palette/organisation/write-organisation-complex-field.component.mjs +0 -35
- package/esm2022/lib/shared/components/palette/organisation/write-organisation-field.component.mjs +0 -397
- package/esm2022/lib/shared/components/palette/palette.module.mjs +0 -736
- 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 -25
- package/esm2022/lib/shared/components/palette/phone-uk/read-phone-uk-field.component.mjs +0 -23
- 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 -44
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +0 -150
- package/esm2022/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.mjs +0 -67
- 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 -24
- package/esm2022/lib/shared/components/palette/query-management/components/query-list/query-list.component.mjs +0 -165
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.mjs +0 -78
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.mjs +0 -121
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +0 -202
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +0 -107
- 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 -124
- 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 -25
- 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 -25
- 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 -18
- 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 -35
- package/esm2022/lib/shared/components/palette/yes-no/read-yes-no-field.component.mjs +0 -37
- 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 -63
- package/esm2022/lib/shared/components/search-filters/search-filters.component.mjs +0 -341
- package/esm2022/lib/shared/components/search-filters/search-filters.module.mjs +0 -71
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +0 -822
- package/esm2022/lib/shared/components/search-result/search-result.module.mjs +0 -82
- package/esm2022/lib/shared/components/workbasket-filters/workbasket-filters.component.mjs +0 -497
- package/esm2022/lib/shared/components/workbasket-filters/workbasket-filters.module.mjs +0 -67
- 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/condition-parser.service.mjs +0 -200
- 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 -125
- 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 -28
- package/esm2022/lib/shared/domain/draft.model.mjs +0 -16
- package/esm2022/lib/shared/domain/http/http-error.model.mjs +0 -49
- 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/address-parser.mjs +0 -76
- 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 -305
- 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 -36948
- 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.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-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,615 +0,0 @@
|
|
|
1
|
-
import { CurrencyPipe } from '@angular/common';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
4
|
-
import { plainToClassFromExist } from 'class-transformer';
|
|
5
|
-
import { CaseFlagDisplayContextParameter, CaseFlagStatus } from '../../components/palette/case-flag/enums';
|
|
6
|
-
import { DatePipe } from '../../components/palette/utils';
|
|
7
|
-
import { CaseField } from '../../domain';
|
|
8
|
-
import { FormatTranslatorService } from '../case-fields/format-translator.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
// @dynamic
|
|
11
|
-
export class FieldsUtils {
|
|
12
|
-
static caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
13
|
-
static currencyPipe = new CurrencyPipe('en-GB');
|
|
14
|
-
static datePipe = new DatePipe(new FormatTranslatorService());
|
|
15
|
-
// EUI-4244. 3 dashes instead of 1 to make this less likely to clash with a real field.
|
|
16
|
-
static LABEL_SUFFIX = '---LABEL';
|
|
17
|
-
// Handling of Dynamic Lists in Complex Types
|
|
18
|
-
static SERVER_RESPONSE_FIELD_TYPE_COLLECTION = 'Collection';
|
|
19
|
-
static SERVER_RESPONSE_FIELD_TYPE_COMPLEX = 'Complex';
|
|
20
|
-
static SERVER_RESPONSE_FIELD_TYPE_DYNAMIC_LIST_TYPE = ['DynamicList', 'DynamicRadioList'];
|
|
21
|
-
static isValidDisplayContext(ctx) {
|
|
22
|
-
return (ctx === 'MANDATORY' || ctx === 'READONLY'
|
|
23
|
-
|| ctx === 'OPTIONAL' || ctx === 'HIDDEN'
|
|
24
|
-
|| ctx === 'COMPLEX');
|
|
25
|
-
}
|
|
26
|
-
static convertToCaseField(obj) {
|
|
27
|
-
if (!(obj instanceof CaseField)) {
|
|
28
|
-
return plainToClassFromExist(new CaseField(), obj);
|
|
29
|
-
}
|
|
30
|
-
return obj;
|
|
31
|
-
}
|
|
32
|
-
static toValuesMap(caseFields) {
|
|
33
|
-
const valueMap = {};
|
|
34
|
-
caseFields.forEach(field => {
|
|
35
|
-
valueMap[field.id] = FieldsUtils.prepareValue(field);
|
|
36
|
-
});
|
|
37
|
-
return valueMap;
|
|
38
|
-
}
|
|
39
|
-
// public static getType(elem: any): string {
|
|
40
|
-
// return Object.prototype.toString.call(elem).slice(8, -1);
|
|
41
|
-
// }
|
|
42
|
-
static isObject(elem) {
|
|
43
|
-
return typeof elem === 'object' && elem !== null;
|
|
44
|
-
}
|
|
45
|
-
static isNonEmptyObject(elem) {
|
|
46
|
-
return this.isObject(elem) && Object.keys(elem).length !== 0;
|
|
47
|
-
}
|
|
48
|
-
static isArray(elem) {
|
|
49
|
-
return Array.isArray(elem);
|
|
50
|
-
}
|
|
51
|
-
static areCollectionValuesSimpleFields(fieldValue) {
|
|
52
|
-
return !this.isObject(fieldValue[0]['value']) && !Array.isArray(fieldValue[0]['value']) && fieldValue[0]['value'] !== undefined;
|
|
53
|
-
}
|
|
54
|
-
static isCollectionOfSimpleTypes(fieldValue) {
|
|
55
|
-
return this.isCollection(fieldValue) && this.areCollectionValuesSimpleFields(fieldValue);
|
|
56
|
-
}
|
|
57
|
-
static isMultiSelectValue(form) {
|
|
58
|
-
return this.isNonEmptyArray(form) && !this.isCollectionWithValue(form);
|
|
59
|
-
}
|
|
60
|
-
static isNonEmptyArray(pageFormFields) {
|
|
61
|
-
return Array.isArray(pageFormFields) && pageFormFields[0] !== undefined;
|
|
62
|
-
}
|
|
63
|
-
static isCollection(pageFormFields) {
|
|
64
|
-
return this.isNonEmptyArray(pageFormFields) && this.isCollectionWithValue(pageFormFields);
|
|
65
|
-
}
|
|
66
|
-
static isCollectionWithValue(pageFormFields) {
|
|
67
|
-
return pageFormFields[0]['value'] !== undefined;
|
|
68
|
-
}
|
|
69
|
-
static cloneObject(obj) {
|
|
70
|
-
return Object.assign({}, obj);
|
|
71
|
-
}
|
|
72
|
-
// temporary function until this can be moved to CaseView class (RDM-2681)
|
|
73
|
-
static getCaseFields(caseView) {
|
|
74
|
-
const caseDataFields = caseView.tabs.reduce((acc, tab) => {
|
|
75
|
-
return acc.concat(tab.fields);
|
|
76
|
-
}, []);
|
|
77
|
-
const metadataFields = caseView.metadataFields;
|
|
78
|
-
return metadataFields.concat(caseDataFields.filter((caseField) => {
|
|
79
|
-
return metadataFields.findIndex(metadataField => metadataField.id === caseField.id) < 0;
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
static addCaseFieldAndComponentReferences(c, cf, comp) {
|
|
83
|
-
c['caseField'] = cf;
|
|
84
|
-
c['component'] = comp;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Recursive check of an array or object and its descendants for the presence of any non-empty values.
|
|
88
|
-
*
|
|
89
|
-
* @param object The array or object to check
|
|
90
|
-
* @returns `true` if the array or object (or a descendant) contains at least one non-empty value; `false` otherwise
|
|
91
|
-
*/
|
|
92
|
-
static containsNonEmptyValues(object) {
|
|
93
|
-
if (!object) {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
const values = Object.keys(object).map(key => object[key]);
|
|
97
|
-
const objectRefs = [];
|
|
98
|
-
// Also test for numeric values, and length > 0 for non-numeric values because this covers both strings and arrays.
|
|
99
|
-
// Note: Deliberate use of non-equality (!=) operator for null check, to handle both null and undefined values.
|
|
100
|
-
// tslint:disable-next-line: triple-equals
|
|
101
|
-
const hasNonNullPrimitive = values.some(x => (x != null &&
|
|
102
|
-
((typeof x === 'object' && x.constructor === Object) || Array.isArray(x)
|
|
103
|
-
? !objectRefs.push(x)
|
|
104
|
-
: typeof x === 'number' || x.length > 0)));
|
|
105
|
-
return !hasNonNullPrimitive ? objectRefs.some(y => this.containsNonEmptyValues(y)) : hasNonNullPrimitive;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* handleNestedDynamicLists()
|
|
109
|
-
* Reassigns list_item and value data to DynamicList children
|
|
110
|
-
* down the tree. Server response returns data only in
|
|
111
|
-
* the `value` object of parent complex type
|
|
112
|
-
*
|
|
113
|
-
* EUI-2530 Dynamic Lists for Elements in a Complex Type
|
|
114
|
-
*
|
|
115
|
-
* @param jsonBody - { case_fields: [ CaseField, CaseField ] }
|
|
116
|
-
*/
|
|
117
|
-
static handleNestedDynamicLists(jsonBody) {
|
|
118
|
-
if (jsonBody.case_fields) {
|
|
119
|
-
jsonBody.case_fields.forEach(caseField => {
|
|
120
|
-
if (caseField.field_type) {
|
|
121
|
-
this.setDynamicListDefinition(caseField, caseField.field_type, caseField);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
return jsonBody;
|
|
126
|
-
}
|
|
127
|
-
static prepareValue(field) {
|
|
128
|
-
if (field.value) {
|
|
129
|
-
return field.value;
|
|
130
|
-
}
|
|
131
|
-
else if (field.isComplex()) {
|
|
132
|
-
const valueMap = {};
|
|
133
|
-
field.field_type.complex_fields.forEach(complexField => {
|
|
134
|
-
valueMap[complexField.id] = FieldsUtils.prepareValue(complexField);
|
|
135
|
-
});
|
|
136
|
-
return valueMap;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
static DEFAULT_MERGE_FUNCTION = function mergeFunction(field, result) {
|
|
140
|
-
if (!result.hasOwnProperty(field.id)) {
|
|
141
|
-
result[field.id] = field.value;
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
static LABEL_MERGE_FUNCTION = function mergeFunction(field, result) {
|
|
145
|
-
if (!result) {
|
|
146
|
-
result = {};
|
|
147
|
-
}
|
|
148
|
-
if (!result.hasOwnProperty(field.id)) {
|
|
149
|
-
result[field.id] = field.value;
|
|
150
|
-
}
|
|
151
|
-
// tslint:disable-next-line: switch-default
|
|
152
|
-
switch (field.field_type.type) {
|
|
153
|
-
case 'FixedList':
|
|
154
|
-
case 'FixedRadioList': {
|
|
155
|
-
result[field.id] = FieldsUtils.getFixedListLabelByCodeOrEmpty(field, result[field.id] || field.value);
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
case 'MultiSelectList': {
|
|
159
|
-
const fieldValue = result[field.id] || [];
|
|
160
|
-
result[field.id + FieldsUtils.LABEL_SUFFIX] = [];
|
|
161
|
-
fieldValue.forEach((code, idx) => {
|
|
162
|
-
result[field.id + FieldsUtils.LABEL_SUFFIX][idx] = FieldsUtils.getFixedListLabelByCodeOrEmpty(field, code);
|
|
163
|
-
});
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
case 'Label': {
|
|
167
|
-
result[field.id] = FieldsUtils.getLabel(field);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
case 'MoneyGBP': {
|
|
171
|
-
const fieldValue = (result[field.id] || field.value);
|
|
172
|
-
result[field.id] = FieldsUtils.getMoneyGBP(fieldValue);
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
case 'Date': {
|
|
176
|
-
const fieldValue = (result[field.id] || field.value);
|
|
177
|
-
result[field.id] = FieldsUtils.getDate(fieldValue);
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
case 'Complex': {
|
|
181
|
-
if (result[field.id] && field.field_type.complex_fields) {
|
|
182
|
-
field.field_type.complex_fields.forEach((f) => {
|
|
183
|
-
if (['Collection', 'Complex', 'MultiSelectList'].indexOf(f.field_type.type) > -1) {
|
|
184
|
-
FieldsUtils.LABEL_MERGE_FUNCTION(f, result[field.id]);
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
case 'Collection': {
|
|
191
|
-
const elements = (result[field.id] || field.value);
|
|
192
|
-
if (elements) {
|
|
193
|
-
elements.forEach((elem) => {
|
|
194
|
-
// tslint:disable-next-line:switch-default
|
|
195
|
-
switch (field.field_type.collection_field_type.type) {
|
|
196
|
-
case 'MoneyGBP': {
|
|
197
|
-
elem.value = FieldsUtils.getMoneyGBP(elem.value);
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
case 'Date': {
|
|
201
|
-
elem.value = FieldsUtils.getDate(elem.value);
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
case 'Complex': {
|
|
205
|
-
if (field.field_type.collection_field_type.complex_fields) {
|
|
206
|
-
field.field_type.collection_field_type.complex_fields.forEach((f) => {
|
|
207
|
-
if (['Collection', 'Complex', 'MultiSelectList'].indexOf(f.field_type.type) > -1) {
|
|
208
|
-
FieldsUtils.LABEL_MERGE_FUNCTION(f, elem.value);
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
break;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Formats a `MoneyGBP` value to include currency units.
|
|
223
|
-
* @param fieldValue The CurrencyPipe expects an `any` parameter so this must also be `any`,
|
|
224
|
-
* but it should be "number-like" (e.g., '1234')
|
|
225
|
-
* @returns A formatted string (e.g., £12.34)
|
|
226
|
-
*/
|
|
227
|
-
static getMoneyGBP(fieldValue) {
|
|
228
|
-
return fieldValue ? FieldsUtils.currencyPipe.transform(fieldValue / 100, 'GBP', 'symbol') : fieldValue;
|
|
229
|
-
}
|
|
230
|
-
static getLabel(fieldValue) {
|
|
231
|
-
return fieldValue ? fieldValue.label : '';
|
|
232
|
-
}
|
|
233
|
-
static getDate(fieldValue) {
|
|
234
|
-
try {
|
|
235
|
-
// Format specified here wasn't previously working and lots of tests depend on it not working
|
|
236
|
-
// Now that formats work correctly many test would break - and this could affect services which may depend on
|
|
237
|
-
// the orginal behaviour of returning dates in "d MMM yyyy"
|
|
238
|
-
// Note - replaced 'd' with 'D' as datepipe using moment to avoid timezone discrepancies
|
|
239
|
-
return FieldsUtils.datePipe.transform(fieldValue, null, 'D MMM yyyy');
|
|
240
|
-
}
|
|
241
|
-
catch (e) {
|
|
242
|
-
return this.textForInvalidField('Date', fieldValue);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
static getFixedListLabelByCodeOrEmpty(field, code) {
|
|
246
|
-
const relevantItem = code ? field.field_type.fixed_list_items.find(item => item.code === code) : null;
|
|
247
|
-
return relevantItem ? relevantItem.label : '';
|
|
248
|
-
}
|
|
249
|
-
static textForInvalidField(type, invalidValue) {
|
|
250
|
-
return `{ Invalid ${type}: ${invalidValue} }`;
|
|
251
|
-
}
|
|
252
|
-
static setDynamicListDefinition(caseField, caseFieldType, rootCaseField) {
|
|
253
|
-
if (caseFieldType.type === FieldsUtils.SERVER_RESPONSE_FIELD_TYPE_COMPLEX) {
|
|
254
|
-
caseFieldType.complex_fields.forEach(field => {
|
|
255
|
-
try {
|
|
256
|
-
const isDynamicField = FieldsUtils.SERVER_RESPONSE_FIELD_TYPE_DYNAMIC_LIST_TYPE.indexOf(field.field_type.type) !== -1;
|
|
257
|
-
if (isDynamicField) {
|
|
258
|
-
const dynamicListValue = this.getDynamicListValue(rootCaseField.value, field.id);
|
|
259
|
-
if (dynamicListValue) {
|
|
260
|
-
const list_items = dynamicListValue[0].list_items;
|
|
261
|
-
const complexValue = dynamicListValue.map(data => data.value);
|
|
262
|
-
const value = {
|
|
263
|
-
list_items,
|
|
264
|
-
value: complexValue.length > 0 ? complexValue : undefined
|
|
265
|
-
};
|
|
266
|
-
field.value = {
|
|
267
|
-
...value
|
|
268
|
-
};
|
|
269
|
-
field.formatted_value = {
|
|
270
|
-
...field.formatted_value,
|
|
271
|
-
...value
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
this.setDynamicListDefinition(field, field.field_type, rootCaseField);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
catch (error) {
|
|
280
|
-
console.log(error);
|
|
281
|
-
}
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
else if (caseFieldType.type === FieldsUtils.SERVER_RESPONSE_FIELD_TYPE_COLLECTION) {
|
|
285
|
-
if (caseFieldType.collection_field_type) {
|
|
286
|
-
this.setDynamicListDefinition(caseField, caseFieldType.collection_field_type, rootCaseField);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
static getDynamicListValue(jsonBlock, key) {
|
|
291
|
-
const data = jsonBlock ? this.getNestedFieldValues(jsonBlock, key, []) : [];
|
|
292
|
-
return data.length > 0 ? data : null;
|
|
293
|
-
}
|
|
294
|
-
static getNestedFieldValues(jsonData, key, output = []) {
|
|
295
|
-
if (jsonData && jsonData[key]) {
|
|
296
|
-
output.push(jsonData[key]);
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
for (const elementKey in jsonData) {
|
|
300
|
-
if (typeof jsonData === 'object' && jsonData.hasOwnProperty(elementKey)) {
|
|
301
|
-
this.getNestedFieldValues(jsonData[elementKey], key, output);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return output;
|
|
306
|
-
}
|
|
307
|
-
static isFlagsCaseField(caseField) {
|
|
308
|
-
if (!caseField) {
|
|
309
|
-
return false;
|
|
310
|
-
}
|
|
311
|
-
return this.isFlagsFieldType(caseField.field_type);
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* @deprecated Use {@link isCaseFieldOfType} instead, passing 'FlagLauncher' as the single type in the `types` array
|
|
315
|
-
*/
|
|
316
|
-
static isFlagLauncherCaseField(caseField) {
|
|
317
|
-
if (!caseField) {
|
|
318
|
-
return false;
|
|
319
|
-
}
|
|
320
|
-
return caseField.field_type.type === 'FlagLauncher';
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated Use {@link isCaseFieldOfType} instead, passing 'ComponentLauncher' as the single type in the `types`
|
|
324
|
-
* array
|
|
325
|
-
*/
|
|
326
|
-
static isComponentLauncherCaseField(caseField) {
|
|
327
|
-
if (!caseField) {
|
|
328
|
-
return false;
|
|
329
|
-
}
|
|
330
|
-
return caseField.field_type.type === 'ComponentLauncher';
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Checks if a {@link CaseField} is of one of the given field types.
|
|
334
|
-
*
|
|
335
|
-
* @param caseField The `CaseField` to check
|
|
336
|
-
* @param types An array of one or more field types
|
|
337
|
-
* @returns `true` if the `CaseField` type is one of those in the array of types to check against; `false`
|
|
338
|
-
* otherwise or if `caseField` or `types` are falsy
|
|
339
|
-
*/
|
|
340
|
-
static isCaseFieldOfType(caseField, types) {
|
|
341
|
-
if (!caseField || !types) {
|
|
342
|
-
return false;
|
|
343
|
-
}
|
|
344
|
-
return types.some(type => type === caseField.field_type?.type || type === caseField.field_type?.id);
|
|
345
|
-
}
|
|
346
|
-
static isLinkedCasesCaseField(caseField) {
|
|
347
|
-
return FieldsUtils.isComponentLauncherCaseField(caseField) &&
|
|
348
|
-
caseField.id === 'LinkedCasesComponentLauncher';
|
|
349
|
-
}
|
|
350
|
-
static containsLinkedCasesCaseField(caseFields) {
|
|
351
|
-
return caseFields?.some(caseField => FieldsUtils.isLinkedCasesCaseField(caseField));
|
|
352
|
-
}
|
|
353
|
-
static isFlagsFieldType(fieldType) {
|
|
354
|
-
if (!fieldType) {
|
|
355
|
-
return false;
|
|
356
|
-
}
|
|
357
|
-
// Note: This implementation supports the dummy field type ID of "CaseFlag" for testing and the real field type
|
|
358
|
-
// ID of "Flags"
|
|
359
|
-
return (fieldType.type === 'Complex' && (fieldType.id === 'CaseFlag' || fieldType.id === 'Flags'));
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* Extract flags data from a `CaseField` instance, recursing and iterating through sub-fields of a Complex field or
|
|
363
|
-
* each field in a Collection field.
|
|
364
|
-
*
|
|
365
|
-
* @param flags An array for accumulating extracted flags data and derived `FormGroup` paths
|
|
366
|
-
* @param caseField A `CaseField` instance from which to extract the flags data
|
|
367
|
-
* @param pathToFlagsFormGroup A (dot-delimited) string for concatenating the name of each control that forms the path
|
|
368
|
-
* to the `FormGroup` for the `Flags` instance
|
|
369
|
-
* @param topLevelCaseField The top-level `CaseField` that contains the value property. This is required because _only
|
|
370
|
-
* top-level_ `CaseField`s contain actual values and a reference needs to be maintained to such a field
|
|
371
|
-
* @param currentValue The current value object of a `CaseField` that is a sub-field of a non root-level Complex field.
|
|
372
|
-
* Required for mapping the `CaseField` value to a `Flags` object if it is a "Flags" `CaseField`. (For Complex types,
|
|
373
|
-
* only the _root-level_ `CaseField` contains a value property - all sub-fields, including any nested Complex fields,
|
|
374
|
-
* do *not* contain any values themselves.)
|
|
375
|
-
* @returns An array of `FlagsWithFormGroupPath`, each instance comprising a `Flags` object derived from a `CaseField`
|
|
376
|
-
* of type "Flags", and the dot-delimited path string to the corresponding `FormGroup`
|
|
377
|
-
*/
|
|
378
|
-
static extractFlagsDataFromCaseField(flags, caseField, pathToFlagsFormGroup, topLevelCaseField, currentValue) {
|
|
379
|
-
const fieldType = caseField.field_type;
|
|
380
|
-
switch (fieldType.type) {
|
|
381
|
-
case 'Complex':
|
|
382
|
-
// If the field is a Flags CaseField (these are implemented as Complex types), it can be mapped to a Flags
|
|
383
|
-
// object immediately
|
|
384
|
-
if (FieldsUtils.isFlagsCaseField(caseField)) {
|
|
385
|
-
// If the Flags CaseField has a value, it is a root-level Complex field; if it does not, it is a Flags
|
|
386
|
-
// CaseField that is a sub-field within another Complex field, so use the currentValue value (if any)
|
|
387
|
-
// instead. The exception to this is the "caseFlags" Flags CaseField, which will have an empty object value
|
|
388
|
-
// initially, because no party name is required
|
|
389
|
-
if (caseField.value && FieldsUtils.isNonEmptyObject(caseField.value) ||
|
|
390
|
-
caseField.id === this.caseLevelCaseFlagsFieldId) {
|
|
391
|
-
flags.push(this.mapCaseFieldToFlagsWithFormGroupPathObject(caseField, pathToFlagsFormGroup));
|
|
392
|
-
}
|
|
393
|
-
else if (currentValue && FieldsUtils.isNonEmptyObject(currentValue)) {
|
|
394
|
-
pathToFlagsFormGroup += `.${caseField.id}`;
|
|
395
|
-
flags.push(this.mapValueToFlagsWithFormGroupPathObject(caseField.id, currentValue, pathToFlagsFormGroup, topLevelCaseField));
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
else if (fieldType.complex_fields) {
|
|
399
|
-
const value = caseField.value ? caseField.value : currentValue;
|
|
400
|
-
if (value && FieldsUtils.isNonEmptyObject(value)) {
|
|
401
|
-
flags = fieldType.complex_fields.reduce((flagsOfComplexField, subField) => {
|
|
402
|
-
return this.extractFlagsDataFromCaseField(flagsOfComplexField, subField, pathToFlagsFormGroup, topLevelCaseField, value[subField.id]);
|
|
403
|
-
}, flags);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
break;
|
|
407
|
-
// For a Collection field, the values are stored directly as key-value pairs in the CaseField's value property
|
|
408
|
-
// as an array, unless the collection is a sub-field of a Complex type - sub-fields never contain values
|
|
409
|
-
case 'Collection':
|
|
410
|
-
// If this is a collection of Flags CaseFields, these can be mapped to Flags objects immediately
|
|
411
|
-
if (FieldsUtils.isFlagsFieldType(fieldType.collection_field_type)) {
|
|
412
|
-
// If the Collection CaseField has a value (an array), it is a root-level Collection field; if it does not,
|
|
413
|
-
// it is a Collection CaseField that is a sub-field within a Complex field, so use the currentValue value
|
|
414
|
-
// (if any) instead
|
|
415
|
-
const pathFragment = pathToFlagsFormGroup += '.index.value';
|
|
416
|
-
if (caseField.value) {
|
|
417
|
-
caseField.value.forEach((item, index) => {
|
|
418
|
-
// At each iteration, replace the "index" placeholder with the actual index
|
|
419
|
-
pathToFlagsFormGroup = pathFragment.replace('index', index.toString(10));
|
|
420
|
-
flags.push(this.mapValueToFlagsWithFormGroupPathObject(item.id, item.value, pathToFlagsFormGroup, caseField));
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
else if (currentValue) {
|
|
424
|
-
currentValue.forEach((item, index) => {
|
|
425
|
-
pathToFlagsFormGroup = pathFragment.replace('index', index.toString(10));
|
|
426
|
-
flags.push(this.mapValueToFlagsWithFormGroupPathObject(item.id, item.value, pathToFlagsFormGroup, topLevelCaseField));
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
else if (fieldType.collection_field_type.type === 'Complex' && fieldType.collection_field_type.complex_fields) {
|
|
431
|
-
if (caseField.value) {
|
|
432
|
-
// Perform a reduction over each Complex field's sub-fields (similar to what is done above for non-Flags
|
|
433
|
-
// Complex fields)
|
|
434
|
-
// (Cannot just call this function recursively for each Complex field in the collection because the CaseField
|
|
435
|
-
// for each one is not part of the collection)
|
|
436
|
-
const pathFragment = pathToFlagsFormGroup += '.index.value';
|
|
437
|
-
caseField.value.forEach((item, index) => {
|
|
438
|
-
// At each iteration, replace the "index" placeholder with the actual index
|
|
439
|
-
pathToFlagsFormGroup = pathFragment.replace('index', index.toString(10));
|
|
440
|
-
flags = fieldType.collection_field_type.complex_fields.reduce((flagsOfComplexField, subField) => {
|
|
441
|
-
return this.extractFlagsDataFromCaseField(flagsOfComplexField, subField, pathToFlagsFormGroup, topLevelCaseField, item.value[subField.id]);
|
|
442
|
-
}, flags);
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
break;
|
|
447
|
-
default:
|
|
448
|
-
// Ignore all other field types
|
|
449
|
-
}
|
|
450
|
-
return flags;
|
|
451
|
-
}
|
|
452
|
-
static mapCaseFieldToFlagsWithFormGroupPathObject(caseField, pathToFlagsFormGroup) {
|
|
453
|
-
return this.mapValueToFlagsWithFormGroupPathObject(caseField.id, caseField.value, pathToFlagsFormGroup, caseField);
|
|
454
|
-
}
|
|
455
|
-
static mapValueToFlagsWithFormGroupPathObject(id, value, pathToFlagsFormGroup, caseField) {
|
|
456
|
-
return {
|
|
457
|
-
flags: {
|
|
458
|
-
flagsCaseFieldId: id,
|
|
459
|
-
partyName: value ? value['partyName'] : null,
|
|
460
|
-
roleOnCase: value ? value['roleOnCase'] : null,
|
|
461
|
-
details: value && value['details'] && value['details'].length > 0
|
|
462
|
-
? value['details'].map(detail => {
|
|
463
|
-
return Object.assign({}, ...Object.keys(detail.value).map((k) => {
|
|
464
|
-
// The id property set below will be null for a new case flag, and a unique id returned from CCD when
|
|
465
|
-
// updating an existing flag
|
|
466
|
-
switch (k) {
|
|
467
|
-
// These two fields are date-time fields
|
|
468
|
-
case 'dateTimeModified':
|
|
469
|
-
case 'dateTimeCreated':
|
|
470
|
-
return { [k]: detail.value[k] ? new Date(detail.value[k]) : null, id: detail.id };
|
|
471
|
-
// This field is a "yes/no" field
|
|
472
|
-
case 'hearingRelevant':
|
|
473
|
-
return detail.value[k].toUpperCase() === 'YES' ? { [k]: true, id: detail.id } : { [k]: false, id: detail.id };
|
|
474
|
-
default:
|
|
475
|
-
return { [k]: detail.value[k], id: detail.id };
|
|
476
|
-
}
|
|
477
|
-
}));
|
|
478
|
-
})
|
|
479
|
-
: null,
|
|
480
|
-
visibility: value ? value['visibility'] : null,
|
|
481
|
-
groupId: value ? value['groupId'] : null
|
|
482
|
-
},
|
|
483
|
-
pathToFlagsFormGroup,
|
|
484
|
-
caseField
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Count active flags in a `CaseField` instance, recursing and iterating through sub-fields of a Complex field or each
|
|
489
|
-
* field in a Collection field.
|
|
490
|
-
*
|
|
491
|
-
* @param activeCount An accumulation of the total number of active flags
|
|
492
|
-
* @param caseField A `CaseField` instance for which to count the active flags
|
|
493
|
-
* @param currentValue The current value object of a `CaseField` that is a sub-field of a non root-level Complex field.
|
|
494
|
-
* (For Complex types, only the _root-level_ `CaseField` contains a value property - all sub-fields, including any
|
|
495
|
-
* nested Complex fields, do *not* contain any values themselves.)
|
|
496
|
-
* @returns The count of active flags
|
|
497
|
-
*/
|
|
498
|
-
static countActiveFlagsInCaseField(activeCount, caseField, currentValue) {
|
|
499
|
-
const fieldType = caseField.field_type;
|
|
500
|
-
switch (fieldType.type) {
|
|
501
|
-
case 'Complex':
|
|
502
|
-
if (FieldsUtils.isFlagsCaseField(caseField)) {
|
|
503
|
-
// If the Flags CaseField has a value, it is a root-level Complex field; if it does not, it is a Flags
|
|
504
|
-
// CaseField that is a sub-field within another Complex field, so use the currentValue value (if any) instead
|
|
505
|
-
const value = caseField.value ? caseField.value : currentValue;
|
|
506
|
-
if (value && FieldsUtils.isNonEmptyObject(value) && value.details) {
|
|
507
|
-
activeCount = value.details.reduce((count, detail) => detail.value.status === CaseFlagStatus.ACTIVE ? count + 1 : count, activeCount);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
else if (fieldType.complex_fields) {
|
|
511
|
-
const value = caseField.value ? caseField.value : currentValue;
|
|
512
|
-
if (value && FieldsUtils.isNonEmptyObject(value)) {
|
|
513
|
-
activeCount = fieldType.complex_fields.reduce((activeFlagsCountOfComplexField, subField) => {
|
|
514
|
-
return this.countActiveFlagsInCaseField(activeFlagsCountOfComplexField, subField, value[subField.id]);
|
|
515
|
-
}, activeCount);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
break;
|
|
519
|
-
// For a Collection field, the values are stored directly as key-value pairs in the CaseField's value property
|
|
520
|
-
// as an array, unless the collection is a sub-field of a Complex type - sub-fields never contain values
|
|
521
|
-
case 'Collection':
|
|
522
|
-
if (FieldsUtils.isFlagsFieldType(fieldType.collection_field_type)) {
|
|
523
|
-
// If the Collection CaseField has a value (an array), it is a root-level Collection field; if it does not,
|
|
524
|
-
// it is a Collection CaseField that is a sub-field within a Complex field, so use the currentValue value
|
|
525
|
-
// (if any) instead
|
|
526
|
-
const value = caseField.value ? caseField.value : currentValue;
|
|
527
|
-
if (value) {
|
|
528
|
-
value.forEach((item) => {
|
|
529
|
-
if (item.value['details']) {
|
|
530
|
-
activeCount = item.value['details'].reduce((count, detail) => detail.value.status === CaseFlagStatus.ACTIVE ? count + 1 : count, activeCount);
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
else if (fieldType.collection_field_type.type === 'Complex' && fieldType.collection_field_type.complex_fields) {
|
|
536
|
-
if (caseField.value) {
|
|
537
|
-
// Perform a reduction over each Complex field's sub-fields (similar to what is done above for non-Flags
|
|
538
|
-
// Complex fields)
|
|
539
|
-
// (Cannot just call this function recursively for each Complex field in the collection because the CaseField
|
|
540
|
-
// for each one is not part of the collection)
|
|
541
|
-
caseField.value.forEach((item) => {
|
|
542
|
-
activeCount = fieldType.collection_field_type.complex_fields.reduce((activeFlagsCountOfComplexField, subField) => {
|
|
543
|
-
return this.countActiveFlagsInCaseField(activeFlagsCountOfComplexField, subField, item.value[subField.id]);
|
|
544
|
-
}, activeCount);
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
break;
|
|
549
|
-
default:
|
|
550
|
-
// Ignore all other field types
|
|
551
|
-
}
|
|
552
|
-
return activeCount;
|
|
553
|
-
}
|
|
554
|
-
static getValidationErrorMessageForFlagLauncherCaseField(caseField) {
|
|
555
|
-
switch (caseField.display_context_parameter) {
|
|
556
|
-
case CaseFlagDisplayContextParameter.CREATE:
|
|
557
|
-
case CaseFlagDisplayContextParameter.CREATE_2_POINT_1:
|
|
558
|
-
return 'Please select Next to complete the creation of the case flag';
|
|
559
|
-
case CaseFlagDisplayContextParameter.CREATE_EXTERNAL:
|
|
560
|
-
return 'Please select Next to complete the creation of the support request';
|
|
561
|
-
case CaseFlagDisplayContextParameter.UPDATE:
|
|
562
|
-
case CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
|
|
563
|
-
return 'Please select Next to complete the update of the selected case flag';
|
|
564
|
-
case CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
|
|
565
|
-
return 'Please select Next to complete the update of the selected support request';
|
|
566
|
-
default:
|
|
567
|
-
return '';
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
buildCanShowPredicate(eventTrigger, form) {
|
|
571
|
-
const currentState = this.getCurrentEventState(eventTrigger, form);
|
|
572
|
-
return (page) => {
|
|
573
|
-
return page.parsedShowCondition.match(currentState);
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
getCurrentEventState(eventTrigger, form) {
|
|
577
|
-
return this.mergeCaseFieldsAndFormFields(eventTrigger.case_fields, form.controls['data'].value);
|
|
578
|
-
}
|
|
579
|
-
cloneCaseField(obj) {
|
|
580
|
-
return Object.assign(new CaseField(), obj);
|
|
581
|
-
}
|
|
582
|
-
mergeCaseFieldsAndFormFields(caseFields, formFields) {
|
|
583
|
-
return this.mergeFields(caseFields, formFields, FieldsUtils.DEFAULT_MERGE_FUNCTION);
|
|
584
|
-
}
|
|
585
|
-
mergeLabelCaseFieldsAndFormFields(caseFields, formFields) {
|
|
586
|
-
return this.mergeFields(caseFields, formFields, FieldsUtils.LABEL_MERGE_FUNCTION);
|
|
587
|
-
}
|
|
588
|
-
controlIterator(aControl, formArrayFn, formGroupFn, controlFn) {
|
|
589
|
-
if (aControl instanceof FormArray) { // We're in a collection
|
|
590
|
-
formArrayFn(aControl);
|
|
591
|
-
}
|
|
592
|
-
else if (aControl instanceof FormGroup) { // We're in a complex type.
|
|
593
|
-
formGroupFn(aControl);
|
|
594
|
-
}
|
|
595
|
-
else if (aControl instanceof FormControl) { // FormControl
|
|
596
|
-
controlFn(aControl);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
mergeFields(caseFields, formFields, mergeFunction) {
|
|
600
|
-
const result = FieldsUtils.cloneObject(formFields);
|
|
601
|
-
caseFields.forEach(field => {
|
|
602
|
-
mergeFunction(field, result);
|
|
603
|
-
if (field.field_type && field.field_type.complex_fields && field.field_type.complex_fields.length > 0) {
|
|
604
|
-
result[field.id] = this.mergeFields(field.field_type.complex_fields, result[field.id], mergeFunction);
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
return result;
|
|
608
|
-
}
|
|
609
|
-
static ɵfac = function FieldsUtils_Factory(t) { return new (t || FieldsUtils)(); };
|
|
610
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FieldsUtils, factory: FieldsUtils.ɵfac });
|
|
611
|
-
}
|
|
612
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldsUtils, [{
|
|
613
|
-
type: Injectable
|
|
614
|
-
}], null, null); })();
|
|
615
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGRzLnV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9zZXJ2aWNlcy9maWVsZHMvZmllbGRzLnV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBbUIsU0FBUyxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUkxRCxPQUFPLEVBQUUsK0JBQStCLEVBQUUsY0FBYyxFQUFFLE1BQU0sMENBQTBDLENBQUM7QUFDM0csT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzFELE9BQU8sRUFBb0IsU0FBUyxFQUF5RSxNQUFNLGNBQWMsQ0FBQztBQUNsSSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQzs7QUFFbkYsV0FBVztBQUVYLE1BQU0sT0FBTyxXQUFXO0lBQ2QsTUFBTSxDQUFVLHlCQUF5QixHQUFHLFdBQVcsQ0FBQztJQUN4RCxNQUFNLENBQVUsWUFBWSxHQUFp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kgPT4ge1xuICAgICAgICAgICAgaWYgKFsnQ29sbGVjdGlvbicsICdDb21wbGV4JywgJ011bHRpU2VsZWN0TGlzdCddLmluZGV4T2YoZi5maWVsZF90eXBlLnR5cGUpID4gLTEpIHtcbiAgICAgICAgICAgICAgRmllbGRzVXRpbHMuTEFCRUxfTUVSR0VfRlVOQ1RJT04oZiwgcmVzdWx0W2ZpZWxkLmlkXSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgYnJlYWs7XG4gICAgICB9XG4gICAgICBjYXNlICdDb2xsZWN0aW9uJzoge1xuICAgICAgICBjb25zdCBlbGVtZW50cyA9IChyZXN1bHRbZmllbGQuaWRdIHx8IGZpZWxkLnZhbHVlKTtcbiAgICAgICAgaWYgKGVsZW1lbnRzKSB7XG4gICAgICAgICAgZWxlbWVudHMuZm9yRWFjaCgoZWxlbTogYW55KSA9PiB7XG4gICAgICAgICAgICAvLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6c3dpdGNoLWRlZmF1bHRcbiAgICAgICAgICAgIHN3aXRjaCAoZmllbGQuZmllbGRfdHlwZS5jb2xsZWN0aW9uX2ZpZWxkX3R5cGUudHlwZSkge1xuICAgICAgICAgICAgICBjYXNlICdNb25leUdCUCc6IHtcbiAgICAgICAgICAgICAgICBlbGVtLnZhbHVlID0gRmllbGRzVXRpbHMuZ2V0TW9uZXlHQlAoZWxlbS52YWx1ZSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgY2FzZSAnRGF0ZSc6IHtcbiAgICAgICAgICAgICAgICBlbGVtLnZhbHVlID0gRmllbGRzVXRpbHMuZ2V0RGF0ZShlbGVtLnZhbHVlKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBjYXNlICdDb21wbGV4Jzoge1xuICAgICAgICAgICAgICAgIGlmIChmaWVsZC5maWVsZF90eXBlLmNvbGxlY3Rpb25fZmllbGRfdHlwZS5jb21wbGV4X2ZpZWxkcykge1xuICAgICAgICAgICAgICAgICAgZmllbGQuZmllbGRfdHlwZS5jb2xsZWN0aW9uX2ZpZWxkX3R5cGUuY29tcGxleF9maWVsZHMuZm9yRWFjaCgoZjogQ2FzZUZpZWxkKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChbJ0NvbGxlY3Rpb24nLCAnQ29tcGxleCcsICdNdWx0aVNlbGVjdExpc3QnXS5pbmRleE9mKGYuZmllbGRfdHlwZS50eXBlKSA+IC0xKSB7XG4gICAgICAgICAgICAgICAgICAgICAgRmllbGRzVXRpbHMuTEFCRUxfTUVSR0VfRlVOQ1RJT04oZiwgZWxlbS52YWx1ZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cbiAgfTtcblxuICAvKipcbiAgICogRm9ybWF0cyBhIGBNb25leUdCUGAgdmFsdWUgdG8gaW5jbHVkZSBjdXJyZW5jeSB1bml0cy5cbiAgICogQHBhcmFtIGZpZWxkVmFsdWUgVGhlIEN1cnJlbmN5UGlwZSBleHBlY3RzIGFuIGBhbnlgIHBhcmFtZXRlciBzbyB0aGlzIG11c3QgYWxzbyBiZSBgYW55YCxcbiAgICogYnV0IGl0IHNob3VsZCBiZSBcIm51bWJlci1saWtlXCIgKGUuZy4sICcxMjM0JylcbiAgICogQHJldHVybnMgQSBmb3JtYXR0ZWQgc3RyaW5nIChlLmcuLCDCozEyLjM0KVxuICAgKi9cbiAgcHJpdmF0ZSBzdGF0aWMgZ2V0TW9uZXlHQlAoZmllbGRWYWx1ZTogYW55KTogc3RyaW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ZJRUxEX1RZUEVfRFlOQU1JQ19MSVNUX1RZUEUuaW5kZXhPZihmaWVsZC5maWVsZF90eXBlLnR5cGUpICE9PSAtMTtcblxuICAgICAgICAgIGlmIChpc0R5bmFtaWNGaWVsZCkge1xuICAgICAgICAgICAgY29uc3QgZHluYW1pY0xpc3RWYWx1ZSA9IHRoaXMuZ2V0RHluYW1pY0xpc3RWYWx1ZShyb290Q2FzZUZpZWxkLnZhbHVlLCBmaWVsZC5pZCk7XG4gICAgICAgICAgICBpZiAoZHluYW1pY0xpc3RWYWx1ZSkge1xuICAgICAgICAgICAgICBjb25zdCBsaXN0X2l0ZW1zID0gZHluYW1pY0xpc3RWYWx1ZVswXS5saXN0X2l0ZW1zO1xuICAgICAgICAgICAgICBjb25zdCBjb21wbGV4VmFsdWUgPSBkeW5hbWljTGlzdFZhbHVlLm1hcChkYXRhID0+IGRhdGEudmFsdWUpO1xuICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHtcbiAgICAgICAgICAgICAgICBsaXN0X2l0ZW1zLFxuICAgICAgICAgICAgICAgIHZhbHVlOiBjb21wbGV4VmFsdWUubGVuZ3RoID4gMCA/IGNvbXBsZXhWYWx1ZSA6IHVuZGVmaW5lZFxuICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICBmaWVsZC52YWx1ZSA9IHtcbiAgICAgICAgICAgICAgICAuLi52YWx1ZVxuICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICBmaWVsZC5mb3JtYXR0ZWRfdmFsdWUgPSB7XG4gICAgICAgICAgICAgICAgLi4uZmllbGQuZm9ybWF0dGVkX3ZhbHVlLFxuICAgICAgICAgICAgICAgIC4uLnZhbHVlXG4gICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuc2V0RHluYW1pY0xpc3REZWZpbml0aW9uKGZpZWxkLCBmaWVsZC5maWVsZF90eXBlLCByb290Q2FzZUZpZWxk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YW4gZXhpc3RpbmcgZmxhZ1xuICAgICAgICAgICAgICBzd2l0Y2ggKGspIHtcbiAgICAgICAgICAgICAgICAvLyBUaGVzZSB0d28gZmllbGRzIGFyZSBkYXRlLXRpbWUgZmllbGRzXG4gICAgICAgICAgICAgICAgY2FzZSAnZGF0ZVRpbWVNb2RpZmllZCc6XG4gICAgICAgICAgICAgICAgY2FzZSAnZGF0ZVRpbWVDcmVhdGVkJzpcbiAgICAgICAgICAgICAgICAgIHJldHVybiB7IFtrXTogZGV0YWlsLnZhbHVlW2tdID8gbmV3IERhdGUoZGV0YWlsLnZhbHVlW2tdKSA6IG51bGwsIGlkOiBkZXRhaWwuaWQgfTtcbiAgICAgICAgICAgICAgICAvLyBUaGlzIGZpZWxkIGlzIGEgXCJ5ZXMvbm9cIiBmaWVsZFxuICAgICAgICAgICAgICAgIGNhc2UgJ2hlYXJpbmdSZWxldmFudCc6XG4gICAgICAgICAgICAgICAgICByZXR1cm4gZGV0YWlsLnZhbHVlW2tdLnRvVXBwZXJDYXNlKCkgPT09ICdZRVMnID8geyBba106IHRydWUsIGlkOiBkZXRhaWwuaWQgfSA6IHsgW2tdOiBmYWxzZSwgaWQ6IGRldGFpbC5pZCB9O1xuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICByZXR1cm4geyBba106IGRldGFpbC52YWx1ZVtrXSwgaWQ6IGRldGFpbC5pZCB9O1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KSk7XG4gICAgICAgICAgfSkgYXMgRmxhZ0RldGFpbFtdXG4gICAgICAgICAgOiBudWxsLFxuICAgICAgICB2aXNpYmlsaXR5OiB2YWx1ZSA/IHZhbHVlWyd2aXNpYmlsaXR5J10gOiBudWxsLFxuICAgICAgICBncm91cElkOiB2YWx1ZSA/IHZhbHVlWydncm91cElkJ10gOiBudWxsXG4gICAgICB9LFxuICAgICAgcGF0aFRvRmxhZ3NGb3JtR3JvdXAsXG4gICAgICBjYXNlRm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