@xuda.io/runtime-bundle 1.0.1101 → 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);
|
|
@@ -14875,7 +14903,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14875
14903
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
14876
14904
|
|
|
14877
14905
|
if (ret.has_xu_exp_render_attribute) {
|
|
14878
|
-
$div.css('display', 'unset');
|
|
14906
|
+
// $div.css('display', 'unset');
|
|
14879
14907
|
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
|
|
14880
14908
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
14881
14909
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
@@ -14885,7 +14913,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14885
14913
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
14886
14914
|
return $div;
|
|
14887
14915
|
} else {
|
|
14888
|
-
$div.css('display', 'unset');
|
|
14916
|
+
// $div.css('display', 'unset');
|
|
14889
14917
|
temp_$div.replaceWith($div);
|
|
14890
14918
|
return $div;
|
|
14891
14919
|
}
|
|
@@ -14894,7 +14922,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14894
14922
|
temp_$div.remove();
|
|
14895
14923
|
return $div;
|
|
14896
14924
|
}
|
|
14897
|
-
$div.css('display', 'unset');
|
|
14925
|
+
// $div.css('display', 'unset');
|
|
14898
14926
|
temp_$div.replaceWith($div);
|
|
14899
14927
|
return $div;
|
|
14900
14928
|
}
|
|
@@ -14907,7 +14935,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14907
14935
|
let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
14908
14936
|
let $div = temp_$div.clone(true);
|
|
14909
14937
|
|
|
14910
|
-
$div.css('display', 'none');
|
|
14938
|
+
// $div.css('display', 'none');
|
|
14911
14939
|
|
|
14912
14940
|
$div.hover(
|
|
14913
14941
|
function (e) {
|
|
@@ -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);
|
|
@@ -12600,7 +12628,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12600
12628
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
12601
12629
|
|
|
12602
12630
|
if (ret.has_xu_exp_render_attribute) {
|
|
12603
|
-
$div.css('display', 'unset');
|
|
12631
|
+
// $div.css('display', 'unset');
|
|
12604
12632
|
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
|
|
12605
12633
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
12606
12634
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
@@ -12610,7 +12638,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12610
12638
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
12611
12639
|
return $div;
|
|
12612
12640
|
} else {
|
|
12613
|
-
$div.css('display', 'unset');
|
|
12641
|
+
// $div.css('display', 'unset');
|
|
12614
12642
|
temp_$div.replaceWith($div);
|
|
12615
12643
|
return $div;
|
|
12616
12644
|
}
|
|
@@ -12619,7 +12647,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12619
12647
|
temp_$div.remove();
|
|
12620
12648
|
return $div;
|
|
12621
12649
|
}
|
|
12622
|
-
$div.css('display', 'unset');
|
|
12650
|
+
// $div.css('display', 'unset');
|
|
12623
12651
|
temp_$div.replaceWith($div);
|
|
12624
12652
|
return $div;
|
|
12625
12653
|
}
|
|
@@ -12632,7 +12660,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12632
12660
|
let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
12633
12661
|
let $div = temp_$div.clone(true);
|
|
12634
12662
|
|
|
12635
|
-
$div.css('display', 'none');
|
|
12663
|
+
// $div.css('display', 'none');
|
|
12636
12664
|
|
|
12637
12665
|
$div.hover(
|
|
12638
12666
|
function (e) {
|