@hmcts/ccd-case-ui-toolkit 7.3.79-exui-2837-1 → 7.3.79-exui-5013

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.
@@ -4158,7 +4158,6 @@ class WorkbasketInputModel {
4158
4158
  label;
4159
4159
  order;
4160
4160
  field;
4161
- dataType;
4162
4161
  metadata;
4163
4162
  display_context_parameter;
4164
4163
  }
@@ -4208,16 +4207,6 @@ class FieldsUtils {
4208
4207
  }
4209
4208
  return obj;
4210
4209
  }
4211
- static buildFieldId(fieldId, elementPath, dataType) {
4212
- if (!fieldId || !elementPath) {
4213
- return fieldId;
4214
- }
4215
- const normalizedType = typeof dataType === 'string' ? dataType.toLowerCase() : '';
4216
- if (normalizedType === 'collection') {
4217
- return `${fieldId}.value.${elementPath}`;
4218
- }
4219
- return `${fieldId}.${elementPath}`;
4220
- }
4221
4210
  static toValuesMap(caseFields) {
4222
4211
  const valueMap = {};
4223
4212
  caseFields.forEach(field => {
@@ -35686,7 +35675,9 @@ class WorkbasketFiltersComponent {
35686
35675
  .sort(this.orderService.sortAsc);
35687
35676
  const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
35688
35677
  workbasketInputs.forEach(item => {
35689
- item.field.id = FieldsUtils.buildFieldId(item.field.id, item.field.elementPath, item.dataType);
35678
+ if (item.field.elementPath) {
35679
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
35680
+ }
35690
35681
  item.field.label = item.label;
35691
35682
  if (formValue) {
35692
35683
  const searchFormValueObject = JSON.parse(formValue);
@@ -41240,14 +41231,12 @@ class SearchInput {
41240
41231
  field;
41241
41232
  metadata;
41242
41233
  display_context_parameter;
41243
- dataType;
41244
- constructor(label, order, field, metadata, display_context_parameter, dataType) {
41234
+ constructor(label, order, field, metadata, display_context_parameter) {
41245
41235
  this.label = label;
41246
41236
  this.order = order;
41247
41237
  this.field = field;
41248
41238
  this.metadata = metadata;
41249
41239
  this.display_context_parameter = display_context_parameter;
41250
- this.dataType = dataType;
41251
41240
  }
41252
41241
  }
41253
41242
 
@@ -41446,7 +41435,9 @@ class SearchFiltersComponent {
41446
41435
  formValueObject = JSON.parse(formValue);
41447
41436
  }
41448
41437
  searchInputs.forEach(item => {
41449
- item.field.id = FieldsUtils.buildFieldId(item.field.id, item.field.elementPath, item.dataType);
41438
+ if (item.field.elementPath) {
41439
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
41440
+ }
41450
41441
  item.field.label = item.label;
41451
41442
  if (formValueObject) {
41452
41443
  item.field.value = formValueObject[item.field.id];