@hmcts/ccd-case-ui-toolkit 6.13.9 → 6.13.10-angular11-welsh-release-part1-8
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +15073 -11129
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/components/banners/alert/alert.component.js +7 -5
- package/esm2015/lib/components/banners/alert/alert.module.js +12 -4
- package/esm2015/lib/components/footer/footer.component.js +55 -30
- package/esm2015/lib/components/footer/footers.module.js +12 -4
- package/esm2015/lib/components/form/date-input/date-input.component.js +56 -37
- package/esm2015/lib/components/form/form.module.js +8 -4
- package/esm2015/lib/components/header/header-bar/header-bar.component.js +32 -19
- package/esm2015/lib/components/header/headers.module.js +6 -4
- package/esm2015/lib/components/header/navigation/navigation-item.component.js +9 -7
- package/esm2015/lib/components/header/phase/phase.component.js +20 -9
- package/esm2015/lib/components/tabs/tabs.component.js +8 -5
- package/esm2015/lib/components/tabs/tabs.module.js +6 -2
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.service.js +19 -1
- package/esm2015/lib/shared/components/activity/activity-banner/activity-banner.component.js +12 -9
- package/esm2015/lib/shared/components/activity/activity-icon/activity-icon.component.js +11 -8
- package/esm2015/lib/shared/components/activity/activity.component.js +15 -10
- package/esm2015/lib/shared/components/activity/activity.module.js +6 -2
- package/esm2015/lib/shared/components/case-editor/case-create/case-create.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +29 -25
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +81 -48
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +185 -131
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +30 -26
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.js +51 -26
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +51 -28
- package/esm2015/lib/shared/components/case-editor/case-progress/case-progress.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/case-edit-wizard.guard.js +3 -2
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +7 -1
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +2 -2
- package/esm2015/lib/shared/components/case-history/case-history.component.js +89 -63
- package/esm2015/lib/shared/components/case-history/case-history.module.js +18 -14
- package/esm2015/lib/shared/components/case-list/case-list.component.js +56 -49
- package/esm2015/lib/shared/components/case-list/case-list.module.js +8 -4
- package/esm2015/lib/shared/components/case-list-filters/case-list-filters.module.js +11 -7
- package/esm2015/lib/shared/components/case-timeline/case-timeline.component.js +9 -6
- package/esm2015/lib/shared/components/case-timeline/case-timeline.module.js +12 -8
- package/esm2015/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +106 -61
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +89 -69
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js +45 -23
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +12 -4
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +87 -59
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js +32 -20
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js +107 -79
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +79 -49
- package/esm2015/lib/shared/components/case-viewer/case-view/case-view.component.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-viewer.module.js +37 -27
- package/esm2015/lib/shared/components/case-viewer/printer/case-printer.component.js +36 -22
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.component.js +63 -40
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.module.js +6 -2
- package/esm2015/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/dialogs/dialogs.module.js +6 -2
- package/esm2015/lib/shared/components/dialogs/document-dialog/document-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/error/callback-errors.component.js +34 -23
- package/esm2015/lib/shared/components/error/errors.module.js +6 -2
- package/esm2015/lib/shared/components/error-message/error-message.component.js +14 -11
- package/esm2015/lib/shared/components/error-message/error-message.module.js +8 -4
- package/esm2015/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.js +39 -20
- package/esm2015/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.js +34 -18
- package/esm2015/lib/shared/components/event-start/components/task-assigned/task-assigned.component.js +34 -19
- package/esm2015/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.js +50 -25
- package/esm2015/lib/shared/components/event-start/components/task-conflict/task-conflict.component.js +39 -20
- package/esm2015/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.js +34 -18
- package/esm2015/lib/shared/components/event-start/event-start.module.js +8 -4
- package/esm2015/lib/shared/components/event-trigger/event-trigger.component.js +27 -17
- package/esm2015/lib/shared/components/event-trigger/event-trigger.module.js +6 -2
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +7 -5
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.module.js +6 -2
- package/esm2015/lib/shared/components/pagination/pagination.component.js +84 -67
- package/esm2015/lib/shared/components/pagination/pagination.module.js +8 -4
- package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +50 -31
- package/esm2015/lib/shared/components/palette/base-field/field-read-label.component.js +10 -8
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +5 -1
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +2 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +2 -2
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.js +31 -25
- package/esm2015/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.js +6 -1
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +18 -12
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +45 -32
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +50 -46
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-raw.component.js +7 -6
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-table.component.js +22 -20
- package/esm2015/lib/shared/components/palette/complex/write-complex-field.component.js +5 -4
- package/esm2015/lib/shared/components/palette/date/write-date-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker.component.js +29 -17
- package/esm2015/lib/shared/components/palette/document/write-document-field.component.js +31 -25
- package/esm2015/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +32 -20
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +26 -17
- package/esm2015/lib/shared/components/palette/email/write-email-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.js +19 -14
- package/esm2015/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +20 -15
- package/esm2015/lib/shared/components/palette/history/event-log/event-log-details.component.js +87 -65
- package/esm2015/lib/shared/components/palette/history/event-log/event-log-table.component.js +60 -46
- package/esm2015/lib/shared/components/palette/index.js +3 -6
- package/esm2015/lib/shared/components/palette/label/label-field.component.js +24 -5
- package/esm2015/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.js +126 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.js +220 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/index.js +8 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +572 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +219 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +285 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +79 -0
- package/esm2015/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.js +214 -0
- package/esm2015/lib/shared/components/palette/linked-cases/domain/index.js +3 -0
- package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.js +2 -0
- package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +21 -0
- package/esm2015/lib/shared/components/palette/linked-cases/enums/index.js +2 -0
- package/esm2015/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.js +35 -0
- package/esm2015/lib/shared/components/palette/linked-cases/index.js +6 -0
- package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +183 -0
- package/esm2015/lib/shared/components/palette/linked-cases/services/index.js +2 -0
- package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +134 -0
- package/esm2015/lib/shared/components/palette/linked-cases/utils/validators.utils.js +27 -0
- package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +272 -0
- package/esm2015/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.js +15 -11
- package/esm2015/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +19 -14
- package/esm2015/lib/shared/components/palette/number/write-number-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/order-summary/read-order-summary-field.component.js +43 -25
- package/esm2015/lib/shared/components/palette/order-summary/read-order-summary-row.component.js +7 -6
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field-raw.component.js +41 -29
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field-table.component.js +48 -35
- package/esm2015/lib/shared/components/palette/organisation/write-organisation-field.component.js +88 -50
- package/esm2015/lib/shared/components/palette/palette.module.js +104 -56
- package/esm2015/lib/shared/components/palette/palette.service.js +19 -7
- package/esm2015/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/text/read-text-field.component.js +7 -5
- package/esm2015/lib/shared/components/palette/text/write-text-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/text-area/read-text-area-field.component.js +7 -5
- package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/yes-no/read-yes-no-field.component.js +7 -5
- package/esm2015/lib/shared/components/palette/yes-no/write-yes-no-field.component.js +20 -15
- package/esm2015/lib/shared/components/search-filters/search-filters.component.js +60 -35
- package/esm2015/lib/shared/components/search-filters/search-filters.module.js +14 -10
- package/esm2015/lib/shared/components/search-result/search-result.component.js +132 -95
- package/esm2015/lib/shared/components/search-result/search-result.module.js +16 -13
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +90 -52
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.module.js +13 -9
- package/esm2015/lib/shared/domain/alert/alert-status-params.model.js +2 -0
- package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +12 -0
- package/esm2015/lib/shared/pipes/index.js +3 -1
- package/esm2015/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.js +28 -0
- package/esm2015/lib/shared/pipes/link-cases-from-reason-code/index.js +2 -0
- package/esm2015/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.js +28 -0
- package/esm2015/lib/shared/pipes/link-cases-reason-code/index.js +2 -0
- package/esm2015/lib/shared/pipes/pipes.module.js +12 -4
- package/esm2015/lib/shared/services/alert/alert.service.js +28 -8
- package/esm2015/lib/shared/services/common-data-service/common-data-service.js +1 -1
- package/esm2015/lib/shared/services/fields/fields.utils.js +7 -1
- package/esm2015/lib/shared/services/form/form-value.service.js +33 -2
- package/esm2015/lib/shared/services/request/request.options.builder.js +7 -1
- package/esm2015/lib/shared/services/window/window.service.js +1 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +10753 -7152
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts.map +1 -1
- package/lib/components/banners/alert/alert.module.d.ts +2 -1
- package/lib/components/banners/alert/alert.module.d.ts.map +1 -1
- package/lib/components/footer/footers.module.d.ts +2 -1
- package/lib/components/footer/footers.module.d.ts.map +1 -1
- package/lib/components/form/form.module.d.ts +2 -1
- package/lib/components/form/form.module.d.ts.map +1 -1
- package/lib/components/header/headers.module.d.ts +2 -1
- package/lib/components/header/headers.module.d.ts.map +1 -1
- package/lib/components/tabs/tabs.component.d.ts.map +1 -1
- package/lib/components/tabs/tabs.module.d.ts +2 -1
- package/lib/components/tabs/tabs.module.d.ts.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts +13 -0
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts.map +1 -1
- package/lib/shared/components/activity/activity.module.d.ts +2 -1
- package/lib/shared/components/activity/activity.module.d.ts.map +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 +1 -0
- 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-editor.module.d.ts +3 -2
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/case-edit-wizard.guard.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +2 -0
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-history/case-history.module.d.ts +2 -1
- package/lib/shared/components/case-history/case-history.module.d.ts.map +1 -1
- package/lib/shared/components/case-list/case-list.module.d.ts +2 -1
- package/lib/shared/components/case-list/case-list.module.d.ts.map +1 -1
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts +2 -1
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts.map +1 -1
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts +2 -1
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts +6 -4
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts.map +1 -1
- package/lib/shared/components/create-case-filters/create-case-filters.module.d.ts +2 -1
- package/lib/shared/components/create-case-filters/create-case-filters.module.d.ts.map +1 -1
- package/lib/shared/components/dialogs/dialogs.module.d.ts +2 -1
- package/lib/shared/components/dialogs/dialogs.module.d.ts.map +1 -1
- package/lib/shared/components/error/errors.module.d.ts +2 -1
- package/lib/shared/components/error/errors.module.d.ts.map +1 -1
- package/lib/shared/components/error-message/error-message.module.d.ts +2 -1
- package/lib/shared/components/error-message/error-message.module.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-start.module.d.ts +2 -1
- package/lib/shared/components/event-start/event-start.module.d.ts.map +1 -1
- package/lib/shared/components/event-trigger/event-trigger.module.d.ts +2 -1
- package/lib/shared/components/event-trigger/event-trigger.module.d.ts.map +1 -1
- package/lib/shared/components/loading-spinner/loading-spinner.module.d.ts +2 -1
- package/lib/shared/components/loading-spinner/loading-spinner.module.d.ts.map +1 -1
- package/lib/shared/components/pagination/pagination.module.d.ts +2 -1
- package/lib/shared/components/pagination/pagination.module.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-write.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +2 -5
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts +2 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts +23 -0
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts +18 -0
- package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/index.d.ts +8 -0
- package/lib/shared/components/palette/linked-cases/components/index.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +49 -0
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +38 -0
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts +47 -0
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts +18 -0
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +38 -0
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/domain/index.d.ts +3 -0
- package/lib/shared/components/palette/linked-cases/domain/index.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.d.ts +12 -0
- package/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts +68 -0
- package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/enums/index.d.ts +2 -0
- package/lib/shared/components/palette/linked-cases/enums/index.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.d.ts +31 -0
- package/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/index.d.ts +6 -0
- package/lib/shared/components/palette/linked-cases/index.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts +38 -0
- package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/services/index.d.ts +2 -0
- package/lib/shared/components/palette/linked-cases/services/index.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts +44 -0
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/utils/validators.utils.d.ts +10 -0
- package/lib/shared/components/palette/linked-cases/utils/validators.utils.d.ts.map +1 -0
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +43 -0
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/palette.module.d.ts +68 -58
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/components/search-filters/search-filters.module.d.ts +2 -1
- package/lib/shared/components/search-filters/search-filters.module.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.module.d.ts +3 -2
- package/lib/shared/components/search-result/search-result.module.d.ts.map +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts +2 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts.map +1 -1
- package/lib/shared/domain/alert/alert-status-params.model.d.ts +6 -0
- package/lib/shared/domain/alert/alert-status-params.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/display-context-enum.model.d.ts +10 -0
- package/lib/shared/domain/definition/display-context-enum.model.d.ts.map +1 -0
- package/lib/shared/pipes/index.d.ts +2 -0
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.d.ts +12 -0
- package/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/link-cases-from-reason-code/index.d.ts +2 -0
- package/lib/shared/pipes/link-cases-from-reason-code/index.d.ts.map +1 -0
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts +12 -0
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/link-cases-reason-code/index.d.ts +2 -0
- package/lib/shared/pipes/link-cases-reason-code/index.d.ts.map +1 -0
- package/lib/shared/pipes/pipes.module.d.ts +4 -2
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
- package/lib/shared/services/alert/alert.service.d.ts +8 -4
- package/lib/shared/services/alert/alert.service.d.ts.map +1 -1
- package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +1 -0
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/form-value.service.d.ts +14 -0
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
- package/lib/shared/services/request/request.options.builder.d.ts.map +1 -1
- package/lib/shared/services/window/window.service.d.ts.map +1 -1
- package/package.json +1 -1
package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { AbstractAppConfig } from '../../../../app.config';
|
|
4
|
+
import { CaseEditDataService } from '../../../commons/case-edit-data';
|
|
5
|
+
import { CommonDataService } from '../../../services/common-data-service/common-data-service';
|
|
6
|
+
import { CasesService } from '../../case-editor/services/cases.service';
|
|
7
|
+
import { AbstractFieldWriteComponent } from '../base-field';
|
|
8
|
+
import { LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesPages } from './enums';
|
|
9
|
+
import { LinkedCasesService } from './services';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../../../../app.config";
|
|
12
|
+
import * as i2 from "../../../services/common-data-service/common-data-service";
|
|
13
|
+
import * as i3 from "../../case-editor/services/cases.service";
|
|
14
|
+
import * as i4 from "./services";
|
|
15
|
+
import * as i5 from "../../../commons/case-edit-data";
|
|
16
|
+
function WriteLinkedCasesFieldComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
19
|
+
i0.ɵɵelementStart(1, "ul", 8);
|
|
20
|
+
i0.ɵɵelementStart(2, "li");
|
|
21
|
+
i0.ɵɵelementStart(3, "a", 9);
|
|
22
|
+
i0.ɵɵlistener("click", function WriteLinkedCasesFieldComponent_div_0_div_3_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r9); const errorMessage_r7 = ctx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.navigateToErrorElement(errorMessage_r7.fieldId); });
|
|
23
|
+
i0.ɵɵtext(4);
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const errorMessage_r7 = ctx.$implicit;
|
|
30
|
+
i0.ɵɵadvance(4);
|
|
31
|
+
i0.ɵɵtextInterpolate(errorMessage_r7.description);
|
|
32
|
+
} }
|
|
33
|
+
function WriteLinkedCasesFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
35
|
+
i0.ɵɵelementStart(1, "h2", 5);
|
|
36
|
+
i0.ɵɵtext(2, " There is a problem ");
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
i0.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_div_0_div_3_Template, 5, 1, "div", 6);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} if (rf & 2) {
|
|
41
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
42
|
+
i0.ɵɵadvance(3);
|
|
43
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
44
|
+
} }
|
|
45
|
+
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
47
|
+
i0.ɵɵelementContainerStart(0);
|
|
48
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 10);
|
|
49
|
+
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_3_Template_ccd_linked_cases_before_you_start_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onLinkedCasesStateEmitted($event); });
|
|
50
|
+
i0.ɵɵelementEnd();
|
|
51
|
+
i0.ɵɵelementContainerEnd();
|
|
52
|
+
} }
|
|
53
|
+
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
55
|
+
i0.ɵɵelementContainerStart(0);
|
|
56
|
+
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 10);
|
|
57
|
+
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_4_Template_ccd_no_linked_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onLinkedCasesStateEmitted($event); });
|
|
58
|
+
i0.ɵɵelementEnd();
|
|
59
|
+
i0.ɵɵelementContainerEnd();
|
|
60
|
+
} }
|
|
61
|
+
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
63
|
+
i0.ɵɵelementContainerStart(0);
|
|
64
|
+
i0.ɵɵelementStart(1, "ccd-link-cases", 10);
|
|
65
|
+
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_5_Template_ccd_link_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onLinkedCasesStateEmitted($event); });
|
|
66
|
+
i0.ɵɵelementEnd();
|
|
67
|
+
i0.ɵɵelementContainerEnd();
|
|
68
|
+
} }
|
|
69
|
+
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
71
|
+
i0.ɵɵelementContainerStart(0);
|
|
72
|
+
i0.ɵɵelementStart(1, "ccd-unlink-cases", 10);
|
|
73
|
+
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_6_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.onLinkedCasesStateEmitted($event); });
|
|
74
|
+
i0.ɵɵelementEnd();
|
|
75
|
+
i0.ɵɵelementContainerEnd();
|
|
76
|
+
} }
|
|
77
|
+
function WriteLinkedCasesFieldComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
79
|
+
i0.ɵɵelementContainerStart(0);
|
|
80
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 10);
|
|
81
|
+
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_7_Template_ccd_linked_cases_check_your_answers_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.onLinkedCasesStateEmitted($event); });
|
|
82
|
+
i0.ɵɵelementEnd();
|
|
83
|
+
i0.ɵɵelementContainerEnd();
|
|
84
|
+
} }
|
|
85
|
+
export class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
86
|
+
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
87
|
+
super();
|
|
88
|
+
this.appConfig = appConfig;
|
|
89
|
+
this.commonDataService = commonDataService;
|
|
90
|
+
this.casesService = casesService;
|
|
91
|
+
this.linkedCasesService = linkedCasesService;
|
|
92
|
+
this.caseEditDataService = caseEditDataService;
|
|
93
|
+
this.linkedCasesPages = LinkedCasesPages;
|
|
94
|
+
this.linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
95
|
+
this.linkedCases = [];
|
|
96
|
+
this.errorMessages = [];
|
|
97
|
+
}
|
|
98
|
+
ngOnInit() {
|
|
99
|
+
// Clear validation errors
|
|
100
|
+
this.caseEditDataService.clearFormValidationErrors();
|
|
101
|
+
// Get linked case reasons from ref data
|
|
102
|
+
this.getLinkedCaseReasons();
|
|
103
|
+
this.linkedCasesService.editMode = false;
|
|
104
|
+
this.caseEditDataService.caseDetails$.subscribe({
|
|
105
|
+
next: caseDetails => this.initialiseCaseDetails(caseDetails)
|
|
106
|
+
});
|
|
107
|
+
this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
108
|
+
next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
109
|
+
});
|
|
110
|
+
this.caseEditDataService.caseEditForm$.subscribe({
|
|
111
|
+
next: editForm => this.caseEditForm = editForm
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
initialiseCaseDetails(caseDetails) {
|
|
115
|
+
if (caseDetails) {
|
|
116
|
+
this.caseDetails = caseDetails;
|
|
117
|
+
this.linkedCasesService.caseDetails = caseDetails;
|
|
118
|
+
this.linkedCasesService.caseId = caseDetails.case_id;
|
|
119
|
+
this.linkedCasesService.caseName = this.linkedCasesService.getCaseName(caseDetails);
|
|
120
|
+
this.getLinkedCases();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
ngAfterViewInit() {
|
|
124
|
+
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
125
|
+
if (labelField && labelField.length) {
|
|
126
|
+
labelField[0].replaceWith('');
|
|
127
|
+
}
|
|
128
|
+
labelField = document.getElementsByClassName('heading-h2');
|
|
129
|
+
if (labelField && labelField.length) {
|
|
130
|
+
labelField[0].replaceWith('');
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
onLinkedCasesStateEmitted(linkedCasesState) {
|
|
134
|
+
this.errorMessages = [];
|
|
135
|
+
this.caseEditDataService.clearFormValidationErrors();
|
|
136
|
+
if (linkedCasesState.navigateToNextPage) {
|
|
137
|
+
this.linkedCasesPage = this.getNextPage(linkedCasesState);
|
|
138
|
+
this.setContinueButtonValidationErrorMessage();
|
|
139
|
+
this.proceedToNextPage();
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
if (linkedCasesState.errorMessages && linkedCasesState.errorMessages.length) {
|
|
143
|
+
linkedCasesState.errorMessages.forEach((errorMessage, index) => {
|
|
144
|
+
this.caseEditDataService.addFormValidationError({ id: errorMessage.fieldId, message: errorMessage.description });
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
getLinkedCaseReasons() {
|
|
150
|
+
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
151
|
+
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
152
|
+
next: reasons => {
|
|
153
|
+
// Sort in ascending order
|
|
154
|
+
const linkCaseReasons = reasons.list_of_values.sort((a, b) => (a.value_en > b.value_en) ? 1 : -1);
|
|
155
|
+
// Move Other option to the end of the list
|
|
156
|
+
this.linkedCasesService.linkCaseReasons = linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.filter(reason => reason.value_en !== 'Other');
|
|
157
|
+
this.linkedCasesService.linkCaseReasons.push(linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.find(reason => reason.value_en === 'Other'));
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
setContinueButtonValidationErrorMessage() {
|
|
162
|
+
const errorMessage = this.linkedCasesService.isLinkedCasesEventTrigger
|
|
163
|
+
? LinkedCasesErrorMessages.LinkCasesNavigationError
|
|
164
|
+
: LinkedCasesErrorMessages.UnlinkCasesNavigationError;
|
|
165
|
+
const buttonId = this.linkedCasesService.linkedCases.length === 0
|
|
166
|
+
? 'back-button'
|
|
167
|
+
: 'next-button';
|
|
168
|
+
this.caseEditDataService.setCaseLinkError({
|
|
169
|
+
componentId: buttonId,
|
|
170
|
+
errorMessage
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
proceedToNextPage() {
|
|
174
|
+
if (this.isAtFinalPage()) {
|
|
175
|
+
// Continue button event must be allowed in final page
|
|
176
|
+
this.caseEditDataService.clearCaseLinkError();
|
|
177
|
+
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
178
|
+
this.formGroup.updateValueAndValidity();
|
|
179
|
+
// update form value
|
|
180
|
+
this.submitLinkedCases();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
submitLinkedCases() {
|
|
184
|
+
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
185
|
+
const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
|
|
186
|
+
const caseFieldValue = this.linkedCasesService.caseFieldValue;
|
|
187
|
+
this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
|
|
188
|
+
}
|
|
189
|
+
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
190
|
+
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
191
|
+
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
192
|
+
}
|
|
193
|
+
isAtFinalPage() {
|
|
194
|
+
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
195
|
+
}
|
|
196
|
+
getNextPage(linkedCasesState) {
|
|
197
|
+
if ((this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START) ||
|
|
198
|
+
(linkedCasesState.currentLinkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS && linkedCasesState.navigateToPreviousPage)) {
|
|
199
|
+
return this.linkedCasesService.isLinkedCasesEventTrigger
|
|
200
|
+
? LinkedCasesPages.LINK_CASE
|
|
201
|
+
: LinkedCasesPages.UNLINK_CASE;
|
|
202
|
+
}
|
|
203
|
+
return LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
204
|
+
}
|
|
205
|
+
getLinkedCases() {
|
|
206
|
+
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
207
|
+
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
208
|
+
const linkField = tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
209
|
+
return linkField;
|
|
210
|
+
});
|
|
211
|
+
if (caseViewFiltered) {
|
|
212
|
+
const caseLinkFieldValue = caseViewFiltered.map(filtered => { var _a; return ((_a = filtered.fields) === null || _a === void 0 ? void 0 : _a.length) > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value; });
|
|
213
|
+
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
214
|
+
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
215
|
+
}
|
|
216
|
+
// Initialise the first page to display
|
|
217
|
+
this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
218
|
+
(this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
|
|
219
|
+
&& !this.linkedCasesService.serverLinkedApiError)
|
|
220
|
+
? LinkedCasesPages.BEFORE_YOU_START
|
|
221
|
+
: LinkedCasesPages.NO_LINKED_CASES;
|
|
222
|
+
// Initialise the error to be displayed when clicked on Continue button
|
|
223
|
+
this.setContinueButtonValidationErrorMessage();
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
navigateToErrorElement(elementId) {
|
|
227
|
+
if (elementId) {
|
|
228
|
+
const htmlElement = document.getElementById(elementId);
|
|
229
|
+
if (htmlElement) {
|
|
230
|
+
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
231
|
+
htmlElement.focus();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
WriteLinkedCasesFieldComponent.ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0.ɵɵdirectiveInject(i1.AbstractAppConfig), i0.ɵɵdirectiveInject(i2.CommonDataService), i0.ɵɵdirectiveInject(i3.CasesService), i0.ɵɵdirectiveInject(i4.LinkedCasesService), i0.ɵɵdirectiveInject(i5.CaseEditDataService)); };
|
|
237
|
+
WriteLinkedCasesFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 8, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
i0.ɵɵtemplate(0, WriteLinkedCasesFieldComponent_div_0_Template, 4, 1, "div", 0);
|
|
239
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
240
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
241
|
+
i0.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container", 3);
|
|
242
|
+
i0.ɵɵtemplate(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container", 3);
|
|
243
|
+
i0.ɵɵtemplate(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 3);
|
|
244
|
+
i0.ɵɵtemplate(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 3);
|
|
245
|
+
i0.ɵɵtemplate(7, WriteLinkedCasesFieldComponent_ng_container_7_Template, 2, 0, "ng-container", 3);
|
|
246
|
+
i0.ɵɵelementEnd();
|
|
247
|
+
i0.ɵɵelementEnd();
|
|
248
|
+
} if (rf & 2) {
|
|
249
|
+
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
250
|
+
i0.ɵɵadvance(1);
|
|
251
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
252
|
+
i0.ɵɵadvance(1);
|
|
253
|
+
i0.ɵɵproperty("ngSwitch", ctx.linkedCasesPage);
|
|
254
|
+
i0.ɵɵadvance(1);
|
|
255
|
+
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.BEFORE_YOU_START);
|
|
256
|
+
i0.ɵɵadvance(1);
|
|
257
|
+
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.NO_LINKED_CASES);
|
|
258
|
+
i0.ɵɵadvance(1);
|
|
259
|
+
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.LINK_CASE);
|
|
260
|
+
i0.ɵɵadvance(1);
|
|
261
|
+
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.UNLINK_CASE);
|
|
262
|
+
i0.ɵɵadvance(1);
|
|
263
|
+
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.CHECK_YOUR_ANSWERS);
|
|
264
|
+
} }, encapsulation: 2 });
|
|
265
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesFieldComponent, [{
|
|
266
|
+
type: Component,
|
|
267
|
+
args: [{
|
|
268
|
+
selector: 'ccd-write-linked-cases-field',
|
|
269
|
+
templateUrl: './write-linked-cases-field.component.html'
|
|
270
|
+
}]
|
|
271
|
+
}], function () { return [{ type: i1.AbstractAppConfig }, { type: i2.CommonDataService }, { type: i3.CasesService }, { type: i4.LinkedCasesService }, { type: i5.CaseEditDataService }]; }, null); })();
|
|
272
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtbGlua2VkLWNhc2VzLWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL2xpbmtlZC1jYXNlcy93cml0ZS1saW5rZWQtY2FzZXMtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL3BhbGV0dGUvbGlua2VkLWNhc2VzL3dyaXRlLWxpbmtlZC1jYXNlcy1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNqRSxPQUFPLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzNELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBR3RFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDJEQUEyRCx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IRUNLX1lPVVJfQU5TV0VSU1wiPlxuICAgICAgPGNjZC1saW5rZWQtY2FzZXMtY2hlY2steW91ci1hbnN3ZXJzXG4gICAgICAgIChsaW5rZWRDYXNlc1N0YXRlRW1pdHRlcik9XCJvbkxpbmtlZENhc2VzU3RhdGVFbWl0dGVkKCRldmVudClcIj48L2NjZC1saW5rZWQtY2FzZXMtY2hlY2steW91ci1hbnN3ZXJzPlxuICAgIDwvbmctY29udGFpbmVyPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -6,36 +6,40 @@ import * as i1 from "@angular/common";
|
|
|
6
6
|
import * as i2 from "./money-gbp-input.component";
|
|
7
7
|
import * as i3 from "@angular/forms";
|
|
8
8
|
import * as i4 from "../utils/is-mandatory.pipe";
|
|
9
|
-
import * as i5 from "
|
|
10
|
-
import * as i6 from "../utils/
|
|
9
|
+
import * as i5 from "rpx-xui-translation";
|
|
10
|
+
import * as i6 from "../utils/field-label.pipe";
|
|
11
|
+
import * as i7 from "../utils/first-error.pipe";
|
|
11
12
|
function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
12
13
|
i0.ɵɵelementStart(0, "span", 8);
|
|
13
14
|
i0.ɵɵtext(1);
|
|
14
|
-
i0.ɵɵpipe(2, "
|
|
15
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
16
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
15
17
|
i0.ɵɵelementEnd();
|
|
16
18
|
} if (rf & 2) {
|
|
17
19
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18
20
|
i0.ɵɵadvance(1);
|
|
19
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
20
22
|
} }
|
|
21
23
|
function WriteMoneyGbpFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
22
24
|
i0.ɵɵelementStart(0, "span", 9);
|
|
23
25
|
i0.ɵɵtext(1);
|
|
26
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24
27
|
i0.ɵɵelementEnd();
|
|
25
28
|
} if (rf & 2) {
|
|
26
29
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27
30
|
i0.ɵɵadvance(1);
|
|
28
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
31
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
29
32
|
} }
|
|
30
33
|
function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
31
34
|
i0.ɵɵelementStart(0, "span", 10);
|
|
32
35
|
i0.ɵɵtext(1);
|
|
33
|
-
i0.ɵɵpipe(2, "
|
|
36
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
37
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
34
38
|
i0.ɵɵelementEnd();
|
|
35
39
|
} if (rf & 2) {
|
|
36
40
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
37
41
|
i0.ɵɵadvance(1);
|
|
38
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
42
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
|
|
39
43
|
} }
|
|
40
44
|
const _c0 = function (a0) { return { "form-group-error": a0 }; };
|
|
41
45
|
export class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
@@ -47,10 +51,10 @@ WriteMoneyGbpFieldComponent.ɵfac = function WriteMoneyGbpFieldComponent_Factory
|
|
|
47
51
|
WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbpFieldComponent, selectors: [["ccd-write-money-gbp-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 13, consts: [[1, "form-group", "bottom-30", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-money"], [1, "form-currency"], [3, "id", "name", "mandatory", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteMoneyGbpFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
48
52
|
i0.ɵɵelementStart(0, "div", 0);
|
|
49
53
|
i0.ɵɵelementStart(1, "label", 1);
|
|
50
|
-
i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template,
|
|
54
|
+
i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
51
55
|
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template,
|
|
53
|
-
i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template,
|
|
56
|
+
i0.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
57
|
+
i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 4, 6, "span", 4);
|
|
54
58
|
i0.ɵɵelementStart(5, "div", 5);
|
|
55
59
|
i0.ɵɵelementStart(6, "span", 6);
|
|
56
60
|
i0.ɵɵtext(7, "\u00A3");
|
|
@@ -71,7 +75,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
71
75
|
i0.ɵɵproperty("ngIf", ctx.moneyGbpControl.errors && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched));
|
|
72
76
|
i0.ɵɵadvance(4);
|
|
73
77
|
i0.ɵɵproperty("id", ctx.id())("name", ctx.id())("mandatory", i0.ɵɵpipeBind1(9, 9, ctx.caseField))("formControl", ctx.moneyGbpControl);
|
|
74
|
-
} }, directives: [i1.NgClass, i1.NgIf, i2.MoneyGbpInputComponent, i3.NgControlStatus, i3.FormControlDirective], pipes: [i4.IsMandatoryPipe, i5.
|
|
78
|
+
} }, directives: [i1.NgClass, i1.NgIf, i2.MoneyGbpInputComponent, i3.NgControlStatus, i3.FormControlDirective], pipes: [i4.IsMandatoryPipe, i5.RpxTranslatePipe, i6.FieldLabelPipe, i7.FirstErrorPipe], encapsulation: 2 });
|
|
75
79
|
const ɵWriteMoneyGbpFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteMoneyGbpFieldComponent);
|
|
76
80
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
|
|
77
81
|
type: Component,
|
|
@@ -80,4 +84,4 @@ const ɵWriteMoneyGbpFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheri
|
|
|
80
84
|
templateUrl: './write-money-gbp-field.html'
|
|
81
85
|
}]
|
|
82
86
|
}], null, null); })();
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtbW9uZXktZ2JwLWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL21vbmV5LWdicC93cml0ZS1tb25leS1nYnAtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL3BhbGV0dGUvbW9uZXktZ2JwL3dya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hbmRhdG9yeVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cIm1vbmV5R2JwQ29udHJvbFwiPjwvY2NkLW1vbmV5LWdicC1pbnB1dD5cbiAgPC9kaXY+XG5cbjwvZGl2PlxuIl19
|
|
@@ -2,14 +2,16 @@ import { Component } from '@angular/core';
|
|
|
2
2
|
import { AbstractFieldReadComponent } from '../base-field/abstract-field-read.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
|
|
5
|
+
import * as i2 from "rpx-xui-translation";
|
|
6
|
+
import * as i3 from "../fixed-list/fixed-list.pipe";
|
|
7
|
+
function ReadMultiSelectListFieldComponent_table_0_tr_3_Template(rf, ctx) { if (rf & 1) {
|
|
7
8
|
i0.ɵɵelementStart(0, "tr");
|
|
8
9
|
i0.ɵɵelement(1, "th", 3);
|
|
9
10
|
i0.ɵɵelementStart(2, "td");
|
|
10
11
|
i0.ɵɵelementStart(3, "span", 4);
|
|
11
12
|
i0.ɵɵtext(4);
|
|
12
|
-
i0.ɵɵpipe(5, "
|
|
13
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
14
|
+
i0.ɵɵpipe(6, "ccdFixedList");
|
|
13
15
|
i0.ɵɵelementEnd();
|
|
14
16
|
i0.ɵɵelementEnd();
|
|
15
17
|
i0.ɵɵelementEnd();
|
|
@@ -17,27 +19,29 @@ function ReadMultiSelectListFieldComponent_table_0_tr_2_Template(rf, ctx) { if (
|
|
|
17
19
|
const value_r2 = ctx.$implicit;
|
|
18
20
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
19
21
|
i0.ɵɵadvance(4);
|
|
20
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
22
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, i0.ɵɵpipeBind2(6, 3, value_r2, ctx_r1.caseField.field_type.fixed_list_items)));
|
|
21
23
|
} }
|
|
22
24
|
function ReadMultiSelectListFieldComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
23
25
|
i0.ɵɵelementStart(0, "table", 1);
|
|
24
|
-
i0.ɵɵ
|
|
25
|
-
i0.ɵɵ
|
|
26
|
+
i0.ɵɵpipe(1, "rpxTranslate");
|
|
27
|
+
i0.ɵɵelementStart(2, "tbody");
|
|
28
|
+
i0.ɵɵtemplate(3, ReadMultiSelectListFieldComponent_table_0_tr_3_Template, 7, 6, "tr", 2);
|
|
26
29
|
i0.ɵɵelementEnd();
|
|
27
30
|
i0.ɵɵelementEnd();
|
|
28
31
|
} if (rf & 2) {
|
|
29
32
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
30
|
-
i0.ɵɵ
|
|
33
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(1, 2, "multi selection table"));
|
|
34
|
+
i0.ɵɵadvance(3);
|
|
31
35
|
i0.ɵɵproperty("ngForOf", ctx_r0.caseField.value);
|
|
32
36
|
} }
|
|
33
37
|
export class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
|
|
34
38
|
}
|
|
35
39
|
ReadMultiSelectListFieldComponent.ɵfac = function ReadMultiSelectListFieldComponent_Factory(t) { return ɵReadMultiSelectListFieldComponent_BaseFactory(t || ReadMultiSelectListFieldComponent); };
|
|
36
|
-
ReadMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadMultiSelectListFieldComponent, selectors: [["ccd-read-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "multi-select-list-field-table",
|
|
37
|
-
i0.ɵɵtemplate(0, ReadMultiSelectListFieldComponent_table_0_Template,
|
|
40
|
+
ReadMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadMultiSelectListFieldComponent, selectors: [["ccd-read-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "multi-select-list-field-table", 4, "ngIf"], [1, "multi-select-list-field-table"], [4, "ngFor", "ngForOf"], [2, "display", "none"], [1, "text-16"]], template: function ReadMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
+
i0.ɵɵtemplate(0, ReadMultiSelectListFieldComponent_table_0_Template, 4, 4, "table", 0);
|
|
38
42
|
} if (rf & 2) {
|
|
39
43
|
i0.ɵɵproperty("ngIf", ctx.caseField.value && ctx.caseField.value.length);
|
|
40
|
-
} }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2.FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
|
|
44
|
+
} }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2.RpxTranslatePipe, i3.FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
|
|
41
45
|
const ɵReadMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadMultiSelectListFieldComponent);
|
|
42
46
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadMultiSelectListFieldComponent, [{
|
|
43
47
|
type: Component,
|
|
@@ -47,4 +51,4 @@ const ɵReadMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵget
|
|
|
47
51
|
styleUrls: ['./multi-select-list.scss']
|
|
48
52
|
}]
|
|
49
53
|
}], null, null); })();
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZC1tdWx0aS1zZWxlY3QtbGlzdC1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9tdWx0aS1zZWxlY3QtbGlzdC9yZWFkLW11bHRpLXNlbGVjdC1saXN0LWZpZWxkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL211bHRpLXNlbGVjdC1saXN0L3JlYWQtbXVsdGktc2VsZWN0LWxpc3QtZmllbGQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDZDQUE2QyxDQUFDOzs7Ozs7SUNFckYsMEJBQTBDO0lBQ3hDLHdCQUFnQztJQUNoQywwQkFBSTtJQUFBLCtCQUFzQjtJQUFBLFlBQThFOzs7SUFBQSxpQkFBTztJQUFBLGlCQUFLO0lBQ3RILGlCQUFLOzs7O0lBRHVCLGVBQThFO0lBQTlFLHdIQUE4RTs7O0lBTDlHLGdDQUN3RTs7SUFDdEUsNkJBQU87SUFDTCx3RkFHSztJQUNQLGlCQUFRO0lBQ1YsaUJBQVE7OztJQVBELGlGQUFnRTtJQUU3QyxlQUFrQj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ibGUnIHwgcnB4VHJhbnNsYXRlXCI+XG4gIDx0Ym9keT5cbiAgICA8dHIgKm5nRm9yPVwibGV0IHZhbHVlIG9mIGNhc2VGaWVsZC52YWx1ZVwiPlxuICAgICAgPHRoIHN0eWxlPVwiZGlzcGxheTogbm9uZTtcIj48L3RoPlxuICAgICAgPHRkPjxzcGFuIGNsYXNzPVwidGV4dC0xNlwiPnt7IHZhbHVlIHwgY2NkRml4ZWRMaXN0OmNhc2VGaWVsZC5maWVsZF90eXBlLmZpeGVkX2xpc3RfaXRlbXMgfCBycHhUcmFuc2xhdGV9fTwvc3Bhbj48L3RkPlxuICAgIDwvdHI+XG4gIDwvdGJvZHk+XG48L3RhYmxlPlxuIl19
|
|
@@ -3,36 +3,40 @@ import { FormArray, FormControl } from '@angular/forms';
|
|
|
3
3
|
import { AbstractFieldWriteComponent } from '../base-field/abstract-field-write.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "
|
|
7
|
-
import * as i3 from "../utils/
|
|
6
|
+
import * as i2 from "rpx-xui-translation";
|
|
7
|
+
import * as i3 from "../utils/field-label.pipe";
|
|
8
|
+
import * as i4 from "../utils/first-error.pipe";
|
|
8
9
|
function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
9
10
|
i0.ɵɵelementStart(0, "span", 5);
|
|
10
11
|
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵpipe(2, "
|
|
12
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
12
14
|
i0.ɵɵelementEnd();
|
|
13
15
|
} if (rf & 2) {
|
|
14
16
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
17
|
i0.ɵɵadvance(1);
|
|
16
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
17
19
|
} }
|
|
18
20
|
function WriteMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
19
21
|
i0.ɵɵelementStart(0, "span", 6);
|
|
20
22
|
i0.ɵɵtext(1);
|
|
23
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
21
24
|
i0.ɵɵelementEnd();
|
|
22
25
|
} if (rf & 2) {
|
|
23
26
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
24
27
|
i0.ɵɵadvance(1);
|
|
25
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
28
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
26
29
|
} }
|
|
27
30
|
function WriteMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
28
31
|
i0.ɵɵelementStart(0, "span", 7);
|
|
29
32
|
i0.ɵɵtext(1);
|
|
30
|
-
i0.ɵɵpipe(2, "
|
|
33
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
34
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
31
35
|
i0.ɵɵelementEnd();
|
|
32
36
|
} if (rf & 2) {
|
|
33
37
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
34
38
|
i0.ɵɵadvance(1);
|
|
35
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
39
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.checkboxes.errors, ctx_r2.caseField.label)));
|
|
36
40
|
} }
|
|
37
41
|
function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
38
42
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
@@ -43,6 +47,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
43
47
|
i0.ɵɵelementEnd();
|
|
44
48
|
i0.ɵɵelementStart(3, "label", 10);
|
|
45
49
|
i0.ɵɵtext(4);
|
|
50
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
46
51
|
i0.ɵɵelementEnd();
|
|
47
52
|
i0.ɵɵelementEnd();
|
|
48
53
|
i0.ɵɵelementContainerEnd();
|
|
@@ -54,7 +59,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
54
59
|
i0.ɵɵadvance(1);
|
|
55
60
|
i0.ɵɵproperty("for", ctx_r3.id() + "-" + checkbox_r4.code);
|
|
56
61
|
i0.ɵɵadvance(1);
|
|
57
|
-
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
62
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, checkbox_r4.label));
|
|
58
63
|
} }
|
|
59
64
|
const _c0 = function (a0) { return { "error": a0 }; };
|
|
60
65
|
export class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
@@ -103,11 +108,11 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
103
108
|
i0.ɵɵelementStart(0, "div", 0);
|
|
104
109
|
i0.ɵɵelementStart(1, "fieldset");
|
|
105
110
|
i0.ɵɵelementStart(2, "legend");
|
|
106
|
-
i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template,
|
|
111
|
+
i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template, 4, 5, "span", 1);
|
|
107
112
|
i0.ɵɵelementEnd();
|
|
108
|
-
i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template,
|
|
109
|
-
i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template,
|
|
110
|
-
i0.ɵɵtemplate(6, WriteMultiSelectListFieldComponent_ng_container_6_Template,
|
|
113
|
+
i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
114
|
+
i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 4, 6, "span", 3);
|
|
115
|
+
i0.ɵɵtemplate(6, WriteMultiSelectListFieldComponent_ng_container_6_Template, 6, 8, "ng-container", 4);
|
|
111
116
|
i0.ɵɵelementEnd();
|
|
112
117
|
i0.ɵɵelementEnd();
|
|
113
118
|
} if (rf & 2) {
|
|
@@ -120,7 +125,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
120
125
|
i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && (ctx.checkboxes.dirty || ctx.checkboxes.touched));
|
|
121
126
|
i0.ɵɵadvance(1);
|
|
122
127
|
i0.ɵɵproperty("ngForOf", ctx.caseField.field_type.fixed_list_items);
|
|
123
|
-
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [i2.
|
|
128
|
+
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [i2.RpxTranslatePipe, i3.FieldLabelPipe, i4.FirstErrorPipe], encapsulation: 2 });
|
|
124
129
|
const ɵWriteMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteMultiSelectListFieldComponent);
|
|
125
130
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMultiSelectListFieldComponent, [{
|
|
126
131
|
type: Component,
|
|
@@ -129,4 +134,4 @@ const ɵWriteMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵge
|
|
|
129
134
|
templateUrl: './write-multi-select-list-field.html'
|
|
130
135
|
}]
|
|
131
136
|
}], null, null); })();
|
|
132
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
137
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtbXVsdGktc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