@ionic/angular 8.6.1 → 8.6.2-dev.11749664155.1d651dfa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, HostListener, Component, ChangeDetectionStrategy, ViewContainerRef, Attribute, Optional, SkipSelf, ViewChild, ContentChild, ContentChildren, forwardRef, Injectable, inject, Injector, EnvironmentInjector, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
2
+ import { Directive, HostListener, ViewContainerRef, Component, Attribute, Optional, SkipSelf, ViewChild, ChangeDetectionStrategy, ContentChild, ContentChildren, forwardRef, Injectable, inject, Injector, EnvironmentInjector, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, MaxValidator, MinValidator } from '@angular/forms';
4
4
  import * as i2$1 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, OverlayBaseController, MenuController as MenuController$1, AngularDelegate, raf, ConfigToken, provideComponentInputBinding } from '@ionic/angular/common';
6
- export { AngularDelegate, Config, DomController, IonicRouteStrategy, NavController, NavParams, Platform } from '@ionic/angular/common';
7
- import { __decorate } from 'tslib';
8
- import { fromEvent } from 'rxjs';
5
+ import { ValueAccessor, setIonicClasses, IonRouterOutlet as IonRouterOutlet$1, IonBackButton as IonBackButton$1, IonNav as IonNav$1, IonTabs as IonTabs$1, RouterLinkDelegateDirective as RouterLinkDelegateDirective$1, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegateDirective$1, IonModal as IonModal$1, IonPopover as IonPopover$1, OverlayBaseController, MenuController as MenuController$1, AngularDelegate, raf, ConfigToken, provideComponentInputBinding } from '@ionic/angular/common';
6
+ export { AngularDelegate, Config, DomController, IonModalToken, IonicRouteStrategy, NavController, NavParams, Platform } from '@ionic/angular/common';
9
7
  import * as i1 from '@angular/common';
10
8
  import { DOCUMENT, CommonModule } from '@angular/common';
11
9
  import * as i2 from '@angular/router';
12
- import { alertController, createAnimation, getTimeGivenProgression, actionSheetController, createGesture, loadingController, menuController, modalController, pickerController, popoverController, toastController, setupConfig } from '@ionic/core';
10
+ import { __decorate } from 'tslib';
11
+ import { fromEvent } from 'rxjs';
12
+ import { actionSheetController, alertController, createAnimation, getTimeGivenProgression, createGesture, loadingController, menuController, modalController, pickerController, popoverController, toastController, setupConfig } from '@ionic/core';
13
13
  export { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getPlatforms, getTimeGivenProgression, iosTransitionAnimation, isPlatform, mdTransitionAnimation, openURL } from '@ionic/core';
14
14
  import { defineCustomElements } from '@ionic/core/loader';
15
15
 
@@ -162,6 +162,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
162
162
  args: ['ionInput', ['$event.target']]
163
163
  }] } });
164
164
 
165
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
166
+ class IonRouterOutlet extends IonRouterOutlet$1 {
167
+ parentOutlet;
168
+ /**
169
+ * `static: true` must be set so the query results are resolved
170
+ * before change detection runs. Otherwise, the view container
171
+ * ref will be ion-router-outlet instead of ng-container, and
172
+ * the first view will be added as a sibling of ion-router-outlet
173
+ * instead of a child.
174
+ */
175
+ outletContent;
176
+ /**
177
+ * We need to pass in the correct instance of IonRouterOutlet
178
+ * otherwise parentOutlet will be null in a nested outlet context.
179
+ * This results in APIs such as NavController.pop not working
180
+ * in nested outlets because the parent outlet cannot be found.
181
+ */
182
+ constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
183
+ super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
184
+ this.parentOutlet = parentOutlet;
185
+ }
186
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, deps: [{ token: 'name', attribute: true }, { token: 'tabs', attribute: true, optional: true }, { token: i1.Location }, { token: i0.ElementRef }, { token: i2.Router }, { token: i0.NgZone }, { token: i2.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
187
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", viewQueries: [{ propertyName: "outletContent", first: true, predicate: ["outletContent"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: '<ng-container #outletContent><ng-content></ng-content></ng-container>', isInline: true });
188
+ }
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
190
+ type: Component,
191
+ args: [{
192
+ selector: 'ion-router-outlet',
193
+ template: '<ng-container #outletContent><ng-content></ng-content></ng-container>',
194
+ }]
195
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
196
+ type: Attribute,
197
+ args: ['name']
198
+ }] }, { type: undefined, decorators: [{
199
+ type: Optional
200
+ }, {
201
+ type: Attribute,
202
+ args: ['tabs']
203
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
204
+ type: SkipSelf
205
+ }, {
206
+ type: Optional
207
+ }] }]; }, propDecorators: { outletContent: [{
208
+ type: ViewChild,
209
+ args: ['outletContent', { read: ViewContainerRef, static: true }]
210
+ }] } });
211
+
212
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
213
+ class IonBackButton extends IonBackButton$1 {
214
+ constructor(routerOutlet, navCtrl, config, r, z, c) {
215
+ super(routerOutlet, navCtrl, config, r, z, c);
216
+ }
217
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, deps: [{ token: IonRouterOutlet, optional: true }, { token: i2$1.NavController }, { token: i2$1.Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
218
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IonBackButton, selector: "ion-back-button", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
219
+ }
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, decorators: [{
221
+ type: Component,
222
+ args: [{
223
+ selector: 'ion-back-button',
224
+ template: '<ng-content></ng-content>',
225
+ changeDetection: ChangeDetectionStrategy.OnPush,
226
+ }]
227
+ }], ctorParameters: function () { return [{ type: IonRouterOutlet, decorators: [{
228
+ type: Optional
229
+ }] }, { type: i2$1.NavController }, { type: i2$1.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
230
+
231
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
232
+ class IonNav extends IonNav$1 {
233
+ constructor(ref, environmentInjector, injector, angularDelegate, z, c) {
234
+ super(ref, environmentInjector, injector, angularDelegate, z, c);
235
+ }
236
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: i2$1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
237
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IonNav, selector: "ion-nav", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
238
+ }
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, decorators: [{
240
+ type: Component,
241
+ args: [{
242
+ selector: 'ion-nav',
243
+ template: '<ng-content></ng-content>',
244
+ changeDetection: ChangeDetectionStrategy.OnPush,
245
+ }]
246
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
247
+
165
248
  /* eslint-disable */
166
249
  /* tslint:disable */
167
250
  const proxyInputs = (Cmp, inputs) => {
@@ -2501,53 +2584,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2501
2584
  }]
2502
2585
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
2503
2586
 
2504
- // eslint-disable-next-line @angular-eslint/directive-class-suffix
2505
- class IonRouterOutlet extends IonRouterOutlet$1 {
2506
- parentOutlet;
2507
- /**
2508
- * `static: true` must be set so the query results are resolved
2509
- * before change detection runs. Otherwise, the view container
2510
- * ref will be ion-router-outlet instead of ng-container, and
2511
- * the first view will be added as a sibling of ion-router-outlet
2512
- * instead of a child.
2513
- */
2514
- outletContent;
2515
- /**
2516
- * We need to pass in the correct instance of IonRouterOutlet
2517
- * otherwise parentOutlet will be null in a nested outlet context.
2518
- * This results in APIs such as NavController.pop not working
2519
- * in nested outlets because the parent outlet cannot be found.
2520
- */
2521
- constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
2522
- super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
2523
- this.parentOutlet = parentOutlet;
2524
- }
2525
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, deps: [{ token: 'name', attribute: true }, { token: 'tabs', attribute: true, optional: true }, { token: i1.Location }, { token: i0.ElementRef }, { token: i2.Router }, { token: i0.NgZone }, { token: i2.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
2526
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", viewQueries: [{ propertyName: "outletContent", first: true, predicate: ["outletContent"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: '<ng-container #outletContent><ng-content></ng-content></ng-container>', isInline: true });
2527
- }
2528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
2529
- type: Component,
2530
- args: [{
2531
- selector: 'ion-router-outlet',
2532
- template: '<ng-container #outletContent><ng-content></ng-content></ng-container>',
2533
- }]
2534
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2535
- type: Attribute,
2536
- args: ['name']
2537
- }] }, { type: undefined, decorators: [{
2538
- type: Optional
2539
- }, {
2540
- type: Attribute,
2541
- args: ['tabs']
2542
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
2543
- type: SkipSelf
2544
- }, {
2545
- type: Optional
2546
- }] }]; }, propDecorators: { outletContent: [{
2547
- type: ViewChild,
2548
- args: ['outletContent', { read: ViewContainerRef, static: true }]
2549
- }] } });
2550
-
2551
2587
  // eslint-disable-next-line @angular-eslint/component-class-suffix
2552
2588
  class IonTabs extends IonTabs$1 {
2553
2589
  outlet;
@@ -2600,42 +2636,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2600
2636
  args: [IonTab]
2601
2637
  }] } });
2602
2638
 
2603
- // eslint-disable-next-line @angular-eslint/directive-class-suffix
2604
- class IonBackButton extends IonBackButton$1 {
2605
- constructor(routerOutlet, navCtrl, config, r, z, c) {
2606
- super(routerOutlet, navCtrl, config, r, z, c);
2607
- }
2608
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, deps: [{ token: IonRouterOutlet, optional: true }, { token: i2$1.NavController }, { token: i2$1.Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2609
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IonBackButton, selector: "ion-back-button", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2610
- }
2611
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, decorators: [{
2612
- type: Component,
2613
- args: [{
2614
- selector: 'ion-back-button',
2615
- template: '<ng-content></ng-content>',
2616
- changeDetection: ChangeDetectionStrategy.OnPush,
2617
- }]
2618
- }], ctorParameters: function () { return [{ type: IonRouterOutlet, decorators: [{
2619
- type: Optional
2620
- }] }, { type: i2$1.NavController }, { type: i2$1.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2621
-
2622
- // eslint-disable-next-line @angular-eslint/directive-class-suffix
2623
- class IonNav extends IonNav$1 {
2624
- constructor(ref, environmentInjector, injector, angularDelegate, z, c) {
2625
- super(ref, environmentInjector, injector, angularDelegate, z, c);
2626
- }
2627
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: i2$1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2628
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IonNav, selector: "ion-nav", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2629
- }
2630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, decorators: [{
2631
- type: Component,
2632
- args: [{
2633
- selector: 'ion-nav',
2634
- template: '<ng-content></ng-content>',
2635
- changeDetection: ChangeDetectionStrategy.OnPush,
2636
- }]
2637
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2638
-
2639
2639
  /**
2640
2640
  * Adds support for Ionic routing directions and animations to the base Angular router link directive.
2641
2641
  *
@@ -2741,6 +2741,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2741
2741
  }]
2742
2742
  }] });
2743
2743
 
2744
+ class ActionSheetController extends OverlayBaseController {
2745
+ constructor() {
2746
+ super(actionSheetController);
2747
+ }
2748
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2749
+ /** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetController, providedIn: 'root' });
2750
+ }
2751
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetController, decorators: [{
2752
+ type: Injectable,
2753
+ args: [{
2754
+ providedIn: 'root',
2755
+ }]
2756
+ }], ctorParameters: function () { return []; } });
2757
+
2744
2758
  class AlertController extends OverlayBaseController {
2745
2759
  constructor() {
2746
2760
  super(alertController);
@@ -2789,20 +2803,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2789
2803
  }]
2790
2804
  }] });
2791
2805
 
2792
- class ActionSheetController extends OverlayBaseController {
2793
- constructor() {
2794
- super(actionSheetController);
2795
- }
2796
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2797
- /** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetController, providedIn: 'root' });
2798
- }
2799
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetController, decorators: [{
2800
- type: Injectable,
2801
- args: [{
2802
- providedIn: 'root',
2803
- }]
2804
- }], ctorParameters: function () { return []; } });
2805
-
2806
2806
  class GestureController {
2807
2807
  zone;
2808
2808
  constructor(zone) {