@xuda.io/runtime-bundle 1.0.1102 → 1.0.1103
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
|
@@ -12195,31 +12195,59 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12195
12195
|
},
|
|
12196
12196
|
[`xu-teleport`]: {
|
|
12197
12197
|
to: async function ($elm, val) {
|
|
12198
|
-
if (
|
|
12199
|
-
if (
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
} else {
|
|
12209
|
-
$elm.data('xuTeleportData', []).attr('hidden', true);
|
|
12210
|
-
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12211
|
-
const $to_container = $(val.value);
|
|
12212
|
-
if (!$to_container?.length) {
|
|
12213
|
-
return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
12198
|
+
if (!glb.new_xu_render) {
|
|
12199
|
+
if (val.value) {
|
|
12200
|
+
// parent_infoP.is_xu_teleport;
|
|
12201
|
+
if ($elm?.parent()?.data()?.xuData?.length) {
|
|
12202
|
+
$elm.parent().data('xuTeleportData', []);
|
|
12203
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12204
|
+
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
12205
|
+
|
|
12206
|
+
$elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12207
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
12214
12208
|
}
|
|
12215
|
-
|
|
12209
|
+
$elm.remove();
|
|
12210
|
+
} else {
|
|
12211
|
+
$elm.data('xuTeleportData', []).attr('hidden', true);
|
|
12212
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12213
|
+
const $to_container = $(val.value);
|
|
12214
|
+
if (!$to_container?.length) {
|
|
12215
|
+
return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
12216
|
+
}
|
|
12217
|
+
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
12216
12218
|
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
+
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12220
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
12221
|
+
}
|
|
12219
12222
|
}
|
|
12220
12223
|
}
|
|
12224
|
+
return { abort: true };
|
|
12221
12225
|
}
|
|
12222
|
-
|
|
12226
|
+
|
|
12227
|
+
if (val.value) {
|
|
12228
|
+
// // parent_infoP.is_xu_teleport;
|
|
12229
|
+
// if ($elm?.parent()?.data()?.xuData?.length) {
|
|
12230
|
+
// $elm.parent().data('xuTeleportData', []);
|
|
12231
|
+
// for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12232
|
+
// const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
12233
|
+
// $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12234
|
+
// $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
12235
|
+
// }
|
|
12236
|
+
// $elm.remove();
|
|
12237
|
+
// } else {
|
|
12238
|
+
// $elm.data('xuTeleportData', []).attr('hidden', true);
|
|
12239
|
+
// for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12240
|
+
// const $to_container = $(val.value);
|
|
12241
|
+
// if (!$to_container?.length) {
|
|
12242
|
+
// return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
12243
|
+
// }
|
|
12244
|
+
// const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
12245
|
+
// $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12246
|
+
// $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
12247
|
+
// }
|
|
12248
|
+
// }
|
|
12249
|
+
}
|
|
12250
|
+
return {};
|
|
12223
12251
|
},
|
|
12224
12252
|
'xu-render': async function ($elm, val) {
|
|
12225
12253
|
let ret = await common_fx['xu-render']($elm, val, true);
|
|
@@ -9920,31 +9920,59 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
9920
9920
|
},
|
|
9921
9921
|
[`xu-teleport`]: {
|
|
9922
9922
|
to: async function ($elm, val) {
|
|
9923
|
-
if (
|
|
9924
|
-
if (
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
} else {
|
|
9934
|
-
$elm.data('xuTeleportData', []).attr('hidden', true);
|
|
9935
|
-
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
9936
|
-
const $to_container = $(val.value);
|
|
9937
|
-
if (!$to_container?.length) {
|
|
9938
|
-
return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
9923
|
+
if (!glb.new_xu_render) {
|
|
9924
|
+
if (val.value) {
|
|
9925
|
+
// parent_infoP.is_xu_teleport;
|
|
9926
|
+
if ($elm?.parent()?.data()?.xuData?.length) {
|
|
9927
|
+
$elm.parent().data('xuTeleportData', []);
|
|
9928
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
9929
|
+
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
9930
|
+
|
|
9931
|
+
$elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
9932
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
9939
9933
|
}
|
|
9940
|
-
|
|
9934
|
+
$elm.remove();
|
|
9935
|
+
} else {
|
|
9936
|
+
$elm.data('xuTeleportData', []).attr('hidden', true);
|
|
9937
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
9938
|
+
const $to_container = $(val.value);
|
|
9939
|
+
if (!$to_container?.length) {
|
|
9940
|
+
return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
9941
|
+
}
|
|
9942
|
+
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
9941
9943
|
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
+
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
9945
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
9946
|
+
}
|
|
9944
9947
|
}
|
|
9945
9948
|
}
|
|
9949
|
+
return { abort: true };
|
|
9946
9950
|
}
|
|
9947
|
-
|
|
9951
|
+
|
|
9952
|
+
if (val.value) {
|
|
9953
|
+
// // parent_infoP.is_xu_teleport;
|
|
9954
|
+
// if ($elm?.parent()?.data()?.xuData?.length) {
|
|
9955
|
+
// $elm.parent().data('xuTeleportData', []);
|
|
9956
|
+
// for (const [key, node] of Object.entries(nodeP.children)) {
|
|
9957
|
+
// const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
9958
|
+
// $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
9959
|
+
// $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
9960
|
+
// }
|
|
9961
|
+
// $elm.remove();
|
|
9962
|
+
// } else {
|
|
9963
|
+
// $elm.data('xuTeleportData', []).attr('hidden', true);
|
|
9964
|
+
// for (const [key, node] of Object.entries(nodeP.children)) {
|
|
9965
|
+
// const $to_container = $(val.value);
|
|
9966
|
+
// if (!$to_container?.length) {
|
|
9967
|
+
// return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
9968
|
+
// }
|
|
9969
|
+
// const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
9970
|
+
// $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
9971
|
+
// $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
9972
|
+
// }
|
|
9973
|
+
// }
|
|
9974
|
+
}
|
|
9975
|
+
return {};
|
|
9948
9976
|
},
|
|
9949
9977
|
'xu-render': async function ($elm, val) {
|
|
9950
9978
|
let ret = await common_fx['xu-render']($elm, val, true);
|