@hmcts/ccd-case-ui-toolkit 7.3.86-exui-2837 → 7.3.86

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.
@@ -4166,7 +4166,6 @@ class WorkbasketInputModel {
4166
4166
  label;
4167
4167
  order;
4168
4168
  field;
4169
- dataType;
4170
4169
  metadata;
4171
4170
  display_context_parameter;
4172
4171
  }
@@ -4216,16 +4215,6 @@ class FieldsUtils {
4216
4215
  }
4217
4216
  return obj;
4218
4217
  }
4219
- static buildFieldId(fieldId, elementPath, dataType) {
4220
- if (!fieldId || !elementPath) {
4221
- return fieldId;
4222
- }
4223
- const normalizedType = typeof dataType === 'string' ? dataType.toLowerCase() : '';
4224
- if (normalizedType === 'collection') {
4225
- return `${fieldId}.value.${elementPath}`;
4226
- }
4227
- return `${fieldId}.${elementPath}`;
4228
- }
4229
4218
  static toValuesMap(caseFields) {
4230
4219
  const valueMap = {};
4231
4220
  caseFields.forEach(field => {
@@ -35719,7 +35708,9 @@ class WorkbasketFiltersComponent {
35719
35708
  .sort(this.orderService.sortAsc);
35720
35709
  const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
35721
35710
  workbasketInputs.forEach(item => {
35722
- item.field.id = FieldsUtils.buildFieldId(item.field.id, item.field.elementPath, item.dataType);
35711
+ if (item.field.elementPath) {
35712
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
35713
+ }
35723
35714
  item.field.label = item.label;
35724
35715
  if (formValue) {
35725
35716
  const searchFormValueObject = JSON.parse(formValue);
@@ -41273,14 +41264,12 @@ class SearchInput {
41273
41264
  field;
41274
41265
  metadata;
41275
41266
  display_context_parameter;
41276
- dataType;
41277
- constructor(label, order, field, metadata, display_context_parameter, dataType) {
41267
+ constructor(label, order, field, metadata, display_context_parameter) {
41278
41268
  this.label = label;
41279
41269
  this.order = order;
41280
41270
  this.field = field;
41281
41271
  this.metadata = metadata;
41282
41272
  this.display_context_parameter = display_context_parameter;
41283
- this.dataType = dataType;
41284
41273
  }
41285
41274
  }
41286
41275
 
@@ -41479,7 +41468,9 @@ class SearchFiltersComponent {
41479
41468
  formValueObject = JSON.parse(formValue);
41480
41469
  }
41481
41470
  searchInputs.forEach(item => {
41482
- item.field.id = FieldsUtils.buildFieldId(item.field.id, item.field.elementPath, item.dataType);
41471
+ if (item.field.elementPath) {
41472
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
41473
+ }
41483
41474
  item.field.label = item.label;
41484
41475
  if (formValueObject) {
41485
41476
  item.field.value = formValueObject[item.field.id];