@xuda.io/runtime-bundle 1.0.839 → 1.0.841
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
|
@@ -14097,7 +14097,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14097
14097
|
};
|
|
14098
14098
|
|
|
14099
14099
|
const hover_in = function ($div) {
|
|
14100
|
-
if (is_skeleton || EXP_BUSY) return;
|
|
14100
|
+
if (is_skeleton || EXP_BUSY || UI_WORKER_OBJ.jobs.length) return;
|
|
14101
14101
|
CLIENT_ACTIVITY_TS = Date.now();
|
|
14102
14102
|
if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
|
|
14103
14103
|
if (!_ds) return;
|
|
@@ -14107,7 +14107,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14107
14107
|
attributes[attr.name] = attr.value;
|
|
14108
14108
|
});
|
|
14109
14109
|
|
|
14110
|
-
|
|
14110
|
+
_session.DS_GLB[0].data_system.SYS_OBJ_WIN_ELEMENT_HOVERED_ATTRIBUTES = attributes;
|
|
14111
14111
|
//////////////////////////////////
|
|
14112
14112
|
if (!$div.data()?.xuData) return;
|
|
14113
14113
|
const _iterate_info = $div.data().xuData.iterate_info;
|
|
@@ -14781,23 +14781,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14781
14781
|
// };
|
|
14782
14782
|
|
|
14783
14783
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14784
|
-
// console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
14785
|
-
// $div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
14786
14784
|
$div.on('inViewport', function () {
|
|
14787
|
-
if ($div.children().length)
|
|
14785
|
+
if ($div.children().length) {
|
|
14786
|
+
// const ui_id = $($div.children()[0]).attr('xu-ui-id');
|
|
14787
|
+
return;
|
|
14788
|
+
}
|
|
14788
14789
|
|
|
14789
14790
|
hover_in($div);
|
|
14790
14791
|
|
|
14791
|
-
// func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
|
|
14792
14792
|
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);
|
|
14793
|
-
|
|
14794
|
-
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14793
|
+
|
|
14795
14794
|
observer_outViewport.observe($div[0]);
|
|
14796
14795
|
});
|
|
14797
14796
|
|
|
14798
14797
|
$div.on('outViewport', function () {
|
|
14799
|
-
|
|
14800
|
-
|
|
14798
|
+
$div.empty();
|
|
14799
|
+
observer_inViewport.observe($div[0]);
|
|
14801
14800
|
});
|
|
14802
14801
|
|
|
14803
14802
|
observer_inViewport.observe($div[0]);
|
|
@@ -11805,7 +11805,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11805
11805
|
};
|
|
11806
11806
|
|
|
11807
11807
|
const hover_in = function ($div) {
|
|
11808
|
-
if (is_skeleton || EXP_BUSY) return;
|
|
11808
|
+
if (is_skeleton || EXP_BUSY || UI_WORKER_OBJ.jobs.length) return;
|
|
11809
11809
|
CLIENT_ACTIVITY_TS = Date.now();
|
|
11810
11810
|
if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
|
|
11811
11811
|
if (!_ds) return;
|
|
@@ -11815,7 +11815,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11815
11815
|
attributes[attr.name] = attr.value;
|
|
11816
11816
|
});
|
|
11817
11817
|
|
|
11818
|
-
|
|
11818
|
+
_session.DS_GLB[0].data_system.SYS_OBJ_WIN_ELEMENT_HOVERED_ATTRIBUTES = attributes;
|
|
11819
11819
|
//////////////////////////////////
|
|
11820
11820
|
if (!$div.data()?.xuData) return;
|
|
11821
11821
|
const _iterate_info = $div.data().xuData.iterate_info;
|
|
@@ -12489,23 +12489,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12489
12489
|
// };
|
|
12490
12490
|
|
|
12491
12491
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12492
|
-
// console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
12493
|
-
// $div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
12494
12492
|
$div.on('inViewport', function () {
|
|
12495
|
-
if ($div.children().length)
|
|
12493
|
+
if ($div.children().length) {
|
|
12494
|
+
// const ui_id = $($div.children()[0]).attr('xu-ui-id');
|
|
12495
|
+
return;
|
|
12496
|
+
}
|
|
12496
12497
|
|
|
12497
12498
|
hover_in($div);
|
|
12498
12499
|
|
|
12499
|
-
// func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
|
|
12500
12500
|
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);
|
|
12501
|
-
|
|
12502
|
-
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12501
|
+
|
|
12503
12502
|
observer_outViewport.observe($div[0]);
|
|
12504
12503
|
});
|
|
12505
12504
|
|
|
12506
12505
|
$div.on('outViewport', function () {
|
|
12507
|
-
|
|
12508
|
-
|
|
12506
|
+
$div.empty();
|
|
12507
|
+
observer_inViewport.observe($div[0]);
|
|
12509
12508
|
});
|
|
12510
12509
|
|
|
12511
12510
|
observer_inViewport.observe($div[0]);
|