@xuda.io/runtime-bundle 1.0.1015 → 1.0.1017

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.
@@ -27785,12 +27785,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27785
27785
  execute_xu_render_attributes: async function () {
27786
27786
  const _data = queue_obj.paramsP.elem_val.$elm.data();
27787
27787
  if (_data?.xuData?.paramsP) {
27788
- await func.UI.screen.execute_xu_functions(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP, _data.xuData.key, null, 'xu-render', queue_obj.paramsP.elem_val.$elm, {
27789
- key: 'xu-render',
27790
- value: queue_obj.paramsP.attr_value, //? "Y" : "N",
27791
- fields_arr: queue_obj.paramsP.fields_arr,
27792
- jobNoP: queue_obj.jobNoP,
27793
- });
27788
+ await func.UI.screen.execute_xu_functions(
27789
+ SESSION_ID,
27790
+ null,
27791
+ _data.xuData.$root_container,
27792
+ _data.xuData.node,
27793
+ $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`),
27794
+ _data.xuData.paramsP,
27795
+ {},
27796
+ queue_obj.jobNoP,
27797
+ _data.xuData.key,
27798
+ _data.xuData.parent_nodeP,
27799
+ 'xu-render',
27800
+ queue_obj.paramsP.elem_val.$elm,
27801
+ {
27802
+ key: 'xu-render',
27803
+ value: queue_obj.paramsP.attr_value, //? "Y" : "N",
27804
+ fields_arr: queue_obj.paramsP.fields_arr,
27805
+ jobNoP: queue_obj.jobNoP,
27806
+ },
27807
+ );
27794
27808
  }
27795
27809
 
27796
27810
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
@@ -32270,7 +32284,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32270
32284
  var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
32271
32285
  const init_render = async function () {
32272
32286
  if (!value) {
32273
- var cloned_$div = $elm.clone(true);
32287
+ const cloned_$div = $elm.clone(true);
32274
32288
 
32275
32289
  const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
32276
32290
 
@@ -32386,33 +32400,44 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32386
32400
 
32387
32401
  let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
32388
32402
  // // was true before
32389
- if ($elm.data().xuData.xurender_node) {
32390
- $xurender.data({
32391
- xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
32392
- xuData: $elm.data().xuData.xurender_node.data().xuData || {},
32393
- });
32394
- } else {
32395
- // default new state
32396
-
32397
- $xurender.data({
32398
- xuAttributes: $elm.data().xuAttributes || {},
32399
- xuData: $elm.data().xuData || {},
32400
- });
32401
- const original_data_obj = {
32402
- nodeP: _.cloneDeep($elm.data().xuData.node_org),
32403
- paramsP: $elm.data().xuData.paramsP,
32404
- $container: $elm.clone(true),
32405
- parent_infoP: parent_infoP,
32406
- };
32403
+ // if ($elm.data().xuData.xurender_node) {
32404
+ // $xurender.data({
32405
+ // xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
32406
+ // xuData: $elm.data().xuData.xurender_node.data().xuData || {},
32407
+ // });
32408
+ // } else {
32409
+ // default new state
32410
+
32411
+ $xurender.data({
32412
+ xuAttributes: $elm.data().xuAttributes || {},
32413
+ xuData: $elm.data().xuData || {},
32414
+ });
32415
+ // const original_data_obj = {
32416
+ // nodeP: _.cloneDeep($elm.data().xuData.node_org),
32417
+ // paramsP: $elm.data().xuData.paramsP,
32418
+ // $container: $elm.clone(true),
32419
+ // parent_infoP: parent_infoP,
32420
+ // };
32421
+ const cloned_$div = $elm.clone(true);
32422
+ let original_data_obj = {
32423
+ force_render: false,
32424
+ $container: cloned_$div,
32425
+ nodeP: cloned_$div.data().xuData.node_org,
32426
+ parent_infoP,
32427
+ paramsP,
32428
+ keyP,
32429
+ parent_nodeP, //:cloned_$div.data().xuData.original_data_obj.parent_nodeP,
32430
+ $root_container,
32431
+ };
32407
32432
 
32408
- $xurender.data().xuData.original_data_obj = original_data_obj;
32433
+ $xurender.data().xuData.original_data_obj = original_data_obj;
32409
32434
 
32410
- const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
32411
- if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
32412
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
32413
- }
32414
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
32435
+ const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
32436
+ if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
32437
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
32415
32438
  }
32439
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
32440
+ // }
32416
32441
  $elm.replaceWith(tmp_$div.children());
32417
32442
  func.events.delete_job(SESSION_ID, jobNoP);
32418
32443
  };