@xuda.io/runtime-bundle 1.0.403 → 1.0.405
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
|
@@ -8896,6 +8896,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8896
8896
|
null,
|
|
8897
8897
|
queue_obj.paramsP.elem_val.$elm.data().xuData.iterate_info,
|
|
8898
8898
|
);
|
|
8899
|
+
console.log(res);
|
|
8899
8900
|
}
|
|
8900
8901
|
|
|
8901
8902
|
const attr_new = attr.split('xu-exp:')[1];
|
|
@@ -11961,13 +11962,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
11961
11962
|
|
|
11962
11963
|
// Callback function to execute when mutations are observed
|
|
11963
11964
|
const callback = (mutationList, observer) => {
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
}
|
|
11965
|
+
func.UI.screen.refresh_xu_attributes(SESSION_ID, [val.value]);
|
|
11966
|
+
// return;
|
|
11967
|
+
// for (const mutation of mutationList) {
|
|
11968
|
+
// if (mutation.type === 'childList') {
|
|
11969
|
+
// console.log('A child node has been added or removed.');
|
|
11970
|
+
// } else if (mutation.type === 'attributes') {
|
|
11971
|
+
// console.log(`The ${mutation.attributeName} attribute was modified.`);
|
|
11972
|
+
// }
|
|
11973
|
+
// }
|
|
11971
11974
|
};
|
|
11972
11975
|
|
|
11973
11976
|
// Create an observer instance linked to the callback function
|
|
@@ -12753,7 +12756,6 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
12753
12756
|
|
|
12754
12757
|
// ALL
|
|
12755
12758
|
|
|
12756
|
-
// let svg_attributes_str = ""
|
|
12757
12759
|
for await (const [key, val] of Object.entries(nodeP.attributes)) {
|
|
12758
12760
|
if (_ret.abort) break;
|
|
12759
12761
|
if (glb.html5_events_handler.includes(key) || execute_attributes.includes(key)) {
|
|
@@ -12767,12 +12769,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
12767
12769
|
) {
|
|
12768
12770
|
// handle common html attributes
|
|
12769
12771
|
try {
|
|
12770
|
-
// $elm.attr(key, val);
|
|
12771
|
-
// if (nodeP.tagName === "svg") {
|
|
12772
|
-
// svg_attributes_str += `${key}="${val}" `
|
|
12773
|
-
// } else {
|
|
12774
12772
|
$elm.get(0).setAttribute(key, val);
|
|
12775
|
-
// }
|
|
12776
12773
|
} catch (err) {
|
|
12777
12774
|
console.error(err.message);
|
|
12778
12775
|
}
|
|
@@ -12781,7 +12778,6 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
12781
12778
|
}
|
|
12782
12779
|
// handle xu attributes
|
|
12783
12780
|
try {
|
|
12784
|
-
// console.log(">>>> attributes", key, val);
|
|
12785
12781
|
$elm.data().xuAttributes[key] = val;
|
|
12786
12782
|
} catch (error) {
|
|
12787
12783
|
debugger;
|
|
@@ -8897,6 +8897,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8897
8897
|
null,
|
|
8898
8898
|
queue_obj.paramsP.elem_val.$elm.data().xuData.iterate_info,
|
|
8899
8899
|
);
|
|
8900
|
+
console.log(res);
|
|
8900
8901
|
}
|
|
8901
8902
|
|
|
8902
8903
|
const attr_new = attr.split('xu-exp:')[1];
|
|
@@ -10034,13 +10035,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10034
10035
|
|
|
10035
10036
|
// Callback function to execute when mutations are observed
|
|
10036
10037
|
const callback = (mutationList, observer) => {
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
}
|
|
10038
|
+
func.UI.screen.refresh_xu_attributes(SESSION_ID, [val.value]);
|
|
10039
|
+
// return;
|
|
10040
|
+
// for (const mutation of mutationList) {
|
|
10041
|
+
// if (mutation.type === 'childList') {
|
|
10042
|
+
// console.log('A child node has been added or removed.');
|
|
10043
|
+
// } else if (mutation.type === 'attributes') {
|
|
10044
|
+
// console.log(`The ${mutation.attributeName} attribute was modified.`);
|
|
10045
|
+
// }
|
|
10046
|
+
// }
|
|
10044
10047
|
};
|
|
10045
10048
|
|
|
10046
10049
|
// Create an observer instance linked to the callback function
|
|
@@ -10826,7 +10829,6 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
10826
10829
|
|
|
10827
10830
|
// ALL
|
|
10828
10831
|
|
|
10829
|
-
// let svg_attributes_str = ""
|
|
10830
10832
|
for await (const [key, val] of Object.entries(nodeP.attributes)) {
|
|
10831
10833
|
if (_ret.abort) break;
|
|
10832
10834
|
if (glb.html5_events_handler.includes(key) || execute_attributes.includes(key)) {
|
|
@@ -10840,12 +10842,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
10840
10842
|
) {
|
|
10841
10843
|
// handle common html attributes
|
|
10842
10844
|
try {
|
|
10843
|
-
// $elm.attr(key, val);
|
|
10844
|
-
// if (nodeP.tagName === "svg") {
|
|
10845
|
-
// svg_attributes_str += `${key}="${val}" `
|
|
10846
|
-
// } else {
|
|
10847
10845
|
$elm.get(0).setAttribute(key, val);
|
|
10848
|
-
// }
|
|
10849
10846
|
} catch (err) {
|
|
10850
10847
|
console.error(err.message);
|
|
10851
10848
|
}
|
|
@@ -10854,7 +10851,6 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
10854
10851
|
}
|
|
10855
10852
|
// handle xu attributes
|
|
10856
10853
|
try {
|
|
10857
|
-
// console.log(">>>> attributes", key, val);
|
|
10858
10854
|
$elm.data().xuAttributes[key] = val;
|
|
10859
10855
|
} catch (error) {
|
|
10860
10856
|
debugger;
|