@hmcts/ccd-case-ui-toolkit 6.19.10 → 6.19.11-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10116,8 +10116,10 @@
10116
10116
  // delete fields which are not part of the case event journey wizard pages case fields
10117
10117
  this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
10118
10118
  var pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, caseEventData.data, eventTrigger.case_fields);
10119
- // // Remove unnesessary case fields which are hidden
10120
- this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
10119
+ // Remove unnecessary case fields which are hidden, only if the submission is *not* for Case Flags
10120
+ if (!this.isCaseFlagSubmission) {
10121
+ this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
10122
+ }
10121
10123
  caseEventData.event_token = eventTrigger.event_token;
10122
10124
  caseEventData.ignore_warning = this.ignoreWarning;
10123
10125
  if (this.confirmation) {
@@ -26521,10 +26523,16 @@
26521
26523
  if (formGroup) {
26522
26524
  checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
26523
26525
  formGroupAvailable = true;
26524
- if (idPrefix) {
26525
- var fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
26526
- if (checkConditionalShowAgainst[fieldId]) {
26527
- checkConditionalShowAgainst = values;
26526
+ if (idPrefix !== undefined) {
26527
+ if (idPrefix !== '') {
26528
+ var fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
26529
+ if (checkConditionalShowAgainst[fieldId]) {
26530
+ checkConditionalShowAgainst = values;
26531
+ formGroupAvailable = false;
26532
+ }
26533
+ }
26534
+ else {
26535
+ checkConditionalShowAgainst = Object.assign(checkConditionalShowAgainst, values);
26528
26536
  formGroupAvailable = false;
26529
26537
  }
26530
26538
  }
@@ -32418,7 +32426,6 @@
32418
32426
  var targetTabIndex = this.tabGroup._tabs.toArray().findIndex(function (tab) { return tab.textLabel === triggerOutputEventText; });
32419
32427
  if (targetTabIndex > -1) {
32420
32428
  this.selectedTabIndex = targetTabIndex;
32421
- this.tabGroup.selectedIndex = targetTabIndex;
32422
32429
  }
32423
32430
  };
32424
32431
  CaseFullAccessViewComponent.prototype.hasActiveCaseFlags = function () {