@hmcts/ccd-case-ui-toolkit 5.0.50-case-file-view-restrict-document-move → 5.0.50-case-flags-multiple-case-flags-tabs-support

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.
Files changed (38) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +228 -149
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +5 -5
  6. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
  7. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +4 -3
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +25 -26
  9. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +16 -8
  10. package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +106 -64
  11. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +2 -1
  12. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +4 -3
  13. package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +4 -2
  14. package/esm2015/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.js +16 -0
  15. package/esm2015/lib/shared/pipes/generic/index.js +2 -0
  16. package/esm2015/lib/shared/pipes/index.js +2 -1
  17. package/esm2015/lib/shared/pipes/pipes.module.js +9 -5
  18. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +221 -151
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  20. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -1
  21. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  22. 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
  23. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +7 -5
  24. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  25. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +2 -1
  26. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
  27. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +3 -2
  28. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  29. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  30. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +8 -0
  31. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +1 -0
  32. package/lib/shared/pipes/generic/index.d.ts +2 -0
  33. package/lib/shared/pipes/generic/index.d.ts.map +1 -0
  34. package/lib/shared/pipes/index.d.ts +1 -0
  35. package/lib/shared/pipes/index.d.ts.map +1 -1
  36. package/lib/shared/pipes/pipes.module.d.ts +3 -2
  37. package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -119,14 +119,14 @@
119
119
  }
120
120
  }
121
121
  var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
- var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
122
+ var _c1$q = ["[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$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) {
129
+ FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$q, 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$q = ["[headerNavigation]"];
211
+ var _c1$p = ["[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$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) {
222
+ HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$p, 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$p = ["[leftNavLinks]", "[rightNavLinks]"];
286
+ var _c1$o = ["[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$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
293
+ NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$o, 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$o = ["[topBody]", "[leftBody]", "[rightBody]"];
441
+ var _c1$n = ["[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$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
448
+ BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$n, 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$n = ["*"];
1475
+ var _c1$m = ["*"];
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$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1482
+ TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$m, 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$m = function () { return ["."]; };
1514
+ var _c1$l = 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$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1529
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$l))("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,6 +2552,7 @@
2552
2552
  CaseFlagStatus["ACTIVE"] = "Active";
2553
2553
  CaseFlagStatus["INACTIVE"] = "Inactive";
2554
2554
  CaseFlagStatus["REQUESTED"] = "Requested";
2555
+ CaseFlagStatus["NOT_APPROVED"] = "Not approved";
2555
2556
  })(exports.CaseFlagStatus || (exports.CaseFlagStatus = {}));
2556
2557
 
2557
2558
  var DashPipe = /** @class */ (function () {
@@ -11400,6 +11401,25 @@
11400
11401
  }], null, null);
11401
11402
  })();
11402
11403
 
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
+
11403
11423
  var LinkedCasesService = /** @class */ (function () {
11404
11424
  function LinkedCasesService(jurisdictionService, searchService) {
11405
11425
  var _this = this;
@@ -11598,7 +11618,8 @@
11598
11618
  ReadFieldsFilterPipe,
11599
11619
  CcdTabFieldsPipe,
11600
11620
  CcdPageFieldsPipe,
11601
- LinkCasesReasonValuePipe
11621
+ LinkCasesReasonValuePipe,
11622
+ EnumDisplayDescriptionPipe
11602
11623
  ];
11603
11624
  var PipesModule = /** @class */ (function () {
11604
11625
  function PipesModule() {
@@ -11619,7 +11640,8 @@
11619
11640
  ReadFieldsFilterPipe,
11620
11641
  CcdTabFieldsPipe,
11621
11642
  CcdPageFieldsPipe,
11622
- LinkCasesReasonValuePipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11643
+ LinkCasesReasonValuePipe,
11644
+ EnumDisplayDescriptionPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11623
11645
  SortSearchResultPipe,
11624
11646
  CcdCaseTitlePipe,
11625
11647
  CcdCollectionTableCaseFieldsFilterPipe,
@@ -11627,7 +11649,8 @@
11627
11649
  ReadFieldsFilterPipe,
11628
11650
  CcdTabFieldsPipe,
11629
11651
  CcdPageFieldsPipe,
11630
- LinkCasesReasonValuePipe] });
11652
+ LinkCasesReasonValuePipe,
11653
+ EnumDisplayDescriptionPipe] });
11631
11654
  })();
11632
11655
  (function () {
11633
11656
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
@@ -11695,7 +11718,7 @@
11695
11718
  i0__namespace.ɵɵelementEnd();
11696
11719
  }
11697
11720
  }
11698
- var _c1$l = function (a0) { return { "form-group-error": a0 }; };
11721
+ var _c1$k = function (a0) { return { "form-group-error": a0 }; };
11699
11722
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
11700
11723
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11701
11724
  if (rf & 1) {
@@ -11716,7 +11739,7 @@
11716
11739
  }
11717
11740
  if (rf & 2) {
11718
11741
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11719
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
11742
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, ctx_r2.missingPostcode));
11720
11743
  i0__namespace.ɵɵadvance(1);
11721
11744
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
11722
11745
  i0__namespace.ɵɵadvance(3);
@@ -12003,7 +12026,7 @@
12003
12026
  if (rf & 2) {
12004
12027
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12005
12028
  i0__namespace.ɵɵadvance(1);
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");
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);
12007
12030
  }
12008
12031
  }
12009
12032
  function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
@@ -12021,7 +12044,7 @@
12021
12044
  i0__namespace.ɵɵelementEnd();
12022
12045
  i0__namespace.ɵɵelement(6, "div", 9);
12023
12046
  i0__namespace.ɵɵelementStart(7, "div", 10);
12024
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12047
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12025
12048
  i0__namespace.ɵɵelementEnd();
12026
12049
  i0__namespace.ɵɵelementEnd();
12027
12050
  i0__namespace.ɵɵelementEnd();
@@ -12102,7 +12125,7 @@
12102
12125
  }());
12103
12126
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
12104
12127
  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)); };
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) {
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) {
12106
12129
  if (rf & 1) {
12107
12130
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
12108
12131
  i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
@@ -12145,7 +12168,7 @@
12145
12168
  if (rf & 2) {
12146
12169
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12147
12170
  i0__namespace.ɵɵadvance(1);
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");
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);
12149
12172
  }
12150
12173
  }
12151
12174
  function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
@@ -12163,7 +12186,7 @@
12163
12186
  i0__namespace.ɵɵelementEnd();
12164
12187
  i0__namespace.ɵɵelement(6, "div", 9);
12165
12188
  i0__namespace.ɵɵelementStart(7, "div", 10);
12166
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12189
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12167
12190
  i0__namespace.ɵɵelementEnd();
12168
12191
  i0__namespace.ɵɵelementEnd();
12169
12192
  i0__namespace.ɵɵelementEnd();
@@ -12180,13 +12203,13 @@
12180
12203
  __extends(CaseFileViewFieldReadComponent, _super);
12181
12204
  function CaseFileViewFieldReadComponent() {
12182
12205
  var _this = _super.apply(this, __spread(arguments)) || this;
12183
- _this.allowMoving = false;
12206
+ _this.allowMoving = true;
12184
12207
  return _this;
12185
12208
  }
12186
12209
  return CaseFileViewFieldReadComponent;
12187
12210
  }(CaseFileViewFieldComponent));
12188
12211
  CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
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) {
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) {
12190
12213
  if (rf & 1) {
12191
12214
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
12192
12215
  i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
@@ -12295,8 +12318,9 @@
12295
12318
 
12296
12319
  exports.UpdateFlagStep = void 0;
12297
12320
  (function (UpdateFlagStep) {
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";
12321
+ UpdateFlagStep["COMMENT_HINT_TEXT"] = "Update the comments describing the user's support needs or flag description. Do not include any sensitive information such as personal details.";
12322
+ UpdateFlagStep["COMMENT_CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12323
+ UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
12300
12324
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12301
12325
 
12302
12326
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
@@ -12384,7 +12408,9 @@
12384
12408
  if (this.route.snapshot.data.case && this.route.snapshot.data.case.tabs) {
12385
12409
  this.flagsData = this.route.snapshot.data.case.tabs
12386
12410
  .filter(function (tab) { return tab.fields && tab.fields
12387
- .some(function (caseField) { return caseField.field_type.type === 'FlagLauncher'; }); })[0].fields.reduce(function (flags, caseField) {
12411
+ // There could be more than one FlagLauncher field instance so an additional check of caseField ID is
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) {
12388
12414
  return FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField);
12389
12415
  }, []);
12390
12416
  }
@@ -13215,7 +13241,7 @@
13215
13241
  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);
13216
13242
  }
13217
13243
  }
13218
- var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13244
+ var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13219
13245
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
13220
13246
  if (rf & 1) {
13221
13247
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -13229,7 +13255,7 @@
13229
13255
  var i_r5 = ctx.index;
13230
13256
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
13231
13257
  i0__namespace.ɵɵadvance(2);
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));
13258
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$j, 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));
13233
13259
  }
13234
13260
  }
13235
13261
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -14398,7 +14424,7 @@
14398
14424
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
14399
14425
  }
14400
14426
  }
14401
- var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
14427
+ var _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
14402
14428
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
14403
14429
  __extends(WriteDocumentFieldComponent, _super);
14404
14430
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
@@ -14700,7 +14726,7 @@
14700
14726
  i0__namespace.ɵɵelementEnd();
14701
14727
  }
14702
14728
  if (rf & 2) {
14703
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
14729
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$i, !ctx.valid));
14704
14730
  i0__namespace.ɵɵadvance(1);
14705
14731
  i0__namespace.ɵɵproperty("for", ctx.id());
14706
14732
  i0__namespace.ɵɵadvance(1);
@@ -15080,7 +15106,7 @@
15080
15106
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
15081
15107
  }
15082
15108
  }
15083
- var _c1$i = function (a0) { return { "form-group-error": a0 }; };
15109
+ var _c1$h = function (a0) { return { "form-group-error": a0 }; };
15084
15110
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
15085
15111
  __extends(WriteDynamicRadioListFieldComponent, _super);
15086
15112
  function WriteDynamicRadioListFieldComponent() {
@@ -15128,7 +15154,7 @@
15128
15154
  i0__namespace.ɵɵelementEnd();
15129
15155
  }
15130
15156
  if (rf & 2) {
15131
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15157
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15132
15158
  i0__namespace.ɵɵadvance(3);
15133
15159
  i0__namespace.ɵɵproperty("for", ctx.id());
15134
15160
  i0__namespace.ɵɵadvance(1);
@@ -15236,7 +15262,7 @@
15236
15262
  }
15237
15263
  }
15238
15264
  var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15239
- var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
15265
+ var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
15240
15266
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15241
15267
  __extends(WriteEmailFieldComponent, _super);
15242
15268
  function WriteEmailFieldComponent() {
@@ -15270,7 +15296,7 @@
15270
15296
  i0__namespace.ɵɵadvance(1);
15271
15297
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15272
15298
  i0__namespace.ɵɵadvance(1);
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);
15299
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$g, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15274
15300
  }
15275
15301
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15276
15302
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -15581,7 +15607,7 @@
15581
15607
  i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
15582
15608
  }
15583
15609
  }
15584
- var _c1$g = function (a0) { return { "form-group-error": a0 }; };
15610
+ var _c1$f = function (a0) { return { "form-group-error": a0 }; };
15585
15611
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
15586
15612
  __extends(WriteFixedRadioListFieldComponent, _super);
15587
15613
  function WriteFixedRadioListFieldComponent() {
@@ -15612,7 +15638,7 @@
15612
15638
  i0__namespace.ɵɵelementEnd();
15613
15639
  }
15614
15640
  if (rf & 2) {
15615
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15641
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15616
15642
  i0__namespace.ɵɵadvance(3);
15617
15643
  i0__namespace.ɵɵproperty("for", ctx.id());
15618
15644
  i0__namespace.ɵɵadvance(1);
@@ -16435,7 +16461,7 @@
16435
16461
  }
16436
16462
  }
16437
16463
  var _c0$D = function (a0) { return { "form-group-error": a0 }; };
16438
- var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
16464
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16439
16465
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16440
16466
  __extends(WriteNumberFieldComponent, _super);
16441
16467
  function WriteNumberFieldComponent() {
@@ -16469,7 +16495,7 @@
16469
16495
  i0__namespace.ɵɵadvance(1);
16470
16496
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
16471
16497
  i0__namespace.ɵɵadvance(1);
16472
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16498
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16473
16499
  }
16474
16500
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16475
16501
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -17249,7 +17275,7 @@
17249
17275
  }
17250
17276
  }
17251
17277
  var _c0$B = function (a0) { return { "form-group-error": a0 }; };
17252
- var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
17278
+ var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
17253
17279
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
17254
17280
  __extends(WritePhoneUKFieldComponent, _super);
17255
17281
  function WritePhoneUKFieldComponent() {
@@ -17283,7 +17309,7 @@
17283
17309
  i0__namespace.ɵɵadvance(1);
17284
17310
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
17285
17311
  i0__namespace.ɵɵadvance(1);
17286
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17312
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17287
17313
  }
17288
17314
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17289
17315
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -17366,7 +17392,7 @@
17366
17392
  }
17367
17393
  }
17368
17394
  var _c0$A = function (a0) { return { "form-group-error": a0 }; };
17369
- var _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
17395
+ var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
17370
17396
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
17371
17397
  __extends(WriteTextAreaFieldComponent, _super);
17372
17398
  function WriteTextAreaFieldComponent(browserService) {
@@ -17411,7 +17437,7 @@
17411
17437
  i0__namespace.ɵɵadvance(1);
17412
17438
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
17413
17439
  i0__namespace.ɵɵadvance(1);
17414
- 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);
17440
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17415
17441
  }
17416
17442
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17417
17443
  (function () {
@@ -17494,7 +17520,7 @@
17494
17520
  }
17495
17521
  }
17496
17522
  var _c0$z = function (a0) { return { "form-group-error": a0 }; };
17497
- var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17523
+ var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
17498
17524
  var WriteTextFieldComponent = /** @class */ (function (_super) {
17499
17525
  __extends(WriteTextFieldComponent, _super);
17500
17526
  function WriteTextFieldComponent() {
@@ -17533,7 +17559,7 @@
17533
17559
  i0__namespace.ɵɵadvance(1);
17534
17560
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
17535
17561
  i0__namespace.ɵɵadvance(1);
17536
- 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);
17562
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17537
17563
  }
17538
17564
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17539
17565
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -17754,7 +17780,7 @@
17754
17780
  i0__namespace.ɵɵtextInterpolate(value_r4);
17755
17781
  }
17756
17782
  }
17757
- var _c1$b = function (a0) { return { "form-group-error": a0 }; };
17783
+ var _c1$a = function (a0) { return { "form-group-error": a0 }; };
17758
17784
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
17759
17785
  __extends(WriteYesNoFieldComponent, _super);
17760
17786
  function WriteYesNoFieldComponent(yesNoService) {
@@ -17785,7 +17811,7 @@
17785
17811
  i0__namespace.ɵɵelementEnd();
17786
17812
  }
17787
17813
  if (rf & 2) {
17788
- i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17814
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17789
17815
  i0__namespace.ɵɵadvance(3);
17790
17816
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17791
17817
  i0__namespace.ɵɵadvance(1);
@@ -18180,16 +18206,16 @@
18180
18206
  }] });
18181
18207
  })();
18182
18208
 
18183
- function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
18209
+ function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
18184
18210
  if (rf & 1) {
18185
18211
  i0__namespace.ɵɵelementContainer(0);
18186
18212
  }
18187
18213
  }
18188
18214
  var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
18189
- function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
18215
+ function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
18190
18216
  if (rf & 1) {
18191
18217
  i0__namespace.ɵɵelementContainerStart(0);
18192
- i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
18218
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
18193
18219
  i0__namespace.ɵɵelementContainerEnd();
18194
18220
  }
18195
18221
  if (rf & 2) {
@@ -18205,7 +18231,7 @@
18205
18231
  i0__namespace.ɵɵelementContainer(0);
18206
18232
  }
18207
18233
  }
18208
- var _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
18234
+ var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
18209
18235
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
18210
18236
  if (rf & 1) {
18211
18237
  i0__namespace.ɵɵelementContainerStart(0);
@@ -18218,7 +18244,7 @@
18218
18244
  i0__namespace.ɵɵnextContext();
18219
18245
  var _r1 = i0__namespace.ɵɵreference(13);
18220
18246
  i0__namespace.ɵɵadvance(1);
18221
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
18247
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
18222
18248
  }
18223
18249
  }
18224
18250
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -18232,7 +18258,7 @@
18232
18258
  i0__namespace.ɵɵelement(3, "img", 12);
18233
18259
  i0__namespace.ɵɵtext(4);
18234
18260
  i0__namespace.ɵɵelementEnd();
18235
- i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
18261
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
18236
18262
  i0__namespace.ɵɵelementEnd();
18237
18263
  }
18238
18264
  if (rf & 2) {
@@ -18328,47 +18354,46 @@
18328
18354
  return CaseFileViewFolderSelectorComponent;
18329
18355
  }());
18330
18356
  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)); };
18331
- 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) {
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"], [1, "close", 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) {
18332
18358
  if (rf & 1) {
18333
- i0__namespace.ɵɵelementStart(0, "div", 0);
18334
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
18359
+ i0__namespace.ɵɵelementStart(0, "h2", 0);
18360
+ i0__namespace.ɵɵtext(1, "Move File");
18335
18361
  i0__namespace.ɵɵelementEnd();
18336
- i0__namespace.ɵɵelementStart(1, "h2", 1);
18337
- i0__namespace.ɵɵtext(2, "Move File");
18362
+ i0__namespace.ɵɵelementStart(2, "p");
18363
+ i0__namespace.ɵɵtext(3);
18338
18364
  i0__namespace.ɵɵelementEnd();
18339
- i0__namespace.ɵɵelementStart(3, "p");
18340
- i0__namespace.ɵɵtext(4);
18365
+ i0__namespace.ɵɵelementStart(4, "div", 1);
18366
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
18341
18367
  i0__namespace.ɵɵelementEnd();
18342
- i0__namespace.ɵɵelementStart(5, "div", 2);
18343
- i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
18368
+ i0__namespace.ɵɵelementStart(6, "div", 3);
18369
+ i0__namespace.ɵɵelementStart(7, "button", 4);
18370
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
18371
+ i0__namespace.ɵɵtext(8, "Save");
18344
18372
  i0__namespace.ɵɵelementEnd();
18345
- i0__namespace.ɵɵelementStart(7, "div", 4);
18346
- i0__namespace.ɵɵelementStart(8, "button", 5);
18347
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
18348
- i0__namespace.ɵɵtext(9, "Save");
18373
+ i0__namespace.ɵɵelementStart(9, "a", 5);
18374
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
18375
+ i0__namespace.ɵɵtext(10, "Cancel");
18349
18376
  i0__namespace.ɵɵelementEnd();
18350
- i0__namespace.ɵɵelementStart(10, "a", 6);
18351
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
18352
- i0__namespace.ɵɵtext(11, "Cancel");
18353
18377
  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(); });
18354
18380
  i0__namespace.ɵɵelementEnd();
18355
18381
  i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
18356
18382
  }
18357
18383
  if (rf & 2) {
18358
- i0__namespace.ɵɵadvance(4);
18384
+ i0__namespace.ɵɵadvance(3);
18359
18385
  i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
18360
18386
  i0__namespace.ɵɵadvance(2);
18361
18387
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18362
18388
  }
18363
- }, 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 });
18389
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
18364
18390
  (function () {
18365
18391
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18366
18392
  type: i0.Component,
18367
18393
  args: [{
18368
18394
  selector: 'xui-case-file-view-folder-selector',
18369
18395
  templateUrl: './case-file-view-folder-selector.component.html',
18370
- styleUrls: ['./case-file-view-folder-selector.component.scss'],
18371
- encapsulation: i0.ViewEncapsulation.None
18396
+ styleUrls: ['./case-file-view-folder-selector.component.scss']
18372
18397
  }]
18373
18398
  }], function () {
18374
18399
  return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
@@ -18440,7 +18465,7 @@
18440
18465
  }
18441
18466
  }
18442
18467
  var _c0$t = [[["", "trigger", ""]]];
18443
- var _c1$9 = ["[trigger]"];
18468
+ var _c1$8 = ["[trigger]"];
18444
18469
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
18445
18470
  function CaseFileViewOverlayMenuComponent() {
18446
18471
  this.title = '';
@@ -18455,7 +18480,7 @@
18455
18480
  return CaseFileViewOverlayMenuComponent;
18456
18481
  }());
18457
18482
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
18458
- 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) {
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$8, 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) {
18459
18484
  if (rf & 1) {
18460
18485
  i0__namespace.ɵɵprojectionDef(_c0$t);
18461
18486
  i0__namespace.ɵɵelementStart(0, "div");
@@ -18920,7 +18945,7 @@
18920
18945
  return Object.assign(documentTreeNode, node);
18921
18946
  }
18922
18947
  var filteredData = this.documentTreeData;
18923
- if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
18948
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
18924
18949
  filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
18925
18950
  if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
18926
18951
  return true;
@@ -19002,6 +19027,7 @@
19002
19027
  CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
19003
19028
  var _this = this;
19004
19029
  var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
19030
+ width: '570px',
19005
19031
  data: { categories: this.categories, document: node }
19006
19032
  });
19007
19033
  dialogRef.afterClosed().subscribe(function (newCatId) {
@@ -19027,7 +19053,7 @@
19027
19053
  }());
19028
19054
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
19029
19055
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
19030
- CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
19056
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
19031
19057
  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)); };
19032
19058
  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) {
19033
19059
  if (rf & 1) {
@@ -19087,25 +19113,32 @@
19087
19113
  }
19088
19114
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
19089
19115
  if (rf & 1) {
19090
- i0__namespace.ɵɵelementStart(0, "strong", 19);
19116
+ i0__namespace.ɵɵelementStart(0, "strong", 20);
19091
19117
  i0__namespace.ɵɵtext(1, "Active");
19092
19118
  i0__namespace.ɵɵelementEnd();
19093
19119
  }
19094
19120
  }
19095
19121
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
19096
19122
  if (rf & 1) {
19097
- i0__namespace.ɵɵelementStart(0, "strong", 20);
19123
+ i0__namespace.ɵɵelementStart(0, "strong", 21);
19098
19124
  i0__namespace.ɵɵtext(1, "Inactive");
19099
19125
  i0__namespace.ɵɵelementEnd();
19100
19126
  }
19101
19127
  }
19102
19128
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
19103
19129
  if (rf & 1) {
19104
- i0__namespace.ɵɵelementStart(0, "strong", 20);
19130
+ i0__namespace.ɵɵelementStart(0, "strong", 21);
19105
19131
  i0__namespace.ɵɵtext(1, "Requested");
19106
19132
  i0__namespace.ɵɵelementEnd();
19107
19133
  }
19108
19134
  }
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
+ }
19109
19142
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
19110
19143
  if (rf & 1) {
19111
19144
  i0__namespace.ɵɵelementStart(0, "tr", 15);
@@ -19132,6 +19165,7 @@
19132
19165
  i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
19133
19166
  i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
19134
19167
  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);
19135
19169
  i0__namespace.ɵɵelementEnd();
19136
19170
  i0__namespace.ɵɵelementEnd();
19137
19171
  }
@@ -19145,21 +19179,23 @@
19145
19179
  i0__namespace.ɵɵadvance(2);
19146
19180
  i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
19147
19181
  i0__namespace.ɵɵadvance(2);
19148
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 8, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
19182
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
19149
19183
  i0__namespace.ɵɵadvance(3);
19150
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 11, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
19184
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
19151
19185
  i0__namespace.ɵɵadvance(3);
19152
19186
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
19153
19187
  i0__namespace.ɵɵadvance(1);
19154
19188
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
19155
19189
  i0__namespace.ɵɵadvance(1);
19156
19190
  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);
19157
19193
  }
19158
19194
  }
19159
19195
  function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
19160
19196
  if (rf & 1) {
19161
19197
  i0__namespace.ɵɵelementStart(0, "tbody", 10);
19162
- i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 18, 14, "tr", 14);
19198
+ i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 19, 15, "tr", 14);
19163
19199
  i0__namespace.ɵɵelementEnd();
19164
19200
  }
19165
19201
  if (rf & 2) {
@@ -19224,7 +19260,7 @@
19224
19260
  return CaseFlagTableComponent;
19225
19261
  }());
19226
19262
  CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
19227
- 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) {
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"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
19228
19264
  if (rf & 1) {
19229
19265
  i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
19230
19266
  }
@@ -19305,7 +19341,7 @@
19305
19341
  }
19306
19342
  }
19307
19343
  var _c0$s = function (a0) { return { "form-group-error": a0 }; };
19308
- var _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
19344
+ var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
19309
19345
  function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
19310
19346
  if (rf & 1) {
19311
19347
  i0__namespace.ɵɵelementStart(0, "div", 15);
@@ -19325,7 +19361,7 @@
19325
19361
  i0__namespace.ɵɵadvance(3);
19326
19362
  i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
19327
19363
  i0__namespace.ɵɵadvance(1);
19328
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$8, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19364
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19329
19365
  }
19330
19366
  }
19331
19367
  function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
@@ -20426,10 +20462,10 @@
20426
20462
  }] });
20427
20463
  })();
20428
20464
 
20429
- function UpdateFlagComponent_div_8_Template(rf, ctx) {
20465
+ function UpdateFlagComponent_div_12_Template(rf, ctx) {
20430
20466
  if (rf & 1) {
20431
- i0__namespace.ɵɵelementStart(0, "div", 16);
20432
- i0__namespace.ɵɵelementStart(1, "span", 17);
20467
+ i0__namespace.ɵɵelementStart(0, "div", 24);
20468
+ i0__namespace.ɵɵelementStart(1, "span", 25);
20433
20469
  i0__namespace.ɵɵtext(2, "Error:");
20434
20470
  i0__namespace.ɵɵelementEnd();
20435
20471
  i0__namespace.ɵɵtext(3);
@@ -20441,10 +20477,10 @@
20441
20477
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.updateFlagNotEnteredErrorMessage, " ");
20442
20478
  }
20443
20479
  }
20444
- function UpdateFlagComponent_div_9_Template(rf, ctx) {
20480
+ function UpdateFlagComponent_div_13_Template(rf, ctx) {
20445
20481
  if (rf & 1) {
20446
- i0__namespace.ɵɵelementStart(0, "div", 18);
20447
- i0__namespace.ɵɵelementStart(1, "span", 17);
20482
+ i0__namespace.ɵɵelementStart(0, "div", 26);
20483
+ i0__namespace.ɵɵelementStart(1, "span", 25);
20448
20484
  i0__namespace.ɵɵtext(2, "Error:");
20449
20485
  i0__namespace.ɵɵelementEnd();
20450
20486
  i0__namespace.ɵɵtext(3);
@@ -20456,17 +20492,28 @@
20456
20492
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.updateFlagCharLimitErrorMessage, " ");
20457
20493
  }
20458
20494
  }
20459
- function UpdateFlagComponent_button_22_Template(rf, ctx) {
20495
+ function UpdateFlagComponent_div_24_Template(rf, ctx) {
20460
20496
  if (rf & 1) {
20461
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
20462
- i0__namespace.ɵɵelementStart(0, "button", 19);
20463
- 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(); });
20464
- i0__namespace.ɵɵtext(1, " Make inactive ");
20497
+ i0__namespace.ɵɵelementStart(0, "div", 27);
20498
+ i0__namespace.ɵɵelement(1, "input", 28);
20499
+ i0__namespace.ɵɵpipe(2, "lowercase");
20500
+ i0__namespace.ɵɵelementStart(3, "label", 29);
20501
+ i0__namespace.ɵɵtext(4);
20502
+ i0__namespace.ɵɵelementEnd();
20465
20503
  i0__namespace.ɵɵelementEnd();
20466
20504
  }
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
+ }
20467
20515
  }
20468
20516
  var _c0$n = function (a0) { return { "form-group-error": a0 }; };
20469
- var _c1$7 = function (a0) { return { "govuk-tag--grey": a0 }; };
20470
20517
  var UpdateFlagComponent = /** @class */ (function () {
20471
20518
  function UpdateFlagComponent() {
20472
20519
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -20474,22 +20521,25 @@
20474
20521
  this.errorMessages = [];
20475
20522
  this.updateFlagNotEnteredErrorMessage = null;
20476
20523
  this.updateFlagCharLimitErrorMessage = null;
20477
- this.updateFlagControlName = 'flagComments';
20524
+ this.updateFlagStepEnum = exports.UpdateFlagStep;
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';
20478
20530
  this.commentsMaxCharLimit = 200;
20479
20531
  }
20480
20532
  UpdateFlagComponent.prototype.ngOnInit = function () {
20481
- this.updateFlagHint = exports.UpdateFlagStep.HINT_TEXT;
20482
- this.updateFlagCharLimitInfo = exports.UpdateFlagStep.CHARACTER_LIMIT_INFO;
20483
- this.formGroup.addControl(this.updateFlagControlName, new i2.FormControl(''));
20484
20533
  if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
20485
20534
  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));
20486
20538
  // Populate flag comments text area with existing comments
20487
- this.formGroup.get(this.updateFlagControlName).setValue(flagDetail.flagComment);
20539
+ this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i2.FormControl(flagDetail.flagComment));
20488
20540
  if (flagDetail.name) {
20489
20541
  this.updateFlagTitle =
20490
- exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
20491
- ? ", " + flagDetail.subTypeValue + "\""
20492
- : '"');
20542
+ exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
20493
20543
  }
20494
20544
  }
20495
20545
  };
@@ -20498,7 +20548,7 @@
20498
20548
  this.validateTextEntry();
20499
20549
  // If validation has passed, update the flag details with the comments entered
20500
20550
  if (this.errorMessages.length === 0) {
20501
- this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.updateFlagControlName).value });
20551
+ this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value });
20502
20552
  }
20503
20553
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
20504
20554
  // re-emitted because the parent component repopulates this on handling this EventEmitter
@@ -20508,22 +20558,17 @@
20508
20558
  selectedFlag: this.selectedFlag
20509
20559
  });
20510
20560
  };
20511
- UpdateFlagComponent.prototype.onChangeStatus = function () {
20512
- this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { status: this.selectedFlag.flagDetailDisplay.flagDetail.status === exports.CaseFlagStatus.ACTIVE
20513
- ? exports.CaseFlagStatus.INACTIVE
20514
- : this.selectedFlag.flagDetailDisplay.flagDetail.status });
20515
- };
20516
20561
  UpdateFlagComponent.prototype.validateTextEntry = function () {
20517
20562
  this.updateFlagNotEnteredErrorMessage = null;
20518
20563
  this.updateFlagCharLimitErrorMessage = null;
20519
20564
  this.errorMessages = [];
20520
- var comment = this.formGroup.get(this.updateFlagControlName).value;
20565
+ var comment = this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value;
20521
20566
  if (!comment) {
20522
20567
  this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
20523
20568
  this.errorMessages.push({
20524
20569
  title: '',
20525
20570
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
20526
- fieldId: this.updateFlagControlName
20571
+ fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20527
20572
  });
20528
20573
  }
20529
20574
  if (comment && comment.length > this.commentsMaxCharLimit) {
@@ -20531,14 +20576,14 @@
20531
20576
  this.errorMessages.push({
20532
20577
  title: '',
20533
20578
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
20534
- fieldId: this.updateFlagControlName
20579
+ fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20535
20580
  });
20536
20581
  }
20537
20582
  };
20538
20583
  return UpdateFlagComponent;
20539
20584
  }());
20540
20585
  UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(); };
20541
- 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) {
20586
+ UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 40, vars: 26, 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", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--l"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 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-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--s", "govuk-!-margin-bottom-2"], ["data-module", "govuk-radios", 1, "govuk-radios", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], [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"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function UpdateFlagComponent_Template(rf, ctx) {
20542
20587
  if (rf & 1) {
20543
20588
  i0__namespace.ɵɵelementStart(0, "div", 0);
20544
20589
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20549,37 +20594,60 @@
20549
20594
  i0__namespace.ɵɵelementEnd();
20550
20595
  i0__namespace.ɵɵelementEnd();
20551
20596
  i0__namespace.ɵɵelementStart(6, "div", 5);
20552
- i0__namespace.ɵɵtext(7);
20597
+ i0__namespace.ɵɵelementStart(7, "div");
20598
+ i0__namespace.ɵɵelementStart(8, "label", 6);
20599
+ i0__namespace.ɵɵtext(9);
20553
20600
  i0__namespace.ɵɵelementEnd();
20554
- i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_8_Template, 4, 1, "div", 6);
20555
- i0__namespace.ɵɵtemplate(9, UpdateFlagComponent_div_9_Template, 4, 1, "div", 7);
20556
- i0__namespace.ɵɵelementStart(10, "textarea", 8);
20557
- i0__namespace.ɵɵtext(11, " ");
20558
20601
  i0__namespace.ɵɵelementEnd();
20559
- i0__namespace.ɵɵelementStart(12, "div", 9);
20560
- i0__namespace.ɵɵtext(13);
20602
+ i0__namespace.ɵɵelementStart(10, "div", 7);
20603
+ i0__namespace.ɵɵtext(11);
20561
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, " ");
20562
20609
  i0__namespace.ɵɵelementEnd();
20610
+ i0__namespace.ɵɵelementStart(16, "div", 11);
20611
+ i0__namespace.ɵɵtext(17);
20563
20612
  i0__namespace.ɵɵelementEnd();
20564
- i0__namespace.ɵɵelementStart(14, "div", 10);
20565
- i0__namespace.ɵɵelementStart(15, "div", 11);
20566
- i0__namespace.ɵɵelementStart(16, "p");
20567
- i0__namespace.ɵɵtext(17, "Flag status: ");
20568
- i0__namespace.ɵɵelementStart(18, "span");
20569
- i0__namespace.ɵɵelementStart(19, "strong", 12);
20570
- i0__namespace.ɵɵtext(20);
20571
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);
20572
20618
  i0__namespace.ɵɵelementEnd();
20573
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");
20574
20624
  i0__namespace.ɵɵelementEnd();
20575
- i0__namespace.ɵɵelementStart(21, "div", 11);
20576
- i0__namespace.ɵɵtemplate(22, UpdateFlagComponent_button_22_Template, 2, 0, "button", 13);
20577
20625
  i0__namespace.ɵɵelementEnd();
20626
+ i0__namespace.ɵɵelementStart(26, "div");
20627
+ i0__namespace.ɵɵelementStart(27, "div", 16);
20628
+ i0__namespace.ɵɵtext(28);
20578
20629
  i0__namespace.ɵɵelementEnd();
20579
- i0__namespace.ɵɵelementStart(23, "div", 14);
20580
- i0__namespace.ɵɵelementStart(24, "button", 15);
20581
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { return ctx.onNext(); });
20582
- i0__namespace.ɵɵtext(25, "Next");
20630
+ i0__namespace.ɵɵelementStart(29, "textarea", 17);
20631
+ i0__namespace.ɵɵtext(30, " ");
20632
+ i0__namespace.ɵɵelementEnd();
20633
+ i0__namespace.ɵɵelementEnd();
20634
+ i0__namespace.ɵɵelementEnd();
20635
+ i0__namespace.ɵɵelementStart(31, "div");
20636
+ i0__namespace.ɵɵelementStart(32, "div", 18);
20637
+ i0__namespace.ɵɵelementStart(33, "div", 19);
20638
+ i0__namespace.ɵɵelement(34, "input", 20);
20639
+ i0__namespace.ɵɵelementStart(35, "label", 21);
20640
+ i0__namespace.ɵɵtext(36, " I need to add a Welsh translation ");
20641
+ i0__namespace.ɵɵelementEnd();
20642
+ i0__namespace.ɵɵelementEnd();
20643
+ i0__namespace.ɵɵelementEnd();
20644
+ i0__namespace.ɵɵelementEnd();
20645
+ i0__namespace.ɵɵelementEnd();
20646
+ i0__namespace.ɵɵelementEnd();
20647
+ i0__namespace.ɵɵelementStart(37, "div", 22);
20648
+ i0__namespace.ɵɵelementStart(38, "button", 23);
20649
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_38_listener() { return ctx.onNext(); });
20650
+ i0__namespace.ɵɵtext(39, "Next");
20583
20651
  i0__namespace.ɵɵelementEnd();
20584
20652
  i0__namespace.ɵɵelementEnd();
20585
20653
  i0__namespace.ɵɵelementEnd();
@@ -20587,29 +20655,39 @@
20587
20655
  if (rf & 2) {
20588
20656
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20589
20657
  i0__namespace.ɵɵadvance(2);
20590
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$n, ctx.errorMessages.length > 0));
20591
- i0__namespace.ɵɵadvance(2);
20592
- i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
20593
- i0__namespace.ɵɵadvance(1);
20658
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c0$n, ctx.errorMessages.length > 0));
20659
+ i0__namespace.ɵɵadvance(3);
20594
20660
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20661
+ i0__namespace.ɵɵadvance(3);
20662
+ i0__namespace.ɵɵproperty("for", ctx.FLAG_COMMENTS_CONTROL_NAME);
20663
+ i0__namespace.ɵɵadvance(1);
20664
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " comments ");
20595
20665
  i0__namespace.ɵɵadvance(2);
20596
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagHint, " ");
20666
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_HINT_TEXT, " ");
20597
20667
  i0__namespace.ɵɵadvance(1);
20598
20668
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
20599
20669
  i0__namespace.ɵɵadvance(1);
20600
20670
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
20601
20671
  i0__namespace.ɵɵadvance(1);
20602
- i0__namespace.ɵɵproperty("id", ctx.updateFlagControlName)("name", ctx.updateFlagControlName)("formControlName", ctx.updateFlagControlName);
20672
+ i0__namespace.ɵɵproperty("id", ctx.FLAG_COMMENTS_CONTROL_NAME)("name", ctx.FLAG_COMMENTS_CONTROL_NAME)("formControlName", ctx.FLAG_COMMENTS_CONTROL_NAME);
20603
20673
  i0__namespace.ɵɵadvance(3);
20604
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
20605
- i0__namespace.ɵɵadvance(6);
20606
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$7, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
20607
- i0__namespace.ɵɵadvance(1);
20608
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
20674
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_CHARACTER_LIMIT_INFO, " ");
20675
+ i0__namespace.ɵɵadvance(4);
20676
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " status ");
20609
20677
  i0__namespace.ɵɵadvance(2);
20610
- i0__namespace.ɵɵproperty("ngIf", ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
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);
20687
+ i0__namespace.ɵɵadvance(1);
20688
+ i0__namespace.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20611
20689
  }
20612
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
20690
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i1__namespace.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1__namespace.LowerCasePipe], encapsulation: 2 });
20613
20691
  (function () {
20614
20692
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
20615
20693
  type: i0.Component,
@@ -35332,6 +35410,7 @@
35332
35410
  exports.DynamicRadioListPipe = DynamicRadioListPipe;
35333
35411
  exports.ESQueryType = ESQueryType;
35334
35412
  exports.Embedded = Embedded;
35413
+ exports.EnumDisplayDescriptionPipe = EnumDisplayDescriptionPipe;
35335
35414
  exports.ErrorMessageComponent = ErrorMessageComponent;
35336
35415
  exports.ErrorNotifierService = ErrorNotifierService;
35337
35416
  exports.EventCaseField = EventCaseField;