@smartbit4all/ng-client 3.1.71 → 3.1.73
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 +27 -20
- package/fesm2015/smartbit4all-ng-client.mjs +28 -21
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +26 -19
- 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 +4 -5
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.73.tgz +0 -0
- package/smartbit4all-ng-client-3.1.71.tgz +0 -0
|
@@ -13032,32 +13032,42 @@ 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
|
-
}
|
|
13047
13035
|
ngOnInit() {
|
|
13048
13036
|
this.service.load();
|
|
13037
|
+
this.initChildComponents();
|
|
13049
13038
|
this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13050
|
-
this.
|
|
13039
|
+
this.bindChildComps();
|
|
13051
13040
|
});
|
|
13052
13041
|
}
|
|
13053
13042
|
ngOnDestroy() {
|
|
13054
13043
|
this._destroy$.next();
|
|
13055
13044
|
this._destroy$.complete();
|
|
13056
13045
|
}
|
|
13057
|
-
|
|
13058
|
-
setUp() {
|
|
13046
|
+
initChildComponents() {
|
|
13059
13047
|
if (this.service.model?.type === this.type.Simple) {
|
|
13060
13048
|
this.simpleFilterModel = {
|
|
13049
|
+
data: [],
|
|
13050
|
+
type: SmartFilterType.SIMPLE,
|
|
13051
|
+
};
|
|
13052
|
+
this.smartFilterChild.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13053
|
+
this.saveFilter();
|
|
13054
|
+
});
|
|
13055
|
+
}
|
|
13056
|
+
else {
|
|
13057
|
+
this.smartForm = {
|
|
13058
|
+
direction: SmartFormWidgetDirection.ROW,
|
|
13059
|
+
useOnBlurEvent: true,
|
|
13060
|
+
componentModel: { data: this.service.model?.selectedField },
|
|
13061
|
+
widgets: [],
|
|
13062
|
+
};
|
|
13063
|
+
this.formChild.onBlurSubject?.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
13064
|
+
this.save();
|
|
13065
|
+
});
|
|
13066
|
+
}
|
|
13067
|
+
}
|
|
13068
|
+
bindChildComps() {
|
|
13069
|
+
if (this.service.model?.type === this.type.Simple) {
|
|
13070
|
+
this.smartFilterChild.filter = {
|
|
13061
13071
|
data: this.service.model.model.workplaceList.filters,
|
|
13062
13072
|
type: SmartFilterType.SIMPLE,
|
|
13063
13073
|
};
|
|
@@ -13067,9 +13077,6 @@ class SmartFilterEditorContentComponent {
|
|
|
13067
13077
|
if (this.service.model.selectedFieldEditor) {
|
|
13068
13078
|
this.constructForm();
|
|
13069
13079
|
}
|
|
13070
|
-
else {
|
|
13071
|
-
this.smartForm = undefined;
|
|
13072
|
-
}
|
|
13073
13080
|
}
|
|
13074
13081
|
}
|
|
13075
13082
|
constructUiActionModels() {
|
|
@@ -13101,7 +13108,7 @@ class SmartFilterEditorContentComponent {
|
|
|
13101
13108
|
let generatedWidgets = this.layoutService.render({
|
|
13102
13109
|
layoutDefinitions: this.service.model?.selectedFieldEditor?.layoutDef?.widgets,
|
|
13103
13110
|
});
|
|
13104
|
-
this.smartForm = {
|
|
13111
|
+
this.formChild.smartForm = {
|
|
13105
13112
|
direction: SmartFormWidgetDirection.ROW,
|
|
13106
13113
|
useOnBlurEvent: true,
|
|
13107
13114
|
componentModel: { data: this.service.model?.selectedField },
|