@xuda.io/runtime-bundle 1.0.1030 → 1.0.1032

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.
@@ -31412,13 +31412,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31412
31412
  for (let item of node) {
31413
31413
  if (!_.isEmpty(item.attributes)) {
31414
31414
  const parent_element_ui_id = node_id;
31415
+ const _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31415
31416
  for await (const [attr, val] of Object.entries(item.attributes)) {
31416
31417
  if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
31417
31418
  if (val?.includes(field_id)) {
31418
31419
  // const parent_element_ui_id = node_id;
31419
31420
  debugger;
31420
31421
  // let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
31421
- let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31422
+ // let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31422
31423
 
31423
31424
  const _elem_key = parent_element_ui_id;
31424
31425
  const _elem_val = { attributes: [], $elm: _$elem };
@@ -31450,8 +31451,23 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31450
31451
 
31451
31452
  if (glb.new_xu_render) {
31452
31453
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
31453
- let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31454
31454
  debugger;
31455
+ $.each(_$elem, function (key, val) {
31456
+ if ($(val).data().xuData.node) {
31457
+ $.each($(val).data().xuData.node.children, function (key, node) {
31458
+ if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
31459
+ const obj = {
31460
+ ui_type: _elem_val.$elm.data().xuData.ui_type,
31461
+ SESSION_ID,
31462
+ elem_key: _elem_key,
31463
+ elem_val: _elem_val,
31464
+ fields_arr,
31465
+ };
31466
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
31467
+ }
31468
+ });
31469
+ }
31470
+ });
31455
31471
  }
31456
31472
  }
31457
31473
  }