@ionic/angular 7.7.2-dev.11707425083.192d8103 → 7.7.2-nightly.20240209
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/router-outlet.d.ts +3 -4
- package/css/core.css +35 -98
- package/css/core.css.map +1 -1
- package/css/display.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/directives/control-value-accessors/index.d.ts +1 -0
- package/directives/control-value-accessors/radio-value-accessor.d.ts +9 -0
- package/directives/navigation/ion-router-outlet.d.ts +4 -12
- package/directives/proxies-list.d.ts +1 -1
- package/directives/proxies.d.ts +8 -40
- package/esm2020/common/directives/navigation/router-outlet.mjs +6 -15
- package/esm2020/common/directives/navigation/stack-controller.mjs +4 -1
- package/esm2020/common/providers/nav-controller.mjs +3 -3
- package/esm2020/directives/control-value-accessors/index.mjs +2 -1
- package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +42 -0
- package/esm2020/directives/navigation/ion-router-outlet.mjs +9 -13
- package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
- package/esm2020/directives/proxies-list.mjs +1 -4
- package/esm2020/directives/proxies.mjs +11 -88
- package/esm2020/index.mjs +2 -1
- package/esm2020/ionic-module.mjs +7 -4
- package/esm2020/providers/picker-controller.mjs +1 -4
- package/esm2020/standalone/directives/index.mjs +2 -1
- package/esm2020/standalone/directives/proxies.mjs +5 -120
- package/esm2020/standalone/directives/radio.mjs +62 -0
- package/esm2020/standalone/directives/textarea.mjs +3 -2
- package/esm2020/standalone/index.mjs +2 -2
- package/esm2020/standalone/navigation/router-outlet.mjs +9 -13
- package/esm2020/standalone/navigation/tabs.mjs +1 -1
- package/esm2020/standalone/providers/picker-controller.mjs +2 -5
- package/fesm2015/ionic-angular-common.mjs +10 -16
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +147 -209
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +63 -106
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +10 -16
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +147 -209
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +63 -106
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/ionic-module.d.ts +12 -11
- package/package.json +2 -2
- package/providers/picker-controller.d.ts +1 -4
- package/standalone/directives/index.d.ts +1 -0
- package/standalone/directives/proxies.d.ts +6 -55
- package/standalone/directives/radio.d.ts +22 -0
- package/standalone/directives/textarea.d.ts +1 -1
- package/standalone/index.d.ts +1 -1
- package/standalone/navigation/router-outlet.d.ts +4 -12
- package/standalone/providers/picker-controller.d.ts +1 -4
- package/css/themes/dark.always.css +0 -122
- package/css/themes/dark.always.css.map +0 -1
- package/css/themes/dark.class.css +0 -122
- package/css/themes/dark.class.css.map +0 -1
- package/css/themes/dark.css +0 -3
- package/css/themes/dark.css.map +0 -1
- package/css/themes/dark.system.css +0 -124
- package/css/themes/dark.system.css.map +0 -1
|
@@ -427,9 +427,9 @@ class NavController {
|
|
|
427
427
|
if (router) {
|
|
428
428
|
router.events.subscribe((ev) => {
|
|
429
429
|
if (ev instanceof NavigationStart) {
|
|
430
|
-
// restoredState is set if the browser back/forward button is used
|
|
431
430
|
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
|
|
432
|
-
this.guessDirection =
|
|
431
|
+
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
|
|
432
|
+
this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
|
|
433
433
|
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
|
|
434
434
|
}
|
|
435
435
|
});
|
|
@@ -1347,6 +1347,9 @@ class StackController {
|
|
|
1347
1347
|
if (enteringEl && enteringEl !== leavingEl) {
|
|
1348
1348
|
enteringEl.classList.add('ion-page');
|
|
1349
1349
|
enteringEl.classList.add('ion-page-invisible');
|
|
1350
|
+
if (enteringEl.parentElement !== containerEl) {
|
|
1351
|
+
containerEl.appendChild(enteringEl);
|
|
1352
|
+
}
|
|
1350
1353
|
if (containerEl.commit) {
|
|
1351
1354
|
return containerEl.commit(enteringEl, leavingEl, {
|
|
1352
1355
|
duration: direction === undefined ? 0 : undefined,
|
|
@@ -1410,8 +1413,7 @@ const cleanup = (activeRoute, views, viewsSnapshot, location, zone) => {
|
|
|
1410
1413
|
// TODO(FW-2827): types
|
|
1411
1414
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
1412
1415
|
class IonRouterOutlet {
|
|
1413
|
-
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute,
|
|
1414
|
-
this.outletContent = outletContent;
|
|
1416
|
+
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
1415
1417
|
this.parentOutlet = parentOutlet;
|
|
1416
1418
|
this.activatedView = null;
|
|
1417
1419
|
// Maintain map of activated route proxies for each component instance
|
|
@@ -1598,16 +1600,8 @@ class IonRouterOutlet {
|
|
|
1598
1600
|
const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
|
1599
1601
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1600
1602
|
const component = snapshot.routeConfig.component ?? snapshot.component;
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
* for page transitions and swipe to go back.
|
|
1604
|
-
* However, createComponent mounts components as siblings of the
|
|
1605
|
-
* ViewContainerRef. As a result, outletContent must reference
|
|
1606
|
-
* an ng-container inside of ion-router-outlet and not
|
|
1607
|
-
* ion-router-outlet itself.
|
|
1608
|
-
*/
|
|
1609
|
-
cmpRef = this.activated = this.outletContent.createComponent(component, {
|
|
1610
|
-
index: this.outletContent.length,
|
|
1603
|
+
cmpRef = this.activated = this.location.createComponent(component, {
|
|
1604
|
+
index: this.location.length,
|
|
1611
1605
|
injector,
|
|
1612
1606
|
environmentInjector: environmentInjector ?? this.environmentInjector,
|
|
1613
1607
|
});
|
|
@@ -1726,7 +1720,7 @@ class IonRouterOutlet {
|
|
|
1726
1720
|
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
1727
1721
|
}
|
|
1728
1722
|
}
|
|
1729
|
-
/** @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: i3.Router }, { token: i0.NgZone }, { token: i3.ActivatedRoute }, { token:
|
|
1723
|
+
/** @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: i3.Router }, { token: i0.NgZone }, { token: i3.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1730
1724
|
/** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, 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 });
|
|
1731
1725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
1732
1726
|
type: Directive,
|
|
@@ -1744,7 +1738,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1744
1738
|
}, {
|
|
1745
1739
|
type: Attribute,
|
|
1746
1740
|
args: ['tabs']
|
|
1747
|
-
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type:
|
|
1741
|
+
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
|
|
1748
1742
|
type: SkipSelf
|
|
1749
1743
|
}, {
|
|
1750
1744
|
type: Optional
|