@xuda.io/runtime-bundle 1.0.893 → 1.0.895

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.
@@ -11429,13 +11429,15 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11429
11429
  .find('*')
11430
11430
  .filter(function () {
11431
11431
  // // look if the changed field include in the calling in parameters
11432
- let parameter_in_filed_id;
11432
+ const elm_data = $(this).data();
11433
11433
 
11434
11434
  let attr = [];
11435
11435
 
11436
- $.each($(this).data()?.xuAttributes, function (key, val) {
11436
+ $.each(elm_data?.xuAttributes, function (key, val) {
11437
11437
  if (key.substr(0, 3) !== 'xu-') return true;
11438
11438
 
11439
+ const parameter_in_filed_id = elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
11440
+
11439
11441
  if (key === 'xu-bind') {
11440
11442
  if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
11441
11443
  attr.push(key);
@@ -12490,6 +12492,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12490
12492
  } catch (error) {
12491
12493
  console.warn(e);
12492
12494
  }
12495
+ return;
12496
+ return { abort: true };
12497
+ },
12498
+ 'xu-text': async function ($elm, val) {
12499
+ try {
12500
+ $elm.text(val.value);
12501
+ } catch (error) {
12502
+ console.warn(e);
12503
+ }
12493
12504
 
12494
12505
  return { abort: true };
12495
12506
  },
@@ -14480,6 +14491,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14480
14491
  if (nodeP.content && nodeP.attributes) {
14481
14492
  nodeP.attributes['xu-content'] = nodeP.content;
14482
14493
  }
14494
+
14483
14495
  if (nodeP.tagName === 'xu-widget') {
14484
14496
  if (is_skeleton) return;
14485
14497
  return await fx['widget']();
@@ -9156,13 +9156,15 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9156
9156
  .find('*')
9157
9157
  .filter(function () {
9158
9158
  // // look if the changed field include in the calling in parameters
9159
- let parameter_in_filed_id;
9159
+ const elm_data = $(this).data();
9160
9160
 
9161
9161
  let attr = [];
9162
9162
 
9163
- $.each($(this).data()?.xuAttributes, function (key, val) {
9163
+ $.each(elm_data?.xuAttributes, function (key, val) {
9164
9164
  if (key.substr(0, 3) !== 'xu-') return true;
9165
9165
 
9166
+ const parameter_in_filed_id = elm_data?.xuData?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : undefined;
9167
+
9166
9168
  if (key === 'xu-bind') {
9167
9169
  if (val?.includes?.(val_field) || val?.includes?.(parameter_in_filed_id)) {
9168
9170
  attr.push(key);
@@ -10217,6 +10219,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10217
10219
  } catch (error) {
10218
10220
  console.warn(e);
10219
10221
  }
10222
+ return;
10223
+ return { abort: true };
10224
+ },
10225
+ 'xu-text': async function ($elm, val) {
10226
+ try {
10227
+ $elm.text(val.value);
10228
+ } catch (error) {
10229
+ console.warn(e);
10230
+ }
10220
10231
 
10221
10232
  return { abort: true };
10222
10233
  },
@@ -12207,6 +12218,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12207
12218
  if (nodeP.content && nodeP.attributes) {
12208
12219
  nodeP.attributes['xu-content'] = nodeP.content;
12209
12220
  }
12221
+
12210
12222
  if (nodeP.tagName === 'xu-widget') {
12211
12223
  if (is_skeleton) return;
12212
12224
  return await fx['widget']();