@xuda.io/runtime-bundle 1.0.1132 → 1.0.1133
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.
|
@@ -27842,9 +27842,9 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27842
27842
|
// var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
27843
27843
|
var $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
27844
27844
|
|
|
27845
|
-
if (glb.new_xu_render) {
|
|
27846
|
-
|
|
27847
|
-
}
|
|
27845
|
+
// if (glb.new_xu_render) {
|
|
27846
|
+
// $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
27847
|
+
// }
|
|
27848
27848
|
|
|
27849
27849
|
if (!$elm.length) {
|
|
27850
27850
|
return done();
|
|
@@ -31454,7 +31454,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31454
31454
|
for (let item of node) {
|
|
31455
31455
|
if (!_.isEmpty(item.attributes)) {
|
|
31456
31456
|
const parent_element_ui_id = node_id;
|
|
31457
|
-
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
31457
|
+
// const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
31458
31458
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
31459
31459
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
31460
31460
|
if (val?.includes(field_id)) {
|
|
@@ -31462,8 +31462,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31462
31462
|
// debugger;
|
|
31463
31463
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
31464
31464
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
31465
|
-
|
|
31466
|
-
const _elem_key = parent_element_ui_id;
|
|
31465
|
+
const _$elem = func.UI.utils.find_in_element_data('xuData', 'body', 'nodeid', parent_element_ui_id);
|
|
31466
|
+
// const _elem_key = parent_element_ui_id;
|
|
31467
|
+
const _elem_key = _$elem.attr('xu-ui-id');
|
|
31467
31468
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
31468
31469
|
if (!_$elem?.length) continue;
|
|
31469
31470
|
|
|
@@ -31491,44 +31492,44 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31491
31492
|
}
|
|
31492
31493
|
}
|
|
31493
31494
|
|
|
31494
|
-
if (glb.new_xu_render) {
|
|
31495
|
-
|
|
31496
|
-
|
|
31497
|
-
|
|
31498
|
-
|
|
31499
|
-
|
|
31500
|
-
|
|
31501
|
-
|
|
31502
|
-
|
|
31503
|
-
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
|
|
31520
|
-
|
|
31521
|
-
|
|
31522
|
-
|
|
31523
|
-
|
|
31524
|
-
|
|
31525
|
-
|
|
31526
|
-
|
|
31527
|
-
|
|
31528
|
-
|
|
31529
|
-
|
|
31530
|
-
|
|
31531
|
-
}
|
|
31495
|
+
// if (glb.new_xu_render) {
|
|
31496
|
+
// if (attr === 'xu-exp:xu-render') {
|
|
31497
|
+
// //|| attr === 'xu-render'
|
|
31498
|
+
// for await (const [key, val] of Object.entries(_$elem)) {
|
|
31499
|
+
// if (key === 'length') break;
|
|
31500
|
+
// if ($(val).data().xuData.node) {
|
|
31501
|
+
// for await (const node of $(val).data().xuData.node.children) {
|
|
31502
|
+
// if (item.id !== node.id) continue;
|
|
31503
|
+
|
|
31504
|
+
// if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
31505
|
+
// const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
31506
|
+
// parent_element_ui_id;
|
|
31507
|
+
// const elem_key = node.xu_render_xu_ui_id;
|
|
31508
|
+
// const elem_val = { attributes: [attr], $elm: node_data.$div, data: node_data.data };
|
|
31509
|
+
// if (!elem_val.data?.xuData) continue;
|
|
31510
|
+
// elem_val.data.xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
|
|
31511
|
+
// var res = await func.expression.get(SESSION_ID, elem_val.data.xuAttributes['xu-exp:xu-render'], elem_val.data.xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.data.xuData.recordid);
|
|
31512
|
+
|
|
31513
|
+
// var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
31514
|
+
// try {
|
|
31515
|
+
// const obj = {
|
|
31516
|
+
// ui_type: elem_val.data.xuData.ui_type,
|
|
31517
|
+
// SESSION_ID,
|
|
31518
|
+
// elem_key,
|
|
31519
|
+
// elem_val,
|
|
31520
|
+
// fields_arr,
|
|
31521
|
+
// attr_value,
|
|
31522
|
+
// };
|
|
31523
|
+
// func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.data.xuData.paramsP.dsSessionP);
|
|
31524
|
+
// } catch (error) {
|
|
31525
|
+
// debugger;
|
|
31526
|
+
// }
|
|
31527
|
+
// }
|
|
31528
|
+
// }
|
|
31529
|
+
// }
|
|
31530
|
+
// }
|
|
31531
|
+
// }
|
|
31532
|
+
// }
|
|
31532
31533
|
}
|
|
31533
31534
|
}
|
|
31534
31535
|
if (found) break;
|