@xuda.io/runtime-bundle 1.0.1029 → 1.0.1031
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
|
@@ -11727,13 +11727,15 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11727
11727
|
const iterate_progUi = async function (node, node_id) {
|
|
11728
11728
|
for (let item of node) {
|
|
11729
11729
|
if (!_.isEmpty(item.attributes)) {
|
|
11730
|
+
const parent_element_ui_id = node_id;
|
|
11731
|
+
const _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11730
11732
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
11731
11733
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
11732
11734
|
if (val?.includes(field_id)) {
|
|
11733
|
-
const parent_element_ui_id = node_id;
|
|
11735
|
+
// const parent_element_ui_id = node_id;
|
|
11734
11736
|
debugger;
|
|
11735
11737
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
11736
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11738
|
+
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11737
11739
|
|
|
11738
11740
|
const _elem_key = parent_element_ui_id;
|
|
11739
11741
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
@@ -11765,8 +11767,20 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11765
11767
|
|
|
11766
11768
|
if (glb.new_xu_render) {
|
|
11767
11769
|
if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
|
|
11768
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11769
11770
|
debugger;
|
|
11771
|
+
$.each(_$elem, function (key, val) {
|
|
11772
|
+
if ($(val).data().xuData.node) {
|
|
11773
|
+
}
|
|
11774
|
+
|
|
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
|
+
});
|
|
11770
11784
|
}
|
|
11771
11785
|
}
|
|
11772
11786
|
}
|
|
@@ -9452,13 +9452,15 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9452
9452
|
const iterate_progUi = async function (node, node_id) {
|
|
9453
9453
|
for (let item of node) {
|
|
9454
9454
|
if (!_.isEmpty(item.attributes)) {
|
|
9455
|
+
const parent_element_ui_id = node_id;
|
|
9456
|
+
const _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9455
9457
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
9456
9458
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
9457
9459
|
if (val?.includes(field_id)) {
|
|
9458
|
-
const parent_element_ui_id = node_id;
|
|
9460
|
+
// const parent_element_ui_id = node_id;
|
|
9459
9461
|
debugger;
|
|
9460
9462
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
9461
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9463
|
+
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9462
9464
|
|
|
9463
9465
|
const _elem_key = parent_element_ui_id;
|
|
9464
9466
|
const _elem_val = { attributes: [], $elm: _$elem };
|
|
@@ -9490,8 +9492,20 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9490
9492
|
|
|
9491
9493
|
if (glb.new_xu_render) {
|
|
9492
9494
|
if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
|
|
9493
|
-
let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9494
9495
|
debugger;
|
|
9496
|
+
$.each(_$elem, function (key, val) {
|
|
9497
|
+
if ($(val).data().xuData.node) {
|
|
9498
|
+
}
|
|
9499
|
+
|
|
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
|
+
});
|
|
9495
9509
|
}
|
|
9496
9510
|
}
|
|
9497
9511
|
}
|