@ionic/angular 7.7.2-dev.11707881769.185d2a14 → 7.7.2-dev.11707932366.16baf005
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 +4 -3
- package/css/core.css +90 -27
- 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/themes/dark.always.css +160 -0
- package/css/themes/dark.always.css.map +1 -0
- package/css/themes/dark.class.css +160 -0
- package/css/themes/dark.class.css.map +1 -0
- package/css/themes/dark.css +3 -0
- package/css/themes/dark.css.map +1 -0
- package/css/themes/dark.system.css +162 -0
- package/css/themes/dark.system.css.map +1 -0
- package/css/themes/high-contrast-dark.always.css +180 -0
- package/css/themes/high-contrast-dark.always.css.map +1 -0
- package/css/themes/high-contrast-dark.class.css +180 -0
- package/css/themes/high-contrast-dark.class.css.map +1 -0
- package/css/themes/high-contrast-dark.css +3 -0
- package/css/themes/high-contrast-dark.css.map +1 -0
- package/css/themes/high-contrast-dark.system.css +182 -0
- package/css/themes/high-contrast-dark.system.css.map +1 -0
- package/css/themes/high-contrast.always.css +101 -0
- package/css/themes/high-contrast.always.css.map +1 -0
- package/css/themes/high-contrast.class.css +101 -0
- package/css/themes/high-contrast.class.css.map +1 -0
- package/css/themes/high-contrast.css +3 -0
- package/css/themes/high-contrast.css.map +1 -0
- package/css/themes/high-contrast.system.css +103 -0
- package/css/themes/high-contrast.system.css.map +1 -0
- 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 +0 -1
- package/directives/navigation/ion-router-outlet.d.ts +12 -4
- package/directives/proxies-list.d.ts +1 -1
- package/directives/proxies.d.ts +43 -11
- package/esm2020/common/directives/navigation/router-outlet.mjs +15 -6
- package/esm2020/common/directives/navigation/stack-controller.mjs +1 -4
- package/esm2020/common/providers/nav-controller.mjs +3 -3
- package/esm2020/directives/control-value-accessors/index.mjs +1 -2
- package/esm2020/directives/navigation/ion-router-outlet.mjs +13 -9
- package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
- package/esm2020/directives/proxies-list.mjs +4 -1
- package/esm2020/directives/proxies.mjs +97 -20
- package/esm2020/index.mjs +1 -4
- package/esm2020/ionic-module.mjs +4 -7
- package/esm2020/providers/picker-controller.mjs +4 -1
- package/esm2020/standalone/directives/index.mjs +1 -2
- package/esm2020/standalone/directives/input.mjs +2 -3
- package/esm2020/standalone/directives/proxies.mjs +120 -5
- package/esm2020/standalone/directives/select.mjs +2 -3
- package/esm2020/standalone/directives/textarea.mjs +2 -3
- package/esm2020/standalone/directives/toggle.mjs +2 -3
- package/esm2020/standalone/index.mjs +2 -2
- package/esm2020/standalone/navigation/router-outlet.mjs +13 -9
- package/esm2020/standalone/navigation/tabs.mjs +1 -1
- package/esm2020/standalone/providers/picker-controller.mjs +5 -2
- package/fesm2015/ionic-angular-common.mjs +16 -10
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +211 -152
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +115 -72
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +16 -10
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +211 -152
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +115 -72
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/ionic-module.d.ts +11 -12
- package/package.json +2 -2
- package/providers/picker-controller.d.ts +4 -1
- package/standalone/directives/index.d.ts +0 -1
- package/standalone/directives/input.d.ts +1 -1
- package/standalone/directives/proxies.d.ts +55 -6
- package/standalone/directives/select.d.ts +1 -1
- package/standalone/directives/textarea.d.ts +1 -1
- package/standalone/directives/toggle.d.ts +1 -1
- package/standalone/index.d.ts +1 -1
- package/standalone/navigation/router-outlet.d.ts +12 -4
- package/standalone/providers/picker-controller.d.ts +4 -1
- package/directives/control-value-accessors/radio-value-accessor.d.ts +0 -9
- package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +0 -42
- package/esm2020/standalone/directives/radio.mjs +0 -62
- package/standalone/directives/radio.d.ts +0 -22
|
@@ -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
|
|
430
431
|
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
|
|
431
|
-
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
|
|
432
|
-
this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
|
|
432
|
+
this.guessDirection = this.guessAnimation = id < this.lastNavId ? 'back' : 'forward';
|
|
433
433
|
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
|
|
434
434
|
}
|
|
435
435
|
});
|
|
@@ -1347,9 +1347,6 @@ 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
|
-
}
|
|
1353
1350
|
if (containerEl.commit) {
|
|
1354
1351
|
return containerEl.commit(enteringEl, leavingEl, {
|
|
1355
1352
|
duration: direction === undefined ? 0 : undefined,
|
|
@@ -1413,7 +1410,8 @@ const cleanup = (activeRoute, views, viewsSnapshot, location, zone) => {
|
|
|
1413
1410
|
// TODO(FW-2827): types
|
|
1414
1411
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
1415
1412
|
class IonRouterOutlet {
|
|
1416
|
-
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
1413
|
+
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet) {
|
|
1414
|
+
this.outletContent = outletContent;
|
|
1417
1415
|
this.parentOutlet = parentOutlet;
|
|
1418
1416
|
this.activatedView = null;
|
|
1419
1417
|
// Maintain map of activated route proxies for each component instance
|
|
@@ -1600,8 +1598,16 @@ class IonRouterOutlet {
|
|
|
1600
1598
|
const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
|
1601
1599
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1602
1600
|
const component = snapshot.routeConfig.component ?? snapshot.component;
|
|
1603
|
-
|
|
1604
|
-
|
|
1601
|
+
/**
|
|
1602
|
+
* View components need to be added as a child of ion-router-outlet
|
|
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,
|
|
1605
1611
|
injector,
|
|
1606
1612
|
environmentInjector: environmentInjector ?? this.environmentInjector,
|
|
1607
1613
|
});
|
|
@@ -1720,7 +1726,7 @@ class IonRouterOutlet {
|
|
|
1720
1726
|
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
1721
1727
|
}
|
|
1722
1728
|
}
|
|
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 });
|
|
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: i0.ViewContainerRef }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1724
1730
|
/** @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 });
|
|
1725
1731
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
1726
1732
|
type: Directive,
|
|
@@ -1738,7 +1744,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1738
1744
|
}, {
|
|
1739
1745
|
type: Attribute,
|
|
1740
1746
|
args: ['tabs']
|
|
1741
|
-
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
|
|
1747
|
+
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
|
|
1742
1748
|
type: SkipSelf
|
|
1743
1749
|
}, {
|
|
1744
1750
|
type: Optional
|