@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.
- package/common/directives/navigation/router-outlet.d.ts +3 -4
- package/common/index.d.ts +0 -3
- package/css/core.css +66 -0
- package/css/core.css.map +1 -1
- package/css/display.css +44 -0
- package/css/display.css.map +1 -1
- package/css/float-elements.css +44 -0
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +88 -0
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +22 -0
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css +44 -0
- package/css/padding.css.map +1 -1
- package/css/structure.css +44 -0
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css +44 -0
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css +44 -0
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css +44 -0
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +220 -0
- package/css/utils.bundle.css.map +1 -1
- package/directives/control-value-accessors/index.d.ts +1 -0
- package/directives/control-value-accessors/radio-value-accessor.d.ts +9 -0
- package/directives/navigation/ion-router-outlet.d.ts +4 -5
- package/esm2020/common/directives/navigation/router-outlet.mjs +6 -14
- package/esm2020/common/index.mjs +1 -4
- package/esm2020/directives/control-value-accessors/index.mjs +2 -1
- package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +42 -0
- package/esm2020/directives/navigation/ion-router-outlet.mjs +9 -13
- package/esm2020/directives/navigation/ion-tabs.mjs +1 -1
- package/esm2020/index.mjs +6 -2
- package/esm2020/ionic-module.mjs +5 -2
- package/esm2020/providers/alert-controller.mjs +18 -0
- package/esm2020/providers/loading-controller.mjs +18 -0
- package/esm2020/providers/picker-controller.mjs +18 -0
- package/esm2020/standalone/directives/index.mjs +2 -1
- package/esm2020/standalone/directives/proxies.mjs +1 -30
- package/esm2020/standalone/directives/radio.mjs +62 -0
- package/esm2020/standalone/index.mjs +6 -3
- package/esm2020/standalone/navigation/router-outlet.mjs +9 -13
- package/esm2020/standalone/navigation/tabs.mjs +1 -1
- package/esm2020/standalone/providers/action-sheet-controller.mjs +3 -1
- package/esm2020/standalone/providers/alert-controller.mjs +20 -0
- package/esm2020/standalone/providers/loading-controller.mjs +20 -0
- package/esm2020/standalone/providers/modal-controller.mjs +3 -1
- package/esm2020/standalone/providers/picker-controller.mjs +20 -0
- package/esm2020/standalone/providers/popover-controller.mjs +3 -1
- package/esm2020/standalone/providers/toast-controller.mjs +3 -1
- package/fesm2015/ionic-angular-common.mjs +32 -82
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +176 -104
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +95 -16
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +32 -82
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +176 -104
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +95 -16
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/index.d.ts +5 -1
- package/ionic-module.d.ts +12 -11
- package/package.json +2 -2
- package/providers/alert-controller.d.ts +8 -0
- package/providers/loading-controller.d.ts +8 -0
- package/providers/picker-controller.d.ts +8 -0
- package/standalone/directives/index.d.ts +1 -0
- package/standalone/directives/proxies.d.ts +0 -17
- package/standalone/directives/radio.d.ts +22 -0
- package/standalone/index.d.ts +5 -2
- package/standalone/navigation/router-outlet.d.ts +4 -5
- package/{common → standalone}/providers/alert-controller.d.ts +1 -1
- package/{common → standalone}/providers/loading-controller.d.ts +1 -1
- package/{common → standalone}/providers/picker-controller.d.ts +1 -1
- package/esm2020/common/providers/alert-controller.mjs +0 -18
- package/esm2020/common/providers/loading-controller.mjs +0 -18
- 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,
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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 {
|
|
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
|