@smartbit4all/ng-client 3.1.68 → 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.
- package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-simple/components/smart-filter-simple-field/smart-filter-simple-field.component.mjs +6 -1
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +12 -2
- package/fesm2015/smartbit4all-ng-client.mjs +18 -3
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +16 -1
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.d.ts +1 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.70.tgz +0 -0
- package/smartbit4all-ng-client-3.1.68.tgz +0 -0
|
@@ -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();
|
|
@@ -13037,12 +13042,16 @@ class SmartFilterEditorContentComponent {
|
|
|
13037
13042
|
this._destroy$.next();
|
|
13038
13043
|
this._destroy$.complete();
|
|
13039
13044
|
}
|
|
13045
|
+
setupSimpleFilter() { }
|
|
13040
13046
|
setUp() {
|
|
13041
|
-
if (this.service.model?.type === this.type.Simple) {
|
|
13047
|
+
if (this.service.model?.type === this.type.Simple && !this.smartFilterChild) {
|
|
13042
13048
|
this.simpleFilterModel = {
|
|
13043
13049
|
data: this.service.model.model.workplaceList.filters,
|
|
13044
13050
|
type: SmartFilterType.SIMPLE,
|
|
13045
13051
|
};
|
|
13052
|
+
this.smartFilterChild.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13053
|
+
this.saveFilter();
|
|
13054
|
+
});
|
|
13046
13055
|
}
|
|
13047
13056
|
else {
|
|
13048
13057
|
this.constructUiActionModels();
|
|
@@ -13080,14 +13089,20 @@ class SmartFilterEditorContentComponent {
|
|
|
13080
13089
|
}
|
|
13081
13090
|
}
|
|
13082
13091
|
constructForm() {
|
|
13092
|
+
if (this.formChild)
|
|
13093
|
+
return;
|
|
13083
13094
|
let generatedWidgets = this.layoutService.render({
|
|
13084
13095
|
layoutDefinitions: this.service.model?.selectedFieldEditor?.layoutDef?.widgets,
|
|
13085
13096
|
});
|
|
13086
13097
|
this.smartForm = {
|
|
13087
13098
|
direction: SmartFormWidgetDirection.ROW,
|
|
13099
|
+
useOnBlurEvent: true,
|
|
13088
13100
|
componentModel: { data: this.service.model?.selectedField },
|
|
13089
13101
|
widgets: generatedWidgets,
|
|
13090
13102
|
};
|
|
13103
|
+
this.formChild.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13104
|
+
this.save();
|
|
13105
|
+
});
|
|
13091
13106
|
}
|
|
13092
13107
|
save() {
|
|
13093
13108
|
this.formChild?.submitForm(false);
|