@ionic/angular 7.5.6-dev.11700149859.12fc59a6 → 7.5.6-dev.11700169088.140f3e6a

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 (72) hide show
  1. package/common/directives/navigation/router-outlet.d.ts +3 -4
  2. package/common/index.d.ts +0 -2
  3. package/css/core.css +66 -0
  4. package/css/core.css.map +1 -1
  5. package/css/display.css +44 -0
  6. package/css/display.css.map +1 -1
  7. package/css/float-elements.css +44 -0
  8. package/css/float-elements.css.map +1 -1
  9. package/css/global.bundle.css +88 -0
  10. package/css/global.bundle.css.map +1 -1
  11. package/css/ionic-swiper.css +22 -0
  12. package/css/ionic-swiper.css.map +1 -1
  13. package/css/ionic.bundle.css.map +1 -1
  14. package/css/padding.css +44 -0
  15. package/css/padding.css.map +1 -1
  16. package/css/structure.css +44 -0
  17. package/css/structure.css.map +1 -1
  18. package/css/text-alignment.css +44 -0
  19. package/css/text-alignment.css.map +1 -1
  20. package/css/text-transformation.css +44 -0
  21. package/css/text-transformation.css.map +1 -1
  22. package/css/typography.css +44 -0
  23. package/css/typography.css.map +1 -1
  24. package/css/utils.bundle.css +220 -0
  25. package/css/utils.bundle.css.map +1 -1
  26. package/directives/control-value-accessors/index.d.ts +1 -0
  27. package/directives/control-value-accessors/radio-value-accessor.d.ts +9 -0
  28. package/directives/navigation/ion-router-outlet.d.ts +4 -5
  29. package/esm2020/common/directives/navigation/router-outlet.mjs +6 -14
  30. package/esm2020/common/index.mjs +1 -3
  31. package/esm2020/directives/control-value-accessors/index.mjs +2 -1
  32. package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +42 -0
  33. package/esm2020/directives/navigation/ion-router-outlet.mjs +9 -13
  34. package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
  35. package/esm2020/index.mjs +5 -2
  36. package/esm2020/ionic-module.mjs +5 -2
  37. package/esm2020/providers/alert-controller.mjs +18 -0
  38. package/esm2020/providers/picker-controller.mjs +18 -0
  39. package/esm2020/standalone/directives/index.mjs +2 -1
  40. package/esm2020/standalone/directives/proxies.mjs +1 -30
  41. package/esm2020/standalone/directives/radio.mjs +62 -0
  42. package/esm2020/standalone/index.mjs +5 -3
  43. package/esm2020/standalone/navigation/router-outlet.mjs +9 -13
  44. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  45. package/esm2020/standalone/providers/alert-controller.mjs +18 -0
  46. package/esm2020/standalone/providers/picker-controller.mjs +21 -0
  47. package/fesm2015/ionic-angular-common.mjs +7 -43
  48. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  49. package/fesm2015/ionic-angular-standalone.mjs +157 -104
  50. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  51. package/fesm2015/ionic-angular.mjs +81 -16
  52. package/fesm2015/ionic-angular.mjs.map +1 -1
  53. package/fesm2020/ionic-angular-common.mjs +7 -43
  54. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  55. package/fesm2020/ionic-angular-standalone.mjs +157 -104
  56. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  57. package/fesm2020/ionic-angular.mjs +81 -16
  58. package/fesm2020/ionic-angular.mjs.map +1 -1
  59. package/index.d.ts +4 -1
  60. package/ionic-module.d.ts +12 -11
  61. package/package.json +2 -2
  62. package/providers/alert-controller.d.ts +8 -0
  63. package/providers/picker-controller.d.ts +8 -0
  64. package/standalone/directives/index.d.ts +1 -0
  65. package/standalone/directives/proxies.d.ts +0 -17
  66. package/standalone/directives/radio.d.ts +22 -0
  67. package/standalone/index.d.ts +4 -2
  68. package/standalone/navigation/router-outlet.d.ts +4 -5
  69. package/{common → standalone}/providers/alert-controller.d.ts +1 -1
  70. package/{common → standalone}/providers/picker-controller.d.ts +1 -1
  71. package/esm2020/common/providers/alert-controller.mjs +0 -18
  72. package/esm2020/common/providers/picker-controller.mjs +0 -18
@@ -1,15 +1,15 @@
1
1
  import * as i0 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';
2
+ import { Directive, HostListener, Component, ChangeDetectionStrategy, 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';
6
- export { AlertController, AngularDelegate, Config, DomController, IonicRouteStrategy, LoadingController, NavController, NavParams, PickerController, Platform } from '@ionic/angular/common';
6
+ export { AngularDelegate, Config, DomController, IonicRouteStrategy, LoadingController, NavController, NavParams, Platform } from '@ionic/angular/common';
7
7
  import { __decorate } from 'tslib';
8
8
  import { fromEvent } from 'rxjs';
9
9
  import * as i1 from '@angular/common';
10
10
  import { DOCUMENT, CommonModule } from '@angular/common';
11
11
  import * as i2 from '@angular/router';
12
- import { createAnimation, getTimeGivenProgression, actionSheetController, createGesture, menuController, modalController, popoverController, toastController, setupConfig } from '@ionic/core';
12
+ import { alertController, createAnimation, getTimeGivenProgression, actionSheetController, createGesture, menuController, modalController, pickerController, popoverController, toastController, setupConfig } from '@ionic/core';
13
13
  export { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getPlatforms, getTimeGivenProgression, iosTransitionAnimation, isPlatform, mdTransitionAnimation, openURL } from '@ionic/core';
14
14
  import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
15
15
 
@@ -88,6 +88,44 @@ 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
+
91
129
  class SelectValueAccessorDirective extends ValueAccessor {
92
130
  constructor(injector, el) {
93
131
  super(injector, el);
@@ -2107,18 +2145,17 @@ class IonRouterOutlet extends IonRouterOutlet$1 {
2107
2145
  * This results in APIs such as NavController.pop not working
2108
2146
  * in nested outlets because the parent outlet cannot be found.
2109
2147
  */
2110
- constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet) {
2111
- super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet);
2148
+ constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
2149
+ super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
2112
2150
  this.parentOutlet = parentOutlet;
2113
2151
  }
2114
2152
  }
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 });
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 });
2117
2155
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
2118
- type: Component,
2156
+ type: Directive,
2119
2157
  args: [{
2120
2158
  selector: 'ion-router-outlet',
2121
- template: '<ng-container #outletContent><ng-content></ng-content></ng-container>'
2122
2159
  }]
2123
2160
  }], ctorParameters: function () {
2124
2161
  return [{ type: undefined, decorators: [{
@@ -2129,15 +2166,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2129
2166
  }, {
2130
2167
  type: Attribute,
2131
2168
  args: ['tabs']
2132
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
2169
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
2133
2170
  type: SkipSelf
2134
2171
  }, {
2135
2172
  type: Optional
2136
2173
  }] }];
2137
- }, propDecorators: { outletContent: [{
2138
- type: ViewChild,
2139
- args: ['outletContent', { read: ViewContainerRef }]
2140
- }] } });
2174
+ } });
2141
2175
 
2142
2176
  // eslint-disable-next-line @angular-eslint/component-class-suffix
2143
2177
  class IonTabs extends IonTabs$1 {
@@ -2154,7 +2188,7 @@ class IonTabs extends IonTabs$1 {
2154
2188
  ></ion-router-outlet>
2155
2189
  </div>
2156
2190
  <ng-content></ng-content>
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" }] });
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" }] });
2158
2192
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, decorators: [{
2159
2193
  type: Component,
2160
2194
  args: [{ selector: 'ion-tabs', template: `
@@ -2323,6 +2357,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2323
2357
  }]
2324
2358
  }] });
2325
2359
 
2360
+ class AlertController extends OverlayBaseController {
2361
+ constructor() {
2362
+ super(alertController);
2363
+ }
2364
+ }
2365
+ /** @nocollapse */ AlertController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2366
+ /** @nocollapse */ AlertController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, providedIn: 'root' });
2367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, decorators: [{
2368
+ type: Injectable,
2369
+ args: [{
2370
+ providedIn: 'root',
2371
+ }]
2372
+ }], ctorParameters: function () { return []; } });
2373
+
2326
2374
  class AnimationController {
2327
2375
  /**
2328
2376
  * Create a new animation
@@ -2430,6 +2478,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2430
2478
  type: Injectable
2431
2479
  }], ctorParameters: function () { return []; } });
2432
2480
 
2481
+ class PickerController extends OverlayBaseController {
2482
+ constructor() {
2483
+ super(pickerController);
2484
+ }
2485
+ }
2486
+ /** @nocollapse */ PickerController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2487
+ /** @nocollapse */ PickerController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, providedIn: 'root' });
2488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, decorators: [{
2489
+ type: Injectable,
2490
+ args: [{
2491
+ providedIn: 'root',
2492
+ }]
2493
+ }], ctorParameters: function () { return []; } });
2494
+
2433
2495
  class PopoverController extends OverlayBaseController {
2434
2496
  constructor() {
2435
2497
  super(popoverController);
@@ -2570,6 +2632,7 @@ const DECLARATIONS = [
2570
2632
  // ngModel accessors
2571
2633
  BooleanValueAccessorDirective,
2572
2634
  NumericValueAccessorDirective,
2635
+ RadioValueAccessorDirective,
2573
2636
  SelectValueAccessorDirective,
2574
2637
  TextValueAccessorDirective,
2575
2638
  // navigation
@@ -2611,6 +2674,7 @@ class IonicModule {
2611
2674
  // ngModel accessors
2612
2675
  BooleanValueAccessorDirective,
2613
2676
  NumericValueAccessorDirective,
2677
+ RadioValueAccessorDirective,
2614
2678
  SelectValueAccessorDirective,
2615
2679
  TextValueAccessorDirective,
2616
2680
  // navigation
@@ -2629,6 +2693,7 @@ class IonicModule {
2629
2693
  // ngModel accessors
2630
2694
  BooleanValueAccessorDirective,
2631
2695
  NumericValueAccessorDirective,
2696
+ RadioValueAccessorDirective,
2632
2697
  SelectValueAccessorDirective,
2633
2698
  TextValueAccessorDirective,
2634
2699
  // navigation
@@ -2658,5 +2723,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2658
2723
  * Generated bundle index. Do not edit.
2659
2724
  */
2660
2725
 
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 };
2726
+ export { ActionSheetController, AlertController, 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, PickerController, PopoverController, RadioValueAccessorDirective as RadioValueAccessor, RouterLinkDelegateDirective as RouterLinkDelegate, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegate, SelectValueAccessorDirective as SelectValueAccessor, TextValueAccessorDirective as TextValueAccessor, ToastController };
2662
2727
  //# sourceMappingURL=ionic-angular.mjs.map