@hmcts/ccd-case-ui-toolkit 6.13.10-dl-rc1 → 6.13.10-dl-rc2
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.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +13 -10
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +14 -11
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +13 -10
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -25264,23 +25264,26 @@
|
|
|
25264
25264
|
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
25265
25265
|
};
|
|
25266
25266
|
ReadFieldsFilterPipe.getValue = function (field, values, index) {
|
|
25267
|
-
|
|
25268
|
-
|
|
25269
|
-
|
|
25270
|
-
|
|
25271
|
-
|
|
25272
|
-
|
|
25267
|
+
if (ReadFieldsFilterPipe.isEmpty(field.value)) {
|
|
25268
|
+
var value = void 0;
|
|
25269
|
+
if (index >= 0) {
|
|
25270
|
+
value = values[index].value[field.id];
|
|
25271
|
+
}
|
|
25272
|
+
else {
|
|
25273
|
+
value = values[field.id];
|
|
25274
|
+
}
|
|
25275
|
+
return value;
|
|
25273
25276
|
}
|
|
25274
|
-
return
|
|
25277
|
+
return field.value;
|
|
25275
25278
|
};
|
|
25276
|
-
ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path,
|
|
25279
|
+
ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
|
|
25277
25280
|
if (field.display_context === 'HIDDEN') {
|
|
25278
25281
|
field.hidden = true;
|
|
25279
25282
|
}
|
|
25280
25283
|
else if (field.show_condition) {
|
|
25281
25284
|
var cond = void 0;
|
|
25282
|
-
if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !
|
|
25283
|
-
var search = fieldId +
|
|
25285
|
+
if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
|
|
25286
|
+
var search = fieldId + ".";
|
|
25284
25287
|
var searchRegExp = new RegExp(search, 'g');
|
|
25285
25288
|
var replaceWith = '';
|
|
25286
25289
|
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
|