@smartbit4all/ng-client 3.2.6 → 3.2.8

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.
@@ -14045,11 +14045,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
14045
14045
  }], ctorParameters: function () { return [{ type: FilterService }]; } });
14046
14046
 
14047
14047
  class SmartComponentApiClient {
14048
- constructor(inject, auth, pageName, componentName) {
14048
+ constructor(inject, auth, pageName, _componentName) {
14049
14049
  this.inject = inject;
14050
14050
  this.auth = auth;
14051
14051
  this.pageName = pageName;
14052
- this.componentName = componentName;
14052
+ this._componentName = _componentName;
14053
14053
  this._destroy$ = new Subject();
14054
14054
  this.detectChange = new SmartSubject(this._destroy$);
14055
14055
  this.uiActionModels = [];
@@ -14059,17 +14059,17 @@ class SmartComponentApiClient {
14059
14059
  this.formWidgets = new WidgetMap();
14060
14060
  this.useQueryLists = false;
14061
14061
  // check and calculate pageName
14062
- if (!this.pageName && !this.componentName) {
14062
+ if (!this.pageName && !this._componentName) {
14063
14063
  throw new Error('pageName or componentName must be specified!');
14064
14064
  }
14065
14065
  this.viewContext = inject.get(SmartViewContextService);
14066
- if (this.componentName) {
14067
- let pageNameForComponent = this.viewContext.getPageNameOfComponent(this.componentName);
14066
+ if (this._componentName) {
14067
+ let pageNameForComponent = this.viewContext.getPageNameOfComponent(this._componentName);
14068
14068
  if (!this.pageName) {
14069
14069
  this.pageName = pageNameForComponent;
14070
14070
  }
14071
14071
  else if (this.pageName !== pageNameForComponent) {
14072
- throw new Error(`pageName (${pageName}) and componentName (${componentName}) doesn't match!`);
14072
+ throw new Error(`pageName (${pageName}) and componentName (${_componentName}) doesn't match!`);
14073
14073
  }
14074
14074
  }
14075
14075
  // from this point we have this.pageName
@@ -14591,8 +14591,8 @@ class WidgetMap {
14591
14591
  }
14592
14592
 
14593
14593
  class SmartComponent extends SmartComponentApiClient {
14594
- constructor(inject, auth, pageName) {
14595
- super(inject, auth, pageName);
14594
+ constructor(inject, auth, pageName, _componentName) {
14595
+ super(inject, auth, pageName, _componentName);
14596
14596
  }
14597
14597
  ngOnInit() {
14598
14598
  this._ngOnInit();
@@ -14619,7 +14619,7 @@ class SmartComponent extends SmartComponentApiClient {
14619
14619
  return this.smartFilterEditorServicesQL;
14620
14620
  }
14621
14621
  }
14622
- SmartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponent, deps: [{ token: i0.Injector }, { token: SmartAuthService }, { token: 'pageName' }], target: i0.ɵɵFactoryTarget.Component });
14622
+ SmartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponent, deps: [{ token: i0.Injector }, { token: SmartAuthService }, { token: 'pageName' }, { token: 'componentName' }], target: i0.ɵɵFactoryTarget.Component });
14623
14623
  SmartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartComponent, selector: "ng-component", viewQueries: [{ propertyName: "smartFormsQL", predicate: SmartformComponent, descendants: true }, { propertyName: "smartGridsQL", predicate: SmartGridComponent, descendants: true }, { propertyName: "smartTreesQL", predicate: SmarttreeGenericService, descendants: true }, { propertyName: "smartComponentLayoutsQL", predicate: SmartComponentLayoutComponent, descendants: true }, { propertyName: "smartFilterEditorServicesQL", predicate: SmartFilterEditorService, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
14624
14624
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponent, decorators: [{
14625
14625
  type: Component,
@@ -14632,6 +14632,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
14632
14632
  }] }, { type: undefined, decorators: [{
14633
14633
  type: Inject,
14634
14634
  args: ['pageName']
14635
+ }] }, { type: undefined, decorators: [{
14636
+ type: Inject,
14637
+ args: ['componentName']
14635
14638
  }] }]; }, propDecorators: { smartFormsQL: [{
14636
14639
  type: ViewChildren,
14637
14640
  args: [SmartformComponent]