@xuda.io/runtime-bundle 1.0.337 → 1.0.338

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.
@@ -11561,26 +11561,26 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11561
11561
  $(search_from)
11562
11562
  .find('*')
11563
11563
  .filter(function () {
11564
- // look if the changed field include in the calling in parameters
11565
- let parameter_in_filed_id;
11566
- const _$callingContainer = $(this).data()?.xuData?.paramsP?.$callingContainerP;
11567
- if (_$callingContainer) {
11568
- const _source_xuAttributes = _$callingContainer.data()?.xuAttributes;
11569
- if (_source_xuAttributes) {
11570
- for (const [attr, value] of Object.entries(_source_xuAttributes)) {
11571
- if (value && typeof value === 'string' && value.includes(val_field)) {
11572
- const pattern = /xu-exp:(\w+)/;
11573
- const match = attr.match(pattern);
11574
- if (match) {
11575
- parameter_in_filed_id = attr.split(':')[1];
11576
- } else {
11577
- parameter_in_filed_id = attr;
11578
- }
11579
- break;
11580
- }
11581
- }
11582
- }
11583
- }
11564
+ // // look if the changed field include in the calling in parameters
11565
+ // let parameter_in_filed_id;
11566
+ // const _$callingContainer = $(this).data()?.xuData?.paramsP?.$callingContainerP;
11567
+ // if (_$callingContainer) {
11568
+ // const _source_xuAttributes = _$callingContainer.data()?.xuAttributes;
11569
+ // if (_source_xuAttributes) {
11570
+ // for (const [attr, value] of Object.entries(_source_xuAttributes)) {
11571
+ // if (value && typeof value === 'string' && value.includes(val_field)) {
11572
+ // const pattern = /xu-exp:(\w+)/;
11573
+ // const match = attr.match(pattern);
11574
+ // if (match) {
11575
+ // parameter_in_filed_id = attr.split(':')[1];
11576
+ // } else {
11577
+ // parameter_in_filed_id = attr;
11578
+ // }
11579
+ // break;
11580
+ // }
11581
+ // }
11582
+ // }
11583
+ // }
11584
11584
 
11585
11585
  let attr = [];
11586
11586
 
@@ -11736,22 +11736,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11736
11736
  _elem_val.attributes.push(key);
11737
11737
  });
11738
11738
 
11739
- // await func.UI.worker.add_to_queue(
11740
- // SESSION_ID,
11741
- // "gui event",
11742
- // "execute_xu_for",
11743
- // {
11744
- // ui_type: elem_val.$elm.data().xuData.ui_type,
11745
- // SESSION_ID,
11746
- // elem_key,
11747
- // elem_val,
11748
- // fields_arr,
11749
- // },
11750
- // new_job,
11751
- // elem_val.$elm,
11752
- // elem_val.$elm.data().xuData.paramsP.dsSessionP
11753
- // );
11754
-
11755
11739
  await func.UI.worker.add_to_queue(
11756
11740
  SESSION_ID,
11757
11741
  'gui event',
@@ -11856,29 +11840,28 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11856
11840
  // var panels_obj = {};
11857
11841
  const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, false);
11858
11842
 
11859
- // const find_field_in_progUi = function (progUi, field_id) {
11860
- // let found;
11861
- // const iterate_progUi = function (node) {
11862
- // for (let item of node) {
11863
- // // if (item.tagName === "xu-panel") {
11864
- // if (!_.isEmpty(item.attributes)) {
11865
- // for (const [attr, val] of Object.entries(item.attributes)) {
11866
- // // if (attr === "xu-exp:program" || attr === "xu-exp:xu-for") {
11867
- // if (attr === 'xu-exp:program') {
11868
- // found = val.includes('@' + field_id);
11869
- // }
11870
- // }
11871
- // }
11872
- // if (found) break;
11873
- // // }
11874
- // if (item.children) {
11875
- // iterate_progUi(item.children);
11876
- // }
11877
- // }
11878
- // };
11879
- // iterate_progUi(progUi);
11880
- // return found;
11881
- // };
11843
+ const find_field_in_progUi = function (progUi, field_id, prop) {
11844
+ let found;
11845
+ const iterate_progUi = function (node) {
11846
+ for (let item of node) {
11847
+ // if (item.tagName === "xu-panel") {
11848
+ if (!_.isEmpty(item.attributes)) {
11849
+ for (const [attr, val] of Object.entries(item.attributes)) {
11850
+ if (attr === `xu-exp:${prop}`) {
11851
+ found = val.includes('@' + field_id);
11852
+ }
11853
+ }
11854
+ }
11855
+ if (found) break;
11856
+ // }
11857
+ if (item.children) {
11858
+ iterate_progUi(item.children);
11859
+ }
11860
+ }
11861
+ };
11862
+ iterate_progUi(progUi);
11863
+ return found;
11864
+ };
11882
11865
 
11883
11866
  // // set panels_obj
11884
11867
  // for await (const [elem_key, elem_val] of Object.entries($elm)) {
@@ -11949,8 +11932,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11949
11932
  // found = progUi_str?.includes("@" + parameter_in_field_id);
11950
11933
  // if (found) return false;
11951
11934
 
11952
- // found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id)
11953
- // if (found) break
11935
+ found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
11936
+ if (found) break;
11954
11937
  }
11955
11938
  }
11956
11939
 
@@ -9627,26 +9627,26 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9627
9627
  $(search_from)
9628
9628
  .find('*')
9629
9629
  .filter(function () {
9630
- // look if the changed field include in the calling in parameters
9631
- let parameter_in_filed_id;
9632
- const _$callingContainer = $(this).data()?.xuData?.paramsP?.$callingContainerP;
9633
- if (_$callingContainer) {
9634
- const _source_xuAttributes = _$callingContainer.data()?.xuAttributes;
9635
- if (_source_xuAttributes) {
9636
- for (const [attr, value] of Object.entries(_source_xuAttributes)) {
9637
- if (value && typeof value === 'string' && value.includes(val_field)) {
9638
- const pattern = /xu-exp:(\w+)/;
9639
- const match = attr.match(pattern);
9640
- if (match) {
9641
- parameter_in_filed_id = attr.split(':')[1];
9642
- } else {
9643
- parameter_in_filed_id = attr;
9644
- }
9645
- break;
9646
- }
9647
- }
9648
- }
9649
- }
9630
+ // // look if the changed field include in the calling in parameters
9631
+ // let parameter_in_filed_id;
9632
+ // const _$callingContainer = $(this).data()?.xuData?.paramsP?.$callingContainerP;
9633
+ // if (_$callingContainer) {
9634
+ // const _source_xuAttributes = _$callingContainer.data()?.xuAttributes;
9635
+ // if (_source_xuAttributes) {
9636
+ // for (const [attr, value] of Object.entries(_source_xuAttributes)) {
9637
+ // if (value && typeof value === 'string' && value.includes(val_field)) {
9638
+ // const pattern = /xu-exp:(\w+)/;
9639
+ // const match = attr.match(pattern);
9640
+ // if (match) {
9641
+ // parameter_in_filed_id = attr.split(':')[1];
9642
+ // } else {
9643
+ // parameter_in_filed_id = attr;
9644
+ // }
9645
+ // break;
9646
+ // }
9647
+ // }
9648
+ // }
9649
+ // }
9650
9650
 
9651
9651
  let attr = [];
9652
9652
 
@@ -9802,22 +9802,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9802
9802
  _elem_val.attributes.push(key);
9803
9803
  });
9804
9804
 
9805
- // await func.UI.worker.add_to_queue(
9806
- // SESSION_ID,
9807
- // "gui event",
9808
- // "execute_xu_for",
9809
- // {
9810
- // ui_type: elem_val.$elm.data().xuData.ui_type,
9811
- // SESSION_ID,
9812
- // elem_key,
9813
- // elem_val,
9814
- // fields_arr,
9815
- // },
9816
- // new_job,
9817
- // elem_val.$elm,
9818
- // elem_val.$elm.data().xuData.paramsP.dsSessionP
9819
- // );
9820
-
9821
9805
  await func.UI.worker.add_to_queue(
9822
9806
  SESSION_ID,
9823
9807
  'gui event',
@@ -9922,29 +9906,28 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9922
9906
  // var panels_obj = {};
9923
9907
  const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, false);
9924
9908
 
9925
- // const find_field_in_progUi = function (progUi, field_id) {
9926
- // let found;
9927
- // const iterate_progUi = function (node) {
9928
- // for (let item of node) {
9929
- // // if (item.tagName === "xu-panel") {
9930
- // if (!_.isEmpty(item.attributes)) {
9931
- // for (const [attr, val] of Object.entries(item.attributes)) {
9932
- // // if (attr === "xu-exp:program" || attr === "xu-exp:xu-for") {
9933
- // if (attr === 'xu-exp:program') {
9934
- // found = val.includes('@' + field_id);
9935
- // }
9936
- // }
9937
- // }
9938
- // if (found) break;
9939
- // // }
9940
- // if (item.children) {
9941
- // iterate_progUi(item.children);
9942
- // }
9943
- // }
9944
- // };
9945
- // iterate_progUi(progUi);
9946
- // return found;
9947
- // };
9909
+ const find_field_in_progUi = function (progUi, field_id, prop) {
9910
+ let found;
9911
+ const iterate_progUi = function (node) {
9912
+ for (let item of node) {
9913
+ // if (item.tagName === "xu-panel") {
9914
+ if (!_.isEmpty(item.attributes)) {
9915
+ for (const [attr, val] of Object.entries(item.attributes)) {
9916
+ if (attr === `xu-exp:${prop}`) {
9917
+ found = val.includes('@' + field_id);
9918
+ }
9919
+ }
9920
+ }
9921
+ if (found) break;
9922
+ // }
9923
+ if (item.children) {
9924
+ iterate_progUi(item.children);
9925
+ }
9926
+ }
9927
+ };
9928
+ iterate_progUi(progUi);
9929
+ return found;
9930
+ };
9948
9931
 
9949
9932
  // // set panels_obj
9950
9933
  // for await (const [elem_key, elem_val] of Object.entries($elm)) {
@@ -10015,8 +9998,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
10015
9998
  // found = progUi_str?.includes("@" + parameter_in_field_id);
10016
9999
  // if (found) return false;
10017
10000
 
10018
- // found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id)
10019
- // if (found) break
10001
+ found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
10002
+ if (found) break;
10020
10003
  }
10021
10004
  }
10022
10005