@hmcts/ccd-case-ui-toolkit 6.14.5-case-flag-dual-error → 6.14.5-ccpay-upgrade

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 (37) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +17 -49
  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/app.config.js +1 -1
  6. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +1 -2
  7. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +1 -1
  8. package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
  9. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +1 -1
  10. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +7 -21
  11. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +7 -21
  12. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +1 -11
  13. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
  14. package/esm2015/lib/shared/components/palette/palette.module.js +3 -3
  15. package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
  16. package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
  17. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +2 -2
  18. package/esm2015/lib/shared/pipes/index.js +2 -1
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +17 -49
  20. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  21. package/lib/app.config.d.ts +2 -0
  22. package/lib/app.config.d.ts.map +1 -1
  23. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  24. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  25. package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
  26. package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
  27. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -7
  28. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  29. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +1 -4
  30. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  31. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +2 -4
  32. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  33. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  34. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  35. package/lib/shared/pipes/index.d.ts +1 -0
  36. package/lib/shared/pipes/index.d.ts.map +1 -1
  37. package/package.json +1 -1
@@ -10519,7 +10519,6 @@
10519
10519
  id: id_1,
10520
10520
  message: "Please select Next to complete the " + action + " of the " + (action === 'update' ? 'selected ' : '') + "case flag"
10521
10521
  });
10522
- _this.caseEditDataService.setFormValidationErrors(_this.validationErrors);
10523
10522
  }
10524
10523
  else {
10525
10524
  _this.validationErrors.push({ id: id_1, message: "Select or fill the required " + casefield.label + " field" });
@@ -11996,13 +11995,6 @@
11996
11995
  });
11997
11996
  }
11998
11997
  }
11999
- this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
12000
- next: function (validationErrors) {
12001
- if (validationErrors.length) {
12002
- _this.errorMessages = [];
12003
- }
12004
- }
12005
- });
12006
11998
  };
12007
11999
  WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterUpdate = function (caseFields) {
12008
12000
  var _this = this;
@@ -12234,9 +12226,6 @@
12234
12226
  this.formGroup.updateValueAndValidity();
12235
12227
  this.caseEditDataService.setTriggerSubmitEvent(true);
12236
12228
  };
12237
- WriteCaseFlagFieldComponent.prototype.ngOnDestroy = function () {
12238
- this.caseValidationErrorsSubscription$.unsubscribe();
12239
- };
12240
12229
  return WriteCaseFlagFieldComponent;
12241
12230
  }(AbstractFieldWriteComponent));
12242
12231
  WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
@@ -19146,6 +19135,9 @@
19146
19135
  PaymentField.prototype.getRefundsUrl = function () {
19147
19136
  return this.appConfig.getRefundsUrl();
19148
19137
  };
19138
+ PaymentField.prototype.getNotificationUrl = function () {
19139
+ return this.appConfig.getNotificationUrl();
19140
+ };
19149
19141
  PaymentField.prototype.getUserRoles = function () {
19150
19142
  var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
19151
19143
  if (!userDetails || !userDetails.hasOwnProperty('roles')) {
@@ -19171,12 +19163,12 @@
19171
19163
  return CasePaymentHistoryViewerFieldComponent;
19172
19164
  }(PaymentField));
19173
19165
  CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
19174
- CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 15, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
19166
+ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
19175
19167
  if (rf & 1) {
19176
19168
  i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
19177
19169
  }
19178
19170
  if (rf & 2) {
19179
- i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
19171
+ i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
19180
19172
  }
19181
19173
  }, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
19182
19174
  (function () {
@@ -19809,7 +19801,7 @@
19809
19801
  }
19810
19802
  if (rf & 2) {
19811
19803
  var ctx_r0 = i0__namespace.ɵɵnextContext();
19812
- i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
19804
+ i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
19813
19805
  }
19814
19806
  }
19815
19807
  var WaysToPayFieldComponent = /** @class */ (function (_super) {
@@ -19823,9 +19815,9 @@
19823
19815
  return WaysToPayFieldComponent;
19824
19816
  }(PaymentField));
19825
19817
  WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
19826
- WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
19818
+ WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
19827
19819
  if (rf & 1) {
19828
- i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 14, "ccpay-payment-lib", 0);
19820
+ i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
19829
19821
  }
19830
19822
  if (rf & 2) {
19831
19823
  i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
@@ -20599,7 +20591,7 @@
20599
20591
  i0__namespace.ɵɵadvance(2);
20600
20592
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
20601
20593
  }
20602
- }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder,.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
20594
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
20603
20595
  (function () {
20604
20596
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
20605
20597
  type: i0.Component,
@@ -21579,9 +21571,8 @@
21579
21571
  }
21580
21572
  }
21581
21573
  var SelectFlagTypeComponent = /** @class */ (function () {
21582
- function SelectFlagTypeComponent(caseFlagRefdataService, caseEditDataService) {
21574
+ function SelectFlagTypeComponent(caseFlagRefdataService) {
21583
21575
  this.caseFlagRefdataService = caseFlagRefdataService;
21584
- this.caseEditDataService = caseEditDataService;
21585
21576
  this.caseFlagStateEmitter = new i0.EventEmitter();
21586
21577
  this.flagCommentsOptionalEmitter = new i0.EventEmitter();
21587
21578
  this.flagTypeNotSelectedErrorMessage = '';
@@ -21636,22 +21627,11 @@
21636
21627
  error: function (error) { return _this.onRefdataError(error); }
21637
21628
  });
21638
21629
  }
21639
- this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
21640
- next: function (validationErrors) {
21641
- if (validationErrors.length) {
21642
- _this.errorMessages = [];
21643
- _this.flagTypeNotSelectedErrorMessage = '';
21644
- _this.flagTypeErrorMessage = '';
21645
- _this.errorMessages = [];
21646
- }
21647
- }
21648
- });
21649
21630
  };
21650
21631
  SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
21651
21632
  if (this.flagRefdata$) {
21652
21633
  this.flagRefdata$.unsubscribe();
21653
21634
  }
21654
- this.caseValidationErrorsSubscription$.unsubscribe();
21655
21635
  };
21656
21636
  SelectFlagTypeComponent.prototype.onFlagTypeChanged = function (flagType) {
21657
21637
  this.selectedFlagType = flagType;
@@ -21717,7 +21697,7 @@
21717
21697
  };
21718
21698
  return SelectFlagTypeComponent;
21719
21699
  }());
21720
- SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
21700
+ SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
21721
21701
  SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
21722
21702
  if (rf & 1) {
21723
21703
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -21762,7 +21742,7 @@
21762
21742
  templateUrl: './select-flag-type.component.html',
21763
21743
  styleUrls: ['./select-flag-type.component.scss']
21764
21744
  }]
21765
- }], function () { return [{ type: CaseFlagRefdataService }, { type: CaseEditDataService }]; }, { formGroup: [{
21745
+ }], function () { return [{ type: CaseFlagRefdataService }]; }, { formGroup: [{
21766
21746
  type: i0.Input
21767
21747
  }], jurisdiction: [{
21768
21748
  type: i0.Input
@@ -22185,8 +22165,7 @@
22185
22165
  }
22186
22166
  var _c0$o = function (a0) { return { "form-group-error": a0 }; };
22187
22167
  var SelectFlagLocationComponent = /** @class */ (function () {
22188
- function SelectFlagLocationComponent(caseEditDataService) {
22189
- this.caseEditDataService = caseEditDataService;
22168
+ function SelectFlagLocationComponent() {
22190
22169
  this.caseFlagStateEmitter = new i0.EventEmitter();
22191
22170
  this.errorMessages = [];
22192
22171
  this.flagLocationNotSelectedErrorMessage = null;
@@ -22214,14 +22193,6 @@
22214
22193
  // flags in future)
22215
22194
  this.onCaseFlagsConfigError();
22216
22195
  }
22217
- this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
22218
- next: function (validationErrors) {
22219
- if (validationErrors.length) {
22220
- _this.errorMessages = [];
22221
- _this.flagLocationNotSelectedErrorMessage = null;
22222
- }
22223
- }
22224
- });
22225
22196
  };
22226
22197
  SelectFlagLocationComponent.prototype.onNext = function () {
22227
22198
  // Validate flag location selection
@@ -22256,12 +22227,9 @@
22256
22227
  // Return case flag field state and error messages to the parent
22257
22228
  this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
22258
22229
  };
22259
- SelectFlagLocationComponent.prototype.ngOnDestroy = function () {
22260
- this.caseValidationErrorsSubscription$.unsubscribe();
22261
- };
22262
22230
  return SelectFlagLocationComponent;
22263
22231
  }());
22264
- SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
22232
+ SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
22265
22233
  SelectFlagLocationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 10, vars: 8, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-location-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagLocationComponent_Template(rf, ctx) {
22266
22234
  if (rf & 1) {
22267
22235
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -22302,7 +22270,7 @@
22302
22270
  selector: 'ccd-select-flag-location',
22303
22271
  templateUrl: './select-flag-location.component.html'
22304
22272
  }]
22305
- }], function () { return [{ type: CaseEditDataService }]; }, { formGroup: [{
22273
+ }], null, { formGroup: [{
22306
22274
  type: i0.Input
22307
22275
  }], flagsData: [{
22308
22276
  type: i0.Input
@@ -25711,9 +25679,9 @@
25711
25679
  FileUploadStateService,
25712
25680
  FileUploadProgressGuard,
25713
25681
  WindowService,
25714
- LinkedCasesService,
25715
25682
  CommonDataService,
25716
25683
  JurisdictionService,
25684
+ LinkedCasesService,
25717
25685
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
25718
25686
  ], imports: [[
25719
25687
  i1.CommonModule,
@@ -26055,9 +26023,9 @@
26055
26023
  FileUploadStateService,
26056
26024
  FileUploadProgressGuard,
26057
26025
  WindowService,
26058
- LinkedCasesService,
26059
26026
  CommonDataService,
26060
26027
  JurisdictionService,
26028
+ LinkedCasesService,
26061
26029
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
26062
26030
  ],
26063
26031
  entryComponents: [CaseFileViewFolderSelectorComponent]