@xuda.io/runtime-bundle 1.0.352 → 1.0.354

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.
@@ -8620,62 +8620,6 @@ func.UI.utils.get_panels_from_dom = function (SESSION_ID, ignore_disableAutoRefr
8620
8620
  func.UI.worker = {};
8621
8621
  func.UI.worker.ID = null;
8622
8622
  func.UI.worker.init = async function (SESSION_ID) {
8623
- // var _session = SESSION_OBJ[SESSION_ID];
8624
-
8625
- // function getWorkerURL(url) {
8626
- // const content = `importScripts( "${url}" );`;
8627
- // return URL.createObjectURL(
8628
- // new Blob([content], { type: "text/javascript" })
8629
- // );
8630
- // }
8631
-
8632
- // let blob = getWorkerURL(
8633
- // func.common.get_url(
8634
- // SESSION_ID,
8635
- // "dist",
8636
- // func.utils.get_resource_filename(
8637
- // _session.engine_mode === "live_preview"
8638
- // ? ""
8639
- // : _session?.opt?.app_build_id,
8640
- // "runtime/js/xuda_UI_worker.js"
8641
- // )
8642
- // )
8643
- // );
8644
-
8645
- // func.UI.worker.ID = new Worker(blob, {
8646
- // name: "xuda UI worker ",
8647
- // });
8648
-
8649
- // func.UI.worker.ID.postMessage({ method: "init" });
8650
-
8651
- // func.UI.worker.ID.addEventListener(
8652
- // "message",
8653
- // function (e) {
8654
- // if (e.data.dsSessionP && !_session.DS_GLB[e.data.dsSessionP]) {
8655
- // func.UI.worker.delete_job(e.data.job_num);
8656
- // }
8657
-
8658
- // let queue_obj = e.data;
8659
-
8660
- // queue_obj.elementP = $(`[xu-ui-id=${queue_obj.xu_ui_id}]`);
8661
-
8662
- // if (queue_obj?.paramsP?.elem_val?.elm_xu_ui_id) {
8663
- // queue_obj.paramsP.elem_val.$elm = $(
8664
- // `[xu-ui-id=${queue_obj.paramsP.elem_val.elm_xu_ui_id}]`
8665
- // );
8666
- // }
8667
-
8668
- // func.UI.worker.execute(SESSION_ID, queue_obj);
8669
- // },
8670
- // false
8671
- // );
8672
-
8673
- // setInterval(async function () {
8674
- // func.UI.garbage_collector();
8675
- // }, 10000);
8676
-
8677
- // return;
8678
-
8679
8623
  $.fn.isInViewport = function () {
8680
8624
  var elementTop = $(this).offset().top;
8681
8625
  var elementBottom = elementTop + $(this).outerHeight();
@@ -8732,8 +8676,12 @@ func.UI.worker.init = async function (SESSION_ID) {
8732
8676
  this._interval = setInterval(job_iterator, 1);
8733
8677
 
8734
8678
  setInterval(async function () {
8735
- func.UI.garbage_collector();
8679
+ func.UI.ds_garbage_collector();
8736
8680
  }, 10000);
8681
+
8682
+ setInterval(async function () {
8683
+ func.UI.refs_garbage_collector();
8684
+ }, 1000);
8737
8685
  };
8738
8686
  func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
8739
8687
  // try {
@@ -9011,20 +8959,13 @@ func.UI.worker.find_job_index = function (SESSION_ID, jobNoP) {
9011
8959
  return ret;
9012
8960
  };
9013
8961
 
9014
- func.UI.garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)[0], re_check) {
9015
- // return;
8962
+ func.UI.ds_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)[0], re_check) {
9016
8963
  let _session = SESSION_OBJ[SESSION_ID];
9017
8964
 
9018
8965
  const _data_system = _session?.DS_GLB?.[0]?.data_system;
9019
8966
  if (_data_system?.SYS_GLOBAL_BOL_AJAX_BUSY) return;
9020
8967
  if (!_data_system?.SYS_GLOBAL_BOL_IDLE) return;
9021
8968
 
9022
- for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
9023
- if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
9024
- delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
9025
- }
9026
- }
9027
-
9028
8969
  let abort;
9029
8970
 
9030
8971
  for (const [dsP, _ds] of Object.entries(_session.DS_GLB)) {
@@ -9070,6 +9011,16 @@ func.UI.garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)[0],
9070
9011
  for (const val of ds_pending_to_delete) {
9071
9012
  func.datasource.del(SESSION_ID, val);
9072
9013
  }
9014
+ };
9015
+ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)[0]) {
9016
+ let _session = SESSION_OBJ[SESSION_ID];
9017
+ const _data_system = _session?.DS_GLB?.[0]?.data_system;
9018
+
9019
+ for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
9020
+ if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
9021
+ delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
9022
+ }
9023
+ }
9073
9024
  };
9074
9025
  func.UI.screen = {};
9075
9026
  func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callingDataSource_objP, $callingContainerP, triggerIdP, rowIdP, jobNoP, is_panelP, parameters_obj_inP, source_functionP, call_screen_propertiesP) {
@@ -10030,16 +9981,19 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10030
9981
 
10031
9982
  const common_fx = {
10032
9983
  'xu-ref': async function ($elm, val) {
10033
- // console.log('xu-ref', $elm, val);
10034
9984
  const _session = SESSION_OBJ[SESSION_ID];
10035
9985
  let _ds_0 = _session.DS_GLB[0];
10036
- // if (!_ds_0.data_system['SYS_GLOBAL_OBJ_REFS']) {
10037
- // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'] = {};
10038
- // }
10039
- // if (!_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val]) {
9986
+
10040
9987
  const _ds = _session.DS_GLB[paramsP.dsSessionP];
10041
- _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data: _ds?.data_feed?.rows || {}, props: $elm?.data()?.xuData?.properties };
10042
- // }
9988
+
9989
+ const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
9990
+ const data = _ds?.data_feed?.rows?.[row_idx] || {};
9991
+
9992
+ const props = _ds.in_parameters || {};
9993
+ const attributes = $elm?.data()?.xuData?.properties || {};
9994
+
9995
+ _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
9996
+
10043
9997
  return {};
10044
9998
  },
10045
9999
  'xu-bind': async function ($elm, val) {
@@ -10372,14 +10326,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10372
10326
  if (!custom_iterator_key) {
10373
10327
  is_key_dynamic_field = true;
10374
10328
 
10375
- // iterator_key = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_KEY";
10376
10329
  iterator_key = '_FOR_KEY';
10377
10330
  }
10378
10331
 
10379
10332
  if (!custom_iterator_val) {
10380
10333
  is_val_dynamic_field = true;
10381
10334
 
10382
- // iterator_val = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_VAL";
10383
10335
  iterator_val = '_FOR_VAL';
10384
10336
  }
10385
10337
 
@@ -10426,13 +10378,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10426
10378
  };
10427
10379
  let _parent_info = _.cloneDeep(parent_infoP) || {};
10428
10380
  _parent_info.iterate_info = iterate_info;
10429
- // if (parent_infoP) {
10430
- // _parent_info = iterate_info;
10431
- // } else {
10432
- // _parent_info = {
10433
- // iterate_info,
10434
- // };
10435
- // }
10381
+
10436
10382
  const $divP = await func.UI.screen.render_ui_tree(
10437
10383
  SESSION_ID,
10438
10384
  $container,
@@ -10498,13 +10444,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10498
10444
  },
10499
10445
  'xu-exp': async function ($elm, val) {
10500
10446
  let exp = val.value === null ? true : val.value;
10501
- // if (val.value.includes("@_FOR_KEY")) {
10502
- // exp = exp.replaceAll("@_FOR_KEY", "@" + $elm.data().xuData.iterate_info.iterator_key);
10503
- // }
10504
-
10505
- // if (val.value.includes("@_FOR_VAL")) {
10506
- // exp = exp.replaceAll("@_FOR_VAL", "@" + $elm.data().xuData.iterate_info.iterator_val);
10507
- // }
10508
10447
 
10509
10448
  let exp_ret = await func.expression.get(SESSION_ID, exp, paramsP.dsSessionP, 'UI Attr EXP', SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP].currentRecordId);
10510
10449
 
@@ -10913,10 +10852,6 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10913
10852
  _ret = _.assignIn(_ret, ret);
10914
10853
  }
10915
10854
 
10916
- // if (nodeP.tagName === "svg") {
10917
- // console.log(svg_attributes_str);
10918
- // }
10919
-
10920
10855
  // EXP for
10921
10856
 
10922
10857
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
@@ -11025,20 +10960,6 @@ func.UI.screen.panel_post_render_handler = async function (
11025
10960
  if ($old_panel_div?.length) {
11026
10961
  $($old_panel_div[0]).after($wrapper.children());
11027
10962
  } else {
11028
- // $container.append($wrapper.children());
11029
-
11030
- // find existing xurender
11031
- // $.each($wrapper.children(), function (key, val) {
11032
- // console.log(">", `[xu-ui-id=${$(val).attr("xu-ui-id")}]`);
11033
- // const $elm = $container.find(`[xu-ui-id=${$(val).attr("xu-ui-id")}]`);
11034
- // if (
11035
- // // $(val).data().xuData.key_path === cloned_$div.data().xuData.key_path
11036
- // $elm.length
11037
- // ) {
11038
- // $elm.remove();
11039
- // }
11040
- // $container.append($(val));
11041
- // });
11042
10963
  $.each($wrapper.children(), function (key, child) {
11043
10964
  $.each($container.children(), function (key, elm) {
11044
10965
  if ($(elm).data().xuData.elem_key === $(child).data().xuData.elem_key) {
@@ -11166,59 +11087,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
11166
11087
  },
11167
11088
  xuAttributes: {},
11168
11089
  });
11169
- // }
11170
-
11171
- // $div.appendTo($appendTo);
11172
-
11173
- ////////////////////////
11174
-
11175
- // let svg_attributes_str = ""
11176
- // if (div_typeP === "svg") {
11177
- // for (const [key, val] of Object.entries(nodeP.attributes)) {
11178
- // svg_attributes_str += `${key}="${val}" `
11179
- // }
11180
- // }
11181
11090
 
11182
- // var $div =
11183
- // // $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`)
11184
- // $(`<${div} ${attr_str ? attr_str : ""}>`)
11185
- // .attr("xu-ui-id", ui_id)
11186
- // .data({
11187
- // xuData: {
11188
- // prog_id: _paramsP.prog_id,
11189
- // nodeid: nodeP.id,
11190
- // ui_type: nodeP.tagName,
11191
- // xu_id: xu_id,
11192
- // recordid: currentRecordId,
11193
- // paramsP: _paramsP,
11194
- // key: keyP,
11195
- // key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
11196
- // screenId: _paramsP.screenId,
11197
- // parent_container: $container?.attr("id"),
11198
- // elem_key,
11199
- // ui_id,
11200
- // properties: prop,
11201
- // node: nodeP,
11202
- // node_org: _.cloneDeep(nodeP),
11203
- // is_panelP: _paramsP.is_panelP,
11204
-
11205
- // elem_prop: elem_propP,
11206
- // debug_info: {
11207
- // id: nodeP.id,
11208
- // parent_id: $container?.data()?.xuData?.ui_id,
11209
- // items: items,
11210
- // },
11211
- // parent_node: parent_nodeP,
11212
- // currentRecordId: currentRecordId,
11213
- // $root_container: $root_container,
11214
- // parent_element_ui_id: $container?.data()?.xuData?.ui_id,
11215
- // },
11216
- // xuAttributes: {},
11217
- // })
11218
-
11219
- // if (div_typeP === "svg") {
11220
- // $div.removeAttr("xu-ui-id")
11221
- // }
11222
11091
  if (div_typeP !== 'svg') {
11223
11092
  $div.appendTo($appendTo);
11224
11093
  }
@@ -11781,20 +11650,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11781
11650
  await func.UI.component.create_app_page_component(SESSION_ID, paramsP.dsSessionP);
11782
11651
  const page = new UI_FRAMEWORK_PLUGIN.page();
11783
11652
  await set_call_screen_properties_values(page);
11784
- await page.create(
11785
- params,
11786
- // SESSION_ID,
11787
- // paramsP.dsSessionP,
11788
- // nav,
11789
- // $nav.data().xuData.nav_params[paramsP.dsSessionP]
11790
- );
11791
- await page.init(
11792
- params,
11793
- // SESSION_ID,
11794
- // paramsP.dsSessionP,
11795
- // nav,
11796
- // $nav.data().xuData.nav_params[paramsP.dsSessionP]
11797
- );
11653
+ await page.create(params);
11654
+ await page.init(params);
11798
11655
  nav.push(component_name, { params });
11799
11656
  } else {
11800
11657
  debugger;
@@ -12030,20 +11887,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12030
11887
  } catch (err) {
12031
11888
  func.utils.debug_report(SESSION_ID, `${plugin_name} widget`, err.message, 'E');
12032
11889
  }
12033
-
12034
- // glb.lifecycle.plugins[plugin_name] = {
12035
- // plugin_script: fx,
12036
- // setup_data: plugin_setup_ret.data,
12037
- // fields,
12038
- // params,
12039
- // };
12040
-
12041
- // await glb.lifecycle.execute(SESSION_ID, "initialized");
12042
- // await glb.lifecycle.execute(SESSION_ID, method);
12043
-
12044
- // } catch (err) {
12045
- // report_error(err);
12046
- // }
12047
11890
  }
12048
11891
  return $div;
12049
11892
  },
@@ -12087,107 +11930,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12087
11930
  $container.data().xuAttributes[key] = _.cloneDeep(val);
12088
11931
  });
12089
11932
 
12090
- // var $div_content = $div.children();
12091
-
12092
- // $.each($div_content, function (key, val) {
12093
- // $(val).data().xuData.parent_container =
12094
- // $div.data().xuData.parent_container;
12095
- // });
12096
-
12097
11933
  return await render_screen_type($div);
12098
-
12099
- // if (paramsP.is_mobile_modal) {
12100
- // return await open_modal($div);
12101
- // }
12102
- // if (paramsP.is_mobile_popover) {
12103
- // open_popover($div);
12104
- // func.UI.utils.screen_blocker(
12105
- // false,
12106
- // paramsP.prog_id + "_" + paramsP.sourceScreenP
12107
- // );
12108
- // return;
12109
- // }
12110
-
12111
- // if (paramsP.is_mobile_page) {
12112
- // const $nav = $(SESSION_OBJ[SESSION_ID].root_element).find("xu-nav");
12113
- // const nav = $nav[0];
12114
-
12115
- // var params = {
12116
- // div: $div_content,
12117
- // name: paramsP.screenInfo.properties?.menuTitle,
12118
- // screenId: paramsP.screenId,
12119
- // $container: $container,
12120
- // // icon: $div.data().xuData.paramsP.screenInfo.rICN,
12121
- // dsSession: paramsP.dsSessionP,
12122
- // };
12123
- // var component_name = "xu-page-component-" + paramsP.dsSessionP;
12124
- // if (!$(nav).data().xuData.nav_params) {
12125
- // $(nav).data().xuData.nav_params = {};
12126
- // }
12127
-
12128
- // //restore validate
12129
- // if ($(nav)?.data()?.xuData?.params?.[paramsP.dsSessionP]) {
12130
- // params.$container.data().xuData.validate_screen_ready = $(nav)
12131
- // .data()
12132
- // .xuData.params[
12133
- // paramsP.dsSessionP
12134
- // ].$container.data().xuData.validate_screen_ready;
12135
- // }
12136
-
12137
- // if (!$(nav)?.data()?.xuData) return;
12138
- // $(nav).data().xuData.nav_params[paramsP.dsSessionP] = params;
12139
- // if (!$(component_name).length) {
12140
- // await func.UI.component.create_app_page_component(
12141
- // SESSION_ID,
12142
- // paramsP.dsSessionP
12143
- // );
12144
- // const page = new UI_FRAMEWORK_PLUGIN.page();
12145
- // await page.create(
12146
- // SESSION_ID,
12147
- // paramsP.dsSessionP,
12148
- // nav,
12149
- // $nav.data().xuData.nav_params[paramsP.dsSessionP]
12150
- // );
12151
- // await page.init(
12152
- // SESSION_ID,
12153
- // paramsP.dsSessionP,
12154
- // nav,
12155
- // $nav.data().xuData.nav_params[paramsP.dsSessionP]
12156
- // );
12157
- // nav.push(component_name, { params });
12158
- // } else {
12159
- // debugger;
12160
- // $(component_name).empty();
12161
-
12162
- // await UI_FRAMEWORK_PLUGIN.page(SESSION_ID, paramsP.dsSessionP);
12163
- // }
12164
- // $div.data().xuData.paramsP = $container.data().xuData.paramsP;
12165
-
12166
- // return $div;
12167
- // }
12168
-
12169
- // if (
12170
- // !paramsP.is_mobile_page &&
12171
- // !paramsP.is_mobile_modal &&
12172
- // !paramsP.is_mobile_popover &&
12173
- // !paramsP.is_panelP
12174
- // ) {
12175
- // var $nav = $(SESSION_OBJ[SESSION_ID].root_element).find("xu-nav");
12176
- // if ($nav && $nav.length) {
12177
- // // refresh made
12178
- // } else {
12179
- // $nav = $("<xu-nav>");
12180
- // $container.append($nav);
12181
- // func.UI.component.init_xu_nav($container, $nav);
12182
- // }
12183
-
12184
- // $nav.data().xuData.$div = $div_content; // set data to nav to use in the component
12185
-
12186
- // await $nav[0].setRoot("xu-root-component-" + SESSION_ID);
12187
- // } else {
12188
- // $container.append($div_content);
12189
- // }
12190
- // return $container;
12191
11934
  },
12192
11935
  [`xu-multi-view`]: async function () {
12193
11936
  var $div = $container;
@@ -12223,41 +11966,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12223
11966
  return $div;
12224
11967
  };
12225
11968
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
12226
- // var $div_content = $div.children();
12227
-
12228
- // if (continuous_idx !== null || !prop.app_items_per_page) {
12229
- // $.each($div.data().xuData, function (key, val) {
12230
- // $container.data().xuData[key] = val;
12231
- // });
12232
- // $.each($div.data().xuAttributes, function (key, val) {
12233
- // $container.data().xuAttributes[key] = val;
12234
- // });
12235
-
12236
- // if (!$container.data().xuData.node) {
12237
- // $container.data().xuData.node = {};
12238
- // }
12239
-
12240
- // $container.data().xuData.node.children = [];
12241
-
12242
- // $.each($div_content, function (key, val) {
12243
- // if (!$(val)?.data()?.xuData) return;
12244
- // if (
12245
- // continuous_idx === null ||
12246
- // (continuous_idx && key > continuous_idx)
12247
- // ) {
12248
- // $(val).data().xuData.parent_container =
12249
- // $div.data().xuData.parent_container;
12250
- // $container
12251
- // .data()
12252
- // .xuData.node.children.push($(val).data().xuData.node);
12253
- // }
12254
- // });
12255
- // }
12256
11969
 
12257
- // if (continuous_idx !== null) {
12258
- // if (glb.CURRENT_APP_LOADING === 1) glb.CURRENT_APP_LOADING = 0; // re-activate loader
12259
- // return;
12260
- // }
12261
11970
  return await render_screen_type($div);
12262
11971
  };
12263
11972
 
@@ -12291,38 +12000,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12291
12000
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
12292
12001
  await func.events.validate(SESSION_ID, 'record_not_found', paramsP.dsSessionP);
12293
12002
  return await done(null);
12294
-
12295
- // var text = "";
12296
- // if (prop?.app_empty_result_text !== "undefined") {
12297
- // text = prop.app_empty_result_text;
12298
- // }
12299
- // if (
12300
- // prop.app_empty_result_text_EXP &&
12301
- // prop.app_empty_result_text_EXP !== "undefined"
12302
- // ) {
12303
- // let exp = prop.app_empty_result_text_EXP;
12304
- // if (exp && exp !== "undefined") {
12305
- // var res = func.expression.get(
12306
- // SESSION_ID,
12307
- // exp,
12308
- // paramsP.dsSessionP,
12309
- // "app_empty_result_text_EXP",
12310
- // _ds.currentRecordId
12311
- // );
12312
- // text = res.result;
12313
- // }
12314
- // }
12315
- // if (icon || text) {
12316
- // $container.append(
12317
- // `<div style="width: 100%;" >${img}<h6 style="text-align: center;">${text}</h6></div>`
12318
- // );
12319
- // }
12320
- // await func.events.validate(
12321
- // SESSION_ID,
12322
- // "record_not_found",
12323
- // paramsP.dsSessionP
12324
- // );
12325
- // return await done(null);
12326
12003
  };
12327
12004
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
12328
12005
 
@@ -12335,25 +12012,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12335
12012
  var i = 0;
12336
12013
  for await (const [key, val] of Object.entries(_ds.data_feed.rows)) {
12337
12014
  var node = JSON.parse(JSON.stringify(nodeP));
12338
- // TO FIX
12339
- // if (
12340
- // continuous_idx === null &&
12341
- // prop.app_items_per_page &&
12342
- // i >= Number(prop.app_items_per_page)
12343
- // ) {
12344
- // continuous_idx = i;
12345
- // await done(null);
12346
-
12347
- // setTimeout(async function () {
12348
- // await run_item(continuous_idx);
12349
- // if (!glb.CURRENT_APP_LOADING) {
12350
- // glb.CURRENT_APP_LOADING = 1;
12351
- // } // deactivate loader
12352
- // }, 1000);
12353
-
12354
- // continue;
12355
- // }
12356
- ////////
12015
+
12357
12016
  _ds.currentRecordId = val._ROWID;
12358
12017
  const ret = await iterate_child($div, node, { continuous_idx }, null, $root_container);
12359
12018
 
@@ -12405,46 +12064,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12405
12064
  };
12406
12065
  if (!element || element === 'script') return await done();
12407
12066
  let str = '';
12408
- // var $div
12409
- // const draw_svg = function () {
12410
- // const get_tag_str = function (element, prop, val) {
12411
- // let class_str = "";
12412
- // let attr_str = "";
12413
- // for (const [key, val] of Object.entries(prop)) {
12414
- // if (key.substr(0, 2) !== "xu") {
12415
- // attr_str += ` ${key}="${val}" `;
12416
- // }
12417
- // }
12418
- // if (element === "svg") {
12419
- // return `<${element} ${attr_str} > `;
12420
- // }
12421
- // let ret = "";
12422
- // if (val?.children?.length) {
12423
- // ret = iterate_svg(val);
12424
- // }
12425
-
12426
- // return `<${element} ${class_str} ${attr_str} > ${ret} </${element}>`;
12427
- // };
12428
- // let svg_str = get_tag_str(element, prop);
12429
- // let inner_str = "";
12430
- // const iterate_svg = function (node) {
12431
- // let ret = "";
12432
- // if (node.children) {
12433
- // for (let val of node.children) {
12434
- // let prop = val.attributes;
12435
- // ret += get_tag_str(val.tagName, prop, val);
12436
- // }
12437
- // }
12438
- // return ret;
12439
- // };
12440
- // inner_str = iterate_svg(nodeP);
12441
-
12442
- // $div = $(svg_str + inner_str + "</svg>").appendTo($container);
12443
- // };
12444
- // if (element === "svg") {
12445
- // draw_svg();
12446
- // // return await done();
12447
- // }
12448
12067
 
12449
12068
  var $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
12450
12069