@xuda.io/runtime-bundle 1.0.407 → 1.0.409
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.
|
@@ -28078,7 +28078,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
28078
28078
|
null,
|
|
28079
28079
|
queue_obj.paramsP.elem_val.$elm.data().xuData.iterate_info,
|
|
28080
28080
|
);
|
|
28081
|
-
console.log(res);
|
|
28081
|
+
// console.log(res);
|
|
28082
28082
|
}
|
|
28083
28083
|
|
|
28084
28084
|
const attr_new = attr.split('xu-exp:')[1];
|
|
@@ -28247,26 +28247,34 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
28247
28247
|
}
|
|
28248
28248
|
};
|
|
28249
28249
|
|
|
28250
|
-
func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop) {
|
|
28250
|
+
func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_name) {
|
|
28251
28251
|
let elm_node;
|
|
28252
28252
|
const iterate_progUi = function (node) {
|
|
28253
28253
|
for (let item of node) {
|
|
28254
|
-
|
|
28255
|
-
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
|
|
28261
|
-
|
|
28254
|
+
if (!tag_name || item.tagName === tag_name) {
|
|
28255
|
+
if (prop) {
|
|
28256
|
+
if (!_.isEmpty(item.attributes)) {
|
|
28257
|
+
for (const [attr, val] of Object.entries(item.attributes)) {
|
|
28258
|
+
if (attr === `xu-exp:${prop}` || attr === prop) {
|
|
28259
|
+
// found = val.includes('@' + field_id);
|
|
28260
|
+
if (val.includes('@' + field_id)) {
|
|
28261
|
+
elm_node = node;
|
|
28262
|
+
break;
|
|
28263
|
+
}
|
|
28264
|
+
}
|
|
28262
28265
|
}
|
|
28263
28266
|
}
|
|
28267
|
+
} else {
|
|
28268
|
+
if (tag_name) {
|
|
28269
|
+
elm_node = node;
|
|
28270
|
+
}
|
|
28264
28271
|
}
|
|
28265
|
-
}
|
|
28266
|
-
if (elm_node) break;
|
|
28267
28272
|
|
|
28268
|
-
|
|
28269
|
-
|
|
28273
|
+
if (elm_node) break;
|
|
28274
|
+
|
|
28275
|
+
if (item.children) {
|
|
28276
|
+
iterate_progUi(item.children);
|
|
28277
|
+
}
|
|
28270
28278
|
}
|
|
28271
28279
|
}
|
|
28272
28280
|
};
|
|
@@ -31638,7 +31646,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31638
31646
|
if (progUi) {
|
|
31639
31647
|
await iterate_field_in_progUi(progUi, field_id);
|
|
31640
31648
|
// find invisible panels
|
|
31641
|
-
const elm_node = func.UI.find_field_in_progUi_attributes(progUi, field_id, 'xu-panel');
|
|
31649
|
+
const elm_node = func.UI.find_field_in_progUi_attributes(progUi, field_id, null, 'xu-panel');
|
|
31642
31650
|
console.log('elm_node', elm_node);
|
|
31643
31651
|
}
|
|
31644
31652
|
}
|