@smartbit4all/ng-client 3.2.6 → 3.2.7

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