@smartbit4all/ng-client 3.1.68 → 3.1.69

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.
@@ -10744,6 +10744,7 @@ class SmartFilterSimpleFieldComponent {
10744
10744
  direction: SmartFormWidgetDirection.ROW,
10745
10745
  componentModel: { data: this.filterExpressionField },
10746
10746
  useOnValueChangeEvent: true,
10747
+ useOnBlurEvent: true,
10747
10748
  submitOnEnter: this.service.filter?.submitOnEnter,
10748
10749
  widgets,
10749
10750
  translateService: this.service.filter?.translateService,
@@ -10756,6 +10757,10 @@ class SmartFilterSimpleFieldComponent {
10756
10757
  this.submit();
10757
10758
  this.service.change.next();
10758
10759
  });
10760
+ this.componentRefForm.instance.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
10761
+ this.submit();
10762
+ this.service.change.next();
10763
+ });
10759
10764
  }
10760
10765
  submit() {
10761
10766
  let form = this.componentRefForm.instance.submitForm();
@@ -13043,6 +13048,9 @@ class SmartFilterEditorContentComponent {
13043
13048
  data: this.service.model.model.workplaceList.filters,
13044
13049
  type: SmartFilterType.SIMPLE,
13045
13050
  };
13051
+ this.smartFilterChild?.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
13052
+ this.saveFilter();
13053
+ });
13046
13054
  }
13047
13055
  else {
13048
13056
  this.constructUiActionModels();
@@ -13085,9 +13093,13 @@ class SmartFilterEditorContentComponent {
13085
13093
  });
13086
13094
  this.smartForm = {
13087
13095
  direction: SmartFormWidgetDirection.ROW,
13096
+ useOnBlurEvent: true,
13088
13097
  componentModel: { data: this.service.model?.selectedField },
13089
13098
  widgets: generatedWidgets,
13090
13099
  };
13100
+ this.formChild?.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
13101
+ this.save();
13102
+ });
13091
13103
  }
13092
13104
  save() {
13093
13105
  this.formChild?.submitForm(false);