@smartbit4all/ng-client 3.1.69 → 3.1.70

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.
@@ -13042,13 +13042,14 @@ class SmartFilterEditorContentComponent {
13042
13042
  this._destroy$.next();
13043
13043
  this._destroy$.complete();
13044
13044
  }
13045
+ setupSimpleFilter() { }
13045
13046
  setUp() {
13046
- if (this.service.model?.type === this.type.Simple) {
13047
+ if (this.service.model?.type === this.type.Simple && !this.smartFilterChild) {
13047
13048
  this.simpleFilterModel = {
13048
13049
  data: this.service.model.model.workplaceList.filters,
13049
13050
  type: SmartFilterType.SIMPLE,
13050
13051
  };
13051
- this.smartFilterChild?.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
13052
+ this.smartFilterChild.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
13052
13053
  this.saveFilter();
13053
13054
  });
13054
13055
  }
@@ -13088,6 +13089,8 @@ class SmartFilterEditorContentComponent {
13088
13089
  }
13089
13090
  }
13090
13091
  constructForm() {
13092
+ if (this.formChild)
13093
+ return;
13091
13094
  let generatedWidgets = this.layoutService.render({
13092
13095
  layoutDefinitions: this.service.model?.selectedFieldEditor?.layoutDef?.widgets,
13093
13096
  });
@@ -13097,7 +13100,7 @@ class SmartFilterEditorContentComponent {
13097
13100
  componentModel: { data: this.service.model?.selectedField },
13098
13101
  widgets: generatedWidgets,
13099
13102
  };
13100
- this.formChild?.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
13103
+ this.formChild.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
13101
13104
  this.save();
13102
13105
  });
13103
13106
  }