@gravitee/ui-particles-angular 4.10.4 → 4.10.5-fix-menu-service-singleton-d215d9a

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.
@@ -98,7 +98,7 @@
98
98
  this.resetClicked.emit();
99
99
  };
100
100
  GioSaveBarComponent.prototype.onDisableSubmitLock = function () {
101
- this.hasSubmitLock = true;
101
+ this.hasSubmitLock = false;
102
102
  };
103
103
  GioSaveBarComponent.prototype.onSubmitClicked = function () {
104
104
  var _this = this;
@@ -2480,6 +2480,7 @@
2480
2480
  this.overlaySource = new rxjs.BehaviorSubject({ open: false });
2481
2481
  this.reduce = this.reduceSource.asObservable();
2482
2482
  this.overlayObservable = this.overlaySource.asObservable().pipe(operators.distinctUntilChanged(function (prev, curr) { return prev.open === curr.open; }), operators.debounce(function (overlayOptions) { return rxjs.timer(overlayOptions.open ? 150 : 500); }));
2483
+ console.log('New instance of menu service', this);
2483
2484
  }
2484
2485
  GioMenuService.prototype.reduced = function (reduced) {
2485
2486
  this.reduceSource.next(reduced);
@@ -2490,10 +2491,13 @@
2490
2491
  return GioMenuService;
2491
2492
  }());
2492
2493
  GioMenuService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2493
- GioMenuService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService });
2494
+ GioMenuService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService, providedIn: 'root' });
2494
2495
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService, decorators: [{
2495
- type: i0.Injectable
2496
- }] });
2496
+ type: i0.Injectable,
2497
+ args: [{
2498
+ providedIn: 'root',
2499
+ }]
2500
+ }], ctorParameters: function () { return []; } });
2497
2501
 
2498
2502
  /*
2499
2503
  * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
@@ -2760,6 +2764,36 @@
2760
2764
  }]
2761
2765
  }] });
2762
2766
 
2767
+ /*
2768
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
2769
+ *
2770
+ * Licensed under the Apache License, Version 2.0 (the "License");
2771
+ * you may not use this file except in compliance with the License.
2772
+ * You may obtain a copy of the License at
2773
+ *
2774
+ * http://www.apache.org/licenses/LICENSE-2.0
2775
+ *
2776
+ * Unless required by applicable law or agreed to in writing, software
2777
+ * distributed under the License is distributed on an "AS IS" BASIS,
2778
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2779
+ * See the License for the specific language governing permissions and
2780
+ * limitations under the License.
2781
+ */
2782
+ var GioMenuServiceModule = /** @class */ (function () {
2783
+ function GioMenuServiceModule() {
2784
+ }
2785
+ return GioMenuServiceModule;
2786
+ }());
2787
+ GioMenuServiceModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuServiceModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2788
+ GioMenuServiceModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuServiceModule });
2789
+ GioMenuServiceModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuServiceModule, providers: [GioMenuService] });
2790
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuServiceModule, decorators: [{
2791
+ type: i0.NgModule,
2792
+ args: [{
2793
+ providers: [GioMenuService],
2794
+ }]
2795
+ }] });
2796
+
2763
2797
  /*
2764
2798
  * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
2765
2799
  *
@@ -2786,13 +2820,13 @@
2786
2820
  GioMenuFooterComponent,
2787
2821
  GioMenuListComponent,
2788
2822
  GioMenuHeaderComponent,
2789
- GioMenuSelectorComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule], exports: [GioMenuComponent,
2823
+ GioMenuSelectorComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule, GioMenuServiceModule], exports: [GioMenuComponent,
2790
2824
  GioMenuItemComponent,
2791
2825
  GioMenuFooterComponent,
2792
2826
  GioMenuListComponent,
2793
2827
  GioMenuHeaderComponent,
2794
2828
  GioMenuSelectorComponent] });
2795
- GioMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, providers: [GioMenuService], imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule]] });
2829
+ GioMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule, GioMenuServiceModule]] });
2796
2830
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, decorators: [{
2797
2831
  type: i0.NgModule,
2798
2832
  args: [{
@@ -2812,8 +2846,7 @@
2812
2846
  GioMenuHeaderComponent,
2813
2847
  GioMenuSelectorComponent,
2814
2848
  ],
2815
- imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule],
2816
- providers: [GioMenuService],
2849
+ imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule, GioMenuServiceModule],
2817
2850
  }]
2818
2851
  }] });
2819
2852
 
@@ -2991,15 +3024,14 @@
2991
3024
  return GioSubmenuModule;
2992
3025
  }());
2993
3026
  GioSubmenuModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2994
- GioSubmenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, declarations: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule], exports: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent] });
2995
- GioSubmenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, providers: [GioMenuService], imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule]] });
3027
+ GioSubmenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, declarations: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, GioMenuServiceModule], exports: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent] });
3028
+ GioSubmenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, GioMenuServiceModule]] });
2996
3029
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, decorators: [{
2997
3030
  type: i0.NgModule,
2998
3031
  args: [{
2999
3032
  declarations: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent],
3000
3033
  exports: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent],
3001
- imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule],
3002
- providers: [GioMenuService],
3034
+ imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, GioMenuServiceModule],
3003
3035
  }]
3004
3036
  }] });
3005
3037
 
@@ -3472,6 +3504,7 @@
3472
3504
  exports.GioMenuModule = GioMenuModule;
3473
3505
  exports.GioMenuSelectorComponent = GioMenuSelectorComponent;
3474
3506
  exports.GioMenuService = GioMenuService;
3507
+ exports.GioMenuServiceModule = GioMenuServiceModule;
3475
3508
  exports.GioSaveBarComponent = GioSaveBarComponent;
3476
3509
  exports.GioSaveBarHarness = GioSaveBarHarness;
3477
3510
  exports.GioSaveBarModule = GioSaveBarModule;