@ionic/angular 7.5.3-dev.11698340692.18daff2f → 7.5.3-dev.11698423614.1cd2744f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/directives/navigation/ion-router-outlet.d.ts +12 -1
- package/esm2020/directives/angular-component-lib/utils.mjs +1 -9
- package/esm2020/directives/navigation/ion-router-outlet.mjs +28 -4
- package/esm2020/standalone/directives/angular-component-lib/utils.mjs +1 -9
- package/esm2020/standalone/navigation/router-outlet.mjs +28 -4
- package/fesm2015/ionic-angular-standalone.mjs +33 -16
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +33 -16
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +31 -16
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +31 -16
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/standalone/navigation/router-outlet.d.ts +12 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, HostListener, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren,
|
|
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,14 +204,6 @@ const proxyInputs = (Cmp, inputs) => {
|
|
|
203
204
|
set(val) {
|
|
204
205
|
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
205
206
|
},
|
|
206
|
-
/**
|
|
207
|
-
* In the event that proxyInputs is called
|
|
208
|
-
* multiple times re-defining these inputs
|
|
209
|
-
* will cause an error to be thrown. As a result
|
|
210
|
-
* we set configurable: true to indicate these
|
|
211
|
-
* properties can be changed.
|
|
212
|
-
*/
|
|
213
|
-
configurable: true
|
|
214
207
|
});
|
|
215
208
|
});
|
|
216
209
|
};
|
|
@@ -2138,15 +2131,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2138
2131
|
|
|
2139
2132
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
2140
2133
|
class IonRouterOutlet extends IonRouterOutlet$1 {
|
|
2134
|
+
/**
|
|
2135
|
+
* We need to pass in the correct instance of IonRouterOutlet
|
|
2136
|
+
* otherwise parentOutlet will be null in a nested outlet context.
|
|
2137
|
+
* This results in APIs such as NavController.pop not working
|
|
2138
|
+
* in nested outlets because the parent outlet cannot be found.
|
|
2139
|
+
*/
|
|
2140
|
+
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
2141
|
+
super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
|
|
2142
|
+
this.parentOutlet = parentOutlet;
|
|
2143
|
+
}
|
|
2141
2144
|
}
|
|
2142
|
-
/** @nocollapse */ IonRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, deps:
|
|
2145
|
+
/** @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 });
|
|
2143
2146
|
/** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", usesInheritance: true, ngImport: i0 });
|
|
2144
2147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
2145
2148
|
type: Directive,
|
|
2146
2149
|
args: [{
|
|
2147
2150
|
selector: 'ion-router-outlet',
|
|
2148
2151
|
}]
|
|
2149
|
-
}]
|
|
2152
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2153
|
+
type: Attribute,
|
|
2154
|
+
args: ['name']
|
|
2155
|
+
}] }, { type: undefined, decorators: [{
|
|
2156
|
+
type: Optional
|
|
2157
|
+
}, {
|
|
2158
|
+
type: Attribute,
|
|
2159
|
+
args: ['tabs']
|
|
2160
|
+
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
|
|
2161
|
+
type: SkipSelf
|
|
2162
|
+
}, {
|
|
2163
|
+
type: Optional
|
|
2164
|
+
}] }]; } });
|
|
2150
2165
|
|
|
2151
2166
|
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
|
2152
2167
|
class IonTabs extends IonTabs$1 {
|
|
@@ -2195,7 +2210,7 @@ class IonBackButton extends IonBackButton$1 {
|
|
|
2195
2210
|
super(routerOutlet, navCtrl, config, r, z, c);
|
|
2196
2211
|
}
|
|
2197
2212
|
}
|
|
2198
|
-
/** @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 });
|
|
2213
|
+
/** @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 });
|
|
2199
2214
|
/** @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 });
|
|
2200
2215
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, decorators: [{
|
|
2201
2216
|
type: Component,
|
|
@@ -2206,7 +2221,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2206
2221
|
}]
|
|
2207
2222
|
}], ctorParameters: function () { return [{ type: IonRouterOutlet, decorators: [{
|
|
2208
2223
|
type: Optional
|
|
2209
|
-
}] }, { type: i2.NavController }, { type: i2.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2224
|
+
}] }, { type: i2$1.NavController }, { type: i2$1.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2210
2225
|
|
|
2211
2226
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
2212
2227
|
class IonNav extends IonNav$1 {
|
|
@@ -2214,7 +2229,7 @@ class IonNav extends IonNav$1 {
|
|
|
2214
2229
|
super(ref, environmentInjector, injector, angularDelegate, z, c);
|
|
2215
2230
|
}
|
|
2216
2231
|
}
|
|
2217
|
-
/** @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 });
|
|
2232
|
+
/** @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 });
|
|
2218
2233
|
/** @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 });
|
|
2219
2234
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, decorators: [{
|
|
2220
2235
|
type: Component,
|
|
@@ -2223,7 +2238,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2223
2238
|
template: '<ng-content></ng-content>',
|
|
2224
2239
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2225
2240
|
}]
|
|
2226
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2241
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2227
2242
|
|
|
2228
2243
|
/**
|
|
2229
2244
|
* Adds support for Ionic routing directions and animations to the base Angular router link directive.
|