@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-multiple-case-flags-tabs-support-v2 → 6.10.7-cfv-move-document-handle-error

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 (41) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +266 -251
  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 +60 -26
  6. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +76 -29
  7. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +2 -1
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
  9. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +8 -16
  10. package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +64 -106
  11. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +1 -2
  12. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +3 -4
  13. package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +2 -4
  14. package/esm2015/lib/shared/components/palette/palette.module.js +3 -3
  15. package/esm2015/lib/shared/pipes/index.js +1 -2
  16. package/esm2015/lib/shared/pipes/pipes.module.js +5 -9
  17. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +256 -244
  18. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  19. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -1
  20. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +2 -0
  21. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  22. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +4 -1
  23. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  24. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +5 -7
  25. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  26. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +1 -2
  27. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
  28. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +2 -3
  29. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  30. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  31. package/lib/shared/pipes/index.d.ts +0 -1
  32. package/lib/shared/pipes/index.d.ts.map +1 -1
  33. package/lib/shared/pipes/pipes.module.d.ts +2 -3
  34. package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/esm2015/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.js +0 -16
  37. package/esm2015/lib/shared/pipes/generic/index.js +0 -2
  38. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +0 -8
  39. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +0 -1
  40. package/lib/shared/pipes/generic/index.d.ts +0 -2
  41. package/lib/shared/pipes/generic/index.d.ts.map +0 -1
@@ -119,14 +119,14 @@
119
119
  }
120
120
  }
121
121
  var _c0$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
- var _c1$q = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
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$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) {
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$Y);
132
132
  i0__namespace.ɵɵelementStart(0, "footer", 0);
@@ -208,7 +208,7 @@
208
208
  }
209
209
  }
210
210
  var _c0$X = [[["", "headerNavigation", ""]]];
211
- var _c1$p = ["[headerNavigation]"];
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$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) {
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$X);
225
225
  i0__namespace.ɵɵelementStart(0, "header", 0);
@@ -283,14 +283,14 @@
283
283
  })();
284
284
 
285
285
  var _c0$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
286
- var _c1$o = ["[leftNavLinks]", "[rightNavLinks]"];
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$o, 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$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$W);
296
296
  i0__namespace.ɵɵelementStart(0, "div");
@@ -438,14 +438,14 @@
438
438
  })();
439
439
 
440
440
  var _c0$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
441
- var _c1$n = ["[topBody]", "[leftBody]", "[rightBody]"];
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$n, 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$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$V);
451
451
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1472,14 +1472,14 @@
1472
1472
  })();
1473
1473
 
1474
1474
  var _c0$S = function (a0) { return { "js-hidden": a0 }; };
1475
- var _c1$m = ["*"];
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$m, 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$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$R = ["tab"];
1514
- var _c1$l = function () { return ["."]; };
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$l))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
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 () {
@@ -11316,25 +11315,6 @@
11316
11315
  }], null, null);
11317
11316
  })();
11318
11317
 
11319
- var EnumDisplayDescriptionPipe = /** @class */ (function () {
11320
- function EnumDisplayDescriptionPipe() {
11321
- }
11322
- EnumDisplayDescriptionPipe.prototype.transform = function (value) {
11323
- return Object.values(value);
11324
- };
11325
- return EnumDisplayDescriptionPipe;
11326
- }());
11327
- EnumDisplayDescriptionPipe.ɵfac = function EnumDisplayDescriptionPipe_Factory(t) { return new (t || EnumDisplayDescriptionPipe)(); };
11328
- EnumDisplayDescriptionPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "enumDisplayDescription", type: EnumDisplayDescriptionPipe, pure: true });
11329
- (function () {
11330
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EnumDisplayDescriptionPipe, [{
11331
- type: i0.Pipe,
11332
- args: [{
11333
- name: 'enumDisplayDescription'
11334
- }]
11335
- }], null, null);
11336
- })();
11337
-
11338
11318
  var SortOrder;
11339
11319
  (function (SortOrder) {
11340
11320
  SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
@@ -11375,8 +11355,7 @@
11375
11355
  CcdCYAPageLabelFilterPipe,
11376
11356
  ReadFieldsFilterPipe,
11377
11357
  CcdTabFieldsPipe,
11378
- CcdPageFieldsPipe,
11379
- EnumDisplayDescriptionPipe
11358
+ CcdPageFieldsPipe
11380
11359
  ];
11381
11360
  var PipesModule = /** @class */ (function () {
11382
11361
  function PipesModule() {
@@ -11396,16 +11375,14 @@
11396
11375
  CcdCYAPageLabelFilterPipe,
11397
11376
  ReadFieldsFilterPipe,
11398
11377
  CcdTabFieldsPipe,
11399
- CcdPageFieldsPipe,
11400
- EnumDisplayDescriptionPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11378
+ CcdPageFieldsPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11401
11379
  SortSearchResultPipe,
11402
11380
  CcdCaseTitlePipe,
11403
11381
  CcdCollectionTableCaseFieldsFilterPipe,
11404
11382
  CcdCYAPageLabelFilterPipe,
11405
11383
  ReadFieldsFilterPipe,
11406
11384
  CcdTabFieldsPipe,
11407
- CcdPageFieldsPipe,
11408
- EnumDisplayDescriptionPipe] });
11385
+ CcdPageFieldsPipe] });
11409
11386
  })();
11410
11387
  (function () {
11411
11388
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
@@ -11473,7 +11450,7 @@
11473
11450
  i0__namespace.ɵɵelementEnd();
11474
11451
  }
11475
11452
  }
11476
- var _c1$k = function (a0) { return { "form-group-error": a0 }; };
11453
+ var _c1$l = function (a0) { return { "form-group-error": a0 }; };
11477
11454
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
11478
11455
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11479
11456
  if (rf & 1) {
@@ -11494,7 +11471,7 @@
11494
11471
  }
11495
11472
  if (rf & 2) {
11496
11473
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11497
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, ctx_r2.missingPostcode));
11474
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
11498
11475
  i0__namespace.ɵɵadvance(1);
11499
11476
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
11500
11477
  i0__namespace.ɵɵadvance(3);
@@ -11760,56 +11737,93 @@
11760
11737
  }] });
11761
11738
  })();
11762
11739
 
11763
- function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
11740
+ function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) {
11764
11741
  if (rf & 1) {
11765
- i0__namespace.ɵɵelementStart(0, "div", 2);
11766
- i0__namespace.ɵɵelementStart(1, "h1", 3);
11742
+ i0__namespace.ɵɵelementStart(0, "li");
11743
+ i0__namespace.ɵɵelementStart(1, "a", 8);
11744
+ i0__namespace.ɵɵtext(2);
11745
+ i0__namespace.ɵɵelementEnd();
11746
+ i0__namespace.ɵɵelementEnd();
11747
+ }
11748
+ if (rf & 2) {
11749
+ var errorMessage_r4 = ctx.$implicit;
11750
+ i0__namespace.ɵɵadvance(2);
11751
+ i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
11752
+ }
11753
+ }
11754
+ function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) {
11755
+ if (rf & 1) {
11756
+ i0__namespace.ɵɵelementContainerStart(0);
11757
+ i0__namespace.ɵɵelementStart(1, "div", 2);
11758
+ i0__namespace.ɵɵelementStart(2, "div", 3);
11759
+ i0__namespace.ɵɵelementStart(3, "h2", 4);
11760
+ i0__namespace.ɵɵtext(4, " There is a problem ");
11761
+ i0__namespace.ɵɵelementEnd();
11762
+ i0__namespace.ɵɵelementStart(5, "div", 5);
11763
+ i0__namespace.ɵɵelementStart(6, "ul", 6);
11764
+ i0__namespace.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
11765
+ i0__namespace.ɵɵelementEnd();
11766
+ i0__namespace.ɵɵelementEnd();
11767
+ i0__namespace.ɵɵelementEnd();
11768
+ i0__namespace.ɵɵelementEnd();
11769
+ i0__namespace.ɵɵelementContainerEnd();
11770
+ }
11771
+ if (rf & 2) {
11772
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
11773
+ i0__namespace.ɵɵadvance(7);
11774
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
11775
+ }
11776
+ }
11777
+ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
11778
+ if (rf & 1) {
11779
+ i0__namespace.ɵɵelementStart(0, "div", 9);
11780
+ i0__namespace.ɵɵelementStart(1, "h1", 10);
11767
11781
  i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11768
11782
  i0__namespace.ɵɵelementEnd();
11769
- i0__namespace.ɵɵelementStart(3, "p", 4);
11783
+ i0__namespace.ɵɵelementStart(3, "p", 11);
11770
11784
  i0__namespace.ɵɵtext(4, "Try again later.");
11771
11785
  i0__namespace.ɵɵelementEnd();
11772
11786
  i0__namespace.ɵɵelementEnd();
11773
11787
  }
11774
11788
  }
11775
- function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) {
11789
+ function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) {
11776
11790
  if (rf & 1) {
11777
11791
  i0__namespace.ɵɵelementContainerStart(0);
11778
- i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
11792
+ i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
11779
11793
  i0__namespace.ɵɵelementContainerEnd();
11780
11794
  }
11781
11795
  if (rf & 2) {
11782
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11796
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
11783
11797
  i0__namespace.ɵɵadvance(1);
11784
- 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");
11798
+ i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11785
11799
  }
11786
11800
  }
11787
- function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
11801
+ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) {
11788
11802
  if (rf & 1) {
11789
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
11803
+ var _r7_1 = i0__namespace.ɵɵgetCurrentView();
11790
11804
  i0__namespace.ɵɵelementStart(0, "div");
11791
- i0__namespace.ɵɵelementStart(1, "h2", 5);
11805
+ i0__namespace.ɵɵelementStart(1, "h2", 12);
11792
11806
  i0__namespace.ɵɵtext(2, "Case file");
11793
11807
  i0__namespace.ɵɵelementEnd();
11794
- i0__namespace.ɵɵelementStart(3, "div", 6);
11795
- i0__namespace.ɵɵelementStart(4, "div", 7);
11796
- i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
11797
- i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
11808
+ i0__namespace.ɵɵelementStart(3, "div", 13);
11809
+ i0__namespace.ɵɵelementStart(4, "div", 14);
11810
+ i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
11811
+ i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
11798
11812
  i0__namespace.ɵɵelementEnd();
11799
11813
  i0__namespace.ɵɵelementEnd();
11800
- i0__namespace.ɵɵelement(6, "div", 9);
11801
- i0__namespace.ɵɵelementStart(7, "div", 10);
11802
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
11814
+ i0__namespace.ɵɵelement(6, "div", 16);
11815
+ i0__namespace.ɵɵelementStart(7, "div", 17);
11816
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
11803
11817
  i0__namespace.ɵɵelementEnd();
11804
11818
  i0__namespace.ɵɵelementEnd();
11805
11819
  i0__namespace.ɵɵelementEnd();
11806
11820
  }
11807
11821
  if (rf & 2) {
11808
- var ctx_r1 = i0__namespace.ɵɵnextContext();
11822
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
11809
11823
  i0__namespace.ɵɵadvance(5);
11810
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
11824
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
11811
11825
  i0__namespace.ɵɵadvance(3);
11812
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
11826
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
11813
11827
  }
11814
11828
  }
11815
11829
  var CaseFileViewFieldComponent = /** @class */ (function () {
@@ -11821,6 +11835,7 @@
11821
11835
  this.loadingService = loadingService;
11822
11836
  this.allowMoving = true;
11823
11837
  this.getCategoriesAndDocumentsError = false;
11838
+ this.errorMessages = [];
11824
11839
  }
11825
11840
  CaseFileViewFieldComponent.prototype.ngOnInit = function () {
11826
11841
  var _this = this;
@@ -11866,11 +11881,23 @@
11866
11881
  var _this = this;
11867
11882
  var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
11868
11883
  var loadingToken = this.loadingService.register();
11869
- this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory).subscribe(function (_) {
11870
- location.reload();
11884
+ this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
11885
+ .pipe(operators.finalize(function () {
11871
11886
  _this.loadingService.unregister(loadingToken);
11887
+ }), operators.catchError(function () {
11888
+ _this.errorMessages = ['You do not have permission to move this document to the selected folder.'];
11889
+ return rxjs.of(null);
11890
+ }))
11891
+ .subscribe(function (res) {
11892
+ if (res) {
11893
+ _this.resetErrorMessages();
11894
+ location.reload();
11895
+ }
11872
11896
  });
11873
11897
  };
11898
+ CaseFileViewFieldComponent.prototype.resetErrorMessages = function () {
11899
+ this.errorMessages = [];
11900
+ };
11874
11901
  CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
11875
11902
  if (this.categoriesAndDocumentsSubscription) {
11876
11903
  this.categoriesAndDocumentsSubscription.unsubscribe();
@@ -11880,12 +11907,15 @@
11880
11907
  }());
11881
11908
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
11882
11909
  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)); };
11883
- 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) {
11910
+ CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [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) {
11884
11911
  if (rf & 1) {
11885
- i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
11886
- i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
11912
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
11913
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1);
11914
+ i0__namespace.ɵɵtemplate(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
11887
11915
  }
11888
11916
  if (rf & 2) {
11917
+ i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
11918
+ i0__namespace.ɵɵadvance(1);
11889
11919
  i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
11890
11920
  i0__namespace.ɵɵadvance(1);
11891
11921
  i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
@@ -11902,74 +11932,114 @@
11902
11932
  }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
11903
11933
  })();
11904
11934
 
11905
- function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) {
11935
+ function CaseFileViewFieldReadComponent_ng_container_0_li_7_Template(rf, ctx) {
11906
11936
  if (rf & 1) {
11907
- i0__namespace.ɵɵelementStart(0, "div", 2);
11908
- i0__namespace.ɵɵelementStart(1, "h1", 3);
11937
+ i0__namespace.ɵɵelementStart(0, "li");
11938
+ i0__namespace.ɵɵelementStart(1, "a", 8);
11939
+ i0__namespace.ɵɵtext(2);
11940
+ i0__namespace.ɵɵelementEnd();
11941
+ i0__namespace.ɵɵelementEnd();
11942
+ }
11943
+ if (rf & 2) {
11944
+ var errorMessage_r4 = ctx.$implicit;
11945
+ i0__namespace.ɵɵadvance(2);
11946
+ i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
11947
+ }
11948
+ }
11949
+ function CaseFileViewFieldReadComponent_ng_container_0_Template(rf, ctx) {
11950
+ if (rf & 1) {
11951
+ i0__namespace.ɵɵelementContainerStart(0);
11952
+ i0__namespace.ɵɵelementStart(1, "div", 2);
11953
+ i0__namespace.ɵɵelementStart(2, "div", 3);
11954
+ i0__namespace.ɵɵelementStart(3, "h2", 4);
11955
+ i0__namespace.ɵɵtext(4, " There is a problem ");
11956
+ i0__namespace.ɵɵelementEnd();
11957
+ i0__namespace.ɵɵelementStart(5, "div", 5);
11958
+ i0__namespace.ɵɵelementStart(6, "ul", 6);
11959
+ i0__namespace.ɵɵtemplate(7, CaseFileViewFieldReadComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
11960
+ i0__namespace.ɵɵelementEnd();
11961
+ i0__namespace.ɵɵelementEnd();
11962
+ i0__namespace.ɵɵelementEnd();
11963
+ i0__namespace.ɵɵelementEnd();
11964
+ i0__namespace.ɵɵelementContainerEnd();
11965
+ }
11966
+ if (rf & 2) {
11967
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
11968
+ i0__namespace.ɵɵadvance(7);
11969
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
11970
+ }
11971
+ }
11972
+ function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
11973
+ if (rf & 1) {
11974
+ i0__namespace.ɵɵelementStart(0, "div", 9);
11975
+ i0__namespace.ɵɵelementStart(1, "h1", 10);
11909
11976
  i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11910
11977
  i0__namespace.ɵɵelementEnd();
11911
- i0__namespace.ɵɵelementStart(3, "p", 4);
11978
+ i0__namespace.ɵɵelementStart(3, "p", 11);
11912
11979
  i0__namespace.ɵɵtext(4, "Try again later.");
11913
11980
  i0__namespace.ɵɵelementEnd();
11914
11981
  i0__namespace.ɵɵelementEnd();
11915
11982
  }
11916
11983
  }
11917
- function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
11984
+ function CaseFileViewFieldReadComponent_div_2_ng_container_8_Template(rf, ctx) {
11918
11985
  if (rf & 1) {
11919
11986
  i0__namespace.ɵɵelementContainerStart(0);
11920
- i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
11987
+ i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
11921
11988
  i0__namespace.ɵɵelementContainerEnd();
11922
11989
  }
11923
11990
  if (rf & 2) {
11924
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11991
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
11925
11992
  i0__namespace.ɵɵadvance(1);
11926
- 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");
11993
+ i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11927
11994
  }
11928
11995
  }
11929
- function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
11996
+ function CaseFileViewFieldReadComponent_div_2_Template(rf, ctx) {
11930
11997
  if (rf & 1) {
11931
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
11998
+ var _r7_1 = i0__namespace.ɵɵgetCurrentView();
11932
11999
  i0__namespace.ɵɵelementStart(0, "div");
11933
- i0__namespace.ɵɵelementStart(1, "h2", 5);
12000
+ i0__namespace.ɵɵelementStart(1, "h2", 12);
11934
12001
  i0__namespace.ɵɵtext(2, "Case file");
11935
12002
  i0__namespace.ɵɵelementEnd();
11936
- i0__namespace.ɵɵelementStart(3, "div", 6);
11937
- i0__namespace.ɵɵelementStart(4, "div", 7);
11938
- i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
11939
- i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
12003
+ i0__namespace.ɵɵelementStart(3, "div", 13);
12004
+ i0__namespace.ɵɵelementStart(4, "div", 14);
12005
+ i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
12006
+ i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldReadComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
11940
12007
  i0__namespace.ɵɵelementEnd();
11941
12008
  i0__namespace.ɵɵelementEnd();
11942
- i0__namespace.ɵɵelement(6, "div", 9);
11943
- i0__namespace.ɵɵelementStart(7, "div", 10);
11944
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12009
+ i0__namespace.ɵɵelement(6, "div", 16);
12010
+ i0__namespace.ɵɵelementStart(7, "div", 17);
12011
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
11945
12012
  i0__namespace.ɵɵelementEnd();
11946
12013
  i0__namespace.ɵɵelementEnd();
11947
12014
  i0__namespace.ɵɵelementEnd();
11948
12015
  }
11949
12016
  if (rf & 2) {
11950
- var ctx_r1 = i0__namespace.ɵɵnextContext();
12017
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
11951
12018
  i0__namespace.ɵɵadvance(5);
11952
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
12019
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
11953
12020
  i0__namespace.ɵɵadvance(3);
11954
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
12021
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
11955
12022
  }
11956
12023
  }
11957
12024
  var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
11958
12025
  __extends(CaseFileViewFieldReadComponent, _super);
11959
12026
  function CaseFileViewFieldReadComponent() {
11960
12027
  var _this = _super.apply(this, __spread(arguments)) || this;
11961
- _this.allowMoving = true;
12028
+ _this.allowMoving = false;
11962
12029
  return _this;
11963
12030
  }
11964
12031
  return CaseFileViewFieldReadComponent;
11965
12032
  }(CaseFileViewFieldComponent));
11966
12033
  CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
11967
- 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) {
12034
+ CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [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) {
11968
12035
  if (rf & 1) {
11969
- i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
11970
- i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
12036
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
12037
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 5, 0, "div", 1);
12038
+ i0__namespace.ɵɵtemplate(2, CaseFileViewFieldReadComponent_div_2_Template, 9, 3, "div", 0);
11971
12039
  }
11972
12040
  if (rf & 2) {
12041
+ i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
12042
+ i0__namespace.ɵɵadvance(1);
11973
12043
  i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
11974
12044
  i0__namespace.ɵɵadvance(1);
11975
12045
  i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
@@ -12073,9 +12143,8 @@
12073
12143
 
12074
12144
  exports.UpdateFlagStep = void 0;
12075
12145
  (function (UpdateFlagStep) {
12076
- 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.";
12077
- UpdateFlagStep["COMMENT_CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12078
- UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
12146
+ UpdateFlagStep["HINT_TEXT"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
12147
+ UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12079
12148
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12080
12149
 
12081
12150
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
@@ -12163,9 +12232,7 @@
12163
12232
  if (this.route.snapshot.data.case && this.route.snapshot.data.case.tabs) {
12164
12233
  this.flagsData = this.route.snapshot.data.case.tabs
12165
12234
  .filter(function (tab) { return tab.fields && tab.fields
12166
- // There could be more than one FlagLauncher field instance so an additional check of caseField ID is
12167
- // required to ensure the correct instance is obtained
12168
- .some(function (caseField) { return caseField.field_type.type === 'FlagLauncher' && caseField.id === _this.caseField.id; }); })[0].fields.reduce(function (flags, caseField) {
12235
+ .some(function (caseField) { return caseField.field_type.type === 'FlagLauncher'; }); })[0].fields.reduce(function (flags, caseField) {
12169
12236
  return FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField);
12170
12237
  }, []);
12171
12238
  }
@@ -12832,7 +12899,7 @@
12832
12899
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label));
12833
12900
  }
12834
12901
  }
12835
- var _c1$j = function (a0) { return { "form-group-error": a0 }; };
12902
+ var _c1$k = function (a0) { return { "form-group-error": a0 }; };
12836
12903
  var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
12837
12904
  __extends(WriteCaseLinkFieldComponent, _super);
12838
12905
  function WriteCaseLinkFieldComponent() {
@@ -12916,7 +12983,7 @@
12916
12983
  i0__namespace.ɵɵelementEnd();
12917
12984
  }
12918
12985
  if (rf & 2) {
12919
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$j, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
12986
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
12920
12987
  i0__namespace.ɵɵadvance(1);
12921
12988
  i0__namespace.ɵɵproperty("for", ctx.id());
12922
12989
  i0__namespace.ɵɵadvance(1);
@@ -12961,7 +13028,7 @@
12961
13028
  i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$M, 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);
12962
13029
  }
12963
13030
  }
12964
- var _c1$i = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13031
+ var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
12965
13032
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
12966
13033
  if (rf & 1) {
12967
13034
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -12975,7 +13042,7 @@
12975
13042
  var i_r5 = ctx.index;
12976
13043
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
12977
13044
  i0__namespace.ɵɵadvance(2);
12978
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$i, 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));
13045
+ 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));
12979
13046
  }
12980
13047
  }
12981
13048
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -14144,7 +14211,7 @@
14144
14211
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
14145
14212
  }
14146
14213
  }
14147
- var _c1$h = function (a0) { return { "form-group-error bottom-30": a0 }; };
14214
+ var _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
14148
14215
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
14149
14216
  __extends(WriteDocumentFieldComponent, _super);
14150
14217
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
@@ -14446,7 +14513,7 @@
14446
14513
  i0__namespace.ɵɵelementEnd();
14447
14514
  }
14448
14515
  if (rf & 2) {
14449
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$h, !ctx.valid));
14516
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$i, !ctx.valid));
14450
14517
  i0__namespace.ɵɵadvance(1);
14451
14518
  i0__namespace.ɵɵproperty("for", ctx.id());
14452
14519
  i0__namespace.ɵɵadvance(1);
@@ -14826,7 +14893,7 @@
14826
14893
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
14827
14894
  }
14828
14895
  }
14829
- var _c1$g = function (a0) { return { "form-group-error": a0 }; };
14896
+ var _c1$h = function (a0) { return { "form-group-error": a0 }; };
14830
14897
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
14831
14898
  __extends(WriteDynamicRadioListFieldComponent, _super);
14832
14899
  function WriteDynamicRadioListFieldComponent() {
@@ -14874,7 +14941,7 @@
14874
14941
  i0__namespace.ɵɵelementEnd();
14875
14942
  }
14876
14943
  if (rf & 2) {
14877
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$g, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14944
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14878
14945
  i0__namespace.ɵɵadvance(3);
14879
14946
  i0__namespace.ɵɵproperty("for", ctx.id());
14880
14947
  i0__namespace.ɵɵadvance(1);
@@ -14982,7 +15049,7 @@
14982
15049
  }
14983
15050
  }
14984
15051
  var _c0$H = function (a0) { return { "form-group-error": a0 }; };
14985
- var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
15052
+ var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
14986
15053
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
14987
15054
  __extends(WriteEmailFieldComponent, _super);
14988
15055
  function WriteEmailFieldComponent() {
@@ -15016,7 +15083,7 @@
15016
15083
  i0__namespace.ɵɵadvance(1);
15017
15084
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15018
15085
  i0__namespace.ɵɵadvance(1);
15019
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15086
+ 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);
15020
15087
  }
15021
15088
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15022
15089
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -15327,7 +15394,7 @@
15327
15394
  i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
15328
15395
  }
15329
15396
  }
15330
- var _c1$e = function (a0) { return { "form-group-error": a0 }; };
15397
+ var _c1$f = function (a0) { return { "form-group-error": a0 }; };
15331
15398
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
15332
15399
  __extends(WriteFixedRadioListFieldComponent, _super);
15333
15400
  function WriteFixedRadioListFieldComponent() {
@@ -15358,7 +15425,7 @@
15358
15425
  i0__namespace.ɵɵelementEnd();
15359
15426
  }
15360
15427
  if (rf & 2) {
15361
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$e, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15428
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15362
15429
  i0__namespace.ɵɵadvance(3);
15363
15430
  i0__namespace.ɵɵproperty("for", ctx.id());
15364
15431
  i0__namespace.ɵɵadvance(1);
@@ -16181,7 +16248,7 @@
16181
16248
  }
16182
16249
  }
16183
16250
  var _c0$B = function (a0) { return { "form-group-error": a0 }; };
16184
- var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
16251
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16185
16252
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16186
16253
  __extends(WriteNumberFieldComponent, _super);
16187
16254
  function WriteNumberFieldComponent() {
@@ -16215,7 +16282,7 @@
16215
16282
  i0__namespace.ɵɵadvance(1);
16216
16283
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
16217
16284
  i0__namespace.ɵɵadvance(1);
16218
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16285
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16219
16286
  }
16220
16287
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16221
16288
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -16995,7 +17062,7 @@
16995
17062
  }
16996
17063
  }
16997
17064
  var _c0$z = function (a0) { return { "form-group-error": a0 }; };
16998
- var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17065
+ var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
16999
17066
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
17000
17067
  __extends(WritePhoneUKFieldComponent, _super);
17001
17068
  function WritePhoneUKFieldComponent() {
@@ -17029,7 +17096,7 @@
17029
17096
  i0__namespace.ɵɵadvance(1);
17030
17097
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
17031
17098
  i0__namespace.ɵɵadvance(1);
17032
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17099
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17033
17100
  }
17034
17101
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17035
17102
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -17112,7 +17179,7 @@
17112
17179
  }
17113
17180
  }
17114
17181
  var _c0$y = function (a0) { return { "form-group-error": a0 }; };
17115
- var _c1$b = function (a0) { return { "govuk-textarea--error": a0 }; };
17182
+ var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
17116
17183
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
17117
17184
  __extends(WriteTextAreaFieldComponent, _super);
17118
17185
  function WriteTextAreaFieldComponent(browserService) {
@@ -17157,7 +17224,7 @@
17157
17224
  i0__namespace.ɵɵadvance(1);
17158
17225
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
17159
17226
  i0__namespace.ɵɵadvance(1);
17160
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17227
+ 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);
17161
17228
  }
17162
17229
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17163
17230
  (function () {
@@ -17240,7 +17307,7 @@
17240
17307
  }
17241
17308
  }
17242
17309
  var _c0$x = function (a0) { return { "form-group-error": a0 }; };
17243
- var _c1$a = function (a0) { return { "govuk-input--error": a0 }; };
17310
+ var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
17244
17311
  var WriteTextFieldComponent = /** @class */ (function (_super) {
17245
17312
  __extends(WriteTextFieldComponent, _super);
17246
17313
  function WriteTextFieldComponent() {
@@ -17279,7 +17346,7 @@
17279
17346
  i0__namespace.ɵɵadvance(1);
17280
17347
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
17281
17348
  i0__namespace.ɵɵadvance(1);
17282
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$a, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17349
+ 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);
17283
17350
  }
17284
17351
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17285
17352
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -17500,7 +17567,7 @@
17500
17567
  i0__namespace.ɵɵtextInterpolate(value_r4);
17501
17568
  }
17502
17569
  }
17503
- var _c1$9 = function (a0) { return { "form-group-error": a0 }; };
17570
+ var _c1$a = function (a0) { return { "form-group-error": a0 }; };
17504
17571
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
17505
17572
  __extends(WriteYesNoFieldComponent, _super);
17506
17573
  function WriteYesNoFieldComponent(yesNoService) {
@@ -17531,7 +17598,7 @@
17531
17598
  i0__namespace.ɵɵelementEnd();
17532
17599
  }
17533
17600
  if (rf & 2) {
17534
- i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$9, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17601
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17535
17602
  i0__namespace.ɵɵadvance(3);
17536
17603
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17537
17604
  i0__namespace.ɵɵadvance(1);
@@ -17943,7 +18010,7 @@
17943
18010
  i0__namespace.ɵɵelementContainer(0);
17944
18011
  }
17945
18012
  }
17946
- var _c1$8 = function (a0, a1) { return { cat: a0, level: a1 }; };
18013
+ var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
17947
18014
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
17948
18015
  if (rf & 1) {
17949
18016
  i0__namespace.ɵɵelementContainerStart(0);
@@ -17956,7 +18023,7 @@
17956
18023
  i0__namespace.ɵɵnextContext();
17957
18024
  var _r1 = i0__namespace.ɵɵreference(13);
17958
18025
  i0__namespace.ɵɵadvance(1);
17959
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$8, subcat_r8, level_r6 + 1));
18026
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
17960
18027
  }
17961
18028
  }
17962
18029
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -18178,7 +18245,7 @@
18178
18245
  }
18179
18246
  }
18180
18247
  var _c0$r = [[["", "trigger", ""]]];
18181
- var _c1$7 = ["[trigger]"];
18248
+ var _c1$8 = ["[trigger]"];
18182
18249
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
18183
18250
  function CaseFileViewOverlayMenuComponent() {
18184
18251
  this.title = '';
@@ -18193,7 +18260,7 @@
18193
18260
  return CaseFileViewOverlayMenuComponent;
18194
18261
  }());
18195
18262
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
18196
- 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$7, 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) {
18263
+ 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) {
18197
18264
  if (rf & 1) {
18198
18265
  i0__namespace.ɵɵprojectionDef(_c0$r);
18199
18266
  i0__namespace.ɵɵelementStart(0, "div");
@@ -18210,7 +18277,7 @@
18210
18277
  i0__namespace.ɵɵadvance(4);
18211
18278
  i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
18212
18279
  }
18213
- }, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
18280
+ }, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
18214
18281
  (function () {
18215
18282
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
18216
18283
  type: i0.Component,
@@ -18743,6 +18810,7 @@
18743
18810
  data: { categories: this.categories, document: node }
18744
18811
  });
18745
18812
  dialogRef.afterClosed().subscribe(function (newCatId) {
18813
+ console.log(newCatId, node);
18746
18814
  if (newCatId) {
18747
18815
  _this.moveDocument.emit({ newCategory: newCatId, document: node });
18748
18816
  }
@@ -18825,32 +18893,25 @@
18825
18893
  }
18826
18894
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
18827
18895
  if (rf & 1) {
18828
- i0__namespace.ɵɵelementStart(0, "strong", 20);
18896
+ i0__namespace.ɵɵelementStart(0, "strong", 19);
18829
18897
  i0__namespace.ɵɵtext(1, "Active");
18830
18898
  i0__namespace.ɵɵelementEnd();
18831
18899
  }
18832
18900
  }
18833
18901
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
18834
18902
  if (rf & 1) {
18835
- i0__namespace.ɵɵelementStart(0, "strong", 21);
18903
+ i0__namespace.ɵɵelementStart(0, "strong", 20);
18836
18904
  i0__namespace.ɵɵtext(1, "Inactive");
18837
18905
  i0__namespace.ɵɵelementEnd();
18838
18906
  }
18839
18907
  }
18840
18908
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
18841
18909
  if (rf & 1) {
18842
- i0__namespace.ɵɵelementStart(0, "strong", 21);
18910
+ i0__namespace.ɵɵelementStart(0, "strong", 20);
18843
18911
  i0__namespace.ɵɵtext(1, "Requested");
18844
18912
  i0__namespace.ɵɵelementEnd();
18845
18913
  }
18846
18914
  }
18847
- function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
18848
- if (rf & 1) {
18849
- i0__namespace.ɵɵelementStart(0, "strong", 22);
18850
- i0__namespace.ɵɵtext(1, "Not approved");
18851
- i0__namespace.ɵɵelementEnd();
18852
- }
18853
- }
18854
18915
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
18855
18916
  if (rf & 1) {
18856
18917
  i0__namespace.ɵɵelementStart(0, "tr", 15);
@@ -18877,7 +18938,6 @@
18877
18938
  i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
18878
18939
  i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
18879
18940
  i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
18880
- i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 19);
18881
18941
  i0__namespace.ɵɵelementEnd();
18882
18942
  i0__namespace.ɵɵelementEnd();
18883
18943
  }
@@ -18891,23 +18951,21 @@
18891
18951
  i0__namespace.ɵɵadvance(2);
18892
18952
  i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
18893
18953
  i0__namespace.ɵɵadvance(2);
18894
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
18954
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 8, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
18895
18955
  i0__namespace.ɵɵadvance(3);
18896
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
18956
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 11, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
18897
18957
  i0__namespace.ɵɵadvance(3);
18898
18958
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
18899
18959
  i0__namespace.ɵɵadvance(1);
18900
18960
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
18901
18961
  i0__namespace.ɵɵadvance(1);
18902
18962
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.REQUESTED);
18903
- i0__namespace.ɵɵadvance(1);
18904
- i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.NOT_APPROVED);
18905
18963
  }
18906
18964
  }
18907
18965
  function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
18908
18966
  if (rf & 1) {
18909
18967
  i0__namespace.ɵɵelementStart(0, "tbody", 10);
18910
- i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 19, 15, "tr", 14);
18968
+ i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 18, 14, "tr", 14);
18911
18969
  i0__namespace.ɵɵelementEnd();
18912
18970
  }
18913
18971
  if (rf & 2) {
@@ -18972,7 +19030,7 @@
18972
19030
  return CaseFlagTableComponent;
18973
19031
  }());
18974
19032
  CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
18975
- 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) {
19033
+ 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) {
18976
19034
  if (rf & 1) {
18977
19035
  i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
18978
19036
  }
@@ -19053,7 +19111,7 @@
19053
19111
  }
19054
19112
  }
19055
19113
  var _c0$q = function (a0) { return { "form-group-error": a0 }; };
19056
- var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
19114
+ var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
19057
19115
  function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
19058
19116
  if (rf & 1) {
19059
19117
  i0__namespace.ɵɵelementStart(0, "div", 15);
@@ -19073,7 +19131,7 @@
19073
19131
  i0__namespace.ɵɵadvance(3);
19074
19132
  i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
19075
19133
  i0__namespace.ɵɵadvance(1);
19076
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19134
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19077
19135
  }
19078
19136
  }
19079
19137
  function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
@@ -20174,10 +20232,10 @@
20174
20232
  }] });
20175
20233
  })();
20176
20234
 
20177
- function UpdateFlagComponent_div_12_Template(rf, ctx) {
20235
+ function UpdateFlagComponent_div_8_Template(rf, ctx) {
20178
20236
  if (rf & 1) {
20179
- i0__namespace.ɵɵelementStart(0, "div", 24);
20180
- i0__namespace.ɵɵelementStart(1, "span", 25);
20237
+ i0__namespace.ɵɵelementStart(0, "div", 16);
20238
+ i0__namespace.ɵɵelementStart(1, "span", 17);
20181
20239
  i0__namespace.ɵɵtext(2, "Error:");
20182
20240
  i0__namespace.ɵɵelementEnd();
20183
20241
  i0__namespace.ɵɵtext(3);
@@ -20189,10 +20247,10 @@
20189
20247
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.updateFlagNotEnteredErrorMessage, " ");
20190
20248
  }
20191
20249
  }
20192
- function UpdateFlagComponent_div_13_Template(rf, ctx) {
20250
+ function UpdateFlagComponent_div_9_Template(rf, ctx) {
20193
20251
  if (rf & 1) {
20194
- i0__namespace.ɵɵelementStart(0, "div", 26);
20195
- i0__namespace.ɵɵelementStart(1, "span", 25);
20252
+ i0__namespace.ɵɵelementStart(0, "div", 18);
20253
+ i0__namespace.ɵɵelementStart(1, "span", 17);
20196
20254
  i0__namespace.ɵɵtext(2, "Error:");
20197
20255
  i0__namespace.ɵɵelementEnd();
20198
20256
  i0__namespace.ɵɵtext(3);
@@ -20204,28 +20262,17 @@
20204
20262
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.updateFlagCharLimitErrorMessage, " ");
20205
20263
  }
20206
20264
  }
20207
- function UpdateFlagComponent_div_24_Template(rf, ctx) {
20265
+ function UpdateFlagComponent_button_22_Template(rf, ctx) {
20208
20266
  if (rf & 1) {
20209
- i0__namespace.ɵɵelementStart(0, "div", 27);
20210
- i0__namespace.ɵɵelement(1, "input", 28);
20211
- i0__namespace.ɵɵpipe(2, "lowercase");
20212
- i0__namespace.ɵɵelementStart(3, "label", 29);
20213
- i0__namespace.ɵɵtext(4);
20214
- i0__namespace.ɵɵelementEnd();
20267
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
20268
+ i0__namespace.ɵɵelementStart(0, "button", 19);
20269
+ 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(); });
20270
+ i0__namespace.ɵɵtext(1, " Make inactive ");
20215
20271
  i0__namespace.ɵɵelementEnd();
20216
20272
  }
20217
- if (rf & 2) {
20218
- var status_r3 = ctx.$implicit;
20219
- var ctx_r2 = i0__namespace.ɵɵnextContext();
20220
- i0__namespace.ɵɵadvance(1);
20221
- i0__namespace.ɵɵproperty("name", ctx_r2.FLAG_STATUS_CONTROL_NAME)("value", i0__namespace.ɵɵpipeBind1(2, 4, status_r3));
20222
- i0__namespace.ɵɵadvance(2);
20223
- i0__namespace.ɵɵproperty("for", ctx_r2.FLAG_STATUS_CONTROL_NAME);
20224
- i0__namespace.ɵɵadvance(1);
20225
- i0__namespace.ɵɵtextInterpolate1(" ", status_r3, " ");
20226
- }
20227
20273
  }
20228
20274
  var _c0$l = function (a0) { return { "form-group-error": a0 }; };
20275
+ var _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
20229
20276
  var UpdateFlagComponent = /** @class */ (function () {
20230
20277
  function UpdateFlagComponent() {
20231
20278
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -20233,25 +20280,22 @@
20233
20280
  this.errorMessages = [];
20234
20281
  this.updateFlagNotEnteredErrorMessage = null;
20235
20282
  this.updateFlagCharLimitErrorMessage = null;
20236
- this.updateFlagStepEnum = exports.UpdateFlagStep;
20237
- this.caseFlagStatuses = exports.CaseFlagStatus;
20238
- this.FLAG_COMMENTS_CONTROL_NAME = 'flagComment';
20239
- this.FLAG_STATUS_CONTROL_NAME = 'flagStatus';
20240
- this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME = 'flagStatusReasonChange';
20241
- this.FLAG_WELSH_TRANSLATION_CONTROL_NAME = 'flagWelshTranslation';
20283
+ this.updateFlagControlName = 'flagComments';
20242
20284
  this.commentsMaxCharLimit = 200;
20243
20285
  }
20244
20286
  UpdateFlagComponent.prototype.ngOnInit = function () {
20287
+ this.updateFlagHint = exports.UpdateFlagStep.HINT_TEXT;
20288
+ this.updateFlagCharLimitInfo = exports.UpdateFlagStep.CHARACTER_LIMIT_INFO;
20289
+ this.formGroup.addControl(this.updateFlagControlName, new i2.FormControl(''));
20245
20290
  if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
20246
20291
  var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
20247
- this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i2.FormControl(flagDetail.status));
20248
- this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i2.FormControl(''));
20249
- this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i2.FormControl(false));
20250
20292
  // Populate flag comments text area with existing comments
20251
- this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i2.FormControl(flagDetail.flagComment));
20293
+ this.formGroup.get(this.updateFlagControlName).setValue(flagDetail.flagComment);
20252
20294
  if (flagDetail.name) {
20253
20295
  this.updateFlagTitle =
20254
- exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
20296
+ exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
20297
+ ? ", " + flagDetail.subTypeValue + "\""
20298
+ : '"');
20255
20299
  }
20256
20300
  }
20257
20301
  };
@@ -20260,7 +20304,7 @@
20260
20304
  this.validateTextEntry();
20261
20305
  // If validation has passed, update the flag details with the comments entered
20262
20306
  if (this.errorMessages.length === 0) {
20263
- this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value });
20307
+ this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.updateFlagControlName).value });
20264
20308
  }
20265
20309
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
20266
20310
  // re-emitted because the parent component repopulates this on handling this EventEmitter
@@ -20270,17 +20314,22 @@
20270
20314
  selectedFlag: this.selectedFlag
20271
20315
  });
20272
20316
  };
20317
+ UpdateFlagComponent.prototype.onChangeStatus = function () {
20318
+ this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { status: this.selectedFlag.flagDetailDisplay.flagDetail.status === exports.CaseFlagStatus.ACTIVE
20319
+ ? exports.CaseFlagStatus.INACTIVE
20320
+ : this.selectedFlag.flagDetailDisplay.flagDetail.status });
20321
+ };
20273
20322
  UpdateFlagComponent.prototype.validateTextEntry = function () {
20274
20323
  this.updateFlagNotEnteredErrorMessage = null;
20275
20324
  this.updateFlagCharLimitErrorMessage = null;
20276
20325
  this.errorMessages = [];
20277
- var comment = this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value;
20326
+ var comment = this.formGroup.get(this.updateFlagControlName).value;
20278
20327
  if (!comment) {
20279
20328
  this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
20280
20329
  this.errorMessages.push({
20281
20330
  title: '',
20282
20331
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
20283
- fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20332
+ fieldId: this.updateFlagControlName
20284
20333
  });
20285
20334
  }
20286
20335
  if (comment && comment.length > this.commentsMaxCharLimit) {
@@ -20288,14 +20337,14 @@
20288
20337
  this.errorMessages.push({
20289
20338
  title: '',
20290
20339
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
20291
- fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20340
+ fieldId: this.updateFlagControlName
20292
20341
  });
20293
20342
  }
20294
20343
  };
20295
20344
  return UpdateFlagComponent;
20296
20345
  }());
20297
20346
  UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(); };
20298
- 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) {
20347
+ 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) {
20299
20348
  if (rf & 1) {
20300
20349
  i0__namespace.ɵɵelementStart(0, "div", 0);
20301
20350
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20306,60 +20355,37 @@
20306
20355
  i0__namespace.ɵɵelementEnd();
20307
20356
  i0__namespace.ɵɵelementEnd();
20308
20357
  i0__namespace.ɵɵelementStart(6, "div", 5);
20309
- i0__namespace.ɵɵelementStart(7, "div");
20310
- i0__namespace.ɵɵelementStart(8, "label", 6);
20311
- i0__namespace.ɵɵtext(9);
20358
+ i0__namespace.ɵɵtext(7);
20312
20359
  i0__namespace.ɵɵelementEnd();
20360
+ i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_8_Template, 4, 1, "div", 6);
20361
+ i0__namespace.ɵɵtemplate(9, UpdateFlagComponent_div_9_Template, 4, 1, "div", 7);
20362
+ i0__namespace.ɵɵelementStart(10, "textarea", 8);
20363
+ i0__namespace.ɵɵtext(11, " ");
20313
20364
  i0__namespace.ɵɵelementEnd();
20314
- i0__namespace.ɵɵelementStart(10, "div", 7);
20315
- i0__namespace.ɵɵtext(11);
20316
- i0__namespace.ɵɵelementEnd();
20317
- i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_12_Template, 4, 1, "div", 8);
20318
- i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 4, 1, "div", 9);
20319
- i0__namespace.ɵɵelementStart(14, "textarea", 10);
20320
- i0__namespace.ɵɵtext(15, " ");
20321
- i0__namespace.ɵɵelementEnd();
20322
- i0__namespace.ɵɵelementStart(16, "div", 11);
20323
- i0__namespace.ɵɵtext(17);
20324
- i0__namespace.ɵɵelementEnd();
20325
- i0__namespace.ɵɵelementEnd();
20326
- i0__namespace.ɵɵelementStart(18, "div", 12);
20327
- i0__namespace.ɵɵelementStart(19, "div");
20328
- i0__namespace.ɵɵelementStart(20, "label", 13);
20329
- i0__namespace.ɵɵtext(21);
20330
- i0__namespace.ɵɵelementEnd();
20331
- i0__namespace.ɵɵelementEnd();
20332
- i0__namespace.ɵɵelementStart(22, "div", 5);
20333
- i0__namespace.ɵɵelementStart(23, "div", 14);
20334
- i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 5, 6, "div", 15);
20335
- i0__namespace.ɵɵpipe(25, "enumDisplayDescription");
20336
- i0__namespace.ɵɵelementEnd();
20337
- i0__namespace.ɵɵelementEnd();
20338
- i0__namespace.ɵɵelementStart(26, "div");
20339
- i0__namespace.ɵɵelementStart(27, "div", 16);
20340
- i0__namespace.ɵɵtext(28);
20341
- i0__namespace.ɵɵelementEnd();
20342
- i0__namespace.ɵɵelementStart(29, "textarea", 17);
20343
- i0__namespace.ɵɵtext(30, " ");
20365
+ i0__namespace.ɵɵelementStart(12, "div", 9);
20366
+ i0__namespace.ɵɵtext(13);
20344
20367
  i0__namespace.ɵɵelementEnd();
20345
20368
  i0__namespace.ɵɵelementEnd();
20346
20369
  i0__namespace.ɵɵelementEnd();
20347
- i0__namespace.ɵɵelementStart(31, "div");
20348
- i0__namespace.ɵɵelementStart(32, "div", 18);
20349
- i0__namespace.ɵɵelementStart(33, "div", 19);
20350
- i0__namespace.ɵɵelement(34, "input", 20);
20351
- i0__namespace.ɵɵelementStart(35, "label", 21);
20352
- i0__namespace.ɵɵtext(36, " I need to add a Welsh translation ");
20370
+ i0__namespace.ɵɵelementStart(14, "div", 10);
20371
+ i0__namespace.ɵɵelementStart(15, "div", 11);
20372
+ i0__namespace.ɵɵelementStart(16, "p");
20373
+ i0__namespace.ɵɵtext(17, "Flag status: ");
20374
+ i0__namespace.ɵɵelementStart(18, "span");
20375
+ i0__namespace.ɵɵelementStart(19, "strong", 12);
20376
+ i0__namespace.ɵɵtext(20);
20353
20377
  i0__namespace.ɵɵelementEnd();
20354
20378
  i0__namespace.ɵɵelementEnd();
20355
20379
  i0__namespace.ɵɵelementEnd();
20356
20380
  i0__namespace.ɵɵelementEnd();
20381
+ i0__namespace.ɵɵelementStart(21, "div", 11);
20382
+ i0__namespace.ɵɵtemplate(22, UpdateFlagComponent_button_22_Template, 2, 0, "button", 13);
20357
20383
  i0__namespace.ɵɵelementEnd();
20358
20384
  i0__namespace.ɵɵelementEnd();
20359
- i0__namespace.ɵɵelementStart(37, "div", 22);
20360
- i0__namespace.ɵɵelementStart(38, "button", 23);
20361
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_38_listener() { return ctx.onNext(); });
20362
- i0__namespace.ɵɵtext(39, "Next");
20385
+ i0__namespace.ɵɵelementStart(23, "div", 14);
20386
+ i0__namespace.ɵɵelementStart(24, "button", 15);
20387
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { return ctx.onNext(); });
20388
+ i0__namespace.ɵɵtext(25, "Next");
20363
20389
  i0__namespace.ɵɵelementEnd();
20364
20390
  i0__namespace.ɵɵelementEnd();
20365
20391
  i0__namespace.ɵɵelementEnd();
@@ -20367,39 +20393,29 @@
20367
20393
  if (rf & 2) {
20368
20394
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20369
20395
  i0__namespace.ɵɵadvance(2);
20370
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c0$l, ctx.errorMessages.length > 0));
20371
- i0__namespace.ɵɵadvance(3);
20372
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20373
- i0__namespace.ɵɵadvance(3);
20374
- i0__namespace.ɵɵproperty("for", ctx.FLAG_COMMENTS_CONTROL_NAME);
20396
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$l, ctx.errorMessages.length > 0));
20397
+ i0__namespace.ɵɵadvance(2);
20398
+ i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
20375
20399
  i0__namespace.ɵɵadvance(1);
20376
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " comments ");
20400
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20377
20401
  i0__namespace.ɵɵadvance(2);
20378
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_HINT_TEXT, " ");
20402
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagHint, " ");
20379
20403
  i0__namespace.ɵɵadvance(1);
20380
20404
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
20381
20405
  i0__namespace.ɵɵadvance(1);
20382
20406
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
20383
20407
  i0__namespace.ɵɵadvance(1);
20384
- i0__namespace.ɵɵproperty("id", ctx.FLAG_COMMENTS_CONTROL_NAME)("name", ctx.FLAG_COMMENTS_CONTROL_NAME)("formControlName", ctx.FLAG_COMMENTS_CONTROL_NAME);
20408
+ i0__namespace.ɵɵproperty("id", ctx.updateFlagControlName)("name", ctx.updateFlagControlName)("formControlName", ctx.updateFlagControlName);
20385
20409
  i0__namespace.ɵɵadvance(3);
20386
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_CHARACTER_LIMIT_INFO, " ");
20387
- i0__namespace.ɵɵadvance(4);
20388
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " status ");
20389
- i0__namespace.ɵɵadvance(2);
20390
- i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CONTROL_NAME);
20391
- i0__namespace.ɵɵadvance(1);
20392
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(25, 22, ctx.caseFlagStatuses));
20393
- i0__namespace.ɵɵadvance(4);
20394
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.STATUS_HINT_TEXT, " ");
20395
- i0__namespace.ɵɵadvance(1);
20396
- 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);
20397
- i0__namespace.ɵɵadvance(5);
20398
- i0__namespace.ɵɵproperty("id", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME)("name", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20410
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
20411
+ i0__namespace.ɵɵadvance(6);
20412
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$6, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
20399
20413
  i0__namespace.ɵɵadvance(1);
20400
- i0__namespace.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20414
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
20415
+ i0__namespace.ɵɵadvance(2);
20416
+ i0__namespace.ɵɵproperty("ngIf", ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
20401
20417
  }
20402
- }, 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 });
20418
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
20403
20419
  (function () {
20404
20420
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
20405
20421
  type: i0.Component,
@@ -22970,8 +22986,8 @@
22970
22986
  i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
22971
22987
  i0__namespace.ɵɵsetComponentScope(
22972
22988
  // ComponentLauncher web components
22973
- CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
22974
- i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
22989
+ CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
22990
+ i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
22975
22991
 
22976
22992
  var Confirmation = /** @class */ (function () {
22977
22993
  function Confirmation(caseId, status, header, body) {
@@ -32772,7 +32788,6 @@
32772
32788
  exports.DynamicListPipe = DynamicListPipe;
32773
32789
  exports.DynamicRadioListPipe = DynamicRadioListPipe;
32774
32790
  exports.Embedded = Embedded;
32775
- exports.EnumDisplayDescriptionPipe = EnumDisplayDescriptionPipe;
32776
32791
  exports.ErrorMessageComponent = ErrorMessageComponent;
32777
32792
  exports.ErrorNotifierService = ErrorNotifierService;
32778
32793
  exports.EventCaseField = EventCaseField;