@xuda.io/runtime-bundle 1.0.713 → 1.0.715

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.
@@ -31551,71 +31551,71 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31551
31551
  }
31552
31552
  };
31553
31553
 
31554
- // check the main program
31555
- if (fields_changed_datasource) {
31556
- const _session = SESSION_OBJ[SESSION_ID];
31557
- const _ds = _session.DS_GLB[fields_changed_datasource];
31558
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
31559
- if (prog_doc.progUi) {
31560
- validate_change(prog_doc, null, true);
31561
- if (found) {
31562
- const $elm = $(`#container_${_ds.prog_id}_0`);
31563
- if ($elm?.length) {
31564
- const elm_data = $elm.data();
31565
- const $wrapper = $elm.parent();
31566
- // const wrapper_data = $wrapper.data();
31567
- const refreshed_ds = _ds.dsSession;
31568
-
31569
- // let elm_to_delete = [];
31570
- // const ts = Date.now();
31571
- // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
31572
- // let xu_ui_id = $(val).attr('xu-ui-id');
31573
- // if (xu_ui_id) {
31574
- // let new_id = xu_ui_id + ts;
31575
- // elm_to_delete.push(new_id);
31576
-
31577
- // $(val).attr('xu-ui-id', new_id).removeData();
31578
- // }
31579
- // // else {
31580
- // // $(val).remove();
31581
- // // }
31582
- // });
31583
-
31584
- $elm.empty();
31585
- if ($elm.data()) {
31586
- const new_$div = await func.UI.screen.render_ui_tree(
31587
- SESSION_ID,
31588
- $elm, // the wrapper
31589
- _.cloneDeep($elm.data().xuData.node), // the xu-panel node
31590
- {},
31591
- elm_data.xuData.paramsP, // the wrapper params
31592
- null,
31593
- null,
31594
- elm_data.xuData.key, // the wrapper key
31595
- refreshed_ds, // the refreshed_ds
31596
- elm_data.xuData.parent_node, // the wrapper parent node
31597
- null,
31598
- elm_data.xuData.$root_container, // the wrapper root container
31599
- );
31600
-
31601
- // // remove old screen content
31602
- // $.each(elm_to_delete, async function (key, val) {
31603
- // $("[xu-ui-id='" + elm_to_delete + "']").remove();
31604
- // });
31605
-
31606
- if (_session.engine_mode === 'live_preview') {
31607
- console.info('========= refresh main info ==============');
31608
- console.info('reason:', refresh_reason);
31609
- console.info('element:', $elm);
31610
- console.info('==========================================');
31611
- }
31612
-
31613
- return;
31614
- }
31615
- }
31616
- }
31617
- }
31618
- }
31554
+ // // check the main program
31555
+ // if (fields_changed_datasource) {
31556
+ // const _session = SESSION_OBJ[SESSION_ID];
31557
+ // const _ds = _session.DS_GLB[fields_changed_datasource];
31558
+ // const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
31559
+ // if (prog_doc.progUi) {
31560
+ // validate_change(prog_doc, null, true);
31561
+ // if (found) {
31562
+ // const $elm = $(`#container_${_ds.prog_id}_0`);
31563
+ // if ($elm?.length) {
31564
+ // const elm_data = $elm.data();
31565
+ // const $wrapper = $elm.parent();
31566
+ // // const wrapper_data = $wrapper.data();
31567
+ // const refreshed_ds = _ds.dsSession;
31568
+
31569
+ // // let elm_to_delete = [];
31570
+ // // const ts = Date.now();
31571
+ // // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
31572
+ // // let xu_ui_id = $(val).attr('xu-ui-id');
31573
+ // // if (xu_ui_id) {
31574
+ // // let new_id = xu_ui_id + ts;
31575
+ // // elm_to_delete.push(new_id);
31576
+
31577
+ // // $(val).attr('xu-ui-id', new_id).removeData();
31578
+ // // }
31579
+ // // // else {
31580
+ // // // $(val).remove();
31581
+ // // // }
31582
+ // // });
31583
+
31584
+ // $elm.empty();
31585
+ // if ($elm.data()) {
31586
+ // const new_$div = await func.UI.screen.render_ui_tree(
31587
+ // SESSION_ID,
31588
+ // $elm, // the wrapper
31589
+ // _.cloneDeep($elm.data().xuData.node), // the xu-panel node
31590
+ // {},
31591
+ // elm_data.xuData.paramsP, // the wrapper params
31592
+ // null,
31593
+ // null,
31594
+ // elm_data.xuData.key, // the wrapper key
31595
+ // refreshed_ds, // the refreshed_ds
31596
+ // elm_data.xuData.parent_node, // the wrapper parent node
31597
+ // null,
31598
+ // elm_data.xuData.$root_container, // the wrapper root container
31599
+ // );
31600
+
31601
+ // // // remove old screen content
31602
+ // // $.each(elm_to_delete, async function (key, val) {
31603
+ // // $("[xu-ui-id='" + elm_to_delete + "']").remove();
31604
+ // // });
31605
+
31606
+ // if (_session.engine_mode === 'live_preview') {
31607
+ // console.info('========= refresh main info ==============');
31608
+ // console.info('reason:', refresh_reason);
31609
+ // console.info('element:', $elm);
31610
+ // console.info('==========================================');
31611
+ // }
31612
+
31613
+ // return;
31614
+ // }
31615
+ // }
31616
+ // }
31617
+ // }
31618
+ // }
31619
31619
 
31620
31620
  const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
31621
31621