@xuda.io/runtime-bundle 1.0.958 → 1.0.960
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
|
@@ -11327,13 +11327,14 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
11327
11327
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
11328
11328
|
};
|
|
11329
11329
|
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11330
|
+
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
11331
|
+
// let dom to finish
|
|
11332
|
+
setTimeout(() => {
|
|
11333
|
+
func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
|
|
11334
|
+
}, 100);
|
|
11335
|
+
return;
|
|
11336
|
+
}
|
|
11337
|
+
|
|
11337
11338
|
UI_WORKER_OBJ.cache = {};
|
|
11338
11339
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
11339
11340
|
if (glb.DEBUG_MODE) {
|
|
@@ -11451,11 +11452,10 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11451
11452
|
|
|
11452
11453
|
get_selectors();
|
|
11453
11454
|
// console.log('selectors>>>>', selectors);
|
|
11454
|
-
|
|
11455
|
+
|
|
11455
11456
|
for await (let [elem_key, elem_val] of Object.entries(selectors)) {
|
|
11456
11457
|
if (elem_key === 'length') break;
|
|
11457
|
-
|
|
11458
|
-
// if (!xu_ui_id) continue;
|
|
11458
|
+
|
|
11459
11459
|
if (!elem_val.$elm.data().xuData) continue;
|
|
11460
11460
|
if (elem_val.$elm.data().xuData.pending_to_delete) continue;
|
|
11461
11461
|
|
|
@@ -11510,7 +11510,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11510
11510
|
|
|
11511
11511
|
// mark children items ignore list
|
|
11512
11512
|
$.each(elem_val.$elm.find('*'), function (key, val) {
|
|
11513
|
-
// children_items_ignore_list.push($(val).attr('xu-ui-id'));
|
|
11514
11513
|
if ($(val).data().xuData) {
|
|
11515
11514
|
$(val).data().xuData.pending_to_delete = true;
|
|
11516
11515
|
}
|
|
@@ -11538,9 +11537,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11538
11537
|
for await (let [elem_key, elem_val] of Object.entries(selectors)) {
|
|
11539
11538
|
if (elem_key === 'length') break;
|
|
11540
11539
|
|
|
11541
|
-
// const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
|
|
11542
|
-
// if (!xu_ui_id) continue;
|
|
11543
|
-
// if (children_items_ignore_list.includes(xu_ui_id)) continue;
|
|
11544
11540
|
if (!elem_val.$elm.data().xuData) continue;
|
|
11545
11541
|
if (elem_val.$elm.data().xuData.pending_to_delete) continue;
|
|
11546
11542
|
|
|
@@ -13746,12 +13742,43 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
13746
13742
|
await before_record_function();
|
|
13747
13743
|
}
|
|
13748
13744
|
if (nodeP?.children?.length) {
|
|
13749
|
-
|
|
13750
|
-
|
|
13745
|
+
let node_promises = [];
|
|
13746
|
+
for (const [key, val] of Object.entries(nodeP.children)) {
|
|
13747
|
+
node_promises.push(
|
|
13748
|
+
new Promise(async (resolve, reject) => {
|
|
13749
|
+
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
13750
|
+
resolve();
|
|
13751
|
+
}),
|
|
13752
|
+
);
|
|
13751
13753
|
}
|
|
13754
|
+
await Promise.all(node_promises);
|
|
13752
13755
|
}
|
|
13753
13756
|
return await done($divP);
|
|
13754
13757
|
};
|
|
13758
|
+
// const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
|
|
13759
|
+
// if (!is_mobile && nodeP.busy) return;
|
|
13760
|
+
// nodeP.busy = true;
|
|
13761
|
+
// const done = async function ($divP) {
|
|
13762
|
+
// setTimeout(function () {
|
|
13763
|
+
// nodeP.busy = false;
|
|
13764
|
+
// }, 1000);
|
|
13765
|
+
|
|
13766
|
+
// return $divP;
|
|
13767
|
+
// };
|
|
13768
|
+
// if (!nodeP || !nodeP.children) {
|
|
13769
|
+
// return await done($divP);
|
|
13770
|
+
// }
|
|
13771
|
+
|
|
13772
|
+
// if (before_record_function) {
|
|
13773
|
+
// await before_record_function();
|
|
13774
|
+
// }
|
|
13775
|
+
// if (nodeP?.children?.length) {
|
|
13776
|
+
// for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
13777
|
+
// const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
13778
|
+
// }
|
|
13779
|
+
// }
|
|
13780
|
+
// return await done($divP);
|
|
13781
|
+
// };
|
|
13755
13782
|
|
|
13756
13783
|
const _$ = function ($elm) {
|
|
13757
13784
|
try {
|
|
@@ -9054,13 +9054,14 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
9054
9054
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
9055
9055
|
};
|
|
9056
9056
|
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9057
|
+
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
9058
|
+
// let dom to finish
|
|
9059
|
+
setTimeout(() => {
|
|
9060
|
+
func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
|
|
9061
|
+
}, 100);
|
|
9062
|
+
return;
|
|
9063
|
+
}
|
|
9064
|
+
|
|
9064
9065
|
UI_WORKER_OBJ.cache = {};
|
|
9065
9066
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9066
9067
|
if (glb.DEBUG_MODE) {
|
|
@@ -9178,11 +9179,10 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9178
9179
|
|
|
9179
9180
|
get_selectors();
|
|
9180
9181
|
// console.log('selectors>>>>', selectors);
|
|
9181
|
-
|
|
9182
|
+
|
|
9182
9183
|
for await (let [elem_key, elem_val] of Object.entries(selectors)) {
|
|
9183
9184
|
if (elem_key === 'length') break;
|
|
9184
|
-
|
|
9185
|
-
// if (!xu_ui_id) continue;
|
|
9185
|
+
|
|
9186
9186
|
if (!elem_val.$elm.data().xuData) continue;
|
|
9187
9187
|
if (elem_val.$elm.data().xuData.pending_to_delete) continue;
|
|
9188
9188
|
|
|
@@ -9237,7 +9237,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9237
9237
|
|
|
9238
9238
|
// mark children items ignore list
|
|
9239
9239
|
$.each(elem_val.$elm.find('*'), function (key, val) {
|
|
9240
|
-
// children_items_ignore_list.push($(val).attr('xu-ui-id'));
|
|
9241
9240
|
if ($(val).data().xuData) {
|
|
9242
9241
|
$(val).data().xuData.pending_to_delete = true;
|
|
9243
9242
|
}
|
|
@@ -9265,9 +9264,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9265
9264
|
for await (let [elem_key, elem_val] of Object.entries(selectors)) {
|
|
9266
9265
|
if (elem_key === 'length') break;
|
|
9267
9266
|
|
|
9268
|
-
// const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
|
|
9269
|
-
// if (!xu_ui_id) continue;
|
|
9270
|
-
// if (children_items_ignore_list.includes(xu_ui_id)) continue;
|
|
9271
9267
|
if (!elem_val.$elm.data().xuData) continue;
|
|
9272
9268
|
if (elem_val.$elm.data().xuData.pending_to_delete) continue;
|
|
9273
9269
|
|
|
@@ -11473,12 +11469,43 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11473
11469
|
await before_record_function();
|
|
11474
11470
|
}
|
|
11475
11471
|
if (nodeP?.children?.length) {
|
|
11476
|
-
|
|
11477
|
-
|
|
11472
|
+
let node_promises = [];
|
|
11473
|
+
for (const [key, val] of Object.entries(nodeP.children)) {
|
|
11474
|
+
node_promises.push(
|
|
11475
|
+
new Promise(async (resolve, reject) => {
|
|
11476
|
+
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
11477
|
+
resolve();
|
|
11478
|
+
}),
|
|
11479
|
+
);
|
|
11478
11480
|
}
|
|
11481
|
+
await Promise.all(node_promises);
|
|
11479
11482
|
}
|
|
11480
11483
|
return await done($divP);
|
|
11481
11484
|
};
|
|
11485
|
+
// const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
|
|
11486
|
+
// if (!is_mobile && nodeP.busy) return;
|
|
11487
|
+
// nodeP.busy = true;
|
|
11488
|
+
// const done = async function ($divP) {
|
|
11489
|
+
// setTimeout(function () {
|
|
11490
|
+
// nodeP.busy = false;
|
|
11491
|
+
// }, 1000);
|
|
11492
|
+
|
|
11493
|
+
// return $divP;
|
|
11494
|
+
// };
|
|
11495
|
+
// if (!nodeP || !nodeP.children) {
|
|
11496
|
+
// return await done($divP);
|
|
11497
|
+
// }
|
|
11498
|
+
|
|
11499
|
+
// if (before_record_function) {
|
|
11500
|
+
// await before_record_function();
|
|
11501
|
+
// }
|
|
11502
|
+
// if (nodeP?.children?.length) {
|
|
11503
|
+
// for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
11504
|
+
// const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
11505
|
+
// }
|
|
11506
|
+
// }
|
|
11507
|
+
// return await done($divP);
|
|
11508
|
+
// };
|
|
11482
11509
|
|
|
11483
11510
|
const _$ = function ($elm) {
|
|
11484
11511
|
try {
|