@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.
|
@@ -34443,11 +34443,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34443
34443
|
|
|
34444
34444
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34445
34445
|
const xu_viewport = async function () {
|
|
34446
|
-
const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
34446
|
+
const data = { $div: $div.clone(true), nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
34447
34447
|
const container_id = $container.attr('xu-ui-id');
|
|
34448
34448
|
if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
34449
34449
|
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
34450
34450
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34451
|
+
} else {
|
|
34452
|
+
$div.remove();
|
|
34451
34453
|
}
|
|
34452
34454
|
UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
34453
34455
|
|
|
@@ -34528,7 +34530,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34528
34530
|
$div.addClass('skeleton');
|
|
34529
34531
|
observer_inViewport.observe($div[0]);
|
|
34530
34532
|
};
|
|
34531
|
-
await
|
|
34533
|
+
await xu_viewport_old();
|
|
34532
34534
|
} else {
|
|
34533
34535
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34534
34536
|
}
|
|
@@ -34547,8 +34549,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34547
34549
|
if (fx[nodeP.tagName]) {
|
|
34548
34550
|
return await fx[nodeP.tagName]();
|
|
34549
34551
|
}
|
|
34552
|
+
// const xu_viewport = async function () {
|
|
34553
|
+
// const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
34554
|
+
// const container_id = $container.attr('xu-ui-id');
|
|
34555
|
+
// if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
34556
|
+
// UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
34557
|
+
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34558
|
+
// }
|
|
34559
|
+
// UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
34560
|
+
// };
|
|
34550
34561
|
|
|
34562
|
+
// if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34563
|
+
// return await xu_viewport();
|
|
34564
|
+
// } else {
|
|
34551
34565
|
return await draw_html_element(nodeP.tagName);
|
|
34566
|
+
// }
|
|
34552
34567
|
};
|
|
34553
34568
|
|
|
34554
34569
|
func.UI.screen.refresh_document_changes_for_realtime_update = async function (SESSION_ID, doc_change) {
|