@xuda.io/runtime-bundle 1.0.467 → 1.0.469
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
|
@@ -9073,8 +9073,7 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
|
|
|
9073
9073
|
const _data_system = _session?.DS_GLB?.[0]?.data_system;
|
|
9074
9074
|
|
|
9075
9075
|
for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
|
|
9076
|
-
|
|
9077
|
-
if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length) {
|
|
9076
|
+
if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length && !$(`[xuPanelWrapperId='${val.xu_ui_id}`)?.length) {
|
|
9078
9077
|
delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
|
|
9079
9078
|
}
|
|
9080
9079
|
}
|
|
@@ -11974,14 +11973,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
11974
11973
|
return ret;
|
|
11975
11974
|
}
|
|
11976
11975
|
|
|
11977
|
-
// async function render_empty_panel() {
|
|
11978
|
-
// let ret_panel = $elm.append("<span>");
|
|
11979
|
-
// return { $new_div: ret_panel };
|
|
11980
|
-
// }
|
|
11981
11976
|
if (!val.value) {
|
|
11982
|
-
// return render_empty_panel();
|
|
11983
11977
|
val.value = '_empty_panel_program';
|
|
11984
|
-
// return { abort: true, program_null: true };
|
|
11985
11978
|
}
|
|
11986
11979
|
|
|
11987
11980
|
ret = await render_panel();
|
|
@@ -13085,7 +13078,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
13085
13078
|
};
|
|
13086
13079
|
var $old_panel_div = find_old_panels_elements();
|
|
13087
13080
|
const set_xuPanelData_to_the_new_rendered_items = () => {
|
|
13088
|
-
$container.data().xuPanelWrapper = { isWrapper: true,
|
|
13081
|
+
$container.data().xuPanelWrapper = { isWrapper: true, panelXuAttributes: _.clone($wrapper.data().xuAttributes), panelDivData: _.clone($wrapper.data()) };
|
|
13082
|
+
$container.attr().xuPanelWrapperId = $wrapper.attr('xu-ui-id');
|
|
13089
13083
|
$.each($wrapper.children(), function (key, val) {
|
|
13090
13084
|
if (!$(val).data().xuPanelData) {
|
|
13091
13085
|
$(val).data().xuPanelData = {};
|
|
@@ -9074,8 +9074,7 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
|
|
|
9074
9074
|
const _data_system = _session?.DS_GLB?.[0]?.data_system;
|
|
9075
9075
|
|
|
9076
9076
|
for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
|
|
9077
|
-
|
|
9078
|
-
if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length) {
|
|
9077
|
+
if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length && !$(`[xuPanelWrapperId='${val.xu_ui_id}`)?.length) {
|
|
9079
9078
|
delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
|
|
9080
9079
|
}
|
|
9081
9080
|
}
|
|
@@ -10047,14 +10046,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10047
10046
|
return ret;
|
|
10048
10047
|
}
|
|
10049
10048
|
|
|
10050
|
-
// async function render_empty_panel() {
|
|
10051
|
-
// let ret_panel = $elm.append("<span>");
|
|
10052
|
-
// return { $new_div: ret_panel };
|
|
10053
|
-
// }
|
|
10054
10049
|
if (!val.value) {
|
|
10055
|
-
// return render_empty_panel();
|
|
10056
10050
|
val.value = '_empty_panel_program';
|
|
10057
|
-
// return { abort: true, program_null: true };
|
|
10058
10051
|
}
|
|
10059
10052
|
|
|
10060
10053
|
ret = await render_panel();
|
|
@@ -11158,7 +11151,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
11158
11151
|
};
|
|
11159
11152
|
var $old_panel_div = find_old_panels_elements();
|
|
11160
11153
|
const set_xuPanelData_to_the_new_rendered_items = () => {
|
|
11161
|
-
$container.data().xuPanelWrapper = { isWrapper: true,
|
|
11154
|
+
$container.data().xuPanelWrapper = { isWrapper: true, panelXuAttributes: _.clone($wrapper.data().xuAttributes), panelDivData: _.clone($wrapper.data()) };
|
|
11155
|
+
$container.attr().xuPanelWrapperId = $wrapper.attr('xu-ui-id');
|
|
11162
11156
|
$.each($wrapper.children(), function (key, val) {
|
|
11163
11157
|
if (!$(val).data().xuPanelData) {
|
|
11164
11158
|
$(val).data().xuPanelData = {};
|