@ionic/angular 8.8.9-dev.11781013468.1ed93da9 → 8.8.9-dev.11781098612.122c6758
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/fesm2022/ionic-angular-common.mjs +58 -56
- package/fesm2022/ionic-angular-common.mjs.map +1 -1
- package/fesm2022/ionic-angular-standalone.mjs +303 -306
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2022/ionic-angular.mjs +353 -339
- package/fesm2022/ionic-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/add/index.js +1 -1
- package/schematics/utils/ast.js +34 -1
- package/schematics/utils/package.js +4 -0
- package/types/ionic-angular-common.d.ts +8 -0
- package/types/ionic-angular.d.ts +4 -4
|
@@ -25,10 +25,10 @@ class DomController {
|
|
|
25
25
|
write(cb) {
|
|
26
26
|
getQueue().write(cb);
|
|
27
27
|
}
|
|
28
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
28
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DomController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DomController, providedIn: 'root' });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DomController, decorators: [{
|
|
32
32
|
type: Injectable,
|
|
33
33
|
args: [{
|
|
34
34
|
providedIn: 'root',
|
|
@@ -228,7 +228,6 @@ class Platform {
|
|
|
228
228
|
}, { once: true });
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
231
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
232
231
|
readyResolve('dom');
|
|
233
232
|
}
|
|
234
233
|
});
|
|
@@ -382,10 +381,10 @@ class Platform {
|
|
|
382
381
|
height() {
|
|
383
382
|
return this.win.innerHeight;
|
|
384
383
|
}
|
|
385
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
386
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
384
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Platform, deps: [{ token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
385
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Platform, providedIn: 'root' });
|
|
387
386
|
}
|
|
388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Platform, decorators: [{
|
|
389
388
|
type: Injectable,
|
|
390
389
|
args: [{
|
|
391
390
|
providedIn: 'root',
|
|
@@ -591,7 +590,6 @@ class NavController {
|
|
|
591
590
|
}
|
|
592
591
|
navigate(url, options) {
|
|
593
592
|
if (Array.isArray(url)) {
|
|
594
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
595
593
|
return this.router.navigate(url, options);
|
|
596
594
|
}
|
|
597
595
|
else {
|
|
@@ -613,14 +611,13 @@ class NavController {
|
|
|
613
611
|
* that do not modify the url, such as `replaceUrl` which is why
|
|
614
612
|
* `options` is passed in here.
|
|
615
613
|
*/
|
|
616
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
617
614
|
return this.router.navigateByUrl(urlTree, options);
|
|
618
615
|
}
|
|
619
616
|
}
|
|
620
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
621
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
617
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavController, deps: [{ token: Platform }, { token: i1.Location }, { token: i3.UrlSerializer }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
618
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavController, providedIn: 'root' });
|
|
622
619
|
}
|
|
623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavController, decorators: [{
|
|
624
621
|
type: Injectable,
|
|
625
622
|
args: [{
|
|
626
623
|
providedIn: 'root',
|
|
@@ -668,10 +665,10 @@ class Config {
|
|
|
668
665
|
}
|
|
669
666
|
return 0;
|
|
670
667
|
}
|
|
671
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
672
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
668
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Config, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
669
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Config, providedIn: 'root' });
|
|
673
670
|
}
|
|
674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Config, decorators: [{
|
|
675
672
|
type: Injectable,
|
|
676
673
|
args: [{
|
|
677
674
|
providedIn: 'root',
|
|
@@ -745,10 +742,10 @@ class AngularDelegate {
|
|
|
745
742
|
create(environmentInjector, injector, elementReferenceKey, customInjector) {
|
|
746
743
|
return new AngularFrameworkDelegate(environmentInjector, injector, this.applicationRef, this.zone, elementReferenceKey, this.config.useSetInputAPI ?? false, customInjector);
|
|
747
744
|
}
|
|
748
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
749
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
745
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AngularDelegate, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
746
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AngularDelegate });
|
|
750
747
|
}
|
|
751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AngularDelegate, decorators: [{
|
|
752
749
|
type: Injectable
|
|
753
750
|
}] });
|
|
754
751
|
class AngularFrameworkDelegate {
|
|
@@ -1065,8 +1062,8 @@ let IonModal = class IonModal {
|
|
|
1065
1062
|
'ionDragEnd',
|
|
1066
1063
|
]);
|
|
1067
1064
|
}
|
|
1068
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1069
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1065
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1066
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonModal, isStandalone: true, selector: "ion-modal", inputs: { animated: "animated", keepContentsMounted: "keepContentsMounted", backdropBreakpoint: "backdropBreakpoint", backdropDismiss: "backdropDismiss", breakpoints: "breakpoints", canDismiss: "canDismiss", cssClass: "cssClass", enterAnimation: "enterAnimation", expandToScroll: "expandToScroll", event: "event", focusTrap: "focusTrap", handle: "handle", handleBehavior: "handleBehavior", initialBreakpoint: "initialBreakpoint", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", presentingElement: "presentingElement", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
1070
1067
|
};
|
|
1071
1068
|
IonModal = __decorate([
|
|
1072
1069
|
ProxyCmp({
|
|
@@ -1080,7 +1077,7 @@ IonModal = __decorate([
|
|
|
1080
1077
|
* lazy loaded popover.
|
|
1081
1078
|
*/
|
|
1082
1079
|
], IonModal);
|
|
1083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonModal, decorators: [{
|
|
1084
1081
|
type: Directive,
|
|
1085
1082
|
args: [{
|
|
1086
1083
|
selector: 'ion-modal',
|
|
@@ -1144,8 +1141,8 @@ let IonPopover = class IonPopover {
|
|
|
1144
1141
|
'didDismiss',
|
|
1145
1142
|
]);
|
|
1146
1143
|
}
|
|
1147
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1148
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1144
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1145
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonPopover, isStandalone: true, selector: "ion-popover", inputs: { alignment: "alignment", animated: "animated", arrow: "arrow", keepContentsMounted: "keepContentsMounted", backdropDismiss: "backdropDismiss", cssClass: "cssClass", dismissOnSelect: "dismissOnSelect", enterAnimation: "enterAnimation", event: "event", focusTrap: "focusTrap", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger", triggerAction: "triggerAction", reference: "reference", size: "size", side: "side" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
1149
1146
|
};
|
|
1150
1147
|
IonPopover = __decorate([
|
|
1151
1148
|
ProxyCmp({
|
|
@@ -1159,7 +1156,7 @@ IonPopover = __decorate([
|
|
|
1159
1156
|
* lazy loaded popover.
|
|
1160
1157
|
*/
|
|
1161
1158
|
], IonPopover);
|
|
1162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonPopover, decorators: [{
|
|
1163
1160
|
type: Directive,
|
|
1164
1161
|
args: [{
|
|
1165
1162
|
selector: 'ion-popover',
|
|
@@ -1434,7 +1431,6 @@ class StackController {
|
|
|
1434
1431
|
return this.runningTask !== undefined;
|
|
1435
1432
|
}
|
|
1436
1433
|
destroy() {
|
|
1437
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1438
1434
|
this.containerEl = undefined;
|
|
1439
1435
|
this.views.forEach(destroyView);
|
|
1440
1436
|
this.activeView = undefined;
|
|
@@ -1523,7 +1519,6 @@ const cleanup = (activeRoute, views, viewsSnapshot, location, zone) => {
|
|
|
1523
1519
|
};
|
|
1524
1520
|
|
|
1525
1521
|
// TODO(FW-2827): types
|
|
1526
|
-
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
1527
1522
|
class IonRouterOutlet {
|
|
1528
1523
|
parentOutlet;
|
|
1529
1524
|
nativeEl;
|
|
@@ -1650,7 +1645,6 @@ class IonRouterOutlet {
|
|
|
1650
1645
|
deactivate() {
|
|
1651
1646
|
if (this.activated) {
|
|
1652
1647
|
if (this.activatedView) {
|
|
1653
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1654
1648
|
const context = this.getContext();
|
|
1655
1649
|
this.activatedView.savedData = new Map(context.children['contexts']);
|
|
1656
1650
|
/**
|
|
@@ -1695,7 +1689,6 @@ class IonRouterOutlet {
|
|
|
1695
1689
|
const saved = enteringView.savedData;
|
|
1696
1690
|
if (saved) {
|
|
1697
1691
|
// self-restore
|
|
1698
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1699
1692
|
const context = this.getContext();
|
|
1700
1693
|
context.children['contexts'] = saved;
|
|
1701
1694
|
}
|
|
@@ -1716,7 +1709,6 @@ class IonRouterOutlet {
|
|
|
1716
1709
|
const component$ = new BehaviorSubject(null);
|
|
1717
1710
|
const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);
|
|
1718
1711
|
const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
|
1719
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1720
1712
|
const component = snapshot.routeConfig.component ?? snapshot.component;
|
|
1721
1713
|
/**
|
|
1722
1714
|
* View components need to be added as a child of ion-router-outlet
|
|
@@ -1739,7 +1731,6 @@ class IonRouterOutlet {
|
|
|
1739
1731
|
* At this point this.activated has been set earlier
|
|
1740
1732
|
* in this function, so it is guaranteed to be non-null.
|
|
1741
1733
|
*/
|
|
1742
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1743
1734
|
enteringView = this.stackCtrl.createView(this.activated, activatedRoute);
|
|
1744
1735
|
// Store references to the proxy by component
|
|
1745
1736
|
this.proxyMap.set(cmpRef.instance, activatedRouteProxy);
|
|
@@ -1850,10 +1841,10 @@ class IonRouterOutlet {
|
|
|
1850
1841
|
proxy.component = activatedRoute.component;
|
|
1851
1842
|
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
1852
1843
|
}
|
|
1853
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1854
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1844
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRouterOutlet, deps: [{ token: 'name', attribute: true }, { token: 'tabs', attribute: true, optional: true }, { token: i1.Location }, { token: i0.ElementRef }, { token: i3.Router }, { token: i0.NgZone }, { token: i3.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1845
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonRouterOutlet, isStandalone: true, selector: "ion-router-outlet", inputs: { animated: "animated", animation: "animation", mode: "mode", swipeGesture: "swipeGesture", name: "name" }, outputs: { stackWillChange: "stackWillChange", stackDidChange: "stackDidChange", activateEvents: "activate", deactivateEvents: "deactivate" }, exportAs: ["outlet"], ngImport: i0 });
|
|
1855
1846
|
}
|
|
1856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
1857
1848
|
type: Directive,
|
|
1858
1849
|
args: [{
|
|
1859
1850
|
selector: 'ion-router-outlet',
|
|
@@ -1967,10 +1958,10 @@ class RoutedComponentInputBinder {
|
|
|
1967
1958
|
});
|
|
1968
1959
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
1969
1960
|
}
|
|
1970
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1971
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1961
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1962
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RoutedComponentInputBinder });
|
|
1972
1963
|
}
|
|
1973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
1974
1965
|
type: Injectable
|
|
1975
1966
|
}] });
|
|
1976
1967
|
const provideComponentInputBinding = () => {
|
|
@@ -2103,10 +2094,10 @@ class ValueAccessor {
|
|
|
2103
2094
|
});
|
|
2104
2095
|
}
|
|
2105
2096
|
}
|
|
2106
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2107
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2097
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2098
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: ValueAccessor, isStandalone: true, host: { listeners: { "ionBlur": "_handleBlurEvent($event.target)" } }, ngImport: i0 });
|
|
2108
2099
|
}
|
|
2109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
2110
2101
|
type: Directive
|
|
2111
2102
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ElementRef }], propDecorators: { _handleBlurEvent: [{
|
|
2112
2103
|
type: HostListener,
|
|
@@ -2181,15 +2172,15 @@ let IonBackButton = class IonBackButton {
|
|
|
2181
2172
|
ev.preventDefault();
|
|
2182
2173
|
}
|
|
2183
2174
|
}
|
|
2184
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2185
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2175
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonBackButton, deps: [{ token: IonRouterOutlet, optional: true }, { token: NavController }, { token: Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2176
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonBackButton, isStandalone: true, inputs: { color: "color", defaultHref: "defaultHref", disabled: "disabled", icon: "icon", mode: "mode", routerAnimation: "routerAnimation", text: "text", type: "type" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
2186
2177
|
};
|
|
2187
2178
|
IonBackButton = __decorate([
|
|
2188
2179
|
ProxyCmp({
|
|
2189
2180
|
inputs: BACK_BUTTON_INPUTS,
|
|
2190
2181
|
})
|
|
2191
2182
|
], IonBackButton);
|
|
2192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonBackButton, decorators: [{
|
|
2193
2184
|
type: Directive,
|
|
2194
2185
|
args: [{
|
|
2195
2186
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
@@ -2228,8 +2219,8 @@ let IonNav = class IonNav {
|
|
|
2228
2219
|
ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);
|
|
2229
2220
|
proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);
|
|
2230
2221
|
}
|
|
2231
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2232
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2222
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2223
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonNav, isStandalone: true, inputs: { animated: "animated", animation: "animation", root: "root", rootParams: "rootParams", swipeGesture: "swipeGesture" }, ngImport: i0 });
|
|
2233
2224
|
};
|
|
2234
2225
|
IonNav = __decorate([
|
|
2235
2226
|
ProxyCmp({
|
|
@@ -2237,7 +2228,7 @@ IonNav = __decorate([
|
|
|
2237
2228
|
methods: NAV_METHODS,
|
|
2238
2229
|
})
|
|
2239
2230
|
], IonNav);
|
|
2240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonNav, decorators: [{
|
|
2241
2232
|
type: Directive,
|
|
2242
2233
|
args: [{
|
|
2243
2234
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
@@ -2324,10 +2315,10 @@ class RouterLinkDelegateDirective {
|
|
|
2324
2315
|
*/
|
|
2325
2316
|
ev.preventDefault();
|
|
2326
2317
|
}
|
|
2327
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2328
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2318
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2319
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: RouterLinkDelegateDirective, isStandalone: true, selector: ":not(a):not(area)[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
2329
2320
|
}
|
|
2330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
|
|
2331
2322
|
type: Directive,
|
|
2332
2323
|
args: [{
|
|
2333
2324
|
selector: ':not(a):not(area)[routerLink]',
|
|
@@ -2375,10 +2366,10 @@ class RouterLinkWithHrefDelegateDirective {
|
|
|
2375
2366
|
onClick() {
|
|
2376
2367
|
this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
|
|
2377
2368
|
}
|
|
2378
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2379
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2369
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2370
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: RouterLinkWithHrefDelegateDirective, isStandalone: true, selector: "a[routerLink],area[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
|
|
2380
2371
|
}
|
|
2381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
|
|
2382
2373
|
type: Directive,
|
|
2383
2374
|
args: [{
|
|
2384
2375
|
selector: 'a[routerLink],area[routerLink]',
|
|
@@ -2432,7 +2423,6 @@ const parseHrefExtras = (href) => {
|
|
|
2432
2423
|
extras.fragment = fragment;
|
|
2433
2424
|
return extras;
|
|
2434
2425
|
};
|
|
2435
|
-
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
2436
2426
|
class IonTabs {
|
|
2437
2427
|
navCtrl;
|
|
2438
2428
|
tabsInner;
|
|
@@ -2493,6 +2483,16 @@ class IonTabs {
|
|
|
2493
2483
|
this.ionTabsDidChange.emit({ tab: stackId });
|
|
2494
2484
|
}
|
|
2495
2485
|
}
|
|
2486
|
+
/**
|
|
2487
|
+
* Host listener for the `ionTabButtonClick` event. Angular 22 enabled stricter
|
|
2488
|
+
* host-binding type checking, which types `$event` as the DOM `Event`. That is
|
|
2489
|
+
* not assignable to `select`'s public `string | CustomEvent` parameter, so this
|
|
2490
|
+
* thin wrapper narrows the event before forwarding to keep `select`'s public
|
|
2491
|
+
* signature intact.
|
|
2492
|
+
*/
|
|
2493
|
+
onTabButtonClick(ev) {
|
|
2494
|
+
return this.select(ev);
|
|
2495
|
+
}
|
|
2496
2496
|
/**
|
|
2497
2497
|
* When a tab button is clicked, there are several scenarios:
|
|
2498
2498
|
* 1. If the selected tab is currently active (the tab button has been clicked
|
|
@@ -2553,6 +2553,8 @@ class IonTabs {
|
|
|
2553
2553
|
return;
|
|
2554
2554
|
}
|
|
2555
2555
|
const rootView = this.outlet.getRootView(tab);
|
|
2556
|
+
// Keep the explicit rootView null-guard; an optional-chain rewrite changes the short-circuit value spread below.
|
|
2557
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
2556
2558
|
const navigationExtras = rootView && tabRootUrl === rootView.url && rootView.savedExtras;
|
|
2557
2559
|
return this.navCtrl.navigateRoot(tabRootUrl, {
|
|
2558
2560
|
...navigationExtras,
|
|
@@ -2650,10 +2652,10 @@ class IonTabs {
|
|
|
2650
2652
|
this.tabsInner.nativeElement.after(tabBar);
|
|
2651
2653
|
}
|
|
2652
2654
|
}
|
|
2653
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2654
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2655
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonTabs, deps: [{ token: NavController }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2656
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonTabs, isStandalone: true, selector: "ion-tabs", outputs: { ionTabsWillChange: "ionTabsWillChange", ionTabsDidChange: "ionTabsDidChange" }, host: { listeners: { "ionTabButtonClick": "onTabButtonClick($event)" } }, viewQueries: [{ propertyName: "tabsInner", first: true, predicate: ["tabsInner"], descendants: true, read: ElementRef, static: true }], ngImport: i0 });
|
|
2655
2657
|
}
|
|
2656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonTabs, decorators: [{
|
|
2657
2659
|
type: Directive,
|
|
2658
2660
|
args: [{
|
|
2659
2661
|
selector: 'ion-tabs',
|
|
@@ -2665,7 +2667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2665
2667
|
type: Output
|
|
2666
2668
|
}], ionTabsDidChange: [{
|
|
2667
2669
|
type: Output
|
|
2668
|
-
}],
|
|
2670
|
+
}], onTabButtonClick: [{
|
|
2669
2671
|
type: HostListener,
|
|
2670
2672
|
args: ['ionTabButtonClick', ['$event']]
|
|
2671
2673
|
}] } });
|