@xuda.io/runtime-bundle 1.0.740 → 1.0.742

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.
@@ -27767,7 +27767,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27767
27767
  var res = {
27768
27768
  result: queue_obj.paramsP.elem_val.$elm.data().xuAttributes[attr],
27769
27769
  };
27770
- if (attr !== 'xu-class') {
27770
+ if (attr !== 'xu-class' && attr !== 'xu-ui-plugin') {
27771
27771
  res = await func.expression.get(
27772
27772
  queue_obj.paramsP.SESSION_ID,
27773
27773
  queue_obj.paramsP.elem_val.$elm.data().xuAttributes[attr],
@@ -31238,7 +31238,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31238
31238
  // console.log(key, val);
31239
31239
 
31240
31240
  if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
31241
- if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
31241
+ if (val?.includes?.('@' + val_field) || val?.includes?.('@' + parameter_in_filed_id)) {
31242
31242
  attr.push(key);
31243
31243
  }
31244
31244
  return true;
@@ -31252,17 +31252,26 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31252
31252
  const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
31253
31253
 
31254
31254
  $.each(classes_obj, function (cla, cond) {
31255
- if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
31256
- // attr.push("xuClass");
31255
+ if (cond.includes('@' + val_field) || cond?.includes?.('@' + parameter_in_filed_id)) {
31257
31256
  attr.push('xu-class');
31258
31257
  return false;
31259
31258
  }
31260
31259
  });
31260
+ if (attr.length) {
31261
+ return false;
31262
+ }
31261
31263
  } catch (e) {
31262
31264
  console.warn('parse error:' + val);
31263
31265
  }
31264
31266
  }
31265
- // return attr;
31267
+
31268
+ if (key === 'xu-ui-plugin') {
31269
+ const plugin_str = JSON.stringify(val);
31270
+ if (plugin_str.includes('@' + val_field) || plugin_str?.includes?.('@' + parameter_in_filed_id)) {
31271
+ attr.push(key);
31272
+ return false;
31273
+ }
31274
+ }
31266
31275
  });
31267
31276
 
31268
31277
  const selector_id = $(this).data()?.xuData?.xu_id;