@ionic/angular 7.5.6-dev.11700520218.1c07312e → 7.5.6-dev.11701102039.134ebc28
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/index.d.ts +1 -0
- package/{standalone → common}/providers/loading-controller.d.ts +1 -1
- package/esm2020/common/index.mjs +2 -1
- package/esm2020/common/providers/loading-controller.mjs +18 -0
- package/esm2020/index.mjs +2 -3
- package/esm2020/standalone/index.mjs +2 -3
- package/fesm2015/ionic-angular-common.mjs +41 -27
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +3 -19
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +3 -17
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +41 -27
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +3 -19
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +3 -17
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/package.json +3 -3
- package/schematics/add/files/root/theme/variables.css +0 -241
- package/schematics/add/index.js +11 -77
- package/schematics/utils/ast.js +25 -10
- package/schematics/utils/config.js +16 -42
- package/schematics/utils/devkit-utils/ast-utils.js +488 -0
- package/schematics/utils/devkit-utils/change.js +96 -0
- package/schematics/utils/devkit-utils/route-utils.js +72 -0
- package/standalone/index.d.ts +1 -2
- package/esm2020/providers/loading-controller.mjs +0 -18
- package/esm2020/standalone/providers/loading-controller.mjs +0 -21
- package/providers/loading-controller.d.ts +0 -8
|
@@ -1,15 +1,54 @@
|
|
|
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 { loadingController, isPlatform, getPlatforms, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, componentOnReady } from '@ionic/core/components';
|
|
3
4
|
import * as i3 from '@angular/router';
|
|
4
5
|
import { NavigationStart, PRIMARY_OUTLET, ChildrenOutletContexts, ActivatedRoute, Router } from '@angular/router';
|
|
5
6
|
import * as i1 from '@angular/common';
|
|
6
7
|
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 LoadingController extends OverlayBaseController {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(loadingController);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** @nocollapse */ LoadingController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
/** @nocollapse */ LoadingController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, providedIn: 'root' });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingController, decorators: [{
|
|
46
|
+
type: Injectable,
|
|
47
|
+
args: [{
|
|
48
|
+
providedIn: 'root',
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return []; } });
|
|
51
|
+
|
|
13
52
|
class MenuController {
|
|
14
53
|
constructor(menuController) {
|
|
15
54
|
this.menuController = menuController;
|
|
@@ -2407,34 +2446,9 @@ class IonicRouteStrategy {
|
|
|
2407
2446
|
}
|
|
2408
2447
|
}
|
|
2409
2448
|
|
|
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
|
-
|
|
2435
2449
|
/**
|
|
2436
2450
|
* Generated bundle index. Do not edit.
|
|
2437
2451
|
*/
|
|
2438
2452
|
|
|
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 };
|
|
2453
|
+
export { AngularDelegate, Config, ConfigToken, DomController, IonBackButton, IonModal, IonNav, IonPopover, IonRouterOutlet, IonTabs, IonicRouteStrategy, LoadingController, MenuController, NavController, NavParams, OverlayBaseController, Platform, ProxyCmp, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, ValueAccessor, bindLifecycleEvents, provideComponentInputBinding, raf, setIonicClasses };
|
|
2440
2454
|
//# sourceMappingURL=ionic-angular-common.mjs.map
|