@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
|
@@ -12271,10 +12271,10 @@ class SmartComponentLayoutComponent {
|
|
|
12271
12271
|
}
|
|
12272
12272
|
}
|
|
12273
12273
|
SmartComponentLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponentLayoutComponent, deps: [{ token: SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12274
|
-
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
|
|
12274
|
+
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"] }] });
|
|
12275
12275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
|
|
12276
12276
|
type: Component,
|
|
12277
|
-
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
|
|
12277
|
+
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"] }]
|
|
12278
12278
|
}], ctorParameters: function () { return [{ type: SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
|
|
12279
12279
|
type: Input
|
|
12280
12280
|
}], smartFormList: [{
|
|
@@ -13645,6 +13645,27 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
13645
13645
|
this._destroy$.next();
|
|
13646
13646
|
this._destroy$.complete();
|
|
13647
13647
|
}
|
|
13648
|
+
_ngAfterViewInit() {
|
|
13649
|
+
if (this.useQueryLists) {
|
|
13650
|
+
if (!this.getSmartComponentLayoutsQL()) {
|
|
13651
|
+
console.warn('SmartComponentLayoutsQL not available!');
|
|
13652
|
+
return;
|
|
13653
|
+
}
|
|
13654
|
+
// TODO maybe we should set comp.parent, not comp.smartComponentLayout.parentComponent..
|
|
13655
|
+
this.getSmartComponentLayoutsQL().forEach((comp) => {
|
|
13656
|
+
if (comp.smartComponentLayout) {
|
|
13657
|
+
SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
|
|
13658
|
+
}
|
|
13659
|
+
});
|
|
13660
|
+
this.getSmartComponentLayoutsQL()
|
|
13661
|
+
.changes.pipe(takeUntil(this._destroy$))
|
|
13662
|
+
.subscribe((list) => list.forEach((comp) => {
|
|
13663
|
+
if (comp.smartComponentLayout) {
|
|
13664
|
+
SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
|
|
13665
|
+
}
|
|
13666
|
+
}));
|
|
13667
|
+
}
|
|
13668
|
+
}
|
|
13648
13669
|
getWidgets() {
|
|
13649
13670
|
if (this.useQueryLists) {
|
|
13650
13671
|
let widgets = new WidgetMap();
|
|
@@ -14069,6 +14090,9 @@ class SmartComponent extends SmartComponentApiClient {
|
|
|
14069
14090
|
ngOnDestroy() {
|
|
14070
14091
|
this._ngOnDestroy();
|
|
14071
14092
|
}
|
|
14093
|
+
ngAfterViewInit() {
|
|
14094
|
+
this._ngAfterViewInit();
|
|
14095
|
+
}
|
|
14072
14096
|
getSmartFormsQL() {
|
|
14073
14097
|
return this.smartFormsQL;
|
|
14074
14098
|
}
|
|
@@ -14121,14 +14145,20 @@ class SmartService extends SmartComponentApiClient {
|
|
|
14121
14145
|
ngOnDestroy() {
|
|
14122
14146
|
this._ngOnDestroy();
|
|
14123
14147
|
}
|
|
14148
|
+
ngAfterViewInit() {
|
|
14149
|
+
this._ngAfterViewInit();
|
|
14150
|
+
}
|
|
14124
14151
|
getSmartFormsQL() {
|
|
14125
|
-
return this.
|
|
14152
|
+
return this.smartFormsQL;
|
|
14126
14153
|
}
|
|
14127
14154
|
getSmartGridsQL() {
|
|
14128
|
-
return this.
|
|
14155
|
+
return this.smartGridsQL;
|
|
14129
14156
|
}
|
|
14130
14157
|
getSmartTreesQL() {
|
|
14131
|
-
return this.
|
|
14158
|
+
return this.smartTreesQL;
|
|
14159
|
+
}
|
|
14160
|
+
getSmartComponentLayoutsQL() {
|
|
14161
|
+
return this.smartComponentLayoutsQL;
|
|
14132
14162
|
}
|
|
14133
14163
|
}
|
|
14134
14164
|
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 });
|
|
@@ -14146,15 +14176,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
14146
14176
|
type: Inject,
|
|
14147
14177
|
args: ['pageName']
|
|
14148
14178
|
}] }];
|
|
14149
|
-
}, propDecorators: {
|
|
14179
|
+
}, propDecorators: { smartFormsQL: [{
|
|
14150
14180
|
type: ViewChildren,
|
|
14151
14181
|
args: [SmartformComponent]
|
|
14152
|
-
}],
|
|
14182
|
+
}], smartGridsQL: [{
|
|
14153
14183
|
type: ViewChildren,
|
|
14154
14184
|
args: [SmartGridComponent]
|
|
14155
|
-
}],
|
|
14185
|
+
}], smartTreesQL: [{
|
|
14156
14186
|
type: ViewChildren,
|
|
14157
14187
|
args: [SmarttreeGenericService]
|
|
14188
|
+
}], smartComponentLayoutsQL: [{
|
|
14189
|
+
type: ViewChildren,
|
|
14190
|
+
args: [SmartComponentLayoutComponent]
|
|
14158
14191
|
}] } });
|
|
14159
14192
|
|
|
14160
14193
|
class SmartNavbarService {
|