@xuda.io/runtime-bundle 1.0.1027 → 1.0.1029
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.
|
@@ -31416,7 +31416,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31416
31416
|
if (val?.includes(field_id)) {
|
|
31417
31417
|
const parent_element_ui_id = node_id;
|
|
31418
31418
|
debugger;
|
|
31419
|
-
let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
31419
|
+
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
31420
|
+
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
31420
31421
|
|
|
31421
31422
|
const _elem_key = parent_element_ui_id;
|
|
31422
31423
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
@@ -31445,6 +31446,13 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31445
31446
|
break;
|
|
31446
31447
|
}
|
|
31447
31448
|
}
|
|
31449
|
+
|
|
31450
|
+
if (glb.new_xu_render) {
|
|
31451
|
+
if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
|
|
31452
|
+
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
31453
|
+
debugger;
|
|
31454
|
+
}
|
|
31455
|
+
}
|
|
31448
31456
|
}
|
|
31449
31457
|
}
|
|
31450
31458
|
if (found) break;
|
|
@@ -32318,6 +32326,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32318
32326
|
};
|
|
32319
32327
|
|
|
32320
32328
|
const post_render = async function () {
|
|
32329
|
+
nodeP.xu_render_made = value;
|
|
32321
32330
|
if (value) {
|
|
32322
32331
|
try {
|
|
32323
32332
|
// abort if already rended
|
|
@@ -33386,37 +33395,40 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
33386
33395
|
// const new_ui_id = await func.common.sha256(ui_id);
|
|
33387
33396
|
const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
33388
33397
|
|
|
33389
|
-
$div
|
|
33390
|
-
|
|
33391
|
-
|
|
33392
|
-
|
|
33393
|
-
|
|
33394
|
-
|
|
33395
|
-
|
|
33396
|
-
|
|
33397
|
-
|
|
33398
|
-
|
|
33399
|
-
|
|
33400
|
-
|
|
33401
|
-
|
|
33402
|
-
|
|
33403
|
-
|
|
33404
|
-
|
|
33405
|
-
|
|
33406
|
-
|
|
33407
|
-
|
|
33408
|
-
|
|
33409
|
-
|
|
33410
|
-
|
|
33411
|
-
|
|
33398
|
+
$div
|
|
33399
|
+
.attr('xu-ui-id', new_ui_id)
|
|
33400
|
+
.attr('xu-node-id', nodeP.id)
|
|
33401
|
+
.data({
|
|
33402
|
+
xuData: {
|
|
33403
|
+
prog_id: _paramsP.prog_id,
|
|
33404
|
+
nodeid: nodeP.id,
|
|
33405
|
+
ui_type: nodeP.tagName,
|
|
33406
|
+
xu_id,
|
|
33407
|
+
recordid: currentRecordId,
|
|
33408
|
+
paramsP: _paramsP,
|
|
33409
|
+
key: keyP,
|
|
33410
|
+
key_path, //:($container?.data()?.xuData?.key || "0") + "-" + (keyP || "0"),
|
|
33411
|
+
screenId: _paramsP.screenId,
|
|
33412
|
+
parent_container: $container?.attr('id'),
|
|
33413
|
+
elem_key,
|
|
33414
|
+
properties: prop,
|
|
33415
|
+
node: nodeP,
|
|
33416
|
+
node_org: _.cloneDeep(nodeP),
|
|
33417
|
+
is_panelP: _paramsP.is_panelP,
|
|
33418
|
+
ui_id: new_ui_id,
|
|
33419
|
+
elem_prop: elem_propP,
|
|
33420
|
+
debug_info: {
|
|
33421
|
+
id: nodeP.id,
|
|
33422
|
+
parent_id: $container?.data()?.xuData?.ui_id,
|
|
33423
|
+
items: items,
|
|
33424
|
+
},
|
|
33425
|
+
parent_node: parent_nodeP,
|
|
33426
|
+
currentRecordId: currentRecordId,
|
|
33427
|
+
$root_container: $root_container,
|
|
33428
|
+
parent_element_ui_id: $container?.data()?.xuData?.ui_id,
|
|
33412
33429
|
},
|
|
33413
|
-
|
|
33414
|
-
|
|
33415
|
-
$root_container: $root_container,
|
|
33416
|
-
parent_element_ui_id: $container?.data()?.xuData?.ui_id,
|
|
33417
|
-
},
|
|
33418
|
-
xuAttributes: {},
|
|
33419
|
-
});
|
|
33430
|
+
xuAttributes: {},
|
|
33431
|
+
});
|
|
33420
33432
|
|
|
33421
33433
|
if (div_typeP !== 'svg') {
|
|
33422
33434
|
$div.appendTo($appendTo);
|
|
@@ -34456,7 +34468,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34456
34468
|
const done = async function (ret = {}) {
|
|
34457
34469
|
if (glb.new_xu_render) {
|
|
34458
34470
|
if (ret.xu_render_in_process) {
|
|
34459
|
-
debugger;
|
|
34460
34471
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
34461
34472
|
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
34462
34473
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|