@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8714,9 +8714,9 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8714
8714
|
// var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
8715
8715
|
var $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
8716
8716
|
|
|
8717
|
-
if (glb.new_xu_render) {
|
|
8718
|
-
|
|
8719
|
-
}
|
|
8717
|
+
// if (glb.new_xu_render) {
|
|
8718
|
+
// $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
8719
|
+
// }
|
|
8720
8720
|
|
|
8721
8721
|
if (!$elm.length) {
|
|
8722
8722
|
return done();
|
|
@@ -11770,7 +11770,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11770
11770
|
for (let item of node) {
|
|
11771
11771
|
if (!_.isEmpty(item.attributes)) {
|
|
11772
11772
|
const parent_element_ui_id = node_id;
|
|
11773
|
-
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
11773
|
+
// const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
11774
11774
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
11775
11775
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
11776
11776
|
if (val?.includes(field_id)) {
|
|
@@ -11778,8 +11778,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11778
11778
|
// debugger;
|
|
11779
11779
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
11780
11780
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11781
|
-
|
|
11782
|
-
const _elem_key = parent_element_ui_id;
|
|
11781
|
+
const _$elem = func.UI.utils.find_in_element_data('xuData', 'body', 'nodeid', parent_element_ui_id);
|
|
11782
|
+
// const _elem_key = parent_element_ui_id;
|
|
11783
|
+
const _elem_key = _$elem.attr('xu-ui-id');
|
|
11783
11784
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
11784
11785
|
if (!_$elem?.length) continue;
|
|
11785
11786
|
|
|
@@ -11807,44 +11808,44 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11807
11808
|
}
|
|
11808
11809
|
}
|
|
11809
11810
|
|
|
11810
|
-
if (glb.new_xu_render) {
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
}
|
|
11811
|
+
// if (glb.new_xu_render) {
|
|
11812
|
+
// if (attr === 'xu-exp:xu-render') {
|
|
11813
|
+
// //|| attr === 'xu-render'
|
|
11814
|
+
// for await (const [key, val] of Object.entries(_$elem)) {
|
|
11815
|
+
// if (key === 'length') break;
|
|
11816
|
+
// if ($(val).data().xuData.node) {
|
|
11817
|
+
// for await (const node of $(val).data().xuData.node.children) {
|
|
11818
|
+
// if (item.id !== node.id) continue;
|
|
11819
|
+
|
|
11820
|
+
// if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
11821
|
+
// const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
11822
|
+
// parent_element_ui_id;
|
|
11823
|
+
// const elem_key = node.xu_render_xu_ui_id;
|
|
11824
|
+
// const elem_val = { attributes: [attr], $elm: node_data.$div, data: node_data.data };
|
|
11825
|
+
// if (!elem_val.data?.xuData) continue;
|
|
11826
|
+
// elem_val.data.xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
|
|
11827
|
+
// 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);
|
|
11828
|
+
|
|
11829
|
+
// var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
11830
|
+
// try {
|
|
11831
|
+
// const obj = {
|
|
11832
|
+
// ui_type: elem_val.data.xuData.ui_type,
|
|
11833
|
+
// SESSION_ID,
|
|
11834
|
+
// elem_key,
|
|
11835
|
+
// elem_val,
|
|
11836
|
+
// fields_arr,
|
|
11837
|
+
// attr_value,
|
|
11838
|
+
// };
|
|
11839
|
+
// 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);
|
|
11840
|
+
// } catch (error) {
|
|
11841
|
+
// debugger;
|
|
11842
|
+
// }
|
|
11843
|
+
// }
|
|
11844
|
+
// }
|
|
11845
|
+
// }
|
|
11846
|
+
// }
|
|
11847
|
+
// }
|
|
11848
|
+
// }
|
|
11848
11849
|
}
|
|
11849
11850
|
}
|
|
11850
11851
|
if (found) break;
|
|
@@ -8715,9 +8715,9 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8715
8715
|
// var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
8716
8716
|
var $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
8717
8717
|
|
|
8718
|
-
if (glb.new_xu_render) {
|
|
8719
|
-
|
|
8720
|
-
}
|
|
8718
|
+
// if (glb.new_xu_render) {
|
|
8719
|
+
// $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
8720
|
+
// }
|
|
8721
8721
|
|
|
8722
8722
|
if (!$elm.length) {
|
|
8723
8723
|
return done();
|
|
@@ -9495,7 +9495,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9495
9495
|
for (let item of node) {
|
|
9496
9496
|
if (!_.isEmpty(item.attributes)) {
|
|
9497
9497
|
const parent_element_ui_id = node_id;
|
|
9498
|
-
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
9498
|
+
// const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
9499
9499
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
9500
9500
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
9501
9501
|
if (val?.includes(field_id)) {
|
|
@@ -9503,8 +9503,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9503
9503
|
// debugger;
|
|
9504
9504
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
9505
9505
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9506
|
-
|
|
9507
|
-
const _elem_key = parent_element_ui_id;
|
|
9506
|
+
const _$elem = func.UI.utils.find_in_element_data('xuData', 'body', 'nodeid', parent_element_ui_id);
|
|
9507
|
+
// const _elem_key = parent_element_ui_id;
|
|
9508
|
+
const _elem_key = _$elem.attr('xu-ui-id');
|
|
9508
9509
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
9509
9510
|
if (!_$elem?.length) continue;
|
|
9510
9511
|
|
|
@@ -9532,44 +9533,44 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9532
9533
|
}
|
|
9533
9534
|
}
|
|
9534
9535
|
|
|
9535
|
-
if (glb.new_xu_render) {
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
}
|
|
9536
|
+
// if (glb.new_xu_render) {
|
|
9537
|
+
// if (attr === 'xu-exp:xu-render') {
|
|
9538
|
+
// //|| attr === 'xu-render'
|
|
9539
|
+
// for await (const [key, val] of Object.entries(_$elem)) {
|
|
9540
|
+
// if (key === 'length') break;
|
|
9541
|
+
// if ($(val).data().xuData.node) {
|
|
9542
|
+
// for await (const node of $(val).data().xuData.node.children) {
|
|
9543
|
+
// if (item.id !== node.id) continue;
|
|
9544
|
+
|
|
9545
|
+
// if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
9546
|
+
// const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
9547
|
+
// parent_element_ui_id;
|
|
9548
|
+
// const elem_key = node.xu_render_xu_ui_id;
|
|
9549
|
+
// const elem_val = { attributes: [attr], $elm: node_data.$div, data: node_data.data };
|
|
9550
|
+
// if (!elem_val.data?.xuData) continue;
|
|
9551
|
+
// elem_val.data.xuData.parent_element_ui_id = $(val).attr('xu-ui-id');
|
|
9552
|
+
// 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);
|
|
9553
|
+
|
|
9554
|
+
// var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
|
|
9555
|
+
// try {
|
|
9556
|
+
// const obj = {
|
|
9557
|
+
// ui_type: elem_val.data.xuData.ui_type,
|
|
9558
|
+
// SESSION_ID,
|
|
9559
|
+
// elem_key,
|
|
9560
|
+
// elem_val,
|
|
9561
|
+
// fields_arr,
|
|
9562
|
+
// attr_value,
|
|
9563
|
+
// };
|
|
9564
|
+
// 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);
|
|
9565
|
+
// } catch (error) {
|
|
9566
|
+
// debugger;
|
|
9567
|
+
// }
|
|
9568
|
+
// }
|
|
9569
|
+
// }
|
|
9570
|
+
// }
|
|
9571
|
+
// }
|
|
9572
|
+
// }
|
|
9573
|
+
// }
|
|
9573
9574
|
}
|
|
9574
9575
|
}
|
|
9575
9576
|
if (found) break;
|