@hmcts/ccd-case-ui-toolkit 6.13.10-c → 6.13.10-case-file-view-display-document-upload-date
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 +549 -392
- 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-page/case-edit-page.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -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/services/cases.service.js +8 -16
- 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 +2 -2
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -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 +1 -1
- 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/event-start/event-guard/event-start.guard.js +2 -2
- 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/case-file-view/case-file-view-field.component.js +12 -5
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +24 -15
- 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 +17 -6
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +3 -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 +1 -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 +1 -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/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/search-filters/search-filters.component.js +2 -2
- 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 +3 -3
- package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +3 -7
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +1 -1
- package/esm2015/lib/shared/domain/case-view/case-view.model.js +1 -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-field.model.js +6 -3
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
- package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
- 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/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 +4 -4
- package/esm2015/lib/shared/services/form/field-type-sanitiser.js +16 -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 +507 -362
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- 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-page/case-edit-page.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/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-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/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/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/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/components/case-file-view-folder/case-file-view-folder.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/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/case-file-view/case-file-view-document.model.d.ts +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/document-tree-node/document-tree-node.model.d.ts +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.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-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/organisation/organisation-converter.d.ts.map +1 -1
- package/lib/shared/domain/user/user-info.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/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 -11
- 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
|
}
|
|
@@ -2821,9 +2812,12 @@ class CaseField {
|
|
|
2821
2812
|
this._list_items = [];
|
|
2822
2813
|
}
|
|
2823
2814
|
get value() {
|
|
2824
|
-
if (this.
|
|
2815
|
+
if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
|
|
2825
2816
|
return this._value && this._value.value ? this._value.value.code : this._value;
|
|
2826
2817
|
}
|
|
2818
|
+
else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
|
|
2819
|
+
return this._value && this._value.value ? this._value.value : this._value;
|
|
2820
|
+
}
|
|
2827
2821
|
else {
|
|
2828
2822
|
return this._value;
|
|
2829
2823
|
}
|
|
@@ -2897,7 +2891,7 @@ class CaseField {
|
|
|
2897
2891
|
return this.field_type && this.field_type.type === 'Complex';
|
|
2898
2892
|
}
|
|
2899
2893
|
isDynamic() {
|
|
2900
|
-
const dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
|
|
2894
|
+
const dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
|
|
2901
2895
|
if (!this.field_type) {
|
|
2902
2896
|
return false;
|
|
2903
2897
|
}
|
|
@@ -3121,25 +3115,25 @@ class OrganisationConverter {
|
|
|
3121
3115
|
static toSimpleAddress(organisationModel) {
|
|
3122
3116
|
let simpleAddress = '';
|
|
3123
3117
|
if (organisationModel.addressLine1) {
|
|
3124
|
-
simpleAddress += organisationModel.addressLine1
|
|
3118
|
+
simpleAddress += `${organisationModel.addressLine1}<br>`;
|
|
3125
3119
|
}
|
|
3126
3120
|
if (organisationModel.addressLine2) {
|
|
3127
|
-
simpleAddress += organisationModel.addressLine2
|
|
3121
|
+
simpleAddress += `${organisationModel.addressLine2}<br>`;
|
|
3128
3122
|
}
|
|
3129
3123
|
if (organisationModel.addressLine3) {
|
|
3130
|
-
simpleAddress += organisationModel.addressLine3
|
|
3124
|
+
simpleAddress += `${organisationModel.addressLine3}<br>`;
|
|
3131
3125
|
}
|
|
3132
3126
|
if (organisationModel.townCity) {
|
|
3133
|
-
simpleAddress += organisationModel.townCity
|
|
3127
|
+
simpleAddress += `${organisationModel.townCity}<br>`;
|
|
3134
3128
|
}
|
|
3135
3129
|
if (organisationModel.county) {
|
|
3136
|
-
simpleAddress += organisationModel.county
|
|
3130
|
+
simpleAddress += `${organisationModel.county}<br>`;
|
|
3137
3131
|
}
|
|
3138
3132
|
if (organisationModel.country) {
|
|
3139
|
-
simpleAddress += organisationModel.country
|
|
3133
|
+
simpleAddress += `${organisationModel.country}<br>`;
|
|
3140
3134
|
}
|
|
3141
3135
|
if (organisationModel.postCode) {
|
|
3142
|
-
simpleAddress += organisationModel.postCode
|
|
3136
|
+
simpleAddress += `${organisationModel.postCode}<br>`;
|
|
3143
3137
|
}
|
|
3144
3138
|
return simpleAddress;
|
|
3145
3139
|
}
|
|
@@ -3272,9 +3266,9 @@ class FieldsUtils {
|
|
|
3272
3266
|
});
|
|
3273
3267
|
return valueMap;
|
|
3274
3268
|
}
|
|
3275
|
-
static getType(elem) {
|
|
3276
|
-
|
|
3277
|
-
}
|
|
3269
|
+
// public static getType(elem: any): string {
|
|
3270
|
+
// return Object.prototype.toString.call(elem).slice(8, -1);
|
|
3271
|
+
// }
|
|
3278
3272
|
static isObject(elem) {
|
|
3279
3273
|
return typeof elem === 'object' && elem !== null;
|
|
3280
3274
|
}
|
|
@@ -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,7 +3946,6 @@ class ConditionParser {
|
|
|
3955
3946
|
}
|
|
3956
3947
|
return currentConditionResult;
|
|
3957
3948
|
}, true);
|
|
3958
|
-
return result;
|
|
3959
3949
|
}
|
|
3960
3950
|
static evaluateJoin(leftResult, comparator, rightResult) {
|
|
3961
3951
|
switch (comparator) {
|
|
@@ -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;
|
|
@@ -4683,14 +4673,14 @@ class FieldsPurger {
|
|
|
4683
4673
|
const formFields = form.getRawValue();
|
|
4684
4674
|
const currentPage = wizard.getPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
|
|
4685
4675
|
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,
|
|
4676
|
+
const caseField = this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
|
|
4677
|
+
if (this.hasShowConditionField(caseField, formFields)) {
|
|
4678
|
+
const condition = new ShowCondition(caseField.show_condition);
|
|
4679
|
+
if (this.isHidden(condition, formFields.data) && !(this.isReadonly(caseField))) {
|
|
4680
|
+
this.resetField(form, caseField);
|
|
4691
4681
|
}
|
|
4692
4682
|
}
|
|
4693
|
-
this.retainHiddenValueByFieldType(
|
|
4683
|
+
this.retainHiddenValueByFieldType(caseField, form);
|
|
4694
4684
|
});
|
|
4695
4685
|
}
|
|
4696
4686
|
retainHiddenValueByFieldType(field, form) {
|
|
@@ -4721,13 +4711,13 @@ class FieldsPurger {
|
|
|
4721
4711
|
hasShowConditionPage(wizardPage, formFields) {
|
|
4722
4712
|
return wizardPage.show_condition && formFields[this.getShowConditionKey(wizardPage.show_condition)];
|
|
4723
4713
|
}
|
|
4724
|
-
hasShowConditionField(
|
|
4725
|
-
return
|
|
4714
|
+
hasShowConditionField(caseField, formFields) {
|
|
4715
|
+
return caseField.show_condition && formFields.data[this.getShowConditionKey(caseField.show_condition)];
|
|
4726
4716
|
}
|
|
4727
|
-
getShowConditionKey(
|
|
4717
|
+
getShowConditionKey(showCondition) {
|
|
4728
4718
|
// Need to allow for negated conditions, i.e. !=, as well as regular ones (=)
|
|
4729
4719
|
// Also need to allow for conditions specified using the "CONTAINS" keyword
|
|
4730
|
-
return
|
|
4720
|
+
return showCondition.split(/!=|=|CONTAINS/)[0];
|
|
4731
4721
|
}
|
|
4732
4722
|
resetField(form, field) {
|
|
4733
4723
|
/**
|
|
@@ -4799,8 +4789,8 @@ class FieldsPurger {
|
|
|
4799
4789
|
}
|
|
4800
4790
|
resetPage(form, wizardPage) {
|
|
4801
4791
|
wizardPage.wizard_page_fields.forEach(wpf => {
|
|
4802
|
-
const
|
|
4803
|
-
this.resetField(form,
|
|
4792
|
+
const caseField = this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
|
|
4793
|
+
this.resetField(form, caseField);
|
|
4804
4794
|
});
|
|
4805
4795
|
}
|
|
4806
4796
|
getType(elem) {
|
|
@@ -4810,8 +4800,8 @@ class FieldsPurger {
|
|
|
4810
4800
|
return this.getType(elem) === 'Object';
|
|
4811
4801
|
}
|
|
4812
4802
|
// TODO: call isReadOnly on CaseFields once we make it available
|
|
4813
|
-
isReadonly(
|
|
4814
|
-
return
|
|
4803
|
+
isReadonly(caseField) {
|
|
4804
|
+
return caseField.display_context.toUpperCase() === 'READONLY';
|
|
4815
4805
|
}
|
|
4816
4806
|
/**
|
|
4817
4807
|
* Deletes a field value by setting the value of the corresponding {@link FormControl} to null (or an empty array
|
|
@@ -4968,6 +4958,9 @@ class FieldTypeSanitiser {
|
|
|
4968
4958
|
}
|
|
4969
4959
|
caseFields.forEach(caseField => {
|
|
4970
4960
|
switch (caseField.field_type.type) {
|
|
4961
|
+
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
|
|
4962
|
+
this.convertArrayToDynamicListOutput(caseField, data);
|
|
4963
|
+
break;
|
|
4971
4964
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
|
|
4972
4965
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
|
|
4973
4966
|
this.convertStringToDynamicListOutput(caseField, data);
|
|
@@ -4985,6 +4978,17 @@ class FieldTypeSanitiser {
|
|
|
4985
4978
|
}
|
|
4986
4979
|
});
|
|
4987
4980
|
}
|
|
4981
|
+
convertArrayToDynamicListOutput(field, data) {
|
|
4982
|
+
const values = data[field.id];
|
|
4983
|
+
if (Array.isArray(values)) {
|
|
4984
|
+
const listItems = this.getListItems(field);
|
|
4985
|
+
const matches = listItems.filter(item => values.map(v => v.code).indexOf(item.code) !== -1);
|
|
4986
|
+
data[field.id] = {
|
|
4987
|
+
value: matches,
|
|
4988
|
+
list_items: listItems
|
|
4989
|
+
};
|
|
4990
|
+
}
|
|
4991
|
+
}
|
|
4988
4992
|
convertStringToDynamicListOutput(field, data) {
|
|
4989
4993
|
const stringValue = data[field.id];
|
|
4990
4994
|
if (typeof stringValue === 'string') {
|
|
@@ -5014,6 +5018,7 @@ FieldTypeSanitiser.FIELD_TYPE_COMPLEX = 'Complex';
|
|
|
5014
5018
|
FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
|
|
5015
5019
|
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
|
|
5016
5020
|
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
|
|
5021
|
+
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
|
|
5017
5022
|
FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
|
|
5018
5023
|
FieldTypeSanitiser.ɵprov = i0.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
|
|
5019
5024
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldTypeSanitiser, [{
|
|
@@ -5528,7 +5533,6 @@ class FormValueService {
|
|
|
5528
5533
|
});
|
|
5529
5534
|
}
|
|
5530
5535
|
}
|
|
5531
|
-
;
|
|
5532
5536
|
});
|
|
5533
5537
|
}
|
|
5534
5538
|
}
|
|
@@ -5942,7 +5946,7 @@ class AddressParser {
|
|
|
5942
5946
|
return addressModel;
|
|
5943
5947
|
}
|
|
5944
5948
|
parseAddressLine1(classification, address) {
|
|
5945
|
-
let addressLine
|
|
5949
|
+
let addressLine;
|
|
5946
5950
|
if (classification === AddressType.RD06) {
|
|
5947
5951
|
addressLine =
|
|
5948
5952
|
`${address.SUB_BUILDING_NAME} ${address.ORGANISATION_NAME} ${address.DEPARTMENT_NAME} ${address.PO_BOX_NUMBER}`;
|
|
@@ -5955,7 +5959,7 @@ class AddressParser {
|
|
|
5955
5959
|
return this.removeNonAddressValues(addressLine);
|
|
5956
5960
|
}
|
|
5957
5961
|
parseAddressLine2(classification, address) {
|
|
5958
|
-
let addressLine
|
|
5962
|
+
let addressLine;
|
|
5959
5963
|
if (classification === AddressType.RD06) {
|
|
5960
5964
|
addressLine = `${address.BUILDING_NAME} `;
|
|
5961
5965
|
}
|
|
@@ -5966,7 +5970,7 @@ class AddressParser {
|
|
|
5966
5970
|
return this.removeNonAddressValues(addressLine);
|
|
5967
5971
|
}
|
|
5968
5972
|
parseAddressLine3(classification, address) {
|
|
5969
|
-
let addressLine
|
|
5973
|
+
let addressLine;
|
|
5970
5974
|
if (classification === AddressType.RD06) {
|
|
5971
5975
|
addressLine =
|
|
5972
5976
|
`${address.BUILDING_NUMBER} ${address.THOROUGHFARE_NAME}`;
|
|
@@ -5994,7 +5998,7 @@ class AddressParser {
|
|
|
5994
5998
|
return value.replace(new RegExp('^,', 'gi'), '');
|
|
5995
5999
|
}
|
|
5996
6000
|
prefixWithCommaIfPresent(value) {
|
|
5997
|
-
return value ?
|
|
6001
|
+
return value ? `, ${value}` : value;
|
|
5998
6002
|
}
|
|
5999
6003
|
}
|
|
6000
6004
|
|
|
@@ -6103,7 +6107,7 @@ class CaseFlagRefdataService {
|
|
|
6103
6107
|
if (flagType) {
|
|
6104
6108
|
url += `?flag-type=${flagType}`;
|
|
6105
6109
|
}
|
|
6106
|
-
if (welshRequired
|
|
6110
|
+
if (typeof welshRequired === 'boolean') {
|
|
6107
6111
|
// Check if flag-type has been added to the query string; if so, append welsh-required with '&'
|
|
6108
6112
|
url.indexOf('?') > -1 ? url += '&' : url += '?';
|
|
6109
6113
|
welshRequired ? url += 'welsh-required=Y' : url += 'welsh-required=N';
|
|
@@ -6560,11 +6564,6 @@ RequestOptionsBuilder.ɵprov = i0.ɵɵdefineInjectable({ token: RequestOptionsBu
|
|
|
6560
6564
|
type: Injectable
|
|
6561
6565
|
}], null, null); })();
|
|
6562
6566
|
|
|
6563
|
-
class HasLoadingState {
|
|
6564
|
-
get isLoading() {
|
|
6565
|
-
return;
|
|
6566
|
-
}
|
|
6567
|
-
}
|
|
6568
6567
|
class LoadingService {
|
|
6569
6568
|
constructor() {
|
|
6570
6569
|
this.registered = new Map();
|
|
@@ -6585,7 +6584,7 @@ class LoadingService {
|
|
|
6585
6584
|
}
|
|
6586
6585
|
generateToken() {
|
|
6587
6586
|
const timestamp = window.performance.now();
|
|
6588
|
-
return
|
|
6587
|
+
return `toolkit-loading-${timestamp}`; // format: [source-library]-[unique incrementing number]
|
|
6589
6588
|
}
|
|
6590
6589
|
}
|
|
6591
6590
|
LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
|
|
@@ -6602,10 +6601,7 @@ class SearchService {
|
|
|
6602
6601
|
this.loadingService = loadingService;
|
|
6603
6602
|
}
|
|
6604
6603
|
search(jurisdictionId, caseTypeId, metaCriteria, caseCriteria, view) {
|
|
6605
|
-
const url = this.appConfig.getApiUrl()
|
|
6606
|
-
+ `/jurisdictions/${jurisdictionId}`
|
|
6607
|
-
+ `/case-types/${caseTypeId}`
|
|
6608
|
-
+ `/cases`;
|
|
6604
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types/${caseTypeId}/cases`;
|
|
6609
6605
|
const options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
|
|
6610
6606
|
const loadingToken = this.loadingService.register();
|
|
6611
6607
|
return this.httpService
|
|
@@ -6613,14 +6609,13 @@ class SearchService {
|
|
|
6613
6609
|
.pipe(map(response => response), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
6614
6610
|
}
|
|
6615
6611
|
searchCasesByIds(caseTypeId, filter, view, sort) {
|
|
6616
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
6617
|
-
`/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
|
|
6612
|
+
const url = `${this.appConfig.getCaseDataUrl()}/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
|
|
6618
6613
|
const body = Object.assign(Object.assign({ sort }, filter), { size: this.appConfig.getPaginationPageSize() });
|
|
6619
6614
|
const loadingToken = this.loadingService.register();
|
|
6620
6615
|
return this.httpService.post(url, body).pipe(map((response) => response), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
6621
6616
|
}
|
|
6622
6617
|
searchCases(caseTypeId, metaCriteria, caseCriteria, view, sort) {
|
|
6623
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
6618
|
+
const url = `${this.appConfig.getCaseDataUrl()}/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
|
|
6624
6619
|
const options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
|
|
6625
6620
|
const body = {
|
|
6626
6621
|
sort,
|
|
@@ -6663,9 +6658,8 @@ class SearchService {
|
|
|
6663
6658
|
}
|
|
6664
6659
|
}
|
|
6665
6660
|
SearchService.V2_MEDIATYPE_SEARCH_INPUTS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-search-input-details.v2+json;charset=UTF-8';
|
|
6666
|
-
|
|
6661
|
+
// public static readonly VIEW_SEARCH = 'SEARCH';
|
|
6667
6662
|
SearchService.VIEW_WORKBASKET = 'WORKBASKET';
|
|
6668
|
-
SearchService.FIELD_PREFIX = 'case.';
|
|
6669
6663
|
SearchService.ɵfac = function SearchService_Factory(t) { return new (t || SearchService)(i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpService), i0.ɵɵinject(RequestOptionsBuilder), i0.ɵɵinject(LoadingService)); };
|
|
6670
6664
|
SearchService.ɵprov = i0.ɵɵdefineInjectable({ token: SearchService, factory: SearchService.ɵfac });
|
|
6671
6665
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchService, [{
|
|
@@ -6779,17 +6773,12 @@ class DefinitionsService {
|
|
|
6779
6773
|
this.appConfig = appConfig;
|
|
6780
6774
|
}
|
|
6781
6775
|
getCaseTypes(jurisdictionId, access) {
|
|
6782
|
-
const url = this.appConfig.getApiUrl()
|
|
6783
|
-
+ `/caseworkers/:uid`
|
|
6784
|
-
+ `/jurisdictions/${jurisdictionId}`
|
|
6785
|
-
+ `/case-types?access=${access}`;
|
|
6776
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types?access=${access}`;
|
|
6786
6777
|
return this.http
|
|
6787
6778
|
.get(url).pipe(map(response => response));
|
|
6788
6779
|
}
|
|
6789
6780
|
getJurisdictions(access) {
|
|
6790
|
-
const url = this.appConfig.getApiUrl()
|
|
6791
|
-
+ `/caseworkers/:uid`
|
|
6792
|
-
+ `/jurisdictions?access=${access}`;
|
|
6781
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions?access=${access}`;
|
|
6793
6782
|
return this.http
|
|
6794
6783
|
.get(url)
|
|
6795
6784
|
.pipe(map(response => response));
|
|
@@ -6861,8 +6850,8 @@ class SearchResultViewItemComparatorFactory {
|
|
|
6861
6850
|
compare(a, b) {
|
|
6862
6851
|
let fieldA = a.case_fields[fieldId];
|
|
6863
6852
|
let fieldB = b.case_fields[fieldId];
|
|
6864
|
-
fieldA = isUndefined(fieldA) || fieldA
|
|
6865
|
-
fieldB = isUndefined(fieldB) || fieldB
|
|
6853
|
+
fieldA = isUndefined(fieldA) || fieldA === null ? '' : fieldA.toLowerCase();
|
|
6854
|
+
fieldB = isUndefined(fieldB) || fieldB === null ? '' : fieldB.toLowerCase();
|
|
6866
6855
|
return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
|
|
6867
6856
|
}
|
|
6868
6857
|
};
|
|
@@ -6872,8 +6861,8 @@ class SearchResultViewItemComparatorFactory {
|
|
|
6872
6861
|
compare(a, b) {
|
|
6873
6862
|
let fieldA = a.case_fields[fieldId];
|
|
6874
6863
|
let fieldB = b.case_fields[fieldId];
|
|
6875
|
-
fieldA = isUndefined(fieldA) || fieldA
|
|
6876
|
-
fieldB = isUndefined(fieldB) || fieldB
|
|
6864
|
+
fieldA = isUndefined(fieldA) || fieldA === null ? '' : fieldA.join().toLowerCase();
|
|
6865
|
+
fieldB = isUndefined(fieldB) || fieldB === null ? '' : fieldB.join().toLowerCase();
|
|
6877
6866
|
return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
|
|
6878
6867
|
}
|
|
6879
6868
|
};
|
|
@@ -7139,7 +7128,7 @@ class WizardPageFieldToCaseFieldMapper {
|
|
|
7139
7128
|
});
|
|
7140
7129
|
}
|
|
7141
7130
|
preparePathPrefix(pathPrefix, caseField) {
|
|
7142
|
-
return pathPrefix.length === 0 ? caseField : pathPrefix
|
|
7131
|
+
return pathPrefix.length === 0 ? caseField : `${pathPrefix}.${caseField}`;
|
|
7143
7132
|
}
|
|
7144
7133
|
getCaseFieldLeaf(caseFieldId, caseFields) {
|
|
7145
7134
|
const [head, ...tail] = caseFieldId;
|
|
@@ -7418,11 +7407,7 @@ class CasesService {
|
|
|
7418
7407
|
});
|
|
7419
7408
|
}
|
|
7420
7409
|
getCaseView(jurisdictionId, caseTypeId, caseId) {
|
|
7421
|
-
const url = this.appConfig.getApiUrl()
|
|
7422
|
-
+ `/caseworkers/:uid`
|
|
7423
|
-
+ `/jurisdictions/${jurisdictionId}`
|
|
7424
|
-
+ `/case-types/${caseTypeId}`
|
|
7425
|
-
+ `/cases/${caseId}`;
|
|
7410
|
+
const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types/${caseTypeId}/cases/${caseId}`;
|
|
7426
7411
|
const loadingToken = this.loadingService.register();
|
|
7427
7412
|
return this.http
|
|
7428
7413
|
.get(url)
|
|
@@ -7471,7 +7456,7 @@ class CasesService {
|
|
|
7471
7456
|
}
|
|
7472
7457
|
createEvent(caseDetails, eventData) {
|
|
7473
7458
|
const caseId = caseDetails.case_id;
|
|
7474
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7459
|
+
const url = `${this.appConfig.getCaseDataUrl()}/cases/${caseId}/events`;
|
|
7475
7460
|
const headers = new HttpHeaders()
|
|
7476
7461
|
.set('experimental', 'true')
|
|
7477
7462
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
|
|
@@ -7484,9 +7469,8 @@ class CasesService {
|
|
|
7484
7469
|
}));
|
|
7485
7470
|
}
|
|
7486
7471
|
validateCase(ctid, eventData, pageId) {
|
|
7487
|
-
const pageIdString = pageId ?
|
|
7488
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7489
|
-
+ `/case-types/${ctid}/validate${pageIdString}`;
|
|
7472
|
+
const pageIdString = pageId ? `?pageId=${pageId}` : '';
|
|
7473
|
+
const url = `${this.appConfig.getCaseDataUrl()}/case-types/${ctid}/validate${pageIdString}`;
|
|
7490
7474
|
const headers = new HttpHeaders()
|
|
7491
7475
|
.set('experimental', 'true')
|
|
7492
7476
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
|
|
@@ -7503,8 +7487,7 @@ class CasesService {
|
|
|
7503
7487
|
if (eventData.ignore_warning) {
|
|
7504
7488
|
ignoreWarning = 'true';
|
|
7505
7489
|
}
|
|
7506
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7507
|
-
+ `/case-types/${ctid}/cases?ignore-warning=${ignoreWarning}`;
|
|
7490
|
+
const url = `${this.appConfig.getCaseDataUrl()}/case-types/${ctid}/cases?ignore-warning=${ignoreWarning}`;
|
|
7508
7491
|
const headers = new HttpHeaders()
|
|
7509
7492
|
.set('experimental', 'true')
|
|
7510
7493
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
|
|
@@ -7517,9 +7500,7 @@ class CasesService {
|
|
|
7517
7500
|
}));
|
|
7518
7501
|
}
|
|
7519
7502
|
getPrintDocuments(caseId) {
|
|
7520
|
-
const url = this.appConfig.getCaseDataUrl()
|
|
7521
|
-
+ `/cases/${caseId}`
|
|
7522
|
-
+ `/documents`;
|
|
7503
|
+
const url = `${this.appConfig.getCaseDataUrl()}/cases/${caseId}/documents`;
|
|
7523
7504
|
const headers = new HttpHeaders()
|
|
7524
7505
|
.set('experimental', 'true')
|
|
7525
7506
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
|
|
@@ -7532,7 +7513,7 @@ class CasesService {
|
|
|
7532
7513
|
}));
|
|
7533
7514
|
}
|
|
7534
7515
|
buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning) {
|
|
7535
|
-
let url = this.appConfig.getCaseDataUrl()
|
|
7516
|
+
let url = `${this.appConfig.getCaseDataUrl()}/internal`;
|
|
7536
7517
|
if (Draft.isDraft(caseId)) {
|
|
7537
7518
|
url += `/drafts/${caseId}`
|
|
7538
7519
|
+ `/event-trigger`
|
|
@@ -8204,7 +8185,7 @@ class PageValidationService {
|
|
|
8204
8185
|
isHidden(caseField, editForm, path) {
|
|
8205
8186
|
const formFields = editForm.getRawValue();
|
|
8206
8187
|
const condition = ShowCondition.getInstance(caseField.show_condition);
|
|
8207
|
-
if (path && path.indexOf(
|
|
8188
|
+
if (path && path.indexOf(`_${caseField.id}_`) === -1) {
|
|
8208
8189
|
path = `${path}${caseField.id}`;
|
|
8209
8190
|
}
|
|
8210
8191
|
return !condition.match(formFields.data, path);
|
|
@@ -9058,7 +9039,7 @@ class CaseEditPageComponent {
|
|
|
9058
9039
|
const label = casefield.label || 'Field';
|
|
9059
9040
|
let id = casefield.id;
|
|
9060
9041
|
if (fieldElement['component'] && fieldElement['component'].parent) {
|
|
9061
|
-
if (fieldElement['component'].idPrefix.indexOf(
|
|
9042
|
+
if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
|
|
9062
9043
|
id = `${fieldElement['component'].idPrefix}${id}`;
|
|
9063
9044
|
}
|
|
9064
9045
|
else {
|
|
@@ -9544,7 +9525,7 @@ CallbackErrorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CallbackErrorsCom
|
|
|
9544
9525
|
|
|
9545
9526
|
class AddressOption {
|
|
9546
9527
|
constructor(addressModel, description) {
|
|
9547
|
-
if (description
|
|
9528
|
+
if (description === null) {
|
|
9548
9529
|
this.value = addressModel;
|
|
9549
9530
|
this.description = this.getDescription();
|
|
9550
9531
|
}
|
|
@@ -9553,13 +9534,10 @@ class AddressOption {
|
|
|
9553
9534
|
}
|
|
9554
9535
|
}
|
|
9555
9536
|
getDescription() {
|
|
9556
|
-
return this.removeInitialCommaIfPresent(
|
|
9557
|
-
+ this.prefixWithCommaIfPresent(this.value.AddressLine2)
|
|
9558
|
-
+ this.prefixWithCommaIfPresent(this.value.AddressLine3)
|
|
9559
|
-
+ ', ' + this.value.PostTown);
|
|
9537
|
+
return this.removeInitialCommaIfPresent(`${this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1}${this.prefixWithCommaIfPresent(this.value.AddressLine2)}${this.prefixWithCommaIfPresent(this.value.AddressLine3)}, ${this.value.PostTown}`);
|
|
9560
9538
|
}
|
|
9561
9539
|
prefixWithCommaIfPresent(value) {
|
|
9562
|
-
return value ?
|
|
9540
|
+
return value ? `, ${value}` : value;
|
|
9563
9541
|
}
|
|
9564
9542
|
removeInitialCommaIfPresent(value) {
|
|
9565
9543
|
return value.replace(new RegExp('^,', 'gi'), '');
|
|
@@ -9830,7 +9808,7 @@ WriteComplexFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteComplexFi
|
|
|
9830
9808
|
type: Input
|
|
9831
9809
|
}] }); })();
|
|
9832
9810
|
|
|
9833
|
-
const _c0$
|
|
9811
|
+
const _c0$S = ["writeComplexFieldComponent"];
|
|
9834
9812
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
9835
9813
|
i0.ɵɵelementStart(0, "span", 14);
|
|
9836
9814
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
@@ -9947,7 +9925,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
9947
9925
|
this.missingPostcode = false;
|
|
9948
9926
|
const postcode = this.postcode.value;
|
|
9949
9927
|
this.caseField.value = null;
|
|
9950
|
-
this.addressOptions =
|
|
9928
|
+
this.addressOptions = [];
|
|
9951
9929
|
this.addressesService.getAddressesForPostcode(postcode.replace(' ', '').toUpperCase()).subscribe(result => {
|
|
9952
9930
|
result.forEach(address => {
|
|
9953
9931
|
this.addressOptions.push(new AddressOption(address, null));
|
|
@@ -9990,7 +9968,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
9990
9968
|
let hasAddress = false;
|
|
9991
9969
|
if (address) {
|
|
9992
9970
|
Object.keys(address).forEach((key) => {
|
|
9993
|
-
if (address[key]
|
|
9971
|
+
if (address[key] !== null) {
|
|
9994
9972
|
hasAddress = true;
|
|
9995
9973
|
}
|
|
9996
9974
|
});
|
|
@@ -10013,7 +9991,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10013
9991
|
}
|
|
10014
9992
|
defaultLabel(numberOfAddresses) {
|
|
10015
9993
|
return numberOfAddresses === 0 ? 'No address found'
|
|
10016
|
-
: numberOfAddresses
|
|
9994
|
+
: `${numberOfAddresses}${numberOfAddresses === 1 ? ' address ' : ' addresses '}found`;
|
|
10017
9995
|
}
|
|
10018
9996
|
setFormValue() {
|
|
10019
9997
|
if (this.writeComplexFieldComponent.complexGroup) {
|
|
@@ -10023,7 +10001,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10023
10001
|
}
|
|
10024
10002
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10025
10003
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10026
|
-
i0.ɵɵviewQuery(_c0$
|
|
10004
|
+
i0.ɵɵviewQuery(_c0$S, 1);
|
|
10027
10005
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10028
10006
|
} if (rf & 2) {
|
|
10029
10007
|
let _t;
|
|
@@ -10149,12 +10127,13 @@ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10149
10127
|
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10150
10128
|
} }
|
|
10151
10129
|
class CaseFileViewFieldComponent {
|
|
10152
|
-
constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
|
|
10130
|
+
constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService) {
|
|
10153
10131
|
this.elementRef = elementRef;
|
|
10154
10132
|
this.route = route;
|
|
10155
10133
|
this.caseFileViewService = caseFileViewService;
|
|
10156
10134
|
this.documentManagementService = documentManagementService;
|
|
10157
10135
|
this.loadingService = loadingService;
|
|
10136
|
+
this.sessionStorageService = sessionStorageService;
|
|
10158
10137
|
this.allowMoving = true;
|
|
10159
10138
|
this.getCategoriesAndDocumentsError = false;
|
|
10160
10139
|
}
|
|
@@ -10167,6 +10146,12 @@ class CaseFileViewFieldComponent {
|
|
|
10167
10146
|
},
|
|
10168
10147
|
error: _ => this.getCategoriesAndDocumentsError = true
|
|
10169
10148
|
});
|
|
10149
|
+
// EXUI-8000
|
|
10150
|
+
const userInfo = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
10151
|
+
// Get acls that intersects from acl roles and user roles
|
|
10152
|
+
const acls = this.caseField.acls.filter(acl => userInfo.roles.includes(acl.role));
|
|
10153
|
+
// As there can be more than one intersecting role, if any acls are update: true
|
|
10154
|
+
this.allowMoving = acls.some(acl => acl.update);
|
|
10170
10155
|
}
|
|
10171
10156
|
ngAfterViewInit() {
|
|
10172
10157
|
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -10212,7 +10197,7 @@ class CaseFileViewFieldComponent {
|
|
|
10212
10197
|
}
|
|
10213
10198
|
}
|
|
10214
10199
|
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)); };
|
|
10200
|
+
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
10201
|
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
10202
|
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10218
10203
|
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -10228,76 +10213,7 @@ CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFi
|
|
|
10228
10213
|
templateUrl: './case-file-view-field.component.html',
|
|
10229
10214
|
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10230
10215
|
}]
|
|
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
|
-
ngOnInit() {
|
|
10279
|
-
super.ngOnInit();
|
|
10280
|
-
this.allowMoving = this.caseField.acls.some(acl => acl.update);
|
|
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); })();
|
|
10216
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }]; }, null); })();
|
|
10301
10217
|
|
|
10302
10218
|
var AddCommentsErrorMessage;
|
|
10303
10219
|
(function (AddCommentsErrorMessage) {
|
|
@@ -10609,7 +10525,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if
|
|
|
10609
10525
|
i0.ɵɵadvance(1);
|
|
10610
10526
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
10611
10527
|
} }
|
|
10612
|
-
const _c0$
|
|
10528
|
+
const _c0$R = function (a0) { return { "form-group-error": a0 }; };
|
|
10613
10529
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10614
10530
|
i0.ɵɵelementStart(0, "div", 8);
|
|
10615
10531
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -10628,7 +10544,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10628
10544
|
i0.ɵɵadvance(1);
|
|
10629
10545
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
10630
10546
|
i0.ɵɵadvance(1);
|
|
10631
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
10547
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, ctx_r1.errorMessages.length > 0));
|
|
10632
10548
|
i0.ɵɵadvance(1);
|
|
10633
10549
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
10634
10550
|
i0.ɵɵadvance(1);
|
|
@@ -11065,7 +10981,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11065
10981
|
}]
|
|
11066
10982
|
}], null, null); })();
|
|
11067
10983
|
|
|
11068
|
-
const _c0$
|
|
10984
|
+
const _c0$Q = ["writeComplexFieldComponent"];
|
|
11069
10985
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11070
10986
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11071
10987
|
i0.ɵɵtext(1);
|
|
@@ -11143,7 +11059,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11143
11059
|
}
|
|
11144
11060
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
11145
11061
|
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$
|
|
11062
|
+
i0.ɵɵviewQuery(_c0$Q, 1);
|
|
11147
11063
|
} if (rf & 2) {
|
|
11148
11064
|
let _t;
|
|
11149
11065
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -11181,7 +11097,7 @@ const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheri
|
|
|
11181
11097
|
args: ['writeComplexFieldComponent']
|
|
11182
11098
|
}] }); })();
|
|
11183
11099
|
|
|
11184
|
-
const _c0$
|
|
11100
|
+
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
11101
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11186
11102
|
i0.ɵɵelementStart(0, "tbody");
|
|
11187
11103
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11194,7 +11110,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11194
11110
|
} if (rf & 2) {
|
|
11195
11111
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11196
11112
|
i0.ɵɵadvance(4);
|
|
11197
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11113
|
+
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
11114
|
} }
|
|
11199
11115
|
const _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11200
11116
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -11322,7 +11238,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
11322
11238
|
}]
|
|
11323
11239
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
11324
11240
|
|
|
11325
|
-
const _c0$
|
|
11241
|
+
const _c0$O = ["collectionItem"];
|
|
11326
11242
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
11327
11243
|
i0.ɵɵelementStart(0, "span", 9);
|
|
11328
11244
|
i0.ɵɵtext(1);
|
|
@@ -11529,7 +11445,12 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11529
11445
|
addItem(doScroll) {
|
|
11530
11446
|
// Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
|
|
11531
11447
|
this.formArray.setErrors(null);
|
|
11532
|
-
|
|
11448
|
+
let item = { value: null };
|
|
11449
|
+
if (this.isCollectionDynamic()) {
|
|
11450
|
+
item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
|
|
11451
|
+
const key = Number(item['id'][item['id'].length - 1]) + 1;
|
|
11452
|
+
item.id = item['id'].replace(/.$/, key.toString());
|
|
11453
|
+
}
|
|
11533
11454
|
this.caseField.value.push(item);
|
|
11534
11455
|
const index = this.caseField.value.length - 1;
|
|
11535
11456
|
const caseField = this.buildCaseField(item, index, true);
|
|
@@ -11552,6 +11473,12 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11552
11473
|
setTimeout(() => this.focusLastItem());
|
|
11553
11474
|
}
|
|
11554
11475
|
}
|
|
11476
|
+
isCollectionDynamic() {
|
|
11477
|
+
if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
|
|
11478
|
+
return false;
|
|
11479
|
+
}
|
|
11480
|
+
return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
|
|
11481
|
+
}
|
|
11555
11482
|
newCaseField(id, item, index, isNew = false) {
|
|
11556
11483
|
const isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
|
|
11557
11484
|
const fieldType = plainToClassFromExist(new FieldType(), this.caseField.field_type.collection_field_type);
|
|
@@ -11602,16 +11529,16 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11602
11529
|
&& this.collItems[i].caseField.id === counter.toString()) {
|
|
11603
11530
|
this.collItems[i].caseField.id = i.toString();
|
|
11604
11531
|
}
|
|
11605
|
-
const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace(
|
|
11606
|
-
const idPrefix1Current = idPrefix1.replace(
|
|
11532
|
+
const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace(`_${counter.toString()}`, `_${i.toString()}`) : '';
|
|
11533
|
+
const idPrefix1Current = idPrefix1.replace(`_${i.toString()}`, `_${counter.toString()}`);
|
|
11607
11534
|
if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
|
|
11608
11535
|
this.collItems[i].prefix = idPrefix1;
|
|
11609
11536
|
}
|
|
11610
11537
|
const idPrefixAvailable = this.collItems[i].container && this.collItems[i].container['component']
|
|
11611
11538
|
&& this.collItems[i].container['component'].idPrefix ? true : false;
|
|
11612
11539
|
const idPrefix2 = idPrefixAvailable ?
|
|
11613
|
-
this.collItems[i].container['component'].idPrefix.replace(
|
|
11614
|
-
const idPrefix2current = idPrefix2.replace(
|
|
11540
|
+
this.collItems[i].container['component'].idPrefix.replace(`_${counter.toString()}`, `_${i.toString()}`) : '';
|
|
11541
|
+
const idPrefix2current = idPrefix2.replace(`_${i.toString()}`, `_${counter.toString()}`);
|
|
11615
11542
|
if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
|
|
11616
11543
|
this.collItems[i].container['component'].idPrefix = idPrefix2;
|
|
11617
11544
|
}
|
|
@@ -11696,7 +11623,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11696
11623
|
}
|
|
11697
11624
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
11698
11625
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11699
|
-
i0.ɵɵviewQuery(_c0$
|
|
11626
|
+
i0.ɵɵviewQuery(_c0$O, 1);
|
|
11700
11627
|
} if (rf & 2) {
|
|
11701
11628
|
let _t;
|
|
11702
11629
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12016,7 +11943,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12016
11943
|
type: Injectable
|
|
12017
11944
|
}], null, null); })();
|
|
12018
11945
|
|
|
12019
|
-
const _c0$
|
|
11946
|
+
const _c0$N = ["fileInput"];
|
|
12020
11947
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
12021
11948
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12022
11949
|
i0.ɵɵtext(1);
|
|
@@ -12294,7 +12221,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
12294
12221
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12295
12222
|
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
12223
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12297
|
-
i0.ɵɵviewQuery(_c0$
|
|
12224
|
+
i0.ɵɵviewQuery(_c0$N, 1);
|
|
12298
12225
|
} if (rf & 2) {
|
|
12299
12226
|
let _t;
|
|
12300
12227
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -12456,7 +12383,7 @@ function WriteDynamicListFieldComponent_option_9_Template(rf, ctx) { if (rf & 1)
|
|
|
12456
12383
|
i0.ɵɵadvance(1);
|
|
12457
12384
|
i0.ɵɵtextInterpolate(type_r5.label);
|
|
12458
12385
|
} }
|
|
12459
|
-
const _c0$
|
|
12386
|
+
const _c0$M = function (a0) { return { "form-group-error": a0 }; };
|
|
12460
12387
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
12461
12388
|
ngOnInit() {
|
|
12462
12389
|
/**
|
|
@@ -12498,7 +12425,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
12498
12425
|
i0.ɵɵelementEnd();
|
|
12499
12426
|
i0.ɵɵelementEnd();
|
|
12500
12427
|
} if (rf & 2) {
|
|
12501
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
12428
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
12502
12429
|
i0.ɵɵadvance(1);
|
|
12503
12430
|
i0.ɵɵproperty("for", ctx.id());
|
|
12504
12431
|
i0.ɵɵadvance(1);
|
|
@@ -12619,7 +12546,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
12619
12546
|
i0.ɵɵadvance(1);
|
|
12620
12547
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
12621
12548
|
} }
|
|
12622
|
-
const _c0$
|
|
12549
|
+
const _c0$L = function (a0) { return { selected: a0 }; };
|
|
12623
12550
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
12624
12551
|
i0.ɵɵelementStart(0, "div", 10);
|
|
12625
12552
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -12630,12 +12557,11 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
12630
12557
|
} if (rf & 2) {
|
|
12631
12558
|
const radioButton_r5 = ctx.$implicit;
|
|
12632
12559
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
12633
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
12560
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
12634
12561
|
i0.ɵɵadvance(1);
|
|
12635
|
-
i0.ɵɵ
|
|
12636
|
-
i0.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
12562
|
+
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
12563
|
i0.ɵɵadvance(1);
|
|
12638
|
-
i0.ɵɵproperty("for", ctx_r4.
|
|
12564
|
+
i0.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
|
|
12639
12565
|
i0.ɵɵadvance(1);
|
|
12640
12566
|
i0.ɵɵtextInterpolate(radioButton_r5.label);
|
|
12641
12567
|
} }
|
|
@@ -12659,8 +12585,8 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12659
12585
|
this.dynamicRadioListControl = this.registerControl(new FormControl(this.caseField.value));
|
|
12660
12586
|
this.dynamicRadioListControl.setValue(this.caseField.value);
|
|
12661
12587
|
}
|
|
12662
|
-
|
|
12663
|
-
return
|
|
12588
|
+
createElementId(name) {
|
|
12589
|
+
return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : super.createElementId(name);
|
|
12664
12590
|
}
|
|
12665
12591
|
}
|
|
12666
12592
|
WriteDynamicRadioListFieldComponent.ɵfac = function WriteDynamicRadioListFieldComponent_Factory(t) { return ɵWriteDynamicRadioListFieldComponent_BaseFactory(t || WriteDynamicRadioListFieldComponent); };
|
|
@@ -12764,7 +12690,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
12764
12690
|
i0.ɵɵadvance(1);
|
|
12765
12691
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
12766
12692
|
} }
|
|
12767
|
-
const _c0$
|
|
12693
|
+
const _c0$K = function (a0) { return { "form-group-error": a0 }; };
|
|
12768
12694
|
const _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
12769
12695
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
12770
12696
|
ngOnInit() {
|
|
@@ -12782,7 +12708,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
12782
12708
|
i0.ɵɵelement(5, "input", 5);
|
|
12783
12709
|
i0.ɵɵelementEnd();
|
|
12784
12710
|
} if (rf & 2) {
|
|
12785
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
12711
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
12786
12712
|
i0.ɵɵadvance(1);
|
|
12787
12713
|
i0.ɵɵproperty("for", ctx.id());
|
|
12788
12714
|
i0.ɵɵadvance(1);
|
|
@@ -12884,7 +12810,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
12884
12810
|
i0.ɵɵadvance(1);
|
|
12885
12811
|
i0.ɵɵtextInterpolate(type_r4.label);
|
|
12886
12812
|
} }
|
|
12887
|
-
const _c0$
|
|
12813
|
+
const _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
12888
12814
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
12889
12815
|
get listItems() {
|
|
12890
12816
|
if (this.caseField) {
|
|
@@ -12922,7 +12848,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
12922
12848
|
i0.ɵɵelementEnd();
|
|
12923
12849
|
i0.ɵɵelementEnd();
|
|
12924
12850
|
} if (rf & 2) {
|
|
12925
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
12851
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
12926
12852
|
i0.ɵɵadvance(1);
|
|
12927
12853
|
i0.ɵɵproperty("for", ctx.id());
|
|
12928
12854
|
i0.ɵɵadvance(1);
|
|
@@ -13013,7 +12939,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
13013
12939
|
i0.ɵɵadvance(1);
|
|
13014
12940
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
13015
12941
|
} }
|
|
13016
|
-
const _c0$
|
|
12942
|
+
const _c0$I = function (a0) { return { selected: a0 }; };
|
|
13017
12943
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
13018
12944
|
i0.ɵɵelementStart(0, "div", 9);
|
|
13019
12945
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -13024,7 +12950,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13024
12950
|
} if (rf & 2) {
|
|
13025
12951
|
const radioButton_r4 = ctx.$implicit;
|
|
13026
12952
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13027
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
12953
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
13028
12954
|
i0.ɵɵadvance(1);
|
|
13029
12955
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
13030
12956
|
i0.ɵɵadvance(1);
|
|
@@ -13155,7 +13081,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
13155
13081
|
i0.ɵɵadvance(1);
|
|
13156
13082
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
13157
13083
|
} }
|
|
13158
|
-
const _c0$
|
|
13084
|
+
const _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
13159
13085
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
13160
13086
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
13161
13087
|
i0.ɵɵelementStart(0, "mat-option", 11);
|
|
@@ -13165,7 +13091,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
|
|
|
13165
13091
|
} if (rf & 2) {
|
|
13166
13092
|
const judicialUser_r5 = ctx.$implicit;
|
|
13167
13093
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13168
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
13094
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$H, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
13169
13095
|
i0.ɵɵadvance(1);
|
|
13170
13096
|
i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
13171
13097
|
} }
|
|
@@ -13384,7 +13310,7 @@ class LinkedCasesService {
|
|
|
13384
13310
|
casesResponse.push(this.mapResponse(result));
|
|
13385
13311
|
});
|
|
13386
13312
|
});
|
|
13387
|
-
|
|
13313
|
+
this.linkedCases = casesResponse.map(item => {
|
|
13388
13314
|
return {
|
|
13389
13315
|
caseReference: item.caseReference,
|
|
13390
13316
|
caseName: item.caseName,
|
|
@@ -13398,7 +13324,6 @@ class LinkedCasesService {
|
|
|
13398
13324
|
}),
|
|
13399
13325
|
};
|
|
13400
13326
|
});
|
|
13401
|
-
this.linkedCases = caseLinks;
|
|
13402
13327
|
this.serverLinkedApiError = null;
|
|
13403
13328
|
}, err => {
|
|
13404
13329
|
this.serverLinkedApiError = {
|
|
@@ -13861,7 +13786,7 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
13861
13786
|
i0.ɵɵadvance(3);
|
|
13862
13787
|
i0.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
|
|
13863
13788
|
} }
|
|
13864
|
-
const _c0$
|
|
13789
|
+
const _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
13865
13790
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
13866
13791
|
i0.ɵɵelementStart(0, "div", 35);
|
|
13867
13792
|
i0.ɵɵelementStart(1, "h3", 22);
|
|
@@ -13877,7 +13802,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
13877
13802
|
i0.ɵɵelementEnd();
|
|
13878
13803
|
} if (rf & 2) {
|
|
13879
13804
|
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
13880
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$
|
|
13805
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
|
|
13881
13806
|
i0.ɵɵadvance(3);
|
|
13882
13807
|
i0.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
|
|
13883
13808
|
} }
|
|
@@ -13928,11 +13853,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
13928
13853
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
13929
13854
|
i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
13930
13855
|
i0.ɵɵadvance(1);
|
|
13931
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13856
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
|
|
13932
13857
|
i0.ɵɵadvance(3);
|
|
13933
13858
|
i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
13934
13859
|
i0.ɵɵadvance(2);
|
|
13935
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
13860
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
|
|
13936
13861
|
i0.ɵɵadvance(5);
|
|
13937
13862
|
i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
13938
13863
|
i0.ɵɵadvance(2);
|
|
@@ -14343,7 +14268,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
|
|
|
14343
14268
|
i0.ɵɵadvance(4);
|
|
14344
14269
|
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
14345
14270
|
i0.ɵɵadvance(4);
|
|
14346
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
14271
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
|
|
14347
14272
|
i0.ɵɵadvance(1);
|
|
14348
14273
|
i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
14349
14274
|
i0.ɵɵadvance(18);
|
|
@@ -14952,7 +14877,7 @@ function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1)
|
|
|
14952
14877
|
i0.ɵɵadvance(1);
|
|
14953
14878
|
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
14954
14879
|
} }
|
|
14955
|
-
const _c0$
|
|
14880
|
+
const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
14956
14881
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
14957
14882
|
i0.ɵɵelementStart(0, "div", 7);
|
|
14958
14883
|
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
@@ -14962,7 +14887,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14962
14887
|
i0.ɵɵelementEnd();
|
|
14963
14888
|
} if (rf & 2) {
|
|
14964
14889
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14965
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
14890
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
14966
14891
|
i0.ɵɵadvance(1);
|
|
14967
14892
|
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
14968
14893
|
i0.ɵɵadvance(2);
|
|
@@ -15231,7 +15156,7 @@ class ReadLinkedCasesFieldComponent {
|
|
|
15231
15156
|
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
15157
|
}
|
|
15233
15158
|
this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
|
|
15234
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl()
|
|
15159
|
+
const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
|
|
15235
15160
|
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
15236
15161
|
next: reasons => {
|
|
15237
15162
|
this.reasonListLoaded = true;
|
|
@@ -15466,7 +15391,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15466
15391
|
}
|
|
15467
15392
|
}
|
|
15468
15393
|
getLinkedCaseReasons() {
|
|
15469
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl()
|
|
15394
|
+
const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
|
|
15470
15395
|
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
15471
15396
|
next: reasons => {
|
|
15472
15397
|
// Sort in ascending order
|
|
@@ -15524,8 +15449,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15524
15449
|
getLinkedCases() {
|
|
15525
15450
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
15526
15451
|
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
15527
|
-
|
|
15528
|
-
return linkField;
|
|
15452
|
+
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
15529
15453
|
});
|
|
15530
15454
|
if (caseViewFiltered) {
|
|
15531
15455
|
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; });
|
|
@@ -15781,7 +15705,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15781
15705
|
i0.ɵɵadvance(1);
|
|
15782
15706
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
15783
15707
|
} }
|
|
15784
|
-
const _c0$
|
|
15708
|
+
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
15785
15709
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
15786
15710
|
ngOnInit() {
|
|
15787
15711
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -15804,7 +15728,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
15804
15728
|
i0.ɵɵelementEnd();
|
|
15805
15729
|
i0.ɵɵelementEnd();
|
|
15806
15730
|
} if (rf & 2) {
|
|
15807
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
15731
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
15808
15732
|
i0.ɵɵadvance(1);
|
|
15809
15733
|
i0.ɵɵproperty("for", ctx.id());
|
|
15810
15734
|
i0.ɵɵadvance(1);
|
|
@@ -15921,7 +15845,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
15921
15845
|
i0.ɵɵadvance(1);
|
|
15922
15846
|
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
15923
15847
|
} }
|
|
15924
|
-
const _c0$
|
|
15848
|
+
const _c0$D = function (a0) { return { "error": a0 }; };
|
|
15925
15849
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
15926
15850
|
ngOnInit() {
|
|
15927
15851
|
this.checkboxes = new FormArray([]);
|
|
@@ -15976,7 +15900,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
15976
15900
|
i0.ɵɵelementEnd();
|
|
15977
15901
|
i0.ɵɵelementEnd();
|
|
15978
15902
|
} if (rf & 2) {
|
|
15979
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
15903
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
15980
15904
|
i0.ɵɵadvance(3);
|
|
15981
15905
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
15982
15906
|
i0.ɵɵadvance(1);
|
|
@@ -16045,7 +15969,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16045
15969
|
i0.ɵɵadvance(1);
|
|
16046
15970
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
16047
15971
|
} }
|
|
16048
|
-
const _c0$
|
|
15972
|
+
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
16049
15973
|
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16050
15974
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
16051
15975
|
ngOnInit() {
|
|
@@ -16063,7 +15987,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
16063
15987
|
i0.ɵɵelement(5, "input", 5);
|
|
16064
15988
|
i0.ɵɵelementEnd();
|
|
16065
15989
|
} if (rf & 2) {
|
|
16066
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15990
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
16067
15991
|
i0.ɵɵadvance(1);
|
|
16068
15992
|
i0.ɵɵproperty("for", ctx.id());
|
|
16069
15993
|
i0.ɵɵadvance(1);
|
|
@@ -16313,7 +16237,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_div_4_Template(rf, ct
|
|
|
16313
16237
|
i0.ɵɵelementEnd();
|
|
16314
16238
|
i0.ɵɵelementEnd();
|
|
16315
16239
|
} }
|
|
16316
|
-
const _c0$
|
|
16240
|
+
const _c0$B = function (a0) { return { "scroll-container ": a0 }; };
|
|
16317
16241
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
16318
16242
|
i0.ɵɵelementStart(0, "div", 26);
|
|
16319
16243
|
i0.ɵɵpipe(1, "async");
|
|
@@ -16327,7 +16251,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { i
|
|
|
16327
16251
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
16328
16252
|
let tmp_0_0 = null;
|
|
16329
16253
|
let tmp_2_0 = null;
|
|
16330
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
16254
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
16331
16255
|
i0.ɵɵadvance(2);
|
|
16332
16256
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
16333
16257
|
i0.ɵɵadvance(2);
|
|
@@ -16677,6 +16601,194 @@ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Ca
|
|
|
16677
16601
|
}]
|
|
16678
16602
|
}], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null); })();
|
|
16679
16603
|
|
|
16604
|
+
function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
16605
|
+
i0.ɵɵelementStart(0, "div");
|
|
16606
|
+
i0.ɵɵtext(1);
|
|
16607
|
+
i0.ɵɵpipe(2, "ccdFixedList");
|
|
16608
|
+
i0.ɵɵelementEnd();
|
|
16609
|
+
} if (rf & 2) {
|
|
16610
|
+
const value_r1 = ctx.$implicit;
|
|
16611
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16612
|
+
i0.ɵɵadvance(1);
|
|
16613
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
|
|
16614
|
+
} }
|
|
16615
|
+
class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponent {
|
|
16616
|
+
ngOnInit() {
|
|
16617
|
+
/**
|
|
16618
|
+
*
|
|
16619
|
+
* Reassigning list_items from formatted_list when list_items is empty
|
|
16620
|
+
*/
|
|
16621
|
+
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
16622
|
+
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
16623
|
+
}
|
|
16624
|
+
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
16625
|
+
this.caseField.value = this.caseField.formatted_value.value;
|
|
16626
|
+
}
|
|
16627
|
+
super.ngOnInit();
|
|
16628
|
+
}
|
|
16629
|
+
}
|
|
16630
|
+
ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
|
|
16631
|
+
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) {
|
|
16632
|
+
i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
|
|
16633
|
+
} if (rf & 2) {
|
|
16634
|
+
i0.ɵɵproperty("ngForOf", ctx.caseField.value);
|
|
16635
|
+
} }, 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}"] });
|
|
16636
|
+
const ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
|
|
16637
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
|
|
16638
|
+
type: Component,
|
|
16639
|
+
args: [{
|
|
16640
|
+
selector: 'ccd-read-dynamic-multi-select-list-field',
|
|
16641
|
+
templateUrl: './read-dynamic-multi-select-list-field.html',
|
|
16642
|
+
styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
|
|
16643
|
+
}]
|
|
16644
|
+
}], null, null); })();
|
|
16645
|
+
|
|
16646
|
+
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16647
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
16648
|
+
i0.ɵɵtext(1);
|
|
16649
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
16650
|
+
i0.ɵɵelementEnd();
|
|
16651
|
+
} if (rf & 2) {
|
|
16652
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16653
|
+
i0.ɵɵadvance(1);
|
|
16654
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
16655
|
+
} }
|
|
16656
|
+
function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16657
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
16658
|
+
i0.ɵɵtext(1);
|
|
16659
|
+
i0.ɵɵelementEnd();
|
|
16660
|
+
} if (rf & 2) {
|
|
16661
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
16662
|
+
i0.ɵɵadvance(1);
|
|
16663
|
+
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
16664
|
+
} }
|
|
16665
|
+
function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
16666
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
16667
|
+
i0.ɵɵtext(1);
|
|
16668
|
+
i0.ɵɵpipe(2, "ccdFirstError");
|
|
16669
|
+
i0.ɵɵelementEnd();
|
|
16670
|
+
} if (rf & 2) {
|
|
16671
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
16672
|
+
i0.ɵɵadvance(1);
|
|
16673
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
|
|
16674
|
+
} }
|
|
16675
|
+
function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
16676
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
16677
|
+
i0.ɵɵelementContainerStart(0);
|
|
16678
|
+
i0.ɵɵelementStart(1, "div", 8);
|
|
16679
|
+
i0.ɵɵelementStart(2, "input", 9);
|
|
16680
|
+
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); });
|
|
16681
|
+
i0.ɵɵelementEnd();
|
|
16682
|
+
i0.ɵɵelementStart(3, "label", 10);
|
|
16683
|
+
i0.ɵɵtext(4);
|
|
16684
|
+
i0.ɵɵelementEnd();
|
|
16685
|
+
i0.ɵɵelementEnd();
|
|
16686
|
+
i0.ɵɵelementContainerEnd();
|
|
16687
|
+
} if (rf & 2) {
|
|
16688
|
+
const checkbox_r4 = ctx.$implicit;
|
|
16689
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
16690
|
+
i0.ɵɵadvance(2);
|
|
16691
|
+
i0.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
|
|
16692
|
+
i0.ɵɵpropertyInterpolate("name", ctx_r3.id());
|
|
16693
|
+
i0.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
|
|
16694
|
+
i0.ɵɵadvance(1);
|
|
16695
|
+
i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
16696
|
+
i0.ɵɵadvance(1);
|
|
16697
|
+
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
16698
|
+
} }
|
|
16699
|
+
const _c0$A = function (a0) { return { "error": a0 }; };
|
|
16700
|
+
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
16701
|
+
ngOnInit() {
|
|
16702
|
+
this.checkboxes = new FormArray([]);
|
|
16703
|
+
this.setInitialCaseList();
|
|
16704
|
+
this.setInitialCaseFieldValue();
|
|
16705
|
+
// Initialise array with existing values
|
|
16706
|
+
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
16707
|
+
const values = this.caseField.value;
|
|
16708
|
+
values.forEach(value => {
|
|
16709
|
+
this.checkboxes.push(new FormControl(value));
|
|
16710
|
+
});
|
|
16711
|
+
}
|
|
16712
|
+
this.dynamicListFormControl = this.registerControl(new FormControl(this.checkboxes.value));
|
|
16713
|
+
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
16714
|
+
}
|
|
16715
|
+
onCheckChange(event) {
|
|
16716
|
+
const target = event.target;
|
|
16717
|
+
if (!target || !target.value) {
|
|
16718
|
+
return;
|
|
16719
|
+
}
|
|
16720
|
+
const selectedListItem = this.getValueListItem(target.value);
|
|
16721
|
+
if (!this.isSelected(target.value)) {
|
|
16722
|
+
// Add a new control in the FormArray
|
|
16723
|
+
this.checkboxes.push(new FormControl(selectedListItem));
|
|
16724
|
+
}
|
|
16725
|
+
else {
|
|
16726
|
+
// Remove the control from the FormArray
|
|
16727
|
+
this.checkboxes.controls.forEach((ctrl, i) => {
|
|
16728
|
+
if (ctrl.value.code === target.value) {
|
|
16729
|
+
this.checkboxes.removeAt(i);
|
|
16730
|
+
}
|
|
16731
|
+
});
|
|
16732
|
+
}
|
|
16733
|
+
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
16734
|
+
}
|
|
16735
|
+
isSelected(code) {
|
|
16736
|
+
if (this.checkboxes && this.checkboxes.controls) {
|
|
16737
|
+
return this.checkboxes.controls.find(control => control.value.code === code);
|
|
16738
|
+
}
|
|
16739
|
+
}
|
|
16740
|
+
getValueListItem(value) {
|
|
16741
|
+
return this.caseField.list_items.find(i => i.code === value);
|
|
16742
|
+
}
|
|
16743
|
+
setInitialCaseList() {
|
|
16744
|
+
const hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
|
|
16745
|
+
const hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
|
|
16746
|
+
if (!hasListItems && hasFormattedListItems) {
|
|
16747
|
+
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
16748
|
+
}
|
|
16749
|
+
}
|
|
16750
|
+
setInitialCaseFieldValue() {
|
|
16751
|
+
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
16752
|
+
this.caseField.value = this.caseField.formatted_value.value;
|
|
16753
|
+
}
|
|
16754
|
+
const isNull = this.caseField.value === undefined || this.caseField.value === '';
|
|
16755
|
+
if (isNull || !Array.isArray(this.caseField.value)) {
|
|
16756
|
+
this.caseField.value = [];
|
|
16757
|
+
}
|
|
16758
|
+
}
|
|
16759
|
+
}
|
|
16760
|
+
WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
|
|
16761
|
+
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) {
|
|
16762
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
16763
|
+
i0.ɵɵelementStart(1, "fieldset");
|
|
16764
|
+
i0.ɵɵelementStart(2, "legend");
|
|
16765
|
+
i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
16766
|
+
i0.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
|
|
16767
|
+
i0.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
16768
|
+
i0.ɵɵelementEnd();
|
|
16769
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
|
|
16770
|
+
i0.ɵɵelementEnd();
|
|
16771
|
+
i0.ɵɵelementEnd();
|
|
16772
|
+
} if (rf & 2) {
|
|
16773
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
16774
|
+
i0.ɵɵadvance(3);
|
|
16775
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
16776
|
+
i0.ɵɵadvance(1);
|
|
16777
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
16778
|
+
i0.ɵɵadvance(1);
|
|
16779
|
+
i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
|
|
16780
|
+
i0.ɵɵadvance(1);
|
|
16781
|
+
i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
16782
|
+
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16783
|
+
const ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
|
|
16784
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
16785
|
+
type: Component,
|
|
16786
|
+
args: [{
|
|
16787
|
+
selector: 'ccd-write-dynamic-multi-select-list-field',
|
|
16788
|
+
templateUrl: './write-dynamic-multi-select-list-field.html'
|
|
16789
|
+
}]
|
|
16790
|
+
}], null, null); })();
|
|
16791
|
+
|
|
16680
16792
|
class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
16681
16793
|
}
|
|
16682
16794
|
ReadPhoneUKFieldComponent.ɵfac = function ReadPhoneUKFieldComponent_Factory(t) { return ɵReadPhoneUKFieldComponent_BaseFactory(t || ReadPhoneUKFieldComponent); };
|
|
@@ -16827,7 +16939,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16827
16939
|
autoGrow(event) {
|
|
16828
16940
|
if (this.browserService.isIEOrEdge()) {
|
|
16829
16941
|
event.target.style.height = 'auto';
|
|
16830
|
-
event.target.style.height = event.target.scrollHeight
|
|
16942
|
+
event.target.style.height = `${event.target.scrollHeight}px`;
|
|
16831
16943
|
event.target.scrollTop = event.target.scrollHeight;
|
|
16832
16944
|
}
|
|
16833
16945
|
}
|
|
@@ -17173,7 +17285,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
17173
17285
|
class PaletteService {
|
|
17174
17286
|
constructor() {
|
|
17175
17287
|
this.componentLauncherRegistry = {
|
|
17176
|
-
[DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent,
|
|
17288
|
+
[DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
|
|
17177
17289
|
[DisplayContextCustomParameter.LinkedCases]: [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent]
|
|
17178
17290
|
};
|
|
17179
17291
|
}
|
|
@@ -17203,6 +17315,8 @@ class PaletteService {
|
|
|
17203
17315
|
return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
|
|
17204
17316
|
case 'DynamicRadioList':
|
|
17205
17317
|
return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
|
|
17318
|
+
case 'DynamicMultiSelectList':
|
|
17319
|
+
return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
|
|
17206
17320
|
case 'FixedRadioList':
|
|
17207
17321
|
return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
|
|
17208
17322
|
case 'Complex':
|
|
@@ -17269,7 +17383,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
17269
17383
|
}], null, null); })();
|
|
17270
17384
|
|
|
17271
17385
|
const _c0$v = ["fieldContainer"];
|
|
17272
|
-
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
17386
|
+
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
17273
17387
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
17274
17388
|
constructor(resolver, paletteService) {
|
|
17275
17389
|
super();
|
|
@@ -17347,7 +17461,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
17347
17461
|
}] }); })();
|
|
17348
17462
|
|
|
17349
17463
|
const _c0$u = ["fieldContainer"];
|
|
17350
|
-
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
17464
|
+
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
17351
17465
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
17352
17466
|
constructor(resolver, paletteService) {
|
|
17353
17467
|
super();
|
|
@@ -17962,10 +18076,14 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
17962
18076
|
i0.ɵɵelementEnd();
|
|
17963
18077
|
i0.ɵɵelementStart(4, "span", 16);
|
|
17964
18078
|
i0.ɵɵtext(5);
|
|
18079
|
+
i0.ɵɵelement(6, "br");
|
|
18080
|
+
i0.ɵɵelementStart(7, "span", 17);
|
|
18081
|
+
i0.ɵɵtext(8);
|
|
18082
|
+
i0.ɵɵelementEnd();
|
|
17965
18083
|
i0.ɵɵelementEnd();
|
|
17966
|
-
i0.ɵɵelementStart(
|
|
17967
|
-
i0.ɵɵelementStart(
|
|
17968
|
-
i0.ɵɵlistener("changeFolderAction", function
|
|
18084
|
+
i0.ɵɵelementStart(9, "div", 18);
|
|
18085
|
+
i0.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
|
|
18086
|
+
i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_10_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_10_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_10_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_10_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
|
|
17969
18087
|
i0.ɵɵelementEnd();
|
|
17970
18088
|
i0.ɵɵelementEnd();
|
|
17971
18089
|
i0.ɵɵelementEnd();
|
|
@@ -17976,25 +18094,27 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
17976
18094
|
i0.ɵɵadvance(1);
|
|
17977
18095
|
i0.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
17978
18096
|
i0.ɵɵadvance(4);
|
|
17979
|
-
i0.ɵɵ
|
|
18097
|
+
i0.ɵɵtextInterpolate1(" ", node_r4.name, " ");
|
|
18098
|
+
i0.ɵɵadvance(3);
|
|
18099
|
+
i0.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
17980
18100
|
i0.ɵɵadvance(2);
|
|
17981
18101
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
17982
18102
|
} }
|
|
17983
18103
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
17984
|
-
i0.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
17985
|
-
i0.ɵɵelementStart(1, "button",
|
|
17986
|
-
i0.ɵɵelementStart(2, "div",
|
|
17987
|
-
i0.ɵɵelement(3, "img",
|
|
17988
|
-
i0.ɵɵelementStart(4, "span",
|
|
18104
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
|
|
18105
|
+
i0.ɵɵelementStart(1, "button", 21);
|
|
18106
|
+
i0.ɵɵelementStart(2, "div", 22);
|
|
18107
|
+
i0.ɵɵelement(3, "img", 23);
|
|
18108
|
+
i0.ɵɵelementStart(4, "span", 24);
|
|
17989
18109
|
i0.ɵɵtext(5);
|
|
17990
18110
|
i0.ɵɵelementEnd();
|
|
17991
18111
|
i0.ɵɵelementEnd();
|
|
17992
|
-
i0.ɵɵelementStart(6, "span",
|
|
18112
|
+
i0.ɵɵelementStart(6, "span", 25);
|
|
17993
18113
|
i0.ɵɵtext(7);
|
|
17994
18114
|
i0.ɵɵelementEnd();
|
|
17995
18115
|
i0.ɵɵelementEnd();
|
|
17996
18116
|
i0.ɵɵelementStart(8, "div");
|
|
17997
|
-
i0.ɵɵelementContainer(9,
|
|
18117
|
+
i0.ɵɵelementContainer(9, 26);
|
|
17998
18118
|
i0.ɵɵelementEnd();
|
|
17999
18119
|
i0.ɵɵelementEnd();
|
|
18000
18120
|
} if (rf & 2) {
|
|
@@ -18016,7 +18136,7 @@ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
18016
18136
|
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
18017
18137
|
i0.ɵɵelementStart(2, "div");
|
|
18018
18138
|
i0.ɵɵelementStart(3, "cdk-tree", 9);
|
|
18019
|
-
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
18139
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
|
|
18020
18140
|
i0.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
18021
18141
|
i0.ɵɵelementEnd();
|
|
18022
18142
|
i0.ɵɵelementEnd();
|
|
@@ -18104,6 +18224,7 @@ class CaseFileViewFolderComponent {
|
|
|
18104
18224
|
documentTreeNode.document_filename = document.document_filename;
|
|
18105
18225
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
18106
18226
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
18227
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
18107
18228
|
documentsToReturn.push(documentTreeNode);
|
|
18108
18229
|
});
|
|
18109
18230
|
return documentsToReturn;
|
|
@@ -18117,6 +18238,7 @@ class CaseFileViewFolderComponent {
|
|
|
18117
18238
|
documentTreeNode.document_filename = document.document_filename;
|
|
18118
18239
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
18119
18240
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
18241
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
18120
18242
|
documents.push(documentTreeNode);
|
|
18121
18243
|
});
|
|
18122
18244
|
const uncategorisedNode = new DocumentTreeNode();
|
|
@@ -18238,7 +18360,7 @@ CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised docum
|
|
|
18238
18360
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
18239
18361
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
18240
18362
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
18241
|
-
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18363
|
+
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18242
18364
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18243
18365
|
i0.ɵɵelementStart(1, "div", 1);
|
|
18244
18366
|
i0.ɵɵelement(2, "input", 2);
|
|
@@ -18262,7 +18384,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
|
|
|
18262
18384
|
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
18263
18385
|
i0.ɵɵadvance(3);
|
|
18264
18386
|
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
18265
|
-
} }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, CaseFileViewFolderSortComponent, i1.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:
|
|
18387
|
+
} }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, CaseFileViewFolderSortComponent, i1.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
|
|
18266
18388
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
18267
18389
|
type: Component,
|
|
18268
18390
|
args: [{
|
|
@@ -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,13 +20341,13 @@ 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) {
|
|
@@ -21811,7 +21933,7 @@ CcdTabFieldsPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdTabFields", type: CcdTab
|
|
|
21811
21933
|
|
|
21812
21934
|
class CcdPageFieldsPipe {
|
|
21813
21935
|
transform(page, dataFormGroup) {
|
|
21814
|
-
const
|
|
21936
|
+
const complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(key => {
|
|
21815
21937
|
const control = dataFormGroup.controls['data'].get(key);
|
|
21816
21938
|
return control['caseField'];
|
|
21817
21939
|
}).filter(field => {
|
|
@@ -21830,7 +21952,7 @@ class CcdPageFieldsPipe {
|
|
|
21830
21952
|
field_type: {
|
|
21831
21953
|
id: page.id,
|
|
21832
21954
|
type: 'Complex',
|
|
21833
|
-
complex_fields
|
|
21955
|
+
complex_fields: complexFields
|
|
21834
21956
|
}
|
|
21835
21957
|
});
|
|
21836
21958
|
}
|
|
@@ -21989,11 +22111,11 @@ class CollectionCreateCheckerService {
|
|
|
21989
22111
|
}
|
|
21990
22112
|
return childrenCaseFields;
|
|
21991
22113
|
}
|
|
21992
|
-
isComplex(
|
|
21993
|
-
return
|
|
22114
|
+
isComplex(caseField) {
|
|
22115
|
+
return caseField.field_type.type === 'Complex';
|
|
21994
22116
|
}
|
|
21995
|
-
isCollection(
|
|
21996
|
-
return
|
|
22117
|
+
isCollection(caseField) {
|
|
22118
|
+
return caseField.field_type.type === 'Collection';
|
|
21997
22119
|
}
|
|
21998
22120
|
hasCreateAccess(caseField, role) {
|
|
21999
22121
|
return !!caseField.acls.find(acl => acl.role === role && acl.create === true);
|
|
@@ -22081,6 +22203,8 @@ const PALETTE_COMPONENTS = [
|
|
|
22081
22203
|
WriteDocumentFieldComponent,
|
|
22082
22204
|
WriteDynamicListFieldComponent,
|
|
22083
22205
|
WriteDynamicRadioListFieldComponent,
|
|
22206
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22207
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22084
22208
|
WriteTextFieldComponent,
|
|
22085
22209
|
WriteDateContainerFieldComponent,
|
|
22086
22210
|
WriteTextAreaFieldComponent,
|
|
@@ -22104,12 +22228,18 @@ const PALETTE_COMPONENTS = [
|
|
|
22104
22228
|
WriteCollectionFieldComponent,
|
|
22105
22229
|
// ComponentLauncher web components
|
|
22106
22230
|
CaseFileViewFieldComponent,
|
|
22107
|
-
CaseFileViewFieldReadComponent,
|
|
22108
22231
|
CaseFileViewFolderComponent,
|
|
22109
22232
|
CaseFileViewFolderSortComponent,
|
|
22110
22233
|
CaseFileViewOverlayMenuComponent,
|
|
22111
22234
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22112
22235
|
CaseFileViewFolderSelectorComponent,
|
|
22236
|
+
// component for dynamic list
|
|
22237
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22238
|
+
WriteDynamicRadioListFieldComponent,
|
|
22239
|
+
WriteDynamicListFieldComponent,
|
|
22240
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22241
|
+
ReadDynamicListFieldComponent,
|
|
22242
|
+
ReadDynamicRadioListFieldComponent,
|
|
22113
22243
|
LinkedCasesToTableComponent,
|
|
22114
22244
|
LinkedCasesFromTableComponent,
|
|
22115
22245
|
BeforeYouStartComponent,
|
|
@@ -22236,6 +22366,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22236
22366
|
WriteDocumentFieldComponent,
|
|
22237
22367
|
WriteDynamicListFieldComponent,
|
|
22238
22368
|
WriteDynamicRadioListFieldComponent,
|
|
22369
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22370
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22239
22371
|
WriteTextFieldComponent,
|
|
22240
22372
|
WriteDateContainerFieldComponent,
|
|
22241
22373
|
WriteTextAreaFieldComponent,
|
|
@@ -22259,12 +22391,18 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22259
22391
|
WriteCollectionFieldComponent,
|
|
22260
22392
|
// ComponentLauncher web components
|
|
22261
22393
|
CaseFileViewFieldComponent,
|
|
22262
|
-
CaseFileViewFieldReadComponent,
|
|
22263
22394
|
CaseFileViewFolderComponent,
|
|
22264
22395
|
CaseFileViewFolderSortComponent,
|
|
22265
22396
|
CaseFileViewOverlayMenuComponent,
|
|
22266
22397
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22267
22398
|
CaseFileViewFolderSelectorComponent,
|
|
22399
|
+
// component for dynamic list
|
|
22400
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22401
|
+
WriteDynamicRadioListFieldComponent,
|
|
22402
|
+
WriteDynamicListFieldComponent,
|
|
22403
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22404
|
+
ReadDynamicListFieldComponent,
|
|
22405
|
+
ReadDynamicRadioListFieldComponent,
|
|
22268
22406
|
LinkedCasesToTableComponent,
|
|
22269
22407
|
LinkedCasesFromTableComponent,
|
|
22270
22408
|
BeforeYouStartComponent,
|
|
@@ -22354,6 +22492,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22354
22492
|
WriteDocumentFieldComponent,
|
|
22355
22493
|
WriteDynamicListFieldComponent,
|
|
22356
22494
|
WriteDynamicRadioListFieldComponent,
|
|
22495
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22496
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22357
22497
|
WriteTextFieldComponent,
|
|
22358
22498
|
WriteDateContainerFieldComponent,
|
|
22359
22499
|
WriteTextAreaFieldComponent,
|
|
@@ -22377,12 +22517,18 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22377
22517
|
WriteCollectionFieldComponent,
|
|
22378
22518
|
// ComponentLauncher web components
|
|
22379
22519
|
CaseFileViewFieldComponent,
|
|
22380
|
-
CaseFileViewFieldReadComponent,
|
|
22381
22520
|
CaseFileViewFolderComponent,
|
|
22382
22521
|
CaseFileViewFolderSortComponent,
|
|
22383
22522
|
CaseFileViewOverlayMenuComponent,
|
|
22384
22523
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22385
22524
|
CaseFileViewFolderSelectorComponent,
|
|
22525
|
+
// component for dynamic list
|
|
22526
|
+
WriteDynamicMultiSelectListFieldComponent,
|
|
22527
|
+
WriteDynamicRadioListFieldComponent,
|
|
22528
|
+
WriteDynamicListFieldComponent,
|
|
22529
|
+
ReadDynamicMultiSelectListFieldComponent,
|
|
22530
|
+
ReadDynamicListFieldComponent,
|
|
22531
|
+
ReadDynamicRadioListFieldComponent,
|
|
22386
22532
|
LinkedCasesToTableComponent,
|
|
22387
22533
|
LinkedCasesFromTableComponent,
|
|
22388
22534
|
BeforeYouStartComponent,
|
|
@@ -22507,8 +22653,7 @@ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePic
|
|
|
22507
22653
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22508
22654
|
i0.ɵɵsetComponentScope(
|
|
22509
22655
|
// ComponentLauncher web components
|
|
22510
|
-
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i11
|
|
22511
|
-
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.ɵcs], []);
|
|
22656
|
+
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.MediaViewerComponent], []);
|
|
22512
22657
|
i0.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22513
22658
|
i0.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
22514
22659
|
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]);
|
|
@@ -23084,7 +23229,7 @@ class CaseEditSubmitComponent {
|
|
|
23084
23229
|
if (caseField.field_type.type === 'Complex') {
|
|
23085
23230
|
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
23086
23231
|
// handle both null and undefined values
|
|
23087
|
-
if (caseField.value
|
|
23232
|
+
if (caseField.value !== null) {
|
|
23088
23233
|
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
23089
23234
|
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
23090
23235
|
// parent)
|
|
@@ -24851,7 +24996,7 @@ class WorkbasketFiltersComponent {
|
|
|
24851
24996
|
const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
24852
24997
|
workbasketInputs.forEach(item => {
|
|
24853
24998
|
if (item.field.elementPath) {
|
|
24854
|
-
item.field.id = item.field.id
|
|
24999
|
+
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
24855
25000
|
}
|
|
24856
25001
|
item.field.label = item.label;
|
|
24857
25002
|
if (formValue) {
|
|
@@ -24903,7 +25048,7 @@ class WorkbasketFiltersComponent {
|
|
|
24903
25048
|
const value = formGroupLS[key];
|
|
24904
25049
|
// Clear the filter form group control values if it has a value in local storage
|
|
24905
25050
|
// The regionList form group control value should be ignored as it always contain the latest value
|
|
24906
|
-
if (key !== REGION_LIST_AND_FRC_FILTER && value
|
|
25051
|
+
if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
|
|
24907
25052
|
this.formGroup.get(key).setValue(null);
|
|
24908
25053
|
}
|
|
24909
25054
|
}
|
|
@@ -27036,7 +27181,7 @@ class PrintUrlPipe {
|
|
|
27036
27181
|
* or the empty string
|
|
27037
27182
|
*/
|
|
27038
27183
|
transform(remoteUrl) {
|
|
27039
|
-
if (remoteUrl
|
|
27184
|
+
if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
|
|
27040
27185
|
let printServiceUrlPathname;
|
|
27041
27186
|
/**
|
|
27042
27187
|
* Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
|
|
@@ -27052,7 +27197,7 @@ class PrintUrlPipe {
|
|
|
27052
27197
|
printServiceUrlPathname = urlParser.pathname;
|
|
27053
27198
|
if (printServiceUrlPathname[0] !== '/') {
|
|
27054
27199
|
// Fix for IE11; it returns the pathname without leading slash
|
|
27055
|
-
printServiceUrlPathname =
|
|
27200
|
+
printServiceUrlPathname = `/${printServiceUrlPathname}`;
|
|
27056
27201
|
}
|
|
27057
27202
|
}
|
|
27058
27203
|
else {
|
|
@@ -27229,10 +27374,10 @@ class CaseViewerComponent {
|
|
|
27229
27374
|
}
|
|
27230
27375
|
setUserAccessType(caseDetails) {
|
|
27231
27376
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
27232
|
-
const
|
|
27233
|
-
const
|
|
27234
|
-
this.accessGranted =
|
|
27235
|
-
this.userAccessType =
|
|
27377
|
+
const accessProcess = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID);
|
|
27378
|
+
const accessGranted = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID);
|
|
27379
|
+
this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
27380
|
+
this.userAccessType = accessProcess ? accessProcess.value : null;
|
|
27236
27381
|
}
|
|
27237
27382
|
}
|
|
27238
27383
|
isDataLoaded() {
|
|
@@ -28397,11 +28542,11 @@ class CaseChallengedAccessRequestComponent {
|
|
|
28397
28542
|
};
|
|
28398
28543
|
this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId, challengedAccessRequest)
|
|
28399
28544
|
.pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
|
|
28400
|
-
.subscribe(
|
|
28545
|
+
.subscribe(() => {
|
|
28401
28546
|
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
28402
28547
|
// Angular 7.2!
|
|
28403
28548
|
this.router.navigate(['success'], { relativeTo: this.route });
|
|
28404
|
-
},
|
|
28549
|
+
}, () => {
|
|
28405
28550
|
// Navigate to error page
|
|
28406
28551
|
});
|
|
28407
28552
|
}
|
|
@@ -28415,7 +28560,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
28415
28560
|
}
|
|
28416
28561
|
}
|
|
28417
28562
|
inputEmpty(input) {
|
|
28418
|
-
return input.value
|
|
28563
|
+
return input.value === null || input.value.trim().length === 0;
|
|
28419
28564
|
}
|
|
28420
28565
|
}
|
|
28421
28566
|
CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
@@ -29001,11 +29146,11 @@ class CaseSpecificAccessRequestComponent {
|
|
|
29001
29146
|
};
|
|
29002
29147
|
this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId, specificAccessRequest)
|
|
29003
29148
|
.pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
|
|
29004
|
-
.subscribe(
|
|
29149
|
+
.subscribe(() => {
|
|
29005
29150
|
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
29006
29151
|
// Angular 7.2
|
|
29007
29152
|
this.router.navigate(['success'], { relativeTo: this.route });
|
|
29008
|
-
},
|
|
29153
|
+
}, () => {
|
|
29009
29154
|
// Navigate to error page
|
|
29010
29155
|
});
|
|
29011
29156
|
}
|
|
@@ -29020,7 +29165,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
29020
29165
|
}
|
|
29021
29166
|
}
|
|
29022
29167
|
inputEmpty(input) {
|
|
29023
|
-
return input.value
|
|
29168
|
+
return input.value === null || input.value.trim().length === 0;
|
|
29024
29169
|
}
|
|
29025
29170
|
}
|
|
29026
29171
|
CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
@@ -29862,7 +30007,7 @@ class SearchFiltersComponent {
|
|
|
29862
30007
|
}
|
|
29863
30008
|
searchInputs.forEach(item => {
|
|
29864
30009
|
if (item.field.elementPath) {
|
|
29865
|
-
item.field.id = item.field.id
|
|
30010
|
+
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
29866
30011
|
}
|
|
29867
30012
|
item.field.label = item.label;
|
|
29868
30013
|
if (formValueObject) {
|
|
@@ -30981,24 +31126,24 @@ class CaseFieldBuilder {
|
|
|
30981
31126
|
this.caseField.id = id;
|
|
30982
31127
|
return this;
|
|
30983
31128
|
}
|
|
30984
|
-
withFieldType(
|
|
30985
|
-
this.caseField.field_type =
|
|
31129
|
+
withFieldType(fieldType) {
|
|
31130
|
+
this.caseField.field_type = fieldType;
|
|
30986
31131
|
return this;
|
|
30987
31132
|
}
|
|
30988
|
-
withDisplayContext(
|
|
30989
|
-
this.caseField.display_context =
|
|
31133
|
+
withDisplayContext(displayContext) {
|
|
31134
|
+
this.caseField.display_context = displayContext;
|
|
30990
31135
|
return this;
|
|
30991
31136
|
}
|
|
30992
|
-
withDisplayContextParameter(
|
|
30993
|
-
this.caseField.display_context_parameter =
|
|
31137
|
+
withDisplayContextParameter(displayContextParameter) {
|
|
31138
|
+
this.caseField.display_context_parameter = displayContextParameter;
|
|
30994
31139
|
return this;
|
|
30995
31140
|
}
|
|
30996
31141
|
withHidden(hidden) {
|
|
30997
31142
|
this.caseField.hidden = hidden;
|
|
30998
31143
|
return this;
|
|
30999
31144
|
}
|
|
31000
|
-
withHintText(
|
|
31001
|
-
this.caseField.hint_text =
|
|
31145
|
+
withHintText(hintText) {
|
|
31146
|
+
this.caseField.hint_text = hintText;
|
|
31002
31147
|
return this;
|
|
31003
31148
|
}
|
|
31004
31149
|
withLabel(label) {
|
|
@@ -31009,12 +31154,12 @@ class CaseFieldBuilder {
|
|
|
31009
31154
|
this.caseField.order = order;
|
|
31010
31155
|
return this;
|
|
31011
31156
|
}
|
|
31012
|
-
withSecurityLabel(
|
|
31013
|
-
this.caseField.security_label =
|
|
31157
|
+
withSecurityLabel(securityLabel) {
|
|
31158
|
+
this.caseField.security_label = securityLabel;
|
|
31014
31159
|
return this;
|
|
31015
31160
|
}
|
|
31016
|
-
withShowCondition(
|
|
31017
|
-
this.caseField.show_condition =
|
|
31161
|
+
withShowCondition(showCondition) {
|
|
31162
|
+
this.caseField.show_condition = showCondition;
|
|
31018
31163
|
return this;
|
|
31019
31164
|
}
|
|
31020
31165
|
withShowSummaryContentOption(option) {
|
|
@@ -31041,19 +31186,19 @@ const textFieldType = () => {
|
|
|
31041
31186
|
complex_fields: []
|
|
31042
31187
|
};
|
|
31043
31188
|
};
|
|
31044
|
-
const createCaseEventTrigger = (id, name,
|
|
31189
|
+
const createCaseEventTrigger = (id, name, caseId, showSummary, caseFields, wizardPages = [], canSaveDraft = false) => {
|
|
31045
31190
|
const eventTrigger = new CaseEventTrigger();
|
|
31046
31191
|
eventTrigger.id = id;
|
|
31047
31192
|
eventTrigger.name = name;
|
|
31048
|
-
eventTrigger.case_id =
|
|
31049
|
-
eventTrigger.show_summary =
|
|
31050
|
-
eventTrigger.wizard_pages =
|
|
31193
|
+
eventTrigger.case_id = caseId;
|
|
31194
|
+
eventTrigger.show_summary = showSummary;
|
|
31195
|
+
eventTrigger.wizard_pages = wizardPages;
|
|
31051
31196
|
eventTrigger.event_token = 'test-token';
|
|
31052
|
-
eventTrigger.case_fields =
|
|
31053
|
-
eventTrigger.can_save_draft =
|
|
31197
|
+
eventTrigger.case_fields = caseFields;
|
|
31198
|
+
eventTrigger.can_save_draft = canSaveDraft;
|
|
31054
31199
|
return eventTrigger;
|
|
31055
31200
|
};
|
|
31056
|
-
const aCaseField = (id, label, type,
|
|
31201
|
+
const aCaseField = (id, label, type, displayContext, showSummaryContentOption, typeComplexFields = [], retainHiddenValue, hidden) => {
|
|
31057
31202
|
return ({
|
|
31058
31203
|
id: id || 'personFirstName',
|
|
31059
31204
|
field_type: {
|
|
@@ -31061,10 +31206,10 @@ const aCaseField = (id, label, type, display_context, show_summary_content_optio
|
|
|
31061
31206
|
type: type || 'Text',
|
|
31062
31207
|
complex_fields: typeComplexFields || []
|
|
31063
31208
|
},
|
|
31064
|
-
display_context:
|
|
31209
|
+
display_context: displayContext || 'OPTIONAL',
|
|
31065
31210
|
label: label || 'First name',
|
|
31066
|
-
show_summary_content_option,
|
|
31067
|
-
retain_hidden_value:
|
|
31211
|
+
show_summary_content_option: showSummaryContentOption,
|
|
31212
|
+
retain_hidden_value: retainHiddenValue || false,
|
|
31068
31213
|
hidden: hidden || false
|
|
31069
31214
|
});
|
|
31070
31215
|
};
|
|
@@ -31102,59 +31247,59 @@ const createHiddenComplexFieldOverride = (id) => {
|
|
|
31102
31247
|
complexFieldOverride.display_context = 'HIDDEN';
|
|
31103
31248
|
return complexFieldOverride;
|
|
31104
31249
|
};
|
|
31105
|
-
const createCaseField = (id, label, hint, fieldType,
|
|
31250
|
+
const createCaseField = (id, label, hint, fieldType, displayContext, order = undefined, showCondition = undefined, acls = undefined, hidden) => {
|
|
31106
31251
|
return CaseFieldBuilder.create()
|
|
31107
31252
|
.withId(id || 'personFirstName')
|
|
31108
31253
|
.withFieldType(fieldType || textFieldType())
|
|
31109
|
-
.withDisplayContext(
|
|
31254
|
+
.withDisplayContext(displayContext || 'OPTIONAL')
|
|
31110
31255
|
.withLabel(label || 'First name')
|
|
31111
31256
|
.withHintText(hint || 'First name hint text')
|
|
31112
31257
|
.withShowSummaryContentOption(0)
|
|
31113
31258
|
.withOrder(order)
|
|
31114
|
-
.withShowCondition(
|
|
31115
|
-
.withACLs(
|
|
31259
|
+
.withShowCondition(showCondition || undefined)
|
|
31260
|
+
.withACLs(acls)
|
|
31116
31261
|
.withHidden(hidden || false)
|
|
31117
31262
|
.build();
|
|
31118
31263
|
};
|
|
31119
|
-
const newCaseField = (id, label, hint, fieldType,
|
|
31264
|
+
const newCaseField = (id, label, hint, fieldType, displayContext, order = undefined) => {
|
|
31120
31265
|
return CaseFieldBuilder.create()
|
|
31121
31266
|
.withId(id || 'personFirstName')
|
|
31122
31267
|
.withFieldType(fieldType || textFieldType())
|
|
31123
|
-
.withDisplayContext(
|
|
31268
|
+
.withDisplayContext(displayContext || 'OPTIONAL')
|
|
31124
31269
|
.withHintText(hint || 'First name hint text')
|
|
31125
31270
|
.withLabel(label || 'First name')
|
|
31126
31271
|
.withOrder(order)
|
|
31127
31272
|
.withShowSummaryContentOption(0);
|
|
31128
31273
|
};
|
|
31129
|
-
const createFieldType = (typeId, type,
|
|
31274
|
+
const createFieldType = (typeId, type, complexFields = [], collectionFieldType = undefined) => {
|
|
31130
31275
|
return {
|
|
31131
31276
|
id: typeId || 'Text',
|
|
31132
31277
|
type: type || 'Text',
|
|
31133
|
-
complex_fields:
|
|
31134
|
-
collection_field_type:
|
|
31278
|
+
complex_fields: complexFields || [],
|
|
31279
|
+
collection_field_type: collectionFieldType || undefined
|
|
31135
31280
|
};
|
|
31136
31281
|
};
|
|
31137
31282
|
const createFixedListFieldType = (typeId, fixedListItems = []) => {
|
|
31138
31283
|
return {
|
|
31139
|
-
id:
|
|
31284
|
+
id: `FixedList-${typeId}`,
|
|
31140
31285
|
type: 'FixedList',
|
|
31141
31286
|
fixed_list_items: fixedListItems || []
|
|
31142
31287
|
};
|
|
31143
31288
|
};
|
|
31144
31289
|
const createMultiSelectListFieldType = (typeId, fixedListItems = []) => {
|
|
31145
31290
|
return {
|
|
31146
|
-
id:
|
|
31291
|
+
id: `MultiSelectList-${typeId}`,
|
|
31147
31292
|
type: 'MultiSelectList',
|
|
31148
31293
|
fixed_list_items: fixedListItems || []
|
|
31149
31294
|
};
|
|
31150
31295
|
};
|
|
31151
|
-
const createACL = (role,
|
|
31296
|
+
const createACL = (role, aclCreate, aclRead, aclUpdate, aclDelete) => {
|
|
31152
31297
|
return ({
|
|
31153
31298
|
role: role || 'roleX',
|
|
31154
|
-
create,
|
|
31155
|
-
read,
|
|
31156
|
-
update,
|
|
31157
|
-
delete:
|
|
31299
|
+
create: aclCreate,
|
|
31300
|
+
read: aclRead,
|
|
31301
|
+
update: aclUpdate,
|
|
31302
|
+
delete: aclDelete
|
|
31158
31303
|
});
|
|
31159
31304
|
};
|
|
31160
31305
|
|
|
@@ -31201,5 +31346,5 @@ class TestRouteSnapshotBuilder {
|
|
|
31201
31346
|
* Generated bundle index. Do not edit.
|
|
31202
31347
|
*/
|
|
31203
31348
|
|
|
31204
|
-
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,
|
|
31349
|
+
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 };
|
|
31205
31350
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|