@xuda.io/runtime-bundle 1.0.1071 → 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.
@@ -12671,15 +12671,22 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12671
12671
  let found_parent_vars = false;
12672
12672
  if (new_$div) {
12673
12673
  // validate if $div contains fields from parent ds
12674
- const parent_fields = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
12675
- const div_str = JSON.stringify(new_$div.children());
12676
-
12677
- for (const [key, val] of Object.entries(parent_fields)) {
12678
- if (div_str.includes('@' + key)) {
12679
- found_parent_vars = true;
12680
- break;
12674
+ const parent_data = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
12675
+ const parent_fields = Object.keys(parent_data);
12676
+
12677
+ $.each(new_$div.find('*'), (key, val) => {
12678
+ const _xuAttributes = $(val)?.data()?.xuAttributes;
12679
+ if (found_parent_vars) return;
12680
+ for (const [attr_key, attr_val] of Object.entries(_xuAttributes)) {
12681
+ if (found_parent_vars) break;
12682
+ for (const [key, val] of Object.entries(parent_fields)) {
12683
+ if (attr_val.includes('@' + key)) {
12684
+ found_parent_vars = true;
12685
+ break;
12686
+ }
12687
+ }
12681
12688
  }
12682
- }
12689
+ });
12683
12690
  }
12684
12691
 
12685
12692
  if (!new_$div || found_parent_vars) {
@@ -10396,15 +10396,22 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10396
10396
  let found_parent_vars = false;
10397
10397
  if (new_$div) {
10398
10398
  // validate if $div contains fields from parent ds
10399
- const parent_fields = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
10400
- const div_str = JSON.stringify(new_$div.children());
10401
-
10402
- for (const [key, val] of Object.entries(parent_fields)) {
10403
- if (div_str.includes('@' + key)) {
10404
- found_parent_vars = true;
10405
- break;
10399
+ const parent_data = get_parent_ds_fields(SESSION_ID, paramsP.dsSessionP);
10400
+ const parent_fields = Object.keys(parent_data);
10401
+
10402
+ $.each(new_$div.find('*'), (key, val) => {
10403
+ const _xuAttributes = $(val)?.data()?.xuAttributes;
10404
+ if (found_parent_vars) return;
10405
+ for (const [attr_key, attr_val] of Object.entries(_xuAttributes)) {
10406
+ if (found_parent_vars) break;
10407
+ for (const [key, val] of Object.entries(parent_fields)) {
10408
+ if (attr_val.includes('@' + key)) {
10409
+ found_parent_vars = true;
10410
+ break;
10411
+ }
10412
+ }
10406
10413
  }
10407
- }
10414
+ });
10408
10415
  }
10409
10416
 
10410
10417
  if (!new_$div || found_parent_vars) {