@ionic/angular 7.4.3-dev.11696365694.156f41d3 → 7.4.3-dev.11699471215.1cfbc6e9

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.
Files changed (192) hide show
  1. package/README.md +20 -0
  2. package/app-initialize.d.ts +1 -1
  3. package/common/directives/control-value-accessors/index.d.ts +1 -0
  4. package/{directives → common/directives}/control-value-accessors/value-accessor.d.ts +2 -2
  5. package/common/directives/navigation/back-button.d.ts +26 -0
  6. package/common/directives/navigation/nav.d.ts +13 -0
  7. package/common/directives/navigation/router-link-delegate.d.ts +50 -0
  8. package/common/directives/navigation/router-outlet.d.ts +103 -0
  9. package/{directives → common/directives}/navigation/stack-utils.d.ts +1 -1
  10. package/common/directives/navigation/tabs.d.ts +74 -0
  11. package/common/index.d.ts +28 -0
  12. package/common/overlays/modal.d.ts +50 -0
  13. package/common/overlays/popover.d.ts +46 -0
  14. package/{providers → common/providers}/action-sheet-controller.d.ts +2 -2
  15. package/{providers → common/providers}/alert-controller.d.ts +2 -2
  16. package/{providers → common/providers}/angular-delegate.d.ts +1 -1
  17. package/{providers → common/providers}/animation-controller.d.ts +1 -1
  18. package/{providers → common/providers}/config.d.ts +1 -1
  19. package/{providers → common/providers}/gesture-controller.d.ts +1 -1
  20. package/{providers → common/providers}/loading-controller.d.ts +2 -2
  21. package/{providers → common/providers}/modal-controller.d.ts +2 -2
  22. package/{providers → common/providers}/nav-controller.d.ts +2 -2
  23. package/{providers → common/providers}/picker-controller.d.ts +2 -2
  24. package/{providers → common/providers}/platform.d.ts +2 -2
  25. package/{providers → common/providers}/popover-controller.d.ts +2 -2
  26. package/{providers → common/providers}/toast-controller.d.ts +2 -2
  27. package/{types → common/types}/interfaces.d.ts +0 -4
  28. package/common/utils/proxy.d.ts +8 -0
  29. package/directives/control-value-accessors/boolean-value-accessor.d.ts +1 -1
  30. package/directives/control-value-accessors/numeric-value-accessor.d.ts +1 -1
  31. package/directives/control-value-accessors/radio-value-accessor.d.ts +1 -1
  32. package/directives/control-value-accessors/select-value-accessor.d.ts +1 -1
  33. package/directives/control-value-accessors/text-value-accessor.d.ts +1 -1
  34. package/directives/navigation/ion-back-button.d.ts +6 -16
  35. package/directives/navigation/ion-nav.d.ts +8 -0
  36. package/directives/navigation/ion-router-outlet.d.ts +4 -122
  37. package/directives/navigation/ion-tabs.d.ts +4 -64
  38. package/directives/navigation/router-link-delegate.d.ts +7 -41
  39. package/directives/overlays/modal.d.ts +3 -47
  40. package/directives/overlays/popover.d.ts +3 -43
  41. package/directives/proxies-list.d.ts +1 -1
  42. package/directives/proxies.d.ts +1 -27
  43. package/esm2020/app-initialize.mjs +2 -2
  44. package/esm2020/common/directives/control-value-accessors/index.mjs +2 -0
  45. package/esm2020/common/directives/control-value-accessors/value-accessor.mjs +141 -0
  46. package/esm2020/common/directives/navigation/back-button.mjs +59 -0
  47. package/esm2020/common/directives/navigation/nav-params.mjs +45 -0
  48. package/esm2020/common/directives/navigation/nav.mjs +47 -0
  49. package/esm2020/common/directives/navigation/router-link-delegate.mjs +111 -0
  50. package/esm2020/common/directives/navigation/router-outlet.mjs +461 -0
  51. package/esm2020/common/directives/navigation/stack-controller.mjs +275 -0
  52. package/esm2020/common/directives/navigation/stack-utils.mjs +73 -0
  53. package/esm2020/common/directives/navigation/tabs.mjs +172 -0
  54. package/esm2020/common/index.mjs +28 -0
  55. package/esm2020/common/ionic-angular-common.mjs +5 -0
  56. package/esm2020/common/overlays/modal.mjs +87 -0
  57. package/esm2020/common/overlays/popover.mjs +79 -0
  58. package/esm2020/common/providers/action-sheet-controller.mjs +18 -0
  59. package/esm2020/common/providers/alert-controller.mjs +18 -0
  60. package/esm2020/common/providers/angular-delegate.mjs +152 -0
  61. package/esm2020/common/providers/animation-controller.mjs +37 -0
  62. package/esm2020/common/providers/config.mjs +44 -0
  63. package/esm2020/common/providers/dom-controller.mjs +44 -0
  64. package/esm2020/common/providers/gesture-controller.mjs +31 -0
  65. package/esm2020/common/providers/loading-controller.mjs +18 -0
  66. package/esm2020/common/providers/menu-controller.mjs +100 -0
  67. package/esm2020/common/providers/modal-controller.mjs +25 -0
  68. package/esm2020/common/providers/nav-controller.mjs +221 -0
  69. package/esm2020/common/providers/picker-controller.mjs +18 -0
  70. package/esm2020/common/providers/platform.mjs +246 -0
  71. package/esm2020/common/providers/popover-controller.mjs +25 -0
  72. package/esm2020/common/providers/toast-controller.mjs +18 -0
  73. package/esm2020/common/types/interfaces.mjs +2 -0
  74. package/esm2020/common/utils/overlay.mjs +25 -0
  75. package/esm2020/common/utils/proxy.mjs +47 -0
  76. package/esm2020/common/utils/routing.mjs +55 -0
  77. package/esm2020/common/utils/util.mjs +10 -0
  78. package/esm2020/directives/control-value-accessors/boolean-value-accessor.mjs +4 -4
  79. package/esm2020/directives/control-value-accessors/numeric-value-accessor.mjs +2 -2
  80. package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +6 -3
  81. package/esm2020/directives/control-value-accessors/select-value-accessor.mjs +2 -2
  82. package/esm2020/directives/control-value-accessors/text-value-accessor.mjs +2 -2
  83. package/esm2020/directives/navigation/ion-back-button.mjs +15 -36
  84. package/esm2020/directives/navigation/ion-nav.mjs +21 -0
  85. package/esm2020/directives/navigation/ion-router-outlet.mjs +6 -435
  86. package/esm2020/directives/navigation/ion-tabs.mjs +9 -166
  87. package/esm2020/directives/navigation/router-link-delegate.mjs +11 -92
  88. package/esm2020/directives/overlays/modal.mjs +8 -88
  89. package/esm2020/directives/overlays/popover.mjs +8 -87
  90. package/esm2020/directives/proxies-list.mjs +1 -3
  91. package/esm2020/directives/proxies.mjs +4 -56
  92. package/esm2020/index.mjs +4 -21
  93. package/esm2020/ionic-module.mjs +14 -32
  94. package/esm2020/standalone/directives/angular-component-lib/utils.mjs +51 -0
  95. package/esm2020/standalone/directives/checkbox.mjs +73 -0
  96. package/esm2020/standalone/directives/datetime.mjs +90 -0
  97. package/esm2020/standalone/directives/icon.mjs +33 -0
  98. package/esm2020/standalone/directives/index.mjs +13 -0
  99. package/esm2020/standalone/directives/input.mjs +112 -0
  100. package/esm2020/standalone/directives/proxies.mjs +2268 -0
  101. package/esm2020/standalone/directives/radio-group.mjs +58 -0
  102. package/esm2020/standalone/directives/radio.mjs +62 -0
  103. package/esm2020/standalone/directives/range.mjs +77 -0
  104. package/esm2020/standalone/directives/searchbar.mjs +80 -0
  105. package/esm2020/standalone/directives/segment.mjs +58 -0
  106. package/esm2020/standalone/directives/select.mjs +81 -0
  107. package/esm2020/standalone/directives/textarea.mjs +90 -0
  108. package/esm2020/standalone/directives/toggle.mjs +73 -0
  109. package/esm2020/standalone/index.mjs +15 -0
  110. package/esm2020/standalone/ionic-angular-standalone.mjs +5 -0
  111. package/esm2020/standalone/navigation/back-button.mjs +32 -0
  112. package/esm2020/standalone/navigation/nav.mjs +28 -0
  113. package/esm2020/standalone/navigation/router-link-delegate.mjs +28 -0
  114. package/esm2020/standalone/navigation/router-outlet.mjs +23 -0
  115. package/esm2020/standalone/navigation/tabs.mjs +46 -0
  116. package/esm2020/standalone/overlays/modal.mjs +32 -0
  117. package/esm2020/standalone/overlays/popover.mjs +28 -0
  118. package/esm2020/standalone/providers/ionic-angular.mjs +41 -0
  119. package/fesm2015/ionic-angular-common.mjs +2620 -0
  120. package/fesm2015/ionic-angular-common.mjs.map +1 -0
  121. package/fesm2015/ionic-angular-standalone.mjs +3286 -0
  122. package/fesm2015/ionic-angular-standalone.mjs.map +1 -0
  123. package/fesm2015/ionic-angular.mjs +143 -2637
  124. package/fesm2015/ionic-angular.mjs.map +1 -1
  125. package/fesm2020/ionic-angular-common.mjs +2609 -0
  126. package/fesm2020/ionic-angular-common.mjs.map +1 -0
  127. package/fesm2020/ionic-angular-standalone.mjs +3284 -0
  128. package/fesm2020/ionic-angular-standalone.mjs.map +1 -0
  129. package/fesm2020/ionic-angular.mjs +142 -2627
  130. package/fesm2020/ionic-angular.mjs.map +1 -1
  131. package/index.d.ts +3 -19
  132. package/ionic-module.d.ts +2 -2
  133. package/package.json +18 -2
  134. package/standalone/directives/angular-component-lib/utils.d.ts +9 -0
  135. package/standalone/directives/checkbox.d.ts +30 -0
  136. package/standalone/directives/datetime.d.ts +30 -0
  137. package/standalone/directives/icon.d.ts +9 -0
  138. package/standalone/directives/index.d.ts +12 -0
  139. package/standalone/directives/input.d.ts +47 -0
  140. package/standalone/directives/proxies.d.ts +903 -0
  141. package/standalone/directives/radio-group.d.ts +18 -0
  142. package/standalone/directives/radio.d.ts +22 -0
  143. package/standalone/directives/range.d.ts +47 -0
  144. package/standalone/directives/searchbar.d.ts +45 -0
  145. package/standalone/directives/segment.d.ts +19 -0
  146. package/standalone/directives/select.d.ts +34 -0
  147. package/standalone/directives/textarea.d.ts +37 -0
  148. package/standalone/directives/toggle.d.ts +28 -0
  149. package/standalone/index.d.ts +12 -0
  150. package/standalone/navigation/back-button.d.ts +9 -0
  151. package/standalone/navigation/nav.d.ts +8 -0
  152. package/standalone/navigation/router-link-delegate.d.ts +10 -0
  153. package/standalone/navigation/router-outlet.d.ts +6 -0
  154. package/standalone/navigation/tabs.d.ts +12 -0
  155. package/standalone/overlays/modal.d.ts +6 -0
  156. package/standalone/overlays/popover.d.ts +6 -0
  157. package/standalone/providers/ionic-angular.d.ts +3 -0
  158. package/test/README.md +8 -0
  159. package/directives/navigation/nav-delegate.d.ts +0 -9
  160. package/esm2020/directives/control-value-accessors/value-accessor.mjs +0 -141
  161. package/esm2020/directives/navigation/nav-delegate.mjs +0 -42
  162. package/esm2020/directives/navigation/nav-params.mjs +0 -45
  163. package/esm2020/directives/navigation/stack-controller.mjs +0 -275
  164. package/esm2020/directives/navigation/stack-utils.mjs +0 -73
  165. package/esm2020/ionic-core.mjs +0 -6
  166. package/esm2020/providers/action-sheet-controller.mjs +0 -18
  167. package/esm2020/providers/alert-controller.mjs +0 -18
  168. package/esm2020/providers/angular-delegate.mjs +0 -152
  169. package/esm2020/providers/animation-controller.mjs +0 -37
  170. package/esm2020/providers/config.mjs +0 -44
  171. package/esm2020/providers/dom-controller.mjs +0 -44
  172. package/esm2020/providers/gesture-controller.mjs +0 -31
  173. package/esm2020/providers/loading-controller.mjs +0 -18
  174. package/esm2020/providers/menu-controller.mjs +0 -100
  175. package/esm2020/providers/modal-controller.mjs +0 -25
  176. package/esm2020/providers/nav-controller.mjs +0 -221
  177. package/esm2020/providers/picker-controller.mjs +0 -18
  178. package/esm2020/providers/platform.mjs +0 -246
  179. package/esm2020/providers/popover-controller.mjs +0 -25
  180. package/esm2020/providers/toast-controller.mjs +0 -18
  181. package/esm2020/types/interfaces.mjs +0 -2
  182. package/esm2020/util/ionic-router-reuse-strategy.mjs +0 -55
  183. package/esm2020/util/overlay.mjs +0 -25
  184. package/esm2020/util/util.mjs +0 -10
  185. package/ionic-core.d.ts +0 -2
  186. /package/{directives → common/directives}/navigation/nav-params.d.ts +0 -0
  187. /package/{directives → common/directives}/navigation/stack-controller.d.ts +0 -0
  188. /package/{providers → common/providers}/dom-controller.d.ts +0 -0
  189. /package/{providers → common/providers}/menu-controller.d.ts +0 -0
  190. /package/{util → common/utils}/overlay.d.ts +0 -0
  191. /package/{util/ionic-router-reuse-strategy.d.ts → common/utils/routing.d.ts} +0 -0
  192. /package/{util → common/utils}/util.d.ts +0 -0
@@ -1,171 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, HostListener, Component, ChangeDetectionStrategy, Injectable, InjectionToken, Inject, Optional, inject, NgZone, ApplicationRef, Injector, createComponent, EventEmitter, ViewContainerRef, EnvironmentInjector, Attribute, SkipSelf, Input, Output, reflectComponentType, ElementRef, ViewChild, ContentChild, ContentChildren, TemplateRef, forwardRef, APP_INITIALIZER, NgModule } from '@angular/core';
3
- import { NgControl, NG_VALUE_ACCESSOR, NG_VALIDATORS, MaxValidator, MinValidator } from '@angular/forms';
4
- import { __decorate, __awaiter } from 'tslib';
5
- import { fromEvent, Subject, BehaviorSubject, combineLatest, of } from 'rxjs';
6
- import * as i3 from '@angular/router';
7
- import { NavigationStart, PRIMARY_OUTLET, ChildrenOutletContexts, ActivatedRoute, Router } from '@angular/router';
8
- import { isPlatform, getPlatforms, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, componentOnReady, actionSheetController, alertController, loadingController, menuController, pickerController, modalController, popoverController, toastController, createAnimation, getTimeGivenProgression, createGesture, setupConfig } from '@ionic/core';
9
- export { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getPlatforms, getTimeGivenProgression, iosTransitionAnimation, isPlatform, mdTransitionAnimation } from '@ionic/core';
10
- import { filter, switchMap, distinctUntilChanged } from 'rxjs/operators';
2
+ import { Directive, HostListener, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, Optional, forwardRef, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, MaxValidator, MinValidator } from '@angular/forms';
4
+ import * as i2 from '@ionic/angular/common';
5
+ import { ValueAccessor, setIonicClasses, IonRouterOutlet as IonRouterOutlet$1, IonTabs as IonTabs$1, IonBackButton as IonBackButton$1, IonNav as IonNav$1, RouterLinkDelegateDirective as RouterLinkDelegateDirective$1, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegateDirective$1, IonModal as IonModal$1, IonPopover as IonPopover$1, raf, ConfigToken, provideComponentInputBinding, AngularDelegate, ModalController, PopoverController } from '@ionic/angular/common';
6
+ export { ActionSheetController, AlertController, AngularDelegate, AnimationController, Config, DomController, GestureController, IonicRouteStrategy, LoadingController, MenuController, ModalController, NavController, NavParams, PickerController, Platform, PopoverController, ToastController } from '@ionic/angular/common';
7
+ import { __decorate } from 'tslib';
8
+ import { fromEvent } from 'rxjs';
11
9
  import * as i1 from '@angular/common';
12
10
  import { DOCUMENT, CommonModule } from '@angular/common';
11
+ import { setupConfig } from '@ionic/core';
12
+ export { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getPlatforms, getTimeGivenProgression, iosTransitionAnimation, isPlatform, mdTransitionAnimation } from '@ionic/core';
13
13
  import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
14
14
 
15
- const raf = (h) => {
16
- if (typeof __zone_symbol__requestAnimationFrame === 'function') {
17
- return __zone_symbol__requestAnimationFrame(h);
18
- }
19
- if (typeof requestAnimationFrame === 'function') {
20
- return requestAnimationFrame(h);
21
- }
22
- return setTimeout(h);
23
- };
24
-
25
- // TODO(FW-2827): types
26
- class ValueAccessor {
27
- constructor(injector, el) {
28
- this.injector = injector;
29
- this.el = el;
30
- this.onChange = () => {
31
- /**/
32
- };
33
- this.onTouched = () => {
34
- /**/
35
- };
36
- }
37
- writeValue(value) {
38
- this.el.nativeElement.value = this.lastValue = value;
39
- setIonicClasses(this.el);
40
- }
41
- /**
42
- * Notifies the ControlValueAccessor of a change in the value of the control.
43
- *
44
- * This is called by each of the ValueAccessor directives when we want to update
45
- * the status and validity of the form control. For example with text components this
46
- * is called when the ionInput event is fired. For select components this is called
47
- * when the ionChange event is fired.
48
- *
49
- * This also updates the Ionic form status classes on the element.
50
- *
51
- * @param el The component element.
52
- * @param value The new value of the control.
53
- */
54
- handleValueChange(el, value) {
55
- if (el === this.el.nativeElement) {
56
- if (value !== this.lastValue) {
57
- this.lastValue = value;
58
- this.onChange(value);
59
- }
60
- setIonicClasses(this.el);
61
- }
62
- }
63
- _handleBlurEvent(el) {
64
- if (el === this.el.nativeElement) {
65
- this.onTouched();
66
- setIonicClasses(this.el);
67
- }
68
- }
69
- registerOnChange(fn) {
70
- this.onChange = fn;
71
- }
72
- registerOnTouched(fn) {
73
- this.onTouched = fn;
74
- }
75
- setDisabledState(isDisabled) {
76
- this.el.nativeElement.disabled = isDisabled;
77
- }
78
- ngOnDestroy() {
79
- if (this.statusChanges) {
80
- this.statusChanges.unsubscribe();
81
- }
82
- }
83
- ngAfterViewInit() {
84
- let ngControl;
85
- try {
86
- ngControl = this.injector.get(NgControl);
87
- }
88
- catch (_a) {
89
- /* No FormControl or ngModel binding */
90
- }
91
- if (!ngControl) {
92
- return;
93
- }
94
- // Listen for changes in validity, disabled, or pending states
95
- if (ngControl.statusChanges) {
96
- this.statusChanges = ngControl.statusChanges.subscribe(() => setIonicClasses(this.el));
97
- }
98
- /**
99
- * TODO FW-2787: Remove this in favor of https://github.com/angular/angular/issues/10887
100
- * whenever it is implemented.
101
- */
102
- const formControl = ngControl.control;
103
- if (formControl) {
104
- const methodsToPatch = ['markAsTouched', 'markAllAsTouched', 'markAsUntouched', 'markAsDirty', 'markAsPristine'];
105
- methodsToPatch.forEach((method) => {
106
- if (typeof formControl[method] !== 'undefined') {
107
- const oldFn = formControl[method].bind(formControl);
108
- formControl[method] = (...params) => {
109
- oldFn(...params);
110
- setIonicClasses(this.el);
111
- };
112
- }
113
- });
114
- }
115
- }
116
- }
117
- /** @nocollapse */ ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
118
- /** @nocollapse */ ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ValueAccessor, host: { listeners: { "ionBlur": "_handleBlurEvent($event.target)" } }, ngImport: i0 });
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ValueAccessor, decorators: [{
120
- type: Directive
121
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
122
- type: HostListener,
123
- args: ['ionBlur', ['$event.target']]
124
- }] } });
125
- const setIonicClasses = (element) => {
126
- raf(() => {
127
- const input = element.nativeElement;
128
- const hasValue = input.value != null && input.value.toString().length > 0;
129
- const classes = getClasses(input);
130
- setClasses(input, classes);
131
- const item = input.closest('ion-item');
132
- if (item) {
133
- if (hasValue) {
134
- setClasses(item, [...classes, 'item-has-value']);
135
- }
136
- else {
137
- setClasses(item, classes);
138
- }
139
- }
140
- });
141
- };
142
- const getClasses = (element) => {
143
- const classList = element.classList;
144
- const classes = [];
145
- for (let i = 0; i < classList.length; i++) {
146
- const item = classList.item(i);
147
- if (item !== null && startsWith(item, 'ng-')) {
148
- classes.push(`ion-${item.substring(3)}`);
149
- }
150
- }
151
- return classes;
152
- };
153
- const setClasses = (element, classes) => {
154
- const classList = element.classList;
155
- classList.remove('ion-valid', 'ion-invalid', 'ion-touched', 'ion-untouched', 'ion-dirty', 'ion-pristine');
156
- classList.add(...classes);
157
- };
158
- const startsWith = (input, search) => {
159
- return input.substring(0, search.length) === search;
160
- };
161
-
162
15
  class BooleanValueAccessorDirective extends ValueAccessor {
163
16
  constructor(injector, el) {
164
17
  super(injector, el);
165
18
  }
166
19
  writeValue(value) {
167
- this.el.nativeElement.checked = this.lastValue = value;
168
- setIonicClasses(this.el);
20
+ this.elementRef.nativeElement.checked = this.lastValue = value;
21
+ setIonicClasses(this.elementRef);
169
22
  }
170
23
  _handleIonChange(el) {
171
24
  this.handleValueChange(el, el.checked);
@@ -238,8 +91,11 @@ class RadioValueAccessorDirective extends ValueAccessor {
238
91
  constructor(injector, el) {
239
92
  super(injector, el);
240
93
  }
241
- // TODO(FW-2827): type (HTMLIonRadioElement and HTMLElement are both missing `checked`)
242
94
  _handleIonSelect(el) {
95
+ /**
96
+ * The `el` type is any to access the `checked` state property
97
+ * that is not exposed on the type interface.
98
+ */
243
99
  this.handleValueChange(el, el.checked);
244
100
  }
245
101
  }
@@ -530,30 +386,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
530
386
  inputs: [],
531
387
  }]
532
388
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
533
- let IonBackButton = class IonBackButton {
534
- constructor(c, r, z) {
535
- this.z = z;
536
- c.detach();
537
- this.el = r.nativeElement;
538
- }
539
- };
540
- /** @nocollapse */ IonBackButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
541
- /** @nocollapse */ IonBackButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonBackButton, selector: "ion-back-button", inputs: { color: "color", defaultHref: "defaultHref", disabled: "disabled", icon: "icon", mode: "mode", routerAnimation: "routerAnimation", text: "text", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
542
- IonBackButton = __decorate([
543
- ProxyCmp({
544
- inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type']
545
- })
546
- ], IonBackButton);
547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, decorators: [{
548
- type: Component,
549
- args: [{
550
- selector: 'ion-back-button',
551
- changeDetection: ChangeDetectionStrategy.OnPush,
552
- template: '<ng-content></ng-content>',
553
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
554
- inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type'],
555
- }]
556
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
557
389
  let IonBackdrop = class IonBackdrop {
558
390
  constructor(c, r, z) {
559
391
  this.z = z;
@@ -1560,32 +1392,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
1560
1392
  inputs: ['autoHide', 'menu'],
1561
1393
  }]
1562
1394
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1563
- let IonNav = class IonNav {
1564
- constructor(c, r, z) {
1565
- this.z = z;
1566
- c.detach();
1567
- this.el = r.nativeElement;
1568
- proxyOutputs(this, this.el, ['ionNavWillChange', 'ionNavDidChange']);
1569
- }
1570
- };
1571
- /** @nocollapse */ IonNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1572
- /** @nocollapse */ IonNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonNav, selector: "ion-nav", inputs: { animated: "animated", animation: "animation", root: "root", rootParams: "rootParams", swipeGesture: "swipeGesture" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1573
- IonNav = __decorate([
1574
- ProxyCmp({
1575
- inputs: ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'],
1576
- methods: ['push', 'insert', 'insertPages', 'pop', 'popTo', 'popToRoot', 'removeIndex', 'setRoot', 'setPages', 'getActive', 'getByIndex', 'canGoBack', 'getPrevious']
1577
- })
1578
- ], IonNav);
1579
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, decorators: [{
1580
- type: Component,
1581
- args: [{
1582
- selector: 'ion-nav',
1583
- changeDetection: ChangeDetectionStrategy.OnPush,
1584
- template: '<ng-content></ng-content>',
1585
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1586
- inputs: ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'],
1587
- }]
1588
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1589
1395
  let IonNavLink = class IonNavLink {
1590
1396
  constructor(c, r, z) {
1591
1397
  this.z = z;
@@ -2255,10 +2061,10 @@ let IonToast = class IonToast {
2255
2061
  }
2256
2062
  };
2257
2063
  /** @nocollapse */ IonToast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonToast, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2258
- /** @nocollapse */ IonToast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonToast, selector: "ion-toast", inputs: { animated: "animated", buttons: "buttons", color: "color", cssClass: "cssClass", duration: "duration", enterAnimation: "enterAnimation", header: "header", htmlAttributes: "htmlAttributes", icon: "icon", isOpen: "isOpen", keyboardClose: "keyboardClose", layout: "layout", leaveAnimation: "leaveAnimation", message: "message", mode: "mode", position: "position", translucent: "translucent", trigger: "trigger" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2064
+ /** @nocollapse */ IonToast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonToast, selector: "ion-toast", inputs: { animated: "animated", buttons: "buttons", color: "color", cssClass: "cssClass", duration: "duration", enterAnimation: "enterAnimation", header: "header", htmlAttributes: "htmlAttributes", icon: "icon", isOpen: "isOpen", keyboardClose: "keyboardClose", layout: "layout", leaveAnimation: "leaveAnimation", message: "message", mode: "mode", position: "position", positionAnchor: "positionAnchor", translucent: "translucent", trigger: "trigger" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2259
2065
  IonToast = __decorate([
2260
2066
  ProxyCmp({
2261
- inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'layout', 'leaveAnimation', 'message', 'mode', 'position', 'translucent', 'trigger'],
2067
+ inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'layout', 'leaveAnimation', 'message', 'mode', 'position', 'positionAnchor', 'translucent', 'trigger'],
2262
2068
  methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss']
2263
2069
  })
2264
2070
  ], IonToast);
@@ -2269,7 +2075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2269
2075
  changeDetection: ChangeDetectionStrategy.OnPush,
2270
2076
  template: '<ng-content></ng-content>',
2271
2077
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2272
- inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'layout', 'leaveAnimation', 'message', 'mode', 'position', 'translucent', 'trigger'],
2078
+ inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'layout', 'leaveAnimation', 'message', 'mode', 'position', 'positionAnchor', 'translucent', 'trigger'],
2273
2079
  }]
2274
2080
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
2275
2081
  let IonToggle = class IonToggle {
@@ -2322,2052 +2128,153 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2322
2128
  }]
2323
2129
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
2324
2130
 
2325
- class Config {
2326
- get(key, fallback) {
2327
- const c = getConfig();
2328
- if (c) {
2329
- return c.get(key, fallback);
2330
- }
2331
- return null;
2332
- }
2333
- getBoolean(key, fallback) {
2334
- const c = getConfig();
2335
- if (c) {
2336
- return c.getBoolean(key, fallback);
2337
- }
2338
- return false;
2339
- }
2340
- getNumber(key, fallback) {
2341
- const c = getConfig();
2342
- if (c) {
2343
- return c.getNumber(key, fallback);
2344
- }
2345
- return 0;
2346
- }
2131
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2132
+ class IonRouterOutlet extends IonRouterOutlet$1 {
2347
2133
  }
2348
- /** @nocollapse */ Config.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Config, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2349
- /** @nocollapse */ Config.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Config, providedIn: 'root' });
2350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Config, decorators: [{
2351
- type: Injectable,
2134
+ /** @nocollapse */ IonRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2135
+ /** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", usesInheritance: true, ngImport: i0 });
2136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
2137
+ type: Directive,
2352
2138
  args: [{
2353
- providedIn: 'root',
2139
+ selector: 'ion-router-outlet',
2354
2140
  }]
2355
2141
  }] });
2356
- const ConfigToken = new InjectionToken('USERCONFIG');
2357
- const getConfig = () => {
2358
- if (typeof window !== 'undefined') {
2359
- const Ionic = window.Ionic;
2360
- if (Ionic === null || Ionic === void 0 ? void 0 : Ionic.config) {
2361
- return Ionic.config;
2362
- }
2363
- }
2364
- return null;
2365
- };
2366
2142
 
2367
- class Platform {
2368
- constructor(doc, zone) {
2369
- this.doc = doc;
2370
- /**
2371
- * @hidden
2372
- */
2373
- this.backButton = new Subject();
2374
- /**
2375
- * The keyboardDidShow event emits when the
2376
- * on-screen keyboard is presented.
2377
- */
2378
- this.keyboardDidShow = new Subject();
2379
- /**
2380
- * The keyboardDidHide event emits when the
2381
- * on-screen keyboard is hidden.
2382
- */
2383
- this.keyboardDidHide = new Subject();
2384
- /**
2385
- * The pause event emits when the native platform puts the application
2386
- * into the background, typically when the user switches to a different
2387
- * application. This event would emit when a Cordova app is put into
2388
- * the background, however, it would not fire on a standard web browser.
2389
- */
2390
- this.pause = new Subject();
2391
- /**
2392
- * The resume event emits when the native platform pulls the application
2393
- * out from the background. This event would emit when a Cordova app comes
2394
- * out from the background, however, it would not fire on a standard web browser.
2395
- */
2396
- this.resume = new Subject();
2397
- /**
2398
- * The resize event emits when the browser window has changed dimensions. This
2399
- * could be from a browser window being physically resized, or from a device
2400
- * changing orientation.
2401
- */
2402
- this.resize = new Subject();
2403
- zone.run(() => {
2404
- var _a;
2405
- this.win = doc.defaultView;
2406
- this.backButton.subscribeWithPriority = function (priority, callback) {
2407
- return this.subscribe((ev) => {
2408
- return ev.register(priority, (processNextHandler) => zone.run(() => callback(processNextHandler)));
2409
- });
2410
- };
2411
- proxyEvent(this.pause, doc, 'pause');
2412
- proxyEvent(this.resume, doc, 'resume');
2413
- proxyEvent(this.backButton, doc, 'ionBackButton');
2414
- proxyEvent(this.resize, this.win, 'resize');
2415
- proxyEvent(this.keyboardDidShow, this.win, 'ionKeyboardDidShow');
2416
- proxyEvent(this.keyboardDidHide, this.win, 'ionKeyboardDidHide');
2417
- let readyResolve;
2418
- this._readyPromise = new Promise((res) => {
2419
- readyResolve = res;
2420
- });
2421
- if ((_a = this.win) === null || _a === void 0 ? void 0 : _a['cordova']) {
2422
- doc.addEventListener('deviceready', () => {
2423
- readyResolve('cordova');
2424
- }, { once: true });
2425
- }
2426
- else {
2427
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2428
- readyResolve('dom');
2429
- }
2430
- });
2431
- }
2432
- /**
2433
- * @returns returns true/false based on platform.
2434
- * @description
2435
- * Depending on the platform the user is on, `is(platformName)` will
2436
- * return `true` or `false`. Note that the same app can return `true`
2437
- * for more than one platform name. For example, an app running from
2438
- * an iPad would return `true` for the platform names: `mobile`,
2439
- * `ios`, `ipad`, and `tablet`. Additionally, if the app was running
2440
- * from Cordova then `cordova` would be true, and if it was running
2441
- * from a web browser on the iPad then `mobileweb` would be `true`.
2442
- *
2443
- * ```
2444
- * import { Platform } from 'ionic-angular';
2445
- *
2446
- * @Component({...})
2447
- * export MyPage {
2448
- * constructor(public platform: Platform) {
2449
- * if (this.platform.is('ios')) {
2450
- * // This will only print when on iOS
2451
- * console.log('I am an iOS device!');
2452
- * }
2453
- * }
2454
- * }
2455
- * ```
2456
- *
2457
- * | Platform Name | Description |
2458
- * |-----------------|------------------------------------|
2459
- * | android | on a device running Android. |
2460
- * | capacitor | on a device running Capacitor. |
2461
- * | cordova | on a device running Cordova. |
2462
- * | ios | on a device running iOS. |
2463
- * | ipad | on an iPad device. |
2464
- * | iphone | on an iPhone device. |
2465
- * | phablet | on a phablet device. |
2466
- * | tablet | on a tablet device. |
2467
- * | electron | in Electron on a desktop device. |
2468
- * | pwa | as a PWA app. |
2469
- * | mobile | on a mobile device. |
2470
- * | mobileweb | on a mobile device in a browser. |
2471
- * | desktop | on a desktop device. |
2472
- * | hybrid | is a cordova or capacitor app. |
2473
- *
2474
- */
2475
- is(platformName) {
2476
- return isPlatform(this.win, platformName);
2477
- }
2478
- /**
2479
- * @returns the array of platforms
2480
- * @description
2481
- * Depending on what device you are on, `platforms` can return multiple values.
2482
- * Each possible value is a hierarchy of platforms. For example, on an iPhone,
2483
- * it would return `mobile`, `ios`, and `iphone`.
2484
- *
2485
- * ```
2486
- * import { Platform } from 'ionic-angular';
2487
- *
2488
- * @Component({...})
2489
- * export MyPage {
2490
- * constructor(public platform: Platform) {
2491
- * // This will print an array of the current platforms
2492
- * console.log(this.platform.platforms());
2493
- * }
2494
- * }
2495
- * ```
2496
- */
2497
- platforms() {
2498
- return getPlatforms(this.win);
2499
- }
2500
- /**
2501
- * Returns a promise when the platform is ready and native functionality
2502
- * can be called. If the app is running from within a web browser, then
2503
- * the promise will resolve when the DOM is ready. When the app is running
2504
- * from an application engine such as Cordova, then the promise will
2505
- * resolve when Cordova triggers the `deviceready` event.
2506
- *
2507
- * The resolved value is the `readySource`, which states which platform
2508
- * ready was used. For example, when Cordova is ready, the resolved ready
2509
- * source is `cordova`. The default ready source value will be `dom`. The
2510
- * `readySource` is useful if different logic should run depending on the
2511
- * platform the app is running from. For example, only Cordova can execute
2512
- * the status bar plugin, so the web should not run status bar plugin logic.
2513
- *
2514
- * ```
2515
- * import { Component } from '@angular/core';
2516
- * import { Platform } from 'ionic-angular';
2517
- *
2518
- * @Component({...})
2519
- * export MyApp {
2520
- * constructor(public platform: Platform) {
2521
- * this.platform.ready().then((readySource) => {
2522
- * console.log('Platform ready from', readySource);
2523
- * // Platform now ready, execute any required native code
2524
- * });
2525
- * }
2526
- * }
2527
- * ```
2528
- */
2529
- ready() {
2530
- return this._readyPromise;
2531
- }
2532
- /**
2533
- * Returns if this app is using right-to-left language direction or not.
2534
- * We recommend the app's `index.html` file already has the correct `dir`
2535
- * attribute value set, such as `<html dir="ltr">` or `<html dir="rtl">`.
2536
- * [W3C: Structural markup and right-to-left text in HTML](http://www.w3.org/International/questions/qa-html-dir)
2537
- */
2538
- get isRTL() {
2539
- return this.doc.dir === 'rtl';
2540
- }
2541
- /**
2542
- * Get the query string parameter
2543
- */
2544
- getQueryParam(key) {
2545
- return readQueryParam(this.win.location.href, key);
2546
- }
2547
- /**
2548
- * Returns `true` if the app is in landscape mode.
2549
- */
2550
- isLandscape() {
2551
- return !this.isPortrait();
2552
- }
2553
- /**
2554
- * Returns `true` if the app is in portrait mode.
2555
- */
2556
- isPortrait() {
2557
- var _a, _b;
2558
- return (_b = (_a = this.win).matchMedia) === null || _b === void 0 ? void 0 : _b.call(_a, '(orientation: portrait)').matches;
2559
- }
2560
- testUserAgent(expression) {
2561
- const nav = this.win.navigator;
2562
- return !!((nav === null || nav === void 0 ? void 0 : nav.userAgent) && nav.userAgent.indexOf(expression) >= 0);
2563
- }
2564
- /**
2565
- * Get the current url.
2566
- */
2567
- url() {
2568
- return this.win.location.href;
2569
- }
2570
- /**
2571
- * Gets the width of the platform's viewport using `window.innerWidth`.
2572
- */
2573
- width() {
2574
- return this.win.innerWidth;
2575
- }
2576
- /**
2577
- * Gets the height of the platform's viewport using `window.innerHeight`.
2578
- */
2579
- height() {
2580
- return this.win.innerHeight;
2143
+ // eslint-disable-next-line @angular-eslint/component-class-suffix
2144
+ class IonTabs extends IonTabs$1 {
2145
+ }
2146
+ /** @nocollapse */ IonTabs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, deps: null, target: i0.ɵɵFactoryTarget.Component });
2147
+ /** @nocollapse */ IonTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonTabs, selector: "ion-tabs", queries: [{ propertyName: "tabBar", first: true, predicate: IonTabBar, descendants: true }, { propertyName: "tabBars", predicate: IonTabBar }], viewQueries: [{ propertyName: "outlet", first: true, predicate: ["outlet"], descendants: true, read: IonRouterOutlet }], usesInheritance: true, ngImport: i0, template: `
2148
+ <ng-content select="[slot=top]"></ng-content>
2149
+ <div class="tabs-inner" #tabsInner>
2150
+ <ion-router-outlet
2151
+ #outlet
2152
+ tabs="true"
2153
+ (stackWillChange)="onStackWillChange($event)"
2154
+ (stackDidChange)="onStackDidChange($event)"
2155
+ ></ion-router-outlet>
2156
+ </div>
2157
+ <ng-content></ng-content>
2158
+ `, isInline: true, styles: [":host{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner{position:relative;flex:1;contain:layout size style}\n"], dependencies: [{ kind: "directive", type: IonRouterOutlet, selector: "ion-router-outlet" }] });
2159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, decorators: [{
2160
+ type: Component,
2161
+ args: [{ selector: 'ion-tabs', template: `
2162
+ <ng-content select="[slot=top]"></ng-content>
2163
+ <div class="tabs-inner" #tabsInner>
2164
+ <ion-router-outlet
2165
+ #outlet
2166
+ tabs="true"
2167
+ (stackWillChange)="onStackWillChange($event)"
2168
+ (stackDidChange)="onStackDidChange($event)"
2169
+ ></ion-router-outlet>
2170
+ </div>
2171
+ <ng-content></ng-content>
2172
+ `, styles: [":host{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner{position:relative;flex:1;contain:layout size style}\n"] }]
2173
+ }], propDecorators: { outlet: [{
2174
+ type: ViewChild,
2175
+ args: ['outlet', { read: IonRouterOutlet, static: false }]
2176
+ }], tabBar: [{
2177
+ type: ContentChild,
2178
+ args: [IonTabBar, { static: false }]
2179
+ }], tabBars: [{
2180
+ type: ContentChildren,
2181
+ args: [IonTabBar]
2182
+ }] } });
2183
+
2184
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2185
+ class IonBackButton extends IonBackButton$1 {
2186
+ constructor(routerOutlet, navCtrl, config, r, z, c) {
2187
+ super(routerOutlet, navCtrl, config, r, z, c);
2581
2188
  }
2582
2189
  }
2583
- /** @nocollapse */ Platform.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Platform, deps: [{ token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
2584
- /** @nocollapse */ Platform.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Platform, providedIn: 'root' });
2585
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Platform, decorators: [{
2586
- type: Injectable,
2190
+ /** @nocollapse */ IonBackButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, deps: [{ token: IonRouterOutlet, optional: true }, { token: i2.NavController }, { token: i2.Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2191
+ /** @nocollapse */ IonBackButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonBackButton, selector: "ion-back-button", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, decorators: [{
2193
+ type: Component,
2587
2194
  args: [{
2588
- providedIn: 'root',
2195
+ selector: 'ion-back-button',
2196
+ template: '<ng-content></ng-content>',
2197
+ changeDetection: ChangeDetectionStrategy.OnPush,
2589
2198
  }]
2590
2199
  }], ctorParameters: function () {
2591
- return [{ type: undefined, decorators: [{
2592
- type: Inject,
2593
- args: [DOCUMENT]
2594
- }] }, { type: i0.NgZone }];
2200
+ return [{ type: IonRouterOutlet, decorators: [{
2201
+ type: Optional
2202
+ }] }, { type: i2.NavController }, { type: i2.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
2595
2203
  } });
2596
- const readQueryParam = (url, key) => {
2597
- key = key.replace(/[[\]\\]/g, '\\$&');
2598
- const regex = new RegExp('[\\?&]' + key + '=([^&#]*)');
2599
- const results = regex.exec(url);
2600
- return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null;
2601
- };
2602
- const proxyEvent = (emitter, el, eventName) => {
2603
- if (el) {
2604
- el.addEventListener(eventName, (ev) => {
2605
- // ?? cordova might emit "null" events
2606
- const value = ev != null ? ev.detail : undefined;
2607
- emitter.next(value);
2608
- });
2609
- }
2610
- };
2611
2204
 
2612
- class NavController {
2613
- constructor(platform, location, serializer, router) {
2614
- this.location = location;
2615
- this.serializer = serializer;
2616
- this.router = router;
2617
- this.direction = DEFAULT_DIRECTION;
2618
- this.animated = DEFAULT_ANIMATED;
2619
- this.guessDirection = 'forward';
2620
- this.lastNavId = -1;
2621
- // Subscribe to router events to detect direction
2622
- if (router) {
2623
- router.events.subscribe((ev) => {
2624
- if (ev instanceof NavigationStart) {
2625
- const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
2626
- this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
2627
- this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
2628
- this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
2629
- }
2630
- });
2631
- }
2632
- // Subscribe to backButton events
2633
- platform.backButton.subscribeWithPriority(0, (processNextHandler) => {
2634
- this.pop();
2635
- processNextHandler();
2636
- });
2637
- }
2638
- /**
2639
- * This method uses Angular's [Router](https://angular.io/api/router/Router) under the hood,
2640
- * it's equivalent to calling `this.router.navigateByUrl()`, but it's explicit about the **direction** of the transition.
2641
- *
2642
- * Going **forward** means that a new page is going to be pushed to the stack of the outlet (ion-router-outlet),
2643
- * and that it will show a "forward" animation by default.
2644
- *
2645
- * Navigating forward can also be triggered in a declarative manner by using the `[routerDirection]` directive:
2646
- *
2647
- * ```html
2648
- * <a routerLink="/path/to/page" routerDirection="forward">Link</a>
2649
- * ```
2650
- */
2651
- navigateForward(url, options = {}) {
2652
- this.setDirection('forward', options.animated, options.animationDirection, options.animation);
2653
- return this.navigate(url, options);
2654
- }
2655
- /**
2656
- * This method uses Angular's [Router](https://angular.io/api/router/Router) under the hood,
2657
- * it's equivalent to calling:
2658
- *
2659
- * ```ts
2660
- * this.navController.setDirection('back');
2661
- * this.router.navigateByUrl(path);
2662
- * ```
2663
- *
2664
- * Going **back** means that all the pages in the stack until the navigated page is found will be popped,
2665
- * and that it will show a "back" animation by default.
2666
- *
2667
- * Navigating back can also be triggered in a declarative manner by using the `[routerDirection]` directive:
2668
- *
2669
- * ```html
2670
- * <a routerLink="/path/to/page" routerDirection="back">Link</a>
2671
- * ```
2672
- */
2673
- navigateBack(url, options = {}) {
2674
- this.setDirection('back', options.animated, options.animationDirection, options.animation);
2675
- return this.navigate(url, options);
2676
- }
2677
- /**
2678
- * This method uses Angular's [Router](https://angular.io/api/router/Router) under the hood,
2679
- * it's equivalent to calling:
2680
- *
2681
- * ```ts
2682
- * this.navController.setDirection('root');
2683
- * this.router.navigateByUrl(path);
2684
- * ```
2685
- *
2686
- * Going **root** means that all existing pages in the stack will be removed,
2687
- * and the navigated page will become the single page in the stack.
2688
- *
2689
- * Navigating root can also be triggered in a declarative manner by using the `[routerDirection]` directive:
2690
- *
2691
- * ```html
2692
- * <a routerLink="/path/to/page" routerDirection="root">Link</a>
2693
- * ```
2694
- */
2695
- navigateRoot(url, options = {}) {
2696
- this.setDirection('root', options.animated, options.animationDirection, options.animation);
2697
- return this.navigate(url, options);
2698
- }
2699
- /**
2700
- * Same as [Location](https://angular.io/api/common/Location)'s back() method.
2701
- * It will use the standard `window.history.back()` under the hood, but featuring a `back` animation
2702
- * by default.
2703
- */
2704
- back(options = { animated: true, animationDirection: 'back' }) {
2705
- this.setDirection('back', options.animated, options.animationDirection, options.animation);
2706
- return this.location.back();
2707
- }
2708
- /**
2709
- * This methods goes back in the context of Ionic's stack navigation.
2710
- *
2711
- * It recursively finds the top active `ion-router-outlet` and calls `pop()`.
2712
- * This is the recommended way to go back when you are using `ion-router-outlet`.
2713
- *
2714
- * Resolves to `true` if it was able to pop.
2715
- */
2716
- pop() {
2717
- return __awaiter(this, void 0, void 0, function* () {
2718
- let outlet = this.topOutlet;
2719
- while (outlet) {
2720
- if (yield outlet.pop()) {
2721
- return true;
2722
- }
2723
- else {
2724
- outlet = outlet.parentOutlet;
2725
- }
2726
- }
2727
- return false;
2728
- });
2729
- }
2730
- /**
2731
- * This methods specifies the direction of the next navigation performed by the Angular router.
2732
- *
2733
- * `setDirection()` does not trigger any transition, it just sets some flags to be consumed by `ion-router-outlet`.
2734
- *
2735
- * It's recommended to use `navigateForward()`, `navigateBack()` and `navigateRoot()` instead of `setDirection()`.
2736
- */
2737
- setDirection(direction, animated, animationDirection, animationBuilder) {
2738
- this.direction = direction;
2739
- this.animated = getAnimation(direction, animated, animationDirection);
2740
- this.animationBuilder = animationBuilder;
2741
- }
2742
- /**
2743
- * @internal
2744
- */
2745
- setTopOutlet(outlet) {
2746
- this.topOutlet = outlet;
2747
- }
2748
- /**
2749
- * @internal
2750
- */
2751
- consumeTransition() {
2752
- let direction = 'root';
2753
- let animation;
2754
- const animationBuilder = this.animationBuilder;
2755
- if (this.direction === 'auto') {
2756
- direction = this.guessDirection;
2757
- animation = this.guessAnimation;
2758
- }
2759
- else {
2760
- animation = this.animated;
2761
- direction = this.direction;
2762
- }
2763
- this.direction = DEFAULT_DIRECTION;
2764
- this.animated = DEFAULT_ANIMATED;
2765
- this.animationBuilder = undefined;
2766
- return {
2767
- direction,
2768
- animation,
2769
- animationBuilder,
2770
- };
2771
- }
2772
- navigate(url, options) {
2773
- if (Array.isArray(url)) {
2774
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2775
- return this.router.navigate(url, options);
2776
- }
2777
- else {
2778
- /**
2779
- * navigateByUrl ignores any properties that
2780
- * would change the url, so things like queryParams
2781
- * would be ignored unless we create a url tree
2782
- * More Info: https://github.com/angular/angular/issues/18798
2783
- */
2784
- const urlTree = this.serializer.parse(url.toString());
2785
- if (options.queryParams !== undefined) {
2786
- urlTree.queryParams = Object.assign({}, options.queryParams);
2787
- }
2788
- if (options.fragment !== undefined) {
2789
- urlTree.fragment = options.fragment;
2790
- }
2791
- /**
2792
- * `navigateByUrl` will still apply `NavigationExtras` properties
2793
- * that do not modify the url, such as `replaceUrl` which is why
2794
- * `options` is passed in here.
2795
- */
2796
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2797
- return this.router.navigateByUrl(urlTree, options);
2798
- }
2205
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2206
+ class IonNav extends IonNav$1 {
2207
+ constructor(ref, environmentInjector, injector, angularDelegate, z, c) {
2208
+ super(ref, environmentInjector, injector, angularDelegate, z, c);
2799
2209
  }
2800
2210
  }
2801
- /** @nocollapse */ NavController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NavController, deps: [{ token: Platform }, { token: i1.Location }, { token: i3.UrlSerializer }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2802
- /** @nocollapse */ NavController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NavController, providedIn: 'root' });
2803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NavController, decorators: [{
2804
- type: Injectable,
2211
+ /** @nocollapse */ IonNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: i2.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2212
+ /** @nocollapse */ IonNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonNav, selector: "ion-nav", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, decorators: [{
2214
+ type: Component,
2805
2215
  args: [{
2806
- providedIn: 'root',
2216
+ selector: 'ion-nav',
2217
+ template: '<ng-content></ng-content>',
2218
+ changeDetection: ChangeDetectionStrategy.OnPush,
2807
2219
  }]
2808
- }], ctorParameters: function () {
2809
- return [{ type: Platform }, { type: i1.Location }, { type: i3.UrlSerializer }, { type: i3.Router, decorators: [{
2810
- type: Optional
2811
- }] }];
2812
- } });
2813
- const getAnimation = (direction, animated, animationDirection) => {
2814
- if (animated === false) {
2815
- return undefined;
2816
- }
2817
- if (animationDirection !== undefined) {
2818
- return animationDirection;
2819
- }
2820
- if (direction === 'forward' || direction === 'back') {
2821
- return direction;
2822
- }
2823
- else if (direction === 'root' && animated === true) {
2824
- return 'forward';
2825
- }
2826
- return undefined;
2827
- };
2828
- const DEFAULT_DIRECTION = 'auto';
2829
- const DEFAULT_ANIMATED = undefined;
2220
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2830
2221
 
2831
2222
  /**
2832
- * @description
2833
- * NavParams are an object that exists on a page and can contain data for that particular view.
2834
- * Similar to how data was pass to a view in V1 with `$stateParams`, NavParams offer a much more flexible
2835
- * option with a simple `get` method.
2836
- *
2837
- * @usage
2838
- * ```ts
2839
- * import { NavParams } from '@ionic/angular';
2840
- *
2841
- * export class MyClass{
2842
- *
2843
- * constructor(navParams: NavParams){
2844
- * // userParams is an object we have in our nav-parameters
2845
- * navParams.get('userParams');
2846
- * }
2223
+ * Adds support for Ionic routing directions and animations to the base Angular router link directive.
2847
2224
  *
2848
- * }
2849
- * ```
2225
+ * When the router link is clicked, the directive will assign the direction and
2226
+ * animation so that the routing integration will transition correctly.
2850
2227
  */
2851
- class NavParams {
2852
- constructor(data = {}) {
2853
- this.data = data;
2854
- }
2855
- /**
2856
- * Get the value of a nav-parameter for the current view
2857
- *
2858
- * ```ts
2859
- * import { NavParams } from 'ionic-angular';
2860
- *
2861
- * export class MyClass{
2862
- * constructor(public navParams: NavParams){
2863
- * // userParams is an object we have in our nav-parameters
2864
- * this.navParams.get('userParams');
2865
- * }
2866
- * }
2867
- * ```
2868
- *
2869
- * @param param Which param you want to look up
2870
- */
2871
- get(param) {
2872
- return this.data[param];
2873
- }
2228
+ class RouterLinkDelegateDirective extends RouterLinkDelegateDirective$1 {
2229
+ }
2230
+ /** @nocollapse */ RouterLinkDelegateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkDelegateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2231
+ /** @nocollapse */ RouterLinkDelegateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: RouterLinkDelegateDirective, selector: ":not(a):not(area)[routerLink]", usesInheritance: true, ngImport: i0 });
2232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
2233
+ type: Directive,
2234
+ args: [{
2235
+ selector: ':not(a):not(area)[routerLink]',
2236
+ }]
2237
+ }] });
2238
+ class RouterLinkWithHrefDelegateDirective extends RouterLinkWithHrefDelegateDirective$1 {
2874
2239
  }
2240
+ /** @nocollapse */ RouterLinkWithHrefDelegateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2241
+ /** @nocollapse */ RouterLinkWithHrefDelegateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: RouterLinkWithHrefDelegateDirective, selector: "a[routerLink],area[routerLink]", usesInheritance: true, ngImport: i0 });
2242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
2243
+ type: Directive,
2244
+ args: [{
2245
+ selector: 'a[routerLink],area[routerLink]',
2246
+ }]
2247
+ }] });
2875
2248
 
2876
- // TODO(FW-2827): types
2877
- class AngularDelegate {
2878
- constructor() {
2879
- this.zone = inject(NgZone);
2880
- this.applicationRef = inject(ApplicationRef);
2881
- }
2882
- create(environmentInjector, injector, elementReferenceKey) {
2883
- return new AngularFrameworkDelegate(environmentInjector, injector, this.applicationRef, this.zone, elementReferenceKey);
2884
- }
2249
+ class IonModal extends IonModal$1 {
2885
2250
  }
2886
- /** @nocollapse */ AngularDelegate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AngularDelegate, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2887
- /** @nocollapse */ AngularDelegate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AngularDelegate });
2888
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AngularDelegate, decorators: [{
2889
- type: Injectable
2251
+ /** @nocollapse */ IonModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
2252
+ /** @nocollapse */ IonModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonModal, selector: "ion-modal", usesInheritance: true, ngImport: i0, template: `<div class="ion-delegate-host ion-page" *ngIf="isCmpOpen || keepContentsMounted">
2253
+ <ng-container [ngTemplateOutlet]="template"></ng-container>
2254
+ </div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonModal, decorators: [{
2256
+ type: Component,
2257
+ args: [{
2258
+ selector: 'ion-modal',
2259
+ changeDetection: ChangeDetectionStrategy.OnPush,
2260
+ template: `<div class="ion-delegate-host ion-page" *ngIf="isCmpOpen || keepContentsMounted">
2261
+ <ng-container [ngTemplateOutlet]="template"></ng-container>
2262
+ </div>`,
2263
+ }]
2890
2264
  }] });
2891
- class AngularFrameworkDelegate {
2892
- constructor(environmentInjector, injector, applicationRef, zone, elementReferenceKey) {
2893
- this.environmentInjector = environmentInjector;
2894
- this.injector = injector;
2895
- this.applicationRef = applicationRef;
2896
- this.zone = zone;
2897
- this.elementReferenceKey = elementReferenceKey;
2898
- this.elRefMap = new WeakMap();
2899
- this.elEventsMap = new WeakMap();
2900
- }
2901
- attachViewToDom(container, component, params, cssClasses) {
2902
- return this.zone.run(() => {
2903
- return new Promise((resolve) => {
2904
- const componentProps = Object.assign({}, params);
2905
- /**
2906
- * Ionic Angular passes a reference to a modal
2907
- * or popover that can be accessed using a
2908
- * variable in the overlay component. If
2909
- * elementReferenceKey is defined, then we should
2910
- * pass a reference to the component using
2911
- * elementReferenceKey as the key.
2912
- */
2913
- if (this.elementReferenceKey !== undefined) {
2914
- componentProps[this.elementReferenceKey] = container;
2915
- }
2916
- const el = attachView(this.zone, this.environmentInjector, this.injector, this.applicationRef, this.elRefMap, this.elEventsMap, container, component, componentProps, cssClasses, this.elementReferenceKey);
2917
- resolve(el);
2918
- });
2919
- });
2920
- }
2921
- removeViewFromDom(_container, component) {
2922
- return this.zone.run(() => {
2923
- return new Promise((resolve) => {
2924
- const componentRef = this.elRefMap.get(component);
2925
- if (componentRef) {
2926
- componentRef.destroy();
2927
- this.elRefMap.delete(component);
2928
- const unbindEvents = this.elEventsMap.get(component);
2929
- if (unbindEvents) {
2930
- unbindEvents();
2931
- this.elEventsMap.delete(component);
2932
- }
2933
- }
2934
- resolve();
2935
- });
2936
- });
2937
- }
2265
+
2266
+ class IonPopover extends IonPopover$1 {
2938
2267
  }
2939
- const attachView = (zone, environmentInjector, injector, applicationRef, elRefMap, elEventsMap, container, component, params, cssClasses, elementReferenceKey) => {
2940
- /**
2941
- * Wraps the injector with a custom injector that
2942
- * provides NavParams to the component.
2943
- *
2944
- * NavParams is a legacy feature from Ionic v3 that allows
2945
- * Angular developers to provide data to a component
2946
- * and access it by providing NavParams as a dependency
2947
- * in the constructor.
2948
- *
2949
- * The modern approach is to access the data directly
2950
- * from the component's class instance.
2951
- */
2952
- const childInjector = Injector.create({
2953
- providers: getProviders(params),
2954
- parent: injector,
2955
- });
2956
- const componentRef = createComponent(component, {
2957
- environmentInjector,
2958
- elementInjector: childInjector,
2959
- });
2960
- const instance = componentRef.instance;
2961
- const hostElement = componentRef.location.nativeElement;
2962
- if (params) {
2963
- /**
2964
- * For modals and popovers, a reference to the component is
2965
- * added to `params` during the call to attachViewToDom. If
2966
- * a reference using this name is already set, this means
2967
- * the app is trying to use the name as a component prop,
2968
- * which will cause collisions.
2969
- */
2970
- if (elementReferenceKey && instance[elementReferenceKey] !== undefined) {
2971
- console.error(`[Ionic Error]: ${elementReferenceKey} is a reserved property when using ${container.tagName.toLowerCase()}. Rename or remove the "${elementReferenceKey}" property from ${component.name}.`);
2972
- }
2973
- Object.assign(instance, params);
2974
- }
2975
- if (cssClasses) {
2976
- for (const cssClass of cssClasses) {
2977
- hostElement.classList.add(cssClass);
2978
- }
2979
- }
2980
- const unbindEvents = bindLifecycleEvents(zone, instance, hostElement);
2981
- container.appendChild(hostElement);
2982
- applicationRef.attachView(componentRef.hostView);
2983
- elRefMap.set(hostElement, componentRef);
2984
- elEventsMap.set(hostElement, unbindEvents);
2985
- return hostElement;
2986
- };
2987
- const LIFECYCLES = [
2988
- LIFECYCLE_WILL_ENTER,
2989
- LIFECYCLE_DID_ENTER,
2990
- LIFECYCLE_WILL_LEAVE,
2991
- LIFECYCLE_DID_LEAVE,
2992
- LIFECYCLE_WILL_UNLOAD,
2993
- ];
2994
- const bindLifecycleEvents = (zone, instance, element) => {
2995
- return zone.run(() => {
2996
- const unregisters = LIFECYCLES.filter((eventName) => typeof instance[eventName] === 'function').map((eventName) => {
2997
- const handler = (ev) => instance[eventName](ev.detail);
2998
- element.addEventListener(eventName, handler);
2999
- return () => element.removeEventListener(eventName, handler);
3000
- });
3001
- return () => unregisters.forEach((fn) => fn());
3002
- });
3003
- };
3004
- const NavParamsToken = new InjectionToken('NavParamsToken');
3005
- const getProviders = (params) => {
3006
- return [
3007
- {
3008
- provide: NavParamsToken,
3009
- useValue: params,
3010
- },
3011
- {
3012
- provide: NavParams,
3013
- useFactory: provideNavParamsInjectable,
3014
- deps: [NavParamsToken],
3015
- },
3016
- ];
3017
- };
3018
- const provideNavParamsInjectable = (params) => {
3019
- return new NavParams(params);
3020
- };
3021
-
3022
- const insertView = (views, view, direction) => {
3023
- if (direction === 'root') {
3024
- return setRoot(views, view);
3025
- }
3026
- else if (direction === 'forward') {
3027
- return setForward(views, view);
3028
- }
3029
- else {
3030
- return setBack(views, view);
3031
- }
3032
- };
3033
- const setRoot = (views, view) => {
3034
- views = views.filter((v) => v.stackId !== view.stackId);
3035
- views.push(view);
3036
- return views;
3037
- };
3038
- const setForward = (views, view) => {
3039
- const index = views.indexOf(view);
3040
- if (index >= 0) {
3041
- views = views.filter((v) => v.stackId !== view.stackId || v.id <= view.id);
3042
- }
3043
- else {
3044
- views.push(view);
3045
- }
3046
- return views;
3047
- };
3048
- const setBack = (views, view) => {
3049
- const index = views.indexOf(view);
3050
- if (index >= 0) {
3051
- return views.filter((v) => v.stackId !== view.stackId || v.id <= view.id);
3052
- }
3053
- else {
3054
- return setRoot(views, view);
3055
- }
3056
- };
3057
- const getUrl = (router, activatedRoute) => {
3058
- const urlTree = router.createUrlTree(['.'], { relativeTo: activatedRoute });
3059
- return router.serializeUrl(urlTree);
3060
- };
3061
- const isTabSwitch = (enteringView, leavingView) => {
3062
- if (!leavingView) {
3063
- return true;
3064
- }
3065
- return enteringView.stackId !== leavingView.stackId;
3066
- };
3067
- const computeStackId = (prefixUrl, url) => {
3068
- if (!prefixUrl) {
3069
- return undefined;
3070
- }
3071
- const segments = toSegments(url);
3072
- for (let i = 0; i < segments.length; i++) {
3073
- if (i >= prefixUrl.length) {
3074
- return segments[i];
3075
- }
3076
- if (segments[i] !== prefixUrl[i]) {
3077
- return undefined;
3078
- }
3079
- }
3080
- return undefined;
3081
- };
3082
- const toSegments = (path) => {
3083
- return path
3084
- .split('/')
3085
- .map((s) => s.trim())
3086
- .filter((s) => s !== '');
3087
- };
3088
- const destroyView = (view) => {
3089
- if (view) {
3090
- view.ref.destroy();
3091
- view.unlistenEvents();
3092
- }
3093
- };
3094
-
3095
- // TODO(FW-2827): types
3096
- class StackController {
3097
- constructor(tabsPrefix, containerEl, router, navCtrl, zone, location) {
3098
- this.containerEl = containerEl;
3099
- this.router = router;
3100
- this.navCtrl = navCtrl;
3101
- this.zone = zone;
3102
- this.location = location;
3103
- this.views = [];
3104
- this.skipTransition = false;
3105
- this.nextId = 0;
3106
- this.tabsPrefix = tabsPrefix !== undefined ? toSegments(tabsPrefix) : undefined;
3107
- }
3108
- createView(ref, activatedRoute) {
3109
- var _a;
3110
- const url = getUrl(this.router, activatedRoute);
3111
- const element = (_a = ref === null || ref === void 0 ? void 0 : ref.location) === null || _a === void 0 ? void 0 : _a.nativeElement;
3112
- const unlistenEvents = bindLifecycleEvents(this.zone, ref.instance, element);
3113
- return {
3114
- id: this.nextId++,
3115
- stackId: computeStackId(this.tabsPrefix, url),
3116
- unlistenEvents,
3117
- element,
3118
- ref,
3119
- url,
3120
- };
3121
- }
3122
- getExistingView(activatedRoute) {
3123
- const activatedUrlKey = getUrl(this.router, activatedRoute);
3124
- const view = this.views.find((vw) => vw.url === activatedUrlKey);
3125
- if (view) {
3126
- view.ref.changeDetectorRef.reattach();
3127
- }
3128
- return view;
3129
- }
3130
- setActive(enteringView) {
3131
- var _a, _b;
3132
- const consumeResult = this.navCtrl.consumeTransition();
3133
- let { direction, animation, animationBuilder } = consumeResult;
3134
- const leavingView = this.activeView;
3135
- const tabSwitch = isTabSwitch(enteringView, leavingView);
3136
- if (tabSwitch) {
3137
- direction = 'back';
3138
- animation = undefined;
3139
- }
3140
- const viewsSnapshot = this.views.slice();
3141
- let currentNavigation;
3142
- const router = this.router;
3143
- // Angular >= 7.2.0
3144
- if (router.getCurrentNavigation) {
3145
- currentNavigation = router.getCurrentNavigation();
3146
- // Angular < 7.2.0
3147
- }
3148
- else if ((_a = router.navigations) === null || _a === void 0 ? void 0 : _a.value) {
3149
- currentNavigation = router.navigations.value;
3150
- }
3151
- /**
3152
- * If the navigation action
3153
- * sets `replaceUrl: true`
3154
- * then we need to make sure
3155
- * we remove the last item
3156
- * from our views stack
3157
- */
3158
- if ((_b = currentNavigation === null || currentNavigation === void 0 ? void 0 : currentNavigation.extras) === null || _b === void 0 ? void 0 : _b.replaceUrl) {
3159
- if (this.views.length > 0) {
3160
- this.views.splice(-1, 1);
3161
- }
3162
- }
3163
- const reused = this.views.includes(enteringView);
3164
- const views = this.insertView(enteringView, direction);
3165
- // Trigger change detection before transition starts
3166
- // This will call ngOnInit() the first time too, just after the view
3167
- // was attached to the dom, but BEFORE the transition starts
3168
- if (!reused) {
3169
- enteringView.ref.changeDetectorRef.detectChanges();
3170
- }
3171
- /**
3172
- * If we are going back from a page that
3173
- * was presented using a custom animation
3174
- * we should default to using that
3175
- * unless the developer explicitly
3176
- * provided another animation.
3177
- */
3178
- const customAnimation = enteringView.animationBuilder;
3179
- if (animationBuilder === undefined && direction === 'back' && !tabSwitch && customAnimation !== undefined) {
3180
- animationBuilder = customAnimation;
3181
- }
3182
- /**
3183
- * Save any custom animation so that navigating
3184
- * back will use this custom animation by default.
3185
- */
3186
- if (leavingView) {
3187
- leavingView.animationBuilder = animationBuilder;
3188
- }
3189
- // Wait until previous transitions finish
3190
- return this.zone.runOutsideAngular(() => {
3191
- return this.wait(() => {
3192
- // disconnect leaving page from change detection to
3193
- // reduce jank during the page transition
3194
- if (leavingView) {
3195
- leavingView.ref.changeDetectorRef.detach();
3196
- }
3197
- // In case the enteringView is the same as the leavingPage we need to reattach()
3198
- enteringView.ref.changeDetectorRef.reattach();
3199
- return this.transition(enteringView, leavingView, animation, this.canGoBack(1), false, animationBuilder)
3200
- .then(() => cleanupAsync(enteringView, views, viewsSnapshot, this.location, this.zone))
3201
- .then(() => ({
3202
- enteringView,
3203
- direction,
3204
- animation,
3205
- tabSwitch,
3206
- }));
3207
- });
3208
- });
3209
- }
3210
- canGoBack(deep, stackId = this.getActiveStackId()) {
3211
- return this.getStack(stackId).length > deep;
3212
- }
3213
- pop(deep, stackId = this.getActiveStackId()) {
3214
- return this.zone.run(() => {
3215
- var _a, _b;
3216
- const views = this.getStack(stackId);
3217
- if (views.length <= deep) {
3218
- return Promise.resolve(false);
3219
- }
3220
- const view = views[views.length - deep - 1];
3221
- let url = view.url;
3222
- const viewSavedData = view.savedData;
3223
- if (viewSavedData) {
3224
- const primaryOutlet = viewSavedData.get('primary');
3225
- if ((_b = (_a = primaryOutlet === null || primaryOutlet === void 0 ? void 0 : primaryOutlet.route) === null || _a === void 0 ? void 0 : _a._routerState) === null || _b === void 0 ? void 0 : _b.snapshot.url) {
3226
- url = primaryOutlet.route._routerState.snapshot.url;
3227
- }
3228
- }
3229
- const { animationBuilder } = this.navCtrl.consumeTransition();
3230
- return this.navCtrl.navigateBack(url, Object.assign(Object.assign({}, view.savedExtras), { animation: animationBuilder })).then(() => true);
3231
- });
3232
- }
3233
- startBackTransition() {
3234
- const leavingView = this.activeView;
3235
- if (leavingView) {
3236
- const views = this.getStack(leavingView.stackId);
3237
- const enteringView = views[views.length - 2];
3238
- const customAnimation = enteringView.animationBuilder;
3239
- return this.wait(() => {
3240
- return this.transition(enteringView, // entering view
3241
- leavingView, // leaving view
3242
- 'back', this.canGoBack(2), true, customAnimation);
3243
- });
3244
- }
3245
- return Promise.resolve();
3246
- }
3247
- endBackTransition(shouldComplete) {
3248
- if (shouldComplete) {
3249
- this.skipTransition = true;
3250
- this.pop(1);
3251
- }
3252
- else if (this.activeView) {
3253
- cleanup(this.activeView, this.views, this.views, this.location, this.zone);
3254
- }
3255
- }
3256
- getLastUrl(stackId) {
3257
- const views = this.getStack(stackId);
3258
- return views.length > 0 ? views[views.length - 1] : undefined;
3259
- }
3260
- /**
3261
- * @internal
3262
- */
3263
- getRootUrl(stackId) {
3264
- const views = this.getStack(stackId);
3265
- return views.length > 0 ? views[0] : undefined;
3266
- }
3267
- getActiveStackId() {
3268
- return this.activeView ? this.activeView.stackId : undefined;
3269
- }
3270
- /**
3271
- * @internal
3272
- */
3273
- getActiveView() {
3274
- return this.activeView;
3275
- }
3276
- hasRunningTask() {
3277
- return this.runningTask !== undefined;
3278
- }
3279
- destroy() {
3280
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3281
- this.containerEl = undefined;
3282
- this.views.forEach(destroyView);
3283
- this.activeView = undefined;
3284
- this.views = [];
3285
- }
3286
- getStack(stackId) {
3287
- return this.views.filter((v) => v.stackId === stackId);
3288
- }
3289
- insertView(enteringView, direction) {
3290
- this.activeView = enteringView;
3291
- this.views = insertView(this.views, enteringView, direction);
3292
- return this.views.slice();
3293
- }
3294
- transition(enteringView, leavingView, direction, showGoBack, progressAnimation, animationBuilder) {
3295
- if (this.skipTransition) {
3296
- this.skipTransition = false;
3297
- return Promise.resolve(false);
3298
- }
3299
- if (leavingView === enteringView) {
3300
- return Promise.resolve(false);
3301
- }
3302
- const enteringEl = enteringView ? enteringView.element : undefined;
3303
- const leavingEl = leavingView ? leavingView.element : undefined;
3304
- const containerEl = this.containerEl;
3305
- if (enteringEl && enteringEl !== leavingEl) {
3306
- enteringEl.classList.add('ion-page');
3307
- enteringEl.classList.add('ion-page-invisible');
3308
- if (enteringEl.parentElement !== containerEl) {
3309
- containerEl.appendChild(enteringEl);
3310
- }
3311
- if (containerEl.commit) {
3312
- return containerEl.commit(enteringEl, leavingEl, {
3313
- duration: direction === undefined ? 0 : undefined,
3314
- direction,
3315
- showGoBack,
3316
- progressAnimation,
3317
- animationBuilder,
3318
- });
3319
- }
3320
- }
3321
- return Promise.resolve(false);
3322
- }
3323
- wait(task) {
3324
- return __awaiter(this, void 0, void 0, function* () {
3325
- if (this.runningTask !== undefined) {
3326
- yield this.runningTask;
3327
- this.runningTask = undefined;
3328
- }
3329
- const promise = (this.runningTask = task());
3330
- promise.finally(() => (this.runningTask = undefined));
3331
- return promise;
3332
- });
3333
- }
3334
- }
3335
- const cleanupAsync = (activeRoute, views, viewsSnapshot, location, zone) => {
3336
- if (typeof requestAnimationFrame === 'function') {
3337
- return new Promise((resolve) => {
3338
- requestAnimationFrame(() => {
3339
- cleanup(activeRoute, views, viewsSnapshot, location, zone);
3340
- resolve();
3341
- });
3342
- });
3343
- }
3344
- return Promise.resolve();
3345
- };
3346
- const cleanup = (activeRoute, views, viewsSnapshot, location, zone) => {
3347
- /**
3348
- * Re-enter the Angular zone when destroying page components. This will allow
3349
- * lifecycle events (`ngOnDestroy`) to be run inside the Angular zone.
3350
- */
3351
- zone.run(() => viewsSnapshot.filter((view) => !views.includes(view)).forEach(destroyView));
3352
- views.forEach((view) => {
3353
- /**
3354
- * In the event that a user navigated multiple
3355
- * times in rapid succession, we want to make sure
3356
- * we don't pre-emptively detach a view while
3357
- * it is in mid-transition.
3358
- *
3359
- * In this instance we also do not care about query
3360
- * params or fragments as it will be the same view regardless
3361
- */
3362
- const locationWithoutParams = location.path().split('?')[0];
3363
- const locationWithoutFragment = locationWithoutParams.split('#')[0];
3364
- if (view !== activeRoute && view.url !== locationWithoutFragment) {
3365
- const element = view.element;
3366
- element.setAttribute('aria-hidden', 'true');
3367
- element.classList.add('ion-page-hidden');
3368
- view.ref.changeDetectorRef.detach();
3369
- }
3370
- });
3371
- };
3372
-
3373
- // TODO(FW-2827): types
3374
- // eslint-disable-next-line @angular-eslint/directive-class-suffix
3375
- class IonRouterOutlet {
3376
- constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
3377
- this.parentOutlet = parentOutlet;
3378
- this.activatedView = null;
3379
- // Maintain map of activated route proxies for each component instance
3380
- this.proxyMap = new WeakMap();
3381
- // Keep the latest activated route in a subject for the proxy routes to switch map to
3382
- this.currentActivatedRoute$ = new BehaviorSubject(null);
3383
- this.activated = null;
3384
- this._activatedRoute = null;
3385
- /**
3386
- * The name of the outlet
3387
- */
3388
- this.name = PRIMARY_OUTLET;
3389
- /** @internal */
3390
- this.stackWillChange = new EventEmitter();
3391
- /** @internal */
3392
- this.stackDidChange = new EventEmitter();
3393
- // eslint-disable-next-line @angular-eslint/no-output-rename
3394
- this.activateEvents = new EventEmitter();
3395
- // eslint-disable-next-line @angular-eslint/no-output-rename
3396
- this.deactivateEvents = new EventEmitter();
3397
- this.parentContexts = inject(ChildrenOutletContexts);
3398
- this.location = inject(ViewContainerRef);
3399
- this.environmentInjector = inject(EnvironmentInjector);
3400
- this.inputBinder = inject(INPUT_BINDER, { optional: true });
3401
- /** @nodoc */
3402
- this.supportsBindingToComponentInputs = true;
3403
- // Ionic providers
3404
- this.config = inject(Config);
3405
- this.navCtrl = inject(NavController);
3406
- this.nativeEl = elementRef.nativeElement;
3407
- this.name = name || PRIMARY_OUTLET;
3408
- this.tabsPrefix = tabs === 'true' ? getUrl(router, activatedRoute) : undefined;
3409
- this.stackCtrl = new StackController(this.tabsPrefix, this.nativeEl, router, this.navCtrl, zone, commonLocation);
3410
- this.parentContexts.onChildOutletCreated(this.name, this);
3411
- }
3412
- /** @internal */
3413
- get activatedComponentRef() {
3414
- return this.activated;
3415
- }
3416
- set animation(animation) {
3417
- this.nativeEl.animation = animation;
3418
- }
3419
- set animated(animated) {
3420
- this.nativeEl.animated = animated;
3421
- }
3422
- set swipeGesture(swipe) {
3423
- this._swipeGesture = swipe;
3424
- this.nativeEl.swipeHandler = swipe
3425
- ? {
3426
- canStart: () => this.stackCtrl.canGoBack(1) && !this.stackCtrl.hasRunningTask(),
3427
- onStart: () => this.stackCtrl.startBackTransition(),
3428
- onEnd: (shouldContinue) => this.stackCtrl.endBackTransition(shouldContinue),
3429
- }
3430
- : undefined;
3431
- }
3432
- ngOnDestroy() {
3433
- var _a;
3434
- this.stackCtrl.destroy();
3435
- (_a = this.inputBinder) === null || _a === void 0 ? void 0 : _a.unsubscribeFromRouteData(this);
3436
- }
3437
- getContext() {
3438
- return this.parentContexts.getContext(this.name);
3439
- }
3440
- ngOnInit() {
3441
- this.initializeOutletWithName();
3442
- }
3443
- // Note: Ionic deviates from the Angular Router implementation here
3444
- initializeOutletWithName() {
3445
- if (!this.activated) {
3446
- // If the outlet was not instantiated at the time the route got activated we need to populate
3447
- // the outlet when it is initialized (ie inside a NgIf)
3448
- const context = this.getContext();
3449
- if (context === null || context === void 0 ? void 0 : context.route) {
3450
- this.activateWith(context.route, context.injector);
3451
- }
3452
- }
3453
- new Promise((resolve) => componentOnReady(this.nativeEl, resolve)).then(() => {
3454
- if (this._swipeGesture === undefined) {
3455
- this.swipeGesture = this.config.getBoolean('swipeBackEnabled', this.nativeEl.mode === 'ios');
3456
- }
3457
- });
3458
- }
3459
- get isActivated() {
3460
- return !!this.activated;
3461
- }
3462
- get component() {
3463
- if (!this.activated) {
3464
- throw new Error('Outlet is not activated');
3465
- }
3466
- return this.activated.instance;
3467
- }
3468
- get activatedRoute() {
3469
- if (!this.activated) {
3470
- throw new Error('Outlet is not activated');
3471
- }
3472
- return this._activatedRoute;
3473
- }
3474
- get activatedRouteData() {
3475
- if (this._activatedRoute) {
3476
- return this._activatedRoute.snapshot.data;
3477
- }
3478
- return {};
3479
- }
3480
- /**
3481
- * Called when the `RouteReuseStrategy` instructs to detach the subtree
3482
- */
3483
- detach() {
3484
- throw new Error('incompatible reuse strategy');
3485
- }
3486
- /**
3487
- * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
3488
- */
3489
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3490
- attach(_ref, _activatedRoute) {
3491
- throw new Error('incompatible reuse strategy');
3492
- }
3493
- deactivate() {
3494
- if (this.activated) {
3495
- if (this.activatedView) {
3496
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3497
- const context = this.getContext();
3498
- this.activatedView.savedData = new Map(context.children['contexts']);
3499
- /**
3500
- * Angular v11.2.10 introduced a change
3501
- * where this route context is cleared out when
3502
- * a router-outlet is deactivated, However,
3503
- * we need this route information in order to
3504
- * return a user back to the correct tab when
3505
- * leaving and then going back to the tab context.
3506
- */
3507
- const primaryOutlet = this.activatedView.savedData.get('primary');
3508
- if (primaryOutlet && context.route) {
3509
- primaryOutlet.route = Object.assign({}, context.route);
3510
- }
3511
- /**
3512
- * Ensure we are saving the NavigationExtras
3513
- * data otherwise it will be lost
3514
- */
3515
- this.activatedView.savedExtras = {};
3516
- if (context.route) {
3517
- const contextSnapshot = context.route.snapshot;
3518
- this.activatedView.savedExtras.queryParams = contextSnapshot.queryParams;
3519
- this.activatedView.savedExtras.fragment = contextSnapshot.fragment;
3520
- }
3521
- }
3522
- const c = this.component;
3523
- this.activatedView = null;
3524
- this.activated = null;
3525
- this._activatedRoute = null;
3526
- this.deactivateEvents.emit(c);
3527
- }
3528
- }
3529
- activateWith(activatedRoute, environmentInjector) {
3530
- var _a, _b;
3531
- if (this.isActivated) {
3532
- throw new Error('Cannot activate an already activated outlet');
3533
- }
3534
- this._activatedRoute = activatedRoute;
3535
- let cmpRef;
3536
- let enteringView = this.stackCtrl.getExistingView(activatedRoute);
3537
- if (enteringView) {
3538
- cmpRef = this.activated = enteringView.ref;
3539
- const saved = enteringView.savedData;
3540
- if (saved) {
3541
- // self-restore
3542
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3543
- const context = this.getContext();
3544
- context.children['contexts'] = saved;
3545
- }
3546
- // Updated activated route proxy for this component
3547
- this.updateActivatedRouteProxy(cmpRef.instance, activatedRoute);
3548
- }
3549
- else {
3550
- const snapshot = activatedRoute._futureSnapshot;
3551
- /**
3552
- * Angular 14 introduces a new `loadComponent` property to the route config.
3553
- * This function will assign a `component` property to the route snapshot.
3554
- * We check for the presence of this property to determine if the route is
3555
- * using standalone components.
3556
- */
3557
- const childContexts = this.parentContexts.getOrCreateContext(this.name).children;
3558
- // We create an activated route proxy object that will maintain future updates for this component
3559
- // over its lifecycle in the stack.
3560
- const component$ = new BehaviorSubject(null);
3561
- const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);
3562
- const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
3563
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3564
- const component = (_a = snapshot.routeConfig.component) !== null && _a !== void 0 ? _a : snapshot.component;
3565
- cmpRef = this.activated = this.location.createComponent(component, {
3566
- index: this.location.length,
3567
- injector,
3568
- environmentInjector: environmentInjector !== null && environmentInjector !== void 0 ? environmentInjector : this.environmentInjector,
3569
- });
3570
- // Once the component is created we can push it to our local subject supplied to the proxy
3571
- component$.next(cmpRef.instance);
3572
- // Calling `markForCheck` to make sure we will run the change detection when the
3573
- // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.
3574
- enteringView = this.stackCtrl.createView(this.activated, activatedRoute);
3575
- // Store references to the proxy by component
3576
- this.proxyMap.set(cmpRef.instance, activatedRouteProxy);
3577
- this.currentActivatedRoute$.next({ component: cmpRef.instance, activatedRoute });
3578
- }
3579
- (_b = this.inputBinder) === null || _b === void 0 ? void 0 : _b.bindActivatedRouteToOutletComponent(this);
3580
- this.activatedView = enteringView;
3581
- /**
3582
- * The top outlet is set prior to the entering view's transition completing,
3583
- * so that when we have nested outlets (e.g. ion-tabs inside an ion-router-outlet),
3584
- * the tabs outlet will be assigned as the top outlet when a view inside tabs is
3585
- * activated.
3586
- *
3587
- * In this scenario, activeWith is called for both the tabs and the root router outlet.
3588
- * To avoid a race condition, we assign the top outlet synchronously.
3589
- */
3590
- this.navCtrl.setTopOutlet(this);
3591
- const leavingView = this.stackCtrl.getActiveView();
3592
- this.stackWillChange.emit({
3593
- enteringView,
3594
- tabSwitch: isTabSwitch(enteringView, leavingView),
3595
- });
3596
- this.stackCtrl.setActive(enteringView).then((data) => {
3597
- this.activateEvents.emit(cmpRef.instance);
3598
- this.stackDidChange.emit(data);
3599
- });
3600
- }
3601
- /**
3602
- * Returns `true` if there are pages in the stack to go back.
3603
- */
3604
- canGoBack(deep = 1, stackId) {
3605
- return this.stackCtrl.canGoBack(deep, stackId);
3606
- }
3607
- /**
3608
- * Resolves to `true` if it the outlet was able to sucessfully pop the last N pages.
3609
- */
3610
- pop(deep = 1, stackId) {
3611
- return this.stackCtrl.pop(deep, stackId);
3612
- }
3613
- /**
3614
- * Returns the URL of the active page of each stack.
3615
- */
3616
- getLastUrl(stackId) {
3617
- const active = this.stackCtrl.getLastUrl(stackId);
3618
- return active ? active.url : undefined;
3619
- }
3620
- /**
3621
- * Returns the RouteView of the active page of each stack.
3622
- * @internal
3623
- */
3624
- getLastRouteView(stackId) {
3625
- return this.stackCtrl.getLastUrl(stackId);
3626
- }
3627
- /**
3628
- * Returns the root view in the tab stack.
3629
- * @internal
3630
- */
3631
- getRootView(stackId) {
3632
- return this.stackCtrl.getRootUrl(stackId);
3633
- }
3634
- /**
3635
- * Returns the active stack ID. In the context of ion-tabs, it means the active tab.
3636
- */
3637
- getActiveStackId() {
3638
- return this.stackCtrl.getActiveStackId();
3639
- }
3640
- /**
3641
- * Since the activated route can change over the life time of a component in an ion router outlet, we create
3642
- * a proxy so that we can update the values over time as a user navigates back to components already in the stack.
3643
- */
3644
- createActivatedRouteProxy(component$, activatedRoute) {
3645
- const proxy = new ActivatedRoute();
3646
- proxy._futureSnapshot = activatedRoute._futureSnapshot;
3647
- proxy._routerState = activatedRoute._routerState;
3648
- proxy.snapshot = activatedRoute.snapshot;
3649
- proxy.outlet = activatedRoute.outlet;
3650
- proxy.component = activatedRoute.component;
3651
- // Setup wrappers for the observables so consumers don't have to worry about switching to new observables as the state updates
3652
- proxy._paramMap = this.proxyObservable(component$, 'paramMap');
3653
- proxy._queryParamMap = this.proxyObservable(component$, 'queryParamMap');
3654
- proxy.url = this.proxyObservable(component$, 'url');
3655
- proxy.params = this.proxyObservable(component$, 'params');
3656
- proxy.queryParams = this.proxyObservable(component$, 'queryParams');
3657
- proxy.fragment = this.proxyObservable(component$, 'fragment');
3658
- proxy.data = this.proxyObservable(component$, 'data');
3659
- return proxy;
3660
- }
3661
- /**
3662
- * Create a wrapped observable that will switch to the latest activated route matched by the given component
3663
- */
3664
- proxyObservable(component$, path) {
3665
- return component$.pipe(
3666
- // First wait until the component instance is pushed
3667
- filter((component) => !!component), switchMap((component) => this.currentActivatedRoute$.pipe(filter((current) => current !== null && current.component === component), switchMap((current) => current && current.activatedRoute[path]), distinctUntilChanged())));
3668
- }
3669
- /**
3670
- * Updates the activated route proxy for the given component to the new incoming router state
3671
- */
3672
- updateActivatedRouteProxy(component, activatedRoute) {
3673
- const proxy = this.proxyMap.get(component);
3674
- if (!proxy) {
3675
- throw new Error(`Could not find activated route proxy for view`);
3676
- }
3677
- proxy._futureSnapshot = activatedRoute._futureSnapshot;
3678
- proxy._routerState = activatedRoute._routerState;
3679
- proxy.snapshot = activatedRoute.snapshot;
3680
- proxy.outlet = activatedRoute.outlet;
3681
- proxy.component = activatedRoute.component;
3682
- this.currentActivatedRoute$.next({ component, activatedRoute });
3683
- }
3684
- }
3685
- /** @nocollapse */ IonRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, deps: [{ token: 'name', attribute: true }, { token: 'tabs', attribute: true, optional: true }, { token: i1.Location }, { token: i0.ElementRef }, { token: i3.Router }, { token: i0.NgZone }, { token: i3.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3686
- /** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", inputs: { animated: "animated", animation: "animation", mode: "mode", swipeGesture: "swipeGesture", name: "name" }, outputs: { stackWillChange: "stackWillChange", stackDidChange: "stackDidChange", activateEvents: "activate", deactivateEvents: "deactivate" }, exportAs: ["outlet"], ngImport: i0 });
3687
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
3688
- type: Directive,
3689
- args: [{
3690
- selector: 'ion-router-outlet',
3691
- exportAs: 'outlet',
3692
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
3693
- inputs: ['animated', 'animation', 'mode', 'swipeGesture'],
3694
- }]
3695
- }], ctorParameters: function () {
3696
- return [{ type: undefined, decorators: [{
3697
- type: Attribute,
3698
- args: ['name']
3699
- }] }, { type: undefined, decorators: [{
3700
- type: Optional
3701
- }, {
3702
- type: Attribute,
3703
- args: ['tabs']
3704
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
3705
- type: SkipSelf
3706
- }, {
3707
- type: Optional
3708
- }] }];
3709
- }, propDecorators: { name: [{
3710
- type: Input
3711
- }], stackWillChange: [{
3712
- type: Output
3713
- }], stackDidChange: [{
3714
- type: Output
3715
- }], activateEvents: [{
3716
- type: Output,
3717
- args: ['activate']
3718
- }], deactivateEvents: [{
3719
- type: Output,
3720
- args: ['deactivate']
3721
- }] } });
3722
- class OutletInjector {
3723
- constructor(route, childContexts, parent) {
3724
- this.route = route;
3725
- this.childContexts = childContexts;
3726
- this.parent = parent;
3727
- }
3728
- get(token, notFoundValue) {
3729
- if (token === ActivatedRoute) {
3730
- return this.route;
3731
- }
3732
- if (token === ChildrenOutletContexts) {
3733
- return this.childContexts;
3734
- }
3735
- return this.parent.get(token, notFoundValue);
3736
- }
3737
- }
3738
- // TODO: FW-4785 - Remove this once Angular 15 support is dropped
3739
- const INPUT_BINDER = new InjectionToken('');
3740
- /**
3741
- * Injectable used as a tree-shakable provider for opting in to binding router data to component
3742
- * inputs.
3743
- *
3744
- * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or
3745
- * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,
3746
- * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.
3747
- * Importantly, when an input does not have an item in the route data with a matching key, this
3748
- * input is set to `undefined`. If it were not done this way, the previous information would be
3749
- * retained if the data got removed from the route (i.e. if a query parameter is removed).
3750
- *
3751
- * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that
3752
- * the subscriptions are cleaned up.
3753
- */
3754
- class RoutedComponentInputBinder {
3755
- constructor() {
3756
- this.outletDataSubscriptions = new Map();
3757
- }
3758
- bindActivatedRouteToOutletComponent(outlet) {
3759
- this.unsubscribeFromRouteData(outlet);
3760
- this.subscribeToRouteData(outlet);
3761
- }
3762
- unsubscribeFromRouteData(outlet) {
3763
- var _a;
3764
- (_a = this.outletDataSubscriptions.get(outlet)) === null || _a === void 0 ? void 0 : _a.unsubscribe();
3765
- this.outletDataSubscriptions.delete(outlet);
3766
- }
3767
- subscribeToRouteData(outlet) {
3768
- const { activatedRoute } = outlet;
3769
- const dataSubscription = combineLatest([activatedRoute.queryParams, activatedRoute.params, activatedRoute.data])
3770
- .pipe(switchMap(([queryParams, params, data], index) => {
3771
- data = Object.assign(Object.assign(Object.assign({}, queryParams), params), data);
3772
- // Get the first result from the data subscription synchronously so it's available to
3773
- // the component as soon as possible (and doesn't require a second change detection).
3774
- if (index === 0) {
3775
- return of(data);
3776
- }
3777
- // Promise.resolve is used to avoid synchronously writing the wrong data when
3778
- // two of the Observables in the `combineLatest` stream emit one after
3779
- // another.
3780
- return Promise.resolve(data);
3781
- }))
3782
- .subscribe((data) => {
3783
- // Outlet may have been deactivated or changed names to be associated with a different
3784
- // route
3785
- if (!outlet.isActivated ||
3786
- !outlet.activatedComponentRef ||
3787
- outlet.activatedRoute !== activatedRoute ||
3788
- activatedRoute.component === null) {
3789
- this.unsubscribeFromRouteData(outlet);
3790
- return;
3791
- }
3792
- const mirror = reflectComponentType(activatedRoute.component);
3793
- if (!mirror) {
3794
- this.unsubscribeFromRouteData(outlet);
3795
- return;
3796
- }
3797
- for (const { templateName } of mirror.inputs) {
3798
- outlet.activatedComponentRef.setInput(templateName, data[templateName]);
3799
- }
3800
- });
3801
- this.outletDataSubscriptions.set(outlet, dataSubscription);
3802
- }
3803
- }
3804
- /** @nocollapse */ RoutedComponentInputBinder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3805
- /** @nocollapse */ RoutedComponentInputBinder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RoutedComponentInputBinder });
3806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
3807
- type: Injectable
3808
- }] });
3809
-
3810
- // eslint-disable-next-line @angular-eslint/component-class-suffix
3811
- class IonTabs {
3812
- constructor(navCtrl) {
3813
- this.navCtrl = navCtrl;
3814
- /**
3815
- * Emitted before the tab view is changed.
3816
- */
3817
- this.ionTabsWillChange = new EventEmitter();
3818
- /**
3819
- * Emitted after the tab view is changed.
3820
- */
3821
- this.ionTabsDidChange = new EventEmitter();
3822
- this.tabBarSlot = 'bottom';
3823
- }
3824
- ngAfterContentInit() {
3825
- this.detectSlotChanges();
3826
- }
3827
- ngAfterContentChecked() {
3828
- this.detectSlotChanges();
3829
- }
3830
- /**
3831
- * @internal
3832
- */
3833
- onStackWillChange({ enteringView, tabSwitch }) {
3834
- const stackId = enteringView.stackId;
3835
- if (tabSwitch && stackId !== undefined) {
3836
- this.ionTabsWillChange.emit({ tab: stackId });
3837
- }
3838
- }
3839
- /**
3840
- * @internal
3841
- */
3842
- onStackDidChange({ enteringView, tabSwitch }) {
3843
- const stackId = enteringView.stackId;
3844
- if (tabSwitch && stackId !== undefined) {
3845
- if (this.tabBar) {
3846
- this.tabBar.selectedTab = stackId;
3847
- }
3848
- this.ionTabsDidChange.emit({ tab: stackId });
3849
- }
3850
- }
3851
- /**
3852
- * When a tab button is clicked, there are several scenarios:
3853
- * 1. If the selected tab is currently active (the tab button has been clicked
3854
- * again), then it should go to the root view for that tab.
3855
- *
3856
- * a. Get the saved root view from the router outlet. If the saved root view
3857
- * matches the tabRootUrl, set the route view to this view including the
3858
- * navigation extras.
3859
- * b. If the saved root view from the router outlet does
3860
- * not match, navigate to the tabRootUrl. No navigation extras are
3861
- * included.
3862
- *
3863
- * 2. If the current tab tab is not currently selected, get the last route
3864
- * view from the router outlet.
3865
- *
3866
- * a. If the last route view exists, navigate to that view including any
3867
- * navigation extras
3868
- * b. If the last route view doesn't exist, then navigate
3869
- * to the default tabRootUrl
3870
- */
3871
- select(tabOrEvent) {
3872
- const isTabString = typeof tabOrEvent === 'string';
3873
- const tab = isTabString ? tabOrEvent : tabOrEvent.detail.tab;
3874
- const alreadySelected = this.outlet.getActiveStackId() === tab;
3875
- const tabRootUrl = `${this.outlet.tabsPrefix}/${tab}`;
3876
- /**
3877
- * If this is a nested tab, prevent the event
3878
- * from bubbling otherwise the outer tabs
3879
- * will respond to this event too, causing
3880
- * the app to get directed to the wrong place.
3881
- */
3882
- if (!isTabString) {
3883
- tabOrEvent.stopPropagation();
3884
- }
3885
- if (alreadySelected) {
3886
- const activeStackId = this.outlet.getActiveStackId();
3887
- const activeView = this.outlet.getLastRouteView(activeStackId);
3888
- // If on root tab, do not navigate to root tab again
3889
- if ((activeView === null || activeView === void 0 ? void 0 : activeView.url) === tabRootUrl) {
3890
- return;
3891
- }
3892
- const rootView = this.outlet.getRootView(tab);
3893
- const navigationExtras = rootView && tabRootUrl === rootView.url && rootView.savedExtras;
3894
- return this.navCtrl.navigateRoot(tabRootUrl, Object.assign(Object.assign({}, navigationExtras), { animated: true, animationDirection: 'back' }));
3895
- }
3896
- else {
3897
- const lastRoute = this.outlet.getLastRouteView(tab);
3898
- /**
3899
- * If there is a lastRoute, goto that, otherwise goto the fallback url of the
3900
- * selected tab
3901
- */
3902
- const url = (lastRoute === null || lastRoute === void 0 ? void 0 : lastRoute.url) || tabRootUrl;
3903
- const navigationExtras = lastRoute === null || lastRoute === void 0 ? void 0 : lastRoute.savedExtras;
3904
- return this.navCtrl.navigateRoot(url, Object.assign(Object.assign({}, navigationExtras), { animated: true, animationDirection: 'back' }));
3905
- }
3906
- }
3907
- getSelected() {
3908
- return this.outlet.getActiveStackId();
3909
- }
3910
- /**
3911
- * Detects changes to the slot attribute of the tab bar.
3912
- *
3913
- * If the slot attribute has changed, then the tab bar
3914
- * should be relocated to the new slot position.
3915
- */
3916
- detectSlotChanges() {
3917
- this.tabBars.forEach((tabBar) => {
3918
- // el is a protected attribute from the generated component wrapper
3919
- const currentSlot = tabBar.el.getAttribute('slot');
3920
- if (currentSlot !== this.tabBarSlot) {
3921
- this.tabBarSlot = currentSlot;
3922
- this.relocateTabBar();
3923
- }
3924
- });
3925
- }
3926
- /**
3927
- * Relocates the tab bar to the new slot position.
3928
- */
3929
- relocateTabBar() {
3930
- /**
3931
- * `el` is a protected attribute from the generated component wrapper.
3932
- * To avoid having to manually create the wrapper for tab bar, we
3933
- * cast the tab bar to any and access the protected attribute.
3934
- */
3935
- const tabBar = this.tabBar.el;
3936
- if (this.tabBarSlot === 'top') {
3937
- /**
3938
- * A tab bar with a slot of "top" should be inserted
3939
- * at the top of the container.
3940
- */
3941
- this.tabsInner.nativeElement.before(tabBar);
3942
- }
3943
- else {
3944
- /**
3945
- * A tab bar with a slot of "bottom" or without a slot
3946
- * should be inserted at the end of the container.
3947
- */
3948
- this.tabsInner.nativeElement.after(tabBar);
3949
- }
3950
- }
3951
- }
3952
- /** @nocollapse */ IonTabs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, deps: [{ token: NavController }], target: i0.ɵɵFactoryTarget.Component });
3953
- /** @nocollapse */ IonTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonTabs, selector: "ion-tabs", outputs: { ionTabsWillChange: "ionTabsWillChange", ionTabsDidChange: "ionTabsDidChange" }, host: { listeners: { "ionTabButtonClick": "select($event)" } }, queries: [{ propertyName: "tabBar", first: true, predicate: IonTabBar, descendants: true }, { propertyName: "tabBars", predicate: IonTabBar }], viewQueries: [{ propertyName: "outlet", first: true, predicate: ["outlet"], descendants: true, read: IonRouterOutlet }, { propertyName: "tabsInner", first: true, predicate: ["tabsInner"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: `
3954
- <ng-content select="[slot=top]"></ng-content>
3955
- <div class="tabs-inner" #tabsInner>
3956
- <ion-router-outlet
3957
- #outlet
3958
- tabs="true"
3959
- (stackWillChange)="onStackWillChange($event)"
3960
- (stackDidChange)="onStackDidChange($event)"
3961
- ></ion-router-outlet>
3962
- </div>
3963
- <ng-content></ng-content>
3964
- `, isInline: true, styles: [":host{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner{position:relative;flex:1;contain:layout size style}\n"], dependencies: [{ kind: "directive", type: IonRouterOutlet, selector: "ion-router-outlet", inputs: ["animated", "animation", "mode", "swipeGesture", "name"], outputs: ["stackWillChange", "stackDidChange", "activate", "deactivate"], exportAs: ["outlet"] }] });
3965
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, decorators: [{
3966
- type: Component,
3967
- args: [{ selector: 'ion-tabs', template: `
3968
- <ng-content select="[slot=top]"></ng-content>
3969
- <div class="tabs-inner" #tabsInner>
3970
- <ion-router-outlet
3971
- #outlet
3972
- tabs="true"
3973
- (stackWillChange)="onStackWillChange($event)"
3974
- (stackDidChange)="onStackDidChange($event)"
3975
- ></ion-router-outlet>
3976
- </div>
3977
- <ng-content></ng-content>
3978
- `, styles: [":host{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner{position:relative;flex:1;contain:layout size style}\n"] }]
3979
- }], ctorParameters: function () { return [{ type: NavController }]; }, propDecorators: { outlet: [{
3980
- type: ViewChild,
3981
- args: ['outlet', { read: IonRouterOutlet, static: false }]
3982
- }], tabsInner: [{
3983
- type: ViewChild,
3984
- args: ['tabsInner', { read: ElementRef, static: true }]
3985
- }], tabBar: [{
3986
- type: ContentChild,
3987
- args: [IonTabBar, { static: false }]
3988
- }], tabBars: [{
3989
- type: ContentChildren,
3990
- args: [IonTabBar]
3991
- }], ionTabsWillChange: [{
3992
- type: Output
3993
- }], ionTabsDidChange: [{
3994
- type: Output
3995
- }], select: [{
3996
- type: HostListener,
3997
- args: ['ionTabButtonClick', ['$event']]
3998
- }] } });
3999
-
4000
- class IonBackButtonDelegateDirective {
4001
- constructor(routerOutlet, navCtrl, config) {
4002
- this.routerOutlet = routerOutlet;
4003
- this.navCtrl = navCtrl;
4004
- this.config = config;
4005
- }
4006
- /**
4007
- * @internal
4008
- */
4009
- onClick(ev) {
4010
- var _a;
4011
- const defaultHref = this.defaultHref || this.config.get('backButtonDefaultHref');
4012
- if ((_a = this.routerOutlet) === null || _a === void 0 ? void 0 : _a.canGoBack()) {
4013
- this.navCtrl.setDirection('back', undefined, undefined, this.routerAnimation);
4014
- this.routerOutlet.pop();
4015
- ev.preventDefault();
4016
- }
4017
- else if (defaultHref != null) {
4018
- this.navCtrl.navigateBack(defaultHref, { animation: this.routerAnimation });
4019
- ev.preventDefault();
4020
- }
4021
- }
4022
- }
4023
- /** @nocollapse */ IonBackButtonDelegateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButtonDelegateDirective, deps: [{ token: IonRouterOutlet, optional: true }, { token: NavController }, { token: Config }], target: i0.ɵɵFactoryTarget.Directive });
4024
- /** @nocollapse */ IonBackButtonDelegateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonBackButtonDelegateDirective, selector: "ion-back-button", inputs: { defaultHref: "defaultHref", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
4025
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButtonDelegateDirective, decorators: [{
4026
- type: Directive,
4027
- args: [{
4028
- selector: 'ion-back-button',
4029
- }]
4030
- }], ctorParameters: function () {
4031
- return [{ type: IonRouterOutlet, decorators: [{
4032
- type: Optional
4033
- }] }, { type: NavController }, { type: Config }];
4034
- }, propDecorators: { defaultHref: [{
4035
- type: Input
4036
- }], routerAnimation: [{
4037
- type: Input
4038
- }], onClick: [{
4039
- type: HostListener,
4040
- args: ['click', ['$event']]
4041
- }] } });
4042
-
4043
- let NavDelegate = class NavDelegate {
4044
- constructor(ref, environmentInjector, injector, angularDelegate) {
4045
- this.el = ref.nativeElement;
4046
- ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);
4047
- proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);
4048
- }
4049
- };
4050
- /** @nocollapse */ NavDelegate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NavDelegate, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: AngularDelegate }], target: i0.ɵɵFactoryTarget.Directive });
4051
- /** @nocollapse */ NavDelegate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: NavDelegate, selector: "ion-nav", ngImport: i0 });
4052
- NavDelegate = __decorate([
4053
- ProxyCmp({
4054
- inputs: ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'],
4055
- methods: [
4056
- 'push',
4057
- 'insert',
4058
- 'insertPages',
4059
- 'pop',
4060
- 'popTo',
4061
- 'popToRoot',
4062
- 'removeIndex',
4063
- 'setRoot',
4064
- 'setPages',
4065
- 'getActive',
4066
- 'getByIndex',
4067
- 'canGoBack',
4068
- 'getPrevious',
4069
- ],
4070
- })
4071
- ], NavDelegate);
4072
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NavDelegate, decorators: [{
4073
- type: Directive,
4074
- args: [{
4075
- selector: 'ion-nav',
4076
- }]
4077
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: AngularDelegate }]; } });
4078
-
4079
- /**
4080
- * Adds support for Ionic routing directions and animations to the base Angular router link directive.
4081
- *
4082
- * When the router link is clicked, the directive will assign the direction and
4083
- * animation so that the routing integration will transition correctly.
4084
- */
4085
- class RouterLinkDelegateDirective {
4086
- constructor(locationStrategy, navCtrl, elementRef, router, routerLink) {
4087
- this.locationStrategy = locationStrategy;
4088
- this.navCtrl = navCtrl;
4089
- this.elementRef = elementRef;
4090
- this.router = router;
4091
- this.routerLink = routerLink;
4092
- this.routerDirection = 'forward';
4093
- }
4094
- ngOnInit() {
4095
- this.updateTargetUrlAndHref();
4096
- }
4097
- ngOnChanges() {
4098
- this.updateTargetUrlAndHref();
4099
- }
4100
- updateTargetUrlAndHref() {
4101
- var _a;
4102
- if ((_a = this.routerLink) === null || _a === void 0 ? void 0 : _a.urlTree) {
4103
- const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
4104
- this.elementRef.nativeElement.href = href;
4105
- }
4106
- }
4107
- /**
4108
- * @internal
4109
- */
4110
- onClick(ev) {
4111
- this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
4112
- /**
4113
- * This prevents the browser from
4114
- * performing a page reload when pressing
4115
- * an Ionic component with routerLink.
4116
- * The page reload interferes with routing
4117
- * and causes ion-back-button to disappear
4118
- * since the local history is wiped on reload.
4119
- */
4120
- ev.preventDefault();
4121
- }
4122
- }
4123
- /** @nocollapse */ RouterLinkDelegateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
4124
- /** @nocollapse */ RouterLinkDelegateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: RouterLinkDelegateDirective, selector: ":not(a):not(area)[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
4125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
4126
- type: Directive,
4127
- args: [{
4128
- selector: ':not(a):not(area)[routerLink]',
4129
- }]
4130
- }], ctorParameters: function () {
4131
- return [{ type: i1.LocationStrategy }, { type: NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
4132
- type: Optional
4133
- }] }];
4134
- }, propDecorators: { routerDirection: [{
4135
- type: Input
4136
- }], routerAnimation: [{
4137
- type: Input
4138
- }], onClick: [{
4139
- type: HostListener,
4140
- args: ['click', ['$event']]
4141
- }] } });
4142
- class RouterLinkWithHrefDelegateDirective {
4143
- constructor(locationStrategy, navCtrl, elementRef, router, routerLink) {
4144
- this.locationStrategy = locationStrategy;
4145
- this.navCtrl = navCtrl;
4146
- this.elementRef = elementRef;
4147
- this.router = router;
4148
- this.routerLink = routerLink;
4149
- this.routerDirection = 'forward';
4150
- }
4151
- ngOnInit() {
4152
- this.updateTargetUrlAndHref();
4153
- }
4154
- ngOnChanges() {
4155
- this.updateTargetUrlAndHref();
4156
- }
4157
- updateTargetUrlAndHref() {
4158
- var _a;
4159
- if ((_a = this.routerLink) === null || _a === void 0 ? void 0 : _a.urlTree) {
4160
- const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
4161
- this.elementRef.nativeElement.href = href;
4162
- }
4163
- }
4164
- /**
4165
- * @internal
4166
- */
4167
- onClick() {
4168
- this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
4169
- }
4170
- }
4171
- /** @nocollapse */ RouterLinkWithHrefDelegateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
4172
- /** @nocollapse */ RouterLinkWithHrefDelegateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: RouterLinkWithHrefDelegateDirective, selector: "a[routerLink],area[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
4173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
4174
- type: Directive,
4175
- args: [{
4176
- selector: 'a[routerLink],area[routerLink]',
4177
- }]
4178
- }], ctorParameters: function () {
4179
- return [{ type: i1.LocationStrategy }, { type: NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
4180
- type: Optional
4181
- }] }];
4182
- }, propDecorators: { routerDirection: [{
4183
- type: Input
4184
- }], routerAnimation: [{
4185
- type: Input
4186
- }], onClick: [{
4187
- type: HostListener,
4188
- args: ['click']
4189
- }] } });
4190
-
4191
- let IonModal = class IonModal {
4192
- constructor(c, r, z) {
4193
- this.z = z;
4194
- this.isCmpOpen = false;
4195
- this.el = r.nativeElement;
4196
- this.el.addEventListener('ionMount', () => {
4197
- this.isCmpOpen = true;
4198
- c.detectChanges();
4199
- });
4200
- this.el.addEventListener('didDismiss', () => {
4201
- this.isCmpOpen = false;
4202
- c.detectChanges();
4203
- });
4204
- proxyOutputs(this, this.el, [
4205
- 'ionModalDidPresent',
4206
- 'ionModalWillPresent',
4207
- 'ionModalWillDismiss',
4208
- 'ionModalDidDismiss',
4209
- 'ionBreakpointDidChange',
4210
- 'didPresent',
4211
- 'willPresent',
4212
- 'willDismiss',
4213
- 'didDismiss',
4214
- ]);
4215
- }
4216
- };
4217
- /** @nocollapse */ IonModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
4218
- /** @nocollapse */ IonModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonModal, selector: "ion-modal", inputs: { animated: "animated", keepContentsMounted: "keepContentsMounted", backdropBreakpoint: "backdropBreakpoint", backdropDismiss: "backdropDismiss", breakpoints: "breakpoints", canDismiss: "canDismiss", cssClass: "cssClass", enterAnimation: "enterAnimation", event: "event", handle: "handle", handleBehavior: "handleBehavior", initialBreakpoint: "initialBreakpoint", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", presentingElement: "presentingElement", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `<div class="ion-delegate-host ion-page" *ngIf="isCmpOpen || keepContentsMounted">
4219
- <ng-container [ngTemplateOutlet]="template"></ng-container>
4220
- </div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4221
- IonModal = __decorate([
4222
- ProxyCmp({
4223
- inputs: [
4224
- 'animated',
4225
- 'keepContentsMounted',
4226
- 'backdropBreakpoint',
4227
- 'backdropDismiss',
4228
- 'breakpoints',
4229
- 'canDismiss',
4230
- 'cssClass',
4231
- 'enterAnimation',
4232
- 'event',
4233
- 'handle',
4234
- 'handleBehavior',
4235
- 'initialBreakpoint',
4236
- 'isOpen',
4237
- 'keyboardClose',
4238
- 'leaveAnimation',
4239
- 'mode',
4240
- 'presentingElement',
4241
- 'showBackdrop',
4242
- 'translucent',
4243
- 'trigger',
4244
- ],
4245
- methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss', 'setCurrentBreakpoint', 'getCurrentBreakpoint'],
4246
- })
4247
- ], IonModal);
4248
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonModal, decorators: [{
4249
- type: Component,
4250
- args: [{
4251
- selector: 'ion-modal',
4252
- changeDetection: ChangeDetectionStrategy.OnPush,
4253
- template: `<div class="ion-delegate-host ion-page" *ngIf="isCmpOpen || keepContentsMounted">
4254
- <ng-container [ngTemplateOutlet]="template"></ng-container>
4255
- </div>`,
4256
- inputs: [
4257
- 'animated',
4258
- 'keepContentsMounted',
4259
- 'backdropBreakpoint',
4260
- 'backdropDismiss',
4261
- 'breakpoints',
4262
- 'canDismiss',
4263
- 'cssClass',
4264
- 'enterAnimation',
4265
- 'event',
4266
- 'handle',
4267
- 'handleBehavior',
4268
- 'initialBreakpoint',
4269
- 'isOpen',
4270
- 'keyboardClose',
4271
- 'leaveAnimation',
4272
- 'mode',
4273
- 'presentingElement',
4274
- 'showBackdrop',
4275
- 'translucent',
4276
- 'trigger',
4277
- ],
4278
- }]
4279
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
4280
- type: ContentChild,
4281
- args: [TemplateRef, { static: false }]
4282
- }] } });
4283
-
4284
- let IonPopover = class IonPopover {
4285
- constructor(c, r, z) {
4286
- this.z = z;
4287
- this.isCmpOpen = false;
4288
- this.el = r.nativeElement;
4289
- this.el.addEventListener('ionMount', () => {
4290
- this.isCmpOpen = true;
4291
- c.detectChanges();
4292
- });
4293
- this.el.addEventListener('didDismiss', () => {
4294
- this.isCmpOpen = false;
4295
- c.detectChanges();
4296
- });
4297
- proxyOutputs(this, this.el, [
4298
- 'ionPopoverDidPresent',
4299
- 'ionPopoverWillPresent',
4300
- 'ionPopoverWillDismiss',
4301
- 'ionPopoverDidDismiss',
4302
- 'didPresent',
4303
- 'willPresent',
4304
- 'willDismiss',
4305
- 'didDismiss',
4306
- ]);
4307
- }
4308
- };
4309
- /** @nocollapse */ IonPopover.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
4310
- /** @nocollapse */ IonPopover.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonPopover, selector: "ion-popover", inputs: { alignment: "alignment", animated: "animated", arrow: "arrow", keepContentsMounted: "keepContentsMounted", backdropDismiss: "backdropDismiss", cssClass: "cssClass", dismissOnSelect: "dismissOnSelect", enterAnimation: "enterAnimation", event: "event", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger", triggerAction: "triggerAction", reference: "reference", size: "size", side: "side" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen || keepContentsMounted"></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4311
- IonPopover = __decorate([
4312
- ProxyCmp({
4313
- inputs: [
4314
- 'alignment',
4315
- 'animated',
4316
- 'arrow',
4317
- 'keepContentsMounted',
4318
- 'backdropDismiss',
4319
- 'cssClass',
4320
- 'dismissOnSelect',
4321
- 'enterAnimation',
4322
- 'event',
4323
- 'isOpen',
4324
- 'keyboardClose',
4325
- 'leaveAnimation',
4326
- 'mode',
4327
- 'showBackdrop',
4328
- 'translucent',
4329
- 'trigger',
4330
- 'triggerAction',
4331
- 'reference',
4332
- 'size',
4333
- 'side',
4334
- ],
4335
- methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'],
4336
- })
4337
- ], IonPopover);
2268
+ /** @nocollapse */ IonPopover.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonPopover, deps: null, target: i0.ɵɵFactoryTarget.Component });
2269
+ /** @nocollapse */ IonPopover.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonPopover, selector: "ion-popover", usesInheritance: true, ngImport: i0, template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen || keepContentsMounted"></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4338
2270
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonPopover, decorators: [{
4339
2271
  type: Component,
4340
2272
  args: [{
4341
2273
  selector: 'ion-popover',
4342
2274
  changeDetection: ChangeDetectionStrategy.OnPush,
4343
2275
  template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen || keepContentsMounted"></ng-container>`,
4344
- inputs: [
4345
- 'alignment',
4346
- 'animated',
4347
- 'arrow',
4348
- 'keepContentsMounted',
4349
- 'backdropDismiss',
4350
- 'cssClass',
4351
- 'dismissOnSelect',
4352
- 'enterAnimation',
4353
- 'event',
4354
- 'isOpen',
4355
- 'keyboardClose',
4356
- 'leaveAnimation',
4357
- 'mode',
4358
- 'showBackdrop',
4359
- 'translucent',
4360
- 'trigger',
4361
- 'triggerAction',
4362
- 'reference',
4363
- 'size',
4364
- 'side',
4365
- ],
4366
2276
  }]
4367
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
4368
- type: ContentChild,
4369
- args: [TemplateRef, { static: false }]
4370
- }] } });
2277
+ }] });
4371
2278
 
4372
2279
  /**
4373
2280
  * @description
@@ -4417,391 +2324,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
4417
2324
  }]
4418
2325
  }] });
4419
2326
 
4420
- // TODO(FW-2827): types
4421
- class OverlayBaseController {
4422
- constructor(ctrl) {
4423
- this.ctrl = ctrl;
4424
- }
4425
- /**
4426
- * Creates a new overlay
4427
- */
4428
- create(opts) {
4429
- return this.ctrl.create((opts || {}));
4430
- }
4431
- /**
4432
- * When `id` is not provided, it dismisses the top overlay.
4433
- */
4434
- dismiss(data, role, id) {
4435
- return this.ctrl.dismiss(data, role, id);
4436
- }
4437
- /**
4438
- * Returns the top overlay.
4439
- */
4440
- getTop() {
4441
- return this.ctrl.getTop();
4442
- }
4443
- }
4444
-
4445
- class ActionSheetController extends OverlayBaseController {
4446
- constructor() {
4447
- super(actionSheetController);
4448
- }
4449
- }
4450
- /** @nocollapse */ ActionSheetController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionSheetController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4451
- /** @nocollapse */ ActionSheetController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionSheetController, providedIn: 'root' });
4452
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionSheetController, decorators: [{
4453
- type: Injectable,
4454
- args: [{
4455
- providedIn: 'root',
4456
- }]
4457
- }], ctorParameters: function () { return []; } });
4458
-
4459
- class AlertController extends OverlayBaseController {
4460
- constructor() {
4461
- super(alertController);
4462
- }
4463
- }
4464
- /** @nocollapse */ AlertController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4465
- /** @nocollapse */ AlertController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, providedIn: 'root' });
4466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, decorators: [{
4467
- type: Injectable,
4468
- args: [{
4469
- providedIn: 'root',
4470
- }]
4471
- }], ctorParameters: function () { return []; } });
4472
-
4473
- class LoadingController extends OverlayBaseController {
4474
- constructor() {
4475
- super(loadingController);
4476
- }
4477
- }
4478
- /** @nocollapse */ LoadingController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4479
- /** @nocollapse */ LoadingController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, providedIn: 'root' });
4480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, decorators: [{
4481
- type: Injectable,
4482
- args: [{
4483
- providedIn: 'root',
4484
- }]
4485
- }], ctorParameters: function () { return []; } });
4486
-
4487
- class MenuController {
4488
- /**
4489
- * Programmatically open the Menu.
4490
- * @param [menuId] Optionally get the menu by its id, or side.
4491
- * @return returns a promise when the menu is fully opened
4492
- */
4493
- open(menuId) {
4494
- return menuController.open(menuId);
4495
- }
4496
- /**
4497
- * Programmatically close the Menu. If no `menuId` is given as the first
4498
- * argument then it'll close any menu which is open. If a `menuId`
4499
- * is given then it'll close that exact menu.
4500
- * @param [menuId] Optionally get the menu by its id, or side.
4501
- * @return returns a promise when the menu is fully closed
4502
- */
4503
- close(menuId) {
4504
- return menuController.close(menuId);
4505
- }
4506
- /**
4507
- * Toggle the menu. If it's closed, it will open, and if opened, it
4508
- * will close.
4509
- * @param [menuId] Optionally get the menu by its id, or side.
4510
- * @return returns a promise when the menu has been toggled
4511
- */
4512
- toggle(menuId) {
4513
- return menuController.toggle(menuId);
4514
- }
4515
- /**
4516
- * Used to enable or disable a menu. For example, there could be multiple
4517
- * left menus, but only one of them should be able to be opened at the same
4518
- * time. If there are multiple menus on the same side, then enabling one menu
4519
- * will also automatically disable all the others that are on the same side.
4520
- * @param [menuId] Optionally get the menu by its id, or side.
4521
- * @return Returns the instance of the menu, which is useful for chaining.
4522
- */
4523
- enable(shouldEnable, menuId) {
4524
- return menuController.enable(shouldEnable, menuId);
4525
- }
4526
- /**
4527
- * Used to enable or disable the ability to swipe open the menu.
4528
- * @param shouldEnable True if it should be swipe-able, false if not.
4529
- * @param [menuId] Optionally get the menu by its id, or side.
4530
- * @return Returns the instance of the menu, which is useful for chaining.
4531
- */
4532
- swipeGesture(shouldEnable, menuId) {
4533
- return menuController.swipeGesture(shouldEnable, menuId);
4534
- }
4535
- /**
4536
- * @param [menuId] Optionally get the menu by its id, or side.
4537
- * @return Returns true if the specified menu is currently open, otherwise false.
4538
- * If the menuId is not specified, it returns true if ANY menu is currenly open.
4539
- */
4540
- isOpen(menuId) {
4541
- return menuController.isOpen(menuId);
4542
- }
4543
- /**
4544
- * @param [menuId] Optionally get the menu by its id, or side.
4545
- * @return Returns true if the menu is currently enabled, otherwise false.
4546
- */
4547
- isEnabled(menuId) {
4548
- return menuController.isEnabled(menuId);
4549
- }
4550
- /**
4551
- * Used to get a menu instance. If a `menuId` is not provided then it'll
4552
- * return the first menu found. If a `menuId` is `left` or `right`, then
4553
- * it'll return the enabled menu on that side. Otherwise, if a `menuId` is
4554
- * provided, then it'll try to find the menu using the menu's `id`
4555
- * property. If a menu is not found then it'll return `null`.
4556
- * @param [menuId] Optionally get the menu by its id, or side.
4557
- * @return Returns the instance of the menu if found, otherwise `null`.
4558
- */
4559
- get(menuId) {
4560
- return menuController.get(menuId);
4561
- }
4562
- /**
4563
- * @return Returns the instance of the menu already opened, otherwise `null`.
4564
- */
4565
- getOpen() {
4566
- return menuController.getOpen();
4567
- }
4568
- /**
4569
- * @return Returns an array of all menu instances.
4570
- */
4571
- getMenus() {
4572
- return menuController.getMenus();
4573
- }
4574
- }
4575
- /** @nocollapse */ MenuController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4576
- /** @nocollapse */ MenuController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, providedIn: 'root' });
4577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MenuController, decorators: [{
4578
- type: Injectable,
4579
- args: [{
4580
- providedIn: 'root',
4581
- }]
4582
- }] });
4583
-
4584
- class PickerController extends OverlayBaseController {
4585
- constructor() {
4586
- super(pickerController);
4587
- }
4588
- }
4589
- /** @nocollapse */ PickerController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4590
- /** @nocollapse */ PickerController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, providedIn: 'root' });
4591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, decorators: [{
4592
- type: Injectable,
4593
- args: [{
4594
- providedIn: 'root',
4595
- }]
4596
- }], ctorParameters: function () { return []; } });
4597
-
4598
- class ModalController extends OverlayBaseController {
4599
- constructor() {
4600
- super(modalController);
4601
- this.angularDelegate = inject(AngularDelegate);
4602
- this.injector = inject(Injector);
4603
- this.environmentInjector = inject(EnvironmentInjector);
4604
- }
4605
- create(opts) {
4606
- return super.create(Object.assign(Object.assign({}, opts), { delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'modal') }));
4607
- }
4608
- }
4609
- /** @nocollapse */ ModalController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4610
- /** @nocollapse */ ModalController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalController });
4611
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalController, decorators: [{
4612
- type: Injectable
4613
- }], ctorParameters: function () { return []; } });
4614
-
4615
- class PopoverController extends OverlayBaseController {
4616
- constructor() {
4617
- super(popoverController);
4618
- this.angularDelegate = inject(AngularDelegate);
4619
- this.injector = inject(Injector);
4620
- this.environmentInjector = inject(EnvironmentInjector);
4621
- }
4622
- create(opts) {
4623
- return super.create(Object.assign(Object.assign({}, opts), { delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'popover') }));
4624
- }
4625
- }
4626
- /** @nocollapse */ PopoverController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PopoverController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4627
- /** @nocollapse */ PopoverController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PopoverController });
4628
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PopoverController, decorators: [{
4629
- type: Injectable
4630
- }], ctorParameters: function () { return []; } });
4631
-
4632
- class ToastController extends OverlayBaseController {
4633
- constructor() {
4634
- super(toastController);
4635
- }
4636
- }
4637
- /** @nocollapse */ ToastController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToastController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4638
- /** @nocollapse */ ToastController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToastController, providedIn: 'root' });
4639
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToastController, decorators: [{
4640
- type: Injectable,
4641
- args: [{
4642
- providedIn: 'root',
4643
- }]
4644
- }], ctorParameters: function () { return []; } });
4645
-
4646
- class DomController {
4647
- /**
4648
- * Schedules a task to run during the READ phase of the next frame.
4649
- * This task should only read the DOM, but never modify it.
4650
- */
4651
- read(cb) {
4652
- getQueue().read(cb);
4653
- }
4654
- /**
4655
- * Schedules a task to run during the WRITE phase of the next frame.
4656
- * This task should write the DOM, but never READ it.
4657
- */
4658
- write(cb) {
4659
- getQueue().write(cb);
4660
- }
4661
- }
4662
- /** @nocollapse */ DomController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DomController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4663
- /** @nocollapse */ DomController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DomController, providedIn: 'root' });
4664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DomController, decorators: [{
4665
- type: Injectable,
4666
- args: [{
4667
- providedIn: 'root',
4668
- }]
4669
- }] });
4670
- const getQueue = () => {
4671
- const win = typeof window !== 'undefined' ? window : null;
4672
- if (win != null) {
4673
- const Ionic = win.Ionic;
4674
- if (Ionic === null || Ionic === void 0 ? void 0 : Ionic.queue) {
4675
- return Ionic.queue;
4676
- }
4677
- return {
4678
- read: (cb) => win.requestAnimationFrame(cb),
4679
- write: (cb) => win.requestAnimationFrame(cb),
4680
- };
4681
- }
4682
- return {
4683
- read: (cb) => cb(),
4684
- write: (cb) => cb(),
4685
- };
4686
- };
4687
-
4688
- class AnimationController {
4689
- /**
4690
- * Create a new animation
4691
- */
4692
- create(animationId) {
4693
- return createAnimation(animationId);
4694
- }
4695
- /**
4696
- * EXPERIMENTAL
4697
- *
4698
- * Given a progression and a cubic bezier function,
4699
- * this utility returns the time value(s) at which the
4700
- * cubic bezier reaches the given time progression.
4701
- *
4702
- * If the cubic bezier never reaches the progression
4703
- * the result will be an empty array.
4704
- *
4705
- * This is most useful for switching between easing curves
4706
- * when doing a gesture animation (i.e. going from linear easing
4707
- * during a drag, to another easing when `progressEnd` is called)
4708
- */
4709
- easingTime(p0, p1, p2, p3, progression) {
4710
- return getTimeGivenProgression(p0, p1, p2, p3, progression);
4711
- }
4712
- }
4713
- /** @nocollapse */ AnimationController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnimationController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4714
- /** @nocollapse */ AnimationController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnimationController, providedIn: 'root' });
4715
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnimationController, decorators: [{
4716
- type: Injectable,
4717
- args: [{
4718
- providedIn: 'root',
4719
- }]
4720
- }] });
4721
-
4722
- class GestureController {
4723
- constructor(zone) {
4724
- this.zone = zone;
4725
- }
4726
- /**
4727
- * Create a new gesture
4728
- */
4729
- create(opts, runInsideAngularZone = false) {
4730
- if (runInsideAngularZone) {
4731
- Object.getOwnPropertyNames(opts).forEach((key) => {
4732
- if (typeof opts[key] === 'function') {
4733
- const fn = opts[key];
4734
- opts[key] = (...props) => this.zone.run(() => fn(...props));
4735
- }
4736
- });
4737
- }
4738
- return createGesture(opts);
4739
- }
4740
- }
4741
- /** @nocollapse */ GestureController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: GestureController, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
4742
- /** @nocollapse */ GestureController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: GestureController, providedIn: 'root' });
4743
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: GestureController, decorators: [{
4744
- type: Injectable,
4745
- args: [{
4746
- providedIn: 'root',
4747
- }]
4748
- }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
4749
-
4750
- /**
4751
- * Provides a way to customize when activated routes get reused.
4752
- */
4753
- class IonicRouteStrategy {
4754
- /**
4755
- * Whether the given route should detach for later reuse.
4756
- */
4757
- shouldDetach(_route) {
4758
- return false;
4759
- }
4760
- /**
4761
- * Returns `false`, meaning the route (and its subtree) is never reattached
4762
- */
4763
- shouldAttach(_route) {
4764
- return false;
4765
- }
4766
- /**
4767
- * A no-op; the route is never stored since this strategy never detaches routes for later re-use.
4768
- */
4769
- store(_route, _detachedTree) {
4770
- return;
4771
- }
4772
- /**
4773
- * Returns `null` because this strategy does not store routes for later re-use.
4774
- */
4775
- retrieve(_route) {
4776
- return null;
4777
- }
4778
- /**
4779
- * Determines if a route should be reused.
4780
- * This strategy returns `true` when the future route config and
4781
- * current route config are identical and all route parameters are identical.
4782
- */
4783
- shouldReuseRoute(future, curr) {
4784
- if (future.routeConfig !== curr.routeConfig) {
4785
- return false;
4786
- }
4787
- // checking router params
4788
- const futureParams = future.params;
4789
- const currentParams = curr.params;
4790
- const keysA = Object.keys(futureParams);
4791
- const keysB = Object.keys(currentParams);
4792
- if (keysA.length !== keysB.length) {
4793
- return false;
4794
- }
4795
- // Test for A's keys different from B.
4796
- for (const key of keysA) {
4797
- if (currentParams[key] !== futureParams[key]) {
4798
- return false;
4799
- }
4800
- }
4801
- return true;
4802
- }
4803
- }
4804
-
4805
2327
  // TODO(FW-2827): types
4806
2328
  const appInitialize = (config, doc, zone) => {
4807
2329
  return () => {
@@ -4834,7 +2356,6 @@ const DIRECTIVES = [
4834
2356
  IonAlert,
4835
2357
  IonApp,
4836
2358
  IonAvatar,
4837
- IonBackButton,
4838
2359
  IonBackdrop,
4839
2360
  IonBadge,
4840
2361
  IonBreadcrumb,
@@ -4876,7 +2397,6 @@ const DIRECTIVES = [
4876
2397
  IonMenu,
4877
2398
  IonMenuButton,
4878
2399
  IonMenuToggle,
4879
- IonNav,
4880
2400
  IonNavLink,
4881
2401
  IonNote,
4882
2402
  IonPicker,
@@ -4924,8 +2444,8 @@ const DECLARATIONS = [
4924
2444
  // navigation
4925
2445
  IonTabs,
4926
2446
  IonRouterOutlet,
4927
- IonBackButtonDelegateDirective,
4928
- NavDelegate,
2447
+ IonBackButton,
2448
+ IonNav,
4929
2449
  RouterLinkDelegateDirective,
4930
2450
  RouterLinkWithHrefDelegateDirective,
4931
2451
  // validators
@@ -4947,17 +2467,13 @@ class IonicModule {
4947
2467
  multi: true,
4948
2468
  deps: [ConfigToken, DOCUMENT, NgZone],
4949
2469
  },
4950
- {
4951
- provide: INPUT_BINDER,
4952
- useFactory: componentInputBindingFactory,
4953
- deps: [Router],
4954
- },
2470
+ provideComponentInputBinding(),
4955
2471
  ],
4956
2472
  };
4957
2473
  }
4958
2474
  }
4959
2475
  /** @nocollapse */ IonicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4960
- /** @nocollapse */ IonicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: IonicModule, declarations: [IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMenu, IonMenuButton, IonMenuToggle, IonNav, IonNavLink, IonNote, IonPicker, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar,
2476
+ /** @nocollapse */ IonicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: IonicModule, declarations: [IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMenu, IonMenuButton, IonMenuToggle, IonNavLink, IonNote, IonPicker, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar,
4961
2477
  // manual proxies
4962
2478
  IonModal,
4963
2479
  IonPopover,
@@ -4970,13 +2486,13 @@ class IonicModule {
4970
2486
  // navigation
4971
2487
  IonTabs,
4972
2488
  IonRouterOutlet,
4973
- IonBackButtonDelegateDirective,
4974
- NavDelegate,
2489
+ IonBackButton,
2490
+ IonNav,
4975
2491
  RouterLinkDelegateDirective,
4976
2492
  RouterLinkWithHrefDelegateDirective,
4977
2493
  // validators
4978
2494
  IonMinValidator,
4979
- IonMaxValidator], imports: [CommonModule], exports: [IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMenu, IonMenuButton, IonMenuToggle, IonNav, IonNavLink, IonNote, IonPicker, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar,
2495
+ IonMaxValidator], imports: [CommonModule], exports: [IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMenu, IonMenuButton, IonMenuToggle, IonNavLink, IonNote, IonPicker, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar,
4980
2496
  // manual proxies
4981
2497
  IonModal,
4982
2498
  IonPopover,
@@ -4989,8 +2505,8 @@ class IonicModule {
4989
2505
  // navigation
4990
2506
  IonTabs,
4991
2507
  IonRouterOutlet,
4992
- IonBackButtonDelegateDirective,
4993
- NavDelegate,
2508
+ IonBackButton,
2509
+ IonNav,
4994
2510
  RouterLinkDelegateDirective,
4995
2511
  RouterLinkWithHrefDelegateDirective,
4996
2512
  // validators
@@ -5006,16 +2522,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5006
2522
  imports: [CommonModule],
5007
2523
  }]
5008
2524
  }] });
5009
- function componentInputBindingFactory(router) {
5010
- /**
5011
- * We cast the router to any here, since the componentInputBindingEnabled
5012
- * property is not available until Angular v16.
5013
- */
5014
- if (router === null || router === void 0 ? void 0 : router.componentInputBindingEnabled) {
5015
- return new RoutedComponentInputBinder();
5016
- }
5017
- return null;
5018
- }
5019
2525
 
5020
2526
  // DIRECTIVES
5021
2527
 
@@ -5023,5 +2529,5 @@ function componentInputBindingFactory(router) {
5023
2529
  * Generated bundle index. Do not edit.
5024
2530
  */
5025
2531
 
5026
- export { ActionSheetController, AlertController, AngularDelegate, AnimationController, BooleanValueAccessorDirective as BooleanValueAccessor, Config, DomController, GestureController, ION_MAX_VALIDATOR, ION_MIN_VALIDATOR, IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackButtonDelegateDirective as IonBackButtonDelegate, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMaxValidator, IonMenu, IonMenuButton, IonMenuToggle, IonMinValidator, IonModal, IonNav, IonNavLink, IonNote, IonPicker, IonPopover, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRouterOutlet, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonTabs, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar, IonicModule, IonicRouteStrategy, LoadingController, MenuController, ModalController, NavController, NavDelegate, NavParams, NumericValueAccessorDirective as NumericValueAccessor, PickerController, Platform, PopoverController, RadioValueAccessorDirective as RadioValueAccessor, RouterLinkDelegateDirective as RouterLinkDelegate, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegate, SelectValueAccessorDirective as SelectValueAccessor, TextValueAccessorDirective as TextValueAccessor, ToastController };
2532
+ export { BooleanValueAccessorDirective as BooleanValueAccessor, ION_MAX_VALIDATOR, ION_MIN_VALIDATOR, IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMaxValidator, IonMenu, IonMenuButton, IonMenuToggle, IonMinValidator, IonModal, IonNav, IonNavLink, IonNote, IonPicker, IonPopover, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRouterOutlet, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonTabs, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar, IonicModule, NumericValueAccessorDirective as NumericValueAccessor, RadioValueAccessorDirective as RadioValueAccessor, RouterLinkDelegateDirective as RouterLinkDelegate, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegate, SelectValueAccessorDirective as SelectValueAccessor, TextValueAccessorDirective as TextValueAccessor };
5027
2533
  //# sourceMappingURL=ionic-angular.mjs.map