@ionic/angular 7.4.5-dev.11697034550.1e097439 → 7.5.1-dev.11697118574.1ac5fe6f

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,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
78
78
  }], ctorParameters: function () { return []; } });
79
79
 
80
80
  class MenuController {
81
+ // TODO Now - Add type
82
+ constructor(menuCtrl) {
83
+ this.menuCtrl = menuCtrl;
84
+ this.menuController = this.menuCtrl;
85
+ }
81
86
  /**
82
87
  * Programmatically open the Menu.
83
88
  * @param [menuId] Optionally get the menu by its id, or side.
84
89
  * @return returns a promise when the menu is fully opened
85
90
  */
86
91
  open(menuId) {
87
- return menuController.open(menuId);
92
+ return this.menuController.open(menuId);
88
93
  }
89
94
  /**
90
95
  * Programmatically close the Menu. If no `menuId` is given as the first
@@ -94,7 +99,7 @@ class MenuController {
94
99
  * @return returns a promise when the menu is fully closed
95
100
  */
96
101
  close(menuId) {
97
- return menuController.close(menuId);
102
+ return this.menuController.close(menuId);
98
103
  }
99
104
  /**
100
105
  * Toggle the menu. If it's closed, it will open, and if opened, it
@@ -103,7 +108,7 @@ class MenuController {
103
108
  * @return returns a promise when the menu has been toggled
104
109
  */
105
110
  toggle(menuId) {
106
- return menuController.toggle(menuId);
111
+ return this.menuController.toggle(menuId);
107
112
  }
108
113
  /**
109
114
  * Used to enable or disable a menu. For example, there could be multiple
@@ -114,7 +119,7 @@ class MenuController {
114
119
  * @return Returns the instance of the menu, which is useful for chaining.
115
120
  */
116
121
  enable(shouldEnable, menuId) {
117
- return menuController.enable(shouldEnable, menuId);
122
+ return this.menuController.enable(shouldEnable, menuId);
118
123
  }
119
124
  /**
120
125
  * Used to enable or disable the ability to swipe open the menu.
@@ -123,7 +128,7 @@ class MenuController {
123
128
  * @return Returns the instance of the menu, which is useful for chaining.
124
129
  */
125
130
  swipeGesture(shouldEnable, menuId) {
126
- return menuController.swipeGesture(shouldEnable, menuId);
131
+ return this.menuController.swipeGesture(shouldEnable, menuId);
127
132
  }
128
133
  /**
129
134
  * @param [menuId] Optionally get the menu by its id, or side.
@@ -131,14 +136,14 @@ class MenuController {
131
136
  * If the menuId is not specified, it returns true if ANY menu is currenly open.
132
137
  */
133
138
  isOpen(menuId) {
134
- return menuController.isOpen(menuId);
139
+ return this.menuController.isOpen(menuId);
135
140
  }
136
141
  /**
137
142
  * @param [menuId] Optionally get the menu by its id, or side.
138
143
  * @return Returns true if the menu is currently enabled, otherwise false.
139
144
  */
140
145
  isEnabled(menuId) {
141
- return menuController.isEnabled(menuId);
146
+ return this.menuController.isEnabled(menuId);
142
147
  }
143
148
  /**
144
149
  * Used to get a menu instance. If a `menuId` is not provided then it'll
@@ -150,29 +155,29 @@ class MenuController {
150
155
  * @return Returns the instance of the menu if found, otherwise `null`.
151
156
  */
152
157
  get(menuId) {
153
- return menuController.get(menuId);
158
+ return this.menuController.get(menuId);
154
159
  }
155
160
  /**
156
161
  * @return Returns the instance of the menu already opened, otherwise `null`.
157
162
  */
158
163
  getOpen() {
159
- return menuController.getOpen();
164
+ return this.menuController.getOpen();
160
165
  }
161
166
  /**
162
167
  * @return Returns an array of all menu instances.
163
168
  */
164
169
  getMenus() {
165
- return menuController.getMenus();
170
+ return this.menuController.getMenus();
166
171
  }
167
172
  }
168
- /** @nocollapse */ MenuController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
173
+ /** @nocollapse */ MenuController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
169
174
  /** @nocollapse */ MenuController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, providedIn: 'root' });
170
175
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, decorators: [{
171
176
  type: Injectable,
172
177
  args: [{
173
178
  providedIn: 'root',
174
179
  }]
175
- }] });
180
+ }], ctorParameters: function () { return [{ type: undefined }]; } });
176
181
 
177
182
  /**
178
183
  * @description