@xuda.io/runtime-bundle 1.0.1030 → 1.0.1032
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
|
@@ -11728,13 +11728,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11728
11728
|
for (let item of node) {
|
|
11729
11729
|
if (!_.isEmpty(item.attributes)) {
|
|
11730
11730
|
const parent_element_ui_id = node_id;
|
|
11731
|
+
const _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11731
11732
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
11732
11733
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
11733
11734
|
if (val?.includes(field_id)) {
|
|
11734
11735
|
// const parent_element_ui_id = node_id;
|
|
11735
11736
|
debugger;
|
|
11736
11737
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
11737
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11738
|
+
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11738
11739
|
|
|
11739
11740
|
const _elem_key = parent_element_ui_id;
|
|
11740
11741
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
@@ -11766,8 +11767,23 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11766
11767
|
|
|
11767
11768
|
if (glb.new_xu_render) {
|
|
11768
11769
|
if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
|
|
11769
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11770
11770
|
debugger;
|
|
11771
|
+
$.each(_$elem, function (key, val) {
|
|
11772
|
+
if ($(val).data().xuData.node) {
|
|
11773
|
+
$.each($(val).data().xuData.node.children, function (key, node) {
|
|
11774
|
+
if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
11775
|
+
const obj = {
|
|
11776
|
+
ui_type: _elem_val.$elm.data().xuData.ui_type,
|
|
11777
|
+
SESSION_ID,
|
|
11778
|
+
elem_key: _elem_key,
|
|
11779
|
+
elem_val: _elem_val,
|
|
11780
|
+
fields_arr,
|
|
11781
|
+
};
|
|
11782
|
+
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);
|
|
11783
|
+
}
|
|
11784
|
+
});
|
|
11785
|
+
}
|
|
11786
|
+
});
|
|
11771
11787
|
}
|
|
11772
11788
|
}
|
|
11773
11789
|
}
|
|
@@ -9453,13 +9453,14 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9453
9453
|
for (let item of node) {
|
|
9454
9454
|
if (!_.isEmpty(item.attributes)) {
|
|
9455
9455
|
const parent_element_ui_id = node_id;
|
|
9456
|
+
const _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9456
9457
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
9457
9458
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
9458
9459
|
if (val?.includes(field_id)) {
|
|
9459
9460
|
// const parent_element_ui_id = node_id;
|
|
9460
9461
|
debugger;
|
|
9461
9462
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
9462
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9463
|
+
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9463
9464
|
|
|
9464
9465
|
const _elem_key = parent_element_ui_id;
|
|
9465
9466
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
@@ -9491,8 +9492,23 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9491
9492
|
|
|
9492
9493
|
if (glb.new_xu_render) {
|
|
9493
9494
|
if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
|
|
9494
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9495
9495
|
debugger;
|
|
9496
|
+
$.each(_$elem, function (key, val) {
|
|
9497
|
+
if ($(val).data().xuData.node) {
|
|
9498
|
+
$.each($(val).data().xuData.node.children, function (key, node) {
|
|
9499
|
+
if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
9500
|
+
const obj = {
|
|
9501
|
+
ui_type: _elem_val.$elm.data().xuData.ui_type,
|
|
9502
|
+
SESSION_ID,
|
|
9503
|
+
elem_key: _elem_key,
|
|
9504
|
+
elem_val: _elem_val,
|
|
9505
|
+
fields_arr,
|
|
9506
|
+
};
|
|
9507
|
+
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);
|
|
9508
|
+
}
|
|
9509
|
+
});
|
|
9510
|
+
}
|
|
9511
|
+
});
|
|
9496
9512
|
}
|
|
9497
9513
|
}
|
|
9498
9514
|
}
|