@xuda.io/runtime-bundle 1.0.1037 → 1.0.1038
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.
|
@@ -31452,27 +31452,35 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31452
31452
|
if (glb.new_xu_render) {
|
|
31453
31453
|
if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
|
|
31454
31454
|
debugger;
|
|
31455
|
-
$.each(_$elem, function (key, val) {
|
|
31455
|
+
// $.each(_$elem, function (key, val) {
|
|
31456
|
+
for await (const [key, val] of Object.entries(_$elem)) {
|
|
31456
31457
|
if ($(val).data().xuData.node) {
|
|
31457
|
-
$.each($(val).data().xuData.node.children, function (key, node) {
|
|
31458
|
+
// $.each($(val).data().xuData.node.children, function (key, node) {
|
|
31459
|
+
for await (const node of $(val).data().xuData.node.children) {
|
|
31458
31460
|
if (item.id !== node.id) return true;
|
|
31459
31461
|
|
|
31460
31462
|
if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
31461
31463
|
const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
|
|
31462
31464
|
const _elem_key = node.xu_render_xu_ui_id;
|
|
31463
31465
|
const _elem_val = { attributes: [attr], $elm: node_data.$div };
|
|
31466
|
+
|
|
31467
|
+
var res = await func.expression.get(SESSION_ID, elem_val.$elm.data().xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
|
|
31468
|
+
|
|
31469
|
+
var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
31470
|
+
|
|
31464
31471
|
const obj = {
|
|
31465
31472
|
ui_type: _elem_val.$elm.data().xuData.ui_type,
|
|
31466
31473
|
SESSION_ID,
|
|
31467
31474
|
elem_key: _elem_key,
|
|
31468
31475
|
elem_val: _elem_val,
|
|
31469
31476
|
fields_arr,
|
|
31477
|
+
attr_value,
|
|
31470
31478
|
};
|
|
31471
31479
|
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31472
31480
|
}
|
|
31473
|
-
}
|
|
31481
|
+
}
|
|
31474
31482
|
}
|
|
31475
|
-
}
|
|
31483
|
+
}
|
|
31476
31484
|
}
|
|
31477
31485
|
}
|
|
31478
31486
|
}
|