@smartbit4all/ng-client 3.0.30 → 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.
@@ -2491,19 +2491,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
2491
2491
  * Public API Surface of smart-navigation
2492
2492
  */
2493
2493
 
2494
- class SmartdialogService {
2494
+ class SmartViewContextDialogService {
2495
2495
  constructor(dialog, router) {
2496
2496
  this.dialog = dialog;
2497
2497
  this.router = router;
2498
2498
  }
2499
2499
  createDialog(smartDialog, component) {
2500
- let dialogData = smartDialog;
2501
- let dialogRef = this.dialog.open(component, { data: dialogData });
2502
- dialogRef.afterClosed().subscribe((result) => {
2500
+ this.dialogData = smartDialog;
2501
+ this.dialogRef = this.dialog.open(component, { data: this.dialogData });
2502
+ this.dialogRef.afterClosed().subscribe((result) => {
2503
2503
  this.handleAfterClosed(result);
2504
- this.closeDialog(dialogRef, dialogData);
2504
+ this.closeDialog();
2505
2505
  });
2506
- return dialogRef;
2506
+ return this.dialogRef;
2507
2507
  }
2508
2508
  createDialogRef(smartDialog, component) {
2509
2509
  const dialogRef = this.dialog.open(component, { data: smartDialog });
@@ -2527,20 +2527,20 @@ class SmartdialogService {
2527
2527
  openDialog() {
2528
2528
  throw new Error('openDialog function is not implemented!');
2529
2529
  }
2530
- async closeDialog(dialogRef, dialogData) {
2531
- if (dialogData?.outlets) {
2530
+ async closeDialog() {
2531
+ if (this.dialogData?.outlets) {
2532
2532
  await this.router.navigate([
2533
2533
  {
2534
- outlets: dialogData.outlets,
2534
+ outlets: this.dialogData.outlets,
2535
2535
  },
2536
2536
  ]);
2537
2537
  }
2538
- dialogRef?.close();
2538
+ this.dialogRef?.close();
2539
2539
  }
2540
2540
  }
2541
- 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 });
2542
- SmartdialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartdialogService, providedIn: 'root' });
2543
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartdialogService, decorators: [{
2541
+ 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 });
2542
+ SmartViewContextDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, providedIn: 'root' });
2543
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, decorators: [{
2544
2544
  type: Injectable,
2545
2545
  args: [{
2546
2546
  providedIn: 'root',
@@ -3069,14 +3069,14 @@ class SmartViewContextService {
3069
3069
  return change;
3070
3070
  }
3071
3071
  }
3072
- 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 });
3072
+ 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 });
3073
3073
  SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, providedIn: 'root' });
3074
3074
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, decorators: [{
3075
3075
  type: Injectable,
3076
3076
  args: [{
3077
3077
  providedIn: 'root',
3078
3078
  }]
3079
- }], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartdialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
3079
+ }], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartViewContextDialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
3080
3080
  const IS_ASYNC_PARAM_NAME = 'isAsync';
3081
3081
  class ApiQueueService {
3082
3082
  constructor() {