@xuda.io/runtime-bundle 1.0.852 → 1.0.854
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.
|
@@ -31220,8 +31220,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31220
31220
|
}, 100);
|
|
31221
31221
|
return;
|
|
31222
31222
|
}
|
|
31223
|
+
UI_WORKER_OBJ.cache = {};
|
|
31223
31224
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
31224
|
-
if (
|
|
31225
|
+
if (glb.DEBUG_MODE) {
|
|
31225
31226
|
console.info('========= xu-attributes refresh info ==============');
|
|
31226
31227
|
console.info('fields_arr:', fields_arr);
|
|
31227
31228
|
}
|
|
@@ -31331,7 +31332,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31331
31332
|
};
|
|
31332
31333
|
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
|
|
31333
31334
|
|
|
31334
|
-
if (
|
|
31335
|
+
if (glb.DEBUG_MODE) {
|
|
31335
31336
|
console.log(type + '>>>', new_job, obj);
|
|
31336
31337
|
}
|
|
31337
31338
|
};
|
|
@@ -31366,7 +31367,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31366
31367
|
new_job = jobNoP;
|
|
31367
31368
|
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31368
31369
|
performed_render = true;
|
|
31369
|
-
if (
|
|
31370
|
+
if (glb.DEBUG_MODE) {
|
|
31370
31371
|
console.info('execute_xu_render_attributes', obj);
|
|
31371
31372
|
}
|
|
31372
31373
|
}
|
|
@@ -31421,7 +31422,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31421
31422
|
|
|
31422
31423
|
refreshed_ids.push(parent_element_ui_id);
|
|
31423
31424
|
|
|
31424
|
-
if (
|
|
31425
|
+
if (glb.DEBUG_MODE) {
|
|
31425
31426
|
console.info('execute_xu_for', obj);
|
|
31426
31427
|
}
|
|
31427
31428
|
}
|
|
@@ -31499,7 +31500,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31499
31500
|
|
|
31500
31501
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
31501
31502
|
|
|
31502
|
-
if (
|
|
31503
|
+
if (glb.DEBUG_MODE) {
|
|
31503
31504
|
console.info('===================================================');
|
|
31504
31505
|
}
|
|
31505
31506
|
};
|
|
@@ -31638,7 +31639,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31638
31639
|
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
31639
31640
|
// });
|
|
31640
31641
|
|
|
31641
|
-
if (
|
|
31642
|
+
if (glb.DEBUG_MODE) {
|
|
31642
31643
|
console.info('========= refresh main info ==============');
|
|
31643
31644
|
console.info('reason:', refresh_reason);
|
|
31644
31645
|
console.info('element:', $elm);
|
|
@@ -31673,8 +31674,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31673
31674
|
}
|
|
31674
31675
|
}
|
|
31675
31676
|
if (found) {
|
|
31677
|
+
UI_WORKER_OBJ.cache = {};
|
|
31676
31678
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
31677
|
-
if (
|
|
31679
|
+
if (glb.DEBUG_MODE) {
|
|
31678
31680
|
console.info('========= refresh info ==============');
|
|
31679
31681
|
console.info('reason:', refresh_reason);
|
|
31680
31682
|
console.info('details:', refresh_details);
|
|
@@ -33746,8 +33748,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
33746
33748
|
const _$ = function ($elm) {
|
|
33747
33749
|
try {
|
|
33748
33750
|
const id = $elm.attr('xu-ui-id');
|
|
33749
|
-
if (!id) return $elm;
|
|
33750
|
-
const $el = $(`[xu-ui-id="${id}"]`);
|
|
33751
|
+
if (!id || !glb.DEBUG_MODE) return $elm;
|
|
33752
|
+
const $el = $(`[xu-ui-id="${id}"]`);
|
|
33751
33753
|
|
|
33752
33754
|
if ($el.length > 1) {
|
|
33753
33755
|
console.warn('Multiple elements for xu-ui-id: ' + id, $el);
|
|
@@ -34439,10 +34441,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34439
34441
|
},
|
|
34440
34442
|
);
|
|
34441
34443
|
|
|
34442
|
-
// const render_child = async function () {
|
|
34443
|
-
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34444
|
-
// };
|
|
34445
|
-
|
|
34446
34444
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34447
34445
|
$div.on('inViewport', function () {
|
|
34448
34446
|
if ($div.children().length) {
|
|
@@ -34456,13 +34454,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34456
34454
|
} else {
|
|
34457
34455
|
hover_in($div);
|
|
34458
34456
|
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
|
|
34457
|
+
//viewport_elm_height
|
|
34458
|
+
if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
34459
|
+
setTimeout(() => {
|
|
34460
|
+
$div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
34461
|
+
}, 2000);
|
|
34462
|
+
}
|
|
34459
34463
|
}
|
|
34460
34464
|
observer_outViewport.observe($div[0]);
|
|
34461
34465
|
});
|
|
34462
34466
|
|
|
34463
34467
|
$div.on('outViewport', function () {
|
|
34464
|
-
|
|
34465
|
-
|
|
34468
|
+
if ($div.children().length) {
|
|
34469
|
+
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
34470
|
+
$div.empty();
|
|
34471
|
+
}
|
|
34466
34472
|
// $div.addClass('skeleton');
|
|
34467
34473
|
observer_inViewport.observe($div[0]);
|
|
34468
34474
|
});
|