@xuda.io/runtime-bundle 1.0.626 → 1.0.628
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 || '';
|
|
34185
|
-
|
|
34186
|
-
var res = await func.expression.get(
|
|
34187
|
-
SESSION_ID,
|
|
34188
|
-
content, // prop["xu-exp:empty_result_content"],
|
|
34189
|
-
paramsP.dsSessionP,
|
|
34190
|
-
'empty_result_content_EXP',
|
|
34191
|
-
_ds.currentRecordId,
|
|
34192
|
-
);
|
|
34193
|
-
content = res.result;
|
|
34194
|
-
// }
|
|
34179
|
+
// var content = prop.empty_result_content || '';
|
|
34195
34180
|
|
|
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,20 +34241,21 @@ 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
|
-
|
|
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
|
+
}
|
|
34255
34249
|
|
|
34256
|
-
|
|
34250
|
+
let ret_done = await done(ret.$new_div);
|
|
34257
34251
|
|
|
34258
|
-
|
|
34252
|
+
return ret_done;
|
|
34259
34253
|
|
|
34260
34254
|
////// render default children tree
|
|
34261
34255
|
if (nodeP.children.length) {
|
|
34262
34256
|
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);
|
|
34263
34257
|
debugger;
|
|
34258
|
+
await done(default_children_ret);
|
|
34264
34259
|
}
|
|
34265
34260
|
},
|
|
34266
34261
|
};
|