@xuda.io/runtime-bundle 1.0.1070 → 1.0.1071
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.
|
@@ -32352,25 +32352,26 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32352
32352
|
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($elm.data()?.xuData.attr_exp_info?.['xu-render']?.fields || {}));
|
|
32353
32353
|
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32354
32354
|
let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id + xu_render_cache_id]?.$div.clone(true);
|
|
32355
|
-
|
|
32356
|
-
if (
|
|
32355
|
+
let found_parent_vars = false;
|
|
32356
|
+
if (new_$div) {
|
|
32357
32357
|
// validate if $div contains fields from parent ds
|
|
32358
32358
|
const parent_fields = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
|
|
32359
32359
|
const div_str = JSON.stringify(new_$div.children());
|
|
32360
|
-
|
|
32360
|
+
|
|
32361
32361
|
for (const [key, val] of Object.entries(parent_fields)) {
|
|
32362
32362
|
if (div_str.includes('@' + key)) {
|
|
32363
|
-
|
|
32363
|
+
found_parent_vars = true;
|
|
32364
32364
|
break;
|
|
32365
32365
|
}
|
|
32366
32366
|
}
|
|
32367
|
-
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32367
|
+
}
|
|
32368
|
+
|
|
32369
|
+
if (!new_$div || found_parent_vars) {
|
|
32370
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { paramsP };
|
|
32371
|
+
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
32372
|
+
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
32373
|
+
new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP, parent_infoP, paramsP, jobNoP, null, keyP, null, parent_nodeP, null, $root_container);
|
|
32374
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = new_$div.clone(true);
|
|
32374
32375
|
}
|
|
32375
32376
|
// append order handling
|
|
32376
32377
|
|