@ionic/angular 7.6.2-dev.11704390532.1202188d → 7.6.2-dev.11704729332.13b412c8

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 (36) hide show
  1. package/common/directives/navigation/router-outlet.d.ts +3 -4
  2. package/css/core.css +35 -34
  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/themes/dark.always.css +122 -0
  8. package/css/themes/dark.always.css.map +1 -0
  9. package/css/themes/dark.class.css +122 -0
  10. package/css/themes/dark.class.css.map +1 -0
  11. package/css/themes/dark.css +3 -0
  12. package/css/themes/dark.css.map +1 -0
  13. package/css/themes/dark.system.css +124 -0
  14. package/css/themes/dark.system.css.map +1 -0
  15. package/css/typography.css +1 -1
  16. package/directives/navigation/ion-router-outlet.d.ts +4 -12
  17. package/esm2020/common/directives/navigation/router-outlet.mjs +6 -14
  18. package/esm2020/common/directives/navigation/stack-controller.mjs +4 -1
  19. package/esm2020/directives/navigation/ion-router-outlet.mjs +9 -13
  20. package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
  21. package/esm2020/standalone/navigation/router-outlet.mjs +9 -13
  22. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  23. package/fesm2015/ionic-angular-common.mjs +8 -13
  24. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  25. package/fesm2015/ionic-angular-standalone.mjs +9 -13
  26. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  27. package/fesm2015/ionic-angular.mjs +9 -13
  28. package/fesm2015/ionic-angular.mjs.map +1 -1
  29. package/fesm2020/ionic-angular-common.mjs +8 -13
  30. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  31. package/fesm2020/ionic-angular-standalone.mjs +9 -13
  32. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  33. package/fesm2020/ionic-angular.mjs +9 -13
  34. package/fesm2020/ionic-angular.mjs.map +1 -1
  35. package/package.json +2 -2
  36. package/standalone/navigation/router-outlet.d.ts +4 -12
@@ -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,15 +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
- * However, createComponent mounts components as siblings of the
1604
- * ViewContainerRef. As a result, outletContent must reference
1605
- * an ng-container inside of ion-router-outlet and not
1606
- * ion-router-outlet itself.
1607
- */
1608
- cmpRef = this.activated = this.outletContent.createComponent(component, {
1609
- index: this.outletContent.length,
1603
+ cmpRef = this.activated = this.location.createComponent(component, {
1604
+ index: this.location.length,
1610
1605
  injector,
1611
1606
  environmentInjector: environmentInjector ?? this.environmentInjector,
1612
1607
  });
@@ -1725,7 +1720,7 @@ class IonRouterOutlet {
1725
1720
  this.currentActivatedRoute$.next({ component, activatedRoute });
1726
1721
  }
1727
1722
  }
1728
- /** @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 });
1729
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 });
1730
1725
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
1731
1726
  type: Directive,
@@ -1743,7 +1738,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
1743
1738
  }, {
1744
1739
  type: Attribute,
1745
1740
  args: ['tabs']
1746
- }] }, { 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: [{
1747
1742
  type: SkipSelf
1748
1743
  }, {
1749
1744
  type: Optional