@xuda.io/runtime-bundle 1.0.563 → 1.0.565
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
|
@@ -12351,6 +12351,20 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12351
12351
|
return ret;
|
|
12352
12352
|
},
|
|
12353
12353
|
},
|
|
12354
|
+
[`xu-teleport`]: {
|
|
12355
|
+
to: async function ($elm, val) {
|
|
12356
|
+
debugger;
|
|
12357
|
+
return {};
|
|
12358
|
+
},
|
|
12359
|
+
'xu-render': async function ($elm, val) {
|
|
12360
|
+
debugger;
|
|
12361
|
+
return {};
|
|
12362
|
+
},
|
|
12363
|
+
'xu-show': async function ($elm, val) {
|
|
12364
|
+
debugger;
|
|
12365
|
+
return {};
|
|
12366
|
+
},
|
|
12367
|
+
},
|
|
12354
12368
|
};
|
|
12355
12369
|
|
|
12356
12370
|
const load_cdn = async function (resource) {
|
|
@@ -12608,7 +12622,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12608
12622
|
$xurender.data('xuData', cloned_$div.data().xuData);
|
|
12609
12623
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
12610
12624
|
$xurender.data().xuData.xurender_node = cloned_$div;
|
|
12611
|
-
$xurender.data().xuAttributes = nodeP.attributes;
|
|
12625
|
+
$xurender.data().xuAttributes = nodeP.attributes || {};
|
|
12612
12626
|
$xurender.hide();
|
|
12613
12627
|
|
|
12614
12628
|
$elm.remove();
|
|
@@ -12647,7 +12661,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12647
12661
|
|
|
12648
12662
|
new_$div.data().xuData.original_data_obj = original_data_obj;
|
|
12649
12663
|
new_$div.data().xuData.xurender_node = $elm.clone(true);
|
|
12650
|
-
new_$div.data().xuAttributes = $elm.data().xuAttributes;
|
|
12664
|
+
new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
|
|
12651
12665
|
|
|
12652
12666
|
const replace = async function () {
|
|
12653
12667
|
$elm.replaceWith(new_$div);
|
|
@@ -12684,15 +12698,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12684
12698
|
// was true before
|
|
12685
12699
|
if ($elm.data().xuData.xurender_node) {
|
|
12686
12700
|
$xurender.data({
|
|
12687
|
-
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes,
|
|
12688
|
-
xuData: $elm.data().xuData.xurender_node.data().xuData,
|
|
12701
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
12702
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
12689
12703
|
});
|
|
12690
12704
|
} else {
|
|
12691
12705
|
// default new state
|
|
12692
12706
|
|
|
12693
12707
|
$xurender.data({
|
|
12694
|
-
xuAttributes: $elm.data().xuAttributes,
|
|
12695
|
-
xuData: $elm.data().xuData,
|
|
12708
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
12709
|
+
xuData: $elm.data().xuData || {},
|
|
12696
12710
|
});
|
|
12697
12711
|
$xurender.data().xuData.original_data_obj = {
|
|
12698
12712
|
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
@@ -14369,7 +14383,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14369
14383
|
}
|
|
14370
14384
|
|
|
14371
14385
|
const ret = await iterate_child($div, nodeP, null, null, $div);
|
|
14372
|
-
if ($container.data().xuAttributes) {
|
|
14386
|
+
if (_.isEmpty($container.data().xuAttributes)) {
|
|
14373
14387
|
await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
|
|
14374
14388
|
}
|
|
14375
14389
|
|
|
@@ -14466,7 +14480,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14466
14480
|
_ds.currentRecordId = val._ROWID;
|
|
14467
14481
|
const ret = await iterate_child($div, node, { continuous_idx }, null, $root_container);
|
|
14468
14482
|
|
|
14469
|
-
if ($container.data().xuAttributes) {
|
|
14483
|
+
if (_.isEmpty($container.data().xuAttributes)) {
|
|
14470
14484
|
await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
|
|
14471
14485
|
}
|
|
14472
14486
|
}
|
|
@@ -10083,6 +10083,20 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10083
10083
|
return ret;
|
|
10084
10084
|
},
|
|
10085
10085
|
},
|
|
10086
|
+
[`xu-teleport`]: {
|
|
10087
|
+
to: async function ($elm, val) {
|
|
10088
|
+
debugger;
|
|
10089
|
+
return {};
|
|
10090
|
+
},
|
|
10091
|
+
'xu-render': async function ($elm, val) {
|
|
10092
|
+
debugger;
|
|
10093
|
+
return {};
|
|
10094
|
+
},
|
|
10095
|
+
'xu-show': async function ($elm, val) {
|
|
10096
|
+
debugger;
|
|
10097
|
+
return {};
|
|
10098
|
+
},
|
|
10099
|
+
},
|
|
10086
10100
|
};
|
|
10087
10101
|
|
|
10088
10102
|
const load_cdn = async function (resource) {
|
|
@@ -10340,7 +10354,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10340
10354
|
$xurender.data('xuData', cloned_$div.data().xuData);
|
|
10341
10355
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
10342
10356
|
$xurender.data().xuData.xurender_node = cloned_$div;
|
|
10343
|
-
$xurender.data().xuAttributes = nodeP.attributes;
|
|
10357
|
+
$xurender.data().xuAttributes = nodeP.attributes || {};
|
|
10344
10358
|
$xurender.hide();
|
|
10345
10359
|
|
|
10346
10360
|
$elm.remove();
|
|
@@ -10379,7 +10393,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10379
10393
|
|
|
10380
10394
|
new_$div.data().xuData.original_data_obj = original_data_obj;
|
|
10381
10395
|
new_$div.data().xuData.xurender_node = $elm.clone(true);
|
|
10382
|
-
new_$div.data().xuAttributes = $elm.data().xuAttributes;
|
|
10396
|
+
new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
|
|
10383
10397
|
|
|
10384
10398
|
const replace = async function () {
|
|
10385
10399
|
$elm.replaceWith(new_$div);
|
|
@@ -10416,15 +10430,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10416
10430
|
// was true before
|
|
10417
10431
|
if ($elm.data().xuData.xurender_node) {
|
|
10418
10432
|
$xurender.data({
|
|
10419
|
-
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes,
|
|
10420
|
-
xuData: $elm.data().xuData.xurender_node.data().xuData,
|
|
10433
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
10434
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
10421
10435
|
});
|
|
10422
10436
|
} else {
|
|
10423
10437
|
// default new state
|
|
10424
10438
|
|
|
10425
10439
|
$xurender.data({
|
|
10426
|
-
xuAttributes: $elm.data().xuAttributes,
|
|
10427
|
-
xuData: $elm.data().xuData,
|
|
10440
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
10441
|
+
xuData: $elm.data().xuData || {},
|
|
10428
10442
|
});
|
|
10429
10443
|
$xurender.data().xuData.original_data_obj = {
|
|
10430
10444
|
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
@@ -12101,7 +12115,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12101
12115
|
}
|
|
12102
12116
|
|
|
12103
12117
|
const ret = await iterate_child($div, nodeP, null, null, $div);
|
|
12104
|
-
if ($container.data().xuAttributes) {
|
|
12118
|
+
if (_.isEmpty($container.data().xuAttributes)) {
|
|
12105
12119
|
await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
|
|
12106
12120
|
}
|
|
12107
12121
|
|
|
@@ -12198,7 +12212,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12198
12212
|
_ds.currentRecordId = val._ROWID;
|
|
12199
12213
|
const ret = await iterate_child($div, node, { continuous_idx }, null, $root_container);
|
|
12200
12214
|
|
|
12201
|
-
if ($container.data().xuAttributes) {
|
|
12215
|
+
if (_.isEmpty($container.data().xuAttributes)) {
|
|
12202
12216
|
await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
|
|
12203
12217
|
}
|
|
12204
12218
|
}
|