@xuda.io/runtime-bundle 1.0.1028 → 1.0.1029

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