@xuda.io/runtime-bundle 1.0.357 → 1.0.359

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.
@@ -5142,15 +5142,15 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5142
5142
  _ds.data_feed.rows[row_idx][field_id] = value;
5143
5143
  await set_fieldComputed_dependencies(dataSource, field_id, null);
5144
5144
 
5145
- // search the field in refs
5146
- let _ds_0 = _session.DS_GLB[0];
5147
- for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5148
- if (val.ds.dsSession == dataSource) {
5149
- if (!fields_changed.includes(ref_name)) {
5150
- fields_changed.push(ref_name);
5151
- }
5152
- }
5153
- }
5145
+ // // search the field in refs
5146
+ // let _ds_0 = _session.DS_GLB[0];
5147
+ // for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5148
+ // if (val.ds.dsSession == dataSource) {
5149
+ // if (!fields_changed.includes(ref_name)) {
5150
+ // fields_changed.push(ref_name);
5151
+ // }
5152
+ // }
5153
+ // }
5154
5154
 
5155
5155
  if (!update_local_scope_only) {
5156
5156
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
@@ -10477,6 +10477,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
10477
10477
  var split = [];
10478
10478
  var var_Arr = [];
10479
10479
  split = func.expression.parse(ret);
10480
+ console.log(valP, split);
10480
10481
  for await (const [arr_key, val] of Object.entries(split)) {
10481
10482
  // run each field
10482
10483
  const key = Number(arr_key);
@@ -11407,9 +11408,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11407
11408
 
11408
11409
  if (!elem_val?.$elm?.data()?.xuData?.ui_type) continue;
11409
11410
 
11410
- // // already rended
11411
- // if (elem_val.$elm[0].tagName !== 'XURENDER' && elem_val?.$elm?.length) continue;
11412
-
11413
11411
  new_job = await func.UI.worker.add_to_queue(
11414
11412
  SESSION_ID,
11415
11413
  'gui event',
@@ -13842,10 +13840,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
13842
13840
  var $wrapper = $('<div>');
13843
13841
  $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
13844
13842
 
13845
- // if (paramsP.is_panelP) {
13846
- // var id = $div.attr('id');
13847
- // }
13848
-
13849
13843
  if (!$div) return;
13850
13844
 
13851
13845
  if (!REFRESHER_IN_PROGRESS && (paramsP.is_mobile_popover || paramsP.is_mobile_page)) {
@@ -13891,24 +13885,24 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
13891
13885
  }
13892
13886
 
13893
13887
  const done = async function (continuous_idx) {
13894
- const do_callback = async function ($div) {
13895
- // if ($root_container.data().xuData.progress_bar_circle) {
13896
- // setTimeout(function () {
13897
- // $.each(
13898
- // $root_container.data().xuData.progress_bar_circle,
13899
- // function (key, val) {
13900
- // val.bar.set(parseFloat(val.value)); // Number from 0.0 to 1.0
13901
- // }
13902
- // );
13903
- // }, 2000);
13904
- // }
13905
-
13906
- if (paramsP.screenInfo.properties?.rtl) {
13907
- $div_content.attr('dir', 'rtl');
13908
- }
13888
+ // const do_callback = async function ($div) {
13889
+ // // if ($root_container.data().xuData.progress_bar_circle) {
13890
+ // // setTimeout(function () {
13891
+ // // $.each(
13892
+ // // $root_container.data().xuData.progress_bar_circle,
13893
+ // // function (key, val) {
13894
+ // // val.bar.set(parseFloat(val.value)); // Number from 0.0 to 1.0
13895
+ // // }
13896
+ // // );
13897
+ // // }, 2000);
13898
+ // // }
13899
+
13900
+ // if (paramsP.screenInfo.properties?.rtl) {
13901
+ // $div_content.attr('dir', 'rtl');
13902
+ // }
13909
13903
 
13910
- return $div;
13911
- };
13904
+ // return $div;
13905
+ // };
13912
13906
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
13913
13907
 
13914
13908
  return await render_screen_type($div);
@@ -5143,15 +5143,15 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5143
5143
  _ds.data_feed.rows[row_idx][field_id] = value;
5144
5144
  await set_fieldComputed_dependencies(dataSource, field_id, null);
5145
5145
 
5146
- // search the field in refs
5147
- let _ds_0 = _session.DS_GLB[0];
5148
- for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5149
- if (val.ds.dsSession == dataSource) {
5150
- if (!fields_changed.includes(ref_name)) {
5151
- fields_changed.push(ref_name);
5152
- }
5153
- }
5154
- }
5146
+ // // search the field in refs
5147
+ // let _ds_0 = _session.DS_GLB[0];
5148
+ // for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5149
+ // if (val.ds.dsSession == dataSource) {
5150
+ // if (!fields_changed.includes(ref_name)) {
5151
+ // fields_changed.push(ref_name);
5152
+ // }
5153
+ // }
5154
+ // }
5155
5155
 
5156
5156
  if (!update_local_scope_only) {
5157
5157
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
@@ -9473,9 +9473,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9473
9473
 
9474
9474
  if (!elem_val?.$elm?.data()?.xuData?.ui_type) continue;
9475
9475
 
9476
- // // already rended
9477
- // if (elem_val.$elm[0].tagName !== 'XURENDER' && elem_val?.$elm?.length) continue;
9478
-
9479
9476
  new_job = await func.UI.worker.add_to_queue(
9480
9477
  SESSION_ID,
9481
9478
  'gui event',
@@ -11908,10 +11905,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11908
11905
  var $wrapper = $('<div>');
11909
11906
  $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
11910
11907
 
11911
- // if (paramsP.is_panelP) {
11912
- // var id = $div.attr('id');
11913
- // }
11914
-
11915
11908
  if (!$div) return;
11916
11909
 
11917
11910
  if (!REFRESHER_IN_PROGRESS && (paramsP.is_mobile_popover || paramsP.is_mobile_page)) {
@@ -11957,24 +11950,24 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11957
11950
  }
11958
11951
 
11959
11952
  const done = async function (continuous_idx) {
11960
- const do_callback = async function ($div) {
11961
- // if ($root_container.data().xuData.progress_bar_circle) {
11962
- // setTimeout(function () {
11963
- // $.each(
11964
- // $root_container.data().xuData.progress_bar_circle,
11965
- // function (key, val) {
11966
- // val.bar.set(parseFloat(val.value)); // Number from 0.0 to 1.0
11967
- // }
11968
- // );
11969
- // }, 2000);
11970
- // }
11971
-
11972
- if (paramsP.screenInfo.properties?.rtl) {
11973
- $div_content.attr('dir', 'rtl');
11974
- }
11953
+ // const do_callback = async function ($div) {
11954
+ // // if ($root_container.data().xuData.progress_bar_circle) {
11955
+ // // setTimeout(function () {
11956
+ // // $.each(
11957
+ // // $root_container.data().xuData.progress_bar_circle,
11958
+ // // function (key, val) {
11959
+ // // val.bar.set(parseFloat(val.value)); // Number from 0.0 to 1.0
11960
+ // // }
11961
+ // // );
11962
+ // // }, 2000);
11963
+ // // }
11964
+
11965
+ // if (paramsP.screenInfo.properties?.rtl) {
11966
+ // $div_content.attr('dir', 'rtl');
11967
+ // }
11975
11968
 
11976
- return $div;
11977
- };
11969
+ // return $div;
11970
+ // };
11978
11971
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
11979
11972
 
11980
11973
  return await render_screen_type($div);
@@ -14183,6 +14176,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
14183
14176
  var split = [];
14184
14177
  var var_Arr = [];
14185
14178
  split = func.expression.parse(ret);
14179
+ console.log(valP, split);
14186
14180
  for await (const [arr_key, val] of Object.entries(split)) {
14187
14181
  // run each field
14188
14182
  const key = Number(arr_key);