@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 () { return [{ type: undefined, decorators: [{
2124
2161
  type: Attribute,
@@ -2128,14 +2165,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2128
2165
  }, {
2129
2166
  type: Attribute,
2130
2167
  args: ['tabs']
2131
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
2168
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
2132
2169
  type: SkipSelf
2133
2170
  }, {
2134
2171
  type: Optional
2135
- }] }]; }, propDecorators: { outletContent: [{
2136
- type: ViewChild,
2137
- args: ['outletContent', { read: ViewContainerRef }]
2138
- }] } });
2172
+ }] }]; } });
2139
2173
 
2140
2174
  // eslint-disable-next-line @angular-eslint/component-class-suffix
2141
2175
  class IonTabs extends IonTabs$1 {
@@ -2152,7 +2186,7 @@ class IonTabs extends IonTabs$1 {
2152
2186
  ></ion-router-outlet>
2153
2187
  </div>
2154
2188
  <ng-content></ng-content>
2155
- `, 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" }] });
2189
+ `, 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" }] });
2156
2190
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTabs, decorators: [{
2157
2191
  type: Component,
2158
2192
  args: [{ selector: 'ion-tabs', template: `
@@ -2319,6 +2353,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2319
2353
  }]
2320
2354
  }] });
2321
2355
 
2356
+ class AlertController extends OverlayBaseController {
2357
+ constructor() {
2358
+ super(alertController);
2359
+ }
2360
+ }
2361
+ /** @nocollapse */ AlertController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2362
+ /** @nocollapse */ AlertController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, providedIn: 'root' });
2363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, decorators: [{
2364
+ type: Injectable,
2365
+ args: [{
2366
+ providedIn: 'root',
2367
+ }]
2368
+ }], ctorParameters: function () { return []; } });
2369
+
2322
2370
  class AnimationController {
2323
2371
  /**
2324
2372
  * Create a new animation
@@ -2429,6 +2477,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2429
2477
  type: Injectable
2430
2478
  }], ctorParameters: function () { return []; } });
2431
2479
 
2480
+ class PickerController extends OverlayBaseController {
2481
+ constructor() {
2482
+ super(pickerController);
2483
+ }
2484
+ }
2485
+ /** @nocollapse */ PickerController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2486
+ /** @nocollapse */ PickerController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, providedIn: 'root' });
2487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, decorators: [{
2488
+ type: Injectable,
2489
+ args: [{
2490
+ providedIn: 'root',
2491
+ }]
2492
+ }], ctorParameters: function () { return []; } });
2493
+
2432
2494
  class PopoverController extends OverlayBaseController {
2433
2495
  constructor() {
2434
2496
  super(popoverController);
@@ -2575,6 +2637,7 @@ const DECLARATIONS = [
2575
2637
  // ngModel accessors
2576
2638
  BooleanValueAccessorDirective,
2577
2639
  NumericValueAccessorDirective,
2640
+ RadioValueAccessorDirective,
2578
2641
  SelectValueAccessorDirective,
2579
2642
  TextValueAccessorDirective,
2580
2643
  // navigation
@@ -2616,6 +2679,7 @@ class IonicModule {
2616
2679
  // ngModel accessors
2617
2680
  BooleanValueAccessorDirective,
2618
2681
  NumericValueAccessorDirective,
2682
+ RadioValueAccessorDirective,
2619
2683
  SelectValueAccessorDirective,
2620
2684
  TextValueAccessorDirective,
2621
2685
  // navigation
@@ -2634,6 +2698,7 @@ class IonicModule {
2634
2698
  // ngModel accessors
2635
2699
  BooleanValueAccessorDirective,
2636
2700
  NumericValueAccessorDirective,
2701
+ RadioValueAccessorDirective,
2637
2702
  SelectValueAccessorDirective,
2638
2703
  TextValueAccessorDirective,
2639
2704
  // navigation
@@ -2663,5 +2728,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2663
2728
  * Generated bundle index. Do not edit.
2664
2729
  */
2665
2730
 
2666
- 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 };
2731
+ 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 };
2667
2732
  //# sourceMappingURL=ionic-angular.mjs.map