@ionic/angular 7.6.2-dev.11705355381.14b22962 → 7.6.2-dev.11705694334.11b34c62

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.
Files changed (40) hide show
  1. package/common/directives/navigation/router-outlet.d.ts +3 -4
  2. package/css/core.css +34 -101
  3. package/css/core.css.map +1 -1
  4. package/css/global.bundle.css +1 -1
  5. package/css/ionic.bundle.css +1 -1
  6. package/css/ionic.bundle.css.map +1 -1
  7. package/css/typography.css +1 -1
  8. package/directives/navigation/ion-router-outlet.d.ts +4 -12
  9. package/directives/proxies.d.ts +1 -1
  10. package/esm2020/common/directives/navigation/router-outlet.mjs +6 -15
  11. package/esm2020/common/directives/navigation/stack-controller.mjs +4 -1
  12. package/esm2020/directives/navigation/ion-router-outlet.mjs +9 -13
  13. package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
  14. package/esm2020/directives/proxies.mjs +4 -4
  15. package/esm2020/standalone/directives/proxies.mjs +4 -4
  16. package/esm2020/standalone/navigation/router-outlet.mjs +9 -13
  17. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  18. package/fesm2015/ionic-angular-common.mjs +8 -14
  19. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  20. package/fesm2015/ionic-angular-standalone.mjs +12 -16
  21. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  22. package/fesm2015/ionic-angular.mjs +12 -16
  23. package/fesm2015/ionic-angular.mjs.map +1 -1
  24. package/fesm2020/ionic-angular-common.mjs +8 -14
  25. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  26. package/fesm2020/ionic-angular-standalone.mjs +12 -16
  27. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  28. package/fesm2020/ionic-angular.mjs +12 -16
  29. package/fesm2020/ionic-angular.mjs.map +1 -1
  30. package/package.json +2 -2
  31. package/standalone/directives/proxies.d.ts +1 -1
  32. package/standalone/navigation/router-outlet.d.ts +4 -12
  33. package/css/themes/dark.always.css +0 -122
  34. package/css/themes/dark.always.css.map +0 -1
  35. package/css/themes/dark.class.css +0 -122
  36. package/css/themes/dark.class.css.map +0 -1
  37. package/css/themes/dark.css +0 -3
  38. package/css/themes/dark.css.map +0 -1
  39. package/css/themes/dark.system.css +0 -124
  40. package/css/themes/dark.system.css.map +0 -1
@@ -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, outletContent, parentOutlet) {
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
- * 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,
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: i0.ViewContainerRef }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
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: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
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