@xuda.io/runtime-bundle 1.0.796 → 1.0.798
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
|
@@ -13173,6 +13173,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
13173
13173
|
}
|
|
13174
13174
|
return {};
|
|
13175
13175
|
},
|
|
13176
|
+
'xu-viewport': async function ($elm, val) {
|
|
13177
|
+
// functionality in draw_html_element
|
|
13178
|
+
return {};
|
|
13179
|
+
},
|
|
13176
13180
|
};
|
|
13177
13181
|
|
|
13178
13182
|
if (nodeP.tagName.substr(0, 3) === 'xu-') {
|
|
@@ -13198,6 +13202,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
13198
13202
|
$elm.data().xuData.debug_info.attribute_stat[xu_func] = val.value;
|
|
13199
13203
|
}
|
|
13200
13204
|
try {
|
|
13205
|
+
if (!common_fx[xu_func]) {
|
|
13206
|
+
console.warn('invalid xu-tag', xu_func, error);
|
|
13207
|
+
return {};
|
|
13208
|
+
}
|
|
13209
|
+
|
|
13201
13210
|
return await common_fx[xu_func]($elm, val);
|
|
13202
13211
|
} catch (error) {
|
|
13203
13212
|
debugger;
|
|
@@ -14719,12 +14728,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14719
14728
|
await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14720
14729
|
};
|
|
14721
14730
|
|
|
14722
|
-
if (nodeP
|
|
14731
|
+
if (nodeP?.attributes?.['xu-viewport'] === 'true') {
|
|
14723
14732
|
$div.on('inViewport', function () {
|
|
14724
|
-
|
|
14725
|
-
|
|
14726
|
-
// $(this).addClass('visible');
|
|
14727
|
-
// Your custom code here
|
|
14733
|
+
// render_child();
|
|
14734
|
+
iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14728
14735
|
});
|
|
14729
14736
|
observer.observe($div[0]);
|
|
14730
14737
|
} else {
|
|
@@ -10881,6 +10881,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10881
10881
|
}
|
|
10882
10882
|
return {};
|
|
10883
10883
|
},
|
|
10884
|
+
'xu-viewport': async function ($elm, val) {
|
|
10885
|
+
// functionality in draw_html_element
|
|
10886
|
+
return {};
|
|
10887
|
+
},
|
|
10884
10888
|
};
|
|
10885
10889
|
|
|
10886
10890
|
if (nodeP.tagName.substr(0, 3) === 'xu-') {
|
|
@@ -10906,6 +10910,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10906
10910
|
$elm.data().xuData.debug_info.attribute_stat[xu_func] = val.value;
|
|
10907
10911
|
}
|
|
10908
10912
|
try {
|
|
10913
|
+
if (!common_fx[xu_func]) {
|
|
10914
|
+
console.warn('invalid xu-tag', xu_func, error);
|
|
10915
|
+
return {};
|
|
10916
|
+
}
|
|
10917
|
+
|
|
10909
10918
|
return await common_fx[xu_func]($elm, val);
|
|
10910
10919
|
} catch (error) {
|
|
10911
10920
|
debugger;
|
|
@@ -12427,12 +12436,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12427
12436
|
await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12428
12437
|
};
|
|
12429
12438
|
|
|
12430
|
-
if (nodeP
|
|
12439
|
+
if (nodeP?.attributes?.['xu-viewport'] === 'true') {
|
|
12431
12440
|
$div.on('inViewport', function () {
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
// $(this).addClass('visible');
|
|
12435
|
-
// Your custom code here
|
|
12441
|
+
// render_child();
|
|
12442
|
+
iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12436
12443
|
});
|
|
12437
12444
|
observer.observe($div[0]);
|
|
12438
12445
|
} else {
|