@hmcts/ccd-case-ui-toolkit 6.13.10-rc1 → 6.13.10-revert-EUI-7931
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
|
@@ -25009,23 +25009,26 @@
|
|
|
25009
25009
|
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
25010
25010
|
};
|
|
25011
25011
|
ReadFieldsFilterPipe.getValue = function (field, values, index) {
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25015
|
-
|
|
25016
|
-
|
|
25017
|
-
|
|
25012
|
+
if (ReadFieldsFilterPipe.isEmpty(field.value)) {
|
|
25013
|
+
var value = void 0;
|
|
25014
|
+
if (index >= 0) {
|
|
25015
|
+
value = values[index].value[field.id];
|
|
25016
|
+
}
|
|
25017
|
+
else {
|
|
25018
|
+
value = values[field.id];
|
|
25019
|
+
}
|
|
25020
|
+
return value;
|
|
25018
25021
|
}
|
|
25019
|
-
return
|
|
25022
|
+
return field.value;
|
|
25020
25023
|
};
|
|
25021
|
-
ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path,
|
|
25024
|
+
ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
|
|
25022
25025
|
if (field.display_context === 'HIDDEN') {
|
|
25023
25026
|
field.hidden = true;
|
|
25024
25027
|
}
|
|
25025
25028
|
else if (field.show_condition) {
|
|
25026
25029
|
var cond = void 0;
|
|
25027
|
-
if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !
|
|
25028
|
-
var search = fieldId +
|
|
25030
|
+
if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
|
|
25031
|
+
var search = fieldId + ".";
|
|
25029
25032
|
var searchRegExp = new RegExp(search, 'g');
|
|
25030
25033
|
var replaceWith = '';
|
|
25031
25034
|
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
|