@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 = $(
|
|
31531
|
-
|
|
31532
|
-
|
|
31533
|
-
|
|
31534
|
-
|
|
31535
|
-
|
|
31536
|
-
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
|
|
31540
|
-
|
|
31541
|
-
|
|
31542
|
-
|
|
31543
|
-
|
|
31544
|
-
|
|
31545
|
-
|
|
31546
|
-
|
|
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
|
-
|
|
31551
|
-
|
|
31552
|
-
|
|
31553
|
-
|
|
31554
|
-
|
|
31555
|
-
|
|
31556
|
-
|
|
31557
|
-
|
|
31558
|
-
|
|
31559
|
-
|
|
31560
|
-
|
|
31561
|
-
|
|
31562
|
-
|
|
31563
|
-
|
|
31564
|
-
|
|
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
|
-
|
|
31568
|
-
|
|
31569
|
-
|
|
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
|
-
|
|
31573
|
+
return;
|
|
31574
|
+
}
|
|
31573
31575
|
}
|
|
31574
31576
|
}
|
|
31575
31577
|
}
|