@xuda.io/runtime-bundle 1.0.371 → 1.0.373

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
- $.each(obj, function (cla, cond) {
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');
@@ -34908,6 +34912,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
34908
34912
 
34909
34913
  const ret = await func.datasource.get_value(SESSION_ID, val.fieldId, dsSessionP, rowIdP); // find field in dataSources
34910
34914
  console.log(valP, val.fieldId, ret);
34915
+ debugger;
34911
34916
  await replace_value_in_string(ret.ret, ret.fieldIdP);
34912
34917
  }
34913
34918
  }