@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.
|
@@ -31985,11 +31985,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
31985
31985
|
return ret;
|
|
31986
31986
|
}
|
|
31987
31987
|
|
|
31988
|
-
////// render default children tree
|
|
31989
|
-
// if (nodeP.children.length) {
|
|
31990
|
-
// 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);
|
|
31991
|
-
// }
|
|
31992
|
-
|
|
31993
31988
|
if (!val.value) {
|
|
31994
31989
|
val.value = '_empty_panel_program';
|
|
31995
31990
|
}
|
|
@@ -34181,29 +34176,28 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34181
34176
|
}
|
|
34182
34177
|
|
|
34183
34178
|
const empty_result = async function () {
|
|
34184
|
-
var content = prop.empty_result_content || '';
|
|
34179
|
+
// var content = prop.empty_result_content || '';
|
|
34185
34180
|
|
|
34186
|
-
var res = await func.expression.get(
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
|
|
34190
|
-
|
|
34191
|
-
|
|
34192
|
-
);
|
|
34193
|
-
content = res.result;
|
|
34194
|
-
|
|
34195
|
-
|
|
34196
|
-
|
|
34197
|
-
|
|
34198
|
-
|
|
34199
|
-
|
|
34200
|
-
|
|
34201
|
-
|
|
34202
|
-
|
|
34203
|
-
|
|
34204
|
-
};
|
|
34181
|
+
// var res = await func.expression.get(
|
|
34182
|
+
// SESSION_ID,
|
|
34183
|
+
// content, // prop["xu-exp:empty_result_content"],
|
|
34184
|
+
// paramsP.dsSessionP,
|
|
34185
|
+
// 'empty_result_content_EXP',
|
|
34186
|
+
// _ds.currentRecordId,
|
|
34187
|
+
// );
|
|
34188
|
+
// content = res.result;
|
|
34189
|
+
|
|
34190
|
+
// let empty_result_node = {
|
|
34191
|
+
// type: 'element',
|
|
34192
|
+
// id: crypto.randomUUID(),
|
|
34193
|
+
// content,
|
|
34194
|
+
// // : content || (typeof content === "undefined" && "Empty results"),
|
|
34195
|
+
// tagName: 'div',
|
|
34196
|
+
// attributes: {},
|
|
34197
|
+
// children: [],
|
|
34198
|
+
// };
|
|
34205
34199
|
|
|
34206
|
-
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);
|
|
34200
|
+
// 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);
|
|
34207
34201
|
await func.events.validate(SESSION_ID, 'record_not_found', paramsP.dsSessionP);
|
|
34208
34202
|
return await done(null);
|
|
34209
34203
|
};
|
|
@@ -34247,22 +34241,24 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34247
34241
|
var $wrapper = $('<div>');
|
|
34248
34242
|
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
|
|
34249
34243
|
|
|
34250
|
-
|
|
34251
|
-
|
|
34252
|
-
|
|
34253
|
-
|
|
34254
|
-
|
|
34255
|
-
|
|
34256
|
-
// let ret_done = await done(ret.$new_div);
|
|
34244
|
+
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);
|
|
34245
|
+
if (ret.abort) {
|
|
34246
|
+
// render N
|
|
34247
|
+
return (ret.$new_div = $('<template>').append($div));
|
|
34248
|
+
}
|
|
34257
34249
|
|
|
34258
|
-
|
|
34250
|
+
let $ret_panel_div = ret.$new_div;
|
|
34259
34251
|
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
34252
|
+
if (!$ret_panel_div.children().length) {
|
|
34253
|
+
////// render default children tree
|
|
34254
|
+
if (nodeP.children.length) {
|
|
34255
|
+
$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);
|
|
34256
|
+
}
|
|
34265
34257
|
}
|
|
34258
|
+
|
|
34259
|
+
let ret_done = await done($ret_panel_div);
|
|
34260
|
+
|
|
34261
|
+
return ret_done;
|
|
34266
34262
|
},
|
|
34267
34263
|
};
|
|
34268
34264
|
|