@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.
@@ -11870,71 +11870,71 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11870
11870
  }
11871
11871
  };
11872
11872
 
11873
- // check the main program
11874
- if (fields_changed_datasource) {
11875
- const _session = SESSION_OBJ[SESSION_ID];
11876
- const _ds = _session.DS_GLB[fields_changed_datasource];
11877
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
11878
- if (prog_doc.progUi) {
11879
- validate_change(prog_doc, null, true);
11880
- if (found) {
11881
- const $elm = $(`#container_${_ds.prog_id}_0`);
11882
- if ($elm?.length) {
11883
- const elm_data = $elm.data();
11884
- const $wrapper = $elm.parent();
11885
- // const wrapper_data = $wrapper.data();
11886
- const refreshed_ds = _ds.dsSession;
11887
-
11888
- // let elm_to_delete = [];
11889
- // const ts = Date.now();
11890
- // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
11891
- // let xu_ui_id = $(val).attr('xu-ui-id');
11892
- // if (xu_ui_id) {
11893
- // let new_id = xu_ui_id + ts;
11894
- // elm_to_delete.push(new_id);
11895
-
11896
- // $(val).attr('xu-ui-id', new_id).removeData();
11897
- // }
11898
- // // else {
11899
- // // $(val).remove();
11900
- // // }
11901
- // });
11902
-
11903
- $elm.empty();
11904
- if ($elm.data()) {
11905
- const new_$div = await func.UI.screen.render_ui_tree(
11906
- SESSION_ID,
11907
- $elm, // the wrapper
11908
- _.cloneDeep($elm.data().xuData.node), // the xu-panel node
11909
- {},
11910
- elm_data.xuData.paramsP, // the wrapper params
11911
- null,
11912
- null,
11913
- elm_data.xuData.key, // the wrapper key
11914
- refreshed_ds, // the refreshed_ds
11915
- elm_data.xuData.parent_node, // the wrapper parent node
11916
- null,
11917
- elm_data.xuData.$root_container, // the wrapper root container
11918
- );
11919
-
11920
- // // remove old screen content
11921
- // $.each(elm_to_delete, async function (key, val) {
11922
- // $("[xu-ui-id='" + elm_to_delete + "']").remove();
11923
- // });
11924
-
11925
- if (_session.engine_mode === 'live_preview') {
11926
- console.info('========= refresh main info ==============');
11927
- console.info('reason:', refresh_reason);
11928
- console.info('element:', $elm);
11929
- console.info('==========================================');
11930
- }
11931
-
11932
- return;
11933
- }
11934
- }
11935
- }
11936
- }
11937
- }
11873
+ // // check the main program
11874
+ // if (fields_changed_datasource) {
11875
+ // const _session = SESSION_OBJ[SESSION_ID];
11876
+ // const _ds = _session.DS_GLB[fields_changed_datasource];
11877
+ // const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
11878
+ // if (prog_doc.progUi) {
11879
+ // validate_change(prog_doc, null, true);
11880
+ // if (found) {
11881
+ // const $elm = $(`#container_${_ds.prog_id}_0`);
11882
+ // if ($elm?.length) {
11883
+ // const elm_data = $elm.data();
11884
+ // const $wrapper = $elm.parent();
11885
+ // // const wrapper_data = $wrapper.data();
11886
+ // const refreshed_ds = _ds.dsSession;
11887
+
11888
+ // // let elm_to_delete = [];
11889
+ // // const ts = Date.now();
11890
+ // // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
11891
+ // // let xu_ui_id = $(val).attr('xu-ui-id');
11892
+ // // if (xu_ui_id) {
11893
+ // // let new_id = xu_ui_id + ts;
11894
+ // // elm_to_delete.push(new_id);
11895
+
11896
+ // // $(val).attr('xu-ui-id', new_id).removeData();
11897
+ // // }
11898
+ // // // else {
11899
+ // // // $(val).remove();
11900
+ // // // }
11901
+ // // });
11902
+
11903
+ // $elm.empty();
11904
+ // if ($elm.data()) {
11905
+ // const new_$div = await func.UI.screen.render_ui_tree(
11906
+ // SESSION_ID,
11907
+ // $elm, // the wrapper
11908
+ // _.cloneDeep($elm.data().xuData.node), // the xu-panel node
11909
+ // {},
11910
+ // elm_data.xuData.paramsP, // the wrapper params
11911
+ // null,
11912
+ // null,
11913
+ // elm_data.xuData.key, // the wrapper key
11914
+ // refreshed_ds, // the refreshed_ds
11915
+ // elm_data.xuData.parent_node, // the wrapper parent node
11916
+ // null,
11917
+ // elm_data.xuData.$root_container, // the wrapper root container
11918
+ // );
11919
+
11920
+ // // // remove old screen content
11921
+ // // $.each(elm_to_delete, async function (key, val) {
11922
+ // // $("[xu-ui-id='" + elm_to_delete + "']").remove();
11923
+ // // });
11924
+
11925
+ // if (_session.engine_mode === 'live_preview') {
11926
+ // console.info('========= refresh main info ==============');
11927
+ // console.info('reason:', refresh_reason);
11928
+ // console.info('element:', $elm);
11929
+ // console.info('==========================================');
11930
+ // }
11931
+
11932
+ // return;
11933
+ // }
11934
+ // }
11935
+ // }
11936
+ // }
11937
+ // }
11938
11938
 
11939
11939
  const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
11940
11940
 
@@ -9592,71 +9592,71 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9592
9592
  }
9593
9593
  };
9594
9594
 
9595
- // check the main program
9596
- if (fields_changed_datasource) {
9597
- const _session = SESSION_OBJ[SESSION_ID];
9598
- const _ds = _session.DS_GLB[fields_changed_datasource];
9599
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
9600
- if (prog_doc.progUi) {
9601
- validate_change(prog_doc, null, true);
9602
- if (found) {
9603
- const $elm = $(`#container_${_ds.prog_id}_0`);
9604
- if ($elm?.length) {
9605
- const elm_data = $elm.data();
9606
- const $wrapper = $elm.parent();
9607
- // const wrapper_data = $wrapper.data();
9608
- const refreshed_ds = _ds.dsSession;
9609
-
9610
- // let elm_to_delete = [];
9611
- // const ts = Date.now();
9612
- // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
9613
- // let xu_ui_id = $(val).attr('xu-ui-id');
9614
- // if (xu_ui_id) {
9615
- // let new_id = xu_ui_id + ts;
9616
- // elm_to_delete.push(new_id);
9617
-
9618
- // $(val).attr('xu-ui-id', new_id).removeData();
9619
- // }
9620
- // // else {
9621
- // // $(val).remove();
9622
- // // }
9623
- // });
9624
-
9625
- $elm.empty();
9626
- if ($elm.data()) {
9627
- const new_$div = await func.UI.screen.render_ui_tree(
9628
- SESSION_ID,
9629
- $elm, // the wrapper
9630
- _.cloneDeep($elm.data().xuData.node), // the xu-panel node
9631
- {},
9632
- elm_data.xuData.paramsP, // the wrapper params
9633
- null,
9634
- null,
9635
- elm_data.xuData.key, // the wrapper key
9636
- refreshed_ds, // the refreshed_ds
9637
- elm_data.xuData.parent_node, // the wrapper parent node
9638
- null,
9639
- elm_data.xuData.$root_container, // the wrapper root container
9640
- );
9641
-
9642
- // // remove old screen content
9643
- // $.each(elm_to_delete, async function (key, val) {
9644
- // $("[xu-ui-id='" + elm_to_delete + "']").remove();
9645
- // });
9646
-
9647
- if (_session.engine_mode === 'live_preview') {
9648
- console.info('========= refresh main info ==============');
9649
- console.info('reason:', refresh_reason);
9650
- console.info('element:', $elm);
9651
- console.info('==========================================');
9652
- }
9653
-
9654
- return;
9655
- }
9656
- }
9657
- }
9658
- }
9659
- }
9595
+ // // check the main program
9596
+ // if (fields_changed_datasource) {
9597
+ // const _session = SESSION_OBJ[SESSION_ID];
9598
+ // const _ds = _session.DS_GLB[fields_changed_datasource];
9599
+ // const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
9600
+ // if (prog_doc.progUi) {
9601
+ // validate_change(prog_doc, null, true);
9602
+ // if (found) {
9603
+ // const $elm = $(`#container_${_ds.prog_id}_0`);
9604
+ // if ($elm?.length) {
9605
+ // const elm_data = $elm.data();
9606
+ // const $wrapper = $elm.parent();
9607
+ // // const wrapper_data = $wrapper.data();
9608
+ // const refreshed_ds = _ds.dsSession;
9609
+
9610
+ // // let elm_to_delete = [];
9611
+ // // const ts = Date.now();
9612
+ // // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
9613
+ // // let xu_ui_id = $(val).attr('xu-ui-id');
9614
+ // // if (xu_ui_id) {
9615
+ // // let new_id = xu_ui_id + ts;
9616
+ // // elm_to_delete.push(new_id);
9617
+
9618
+ // // $(val).attr('xu-ui-id', new_id).removeData();
9619
+ // // }
9620
+ // // // else {
9621
+ // // // $(val).remove();
9622
+ // // // }
9623
+ // // });
9624
+
9625
+ // $elm.empty();
9626
+ // if ($elm.data()) {
9627
+ // const new_$div = await func.UI.screen.render_ui_tree(
9628
+ // SESSION_ID,
9629
+ // $elm, // the wrapper
9630
+ // _.cloneDeep($elm.data().xuData.node), // the xu-panel node
9631
+ // {},
9632
+ // elm_data.xuData.paramsP, // the wrapper params
9633
+ // null,
9634
+ // null,
9635
+ // elm_data.xuData.key, // the wrapper key
9636
+ // refreshed_ds, // the refreshed_ds
9637
+ // elm_data.xuData.parent_node, // the wrapper parent node
9638
+ // null,
9639
+ // elm_data.xuData.$root_container, // the wrapper root container
9640
+ // );
9641
+
9642
+ // // // remove old screen content
9643
+ // // $.each(elm_to_delete, async function (key, val) {
9644
+ // // $("[xu-ui-id='" + elm_to_delete + "']").remove();
9645
+ // // });
9646
+
9647
+ // if (_session.engine_mode === 'live_preview') {
9648
+ // console.info('========= refresh main info ==============');
9649
+ // console.info('reason:', refresh_reason);
9650
+ // console.info('element:', $elm);
9651
+ // console.info('==========================================');
9652
+ // }
9653
+
9654
+ // return;
9655
+ // }
9656
+ // }
9657
+ // }
9658
+ // }
9659
+ // }
9660
9660
 
9661
9661
  const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
9662
9662