@xuda.io/runtime-bundle 1.0.982 → 1.0.984

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.
@@ -31767,7 +31767,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31767
31767
  // };
31768
31768
  const program = val.value?.prog || val.value;
31769
31769
  var $wrapper = $('<div>');
31770
- var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, nodeP.attributes, null, null, null, $wrapper, '');
31770
+ var $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, nodeP.attributes, null, null, null, $wrapper, '');
31771
31771
  const params_obj = await get_params_obj_new(SESSION_ID, program, nodeP, paramsP.dsSessionP);
31772
31772
  let ret_init = await func.UI.screen.init(SESSION_ID, program, paramsP.screenId, _ds, $div, null, _ds.currentRecordId, jobNoP, true, params_obj.params_res, 'alterXu_panel', undefined, undefined, params_obj.params_raw);
31773
31773
  ret = {
@@ -33094,7 +33094,7 @@ func.UI.screen.panel_post_render_handler = async function (
33094
33094
  return jobNoP;
33095
33095
  };
33096
33096
 
33097
- func.UI.screen.create_container = async function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str) {
33097
+ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str) {
33098
33098
  const _paramsP = _.cloneDeep(paramsP);
33099
33099
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
33100
33100
  var $appendTo = $container;
@@ -33160,25 +33160,6 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33160
33160
  } else {
33161
33161
  $div = $(`<${div} ${attr_str ? attr_str : ''}>`);
33162
33162
  }
33163
- // const svgNS = "http://www.w3.org/2000/svg";
33164
- // // $div = $(document.createElementNS(svgNS, "svg"));
33165
- // $div = $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`);
33166
- // } else {
33167
- // $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
33168
-
33169
- // async function generateHash(str, algorithm = 'SHA-256') {
33170
- // // Encode the string as UTF-8
33171
- // const msgBuffer = new TextEncoder().encode(str);
33172
-
33173
- // // Hash the string
33174
- // const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
33175
-
33176
- // // Convert to hex string
33177
- // const hashArray = Array.from(new Uint8Array(hashBuffer));
33178
- // const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
33179
-
33180
- // return hashHex;
33181
- // }
33182
33163
 
33183
33164
  // Returns a 32-bit unsigned integer hash of a string (FNV-1a)
33184
33165
  function hash32(str) {
@@ -33196,8 +33177,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33196
33177
  return (hash32(str) >>> 0).toString(16).padStart(8, '0');
33197
33178
  }
33198
33179
 
33199
- // const new_ui_id = await generateHash(ui_id);
33200
- const new_ui_id = hash32hex(ui_id);
33180
+ const new_ui_id = ui_id; // hash32hex(ui_id);
33201
33181
 
33202
33182
  $div.attr('xu-ui-id', new_ui_id).data({
33203
33183
  xuData: {
@@ -33890,7 +33870,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
33890
33870
  var exist_elm_obj = get_element_info();
33891
33871
  var $div = exist_elm_obj.div;
33892
33872
  if (!exist_elm_obj.div) {
33893
- $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, 'widget_wrapper', null, null, null, null);
33873
+ $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, 'widget_wrapper', null, null, null, null);
33894
33874
 
33895
33875
  //////////////////////////
33896
33876
 
@@ -34092,7 +34072,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34092
34072
 
34093
34073
  if (!exist_elm_obj.div) {
34094
34074
  var $wrapper = $('<div>');
34095
- $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
34075
+ $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
34096
34076
 
34097
34077
  if (!$div) return;
34098
34078
 
@@ -34232,7 +34212,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34232
34212
  };
34233
34213
 
34234
34214
  var $wrapper = $('<div>');
34235
- $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
34215
+ $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
34236
34216
 
34237
34217
  let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
34238
34218
  if (ret.abort) {
@@ -34262,7 +34242,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34262
34242
  if (!element || element === 'script') return await done();
34263
34243
  let str = '';
34264
34244
 
34265
- var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
34245
+ 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);
34266
34246
 
34267
34247
  $div.hover(
34268
34248
  function (e) {