@ionic/angular 7.5.1-dev.11697122792.1fb772c6 → 7.5.1-dev.11697139276.10eb94b8
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.
- package/common/providers/menu-controller.d.ts +3 -3
- package/esm2020/common/providers/menu-controller.mjs +22 -14
- package/esm2020/index.mjs +2 -3
- package/esm2020/standalone/index.mjs +2 -3
- package/fesm2015/ionic-angular-common.mjs +19 -14
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +5 -19
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +5 -19
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +19 -14
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +5 -19
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +5 -19
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/package.json +2 -2
- package/standalone/index.d.ts +1 -2
- package/esm2020/providers/menu-controller.mjs +0 -18
- package/esm2020/standalone/providers/menu-controller.mjs +0 -18
- package/providers/menu-controller.d.ts +0 -7
- package/standalone/providers/menu-controller.d.ts +0 -7
|
@@ -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, 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, 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';
|
|
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,16 +78,13 @@ 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
|
-
}
|
|
84
81
|
/**
|
|
85
82
|
* Programmatically open the Menu.
|
|
86
83
|
* @param [menuId] Optionally get the menu by its id, or side.
|
|
87
84
|
* @return returns a promise when the menu is fully opened
|
|
88
85
|
*/
|
|
89
86
|
open(menuId) {
|
|
90
|
-
return
|
|
87
|
+
return menuController.open(menuId);
|
|
91
88
|
}
|
|
92
89
|
/**
|
|
93
90
|
* Programmatically close the Menu. If no `menuId` is given as the first
|
|
@@ -97,7 +94,7 @@ class MenuController {
|
|
|
97
94
|
* @return returns a promise when the menu is fully closed
|
|
98
95
|
*/
|
|
99
96
|
close(menuId) {
|
|
100
|
-
return
|
|
97
|
+
return menuController.close(menuId);
|
|
101
98
|
}
|
|
102
99
|
/**
|
|
103
100
|
* Toggle the menu. If it's closed, it will open, and if opened, it
|
|
@@ -106,7 +103,7 @@ class MenuController {
|
|
|
106
103
|
* @return returns a promise when the menu has been toggled
|
|
107
104
|
*/
|
|
108
105
|
toggle(menuId) {
|
|
109
|
-
return
|
|
106
|
+
return menuController.toggle(menuId);
|
|
110
107
|
}
|
|
111
108
|
/**
|
|
112
109
|
* Used to enable or disable a menu. For example, there could be multiple
|
|
@@ -117,7 +114,7 @@ class MenuController {
|
|
|
117
114
|
* @return Returns the instance of the menu, which is useful for chaining.
|
|
118
115
|
*/
|
|
119
116
|
enable(shouldEnable, menuId) {
|
|
120
|
-
return
|
|
117
|
+
return menuController.enable(shouldEnable, menuId);
|
|
121
118
|
}
|
|
122
119
|
/**
|
|
123
120
|
* Used to enable or disable the ability to swipe open the menu.
|
|
@@ -126,7 +123,7 @@ class MenuController {
|
|
|
126
123
|
* @return Returns the instance of the menu, which is useful for chaining.
|
|
127
124
|
*/
|
|
128
125
|
swipeGesture(shouldEnable, menuId) {
|
|
129
|
-
return
|
|
126
|
+
return menuController.swipeGesture(shouldEnable, menuId);
|
|
130
127
|
}
|
|
131
128
|
/**
|
|
132
129
|
* @param [menuId] Optionally get the menu by its id, or side.
|
|
@@ -134,14 +131,14 @@ class MenuController {
|
|
|
134
131
|
* If the menuId is not specified, it returns true if ANY menu is currenly open.
|
|
135
132
|
*/
|
|
136
133
|
isOpen(menuId) {
|
|
137
|
-
return
|
|
134
|
+
return menuController.isOpen(menuId);
|
|
138
135
|
}
|
|
139
136
|
/**
|
|
140
137
|
* @param [menuId] Optionally get the menu by its id, or side.
|
|
141
138
|
* @return Returns true if the menu is currently enabled, otherwise false.
|
|
142
139
|
*/
|
|
143
140
|
isEnabled(menuId) {
|
|
144
|
-
return
|
|
141
|
+
return menuController.isEnabled(menuId);
|
|
145
142
|
}
|
|
146
143
|
/**
|
|
147
144
|
* Used to get a menu instance. If a `menuId` is not provided then it'll
|
|
@@ -153,21 +150,29 @@ class MenuController {
|
|
|
153
150
|
* @return Returns the instance of the menu if found, otherwise `null`.
|
|
154
151
|
*/
|
|
155
152
|
get(menuId) {
|
|
156
|
-
return
|
|
153
|
+
return menuController.get(menuId);
|
|
157
154
|
}
|
|
158
155
|
/**
|
|
159
156
|
* @return Returns the instance of the menu already opened, otherwise `null`.
|
|
160
157
|
*/
|
|
161
158
|
getOpen() {
|
|
162
|
-
return
|
|
159
|
+
return menuController.getOpen();
|
|
163
160
|
}
|
|
164
161
|
/**
|
|
165
162
|
* @return Returns an array of all menu instances.
|
|
166
163
|
*/
|
|
167
164
|
getMenus() {
|
|
168
|
-
return
|
|
165
|
+
return menuController.getMenus();
|
|
169
166
|
}
|
|
170
167
|
}
|
|
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
|
+
}] });
|
|
171
176
|
|
|
172
177
|
/**
|
|
173
178
|
* @description
|