@ionic/angular 7.7.4-nightly.20240229 → 8.0.0-dev.11709226349.179192de

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 (103) hide show
  1. package/common/directives/navigation/router-outlet.d.ts +4 -3
  2. package/css/core.css +90 -27
  3. package/css/core.css.map +1 -1
  4. package/css/display.css.map +1 -1
  5. package/css/float-elements.css.map +1 -1
  6. package/css/global.bundle.css +1 -1
  7. package/css/global.bundle.css.map +1 -1
  8. package/css/ionic-swiper.css.map +1 -1
  9. package/css/ionic.bundle.css +1 -1
  10. package/css/ionic.bundle.css.map +1 -1
  11. package/css/padding.css.map +1 -1
  12. package/css/structure.css.map +1 -1
  13. package/css/text-alignment.css.map +1 -1
  14. package/css/text-transformation.css.map +1 -1
  15. package/css/themes/dark.always.css +160 -0
  16. package/css/themes/dark.always.css.map +1 -0
  17. package/css/themes/dark.class.css +160 -0
  18. package/css/themes/dark.class.css.map +1 -0
  19. package/css/themes/dark.css +3 -0
  20. package/css/themes/dark.css.map +1 -0
  21. package/css/themes/dark.system.css +162 -0
  22. package/css/themes/dark.system.css.map +1 -0
  23. package/css/themes/high-contrast-dark.always.css +180 -0
  24. package/css/themes/high-contrast-dark.always.css.map +1 -0
  25. package/css/themes/high-contrast-dark.class.css +180 -0
  26. package/css/themes/high-contrast-dark.class.css.map +1 -0
  27. package/css/themes/high-contrast-dark.css +3 -0
  28. package/css/themes/high-contrast-dark.css.map +1 -0
  29. package/css/themes/high-contrast-dark.system.css +182 -0
  30. package/css/themes/high-contrast-dark.system.css.map +1 -0
  31. package/css/themes/high-contrast.always.css +101 -0
  32. package/css/themes/high-contrast.always.css.map +1 -0
  33. package/css/themes/high-contrast.class.css +101 -0
  34. package/css/themes/high-contrast.class.css.map +1 -0
  35. package/css/themes/high-contrast.css +3 -0
  36. package/css/themes/high-contrast.css.map +1 -0
  37. package/css/themes/high-contrast.system.css +103 -0
  38. package/css/themes/high-contrast.system.css.map +1 -0
  39. package/css/typography.css +1 -1
  40. package/css/typography.css.map +1 -1
  41. package/css/utils.bundle.css.map +1 -1
  42. package/directives/control-value-accessors/index.d.ts +0 -1
  43. package/directives/control-value-accessors/numeric-value-accessor.d.ts +4 -3
  44. package/directives/control-value-accessors/text-value-accessor.d.ts +2 -2
  45. package/directives/navigation/ion-router-outlet.d.ts +12 -4
  46. package/directives/proxies-list.d.ts +1 -1
  47. package/directives/proxies.d.ts +45 -13
  48. package/esm2020/common/directives/navigation/router-outlet.mjs +15 -6
  49. package/esm2020/common/directives/navigation/stack-controller.mjs +1 -4
  50. package/esm2020/common/providers/nav-controller.mjs +3 -3
  51. package/esm2020/directives/control-value-accessors/index.mjs +1 -2
  52. package/esm2020/directives/control-value-accessors/numeric-value-accessor.mjs +12 -6
  53. package/esm2020/directives/control-value-accessors/text-value-accessor.mjs +3 -4
  54. package/esm2020/directives/navigation/ion-router-outlet.mjs +13 -9
  55. package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
  56. package/esm2020/directives/proxies-list.mjs +4 -1
  57. package/esm2020/directives/proxies.mjs +103 -26
  58. package/esm2020/index.mjs +1 -4
  59. package/esm2020/ionic-module.mjs +4 -7
  60. package/esm2020/providers/picker-controller.mjs +4 -1
  61. package/esm2020/standalone/directives/checkbox.mjs +2 -3
  62. package/esm2020/standalone/directives/index.mjs +1 -2
  63. package/esm2020/standalone/directives/input.mjs +2 -3
  64. package/esm2020/standalone/directives/proxies.mjs +120 -5
  65. package/esm2020/standalone/directives/range.mjs +2 -3
  66. package/esm2020/standalone/directives/select.mjs +2 -3
  67. package/esm2020/standalone/directives/textarea.mjs +2 -3
  68. package/esm2020/standalone/directives/toggle.mjs +2 -3
  69. package/esm2020/standalone/index.mjs +2 -2
  70. package/esm2020/standalone/navigation/router-outlet.mjs +13 -9
  71. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  72. package/esm2020/standalone/providers/picker-controller.mjs +5 -2
  73. package/fesm2015/ionic-angular-common.mjs +16 -10
  74. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  75. package/fesm2015/ionic-angular-standalone.mjs +212 -155
  76. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  77. package/fesm2015/ionic-angular.mjs +134 -86
  78. package/fesm2015/ionic-angular.mjs.map +1 -1
  79. package/fesm2020/ionic-angular-common.mjs +16 -10
  80. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  81. package/fesm2020/ionic-angular-standalone.mjs +212 -155
  82. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  83. package/fesm2020/ionic-angular.mjs +134 -86
  84. package/fesm2020/ionic-angular.mjs.map +1 -1
  85. package/index.d.ts +0 -2
  86. package/ionic-module.d.ts +11 -12
  87. package/package.json +2 -2
  88. package/providers/picker-controller.d.ts +4 -1
  89. package/standalone/directives/checkbox.d.ts +1 -1
  90. package/standalone/directives/index.d.ts +0 -1
  91. package/standalone/directives/input.d.ts +1 -1
  92. package/standalone/directives/proxies.d.ts +55 -6
  93. package/standalone/directives/range.d.ts +1 -1
  94. package/standalone/directives/select.d.ts +1 -1
  95. package/standalone/directives/textarea.d.ts +1 -1
  96. package/standalone/directives/toggle.d.ts +1 -1
  97. package/standalone/index.d.ts +1 -1
  98. package/standalone/navigation/router-outlet.d.ts +12 -4
  99. package/standalone/providers/picker-controller.d.ts +4 -1
  100. package/directives/control-value-accessors/radio-value-accessor.d.ts +0 -9
  101. package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +0 -42
  102. package/esm2020/standalone/directives/radio.mjs +0 -62
  103. 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
- cmpRef = this.activated = this.location.createComponent(component, {
1604
- index: this.location.length,
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