@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.
|
@@ -32042,6 +32042,20 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32042
32042
|
return ret;
|
|
32043
32043
|
},
|
|
32044
32044
|
},
|
|
32045
|
+
[`xu-teleport`]: {
|
|
32046
|
+
to: async function ($elm, val) {
|
|
32047
|
+
debugger;
|
|
32048
|
+
return {};
|
|
32049
|
+
},
|
|
32050
|
+
'xu-render': async function ($elm, val) {
|
|
32051
|
+
debugger;
|
|
32052
|
+
return {};
|
|
32053
|
+
},
|
|
32054
|
+
'xu-show': async function ($elm, val) {
|
|
32055
|
+
debugger;
|
|
32056
|
+
return {};
|
|
32057
|
+
},
|
|
32058
|
+
},
|
|
32045
32059
|
};
|
|
32046
32060
|
|
|
32047
32061
|
const load_cdn = async function (resource) {
|
|
@@ -32299,7 +32313,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32299
32313
|
$xurender.data('xuData', cloned_$div.data().xuData);
|
|
32300
32314
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32301
32315
|
$xurender.data().xuData.xurender_node = cloned_$div;
|
|
32302
|
-
$xurender.data().xuAttributes = nodeP.attributes;
|
|
32316
|
+
$xurender.data().xuAttributes = nodeP.attributes || {};
|
|
32303
32317
|
$xurender.hide();
|
|
32304
32318
|
|
|
32305
32319
|
$elm.remove();
|
|
@@ -32338,7 +32352,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32338
32352
|
|
|
32339
32353
|
new_$div.data().xuData.original_data_obj = original_data_obj;
|
|
32340
32354
|
new_$div.data().xuData.xurender_node = $elm.clone(true);
|
|
32341
|
-
new_$div.data().xuAttributes = $elm.data().xuAttributes;
|
|
32355
|
+
new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
|
|
32342
32356
|
|
|
32343
32357
|
const replace = async function () {
|
|
32344
32358
|
$elm.replaceWith(new_$div);
|
|
@@ -32375,15 +32389,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32375
32389
|
// was true before
|
|
32376
32390
|
if ($elm.data().xuData.xurender_node) {
|
|
32377
32391
|
$xurender.data({
|
|
32378
|
-
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes,
|
|
32379
|
-
xuData: $elm.data().xuData.xurender_node.data().xuData,
|
|
32392
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
32393
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
32380
32394
|
});
|
|
32381
32395
|
} else {
|
|
32382
32396
|
// default new state
|
|
32383
32397
|
|
|
32384
32398
|
$xurender.data({
|
|
32385
|
-
xuAttributes: $elm.data().xuAttributes,
|
|
32386
|
-
xuData: $elm.data().xuData,
|
|
32399
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
32400
|
+
xuData: $elm.data().xuData || {},
|
|
32387
32401
|
});
|
|
32388
32402
|
$xurender.data().xuData.original_data_obj = {
|
|
32389
32403
|
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
@@ -34060,7 +34074,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34060
34074
|
}
|
|
34061
34075
|
|
|
34062
34076
|
const ret = await iterate_child($div, nodeP, null, null, $div);
|
|
34063
|
-
if ($container.data().xuAttributes) {
|
|
34077
|
+
if (_.isEmpty($container.data().xuAttributes)) {
|
|
34064
34078
|
await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
|
|
34065
34079
|
}
|
|
34066
34080
|
|
|
@@ -34157,7 +34171,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34157
34171
|
_ds.currentRecordId = val._ROWID;
|
|
34158
34172
|
const ret = await iterate_child($div, node, { continuous_idx }, null, $root_container);
|
|
34159
34173
|
|
|
34160
|
-
if ($container.data().xuAttributes) {
|
|
34174
|
+
if (_.isEmpty($container.data().xuAttributes)) {
|
|
34161
34175
|
await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
|
|
34162
34176
|
}
|
|
34163
34177
|
}
|