@smartbit4all/ng-client 3.1.87 → 3.1.89
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 +22 -1
- package/esm2020/lib/smart-client/smart.component.mjs +4 -1
- package/esm2020/lib/smart-client/smart.service.mjs +17 -7
- package/esm2020/lib/smart-component-layout/smart-component-layout.component.mjs +3 -3
- package/fesm2015/smartbit4all-ng-client.mjs +41 -8
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +41 -8
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +1 -0
- package/lib/smart-client/smart.component.d.ts +3 -2
- package/lib/smart-client/smart.service.d.ts +9 -5
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.89.tgz +0 -0
- package/smartbit4all-ng-client-3.1.87.tgz +0 -0
|
@@ -12154,10 +12154,10 @@ class SmartComponentLayoutComponent {
|
|
|
12154
12154
|
}
|
|
12155
12155
|
}
|
|
12156
12156
|
SmartComponentLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponentLayoutComponent, deps: [{ token: SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12157
|
-
SmartComponentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: { smartComponentLayout: "smartComponentLayout" }, viewQueries: [{ propertyName: "smartFormList", predicate: ["form"], descendants: true }, { propertyName: "smartGridList", predicate: ["grid"], descendants: true }, { propertyName: "smartFilterList", predicate: ["filter"], descendants: true }, { propertyName: "components", predicate: SmartComponentLayoutComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n
|
|
12157
|
+
SmartComponentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: { smartComponentLayout: "smartComponentLayout" }, viewQueries: [{ propertyName: "smartFormList", predicate: ["form"], descendants: true }, { propertyName: "smartGridList", predicate: ["grid"], descendants: true }, { propertyName: "smartFilterList", predicate: ["filter"], descendants: true }, { propertyName: "components", predicate: SmartComponentLayoutComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n *ngFor=\"let layout of smartComponentLayout?.components\"\r\n [smartComponentLayout]=\"layout\"\r\n ></smart-component-layout>\r\n </div>\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\r\n <!-- <smart-filter #filter [filter]=\"smartFilter\"></smart-filter> -->\r\n <smart-tree *ngIf=\"treeService\" [treeService]=\"treeService!\"></smart-tree>\r\n</ng-template>\r\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"], components: [{ type: ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }, { type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: ["smartComponentLayout"] }, { type: SmartformComponent, selector: "smartform", inputs: ["smartForm"] }, { type: SmartGridComponent, selector: "smart-grid", inputs: ["smartGrid", "uuid", "dev"] }, { type: SmartTreeComponent, selector: "smart-tree", inputs: ["treeStyle", "treeService"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
12158
12158
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
|
|
12159
12159
|
type: Component,
|
|
12160
|
-
args: [{ selector: 'smart-component-layout', template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n
|
|
12160
|
+
args: [{ selector: 'smart-component-layout', template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n *ngFor=\"let layout of smartComponentLayout?.components\"\r\n [smartComponentLayout]=\"layout\"\r\n ></smart-component-layout>\r\n </div>\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\r\n <!-- <smart-filter #filter [filter]=\"smartFilter\"></smart-filter> -->\r\n <smart-tree *ngIf=\"treeService\" [treeService]=\"treeService!\"></smart-tree>\r\n</ng-template>\r\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
|
|
12161
12161
|
}], ctorParameters: function () { return [{ type: SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
|
|
12162
12162
|
type: Input
|
|
12163
12163
|
}], smartFormList: [{
|
|
@@ -13500,6 +13500,27 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
13500
13500
|
this._destroy$.next();
|
|
13501
13501
|
this._destroy$.complete();
|
|
13502
13502
|
}
|
|
13503
|
+
_ngAfterViewInit() {
|
|
13504
|
+
if (this.useQueryLists) {
|
|
13505
|
+
if (!this.getSmartComponentLayoutsQL()) {
|
|
13506
|
+
console.warn('SmartComponentLayoutsQL not available!');
|
|
13507
|
+
return;
|
|
13508
|
+
}
|
|
13509
|
+
// TODO maybe we should set comp.parent, not comp.smartComponentLayout.parentComponent..
|
|
13510
|
+
this.getSmartComponentLayoutsQL().forEach((comp) => {
|
|
13511
|
+
if (comp.smartComponentLayout) {
|
|
13512
|
+
SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
|
|
13513
|
+
}
|
|
13514
|
+
});
|
|
13515
|
+
this.getSmartComponentLayoutsQL()
|
|
13516
|
+
.changes.pipe(takeUntil(this._destroy$))
|
|
13517
|
+
.subscribe((list) => list.forEach((comp) => {
|
|
13518
|
+
if (comp.smartComponentLayout) {
|
|
13519
|
+
SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
|
|
13520
|
+
}
|
|
13521
|
+
}));
|
|
13522
|
+
}
|
|
13523
|
+
}
|
|
13503
13524
|
getWidgets() {
|
|
13504
13525
|
if (this.useQueryLists) {
|
|
13505
13526
|
let widgets = new WidgetMap();
|
|
@@ -13908,6 +13929,9 @@ class SmartComponent extends SmartComponentApiClient {
|
|
|
13908
13929
|
ngOnDestroy() {
|
|
13909
13930
|
this._ngOnDestroy();
|
|
13910
13931
|
}
|
|
13932
|
+
ngAfterViewInit() {
|
|
13933
|
+
this._ngAfterViewInit();
|
|
13934
|
+
}
|
|
13911
13935
|
getSmartFormsQL() {
|
|
13912
13936
|
return this.smartFormsQL;
|
|
13913
13937
|
}
|
|
@@ -13958,14 +13982,20 @@ class SmartService extends SmartComponentApiClient {
|
|
|
13958
13982
|
ngOnDestroy() {
|
|
13959
13983
|
this._ngOnDestroy();
|
|
13960
13984
|
}
|
|
13985
|
+
ngAfterViewInit() {
|
|
13986
|
+
this._ngAfterViewInit();
|
|
13987
|
+
}
|
|
13961
13988
|
getSmartFormsQL() {
|
|
13962
|
-
return this.
|
|
13989
|
+
return this.smartFormsQL;
|
|
13963
13990
|
}
|
|
13964
13991
|
getSmartGridsQL() {
|
|
13965
|
-
return this.
|
|
13992
|
+
return this.smartGridsQL;
|
|
13966
13993
|
}
|
|
13967
13994
|
getSmartTreesQL() {
|
|
13968
|
-
return this.
|
|
13995
|
+
return this.smartTreesQL;
|
|
13996
|
+
}
|
|
13997
|
+
getSmartComponentLayoutsQL() {
|
|
13998
|
+
return this.smartComponentLayoutsQL;
|
|
13969
13999
|
}
|
|
13970
14000
|
}
|
|
13971
14001
|
SmartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartService, deps: [{ token: i0.Injector }, { token: SmartAuthService }, { token: 'pageName' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -13981,15 +14011,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
13981
14011
|
}] }, { type: undefined, decorators: [{
|
|
13982
14012
|
type: Inject,
|
|
13983
14013
|
args: ['pageName']
|
|
13984
|
-
}] }]; }, propDecorators: {
|
|
14014
|
+
}] }]; }, propDecorators: { smartFormsQL: [{
|
|
13985
14015
|
type: ViewChildren,
|
|
13986
14016
|
args: [SmartformComponent]
|
|
13987
|
-
}],
|
|
14017
|
+
}], smartGridsQL: [{
|
|
13988
14018
|
type: ViewChildren,
|
|
13989
14019
|
args: [SmartGridComponent]
|
|
13990
|
-
}],
|
|
14020
|
+
}], smartTreesQL: [{
|
|
13991
14021
|
type: ViewChildren,
|
|
13992
14022
|
args: [SmarttreeGenericService]
|
|
14023
|
+
}], smartComponentLayoutsQL: [{
|
|
14024
|
+
type: ViewChildren,
|
|
14025
|
+
args: [SmartComponentLayoutComponent]
|
|
13993
14026
|
}] } });
|
|
13994
14027
|
|
|
13995
14028
|
class SmartNavbarService {
|