@smartbit4all/ng-client 3.3.103 → 3.3.104
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-tree/smarttree-generic.service.mjs +9 -4
- package/esm2020/lib/smart-tree/smarttree.module.mjs +11 -3
- package/fesm2015/smartbit4all-ng-client.mjs +19 -5
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +18 -5
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-tree/smarttree-generic.service.d.ts +2 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.104.tgz +0 -0
- package/smartbit4all-ng-client-3.3.103.tgz +0 -0
|
@@ -11971,10 +11971,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
11971
11971
|
}], ctorParameters: function () { return []; } });
|
|
11972
11972
|
|
|
11973
11973
|
class SmarttreeGenericService extends SmarttreeService {
|
|
11974
|
-
constructor(inject, pageName, treeId) {
|
|
11974
|
+
constructor(inject, pageName, treeId, treeMenuIcon) {
|
|
11975
11975
|
super();
|
|
11976
11976
|
this.pageName = pageName;
|
|
11977
11977
|
this.treeId = treeId;
|
|
11978
|
+
this.treeMenuIcon = treeMenuIcon;
|
|
11978
11979
|
// UseUiAction properties
|
|
11979
11980
|
this.submit = new Subject();
|
|
11980
11981
|
this.reSubscribeToChange = new Subject();
|
|
@@ -12121,11 +12122,12 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
12121
12122
|
});
|
|
12122
12123
|
}
|
|
12123
12124
|
createButtonsForTreeNodes(nodes) {
|
|
12125
|
+
let icon = this.treeMenuIcon ?? 'more_vert';
|
|
12124
12126
|
nodes.map((node) => {
|
|
12125
12127
|
node.button = node.actions?.length
|
|
12126
12128
|
? {
|
|
12127
12129
|
type: SmartTreeNodeButtonType.MENU,
|
|
12128
|
-
icon:
|
|
12130
|
+
icon: icon,
|
|
12129
12131
|
menuItemButtons: node.actions.map((action) => {
|
|
12130
12132
|
return {
|
|
12131
12133
|
type: SmartTreeNodeButtonType.NORMAL,
|
|
@@ -12227,7 +12229,7 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
12227
12229
|
throw new Error('Method not implemented.');
|
|
12228
12230
|
}
|
|
12229
12231
|
}
|
|
12230
|
-
SmarttreeGenericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeGenericService, deps: [{ token: i0.Injector }, { token: 'pageName' }, { token: 'treeId' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12232
|
+
SmarttreeGenericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeGenericService, deps: [{ token: i0.Injector }, { token: 'pageName' }, { token: 'treeId' }, { token: 'treeMenuIcon' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12231
12233
|
SmarttreeGenericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeGenericService, providedIn: 'root' });
|
|
12232
12234
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeGenericService, decorators: [{
|
|
12233
12235
|
type: Injectable,
|
|
@@ -12240,6 +12242,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12240
12242
|
}] }, { type: undefined, decorators: [{
|
|
12241
12243
|
type: Inject,
|
|
12242
12244
|
args: ['treeId']
|
|
12245
|
+
}] }, { type: undefined, decorators: [{
|
|
12246
|
+
type: Inject,
|
|
12247
|
+
args: ['treeMenuIcon']
|
|
12243
12248
|
}] }]; } });
|
|
12244
12249
|
|
|
12245
12250
|
class SmartTreeComponent {
|
|
@@ -12420,7 +12425,11 @@ SmarttreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
12420
12425
|
MatMenuModule,
|
|
12421
12426
|
SmartIconModule,
|
|
12422
12427
|
SmartViewContextModule], exports: [SmartTreeComponent] });
|
|
12423
|
-
SmarttreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeModule, providers: [
|
|
12428
|
+
SmarttreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeModule, providers: [
|
|
12429
|
+
SmarttreeService,
|
|
12430
|
+
SmarttreeGenericService,
|
|
12431
|
+
{ provide: 'treeMenuIcon', useValue: 'more_vert' },
|
|
12432
|
+
], imports: [[
|
|
12424
12433
|
BrowserModule,
|
|
12425
12434
|
MatCommonModule,
|
|
12426
12435
|
MatButtonModule,
|
|
@@ -12446,7 +12455,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12446
12455
|
],
|
|
12447
12456
|
exports: [SmartTreeComponent],
|
|
12448
12457
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
12449
|
-
providers: [
|
|
12458
|
+
providers: [
|
|
12459
|
+
SmarttreeService,
|
|
12460
|
+
SmarttreeGenericService,
|
|
12461
|
+
{ provide: 'treeMenuIcon', useValue: 'more_vert' },
|
|
12462
|
+
],
|
|
12450
12463
|
}]
|
|
12451
12464
|
}] });
|
|
12452
12465
|
|