@xuda.io/runtime-bundle 1.0.1072 → 1.0.1073

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.
@@ -32355,15 +32355,22 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32355
32355
  let found_parent_vars = false;
32356
32356
  if (new_$div) {
32357
32357
  // validate if $div contains fields from parent ds
32358
- const parent_fields = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
32359
- const div_str = JSON.stringify(new_$div.html());
32360
-
32361
- for (const [key, val] of Object.entries(parent_fields)) {
32362
- if (div_str.includes('@' + key)) {
32363
- found_parent_vars = true;
32364
- break;
32358
+ const parent_data = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
32359
+ const parent_fields = Object.keys(parent_data);
32360
+
32361
+ $.each(new_$div.find('*'), (key, val) => {
32362
+ const _xuAttributes = $(val)?.data()?.xuAttributes;
32363
+ if (found_parent_vars) return;
32364
+ for (const [attr_key, attr_val] of Object.entries(_xuAttributes)) {
32365
+ if (found_parent_vars) break;
32366
+ for (const [key, val] of Object.entries(parent_fields)) {
32367
+ if (attr_val.includes('@' + key)) {
32368
+ found_parent_vars = true;
32369
+ break;
32370
+ }
32371
+ }
32365
32372
  }
32366
- }
32373
+ });
32367
32374
  }
32368
32375
 
32369
32376
  if (!new_$div || found_parent_vars) {