@xuda.io/runtime-bundle 1.0.627 → 1.0.629
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
|
@@ -12295,11 +12295,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12295
12295
|
return ret;
|
|
12296
12296
|
}
|
|
12297
12297
|
|
|
12298
|
-
////// render default children tree
|
|
12299
|
-
// if (nodeP.children.length) {
|
|
12300
|
-
// const default_children_ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
12301
|
-
// }
|
|
12302
|
-
|
|
12303
12298
|
if (!val.value) {
|
|
12304
12299
|
val.value = '_empty_panel_program';
|
|
12305
12300
|
}
|
|
@@ -14491,29 +14486,28 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14491
14486
|
}
|
|
14492
14487
|
|
|
14493
14488
|
const empty_result = async function () {
|
|
14494
|
-
var content = prop.empty_result_content || '';
|
|
14489
|
+
// var content = prop.empty_result_content || '';
|
|
14495
14490
|
|
|
14496
|
-
var res = await func.expression.get(
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
);
|
|
14503
|
-
content = res.result;
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
};
|
|
14491
|
+
// var res = await func.expression.get(
|
|
14492
|
+
// SESSION_ID,
|
|
14493
|
+
// content, // prop["xu-exp:empty_result_content"],
|
|
14494
|
+
// paramsP.dsSessionP,
|
|
14495
|
+
// 'empty_result_content_EXP',
|
|
14496
|
+
// _ds.currentRecordId,
|
|
14497
|
+
// );
|
|
14498
|
+
// content = res.result;
|
|
14499
|
+
|
|
14500
|
+
// let empty_result_node = {
|
|
14501
|
+
// type: 'element',
|
|
14502
|
+
// id: crypto.randomUUID(),
|
|
14503
|
+
// content,
|
|
14504
|
+
// // : content || (typeof content === "undefined" && "Empty results"),
|
|
14505
|
+
// tagName: 'div',
|
|
14506
|
+
// attributes: {},
|
|
14507
|
+
// children: [],
|
|
14508
|
+
// };
|
|
14515
14509
|
|
|
14516
|
-
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
14510
|
+
// const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
14517
14511
|
await func.events.validate(SESSION_ID, 'record_not_found', paramsP.dsSessionP);
|
|
14518
14512
|
return await done(null);
|
|
14519
14513
|
};
|
|
@@ -14557,22 +14551,24 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14557
14551
|
var $wrapper = $('<div>');
|
|
14558
14552
|
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
|
|
14559
14553
|
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
// let ret_done = await done(ret.$new_div);
|
|
14554
|
+
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
|
|
14555
|
+
if (ret.abort) {
|
|
14556
|
+
// render N
|
|
14557
|
+
return (ret.$new_div = $('<template>').append($div));
|
|
14558
|
+
}
|
|
14567
14559
|
|
|
14568
|
-
|
|
14560
|
+
let $ret_panel_div = ret.$new_div;
|
|
14569
14561
|
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14562
|
+
if (!$ret_panel_div.children().length) {
|
|
14563
|
+
////// render default children tree
|
|
14564
|
+
if (nodeP.children.length) {
|
|
14565
|
+
$ret_panel_div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
14566
|
+
}
|
|
14575
14567
|
}
|
|
14568
|
+
|
|
14569
|
+
let ret_done = await done($ret_panel_div);
|
|
14570
|
+
|
|
14571
|
+
return ret_done;
|
|
14576
14572
|
},
|
|
14577
14573
|
};
|
|
14578
14574
|
|
|
@@ -10026,11 +10026,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10026
10026
|
return ret;
|
|
10027
10027
|
}
|
|
10028
10028
|
|
|
10029
|
-
////// render default children tree
|
|
10030
|
-
// if (nodeP.children.length) {
|
|
10031
|
-
// const default_children_ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
10032
|
-
// }
|
|
10033
|
-
|
|
10034
10029
|
if (!val.value) {
|
|
10035
10030
|
val.value = '_empty_panel_program';
|
|
10036
10031
|
}
|
|
@@ -12222,29 +12217,28 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12222
12217
|
}
|
|
12223
12218
|
|
|
12224
12219
|
const empty_result = async function () {
|
|
12225
|
-
var content = prop.empty_result_content || '';
|
|
12220
|
+
// var content = prop.empty_result_content || '';
|
|
12226
12221
|
|
|
12227
|
-
var res = await func.expression.get(
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
);
|
|
12234
|
-
content = res.result;
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
};
|
|
12222
|
+
// var res = await func.expression.get(
|
|
12223
|
+
// SESSION_ID,
|
|
12224
|
+
// content, // prop["xu-exp:empty_result_content"],
|
|
12225
|
+
// paramsP.dsSessionP,
|
|
12226
|
+
// 'empty_result_content_EXP',
|
|
12227
|
+
// _ds.currentRecordId,
|
|
12228
|
+
// );
|
|
12229
|
+
// content = res.result;
|
|
12230
|
+
|
|
12231
|
+
// let empty_result_node = {
|
|
12232
|
+
// type: 'element',
|
|
12233
|
+
// id: crypto.randomUUID(),
|
|
12234
|
+
// content,
|
|
12235
|
+
// // : content || (typeof content === "undefined" && "Empty results"),
|
|
12236
|
+
// tagName: 'div',
|
|
12237
|
+
// attributes: {},
|
|
12238
|
+
// children: [],
|
|
12239
|
+
// };
|
|
12246
12240
|
|
|
12247
|
-
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
12241
|
+
// const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $container, empty_result_node, parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
12248
12242
|
await func.events.validate(SESSION_ID, 'record_not_found', paramsP.dsSessionP);
|
|
12249
12243
|
return await done(null);
|
|
12250
12244
|
};
|
|
@@ -12288,22 +12282,24 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12288
12282
|
var $wrapper = $('<div>');
|
|
12289
12283
|
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
|
|
12290
12284
|
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
// let ret_done = await done(ret.$new_div);
|
|
12285
|
+
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
|
|
12286
|
+
if (ret.abort) {
|
|
12287
|
+
// render N
|
|
12288
|
+
return (ret.$new_div = $('<template>').append($div));
|
|
12289
|
+
}
|
|
12298
12290
|
|
|
12299
|
-
|
|
12291
|
+
let $ret_panel_div = ret.$new_div;
|
|
12300
12292
|
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12293
|
+
if (!$ret_panel_div.children().length) {
|
|
12294
|
+
////// render default children tree
|
|
12295
|
+
if (nodeP.children.length) {
|
|
12296
|
+
$ret_panel_div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
|
|
12297
|
+
}
|
|
12306
12298
|
}
|
|
12299
|
+
|
|
12300
|
+
let ret_done = await done($ret_panel_div);
|
|
12301
|
+
|
|
12302
|
+
return ret_done;
|
|
12307
12303
|
},
|
|
12308
12304
|
};
|
|
12309
12305
|
|