@ionic/angular 7.5.6-dev.11700071366.1395b143 → 7.5.6-dev.11700149859.12fc59a6

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 (37) hide show
  1. package/common/directives/navigation/router-outlet.d.ts +4 -3
  2. package/directives/control-value-accessors/index.d.ts +0 -1
  3. package/directives/navigation/ion-router-outlet.d.ts +5 -4
  4. package/esm2020/common/directives/navigation/router-outlet.mjs +14 -6
  5. package/esm2020/directives/control-value-accessors/index.mjs +1 -2
  6. package/esm2020/directives/navigation/ion-router-outlet.mjs +13 -9
  7. package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
  8. package/esm2020/index.mjs +1 -2
  9. package/esm2020/ionic-module.mjs +2 -5
  10. package/esm2020/standalone/directives/index.mjs +1 -2
  11. package/esm2020/standalone/directives/proxies.mjs +30 -1
  12. package/esm2020/standalone/index.mjs +2 -2
  13. package/esm2020/standalone/navigation/router-outlet.mjs +13 -9
  14. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  15. package/fesm2015/ionic-angular-common.mjs +13 -5
  16. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  17. package/fesm2015/ionic-angular-standalone.mjs +101 -124
  18. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  19. package/fesm2015/ionic-angular.mjs +14 -51
  20. package/fesm2015/ionic-angular.mjs.map +1 -1
  21. package/fesm2020/ionic-angular-common.mjs +13 -5
  22. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  23. package/fesm2020/ionic-angular-standalone.mjs +101 -124
  24. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  25. package/fesm2020/ionic-angular.mjs +14 -51
  26. package/fesm2020/ionic-angular.mjs.map +1 -1
  27. package/index.d.ts +0 -1
  28. package/ionic-module.d.ts +11 -12
  29. package/package.json +2 -2
  30. package/standalone/directives/index.d.ts +0 -1
  31. package/standalone/directives/proxies.d.ts +17 -0
  32. package/standalone/index.d.ts +1 -1
  33. package/standalone/navigation/router-outlet.d.ts +5 -4
  34. package/directives/control-value-accessors/radio-value-accessor.d.ts +0 -9
  35. package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +0 -42
  36. package/esm2020/standalone/directives/radio.mjs +0 -62
  37. package/standalone/directives/radio.d.ts +0 -22
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, HostListener, Component, ChangeDetectionStrategy, Attribute, Optional, SkipSelf, ViewChild, ContentChild, ContentChildren, forwardRef, Injectable, inject, Injector, EnvironmentInjector, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
2
+ import { Directive, HostListener, Component, ChangeDetectionStrategy, ViewContainerRef, Attribute, Optional, SkipSelf, ViewChild, ContentChild, ContentChildren, forwardRef, Injectable, inject, Injector, EnvironmentInjector, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, MaxValidator, MinValidator } from '@angular/forms';
4
4
  import * as i2$1 from '@ionic/angular/common';
5
5
  import { ValueAccessor, setIonicClasses, IonRouterOutlet as IonRouterOutlet$1, IonTabs as IonTabs$1, IonBackButton as IonBackButton$1, IonNav as IonNav$1, RouterLinkDelegateDirective as RouterLinkDelegateDirective$1, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegateDirective$1, IonModal as IonModal$1, IonPopover as IonPopover$1, OverlayBaseController, MenuController as MenuController$1, AngularDelegate, raf, ConfigToken, provideComponentInputBinding } from '@ionic/angular/common';
@@ -88,44 +88,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
88
88
  args: ['ionInput', ['$event.target']]
89
89
  }] } });
90
90
 
91
- class RadioValueAccessorDirective extends ValueAccessor {
92
- constructor(injector, el) {
93
- super(injector, el);
94
- }
95
- _handleIonSelect(el) {
96
- /**
97
- * The `el` type is any to access the `checked` state property
98
- * that is not exposed on the type interface.
99
- */
100
- this.handleValueChange(el, el.checked);
101
- }
102
- }
103
- /** @nocollapse */ RadioValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RadioValueAccessorDirective, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
104
- /** @nocollapse */ RadioValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: RadioValueAccessorDirective, selector: "ion-radio", host: { listeners: { "ionSelect": "_handleIonSelect($event.target)" } }, providers: [
105
- {
106
- provide: NG_VALUE_ACCESSOR,
107
- useExisting: RadioValueAccessorDirective,
108
- multi: true,
109
- },
110
- ], usesInheritance: true, ngImport: i0 });
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RadioValueAccessorDirective, decorators: [{
112
- type: Directive,
113
- args: [{
114
- /* tslint:disable-next-line:directive-selector */
115
- selector: 'ion-radio',
116
- providers: [
117
- {
118
- provide: NG_VALUE_ACCESSOR,
119
- useExisting: RadioValueAccessorDirective,
120
- multi: true,
121
- },
122
- ],
123
- }]
124
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { _handleIonSelect: [{
125
- type: HostListener,
126
- args: ['ionSelect', ['$event.target']]
127
- }] } });
128
-
129
91
  class SelectValueAccessorDirective extends ValueAccessor {
130
92
  constructor(injector, el) {
131
93
  super(injector, el);
@@ -2145,17 +2107,18 @@ class IonRouterOutlet extends IonRouterOutlet$1 {
2145
2107
  * This results in APIs such as NavController.pop not working
2146
2108
  * in nested outlets because the parent outlet cannot be found.
2147
2109
  */
2148
- constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
2149
- super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
2110
+ constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet) {
2111
+ super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet);
2150
2112
  this.parentOutlet = parentOutlet;
2151
2113
  }
2152
2114
  }
2153
- /** @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 });
2154
- /** @nocollapse */ IonRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", usesInheritance: true, ngImport: i0 });
2115
+ /** @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 });
2116
+ /** @nocollapse */ IonRouterOutlet.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", viewQueries: [{ propertyName: "outletContent", first: true, predicate: ["outletContent"], descendants: true, read: ViewContainerRef }], usesInheritance: true, ngImport: i0, template: '<ng-container #outletContent><ng-content></ng-content></ng-container>', isInline: true });
2155
2117
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
2156
- type: Directive,
2118
+ type: Component,
2157
2119
  args: [{
2158
2120
  selector: 'ion-router-outlet',
2121
+ template: '<ng-container #outletContent><ng-content></ng-content></ng-container>'
2159
2122
  }]
2160
2123
  }], ctorParameters: function () {
2161
2124
  return [{ type: undefined, decorators: [{
@@ -2166,12 +2129,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2166
2129
  }, {
2167
2130
  type: Attribute,
2168
2131
  args: ['tabs']
2169
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
2132
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
2170
2133
  type: SkipSelf
2171
2134
  }, {
2172
2135
  type: Optional
2173
2136
  }] }];
2174
- } });
2137
+ }, propDecorators: { outletContent: [{
2138
+ type: ViewChild,
2139
+ args: ['outletContent', { read: ViewContainerRef }]
2140
+ }] } });
2175
2141
 
2176
2142
  // eslint-disable-next-line @angular-eslint/component-class-suffix
2177
2143
  class IonTabs extends IonTabs$1 {
@@ -2188,7 +2154,7 @@ class IonTabs extends IonTabs$1 {
2188
2154
  ></ion-router-outlet>
2189
2155
  </div>
2190
2156
  <ng-content></ng-content>
2191
- `, 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" }] });
2157
+ `, 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" }] });
2192
2158
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, decorators: [{
2193
2159
  type: Component,
2194
2160
  args: [{ selector: 'ion-tabs', template: `
@@ -2604,7 +2570,6 @@ const DECLARATIONS = [
2604
2570
  // ngModel accessors
2605
2571
  BooleanValueAccessorDirective,
2606
2572
  NumericValueAccessorDirective,
2607
- RadioValueAccessorDirective,
2608
2573
  SelectValueAccessorDirective,
2609
2574
  TextValueAccessorDirective,
2610
2575
  // navigation
@@ -2646,7 +2611,6 @@ class IonicModule {
2646
2611
  // ngModel accessors
2647
2612
  BooleanValueAccessorDirective,
2648
2613
  NumericValueAccessorDirective,
2649
- RadioValueAccessorDirective,
2650
2614
  SelectValueAccessorDirective,
2651
2615
  TextValueAccessorDirective,
2652
2616
  // navigation
@@ -2665,7 +2629,6 @@ class IonicModule {
2665
2629
  // ngModel accessors
2666
2630
  BooleanValueAccessorDirective,
2667
2631
  NumericValueAccessorDirective,
2668
- RadioValueAccessorDirective,
2669
2632
  SelectValueAccessorDirective,
2670
2633
  TextValueAccessorDirective,
2671
2634
  // navigation
@@ -2695,5 +2658,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2695
2658
  * Generated bundle index. Do not edit.
2696
2659
  */
2697
2660
 
2698
- export { ActionSheetController, AnimationController, BooleanValueAccessorDirective as BooleanValueAccessor, GestureController, ION_MAX_VALIDATOR, ION_MIN_VALIDATOR, IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMaxValidator, IonMenu, IonMenuButton, IonMenuToggle, IonMinValidator, IonModal, IonNav, IonNavLink, IonNote, IonPicker, IonPopover, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRouterOutlet, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonTabs, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar, IonicModule, MenuController, ModalController, NumericValueAccessorDirective as NumericValueAccessor, PopoverController, RadioValueAccessorDirective as RadioValueAccessor, RouterLinkDelegateDirective as RouterLinkDelegate, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegate, SelectValueAccessorDirective as SelectValueAccessor, TextValueAccessorDirective as TextValueAccessor, ToastController };
2661
+ export { ActionSheetController, AnimationController, BooleanValueAccessorDirective as BooleanValueAccessor, GestureController, ION_MAX_VALIDATOR, ION_MIN_VALIDATOR, IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonLoading, IonMaxValidator, IonMenu, IonMenuButton, IonMenuToggle, IonMinValidator, IonModal, IonNav, IonNavLink, IonNote, IonPicker, IonPopover, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRouterOutlet, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonTabs, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar, IonicModule, MenuController, ModalController, NumericValueAccessorDirective as NumericValueAccessor, PopoverController, RouterLinkDelegateDirective as RouterLinkDelegate, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegate, SelectValueAccessorDirective as SelectValueAccessor, TextValueAccessorDirective as TextValueAccessor, ToastController };
2699
2662
  //# sourceMappingURL=ionic-angular.mjs.map