@xuda.io/runtime-bundle 1.0.892 → 1.0.894

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
+ let 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);
@@ -11650,7 +11652,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11650
11652
  if (avoid_xu_for_refresh) return;
11651
11653
  await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
11652
11654
 
11653
- if (_session.engine_mode === 'live_preview') {
11655
+ if (glb.DEBUG_MODE) {
11654
11656
  console.info('node execute_xu_for', obj, panel_val);
11655
11657
  }
11656
11658
 
@@ -12490,8 +12492,17 @@ 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
- return {};
12505
+ return { abort: true };
12495
12506
  },
12496
12507
  'xu-for': async function ($elm, data) {
12497
12508
  // exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
@@ -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
+ let 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);
@@ -9377,7 +9379,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9377
9379
  if (avoid_xu_for_refresh) return;
9378
9380
  await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
9379
9381
 
9380
- if (_session.engine_mode === 'live_preview') {
9382
+ if (glb.DEBUG_MODE) {
9381
9383
  console.info('node execute_xu_for', obj, panel_val);
9382
9384
  }
9383
9385
 
@@ -10217,8 +10219,17 @@ 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
- return {};
10232
+ return { abort: true };
10222
10233
  },
10223
10234
  'xu-for': async function ($elm, data) {
10224
10235
  // exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
@@ -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']();