@smartbit4all/ng-client 1.0.18 → 1.0.19

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.
@@ -27,6 +27,7 @@ import { Validators } from '@angular/forms';
27
27
  import * as i5$1 from '@smartbit4all/form';
28
28
  import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
29
29
  import { __decorate, __param } from 'tslib';
30
+ import { SmarttreeGenericService } from '@smartbit4all/tree';
30
31
 
31
32
  /**
32
33
  * Custom HttpParameterCodec
@@ -3741,6 +3742,7 @@ class SmartSubject extends Subject {
3741
3742
 
3742
3743
  let SmartComponentApiClient = class SmartComponentApiClient {
3743
3744
  constructor(inject, auth, pageName) {
3745
+ this.inject = inject;
3744
3746
  this.auth = auth;
3745
3747
  this.pageName = pageName;
3746
3748
  this._destroy$ = new Subject();
@@ -3782,6 +3784,15 @@ let SmartComponentApiClient = class SmartComponentApiClient {
3782
3784
  this._data = model;
3783
3785
  this.dataChanged.next();
3784
3786
  }
3787
+ get smartTreeService() {
3788
+ return this._smartTreeService;
3789
+ }
3790
+ set smartTreeService(smartTreeService) {
3791
+ if (this._smartTreeService !== undefined) {
3792
+ throw Error('The default tree has already set up!');
3793
+ }
3794
+ this._smartTreeService = smartTreeService;
3795
+ }
3785
3796
  _ngOnInit() {
3786
3797
  this.run();
3787
3798
  }
@@ -3860,6 +3871,12 @@ let SmartComponentApiClient = class SmartComponentApiClient {
3860
3871
  }
3861
3872
  return smartGrid;
3862
3873
  }
3874
+ setUpDefaultTree(treeId) {
3875
+ this.smartTreeService = new SmarttreeGenericService(this.inject, this.pageName, treeId);
3876
+ }
3877
+ createTreeService(treeId) {
3878
+ return new SmarttreeGenericService(this.inject, this.pageName, treeId);
3879
+ }
3863
3880
  };
3864
3881
  SmartComponentApiClient = __decorate([
3865
3882
  __param(2, Inject('pageName'))