@xuda.io/runtime-bundle 1.0.1010 → 1.0.1012
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.
|
@@ -32268,11 +32268,13 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32268
32268
|
},
|
|
32269
32269
|
'xu-render': async function ($elm, val, from_panel) {
|
|
32270
32270
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
32271
|
-
const init_render = function () {
|
|
32271
|
+
const init_render = async function () {
|
|
32272
32272
|
if (!value) {
|
|
32273
32273
|
var cloned_$div = $elm.clone(true);
|
|
32274
32274
|
|
|
32275
|
-
|
|
32275
|
+
const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
32276
|
+
|
|
32277
|
+
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).attr('hidden', true).appendTo($container).hide();
|
|
32276
32278
|
let original_data_obj = {
|
|
32277
32279
|
force_render: true,
|
|
32278
32280
|
$container: cloned_$div,
|
|
@@ -32379,7 +32381,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32379
32381
|
}
|
|
32380
32382
|
|
|
32381
32383
|
let tmp_$div = $('<div>');
|
|
32382
|
-
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32384
|
+
// const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32385
|
+
const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
32386
|
+
|
|
32383
32387
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
32384
32388
|
// // was true before
|
|
32385
32389
|
// if ($elm.data().xuData.xurender_node) {
|
|
@@ -32414,7 +32418,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32414
32418
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32415
32419
|
};
|
|
32416
32420
|
if (is_init) {
|
|
32417
|
-
return init_render();
|
|
32421
|
+
return await init_render();
|
|
32418
32422
|
}
|
|
32419
32423
|
return await post_render();
|
|
32420
32424
|
},
|
|
@@ -33254,6 +33258,19 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
33254
33258
|
return jobNoP;
|
|
33255
33259
|
};
|
|
33256
33260
|
|
|
33261
|
+
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
33262
|
+
const _paramsP = _.cloneDeep(paramsP);
|
|
33263
|
+
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
33264
|
+
|
|
33265
|
+
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
33266
|
+
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
33267
|
+
const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
|
|
33268
|
+
let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
33269
|
+
|
|
33270
|
+
const new_ui_id = await func.common.sha256(ui_id);
|
|
33271
|
+
return new_ui_id;
|
|
33272
|
+
};
|
|
33273
|
+
|
|
33257
33274
|
func.UI.screen.create_container = async function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str) {
|
|
33258
33275
|
const _paramsP = _.cloneDeep(paramsP);
|
|
33259
33276
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
@@ -33274,7 +33291,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
33274
33291
|
try {
|
|
33275
33292
|
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
33276
33293
|
const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
|
|
33277
|
-
let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
33294
|
+
// let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
33278
33295
|
|
|
33279
33296
|
/////////////////////////////////
|
|
33280
33297
|
|
|
@@ -33338,7 +33355,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
33338
33355
|
// }
|
|
33339
33356
|
|
|
33340
33357
|
// const new_ui_id = hash32hex(ui_id);
|
|
33341
|
-
const new_ui_id = await func.common.sha256(ui_id);
|
|
33358
|
+
// const new_ui_id = await func.common.sha256(ui_id);
|
|
33359
|
+
const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
33342
33360
|
|
|
33343
33361
|
$div.attr('xu-ui-id', new_ui_id).data({
|
|
33344
33362
|
xuData: {
|