@ionic/angular 7.5.6-dev.11700149859.12fc59a6 → 7.5.6-dev.11700492285.1581ed02

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 (81) hide show
  1. package/common/directives/navigation/router-outlet.d.ts +3 -4
  2. package/common/index.d.ts +0 -3
  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 -4
  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 +6 -2
  36. package/esm2020/ionic-module.mjs +5 -2
  37. package/esm2020/providers/alert-controller.mjs +18 -0
  38. package/esm2020/providers/loading-controller.mjs +18 -0
  39. package/esm2020/providers/picker-controller.mjs +18 -0
  40. package/esm2020/standalone/directives/index.mjs +2 -1
  41. package/esm2020/standalone/directives/proxies.mjs +1 -30
  42. package/esm2020/standalone/directives/radio.mjs +62 -0
  43. package/esm2020/standalone/index.mjs +6 -3
  44. package/esm2020/standalone/navigation/router-outlet.mjs +9 -13
  45. package/esm2020/standalone/navigation/tabs.mjs +1 -1
  46. package/esm2020/standalone/providers/action-sheet-controller.mjs +3 -1
  47. package/esm2020/standalone/providers/alert-controller.mjs +20 -0
  48. package/esm2020/standalone/providers/loading-controller.mjs +20 -0
  49. package/esm2020/standalone/providers/modal-controller.mjs +3 -1
  50. package/esm2020/standalone/providers/picker-controller.mjs +20 -0
  51. package/esm2020/standalone/providers/popover-controller.mjs +3 -1
  52. package/esm2020/standalone/providers/toast-controller.mjs +3 -1
  53. package/fesm2015/ionic-angular-common.mjs +32 -82
  54. package/fesm2015/ionic-angular-common.mjs.map +1 -1
  55. package/fesm2015/ionic-angular-standalone.mjs +176 -104
  56. package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
  57. package/fesm2015/ionic-angular.mjs +95 -16
  58. package/fesm2015/ionic-angular.mjs.map +1 -1
  59. package/fesm2020/ionic-angular-common.mjs +32 -82
  60. package/fesm2020/ionic-angular-common.mjs.map +1 -1
  61. package/fesm2020/ionic-angular-standalone.mjs +176 -104
  62. package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
  63. package/fesm2020/ionic-angular.mjs +95 -16
  64. package/fesm2020/ionic-angular.mjs.map +1 -1
  65. package/index.d.ts +5 -1
  66. package/ionic-module.d.ts +12 -11
  67. package/package.json +2 -2
  68. package/providers/alert-controller.d.ts +8 -0
  69. package/providers/loading-controller.d.ts +8 -0
  70. package/providers/picker-controller.d.ts +8 -0
  71. package/standalone/directives/index.d.ts +1 -0
  72. package/standalone/directives/proxies.d.ts +0 -17
  73. package/standalone/directives/radio.d.ts +22 -0
  74. package/standalone/index.d.ts +5 -2
  75. package/standalone/navigation/router-outlet.d.ts +4 -5
  76. package/{common → standalone}/providers/alert-controller.d.ts +1 -1
  77. package/{common → standalone}/providers/loading-controller.d.ts +1 -1
  78. package/{common → standalone}/providers/picker-controller.d.ts +1 -1
  79. package/esm2020/common/providers/alert-controller.mjs +0 -18
  80. package/esm2020/common/providers/loading-controller.mjs +0 -18
  81. package/esm2020/common/providers/picker-controller.mjs +0 -18
@@ -1,68 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Inject, Optional, InjectionToken, inject, NgZone, ApplicationRef, Injector, createComponent, TemplateRef, Directive, ContentChild, EventEmitter, ViewContainerRef, EnvironmentInjector, Attribute, SkipSelf, Input, Output, reflectComponentType, HostListener, ElementRef, ViewChild } from '@angular/core';
3
- import { alertController, loadingController, pickerController, isPlatform, getPlatforms, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, componentOnReady } from '@ionic/core/components';
4
3
  import * as i3 from '@angular/router';
5
4
  import { NavigationStart, PRIMARY_OUTLET, ChildrenOutletContexts, ActivatedRoute, Router } from '@angular/router';
6
5
  import * as i1 from '@angular/common';
7
6
  import { DOCUMENT } from '@angular/common';
7
+ import { isPlatform, getPlatforms, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, componentOnReady } from '@ionic/core/components';
8
8
  import { Subject, fromEvent, BehaviorSubject, combineLatest, of } from 'rxjs';
9
9
  import { __decorate } from 'tslib';
10
10
  import { filter, switchMap, distinctUntilChanged } from 'rxjs/operators';
11
11
  import { NgControl } from '@angular/forms';
12
12
 
13
- // TODO(FW-2827): types
14
- class OverlayBaseController {
15
- constructor(ctrl) {
16
- this.ctrl = ctrl;
17
- }
18
- /**
19
- * Creates a new overlay
20
- */
21
- create(opts) {
22
- return this.ctrl.create((opts || {}));
23
- }
24
- /**
25
- * When `id` is not provided, it dismisses the top overlay.
26
- */
27
- dismiss(data, role, id) {
28
- return this.ctrl.dismiss(data, role, id);
29
- }
30
- /**
31
- * Returns the top overlay.
32
- */
33
- getTop() {
34
- return this.ctrl.getTop();
35
- }
36
- }
37
-
38
- class AlertController extends OverlayBaseController {
39
- constructor() {
40
- super(alertController);
41
- }
42
- }
43
- /** @nocollapse */ AlertController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
44
- /** @nocollapse */ AlertController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, providedIn: 'root' });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AlertController, decorators: [{
46
- type: Injectable,
47
- args: [{
48
- providedIn: 'root',
49
- }]
50
- }], ctorParameters: function () { return []; } });
51
-
52
- class LoadingController extends OverlayBaseController {
53
- constructor() {
54
- super(loadingController);
55
- }
56
- }
57
- /** @nocollapse */ LoadingController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
58
- /** @nocollapse */ LoadingController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, providedIn: 'root' });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, decorators: [{
60
- type: Injectable,
61
- args: [{
62
- providedIn: 'root',
63
- }]
64
- }], ctorParameters: function () { return []; } });
65
-
66
13
  class MenuController {
67
14
  constructor(menuController) {
68
15
  this.menuController = menuController;
@@ -155,20 +102,6 @@ class MenuController {
155
102
  }
156
103
  }
157
104
 
158
- class PickerController extends OverlayBaseController {
159
- constructor() {
160
- super(pickerController);
161
- }
162
- }
163
- /** @nocollapse */ PickerController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
164
- /** @nocollapse */ PickerController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, providedIn: 'root' });
165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PickerController, decorators: [{
166
- type: Injectable,
167
- args: [{
168
- providedIn: 'root',
169
- }]
170
- }], ctorParameters: function () { return []; } });
171
-
172
105
  class DomController {
173
106
  /**
174
107
  * Schedules a task to run during the READ phase of the next frame.
@@ -1459,8 +1392,7 @@ const cleanup = (activeRoute, views, viewsSnapshot, location, zone) => {
1459
1392
  // TODO(FW-2827): types
1460
1393
  // eslint-disable-next-line @angular-eslint/directive-class-suffix
1461
1394
  class IonRouterOutlet {
1462
- constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet) {
1463
- this.outletContent = outletContent;
1395
+ constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
1464
1396
  this.parentOutlet = parentOutlet;
1465
1397
  this.activatedView = null;
1466
1398
  // Maintain map of activated route proxies for each component instance
@@ -1647,15 +1579,8 @@ class IonRouterOutlet {
1647
1579
  const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
1648
1580
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1649
1581
  const component = snapshot.routeConfig.component ?? snapshot.component;
1650
- /**
1651
- * View components need to be added as a child of ion-router-outlet.
1652
- * However, createComponent mounts components as siblings of the
1653
- * ViewContainerRef. As a result, outletContent must reference
1654
- * an ng-container inside of ion-router-outlet and not
1655
- * ion-router-outlet itself.
1656
- */
1657
- cmpRef = this.activated = this.outletContent.createComponent(component, {
1658
- index: this.outletContent.length,
1582
+ cmpRef = this.activated = this.location.createComponent(component, {
1583
+ index: this.location.length,
1659
1584
  injector,
1660
1585
  environmentInjector: environmentInjector ?? this.environmentInjector,
1661
1586
  });
@@ -1774,7 +1699,7 @@ class IonRouterOutlet {
1774
1699
  this.currentActivatedRoute$.next({ component, activatedRoute });
1775
1700
  }
1776
1701
  }
1777
- /** @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 });
1702
+ /** @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 });
1778
1703
  /** @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 });
1779
1704
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
1780
1705
  type: Directive,
@@ -1792,7 +1717,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
1792
1717
  }, {
1793
1718
  type: Attribute,
1794
1719
  args: ['tabs']
1795
- }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: IonRouterOutlet, decorators: [{
1720
+ }] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i3.Router }, { type: i0.NgZone }, { type: i3.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
1796
1721
  type: SkipSelf
1797
1722
  }, {
1798
1723
  type: Optional
@@ -2482,9 +2407,34 @@ class IonicRouteStrategy {
2482
2407
  }
2483
2408
  }
2484
2409
 
2410
+ // TODO(FW-2827): types
2411
+ class OverlayBaseController {
2412
+ constructor(ctrl) {
2413
+ this.ctrl = ctrl;
2414
+ }
2415
+ /**
2416
+ * Creates a new overlay
2417
+ */
2418
+ create(opts) {
2419
+ return this.ctrl.create((opts || {}));
2420
+ }
2421
+ /**
2422
+ * When `id` is not provided, it dismisses the top overlay.
2423
+ */
2424
+ dismiss(data, role, id) {
2425
+ return this.ctrl.dismiss(data, role, id);
2426
+ }
2427
+ /**
2428
+ * Returns the top overlay.
2429
+ */
2430
+ getTop() {
2431
+ return this.ctrl.getTop();
2432
+ }
2433
+ }
2434
+
2485
2435
  /**
2486
2436
  * Generated bundle index. Do not edit.
2487
2437
  */
2488
2438
 
2489
- export { AlertController, AngularDelegate, Config, ConfigToken, DomController, IonBackButton, IonModal, IonNav, IonPopover, IonRouterOutlet, IonTabs, IonicRouteStrategy, LoadingController, MenuController, NavController, NavParams, OverlayBaseController, PickerController, Platform, ProxyCmp, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, ValueAccessor, bindLifecycleEvents, provideComponentInputBinding, raf, setIonicClasses };
2439
+ export { AngularDelegate, Config, ConfigToken, DomController, IonBackButton, IonModal, IonNav, IonPopover, IonRouterOutlet, IonTabs, IonicRouteStrategy, MenuController, NavController, NavParams, OverlayBaseController, Platform, ProxyCmp, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, ValueAccessor, bindLifecycleEvents, provideComponentInputBinding, raf, setIonicClasses };
2490
2440
  //# sourceMappingURL=ionic-angular-common.mjs.map