@xuda.io/runtime-bundle 1.0.853 → 1.0.855
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
|
@@ -11555,7 +11555,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11555
11555
|
}
|
|
11556
11556
|
UI_WORKER_OBJ.cache = {};
|
|
11557
11557
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
11558
|
-
if (
|
|
11558
|
+
if (glb.DEBUG_MODE) {
|
|
11559
11559
|
console.info('========= xu-attributes refresh info ==============');
|
|
11560
11560
|
console.info('fields_arr:', fields_arr);
|
|
11561
11561
|
}
|
|
@@ -11665,7 +11665,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11665
11665
|
};
|
|
11666
11666
|
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
|
|
11667
11667
|
|
|
11668
|
-
if (
|
|
11668
|
+
if (glb.DEBUG_MODE) {
|
|
11669
11669
|
console.log(type + '>>>', new_job, obj);
|
|
11670
11670
|
}
|
|
11671
11671
|
};
|
|
@@ -11700,7 +11700,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11700
11700
|
new_job = jobNoP;
|
|
11701
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);
|
|
11702
11702
|
performed_render = true;
|
|
11703
|
-
if (
|
|
11703
|
+
if (glb.DEBUG_MODE) {
|
|
11704
11704
|
console.info('execute_xu_render_attributes', obj);
|
|
11705
11705
|
}
|
|
11706
11706
|
}
|
|
@@ -11755,7 +11755,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11755
11755
|
|
|
11756
11756
|
refreshed_ids.push(parent_element_ui_id);
|
|
11757
11757
|
|
|
11758
|
-
if (
|
|
11758
|
+
if (glb.DEBUG_MODE) {
|
|
11759
11759
|
console.info('execute_xu_for', obj);
|
|
11760
11760
|
}
|
|
11761
11761
|
}
|
|
@@ -11833,7 +11833,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11833
11833
|
|
|
11834
11834
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
11835
11835
|
|
|
11836
|
-
if (
|
|
11836
|
+
if (glb.DEBUG_MODE) {
|
|
11837
11837
|
console.info('===================================================');
|
|
11838
11838
|
}
|
|
11839
11839
|
};
|
|
@@ -11972,7 +11972,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
11972
11972
|
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
11973
11973
|
// });
|
|
11974
11974
|
|
|
11975
|
-
if (
|
|
11975
|
+
if (glb.DEBUG_MODE) {
|
|
11976
11976
|
console.info('========= refresh main info ==============');
|
|
11977
11977
|
console.info('reason:', refresh_reason);
|
|
11978
11978
|
console.info('element:', $elm);
|
|
@@ -12009,7 +12009,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12009
12009
|
if (found) {
|
|
12010
12010
|
UI_WORKER_OBJ.cache = {};
|
|
12011
12011
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
12012
|
-
if (
|
|
12012
|
+
if (glb.DEBUG_MODE) {
|
|
12013
12013
|
console.info('========= refresh info ==============');
|
|
12014
12014
|
console.info('reason:', refresh_reason);
|
|
12015
12015
|
console.info('details:', refresh_details);
|
|
@@ -14081,8 +14081,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14081
14081
|
const _$ = function ($elm) {
|
|
14082
14082
|
try {
|
|
14083
14083
|
const id = $elm.attr('xu-ui-id');
|
|
14084
|
-
if (!id) return $elm;
|
|
14085
|
-
const $el = $(`[xu-ui-id="${id}"]`);
|
|
14084
|
+
if (!id || !glb.DEBUG_MODE) return $elm;
|
|
14085
|
+
const $el = $(`[xu-ui-id="${id}"]`);
|
|
14086
14086
|
|
|
14087
14087
|
if ($el.length > 1) {
|
|
14088
14088
|
console.warn('Multiple elements for xu-ui-id: ' + id, $el);
|
|
@@ -14774,11 +14774,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14774
14774
|
},
|
|
14775
14775
|
);
|
|
14776
14776
|
|
|
14777
|
-
// const render_child = async function () {
|
|
14778
|
-
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14779
|
-
// };
|
|
14780
|
-
|
|
14781
14777
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14778
|
+
if ($div.parent().data().xuData.viewport_elm_height) {
|
|
14779
|
+
$div.css(height, $div.parent().data().xuData.viewport_elm_height);
|
|
14780
|
+
}
|
|
14781
|
+
|
|
14782
14782
|
$div.on('inViewport', function () {
|
|
14783
14783
|
if ($div.children().length) {
|
|
14784
14784
|
$div.removeClass('skeleton');
|
|
@@ -14791,6 +14791,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14791
14791
|
} else {
|
|
14792
14792
|
hover_in($div);
|
|
14793
14793
|
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);
|
|
14794
|
+
//viewport_elm_height
|
|
14795
|
+
if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
14796
|
+
setTimeout(() => {
|
|
14797
|
+
$div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
14798
|
+
}, 2000);
|
|
14799
|
+
}
|
|
14794
14800
|
}
|
|
14795
14801
|
observer_outViewport.observe($div[0]);
|
|
14796
14802
|
});
|
|
@@ -9263,7 +9263,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9263
9263
|
}
|
|
9264
9264
|
UI_WORKER_OBJ.cache = {};
|
|
9265
9265
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9266
|
-
if (
|
|
9266
|
+
if (glb.DEBUG_MODE) {
|
|
9267
9267
|
console.info('========= xu-attributes refresh info ==============');
|
|
9268
9268
|
console.info('fields_arr:', fields_arr);
|
|
9269
9269
|
}
|
|
@@ -9373,7 +9373,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9373
9373
|
};
|
|
9374
9374
|
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
|
|
9375
9375
|
|
|
9376
|
-
if (
|
|
9376
|
+
if (glb.DEBUG_MODE) {
|
|
9377
9377
|
console.log(type + '>>>', new_job, obj);
|
|
9378
9378
|
}
|
|
9379
9379
|
};
|
|
@@ -9408,7 +9408,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9408
9408
|
new_job = jobNoP;
|
|
9409
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);
|
|
9410
9410
|
performed_render = true;
|
|
9411
|
-
if (
|
|
9411
|
+
if (glb.DEBUG_MODE) {
|
|
9412
9412
|
console.info('execute_xu_render_attributes', obj);
|
|
9413
9413
|
}
|
|
9414
9414
|
}
|
|
@@ -9463,7 +9463,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9463
9463
|
|
|
9464
9464
|
refreshed_ids.push(parent_element_ui_id);
|
|
9465
9465
|
|
|
9466
|
-
if (
|
|
9466
|
+
if (glb.DEBUG_MODE) {
|
|
9467
9467
|
console.info('execute_xu_for', obj);
|
|
9468
9468
|
}
|
|
9469
9469
|
}
|
|
@@ -9541,7 +9541,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9541
9541
|
|
|
9542
9542
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
9543
9543
|
|
|
9544
|
-
if (
|
|
9544
|
+
if (glb.DEBUG_MODE) {
|
|
9545
9545
|
console.info('===================================================');
|
|
9546
9546
|
}
|
|
9547
9547
|
};
|
|
@@ -9680,7 +9680,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9680
9680
|
// $("[xu-ui-id='" + elm_to_delete + "']").remove();
|
|
9681
9681
|
// });
|
|
9682
9682
|
|
|
9683
|
-
if (
|
|
9683
|
+
if (glb.DEBUG_MODE) {
|
|
9684
9684
|
console.info('========= refresh main info ==============');
|
|
9685
9685
|
console.info('reason:', refresh_reason);
|
|
9686
9686
|
console.info('element:', $elm);
|
|
@@ -9717,7 +9717,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9717
9717
|
if (found) {
|
|
9718
9718
|
UI_WORKER_OBJ.cache = {};
|
|
9719
9719
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
9720
|
-
if (
|
|
9720
|
+
if (glb.DEBUG_MODE) {
|
|
9721
9721
|
console.info('========= refresh info ==============');
|
|
9722
9722
|
console.info('reason:', refresh_reason);
|
|
9723
9723
|
console.info('details:', refresh_details);
|
|
@@ -11789,8 +11789,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11789
11789
|
const _$ = function ($elm) {
|
|
11790
11790
|
try {
|
|
11791
11791
|
const id = $elm.attr('xu-ui-id');
|
|
11792
|
-
if (!id) return $elm;
|
|
11793
|
-
const $el = $(`[xu-ui-id="${id}"]`);
|
|
11792
|
+
if (!id || !glb.DEBUG_MODE) return $elm;
|
|
11793
|
+
const $el = $(`[xu-ui-id="${id}"]`);
|
|
11794
11794
|
|
|
11795
11795
|
if ($el.length > 1) {
|
|
11796
11796
|
console.warn('Multiple elements for xu-ui-id: ' + id, $el);
|
|
@@ -12482,11 +12482,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12482
12482
|
},
|
|
12483
12483
|
);
|
|
12484
12484
|
|
|
12485
|
-
// const render_child = async function () {
|
|
12486
|
-
// await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12487
|
-
// };
|
|
12488
|
-
|
|
12489
12485
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12486
|
+
if ($div.parent().data().xuData.viewport_elm_height) {
|
|
12487
|
+
$div.css(height, $div.parent().data().xuData.viewport_elm_height);
|
|
12488
|
+
}
|
|
12489
|
+
|
|
12490
12490
|
$div.on('inViewport', function () {
|
|
12491
12491
|
if ($div.children().length) {
|
|
12492
12492
|
$div.removeClass('skeleton');
|
|
@@ -12499,6 +12499,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12499
12499
|
} else {
|
|
12500
12500
|
hover_in($div);
|
|
12501
12501
|
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);
|
|
12502
|
+
//viewport_elm_height
|
|
12503
|
+
if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
12504
|
+
setTimeout(() => {
|
|
12505
|
+
$div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
12506
|
+
}, 2000);
|
|
12507
|
+
}
|
|
12502
12508
|
}
|
|
12503
12509
|
observer_outViewport.observe($div[0]);
|
|
12504
12510
|
});
|