@smartbit4all/ng-client 3.1.95 → 3.1.97
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-client/smart-component-api-client.mjs +12 -1
- package/esm2020/lib/smart-client/smart.component.mjs +9 -2
- package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-simple/smart-filter-simple.component.mjs +8 -5
- package/esm2020/lib/smart-filter/smart-filter/smart-filter.component.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +24 -3
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +23 -3
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +4 -1
- package/lib/smart-client/smart.component.d.ts +3 -0
- package/lib/smart-filter/smart-filter/components/smart-filter-simple/smart-filter-simple.component.d.ts +4 -4
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.97.tgz +0 -0
- package/smartbit4all-ng-client-3.1.95.tgz +0 -0
|
@@ -11407,6 +11407,9 @@ class SmartFilterSimpleComponent {
|
|
|
11407
11407
|
this.subscribeToSubmit();
|
|
11408
11408
|
});
|
|
11409
11409
|
this.subscribeToSubmit();
|
|
11410
|
+
this.service.change.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
11411
|
+
this.smartFilter = this.service.filter;
|
|
11412
|
+
});
|
|
11410
11413
|
}
|
|
11411
11414
|
ngOnInit() {
|
|
11412
11415
|
this.smartFilter = this.service.filter;
|
|
@@ -11432,10 +11435,10 @@ SmartFilterSimpleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
|
|
|
11432
11435
|
SmartFilterSimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartFilterSimpleComponent, selector: "smart-filter-simple", viewQueries: [{ propertyName: "simpleFieldChildren", predicate: ["simpleField"], descendants: true }], ngImport: i0, template: "<div *ngIf=\"smartFilter\" class=\"smart-simple-fields-container\">\r\n <div *ngFor=\"let filterExpressionField of smartFilter.data; let i = index\">\r\n <smart-filter-simple-field\r\n #simpleField\r\n [filterExpressionField]=\"filterExpressionField\"\r\n [operationTranslator]=\"smartFilter.operationTranslator\"\r\n [showPossibleActions]=\"smartFilter.showPossibleActions\"\r\n ></smart-filter-simple-field>\r\n <div *ngFor=\"let subfilterExpressionField of filterExpressionField.subFieldList?.filters\">\r\n <smart-filter-simple-field\r\n #simpleField\r\n [filterExpressionField]=\"filterExpressionField\"\r\n [operationTranslator]=\"smartFilter.operationTranslator\"\r\n [showPossibleActions]=\"smartFilter.showPossibleActions\"\r\n ></smart-filter-simple-field>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".smart-simple-fields-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1rem;justify-content:center}\n"], components: [{ type: SmartFilterSimpleFieldComponent, selector: "smart-filter-simple-field", inputs: ["operationTranslator", "filterExpressionField", "showPossibleActions"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
11433
11436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterSimpleComponent, decorators: [{
|
|
11434
11437
|
type: Component,
|
|
11435
|
-
args: [{ selector:
|
|
11438
|
+
args: [{ selector: 'smart-filter-simple', template: "<div *ngIf=\"smartFilter\" class=\"smart-simple-fields-container\">\r\n <div *ngFor=\"let filterExpressionField of smartFilter.data; let i = index\">\r\n <smart-filter-simple-field\r\n #simpleField\r\n [filterExpressionField]=\"filterExpressionField\"\r\n [operationTranslator]=\"smartFilter.operationTranslator\"\r\n [showPossibleActions]=\"smartFilter.showPossibleActions\"\r\n ></smart-filter-simple-field>\r\n <div *ngFor=\"let subfilterExpressionField of filterExpressionField.subFieldList?.filters\">\r\n <smart-filter-simple-field\r\n #simpleField\r\n [filterExpressionField]=\"filterExpressionField\"\r\n [operationTranslator]=\"smartFilter.operationTranslator\"\r\n [showPossibleActions]=\"smartFilter.showPossibleActions\"\r\n ></smart-filter-simple-field>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".smart-simple-fields-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1rem;justify-content:center}\n"] }]
|
|
11436
11439
|
}], ctorParameters: function () { return [{ type: SmartFilterService }]; }, propDecorators: { simpleFieldChildren: [{
|
|
11437
11440
|
type: ViewChildren,
|
|
11438
|
-
args: [
|
|
11441
|
+
args: ['simpleField']
|
|
11439
11442
|
}] } });
|
|
11440
11443
|
|
|
11441
11444
|
class SmartFilterComponent {
|
|
@@ -11454,6 +11457,7 @@ class SmartFilterComponent {
|
|
|
11454
11457
|
}
|
|
11455
11458
|
setUp() {
|
|
11456
11459
|
this.service.filter = this.filter;
|
|
11460
|
+
this.service.change.next();
|
|
11457
11461
|
}
|
|
11458
11462
|
async submit() {
|
|
11459
11463
|
return await this.service.submit();
|
|
@@ -14104,6 +14108,9 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
14104
14108
|
this.getAllSmartTreeComponents()
|
|
14105
14109
|
.filter((tree) => (tree?.smartTreeModel?.identifier ? true : false))
|
|
14106
14110
|
.forEach((tree) => widgets.addWidget(tree.smartTreeModel.identifier, tree));
|
|
14111
|
+
this.getAllSmartFilterEditorServices()
|
|
14112
|
+
.filter((filter) => (filter.config.identifier ? true : false))
|
|
14113
|
+
.forEach((filter) => widgets.addWidget(filter.config.identifier, filter));
|
|
14107
14114
|
return widgets;
|
|
14108
14115
|
}
|
|
14109
14116
|
return this.widgets;
|
|
@@ -14143,6 +14150,10 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
14143
14150
|
});
|
|
14144
14151
|
return trees;
|
|
14145
14152
|
}
|
|
14153
|
+
getAllSmartFilterEditorServices() {
|
|
14154
|
+
let filters = this.getSmartFilterServicesQL()?.toArray() ?? [];
|
|
14155
|
+
return filters;
|
|
14156
|
+
}
|
|
14146
14157
|
initData() {
|
|
14147
14158
|
if (this.model?.data) {
|
|
14148
14159
|
this.data = this.model?.data;
|
|
@@ -14402,6 +14413,9 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
14402
14413
|
else if (reference instanceof SmarttreeGenericService) {
|
|
14403
14414
|
reference.initialize();
|
|
14404
14415
|
}
|
|
14416
|
+
else if (reference instanceof SmartFilterEditorService) {
|
|
14417
|
+
reference.load();
|
|
14418
|
+
}
|
|
14405
14419
|
else if (reference === undefined) {
|
|
14406
14420
|
console.error(`Provided reference for ${key} is undefined.`);
|
|
14407
14421
|
}
|
|
@@ -14518,9 +14532,12 @@ class SmartComponent extends SmartComponentApiClient {
|
|
|
14518
14532
|
getSmartComponentLayoutsQL() {
|
|
14519
14533
|
return this.smartComponentLayoutsQL;
|
|
14520
14534
|
}
|
|
14535
|
+
getSmartFilterServicesQL() {
|
|
14536
|
+
return this.smartFilterEditorServicesQL;
|
|
14537
|
+
}
|
|
14521
14538
|
}
|
|
14522
14539
|
SmartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponent, deps: [{ token: i0.Injector }, { token: SmartAuthService }, { token: 'pageName' }], target: i0.ɵɵFactoryTarget.Component });
|
|
14523
|
-
SmartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartComponent, selector: "ng-component", viewQueries: [{ propertyName: "smartFormsQL", predicate: SmartformComponent, descendants: true }, { propertyName: "smartGridsQL", predicate: SmartGridComponent, descendants: true }, { propertyName: "smartTreesQL", predicate: SmarttreeGenericService, descendants: true }, { propertyName: "smartComponentLayoutsQL", predicate: SmartComponentLayoutComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
14540
|
+
SmartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartComponent, selector: "ng-component", viewQueries: [{ propertyName: "smartFormsQL", predicate: SmartformComponent, descendants: true }, { propertyName: "smartGridsQL", predicate: SmartGridComponent, descendants: true }, { propertyName: "smartTreesQL", predicate: SmarttreeGenericService, descendants: true }, { propertyName: "smartComponentLayoutsQL", predicate: SmartComponentLayoutComponent, descendants: true }, { propertyName: "smartFilterEditorServicesQL", predicate: SmartFilterEditorService, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
14524
14541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponent, decorators: [{
|
|
14525
14542
|
type: Component,
|
|
14526
14543
|
args: [{
|
|
@@ -14544,6 +14561,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
14544
14561
|
}], smartComponentLayoutsQL: [{
|
|
14545
14562
|
type: ViewChildren,
|
|
14546
14563
|
args: [SmartComponentLayoutComponent]
|
|
14564
|
+
}], smartFilterEditorServicesQL: [{
|
|
14565
|
+
type: ViewChildren,
|
|
14566
|
+
args: [SmartFilterEditorService]
|
|
14547
14567
|
}] } });
|
|
14548
14568
|
|
|
14549
14569
|
class SmartService extends SmartComponentApiClient {
|