@smartbit4all/ng-client 3.2.0 → 3.2.1

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.
@@ -13633,13 +13633,16 @@ class SmartFilterEditorContentComponent {
13633
13633
  }
13634
13634
  ngOnInit() {
13635
13635
  this.service.load();
13636
- this.setUp();
13636
+ this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => this.setUp());
13637
13637
  }
13638
13638
  ngOnDestroy() {
13639
13639
  this._destroy$.next();
13640
13640
  this._destroy$.complete();
13641
13641
  }
13642
13642
  setupSimpleFilter() {
13643
+ if (this.simpleFilterForm) {
13644
+ return;
13645
+ }
13643
13646
  let widgets = [];
13644
13647
  let key;
13645
13648
  let model = {};
@@ -13728,6 +13731,9 @@ class SmartFilterEditorContentComponent {
13728
13731
  }
13729
13732
  }
13730
13733
  constructForm() {
13734
+ if (this.smartForm) {
13735
+ return;
13736
+ }
13731
13737
  let generatedWidgets = this.layoutService.render({
13732
13738
  layoutDefinitions: this.service.model?.selectedFieldEditor?.layoutDef?.widgets,
13733
13739
  });