@xuda.io/runtime-bundle 1.0.886 → 1.0.887

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,11 +11429,11 @@ 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;
11433
-
11432
+ const elm_data = $(this).data();
11433
+ const parameter_in_filed_id = elm_data?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : '';
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
11439
  if (key === 'xu-bind') {
@@ -12491,7 +12491,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12491
12491
  console.warn(e);
12492
12492
  }
12493
12493
 
12494
- return {};
12494
+ return { abort: true };
12495
+ },
12496
+ 'xu-text': async function ($elm, val) {
12497
+ try {
12498
+ $elm.text(val.value);
12499
+ } catch (error) {
12500
+ console.warn(e);
12501
+ }
12502
+
12503
+ return { abort: true };
12495
12504
  },
12496
12505
  'xu-for': async function ($elm, data) {
12497
12506
  // exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
@@ -14480,6 +14489,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14480
14489
  if (nodeP.content && nodeP.attributes) {
14481
14490
  nodeP.attributes['xu-content'] = nodeP.content;
14482
14491
  }
14492
+
14483
14493
  if (nodeP.tagName === 'xu-widget') {
14484
14494
  if (is_skeleton) return;
14485
14495
  return await fx['widget']();
@@ -9156,11 +9156,11 @@ 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;
9160
-
9159
+ const elm_data = $(this).data();
9160
+ const parameter_in_filed_id = elm_data?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : '';
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
9166
  if (key === 'xu-bind') {
@@ -10218,7 +10218,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10218
10218
  console.warn(e);
10219
10219
  }
10220
10220
 
10221
- return {};
10221
+ return { abort: true };
10222
+ },
10223
+ 'xu-text': async function ($elm, val) {
10224
+ try {
10225
+ $elm.text(val.value);
10226
+ } catch (error) {
10227
+ console.warn(e);
10228
+ }
10229
+
10230
+ return { abort: true };
10222
10231
  },
10223
10232
  'xu-for': async function ($elm, data) {
10224
10233
  // exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
@@ -12207,6 +12216,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12207
12216
  if (nodeP.content && nodeP.attributes) {
12208
12217
  nodeP.attributes['xu-content'] = nodeP.content;
12209
12218
  }
12219
+
12210
12220
  if (nodeP.tagName === 'xu-widget') {
12211
12221
  if (is_skeleton) return;
12212
12222
  return await fx['widget']();