@xuda.io/runtime-bundle 1.0.691 → 1.0.693
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -11843,51 +11843,52 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
11843
11843
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
11844
11844
|
const _ds = _session.DS_GLB[fields_changed_datasource];
|
|
11845
11845
|
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
11846
|
+
if (prog_doc.progUi) {
|
|
11847
|
+
validate_change(prog_doc);
|
|
11848
|
+
if (found) {
|
|
11849
|
+
const $elm = $('#container_5b1_cmp_3700419d8179_0');
|
|
11850
|
+
const elm_data = $elm.data();
|
|
11851
|
+
const $wrapper = $elm.parent();
|
|
11852
|
+
const wrapper_data = $wrapper.data();
|
|
11853
|
+
const refreshed_ds = _ds.dsSession;
|
|
11854
|
+
|
|
11855
|
+
// let elm_to_delete = [];
|
|
11856
|
+
// const ts = Date.now();
|
|
11857
|
+
// $.each($elm.find('*'), function (key, val) {
|
|
11858
|
+
// let xu_ui_id = $(val).attr('xu-ui-id');
|
|
11859
|
+
// if (xu_ui_id) {
|
|
11860
|
+
// let new_id = xu_ui_id + ts;
|
|
11861
|
+
// elm_to_delete.push(new_id);
|
|
11862
|
+
|
|
11863
|
+
// $(val).attr('xu-ui-id', new_id).removeData();
|
|
11864
|
+
// } else {
|
|
11865
|
+
// $(val).remove();
|
|
11866
|
+
// }
|
|
11867
|
+
// });
|
|
11846
11868
|
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
// $(val).attr('xu-ui-id', new_id).removeData();
|
|
11864
|
-
// } else {
|
|
11865
|
-
// $(val).remove();
|
|
11866
|
-
// }
|
|
11867
|
-
// });
|
|
11868
|
-
|
|
11869
|
-
$elm.empty();
|
|
11870
|
-
const new_$div = await func.UI.screen.render_ui_tree(
|
|
11871
|
-
SESSION_ID,
|
|
11872
|
-
$elm, // the wrapper
|
|
11873
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
11874
|
-
{},
|
|
11875
|
-
elm_data.xuData.paramsP, // the wrapper params
|
|
11876
|
-
null,
|
|
11877
|
-
null,
|
|
11878
|
-
elm_data.xuData.key, // the wrapper key
|
|
11879
|
-
refreshed_ds, // the refreshed_ds
|
|
11880
|
-
elm_data.xuData.parent_node, // the wrapper parent node
|
|
11881
|
-
null,
|
|
11882
|
-
elm_data.xuData.$root_container, // the wrapper root container
|
|
11883
|
-
);
|
|
11869
|
+
$elm.empty();
|
|
11870
|
+
const new_$div = await func.UI.screen.render_ui_tree(
|
|
11871
|
+
SESSION_ID,
|
|
11872
|
+
$elm, // the wrapper
|
|
11873
|
+
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
11874
|
+
{},
|
|
11875
|
+
elm_data.xuData.paramsP, // the wrapper params
|
|
11876
|
+
null,
|
|
11877
|
+
null,
|
|
11878
|
+
elm_data.xuData.key, // the wrapper key
|
|
11879
|
+
refreshed_ds, // the refreshed_ds
|
|
11880
|
+
elm_data.xuData.parent_node, // the wrapper parent node
|
|
11881
|
+
null,
|
|
11882
|
+
elm_data.xuData.$root_container, // the wrapper root container
|
|
11883
|
+
);
|
|
11884
11884
|
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11885
|
+
// // remove old screen content
|
|
11886
|
+
// $.each(elm_to_delete, async function (key, val) {
|
|
11887
|
+
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
11888
|
+
// });
|
|
11889
11889
|
|
|
11890
|
-
|
|
11890
|
+
return;
|
|
11891
|
+
}
|
|
11891
11892
|
}
|
|
11892
11893
|
}
|
|
11893
11894
|
|
|
@@ -9565,51 +9565,52 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9565
9565
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9566
9566
|
const _ds = _session.DS_GLB[fields_changed_datasource];
|
|
9567
9567
|
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
9568
|
+
if (prog_doc.progUi) {
|
|
9569
|
+
validate_change(prog_doc);
|
|
9570
|
+
if (found) {
|
|
9571
|
+
const $elm = $('#container_5b1_cmp_3700419d8179_0');
|
|
9572
|
+
const elm_data = $elm.data();
|
|
9573
|
+
const $wrapper = $elm.parent();
|
|
9574
|
+
const wrapper_data = $wrapper.data();
|
|
9575
|
+
const refreshed_ds = _ds.dsSession;
|
|
9576
|
+
|
|
9577
|
+
// let elm_to_delete = [];
|
|
9578
|
+
// const ts = Date.now();
|
|
9579
|
+
// $.each($elm.find('*'), function (key, val) {
|
|
9580
|
+
// let xu_ui_id = $(val).attr('xu-ui-id');
|
|
9581
|
+
// if (xu_ui_id) {
|
|
9582
|
+
// let new_id = xu_ui_id + ts;
|
|
9583
|
+
// elm_to_delete.push(new_id);
|
|
9584
|
+
|
|
9585
|
+
// $(val).attr('xu-ui-id', new_id).removeData();
|
|
9586
|
+
// } else {
|
|
9587
|
+
// $(val).remove();
|
|
9588
|
+
// }
|
|
9589
|
+
// });
|
|
9568
9590
|
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
// $(val).attr('xu-ui-id', new_id).removeData();
|
|
9586
|
-
// } else {
|
|
9587
|
-
// $(val).remove();
|
|
9588
|
-
// }
|
|
9589
|
-
// });
|
|
9590
|
-
|
|
9591
|
-
$elm.empty();
|
|
9592
|
-
const new_$div = await func.UI.screen.render_ui_tree(
|
|
9593
|
-
SESSION_ID,
|
|
9594
|
-
$elm, // the wrapper
|
|
9595
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
9596
|
-
{},
|
|
9597
|
-
elm_data.xuData.paramsP, // the wrapper params
|
|
9598
|
-
null,
|
|
9599
|
-
null,
|
|
9600
|
-
elm_data.xuData.key, // the wrapper key
|
|
9601
|
-
refreshed_ds, // the refreshed_ds
|
|
9602
|
-
elm_data.xuData.parent_node, // the wrapper parent node
|
|
9603
|
-
null,
|
|
9604
|
-
elm_data.xuData.$root_container, // the wrapper root container
|
|
9605
|
-
);
|
|
9591
|
+
$elm.empty();
|
|
9592
|
+
const new_$div = await func.UI.screen.render_ui_tree(
|
|
9593
|
+
SESSION_ID,
|
|
9594
|
+
$elm, // the wrapper
|
|
9595
|
+
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
9596
|
+
{},
|
|
9597
|
+
elm_data.xuData.paramsP, // the wrapper params
|
|
9598
|
+
null,
|
|
9599
|
+
null,
|
|
9600
|
+
elm_data.xuData.key, // the wrapper key
|
|
9601
|
+
refreshed_ds, // the refreshed_ds
|
|
9602
|
+
elm_data.xuData.parent_node, // the wrapper parent node
|
|
9603
|
+
null,
|
|
9604
|
+
elm_data.xuData.$root_container, // the wrapper root container
|
|
9605
|
+
);
|
|
9606
9606
|
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9607
|
+
// // remove old screen content
|
|
9608
|
+
// $.each(elm_to_delete, async function (key, val) {
|
|
9609
|
+
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
9610
|
+
// });
|
|
9611
9611
|
|
|
9612
|
-
|
|
9612
|
+
return;
|
|
9613
|
+
}
|
|
9613
9614
|
}
|
|
9614
9615
|
}
|
|
9615
9616
|
|