@xuda.io/runtime-bundle 1.0.1010 → 1.0.1011
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.
|
@@ -33254,6 +33254,19 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
33254
33254
|
return jobNoP;
|
|
33255
33255
|
};
|
|
33256
33256
|
|
|
33257
|
+
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
33258
|
+
const _paramsP = _.cloneDeep(paramsP);
|
|
33259
|
+
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
33260
|
+
|
|
33261
|
+
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
33262
|
+
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
33263
|
+
const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
|
|
33264
|
+
let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
33265
|
+
|
|
33266
|
+
const new_ui_id = await func.common.sha256(ui_id);
|
|
33267
|
+
return new_ui_id;
|
|
33268
|
+
};
|
|
33269
|
+
|
|
33257
33270
|
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
33271
|
const _paramsP = _.cloneDeep(paramsP);
|
|
33259
33272
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
@@ -33274,7 +33287,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
33274
33287
|
try {
|
|
33275
33288
|
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
33276
33289
|
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 ||
|
|
33290
|
+
// let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
|
|
33278
33291
|
|
|
33279
33292
|
/////////////////////////////////
|
|
33280
33293
|
|
|
@@ -33338,7 +33351,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
33338
33351
|
// }
|
|
33339
33352
|
|
|
33340
33353
|
// const new_ui_id = hash32hex(ui_id);
|
|
33341
|
-
const new_ui_id = await func.common.sha256(ui_id);
|
|
33354
|
+
// const new_ui_id = await func.common.sha256(ui_id);
|
|
33355
|
+
const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
33342
33356
|
|
|
33343
33357
|
$div.attr('xu-ui-id', new_ui_id).data({
|
|
33344
33358
|
xuData: {
|