@hmcts/ccd-case-ui-toolkit 6.14.5-testing → 6.14.6-exui-229
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 +102 -93
- 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/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +31 -18
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +7 -11
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +10 -8
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +85 -75
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +6 -2
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i5, i6, i3, i1$4, i7, i3$1, i4, momentAdapter, i5$1, i6$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('ngx-md'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', 'ngx-md', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global["ngx-md"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.i11, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i5, i6, i3, i1$4, i1$5, i7, i3$1, i4, momentAdapter, i5$1, i6$1, i11, i6$2, i1$6, i9) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
39
39
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
40
40
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
41
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
41
42
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
42
43
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
43
44
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
44
45
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
45
46
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
46
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
47
47
|
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
48
48
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
49
49
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
@@ -19181,18 +19181,62 @@
|
|
|
19181
19181
|
}], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
|
|
19182
19182
|
})();
|
|
19183
19183
|
|
|
19184
|
+
var MarkdownComponent = /** @class */ (function () {
|
|
19185
|
+
function MarkdownComponent() {
|
|
19186
|
+
}
|
|
19187
|
+
MarkdownComponent.prototype.ngOnInit = function () {
|
|
19188
|
+
this.content = this.content.replace(/ \n/g, '<br>');
|
|
19189
|
+
};
|
|
19190
|
+
MarkdownComponent.prototype.onMarkdownClick = function (event) {
|
|
19191
|
+
// If we don't have an anchor tag, we don't need to do anything.
|
|
19192
|
+
if (event.target instanceof HTMLAnchorElement === false) {
|
|
19193
|
+
return;
|
|
19194
|
+
}
|
|
19195
|
+
return true;
|
|
19196
|
+
};
|
|
19197
|
+
return MarkdownComponent;
|
|
19198
|
+
}());
|
|
19199
|
+
MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
|
|
19200
|
+
MarkdownComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) {
|
|
19201
|
+
if (rf & 1) {
|
|
19202
|
+
i0__namespace.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
|
|
19203
|
+
}
|
|
19204
|
+
}, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) {
|
|
19205
|
+
if (rf & 1) {
|
|
19206
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
19207
|
+
i0__namespace.ɵɵelement(1, "markdown", 0);
|
|
19208
|
+
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
19209
|
+
i0__namespace.ɵɵelementEnd();
|
|
19210
|
+
}
|
|
19211
|
+
if (rf & 2) {
|
|
19212
|
+
i0__namespace.ɵɵadvance(1);
|
|
19213
|
+
i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
|
|
19214
|
+
}
|
|
19215
|
+
}, directives: [i1__namespace$4.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
19216
|
+
(function () {
|
|
19217
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
|
|
19218
|
+
type: i0.Component,
|
|
19219
|
+
args: [{
|
|
19220
|
+
selector: 'ccd-markdown',
|
|
19221
|
+
templateUrl: './markdown.html'
|
|
19222
|
+
}]
|
|
19223
|
+
}], function () { return []; }, { content: [{
|
|
19224
|
+
type: i0.Input
|
|
19225
|
+
}], markdownUseHrefAsRouterLink: [{
|
|
19226
|
+
type: i0.Input
|
|
19227
|
+
}], onMarkdownClick: [{
|
|
19228
|
+
type: i0.HostListener,
|
|
19229
|
+
args: ['click', ['$event']]
|
|
19230
|
+
}] });
|
|
19231
|
+
})();
|
|
19232
|
+
|
|
19184
19233
|
function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
|
|
19185
19234
|
if (rf & 1) {
|
|
19186
19235
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
19187
|
-
i0__namespace.ɵɵ
|
|
19188
|
-
i0__namespace.ɵɵ
|
|
19236
|
+
i0__namespace.ɵɵelementStart(1, "ccd-markdown");
|
|
19237
|
+
i0__namespace.ɵɵtext(2, "[content]=\"value.code | ccdFixedList:caseField.list_items\"");
|
|
19238
|
+
i0__namespace.ɵɵelementEnd();
|
|
19189
19239
|
i0__namespace.ɵɵelementEnd();
|
|
19190
|
-
}
|
|
19191
|
-
if (rf & 2) {
|
|
19192
|
-
var value_r1 = ctx.$implicit;
|
|
19193
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19194
|
-
i0__namespace.ɵɵadvance(1);
|
|
19195
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
|
|
19196
19240
|
}
|
|
19197
19241
|
}
|
|
19198
19242
|
var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
@@ -19218,12 +19262,12 @@
|
|
|
19218
19262
|
ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
|
|
19219
19263
|
ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
19220
19264
|
if (rf & 1) {
|
|
19221
|
-
i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3,
|
|
19265
|
+
i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 0, "div", 0);
|
|
19222
19266
|
}
|
|
19223
19267
|
if (rf & 2) {
|
|
19224
19268
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
|
|
19225
19269
|
}
|
|
19226
|
-
}, directives: [i1__namespace.NgForOf
|
|
19270
|
+
}, directives: [i1__namespace.NgForOf, MarkdownComponent], 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}"] });
|
|
19227
19271
|
var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
|
|
19228
19272
|
(function () {
|
|
19229
19273
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
|
|
@@ -19283,7 +19327,7 @@
|
|
|
19283
19327
|
i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
|
|
19284
19328
|
i0__namespace.ɵɵelementEnd();
|
|
19285
19329
|
i0__namespace.ɵɵelementStart(3, "label", 10);
|
|
19286
|
-
i0__namespace.ɵɵ
|
|
19330
|
+
i0__namespace.ɵɵelement(4, "ccd-markdown", 11);
|
|
19287
19331
|
i0__namespace.ɵɵelementEnd();
|
|
19288
19332
|
i0__namespace.ɵɵelementEnd();
|
|
19289
19333
|
i0__namespace.ɵɵelementContainerEnd();
|
|
@@ -19298,7 +19342,7 @@
|
|
|
19298
19342
|
i0__namespace.ɵɵadvance(1);
|
|
19299
19343
|
i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
19300
19344
|
i0__namespace.ɵɵadvance(1);
|
|
19301
|
-
i0__namespace.ɵɵ
|
|
19345
|
+
i0__namespace.ɵɵproperty("content", checkbox_r4.label);
|
|
19302
19346
|
}
|
|
19303
19347
|
}
|
|
19304
19348
|
var _c0$A = function (a0) { return { "error": a0 }; };
|
|
@@ -19370,7 +19414,7 @@
|
|
|
19370
19414
|
return WriteDynamicMultiSelectListFieldComponent;
|
|
19371
19415
|
}(AbstractFieldWriteComponent));
|
|
19372
19416
|
WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
|
|
19373
|
-
WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵ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) {
|
|
19417
|
+
WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵ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"], [3, "content"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
19374
19418
|
if (rf & 1) {
|
|
19375
19419
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
19376
19420
|
i0__namespace.ɵɵelementStart(1, "fieldset");
|
|
@@ -19394,14 +19438,15 @@
|
|
|
19394
19438
|
i0__namespace.ɵɵadvance(1);
|
|
19395
19439
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
19396
19440
|
}
|
|
19397
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe],
|
|
19441
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, MarkdownComponent], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["ccd-markdown[_ngcontent-%COMP%]{display:inline-block}"] });
|
|
19398
19442
|
var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
|
|
19399
19443
|
(function () {
|
|
19400
19444
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
19401
19445
|
type: i0.Component,
|
|
19402
19446
|
args: [{
|
|
19403
19447
|
selector: 'ccd-write-dynamic-multi-select-list-field',
|
|
19404
|
-
templateUrl: './write-dynamic-multi-select-list-field.html'
|
|
19448
|
+
templateUrl: './write-dynamic-multi-select-list-field.html',
|
|
19449
|
+
styleUrls: ['./write-dynamic-multi-select-list-field.component.scss']
|
|
19405
19450
|
}]
|
|
19406
19451
|
}], null, null);
|
|
19407
19452
|
})();
|
|
@@ -20703,7 +20748,7 @@
|
|
|
20703
20748
|
i0__namespace.ɵɵadvance(4);
|
|
20704
20749
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
20705
20750
|
}
|
|
20706
|
-
}, directives: [i1__namespace$
|
|
20751
|
+
}, directives: [i1__namespace$5.CdkOverlayOrigin, i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
20707
20752
|
(function () {
|
|
20708
20753
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
20709
20754
|
type: i0.Component,
|
|
@@ -24560,55 +24605,6 @@
|
|
|
24560
24605
|
}] });
|
|
24561
24606
|
})();
|
|
24562
24607
|
|
|
24563
|
-
var MarkdownComponent = /** @class */ (function () {
|
|
24564
|
-
function MarkdownComponent() {
|
|
24565
|
-
}
|
|
24566
|
-
MarkdownComponent.prototype.ngOnInit = function () {
|
|
24567
|
-
this.content = this.content.replace(/ \n/g, '<br>');
|
|
24568
|
-
};
|
|
24569
|
-
MarkdownComponent.prototype.onMarkdownClick = function (event) {
|
|
24570
|
-
// If we don't have an anchor tag, we don't need to do anything.
|
|
24571
|
-
if (event.target instanceof HTMLAnchorElement === false) {
|
|
24572
|
-
return;
|
|
24573
|
-
}
|
|
24574
|
-
return true;
|
|
24575
|
-
};
|
|
24576
|
-
return MarkdownComponent;
|
|
24577
|
-
}());
|
|
24578
|
-
MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
|
|
24579
|
-
MarkdownComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) {
|
|
24580
|
-
if (rf & 1) {
|
|
24581
|
-
i0__namespace.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
|
|
24582
|
-
}
|
|
24583
|
-
}, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) {
|
|
24584
|
-
if (rf & 1) {
|
|
24585
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
24586
|
-
i0__namespace.ɵɵelement(1, "markdown", 0);
|
|
24587
|
-
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
24588
|
-
i0__namespace.ɵɵelementEnd();
|
|
24589
|
-
}
|
|
24590
|
-
if (rf & 2) {
|
|
24591
|
-
i0__namespace.ɵɵadvance(1);
|
|
24592
|
-
i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
|
|
24593
|
-
}
|
|
24594
|
-
}, directives: [i1__namespace$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
24595
|
-
(function () {
|
|
24596
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
|
|
24597
|
-
type: i0.Component,
|
|
24598
|
-
args: [{
|
|
24599
|
-
selector: 'ccd-markdown',
|
|
24600
|
-
templateUrl: './markdown.html'
|
|
24601
|
-
}]
|
|
24602
|
-
}], function () { return []; }, { content: [{
|
|
24603
|
-
type: i0.Input
|
|
24604
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
24605
|
-
type: i0.Input
|
|
24606
|
-
}], onMarkdownClick: [{
|
|
24607
|
-
type: i0.HostListener,
|
|
24608
|
-
args: ['click', ['$event']]
|
|
24609
|
-
}] });
|
|
24610
|
-
})();
|
|
24611
|
-
|
|
24612
24608
|
var FeeValue = /** @class */ (function () {
|
|
24613
24609
|
function FeeValue() {
|
|
24614
24610
|
}
|
|
@@ -25698,7 +25694,7 @@
|
|
|
25698
25694
|
FormModule,
|
|
25699
25695
|
TabsModule,
|
|
25700
25696
|
LabelSubstitutorModule,
|
|
25701
|
-
i1$
|
|
25697
|
+
i1$4.NgxMdModule,
|
|
25702
25698
|
i4.NgxMatDatetimePickerModule,
|
|
25703
25699
|
i4.NgxMatTimepickerModule,
|
|
25704
25700
|
i4.NgxMatNativeDateModule,
|
|
@@ -25707,7 +25703,7 @@
|
|
|
25707
25703
|
i5$1.MatDatepickerModule,
|
|
25708
25704
|
i5.MatAutocompleteModule,
|
|
25709
25705
|
i7.CdkTreeModule,
|
|
25710
|
-
i1$
|
|
25706
|
+
i1$5.OverlayModule,
|
|
25711
25707
|
i3.PaymentLibModule,
|
|
25712
25708
|
i2$1.ScrollToModule.forRoot(),
|
|
25713
25709
|
i1$3.MatDialogModule,
|
|
@@ -25841,7 +25837,7 @@
|
|
|
25841
25837
|
FormModule,
|
|
25842
25838
|
TabsModule,
|
|
25843
25839
|
LabelSubstitutorModule,
|
|
25844
|
-
i1$
|
|
25840
|
+
i1$4.NgxMdModule,
|
|
25845
25841
|
i4.NgxMatDatetimePickerModule,
|
|
25846
25842
|
i4.NgxMatTimepickerModule,
|
|
25847
25843
|
i4.NgxMatNativeDateModule,
|
|
@@ -25850,7 +25846,7 @@
|
|
|
25850
25846
|
i5$1.MatDatepickerModule,
|
|
25851
25847
|
i5.MatAutocompleteModule,
|
|
25852
25848
|
i7.CdkTreeModule,
|
|
25853
|
-
i1$
|
|
25849
|
+
i1$5.OverlayModule,
|
|
25854
25850
|
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
25855
25851
|
i11.MediaViewerModule,
|
|
25856
25852
|
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
@@ -25974,7 +25970,7 @@
|
|
|
25974
25970
|
FormModule,
|
|
25975
25971
|
TabsModule,
|
|
25976
25972
|
LabelSubstitutorModule,
|
|
25977
|
-
i1$
|
|
25973
|
+
i1$4.NgxMdModule,
|
|
25978
25974
|
i4.NgxMatDatetimePickerModule,
|
|
25979
25975
|
i4.NgxMatTimepickerModule,
|
|
25980
25976
|
i4.NgxMatNativeDateModule,
|
|
@@ -25983,7 +25979,7 @@
|
|
|
25983
25979
|
i5$1.MatDatepickerModule,
|
|
25984
25980
|
i5.MatAutocompleteModule,
|
|
25985
25981
|
i7.CdkTreeModule,
|
|
25986
|
-
i1$
|
|
25982
|
+
i1$5.OverlayModule,
|
|
25987
25983
|
i3.PaymentLibModule,
|
|
25988
25984
|
i2$1.ScrollToModule.forRoot(),
|
|
25989
25985
|
i1$3.MatDialogModule,
|
|
@@ -30730,7 +30726,7 @@
|
|
|
30730
30726
|
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
30731
30727
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
30732
30728
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
30733
|
-
i0__namespace.ɵɵlistener("
|
|
30729
|
+
i0__namespace.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
|
|
30734
30730
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
30735
30731
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
30736
30732
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -30768,6 +30764,7 @@
|
|
|
30768
30764
|
this.location = location;
|
|
30769
30765
|
this.crf = crf;
|
|
30770
30766
|
this.sessionStorageService = sessionStorageService;
|
|
30767
|
+
this.HEARINGS_TAB_LABEL = 'Hearings';
|
|
30771
30768
|
this.hasPrint = true;
|
|
30772
30769
|
this.hasEventSelector = true;
|
|
30773
30770
|
this.prependedTabs = [];
|
|
@@ -30779,6 +30776,7 @@
|
|
|
30779
30776
|
this.ignoreWarning = false;
|
|
30780
30777
|
this.selectedTabIndex = 0;
|
|
30781
30778
|
this.activeCaseFlags = false;
|
|
30779
|
+
this.subs = [];
|
|
30782
30780
|
this.callbackErrorsSubject = new rxjs.Subject();
|
|
30783
30781
|
}
|
|
30784
30782
|
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
@@ -30831,6 +30829,7 @@
|
|
|
30831
30829
|
this.unsubscribe(this.callbackErrorsSubject);
|
|
30832
30830
|
this.unsubscribe(this.errorSubscription);
|
|
30833
30831
|
this.unsubscribe(this.subscription);
|
|
30832
|
+
this.subs.forEach(function (s) { return s.unsubscribe(); });
|
|
30834
30833
|
};
|
|
30835
30834
|
CaseFullAccessViewComponent.prototype.unsubscribe = function (subscription) {
|
|
30836
30835
|
if (subscription) {
|
|
@@ -30839,7 +30838,7 @@
|
|
|
30839
30838
|
};
|
|
30840
30839
|
CaseFullAccessViewComponent.prototype.checkRouteAndSetCaseViewTab = function () {
|
|
30841
30840
|
var _this = this;
|
|
30842
|
-
this.router.events
|
|
30841
|
+
this.subs.push(this.router.events
|
|
30843
30842
|
.pipe(operators.filter(function (event) { return event instanceof i1$1.NavigationEnd; }))
|
|
30844
30843
|
.subscribe(function (event) {
|
|
30845
30844
|
var url = event && event.url;
|
|
@@ -30851,8 +30850,9 @@
|
|
|
30851
30850
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
30852
30851
|
}
|
|
30853
30852
|
}
|
|
30854
|
-
});
|
|
30853
|
+
}));
|
|
30855
30854
|
};
|
|
30855
|
+
;
|
|
30856
30856
|
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
30857
30857
|
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
30858
30858
|
};
|
|
@@ -30975,22 +30975,25 @@
|
|
|
30975
30975
|
}
|
|
30976
30976
|
}
|
|
30977
30977
|
};
|
|
30978
|
-
|
|
30979
|
-
|
|
30980
|
-
this.
|
|
30981
|
-
var
|
|
30982
|
-
|
|
30983
|
-
//
|
|
30984
|
-
|
|
30985
|
-
|
|
30986
|
-
|
|
30978
|
+
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
30979
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
|
|
30980
|
+
var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
|
|
30981
|
+
var tabLabel = matTab.textLabel;
|
|
30982
|
+
// sortedTabs are fragments
|
|
30983
|
+
// appended/prepepended tabs use router navigation
|
|
30984
|
+
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
30985
|
+
(this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
30986
|
+
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
30987
|
+
var tab = matTab['_viewContainerRef'];
|
|
30988
|
+
var id = tab.element.nativeElement.id;
|
|
30989
|
+
// cases/case-details/:caseId/hearings
|
|
30990
|
+
// cases/case-details/:caseId/roles-and-access
|
|
30987
30991
|
this.router.navigate([id], { relativeTo: this.route });
|
|
30988
30992
|
}
|
|
30989
30993
|
else {
|
|
30990
|
-
|
|
30991
|
-
|
|
30992
|
-
|
|
30993
|
-
});
|
|
30994
|
+
// Routing here is based on tab label, not ideal
|
|
30995
|
+
// cases/case-details/:caseId#tabLabel
|
|
30996
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: tabLabel });
|
|
30994
30997
|
}
|
|
30995
30998
|
};
|
|
30996
30999
|
CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
|
|
@@ -31088,6 +31091,12 @@
|
|
|
31088
31091
|
this.callbackErrorsSubject.next(null);
|
|
31089
31092
|
this.alertService.clear();
|
|
31090
31093
|
};
|
|
31094
|
+
CaseFullAccessViewComponent.prototype.getUrlFragment = function (url) {
|
|
31095
|
+
return url.split('#')[url.split('#').length - 1];
|
|
31096
|
+
};
|
|
31097
|
+
CaseFullAccessViewComponent.prototype.getTabIndexByTabLabel = function (tabGroup, tabLabel) {
|
|
31098
|
+
return tabGroup._tabs.toArray().findIndex(function (t) { return t.textLabel.toLowerCase() === tabLabel.toLowerCase(); });
|
|
31099
|
+
};
|
|
31091
31100
|
return CaseFullAccessViewComponent;
|
|
31092
31101
|
}());
|
|
31093
31102
|
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
@@ -31104,7 +31113,7 @@
|
|
|
31104
31113
|
var _t = void 0;
|
|
31105
31114
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
31106
31115
|
}
|
|
31107
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "
|
|
31116
|
+
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedIndexChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
|
|
31108
31117
|
if (rf & 1) {
|
|
31109
31118
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
31110
31119
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|