@xuda.io/runtime-bundle 1.0.371 → 1.0.372
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.
|
@@ -31358,8 +31358,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31358
31358
|
|
|
31359
31359
|
if (key.substr(0, 8) === 'xu-class') {
|
|
31360
31360
|
try {
|
|
31361
|
-
let obj = JSON.parse(val);
|
|
31362
|
-
|
|
31361
|
+
// let obj = JSON.parse(val);
|
|
31362
|
+
|
|
31363
|
+
const classes_string = val;
|
|
31364
|
+
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
31365
|
+
|
|
31366
|
+
$.each(classes_obj, function (cla, cond) {
|
|
31363
31367
|
if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
|
|
31364
31368
|
// attr.push("xuClass");
|
|
31365
31369
|
attr.push('xu-class');
|