@smartbit4all/ng-client 3.1.69 → 3.1.71

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.
@@ -13032,6 +13032,18 @@ class SmartFilterEditorContentComponent {
13032
13032
  this.expressionUiActionModels = [];
13033
13033
  this.type = FilterExpressionBuilderUiModel.TypeEnum;
13034
13034
  }
13035
+ ngAfterViewInit() {
13036
+ if (this.smartFilterChild) {
13037
+ this.smartFilterChild.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
13038
+ this.saveFilter();
13039
+ });
13040
+ }
13041
+ if (this.formChild) {
13042
+ this.formChild.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
13043
+ this.save();
13044
+ });
13045
+ }
13046
+ }
13035
13047
  ngOnInit() {
13036
13048
  this.service.load();
13037
13049
  this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
@@ -13042,15 +13054,13 @@ class SmartFilterEditorContentComponent {
13042
13054
  this._destroy$.next();
13043
13055
  this._destroy$.complete();
13044
13056
  }
13057
+ setupSimpleFilter() { }
13045
13058
  setUp() {
13046
13059
  if (this.service.model?.type === this.type.Simple) {
13047
13060
  this.simpleFilterModel = {
13048
13061
  data: this.service.model.model.workplaceList.filters,
13049
13062
  type: SmartFilterType.SIMPLE,
13050
13063
  };
13051
- this.smartFilterChild?.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
13052
- this.saveFilter();
13053
- });
13054
13064
  }
13055
13065
  else {
13056
13066
  this.constructUiActionModels();
@@ -13097,9 +13107,6 @@ class SmartFilterEditorContentComponent {
13097
13107
  componentModel: { data: this.service.model?.selectedField },
13098
13108
  widgets: generatedWidgets,
13099
13109
  };
13100
- this.formChild?.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
13101
- this.save();
13102
- });
13103
13110
  }
13104
13111
  save() {
13105
13112
  this.formChild?.submitForm(false);