@hmcts/ccd-case-ui-toolkit 5.0.50-case-flags-multiple-case-flags-tabs-support → 5.0.50-fee-pay-props-rc1
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 +156 -232
- 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/shared/components/palette/base-field/payment-field.component.js +4 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +3 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +26 -25
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +8 -16
- package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +64 -106
- package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +1 -2
- package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +3 -4
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +2 -4
- package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
- package/esm2015/lib/shared/pipes/index.js +1 -2
- package/esm2015/lib/shared/pipes/pipes.module.js +5 -9
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +158 -225
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +5 -7
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +1 -2
- package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +2 -3
- package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/pipes/index.d.ts +0 -1
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/lib/shared/pipes/pipes.module.d.ts +2 -3
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.js +0 -16
- package/esm2015/lib/shared/pipes/generic/index.js +0 -2
- package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +0 -8
- package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +0 -1
- package/lib/shared/pipes/generic/index.d.ts +0 -2
- package/lib/shared/pipes/generic/index.d.ts.map +0 -1
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
122
|
-
var _c1$
|
|
122
|
+
var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
123
123
|
var FooterComponent = /** @class */ (function () {
|
|
124
124
|
function FooterComponent() {
|
|
125
125
|
}
|
|
126
126
|
return FooterComponent;
|
|
127
127
|
}());
|
|
128
128
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
129
|
-
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
129
|
+
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, 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) {
|
|
130
130
|
if (rf & 1) {
|
|
131
131
|
i0__namespace.ɵɵprojectionDef(_c0$_);
|
|
132
132
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var _c0$Z = [[["", "headerNavigation", ""]]];
|
|
211
|
-
var _c1$
|
|
211
|
+
var _c1$q = ["[headerNavigation]"];
|
|
212
212
|
var HeaderBarComponent = /** @class */ (function () {
|
|
213
213
|
function HeaderBarComponent() {
|
|
214
214
|
this.signOutRequest = new i0.EventEmitter();
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
return HeaderBarComponent;
|
|
220
220
|
}());
|
|
221
221
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
222
|
-
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
222
|
+
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, 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) {
|
|
223
223
|
if (rf & 1) {
|
|
224
224
|
i0__namespace.ɵɵprojectionDef(_c0$Z);
|
|
225
225
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
@@ -283,14 +283,14 @@
|
|
|
283
283
|
})();
|
|
284
284
|
|
|
285
285
|
var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
286
|
-
var _c1$
|
|
286
|
+
var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
287
287
|
var NavigationComponent = /** @class */ (function () {
|
|
288
288
|
function NavigationComponent() {
|
|
289
289
|
}
|
|
290
290
|
return NavigationComponent;
|
|
291
291
|
}());
|
|
292
292
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
293
|
-
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
293
|
+
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
294
294
|
if (rf & 1) {
|
|
295
295
|
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
296
296
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -438,14 +438,14 @@
|
|
|
438
438
|
})();
|
|
439
439
|
|
|
440
440
|
var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
441
|
-
var _c1$
|
|
441
|
+
var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
442
442
|
var BodyComponent = /** @class */ (function () {
|
|
443
443
|
function BodyComponent() {
|
|
444
444
|
}
|
|
445
445
|
return BodyComponent;
|
|
446
446
|
}());
|
|
447
447
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
448
|
-
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
448
|
+
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
449
449
|
if (rf & 1) {
|
|
450
450
|
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
451
451
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1472,14 +1472,14 @@
|
|
|
1472
1472
|
})();
|
|
1473
1473
|
|
|
1474
1474
|
var _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1475
|
-
var _c1$
|
|
1475
|
+
var _c1$n = ["*"];
|
|
1476
1476
|
var TabComponent = /** @class */ (function () {
|
|
1477
1477
|
function TabComponent() {
|
|
1478
1478
|
}
|
|
1479
1479
|
return TabComponent;
|
|
1480
1480
|
}());
|
|
1481
1481
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1482
|
-
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1482
|
+
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
|
|
1483
1483
|
if (rf & 1) {
|
|
1484
1484
|
i0__namespace.ɵɵprojectionDef();
|
|
1485
1485
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
})();
|
|
1512
1512
|
|
|
1513
1513
|
var _c0$T = ["tab"];
|
|
1514
|
-
var _c1$
|
|
1514
|
+
var _c1$m = function () { return ["."]; };
|
|
1515
1515
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1516
1516
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
1517
1517
|
if (rf & 1) {
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
if (rf & 2) {
|
|
1527
1527
|
var panel_r1 = ctx.$implicit;
|
|
1528
1528
|
i0__namespace.ɵɵadvance(1);
|
|
1529
|
-
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$
|
|
1529
|
+
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1530
1530
|
i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1531
1531
|
i0__namespace.ɵɵadvance(2);
|
|
1532
1532
|
i0__namespace.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -2552,7 +2552,6 @@
|
|
|
2552
2552
|
CaseFlagStatus["ACTIVE"] = "Active";
|
|
2553
2553
|
CaseFlagStatus["INACTIVE"] = "Inactive";
|
|
2554
2554
|
CaseFlagStatus["REQUESTED"] = "Requested";
|
|
2555
|
-
CaseFlagStatus["NOT_APPROVED"] = "Not approved";
|
|
2556
2555
|
})(exports.CaseFlagStatus || (exports.CaseFlagStatus = {}));
|
|
2557
2556
|
|
|
2558
2557
|
var DashPipe = /** @class */ (function () {
|
|
@@ -11401,25 +11400,6 @@
|
|
|
11401
11400
|
}], null, null);
|
|
11402
11401
|
})();
|
|
11403
11402
|
|
|
11404
|
-
var EnumDisplayDescriptionPipe = /** @class */ (function () {
|
|
11405
|
-
function EnumDisplayDescriptionPipe() {
|
|
11406
|
-
}
|
|
11407
|
-
EnumDisplayDescriptionPipe.prototype.transform = function (value) {
|
|
11408
|
-
return Object.values(value);
|
|
11409
|
-
};
|
|
11410
|
-
return EnumDisplayDescriptionPipe;
|
|
11411
|
-
}());
|
|
11412
|
-
EnumDisplayDescriptionPipe.ɵfac = function EnumDisplayDescriptionPipe_Factory(t) { return new (t || EnumDisplayDescriptionPipe)(); };
|
|
11413
|
-
EnumDisplayDescriptionPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "enumDisplayDescription", type: EnumDisplayDescriptionPipe, pure: true });
|
|
11414
|
-
(function () {
|
|
11415
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EnumDisplayDescriptionPipe, [{
|
|
11416
|
-
type: i0.Pipe,
|
|
11417
|
-
args: [{
|
|
11418
|
-
name: 'enumDisplayDescription'
|
|
11419
|
-
}]
|
|
11420
|
-
}], null, null);
|
|
11421
|
-
})();
|
|
11422
|
-
|
|
11423
11403
|
var LinkedCasesService = /** @class */ (function () {
|
|
11424
11404
|
function LinkedCasesService(jurisdictionService, searchService) {
|
|
11425
11405
|
var _this = this;
|
|
@@ -11618,8 +11598,7 @@
|
|
|
11618
11598
|
ReadFieldsFilterPipe,
|
|
11619
11599
|
CcdTabFieldsPipe,
|
|
11620
11600
|
CcdPageFieldsPipe,
|
|
11621
|
-
LinkCasesReasonValuePipe
|
|
11622
|
-
EnumDisplayDescriptionPipe
|
|
11601
|
+
LinkCasesReasonValuePipe
|
|
11623
11602
|
];
|
|
11624
11603
|
var PipesModule = /** @class */ (function () {
|
|
11625
11604
|
function PipesModule() {
|
|
@@ -11640,8 +11619,7 @@
|
|
|
11640
11619
|
ReadFieldsFilterPipe,
|
|
11641
11620
|
CcdTabFieldsPipe,
|
|
11642
11621
|
CcdPageFieldsPipe,
|
|
11643
|
-
LinkCasesReasonValuePipe,
|
|
11644
|
-
EnumDisplayDescriptionPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
|
|
11622
|
+
LinkCasesReasonValuePipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
|
|
11645
11623
|
SortSearchResultPipe,
|
|
11646
11624
|
CcdCaseTitlePipe,
|
|
11647
11625
|
CcdCollectionTableCaseFieldsFilterPipe,
|
|
@@ -11649,8 +11627,7 @@
|
|
|
11649
11627
|
ReadFieldsFilterPipe,
|
|
11650
11628
|
CcdTabFieldsPipe,
|
|
11651
11629
|
CcdPageFieldsPipe,
|
|
11652
|
-
LinkCasesReasonValuePipe
|
|
11653
|
-
EnumDisplayDescriptionPipe] });
|
|
11630
|
+
LinkCasesReasonValuePipe] });
|
|
11654
11631
|
})();
|
|
11655
11632
|
(function () {
|
|
11656
11633
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
|
|
@@ -11718,7 +11695,7 @@
|
|
|
11718
11695
|
i0__namespace.ɵɵelementEnd();
|
|
11719
11696
|
}
|
|
11720
11697
|
}
|
|
11721
|
-
var _c1$
|
|
11698
|
+
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
11722
11699
|
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11723
11700
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11724
11701
|
if (rf & 1) {
|
|
@@ -11739,7 +11716,7 @@
|
|
|
11739
11716
|
}
|
|
11740
11717
|
if (rf & 2) {
|
|
11741
11718
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11742
|
-
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
11719
|
+
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
11743
11720
|
i0__namespace.ɵɵadvance(1);
|
|
11744
11721
|
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11745
11722
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -12026,7 +12003,7 @@
|
|
|
12026
12003
|
if (rf & 2) {
|
|
12027
12004
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12028
12005
|
i0__namespace.ɵɵadvance(1);
|
|
12029
|
-
i0__namespace.ɵɵ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);
|
|
12006
|
+
i0__namespace.ɵɵ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");
|
|
12030
12007
|
}
|
|
12031
12008
|
}
|
|
12032
12009
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
@@ -12044,7 +12021,7 @@
|
|
|
12044
12021
|
i0__namespace.ɵɵelementEnd();
|
|
12045
12022
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12046
12023
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12047
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
12024
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12048
12025
|
i0__namespace.ɵɵelementEnd();
|
|
12049
12026
|
i0__namespace.ɵɵelementEnd();
|
|
12050
12027
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12125,7 +12102,7 @@
|
|
|
12125
12102
|
}());
|
|
12126
12103
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
12127
12104
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
12128
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
12105
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
12129
12106
|
if (rf & 1) {
|
|
12130
12107
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
12131
12108
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12168,7 +12145,7 @@
|
|
|
12168
12145
|
if (rf & 2) {
|
|
12169
12146
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12170
12147
|
i0__namespace.ɵɵadvance(1);
|
|
12171
|
-
i0__namespace.ɵɵ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);
|
|
12148
|
+
i0__namespace.ɵɵ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");
|
|
12172
12149
|
}
|
|
12173
12150
|
}
|
|
12174
12151
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
@@ -12186,7 +12163,7 @@
|
|
|
12186
12163
|
i0__namespace.ɵɵelementEnd();
|
|
12187
12164
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12188
12165
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12189
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
12166
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12190
12167
|
i0__namespace.ɵɵelementEnd();
|
|
12191
12168
|
i0__namespace.ɵɵelementEnd();
|
|
12192
12169
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12209,7 +12186,7 @@
|
|
|
12209
12186
|
return CaseFileViewFieldReadComponent;
|
|
12210
12187
|
}(CaseFileViewFieldComponent));
|
|
12211
12188
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
12212
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵ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"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
12189
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵ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) {
|
|
12213
12190
|
if (rf & 1) {
|
|
12214
12191
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
12215
12192
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12318,9 +12295,8 @@
|
|
|
12318
12295
|
|
|
12319
12296
|
exports.UpdateFlagStep = void 0;
|
|
12320
12297
|
(function (UpdateFlagStep) {
|
|
12321
|
-
UpdateFlagStep["
|
|
12322
|
-
UpdateFlagStep["
|
|
12323
|
-
UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
|
|
12298
|
+
UpdateFlagStep["HINT_TEXT"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
|
|
12299
|
+
UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
|
|
12324
12300
|
})(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
|
|
12325
12301
|
|
|
12326
12302
|
function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
@@ -12408,9 +12384,7 @@
|
|
|
12408
12384
|
if (this.route.snapshot.data.case && this.route.snapshot.data.case.tabs) {
|
|
12409
12385
|
this.flagsData = this.route.snapshot.data.case.tabs
|
|
12410
12386
|
.filter(function (tab) { return tab.fields && tab.fields
|
|
12411
|
-
|
|
12412
|
-
// required to ensure the correct instance is obtained
|
|
12413
|
-
.some(function (caseField) { return caseField.field_type.type === 'FlagLauncher' && caseField.id === _this.caseField.id; }); })[0].fields.reduce(function (flags, caseField) {
|
|
12387
|
+
.some(function (caseField) { return caseField.field_type.type === 'FlagLauncher'; }); })[0].fields.reduce(function (flags, caseField) {
|
|
12414
12388
|
return FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField);
|
|
12415
12389
|
}, []);
|
|
12416
12390
|
}
|
|
@@ -13241,7 +13215,7 @@
|
|
|
13241
13215
|
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, 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);
|
|
13242
13216
|
}
|
|
13243
13217
|
}
|
|
13244
|
-
var _c1$
|
|
13218
|
+
var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
13245
13219
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
13246
13220
|
if (rf & 1) {
|
|
13247
13221
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
@@ -13255,7 +13229,7 @@
|
|
|
13255
13229
|
var i_r5 = ctx.index;
|
|
13256
13230
|
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
13257
13231
|
i0__namespace.ɵɵadvance(2);
|
|
13258
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$
|
|
13232
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$k, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
|
|
13259
13233
|
}
|
|
13260
13234
|
}
|
|
13261
13235
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
|
|
@@ -14424,7 +14398,7 @@
|
|
|
14424
14398
|
i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
14425
14399
|
}
|
|
14426
14400
|
}
|
|
14427
|
-
var _c1$
|
|
14401
|
+
var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
14428
14402
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
14429
14403
|
__extends(WriteDocumentFieldComponent, _super);
|
|
14430
14404
|
function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
@@ -14726,7 +14700,7 @@
|
|
|
14726
14700
|
i0__namespace.ɵɵelementEnd();
|
|
14727
14701
|
}
|
|
14728
14702
|
if (rf & 2) {
|
|
14729
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$
|
|
14703
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
|
|
14730
14704
|
i0__namespace.ɵɵadvance(1);
|
|
14731
14705
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14732
14706
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15106,7 +15080,7 @@
|
|
|
15106
15080
|
i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
|
|
15107
15081
|
}
|
|
15108
15082
|
}
|
|
15109
|
-
var _c1$
|
|
15083
|
+
var _c1$i = function (a0) { return { "form-group-error": a0 }; };
|
|
15110
15084
|
var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
|
|
15111
15085
|
__extends(WriteDynamicRadioListFieldComponent, _super);
|
|
15112
15086
|
function WriteDynamicRadioListFieldComponent() {
|
|
@@ -15154,7 +15128,7 @@
|
|
|
15154
15128
|
i0__namespace.ɵɵelementEnd();
|
|
15155
15129
|
}
|
|
15156
15130
|
if (rf & 2) {
|
|
15157
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$
|
|
15131
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
15158
15132
|
i0__namespace.ɵɵadvance(3);
|
|
15159
15133
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15160
15134
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15262,7 +15236,7 @@
|
|
|
15262
15236
|
}
|
|
15263
15237
|
}
|
|
15264
15238
|
var _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
15265
|
-
var _c1$
|
|
15239
|
+
var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15266
15240
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
15267
15241
|
__extends(WriteEmailFieldComponent, _super);
|
|
15268
15242
|
function WriteEmailFieldComponent() {
|
|
@@ -15296,7 +15270,7 @@
|
|
|
15296
15270
|
i0__namespace.ɵɵadvance(1);
|
|
15297
15271
|
i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15298
15272
|
i0__namespace.ɵɵadvance(1);
|
|
15299
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
15273
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15300
15274
|
}
|
|
15301
15275
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15302
15276
|
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
@@ -15607,7 +15581,7 @@
|
|
|
15607
15581
|
i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
|
|
15608
15582
|
}
|
|
15609
15583
|
}
|
|
15610
|
-
var _c1$
|
|
15584
|
+
var _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
15611
15585
|
var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
|
|
15612
15586
|
__extends(WriteFixedRadioListFieldComponent, _super);
|
|
15613
15587
|
function WriteFixedRadioListFieldComponent() {
|
|
@@ -15638,7 +15612,7 @@
|
|
|
15638
15612
|
i0__namespace.ɵɵelementEnd();
|
|
15639
15613
|
}
|
|
15640
15614
|
if (rf & 2) {
|
|
15641
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
15615
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
15642
15616
|
i0__namespace.ɵɵadvance(3);
|
|
15643
15617
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15644
15618
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16461,7 +16435,7 @@
|
|
|
16461
16435
|
}
|
|
16462
16436
|
}
|
|
16463
16437
|
var _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
16464
|
-
var _c1$
|
|
16438
|
+
var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16465
16439
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
16466
16440
|
__extends(WriteNumberFieldComponent, _super);
|
|
16467
16441
|
function WriteNumberFieldComponent() {
|
|
@@ -16495,7 +16469,7 @@
|
|
|
16495
16469
|
i0__namespace.ɵɵadvance(1);
|
|
16496
16470
|
i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
16497
16471
|
i0__namespace.ɵɵadvance(1);
|
|
16498
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16472
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
16499
16473
|
}
|
|
16500
16474
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16501
16475
|
var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
@@ -17163,6 +17137,9 @@
|
|
|
17163
17137
|
PaymentField.prototype.getRefundsUrl = function () {
|
|
17164
17138
|
return this.appConfig.getRefundsUrl();
|
|
17165
17139
|
};
|
|
17140
|
+
PaymentField.prototype.getNotificationUrl = function () {
|
|
17141
|
+
return this.appConfig.getNotificationUrl();
|
|
17142
|
+
};
|
|
17166
17143
|
PaymentField.prototype.getUserRoles = function () {
|
|
17167
17144
|
var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
17168
17145
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -17188,12 +17165,12 @@
|
|
|
17188
17165
|
return CasePaymentHistoryViewerFieldComponent;
|
|
17189
17166
|
}(PaymentField));
|
|
17190
17167
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17191
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
17168
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
|
|
17192
17169
|
if (rf & 1) {
|
|
17193
17170
|
i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
17194
17171
|
}
|
|
17195
17172
|
if (rf & 2) {
|
|
17196
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17173
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17197
17174
|
}
|
|
17198
17175
|
}, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
|
|
17199
17176
|
(function () {
|
|
@@ -17275,7 +17252,7 @@
|
|
|
17275
17252
|
}
|
|
17276
17253
|
}
|
|
17277
17254
|
var _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
17278
|
-
var _c1$
|
|
17255
|
+
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17279
17256
|
var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
17280
17257
|
__extends(WritePhoneUKFieldComponent, _super);
|
|
17281
17258
|
function WritePhoneUKFieldComponent() {
|
|
@@ -17309,7 +17286,7 @@
|
|
|
17309
17286
|
i0__namespace.ɵɵadvance(1);
|
|
17310
17287
|
i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
17311
17288
|
i0__namespace.ɵɵadvance(1);
|
|
17312
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17289
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
17313
17290
|
}
|
|
17314
17291
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17315
17292
|
var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
@@ -17392,7 +17369,7 @@
|
|
|
17392
17369
|
}
|
|
17393
17370
|
}
|
|
17394
17371
|
var _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
17395
|
-
var _c1$
|
|
17372
|
+
var _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
17396
17373
|
var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
17397
17374
|
__extends(WriteTextAreaFieldComponent, _super);
|
|
17398
17375
|
function WriteTextAreaFieldComponent(browserService) {
|
|
@@ -17437,7 +17414,7 @@
|
|
|
17437
17414
|
i0__namespace.ɵɵadvance(1);
|
|
17438
17415
|
i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
17439
17416
|
i0__namespace.ɵɵadvance(1);
|
|
17440
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17417
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
17441
17418
|
}
|
|
17442
17419
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17443
17420
|
(function () {
|
|
@@ -17520,7 +17497,7 @@
|
|
|
17520
17497
|
}
|
|
17521
17498
|
}
|
|
17522
17499
|
var _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
17523
|
-
var _c1$
|
|
17500
|
+
var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17524
17501
|
var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
17525
17502
|
__extends(WriteTextFieldComponent, _super);
|
|
17526
17503
|
function WriteTextFieldComponent() {
|
|
@@ -17559,7 +17536,7 @@
|
|
|
17559
17536
|
i0__namespace.ɵɵadvance(1);
|
|
17560
17537
|
i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
17561
17538
|
i0__namespace.ɵɵadvance(1);
|
|
17562
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17539
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
17563
17540
|
}
|
|
17564
17541
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17565
17542
|
var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
@@ -17601,7 +17578,7 @@
|
|
|
17601
17578
|
}
|
|
17602
17579
|
if (rf & 2) {
|
|
17603
17580
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
17604
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17581
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17605
17582
|
}
|
|
17606
17583
|
}
|
|
17607
17584
|
var WaysToPayFieldComponent = /** @class */ (function (_super) {
|
|
@@ -17615,9 +17592,9 @@
|
|
|
17615
17592
|
return WaysToPayFieldComponent;
|
|
17616
17593
|
}(PaymentField));
|
|
17617
17594
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17618
|
-
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
17595
|
+
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
17619
17596
|
if (rf & 1) {
|
|
17620
|
-
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
17597
|
+
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
17621
17598
|
}
|
|
17622
17599
|
if (rf & 2) {
|
|
17623
17600
|
i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
@@ -17780,7 +17757,7 @@
|
|
|
17780
17757
|
i0__namespace.ɵɵtextInterpolate(value_r4);
|
|
17781
17758
|
}
|
|
17782
17759
|
}
|
|
17783
|
-
var _c1$
|
|
17760
|
+
var _c1$b = function (a0) { return { "form-group-error": a0 }; };
|
|
17784
17761
|
var WriteYesNoFieldComponent = /** @class */ (function (_super) {
|
|
17785
17762
|
__extends(WriteYesNoFieldComponent, _super);
|
|
17786
17763
|
function WriteYesNoFieldComponent(yesNoService) {
|
|
@@ -17811,7 +17788,7 @@
|
|
|
17811
17788
|
i0__namespace.ɵɵelementEnd();
|
|
17812
17789
|
}
|
|
17813
17790
|
if (rf & 2) {
|
|
17814
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
17791
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
17815
17792
|
i0__namespace.ɵɵadvance(3);
|
|
17816
17793
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
17817
17794
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18206,16 +18183,16 @@
|
|
|
18206
18183
|
}] });
|
|
18207
18184
|
})();
|
|
18208
18185
|
|
|
18209
|
-
function
|
|
18186
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
18210
18187
|
if (rf & 1) {
|
|
18211
18188
|
i0__namespace.ɵɵelementContainer(0);
|
|
18212
18189
|
}
|
|
18213
18190
|
}
|
|
18214
18191
|
var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
18215
|
-
function
|
|
18192
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
18216
18193
|
if (rf & 1) {
|
|
18217
18194
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18218
|
-
i0__namespace.ɵɵtemplate(1,
|
|
18195
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18219
18196
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18220
18197
|
}
|
|
18221
18198
|
if (rf & 2) {
|
|
@@ -18231,7 +18208,7 @@
|
|
|
18231
18208
|
i0__namespace.ɵɵelementContainer(0);
|
|
18232
18209
|
}
|
|
18233
18210
|
}
|
|
18234
|
-
var _c1$
|
|
18211
|
+
var _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
18235
18212
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
|
|
18236
18213
|
if (rf & 1) {
|
|
18237
18214
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -18244,7 +18221,7 @@
|
|
|
18244
18221
|
i0__namespace.ɵɵnextContext();
|
|
18245
18222
|
var _r1 = i0__namespace.ɵɵreference(13);
|
|
18246
18223
|
i0__namespace.ɵɵadvance(1);
|
|
18247
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$
|
|
18224
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
|
|
18248
18225
|
}
|
|
18249
18226
|
}
|
|
18250
18227
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
@@ -18258,7 +18235,7 @@
|
|
|
18258
18235
|
i0__namespace.ɵɵelement(3, "img", 12);
|
|
18259
18236
|
i0__namespace.ɵɵtext(4);
|
|
18260
18237
|
i0__namespace.ɵɵelementEnd();
|
|
18261
|
-
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
18238
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
18262
18239
|
i0__namespace.ɵɵelementEnd();
|
|
18263
18240
|
}
|
|
18264
18241
|
if (rf & 2) {
|
|
@@ -18354,46 +18331,47 @@
|
|
|
18354
18331
|
return CaseFileViewFolderSelectorComponent;
|
|
18355
18332
|
}());
|
|
18356
18333
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
|
|
18357
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [
|
|
18334
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) {
|
|
18358
18335
|
if (rf & 1) {
|
|
18359
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
18360
|
-
i0__namespace.ɵɵ
|
|
18336
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18337
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
18361
18338
|
i0__namespace.ɵɵelementEnd();
|
|
18362
|
-
i0__namespace.ɵɵelementStart(
|
|
18363
|
-
i0__namespace.ɵɵtext(
|
|
18339
|
+
i0__namespace.ɵɵelementStart(1, "h2", 1);
|
|
18340
|
+
i0__namespace.ɵɵtext(2, "Move File");
|
|
18364
18341
|
i0__namespace.ɵɵelementEnd();
|
|
18365
|
-
i0__namespace.ɵɵelementStart(
|
|
18366
|
-
i0__namespace.ɵɵ
|
|
18342
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
18343
|
+
i0__namespace.ɵɵtext(4);
|
|
18367
18344
|
i0__namespace.ɵɵelementEnd();
|
|
18368
|
-
i0__namespace.ɵɵelementStart(
|
|
18369
|
-
i0__namespace.ɵɵ
|
|
18370
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
18371
|
-
i0__namespace.ɵɵtext(8, "Save");
|
|
18345
|
+
i0__namespace.ɵɵelementStart(5, "div", 2);
|
|
18346
|
+
i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
18372
18347
|
i0__namespace.ɵɵelementEnd();
|
|
18373
|
-
i0__namespace.ɵɵelementStart(
|
|
18374
|
-
i0__namespace.ɵɵ
|
|
18375
|
-
i0__namespace.ɵɵ
|
|
18348
|
+
i0__namespace.ɵɵelementStart(7, "div", 4);
|
|
18349
|
+
i0__namespace.ɵɵelementStart(8, "button", 5);
|
|
18350
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
18351
|
+
i0__namespace.ɵɵtext(9, "Save");
|
|
18376
18352
|
i0__namespace.ɵɵelementEnd();
|
|
18353
|
+
i0__namespace.ɵɵelementStart(10, "a", 6);
|
|
18354
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
18355
|
+
i0__namespace.ɵɵtext(11, "Cancel");
|
|
18377
18356
|
i0__namespace.ɵɵelementEnd();
|
|
18378
|
-
i0__namespace.ɵɵelementStart(11, "div", 6);
|
|
18379
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
18380
18357
|
i0__namespace.ɵɵelementEnd();
|
|
18381
18358
|
i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
18382
18359
|
}
|
|
18383
18360
|
if (rf & 2) {
|
|
18384
|
-
i0__namespace.ɵɵadvance(
|
|
18361
|
+
i0__namespace.ɵɵadvance(4);
|
|
18385
18362
|
i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
18386
18363
|
i0__namespace.ɵɵadvance(2);
|
|
18387
18364
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18388
18365
|
}
|
|
18389
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["
|
|
18366
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
|
|
18390
18367
|
(function () {
|
|
18391
18368
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18392
18369
|
type: i0.Component,
|
|
18393
18370
|
args: [{
|
|
18394
18371
|
selector: 'xui-case-file-view-folder-selector',
|
|
18395
18372
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
18396
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18373
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
18374
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18397
18375
|
}]
|
|
18398
18376
|
}], function () {
|
|
18399
18377
|
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
@@ -18465,7 +18443,7 @@
|
|
|
18465
18443
|
}
|
|
18466
18444
|
}
|
|
18467
18445
|
var _c0$t = [[["", "trigger", ""]]];
|
|
18468
|
-
var _c1$
|
|
18446
|
+
var _c1$9 = ["[trigger]"];
|
|
18469
18447
|
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
18470
18448
|
function CaseFileViewOverlayMenuComponent() {
|
|
18471
18449
|
this.title = '';
|
|
@@ -18480,7 +18458,7 @@
|
|
|
18480
18458
|
return CaseFileViewOverlayMenuComponent;
|
|
18481
18459
|
}());
|
|
18482
18460
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
18483
|
-
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$
|
|
18461
|
+
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
|
|
18484
18462
|
if (rf & 1) {
|
|
18485
18463
|
i0__namespace.ɵɵprojectionDef(_c0$t);
|
|
18486
18464
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -18945,7 +18923,7 @@
|
|
|
18945
18923
|
return Object.assign(documentTreeNode, node);
|
|
18946
18924
|
}
|
|
18947
18925
|
var filteredData = this.documentTreeData;
|
|
18948
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
18926
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
18949
18927
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
18950
18928
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
18951
18929
|
return true;
|
|
@@ -19027,7 +19005,6 @@
|
|
|
19027
19005
|
CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
|
|
19028
19006
|
var _this = this;
|
|
19029
19007
|
var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
19030
|
-
width: '570px',
|
|
19031
19008
|
data: { categories: this.categories, document: node }
|
|
19032
19009
|
});
|
|
19033
19010
|
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
@@ -19053,7 +19030,7 @@
|
|
|
19053
19030
|
}());
|
|
19054
19031
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
19055
19032
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19056
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
19033
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
19057
19034
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
|
|
19058
19035
|
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
19059
19036
|
if (rf & 1) {
|
|
@@ -19113,32 +19090,25 @@
|
|
|
19113
19090
|
}
|
|
19114
19091
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
|
|
19115
19092
|
if (rf & 1) {
|
|
19116
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
19093
|
+
i0__namespace.ɵɵelementStart(0, "strong", 19);
|
|
19117
19094
|
i0__namespace.ɵɵtext(1, "Active");
|
|
19118
19095
|
i0__namespace.ɵɵelementEnd();
|
|
19119
19096
|
}
|
|
19120
19097
|
}
|
|
19121
19098
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
|
|
19122
19099
|
if (rf & 1) {
|
|
19123
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
19100
|
+
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
19124
19101
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
19125
19102
|
i0__namespace.ɵɵelementEnd();
|
|
19126
19103
|
}
|
|
19127
19104
|
}
|
|
19128
19105
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
19129
19106
|
if (rf & 1) {
|
|
19130
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
19107
|
+
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
19131
19108
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
19132
19109
|
i0__namespace.ɵɵelementEnd();
|
|
19133
19110
|
}
|
|
19134
19111
|
}
|
|
19135
|
-
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
19136
|
-
if (rf & 1) {
|
|
19137
|
-
i0__namespace.ɵɵelementStart(0, "strong", 22);
|
|
19138
|
-
i0__namespace.ɵɵtext(1, "Not approved");
|
|
19139
|
-
i0__namespace.ɵɵelementEnd();
|
|
19140
|
-
}
|
|
19141
|
-
}
|
|
19142
19112
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
|
|
19143
19113
|
if (rf & 1) {
|
|
19144
19114
|
i0__namespace.ɵɵelementStart(0, "tr", 15);
|
|
@@ -19165,7 +19135,6 @@
|
|
|
19165
19135
|
i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
|
|
19166
19136
|
i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
|
|
19167
19137
|
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
|
|
19168
|
-
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 19);
|
|
19169
19138
|
i0__namespace.ɵɵelementEnd();
|
|
19170
19139
|
i0__namespace.ɵɵelementEnd();
|
|
19171
19140
|
}
|
|
@@ -19179,23 +19148,21 @@
|
|
|
19179
19148
|
i0__namespace.ɵɵadvance(2);
|
|
19180
19149
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
19181
19150
|
i0__namespace.ɵɵadvance(2);
|
|
19182
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10,
|
|
19151
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 8, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
19183
19152
|
i0__namespace.ɵɵadvance(3);
|
|
19184
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13,
|
|
19153
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 11, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
19185
19154
|
i0__namespace.ɵɵadvance(3);
|
|
19186
19155
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
19187
19156
|
i0__namespace.ɵɵadvance(1);
|
|
19188
19157
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
|
|
19189
19158
|
i0__namespace.ɵɵadvance(1);
|
|
19190
19159
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.REQUESTED);
|
|
19191
|
-
i0__namespace.ɵɵadvance(1);
|
|
19192
|
-
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.NOT_APPROVED);
|
|
19193
19160
|
}
|
|
19194
19161
|
}
|
|
19195
19162
|
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
19196
19163
|
if (rf & 1) {
|
|
19197
19164
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
19198
|
-
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template,
|
|
19165
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 18, 14, "tr", 14);
|
|
19199
19166
|
i0__namespace.ɵɵelementEnd();
|
|
19200
19167
|
}
|
|
19201
19168
|
if (rf & 2) {
|
|
@@ -19260,7 +19227,7 @@
|
|
|
19260
19227
|
return CaseFlagTableComponent;
|
|
19261
19228
|
}());
|
|
19262
19229
|
CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
|
|
19263
|
-
CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], [
|
|
19230
|
+
CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
|
|
19264
19231
|
if (rf & 1) {
|
|
19265
19232
|
i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
|
|
19266
19233
|
}
|
|
@@ -19341,7 +19308,7 @@
|
|
|
19341
19308
|
}
|
|
19342
19309
|
}
|
|
19343
19310
|
var _c0$s = function (a0) { return { "form-group-error": a0 }; };
|
|
19344
|
-
var _c1$
|
|
19311
|
+
var _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19345
19312
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
|
|
19346
19313
|
if (rf & 1) {
|
|
19347
19314
|
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
@@ -19361,7 +19328,7 @@
|
|
|
19361
19328
|
i0__namespace.ɵɵadvance(3);
|
|
19362
19329
|
i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
19363
19330
|
i0__namespace.ɵɵadvance(1);
|
|
19364
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
19331
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$8, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
|
|
19365
19332
|
}
|
|
19366
19333
|
}
|
|
19367
19334
|
function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
|
|
@@ -20462,10 +20429,10 @@
|
|
|
20462
20429
|
}] });
|
|
20463
20430
|
})();
|
|
20464
20431
|
|
|
20465
|
-
function
|
|
20432
|
+
function UpdateFlagComponent_div_8_Template(rf, ctx) {
|
|
20466
20433
|
if (rf & 1) {
|
|
20467
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
20468
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
20434
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
20435
|
+
i0__namespace.ɵɵelementStart(1, "span", 17);
|
|
20469
20436
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
20470
20437
|
i0__namespace.ɵɵelementEnd();
|
|
20471
20438
|
i0__namespace.ɵɵtext(3);
|
|
@@ -20477,10 +20444,10 @@
|
|
|
20477
20444
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.updateFlagNotEnteredErrorMessage, " ");
|
|
20478
20445
|
}
|
|
20479
20446
|
}
|
|
20480
|
-
function
|
|
20447
|
+
function UpdateFlagComponent_div_9_Template(rf, ctx) {
|
|
20481
20448
|
if (rf & 1) {
|
|
20482
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
20483
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
20449
|
+
i0__namespace.ɵɵelementStart(0, "div", 18);
|
|
20450
|
+
i0__namespace.ɵɵelementStart(1, "span", 17);
|
|
20484
20451
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
20485
20452
|
i0__namespace.ɵɵelementEnd();
|
|
20486
20453
|
i0__namespace.ɵɵtext(3);
|
|
@@ -20492,28 +20459,17 @@
|
|
|
20492
20459
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.updateFlagCharLimitErrorMessage, " ");
|
|
20493
20460
|
}
|
|
20494
20461
|
}
|
|
20495
|
-
function
|
|
20462
|
+
function UpdateFlagComponent_button_22_Template(rf, ctx) {
|
|
20496
20463
|
if (rf & 1) {
|
|
20497
|
-
i0__namespace.ɵɵ
|
|
20498
|
-
i0__namespace.ɵɵ
|
|
20499
|
-
i0__namespace.ɵɵ
|
|
20500
|
-
i0__namespace.ɵɵ
|
|
20501
|
-
i0__namespace.ɵɵtext(4);
|
|
20502
|
-
i0__namespace.ɵɵelementEnd();
|
|
20464
|
+
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20465
|
+
i0__namespace.ɵɵelementStart(0, "button", 19);
|
|
20466
|
+
i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_button_22_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.onChangeStatus(); });
|
|
20467
|
+
i0__namespace.ɵɵtext(1, " Make inactive ");
|
|
20503
20468
|
i0__namespace.ɵɵelementEnd();
|
|
20504
20469
|
}
|
|
20505
|
-
if (rf & 2) {
|
|
20506
|
-
var status_r3 = ctx.$implicit;
|
|
20507
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
20508
|
-
i0__namespace.ɵɵadvance(1);
|
|
20509
|
-
i0__namespace.ɵɵproperty("name", ctx_r2.FLAG_STATUS_CONTROL_NAME)("value", i0__namespace.ɵɵpipeBind1(2, 4, status_r3));
|
|
20510
|
-
i0__namespace.ɵɵadvance(2);
|
|
20511
|
-
i0__namespace.ɵɵproperty("for", ctx_r2.FLAG_STATUS_CONTROL_NAME);
|
|
20512
|
-
i0__namespace.ɵɵadvance(1);
|
|
20513
|
-
i0__namespace.ɵɵtextInterpolate1(" ", status_r3, " ");
|
|
20514
|
-
}
|
|
20515
20470
|
}
|
|
20516
20471
|
var _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
20472
|
+
var _c1$7 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
20517
20473
|
var UpdateFlagComponent = /** @class */ (function () {
|
|
20518
20474
|
function UpdateFlagComponent() {
|
|
20519
20475
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -20521,25 +20477,22 @@
|
|
|
20521
20477
|
this.errorMessages = [];
|
|
20522
20478
|
this.updateFlagNotEnteredErrorMessage = null;
|
|
20523
20479
|
this.updateFlagCharLimitErrorMessage = null;
|
|
20524
|
-
this.
|
|
20525
|
-
this.caseFlagStatuses = exports.CaseFlagStatus;
|
|
20526
|
-
this.FLAG_COMMENTS_CONTROL_NAME = 'flagComment';
|
|
20527
|
-
this.FLAG_STATUS_CONTROL_NAME = 'flagStatus';
|
|
20528
|
-
this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME = 'flagStatusReasonChange';
|
|
20529
|
-
this.FLAG_WELSH_TRANSLATION_CONTROL_NAME = 'flagWelshTranslation';
|
|
20480
|
+
this.updateFlagControlName = 'flagComments';
|
|
20530
20481
|
this.commentsMaxCharLimit = 200;
|
|
20531
20482
|
}
|
|
20532
20483
|
UpdateFlagComponent.prototype.ngOnInit = function () {
|
|
20484
|
+
this.updateFlagHint = exports.UpdateFlagStep.HINT_TEXT;
|
|
20485
|
+
this.updateFlagCharLimitInfo = exports.UpdateFlagStep.CHARACTER_LIMIT_INFO;
|
|
20486
|
+
this.formGroup.addControl(this.updateFlagControlName, new i2.FormControl(''));
|
|
20533
20487
|
if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
|
|
20534
20488
|
var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
|
|
20535
|
-
this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i2.FormControl(flagDetail.status));
|
|
20536
|
-
this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i2.FormControl(''));
|
|
20537
|
-
this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i2.FormControl(false));
|
|
20538
20489
|
// Populate flag comments text area with existing comments
|
|
20539
|
-
this.formGroup.
|
|
20490
|
+
this.formGroup.get(this.updateFlagControlName).setValue(flagDetail.flagComment);
|
|
20540
20491
|
if (flagDetail.name) {
|
|
20541
20492
|
this.updateFlagTitle =
|
|
20542
|
-
exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
|
|
20493
|
+
exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
|
|
20494
|
+
? ", " + flagDetail.subTypeValue + "\""
|
|
20495
|
+
: '"');
|
|
20543
20496
|
}
|
|
20544
20497
|
}
|
|
20545
20498
|
};
|
|
@@ -20548,7 +20501,7 @@
|
|
|
20548
20501
|
this.validateTextEntry();
|
|
20549
20502
|
// If validation has passed, update the flag details with the comments entered
|
|
20550
20503
|
if (this.errorMessages.length === 0) {
|
|
20551
|
-
this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.
|
|
20504
|
+
this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.updateFlagControlName).value });
|
|
20552
20505
|
}
|
|
20553
20506
|
// Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
|
|
20554
20507
|
// re-emitted because the parent component repopulates this on handling this EventEmitter
|
|
@@ -20558,17 +20511,22 @@
|
|
|
20558
20511
|
selectedFlag: this.selectedFlag
|
|
20559
20512
|
});
|
|
20560
20513
|
};
|
|
20514
|
+
UpdateFlagComponent.prototype.onChangeStatus = function () {
|
|
20515
|
+
this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { status: this.selectedFlag.flagDetailDisplay.flagDetail.status === exports.CaseFlagStatus.ACTIVE
|
|
20516
|
+
? exports.CaseFlagStatus.INACTIVE
|
|
20517
|
+
: this.selectedFlag.flagDetailDisplay.flagDetail.status });
|
|
20518
|
+
};
|
|
20561
20519
|
UpdateFlagComponent.prototype.validateTextEntry = function () {
|
|
20562
20520
|
this.updateFlagNotEnteredErrorMessage = null;
|
|
20563
20521
|
this.updateFlagCharLimitErrorMessage = null;
|
|
20564
20522
|
this.errorMessages = [];
|
|
20565
|
-
var comment = this.formGroup.get(this.
|
|
20523
|
+
var comment = this.formGroup.get(this.updateFlagControlName).value;
|
|
20566
20524
|
if (!comment) {
|
|
20567
20525
|
this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
|
|
20568
20526
|
this.errorMessages.push({
|
|
20569
20527
|
title: '',
|
|
20570
20528
|
description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
|
|
20571
|
-
fieldId: this.
|
|
20529
|
+
fieldId: this.updateFlagControlName
|
|
20572
20530
|
});
|
|
20573
20531
|
}
|
|
20574
20532
|
if (comment && comment.length > this.commentsMaxCharLimit) {
|
|
@@ -20576,14 +20534,14 @@
|
|
|
20576
20534
|
this.errorMessages.push({
|
|
20577
20535
|
title: '',
|
|
20578
20536
|
description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
|
|
20579
|
-
fieldId: this.
|
|
20537
|
+
fieldId: this.updateFlagControlName
|
|
20580
20538
|
});
|
|
20581
20539
|
}
|
|
20582
20540
|
};
|
|
20583
20541
|
return UpdateFlagComponent;
|
|
20584
20542
|
}());
|
|
20585
20543
|
UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(); };
|
|
20586
|
-
UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls:
|
|
20544
|
+
UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 26, vars: 18, consts: [[1, "form-group", 3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--l", 3, "for"], ["id", "update-flag-hint", 1, "govuk-hint"], ["id", "update-flag-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-hint update-flag-char-limit-info update-flag-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "update-flag-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-char-limit-error", 1, "govuk-error-message"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) {
|
|
20587
20545
|
if (rf & 1) {
|
|
20588
20546
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
20589
20547
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -20594,60 +20552,37 @@
|
|
|
20594
20552
|
i0__namespace.ɵɵelementEnd();
|
|
20595
20553
|
i0__namespace.ɵɵelementEnd();
|
|
20596
20554
|
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
20597
|
-
i0__namespace.ɵɵ
|
|
20598
|
-
i0__namespace.ɵɵelementStart(8, "label", 6);
|
|
20599
|
-
i0__namespace.ɵɵtext(9);
|
|
20600
|
-
i0__namespace.ɵɵelementEnd();
|
|
20601
|
-
i0__namespace.ɵɵelementEnd();
|
|
20602
|
-
i0__namespace.ɵɵelementStart(10, "div", 7);
|
|
20603
|
-
i0__namespace.ɵɵtext(11);
|
|
20604
|
-
i0__namespace.ɵɵelementEnd();
|
|
20605
|
-
i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_12_Template, 4, 1, "div", 8);
|
|
20606
|
-
i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 4, 1, "div", 9);
|
|
20607
|
-
i0__namespace.ɵɵelementStart(14, "textarea", 10);
|
|
20608
|
-
i0__namespace.ɵɵtext(15, " ");
|
|
20609
|
-
i0__namespace.ɵɵelementEnd();
|
|
20610
|
-
i0__namespace.ɵɵelementStart(16, "div", 11);
|
|
20611
|
-
i0__namespace.ɵɵtext(17);
|
|
20612
|
-
i0__namespace.ɵɵelementEnd();
|
|
20613
|
-
i0__namespace.ɵɵelementEnd();
|
|
20614
|
-
i0__namespace.ɵɵelementStart(18, "div", 12);
|
|
20615
|
-
i0__namespace.ɵɵelementStart(19, "div");
|
|
20616
|
-
i0__namespace.ɵɵelementStart(20, "label", 13);
|
|
20617
|
-
i0__namespace.ɵɵtext(21);
|
|
20618
|
-
i0__namespace.ɵɵelementEnd();
|
|
20619
|
-
i0__namespace.ɵɵelementEnd();
|
|
20620
|
-
i0__namespace.ɵɵelementStart(22, "div", 5);
|
|
20621
|
-
i0__namespace.ɵɵelementStart(23, "div", 14);
|
|
20622
|
-
i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 5, 6, "div", 15);
|
|
20623
|
-
i0__namespace.ɵɵpipe(25, "enumDisplayDescription");
|
|
20555
|
+
i0__namespace.ɵɵtext(7);
|
|
20624
20556
|
i0__namespace.ɵɵelementEnd();
|
|
20557
|
+
i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_8_Template, 4, 1, "div", 6);
|
|
20558
|
+
i0__namespace.ɵɵtemplate(9, UpdateFlagComponent_div_9_Template, 4, 1, "div", 7);
|
|
20559
|
+
i0__namespace.ɵɵelementStart(10, "textarea", 8);
|
|
20560
|
+
i0__namespace.ɵɵtext(11, " ");
|
|
20625
20561
|
i0__namespace.ɵɵelementEnd();
|
|
20626
|
-
i0__namespace.ɵɵelementStart(
|
|
20627
|
-
i0__namespace.ɵɵ
|
|
20628
|
-
i0__namespace.ɵɵtext(28);
|
|
20629
|
-
i0__namespace.ɵɵelementEnd();
|
|
20630
|
-
i0__namespace.ɵɵelementStart(29, "textarea", 17);
|
|
20631
|
-
i0__namespace.ɵɵtext(30, " ");
|
|
20562
|
+
i0__namespace.ɵɵelementStart(12, "div", 9);
|
|
20563
|
+
i0__namespace.ɵɵtext(13);
|
|
20632
20564
|
i0__namespace.ɵɵelementEnd();
|
|
20633
20565
|
i0__namespace.ɵɵelementEnd();
|
|
20634
20566
|
i0__namespace.ɵɵelementEnd();
|
|
20635
|
-
i0__namespace.ɵɵelementStart(
|
|
20636
|
-
i0__namespace.ɵɵelementStart(
|
|
20637
|
-
i0__namespace.ɵɵelementStart(
|
|
20638
|
-
i0__namespace.ɵɵ
|
|
20639
|
-
i0__namespace.ɵɵelementStart(
|
|
20640
|
-
i0__namespace.ɵɵ
|
|
20567
|
+
i0__namespace.ɵɵelementStart(14, "div", 10);
|
|
20568
|
+
i0__namespace.ɵɵelementStart(15, "div", 11);
|
|
20569
|
+
i0__namespace.ɵɵelementStart(16, "p");
|
|
20570
|
+
i0__namespace.ɵɵtext(17, "Flag status: ");
|
|
20571
|
+
i0__namespace.ɵɵelementStart(18, "span");
|
|
20572
|
+
i0__namespace.ɵɵelementStart(19, "strong", 12);
|
|
20573
|
+
i0__namespace.ɵɵtext(20);
|
|
20641
20574
|
i0__namespace.ɵɵelementEnd();
|
|
20642
20575
|
i0__namespace.ɵɵelementEnd();
|
|
20643
20576
|
i0__namespace.ɵɵelementEnd();
|
|
20644
20577
|
i0__namespace.ɵɵelementEnd();
|
|
20578
|
+
i0__namespace.ɵɵelementStart(21, "div", 11);
|
|
20579
|
+
i0__namespace.ɵɵtemplate(22, UpdateFlagComponent_button_22_Template, 2, 0, "button", 13);
|
|
20645
20580
|
i0__namespace.ɵɵelementEnd();
|
|
20646
20581
|
i0__namespace.ɵɵelementEnd();
|
|
20647
|
-
i0__namespace.ɵɵelementStart(
|
|
20648
|
-
i0__namespace.ɵɵelementStart(
|
|
20649
|
-
i0__namespace.ɵɵlistener("click", function
|
|
20650
|
-
i0__namespace.ɵɵtext(
|
|
20582
|
+
i0__namespace.ɵɵelementStart(23, "div", 14);
|
|
20583
|
+
i0__namespace.ɵɵelementStart(24, "button", 15);
|
|
20584
|
+
i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { return ctx.onNext(); });
|
|
20585
|
+
i0__namespace.ɵɵtext(25, "Next");
|
|
20651
20586
|
i0__namespace.ɵɵelementEnd();
|
|
20652
20587
|
i0__namespace.ɵɵelementEnd();
|
|
20653
20588
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -20655,39 +20590,29 @@
|
|
|
20655
20590
|
if (rf & 2) {
|
|
20656
20591
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20657
20592
|
i0__namespace.ɵɵadvance(2);
|
|
20658
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
20659
|
-
i0__namespace.ɵɵadvance(
|
|
20660
|
-
i0__namespace.ɵɵ
|
|
20661
|
-
i0__namespace.ɵɵadvance(3);
|
|
20662
|
-
i0__namespace.ɵɵproperty("for", ctx.FLAG_COMMENTS_CONTROL_NAME);
|
|
20593
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$n, ctx.errorMessages.length > 0));
|
|
20594
|
+
i0__namespace.ɵɵadvance(2);
|
|
20595
|
+
i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
20663
20596
|
i0__namespace.ɵɵadvance(1);
|
|
20664
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, "
|
|
20597
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
|
|
20665
20598
|
i0__namespace.ɵɵadvance(2);
|
|
20666
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.
|
|
20599
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagHint, " ");
|
|
20667
20600
|
i0__namespace.ɵɵadvance(1);
|
|
20668
20601
|
i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
|
|
20669
20602
|
i0__namespace.ɵɵadvance(1);
|
|
20670
20603
|
i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
|
|
20671
20604
|
i0__namespace.ɵɵadvance(1);
|
|
20672
|
-
i0__namespace.ɵɵproperty("id", ctx.
|
|
20605
|
+
i0__namespace.ɵɵproperty("id", ctx.updateFlagControlName)("name", ctx.updateFlagControlName)("formControlName", ctx.updateFlagControlName);
|
|
20673
20606
|
i0__namespace.ɵɵadvance(3);
|
|
20674
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.
|
|
20675
|
-
i0__namespace.ɵɵadvance(
|
|
20676
|
-
i0__namespace.ɵɵ
|
|
20677
|
-
i0__namespace.ɵɵadvance(2);
|
|
20678
|
-
i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CONTROL_NAME);
|
|
20679
|
-
i0__namespace.ɵɵadvance(1);
|
|
20680
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(25, 22, ctx.caseFlagStatuses));
|
|
20681
|
-
i0__namespace.ɵɵadvance(4);
|
|
20682
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.STATUS_HINT_TEXT, " ");
|
|
20683
|
-
i0__namespace.ɵɵadvance(1);
|
|
20684
|
-
i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME)("name", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME)("formControlName", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME);
|
|
20685
|
-
i0__namespace.ɵɵadvance(5);
|
|
20686
|
-
i0__namespace.ɵɵproperty("id", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME)("name", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
|
|
20607
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
|
|
20608
|
+
i0__namespace.ɵɵadvance(6);
|
|
20609
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$7, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
20687
20610
|
i0__namespace.ɵɵadvance(1);
|
|
20688
|
-
i0__namespace.ɵɵ
|
|
20611
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
|
|
20612
|
+
i0__namespace.ɵɵadvance(2);
|
|
20613
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
20689
20614
|
}
|
|
20690
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName
|
|
20615
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
|
|
20691
20616
|
(function () {
|
|
20692
20617
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
20693
20618
|
type: i0.Component,
|
|
@@ -35410,7 +35335,6 @@
|
|
|
35410
35335
|
exports.DynamicRadioListPipe = DynamicRadioListPipe;
|
|
35411
35336
|
exports.ESQueryType = ESQueryType;
|
|
35412
35337
|
exports.Embedded = Embedded;
|
|
35413
|
-
exports.EnumDisplayDescriptionPipe = EnumDisplayDescriptionPipe;
|
|
35414
35338
|
exports.ErrorMessageComponent = ErrorMessageComponent;
|
|
35415
35339
|
exports.ErrorNotifierService = ErrorNotifierService;
|
|
35416
35340
|
exports.EventCaseField = EventCaseField;
|