@smartbit4all/ng-client 3.0.31 → 3.0.33

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,7 +2491,7 @@ 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;
@@ -2538,9 +2538,9 @@ class SmartdialogService {
2538
2538
  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',
@@ -2746,10 +2746,13 @@ class SmartViewContextService {
2746
2746
  this.performAction(view.uuid, { code: DefaultUiActionCode_CLOSE, params: {} });
2747
2747
  });
2748
2748
  }
2749
- this.dialogRefs.push({
2750
- uuid: view.uuid,
2751
- dialogRef,
2752
- });
2749
+ let refIsAlradyAdded = this.dialogRefs.some((ref) => ref.uuid === view.uuid);
2750
+ if (!refIsAlradyAdded) {
2751
+ this.dialogRefs.push({
2752
+ uuid: view.uuid,
2753
+ dialogRef,
2754
+ });
2755
+ }
2753
2756
  }
2754
2757
  else if (view.type === ViewType.Normal) {
2755
2758
  if (viewHandler.route === undefined) {
@@ -3069,14 +3072,14 @@ class SmartViewContextService {
3069
3072
  return change;
3070
3073
  }
3071
3074
  }
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 });
3075
+ 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
3076
  SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, providedIn: 'root' });
3074
3077
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, decorators: [{
3075
3078
  type: Injectable,
3076
3079
  args: [{
3077
3080
  providedIn: 'root',
3078
3081
  }]
3079
- }], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartdialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
3082
+ }], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartViewContextDialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
3080
3083
  const IS_ASYNC_PARAM_NAME = 'isAsync';
3081
3084
  class ApiQueueService {
3082
3085
  constructor() {