@hmcts/ccd-case-ui-toolkit 6.14.0-restricted-case-access → 6.14.0-restricted-case-access-v2
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 +821 -653
- 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/form/date-input/date-input.component.js +8 -8
- package/esm2015/lib/components/header/header-bar/header-bar.component.js +2 -3
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.module.js +1 -1
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-validation.model.js +1 -1
- package/esm2015/lib/shared/components/activity/activity.component.js +5 -5
- package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +4 -4
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +4 -4
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
- package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +2 -1
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +3 -3
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +2 -1
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +1 -1
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +2 -1
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +11 -22
- package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +12 -12
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -1
- package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +2 -1
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +5 -5
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -3
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +4 -4
- package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -5
- package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +3 -3
- package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +2 -2
- package/esm2015/lib/shared/components/error/callback-errors.component.js +5 -5
- package/esm2015/lib/shared/components/error/domain/error-context.js +1 -1
- package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +2 -2
- package/esm2015/lib/shared/components/pagination/pagination.component.js +10 -10
- package/esm2015/lib/shared/components/palette/address/address-option.model.js +4 -7
- package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +2 -2
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +2 -2
- package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +12 -5
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +1 -2
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +2 -2
- package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
- package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
- package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +19 -8
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +4 -3
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/index.js +3 -0
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +47 -0
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +153 -0
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +5 -6
- package/esm2015/lib/shared/components/palette/index.js +2 -1
- package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +2 -1
- package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -2
- package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +2 -3
- package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +3 -4
- package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +2 -1
- package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +30 -7
- package/esm2015/lib/shared/components/palette/palette.service.js +5 -3
- package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
- package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +3 -1
- package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
- package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
- package/esm2015/lib/shared/components/search-result/search-result.component.js +5 -5
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
- package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +4 -3
- package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +5 -9
- package/esm2015/lib/shared/domain/addresses/address.model.js +2 -1
- package/esm2015/lib/shared/domain/case-details.model.js +2 -1
- package/esm2015/lib/shared/domain/case-event-data.model.js +2 -1
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +2 -1
- package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +2 -1
- package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -1
- package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-tab.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-view.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
- package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/case-field.model.js +7 -3
- package/esm2015/lib/shared/domain/definition/case-type.model.js +2 -1
- package/esm2015/lib/shared/domain/definition/event-case-field.model.js +2 -1
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/field-type.model.js +2 -1
- package/esm2015/lib/shared/domain/document/document-data.model.js +2 -1
- package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
- package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
- package/esm2015/lib/shared/domain/search/field.model.js +1 -1
- package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
- package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +2 -1
- package/esm2015/lib/shared/domain/search/search-result-view.model.js +2 -1
- package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
- package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +1 -8
- package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
- package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
- package/esm2015/lib/shared/pipes/complex/{cdd-page-fields.pipe.js → ccd-page-fields.pipe.js} +3 -3
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +14 -11
- package/esm2015/lib/shared/pipes/complex/index.js +2 -2
- package/esm2015/lib/shared/services/activity/activity.polling.service.js +2 -2
- package/esm2015/lib/shared/services/activity/activity.service.js +9 -18
- package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
- package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
- package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
- package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
- package/esm2015/lib/shared/services/definitions/definitions.service.js +3 -8
- package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
- package/esm2015/lib/shared/services/fields/fields.utils.js +5 -4
- package/esm2015/lib/shared/services/form/field-type-sanitiser.js +17 -1
- package/esm2015/lib/shared/services/form/form-value.service.js +1 -2
- package/esm2015/lib/shared/services/loading/loading.service.js +2 -7
- package/esm2015/lib/shared/services/search/search.service.js +5 -10
- package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
- package/esm2015/lib/shared/services/window/window.service.js +1 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +761 -609
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
- package/lib/shared/components/case-editor/case-edit/case-edit.component.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-event-completion/case-event-completion.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts +2 -2
- 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 -1
- package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
- package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
- package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -3
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
- package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
- package/lib/shared/components/error/domain/error-context.d.ts +2 -2
- package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
- package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
- package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
- package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +5 -2
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/index.d.ts +0 -1
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
- package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +1 -0
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts +3 -0
- package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts +9 -0
- package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts +17 -0
- package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +1 -1
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +1 -0
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
- package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +60 -59
- 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/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
- package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
- package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
- package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
- package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
- package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
- package/lib/shared/domain/case-details.model.d.ts.map +1 -1
- package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
- package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
- package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +1 -2
- package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
- package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
- package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
- package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
- package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
- package/lib/shared/domain/search/field.model.d.ts.map +1 -1
- package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
- package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
- package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
- package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
- package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +0 -1
- package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
- package/lib/shared/fixture/case-field-builder.d.ts +6 -6
- package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
- package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
- package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
- package/lib/shared/pipes/complex/{cdd-page-fields.pipe.d.ts → ccd-page-fields.pipe.d.ts} +1 -1
- package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/pipes/complex/index.d.ts +1 -1
- package/lib/shared/pipes/pipes.module.d.ts +1 -1
- package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
- package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
- package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
- package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
- package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +0 -1
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/field-type-sanitiser.d.ts +2 -0
- package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
- package/lib/shared/services/loading/loading.service.d.ts +1 -4
- package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
- package/lib/shared/services/search/search.service.d.ts +0 -2
- package/lib/shared/services/search/search.service.d.ts.map +1 -1
- package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
- package/lib/shared/services/window/window.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +0 -72
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +0 -8
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +0 -1
- package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +0 -1
|
@@ -116,13 +116,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
116
116
|
i0.ɵɵadvance(3);
|
|
117
117
|
i0.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
118
118
|
} }
|
|
119
|
-
const _c0
|
|
119
|
+
const _c0$$ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
120
120
|
const _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
121
121
|
class FooterComponent {
|
|
122
122
|
}
|
|
123
123
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
124
124
|
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
125
|
-
i0.ɵɵprojectionDef(_c0
|
|
125
|
+
i0.ɵɵprojectionDef(_c0$$);
|
|
126
126
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
127
127
|
i0.ɵɵelementStart(1, "div", 1);
|
|
128
128
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -189,7 +189,7 @@ function HeaderBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
189
189
|
i0.ɵɵadvance(3);
|
|
190
190
|
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
191
191
|
} }
|
|
192
|
-
const _c0$
|
|
192
|
+
const _c0$_ = [[["", "headerNavigation", ""]]];
|
|
193
193
|
const _c1$r = ["[headerNavigation]"];
|
|
194
194
|
class HeaderBarComponent {
|
|
195
195
|
constructor() {
|
|
@@ -201,7 +201,7 @@ class HeaderBarComponent {
|
|
|
201
201
|
}
|
|
202
202
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
203
203
|
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
204
|
-
i0.ɵɵprojectionDef(_c0$
|
|
204
|
+
i0.ɵɵprojectionDef(_c0$_);
|
|
205
205
|
i0.ɵɵelementStart(0, "header", 0);
|
|
206
206
|
i0.ɵɵelementStart(1, "div", 1);
|
|
207
207
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -258,13 +258,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
258
258
|
type: Output
|
|
259
259
|
}] }); })();
|
|
260
260
|
|
|
261
|
-
const _c0$
|
|
261
|
+
const _c0$Z = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
262
262
|
const _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
263
263
|
class NavigationComponent {
|
|
264
264
|
}
|
|
265
265
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
266
266
|
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
267
|
-
i0.ɵɵprojectionDef(_c0$
|
|
267
|
+
i0.ɵɵprojectionDef(_c0$Z);
|
|
268
268
|
i0.ɵɵelementStart(0, "div");
|
|
269
269
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
270
270
|
i0.ɵɵprojection(2);
|
|
@@ -381,13 +381,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
381
381
|
}]
|
|
382
382
|
}], null, null); })();
|
|
383
383
|
|
|
384
|
-
const _c0$
|
|
384
|
+
const _c0$Y = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
385
385
|
const _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
386
386
|
class BodyComponent {
|
|
387
387
|
}
|
|
388
388
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
389
389
|
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
390
|
-
i0.ɵɵprojectionDef(_c0$
|
|
390
|
+
i0.ɵɵprojectionDef(_c0$Y);
|
|
391
391
|
i0.ɵɵelementStart(0, "div", 0);
|
|
392
392
|
i0.ɵɵprojection(1);
|
|
393
393
|
i0.ɵɵprojection(2, 1);
|
|
@@ -404,7 +404,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
|
|
|
404
404
|
}]
|
|
405
405
|
}], null, null); })();
|
|
406
406
|
|
|
407
|
-
const _c0$
|
|
407
|
+
const _c0$X = function (a0) { return { "govuk-input--error": a0 }; };
|
|
408
408
|
function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
409
409
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
410
410
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -420,7 +420,7 @@ function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
420
420
|
i0.ɵɵadvance(1);
|
|
421
421
|
i0.ɵɵproperty("for", ctx_r3.hourId());
|
|
422
422
|
i0.ɵɵadvance(2);
|
|
423
|
-
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
423
|
+
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$X, ctx_r3.isInvalid));
|
|
424
424
|
} }
|
|
425
425
|
function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
426
426
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
@@ -437,7 +437,7 @@ function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
437
437
|
i0.ɵɵadvance(1);
|
|
438
438
|
i0.ɵɵproperty("for", ctx_r4.minuteId());
|
|
439
439
|
i0.ɵɵadvance(2);
|
|
440
|
-
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
440
|
+
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$X, ctx_r4.isInvalid));
|
|
441
441
|
} }
|
|
442
442
|
function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
443
443
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -454,7 +454,7 @@ function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
454
454
|
i0.ɵɵadvance(1);
|
|
455
455
|
i0.ɵɵproperty("for", ctx_r5.secondId());
|
|
456
456
|
i0.ɵɵadvance(2);
|
|
457
|
-
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
457
|
+
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$X, ctx_r5.isInvalid));
|
|
458
458
|
} }
|
|
459
459
|
class DateInputComponent {
|
|
460
460
|
constructor() {
|
|
@@ -579,22 +579,22 @@ class DateInputComponent {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
dayId() {
|
|
582
|
-
return this.id
|
|
582
|
+
return `${this.id}-day`;
|
|
583
583
|
}
|
|
584
584
|
monthId() {
|
|
585
|
-
return this.id
|
|
585
|
+
return `${this.id}-month`;
|
|
586
586
|
}
|
|
587
587
|
yearId() {
|
|
588
|
-
return this.id
|
|
588
|
+
return `${this.id}-year`;
|
|
589
589
|
}
|
|
590
590
|
hourId() {
|
|
591
|
-
return this.id
|
|
591
|
+
return `${this.id}-hour`;
|
|
592
592
|
}
|
|
593
593
|
minuteId() {
|
|
594
|
-
return this.id
|
|
594
|
+
return `${this.id}-minute`;
|
|
595
595
|
}
|
|
596
596
|
secondId() {
|
|
597
|
-
return this.id
|
|
597
|
+
return `${this.id}-second`;
|
|
598
598
|
}
|
|
599
599
|
viewValue() {
|
|
600
600
|
if (this.day || this.month || this.year || this.hour || this.minute || this.second) {
|
|
@@ -609,7 +609,7 @@ class DateInputComponent {
|
|
|
609
609
|
this.minute ? this.pad(this.minute) : '',
|
|
610
610
|
this.second ? this.pad(this.second) : ''
|
|
611
611
|
].join(':');
|
|
612
|
-
return date
|
|
612
|
+
return `${date}T${time}.000`;
|
|
613
613
|
}
|
|
614
614
|
else {
|
|
615
615
|
return date;
|
|
@@ -683,15 +683,15 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
|
|
|
683
683
|
i0.ɵɵadvance(2);
|
|
684
684
|
i0.ɵɵproperty("for", ctx.dayId());
|
|
685
685
|
i0.ɵɵadvance(2);
|
|
686
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$
|
|
686
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$X, ctx.isInvalid));
|
|
687
687
|
i0.ɵɵadvance(3);
|
|
688
688
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
689
689
|
i0.ɵɵadvance(2);
|
|
690
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$
|
|
690
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$X, ctx.isInvalid));
|
|
691
691
|
i0.ɵɵadvance(3);
|
|
692
692
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
693
693
|
i0.ɵɵadvance(2);
|
|
694
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$
|
|
694
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$X, ctx.isInvalid));
|
|
695
695
|
i0.ɵɵadvance(2);
|
|
696
696
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
697
697
|
i0.ɵɵadvance(1);
|
|
@@ -761,7 +761,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
761
761
|
i0.ɵɵelementEnd();
|
|
762
762
|
i0.ɵɵelementContainerEnd();
|
|
763
763
|
} }
|
|
764
|
-
const _c0$
|
|
764
|
+
const _c0$W = ["*"];
|
|
765
765
|
var AlertMessageType;
|
|
766
766
|
(function (AlertMessageType) {
|
|
767
767
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -781,7 +781,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
|
|
|
781
781
|
AlertComponent.TYPE_ERROR = 'error';
|
|
782
782
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
783
783
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
784
|
-
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
784
|
+
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$W, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
785
785
|
i0.ɵɵprojectionDef();
|
|
786
786
|
i0.ɵɵelementStart(0, "div", 0);
|
|
787
787
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1012,7 +1012,7 @@ NotificationBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationB
|
|
|
1012
1012
|
type: Output
|
|
1013
1013
|
}] }); })();
|
|
1014
1014
|
|
|
1015
|
-
const _c0$
|
|
1015
|
+
const _c0$V = function (a0) { return { "js-hidden": a0 }; };
|
|
1016
1016
|
const _c1$o = ["*"];
|
|
1017
1017
|
class TabComponent {
|
|
1018
1018
|
}
|
|
@@ -1023,7 +1023,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1023
1023
|
i0.ɵɵprojection(1);
|
|
1024
1024
|
i0.ɵɵelementEnd();
|
|
1025
1025
|
} if (rf & 2) {
|
|
1026
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
1026
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$V, !ctx.selected));
|
|
1027
1027
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1028
1028
|
} }, directives: [i1.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
1029
1029
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
|
|
@@ -1043,7 +1043,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1043
1043
|
type: Input
|
|
1044
1044
|
}] }); })();
|
|
1045
1045
|
|
|
1046
|
-
const _c0$
|
|
1046
|
+
const _c0$U = ["tab"];
|
|
1047
1047
|
const _c1$n = function () { return ["."]; };
|
|
1048
1048
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1049
1049
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1088,7 +1088,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
|
|
|
1088
1088
|
let _t;
|
|
1089
1089
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1090
1090
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1091
|
-
i0.ɵɵviewQuery(_c0$
|
|
1091
|
+
i0.ɵɵviewQuery(_c0$U, 1);
|
|
1092
1092
|
} if (rf & 2) {
|
|
1093
1093
|
let _t;
|
|
1094
1094
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1153,7 +1153,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
1153
1153
|
}]
|
|
1154
1154
|
}], null, null); })();
|
|
1155
1155
|
|
|
1156
|
-
const _c0$
|
|
1156
|
+
const _c0$T = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1157
1157
|
class ActivityBannerComponent {
|
|
1158
1158
|
constructor() { }
|
|
1159
1159
|
ngOnInit() {
|
|
@@ -1170,7 +1170,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
|
|
|
1170
1170
|
i0.ɵɵelementEnd();
|
|
1171
1171
|
i0.ɵɵelementEnd();
|
|
1172
1172
|
} if (rf & 2) {
|
|
1173
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$
|
|
1173
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$T, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1174
1174
|
i0.ɵɵadvance(2);
|
|
1175
1175
|
i0.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1176
1176
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -1521,7 +1521,7 @@ class ActivityService {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
static handleHttpError(response) {
|
|
1523
1523
|
const error = HttpErrorService.convertToHttpError(response);
|
|
1524
|
-
if (response
|
|
1524
|
+
if ((response === null || response === void 0 ? void 0 : response.status) !== error.status) {
|
|
1525
1525
|
error.status = response.status;
|
|
1526
1526
|
}
|
|
1527
1527
|
return error;
|
|
@@ -1529,50 +1529,41 @@ class ActivityService {
|
|
|
1529
1529
|
getOptions() {
|
|
1530
1530
|
const userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
1531
1531
|
const headers = new HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
|
|
1532
|
-
|
|
1532
|
+
return {
|
|
1533
1533
|
headers,
|
|
1534
1534
|
withCredentials: true,
|
|
1535
1535
|
observe: 'body',
|
|
1536
1536
|
};
|
|
1537
|
-
return options;
|
|
1538
1537
|
}
|
|
1539
1538
|
getActivities(...caseId) {
|
|
1540
1539
|
try {
|
|
1541
1540
|
const options = this.getOptions();
|
|
1542
|
-
const url = this.activityUrl()
|
|
1541
|
+
const url = `${this.activityUrl()}/cases/${caseId.join(',')}/activity`;
|
|
1543
1542
|
return this.http
|
|
1544
1543
|
.get(url, options, false, ActivityService.handleHttpError)
|
|
1545
1544
|
.pipe(map(response => response));
|
|
1546
1545
|
}
|
|
1547
1546
|
catch (error) {
|
|
1548
|
-
console.log(
|
|
1547
|
+
console.log(`user may not be authenticated.${error}`);
|
|
1549
1548
|
}
|
|
1550
1549
|
}
|
|
1551
1550
|
postActivity(caseId, activity) {
|
|
1552
1551
|
try {
|
|
1553
1552
|
const options = this.getOptions();
|
|
1554
|
-
const url = this.activityUrl()
|
|
1553
|
+
const url = `${this.activityUrl()}/cases/${caseId}/activity`;
|
|
1555
1554
|
const body = { activity };
|
|
1556
1555
|
return this.http
|
|
1557
1556
|
.post(url, body, options, false)
|
|
1558
1557
|
.pipe(map(response => response));
|
|
1559
1558
|
}
|
|
1560
1559
|
catch (error) {
|
|
1561
|
-
console.log(
|
|
1560
|
+
console.log(`user may not be authenticated.${error}`);
|
|
1562
1561
|
}
|
|
1563
1562
|
}
|
|
1564
1563
|
verifyUserIsAuthorized() {
|
|
1565
|
-
if (this.sessionStorageService.getItem('userDetails') === undefined) {
|
|
1566
|
-
return;
|
|
1567
|
-
}
|
|
1568
|
-
if (this.activityUrl() && this.userAuthorised === undefined) {
|
|
1564
|
+
if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
|
|
1569
1565
|
this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(() => this.userAuthorised = true, error => {
|
|
1570
|
-
|
|
1571
|
-
this.userAuthorised = false;
|
|
1572
|
-
}
|
|
1573
|
-
else {
|
|
1574
|
-
this.userAuthorised = true;
|
|
1575
|
-
}
|
|
1566
|
+
this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
|
|
1576
1567
|
});
|
|
1577
1568
|
}
|
|
1578
1569
|
}
|
|
@@ -1671,7 +1662,7 @@ class ActivityPollingService {
|
|
|
1671
1662
|
requests.get(activity.caseId).next(activity);
|
|
1672
1663
|
});
|
|
1673
1664
|
}, (err) => {
|
|
1674
|
-
console.log(
|
|
1665
|
+
console.log(`error: ${err}`);
|
|
1675
1666
|
Array.from(requests.values()).forEach((subject) => subject.error(err));
|
|
1676
1667
|
}));
|
|
1677
1668
|
});
|
|
@@ -1792,9 +1783,9 @@ class ActivityComponent {
|
|
|
1792
1783
|
}
|
|
1793
1784
|
generateDescription(prefix, suffix, namesArray, unknownCount) {
|
|
1794
1785
|
let resultText = prefix;
|
|
1795
|
-
resultText += namesArray.map(activityInfo => activityInfo.forename
|
|
1786
|
+
resultText += namesArray.map(activityInfo => `${activityInfo.forename} ${activityInfo.surname}`).join(', ');
|
|
1796
1787
|
if (unknownCount > 0) {
|
|
1797
|
-
resultText += (namesArray.length > 0 ?
|
|
1788
|
+
resultText += (namesArray.length > 0 ? ` and ${unknownCount} other` : `${unknownCount} user`);
|
|
1798
1789
|
resultText += (unknownCount > 1 ? 's' : '');
|
|
1799
1790
|
}
|
|
1800
1791
|
else {
|
|
@@ -1802,10 +1793,10 @@ class ActivityComponent {
|
|
|
1802
1793
|
}
|
|
1803
1794
|
if (suffix.length > 0) {
|
|
1804
1795
|
if (namesArray.length + unknownCount > 1) {
|
|
1805
|
-
resultText +=
|
|
1796
|
+
resultText += ` are ${suffix}`;
|
|
1806
1797
|
}
|
|
1807
1798
|
else {
|
|
1808
|
-
resultText +=
|
|
1799
|
+
resultText += ` is ${suffix}`;
|
|
1809
1800
|
}
|
|
1810
1801
|
}
|
|
1811
1802
|
return resultText;
|
|
@@ -2318,7 +2309,7 @@ class FormatTranslatorService {
|
|
|
2318
2309
|
break;
|
|
2319
2310
|
case 'n':
|
|
2320
2311
|
case 'N':
|
|
2321
|
-
maybePush(result,
|
|
2312
|
+
maybePush(result, `***${c}***`, inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
|
|
2322
2313
|
break;
|
|
2323
2314
|
case 'V':
|
|
2324
2315
|
case 'O':
|
|
@@ -2441,9 +2432,9 @@ class DatePipe {
|
|
|
2441
2432
|
resultDate = `${offsetDate.getDate()} ${DatePipe.MONTHS[offsetDate.getMonth()]} ${offsetDate.getFullYear()}`;
|
|
2442
2433
|
if (match[4] && match[5] && match[6] && format !== 'short') {
|
|
2443
2434
|
resultDate += ', ';
|
|
2444
|
-
resultDate += this.getHour(offsetDate.getHours().toString())
|
|
2445
|
-
resultDate += this.pad(offsetDate.getMinutes())
|
|
2446
|
-
resultDate += this.pad(offsetDate.getSeconds())
|
|
2435
|
+
resultDate += `${this.getHour(offsetDate.getHours().toString())}:`;
|
|
2436
|
+
resultDate += `${this.pad(offsetDate.getMinutes())}:`;
|
|
2437
|
+
resultDate += `${this.pad(offsetDate.getSeconds())} `;
|
|
2447
2438
|
resultDate += (this.toInt(offsetDate.getHours().toString()) >= 12) ? 'PM' : 'AM';
|
|
2448
2439
|
}
|
|
2449
2440
|
}
|
|
@@ -2778,6 +2769,7 @@ PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
2778
2769
|
}]
|
|
2779
2770
|
}], null, null); })();
|
|
2780
2771
|
|
|
2772
|
+
// tslint:disable:variable-name
|
|
2781
2773
|
class AddressModel {
|
|
2782
2774
|
constructor() {
|
|
2783
2775
|
this.AddressLine1 = '';
|
|
@@ -2821,9 +2813,12 @@ class CaseField {
|
|
|
2821
2813
|
this._list_items = [];
|
|
2822
2814
|
}
|
|
2823
2815
|
get value() {
|
|
2824
|
-
if (this.
|
|
2816
|
+
if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
|
|
2825
2817
|
return this._value && this._value.value ? this._value.value.code : this._value;
|
|
2826
2818
|
}
|
|
2819
|
+
else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
|
|
2820
|
+
return this._value && this._value.value ? this._value.value : this._value;
|
|
2821
|
+
}
|
|
2827
2822
|
else {
|
|
2828
2823
|
return this._value;
|
|
2829
2824
|
}
|
|
@@ -2897,7 +2892,7 @@ class CaseField {
|
|
|
2897
2892
|
return this.field_type && this.field_type.type === 'Complex';
|
|
2898
2893
|
}
|
|
2899
2894
|
isDynamic() {
|
|
2900
|
-
const dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
|
|
2895
|
+
const dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
|
|
2901
2896
|
if (!this.field_type) {
|
|
2902
2897
|
return false;
|
|
2903
2898
|
}
|
|
@@ -3046,6 +3041,7 @@ __decorate([
|
|
|
3046
3041
|
__metadata("design:type", Array)
|
|
3047
3042
|
], CaseEventTrigger.prototype, "wizard_pages", void 0);
|
|
3048
3043
|
|
|
3044
|
+
// tslint:disable:variable-name
|
|
3049
3045
|
class CaseViewEvent {
|
|
3050
3046
|
}
|
|
3051
3047
|
|
|
@@ -3072,6 +3068,7 @@ __decorate([
|
|
|
3072
3068
|
__metadata("design:type", Array)
|
|
3073
3069
|
], CaseType.prototype, "case_fields", void 0);
|
|
3074
3070
|
|
|
3071
|
+
// tslint:disable:variable-name
|
|
3075
3072
|
class EventCaseField {
|
|
3076
3073
|
}
|
|
3077
3074
|
|
|
@@ -3104,6 +3101,7 @@ __decorate([
|
|
|
3104
3101
|
class CasePrintDocument {
|
|
3105
3102
|
}
|
|
3106
3103
|
|
|
3104
|
+
// tslint:disable:variable-name
|
|
3107
3105
|
class HRef {
|
|
3108
3106
|
}
|
|
3109
3107
|
class DocumentLinks {
|
|
@@ -3121,25 +3119,25 @@ class OrganisationConverter {
|
|
|
3121
3119
|
static toSimpleAddress(organisationModel) {
|
|
3122
3120
|
let simpleAddress = '';
|
|
3123
3121
|
if (organisationModel.addressLine1) {
|
|
3124
|
-
simpleAddress += organisationModel.addressLine1
|
|
3122
|
+
simpleAddress += `${organisationModel.addressLine1}<br>`;
|
|
3125
3123
|
}
|
|
3126
3124
|
if (organisationModel.addressLine2) {
|
|
3127
|
-
simpleAddress += organisationModel.addressLine2
|
|
3125
|
+
simpleAddress += `${organisationModel.addressLine2}<br>`;
|
|
3128
3126
|
}
|
|
3129
3127
|
if (organisationModel.addressLine3) {
|
|
3130
|
-
simpleAddress += organisationModel.addressLine3
|
|
3128
|
+
simpleAddress += `${organisationModel.addressLine3}<br>`;
|
|
3131
3129
|
}
|
|
3132
3130
|
if (organisationModel.townCity) {
|
|
3133
|
-
simpleAddress += organisationModel.townCity
|
|
3131
|
+
simpleAddress += `${organisationModel.townCity}<br>`;
|
|
3134
3132
|
}
|
|
3135
3133
|
if (organisationModel.county) {
|
|
3136
|
-
simpleAddress += organisationModel.county
|
|
3134
|
+
simpleAddress += `${organisationModel.county}<br>`;
|
|
3137
3135
|
}
|
|
3138
3136
|
if (organisationModel.country) {
|
|
3139
|
-
simpleAddress += organisationModel.country
|
|
3137
|
+
simpleAddress += `${organisationModel.country}<br>`;
|
|
3140
3138
|
}
|
|
3141
3139
|
if (organisationModel.postCode) {
|
|
3142
|
-
simpleAddress += organisationModel.postCode
|
|
3140
|
+
simpleAddress += `${organisationModel.postCode}<br>`;
|
|
3143
3141
|
}
|
|
3144
3142
|
return simpleAddress;
|
|
3145
3143
|
}
|
|
@@ -3222,20 +3220,15 @@ __decorate([
|
|
|
3222
3220
|
__metadata("design:type", Array)
|
|
3223
3221
|
], SearchResultView.prototype, "results", void 0);
|
|
3224
3222
|
|
|
3223
|
+
// tslint:disable:variable-name
|
|
3225
3224
|
class CaseDetails {
|
|
3226
3225
|
}
|
|
3227
3226
|
|
|
3227
|
+
// tslint:disable:variable-name
|
|
3228
3228
|
class CaseEventData {
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
3231
|
class WorkbasketInputModel {
|
|
3232
|
-
constructor(label, order, field, metadata, display_context_parameter) {
|
|
3233
|
-
this.label = label;
|
|
3234
|
-
this.order = order;
|
|
3235
|
-
this.field = field;
|
|
3236
|
-
this.metadata = metadata;
|
|
3237
|
-
this.display_context_parameter = display_context_parameter;
|
|
3238
|
-
}
|
|
3239
3232
|
}
|
|
3240
3233
|
class WorkbasketInput {
|
|
3241
3234
|
}
|
|
@@ -3272,9 +3265,9 @@ class FieldsUtils {
|
|
|
3272
3265
|
});
|
|
3273
3266
|
return valueMap;
|
|
3274
3267
|
}
|
|
3275
|
-
static getType(elem) {
|
|
3276
|
-
|
|
3277
|
-
}
|
|
3268
|
+
// public static getType(elem: any): string {
|
|
3269
|
+
// return Object.prototype.toString.call(elem).slice(8, -1);
|
|
3270
|
+
// }
|
|
3278
3271
|
static isObject(elem) {
|
|
3279
3272
|
return typeof elem === 'object' && elem !== null;
|
|
3280
3273
|
}
|
|
@@ -3774,6 +3767,7 @@ FieldsUtils.LABEL_MERGE_FUNCTION = function mergeFunction(field, result) {
|
|
|
3774
3767
|
const elements = (result[field.id] || field.value);
|
|
3775
3768
|
if (elements) {
|
|
3776
3769
|
elements.forEach((elem) => {
|
|
3770
|
+
// tslint:disable-next-line:switch-default
|
|
3777
3771
|
switch (field.field_type.collection_field_type.type) {
|
|
3778
3772
|
case 'MoneyGBP': {
|
|
3779
3773
|
elem.value = FieldsUtils.getMoneyGBP(elem.value);
|
|
@@ -3918,7 +3912,6 @@ class ConditionParser {
|
|
|
3918
3912
|
if (!condition) {
|
|
3919
3913
|
return null;
|
|
3920
3914
|
}
|
|
3921
|
-
;
|
|
3922
3915
|
condition = condition.replace(/CONTAINS/g, ' CONTAINS');
|
|
3923
3916
|
return peg.parse(condition.trim(), {});
|
|
3924
3917
|
}
|
|
@@ -3931,14 +3924,12 @@ class ConditionParser {
|
|
|
3931
3924
|
if (!conditions || conditions.length === 0) {
|
|
3932
3925
|
return true;
|
|
3933
3926
|
}
|
|
3934
|
-
;
|
|
3935
3927
|
const validJoinComparators = ['AND', 'OR'];
|
|
3936
|
-
|
|
3928
|
+
return conditions.reduce((accumulator, condition, index) => {
|
|
3937
3929
|
const isJoinComparator = (comparator) => (typeof comparator === 'string' && validJoinComparators.indexOf(comparator) !== -1);
|
|
3938
3930
|
if (isJoinComparator(condition)) {
|
|
3939
3931
|
return accumulator;
|
|
3940
3932
|
}
|
|
3941
|
-
;
|
|
3942
3933
|
let currentConditionResult = true;
|
|
3943
3934
|
if (Array.isArray(condition)) {
|
|
3944
3935
|
currentConditionResult = this.evaluate(fields, condition);
|
|
@@ -3955,9 +3946,9 @@ class ConditionParser {
|
|
|
3955
3946
|
}
|
|
3956
3947
|
return currentConditionResult;
|
|
3957
3948
|
}, true);
|
|
3958
|
-
return result;
|
|
3959
3949
|
}
|
|
3960
3950
|
static evaluateJoin(leftResult, comparator, rightResult) {
|
|
3951
|
+
// tslint:disable-next-line:switch-default
|
|
3961
3952
|
switch (comparator) {
|
|
3962
3953
|
case 'OR': return leftResult || rightResult;
|
|
3963
3954
|
case 'AND': return leftResult && rightResult;
|
|
@@ -4047,8 +4038,7 @@ class ConditionParser {
|
|
|
4047
4038
|
}
|
|
4048
4039
|
}
|
|
4049
4040
|
static unquoted(str) {
|
|
4050
|
-
|
|
4051
|
-
return res;
|
|
4041
|
+
return str.replace(/^"|"$/g, '');
|
|
4052
4042
|
}
|
|
4053
4043
|
static findValueForComplexCondition(fields, head, tail, path) {
|
|
4054
4044
|
if (!fields) {
|
|
@@ -4160,8 +4150,8 @@ class ShowCondition {
|
|
|
4160
4150
|
if (originalCondition.indexOf(condition.fieldReference) > -1) {
|
|
4161
4151
|
if (this.processedList && this.processedList.indexOf(condition.fieldReference) === -1) {
|
|
4162
4152
|
this.processedList.push(condition.fieldReference);
|
|
4163
|
-
const regularExp = new RegExp(
|
|
4164
|
-
return originalCondition.replace(regularExp, pathPrefix
|
|
4153
|
+
const regularExp = new RegExp(`(\\b)${condition.fieldReference}(?=[^"]*(?:"[^"]*"[^"]*)*$)(\\b)`, 'g');
|
|
4154
|
+
return originalCondition.replace(regularExp, `${pathPrefix}.${condition.fieldReference}`);
|
|
4165
4155
|
}
|
|
4166
4156
|
else {
|
|
4167
4157
|
return originalCondition;
|
|
@@ -4238,6 +4228,7 @@ class ShowCondition {
|
|
|
4238
4228
|
}
|
|
4239
4229
|
// Consider what type of field this is.
|
|
4240
4230
|
const ft = caseField.field_type;
|
|
4231
|
+
// tslint:disable-next-line:switch-default
|
|
4241
4232
|
switch (ft.type) {
|
|
4242
4233
|
case 'Collection':
|
|
4243
4234
|
if (ft.collection_field_type.type === 'Complex' && ft.collection_field_type.complex_fields) {
|
|
@@ -4683,14 +4674,14 @@ class FieldsPurger {
|
|
|
4683
4674
|
const formFields = form.getRawValue();
|
|
4684
4675
|
const currentPage = wizard.getPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
|
|
4685
4676
|
currentPage.wizard_page_fields.forEach(wpf => {
|
|
4686
|
-
const
|
|
4687
|
-
if (this.hasShowConditionField(
|
|
4688
|
-
const condition = new ShowCondition(
|
|
4689
|
-
if (this.isHidden(condition, formFields.data) && !(this.isReadonly(
|
|
4690
|
-
this.resetField(form,
|
|
4677
|
+
const caseField = this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
|
|
4678
|
+
if (this.hasShowConditionField(caseField, formFields)) {
|
|
4679
|
+
const condition = new ShowCondition(caseField.show_condition);
|
|
4680
|
+
if (this.isHidden(condition, formFields.data) && !(this.isReadonly(caseField))) {
|
|
4681
|
+
this.resetField(form, caseField);
|
|
4691
4682
|
}
|
|
4692
4683
|
}
|
|
4693
|
-
this.retainHiddenValueByFieldType(
|
|
4684
|
+
this.retainHiddenValueByFieldType(caseField, form);
|
|
4694
4685
|
});
|
|
4695
4686
|
}
|
|
4696
4687
|
retainHiddenValueByFieldType(field, form) {
|
|
@@ -4721,13 +4712,13 @@ class FieldsPurger {
|
|
|
4721
4712
|
hasShowConditionPage(wizardPage, formFields) {
|
|
4722
4713
|
return wizardPage.show_condition && formFields[this.getShowConditionKey(wizardPage.show_condition)];
|
|
4723
4714
|
}
|
|
4724
|
-
hasShowConditionField(
|
|
4725
|
-
return
|
|
4715
|
+
hasShowConditionField(caseField, formFields) {
|
|
4716
|
+
return caseField.show_condition && formFields.data[this.getShowConditionKey(caseField.show_condition)];
|
|
4726
4717
|
}
|
|
4727
|
-
getShowConditionKey(
|
|
4718
|
+
getShowConditionKey(showCondition) {
|
|
4728
4719
|
// Need to allow for negated conditions, i.e. !=, as well as regular ones (=)
|
|
4729
4720
|
// Also need to allow for conditions specified using the "CONTAINS" keyword
|
|
4730
|
-
return
|
|
4721
|
+
return showCondition.split(/!=|=|CONTAINS/)[0];
|
|
4731
4722
|
}
|
|
4732
4723
|
resetField(form, field) {
|
|
4733
4724
|
/**
|
|
@@ -4799,8 +4790,8 @@ class FieldsPurger {
|
|
|
4799
4790
|
}
|
|
4800
4791
|
resetPage(form, wizardPage) {
|
|
4801
4792
|
wizardPage.wizard_page_fields.forEach(wpf => {
|
|
4802
|
-
const
|
|
4803
|
-
this.resetField(form,
|
|
4793
|
+
const caseField = this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
|
|
4794
|
+
this.resetField(form, caseField);
|
|
4804
4795
|
});
|
|
4805
4796
|
}
|
|
4806
4797
|
getType(elem) {
|
|
@@ -4810,8 +4801,8 @@ class FieldsPurger {
|
|
|
4810
4801
|
return this.getType(elem) === 'Object';
|
|
4811
4802
|
}
|
|
4812
4803
|
// TODO: call isReadOnly on CaseFields once we make it available
|
|
4813
|
-
isReadonly(
|
|
4814
|
-
return
|
|
4804
|
+
isReadonly(caseField) {
|
|
4805
|
+
return caseField.display_context.toUpperCase() === 'READONLY';
|
|
4815
4806
|
}
|
|
4816
4807
|
/**
|
|
4817
4808
|
* Deletes a field value by setting the value of the corresponding {@link FormControl} to null (or an empty array
|
|
@@ -4967,7 +4958,11 @@ class FieldTypeSanitiser {
|
|
|
4967
4958
|
return;
|
|
4968
4959
|
}
|
|
4969
4960
|
caseFields.forEach(caseField => {
|
|
4961
|
+
// tslint:disable-next-line:switch-default
|
|
4970
4962
|
switch (caseField.field_type.type) {
|
|
4963
|
+
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
|
|
4964
|
+
this.convertArrayToDynamicListOutput(caseField, data);
|
|
4965
|
+
break;
|
|
4971
4966
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
|
|
4972
4967
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
|
|
4973
4968
|
this.convertStringToDynamicListOutput(caseField, data);
|
|
@@ -4985,6 +4980,17 @@ class FieldTypeSanitiser {
|
|
|
4985
4980
|
}
|
|
4986
4981
|
});
|
|
4987
4982
|
}
|
|
4983
|
+
convertArrayToDynamicListOutput(field, data) {
|
|
4984
|
+
const values = data[field.id];
|
|
4985
|
+
if (Array.isArray(values)) {
|
|
4986
|
+
const listItems = this.getListItems(field);
|
|
4987
|
+
const matches = listItems.filter(item => values.map(v => v.code).indexOf(item.code) !== -1);
|
|
4988
|
+
data[field.id] = {
|
|
4989
|
+
value: matches,
|
|
4990
|
+
list_items: listItems
|
|
4991
|
+
};
|
|
4992
|
+
}
|
|
4993
|
+
}
|
|
4988
4994
|
convertStringToDynamicListOutput(field, data) {
|
|
4989
4995
|
const stringValue = data[field.id];
|
|
4990
4996
|
if (typeof stringValue === 'string') {
|
|
@@ -5014,6 +5020,7 @@ FieldTypeSanitiser.FIELD_TYPE_COMPLEX = 'Complex';
|
|
|
5014
5020
|
FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
|
|
5015
5021
|
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
|
|
5016
5022
|
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
|
|
5023
|
+
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
|
|
5017
5024
|
FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
|
|
5018
5025
|
FieldTypeSanitiser.ɵprov = i0.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
|
|
5019
5026
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldTypeSanitiser, [{
|
|
@@ -5528,7 +5535,6 @@ class FormValueService {
|
|
|
5528
5535
|
});
|
|
5529
5536
|
}
|
|
5530
5537
|
}
|
|
5531
|
-
;
|
|
5532
5538
|
});
|
|
5533
5539
|
}
|
|
5534
5540
|
}
|
|
@@ -5942,7 +5948,7 @@ class AddressParser {
|
|
|
5942
5948
|
return addressModel;
|
|
5943
5949
|
}
|
|
5944
5950
|
parseAddressLine1(classification, address) {
|
|
5945
|
-
let addressLine
|
|
5951
|
+
let addressLine;
|
|
5946
5952
|
if (classification === AddressType.RD06) {
|
|
5947
5953
|
addressLine =
|
|
5948
5954
|
`${address.SUB_BUILDING_NAME} ${address.ORGANISATION_NAME} ${address.DEPARTMENT_NAME} ${address.PO_BOX_NUMBER}`;
|
|
@@ -5955,7 +5961,7 @@ class AddressParser {
|
|
|
5955
5961
|
return this.removeNonAddressValues(addressLine);
|
|
5956
5962
|
}
|
|
5957
5963
|
parseAddressLine2(classification, address) {
|
|
5958
|
-
let addressLine
|
|
5964
|
+
let addressLine;
|
|
5959
5965
|
if (classification === AddressType.RD06) {
|
|
5960
5966
|
addressLine = `${address.BUILDING_NAME} `;
|
|
5961
5967
|
}
|
|
@@ -5966,7 +5972,7 @@ class AddressParser {
|
|
|
5966
5972
|
return this.removeNonAddressValues(addressLine);
|
|
5967
5973
|
}
|
|
5968
5974
|
parseAddressLine3(classification, address) {
|
|
5969
|
-
let addressLine
|
|
5975
|
+
let addressLine;
|
|
5970
5976
|
if (classification === AddressType.RD06) {
|
|
5971
5977
|
addressLine =
|
|
5972
5978
|
`${address.BUILDING_NUMBER} ${address.THOROUGHFARE_NAME}`;
|
|
@@ -5994,7 +6000,7 @@ class AddressParser {
|
|
|
5994
6000
|
return value.replace(new RegExp('^,', 'gi'), '');
|
|
5995
6001
|
}
|
|
5996
6002
|
prefixWithCommaIfPresent(value) {
|
|
5997
|
-
return value ?
|
|
6003
|
+
return value ? `, ${value}` : value;
|
|
5998
6004
|
}
|
|
5999
6005
|
}
|
|
6000
6006
|
|
|
@@ -6103,7 +6109,7 @@ class CaseFlagRefdataService {
|
|
|
6103
6109
|
if (flagType) {
|
|
6104
6110
|
url += `?flag-type=${flagType}`;
|
|
6105
6111
|
}
|
|
6106
|
-
if (welshRequired
|
|
6112
|
+
if (typeof welshRequired === 'boolean') {
|
|
6107
6113
|
// Check if flag-type has been added to the query string; if so, append welsh-required with '&'
|
|
6108
6114
|
url.indexOf('?') > -1 ? url += '&' : url += '?';
|
|
6109
6115
|
welshRequired ? url += 'welsh-required=Y' : url += 'welsh-required=N';
|
|
@@ -6560,11 +6566,6 @@ RequestOptionsBuilder.ɵprov = i0.ɵɵdefineInjectable({ token: RequestOptionsBu
|
|
|
6560
6566
|
type: Injectable
|
|
6561
6567
|
}], null, null); })();
|
|
6562
6568
|
|
|
6563
|
-
class HasLoadingState {
|
|
6564
|
-
get isLoading() {
|
|
6565
|
-
return;
|
|
6566
|
-
}
|
|
6567
|
-
}
|
|
6568
6569
|
class LoadingService {
|
|
6569
6570
|
constructor() {
|
|
6570
6571
|
this.registered = new Map();
|
|
@@ -6585,7 +6586,7 @@ class LoadingService {
|
|
|
6585
6586
|
}
|
|
6586
6587
|
generateToken() {
|
|
6587
6588
|
const timestamp = window.performance.now();
|
|
6588
|
-
return
|
|
6589
|
+
return `toolkit-loading-${timestamp}`; // format: [source-library]-[unique incrementing number]
|
|
6589
6590
|
}
|
|
6590
6591
|
}
|
|
6591
6592
|
LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
|
|
@@ -6602,10 +6603,7 @@ class SearchService {
|
|
|
6602
6603
|
this.loadingService = loadingService;
|
|
6603
6604
|
}
|
|
6604
6605
|
search(jurisdictionId, caseTypeId, metaCriteria, caseCriteria, view) {
|
|
6605
|
-
const url = this.appConfig.getApiUrl()
|
|
6606
|
-
+ `/jurisdictions/${jurisdictionId}`
|
|
6607
|
-
+ `/case-types/${caseTypeId}`
|
|
6608
|
-
+ `/cases`;
|
|
6606
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types/${caseTypeId}/cases`;
|
|
6609
6607
|
const options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
|
|
6610
6608
|
const loadingToken = this.loadingService.register();
|
|
6611
6609
|
return this.httpService
|
|
@@ -6613,14 +6611,13 @@ class SearchService {
|
|
|
6613
6611
|
.pipe(map(response => response), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
6614
6612
|
}
|
|
6615
6613
|
searchCasesByIds(caseTypeId, filter, view, sort) {
|
|
6616
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
6617
|
-
`/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
|
|
6614
|
+
const url = `${this.appConfig.getCaseDataUrl()}/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
|
|
6618
6615
|
const body = Object.assign(Object.assign({ sort }, filter), { size: this.appConfig.getPaginationPageSize() });
|
|
6619
6616
|
const loadingToken = this.loadingService.register();
|
|
6620
6617
|
return this.httpService.post(url, body).pipe(map((response) => response), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
6621
6618
|
}
|
|
6622
6619
|
searchCases(caseTypeId, metaCriteria, caseCriteria, view, sort) {
|
|
6623
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
6620
|
+
const url = `${this.appConfig.getCaseDataUrl()}/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
|
|
6624
6621
|
const options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
|
|
6625
6622
|
const body = {
|
|
6626
6623
|
sort,
|
|
@@ -6663,9 +6660,8 @@ class SearchService {
|
|
|
6663
6660
|
}
|
|
6664
6661
|
}
|
|
6665
6662
|
SearchService.V2_MEDIATYPE_SEARCH_INPUTS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-search-input-details.v2+json;charset=UTF-8';
|
|
6666
|
-
|
|
6663
|
+
// public static readonly VIEW_SEARCH = 'SEARCH';
|
|
6667
6664
|
SearchService.VIEW_WORKBASKET = 'WORKBASKET';
|
|
6668
|
-
SearchService.FIELD_PREFIX = 'case.';
|
|
6669
6665
|
SearchService.ɵfac = function SearchService_Factory(t) { return new (t || SearchService)(i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpService), i0.ɵɵinject(RequestOptionsBuilder), i0.ɵɵinject(LoadingService)); };
|
|
6670
6666
|
SearchService.ɵprov = i0.ɵɵdefineInjectable({ token: SearchService, factory: SearchService.ɵfac });
|
|
6671
6667
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchService, [{
|
|
@@ -6779,17 +6775,12 @@ class DefinitionsService {
|
|
|
6779
6775
|
this.appConfig = appConfig;
|
|
6780
6776
|
}
|
|
6781
6777
|
getCaseTypes(jurisdictionId, access) {
|
|
6782
|
-
const url = this.appConfig.getApiUrl()
|
|
6783
|
-
+ `/caseworkers/:uid`
|
|
6784
|
-
+ `/jurisdictions/${jurisdictionId}`
|
|
6785
|
-
+ `/case-types?access=${access}`;
|
|
6778
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types?access=${access}`;
|
|
6786
6779
|
return this.http
|
|
6787
6780
|
.get(url).pipe(map(response => response));
|
|
6788
6781
|
}
|
|
6789
6782
|
getJurisdictions(access) {
|
|
6790
|
-
const url = this.appConfig.getApiUrl()
|
|
6791
|
-
+ `/caseworkers/:uid`
|
|
6792
|
-
+ `/jurisdictions?access=${access}`;
|
|
6783
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions?access=${access}`;
|
|
6793
6784
|
return this.http
|
|
6794
6785
|
.get(url)
|
|
6795
6786
|
.pipe(map(response => response));
|
|
@@ -6861,8 +6852,8 @@ class SearchResultViewItemComparatorFactory {
|
|
|
6861
6852
|
compare(a, b) {
|
|
6862
6853
|
let fieldA = a.case_fields[fieldId];
|
|
6863
6854
|
let fieldB = b.case_fields[fieldId];
|
|
6864
|
-
fieldA = isUndefined(fieldA) || fieldA
|
|
6865
|
-
fieldB = isUndefined(fieldB) || fieldB
|
|
6855
|
+
fieldA = isUndefined(fieldA) || fieldA === null ? '' : fieldA.toLowerCase();
|
|
6856
|
+
fieldB = isUndefined(fieldB) || fieldB === null ? '' : fieldB.toLowerCase();
|
|
6866
6857
|
return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
|
|
6867
6858
|
}
|
|
6868
6859
|
};
|
|
@@ -6872,8 +6863,8 @@ class SearchResultViewItemComparatorFactory {
|
|
|
6872
6863
|
compare(a, b) {
|
|
6873
6864
|
let fieldA = a.case_fields[fieldId];
|
|
6874
6865
|
let fieldB = b.case_fields[fieldId];
|
|
6875
|
-
fieldA = isUndefined(fieldA) || fieldA
|
|
6876
|
-
fieldB = isUndefined(fieldB) || fieldB
|
|
6866
|
+
fieldA = isUndefined(fieldA) || fieldA === null ? '' : fieldA.join().toLowerCase();
|
|
6867
|
+
fieldB = isUndefined(fieldB) || fieldB === null ? '' : fieldB.join().toLowerCase();
|
|
6877
6868
|
return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
|
|
6878
6869
|
}
|
|
6879
6870
|
};
|
|
@@ -7102,31 +7093,31 @@ class WizardPageFieldToCaseFieldMapper {
|
|
|
7102
7093
|
}
|
|
7103
7094
|
processComplexFieldOverride(override, caseField, caseFields) {
|
|
7104
7095
|
const caseFieldIds = override.complex_field_element_id.split('.');
|
|
7105
|
-
let
|
|
7096
|
+
let caseFieldLeaf;
|
|
7106
7097
|
const children = this.getCaseFieldChildren(caseField);
|
|
7107
7098
|
if (children.length > 0) {
|
|
7108
7099
|
const [_, ...tail] = caseFieldIds;
|
|
7109
|
-
|
|
7100
|
+
caseFieldLeaf = this.getCaseFieldLeaf(tail, children);
|
|
7110
7101
|
}
|
|
7111
7102
|
else {
|
|
7112
|
-
|
|
7103
|
+
caseFieldLeaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
|
|
7113
7104
|
}
|
|
7114
7105
|
if (override.display_context !== 'HIDDEN') {
|
|
7115
|
-
|
|
7116
|
-
|
|
7106
|
+
caseFieldLeaf.hidden = false;
|
|
7107
|
+
caseFieldLeaf.display_context = override.display_context;
|
|
7117
7108
|
if (override.label && override.label.length > 0) {
|
|
7118
|
-
|
|
7109
|
+
caseFieldLeaf.label = override.label;
|
|
7119
7110
|
}
|
|
7120
7111
|
if (override.hint_text && override.hint_text.length > 0) {
|
|
7121
|
-
|
|
7112
|
+
caseFieldLeaf.hint_text = override.hint_text;
|
|
7122
7113
|
}
|
|
7123
7114
|
if (override.show_condition && override.show_condition.length > 0) {
|
|
7124
|
-
|
|
7115
|
+
caseFieldLeaf.show_condition = override.show_condition;
|
|
7125
7116
|
}
|
|
7126
7117
|
}
|
|
7127
7118
|
else {
|
|
7128
|
-
|
|
7129
|
-
|
|
7119
|
+
caseFieldLeaf.hidden = true;
|
|
7120
|
+
caseFieldLeaf.display_context = override.display_context;
|
|
7130
7121
|
}
|
|
7131
7122
|
}
|
|
7132
7123
|
fixShowConditionPath(caseField, pathPrefix) {
|
|
@@ -7139,7 +7130,7 @@ class WizardPageFieldToCaseFieldMapper {
|
|
|
7139
7130
|
});
|
|
7140
7131
|
}
|
|
7141
7132
|
preparePathPrefix(pathPrefix, caseField) {
|
|
7142
|
-
return pathPrefix.length === 0 ? caseField : pathPrefix
|
|
7133
|
+
return pathPrefix.length === 0 ? caseField : `${pathPrefix}.${caseField}`;
|
|
7143
7134
|
}
|
|
7144
7135
|
getCaseFieldLeaf(caseFieldId, caseFields) {
|
|
7145
7136
|
const [head, ...tail] = caseFieldId;
|
|
@@ -7192,215 +7183,13 @@ WizardPageFieldToCaseFieldMapper.ɵprov = i0.ɵɵdefineInjectable({ token: Wizar
|
|
|
7192
7183
|
}]
|
|
7193
7184
|
}], null, null); })();
|
|
7194
7185
|
|
|
7195
|
-
const MULTIPLE_TASKS_FOUND = 'More than one task found!';
|
|
7196
|
-
class WorkAllocationService {
|
|
7197
|
-
constructor(http, appConfig, errorService, alertService, sessionStorageService) {
|
|
7198
|
-
this.http = http;
|
|
7199
|
-
this.appConfig = appConfig;
|
|
7200
|
-
this.errorService = errorService;
|
|
7201
|
-
this.alertService = alertService;
|
|
7202
|
-
this.sessionStorageService = sessionStorageService;
|
|
7203
|
-
// Check to see if work allocation is enabled
|
|
7204
|
-
}
|
|
7205
|
-
/**
|
|
7206
|
-
* Call the API to get tasks matching the search criteria.
|
|
7207
|
-
* @param searchRequest The search parameters that specify which tasks to match.
|
|
7208
|
-
*/
|
|
7209
|
-
searchTasks(searchRequest) {
|
|
7210
|
-
// Do not need to check if WA enabled as parent method will do that
|
|
7211
|
-
const url = `${this.appConfig.getWorkAllocationApiUrl()}/searchForCompletable`;
|
|
7212
|
-
return this.http
|
|
7213
|
-
.post(url, { searchRequest }, null, false)
|
|
7214
|
-
.pipe(map(response => response), catchError(error => {
|
|
7215
|
-
this.errorService.setError(error);
|
|
7216
|
-
// explicitly eat away 401 error and 400 error
|
|
7217
|
-
if (error && error.status && (error.status === 401 || error.status === 400)) {
|
|
7218
|
-
// do nothing
|
|
7219
|
-
console.log('error status 401 or 400', error);
|
|
7220
|
-
}
|
|
7221
|
-
else {
|
|
7222
|
-
return throwError(error);
|
|
7223
|
-
}
|
|
7224
|
-
}));
|
|
7225
|
-
}
|
|
7226
|
-
isWAEnabled(jurisdiction, caseType) {
|
|
7227
|
-
this.features = this.appConfig.getWAServiceConfig();
|
|
7228
|
-
let enabled = false;
|
|
7229
|
-
if (!jurisdiction || !caseType) {
|
|
7230
|
-
const caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
|
|
7231
|
-
jurisdiction = caseInfo.jurisdiction;
|
|
7232
|
-
caseType = caseInfo.caseType;
|
|
7233
|
-
}
|
|
7234
|
-
if (!this.features || !this.features.configurations) {
|
|
7235
|
-
return false;
|
|
7236
|
-
}
|
|
7237
|
-
this.features.configurations.forEach(serviceConfig => {
|
|
7238
|
-
if (serviceConfig.serviceName === jurisdiction && (serviceConfig.caseTypes.indexOf(caseType) !== -1)) {
|
|
7239
|
-
enabled = true;
|
|
7240
|
-
}
|
|
7241
|
-
});
|
|
7242
|
-
return enabled;
|
|
7243
|
-
}
|
|
7244
|
-
/**
|
|
7245
|
-
* Call the API to assign a task.
|
|
7246
|
-
* @param taskId specifies which task should be assigned.
|
|
7247
|
-
* @param userId specifies the user the task should be assigned to.
|
|
7248
|
-
*/
|
|
7249
|
-
assignTask(taskId, userId) {
|
|
7250
|
-
if (!this.isWAEnabled()) {
|
|
7251
|
-
return of(null);
|
|
7252
|
-
}
|
|
7253
|
-
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/assign`;
|
|
7254
|
-
return this.http
|
|
7255
|
-
.post(url, { userId })
|
|
7256
|
-
.pipe(catchError(error => {
|
|
7257
|
-
this.errorService.setError(error);
|
|
7258
|
-
return throwError(error);
|
|
7259
|
-
}));
|
|
7260
|
-
}
|
|
7261
|
-
/**
|
|
7262
|
-
* Call the API to complete a task.
|
|
7263
|
-
* @param taskId specifies which task should be completed.
|
|
7264
|
-
*/
|
|
7265
|
-
completeTask(taskId) {
|
|
7266
|
-
if (!this.isWAEnabled()) {
|
|
7267
|
-
return of(null);
|
|
7268
|
-
}
|
|
7269
|
-
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
|
|
7270
|
-
return this.http
|
|
7271
|
-
.post(url, {})
|
|
7272
|
-
.pipe(catchError(error => {
|
|
7273
|
-
this.errorService.setError(error);
|
|
7274
|
-
// this will subscribe to get the user details and decide whether to display an error message
|
|
7275
|
-
this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
|
|
7276
|
-
this.handleTaskCompletionError(response);
|
|
7277
|
-
});
|
|
7278
|
-
return throwError(error);
|
|
7279
|
-
}));
|
|
7280
|
-
}
|
|
7281
|
-
/**
|
|
7282
|
-
* Call the API to assign and complete a task.
|
|
7283
|
-
* @param taskId specifies which task should be completed.
|
|
7284
|
-
*/
|
|
7285
|
-
assignAndCompleteTask(taskId) {
|
|
7286
|
-
if (!this.isWAEnabled()) {
|
|
7287
|
-
return of(null);
|
|
7288
|
-
}
|
|
7289
|
-
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
|
|
7290
|
-
return this.http
|
|
7291
|
-
.post(url, {
|
|
7292
|
-
completion_options: {
|
|
7293
|
-
assign_and_complete: true
|
|
7294
|
-
}
|
|
7295
|
-
})
|
|
7296
|
-
.pipe(catchError(error => {
|
|
7297
|
-
this.errorService.setError(error);
|
|
7298
|
-
// this will subscribe to get the user details and decide whether to display an error message
|
|
7299
|
-
this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
|
|
7300
|
-
this.handleTaskCompletionError(response);
|
|
7301
|
-
});
|
|
7302
|
-
return throwError(error);
|
|
7303
|
-
}));
|
|
7304
|
-
}
|
|
7305
|
-
/**
|
|
7306
|
-
* Handles the response from the observable to get the user details when task is completed.
|
|
7307
|
-
* @param response is the response given from the observable which contains the user detaild.
|
|
7308
|
-
*/
|
|
7309
|
-
handleTaskCompletionError(response) {
|
|
7310
|
-
const userDetails = response;
|
|
7311
|
-
if (this.userIsCaseworker(userDetails.userInfo.roles)) {
|
|
7312
|
-
// when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
|
|
7313
|
-
this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
|
|
7314
|
-
this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
|
|
7315
|
-
}
|
|
7316
|
-
}
|
|
7317
|
-
/**
|
|
7318
|
-
* Returns true if the user's role is equivalent to a caseworker.
|
|
7319
|
-
* @param roles is the list of roles found from the current user.
|
|
7320
|
-
*/
|
|
7321
|
-
userIsCaseworker(roles) {
|
|
7322
|
-
const lowerCaseRoles = roles.map(role => role.toLowerCase());
|
|
7323
|
-
// When/if lib & target permanently change to es2016, replace indexOf with includes
|
|
7324
|
-
return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
|
|
7325
|
-
|| (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
|
|
7326
|
-
}
|
|
7327
|
-
/**
|
|
7328
|
-
* Look for open tasks for a case and event combination. There are 5 possible scenarios:
|
|
7329
|
-
* 1. No tasks found => Success.
|
|
7330
|
-
* 2. One task found => Mark as done => Success.
|
|
7331
|
-
* 3. One task found => Mark as done throws error => Failure.
|
|
7332
|
-
* 4. More than one task found => Failure.
|
|
7333
|
-
* 5. Search call throws an error => Failure.
|
|
7334
|
-
* @param ccdId The ID of the case to find tasks for.
|
|
7335
|
-
* @param eventId The ID of the event to find tasks for.
|
|
7336
|
-
*/
|
|
7337
|
-
completeAppropriateTask(ccdId, eventId, jurisdiction, caseTypeId) {
|
|
7338
|
-
if (!this.isWAEnabled(jurisdiction, caseTypeId)) {
|
|
7339
|
-
return of(null);
|
|
7340
|
-
}
|
|
7341
|
-
const taskSearchParameter = {
|
|
7342
|
-
ccdId,
|
|
7343
|
-
eventId,
|
|
7344
|
-
jurisdiction,
|
|
7345
|
-
caseTypeId
|
|
7346
|
-
};
|
|
7347
|
-
return this.searchTasks(taskSearchParameter)
|
|
7348
|
-
.pipe(map((response) => {
|
|
7349
|
-
const tasks = response.tasks;
|
|
7350
|
-
if (tasks && tasks.length > 0) {
|
|
7351
|
-
if (tasks.length === 1) {
|
|
7352
|
-
this.completeTask(tasks[0].id).subscribe();
|
|
7353
|
-
}
|
|
7354
|
-
else {
|
|
7355
|
-
// This is a problem. Throw an appropriate error.
|
|
7356
|
-
throw new Error(MULTIPLE_TASKS_FOUND);
|
|
7357
|
-
}
|
|
7358
|
-
}
|
|
7359
|
-
return true; // All good. Nothing to see here.
|
|
7360
|
-
}), catchError(error => {
|
|
7361
|
-
// Simply rethrow it.
|
|
7362
|
-
return throwError(error);
|
|
7363
|
-
}));
|
|
7364
|
-
}
|
|
7365
|
-
/**
|
|
7366
|
-
* Return tasks for case and event.
|
|
7367
|
-
*/
|
|
7368
|
-
getTasksByCaseIdAndEventId(eventId, caseId, caseType, jurisdiction) {
|
|
7369
|
-
const defaultPayload = {
|
|
7370
|
-
task_required_for_event: false,
|
|
7371
|
-
tasks: []
|
|
7372
|
-
};
|
|
7373
|
-
if (!this.isWAEnabled()) {
|
|
7374
|
-
return of(defaultPayload);
|
|
7375
|
-
}
|
|
7376
|
-
return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/case/tasks/${caseId}/event/${eventId}/caseType/${caseType}/jurisdiction/${jurisdiction}`);
|
|
7377
|
-
}
|
|
7378
|
-
/**
|
|
7379
|
-
* Call the API to get a task
|
|
7380
|
-
*/
|
|
7381
|
-
getTask(taskId) {
|
|
7382
|
-
if (!this.isWAEnabled()) {
|
|
7383
|
-
return of({ task: null });
|
|
7384
|
-
}
|
|
7385
|
-
return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}`);
|
|
7386
|
-
}
|
|
7387
|
-
}
|
|
7388
|
-
WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
|
|
7389
|
-
WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
|
|
7390
|
-
WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(AlertService), i0.ɵɵinject(SessionStorageService)); };
|
|
7391
|
-
WorkAllocationService.ɵprov = i0.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
|
|
7392
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkAllocationService, [{
|
|
7393
|
-
type: Injectable
|
|
7394
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null); })();
|
|
7395
|
-
|
|
7396
7186
|
class CasesService {
|
|
7397
|
-
constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper,
|
|
7187
|
+
constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService) {
|
|
7398
7188
|
this.http = http;
|
|
7399
7189
|
this.appConfig = appConfig;
|
|
7400
7190
|
this.orderService = orderService;
|
|
7401
7191
|
this.errorService = errorService;
|
|
7402
7192
|
this.wizardPageFieldToCaseFieldMapper = wizardPageFieldToCaseFieldMapper;
|
|
7403
|
-
this.workAllocationService = workAllocationService;
|
|
7404
7193
|
this.loadingService = loadingService;
|
|
7405
7194
|
this.sessionStorageService = sessionStorageService;
|
|
7406
7195
|
this.get = this.getCaseView;
|
|
@@ -7418,11 +7207,7 @@ class CasesService {
|
|
|
7418
7207
|
});
|
|
7419
7208
|
}
|
|
7420
7209
|
getCaseView(jurisdictionId, caseTypeId, caseId) {
|
|
7421
|
-
const url = this.appConfig.getApiUrl()
|
|
7422
|
-
+ `/caseworkers/:uid`
|
|
7423
|
-
+ `/jurisdictions/${jurisdictionId}`
|
|
7424
|
-
+ `/case-types/${caseTypeId}`
|
|
7425
|
-
+ `/cases/${caseId}`;
|
|
7210
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types/${caseTypeId}/cases/${caseId}`;
|
|
7426
7211
|
const loadingToken = this.loadingService.register();
|
|
7427
7212
|
return this.http
|
|
7428
7213
|
.get(url)
|
|
@@ -7471,7 +7256,7 @@ class CasesService {
|
|
|
7471
7256
|
}
|
|
7472
7257
|
createEvent(caseDetails, eventData) {
|
|
7473
7258
|
const caseId = caseDetails.case_id;
|
|
7474
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7259
|
+
const url = `${this.appConfig.getCaseDataUrl()}/cases/${caseId}/events`;
|
|
7475
7260
|
const headers = new HttpHeaders()
|
|
7476
7261
|
.set('experimental', 'true')
|
|
7477
7262
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
|
|
@@ -7484,9 +7269,8 @@ class CasesService {
|
|
|
7484
7269
|
}));
|
|
7485
7270
|
}
|
|
7486
7271
|
validateCase(ctid, eventData, pageId) {
|
|
7487
|
-
const pageIdString = pageId ?
|
|
7488
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7489
|
-
+ `/case-types/${ctid}/validate${pageIdString}`;
|
|
7272
|
+
const pageIdString = pageId ? `?pageId=${pageId}` : '';
|
|
7273
|
+
const url = `${this.appConfig.getCaseDataUrl()}/case-types/${ctid}/validate${pageIdString}`;
|
|
7490
7274
|
const headers = new HttpHeaders()
|
|
7491
7275
|
.set('experimental', 'true')
|
|
7492
7276
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
|
|
@@ -7503,8 +7287,7 @@ class CasesService {
|
|
|
7503
7287
|
if (eventData.ignore_warning) {
|
|
7504
7288
|
ignoreWarning = 'true';
|
|
7505
7289
|
}
|
|
7506
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7507
|
-
+ `/case-types/${ctid}/cases?ignore-warning=${ignoreWarning}`;
|
|
7290
|
+
const url = `${this.appConfig.getCaseDataUrl()}/case-types/${ctid}/cases?ignore-warning=${ignoreWarning}`;
|
|
7508
7291
|
const headers = new HttpHeaders()
|
|
7509
7292
|
.set('experimental', 'true')
|
|
7510
7293
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
|
|
@@ -7517,9 +7300,7 @@ class CasesService {
|
|
|
7517
7300
|
}));
|
|
7518
7301
|
}
|
|
7519
7302
|
getPrintDocuments(caseId) {
|
|
7520
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7521
|
-
+ `/cases/${caseId}`
|
|
7522
|
-
+ `/documents`;
|
|
7303
|
+
const url = `${this.appConfig.getCaseDataUrl()}/cases/${caseId}/documents`;
|
|
7523
7304
|
const headers = new HttpHeaders()
|
|
7524
7305
|
.set('experimental', 'true')
|
|
7525
7306
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
|
|
@@ -7532,7 +7313,7 @@ class CasesService {
|
|
|
7532
7313
|
}));
|
|
7533
7314
|
}
|
|
7534
7315
|
buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning) {
|
|
7535
|
-
let url = this.appConfig.getCaseDataUrl()
|
|
7316
|
+
let url = `${this.appConfig.getCaseDataUrl()}/internal`;
|
|
7536
7317
|
if (Draft.isDraft(caseId)) {
|
|
7537
7318
|
url += `/drafts/${caseId}`
|
|
7538
7319
|
+ `/event-trigger`
|
|
@@ -7626,11 +7407,11 @@ CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE = 'application/vnd.uk.gov.hmcts.ccd
|
|
|
7626
7407
|
CasesService.V2_MEDIATYPE_CREATE_EVENT = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-event.v2+json;charset=UTF-8';
|
|
7627
7408
|
CasesService.V2_MEDIATYPE_CREATE_CASE = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-case.v2+json;charset=UTF-8';
|
|
7628
7409
|
CasesService.PUI_CASE_MANAGER = 'pui-case-manager';
|
|
7629
|
-
CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(OrderService), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0.ɵɵinject(
|
|
7410
|
+
CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(OrderService), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0.ɵɵinject(LoadingService), i0.ɵɵinject(SessionStorageService)); };
|
|
7630
7411
|
CasesService.ɵprov = i0.ɵɵdefineInjectable({ token: CasesService, factory: CasesService.ɵfac });
|
|
7631
7412
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasesService, [{
|
|
7632
7413
|
type: Injectable
|
|
7633
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type:
|
|
7414
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }]; }, null); })();
|
|
7634
7415
|
|
|
7635
7416
|
class EventTriggerService {
|
|
7636
7417
|
constructor() {
|
|
@@ -8204,7 +7985,7 @@ class PageValidationService {
|
|
|
8204
7985
|
isHidden(caseField, editForm, path) {
|
|
8205
7986
|
const formFields = editForm.getRawValue();
|
|
8206
7987
|
const condition = ShowCondition.getInstance(caseField.show_condition);
|
|
8207
|
-
if (path && path.indexOf(
|
|
7988
|
+
if (path && path.indexOf(`_${caseField.id}_`) === -1) {
|
|
8208
7989
|
path = `${path}${caseField.id}`;
|
|
8209
7990
|
}
|
|
8210
7991
|
return !condition.match(formFields.data, path);
|
|
@@ -8233,6 +8014,207 @@ PageValidationService.ɵprov = i0.ɵɵdefineInjectable({ token: PageValidationSe
|
|
|
8233
8014
|
type: Injectable
|
|
8234
8015
|
}], function () { return [{ type: CaseFieldService }]; }, null); })();
|
|
8235
8016
|
|
|
8017
|
+
const MULTIPLE_TASKS_FOUND = 'More than one task found!';
|
|
8018
|
+
class WorkAllocationService {
|
|
8019
|
+
constructor(http, appConfig, errorService, alertService, sessionStorageService) {
|
|
8020
|
+
this.http = http;
|
|
8021
|
+
this.appConfig = appConfig;
|
|
8022
|
+
this.errorService = errorService;
|
|
8023
|
+
this.alertService = alertService;
|
|
8024
|
+
this.sessionStorageService = sessionStorageService;
|
|
8025
|
+
// Check to see if work allocation is enabled
|
|
8026
|
+
}
|
|
8027
|
+
/**
|
|
8028
|
+
* Call the API to get tasks matching the search criteria.
|
|
8029
|
+
* @param searchRequest The search parameters that specify which tasks to match.
|
|
8030
|
+
*/
|
|
8031
|
+
searchTasks(searchRequest) {
|
|
8032
|
+
// Do not need to check if WA enabled as parent method will do that
|
|
8033
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/searchForCompletable`;
|
|
8034
|
+
return this.http
|
|
8035
|
+
.post(url, { searchRequest }, null, false)
|
|
8036
|
+
.pipe(map(response => response), catchError(error => {
|
|
8037
|
+
this.errorService.setError(error);
|
|
8038
|
+
// explicitly eat away 401 error and 400 error
|
|
8039
|
+
if (error && error.status && (error.status === 401 || error.status === 400)) {
|
|
8040
|
+
// do nothing
|
|
8041
|
+
console.log('error status 401 or 400', error);
|
|
8042
|
+
}
|
|
8043
|
+
else {
|
|
8044
|
+
return throwError(error);
|
|
8045
|
+
}
|
|
8046
|
+
}));
|
|
8047
|
+
}
|
|
8048
|
+
isWAEnabled(jurisdiction, caseType) {
|
|
8049
|
+
this.features = this.appConfig.getWAServiceConfig();
|
|
8050
|
+
let enabled = false;
|
|
8051
|
+
if (!jurisdiction || !caseType) {
|
|
8052
|
+
const caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
|
|
8053
|
+
jurisdiction = caseInfo.jurisdiction;
|
|
8054
|
+
caseType = caseInfo.caseType;
|
|
8055
|
+
}
|
|
8056
|
+
if (!this.features || !this.features.configurations) {
|
|
8057
|
+
return false;
|
|
8058
|
+
}
|
|
8059
|
+
this.features.configurations.forEach(serviceConfig => {
|
|
8060
|
+
if (serviceConfig.serviceName === jurisdiction && (serviceConfig.caseTypes.indexOf(caseType) !== -1)) {
|
|
8061
|
+
enabled = true;
|
|
8062
|
+
}
|
|
8063
|
+
});
|
|
8064
|
+
return enabled;
|
|
8065
|
+
}
|
|
8066
|
+
/**
|
|
8067
|
+
* Call the API to assign a task.
|
|
8068
|
+
* @param taskId specifies which task should be assigned.
|
|
8069
|
+
* @param userId specifies the user the task should be assigned to.
|
|
8070
|
+
*/
|
|
8071
|
+
assignTask(taskId, userId) {
|
|
8072
|
+
if (!this.isWAEnabled()) {
|
|
8073
|
+
return of(null);
|
|
8074
|
+
}
|
|
8075
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/assign`;
|
|
8076
|
+
return this.http
|
|
8077
|
+
.post(url, { userId })
|
|
8078
|
+
.pipe(catchError(error => {
|
|
8079
|
+
this.errorService.setError(error);
|
|
8080
|
+
return throwError(error);
|
|
8081
|
+
}));
|
|
8082
|
+
}
|
|
8083
|
+
/**
|
|
8084
|
+
* Call the API to complete a task.
|
|
8085
|
+
* @param taskId specifies which task should be completed.
|
|
8086
|
+
*/
|
|
8087
|
+
completeTask(taskId) {
|
|
8088
|
+
if (!this.isWAEnabled()) {
|
|
8089
|
+
return of(null);
|
|
8090
|
+
}
|
|
8091
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
|
|
8092
|
+
return this.http
|
|
8093
|
+
.post(url, {})
|
|
8094
|
+
.pipe(catchError(error => {
|
|
8095
|
+
this.errorService.setError(error);
|
|
8096
|
+
// this will subscribe to get the user details and decide whether to display an error message
|
|
8097
|
+
this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
|
|
8098
|
+
this.handleTaskCompletionError(response);
|
|
8099
|
+
});
|
|
8100
|
+
return throwError(error);
|
|
8101
|
+
}));
|
|
8102
|
+
}
|
|
8103
|
+
/**
|
|
8104
|
+
* Call the API to assign and complete a task.
|
|
8105
|
+
* @param taskId specifies which task should be completed.
|
|
8106
|
+
*/
|
|
8107
|
+
assignAndCompleteTask(taskId) {
|
|
8108
|
+
if (!this.isWAEnabled()) {
|
|
8109
|
+
return of(null);
|
|
8110
|
+
}
|
|
8111
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
|
|
8112
|
+
return this.http
|
|
8113
|
+
.post(url, {
|
|
8114
|
+
completion_options: {
|
|
8115
|
+
assign_and_complete: true
|
|
8116
|
+
}
|
|
8117
|
+
})
|
|
8118
|
+
.pipe(catchError(error => {
|
|
8119
|
+
this.errorService.setError(error);
|
|
8120
|
+
// this will subscribe to get the user details and decide whether to display an error message
|
|
8121
|
+
this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
|
|
8122
|
+
this.handleTaskCompletionError(response);
|
|
8123
|
+
});
|
|
8124
|
+
return throwError(error);
|
|
8125
|
+
}));
|
|
8126
|
+
}
|
|
8127
|
+
/**
|
|
8128
|
+
* Handles the response from the observable to get the user details when task is completed.
|
|
8129
|
+
* @param response is the response given from the observable which contains the user detaild.
|
|
8130
|
+
*/
|
|
8131
|
+
handleTaskCompletionError(response) {
|
|
8132
|
+
const userDetails = response;
|
|
8133
|
+
if (this.userIsCaseworker(userDetails.userInfo.roles)) {
|
|
8134
|
+
// when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
|
|
8135
|
+
this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
|
|
8136
|
+
this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8139
|
+
/**
|
|
8140
|
+
* Returns true if the user's role is equivalent to a caseworker.
|
|
8141
|
+
* @param roles is the list of roles found from the current user.
|
|
8142
|
+
*/
|
|
8143
|
+
userIsCaseworker(roles) {
|
|
8144
|
+
const lowerCaseRoles = roles.map(role => role.toLowerCase());
|
|
8145
|
+
// When/if lib & target permanently change to es2016, replace indexOf with includes
|
|
8146
|
+
return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
|
|
8147
|
+
|| (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
|
|
8148
|
+
}
|
|
8149
|
+
/**
|
|
8150
|
+
* Look for open tasks for a case and event combination. There are 5 possible scenarios:
|
|
8151
|
+
* 1. No tasks found => Success.
|
|
8152
|
+
* 2. One task found => Mark as done => Success.
|
|
8153
|
+
* 3. One task found => Mark as done throws error => Failure.
|
|
8154
|
+
* 4. More than one task found => Failure.
|
|
8155
|
+
* 5. Search call throws an error => Failure.
|
|
8156
|
+
* @param ccdId The ID of the case to find tasks for.
|
|
8157
|
+
* @param eventId The ID of the event to find tasks for.
|
|
8158
|
+
*/
|
|
8159
|
+
completeAppropriateTask(ccdId, eventId, jurisdiction, caseTypeId) {
|
|
8160
|
+
if (!this.isWAEnabled(jurisdiction, caseTypeId)) {
|
|
8161
|
+
return of(null);
|
|
8162
|
+
}
|
|
8163
|
+
const taskSearchParameter = {
|
|
8164
|
+
ccdId,
|
|
8165
|
+
eventId,
|
|
8166
|
+
jurisdiction,
|
|
8167
|
+
caseTypeId
|
|
8168
|
+
};
|
|
8169
|
+
return this.searchTasks(taskSearchParameter)
|
|
8170
|
+
.pipe(map((response) => {
|
|
8171
|
+
const tasks = response.tasks;
|
|
8172
|
+
if (tasks && tasks.length > 0) {
|
|
8173
|
+
if (tasks.length === 1) {
|
|
8174
|
+
this.completeTask(tasks[0].id).subscribe();
|
|
8175
|
+
}
|
|
8176
|
+
else {
|
|
8177
|
+
// This is a problem. Throw an appropriate error.
|
|
8178
|
+
throw new Error(MULTIPLE_TASKS_FOUND);
|
|
8179
|
+
}
|
|
8180
|
+
}
|
|
8181
|
+
return true; // All good. Nothing to see here.
|
|
8182
|
+
}), catchError(error => {
|
|
8183
|
+
// Simply rethrow it.
|
|
8184
|
+
return throwError(error);
|
|
8185
|
+
}));
|
|
8186
|
+
}
|
|
8187
|
+
/**
|
|
8188
|
+
* Return tasks for case and event.
|
|
8189
|
+
*/
|
|
8190
|
+
getTasksByCaseIdAndEventId(eventId, caseId, caseType, jurisdiction) {
|
|
8191
|
+
const defaultPayload = {
|
|
8192
|
+
task_required_for_event: false,
|
|
8193
|
+
tasks: []
|
|
8194
|
+
};
|
|
8195
|
+
if (!this.isWAEnabled()) {
|
|
8196
|
+
return of(defaultPayload);
|
|
8197
|
+
}
|
|
8198
|
+
return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/case/tasks/${caseId}/event/${eventId}/caseType/${caseType}/jurisdiction/${jurisdiction}`);
|
|
8199
|
+
}
|
|
8200
|
+
/**
|
|
8201
|
+
* Call the API to get a task
|
|
8202
|
+
*/
|
|
8203
|
+
getTask(taskId) {
|
|
8204
|
+
if (!this.isWAEnabled()) {
|
|
8205
|
+
return of({ task: null });
|
|
8206
|
+
}
|
|
8207
|
+
return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}`);
|
|
8208
|
+
}
|
|
8209
|
+
}
|
|
8210
|
+
WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
|
|
8211
|
+
WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
|
|
8212
|
+
WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(AlertService), i0.ɵɵinject(SessionStorageService)); };
|
|
8213
|
+
WorkAllocationService.ɵprov = i0.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
|
|
8214
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkAllocationService, [{
|
|
8215
|
+
type: Injectable
|
|
8216
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null); })();
|
|
8217
|
+
|
|
8236
8218
|
class CaseEditComponent {
|
|
8237
8219
|
constructor(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
|
|
8238
8220
|
this.fb = fb;
|
|
@@ -9058,7 +9040,7 @@ class CaseEditPageComponent {
|
|
|
9058
9040
|
const label = casefield.label || 'Field';
|
|
9059
9041
|
let id = casefield.id;
|
|
9060
9042
|
if (fieldElement['component'] && fieldElement['component'].parent) {
|
|
9061
|
-
if (fieldElement['component'].idPrefix.indexOf(
|
|
9043
|
+
if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
|
|
9062
9044
|
id = `${fieldElement['component'].idPrefix}${id}`;
|
|
9063
9045
|
}
|
|
9064
9046
|
else {
|
|
@@ -9187,8 +9169,8 @@ class CaseEditPageComponent {
|
|
|
9187
9169
|
}
|
|
9188
9170
|
}
|
|
9189
9171
|
callbackErrorsNotify(errorContext) {
|
|
9190
|
-
this.ignoreWarning = errorContext.
|
|
9191
|
-
this.triggerText = errorContext.
|
|
9172
|
+
this.ignoreWarning = errorContext.ignoreWarning;
|
|
9173
|
+
this.triggerText = errorContext.triggerText;
|
|
9192
9174
|
}
|
|
9193
9175
|
next() {
|
|
9194
9176
|
this.resetErrors();
|
|
@@ -9500,12 +9482,12 @@ class CallbackErrorsComponent {
|
|
|
9500
9482
|
buildCallbackErrorsContext() {
|
|
9501
9483
|
const errorContext = new CallbackErrorsContext();
|
|
9502
9484
|
if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
|
|
9503
|
-
errorContext.
|
|
9504
|
-
errorContext.
|
|
9485
|
+
errorContext.ignoreWarning = true;
|
|
9486
|
+
errorContext.triggerText = this.triggerTextIgnore;
|
|
9505
9487
|
}
|
|
9506
9488
|
else {
|
|
9507
|
-
errorContext.
|
|
9508
|
-
errorContext.
|
|
9489
|
+
errorContext.ignoreWarning = false;
|
|
9490
|
+
errorContext.triggerText = this.triggerTextContinue;
|
|
9509
9491
|
}
|
|
9510
9492
|
return errorContext;
|
|
9511
9493
|
}
|
|
@@ -9544,7 +9526,7 @@ CallbackErrorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CallbackErrorsCom
|
|
|
9544
9526
|
|
|
9545
9527
|
class AddressOption {
|
|
9546
9528
|
constructor(addressModel, description) {
|
|
9547
|
-
if (description
|
|
9529
|
+
if (description === null) {
|
|
9548
9530
|
this.value = addressModel;
|
|
9549
9531
|
this.description = this.getDescription();
|
|
9550
9532
|
}
|
|
@@ -9553,13 +9535,10 @@ class AddressOption {
|
|
|
9553
9535
|
}
|
|
9554
9536
|
}
|
|
9555
9537
|
getDescription() {
|
|
9556
|
-
return this.removeInitialCommaIfPresent(
|
|
9557
|
-
+ this.prefixWithCommaIfPresent(this.value.AddressLine2)
|
|
9558
|
-
+ this.prefixWithCommaIfPresent(this.value.AddressLine3)
|
|
9559
|
-
+ ', ' + this.value.PostTown);
|
|
9538
|
+
return this.removeInitialCommaIfPresent(`${this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1}${this.prefixWithCommaIfPresent(this.value.AddressLine2)}${this.prefixWithCommaIfPresent(this.value.AddressLine3)}, ${this.value.PostTown}`);
|
|
9560
9539
|
}
|
|
9561
9540
|
prefixWithCommaIfPresent(value) {
|
|
9562
|
-
return value ?
|
|
9541
|
+
return value ? `, ${value}` : value;
|
|
9563
9542
|
}
|
|
9564
9543
|
removeInitialCommaIfPresent(value) {
|
|
9565
9544
|
return value.replace(new RegExp('^,', 'gi'), '');
|
|
@@ -9830,7 +9809,7 @@ WriteComplexFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteComplexFi
|
|
|
9830
9809
|
type: Input
|
|
9831
9810
|
}] }); })();
|
|
9832
9811
|
|
|
9833
|
-
const _c0$
|
|
9812
|
+
const _c0$S = ["writeComplexFieldComponent"];
|
|
9834
9813
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
9835
9814
|
i0.ɵɵelementStart(0, "span", 14);
|
|
9836
9815
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
@@ -9947,7 +9926,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
9947
9926
|
this.missingPostcode = false;
|
|
9948
9927
|
const postcode = this.postcode.value;
|
|
9949
9928
|
this.caseField.value = null;
|
|
9950
|
-
this.addressOptions =
|
|
9929
|
+
this.addressOptions = [];
|
|
9951
9930
|
this.addressesService.getAddressesForPostcode(postcode.replace(' ', '').toUpperCase()).subscribe(result => {
|
|
9952
9931
|
result.forEach(address => {
|
|
9953
9932
|
this.addressOptions.push(new AddressOption(address, null));
|
|
@@ -9990,7 +9969,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
9990
9969
|
let hasAddress = false;
|
|
9991
9970
|
if (address) {
|
|
9992
9971
|
Object.keys(address).forEach((key) => {
|
|
9993
|
-
if (address[key]
|
|
9972
|
+
if (address[key] !== null) {
|
|
9994
9973
|
hasAddress = true;
|
|
9995
9974
|
}
|
|
9996
9975
|
});
|
|
@@ -10013,7 +9992,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10013
9992
|
}
|
|
10014
9993
|
defaultLabel(numberOfAddresses) {
|
|
10015
9994
|
return numberOfAddresses === 0 ? 'No address found'
|
|
10016
|
-
: numberOfAddresses
|
|
9995
|
+
: `${numberOfAddresses}${numberOfAddresses === 1 ? ' address ' : ' addresses '}found`;
|
|
10017
9996
|
}
|
|
10018
9997
|
setFormValue() {
|
|
10019
9998
|
if (this.writeComplexFieldComponent.complexGroup) {
|
|
@@ -10023,7 +10002,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10023
10002
|
}
|
|
10024
10003
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10025
10004
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10026
|
-
i0.ɵɵviewQuery(_c0$
|
|
10005
|
+
i0.ɵɵviewQuery(_c0$S, 1);
|
|
10027
10006
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10028
10007
|
} if (rf & 2) {
|
|
10029
10008
|
let _t;
|
|
@@ -10149,12 +10128,13 @@ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10149
10128
|
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10150
10129
|
} }
|
|
10151
10130
|
class CaseFileViewFieldComponent {
|
|
10152
|
-
constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
|
|
10131
|
+
constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService) {
|
|
10153
10132
|
this.elementRef = elementRef;
|
|
10154
10133
|
this.route = route;
|
|
10155
10134
|
this.caseFileViewService = caseFileViewService;
|
|
10156
10135
|
this.documentManagementService = documentManagementService;
|
|
10157
10136
|
this.loadingService = loadingService;
|
|
10137
|
+
this.sessionStorageService = sessionStorageService;
|
|
10158
10138
|
this.allowMoving = true;
|
|
10159
10139
|
this.getCategoriesAndDocumentsError = false;
|
|
10160
10140
|
}
|
|
@@ -10167,6 +10147,12 @@ class CaseFileViewFieldComponent {
|
|
|
10167
10147
|
},
|
|
10168
10148
|
error: _ => this.getCategoriesAndDocumentsError = true
|
|
10169
10149
|
});
|
|
10150
|
+
// EXUI-8000
|
|
10151
|
+
const userInfo = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
10152
|
+
// Get acls that intersects from acl roles and user roles
|
|
10153
|
+
const acls = this.caseField.acls.filter(acl => userInfo.roles.includes(acl.role));
|
|
10154
|
+
// As there can be more than one intersecting role, if any acls are update: true
|
|
10155
|
+
this.allowMoving = acls.some(acl => acl.update);
|
|
10170
10156
|
}
|
|
10171
10157
|
ngAfterViewInit() {
|
|
10172
10158
|
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -10212,7 +10198,7 @@ class CaseFileViewFieldComponent {
|
|
|
10212
10198
|
}
|
|
10213
10199
|
}
|
|
10214
10200
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10215
|
-
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
10201
|
+
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
10216
10202
|
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10217
10203
|
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10218
10204
|
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -10228,76 +10214,7 @@ CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFi
|
|
|
10228
10214
|
templateUrl: './case-file-view-field.component.html',
|
|
10229
10215
|
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10230
10216
|
}]
|
|
10231
|
-
}], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null); })();
|
|
10232
|
-
|
|
10233
|
-
function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
10234
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
10235
|
-
i0.ɵɵelementStart(1, "h1", 3);
|
|
10236
|
-
i0.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
10237
|
-
i0.ɵɵelementEnd();
|
|
10238
|
-
i0.ɵɵelementStart(3, "p", 4);
|
|
10239
|
-
i0.ɵɵtext(4, "Try again later.");
|
|
10240
|
-
i0.ɵɵelementEnd();
|
|
10241
|
-
i0.ɵɵelementEnd();
|
|
10242
|
-
} }
|
|
10243
|
-
function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
10244
|
-
i0.ɵɵelementContainerStart(0);
|
|
10245
|
-
i0.ɵɵelement(1, "mv-media-viewer", 11);
|
|
10246
|
-
i0.ɵɵelementContainerEnd();
|
|
10247
|
-
} if (rf & 2) {
|
|
10248
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10249
|
-
i0.ɵɵadvance(1);
|
|
10250
|
-
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
10251
|
-
} }
|
|
10252
|
-
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10253
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
10254
|
-
i0.ɵɵelementStart(0, "div");
|
|
10255
|
-
i0.ɵɵelementStart(1, "h2", 5);
|
|
10256
|
-
i0.ɵɵtext(2, "Case file");
|
|
10257
|
-
i0.ɵɵelementEnd();
|
|
10258
|
-
i0.ɵɵelementStart(3, "div", 6);
|
|
10259
|
-
i0.ɵɵelementStart(4, "div", 7);
|
|
10260
|
-
i0.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
10261
|
-
i0.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
|
|
10262
|
-
i0.ɵɵelementEnd();
|
|
10263
|
-
i0.ɵɵelementEnd();
|
|
10264
|
-
i0.ɵɵelement(6, "div", 9);
|
|
10265
|
-
i0.ɵɵelementStart(7, "div", 10);
|
|
10266
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10267
|
-
i0.ɵɵelementEnd();
|
|
10268
|
-
i0.ɵɵelementEnd();
|
|
10269
|
-
i0.ɵɵelementEnd();
|
|
10270
|
-
} if (rf & 2) {
|
|
10271
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
10272
|
-
i0.ɵɵadvance(5);
|
|
10273
|
-
i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
10274
|
-
i0.ɵɵadvance(3);
|
|
10275
|
-
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10276
|
-
} }
|
|
10277
|
-
class CaseFileViewFieldReadComponent extends CaseFileViewFieldComponent {
|
|
10278
|
-
constructor() {
|
|
10279
|
-
super(...arguments);
|
|
10280
|
-
this.allowMoving = false;
|
|
10281
|
-
}
|
|
10282
|
-
}
|
|
10283
|
-
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
10284
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10285
|
-
i0.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
10286
|
-
i0.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
10287
|
-
} if (rf & 2) {
|
|
10288
|
-
i0.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
10289
|
-
i0.ɵɵadvance(1);
|
|
10290
|
-
i0.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
10291
|
-
} }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
|
|
10292
|
-
const ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
|
|
10293
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
|
|
10294
|
-
type: Component,
|
|
10295
|
-
args: [{
|
|
10296
|
-
selector: 'ccd-case-file-view-field',
|
|
10297
|
-
templateUrl: './case-file-view-field.component.html',
|
|
10298
|
-
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10299
|
-
}]
|
|
10300
|
-
}], null, null); })();
|
|
10217
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }]; }, null); })();
|
|
10301
10218
|
|
|
10302
10219
|
var AddCommentsErrorMessage;
|
|
10303
10220
|
(function (AddCommentsErrorMessage) {
|
|
@@ -10609,7 +10526,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if
|
|
|
10609
10526
|
i0.ɵɵadvance(1);
|
|
10610
10527
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
10611
10528
|
} }
|
|
10612
|
-
const _c0$
|
|
10529
|
+
const _c0$R = function (a0) { return { "form-group-error": a0 }; };
|
|
10613
10530
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10614
10531
|
i0.ɵɵelementStart(0, "div", 8);
|
|
10615
10532
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -10628,7 +10545,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10628
10545
|
i0.ɵɵadvance(1);
|
|
10629
10546
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
10630
10547
|
i0.ɵɵadvance(1);
|
|
10631
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
10548
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, ctx_r1.errorMessages.length > 0));
|
|
10632
10549
|
i0.ɵɵadvance(1);
|
|
10633
10550
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
10634
10551
|
i0.ɵɵadvance(1);
|
|
@@ -11065,7 +10982,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11065
10982
|
}]
|
|
11066
10983
|
}], null, null); })();
|
|
11067
10984
|
|
|
11068
|
-
const _c0$
|
|
10985
|
+
const _c0$Q = ["writeComplexFieldComponent"];
|
|
11069
10986
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11070
10987
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11071
10988
|
i0.ɵɵtext(1);
|
|
@@ -11143,7 +11060,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11143
11060
|
}
|
|
11144
11061
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
11145
11062
|
WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11146
|
-
i0.ɵɵviewQuery(_c0$
|
|
11063
|
+
i0.ɵɵviewQuery(_c0$Q, 1);
|
|
11147
11064
|
} if (rf & 2) {
|
|
11148
11065
|
let _t;
|
|
11149
11066
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -11181,7 +11098,7 @@ const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheri
|
|
|
11181
11098
|
args: ['writeComplexFieldComponent']
|
|
11182
11099
|
}] }); })();
|
|
11183
11100
|
|
|
11184
|
-
const _c0$
|
|
11101
|
+
const _c0$P = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
11185
11102
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11186
11103
|
i0.ɵɵelementStart(0, "tbody");
|
|
11187
11104
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11194,7 +11111,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11194
11111
|
} if (rf & 2) {
|
|
11195
11112
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11196
11113
|
i0.ɵɵadvance(4);
|
|
11197
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11114
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$P, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
|
|
11198
11115
|
} }
|
|
11199
11116
|
const _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11200
11117
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -11322,7 +11239,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
11322
11239
|
}]
|
|
11323
11240
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
11324
11241
|
|
|
11325
|
-
const _c0$
|
|
11242
|
+
const _c0$O = ["collectionItem"];
|
|
11326
11243
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
11327
11244
|
i0.ɵɵelementStart(0, "span", 9);
|
|
11328
11245
|
i0.ɵɵtext(1);
|
|
@@ -11529,7 +11446,12 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11529
11446
|
addItem(doScroll) {
|
|
11530
11447
|
// Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
|
|
11531
11448
|
this.formArray.setErrors(null);
|
|
11532
|
-
|
|
11449
|
+
let item = { value: null };
|
|
11450
|
+
if (this.isCollectionDynamic()) {
|
|
11451
|
+
item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
|
|
11452
|
+
const key = Number(item['id'][item['id'].length - 1]) + 1;
|
|
11453
|
+
item.id = item['id'].replace(/.$/, key.toString());
|
|
11454
|
+
}
|
|
11533
11455
|
this.caseField.value.push(item);
|
|
11534
11456
|
const index = this.caseField.value.length - 1;
|
|
11535
11457
|
const caseField = this.buildCaseField(item, index, true);
|
|
@@ -11552,6 +11474,12 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11552
11474
|
setTimeout(() => this.focusLastItem());
|
|
11553
11475
|
}
|
|
11554
11476
|
}
|
|
11477
|
+
isCollectionDynamic() {
|
|
11478
|
+
if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
|
|
11479
|
+
return false;
|
|
11480
|
+
}
|
|
11481
|
+
return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
|
|
11482
|
+
}
|
|
11555
11483
|
newCaseField(id, item, index, isNew = false) {
|
|
11556
11484
|
const isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
|
|
11557
11485
|
const fieldType = plainToClassFromExist(new FieldType(), this.caseField.field_type.collection_field_type);
|
|
@@ -11593,6 +11521,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11593
11521
|
this.formArray.removeAt(index);
|
|
11594
11522
|
}
|
|
11595
11523
|
resetIds(index) {
|
|
11524
|
+
var _a, _b;
|
|
11596
11525
|
for (let i = index; i < this.collItems.length; i++) {
|
|
11597
11526
|
const counter = i + 1;
|
|
11598
11527
|
if (this.collItems[i].index && this.collItems[i].index === counter) {
|
|
@@ -11602,16 +11531,15 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11602
11531
|
&& this.collItems[i].caseField.id === counter.toString()) {
|
|
11603
11532
|
this.collItems[i].caseField.id = i.toString();
|
|
11604
11533
|
}
|
|
11605
|
-
const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace(
|
|
11606
|
-
const idPrefix1Current = idPrefix1.replace(
|
|
11534
|
+
const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace(`_${counter.toString()}`, `_${i.toString()}`) : '';
|
|
11535
|
+
const idPrefix1Current = idPrefix1.replace(`_${i.toString()}`, `_${counter.toString()}`);
|
|
11607
11536
|
if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
|
|
11608
11537
|
this.collItems[i].prefix = idPrefix1;
|
|
11609
11538
|
}
|
|
11610
|
-
const idPrefixAvailable = this.collItems[i].container
|
|
11611
|
-
&& this.collItems[i].container['component'].idPrefix ? true : false;
|
|
11539
|
+
const idPrefixAvailable = !!((_b = (_a = this.collItems[i].container) === null || _a === void 0 ? void 0 : _a['component']) === null || _b === void 0 ? void 0 : _b.idPrefix);
|
|
11612
11540
|
const idPrefix2 = idPrefixAvailable ?
|
|
11613
|
-
this.collItems[i].container['component'].idPrefix.replace(
|
|
11614
|
-
const idPrefix2current = idPrefix2.replace(
|
|
11541
|
+
this.collItems[i].container['component'].idPrefix.replace(`_${counter.toString()}`, `_${i.toString()}`) : '';
|
|
11542
|
+
const idPrefix2current = idPrefix2.replace(`_${i.toString()}`, `_${counter.toString()}`);
|
|
11615
11543
|
if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
|
|
11616
11544
|
this.collItems[i].container['component'].idPrefix = idPrefix2;
|
|
11617
11545
|
}
|
|
@@ -11696,7 +11624,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11696
11624
|
}
|
|
11697
11625
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
11698
11626
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11699
|
-
i0.ɵɵviewQuery(_c0$
|
|
11627
|
+
i0.ɵɵviewQuery(_c0$O, 1);
|
|
11700
11628
|
} if (rf & 2) {
|
|
11701
11629
|
let _t;
|
|
11702
11630
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12016,7 +11944,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12016
11944
|
type: Injectable
|
|
12017
11945
|
}], null, null); })();
|
|
12018
11946
|
|
|
12019
|
-
const _c0$
|
|
11947
|
+
const _c0$N = ["fileInput"];
|
|
12020
11948
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
12021
11949
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12022
11950
|
i0.ɵɵtext(1);
|
|
@@ -12294,7 +12222,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
12294
12222
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12295
12223
|
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
12296
12224
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12297
|
-
i0.ɵɵviewQuery(_c0$
|
|
12225
|
+
i0.ɵɵviewQuery(_c0$N, 1);
|
|
12298
12226
|
} if (rf & 2) {
|
|
12299
12227
|
let _t;
|
|
12300
12228
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -12456,7 +12384,7 @@ function WriteDynamicListFieldComponent_option_9_Template(rf, ctx) { if (rf & 1)
|
|
|
12456
12384
|
i0.ɵɵadvance(1);
|
|
12457
12385
|
i0.ɵɵtextInterpolate(type_r5.label);
|
|
12458
12386
|
} }
|
|
12459
|
-
const _c0$
|
|
12387
|
+
const _c0$M = function (a0) { return { "form-group-error": a0 }; };
|
|
12460
12388
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
12461
12389
|
ngOnInit() {
|
|
12462
12390
|
/**
|
|
@@ -12498,7 +12426,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
12498
12426
|
i0.ɵɵelementEnd();
|
|
12499
12427
|
i0.ɵɵelementEnd();
|
|
12500
12428
|
} if (rf & 2) {
|
|
12501
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
12429
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
12502
12430
|
i0.ɵɵadvance(1);
|
|
12503
12431
|
i0.ɵɵproperty("for", ctx.id());
|
|
12504
12432
|
i0.ɵɵadvance(1);
|
|
@@ -12525,6 +12453,215 @@ const ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
|
|
|
12525
12453
|
}]
|
|
12526
12454
|
}], null, null); })();
|
|
12527
12455
|
|
|
12456
|
+
class FixedListPipe {
|
|
12457
|
+
transform(value, items) {
|
|
12458
|
+
if (!!items) {
|
|
12459
|
+
const item = items.find(i => i.code === value);
|
|
12460
|
+
return item ? item.label : FixedListPipe.EMPTY;
|
|
12461
|
+
}
|
|
12462
|
+
else {
|
|
12463
|
+
return FixedListPipe.EMPTY;
|
|
12464
|
+
}
|
|
12465
|
+
}
|
|
12466
|
+
}
|
|
12467
|
+
FixedListPipe.EMPTY = '';
|
|
12468
|
+
FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
|
|
12469
|
+
FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
|
|
12470
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
|
|
12471
|
+
type: Pipe,
|
|
12472
|
+
args: [{
|
|
12473
|
+
name: 'ccdFixedList'
|
|
12474
|
+
}]
|
|
12475
|
+
}], null, null); })();
|
|
12476
|
+
|
|
12477
|
+
function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12478
|
+
i0.ɵɵelementStart(0, "div");
|
|
12479
|
+
i0.ɵɵtext(1);
|
|
12480
|
+
i0.ɵɵpipe(2, "ccdFixedList");
|
|
12481
|
+
i0.ɵɵelementEnd();
|
|
12482
|
+
} if (rf & 2) {
|
|
12483
|
+
const value_r1 = ctx.$implicit;
|
|
12484
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
12485
|
+
i0.ɵɵadvance(1);
|
|
12486
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
|
|
12487
|
+
} }
|
|
12488
|
+
class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponent {
|
|
12489
|
+
ngOnInit() {
|
|
12490
|
+
/**
|
|
12491
|
+
*
|
|
12492
|
+
* Reassigning list_items from formatted_list when list_items is empty
|
|
12493
|
+
*/
|
|
12494
|
+
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
12495
|
+
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
12496
|
+
}
|
|
12497
|
+
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
12498
|
+
this.caseField.value = this.caseField.formatted_value.value;
|
|
12499
|
+
}
|
|
12500
|
+
super.ngOnInit();
|
|
12501
|
+
}
|
|
12502
|
+
}
|
|
12503
|
+
ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
|
|
12504
|
+
ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12505
|
+
i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
|
|
12506
|
+
} if (rf & 2) {
|
|
12507
|
+
i0.ɵɵproperty("ngForOf", ctx.caseField.value);
|
|
12508
|
+
} }, directives: [i1.NgForOf], pipes: [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}"] });
|
|
12509
|
+
const ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
|
|
12510
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
|
|
12511
|
+
type: Component,
|
|
12512
|
+
args: [{
|
|
12513
|
+
selector: 'ccd-read-dynamic-multi-select-list-field',
|
|
12514
|
+
templateUrl: './read-dynamic-multi-select-list-field.html',
|
|
12515
|
+
styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
|
|
12516
|
+
}]
|
|
12517
|
+
}], null, null); })();
|
|
12518
|
+
|
|
12519
|
+
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
12520
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
12521
|
+
i0.ɵɵtext(1);
|
|
12522
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
12523
|
+
i0.ɵɵelementEnd();
|
|
12524
|
+
} if (rf & 2) {
|
|
12525
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
12526
|
+
i0.ɵɵadvance(1);
|
|
12527
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
12528
|
+
} }
|
|
12529
|
+
function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
12530
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
12531
|
+
i0.ɵɵtext(1);
|
|
12532
|
+
i0.ɵɵelementEnd();
|
|
12533
|
+
} if (rf & 2) {
|
|
12534
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
12535
|
+
i0.ɵɵadvance(1);
|
|
12536
|
+
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
12537
|
+
} }
|
|
12538
|
+
function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
12539
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
12540
|
+
i0.ɵɵtext(1);
|
|
12541
|
+
i0.ɵɵpipe(2, "ccdFirstError");
|
|
12542
|
+
i0.ɵɵelementEnd();
|
|
12543
|
+
} if (rf & 2) {
|
|
12544
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
12545
|
+
i0.ɵɵadvance(1);
|
|
12546
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
|
|
12547
|
+
} }
|
|
12548
|
+
function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
12549
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
12550
|
+
i0.ɵɵelementContainerStart(0);
|
|
12551
|
+
i0.ɵɵelementStart(1, "div", 8);
|
|
12552
|
+
i0.ɵɵelementStart(2, "input", 9);
|
|
12553
|
+
i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
|
|
12554
|
+
i0.ɵɵelementEnd();
|
|
12555
|
+
i0.ɵɵelementStart(3, "label", 10);
|
|
12556
|
+
i0.ɵɵtext(4);
|
|
12557
|
+
i0.ɵɵelementEnd();
|
|
12558
|
+
i0.ɵɵelementEnd();
|
|
12559
|
+
i0.ɵɵelementContainerEnd();
|
|
12560
|
+
} if (rf & 2) {
|
|
12561
|
+
const checkbox_r4 = ctx.$implicit;
|
|
12562
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
12563
|
+
i0.ɵɵadvance(2);
|
|
12564
|
+
i0.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
|
|
12565
|
+
i0.ɵɵpropertyInterpolate("name", ctx_r3.id());
|
|
12566
|
+
i0.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
|
|
12567
|
+
i0.ɵɵadvance(1);
|
|
12568
|
+
i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
12569
|
+
i0.ɵɵadvance(1);
|
|
12570
|
+
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
12571
|
+
} }
|
|
12572
|
+
const _c0$L = function (a0) { return { "error": a0 }; };
|
|
12573
|
+
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
12574
|
+
ngOnInit() {
|
|
12575
|
+
this.checkboxes = new FormArray([]);
|
|
12576
|
+
this.setInitialCaseList();
|
|
12577
|
+
this.setInitialCaseFieldValue();
|
|
12578
|
+
// Initialise array with existing values
|
|
12579
|
+
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
12580
|
+
const values = this.caseField.value;
|
|
12581
|
+
values.forEach(value => {
|
|
12582
|
+
this.checkboxes.push(new FormControl(value));
|
|
12583
|
+
});
|
|
12584
|
+
}
|
|
12585
|
+
this.dynamicListFormControl = this.registerControl(new FormControl(this.checkboxes.value));
|
|
12586
|
+
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
12587
|
+
}
|
|
12588
|
+
onCheckChange(event) {
|
|
12589
|
+
const target = event.target;
|
|
12590
|
+
if (!target || !target.value) {
|
|
12591
|
+
return;
|
|
12592
|
+
}
|
|
12593
|
+
const selectedListItem = this.getValueListItem(target.value);
|
|
12594
|
+
if (!this.isSelected(target.value)) {
|
|
12595
|
+
// Add a new control in the FormArray
|
|
12596
|
+
this.checkboxes.push(new FormControl(selectedListItem));
|
|
12597
|
+
}
|
|
12598
|
+
else {
|
|
12599
|
+
// Remove the control from the FormArray
|
|
12600
|
+
this.checkboxes.controls.forEach((ctrl, i) => {
|
|
12601
|
+
if (ctrl.value.code === target.value) {
|
|
12602
|
+
this.checkboxes.removeAt(i);
|
|
12603
|
+
}
|
|
12604
|
+
});
|
|
12605
|
+
}
|
|
12606
|
+
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
12607
|
+
}
|
|
12608
|
+
isSelected(code) {
|
|
12609
|
+
if (this.checkboxes && this.checkboxes.controls) {
|
|
12610
|
+
return this.checkboxes.controls.find(control => control.value.code === code);
|
|
12611
|
+
}
|
|
12612
|
+
}
|
|
12613
|
+
getValueListItem(value) {
|
|
12614
|
+
return this.caseField.list_items.find(i => i.code === value);
|
|
12615
|
+
}
|
|
12616
|
+
setInitialCaseList() {
|
|
12617
|
+
const hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
|
|
12618
|
+
const hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
|
|
12619
|
+
if (!hasListItems && hasFormattedListItems) {
|
|
12620
|
+
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
12621
|
+
}
|
|
12622
|
+
}
|
|
12623
|
+
setInitialCaseFieldValue() {
|
|
12624
|
+
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
12625
|
+
this.caseField.value = this.caseField.formatted_value.value;
|
|
12626
|
+
}
|
|
12627
|
+
const isNull = this.caseField.value === undefined || this.caseField.value === '';
|
|
12628
|
+
if (isNull || !Array.isArray(this.caseField.value)) {
|
|
12629
|
+
this.caseField.value = [];
|
|
12630
|
+
}
|
|
12631
|
+
}
|
|
12632
|
+
}
|
|
12633
|
+
WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
|
|
12634
|
+
WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12635
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
12636
|
+
i0.ɵɵelementStart(1, "fieldset");
|
|
12637
|
+
i0.ɵɵelementStart(2, "legend");
|
|
12638
|
+
i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
12639
|
+
i0.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
|
|
12640
|
+
i0.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
12641
|
+
i0.ɵɵelementEnd();
|
|
12642
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
|
|
12643
|
+
i0.ɵɵelementEnd();
|
|
12644
|
+
i0.ɵɵelementEnd();
|
|
12645
|
+
} if (rf & 2) {
|
|
12646
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
12647
|
+
i0.ɵɵadvance(3);
|
|
12648
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
12649
|
+
i0.ɵɵadvance(1);
|
|
12650
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
12651
|
+
i0.ɵɵadvance(1);
|
|
12652
|
+
i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
|
|
12653
|
+
i0.ɵɵadvance(1);
|
|
12654
|
+
i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
12655
|
+
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
12656
|
+
const ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
|
|
12657
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
12658
|
+
type: Component,
|
|
12659
|
+
args: [{
|
|
12660
|
+
selector: 'ccd-write-dynamic-multi-select-list-field',
|
|
12661
|
+
templateUrl: './write-dynamic-multi-select-list-field.html'
|
|
12662
|
+
}]
|
|
12663
|
+
}], null, null); })();
|
|
12664
|
+
|
|
12528
12665
|
class DynamicRadioListPipe {
|
|
12529
12666
|
transform(value, items) {
|
|
12530
12667
|
/**
|
|
@@ -12632,10 +12769,9 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
12632
12769
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
12633
12770
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
12634
12771
|
i0.ɵɵadvance(1);
|
|
12635
|
-
i0.ɵɵ
|
|
12636
|
-
i0.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
12772
|
+
i0.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
12637
12773
|
i0.ɵɵadvance(1);
|
|
12638
|
-
i0.ɵɵproperty("for", ctx_r4.
|
|
12774
|
+
i0.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
|
|
12639
12775
|
i0.ɵɵadvance(1);
|
|
12640
12776
|
i0.ɵɵtextInterpolate(radioButton_r5.label);
|
|
12641
12777
|
} }
|
|
@@ -12659,8 +12795,8 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12659
12795
|
this.dynamicRadioListControl = this.registerControl(new FormControl(this.caseField.value));
|
|
12660
12796
|
this.dynamicRadioListControl.setValue(this.caseField.value);
|
|
12661
12797
|
}
|
|
12662
|
-
|
|
12663
|
-
return
|
|
12798
|
+
createElementId(name) {
|
|
12799
|
+
return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : super.createElementId(name);
|
|
12664
12800
|
}
|
|
12665
12801
|
}
|
|
12666
12802
|
WriteDynamicRadioListFieldComponent.ɵfac = function WriteDynamicRadioListFieldComponent_Factory(t) { return ɵWriteDynamicRadioListFieldComponent_BaseFactory(t || WriteDynamicRadioListFieldComponent); };
|
|
@@ -12803,27 +12939,6 @@ const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherited
|
|
|
12803
12939
|
}]
|
|
12804
12940
|
}], null, null); })();
|
|
12805
12941
|
|
|
12806
|
-
class FixedListPipe {
|
|
12807
|
-
transform(value, items) {
|
|
12808
|
-
if (!!items) {
|
|
12809
|
-
const item = items.find(i => i.code === value);
|
|
12810
|
-
return item ? item.label : FixedListPipe.EMPTY;
|
|
12811
|
-
}
|
|
12812
|
-
else {
|
|
12813
|
-
return FixedListPipe.EMPTY;
|
|
12814
|
-
}
|
|
12815
|
-
}
|
|
12816
|
-
}
|
|
12817
|
-
FixedListPipe.EMPTY = '';
|
|
12818
|
-
FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
|
|
12819
|
-
FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
|
|
12820
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
|
|
12821
|
-
type: Pipe,
|
|
12822
|
-
args: [{
|
|
12823
|
-
name: 'ccdFixedList'
|
|
12824
|
-
}]
|
|
12825
|
-
}], null, null); })();
|
|
12826
|
-
|
|
12827
12942
|
class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
|
|
12828
12943
|
}
|
|
12829
12944
|
ReadFixedListFieldComponent.ɵfac = function ReadFixedListFieldComponent_Factory(t) { return ɵReadFixedListFieldComponent_BaseFactory(t || ReadFixedListFieldComponent); };
|
|
@@ -13384,7 +13499,7 @@ class LinkedCasesService {
|
|
|
13384
13499
|
casesResponse.push(this.mapResponse(result));
|
|
13385
13500
|
});
|
|
13386
13501
|
});
|
|
13387
|
-
|
|
13502
|
+
this.linkedCases = casesResponse.map(item => {
|
|
13388
13503
|
return {
|
|
13389
13504
|
caseReference: item.caseReference,
|
|
13390
13505
|
caseName: item.caseName,
|
|
@@ -13398,7 +13513,6 @@ class LinkedCasesService {
|
|
|
13398
13513
|
}),
|
|
13399
13514
|
};
|
|
13400
13515
|
});
|
|
13401
|
-
this.linkedCases = caseLinks;
|
|
13402
13516
|
this.serverLinkedApiError = null;
|
|
13403
13517
|
}, err => {
|
|
13404
13518
|
this.serverLinkedApiError = {
|
|
@@ -15121,6 +15235,7 @@ UnLinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UnLinkCasesComponent
|
|
|
15121
15235
|
type: Output
|
|
15122
15236
|
}] }); })();
|
|
15123
15237
|
|
|
15238
|
+
// tslint:disable:variable-name
|
|
15124
15239
|
class LinkCaseReason {
|
|
15125
15240
|
}
|
|
15126
15241
|
class CCDCaseLinkType {
|
|
@@ -15231,7 +15346,7 @@ class ReadLinkedCasesFieldComponent {
|
|
|
15231
15346
|
this.caseField = (_a = tab === null || tab === void 0 ? void 0 : tab.fields) === null || _a === void 0 ? void 0 : _a.find(field => field.id === 'caseLinks');
|
|
15232
15347
|
}
|
|
15233
15348
|
this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
|
|
15234
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl()
|
|
15349
|
+
const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
|
|
15235
15350
|
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
15236
15351
|
next: reasons => {
|
|
15237
15352
|
this.reasonListLoaded = true;
|
|
@@ -15466,7 +15581,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15466
15581
|
}
|
|
15467
15582
|
}
|
|
15468
15583
|
getLinkedCaseReasons() {
|
|
15469
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl()
|
|
15584
|
+
const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
|
|
15470
15585
|
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
15471
15586
|
next: reasons => {
|
|
15472
15587
|
// Sort in ascending order
|
|
@@ -15524,8 +15639,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15524
15639
|
getLinkedCases() {
|
|
15525
15640
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
15526
15641
|
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
15527
|
-
|
|
15528
|
-
return linkField;
|
|
15642
|
+
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
15529
15643
|
});
|
|
15530
15644
|
if (caseViewFiltered) {
|
|
15531
15645
|
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; });
|
|
@@ -16642,6 +16756,9 @@ class PaymentField extends AbstractFieldReadComponent {
|
|
|
16642
16756
|
getRefundsUrl() {
|
|
16643
16757
|
return this.appConfig.getRefundsUrl();
|
|
16644
16758
|
}
|
|
16759
|
+
getNotificationUrl() {
|
|
16760
|
+
return this.appConfig.getNotificationUrl();
|
|
16761
|
+
}
|
|
16645
16762
|
getUserRoles() {
|
|
16646
16763
|
const userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
16647
16764
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -16664,10 +16781,10 @@ class CasePaymentHistoryViewerFieldComponent extends PaymentField {
|
|
|
16664
16781
|
}
|
|
16665
16782
|
}
|
|
16666
16783
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
16667
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
16784
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16668
16785
|
i0.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
16669
16786
|
} if (rf & 2) {
|
|
16670
|
-
i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
16787
|
+
i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
16671
16788
|
} }, directives: [i3.PaymentLibComponent], encapsulation: 2 });
|
|
16672
16789
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
|
|
16673
16790
|
type: Component,
|
|
@@ -16827,7 +16944,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16827
16944
|
autoGrow(event) {
|
|
16828
16945
|
if (this.browserService.isIEOrEdge()) {
|
|
16829
16946
|
event.target.style.height = 'auto';
|
|
16830
|
-
event.target.style.height = event.target.scrollHeight
|
|
16947
|
+
event.target.style.height = `${event.target.scrollHeight}px`;
|
|
16831
16948
|
event.target.scrollTop = event.target.scrollHeight;
|
|
16832
16949
|
}
|
|
16833
16950
|
}
|
|
@@ -16978,7 +17095,7 @@ function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf
|
|
|
16978
17095
|
i0.ɵɵelement(0, "ccpay-payment-lib", 1);
|
|
16979
17096
|
} if (rf & 2) {
|
|
16980
17097
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16981
|
-
i0.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17098
|
+
i0.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
16982
17099
|
} }
|
|
16983
17100
|
class WaysToPayFieldComponent extends PaymentField {
|
|
16984
17101
|
constructor(appConfig, sessionStorage) {
|
|
@@ -16989,8 +17106,8 @@ class WaysToPayFieldComponent extends PaymentField {
|
|
|
16989
17106
|
}
|
|
16990
17107
|
}
|
|
16991
17108
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
16992
|
-
WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16993
|
-
i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
17109
|
+
WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17110
|
+
i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
16994
17111
|
} if (rf & 2) {
|
|
16995
17112
|
i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
16996
17113
|
} }, directives: [i1.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
|
|
@@ -17013,6 +17130,7 @@ class YesNoService {
|
|
|
17013
17130
|
return YesNoService.EMPTY;
|
|
17014
17131
|
}
|
|
17015
17132
|
isYes(value) {
|
|
17133
|
+
// tslint:disable-next-line:switch-default
|
|
17016
17134
|
switch (typeof (value)) {
|
|
17017
17135
|
case 'boolean':
|
|
17018
17136
|
return value;
|
|
@@ -17022,6 +17140,7 @@ class YesNoService {
|
|
|
17022
17140
|
return false;
|
|
17023
17141
|
}
|
|
17024
17142
|
isNo(value) {
|
|
17143
|
+
// tslint:disable-next-line:switch-default
|
|
17025
17144
|
switch (typeof (value)) {
|
|
17026
17145
|
case 'boolean':
|
|
17027
17146
|
return !value;
|
|
@@ -17173,7 +17292,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
17173
17292
|
class PaletteService {
|
|
17174
17293
|
constructor() {
|
|
17175
17294
|
this.componentLauncherRegistry = {
|
|
17176
|
-
[DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent,
|
|
17295
|
+
[DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
|
|
17177
17296
|
[DisplayContextCustomParameter.LinkedCases]: [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent]
|
|
17178
17297
|
};
|
|
17179
17298
|
}
|
|
@@ -17203,6 +17322,8 @@ class PaletteService {
|
|
|
17203
17322
|
return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
|
|
17204
17323
|
case 'DynamicRadioList':
|
|
17205
17324
|
return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
|
|
17325
|
+
case 'DynamicMultiSelectList':
|
|
17326
|
+
return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
|
|
17206
17327
|
case 'FixedRadioList':
|
|
17207
17328
|
return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
|
|
17208
17329
|
case 'Complex':
|
|
@@ -17269,7 +17390,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
17269
17390
|
}], null, null); })();
|
|
17270
17391
|
|
|
17271
17392
|
const _c0$v = ["fieldContainer"];
|
|
17272
|
-
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
17393
|
+
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
17273
17394
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
17274
17395
|
constructor(resolver, paletteService) {
|
|
17275
17396
|
super();
|
|
@@ -17347,7 +17468,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
17347
17468
|
}] }); })();
|
|
17348
17469
|
|
|
17349
17470
|
const _c0$u = ["fieldContainer"];
|
|
17350
|
-
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
17471
|
+
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
17351
17472
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
17352
17473
|
constructor(resolver, paletteService) {
|
|
17353
17474
|
super();
|
|
@@ -17841,6 +17962,7 @@ CaseFileViewFolderSortComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileV
|
|
|
17841
17962
|
class CaseFileViewCategory {
|
|
17842
17963
|
}
|
|
17843
17964
|
|
|
17965
|
+
// tslint:disable:variable-name
|
|
17844
17966
|
class CaseFileViewDocument {
|
|
17845
17967
|
}
|
|
17846
17968
|
|
|
@@ -19051,7 +19173,7 @@ class SelectFlagLocationComponent {
|
|
|
19051
19173
|
// is expected not to have a party name)
|
|
19052
19174
|
if (this.flagsData) {
|
|
19053
19175
|
this.filteredFlagsData =
|
|
19054
|
-
this.flagsData.filter(f => f.flags.partyName
|
|
19176
|
+
this.flagsData.filter(f => f.flags.partyName !== null || f.pathToFlagsFormGroup === this.caseLevelCaseFlagsFieldId);
|
|
19055
19177
|
}
|
|
19056
19178
|
// Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
|
|
19057
19179
|
if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
|
|
@@ -20219,18 +20341,19 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
20219
20341
|
field.value = { CaseReference: value };
|
|
20220
20342
|
return field;
|
|
20221
20343
|
}
|
|
20222
|
-
toCaseField(id, label,
|
|
20344
|
+
toCaseField(id, label, fieldType, value) {
|
|
20223
20345
|
return plainToClassFromExist(new CaseField(), {
|
|
20224
20346
|
id,
|
|
20225
20347
|
label,
|
|
20226
20348
|
display_context: 'READONLY',
|
|
20227
20349
|
value,
|
|
20228
|
-
field_type
|
|
20350
|
+
field_type: fieldType
|
|
20229
20351
|
});
|
|
20230
20352
|
}
|
|
20231
20353
|
sortRowsByColumns(column) {
|
|
20232
20354
|
const shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
|
|
20233
20355
|
|| this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
|
|
20356
|
+
// tslint:disable-next-line:switch-default
|
|
20234
20357
|
switch (this.columnsHorizontalLabel[column].type.type) {
|
|
20235
20358
|
case 'Number':
|
|
20236
20359
|
case 'MoneyGBP': {
|
|
@@ -21207,6 +21330,7 @@ MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, sele
|
|
|
21207
21330
|
class FeeValue {
|
|
21208
21331
|
}
|
|
21209
21332
|
|
|
21333
|
+
// tslint:disable:variable-name
|
|
21210
21334
|
class Fee {
|
|
21211
21335
|
}
|
|
21212
21336
|
|
|
@@ -21692,23 +21816,26 @@ class ReadFieldsFilterPipe {
|
|
|
21692
21816
|
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
21693
21817
|
}
|
|
21694
21818
|
static getValue(field, values, index) {
|
|
21695
|
-
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
|
|
21699
|
-
|
|
21700
|
-
|
|
21819
|
+
if (ReadFieldsFilterPipe.isEmpty(field.value)) {
|
|
21820
|
+
let value;
|
|
21821
|
+
if (index >= 0) {
|
|
21822
|
+
value = values[index].value[field.id];
|
|
21823
|
+
}
|
|
21824
|
+
else {
|
|
21825
|
+
value = values[field.id];
|
|
21826
|
+
}
|
|
21827
|
+
return value;
|
|
21701
21828
|
}
|
|
21702
|
-
return
|
|
21829
|
+
return field.value;
|
|
21703
21830
|
}
|
|
21704
|
-
static evaluateConditionalShow(field, formValue, path,
|
|
21831
|
+
static evaluateConditionalShow(field, formValue, path, formGroupAvailable, fieldId) {
|
|
21705
21832
|
if (field.display_context === 'HIDDEN') {
|
|
21706
21833
|
field.hidden = true;
|
|
21707
21834
|
}
|
|
21708
21835
|
else if (field.show_condition) {
|
|
21709
21836
|
let cond;
|
|
21710
|
-
if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !
|
|
21711
|
-
const search = fieldId
|
|
21837
|
+
if (fieldId && field.show_condition.indexOf(`${fieldId}.`) > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
|
|
21838
|
+
const search = `${fieldId}.`;
|
|
21712
21839
|
const searchRegExp = new RegExp(search, 'g');
|
|
21713
21840
|
const replaceWith = '';
|
|
21714
21841
|
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
|
|
@@ -21808,7 +21935,7 @@ CcdTabFieldsPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdTabFields", type: CcdTab
|
|
|
21808
21935
|
|
|
21809
21936
|
class CcdPageFieldsPipe {
|
|
21810
21937
|
transform(page, dataFormGroup) {
|
|
21811
|
-
const
|
|
21938
|
+
const complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(key => {
|
|
21812
21939
|
const control = dataFormGroup.controls['data'].get(key);
|
|
21813
21940
|
return control['caseField'];
|
|
21814
21941
|
}).filter(field => {
|
|
@@ -21827,7 +21954,7 @@ class CcdPageFieldsPipe {
|
|
|
21827
21954
|
field_type: {
|
|
21828
21955
|
id: page.id,
|
|
21829
21956
|
type: 'Complex',
|
|
21830
|
-
complex_fields
|
|
21957
|
+
complex_fields: complexFields
|
|
21831
21958
|
}
|
|
21832
21959
|
});
|
|
21833
21960
|
}
|
|
@@ -21986,11 +22113,11 @@ class CollectionCreateCheckerService {
|
|
|
21986
22113
|
}
|
|
21987
22114
|
return childrenCaseFields;
|
|
21988
22115
|
}
|
|
21989
|
-
isComplex(
|
|
21990
|
-
return
|
|
22116
|
+
isComplex(caseField) {
|
|
22117
|
+
return caseField.field_type.type === 'Complex';
|
|
21991
22118
|
}
|
|
21992
|
-
isCollection(
|
|
21993
|
-
return
|
|
22119
|
+
isCollection(caseField) {
|
|
22120
|
+
return caseField.field_type.type === 'Collection';
|
|
21994
22121
|
}
|
|
21995
22122
|
hasCreateAccess(caseField, role) {
|
|
21996
22123
|
return !!caseField.acls.find(acl => acl.role === role && acl.create === true);
|
|
@@ -22078,6 +22205,8 @@ const PALETTE_COMPONENTS = [
|
|
|
22078
22205
|
WriteDocumentFieldComponent,
|
|
22079
22206
|
WriteDynamicListFieldComponent,
|
|
22080
22207
|
WriteDynamicRadioListFieldComponent,
|
|
22208
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22209
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22081
22210
|
WriteTextFieldComponent,
|
|
22082
22211
|
WriteDateContainerFieldComponent,
|
|
22083
22212
|
WriteTextAreaFieldComponent,
|
|
@@ -22101,12 +22230,18 @@ const PALETTE_COMPONENTS = [
|
|
|
22101
22230
|
WriteCollectionFieldComponent,
|
|
22102
22231
|
// ComponentLauncher web components
|
|
22103
22232
|
CaseFileViewFieldComponent,
|
|
22104
|
-
CaseFileViewFieldReadComponent,
|
|
22105
22233
|
CaseFileViewFolderComponent,
|
|
22106
22234
|
CaseFileViewFolderSortComponent,
|
|
22107
22235
|
CaseFileViewOverlayMenuComponent,
|
|
22108
22236
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22109
22237
|
CaseFileViewFolderSelectorComponent,
|
|
22238
|
+
// component for dynamic list
|
|
22239
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22240
|
+
WriteDynamicRadioListFieldComponent,
|
|
22241
|
+
WriteDynamicListFieldComponent,
|
|
22242
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22243
|
+
ReadDynamicListFieldComponent,
|
|
22244
|
+
ReadDynamicRadioListFieldComponent,
|
|
22110
22245
|
LinkedCasesToTableComponent,
|
|
22111
22246
|
LinkedCasesFromTableComponent,
|
|
22112
22247
|
BeforeYouStartComponent,
|
|
@@ -22233,6 +22368,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22233
22368
|
WriteDocumentFieldComponent,
|
|
22234
22369
|
WriteDynamicListFieldComponent,
|
|
22235
22370
|
WriteDynamicRadioListFieldComponent,
|
|
22371
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22372
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22236
22373
|
WriteTextFieldComponent,
|
|
22237
22374
|
WriteDateContainerFieldComponent,
|
|
22238
22375
|
WriteTextAreaFieldComponent,
|
|
@@ -22256,12 +22393,18 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22256
22393
|
WriteCollectionFieldComponent,
|
|
22257
22394
|
// ComponentLauncher web components
|
|
22258
22395
|
CaseFileViewFieldComponent,
|
|
22259
|
-
CaseFileViewFieldReadComponent,
|
|
22260
22396
|
CaseFileViewFolderComponent,
|
|
22261
22397
|
CaseFileViewFolderSortComponent,
|
|
22262
22398
|
CaseFileViewOverlayMenuComponent,
|
|
22263
22399
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22264
22400
|
CaseFileViewFolderSelectorComponent,
|
|
22401
|
+
// component for dynamic list
|
|
22402
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22403
|
+
WriteDynamicRadioListFieldComponent,
|
|
22404
|
+
WriteDynamicListFieldComponent,
|
|
22405
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22406
|
+
ReadDynamicListFieldComponent,
|
|
22407
|
+
ReadDynamicRadioListFieldComponent,
|
|
22265
22408
|
LinkedCasesToTableComponent,
|
|
22266
22409
|
LinkedCasesFromTableComponent,
|
|
22267
22410
|
BeforeYouStartComponent,
|
|
@@ -22351,6 +22494,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22351
22494
|
WriteDocumentFieldComponent,
|
|
22352
22495
|
WriteDynamicListFieldComponent,
|
|
22353
22496
|
WriteDynamicRadioListFieldComponent,
|
|
22497
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22498
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22354
22499
|
WriteTextFieldComponent,
|
|
22355
22500
|
WriteDateContainerFieldComponent,
|
|
22356
22501
|
WriteTextAreaFieldComponent,
|
|
@@ -22374,12 +22519,18 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22374
22519
|
WriteCollectionFieldComponent,
|
|
22375
22520
|
// ComponentLauncher web components
|
|
22376
22521
|
CaseFileViewFieldComponent,
|
|
22377
|
-
CaseFileViewFieldReadComponent,
|
|
22378
22522
|
CaseFileViewFolderComponent,
|
|
22379
22523
|
CaseFileViewFolderSortComponent,
|
|
22380
22524
|
CaseFileViewOverlayMenuComponent,
|
|
22381
22525
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22382
22526
|
CaseFileViewFolderSelectorComponent,
|
|
22527
|
+
// component for dynamic list
|
|
22528
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22529
|
+
WriteDynamicRadioListFieldComponent,
|
|
22530
|
+
WriteDynamicListFieldComponent,
|
|
22531
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22532
|
+
ReadDynamicListFieldComponent,
|
|
22533
|
+
ReadDynamicRadioListFieldComponent,
|
|
22383
22534
|
LinkedCasesToTableComponent,
|
|
22384
22535
|
LinkedCasesFromTableComponent,
|
|
22385
22536
|
BeforeYouStartComponent,
|
|
@@ -22504,8 +22655,7 @@ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePic
|
|
|
22504
22655
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22505
22656
|
i0.ɵɵsetComponentScope(
|
|
22506
22657
|
// ComponentLauncher web components
|
|
22507
|
-
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i11
|
|
22508
|
-
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.ɵcs], []);
|
|
22658
|
+
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.MediaViewerComponent], []);
|
|
22509
22659
|
i0.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22510
22660
|
i0.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
22511
22661
|
i0.ɵɵsetComponentScope(LinkCasesComponent, [i1.NgIf, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, i2.FormArrayName, i1.NgForOf, i2.FormGroupName, i2.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
@@ -23081,7 +23231,7 @@ class CaseEditSubmitComponent {
|
|
|
23081
23231
|
if (caseField.field_type.type === 'Complex') {
|
|
23082
23232
|
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
23083
23233
|
// handle both null and undefined values
|
|
23084
|
-
if (caseField.value
|
|
23234
|
+
if (caseField.value !== null) {
|
|
23085
23235
|
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
23086
23236
|
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
23087
23237
|
// parent)
|
|
@@ -23143,8 +23293,8 @@ class CaseEditSubmitComponent {
|
|
|
23143
23293
|
this.caseEdit.navigateToPage(pageId);
|
|
23144
23294
|
}
|
|
23145
23295
|
callbackErrorsNotify(errorContext) {
|
|
23146
|
-
this.ignoreWarning = errorContext.
|
|
23147
|
-
this.triggerText = errorContext.
|
|
23296
|
+
this.ignoreWarning = errorContext.ignoreWarning;
|
|
23297
|
+
this.triggerText = errorContext.triggerText;
|
|
23148
23298
|
}
|
|
23149
23299
|
summaryCaseField(field) {
|
|
23150
23300
|
if (null === this.editForm.get('data').get(field.id)) {
|
|
@@ -23697,6 +23847,7 @@ class CaseEventCompletionComponent {
|
|
|
23697
23847
|
{ provide: COMPONENT_PORTAL_INJECTION_TOKEN, useValue: this }
|
|
23698
23848
|
]
|
|
23699
23849
|
});
|
|
23850
|
+
// tslint:disable-next-line:switch-default
|
|
23700
23851
|
switch (portalType) {
|
|
23701
23852
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
23702
23853
|
this.selectedComponentPortal = new ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
@@ -24167,27 +24318,27 @@ class PaginationComponent {
|
|
|
24167
24318
|
this.screenReaderCurrentLabel = `You're on page`;
|
|
24168
24319
|
this.pageChange = new EventEmitter();
|
|
24169
24320
|
this.pageBoundsCorrection = new EventEmitter();
|
|
24170
|
-
this.
|
|
24171
|
-
this.
|
|
24172
|
-
this.
|
|
24321
|
+
this.pDirectionLinks = true;
|
|
24322
|
+
this.pAutoHide = false;
|
|
24323
|
+
this.pResponsive = false;
|
|
24173
24324
|
}
|
|
24174
24325
|
get directionLinks() {
|
|
24175
|
-
return this.
|
|
24326
|
+
return this.pDirectionLinks;
|
|
24176
24327
|
}
|
|
24177
24328
|
set directionLinks(value) {
|
|
24178
|
-
this.
|
|
24329
|
+
this.pDirectionLinks = coerceToBoolean(value);
|
|
24179
24330
|
}
|
|
24180
24331
|
get autoHide() {
|
|
24181
|
-
return this.
|
|
24332
|
+
return this.pAutoHide;
|
|
24182
24333
|
}
|
|
24183
24334
|
set autoHide(value) {
|
|
24184
|
-
this.
|
|
24335
|
+
this.pAutoHide = coerceToBoolean(value);
|
|
24185
24336
|
}
|
|
24186
24337
|
get responsive() {
|
|
24187
|
-
return this.
|
|
24338
|
+
return this.pResponsive;
|
|
24188
24339
|
}
|
|
24189
24340
|
set responsive(value) {
|
|
24190
|
-
this.
|
|
24341
|
+
this.pResponsive = coerceToBoolean(value);
|
|
24191
24342
|
}
|
|
24192
24343
|
}
|
|
24193
24344
|
PaginationComponent.ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
|
|
@@ -24848,7 +24999,7 @@ class WorkbasketFiltersComponent {
|
|
|
24848
24999
|
const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
24849
25000
|
workbasketInputs.forEach(item => {
|
|
24850
25001
|
if (item.field.elementPath) {
|
|
24851
|
-
item.field.id = item.field.id
|
|
25002
|
+
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
24852
25003
|
}
|
|
24853
25004
|
item.field.label = item.label;
|
|
24854
25005
|
if (formValue) {
|
|
@@ -24900,7 +25051,7 @@ class WorkbasketFiltersComponent {
|
|
|
24900
25051
|
const value = formGroupLS[key];
|
|
24901
25052
|
// Clear the filter form group control values if it has a value in local storage
|
|
24902
25053
|
// The regionList form group control value should be ignored as it always contain the latest value
|
|
24903
|
-
if (key !== REGION_LIST_AND_FRC_FILTER && value
|
|
25054
|
+
if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
|
|
24904
25055
|
this.formGroup.get(key).setValue(null);
|
|
24905
25056
|
}
|
|
24906
25057
|
}
|
|
@@ -25923,7 +26074,7 @@ class CaseEventTriggerComponent {
|
|
|
25923
26074
|
this.eventTrigger = this.route.snapshot.data.eventTrigger;
|
|
25924
26075
|
if (this.activityPollingService.isEnabled) {
|
|
25925
26076
|
this.ngZone.runOutsideAngular(() => {
|
|
25926
|
-
this.activitySubscription = this.postEditActivity().subscribe((
|
|
26077
|
+
this.activitySubscription = this.postEditActivity().subscribe(() => {
|
|
25927
26078
|
// console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
|
|
25928
26079
|
});
|
|
25929
26080
|
});
|
|
@@ -26769,8 +26920,8 @@ class CaseFullAccessViewComponent {
|
|
|
26769
26920
|
return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
|
|
26770
26921
|
}
|
|
26771
26922
|
callbackErrorsNotify(callbackErrorsContext) {
|
|
26772
|
-
this.ignoreWarning = callbackErrorsContext.
|
|
26773
|
-
this.triggerText = callbackErrorsContext.
|
|
26923
|
+
this.ignoreWarning = callbackErrorsContext.ignoreWarning;
|
|
26924
|
+
this.triggerText = callbackErrorsContext.triggerText;
|
|
26774
26925
|
}
|
|
26775
26926
|
isDraft() {
|
|
26776
26927
|
return Draft.isDraft(this.caseDetails.case_id);
|
|
@@ -27037,7 +27188,7 @@ class PrintUrlPipe {
|
|
|
27037
27188
|
* or the empty string
|
|
27038
27189
|
*/
|
|
27039
27190
|
transform(remoteUrl) {
|
|
27040
|
-
if (remoteUrl
|
|
27191
|
+
if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
|
|
27041
27192
|
let printServiceUrlPathname;
|
|
27042
27193
|
/**
|
|
27043
27194
|
* Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
|
|
@@ -27053,7 +27204,7 @@ class PrintUrlPipe {
|
|
|
27053
27204
|
printServiceUrlPathname = urlParser.pathname;
|
|
27054
27205
|
if (printServiceUrlPathname[0] !== '/') {
|
|
27055
27206
|
// Fix for IE11; it returns the pathname without leading slash
|
|
27056
|
-
printServiceUrlPathname =
|
|
27207
|
+
printServiceUrlPathname = `/${printServiceUrlPathname}`;
|
|
27057
27208
|
}
|
|
27058
27209
|
}
|
|
27059
27210
|
else {
|
|
@@ -27230,10 +27381,10 @@ class CaseViewerComponent {
|
|
|
27230
27381
|
}
|
|
27231
27382
|
setUserAccessType(caseDetails) {
|
|
27232
27383
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
27233
|
-
const
|
|
27234
|
-
const
|
|
27235
|
-
this.accessGranted =
|
|
27236
|
-
this.userAccessType =
|
|
27384
|
+
const accessProcess = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID);
|
|
27385
|
+
const accessGranted = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID);
|
|
27386
|
+
this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
27387
|
+
this.userAccessType = accessProcess ? accessProcess.value : null;
|
|
27237
27388
|
}
|
|
27238
27389
|
}
|
|
27239
27390
|
isDataLoaded() {
|
|
@@ -28398,11 +28549,11 @@ class CaseChallengedAccessRequestComponent {
|
|
|
28398
28549
|
};
|
|
28399
28550
|
this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId, challengedAccessRequest)
|
|
28400
28551
|
.pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
|
|
28401
|
-
.subscribe(
|
|
28552
|
+
.subscribe(() => {
|
|
28402
28553
|
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
28403
28554
|
// Angular 7.2!
|
|
28404
28555
|
this.router.navigate(['success'], { relativeTo: this.route });
|
|
28405
|
-
},
|
|
28556
|
+
}, () => {
|
|
28406
28557
|
// Navigate to error page
|
|
28407
28558
|
});
|
|
28408
28559
|
}
|
|
@@ -28416,7 +28567,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
28416
28567
|
}
|
|
28417
28568
|
}
|
|
28418
28569
|
inputEmpty(input) {
|
|
28419
|
-
return input.value
|
|
28570
|
+
return input.value === null || input.value.trim().length === 0;
|
|
28420
28571
|
}
|
|
28421
28572
|
}
|
|
28422
28573
|
CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
@@ -29002,11 +29153,11 @@ class CaseSpecificAccessRequestComponent {
|
|
|
29002
29153
|
};
|
|
29003
29154
|
this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId, specificAccessRequest)
|
|
29004
29155
|
.pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
|
|
29005
|
-
.subscribe(
|
|
29156
|
+
.subscribe(() => {
|
|
29006
29157
|
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
29007
29158
|
// Angular 7.2
|
|
29008
29159
|
this.router.navigate(['success'], { relativeTo: this.route });
|
|
29009
|
-
},
|
|
29160
|
+
}, () => {
|
|
29010
29161
|
// Navigate to error page
|
|
29011
29162
|
});
|
|
29012
29163
|
}
|
|
@@ -29021,7 +29172,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
29021
29172
|
}
|
|
29022
29173
|
}
|
|
29023
29174
|
inputEmpty(input) {
|
|
29024
|
-
return input.value
|
|
29175
|
+
return input.value === null || input.value.trim().length === 0;
|
|
29025
29176
|
}
|
|
29026
29177
|
}
|
|
29027
29178
|
CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
@@ -29863,7 +30014,7 @@ class SearchFiltersComponent {
|
|
|
29863
30014
|
}
|
|
29864
30015
|
searchInputs.forEach(item => {
|
|
29865
30016
|
if (item.field.elementPath) {
|
|
29866
|
-
item.field.id = item.field.id
|
|
30017
|
+
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
29867
30018
|
}
|
|
29868
30019
|
item.field.label = item.label;
|
|
29869
30020
|
if (formValueObject) {
|
|
@@ -30117,7 +30268,7 @@ function SearchResultComponent_table_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
30117
30268
|
} if (rf & 2) {
|
|
30118
30269
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
30119
30270
|
i0.ɵɵadvance(6);
|
|
30120
|
-
i0.ɵɵtextInterpolate1(" The total size of the result set is ", i0.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.
|
|
30271
|
+
i0.ɵɵtextInterpolate1(" The total size of the result set is ", i0.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.totalResultsCount), ". Only the first 10,000 records are available for display. ");
|
|
30121
30272
|
} }
|
|
30122
30273
|
function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
30123
30274
|
i0.ɵɵelementStart(0, "div", 15);
|
|
@@ -30575,7 +30726,7 @@ class SearchResultComponent {
|
|
|
30575
30726
|
}
|
|
30576
30727
|
}
|
|
30577
30728
|
get resultTotal() {
|
|
30578
|
-
const total = this.paginationMetadata.
|
|
30729
|
+
const total = this.paginationMetadata.totalResultsCount;
|
|
30579
30730
|
const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
30580
30731
|
this.paginationLimitEnforced = maximumResultReached;
|
|
30581
30732
|
return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
|
|
@@ -30720,7 +30871,7 @@ class SearchResultComponent {
|
|
|
30720
30871
|
return col;
|
|
30721
30872
|
}
|
|
30722
30873
|
hasResults() {
|
|
30723
|
-
return this.resultView.results.length && this.paginationMetadata.
|
|
30874
|
+
return this.resultView.results.length && this.paginationMetadata.totalPagesCount;
|
|
30724
30875
|
}
|
|
30725
30876
|
hasDrafts() {
|
|
30726
30877
|
return this.resultView.hasDrafts();
|
|
@@ -30819,7 +30970,7 @@ class SearchResultComponent {
|
|
|
30819
30970
|
return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
|
|
30820
30971
|
}
|
|
30821
30972
|
getTotalResults() {
|
|
30822
|
-
const total = this.paginationMetadata.
|
|
30973
|
+
const total = this.paginationMetadata.totalResultsCount + this.draftsCount;
|
|
30823
30974
|
return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
|
|
30824
30975
|
}
|
|
30825
30976
|
prepareCaseLinkUrl(caseId) {
|
|
@@ -30964,6 +31115,7 @@ SearchResultModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
30964
31115
|
}], null, null); })();
|
|
30965
31116
|
i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
30966
31117
|
|
|
31118
|
+
// tslint:disable:variable-name
|
|
30967
31119
|
class ComplexFieldOverride {
|
|
30968
31120
|
}
|
|
30969
31121
|
|
|
@@ -30982,24 +31134,24 @@ class CaseFieldBuilder {
|
|
|
30982
31134
|
this.caseField.id = id;
|
|
30983
31135
|
return this;
|
|
30984
31136
|
}
|
|
30985
|
-
withFieldType(
|
|
30986
|
-
this.caseField.field_type =
|
|
31137
|
+
withFieldType(fieldType) {
|
|
31138
|
+
this.caseField.field_type = fieldType;
|
|
30987
31139
|
return this;
|
|
30988
31140
|
}
|
|
30989
|
-
withDisplayContext(
|
|
30990
|
-
this.caseField.display_context =
|
|
31141
|
+
withDisplayContext(displayContext) {
|
|
31142
|
+
this.caseField.display_context = displayContext;
|
|
30991
31143
|
return this;
|
|
30992
31144
|
}
|
|
30993
|
-
withDisplayContextParameter(
|
|
30994
|
-
this.caseField.display_context_parameter =
|
|
31145
|
+
withDisplayContextParameter(displayContextParameter) {
|
|
31146
|
+
this.caseField.display_context_parameter = displayContextParameter;
|
|
30995
31147
|
return this;
|
|
30996
31148
|
}
|
|
30997
31149
|
withHidden(hidden) {
|
|
30998
31150
|
this.caseField.hidden = hidden;
|
|
30999
31151
|
return this;
|
|
31000
31152
|
}
|
|
31001
|
-
withHintText(
|
|
31002
|
-
this.caseField.hint_text =
|
|
31153
|
+
withHintText(hintText) {
|
|
31154
|
+
this.caseField.hint_text = hintText;
|
|
31003
31155
|
return this;
|
|
31004
31156
|
}
|
|
31005
31157
|
withLabel(label) {
|
|
@@ -31010,12 +31162,12 @@ class CaseFieldBuilder {
|
|
|
31010
31162
|
this.caseField.order = order;
|
|
31011
31163
|
return this;
|
|
31012
31164
|
}
|
|
31013
|
-
withSecurityLabel(
|
|
31014
|
-
this.caseField.security_label =
|
|
31165
|
+
withSecurityLabel(securityLabel) {
|
|
31166
|
+
this.caseField.security_label = securityLabel;
|
|
31015
31167
|
return this;
|
|
31016
31168
|
}
|
|
31017
|
-
withShowCondition(
|
|
31018
|
-
this.caseField.show_condition =
|
|
31169
|
+
withShowCondition(showCondition) {
|
|
31170
|
+
this.caseField.show_condition = showCondition;
|
|
31019
31171
|
return this;
|
|
31020
31172
|
}
|
|
31021
31173
|
withShowSummaryContentOption(option) {
|
|
@@ -31042,19 +31194,19 @@ const textFieldType = () => {
|
|
|
31042
31194
|
complex_fields: []
|
|
31043
31195
|
};
|
|
31044
31196
|
};
|
|
31045
|
-
const createCaseEventTrigger = (id, name,
|
|
31197
|
+
const createCaseEventTrigger = (id, name, caseId, showSummary, caseFields, wizardPages = [], canSaveDraft = false) => {
|
|
31046
31198
|
const eventTrigger = new CaseEventTrigger();
|
|
31047
31199
|
eventTrigger.id = id;
|
|
31048
31200
|
eventTrigger.name = name;
|
|
31049
|
-
eventTrigger.case_id =
|
|
31050
|
-
eventTrigger.show_summary =
|
|
31051
|
-
eventTrigger.wizard_pages =
|
|
31201
|
+
eventTrigger.case_id = caseId;
|
|
31202
|
+
eventTrigger.show_summary = showSummary;
|
|
31203
|
+
eventTrigger.wizard_pages = wizardPages;
|
|
31052
31204
|
eventTrigger.event_token = 'test-token';
|
|
31053
|
-
eventTrigger.case_fields =
|
|
31054
|
-
eventTrigger.can_save_draft =
|
|
31205
|
+
eventTrigger.case_fields = caseFields;
|
|
31206
|
+
eventTrigger.can_save_draft = canSaveDraft;
|
|
31055
31207
|
return eventTrigger;
|
|
31056
31208
|
};
|
|
31057
|
-
const aCaseField = (id, label, type,
|
|
31209
|
+
const aCaseField = (id, label, type, displayContext, showSummaryContentOption, typeComplexFields = [], retainHiddenValue, hidden) => {
|
|
31058
31210
|
return ({
|
|
31059
31211
|
id: id || 'personFirstName',
|
|
31060
31212
|
field_type: {
|
|
@@ -31062,10 +31214,10 @@ const aCaseField = (id, label, type, display_context, show_summary_content_optio
|
|
|
31062
31214
|
type: type || 'Text',
|
|
31063
31215
|
complex_fields: typeComplexFields || []
|
|
31064
31216
|
},
|
|
31065
|
-
display_context:
|
|
31217
|
+
display_context: displayContext || 'OPTIONAL',
|
|
31066
31218
|
label: label || 'First name',
|
|
31067
|
-
show_summary_content_option,
|
|
31068
|
-
retain_hidden_value:
|
|
31219
|
+
show_summary_content_option: showSummaryContentOption,
|
|
31220
|
+
retain_hidden_value: retainHiddenValue || false,
|
|
31069
31221
|
hidden: hidden || false
|
|
31070
31222
|
});
|
|
31071
31223
|
};
|
|
@@ -31103,59 +31255,59 @@ const createHiddenComplexFieldOverride = (id) => {
|
|
|
31103
31255
|
complexFieldOverride.display_context = 'HIDDEN';
|
|
31104
31256
|
return complexFieldOverride;
|
|
31105
31257
|
};
|
|
31106
|
-
const createCaseField = (id, label, hint, fieldType,
|
|
31258
|
+
const createCaseField = (id, label, hint, fieldType, displayContext, order = undefined, showCondition = undefined, acls = undefined, hidden) => {
|
|
31107
31259
|
return CaseFieldBuilder.create()
|
|
31108
31260
|
.withId(id || 'personFirstName')
|
|
31109
31261
|
.withFieldType(fieldType || textFieldType())
|
|
31110
|
-
.withDisplayContext(
|
|
31262
|
+
.withDisplayContext(displayContext || 'OPTIONAL')
|
|
31111
31263
|
.withLabel(label || 'First name')
|
|
31112
31264
|
.withHintText(hint || 'First name hint text')
|
|
31113
31265
|
.withShowSummaryContentOption(0)
|
|
31114
31266
|
.withOrder(order)
|
|
31115
|
-
.withShowCondition(
|
|
31116
|
-
.withACLs(
|
|
31267
|
+
.withShowCondition(showCondition || undefined)
|
|
31268
|
+
.withACLs(acls)
|
|
31117
31269
|
.withHidden(hidden || false)
|
|
31118
31270
|
.build();
|
|
31119
31271
|
};
|
|
31120
|
-
const newCaseField = (id, label, hint, fieldType,
|
|
31272
|
+
const newCaseField = (id, label, hint, fieldType, displayContext, order = undefined) => {
|
|
31121
31273
|
return CaseFieldBuilder.create()
|
|
31122
31274
|
.withId(id || 'personFirstName')
|
|
31123
31275
|
.withFieldType(fieldType || textFieldType())
|
|
31124
|
-
.withDisplayContext(
|
|
31276
|
+
.withDisplayContext(displayContext || 'OPTIONAL')
|
|
31125
31277
|
.withHintText(hint || 'First name hint text')
|
|
31126
31278
|
.withLabel(label || 'First name')
|
|
31127
31279
|
.withOrder(order)
|
|
31128
31280
|
.withShowSummaryContentOption(0);
|
|
31129
31281
|
};
|
|
31130
|
-
const createFieldType = (typeId, type,
|
|
31282
|
+
const createFieldType = (typeId, type, complexFields = [], collectionFieldType = undefined) => {
|
|
31131
31283
|
return {
|
|
31132
31284
|
id: typeId || 'Text',
|
|
31133
31285
|
type: type || 'Text',
|
|
31134
|
-
complex_fields:
|
|
31135
|
-
collection_field_type:
|
|
31286
|
+
complex_fields: complexFields || [],
|
|
31287
|
+
collection_field_type: collectionFieldType || undefined
|
|
31136
31288
|
};
|
|
31137
31289
|
};
|
|
31138
31290
|
const createFixedListFieldType = (typeId, fixedListItems = []) => {
|
|
31139
31291
|
return {
|
|
31140
|
-
id:
|
|
31292
|
+
id: `FixedList-${typeId}`,
|
|
31141
31293
|
type: 'FixedList',
|
|
31142
31294
|
fixed_list_items: fixedListItems || []
|
|
31143
31295
|
};
|
|
31144
31296
|
};
|
|
31145
31297
|
const createMultiSelectListFieldType = (typeId, fixedListItems = []) => {
|
|
31146
31298
|
return {
|
|
31147
|
-
id:
|
|
31299
|
+
id: `MultiSelectList-${typeId}`,
|
|
31148
31300
|
type: 'MultiSelectList',
|
|
31149
31301
|
fixed_list_items: fixedListItems || []
|
|
31150
31302
|
};
|
|
31151
31303
|
};
|
|
31152
|
-
const createACL = (role,
|
|
31304
|
+
const createACL = (role, aclCreate, aclRead, aclUpdate, aclDelete) => {
|
|
31153
31305
|
return ({
|
|
31154
31306
|
role: role || 'roleX',
|
|
31155
|
-
create,
|
|
31156
|
-
read,
|
|
31157
|
-
update,
|
|
31158
|
-
delete:
|
|
31307
|
+
create: aclCreate,
|
|
31308
|
+
read: aclRead,
|
|
31309
|
+
update: aclUpdate,
|
|
31310
|
+
delete: aclDelete
|
|
31159
31311
|
});
|
|
31160
31312
|
};
|
|
31161
31313
|
|
|
@@ -31202,5 +31354,5 @@ class TestRouteSnapshotBuilder {
|
|
|
31202
31354
|
* Generated bundle index. Do not edit.
|
|
31203
31355
|
*/
|
|
31204
31356
|
|
|
31205
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent,
|
|
31357
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
31206
31358
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|