@smartbit4all/ng-client 3.3.103 → 3.3.105

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.
@@ -11971,14 +11971,18 @@ 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();
11981
11982
  this.uiActionDescriptors = new Map();
11983
+ if (!this.treeMenuIcon) {
11984
+ this.treeMenuIcon = inject.get('treeMenuIcon');
11985
+ }
11982
11986
  this.configureTree({
11983
11987
  pageName: this.pageName,
11984
11988
  treeid: this.treeId,
@@ -12121,11 +12125,12 @@ class SmarttreeGenericService extends SmarttreeService {
12121
12125
  });
12122
12126
  }
12123
12127
  createButtonsForTreeNodes(nodes) {
12128
+ let icon = this.treeMenuIcon ?? 'more_vert';
12124
12129
  nodes.map((node) => {
12125
12130
  node.button = node.actions?.length
12126
12131
  ? {
12127
12132
  type: SmartTreeNodeButtonType.MENU,
12128
- icon: 'more_vert',
12133
+ icon: icon,
12129
12134
  menuItemButtons: node.actions.map((action) => {
12130
12135
  return {
12131
12136
  type: SmartTreeNodeButtonType.NORMAL,
@@ -12227,7 +12232,7 @@ class SmarttreeGenericService extends SmarttreeService {
12227
12232
  throw new Error('Method not implemented.');
12228
12233
  }
12229
12234
  }
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 });
12235
+ 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
12236
  SmarttreeGenericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeGenericService, providedIn: 'root' });
12232
12237
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeGenericService, decorators: [{
12233
12238
  type: Injectable,
@@ -12240,6 +12245,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
12240
12245
  }] }, { type: undefined, decorators: [{
12241
12246
  type: Inject,
12242
12247
  args: ['treeId']
12248
+ }] }, { type: undefined, decorators: [{
12249
+ type: Inject,
12250
+ args: ['treeMenuIcon']
12243
12251
  }] }]; } });
12244
12252
 
12245
12253
  class SmartTreeComponent {
@@ -12420,7 +12428,11 @@ SmarttreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
12420
12428
  MatMenuModule,
12421
12429
  SmartIconModule,
12422
12430
  SmartViewContextModule], exports: [SmartTreeComponent] });
12423
- SmarttreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeModule, providers: [SmarttreeService, SmarttreeGenericService], imports: [[
12431
+ SmarttreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmarttreeModule, providers: [
12432
+ SmarttreeService,
12433
+ SmarttreeGenericService,
12434
+ { provide: 'treeMenuIcon', useValue: 'more_vert' },
12435
+ ], imports: [[
12424
12436
  BrowserModule,
12425
12437
  MatCommonModule,
12426
12438
  MatButtonModule,
@@ -12446,7 +12458,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
12446
12458
  ],
12447
12459
  exports: [SmartTreeComponent],
12448
12460
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
12449
- providers: [SmarttreeService, SmarttreeGenericService],
12461
+ providers: [
12462
+ SmarttreeService,
12463
+ SmarttreeGenericService,
12464
+ { provide: 'treeMenuIcon', useValue: 'more_vert' },
12465
+ ],
12450
12466
  }]
12451
12467
  }] });
12452
12468