@xuda.io/runtime-bundle 1.0.407 → 1.0.408
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,33 @@ 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
|
}
|
|
28264
|
-
|
|
28265
|
-
}
|
|
28266
|
-
if (elm_node) break;
|
|
28267
|
+
if (elm_node) break;
|
|
28267
28268
|
|
|
28268
|
-
|
|
28269
|
-
|
|
28269
|
+
if (item.children) {
|
|
28270
|
+
iterate_progUi(item.children);
|
|
28271
|
+
}
|
|
28272
|
+
} else {
|
|
28273
|
+
if (tag_name) {
|
|
28274
|
+
elm_node = node;
|
|
28275
|
+
}
|
|
28276
|
+
}
|
|
28270
28277
|
}
|
|
28271
28278
|
}
|
|
28272
28279
|
};
|
|
@@ -31638,7 +31645,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31638
31645
|
if (progUi) {
|
|
31639
31646
|
await iterate_field_in_progUi(progUi, field_id);
|
|
31640
31647
|
// find invisible panels
|
|
31641
|
-
const elm_node = func.UI.find_field_in_progUi_attributes(progUi, field_id, 'xu-panel');
|
|
31648
|
+
const elm_node = func.UI.find_field_in_progUi_attributes(progUi, field_id, null, 'xu-panel');
|
|
31642
31649
|
console.log('elm_node', elm_node);
|
|
31643
31650
|
}
|
|
31644
31651
|
}
|