@ionic/angular 7.5.3-dev.11698411574.1c60b825 → 7.5.3-dev.11698434629.14c8f4e2
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/navigation/ion-router-outlet.mjs +28 -4
- package/esm2020/standalone/navigation/router-outlet.mjs +28 -4
- package/fesm2015/ionic-angular-standalone.mjs +33 -8
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +33 -8
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +31 -8
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +31 -8
- 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 { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Directive, Component, ChangeDetectionStrategy,
|
|
4
|
-
import * as i2 from '@ionic/angular/common';
|
|
3
|
+
import { Directive, Attribute, Optional, SkipSelf, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, APP_INITIALIZER, Injectable, HostListener } from '@angular/core';
|
|
4
|
+
import * as i2$1 from '@ionic/angular/common';
|
|
5
5
|
import { IonRouterOutlet as IonRouterOutlet$1, ProxyCmp as ProxyCmp$1, IonBackButton as IonBackButton$1, IonModal as IonModal$1, IonPopover as IonPopover$1, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, IonTabs as IonTabs$1, ConfigToken, provideComponentInputBinding, AngularDelegate, ModalController, PopoverController, MenuController as MenuController$1, IonNav as IonNav$1, ValueAccessor, setIonicClasses } from '@ionic/angular/common';
|
|
6
6
|
export { ActionSheetController, AlertController, AnimationController, Config, DomController, GestureController, IonicRouteStrategy, LoadingController, ModalController, NavController, NavParams, PickerController, Platform, PopoverController, ToastController } from '@ionic/angular/common';
|
|
7
7
|
import { defineCustomElement as defineCustomElement$2 } from '@ionic/core/components/ion-back-button.js';
|
|
8
8
|
import { defineCustomElement as defineCustomElement$1 } from '@ionic/core/components/ion-router-outlet.js';
|
|
9
9
|
import * as i1 from '@angular/common';
|
|
10
10
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
11
|
+
import * as i2 from '@angular/router';
|
|
11
12
|
import { defineCustomElement as defineCustomElement$3 } from '@ionic/core/components/ion-modal.js';
|
|
12
13
|
import { defineCustomElement as defineCustomElement$4 } from '@ionic/core/components/ion-popover.js';
|
|
13
14
|
import { fromEvent } from 'rxjs';
|
|
@@ -94,8 +95,18 @@ import { defineCustomElement as defineCustomElement$1h } from '@ionic/core/compo
|
|
|
94
95
|
import { defineCustomElement as defineCustomElement$1i } from '@ionic/core/components/ion-toggle.js';
|
|
95
96
|
|
|
96
97
|
let IonRouterOutlet = class IonRouterOutlet extends IonRouterOutlet$1 {
|
|
98
|
+
/**
|
|
99
|
+
* We need to pass in the correct instance of IonRouterOutlet
|
|
100
|
+
* otherwise parentOutlet will be null in a nested outlet context.
|
|
101
|
+
* This results in APIs such as NavController.pop not working
|
|
102
|
+
* in nested outlets because the parent outlet cannot be found.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
105
|
+
super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
|
|
106
|
+
this.parentOutlet = parentOutlet;
|
|
107
|
+
}
|
|
97
108
|
};
|
|
98
|
-
/** @nocollapse */ IonRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, deps:
|
|
109
|
+
/** @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 });
|
|
99
110
|
/** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, isStandalone: true, selector: "ion-router-outlet", usesInheritance: true, ngImport: i0 });
|
|
100
111
|
IonRouterOutlet = __decorate([
|
|
101
112
|
ProxyCmp$1({
|
|
@@ -108,14 +119,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
108
119
|
selector: 'ion-router-outlet',
|
|
109
120
|
standalone: true,
|
|
110
121
|
}]
|
|
111
|
-
}]
|
|
122
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
123
|
+
type: Attribute,
|
|
124
|
+
args: ['name']
|
|
125
|
+
}] }, { type: undefined, decorators: [{
|
|
126
|
+
type: Optional
|
|
127
|
+
}, {
|
|
128
|
+
type: Attribute,
|
|
129
|
+
args: ['tabs']
|
|
130
|
+
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
|
|
131
|
+
type: SkipSelf
|
|
132
|
+
}, {
|
|
133
|
+
type: Optional
|
|
134
|
+
}] }]; } });
|
|
112
135
|
|
|
113
136
|
let IonBackButton = class IonBackButton extends IonBackButton$1 {
|
|
114
137
|
constructor(routerOutlet, navCtrl, config, r, z, c) {
|
|
115
138
|
super(routerOutlet, navCtrl, config, r, z, c);
|
|
116
139
|
}
|
|
117
140
|
};
|
|
118
|
-
/** @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 });
|
|
141
|
+
/** @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 });
|
|
119
142
|
/** @nocollapse */ IonBackButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonBackButton, isStandalone: true, selector: "ion-back-button", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
120
143
|
IonBackButton = __decorate([
|
|
121
144
|
ProxyCmp$1({
|
|
@@ -132,7 +155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
132
155
|
}]
|
|
133
156
|
}], ctorParameters: function () { return [{ type: IonRouterOutlet, decorators: [{
|
|
134
157
|
type: Optional
|
|
135
|
-
}] }, { type: i2.NavController }, { type: i2.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
158
|
+
}] }, { type: i2$1.NavController }, { type: i2$1.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
136
159
|
|
|
137
160
|
let IonModal = class IonModal extends IonModal$1 {
|
|
138
161
|
};
|
|
@@ -2068,7 +2091,7 @@ let IonNav = class IonNav extends IonNav$1 {
|
|
|
2068
2091
|
super(ref, environmentInjector, injector, angularDelegate, z, c);
|
|
2069
2092
|
}
|
|
2070
2093
|
};
|
|
2071
|
-
/** @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 });
|
|
2094
|
+
/** @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 });
|
|
2072
2095
|
/** @nocollapse */ IonNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonNav, isStandalone: true, selector: "ion-nav", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
2073
2096
|
IonNav = __decorate([
|
|
2074
2097
|
ProxyCmp$1({
|
|
@@ -2082,7 +2105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2082
2105
|
template: '<ng-content></ng-content>',
|
|
2083
2106
|
standalone: true,
|
|
2084
2107
|
}]
|
|
2085
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2108
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2086
2109
|
|
|
2087
2110
|
const CHECKBOX_INPUTS = [
|
|
2088
2111
|
'checked',
|