@xuda.io/runtime-bundle 1.0.959 → 1.0.961
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
|
@@ -13742,13 +13742,45 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
13742
13742
|
await before_record_function();
|
|
13743
13743
|
}
|
|
13744
13744
|
if (nodeP?.children?.length) {
|
|
13745
|
-
|
|
13746
|
-
|
|
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
|
+
);
|
|
13747
13753
|
}
|
|
13754
|
+
await Promise.all(node_promises);
|
|
13748
13755
|
}
|
|
13749
13756
|
return await done($divP);
|
|
13750
13757
|
};
|
|
13751
13758
|
|
|
13759
|
+
// const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
|
|
13760
|
+
// if (!is_mobile && nodeP.busy) return;
|
|
13761
|
+
// nodeP.busy = true;
|
|
13762
|
+
// const done = async function ($divP) {
|
|
13763
|
+
// setTimeout(function () {
|
|
13764
|
+
// nodeP.busy = false;
|
|
13765
|
+
// }, 1000);
|
|
13766
|
+
|
|
13767
|
+
// return $divP;
|
|
13768
|
+
// };
|
|
13769
|
+
// if (!nodeP || !nodeP.children) {
|
|
13770
|
+
// return await done($divP);
|
|
13771
|
+
// }
|
|
13772
|
+
|
|
13773
|
+
// if (before_record_function) {
|
|
13774
|
+
// await before_record_function();
|
|
13775
|
+
// }
|
|
13776
|
+
// if (nodeP?.children?.length) {
|
|
13777
|
+
// for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
13778
|
+
// 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);
|
|
13779
|
+
// }
|
|
13780
|
+
// }
|
|
13781
|
+
// return await done($divP);
|
|
13782
|
+
// };
|
|
13783
|
+
|
|
13752
13784
|
const _$ = function ($elm) {
|
|
13753
13785
|
try {
|
|
13754
13786
|
const id = $elm.attr('xu-ui-id');
|
|
@@ -14396,17 +14428,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14396
14428
|
$div.hover(
|
|
14397
14429
|
function (e) {
|
|
14398
14430
|
hover_in($div, e);
|
|
14399
|
-
// func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
|
|
14400
14431
|
},
|
|
14401
14432
|
function (e) {
|
|
14402
|
-
// func.UI.screen.hover_out(SESSION_ID, $container, is_skeleton, paramsP);
|
|
14403
14433
|
hover_out();
|
|
14404
14434
|
},
|
|
14405
14435
|
);
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14436
|
+
if (paramsP.paramsP === 'grid' || parent_infoP?.iterate_info) {
|
|
14437
|
+
$div.on('click contextmenu', function (e) {
|
|
14438
|
+
hover_in($div, e);
|
|
14439
|
+
});
|
|
14440
|
+
}
|
|
14410
14441
|
|
|
14411
14442
|
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
|
|
14412
14443
|
if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) return await done();
|
|
@@ -11469,13 +11469,45 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11469
11469
|
await before_record_function();
|
|
11470
11470
|
}
|
|
11471
11471
|
if (nodeP?.children?.length) {
|
|
11472
|
-
|
|
11473
|
-
|
|
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
|
+
);
|
|
11474
11480
|
}
|
|
11481
|
+
await Promise.all(node_promises);
|
|
11475
11482
|
}
|
|
11476
11483
|
return await done($divP);
|
|
11477
11484
|
};
|
|
11478
11485
|
|
|
11486
|
+
// const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
|
|
11487
|
+
// if (!is_mobile && nodeP.busy) return;
|
|
11488
|
+
// nodeP.busy = true;
|
|
11489
|
+
// const done = async function ($divP) {
|
|
11490
|
+
// setTimeout(function () {
|
|
11491
|
+
// nodeP.busy = false;
|
|
11492
|
+
// }, 1000);
|
|
11493
|
+
|
|
11494
|
+
// return $divP;
|
|
11495
|
+
// };
|
|
11496
|
+
// if (!nodeP || !nodeP.children) {
|
|
11497
|
+
// return await done($divP);
|
|
11498
|
+
// }
|
|
11499
|
+
|
|
11500
|
+
// if (before_record_function) {
|
|
11501
|
+
// await before_record_function();
|
|
11502
|
+
// }
|
|
11503
|
+
// if (nodeP?.children?.length) {
|
|
11504
|
+
// for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
11505
|
+
// 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);
|
|
11506
|
+
// }
|
|
11507
|
+
// }
|
|
11508
|
+
// return await done($divP);
|
|
11509
|
+
// };
|
|
11510
|
+
|
|
11479
11511
|
const _$ = function ($elm) {
|
|
11480
11512
|
try {
|
|
11481
11513
|
const id = $elm.attr('xu-ui-id');
|
|
@@ -12123,17 +12155,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12123
12155
|
$div.hover(
|
|
12124
12156
|
function (e) {
|
|
12125
12157
|
hover_in($div, e);
|
|
12126
|
-
// func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
|
|
12127
12158
|
},
|
|
12128
12159
|
function (e) {
|
|
12129
|
-
// func.UI.screen.hover_out(SESSION_ID, $container, is_skeleton, paramsP);
|
|
12130
12160
|
hover_out();
|
|
12131
12161
|
},
|
|
12132
12162
|
);
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12163
|
+
if (paramsP.paramsP === 'grid' || parent_infoP?.iterate_info) {
|
|
12164
|
+
$div.on('click contextmenu', function (e) {
|
|
12165
|
+
hover_in($div, e);
|
|
12166
|
+
});
|
|
12167
|
+
}
|
|
12137
12168
|
|
|
12138
12169
|
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
|
|
12139
12170
|
if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) return await done();
|