@xuda.io/runtime-bundle 1.0.863 → 1.0.865
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
|
@@ -14776,11 +14776,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14776
14776
|
|
|
14777
14777
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14778
14778
|
const xu_viewport = async function () {
|
|
14779
|
-
const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
14779
|
+
const data = { $div: $div.clone(true), nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
14780
14780
|
const container_id = $container.attr('xu-ui-id');
|
|
14781
14781
|
if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
14782
14782
|
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
14783
14783
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14784
|
+
} else {
|
|
14785
|
+
$div.remove();
|
|
14784
14786
|
}
|
|
14785
14787
|
UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
14786
14788
|
|
|
@@ -14861,7 +14863,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14861
14863
|
$div.addClass('skeleton');
|
|
14862
14864
|
observer_inViewport.observe($div[0]);
|
|
14863
14865
|
};
|
|
14864
|
-
await
|
|
14866
|
+
await xu_viewport_old();
|
|
14865
14867
|
} else {
|
|
14866
14868
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14867
14869
|
}
|
|
@@ -14880,8 +14882,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14880
14882
|
if (fx[nodeP.tagName]) {
|
|
14881
14883
|
return await fx[nodeP.tagName]();
|
|
14882
14884
|
}
|
|
14885
|
+
// const xu_viewport = async function () {
|
|
14886
|
+
// const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
14887
|
+
// const container_id = $container.attr('xu-ui-id');
|
|
14888
|
+
// if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
14889
|
+
// UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
14890
|
+
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14891
|
+
// }
|
|
14892
|
+
// UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
14893
|
+
// };
|
|
14883
14894
|
|
|
14895
|
+
// if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14896
|
+
// return await xu_viewport();
|
|
14897
|
+
// } else {
|
|
14884
14898
|
return await draw_html_element(nodeP.tagName);
|
|
14899
|
+
// }
|
|
14885
14900
|
};
|
|
14886
14901
|
|
|
14887
14902
|
func.UI.screen.refresh_document_changes_for_realtime_update = async function (SESSION_ID, doc_change) {
|
|
@@ -12484,11 +12484,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12484
12484
|
|
|
12485
12485
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12486
12486
|
const xu_viewport = async function () {
|
|
12487
|
-
const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
12487
|
+
const data = { $div: $div.clone(true), nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
12488
12488
|
const container_id = $container.attr('xu-ui-id');
|
|
12489
12489
|
if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
12490
12490
|
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
12491
12491
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12492
|
+
} else {
|
|
12493
|
+
$div.remove();
|
|
12492
12494
|
}
|
|
12493
12495
|
UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
12494
12496
|
|
|
@@ -12569,7 +12571,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12569
12571
|
$div.addClass('skeleton');
|
|
12570
12572
|
observer_inViewport.observe($div[0]);
|
|
12571
12573
|
};
|
|
12572
|
-
await
|
|
12574
|
+
await xu_viewport_old();
|
|
12573
12575
|
} else {
|
|
12574
12576
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12575
12577
|
}
|
|
@@ -12588,8 +12590,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12588
12590
|
if (fx[nodeP.tagName]) {
|
|
12589
12591
|
return await fx[nodeP.tagName]();
|
|
12590
12592
|
}
|
|
12593
|
+
// const xu_viewport = async function () {
|
|
12594
|
+
// const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
12595
|
+
// const container_id = $container.attr('xu-ui-id');
|
|
12596
|
+
// if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
12597
|
+
// UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
12598
|
+
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12599
|
+
// }
|
|
12600
|
+
// UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
12601
|
+
// };
|
|
12591
12602
|
|
|
12603
|
+
// if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12604
|
+
// return await xu_viewport();
|
|
12605
|
+
// } else {
|
|
12592
12606
|
return await draw_html_element(nodeP.tagName);
|
|
12607
|
+
// }
|
|
12593
12608
|
};
|
|
12594
12609
|
|
|
12595
12610
|
func.UI.screen.refresh_document_changes_for_realtime_update = async function (SESSION_ID, doc_change) {
|