@smartbit4all/ng-client 1.0.0 → 1.0.2

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.
Files changed (51) hide show
  1. package/esm2020/lib/smart-client/projects.mjs +6 -0
  2. package/esm2020/lib/smart-client/smart-authentication.service.mjs +15 -0
  3. package/esm2020/lib/smart-client/smart-component-api-client.mjs +87 -0
  4. package/esm2020/lib/smart-client/smart.component.mjs +31 -0
  5. package/esm2020/lib/smart-client/smart.service.mjs +31 -0
  6. package/esm2020/lib/smart-client/smart.subject.mjs +13 -0
  7. package/esm2020/lib/smart-ng-client.module.mjs +2 -2
  8. package/esm2020/lib/view-context/api/api/view.service.mjs +130 -1
  9. package/esm2020/lib/view-context/api/api.module.mjs +15 -15
  10. package/esm2020/lib/view-context/api/configuration.mjs +2 -2
  11. package/esm2020/lib/view-context/api/model/componentModel.mjs +13 -0
  12. package/esm2020/lib/view-context/api/model/componentModelChange.mjs +13 -0
  13. package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
  14. package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
  15. package/esm2020/lib/view-context/api/model/models.mjs +4 -1
  16. package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
  17. package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
  18. package/esm2020/lib/view-context/api/model/view.mjs +1 -1
  19. package/esm2020/lib/view-context/api/model/viewContextChange.mjs +2 -0
  20. package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
  21. package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
  22. package/esm2020/lib/view-context/smart-view-context.service.mjs +26 -1
  23. package/esm2020/projects.mjs +2 -1
  24. package/fesm2015/smartbit4all-ng-client.mjs +339 -15
  25. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  26. package/fesm2020/smartbit4all-ng-client.mjs +351 -14
  27. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  28. package/lib/smart-client/projects.d.ts +5 -0
  29. package/lib/smart-client/smart-authentication.service.d.ts +12 -0
  30. package/lib/smart-client/smart-component-api-client.d.ts +31 -0
  31. package/lib/smart-client/smart.component.d.ts +12 -0
  32. package/lib/smart-client/smart.service.d.ts +12 -0
  33. package/lib/smart-client/smart.subject.d.ts +6 -0
  34. package/lib/view-context/api/api/view.service.d.ts +58 -0
  35. package/lib/view-context/api/api.module.d.ts +9 -9
  36. package/lib/view-context/api/model/componentModel.d.ts +33 -0
  37. package/lib/view-context/api/model/componentModelChange.d.ts +19 -0
  38. package/lib/view-context/api/model/messageData.d.ts +2 -0
  39. package/lib/view-context/api/model/messageOption.d.ts +2 -0
  40. package/lib/view-context/api/model/models.d.ts +3 -0
  41. package/lib/view-context/api/model/uiAction.d.ts +3 -0
  42. package/lib/view-context/api/model/uiActionDescriptor.d.ts +2 -0
  43. package/lib/view-context/api/model/view.d.ts +7 -0
  44. package/lib/view-context/api/model/viewContextChange.d.ts +20 -0
  45. package/lib/view-context/api/model/viewData.d.ts +2 -0
  46. package/lib/view-context/api/model/viewStateUpdate.d.ts +2 -0
  47. package/lib/view-context/smart-view-context.service.d.ts +8 -1
  48. package/package.json +1 -1
  49. package/projects.d.ts +1 -0
  50. package/smartbit4all-ng-client-1.0.2.tgz +0 -0
  51. package/smartbit4all-ng-client-1.0.0.tgz +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA, ViewChild, Input } from '@angular/core';
3
- import { __awaiter } from 'tslib';
3
+ import { __awaiter, __decorate, __param } from 'tslib';
4
4
  import { Subject, takeUntil, map, catchError, throwError, from } from 'rxjs';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpHeaders, HttpContext, HttpEventType, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
@@ -997,7 +997,7 @@ class Configuration {
997
997
  // All other styles and Date-formats are probably handled incorrectly.
998
998
  //
999
999
  // But: if that's all you need (i.e.: the most common use-case): no need for customization!
1000
- const value = param.dataFormat === 'date-time'
1000
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
1001
1001
  ? param.value.toISOString()
1002
1002
  : param.value;
1003
1003
  return encodeURIComponent(String(value));
@@ -1135,6 +1135,39 @@ class ViewService {
1135
1135
  if (localVarHttpContext === undefined) {
1136
1136
  localVarHttpContext = new HttpContext();
1137
1137
  }
1138
+ let localVarPath = `/component/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/download/${this.configuration.encodeParam({ name: "item", value: item, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1139
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1140
+ context: localVarHttpContext,
1141
+ responseType: "blob",
1142
+ withCredentials: this.configuration.withCredentials,
1143
+ headers: localVarHeaders,
1144
+ observe: observe,
1145
+ reportProgress: reportProgress
1146
+ });
1147
+ }
1148
+ downloadItemDeprecated(uuid, item, observe = 'body', reportProgress = false, options) {
1149
+ if (uuid === null || uuid === undefined) {
1150
+ throw new Error('Required parameter uuid was null or undefined when calling downloadItemDeprecated.');
1151
+ }
1152
+ if (item === null || item === undefined) {
1153
+ throw new Error('Required parameter item was null or undefined when calling downloadItemDeprecated.');
1154
+ }
1155
+ let localVarHeaders = this.defaultHeaders;
1156
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1157
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1158
+ // to determine the Accept header
1159
+ const httpHeaderAccepts = [
1160
+ 'application/octet-stream'
1161
+ ];
1162
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1163
+ }
1164
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1165
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1166
+ }
1167
+ let localVarHttpContext = options && options.context;
1168
+ if (localVarHttpContext === undefined) {
1169
+ localVarHttpContext = new HttpContext();
1170
+ }
1138
1171
  let localVarPath = `/view/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/download/${this.configuration.encodeParam({ name: "item", value: item, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1139
1172
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1140
1173
  context: localVarHttpContext,
@@ -1145,6 +1178,48 @@ class ViewService {
1145
1178
  reportProgress: reportProgress
1146
1179
  });
1147
1180
  }
1181
+ getComponentModel(uuid, observe = 'body', reportProgress = false, options) {
1182
+ if (uuid === null || uuid === undefined) {
1183
+ throw new Error('Required parameter uuid was null or undefined when calling getComponentModel.');
1184
+ }
1185
+ let localVarHeaders = this.defaultHeaders;
1186
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1187
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1188
+ // to determine the Accept header
1189
+ const httpHeaderAccepts = [
1190
+ 'application/json'
1191
+ ];
1192
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1193
+ }
1194
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1195
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1196
+ }
1197
+ let localVarHttpContext = options && options.context;
1198
+ if (localVarHttpContext === undefined) {
1199
+ localVarHttpContext = new HttpContext();
1200
+ }
1201
+ let responseType_ = 'json';
1202
+ if (localVarHttpHeaderAcceptSelected) {
1203
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1204
+ responseType_ = 'text';
1205
+ }
1206
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1207
+ responseType_ = 'json';
1208
+ }
1209
+ else {
1210
+ responseType_ = 'blob';
1211
+ }
1212
+ }
1213
+ let localVarPath = `/component/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
1214
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1215
+ context: localVarHttpContext,
1216
+ responseType: responseType_,
1217
+ withCredentials: this.configuration.withCredentials,
1218
+ headers: localVarHeaders,
1219
+ observe: observe,
1220
+ reportProgress: reportProgress
1221
+ });
1222
+ }
1148
1223
  getViewConstraint(uuid, observe = 'body', reportProgress = false, options) {
1149
1224
  if (uuid === null || uuid === undefined) {
1150
1225
  throw new Error('Required parameter uuid was null or undefined when calling getViewConstraint.');
@@ -1284,6 +1359,60 @@ class ViewService {
1284
1359
  reportProgress: reportProgress
1285
1360
  });
1286
1361
  }
1362
+ performAction(uuid, body, observe = 'body', reportProgress = false, options) {
1363
+ if (uuid === null || uuid === undefined) {
1364
+ throw new Error('Required parameter uuid was null or undefined when calling performAction.');
1365
+ }
1366
+ if (body === null || body === undefined) {
1367
+ throw new Error('Required parameter body was null or undefined when calling performAction.');
1368
+ }
1369
+ let localVarHeaders = this.defaultHeaders;
1370
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1371
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1372
+ // to determine the Accept header
1373
+ const httpHeaderAccepts = [
1374
+ 'application/json'
1375
+ ];
1376
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1377
+ }
1378
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1379
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1380
+ }
1381
+ let localVarHttpContext = options && options.context;
1382
+ if (localVarHttpContext === undefined) {
1383
+ localVarHttpContext = new HttpContext();
1384
+ }
1385
+ // to determine the Content-Type header
1386
+ const consumes = [
1387
+ 'application/json'
1388
+ ];
1389
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1390
+ if (httpContentTypeSelected !== undefined) {
1391
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1392
+ }
1393
+ let responseType_ = 'json';
1394
+ if (localVarHttpHeaderAcceptSelected) {
1395
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1396
+ responseType_ = 'text';
1397
+ }
1398
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1399
+ responseType_ = 'json';
1400
+ }
1401
+ else {
1402
+ responseType_ = 'blob';
1403
+ }
1404
+ }
1405
+ let localVarPath = `/component/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/action`;
1406
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1407
+ context: localVarHttpContext,
1408
+ body: body,
1409
+ responseType: responseType_,
1410
+ withCredentials: this.configuration.withCredentials,
1411
+ headers: localVarHeaders,
1412
+ observe: observe,
1413
+ reportProgress: reportProgress
1414
+ });
1415
+ }
1287
1416
  showPublishedView(channel, uuid, observe = 'body', reportProgress = false, options) {
1288
1417
  if (channel === null || channel === undefined) {
1289
1418
  throw new Error('Required parameter channel was null or undefined when calling showPublishedView.');
@@ -1560,36 +1689,36 @@ const ViewType = {
1560
1689
  Embedded: 'embedded'
1561
1690
  };
1562
1691
 
1563
- class ViewContextApiModule {
1692
+ class ApiModule {
1564
1693
  constructor(parentModule, http) {
1565
1694
  if (parentModule) {
1566
- throw new Error("ApiModule is already loaded. Import in your base AppModule only.");
1695
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
1567
1696
  }
1568
1697
  if (!http) {
1569
- throw new Error("You need to import the HttpClientModule in your AppModule! \n" +
1570
- "See also https://github.com/angular/angular/issues/20575");
1698
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
1699
+ 'See also https://github.com/angular/angular/issues/20575');
1571
1700
  }
1572
1701
  }
1573
1702
  static forRoot(configurationFactory) {
1574
1703
  return {
1575
- ngModule: ViewContextApiModule,
1576
- providers: [{ provide: Configuration, useFactory: configurationFactory }],
1704
+ ngModule: ApiModule,
1705
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
1577
1706
  };
1578
1707
  }
1579
1708
  }
1580
- ViewContextApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewContextApiModule, deps: [{ token: ViewContextApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
1581
- ViewContextApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewContextApiModule });
1582
- ViewContextApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewContextApiModule, providers: [], imports: [[]] });
1583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewContextApiModule, decorators: [{
1709
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
1710
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
1711
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
1712
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
1584
1713
  type: NgModule,
1585
1714
  args: [{
1586
1715
  imports: [],
1587
1716
  declarations: [],
1588
1717
  exports: [],
1589
- providers: [],
1718
+ providers: []
1590
1719
  }]
1591
1720
  }], ctorParameters: function () {
1592
- return [{ type: ViewContextApiModule, decorators: [{
1721
+ return [{ type: ApiModule, decorators: [{
1593
1722
  type: Optional
1594
1723
  }, {
1595
1724
  type: SkipSelf
@@ -1671,6 +1800,7 @@ class SmartViewContextService {
1671
1800
  this.openSmartLink = new Subject();
1672
1801
  this.isOpeningSmartLink = false;
1673
1802
  this.dialogRefs = [];
1803
+ this.smartApiClients = new Map();
1674
1804
  this.translateServiceChanged = new Subject();
1675
1805
  }
1676
1806
  set translateService(translateService) {
@@ -1684,6 +1814,12 @@ class SmartViewContextService {
1684
1814
  }
1685
1815
  return undefined;
1686
1816
  }
1817
+ follow(uuid, detectChange) {
1818
+ this.smartApiClients.set(uuid, detectChange);
1819
+ }
1820
+ unfollow(uuid) {
1821
+ this.smartApiClients.delete(uuid);
1822
+ }
1687
1823
  setActionDescriptors(actionDescriptors) {
1688
1824
  this.actionDescriptors = actionDescriptors;
1689
1825
  }
@@ -1974,6 +2110,28 @@ class SmartViewContextService {
1974
2110
  return yield this.view.downloadItem(uuid, item).toPromise();
1975
2111
  });
1976
2112
  }
2113
+ performAction(uuid, uiActionRequest) {
2114
+ return __awaiter(this, void 0, void 0, function* () {
2115
+ let viewContextChange = yield this.view.performAction(uuid, uiActionRequest).toPromise();
2116
+ this.viewContext = viewContextChange === null || viewContextChange === void 0 ? void 0 : viewContextChange.viewContext;
2117
+ if (viewContextChange === null || viewContextChange === void 0 ? void 0 : viewContextChange.changes) {
2118
+ this.handleChanges(viewContextChange.changes);
2119
+ }
2120
+ });
2121
+ }
2122
+ handleChanges(changes) {
2123
+ changes.forEach((componentModelChange) => {
2124
+ let detectChange = this.smartApiClients.get(componentModelChange.uuid);
2125
+ if (detectChange) {
2126
+ detectChange.next(componentModelChange.value);
2127
+ }
2128
+ });
2129
+ }
2130
+ load(uuid) {
2131
+ return __awaiter(this, void 0, void 0, function* () {
2132
+ return yield this.view.getComponentModel(uuid).toPromise();
2133
+ });
2134
+ }
1977
2135
  }
1978
2136
  SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: i3$1.SmartNavigationService }, { token: i4.SmartdialogService }], target: i0.ɵɵFactoryTarget.Injectable });
1979
2137
  SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartViewContextService, providedIn: "root" });
@@ -3406,6 +3564,172 @@ var UiActionDialogType;
3406
3564
  * Public API Surface of smart-view-context
3407
3565
  */
3408
3566
 
3567
+ class SmartAuthService {
3568
+ constructor() {
3569
+ this.bffApisHaveBeenSetUp = false;
3570
+ this.headersUpdated = new Subject();
3571
+ }
3572
+ }
3573
+ SmartAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3574
+ SmartAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartAuthService });
3575
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartAuthService, decorators: [{
3576
+ type: Injectable
3577
+ }] });
3578
+
3579
+ class SmartSubject extends Subject {
3580
+ constructor(unsubscribe$) {
3581
+ super();
3582
+ this.unsubscribe$ = unsubscribe$;
3583
+ }
3584
+ subscribe(next, error, complete) {
3585
+ const subscription = super.subscribe(next, error, complete);
3586
+ subscription.add(this.unsubscribe$.subscribe());
3587
+ return subscription;
3588
+ }
3589
+ }
3590
+
3591
+ let SmartComponentApiClient = class SmartComponentApiClient {
3592
+ constructor(auth, viewContext, pageName) {
3593
+ this.auth = auth;
3594
+ this.viewContext = viewContext;
3595
+ this.pageName = pageName;
3596
+ this._destroy$ = new Subject();
3597
+ this.detectChange = new SmartSubject(this._destroy$);
3598
+ this.modelChanged = new SmartSubject(this._destroy$);
3599
+ // UseUiAction
3600
+ this.submit = new SmartSubject(this._destroy$);
3601
+ this.reSubscribeToChange = new SmartSubject(this._destroy$);
3602
+ this.detectChange.subscribe((data) => {
3603
+ this.data = data;
3604
+ });
3605
+ }
3606
+ get uuid() {
3607
+ return this._uuid;
3608
+ }
3609
+ set uuid(uuid) {
3610
+ this._uuid = uuid;
3611
+ this.viewContext.follow(this._uuid, this.detectChange);
3612
+ }
3613
+ get model() {
3614
+ return this._model;
3615
+ }
3616
+ set model(model) {
3617
+ this._model = model;
3618
+ if (model === null || model === void 0 ? void 0 : model.data) {
3619
+ this.data = model === null || model === void 0 ? void 0 : model.data;
3620
+ }
3621
+ }
3622
+ get data() {
3623
+ return this._data;
3624
+ }
3625
+ set data(model) {
3626
+ this._data = model;
3627
+ this.modelChanged.next();
3628
+ }
3629
+ _ngOnInit() {
3630
+ this.run();
3631
+ }
3632
+ _ngOnDestroy() {
3633
+ this.viewContext.unfollow(this.uuid);
3634
+ this._destroy$.next();
3635
+ this._destroy$.complete();
3636
+ }
3637
+ run() {
3638
+ if (this.auth.bffApisHaveBeenSetUp) {
3639
+ this.load();
3640
+ }
3641
+ else {
3642
+ this.auth.headersUpdated.subscribe(() => {
3643
+ this.load();
3644
+ });
3645
+ }
3646
+ }
3647
+ getAdditionalParams(uiAction) {
3648
+ return {
3649
+ forTextArea: "",
3650
+ forTextField: "",
3651
+ };
3652
+ }
3653
+ getModel() {
3654
+ return this.data;
3655
+ }
3656
+ // this should not be abstract
3657
+ performUiActionRequest(uiActionRequest) {
3658
+ return __awaiter(this, void 0, void 0, function* () {
3659
+ yield this.viewContext.performAction(this.uuid, uiActionRequest);
3660
+ });
3661
+ }
3662
+ handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
3663
+ throw new Error("handleSpecificDemandsAsynchronously method not implemented.");
3664
+ }
3665
+ // this should not be abstract
3666
+ load() {
3667
+ return __awaiter(this, void 0, void 0, function* () {
3668
+ this.uuid = this.viewContext.getUuidOfPage(this.pageName);
3669
+ this.model = yield this.viewContext.load(this.uuid);
3670
+ });
3671
+ }
3672
+ };
3673
+ SmartComponentApiClient = __decorate([
3674
+ __param(2, Inject("pageName"))
3675
+ ], SmartComponentApiClient);
3676
+
3677
+ class SmartComponent extends SmartComponentApiClient {
3678
+ constructor(auth, viewContext, pageName) {
3679
+ super(auth, viewContext, pageName);
3680
+ }
3681
+ ngOnInit() {
3682
+ this._ngOnInit();
3683
+ }
3684
+ ngOnDestroy() {
3685
+ this._ngOnDestroy();
3686
+ }
3687
+ }
3688
+ SmartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponent, deps: [{ token: SmartAuthService }, { token: SmartViewContextService }, { token: "pageName" }], target: i0.ɵɵFactoryTarget.Component });
3689
+ SmartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "", isInline: true });
3690
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponent, decorators: [{
3691
+ type: Component,
3692
+ args: [{
3693
+ template: "",
3694
+ }]
3695
+ }], ctorParameters: function () {
3696
+ return [{ type: undefined, decorators: [{
3697
+ type: Inject,
3698
+ args: [SmartAuthService]
3699
+ }] }, { type: SmartViewContextService }, { type: undefined, decorators: [{
3700
+ type: Inject,
3701
+ args: ["pageName"]
3702
+ }] }];
3703
+ } });
3704
+
3705
+ class SmartService extends SmartComponentApiClient {
3706
+ constructor(auth, viewContext, pageName) {
3707
+ super(auth, viewContext, pageName);
3708
+ }
3709
+ ngOnInit() {
3710
+ this._ngOnInit();
3711
+ }
3712
+ ngOnDestroy() {
3713
+ this._ngOnDestroy();
3714
+ }
3715
+ }
3716
+ SmartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartService, deps: [{ token: SmartAuthService }, { token: SmartViewContextService }, { token: "pageName" }], target: i0.ɵɵFactoryTarget.Injectable });
3717
+ SmartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartService, providedIn: "root" });
3718
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartService, decorators: [{
3719
+ type: Injectable,
3720
+ args: [{
3721
+ providedIn: "root",
3722
+ }]
3723
+ }], ctorParameters: function () {
3724
+ return [{ type: undefined, decorators: [{
3725
+ type: Inject,
3726
+ args: [SmartAuthService]
3727
+ }] }, { type: SmartViewContextService }, { type: undefined, decorators: [{
3728
+ type: Inject,
3729
+ args: ["pageName"]
3730
+ }] }];
3731
+ } });
3732
+
3409
3733
  /*
3410
3734
  * Public API Surface of smart-ng-client
3411
3735
  */
@@ -3414,5 +3738,5 @@ var UiActionDialogType;
3414
3738
  * Generated bundle index. Do not edit.
3415
3739
  */
3416
3740
 
3417
- export { APIS, BASE_PATH, COLLECTION_FORMATS, CloseResult, Configuration, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewContextApiModule, ViewService, ViewState, ViewType };
3741
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, CloseResult, Configuration, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewService, ViewState, ViewType };
3418
3742
  //# sourceMappingURL=smartbit4all-ng-client.mjs.map