@xuda.io/runtime-bundle 1.0.686 → 1.0.688
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.
|
@@ -31524,29 +31524,45 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31524
31524
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
31525
31525
|
const _ds = _session.DS_GLB[fields_changed_datasource];
|
|
31526
31526
|
const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
31527
|
-
|
|
31527
|
+
|
|
31528
31528
|
validate_change(prog_doc);
|
|
31529
31529
|
if (found) {
|
|
31530
31530
|
const $elm = $('#container_5b1_cmp_3700419d8179_0');
|
|
31531
|
+
const elm_data = $elm.data();
|
|
31531
31532
|
const $wrapper = $elm.parent();
|
|
31532
31533
|
const wrapper_data = $wrapper.data();
|
|
31533
31534
|
const refreshed_ds = _ds.dsSession;
|
|
31534
|
-
|
|
31535
|
+
|
|
31536
|
+
let elm_to_delete = [];
|
|
31537
|
+
const ts = Date.now();
|
|
31538
|
+
$.each($elm.find('*'), function (key, val) {
|
|
31539
|
+
let new_id = $(val).attr('xu-ui-id') + ts;
|
|
31540
|
+
elm_to_delete.push(new_id);
|
|
31541
|
+
|
|
31542
|
+
$(val).attr('xu-ui-id', new_id).removeData();
|
|
31543
|
+
});
|
|
31544
|
+
|
|
31545
|
+
// $elm.empty();
|
|
31535
31546
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
31536
31547
|
SESSION_ID,
|
|
31537
|
-
$
|
|
31548
|
+
$elm, // the wrapper
|
|
31538
31549
|
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
31539
31550
|
{},
|
|
31540
|
-
|
|
31551
|
+
elm_data.xuData.paramsP, // the wrapper params
|
|
31541
31552
|
null,
|
|
31542
31553
|
null,
|
|
31543
|
-
|
|
31554
|
+
elm_data.xuData.key, // the wrapper key
|
|
31544
31555
|
refreshed_ds, // the refreshed_ds
|
|
31545
|
-
|
|
31556
|
+
elm_data.xuData.parent_node, // the wrapper parent node
|
|
31546
31557
|
null,
|
|
31547
|
-
|
|
31558
|
+
elm_data.xuData.$root_container, // the wrapper root container
|
|
31548
31559
|
);
|
|
31549
31560
|
|
|
31561
|
+
// remove old screen content
|
|
31562
|
+
$.each(elm_to_delete, async function (key, val) {
|
|
31563
|
+
$("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
31564
|
+
});
|
|
31565
|
+
|
|
31550
31566
|
return;
|
|
31551
31567
|
}
|
|
31552
31568
|
}
|