@smartbit4all/ng-client 3.0.31 → 3.0.32

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.
@@ -2376,19 +2376,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
2376
2376
  * Public API Surface of smart-navigation
2377
2377
  */
2378
2378
 
2379
- class SmartdialogService {
2379
+ class SmartViewContextDialogService {
2380
2380
  constructor(dialog, router) {
2381
2381
  this.dialog = dialog;
2382
2382
  this.router = router;
2383
2383
  }
2384
2384
  createDialog(smartDialog, component) {
2385
- let dialogData = smartDialog;
2386
- let dialogRef = this.dialog.open(component, { data: dialogData });
2387
- dialogRef.afterClosed().subscribe((result) => {
2385
+ this.dialogData = smartDialog;
2386
+ this.dialogRef = this.dialog.open(component, { data: this.dialogData });
2387
+ this.dialogRef.afterClosed().subscribe((result) => {
2388
2388
  this.handleAfterClosed(result);
2389
- this.closeDialog(dialogRef, dialogData);
2389
+ this.closeDialog();
2390
2390
  });
2391
- return dialogRef;
2391
+ return this.dialogRef;
2392
2392
  }
2393
2393
  createDialogRef(smartDialog, component) {
2394
2394
  const dialogRef = this.dialog.open(component, { data: smartDialog });
@@ -2412,22 +2412,23 @@ class SmartdialogService {
2412
2412
  openDialog() {
2413
2413
  throw new Error('openDialog function is not implemented!');
2414
2414
  }
2415
- closeDialog(dialogRef, dialogData) {
2415
+ closeDialog() {
2416
+ var _a, _b;
2416
2417
  return __awaiter(this, void 0, void 0, function* () {
2417
- if (dialogData === null || dialogData === void 0 ? void 0 : dialogData.outlets) {
2418
+ if ((_a = this.dialogData) === null || _a === void 0 ? void 0 : _a.outlets) {
2418
2419
  yield this.router.navigate([
2419
2420
  {
2420
- outlets: dialogData.outlets,
2421
+ outlets: this.dialogData.outlets,
2421
2422
  },
2422
2423
  ]);
2423
2424
  }
2424
- dialogRef === null || dialogRef === void 0 ? void 0 : dialogRef.close();
2425
+ (_b = this.dialogRef) === null || _b === void 0 ? void 0 : _b.close();
2425
2426
  });
2426
2427
  }
2427
2428
  }
2428
- SmartdialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartdialogService, deps: [{ token: i1$2.MatDialog }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2429
- SmartdialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartdialogService, providedIn: 'root' });
2430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartdialogService, decorators: [{
2429
+ SmartViewContextDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, deps: [{ token: i1$2.MatDialog }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2430
+ SmartViewContextDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, providedIn: 'root' });
2431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, decorators: [{
2431
2432
  type: Injectable,
2432
2433
  args: [{
2433
2434
  providedIn: 'root',
@@ -3017,14 +3018,14 @@ class SmartViewContextService {
3017
3018
  });
3018
3019
  }
3019
3020
  }
3020
- SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token: SmartdialogService }, { token: ApiQueueService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3021
+ SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token: SmartViewContextDialogService }, { token: ApiQueueService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3021
3022
  SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, providedIn: 'root' });
3022
3023
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, decorators: [{
3023
3024
  type: Injectable,
3024
3025
  args: [{
3025
3026
  providedIn: 'root',
3026
3027
  }]
3027
- }], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartdialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
3028
+ }], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartViewContextDialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
3028
3029
  const IS_ASYNC_PARAM_NAME = 'isAsync';
3029
3030
  class ApiQueueService {
3030
3031
  constructor() {