@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -11553,8 +11553,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11553
11553
|
}, 100);
|
|
11554
11554
|
return;
|
|
11555
11555
|
}
|
|
11556
|
+
UI_WORKER_OBJ.cache = {};
|
|
11556
11557
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
11557
|
-
if (
|
|
11558
|
+
if (glb.DEBUG_MODE) {
|
|
11558
11559
|
console.info('========= xu-attributes refresh info ==============');
|
|
11559
11560
|
console.info('fields_arr:', fields_arr);
|
|
11560
11561
|
}
|
|
@@ -11664,7 +11665,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11664
11665
|
};
|
|
11665
11666
|
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
|
|
11666
11667
|
|
|
11667
|
-
if (
|
|
11668
|
+
if (glb.DEBUG_MODE) {
|
|
11668
11669
|
console.log(type + '>>>', new_job, obj);
|
|
11669
11670
|
}
|
|
11670
11671
|
};
|
|
@@ -11699,7 +11700,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11699
11700
|
new_job = jobNoP;
|
|
11700
11701
|
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);
|
|
11701
11702
|
performed_render = true;
|
|
11702
|
-
if (
|
|
11703
|
+
if (glb.DEBUG_MODE) {
|
|
11703
11704
|
console.info('execute_xu_render_attributes', obj);
|
|
11704
11705
|
}
|
|
11705
11706
|
}
|
|
@@ -11754,7 +11755,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11754
11755
|
|
|
11755
11756
|
refreshed_ids.push(parent_element_ui_id);
|
|
11756
11757
|
|
|
11757
|
-
if (
|
|
11758
|
+
if (glb.DEBUG_MODE) {
|
|
11758
11759
|
console.info('execute_xu_for', obj);
|
|
11759
11760
|
}
|
|
11760
11761
|
}
|
|
@@ -11832,7 +11833,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11832
11833
|
|
|
11833
11834
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
11834
11835
|
|
|
11835
|
-
if (
|
|
11836
|
+
if (glb.DEBUG_MODE) {
|
|
11836
11837
|
console.info('===================================================');
|
|
11837
11838
|
}
|
|
11838
11839
|
};
|
|
@@ -11971,7 +11972,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
11971
11972
|
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
11972
11973
|
// });
|
|
11973
11974
|
|
|
11974
|
-
if (
|
|
11975
|
+
if (glb.DEBUG_MODE) {
|
|
11975
11976
|
console.info('========= refresh main info ==============');
|
|
11976
11977
|
console.info('reason:', refresh_reason);
|
|
11977
11978
|
console.info('element:', $elm);
|
|
@@ -12006,8 +12007,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12006
12007
|
}
|
|
12007
12008
|
}
|
|
12008
12009
|
if (found) {
|
|
12010
|
+
UI_WORKER_OBJ.cache = {};
|
|
12009
12011
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
12010
|
-
if (
|
|
12012
|
+
if (glb.DEBUG_MODE) {
|
|
12011
12013
|
console.info('========= refresh info ==============');
|
|
12012
12014
|
console.info('reason:', refresh_reason);
|
|
12013
12015
|
console.info('details:', refresh_details);
|
|
@@ -14079,8 +14081,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14079
14081
|
const _$ = function ($elm) {
|
|
14080
14082
|
try {
|
|
14081
14083
|
const id = $elm.attr('xu-ui-id');
|
|
14082
|
-
if (!id) return $elm;
|
|
14083
|
-
const $el = $(`[xu-ui-id="${id}"]`);
|
|
14084
|
+
if (!id || !glb.DEBUG_MODE) return $elm;
|
|
14085
|
+
const $el = $(`[xu-ui-id="${id}"]`);
|
|
14084
14086
|
|
|
14085
14087
|
if ($el.length > 1) {
|
|
14086
14088
|
console.warn('Multiple elements for xu-ui-id: ' + id, $el);
|
|
@@ -14772,10 +14774,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14772
14774
|
},
|
|
14773
14775
|
);
|
|
14774
14776
|
|
|
14775
|
-
// const render_child = async function () {
|
|
14776
|
-
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14777
|
-
// };
|
|
14778
|
-
|
|
14779
14777
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14780
14778
|
$div.on('inViewport', function () {
|
|
14781
14779
|
if ($div.children().length) {
|
|
@@ -14789,13 +14787,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14789
14787
|
} else {
|
|
14790
14788
|
hover_in($div);
|
|
14791
14789
|
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);
|
|
14790
|
+
//viewport_elm_height
|
|
14791
|
+
if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
14792
|
+
setTimeout(() => {
|
|
14793
|
+
$div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
14794
|
+
}, 2000);
|
|
14795
|
+
}
|
|
14792
14796
|
}
|
|
14793
14797
|
observer_outViewport.observe($div[0]);
|
|
14794
14798
|
});
|
|
14795
14799
|
|
|
14796
14800
|
$div.on('outViewport', function () {
|
|
14797
|
-
|
|
14798
|
-
|
|
14801
|
+
if ($div.children().length) {
|
|
14802
|
+
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
14803
|
+
$div.empty();
|
|
14804
|
+
}
|
|
14799
14805
|
// $div.addClass('skeleton');
|
|
14800
14806
|
observer_inViewport.observe($div[0]);
|
|
14801
14807
|
});
|
|
@@ -9261,8 +9261,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9261
9261
|
}, 100);
|
|
9262
9262
|
return;
|
|
9263
9263
|
}
|
|
9264
|
+
UI_WORKER_OBJ.cache = {};
|
|
9264
9265
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9265
|
-
if (
|
|
9266
|
+
if (glb.DEBUG_MODE) {
|
|
9266
9267
|
console.info('========= xu-attributes refresh info ==============');
|
|
9267
9268
|
console.info('fields_arr:', fields_arr);
|
|
9268
9269
|
}
|
|
@@ -9372,7 +9373,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9372
9373
|
};
|
|
9373
9374
|
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
|
|
9374
9375
|
|
|
9375
|
-
if (
|
|
9376
|
+
if (glb.DEBUG_MODE) {
|
|
9376
9377
|
console.log(type + '>>>', new_job, obj);
|
|
9377
9378
|
}
|
|
9378
9379
|
};
|
|
@@ -9407,7 +9408,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9407
9408
|
new_job = jobNoP;
|
|
9408
9409
|
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);
|
|
9409
9410
|
performed_render = true;
|
|
9410
|
-
if (
|
|
9411
|
+
if (glb.DEBUG_MODE) {
|
|
9411
9412
|
console.info('execute_xu_render_attributes', obj);
|
|
9412
9413
|
}
|
|
9413
9414
|
}
|
|
@@ -9462,7 +9463,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9462
9463
|
|
|
9463
9464
|
refreshed_ids.push(parent_element_ui_id);
|
|
9464
9465
|
|
|
9465
|
-
if (
|
|
9466
|
+
if (glb.DEBUG_MODE) {
|
|
9466
9467
|
console.info('execute_xu_for', obj);
|
|
9467
9468
|
}
|
|
9468
9469
|
}
|
|
@@ -9540,7 +9541,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9540
9541
|
|
|
9541
9542
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
9542
9543
|
|
|
9543
|
-
if (
|
|
9544
|
+
if (glb.DEBUG_MODE) {
|
|
9544
9545
|
console.info('===================================================');
|
|
9545
9546
|
}
|
|
9546
9547
|
};
|
|
@@ -9679,7 +9680,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9679
9680
|
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
9680
9681
|
// });
|
|
9681
9682
|
|
|
9682
|
-
if (
|
|
9683
|
+
if (glb.DEBUG_MODE) {
|
|
9683
9684
|
console.info('========= refresh main info ==============');
|
|
9684
9685
|
console.info('reason:', refresh_reason);
|
|
9685
9686
|
console.info('element:', $elm);
|
|
@@ -9714,8 +9715,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9714
9715
|
}
|
|
9715
9716
|
}
|
|
9716
9717
|
if (found) {
|
|
9718
|
+
UI_WORKER_OBJ.cache = {};
|
|
9717
9719
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9718
|
-
if (
|
|
9720
|
+
if (glb.DEBUG_MODE) {
|
|
9719
9721
|
console.info('========= refresh info ==============');
|
|
9720
9722
|
console.info('reason:', refresh_reason);
|
|
9721
9723
|
console.info('details:', refresh_details);
|
|
@@ -11787,8 +11789,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11787
11789
|
const _$ = function ($elm) {
|
|
11788
11790
|
try {
|
|
11789
11791
|
const id = $elm.attr('xu-ui-id');
|
|
11790
|
-
if (!id) return $elm;
|
|
11791
|
-
const $el = $(`[xu-ui-id="${id}"]`);
|
|
11792
|
+
if (!id || !glb.DEBUG_MODE) return $elm;
|
|
11793
|
+
const $el = $(`[xu-ui-id="${id}"]`);
|
|
11792
11794
|
|
|
11793
11795
|
if ($el.length > 1) {
|
|
11794
11796
|
console.warn('Multiple elements for xu-ui-id: ' + id, $el);
|
|
@@ -12480,10 +12482,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12480
12482
|
},
|
|
12481
12483
|
);
|
|
12482
12484
|
|
|
12483
|
-
// const render_child = async function () {
|
|
12484
|
-
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12485
|
-
// };
|
|
12486
|
-
|
|
12487
12485
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12488
12486
|
$div.on('inViewport', function () {
|
|
12489
12487
|
if ($div.children().length) {
|
|
@@ -12497,13 +12495,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12497
12495
|
} else {
|
|
12498
12496
|
hover_in($div);
|
|
12499
12497
|
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);
|
|
12498
|
+
//viewport_elm_height
|
|
12499
|
+
if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
12500
|
+
setTimeout(() => {
|
|
12501
|
+
$div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
12502
|
+
}, 2000);
|
|
12503
|
+
}
|
|
12500
12504
|
}
|
|
12501
12505
|
observer_outViewport.observe($div[0]);
|
|
12502
12506
|
});
|
|
12503
12507
|
|
|
12504
12508
|
$div.on('outViewport', function () {
|
|
12505
|
-
|
|
12506
|
-
|
|
12509
|
+
if ($div.children().length) {
|
|
12510
|
+
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
12511
|
+
$div.empty();
|
|
12512
|
+
}
|
|
12507
12513
|
// $div.addClass('skeleton');
|
|
12508
12514
|
observer_inViewport.observe($div[0]);
|
|
12509
12515
|
});
|