@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.
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +7 -7
- package/fesm2015/smartbit4all-ng-client.mjs +6 -6
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +6 -6
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +2 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.2.7.tgz +0 -0
- package/smartbit4all-ng-client-3.2.6.tgz +0 -0
|
@@ -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,
|
|
14048
|
+
constructor(inject, auth, pageName, _componentName) {
|
|
14049
14049
|
this.inject = inject;
|
|
14050
14050
|
this.auth = auth;
|
|
14051
14051
|
this.pageName = pageName;
|
|
14052
|
-
this.
|
|
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.
|
|
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.
|
|
14067
|
-
let pageNameForComponent = this.viewContext.getPageNameOfComponent(this.
|
|
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 (${
|
|
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
|