@xuda.io/runtime-bundle 1.0.1028 → 1.0.1030

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.
@@ -31411,12 +31411,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31411
31411
  const iterate_progUi = async function (node, node_id) {
31412
31412
  for (let item of node) {
31413
31413
  if (!_.isEmpty(item.attributes)) {
31414
+ const parent_element_ui_id = node_id;
31414
31415
  for await (const [attr, val] of Object.entries(item.attributes)) {
31415
31416
  if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
31416
31417
  if (val?.includes(field_id)) {
31417
- const parent_element_ui_id = node_id;
31418
+ // const parent_element_ui_id = node_id;
31418
31419
  debugger;
31419
- let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
31420
+ // let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
31421
+ let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31420
31422
 
31421
31423
  const _elem_key = parent_element_ui_id;
31422
31424
  const _elem_val = { attributes: [], $elm: _$elem };
@@ -31448,6 +31450,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31448
31450
 
31449
31451
  if (glb.new_xu_render) {
31450
31452
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
31453
+ let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31451
31454
  debugger;
31452
31455
  }
31453
31456
  }
@@ -33393,37 +33396,40 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33393
33396
  // const new_ui_id = await func.common.sha256(ui_id);
33394
33397
  const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
33395
33398
 
33396
- $div.attr('xu-ui-id', new_ui_id).data({
33397
- xuData: {
33398
- prog_id: _paramsP.prog_id,
33399
- nodeid: nodeP.id,
33400
- ui_type: nodeP.tagName,
33401
- xu_id,
33402
- recordid: currentRecordId,
33403
- paramsP: _paramsP,
33404
- key: keyP,
33405
- key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
33406
- screenId: _paramsP.screenId,
33407
- parent_container: $container?.attr('id'),
33408
- elem_key,
33409
- properties: prop,
33410
- node: nodeP,
33411
- node_org: _.cloneDeep(nodeP),
33412
- is_panelP: _paramsP.is_panelP,
33413
- ui_id: new_ui_id,
33414
- elem_prop: elem_propP,
33415
- debug_info: {
33416
- id: nodeP.id,
33417
- parent_id: $container?.data()?.xuData?.ui_id,
33418
- items: items,
33399
+ $div
33400
+ .attr('xu-ui-id', new_ui_id)
33401
+ .attr('xu-node-id', nodeP.id)
33402
+ .data({
33403
+ xuData: {
33404
+ prog_id: _paramsP.prog_id,
33405
+ nodeid: nodeP.id,
33406
+ ui_type: nodeP.tagName,
33407
+ xu_id,
33408
+ recordid: currentRecordId,
33409
+ paramsP: _paramsP,
33410
+ key: keyP,
33411
+ key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
33412
+ screenId: _paramsP.screenId,
33413
+ parent_container: $container?.attr('id'),
33414
+ elem_key,
33415
+ properties: prop,
33416
+ node: nodeP,
33417
+ node_org: _.cloneDeep(nodeP),
33418
+ is_panelP: _paramsP.is_panelP,
33419
+ ui_id: new_ui_id,
33420
+ elem_prop: elem_propP,
33421
+ debug_info: {
33422
+ id: nodeP.id,
33423
+ parent_id: $container?.data()?.xuData?.ui_id,
33424
+ items: items,
33425
+ },
33426
+ parent_node: parent_nodeP,
33427
+ currentRecordId: currentRecordId,
33428
+ $root_container: $root_container,
33429
+ parent_element_ui_id: $container?.data()?.xuData?.ui_id,
33419
33430
  },
33420
- parent_node: parent_nodeP,
33421
- currentRecordId: currentRecordId,
33422
- $root_container: $root_container,
33423
- parent_element_ui_id: $container?.data()?.xuData?.ui_id,
33424
- },
33425
- xuAttributes: {},
33426
- });
33431
+ xuAttributes: {},
33432
+ });
33427
33433
 
33428
33434
  if (div_typeP !== 'svg') {
33429
33435
  $div.appendTo($appendTo);