@hmcts/ccd-case-ui-toolkit 5.0.6-angular11-upgrade → 5.0.9-angular11-upgrade
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 +25692 -5025
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -16
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/activity/activity-banner/activity-banner.component.js +42 -0
- package/esm2015/lib/shared/components/activity/activity-banner/index.js +2 -0
- package/esm2015/lib/shared/components/activity/activity-icon/activity-icon.component.js +35 -0
- package/esm2015/lib/shared/components/activity/activity-icon/index.js +2 -0
- package/esm2015/lib/shared/components/activity/activity.component.js +150 -0
- package/esm2015/lib/shared/components/activity/activity.module.js +53 -0
- package/esm2015/lib/shared/components/activity/index.js +5 -0
- package/esm2015/lib/shared/components/case-editor/case-create/case-create.component.js +94 -0
- package/esm2015/lib/shared/components/case-editor/case-create/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +113 -0
- package/esm2015/lib/shared/components/case-editor/case-edit/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +131 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-confirm/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.js +146 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-form/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page-text.enum.js +11 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +654 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-page/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +759 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +185 -0
- package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +89 -0
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.js +72 -0
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +157 -0
- package/esm2015/lib/shared/components/case-editor/case-event-completion/index.js +4 -0
- package/esm2015/lib/shared/components/case-editor/case-progress/case-progress.component.js +85 -0
- package/esm2015/lib/shared/components/case-editor/case-progress/index.js +2 -0
- package/esm2015/lib/shared/components/case-editor/domain/event-completion-params.model.js +2 -0
- package/esm2015/lib/shared/components/case-editor/domain/event-completion-portal-types.model.js +6 -0
- package/esm2015/lib/shared/components/case-editor/editor.routing.js +31 -0
- package/esm2015/lib/shared/components/case-editor/index.js +13 -0
- package/esm2015/lib/shared/components/case-editor/services/case-edit-wizard.guard.js +92 -0
- package/esm2015/lib/shared/components/case-editor/services/case-worker.service.js +32 -0
- package/esm2015/lib/shared/components/case-editor/services/convert-href-to-router.service.js +41 -0
- package/esm2015/lib/shared/components/case-editor/services/event-completion-state-machine.service.js +162 -0
- package/esm2015/lib/shared/components/case-editor/services/event-trigger.service.js +20 -0
- package/esm2015/lib/shared/components/case-editor/services/index.js +12 -0
- package/esm2015/lib/shared/components/case-editor/services/judicial-worker.service.js +32 -0
- package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +50 -0
- package/esm2015/lib/shared/components/case-editor/services/wizard-factory.service.js +7 -0
- package/esm2015/lib/shared/components/case-header/case-header.component.js +65 -0
- package/esm2015/lib/shared/components/case-header/case-header.module.js +35 -0
- package/esm2015/lib/shared/components/case-header/index.js +3 -0
- package/esm2015/lib/shared/components/case-history/case-history.component.js +264 -0
- package/esm2015/lib/shared/components/case-history/case-history.module.js +52 -0
- package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +28 -0
- package/esm2015/lib/shared/components/case-history/index.js +3 -0
- package/esm2015/lib/shared/components/case-history/services/case-history.service.js +40 -0
- package/esm2015/lib/shared/components/case-list/case-list.component.js +370 -0
- package/esm2015/lib/shared/components/case-list/case-list.module.js +45 -0
- package/esm2015/lib/shared/components/case-list/index.js +3 -0
- package/esm2015/lib/shared/components/case-list-filters/case-list-filters.component.js +57 -0
- package/esm2015/lib/shared/components/case-list-filters/case-list-filters.module.js +59 -0
- package/esm2015/lib/shared/components/case-list-filters/index.js +3 -0
- package/esm2015/lib/shared/components/case-timeline/case-timeline.component.js +118 -0
- package/esm2015/lib/shared/components/case-timeline/case-timeline.module.js +46 -0
- package/esm2015/lib/shared/components/case-timeline/index.js +3 -0
- package/esm2015/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +195 -0
- package/esm2015/lib/shared/components/case-viewer/case-basic-access-view/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +307 -0
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.js +20 -0
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/models/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js +64 -0
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-success/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +120 -0
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +545 -0
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js +63 -0
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-reject/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js +258 -0
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-request/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.js +18 -0
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-request/models/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +195 -0
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/models/case-specific-access-request.enum.js +11 -0
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/models/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-success/case-specific-access-success.component.js +60 -0
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-success/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-view/case-view.component.js +100 -0
- package/esm2015/lib/shared/components/case-viewer/case-view/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +129 -0
- package/esm2015/lib/shared/components/case-viewer/case-viewer.module.js +155 -0
- package/esm2015/lib/shared/components/case-viewer/index.js +14 -0
- package/esm2015/lib/shared/components/case-viewer/printer/case-printer.component.js +111 -0
- package/esm2015/lib/shared/components/case-viewer/printer/index.js +4 -0
- package/esm2015/lib/shared/components/case-viewer/printer/pipes/index.js +2 -0
- package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +60 -0
- package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +110 -0
- package/esm2015/lib/shared/components/case-viewer/services/event-trigger.resolver.js +64 -0
- package/esm2015/lib/shared/components/case-viewer/services/index.js +3 -0
- package/esm2015/lib/shared/components/case-viewer/viewer.routing.js +127 -0
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters-selection.model.js +8 -0
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.component.js +257 -0
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.module.js +42 -0
- package/esm2015/lib/shared/components/create-case-filters/index.js +4 -0
- package/esm2015/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.js +57 -0
- package/esm2015/lib/shared/components/dialogs/delete-or-cancel-dialog/index.js +2 -0
- package/esm2015/lib/shared/components/dialogs/dialogs.module.js +49 -0
- package/esm2015/lib/shared/components/dialogs/document-dialog/index.js +2 -0
- package/esm2015/lib/shared/components/dialogs/index.js +6 -0
- package/esm2015/lib/shared/components/dialogs/remove-dialog/index.js +2 -0
- package/esm2015/lib/shared/components/dialogs/save-or-discard-dialog/index.js +2 -0
- package/esm2015/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.js +61 -0
- package/esm2015/lib/shared/components/error/callback-errors.component.js +145 -0
- package/esm2015/lib/shared/components/error/domain/error-context.js +3 -0
- package/esm2015/lib/shared/components/error/domain/index.js +2 -0
- package/esm2015/lib/shared/components/error/errors.module.js +31 -0
- package/esm2015/lib/shared/components/error/index.js +4 -0
- package/esm2015/lib/shared/components/error-message/error-message.component.js +51 -0
- package/esm2015/lib/shared/components/error-message/error-message.module.js +39 -0
- package/esm2015/lib/shared/components/error-message/index.js +3 -0
- package/esm2015/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.js +55 -0
- package/esm2015/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.js +52 -0
- package/esm2015/lib/shared/components/event-start/components/task-assigned/task-assigned.component.js +104 -0
- package/esm2015/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.js +60 -0
- package/esm2015/lib/shared/components/event-start/components/task-conflict/task-conflict.component.js +54 -0
- package/esm2015/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.js +52 -0
- package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +103 -0
- package/esm2015/lib/shared/components/event-start/event-start.component.js +52 -0
- package/esm2015/lib/shared/components/event-start/event-start.module.js +69 -0
- package/esm2015/lib/shared/components/event-start/index.js +10 -0
- package/esm2015/lib/shared/components/event-start/models/event-start-state-machine-context.model.js +2 -0
- package/esm2015/lib/shared/components/event-start/models/event-start-states-enum.model.js +16 -0
- package/esm2015/lib/shared/components/event-start/models/index.js +3 -0
- package/esm2015/lib/shared/components/event-start/resolvers/event-tasks-resolver.service.js +29 -0
- package/esm2015/lib/shared/components/event-start/services/event-start-state-machine.service.js +168 -0
- package/esm2015/lib/shared/components/event-start/services/index.js +2 -0
- package/esm2015/lib/shared/components/event-trigger/event-trigger.component.js +108 -0
- package/esm2015/lib/shared/components/event-trigger/event-trigger.module.js +35 -0
- package/esm2015/lib/shared/components/event-trigger/index.js +3 -0
- package/esm2015/lib/shared/components/index.js +20 -0
- package/esm2015/lib/shared/components/loading-spinner/index.js +2 -0
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +33 -0
- package/esm2015/lib/shared/components/pagination/index.js +3 -0
- package/esm2015/lib/shared/components/pagination/pagination.component.js +255 -0
- package/esm2015/lib/shared/components/pagination/pagination.module.js +33 -0
- package/esm2015/lib/shared/components/palette/address/index.js +3 -0
- package/esm2015/lib/shared/components/palette/case-link/index.js +3 -0
- package/esm2015/lib/shared/components/palette/complex/index.js +1 -7
- package/esm2015/lib/shared/components/palette/complex/write-complex-field.component.js +2 -2
- package/esm2015/lib/shared/components/palette/index.js +32 -0
- package/esm2015/lib/shared/components/palette/palette.module.js +16 -27
- package/esm2015/lib/shared/components/search-result/index.js +3 -0
- package/esm2015/lib/shared/components/search-result/search-result.component.js +845 -0
- package/esm2015/lib/shared/components/search-result/search-result.module.js +67 -0
- package/esm2015/lib/shared/components/workbasket-filters/index.js +3 -0
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +448 -0
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.module.js +60 -0
- package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
- package/esm2015/lib/shared/domain/work-allocation/case-worker.model.js +2 -0
- package/esm2015/lib/shared/domain/work-allocation/judicial-worker.model.js +2 -0
- package/esm2015/lib/shared/index.js +2 -1
- package/esm2015/lib/shared/pipes/complex/ccd-collection-table-value-case-fields.pipe.js +29 -0
- package/esm2015/lib/shared/pipes/complex/ccd-cyapage-label-filter.pipe.js +29 -0
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +154 -0
- package/esm2015/lib/shared/pipes/complex/ccd-tab-fields.pipe.js +31 -0
- package/esm2015/lib/shared/pipes/complex/cdd-page-fields.pipe.js +39 -0
- package/esm2015/lib/shared/pipes/complex/fields-filter.pipe.js +103 -0
- package/esm2015/lib/shared/pipes/complex/index.js +7 -0
- package/esm2015/lib/shared/pipes/index.js +3 -2
- package/esm2015/lib/shared/pipes/pipes.module.js +26 -9
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +22295 -4295
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/activity/activity-banner/activity-banner.component.d.ts +12 -0
- package/lib/shared/components/activity/activity-banner/activity-banner.component.d.ts.map +1 -0
- package/lib/shared/components/activity/activity-banner/index.d.ts +2 -0
- package/lib/shared/components/activity/activity-banner/index.d.ts.map +1 -0
- package/lib/shared/components/activity/activity-icon/activity-icon.component.d.ts +11 -0
- package/lib/shared/components/activity/activity-icon/activity-icon.component.d.ts.map +1 -0
- package/lib/shared/components/activity/activity-icon/index.d.ts +2 -0
- package/lib/shared/components/activity/activity-icon/index.d.ts.map +1 -0
- package/lib/shared/components/activity/activity.component.d.ts +32 -0
- package/lib/shared/components/activity/activity.component.d.ts.map +1 -0
- package/lib/shared/components/activity/activity.module.d.ts +12 -0
- package/lib/shared/components/activity/activity.module.d.ts.map +1 -0
- package/lib/shared/components/activity/index.d.ts +5 -0
- package/lib/shared/components/activity/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-create/case-create.component.d.ts +33 -0
- package/lib/shared/components/case-editor/case-create/case-create.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-create/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-create/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +50 -0
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-edit/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts +26 -0
- package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-confirm/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-edit-confirm/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts +26 -0
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-form/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-edit-form/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page-text.enum.d.ts +10 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page-text.enum.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +100 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-page/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-edit-page/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +123 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-submit/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-edit-submit/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-editor.module.d.ts +27 -0
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts +31 -0
- package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.d.ts +11 -0
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts +32 -0
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-event-completion/index.d.ts +4 -0
- package/lib/shared/components/case-editor/case-event-completion/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-progress/case-progress.component.d.ts +30 -0
- package/lib/shared/components/case-editor/case-progress/case-progress.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-progress/index.d.ts +2 -0
- package/lib/shared/components/case-editor/case-progress/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/event-completion-params.model.d.ts +7 -0
- package/lib/shared/components/case-editor/domain/event-completion-params.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/event-completion-portal-types.model.d.ts +5 -0
- package/lib/shared/components/case-editor/domain/event-completion-portal-types.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/editor.routing.d.ts +3 -0
- package/lib/shared/components/case-editor/editor.routing.d.ts.map +1 -0
- package/lib/shared/components/case-editor/index.d.ts +13 -0
- package/lib/shared/components/case-editor/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/case-edit-wizard.guard.d.ts +23 -0
- package/lib/shared/components/case-editor/services/case-edit-wizard.guard.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/case-worker.service.d.ts +16 -0
- package/lib/shared/components/case-editor/services/case-worker.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/convert-href-to-router.service.d.ts +14 -0
- package/lib/shared/components/case-editor/services/convert-href-to-router.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/event-completion-state-machine.service.d.ts +33 -0
- package/lib/shared/components/case-editor/services/event-completion-state-machine.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/event-trigger.service.d.ts +10 -0
- package/lib/shared/components/case-editor/services/event-trigger.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/index.d.ts +12 -0
- package/lib/shared/components/case-editor/services/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/judicial-worker.service.d.ts +16 -0
- package/lib/shared/components/case-editor/services/judicial-worker.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts +17 -0
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/wizard-factory.service.d.ts +6 -0
- package/lib/shared/components/case-editor/services/wizard-factory.service.d.ts.map +1 -0
- package/lib/shared/components/case-header/case-header.component.d.ts +15 -0
- package/lib/shared/components/case-header/case-header.component.d.ts.map +1 -0
- package/lib/shared/components/case-header/case-header.module.d.ts +11 -0
- package/lib/shared/components/case-header/case-header.module.d.ts.map +1 -0
- package/lib/shared/components/case-header/index.d.ts +3 -0
- package/lib/shared/components/case-header/index.d.ts.map +1 -0
- package/lib/shared/components/case-history/case-history.component.d.ts +33 -0
- package/lib/shared/components/case-history/case-history.component.d.ts.map +1 -0
- package/lib/shared/components/case-history/case-history.module.d.ts +14 -0
- package/lib/shared/components/case-history/case-history.module.d.ts.map +1 -0
- package/lib/shared/components/case-history/domain/case-history.model.d.ts +16 -0
- package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -0
- package/lib/shared/components/case-history/index.d.ts +3 -0
- package/lib/shared/components/case-history/index.d.ts.map +1 -0
- package/lib/shared/components/case-history/services/case-history.service.d.ts +17 -0
- package/lib/shared/components/case-history/services/case-history.service.d.ts.map +1 -0
- package/lib/shared/components/case-list/case-list.component.d.ts +47 -0
- package/lib/shared/components/case-list/case-list.component.d.ts.map +1 -0
- package/lib/shared/components/case-list/case-list.module.d.ts +13 -0
- package/lib/shared/components/case-list/case-list.module.d.ts.map +1 -0
- package/lib/shared/components/case-list/index.d.ts +3 -0
- package/lib/shared/components/case-list/index.d.ts.map +1 -0
- package/lib/shared/components/case-list-filters/case-list-filters.component.d.ts +19 -0
- package/lib/shared/components/case-list-filters/case-list-filters.component.d.ts.map +1 -0
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts +13 -0
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts.map +1 -0
- package/lib/shared/components/case-list-filters/index.d.ts +3 -0
- package/lib/shared/components/case-list-filters/index.d.ts.map +1 -0
- package/lib/shared/components/case-timeline/case-timeline.component.d.ts +27 -0
- package/lib/shared/components/case-timeline/case-timeline.component.d.ts.map +1 -0
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts +13 -0
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts.map +1 -0
- package/lib/shared/components/case-timeline/index.d.ts +3 -0
- package/lib/shared/components/case-timeline/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +19 -0
- package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-basic-access-view/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-basic-access-view/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts +40 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.d.ts +17 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/models/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-challenged-access-request/models/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts +12 -0
- package/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-challenged-access-success/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-challenged-access-success/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +41 -0
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-event-trigger/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-event-trigger/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +90 -0
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-full-access-view/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-full-access-view/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.d.ts +14 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-reject/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-reject/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts +49 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.d.ts +15 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/models/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-request/models/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts +33 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/models/case-specific-access-request.enum.d.ts +9 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/models/case-specific-access-request.enum.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/models/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-specific-access-request/models/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-specific-access-success/case-specific-access-success.component.d.ts +12 -0
- package/lib/shared/components/case-viewer/case-specific-access-success/case-specific-access-success.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-specific-access-success/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-specific-access-success/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-view/case-view.component.d.ts +32 -0
- package/lib/shared/components/case-viewer/case-view/case-view.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-view/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-view/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts +32 -0
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts +36 -0
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/index.d.ts +14 -0
- package/lib/shared/components/case-viewer/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/printer/case-printer.component.d.ts +24 -0
- package/lib/shared/components/case-viewer/printer/case-printer.component.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/printer/index.d.ts +4 -0
- package/lib/shared/components/case-viewer/printer/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/printer/pipes/index.d.ts +2 -0
- package/lib/shared/components/case-viewer/printer/pipes/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts +24 -0
- package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts +29 -0
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts +26 -0
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/services/index.d.ts +3 -0
- package/lib/shared/components/case-viewer/services/index.d.ts.map +1 -0
- package/lib/shared/components/case-viewer/viewer.routing.d.ts +3 -0
- package/lib/shared/components/case-viewer/viewer.routing.d.ts.map +1 -0
- package/lib/shared/components/create-case-filters/create-case-filters-selection.model.d.ts +7 -0
- package/lib/shared/components/create-case-filters/create-case-filters-selection.model.d.ts.map +1 -0
- package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts +57 -0
- package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts.map +1 -0
- package/lib/shared/components/create-case-filters/create-case-filters.module.d.ts +12 -0
- package/lib/shared/components/create-case-filters/create-case-filters.module.d.ts.map +1 -0
- package/lib/shared/components/create-case-filters/index.d.ts +4 -0
- package/lib/shared/components/create-case-filters/index.d.ts.map +1 -0
- package/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.d.ts +12 -0
- package/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.d.ts.map +1 -0
- package/lib/shared/components/dialogs/delete-or-cancel-dialog/index.d.ts +2 -0
- package/lib/shared/components/dialogs/delete-or-cancel-dialog/index.d.ts.map +1 -0
- package/lib/shared/components/dialogs/dialogs.module.d.ts +13 -0
- package/lib/shared/components/dialogs/dialogs.module.d.ts.map +1 -0
- package/lib/shared/components/dialogs/document-dialog/index.d.ts +2 -0
- package/lib/shared/components/dialogs/document-dialog/index.d.ts.map +1 -0
- package/lib/shared/components/dialogs/index.d.ts +6 -0
- package/lib/shared/components/dialogs/index.d.ts.map +1 -0
- package/lib/shared/components/dialogs/remove-dialog/index.d.ts +2 -0
- package/lib/shared/components/dialogs/remove-dialog/index.d.ts.map +1 -0
- package/lib/shared/components/dialogs/save-or-discard-dialog/index.d.ts +2 -0
- package/lib/shared/components/dialogs/save-or-discard-dialog/index.d.ts.map +1 -0
- package/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.d.ts +13 -0
- package/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.d.ts.map +1 -0
- package/lib/shared/components/error/callback-errors.component.d.ts +25 -0
- package/lib/shared/components/error/callback-errors.component.d.ts.map +1 -0
- package/lib/shared/components/error/domain/error-context.d.ts +5 -0
- package/lib/shared/components/error/domain/error-context.d.ts.map +1 -0
- package/lib/shared/components/error/domain/index.d.ts +2 -0
- package/lib/shared/components/error/domain/index.d.ts.map +1 -0
- package/lib/shared/components/error/errors.module.d.ts +10 -0
- package/lib/shared/components/error/errors.module.d.ts.map +1 -0
- package/lib/shared/components/error/index.d.ts +4 -0
- package/lib/shared/components/error/index.d.ts.map +1 -0
- package/lib/shared/components/error-message/error-message.component.d.ts +8 -0
- package/lib/shared/components/error-message/error-message.component.d.ts.map +1 -0
- package/lib/shared/components/error-message/error-message.module.d.ts +12 -0
- package/lib/shared/components/error-message/error-message.module.d.ts.map +1 -0
- package/lib/shared/components/error-message/index.d.ts +3 -0
- package/lib/shared/components/error-message/index.d.ts.map +1 -0
- package/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.d.ts +10 -0
- package/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.d.ts +10 -0
- package/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/components/task-assigned/task-assigned.component.d.ts +23 -0
- package/lib/shared/components/event-start/components/task-assigned/task-assigned.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.d.ts +7 -0
- package/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/components/task-conflict/task-conflict.component.d.ts +9 -0
- package/lib/shared/components/event-start/components/task-conflict/task-conflict.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.d.ts +10 -0
- package/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +20 -0
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -0
- package/lib/shared/components/event-start/event-start.component.d.ts +20 -0
- package/lib/shared/components/event-start/event-start.component.d.ts.map +1 -0
- package/lib/shared/components/event-start/event-start.module.d.ts +17 -0
- package/lib/shared/components/event-start/event-start.module.d.ts.map +1 -0
- package/lib/shared/components/event-start/index.d.ts +10 -0
- package/lib/shared/components/event-start/index.d.ts.map +1 -0
- package/lib/shared/components/event-start/models/event-start-state-machine-context.model.d.ts +13 -0
- package/lib/shared/components/event-start/models/event-start-state-machine-context.model.d.ts.map +1 -0
- package/lib/shared/components/event-start/models/event-start-states-enum.model.d.ts +15 -0
- package/lib/shared/components/event-start/models/event-start-states-enum.model.d.ts.map +1 -0
- package/lib/shared/components/event-start/models/index.d.ts +3 -0
- package/lib/shared/components/event-start/models/index.d.ts.map +1 -0
- package/lib/shared/components/event-start/resolvers/event-tasks-resolver.service.d.ts +15 -0
- package/lib/shared/components/event-start/resolvers/event-tasks-resolver.service.d.ts.map +1 -0
- package/lib/shared/components/event-start/services/event-start-state-machine.service.d.ts +40 -0
- package/lib/shared/components/event-start/services/event-start-state-machine.service.d.ts.map +1 -0
- package/lib/shared/components/event-start/services/index.d.ts +2 -0
- package/lib/shared/components/event-start/services/index.d.ts.map +1 -0
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts +24 -0
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts.map +1 -0
- package/lib/shared/components/event-trigger/event-trigger.module.d.ts +11 -0
- package/lib/shared/components/event-trigger/event-trigger.module.d.ts.map +1 -0
- package/lib/shared/components/event-trigger/index.d.ts +3 -0
- package/lib/shared/components/event-trigger/index.d.ts.map +1 -0
- package/lib/shared/components/index.d.ts +20 -0
- package/lib/shared/components/index.d.ts.map +1 -0
- package/lib/shared/components/loading-spinner/index.d.ts +2 -0
- package/lib/shared/components/loading-spinner/index.d.ts.map +1 -0
- package/lib/shared/components/loading-spinner/loading-spinner.component.d.ts +7 -0
- package/lib/shared/components/loading-spinner/loading-spinner.component.d.ts.map +1 -0
- package/lib/shared/components/pagination/index.d.ts +3 -0
- package/lib/shared/components/pagination/index.d.ts.map +1 -0
- package/lib/shared/components/pagination/pagination.component.d.ts +26 -0
- package/lib/shared/components/pagination/pagination.component.d.ts.map +1 -0
- package/lib/shared/components/pagination/pagination.module.d.ts +10 -0
- package/lib/shared/components/pagination/pagination.module.d.ts.map +1 -0
- package/lib/shared/components/palette/address/index.d.ts +3 -0
- package/lib/shared/components/palette/address/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-link/index.d.ts +3 -0
- package/lib/shared/components/palette/case-link/index.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/index.d.ts +0 -6
- package/lib/shared/components/palette/complex/index.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +32 -0
- package/lib/shared/components/palette/index.d.ts.map +1 -0
- package/lib/shared/components/palette/palette.module.d.ts +87 -93
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/search-result/index.d.ts +3 -0
- package/lib/shared/components/search-result/index.d.ts.map +1 -0
- package/lib/shared/components/search-result/search-result.component.d.ts +111 -0
- package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -0
- package/lib/shared/components/search-result/search-result.module.d.ts +16 -0
- package/lib/shared/components/search-result/search-result.module.d.ts.map +1 -0
- package/lib/shared/components/workbasket-filters/index.d.ts +3 -0
- package/lib/shared/components/workbasket-filters/index.d.ts.map +1 -0
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts +85 -0
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -0
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts +12 -0
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts.map +1 -0
- package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
- package/lib/shared/domain/work-allocation/case-worker.model.d.ts +14 -0
- package/lib/shared/domain/work-allocation/case-worker.model.d.ts.map +1 -0
- package/lib/shared/domain/work-allocation/judicial-worker.model.d.ts +8 -0
- package/lib/shared/domain/work-allocation/judicial-worker.model.d.ts.map +1 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.d.ts.map +1 -1
- package/lib/shared/{components/palette → pipes}/complex/ccd-collection-table-value-case-fields.pipe.d.ts +1 -1
- package/lib/shared/pipes/complex/ccd-collection-table-value-case-fields.pipe.d.ts.map +1 -0
- package/lib/shared/{components/palette → pipes}/complex/ccd-cyapage-label-filter.pipe.d.ts +1 -1
- package/lib/shared/pipes/complex/ccd-cyapage-label-filter.pipe.d.ts.map +1 -0
- package/lib/shared/{components/palette → pipes}/complex/ccd-read-fields-filter.pipe.d.ts +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -0
- package/lib/shared/{components/palette → pipes}/complex/ccd-tab-fields.pipe.d.ts +2 -2
- package/lib/shared/pipes/complex/ccd-tab-fields.pipe.d.ts.map +1 -0
- package/lib/shared/{components/palette → pipes}/complex/cdd-page-fields.pipe.d.ts +2 -2
- package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +1 -0
- package/lib/shared/{components/palette → pipes}/complex/fields-filter.pipe.d.ts +1 -1
- package/lib/shared/pipes/complex/fields-filter.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/complex/index.d.ts +7 -0
- package/lib/shared/pipes/complex/index.d.ts.map +1 -0
- package/lib/shared/pipes/index.d.ts +2 -1
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/lib/shared/pipes/pipes.module.d.ts +7 -2
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/complex/ccd-collection-table-value-case-fields.pipe.js +0 -29
- package/esm2015/lib/shared/components/palette/complex/ccd-cyapage-label-filter.pipe.js +0 -29
- package/esm2015/lib/shared/components/palette/complex/ccd-read-fields-filter.pipe.js +0 -154
- package/esm2015/lib/shared/components/palette/complex/ccd-tab-fields.pipe.js +0 -31
- package/esm2015/lib/shared/components/palette/complex/cdd-page-fields.pipe.js +0 -39
- package/esm2015/lib/shared/components/palette/complex/fields-filter.pipe.js +0 -103
- package/lib/shared/components/palette/complex/ccd-collection-table-value-case-fields.pipe.d.ts.map +0 -1
- package/lib/shared/components/palette/complex/ccd-cyapage-label-filter.pipe.d.ts.map +0 -1
- package/lib/shared/components/palette/complex/ccd-read-fields-filter.pipe.d.ts.map +0 -1
- package/lib/shared/components/palette/complex/ccd-tab-fields.pipe.d.ts.map +0 -1
- package/lib/shared/components/palette/complex/cdd-page-fields.pipe.d.ts.map +0 -1
- package/lib/shared/components/palette/complex/fields-filter.pipe.d.ts.map +0 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { CallbackErrorsContext } from './domain/error-context';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
function CallbackErrorsComponent_div_0_ng_container_1_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
i0.ɵɵelementStart(0, "li");
|
|
8
|
+
i0.ɵɵtext(1);
|
|
9
|
+
i0.ɵɵelementEnd();
|
|
10
|
+
} if (rf & 2) {
|
|
11
|
+
const errorMsg_r5 = ctx.$implicit;
|
|
12
|
+
i0.ɵɵadvance(1);
|
|
13
|
+
i0.ɵɵtextInterpolate1(" ", errorMsg_r5, " ");
|
|
14
|
+
} }
|
|
15
|
+
function CallbackErrorsComponent_div_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
i0.ɵɵelementContainerStart(0);
|
|
17
|
+
i0.ɵɵelementStart(1, "h3", 3);
|
|
18
|
+
i0.ɵɵtext(2, " Errors ");
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementStart(3, "ul", 4);
|
|
21
|
+
i0.ɵɵtemplate(4, CallbackErrorsComponent_div_0_ng_container_1_li_4_Template, 2, 1, "li", 5);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
i0.ɵɵelementContainerEnd();
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
26
|
+
i0.ɵɵadvance(4);
|
|
27
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.error.callbackErrors);
|
|
28
|
+
} }
|
|
29
|
+
function CallbackErrorsComponent_div_0_br_2_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵelement(0, "br");
|
|
31
|
+
} }
|
|
32
|
+
function CallbackErrorsComponent_div_0_ng_container_3_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelementStart(0, "li");
|
|
34
|
+
i0.ɵɵtext(1);
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const warningMsg_r7 = ctx.$implicit;
|
|
38
|
+
i0.ɵɵadvance(1);
|
|
39
|
+
i0.ɵɵtextInterpolate1(" ", warningMsg_r7, " ");
|
|
40
|
+
} }
|
|
41
|
+
function CallbackErrorsComponent_div_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
i0.ɵɵelementContainerStart(0);
|
|
43
|
+
i0.ɵɵelementStart(1, "h3", 3);
|
|
44
|
+
i0.ɵɵtext(2, " Warnings ");
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵelementStart(3, "ul", 6);
|
|
47
|
+
i0.ɵɵtemplate(4, CallbackErrorsComponent_div_0_ng_container_3_li_4_Template, 2, 1, "li", 5);
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
i0.ɵɵelementContainerEnd();
|
|
50
|
+
} if (rf & 2) {
|
|
51
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
52
|
+
i0.ɵɵadvance(4);
|
|
53
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.error.callbackWarnings);
|
|
54
|
+
} }
|
|
55
|
+
function CallbackErrorsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
57
|
+
i0.ɵɵtemplate(1, CallbackErrorsComponent_div_0_ng_container_1_Template, 5, 1, "ng-container", 2);
|
|
58
|
+
i0.ɵɵtemplate(2, CallbackErrorsComponent_div_0_br_2_Template, 1, 0, "br", 2);
|
|
59
|
+
i0.ɵɵtemplate(3, CallbackErrorsComponent_div_0_ng_container_3_Template, 5, 1, "ng-container", 2);
|
|
60
|
+
i0.ɵɵelementEnd();
|
|
61
|
+
} if (rf & 2) {
|
|
62
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
63
|
+
i0.ɵɵadvance(1);
|
|
64
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasErrors());
|
|
65
|
+
i0.ɵɵadvance(1);
|
|
66
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasErrors() && ctx_r0.hasWarnings());
|
|
67
|
+
i0.ɵɵadvance(1);
|
|
68
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasWarnings());
|
|
69
|
+
} }
|
|
70
|
+
export class CallbackErrorsComponent {
|
|
71
|
+
constructor() {
|
|
72
|
+
this.triggerTextIgnore = CallbackErrorsComponent.TRIGGER_TEXT_IGNORE;
|
|
73
|
+
this.triggerTextContinue = CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
74
|
+
this.callbackErrorsSubject = new Subject();
|
|
75
|
+
this.callbackErrorsContext = new EventEmitter();
|
|
76
|
+
}
|
|
77
|
+
ngOnInit() {
|
|
78
|
+
this.callbackErrorsSubject.subscribe(errorEvent => {
|
|
79
|
+
this.error = errorEvent;
|
|
80
|
+
if (this.hasWarnings() || this.hasErrors() || this.hasInvalidData()) {
|
|
81
|
+
const callbackErrorsContext = this.buildCallbackErrorsContext();
|
|
82
|
+
this.callbackErrorsContext.emit(callbackErrorsContext);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
ngOnDestroy() {
|
|
87
|
+
if (this.callbackErrorsSubject) {
|
|
88
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
hasErrors() {
|
|
92
|
+
return this.error
|
|
93
|
+
&& this.error.callbackErrors
|
|
94
|
+
&& this.error.callbackErrors.length;
|
|
95
|
+
}
|
|
96
|
+
hasWarnings() {
|
|
97
|
+
return this.error
|
|
98
|
+
&& this.error.callbackWarnings
|
|
99
|
+
&& this.error.callbackWarnings.length;
|
|
100
|
+
}
|
|
101
|
+
buildCallbackErrorsContext() {
|
|
102
|
+
const errorContext = new CallbackErrorsContext();
|
|
103
|
+
if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
|
|
104
|
+
errorContext.ignore_warning = true;
|
|
105
|
+
errorContext.trigger_text = this.triggerTextIgnore;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
errorContext.ignore_warning = false;
|
|
109
|
+
errorContext.trigger_text = this.triggerTextContinue;
|
|
110
|
+
}
|
|
111
|
+
return errorContext;
|
|
112
|
+
}
|
|
113
|
+
hasInvalidData() {
|
|
114
|
+
return this.error
|
|
115
|
+
&& this.error.details
|
|
116
|
+
&& this.error.details.field_errors
|
|
117
|
+
&& this.error.details.field_errors.length;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT = 'Submit';
|
|
121
|
+
CallbackErrorsComponent.TRIGGER_TEXT_START = 'Start';
|
|
122
|
+
CallbackErrorsComponent.TRIGGER_TEXT_GO = 'Go';
|
|
123
|
+
CallbackErrorsComponent.TRIGGER_TEXT_IGNORE = 'Ignore Warning and Go';
|
|
124
|
+
CallbackErrorsComponent.ɵfac = function CallbackErrorsComponent_Factory(t) { return new (t || CallbackErrorsComponent)(); };
|
|
125
|
+
CallbackErrorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CallbackErrorsComponent, selectors: [["ccd-callback-errors"]], inputs: { triggerTextIgnore: "triggerTextIgnore", triggerTextContinue: "triggerTextContinue", callbackErrorsSubject: "callbackErrorsSubject" }, outputs: { callbackErrorsContext: "callbackErrorsContext" }, decls: 1, vars: 1, consts: [["class", "error-summary", "role", "group", "aria-label", "Cannot continue because the service reported one or more errors or warnings", "tabindex", "-1", 4, "ngIf"], ["role", "group", "aria-label", "Cannot continue because the service reported one or more errors or warnings", "tabindex", "-1", 1, "error-summary"], [4, "ngIf"], [1, "heading-h3", "error-summary-heading"], ["id", "errors", 1, "error-summary-list"], [4, "ngFor", "ngForOf"], ["id", "warnings", 1, "error-summary-list"]], template: function CallbackErrorsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
+
i0.ɵɵtemplate(0, CallbackErrorsComponent_div_0_Template, 4, 3, "div", 0);
|
|
127
|
+
} if (rf & 2) {
|
|
128
|
+
i0.ɵɵproperty("ngIf", ctx.hasErrors() || ctx.hasWarnings());
|
|
129
|
+
} }, directives: [i1.NgIf, i1.NgForOf], encapsulation: 2 });
|
|
130
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CallbackErrorsComponent, [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{
|
|
133
|
+
selector: 'ccd-callback-errors',
|
|
134
|
+
templateUrl: './callback-errors.html'
|
|
135
|
+
}]
|
|
136
|
+
}], null, { triggerTextIgnore: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], triggerTextContinue: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], callbackErrorsSubject: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], callbackErrorsContext: [{
|
|
143
|
+
type: Output
|
|
144
|
+
}] }); })();
|
|
145
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsbGJhY2stZXJyb3JzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9lcnJvci9jYWxsYmFjay1lcnJvcnMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2Vycm9yL2NhbGxiYWNrLWVycm9ycy5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBcUIsTUFBTSxFQUFFLE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aGFzV2FybmluZ3MoKVwiPlxuICAgIDxoMyBjbGFzcz1cImhlYWRpbmctaDMgZXJyb3Itc3VtbWFyeS1oZWFkaW5nXCI+XG4gICAgICBXYXJuaW5nc1xuICAgIDwvaDM+XG4gICAgPHVsIGlkPVwid2FybmluZ3NcIiBjbGFzcz1cImVycm9yLXN1bW1hcnktbGlzdFwiPlxuICAgICAgPGxpICpuZ0Zvcj1cImxldCB3YXJuaW5nTXNnIG9mIGVycm9yLmNhbGxiYWNrV2FybmluZ3NcIj5cbiAgICAgICAge3t3YXJuaW5nTXNnfX1cbiAgICAgIDwvbGk+XG4gICAgPC91bD5cbiAgPC9uZy1jb250YWluZXI+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export class CallbackErrorsContext {
|
|
2
|
+
}
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9lcnJvci9kb21haW4vZXJyb3ItY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8scUJBQXFCO0NBR2pDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIENhbGxiYWNrRXJyb3JzQ29udGV4dCB7XG4gIHB1YmxpYyB0cmlnZ2VyX3RleHQ6IHN0cmluZztcbiAgcHVibGljIGlnbm9yZV93YXJuaW5nOiBib29sZWFuO1xufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './error-context';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZXJyb3IvZG9tYWluL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Vycm9yLWNvbnRleHQnO1xuIl19
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { RouterModule } from '@angular/router';
|
|
4
|
+
import { CallbackErrorsComponent } from './callback-errors.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class ErrorsModule {
|
|
7
|
+
}
|
|
8
|
+
ErrorsModule.ɵfac = function ErrorsModule_Factory(t) { return new (t || ErrorsModule)(); };
|
|
9
|
+
ErrorsModule.ɵmod = i0.ɵɵdefineNgModule({ type: ErrorsModule });
|
|
10
|
+
ErrorsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
11
|
+
CommonModule,
|
|
12
|
+
RouterModule,
|
|
13
|
+
]] });
|
|
14
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ErrorsModule, { declarations: [CallbackErrorsComponent], imports: [CommonModule,
|
|
15
|
+
RouterModule], exports: [CallbackErrorsComponent] }); })();
|
|
16
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorsModule, [{
|
|
17
|
+
type: NgModule,
|
|
18
|
+
args: [{
|
|
19
|
+
imports: [
|
|
20
|
+
CommonModule,
|
|
21
|
+
RouterModule,
|
|
22
|
+
],
|
|
23
|
+
declarations: [
|
|
24
|
+
CallbackErrorsComponent
|
|
25
|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Zyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgUm91dGVyTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvcm91dGVyJztcbmltcG9ydCB7IENhbGxiYWNrRXJyb3JzQ29tcG9uZW50IH0gZnJvbSAnLi9jYWxsYmFjay1lcnJvcnMuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBSb3V0ZXJNb2R1bGUsXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIENhbGxiYWNrRXJyb3JzQ29tcG9uZW50XG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBDYWxsYmFja0Vycm9yc0NvbXBvbmVudCxcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBFcnJvcnNNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './domain';
|
|
2
|
+
export * from './callback-errors.component';
|
|
3
|
+
export * from './domain/error-context';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZXJyb3IvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9kb21haW4nO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxsYmFjay1lcnJvcnMuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZG9tYWluL2Vycm9yLWNvbnRleHQnO1xuIl19
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.ts
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Input } from '@angular/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@angular/router";
|
|
8
|
+
function ErrorMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementContainerStart(0);
|
|
10
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
11
|
+
i0.ɵɵelementStart(2, "h2", 2);
|
|
12
|
+
i0.ɵɵtext(3);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
15
|
+
i0.ɵɵelementStart(5, "ul", 4);
|
|
16
|
+
i0.ɵɵelementStart(6, "li");
|
|
17
|
+
i0.ɵɵelementStart(7, "a", 5);
|
|
18
|
+
i0.ɵɵtext(8);
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementContainerEnd();
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
27
|
+
i0.ɵɵadvance(3);
|
|
28
|
+
i0.ɵɵtextInterpolate(ctx_r0.error.title);
|
|
29
|
+
i0.ɵɵadvance(4);
|
|
30
|
+
i0.ɵɵproperty("fragment", ctx_r0.error.fieldId);
|
|
31
|
+
i0.ɵɵadvance(1);
|
|
32
|
+
i0.ɵɵtextInterpolate(ctx_r0.error.description);
|
|
33
|
+
} }
|
|
34
|
+
export class ErrorMessageComponent {
|
|
35
|
+
}
|
|
36
|
+
ErrorMessageComponent.ɵfac = function ErrorMessageComponent_Factory(t) { return new (t || ErrorMessageComponent)(); };
|
|
37
|
+
ErrorMessageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMessageComponent, selectors: [["exui-error-message"]], inputs: { error: "error" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["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"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["routerLink", ".", 3, "fragment"]], template: function ErrorMessageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
i0.ɵɵtemplate(0, ErrorMessageComponent_ng_container_0_Template, 9, 3, "ng-container", 0);
|
|
39
|
+
} if (rf & 2) {
|
|
40
|
+
i0.ɵɵproperty("ngIf", ctx.error);
|
|
41
|
+
} }, directives: [i1.NgIf, i2.RouterLinkWithHref], encapsulation: 2 });
|
|
42
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMessageComponent, [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: 'exui-error-message',
|
|
46
|
+
templateUrl: './error-message.component.html'
|
|
47
|
+
}]
|
|
48
|
+
}], null, { error: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}] }); })();
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbWVzc2FnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZXJyb3ItbWVzc2FnZS9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HJvdXRlckxpbms9XCIuXCIgW2ZyYWdtZW50XT1cImVycm9yLmZpZWxkSWRcIj57e2Vycm9yLmRlc2NyaXB0aW9ufX08L2E+XG4gICAgICAgIDwvbGk+XG4gICAgICA8L3VsPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { RouterModule } from '@angular/router';
|
|
5
|
+
import { ActivityModule } from '../activity';
|
|
6
|
+
import { ErrorMessageComponent } from './error-message.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class EventMessageModule {
|
|
9
|
+
}
|
|
10
|
+
EventMessageModule.ɵfac = function EventMessageModule_Factory(t) { return new (t || EventMessageModule)(); };
|
|
11
|
+
EventMessageModule.ɵmod = i0.ɵɵdefineNgModule({ type: EventMessageModule });
|
|
12
|
+
EventMessageModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
13
|
+
CommonModule,
|
|
14
|
+
ReactiveFormsModule,
|
|
15
|
+
RouterModule,
|
|
16
|
+
ActivityModule
|
|
17
|
+
]] });
|
|
18
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(EventMessageModule, { declarations: [ErrorMessageComponent], imports: [CommonModule,
|
|
19
|
+
ReactiveFormsModule,
|
|
20
|
+
RouterModule,
|
|
21
|
+
ActivityModule], exports: [ErrorMessageComponent] }); })();
|
|
22
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventMessageModule, [{
|
|
23
|
+
type: NgModule,
|
|
24
|
+
args: [{
|
|
25
|
+
imports: [
|
|
26
|
+
CommonModule,
|
|
27
|
+
ReactiveFormsModule,
|
|
28
|
+
RouterModule,
|
|
29
|
+
ActivityModule
|
|
30
|
+
],
|
|
31
|
+
declarations: [
|
|
32
|
+
ErrorMessageComponent
|
|
33
|
+
],
|
|
34
|
+
exports: [
|
|
35
|
+
ErrorMessageComponent
|
|
36
|
+
]
|
|
37
|
+
}]
|
|
38
|
+
}], null, null); })();
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbWVzc2FnZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZXJyb3ItbWVzc2FnZS9lcnJvci1tZXNzYWdlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUM3QyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQzs7QUFnQmxFLE1BQU0sT0FBTyxrQkFBa0I7O29GQUFsQixrQkFBa0I7c0RBQWxCLGtCQUFrQjswREFicEI7WUFDUCxZQUFZO1lBQ1osbUJBQW1CO1lBQ25CLFlBQVk7WUFDWixjQUFjO1NBQ2Y7d0ZBUVUsa0JBQWtCLG1CQU4zQixxQkFBcUIsYUFOckIsWUFBWTtRQUNaLG1CQUFtQjtRQUNuQixZQUFZO1FBQ1osY0FBYyxhQU1kLH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error-message.component';
|
|
2
|
+
export * from './error-message.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZXJyb3ItbWVzc2FnZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Vycm9yLW1lc3NhZ2UuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZXJyb3ItbWVzc2FnZS5tb2R1bGUnO1xuIl19
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/router";
|
|
5
|
+
const _c0 = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
6
|
+
export class MultipleTasksExistComponent {
|
|
7
|
+
constructor(route) {
|
|
8
|
+
this.route = route;
|
|
9
|
+
this.caseId = this.route.snapshot.data.case.case_id;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
MultipleTasksExistComponent.ɵfac = function MultipleTasksExistComponent_Factory(t) { return new (t || MultipleTasksExistComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute)); };
|
|
13
|
+
MultipleTasksExistComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MultipleTasksExistComponent, selectors: [["app-multiple-tasks-exist"]], decls: 18, vars: 3, consts: [[1, "govuk-!-margin-9"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["href", "#"], [1, "govuk-form-group", "govuk-form-group--error"], [1, "govuk-heading-m"], ["href", "javascript:void(0)", 3, "routerLink"]], template: function MultipleTasksExistComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
15
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
16
|
+
i0.ɵɵelementStart(2, "h2", 2);
|
|
17
|
+
i0.ɵɵtext(3, " There is a problem ");
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
20
|
+
i0.ɵɵelementStart(5, "ul", 4);
|
|
21
|
+
i0.ɵɵelementStart(6, "li");
|
|
22
|
+
i0.ɵɵelementStart(7, "a", 5);
|
|
23
|
+
i0.ɵɵtext(8, "Multiple tasks exist");
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
i0.ɵɵelementStart(9, "div", 6);
|
|
30
|
+
i0.ɵɵelementStart(10, "h2", 7);
|
|
31
|
+
i0.ɵɵtext(11, "Multiple tasks exist");
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementStart(12, "p");
|
|
34
|
+
i0.ɵɵtext(13, "You're starting work which could complete more than one of the active tasks for this case.");
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
i0.ɵɵelementStart(14, "p");
|
|
37
|
+
i0.ɵɵtext(15, "Return to tasks tab and start the event from there.");
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
i0.ɵɵelementStart(16, "a", 8);
|
|
40
|
+
i0.ɵɵtext(17, "Return to tasks tab");
|
|
41
|
+
i0.ɵɵelementEnd();
|
|
42
|
+
i0.ɵɵelementEnd();
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
} if (rf & 2) {
|
|
45
|
+
i0.ɵɵadvance(16);
|
|
46
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(1, _c0, ctx.caseId));
|
|
47
|
+
} }, directives: [i1.RouterLinkWithHref], encapsulation: 2 });
|
|
48
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipleTasksExistComponent, [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: 'app-multiple-tasks-exist',
|
|
52
|
+
templateUrl: './multiple-tasks-exist.component.html'
|
|
53
|
+
}]
|
|
54
|
+
}], function () { return [{ type: i1.ActivatedRoute }]; }, null); })();
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGlwbGUtdGFza3MtZXhpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2V2ZW50LXN0YXJ0L2NvbXBvbmVudHMvbXVsdGlwbGUtdGFza3MtZXhpc3QvbXVsdGlwbGUtdGFza3MtZXhpc3QuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2V2ZW50LXN0YXJ0L2NvbXBvbmVudHMvbXVsdGlwbGUtdGFza3MtZXhpc3QvbXVsdGlwbGUtdGFza3MtZXhpc3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6I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AgPGEgaHJlZj1cIiNcIj5NdWx0aXBsZSB0YXNrcyBleGlzdDwvYT5cbiAgICAgICAgPC9saT5cbiAgICAgIDwvdWw+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuXG4gIDxkaXYgY2xhc3M9XCJnb3Z1ay1mb3JtLWdyb3VwIGdvdnVrLWZvcm0tZ3JvdXAtLWVycm9yXCI+XG4gICAgPGgyIGNsYXNzPVwiZ292dWstaGVhZGluZy1tXCI+TXVsdGlwbGUgdGFza3MgZXhpc3Q8L2gyPlxuXG4gICAgPHA+WW91J3JlIHN0YXJ0aW5nIHdvcmsgd2hpY2ggY291bGQgY29tcGxldGUgbW9yZSB0aGFuIG9uZSBvZiB0aGUgYWN0aXZlIHRhc2tzIGZvciB0aGlzIGNhc2UuPC9wPlxuXG4gICAgPHA+UmV0dXJuIHRvIHRhc2tzIHRhYiBhbmQgc3RhcnQgdGhlIGV2ZW50IGZyb20gdGhlcmUuPC9wPlxuXG4gICAgPGEgaHJlZj1cImphdmFzY3JpcHQ6dm9pZCgwKVwiIFtyb3V0ZXJMaW5rXT1cIlsnLycsICdjYXNlcycsICdjYXNlLWRldGFpbHMnLCBjYXNlSWQsICd0YXNrcyddXCI+UmV0dXJuIHRvIHRhc2tzIHRhYjwvYT5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/router";
|
|
5
|
+
const _c0 = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
6
|
+
export class NoTasksAvailableComponent {
|
|
7
|
+
constructor(route) {
|
|
8
|
+
this.route = route;
|
|
9
|
+
this.caseId = this.route.snapshot.data.case.case_id;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
NoTasksAvailableComponent.ɵfac = function NoTasksAvailableComponent_Factory(t) { return new (t || NoTasksAvailableComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute)); };
|
|
13
|
+
NoTasksAvailableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoTasksAvailableComponent, selectors: [["app-no-tasks-available"]], decls: 16, vars: 3, consts: [[1, "govuk-!-margin-9"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["href", "#"], [1, "govuk-form-group", "govuk-form-group--error"], [1, "govuk-heading-m"], ["href", "javascript:void(0)", 3, "routerLink"]], template: function NoTasksAvailableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
15
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
16
|
+
i0.ɵɵelementStart(2, "h2", 2);
|
|
17
|
+
i0.ɵɵtext(3, " There is a problem ");
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
20
|
+
i0.ɵɵelementStart(5, "ul", 4);
|
|
21
|
+
i0.ɵɵelementStart(6, "li");
|
|
22
|
+
i0.ɵɵelementStart(7, "a", 5);
|
|
23
|
+
i0.ɵɵtext(8, "No task available");
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
i0.ɵɵelementStart(9, "div", 6);
|
|
30
|
+
i0.ɵɵelementStart(10, "h2", 7);
|
|
31
|
+
i0.ɵɵtext(11, "No task available");
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementStart(12, "p");
|
|
34
|
+
i0.ɵɵtext(13, "You should have an assigned task for this event, but something has gone wrong.");
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
i0.ɵɵelementStart(14, "a", 8);
|
|
37
|
+
i0.ɵɵtext(15, "Return to tasks tab");
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
} if (rf & 2) {
|
|
42
|
+
i0.ɵɵadvance(14);
|
|
43
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(1, _c0, ctx.caseId));
|
|
44
|
+
} }, directives: [i1.RouterLinkWithHref], encapsulation: 2 });
|
|
45
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoTasksAvailableComponent, [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: 'app-no-tasks-available',
|
|
49
|
+
templateUrl: './no-tasks-available.component.html'
|
|
50
|
+
}]
|
|
51
|
+
}], function () { return [{ type: i1.ActivatedRoute }]; }, null); })();
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm8tdGFza3MtYXZhaWxhYmxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9ldmVudC1zdGFydC9jb21wb25lbnRzL25vLXRhc2tzLWF2YWlsYWJsZS9uby10YXNrcy1hdmFpbGFibGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2V2ZW50LXN0YXJ0L2NvbXBvbmVudHMvbm8tdGFza3MtYXZhaWxhYmxl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M9XCJnb3Z1ay1saXN0IGdvdnVrLWVycm9yLXN1bW1hcnlfX2xpc3RcIj5cbiAgICAgICAgPGxpPlxuICAgICAgICAgIDxhIGhyZWY9XCIjXCI+Tm8gdGFzayBhdmFpbGFibGU8L2E+XG4gICAgICAgIDwvbGk+XG4gICAgICA8L3VsPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwiZ292dWstZm9ybS1ncm91cCBnb3Z1ay1mb3JtLWdyb3VwLS1lcnJvclwiPlxuICAgIDxoMiBjbGFzcz1cImdvdnVrLWhlYWRpbmctbVwiPk5vIHRhc2sgYXZhaWxhYmxlPC9oMj5cblxuICAgIDxwPllvdSBzaG91bGQgaGF2ZSBhbiBhc3NpZ25lZCB0YXNrIGZvciB0aGlzIGV2ZW50LCBidXQgc29tZXRoaW5nIGhhcyBnb25lIHdyb25nLjwvcD5cblxuICAgIDxhIGhyZWY9XCJqYXZhc2NyaXB0OnZvaWQoMClcIiBbcm91dGVyTGlua109XCJbJy8nLCAnY2FzZXMnLCAnY2FzZS1kZXRhaWxzJywgY2FzZUlkLCAndGFza3MnXVwiPlJldHVybiB0byB0YXNrcyB0YWI8L2E+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { CaseworkerService } from '../../../case-editor/services/case-worker.service';
|
|
4
|
+
import { JudicialworkerService } from '../../../case-editor/services/judicial-worker.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/router";
|
|
7
|
+
import * as i2 from "../../../case-editor/services/judicial-worker.service";
|
|
8
|
+
import * as i3 from "../../../case-editor/services/case-worker.service";
|
|
9
|
+
import * as i4 from "@angular/common";
|
|
10
|
+
const _c0 = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
11
|
+
function TaskAssignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
13
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
14
|
+
i0.ɵɵelementStart(2, "h2", 3);
|
|
15
|
+
i0.ɵɵtext(3, " There is a problem ");
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
18
|
+
i0.ɵɵelementStart(5, "ul", 5);
|
|
19
|
+
i0.ɵɵelementStart(6, "li");
|
|
20
|
+
i0.ɵɵelementStart(7, "a", 6);
|
|
21
|
+
i0.ɵɵtext(8, "Task assignment required");
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementStart(9, "div", 7);
|
|
28
|
+
i0.ɵɵelementStart(10, "h2", 8);
|
|
29
|
+
i0.ɵɵtext(11, "Task assignment required");
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
i0.ɵɵelementStart(12, "p");
|
|
32
|
+
i0.ɵɵtext(13);
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
i0.ɵɵelementStart(14, "a", 9);
|
|
35
|
+
i0.ɵɵtext(15, "Return to tasks tab");
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
} if (rf & 2) {
|
|
40
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
41
|
+
i0.ɵɵadvance(13);
|
|
42
|
+
i0.ɵɵtextInterpolate1("This task is assigned to ", ctx_r0.assignedUserName, ". You must assign it to yourself to continue.");
|
|
43
|
+
i0.ɵɵadvance(1);
|
|
44
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(2, _c0, ctx_r0.caseId));
|
|
45
|
+
} }
|
|
46
|
+
export class TaskAssignedComponent {
|
|
47
|
+
constructor(route, judicialworkerService, caseworkerService) {
|
|
48
|
+
this.route = route;
|
|
49
|
+
this.judicialworkerService = judicialworkerService;
|
|
50
|
+
this.caseworkerService = caseworkerService;
|
|
51
|
+
this.task = null;
|
|
52
|
+
this.caseId = this.route.snapshot.data.case.case_id;
|
|
53
|
+
this.task = this.route.snapshot.queryParams;
|
|
54
|
+
}
|
|
55
|
+
ngOnInit() {
|
|
56
|
+
// Current user is a caseworker?
|
|
57
|
+
this.caseworkerSubscription = this.caseworkerService.getCaseworkers(this.task.jurisdiction).subscribe(result => {
|
|
58
|
+
if (result && result[0].service === this.task.jurisdiction && result[0].caseworkers) {
|
|
59
|
+
const caseworker = result[0].caseworkers.find(x => x.idamId === this.task.assignee);
|
|
60
|
+
if (caseworker) {
|
|
61
|
+
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (!this.assignedUserName) {
|
|
65
|
+
// Current user is a judicial user?
|
|
66
|
+
this.judicialworkerSubscription =
|
|
67
|
+
this.judicialworkerService.getJudicialworkers([this.task.assignee], this.task.jurisdiction)
|
|
68
|
+
.subscribe(judicialworkers => {
|
|
69
|
+
if (judicialworkers) {
|
|
70
|
+
const judicialworker = judicialworkers.find(x => x.sidam_id === this.task.assignee);
|
|
71
|
+
if (judicialworker) {
|
|
72
|
+
this.assignedUserName = judicialworker.full_name;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (!this.assignedUserName) {
|
|
76
|
+
this.assignedUserName = 'another user';
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
ngOnDestroy() {
|
|
83
|
+
if (this.caseworkerSubscription) {
|
|
84
|
+
this.caseworkerSubscription.unsubscribe();
|
|
85
|
+
}
|
|
86
|
+
if (this.judicialworkerSubscription) {
|
|
87
|
+
this.judicialworkerSubscription.unsubscribe();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
TaskAssignedComponent.ɵfac = function TaskAssignedComponent_Factory(t) { return new (t || TaskAssignedComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.JudicialworkerService), i0.ɵɵdirectiveInject(i3.CaseworkerService)); };
|
|
92
|
+
TaskAssignedComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TaskAssignedComponent, selectors: [["app-task-assigned"]], decls: 1, vars: 1, consts: [["class", "govuk-!-margin-9", 4, "ngIf"], [1, "govuk-!-margin-9"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["href", "#"], [1, "govuk-form-group", "govuk-form-group--error"], [1, "govuk-heading-m"], ["href", "javascript:void(0)", 3, "routerLink"]], template: function TaskAssignedComponent_Template(rf, ctx) { if (rf & 1) {
|
|
93
|
+
i0.ɵɵtemplate(0, TaskAssignedComponent_div_0_Template, 16, 4, "div", 0);
|
|
94
|
+
} if (rf & 2) {
|
|
95
|
+
i0.ɵɵproperty("ngIf", ctx.assignedUserName);
|
|
96
|
+
} }, directives: [i4.NgIf, i1.RouterLinkWithHref], encapsulation: 2 });
|
|
97
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskAssignedComponent, [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{
|
|
100
|
+
selector: 'app-task-assigned',
|
|
101
|
+
templateUrl: './task-assigned.component.html'
|
|
102
|
+
}]
|
|
103
|
+
}], function () { return [{ type: i1.ActivatedRoute }, { type: i2.JudicialworkerService }, { type: i3.CaseworkerService }]; }, null); })();
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,ey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N1bW1hcnlfX2JvZHlcIj5cbiAgICAgIDx1bCBjbGFzcz1cImdvdnVrLWxpc3QgZ292dWstZXJyb3Itc3VtbWFyeV9fbGlzdFwiPlxuICAgICAgICA8bGk+XG4gICAgICAgICAgPGEgaHJlZj1cIiNcIj5UYXNrIGFzc2lnbm1lbnQgcmVxdWlyZWQ8L2E+XG4gICAgICAgIDwvbGk+XG4gICAgICA8L3VsPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwiZ292dWstZm9ybS1ncm91cCBnb3Z1ay1mb3JtLWdyb3VwLS1lcnJvclwiPlxuICAgICAgPGgyIGNsYXNzPVwiZ292dWstaGVhZGluZy1tXCI+VGFzayBhc3NpZ25tZW50IHJlcXVpcmVkPC9oMj5cblxuICAgIDxwPlRoaXMgdGFzayBpcyBhc3NpZ25lZCB0byB7e2Fzc2lnbmVkVXNlck5hbWV9fS4gWW91IG11c3QgYXNzaWduIGl0IHRvIHlvdXJzZWxmIHRvIGNvbnRpbnVlLjwvcD5cblxuICAgIDxhIGhyZWY9XCJqYXZhc2NyaXB0OnZvaWQoMClcIiBbcm91dGVyTGlua109XCJbJy8nLCAnY2FzZXMnLCAnY2FzZS1kZXRhaWxzJywgY2FzZUlkLCAndGFza3MnXVwiPlJldHVybiB0byB0YXNrcyB0YWI8L2E+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/router";
|
|
4
|
+
const _c0 = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
5
|
+
export class TaskCancelledComponent {
|
|
6
|
+
}
|
|
7
|
+
TaskCancelledComponent.ɵfac = function TaskCancelledComponent_Factory(t) { return new (t || TaskCancelledComponent)(); };
|
|
8
|
+
TaskCancelledComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TaskCancelledComponent, selectors: [["app-task-cancelled"]], inputs: { caseId: "caseId" }, decls: 23, vars: 3, consts: [[1, "govuk-!-margin-9"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["href", "#"], [1, "govuk-form-group", "govuk-form-group--error"], [1, "govuk-heading-m"], [1, "form-group", "form-group-related"], ["type", "submit", "data-module", "govuk-button", 1, "govuk-button", "govuk-!-margin-right-2"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "routerLink"]], template: function TaskCancelledComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
10
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
11
|
+
i0.ɵɵelementStart(2, "h2", 2);
|
|
12
|
+
i0.ɵɵtext(3, " There is a problem ");
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
15
|
+
i0.ɵɵelementStart(5, "ul", 4);
|
|
16
|
+
i0.ɵɵelementStart(6, "li");
|
|
17
|
+
i0.ɵɵelementStart(7, "a", 5);
|
|
18
|
+
i0.ɵɵtext(8, "Task cancelled/marked as done");
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementStart(9, "div", 6);
|
|
25
|
+
i0.ɵɵelementStart(10, "h2", 7);
|
|
26
|
+
i0.ɵɵtext(11, "Task cancelled/marked as done");
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
i0.ɵɵelementStart(12, "p");
|
|
29
|
+
i0.ɵɵtext(13, "This task has been cancelled or marked as done.");
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
i0.ɵɵelementStart(14, "p");
|
|
32
|
+
i0.ɵɵtext(15, "Click Continue to complete the task and save your progress.");
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
i0.ɵɵelementStart(16, "p");
|
|
35
|
+
i0.ɵɵtext(17, "Alternatively, click Cancel to return to the tasks tab without saving your progress.");
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
i0.ɵɵelementStart(18, "div", 8);
|
|
38
|
+
i0.ɵɵelementStart(19, "button", 9);
|
|
39
|
+
i0.ɵɵtext(20, "Continue");
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
i0.ɵɵelementStart(21, "a", 10);
|
|
42
|
+
i0.ɵɵtext(22, "Cancel");
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelementEnd();
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
} if (rf & 2) {
|
|
48
|
+
i0.ɵɵadvance(21);
|
|
49
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(1, _c0, ctx.caseId));
|
|
50
|
+
} }, directives: [i1.RouterLinkWithHref], encapsulation: 2 });
|
|
51
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskCancelledComponent, [{
|
|
52
|
+
type: Component,
|
|
53
|
+
args: [{
|
|
54
|
+
selector: 'app-task-cancelled',
|
|
55
|
+
templateUrl: './task-cancelled.component.html'
|
|
56
|
+
}]
|
|
57
|
+
}], null, { caseId: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}] }); })();
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFzay1jYW5jZWxsZWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4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