@ionic/angular 7.5.3-nightly.20231026 → 7.5.3-nightly.20231030

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,13 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, HostListener, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, Optional, forwardRef, Injectable, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
2
+ import { Directive, HostListener, Component, ChangeDetectionStrategy, Attribute, Optional, SkipSelf, ViewChild, ContentChild, ContentChildren, forwardRef, Injectable, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, MaxValidator, MinValidator } from '@angular/forms';
4
- import * as i2 from '@ionic/angular/common';
4
+ import * as i2$1 from '@ionic/angular/common';
5
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, MenuController as MenuController$1, raf, ConfigToken, provideComponentInputBinding, AngularDelegate, ModalController, PopoverController } from '@ionic/angular/common';
6
6
  export { ActionSheetController, AlertController, AngularDelegate, AnimationController, Config, DomController, GestureController, IonicRouteStrategy, LoadingController, ModalController, NavController, NavParams, PickerController, Platform, PopoverController, ToastController } from '@ionic/angular/common';
7
7
  import { __decorate } from 'tslib';
8
8
  import { fromEvent } from 'rxjs';
9
9
  import * as i1 from '@angular/common';
10
10
  import { DOCUMENT, CommonModule } from '@angular/common';
11
+ import * as i2 from '@angular/router';
11
12
  import { menuController, setupConfig } from '@ionic/core';
12
13
  export { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getPlatforms, getTimeGivenProgression, iosTransitionAnimation, isPlatform, mdTransitionAnimation, openURL } from '@ionic/core';
13
14
  import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
@@ -203,6 +204,14 @@ const proxyInputs = (Cmp, inputs) => {
203
204
  set(val) {
204
205
  this.z.runOutsideAngular(() => (this.el[item] = val));
205
206
  },
207
+ /**
208
+ * In the event that proxyInputs is called
209
+ * multiple times re-defining these inputs
210
+ * will cause an error to be thrown. As a result
211
+ * we set configurable: true to indicate these
212
+ * properties can be changed.
213
+ */
214
+ configurable: true,
206
215
  });
207
216
  });
208
217
  };
@@ -2130,15 +2139,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2130
2139
 
2131
2140
  // eslint-disable-next-line @angular-eslint/directive-class-suffix
2132
2141
  class IonRouterOutlet extends IonRouterOutlet$1 {
2142
+ /**
2143
+ * We need to pass in the correct instance of IonRouterOutlet
2144
+ * otherwise parentOutlet will be null in a nested outlet context.
2145
+ * This results in APIs such as NavController.pop not working
2146
+ * in nested outlets because the parent outlet cannot be found.
2147
+ */
2148
+ constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
2149
+ super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
2150
+ this.parentOutlet = parentOutlet;
2151
+ }
2133
2152
  }
2134
- /** @nocollapse */ IonRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2153
+ /** @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: i2.Router }, { token: i0.NgZone }, { token: i2.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
2135
2154
  /** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", usesInheritance: true, ngImport: i0 });
2136
2155
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
2137
2156
  type: Directive,
2138
2157
  args: [{
2139
2158
  selector: 'ion-router-outlet',
2140
2159
  }]
2141
- }] });
2160
+ }], ctorParameters: function () {
2161
+ return [{ type: undefined, decorators: [{
2162
+ type: Attribute,
2163
+ args: ['name']
2164
+ }] }, { type: undefined, decorators: [{
2165
+ type: Optional
2166
+ }, {
2167
+ type: Attribute,
2168
+ args: ['tabs']
2169
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
2170
+ type: SkipSelf
2171
+ }, {
2172
+ type: Optional
2173
+ }] }];
2174
+ } });
2142
2175
 
2143
2176
  // eslint-disable-next-line @angular-eslint/component-class-suffix
2144
2177
  class IonTabs extends IonTabs$1 {
@@ -2187,7 +2220,7 @@ class IonBackButton extends IonBackButton$1 {
2187
2220
  super(routerOutlet, navCtrl, config, r, z, c);
2188
2221
  }
2189
2222
  }
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 });
2223
+ /** @nocollapse */ IonBackButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.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 });
2191
2224
  /** @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
2225
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, decorators: [{
2193
2226
  type: Component,
@@ -2199,7 +2232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2199
2232
  }], ctorParameters: function () {
2200
2233
  return [{ type: IonRouterOutlet, decorators: [{
2201
2234
  type: Optional
2202
- }] }, { type: i2.NavController }, { type: i2.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
2235
+ }] }, { type: i2$1.NavController }, { type: i2$1.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
2203
2236
  } });
2204
2237
 
2205
2238
  // eslint-disable-next-line @angular-eslint/directive-class-suffix
@@ -2208,7 +2241,7 @@ class IonNav extends IonNav$1 {
2208
2241
  super(ref, environmentInjector, injector, angularDelegate, z, c);
2209
2242
  }
2210
2243
  }
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 });
2244
+ /** @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$1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2212
2245
  /** @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
2246
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, decorators: [{
2214
2247
  type: Component,
@@ -2217,7 +2250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2217
2250
  template: '<ng-content></ng-content>',
2218
2251
  changeDetection: ChangeDetectionStrategy.OnPush,
2219
2252
  }]
2220
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2253
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2221
2254
 
2222
2255
  /**
2223
2256
  * Adds support for Ionic routing directions and animations to the base Angular router link directive.