@ionic/angular 7.6.1-dev.11701921257.1d512d3c → 7.6.1-dev.11702046328.1267bbb6
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/common/directives/navigation/back-button.d.ts +2 -2
- package/common/directives/navigation/router-outlet.d.ts +5 -5
- package/common/index.d.ts +1 -1
- package/common/providers/nav-controller.d.ts +2 -2
- package/directives/navigation/ion-router-outlet.d.ts +1 -1
- package/esm2020/common/directives/navigation/back-button.mjs +3 -3
- package/esm2020/common/directives/navigation/router-outlet.mjs +6 -6
- package/esm2020/common/index.mjs +2 -2
- package/esm2020/common/providers/nav-controller.mjs +1 -1
- package/esm2020/directives/navigation/ion-router-outlet.mjs +2 -2
- package/esm2020/standalone/navigation/back-button.mjs +7 -38
- package/esm2020/standalone/navigation/router-outlet.mjs +2 -2
- package/fesm2015/ionic-angular-common.mjs +8 -8
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +7 -39
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +2 -2
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +8 -8
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +7 -38
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +2 -2
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/standalone/navigation/back-button.d.ts +3 -15
- package/standalone/navigation/router-outlet.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Directive, Attribute, Optional, SkipSelf, Component, ChangeDetectionStrategy,
|
|
3
|
+
import { Directive, Attribute, Optional, SkipSelf, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, inject, Injector, EnvironmentInjector, Injectable, APP_INITIALIZER, forwardRef, HostListener } from '@angular/core';
|
|
4
4
|
import * as i2$1 from '@ionic/angular/common';
|
|
5
|
-
import {
|
|
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, OverlayBaseController, AngularDelegate, ConfigToken, provideComponentInputBinding, MenuController as MenuController$1, IonNav as IonNav$1, ValueAccessor, setIonicClasses } from '@ionic/angular/common';
|
|
6
6
|
export { Config, DomController, IonicRouteStrategy, NavController, NavParams, Platform } 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';
|
|
@@ -94,7 +94,7 @@ import { defineCustomElement as defineCustomElement$1g } from '@ionic/core/compo
|
|
|
94
94
|
import { defineCustomElement as defineCustomElement$1h } from '@ionic/core/components/ion-textarea.js';
|
|
95
95
|
import { defineCustomElement as defineCustomElement$1i } from '@ionic/core/components/ion-toggle.js';
|
|
96
96
|
|
|
97
|
-
let IonRouterOutlet = class IonRouterOutlet extends
|
|
97
|
+
let IonRouterOutlet = class IonRouterOutlet extends IonRouterOutlet$1 {
|
|
98
98
|
/**
|
|
99
99
|
* We need to pass in the correct instance of IonRouterOutlet
|
|
100
100
|
* otherwise parentOutlet will be null in a nested outlet context.
|
|
@@ -135,39 +135,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
135
135
|
}] }];
|
|
136
136
|
} });
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
let IonBackButton = class IonBackButton {
|
|
138
|
+
let IonBackButton = class IonBackButton extends IonBackButton$1 {
|
|
140
139
|
constructor(routerOutlet, navCtrl, config, r, z, c) {
|
|
141
|
-
|
|
142
|
-
this.navCtrl = navCtrl;
|
|
143
|
-
this.config = config;
|
|
144
|
-
this.z = z;
|
|
145
|
-
c.detach();
|
|
146
|
-
this.el = r.nativeElement;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* @internal
|
|
150
|
-
*/
|
|
151
|
-
onClick(ev) {
|
|
152
|
-
var _a;
|
|
153
|
-
const defaultHref = this.defaultHref || this.config.get('backButtonDefaultHref');
|
|
154
|
-
if ((_a = this.routerOutlet) === null || _a === void 0 ? void 0 : _a.canGoBack()) {
|
|
155
|
-
this.navCtrl.setDirection('back', undefined, undefined, this.routerAnimation);
|
|
156
|
-
this.routerOutlet.pop();
|
|
157
|
-
ev.preventDefault();
|
|
158
|
-
}
|
|
159
|
-
else if (defaultHref != null) {
|
|
160
|
-
this.navCtrl.navigateBack(defaultHref, { animation: this.routerAnimation });
|
|
161
|
-
ev.preventDefault();
|
|
162
|
-
}
|
|
140
|
+
super(routerOutlet, navCtrl, config, r, z, c);
|
|
163
141
|
}
|
|
164
142
|
};
|
|
165
143
|
/** @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 });
|
|
166
|
-
/** @nocollapse */ IonBackButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonBackButton, isStandalone: true, selector: "ion-back-button",
|
|
144
|
+
/** @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 });
|
|
167
145
|
IonBackButton = __decorate([
|
|
168
146
|
ProxyCmp$1({
|
|
169
147
|
defineCustomElementFn: defineCustomElement$2,
|
|
170
|
-
inputs: BACK_BUTTON_INPUTS,
|
|
171
148
|
})
|
|
172
149
|
], IonBackButton);
|
|
173
150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonBackButton, decorators: [{
|
|
@@ -176,22 +153,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
176
153
|
selector: 'ion-back-button',
|
|
177
154
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
178
155
|
template: '<ng-content></ng-content>',
|
|
179
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
180
|
-
inputs: BACK_BUTTON_INPUTS,
|
|
181
156
|
standalone: true,
|
|
182
157
|
}]
|
|
183
158
|
}], ctorParameters: function () {
|
|
184
159
|
return [{ type: IonRouterOutlet, decorators: [{
|
|
185
160
|
type: Optional
|
|
186
161
|
}] }, { type: i2$1.NavController }, { type: i2$1.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
|
|
187
|
-
}
|
|
188
|
-
type: Input
|
|
189
|
-
}], routerAnimation: [{
|
|
190
|
-
type: Input
|
|
191
|
-
}], onClick: [{
|
|
192
|
-
type: HostListener,
|
|
193
|
-
args: ['click', ['$event']]
|
|
194
|
-
}] } });
|
|
162
|
+
} });
|
|
195
163
|
|
|
196
164
|
let IonModal = class IonModal extends IonModal$1 {
|
|
197
165
|
};
|