@smartbit4all/ng-client 2.2.0 → 2.2.2

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.
@@ -5891,7 +5891,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
5891
5891
  this.auth = auth;
5892
5892
  this.pageName = pageName;
5893
5893
  this._destroy$ = new Subject();
5894
- this.sendDataChanges = false;
5894
+ // protected sendDataChanges: boolean = false;
5895
5895
  // private _useAutoSubmit: boolean = false;
5896
5896
  // private _useAutoSubmitTurnedOff: Subject<void> = new SmartSubject(this._destroy$);
5897
5897
  // protected get useAutoSubmit(): boolean {
@@ -6071,8 +6071,8 @@ let SmartComponentApiClient = class SmartComponentApiClient {
6071
6071
  * Submits all the registered forms in the SmartComponent
6072
6072
  */
6073
6073
  submitForms(validate) {
6074
- Object.keys(this.formWidgets.widgets).map((key) => {
6075
- this.formWidgets.widgets.get(key)?.submitForm(validate);
6074
+ this.formWidgets?.widgets?.forEach((form) => {
6075
+ form?.submitForm(validate);
6076
6076
  });
6077
6077
  }
6078
6078
  addGrid(smartGrid, options, useAsDefaultGrid, componentReference) {
@@ -6090,14 +6090,14 @@ let SmartComponentApiClient = class SmartComponentApiClient {
6090
6090
  }
6091
6091
  addForm(smartFormId, smartForm, componentReference) {
6092
6092
  this.formWidgets.addWidget(smartFormId, componentReference);
6093
- if (this.sendDataChanges && componentReference) {
6094
- smartForm.useOnValueChangeEvent = true;
6095
- componentReference.sophisticatedValueChange
6096
- .pipe(takeUntil(this._destroy$))
6097
- .subscribe((valueChange) => {
6098
- this.handleValueChanges(valueChange);
6099
- });
6100
- }
6093
+ // if (this.sendDataChanges && componentReference) {
6094
+ // smartForm.useOnValueChangeEvent = true;
6095
+ // componentReference.sophisticatedValueChange
6096
+ // .pipe(takeUntil(this._destroy$))
6097
+ // .subscribe((valueChange: SophisticatedValueChange) => {
6098
+ // this.handleValueChanges(valueChange);
6099
+ // });
6100
+ // }
6101
6101
  return smartForm;
6102
6102
  }
6103
6103
  setUpDefaultTree(treeId) {