@xuda.io/runtime-bundle 1.0.1042 → 1.0.1044

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.
@@ -31451,20 +31451,18 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31451
31451
 
31452
31452
  if (glb.new_xu_render) {
31453
31453
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
31454
- debugger;
31455
- // $.each(_$elem, function (key, val) {
31456
31454
  for await (const [key, val] of Object.entries(_$elem)) {
31457
31455
  if (key === 'length') break;
31458
31456
  if ($(val).data().xuData.node) {
31459
- // $.each($(val).data().xuData.node.children, function (key, node) {
31460
31457
  for await (const node of $(val).data().xuData.node.children) {
31461
31458
  if (item.id !== node.id) continue;
31462
31459
 
31463
31460
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
31464
31461
  const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
31462
+ parent_element_ui_id;
31465
31463
  const elem_key = node.xu_render_xu_ui_id;
31466
31464
  const elem_val = { attributes: [attr], $elm: node_data.$div };
31467
-
31465
+ elem_val.$elm.data().xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
31468
31466
  var res = await func.expression.get(SESSION_ID, elem_val.$elm.data().xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
31469
31467
 
31470
31468
  var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
@@ -32361,17 +32359,17 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32361
32359
  nodeP.xu_render_made = value;
32362
32360
  if (value) {
32363
32361
  try {
32364
- // abort if already rended
32365
- if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
32366
- return func.events.delete_job(SESSION_ID, jobNoP);
32367
- }
32362
+ // // abort if already rended
32363
+ // if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
32364
+ // return func.events.delete_job(SESSION_ID, jobNoP);
32365
+ // }
32368
32366
 
32369
- let original_data_obj = $elm.data().xuData.original_data_obj;
32367
+ // let original_data_obj = $elm.data().xuData.original_data_obj;
32370
32368
 
32371
- if (!original_data_obj) {
32372
- func.events.delete_job(SESSION_ID, jobNoP);
32373
- return { delete_job: jobNoP };
32374
- }
32369
+ // if (!original_data_obj) {
32370
+ // func.events.delete_job(SESSION_ID, jobNoP);
32371
+ // return { delete_job: jobNoP };
32372
+ // }
32375
32373
 
32376
32374
  ////////////
32377
32375
  const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
@@ -32397,37 +32395,37 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32397
32395
  original_data_obj.$root_container,
32398
32396
  );
32399
32397
  }
32400
- ////////////
32401
- if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
32402
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
32403
- }
32404
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
32405
- //////////////
32406
- new_$div.data().xuData.original_data_obj = original_data_obj;
32407
- new_$div.data().xuData.xurender_node = $elm.clone(true);
32408
- new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
32409
-
32410
- const replace = async function () {
32411
- $elm.replaceWith(new_$div);
32412
- if (from_panel) {
32413
- const xuPanelWrapper = _.clone(new_$div.data().xuPanelWrapper);
32414
- $elm.parent().data().xuPanelWrapper = xuPanelWrapper;
32415
- $elm.replaceWith(new_$div.children());
32416
- }
32417
-
32418
- if (val.fields_arr) {
32419
- return await func.UI.screen.refresh_xu_attributes(SESSION_ID, val.fields_arr, val.jobNoP, new_$div);
32420
- }
32421
- func.events.delete_job(SESSION_ID, jobNoP);
32422
- };
32423
-
32424
- if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
32425
- if (new_$div.data().xuData.paramsP) {
32426
- return await replace();
32427
- }
32428
-
32429
- func.events.delete_job(SESSION_ID, jobNoP);
32430
- }
32398
+ // ////////////
32399
+ // if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
32400
+ // UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
32401
+ // }
32402
+ // UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
32403
+ // //////////////
32404
+ // new_$div.data().xuData.original_data_obj = original_data_obj;
32405
+ // new_$div.data().xuData.xurender_node = $elm.clone(true);
32406
+ // new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
32407
+
32408
+ // const replace = async function () {
32409
+ // $elm.replaceWith(new_$div);
32410
+ // if (from_panel) {
32411
+ // const xuPanelWrapper = _.clone(new_$div.data().xuPanelWrapper);
32412
+ // $elm.parent().data().xuPanelWrapper = xuPanelWrapper;
32413
+ // $elm.replaceWith(new_$div.children());
32414
+ // }
32415
+
32416
+ // if (val.fields_arr) {
32417
+ // return await func.UI.screen.refresh_xu_attributes(SESSION_ID, val.fields_arr, val.jobNoP, new_$div);
32418
+ // }
32419
+ // func.events.delete_job(SESSION_ID, jobNoP);
32420
+ // };
32421
+
32422
+ // if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
32423
+ // if (new_$div.data().xuData.paramsP) {
32424
+ // return await replace();
32425
+ // }
32426
+
32427
+ // func.events.delete_job(SESSION_ID, jobNoP);
32428
+ // }
32431
32429
  } catch (error) {
32432
32430
  func.events.delete_job(SESSION_ID, jobNoP);
32433
32431
  }