@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.
@@ -8677,7 +8677,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8677
8677
  var res = {
8678
8678
  result: queue_obj.paramsP.elem_val.$elm.data().xuAttributes[attr],
8679
8679
  };
8680
- if (attr !== 'xu-class') {
8680
+ if (attr !== 'xu-class' && attr !== 'xu-ui-plugin') {
8681
8681
  res = await func.expression.get(
8682
8682
  queue_obj.paramsP.SESSION_ID,
8683
8683
  queue_obj.paramsP.elem_val.$elm.data().xuAttributes[attr],
@@ -11569,7 +11569,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11569
11569
  // console.log(key, val);
11570
11570
 
11571
11571
  if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
11572
- if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
11572
+ if (val?.includes?.('@' + val_field) || val?.includes?.('@' + parameter_in_filed_id)) {
11573
11573
  attr.push(key);
11574
11574
  }
11575
11575
  return true;
@@ -11583,17 +11583,26 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11583
11583
  const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
11584
11584
 
11585
11585
  $.each(classes_obj, function (cla, cond) {
11586
- if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
11587
- // attr.push("xuClass");
11586
+ if (cond.includes('@' + val_field) || cond?.includes?.('@' + parameter_in_filed_id)) {
11588
11587
  attr.push('xu-class');
11589
11588
  return false;
11590
11589
  }
11591
11590
  });
11591
+ if (attr.length) {
11592
+ return false;
11593
+ }
11592
11594
  } catch (e) {
11593
11595
  console.warn('parse error:' + val);
11594
11596
  }
11595
11597
  }
11596
- // return attr;
11598
+
11599
+ if (key === 'xu-ui-plugin') {
11600
+ const plugin_str = JSON.stringify(val);
11601
+ if (plugin_str.includes('@' + val_field) || plugin_str?.includes?.('@' + parameter_in_filed_id)) {
11602
+ attr.push(key);
11603
+ return false;
11604
+ }
11605
+ }
11597
11606
  });
11598
11607
 
11599
11608
  const selector_id = $(this).data()?.xuData?.xu_id;
@@ -8678,7 +8678,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8678
8678
  var res = {
8679
8679
  result: queue_obj.paramsP.elem_val.$elm.data().xuAttributes[attr],
8680
8680
  };
8681
- if (attr !== 'xu-class') {
8681
+ if (attr !== 'xu-class' && attr !== 'xu-ui-plugin') {
8682
8682
  res = await func.expression.get(
8683
8683
  queue_obj.paramsP.SESSION_ID,
8684
8684
  queue_obj.paramsP.elem_val.$elm.data().xuAttributes[attr],
@@ -9279,7 +9279,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9279
9279
  // console.log(key, val);
9280
9280
 
9281
9281
  if (key.substr(0, 6) === 'xu-exp' && key.substr(6, 1) === ':') {
9282
- if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
9282
+ if (val?.includes?.('@' + val_field) || val?.includes?.('@' + parameter_in_filed_id)) {
9283
9283
  attr.push(key);
9284
9284
  }
9285
9285
  return true;
@@ -9293,17 +9293,26 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9293
9293
  const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
9294
9294
 
9295
9295
  $.each(classes_obj, function (cla, cond) {
9296
- if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
9297
- // attr.push("xuClass");
9296
+ if (cond.includes('@' + val_field) || cond?.includes?.('@' + parameter_in_filed_id)) {
9298
9297
  attr.push('xu-class');
9299
9298
  return false;
9300
9299
  }
9301
9300
  });
9301
+ if (attr.length) {
9302
+ return false;
9303
+ }
9302
9304
  } catch (e) {
9303
9305
  console.warn('parse error:' + val);
9304
9306
  }
9305
9307
  }
9306
- // return attr;
9308
+
9309
+ if (key === 'xu-ui-plugin') {
9310
+ const plugin_str = JSON.stringify(val);
9311
+ if (plugin_str.includes('@' + val_field) || plugin_str?.includes?.('@' + parameter_in_filed_id)) {
9312
+ attr.push(key);
9313
+ return false;
9314
+ }
9315
+ }
9307
9316
  });
9308
9317
 
9309
9318
  const selector_id = $(this).data()?.xuData?.xu_id;