@xuda.io/runtime-bundle 1.0.694 → 1.0.695

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.
@@ -31527,49 +31527,51 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31527
31527
  if (prog_doc.progUi) {
31528
31528
  validate_change(prog_doc);
31529
31529
  if (found) {
31530
- const $elm = $('#container_5b1_cmp_3700419d8179_0');
31531
- const elm_data = $elm.data();
31532
- const $wrapper = $elm.parent();
31533
- const wrapper_data = $wrapper.data();
31534
- const refreshed_ds = _ds.dsSession;
31535
-
31536
- // let elm_to_delete = [];
31537
- // const ts = Date.now();
31538
- // $.each($elm.find('*'), function (key, val) {
31539
- // let xu_ui_id = $(val).attr('xu-ui-id');
31540
- // if (xu_ui_id) {
31541
- // let new_id = xu_ui_id + ts;
31542
- // elm_to_delete.push(new_id);
31543
-
31544
- // $(val).attr('xu-ui-id', new_id).removeData();
31545
- // } else {
31546
- // $(val).remove();
31547
- // }
31548
- // });
31530
+ const $elm = $(`#container_${_ds.prog_id}_0`);
31531
+ if ($elm?.length) {
31532
+ const elm_data = $elm.data();
31533
+ const $wrapper = $elm.parent();
31534
+ const wrapper_data = $wrapper.data();
31535
+ const refreshed_ds = _ds.dsSession;
31536
+
31537
+ // let elm_to_delete = [];
31538
+ // const ts = Date.now();
31539
+ // $.each($elm.find('*'), function (key, val) {
31540
+ // let xu_ui_id = $(val).attr('xu-ui-id');
31541
+ // if (xu_ui_id) {
31542
+ // let new_id = xu_ui_id + ts;
31543
+ // elm_to_delete.push(new_id);
31544
+
31545
+ // $(val).attr('xu-ui-id', new_id).removeData();
31546
+ // } else {
31547
+ // $(val).remove();
31548
+ // }
31549
+ // });
31549
31550
 
31550
- $elm.empty();
31551
- if ($elm.data()) {
31552
- const new_$div = await func.UI.screen.render_ui_tree(
31553
- SESSION_ID,
31554
- $elm, // the wrapper
31555
- _.cloneDeep($elm.data().xuData.node), // the xu-panel node
31556
- {},
31557
- elm_data.xuData.paramsP, // the wrapper params
31558
- null,
31559
- null,
31560
- elm_data.xuData.key, // the wrapper key
31561
- refreshed_ds, // the refreshed_ds
31562
- elm_data.xuData.parent_node, // the wrapper parent node
31563
- null,
31564
- elm_data.xuData.$root_container, // the wrapper root container
31565
- );
31551
+ $elm.empty();
31552
+ if ($elm.data()) {
31553
+ const new_$div = await func.UI.screen.render_ui_tree(
31554
+ SESSION_ID,
31555
+ $elm, // the wrapper
31556
+ _.cloneDeep($elm.data().xuData.node), // the xu-panel node
31557
+ {},
31558
+ elm_data.xuData.paramsP, // the wrapper params
31559
+ null,
31560
+ null,
31561
+ elm_data.xuData.key, // the wrapper key
31562
+ refreshed_ds, // the refreshed_ds
31563
+ elm_data.xuData.parent_node, // the wrapper parent node
31564
+ null,
31565
+ elm_data.xuData.$root_container, // the wrapper root container
31566
+ );
31566
31567
 
31567
- // // remove old screen content
31568
- // $.each(elm_to_delete, async function (key, val) {
31569
- // $("[xu-ui-id='" + elm_to_delete + "']").remove();
31570
- // });
31568
+ // // remove old screen content
31569
+ // $.each(elm_to_delete, async function (key, val) {
31570
+ // $("[xu-ui-id='" + elm_to_delete + "']").remove();
31571
+ // });
31571
31572
 
31572
- return;
31573
+ return;
31574
+ }
31573
31575
  }
31574
31576
  }
31575
31577
  }