@ionic/angular 7.5.1-nightly.20231012 → 7.5.1-nightly.20231016

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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, inject, NgZone, ApplicationRef, Injector, createComponent, InjectionToken, EnvironmentInjector, Inject, Optional, TemplateRef, Directive, ContentChild, EventEmitter, ViewContainerRef, Attribute, SkipSelf, Input, Output, reflectComponentType, HostListener, ElementRef, ViewChild } from '@angular/core';
3
- import { actionSheetController, alertController, loadingController, menuController, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, modalController, pickerController, popoverController, toastController, createAnimation, getTimeGivenProgression, createGesture, isPlatform, getPlatforms, componentOnReady } from '@ionic/core/components';
3
+ import { actionSheetController, alertController, loadingController, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, modalController, pickerController, popoverController, toastController, createAnimation, getTimeGivenProgression, createGesture, isPlatform, getPlatforms, componentOnReady } from '@ionic/core/components';
4
4
  import * as i3 from '@angular/router';
5
5
  import { NavigationStart, PRIMARY_OUTLET, ChildrenOutletContexts, ActivatedRoute, Router } from '@angular/router';
6
6
  import * as i1 from '@angular/common';
@@ -78,13 +78,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
78
78
  }], ctorParameters: function () { return []; } });
79
79
 
80
80
  class MenuController {
81
+ constructor(menuController) {
82
+ this.menuController = menuController;
83
+ }
81
84
  /**
82
85
  * Programmatically open the Menu.
83
86
  * @param [menuId] Optionally get the menu by its id, or side.
84
87
  * @return returns a promise when the menu is fully opened
85
88
  */
86
89
  open(menuId) {
87
- return menuController.open(menuId);
90
+ return this.menuController.open(menuId);
88
91
  }
89
92
  /**
90
93
  * Programmatically close the Menu. If no `menuId` is given as the first
@@ -94,7 +97,7 @@ class MenuController {
94
97
  * @return returns a promise when the menu is fully closed
95
98
  */
96
99
  close(menuId) {
97
- return menuController.close(menuId);
100
+ return this.menuController.close(menuId);
98
101
  }
99
102
  /**
100
103
  * Toggle the menu. If it's closed, it will open, and if opened, it
@@ -103,7 +106,7 @@ class MenuController {
103
106
  * @return returns a promise when the menu has been toggled
104
107
  */
105
108
  toggle(menuId) {
106
- return menuController.toggle(menuId);
109
+ return this.menuController.toggle(menuId);
107
110
  }
108
111
  /**
109
112
  * Used to enable or disable a menu. For example, there could be multiple
@@ -114,7 +117,7 @@ class MenuController {
114
117
  * @return Returns the instance of the menu, which is useful for chaining.
115
118
  */
116
119
  enable(shouldEnable, menuId) {
117
- return menuController.enable(shouldEnable, menuId);
120
+ return this.menuController.enable(shouldEnable, menuId);
118
121
  }
119
122
  /**
120
123
  * Used to enable or disable the ability to swipe open the menu.
@@ -123,7 +126,7 @@ class MenuController {
123
126
  * @return Returns the instance of the menu, which is useful for chaining.
124
127
  */
125
128
  swipeGesture(shouldEnable, menuId) {
126
- return menuController.swipeGesture(shouldEnable, menuId);
129
+ return this.menuController.swipeGesture(shouldEnable, menuId);
127
130
  }
128
131
  /**
129
132
  * @param [menuId] Optionally get the menu by its id, or side.
@@ -131,14 +134,14 @@ class MenuController {
131
134
  * If the menuId is not specified, it returns true if ANY menu is currenly open.
132
135
  */
133
136
  isOpen(menuId) {
134
- return menuController.isOpen(menuId);
137
+ return this.menuController.isOpen(menuId);
135
138
  }
136
139
  /**
137
140
  * @param [menuId] Optionally get the menu by its id, or side.
138
141
  * @return Returns true if the menu is currently enabled, otherwise false.
139
142
  */
140
143
  isEnabled(menuId) {
141
- return menuController.isEnabled(menuId);
144
+ return this.menuController.isEnabled(menuId);
142
145
  }
143
146
  /**
144
147
  * Used to get a menu instance. If a `menuId` is not provided then it'll
@@ -150,29 +153,21 @@ class MenuController {
150
153
  * @return Returns the instance of the menu if found, otherwise `null`.
151
154
  */
152
155
  get(menuId) {
153
- return menuController.get(menuId);
156
+ return this.menuController.get(menuId);
154
157
  }
155
158
  /**
156
159
  * @return Returns the instance of the menu already opened, otherwise `null`.
157
160
  */
158
161
  getOpen() {
159
- return menuController.getOpen();
162
+ return this.menuController.getOpen();
160
163
  }
161
164
  /**
162
165
  * @return Returns an array of all menu instances.
163
166
  */
164
167
  getMenus() {
165
- return menuController.getMenus();
168
+ return this.menuController.getMenus();
166
169
  }
167
170
  }
168
- /** @nocollapse */ MenuController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
169
- /** @nocollapse */ MenuController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, providedIn: 'root' });
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, decorators: [{
171
- type: Injectable,
172
- args: [{
173
- providedIn: 'root',
174
- }]
175
- }] });
176
171
 
177
172
  /**
178
173
  * @description