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