@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.
@@ -11727,12 +11727,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11727
11727
  const iterate_progUi = async function (node, node_id) {
11728
11728
  for (let item of node) {
11729
11729
  if (!_.isEmpty(item.attributes)) {
11730
+ const parent_element_ui_id = node_id;
11730
11731
  for await (const [attr, val] of Object.entries(item.attributes)) {
11731
11732
  if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
11732
11733
  if (val?.includes(field_id)) {
11733
- const parent_element_ui_id = node_id;
11734
+ // const parent_element_ui_id = node_id;
11734
11735
  debugger;
11735
- let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
11736
+ // let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
11737
+ let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
11736
11738
 
11737
11739
  const _elem_key = parent_element_ui_id;
11738
11740
  const _elem_val = { attributes: [], $elm: _$elem };
@@ -11764,6 +11766,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11764
11766
 
11765
11767
  if (glb.new_xu_render) {
11766
11768
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
11769
+ let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
11767
11770
  debugger;
11768
11771
  }
11769
11772
  }
@@ -13709,37 +13712,40 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
13709
13712
  // const new_ui_id = await func.common.sha256(ui_id);
13710
13713
  const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
13711
13714
 
13712
- $div.attr('xu-ui-id', new_ui_id).data({
13713
- xuData: {
13714
- prog_id: _paramsP.prog_id,
13715
- nodeid: nodeP.id,
13716
- ui_type: nodeP.tagName,
13717
- xu_id,
13718
- recordid: currentRecordId,
13719
- paramsP: _paramsP,
13720
- key: keyP,
13721
- key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
13722
- screenId: _paramsP.screenId,
13723
- parent_container: $container?.attr('id'),
13724
- elem_key,
13725
- properties: prop,
13726
- node: nodeP,
13727
- node_org: _.cloneDeep(nodeP),
13728
- is_panelP: _paramsP.is_panelP,
13729
- ui_id: new_ui_id,
13730
- elem_prop: elem_propP,
13731
- debug_info: {
13732
- id: nodeP.id,
13733
- parent_id: $container?.data()?.xuData?.ui_id,
13734
- items: items,
13715
+ $div
13716
+ .attr('xu-ui-id', new_ui_id)
13717
+ .attr('xu-node-id', nodeP.id)
13718
+ .data({
13719
+ xuData: {
13720
+ prog_id: _paramsP.prog_id,
13721
+ nodeid: nodeP.id,
13722
+ ui_type: nodeP.tagName,
13723
+ xu_id,
13724
+ recordid: currentRecordId,
13725
+ paramsP: _paramsP,
13726
+ key: keyP,
13727
+ key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
13728
+ screenId: _paramsP.screenId,
13729
+ parent_container: $container?.attr('id'),
13730
+ elem_key,
13731
+ properties: prop,
13732
+ node: nodeP,
13733
+ node_org: _.cloneDeep(nodeP),
13734
+ is_panelP: _paramsP.is_panelP,
13735
+ ui_id: new_ui_id,
13736
+ elem_prop: elem_propP,
13737
+ debug_info: {
13738
+ id: nodeP.id,
13739
+ parent_id: $container?.data()?.xuData?.ui_id,
13740
+ items: items,
13741
+ },
13742
+ parent_node: parent_nodeP,
13743
+ currentRecordId: currentRecordId,
13744
+ $root_container: $root_container,
13745
+ parent_element_ui_id: $container?.data()?.xuData?.ui_id,
13735
13746
  },
13736
- parent_node: parent_nodeP,
13737
- currentRecordId: currentRecordId,
13738
- $root_container: $root_container,
13739
- parent_element_ui_id: $container?.data()?.xuData?.ui_id,
13740
- },
13741
- xuAttributes: {},
13742
- });
13747
+ xuAttributes: {},
13748
+ });
13743
13749
 
13744
13750
  if (div_typeP !== 'svg') {
13745
13751
  $div.appendTo($appendTo);
@@ -9452,12 +9452,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9452
9452
  const iterate_progUi = async function (node, node_id) {
9453
9453
  for (let item of node) {
9454
9454
  if (!_.isEmpty(item.attributes)) {
9455
+ const parent_element_ui_id = node_id;
9455
9456
  for await (const [attr, val] of Object.entries(item.attributes)) {
9456
9457
  if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
9457
9458
  if (val?.includes(field_id)) {
9458
- const parent_element_ui_id = node_id;
9459
+ // const parent_element_ui_id = node_id;
9459
9460
  debugger;
9460
- let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
9461
+ // let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
9462
+ let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
9461
9463
 
9462
9464
  const _elem_key = parent_element_ui_id;
9463
9465
  const _elem_val = { attributes: [], $elm: _$elem };
@@ -9489,6 +9491,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9489
9491
 
9490
9492
  if (glb.new_xu_render) {
9491
9493
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
9494
+ let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
9492
9495
  debugger;
9493
9496
  }
9494
9497
  }
@@ -11434,37 +11437,40 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
11434
11437
  // const new_ui_id = await func.common.sha256(ui_id);
11435
11438
  const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
11436
11439
 
11437
- $div.attr('xu-ui-id', new_ui_id).data({
11438
- xuData: {
11439
- prog_id: _paramsP.prog_id,
11440
- nodeid: nodeP.id,
11441
- ui_type: nodeP.tagName,
11442
- xu_id,
11443
- recordid: currentRecordId,
11444
- paramsP: _paramsP,
11445
- key: keyP,
11446
- key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
11447
- screenId: _paramsP.screenId,
11448
- parent_container: $container?.attr('id'),
11449
- elem_key,
11450
- properties: prop,
11451
- node: nodeP,
11452
- node_org: _.cloneDeep(nodeP),
11453
- is_panelP: _paramsP.is_panelP,
11454
- ui_id: new_ui_id,
11455
- elem_prop: elem_propP,
11456
- debug_info: {
11457
- id: nodeP.id,
11458
- parent_id: $container?.data()?.xuData?.ui_id,
11459
- items: items,
11440
+ $div
11441
+ .attr('xu-ui-id', new_ui_id)
11442
+ .attr('xu-node-id', nodeP.id)
11443
+ .data({
11444
+ xuData: {
11445
+ prog_id: _paramsP.prog_id,
11446
+ nodeid: nodeP.id,
11447
+ ui_type: nodeP.tagName,
11448
+ xu_id,
11449
+ recordid: currentRecordId,
11450
+ paramsP: _paramsP,
11451
+ key: keyP,
11452
+ key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
11453
+ screenId: _paramsP.screenId,
11454
+ parent_container: $container?.attr('id'),
11455
+ elem_key,
11456
+ properties: prop,
11457
+ node: nodeP,
11458
+ node_org: _.cloneDeep(nodeP),
11459
+ is_panelP: _paramsP.is_panelP,
11460
+ ui_id: new_ui_id,
11461
+ elem_prop: elem_propP,
11462
+ debug_info: {
11463
+ id: nodeP.id,
11464
+ parent_id: $container?.data()?.xuData?.ui_id,
11465
+ items: items,
11466
+ },
11467
+ parent_node: parent_nodeP,
11468
+ currentRecordId: currentRecordId,
11469
+ $root_container: $root_container,
11470
+ parent_element_ui_id: $container?.data()?.xuData?.ui_id,
11460
11471
  },
11461
- parent_node: parent_nodeP,
11462
- currentRecordId: currentRecordId,
11463
- $root_container: $root_container,
11464
- parent_element_ui_id: $container?.data()?.xuData?.ui_id,
11465
- },
11466
- xuAttributes: {},
11467
- });
11472
+ xuAttributes: {},
11473
+ });
11468
11474
 
11469
11475
  if (div_typeP !== 'svg') {
11470
11476
  $div.appendTo($appendTo);