@smartbit4all/ng-client 3.2.1 → 3.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.
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +17 -18
- package/fesm2015/smartbit4all-ng-client.mjs +17 -19
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +16 -17
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.2.2.tgz +0 -0
- package/smartbit4all-ng-client-3.2.1.tgz +0 -0
|
@@ -13614,23 +13614,7 @@ class SmartFilterEditorContentComponent {
|
|
|
13614
13614
|
this.expressionUiActionModels = [];
|
|
13615
13615
|
this.type = FilterExpressionBuilderUiModel.TypeEnum;
|
|
13616
13616
|
}
|
|
13617
|
-
ngAfterViewInit() {
|
|
13618
|
-
if (this.smartFilterChangeSubscription) {
|
|
13619
|
-
this.smartFilterChangeSubscription.unsubscribe();
|
|
13620
|
-
}
|
|
13621
|
-
this.smartFilterChangeSubscription = this.simpleFilterFormChild.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13622
|
-
this.saveFilter();
|
|
13623
|
-
});
|
|
13624
|
-
if (this.smartFilterSophisticatedChangeSubscription) {
|
|
13625
|
-
this.smartFilterSophisticatedChangeSubscription.unsubscribe();
|
|
13626
|
-
}
|
|
13627
|
-
this.smartFilterSophisticatedChangeSubscription =
|
|
13628
|
-
this.simpleFilterFormChild.sophisticatedValueChange?.pipe(takeUntil(this._destroy$)).subscribe((change) => {
|
|
13629
|
-
if (change.kind === 'selection') {
|
|
13630
|
-
this.saveFilter();
|
|
13631
|
-
}
|
|
13632
|
-
});
|
|
13633
|
-
}
|
|
13617
|
+
ngAfterViewInit() { }
|
|
13634
13618
|
ngOnInit() {
|
|
13635
13619
|
this.service.load();
|
|
13636
13620
|
this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => this.setUp());
|
|
@@ -13682,6 +13666,21 @@ class SmartFilterEditorContentComponent {
|
|
|
13682
13666
|
useOnBlurEvent: true,
|
|
13683
13667
|
widgets,
|
|
13684
13668
|
};
|
|
13669
|
+
if (this.smartFilterChangeSubscription) {
|
|
13670
|
+
this.smartFilterChangeSubscription.unsubscribe();
|
|
13671
|
+
}
|
|
13672
|
+
this.smartFilterChangeSubscription = this.simpleFilterFormChild.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13673
|
+
this.saveFilter();
|
|
13674
|
+
});
|
|
13675
|
+
if (this.smartFilterSophisticatedChangeSubscription) {
|
|
13676
|
+
this.smartFilterSophisticatedChangeSubscription.unsubscribe();
|
|
13677
|
+
}
|
|
13678
|
+
this.smartFilterSophisticatedChangeSubscription =
|
|
13679
|
+
this.simpleFilterFormChild.sophisticatedValueChange?.pipe(takeUntil(this._destroy$)).subscribe((change) => {
|
|
13680
|
+
if (change.kind === 'selection') {
|
|
13681
|
+
this.saveFilter();
|
|
13682
|
+
}
|
|
13683
|
+
});
|
|
13685
13684
|
}
|
|
13686
13685
|
extractFilterFieldFromFormModel() {
|
|
13687
13686
|
let simpleFilter = this.simpleFilterFormChild?.submitForm(false).componentModel.data;
|