@ionic/angular 7.6.2-dev.11705694334.11b34c62 → 7.6.2-dev.11706202387.1dfcd9b8

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 (64) hide show
  1. package/common/directives/navigation/nav.d.ts +2 -2
  2. package/common/directives/navigation/router-outlet.d.ts +4 -3
  3. package/common/index.d.ts +0 -1
  4. package/common/providers/angular-delegate.d.ts +4 -5
  5. package/css/core.css +101 -34
  6. package/css/core.css.map +1 -1
  7. package/css/global.bundle.css +1 -1
  8. package/css/ionic.bundle.css +1 -1
  9. package/css/ionic.bundle.css.map +1 -1
  10. package/css/themes/dark.always.css +122 -0
  11. package/css/themes/dark.always.css.map +1 -0
  12. package/css/themes/dark.class.css +122 -0
  13. package/css/themes/dark.class.css.map +1 -0
  14. package/css/themes/dark.css +3 -0
  15. package/css/themes/dark.css.map +1 -0
  16. package/css/themes/dark.system.css +124 -0
  17. package/css/themes/dark.system.css.map +1 -0
  18. package/css/typography.css +1 -1
  19. package/directives/navigation/ion-nav.d.ts +2 -2
  20. package/directives/navigation/ion-router-outlet.d.ts +12 -4
  21. package/directives/proxies.d.ts +1 -1
  22. package/esm2020/common/directives/navigation/nav.mjs +5 -5
  23. package/esm2020/common/directives/navigation/router-outlet.mjs +15 -6
  24. package/esm2020/common/directives/navigation/stack-controller.mjs +1 -4
  25. package/esm2020/common/index.mjs +1 -2
  26. package/esm2020/common/providers/angular-delegate.mjs +28 -44
  27. package/esm2020/directives/navigation/ion-nav.mjs +5 -5
  28. package/esm2020/directives/navigation/ion-router-outlet.mjs +13 -9
  29. package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
  30. package/esm2020/directives/proxies.mjs +4 -4
  31. package/esm2020/index.mjs +2 -2
  32. package/esm2020/providers/modal-controller.mjs +3 -4
  33. package/esm2020/providers/popover-controller.mjs +3 -4
  34. package/esm2020/standalone/directives/proxies.mjs +4 -4
  35. package/esm2020/standalone/index.mjs +2 -2
  36. package/esm2020/standalone/navigation/nav.mjs +5 -5
  37. package/esm2020/standalone/navigation/router-outlet.mjs +13 -9
  38. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  39. package/esm2020/standalone/providers/modal-controller.mjs +3 -4
  40. package/esm2020/standalone/providers/popover-controller.mjs +3 -4
  41. package/fesm2015/ionic-angular-common.mjs +47 -101
  42. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  43. package/fesm2015/ionic-angular-standalone.mjs +23 -21
  44. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  45. package/fesm2015/ionic-angular.mjs +23 -21
  46. package/fesm2015/ionic-angular.mjs.map +1 -1
  47. package/fesm2020/ionic-angular-common.mjs +46 -100
  48. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  49. package/fesm2020/ionic-angular-standalone.mjs +23 -21
  50. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  51. package/fesm2020/ionic-angular.mjs +23 -21
  52. package/fesm2020/ionic-angular.mjs.map +1 -1
  53. package/index.d.ts +1 -1
  54. package/package.json +2 -2
  55. package/providers/modal-controller.d.ts +0 -1
  56. package/providers/popover-controller.d.ts +0 -1
  57. package/standalone/directives/proxies.d.ts +1 -1
  58. package/standalone/index.d.ts +1 -1
  59. package/standalone/navigation/nav.d.ts +2 -2
  60. package/standalone/navigation/router-outlet.d.ts +12 -4
  61. package/standalone/providers/modal-controller.d.ts +0 -1
  62. package/standalone/providers/popover-controller.d.ts +0 -1
  63. package/common/directives/navigation/nav-params.d.ts +0 -45
  64. package/esm2020/common/directives/navigation/nav-params.mjs +0 -45
@@ -1,9 +1,9 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Directive, Attribute, Optional, SkipSelf, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, inject, Injector, EnvironmentInjector, Injectable, APP_INITIALIZER, forwardRef, HostListener } from '@angular/core';
3
+ import { ViewContainerRef, Component, Attribute, Optional, SkipSelf, ViewChild, ChangeDetectionStrategy, Directive, ContentChild, ContentChildren, inject, EnvironmentInjector, Injectable, APP_INITIALIZER, forwardRef, HostListener } from '@angular/core';
4
4
  import * as i2$1 from '@ionic/angular/common';
5
5
  import { IonRouterOutlet as IonRouterOutlet$1, ProxyCmp as ProxyCmp$1, IonBackButton as IonBackButton$1, IonModal as IonModal$1, IonPopover as IonPopover$1, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, IonTabs as IonTabs$1, OverlayBaseController, AngularDelegate, ConfigToken, provideComponentInputBinding, MenuController as MenuController$1, IonNav as IonNav$1, ValueAccessor, setIonicClasses } from '@ionic/angular/common';
6
- export { Config, DomController, IonicRouteStrategy, NavController, NavParams, Platform } from '@ionic/angular/common';
6
+ export { Config, DomController, IonicRouteStrategy, NavController, Platform } from '@ionic/angular/common';
7
7
  import { defineCustomElement as defineCustomElement$2 } from '@ionic/core/components/ion-back-button.js';
8
8
  import { defineCustomElement as defineCustomElement$1 } from '@ionic/core/components/ion-router-outlet.js';
9
9
  import * as i1 from '@angular/common';
@@ -104,23 +104,24 @@ let IonRouterOutlet = class IonRouterOutlet extends IonRouterOutlet$1 {
104
104
  * This results in APIs such as NavController.pop not working
105
105
  * in nested outlets because the parent outlet cannot be found.
106
106
  */
107
- constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
108
- super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
107
+ constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet) {
108
+ super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet);
109
109
  this.parentOutlet = parentOutlet;
110
110
  }
111
111
  };
112
- /** @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: i2.Router }, { token: i0.NgZone }, { token: i2.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
113
- /** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, isStandalone: true, selector: "ion-router-outlet", usesInheritance: true, ngImport: i0 });
112
+ /** @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: i2.Router }, { token: i0.NgZone }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
113
+ /** @nocollapse */ IonRouterOutlet.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, isStandalone: true, selector: "ion-router-outlet", viewQueries: [{ propertyName: "outletContent", first: true, predicate: ["outletContent"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: '<ng-container #outletContent><ng-content></ng-content></ng-container>', isInline: true });
114
114
  IonRouterOutlet = __decorate([
115
115
  ProxyCmp$1({
116
116
  defineCustomElementFn: defineCustomElement$1,
117
117
  })
118
118
  ], IonRouterOutlet);
119
119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
120
- type: Directive,
120
+ type: Component,
121
121
  args: [{
122
122
  selector: 'ion-router-outlet',
123
123
  standalone: true,
124
+ template: '<ng-container #outletContent><ng-content></ng-content></ng-container>',
124
125
  }]
125
126
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
126
127
  type: Attribute,
@@ -130,11 +131,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
130
131
  }, {
131
132
  type: Attribute,
132
133
  args: ['tabs']
133
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
134
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
134
135
  type: SkipSelf
135
136
  }, {
136
137
  type: Optional
137
- }] }]; } });
138
+ }] }]; }, propDecorators: { outletContent: [{
139
+ type: ViewChild,
140
+ args: ['outletContent', { read: ViewContainerRef, static: true }]
141
+ }] } });
138
142
 
139
143
  let IonBackButton = class IonBackButton extends IonBackButton$1 {
140
144
  constructor(routerOutlet, navCtrl, config, r, z, c) {
@@ -1219,11 +1223,11 @@ let IonItemSliding = class IonItemSliding {
1219
1223
  }
1220
1224
  };
1221
1225
  /** @nocollapse */ IonItemSliding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonItemSliding, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1222
- /** @nocollapse */ IonItemSliding.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonItemSliding, isStandalone: true, selector: "ion-item-sliding", inputs: { animationType: "animationType", disabled: "disabled" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1226
+ /** @nocollapse */ IonItemSliding.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonItemSliding, isStandalone: true, selector: "ion-item-sliding", inputs: { disabled: "disabled" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1223
1227
  IonItemSliding = __decorate([
1224
1228
  ProxyCmp({
1225
1229
  defineCustomElementFn: defineCustomElement$E,
1226
- inputs: ['animationType', 'disabled'],
1230
+ inputs: ['disabled'],
1227
1231
  methods: ['getOpenAmount', 'getSlidingRatio', 'open', 'close', 'closeOpened']
1228
1232
  })
1229
1233
  ], IonItemSliding);
@@ -1234,7 +1238,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
1234
1238
  changeDetection: ChangeDetectionStrategy.OnPush,
1235
1239
  template: '<ng-content></ng-content>',
1236
1240
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1237
- inputs: ['animationType', 'disabled'],
1241
+ inputs: ['disabled'],
1238
1242
  standalone: true
1239
1243
  }]
1240
1244
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
@@ -2127,7 +2131,7 @@ class IonTabs extends IonTabs$1 {
2127
2131
  ></ion-router-outlet>
2128
2132
  </div>
2129
2133
  <ng-content></ng-content>
2130
- `, isInline: true, styles: [":host{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner{position:relative;flex:1;contain:layout size style}\n"], dependencies: [{ kind: "directive", type: IonRouterOutlet, selector: "ion-router-outlet" }] });
2134
+ `, isInline: true, styles: [":host{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner{position:relative;flex:1;contain:layout size style}\n"], dependencies: [{ kind: "component", type: IonRouterOutlet, selector: "ion-router-outlet" }] });
2131
2135
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, decorators: [{
2132
2136
  type: Component,
2133
2137
  args: [{ selector: 'ion-tabs', template: `
@@ -2157,14 +2161,13 @@ class ModalController extends OverlayBaseController {
2157
2161
  constructor() {
2158
2162
  super(modalController);
2159
2163
  this.angularDelegate = inject(AngularDelegate);
2160
- this.injector = inject(Injector);
2161
2164
  this.environmentInjector = inject(EnvironmentInjector);
2162
2165
  defineCustomElement$3();
2163
2166
  }
2164
2167
  create(opts) {
2165
2168
  return super.create({
2166
2169
  ...opts,
2167
- delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'modal'),
2170
+ delegate: this.angularDelegate.create(this.environmentInjector, 'modal'),
2168
2171
  });
2169
2172
  }
2170
2173
  }
@@ -2178,14 +2181,13 @@ class PopoverController extends OverlayBaseController {
2178
2181
  constructor() {
2179
2182
  super(popoverController);
2180
2183
  this.angularDelegate = inject(AngularDelegate);
2181
- this.injector = inject(Injector);
2182
2184
  this.environmentInjector = inject(EnvironmentInjector);
2183
2185
  defineCustomElement$4();
2184
2186
  }
2185
2187
  create(opts) {
2186
2188
  return super.create({
2187
2189
  ...opts,
2188
- delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'popover'),
2190
+ delegate: this.angularDelegate.create(this.environmentInjector, 'popover'),
2189
2191
  });
2190
2192
  }
2191
2193
  }
@@ -2382,11 +2384,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2382
2384
  }], ctorParameters: function () { return []; } });
2383
2385
 
2384
2386
  let IonNav = class IonNav extends IonNav$1 {
2385
- constructor(ref, environmentInjector, injector, angularDelegate, z, c) {
2386
- super(ref, environmentInjector, injector, angularDelegate, z, c);
2387
+ constructor(ref, environmentInjector, angularDelegate, z, c) {
2388
+ super(ref, environmentInjector, angularDelegate, z, c);
2387
2389
  }
2388
2390
  };
2389
- /** @nocollapse */ IonNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: i2$1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2391
+ /** @nocollapse */ IonNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i2$1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2390
2392
  /** @nocollapse */ IonNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonNav, isStandalone: true, selector: "ion-nav", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
2391
2393
  IonNav = __decorate([
2392
2394
  ProxyCmp$1({
@@ -2400,7 +2402,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2400
2402
  template: '<ng-content></ng-content>',
2401
2403
  standalone: true,
2402
2404
  }]
2403
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2405
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i2$1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
2404
2406
 
2405
2407
  const CHECKBOX_INPUTS = [
2406
2408
  'checked',