@ionic/angular 8.8.9-dev.11780690416.19d0d667 → 8.8.9-dev.11780692883.1099c873
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/README.md +1 -1
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/fesm2022/ionic-angular-common.mjs +87 -84
- package/fesm2022/ionic-angular-common.mjs.map +1 -1
- package/fesm2022/ionic-angular-standalone.mjs +903 -911
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2022/ionic-angular.mjs +1065 -771
- package/fesm2022/ionic-angular.mjs.map +1 -1
- package/package.json +16 -16
- package/schematics/add/index.js +1 -1
- package/schematics/utils/ast.js +1 -2
- package/schematics/utils/config.js +10 -11
- package/schematics/utils/package.js +1 -2
- package/types/ionic-angular-common.d.ts +1013 -0
- package/types/ionic-angular-standalone.d.ts +1560 -0
- package/{directives/proxies.d.ts → types/ionic-angular.d.ts} +703 -478
- package/app-initialize.d.ts +0 -3
- package/common/directives/control-value-accessors/index.d.ts +0 -1
- package/common/directives/control-value-accessors/value-accessor.d.ts +0 -36
- package/common/directives/navigation/back-button.d.ts +0 -23
- package/common/directives/navigation/nav-params.d.ts +0 -45
- package/common/directives/navigation/nav.d.ts +0 -21
- package/common/directives/navigation/router-link-delegate.d.ts +0 -60
- package/common/directives/navigation/router-outlet.d.ts +0 -104
- package/common/directives/navigation/stack-controller.d.ts +0 -42
- package/common/directives/navigation/stack-utils.d.ts +0 -38
- package/common/directives/navigation/tabs.d.ts +0 -83
- package/common/index.d.ts +0 -22
- package/common/overlays/modal.d.ts +0 -62
- package/common/overlays/popover.d.ts +0 -46
- package/common/providers/angular-delegate.d.ts +0 -28
- package/common/providers/config.d.ts +0 -11
- package/common/providers/dom-controller.d.ts +0 -16
- package/common/providers/menu-controller.d.ts +0 -78
- package/common/providers/nav-controller.d.ts +0 -116
- package/common/providers/platform.d.ts +0 -174
- package/common/types/interfaces.d.ts +0 -8
- package/common/types/ionic-lifecycle-hooks.d.ts +0 -27
- package/common/types/overlay-options.d.ts +0 -16
- package/common/utils/overlay.d.ts +0 -21
- package/common/utils/proxy.d.ts +0 -8
- package/common/utils/routing.d.ts +0 -28
- package/common/utils/util.d.ts +0 -1
- package/css/ionic/bundle.ionic.css +0 -1
- package/css/ionic/bundle.ionic.css.map +0 -1
- package/css/ionic/core.ionic.css +0 -1
- package/css/ionic/core.ionic.css.map +0 -1
- package/css/ionic/global.bundle.ionic.css +0 -1
- package/css/ionic/global.bundle.ionic.css.map +0 -1
- package/css/ionic/ionic-swiper.ionic.css +0 -1
- package/css/ionic/ionic-swiper.ionic.css.map +0 -1
- package/css/ionic/link.ionic.css +0 -1
- package/css/ionic/link.ionic.css.map +0 -1
- package/css/ionic/structure.ionic.css +0 -1
- package/css/ionic/structure.ionic.css.map +0 -1
- package/css/ionic/typography.ionic.css +0 -1
- package/css/ionic/typography.ionic.css.map +0 -1
- package/css/ionic/utils.bundle.ionic.css +0 -1
- package/css/ionic/utils.bundle.ionic.css.map +0 -1
- package/directives/angular-component-lib/utils.d.ts +0 -9
- package/directives/control-value-accessors/boolean-value-accessor.d.ts +0 -10
- package/directives/control-value-accessors/index.d.ts +0 -4
- package/directives/control-value-accessors/numeric-value-accessor.d.ts +0 -11
- package/directives/control-value-accessors/select-value-accessor.d.ts +0 -9
- package/directives/control-value-accessors/text-value-accessor.d.ts +0 -9
- package/directives/navigation/ion-back-button.d.ts +0 -9
- package/directives/navigation/ion-nav.d.ts +0 -8
- package/directives/navigation/ion-router-outlet.d.ts +0 -25
- package/directives/navigation/ion-tabs.d.ts +0 -13
- package/directives/navigation/router-link-delegate.d.ts +0 -16
- package/directives/overlays/modal.d.ts +0 -6
- package/directives/overlays/popover.d.ts +0 -6
- package/directives/proxies-list.d.ts +0 -2
- package/directives/validators/index.d.ts +0 -2
- package/directives/validators/max-validator.d.ts +0 -12
- package/directives/validators/min-validator.d.ts +0 -12
- package/esm2022/app-initialize.mjs +0 -29
- package/esm2022/common/directives/control-value-accessors/index.mjs +0 -2
- package/esm2022/common/directives/control-value-accessors/value-accessor.mjs +0 -153
- package/esm2022/common/directives/navigation/back-button.mjs +0 -61
- package/esm2022/common/directives/navigation/nav-params.mjs +0 -47
- package/esm2022/common/directives/navigation/nav.mjs +0 -49
- package/esm2022/common/directives/navigation/router-link-delegate.mjs +0 -156
- package/esm2022/common/directives/navigation/router-outlet.mjs +0 -480
- package/esm2022/common/directives/navigation/stack-controller.mjs +0 -280
- package/esm2022/common/directives/navigation/stack-utils.mjs +0 -73
- package/esm2022/common/directives/navigation/tabs.mjs +0 -279
- package/esm2022/common/index.mjs +0 -20
- package/esm2022/common/ionic-angular-common.mjs +0 -5
- package/esm2022/common/overlays/modal.mjs +0 -103
- package/esm2022/common/overlays/popover.mjs +0 -91
- package/esm2022/common/providers/angular-delegate.mjs +0 -203
- package/esm2022/common/providers/config.mjs +0 -45
- package/esm2022/common/providers/dom-controller.mjs +0 -45
- package/esm2022/common/providers/menu-controller.mjs +0 -114
- package/esm2022/common/providers/nav-controller.mjs +0 -235
- package/esm2022/common/providers/platform.mjs +0 -258
- package/esm2022/common/types/interfaces.mjs +0 -2
- package/esm2022/common/types/ionic-lifecycle-hooks.mjs +0 -5
- package/esm2022/common/types/overlay-options.mjs +0 -2
- package/esm2022/common/utils/overlay.mjs +0 -26
- package/esm2022/common/utils/proxy.mjs +0 -47
- package/esm2022/common/utils/routing.mjs +0 -55
- package/esm2022/common/utils/util.mjs +0 -10
- package/esm2022/directives/angular-component-lib/utils.mjs +0 -59
- package/esm2022/directives/control-value-accessors/boolean-value-accessor.mjs +0 -42
- package/esm2022/directives/control-value-accessors/index.mjs +0 -5
- package/esm2022/directives/control-value-accessors/numeric-value-accessor.mjs +0 -50
- package/esm2022/directives/control-value-accessors/select-value-accessor.mjs +0 -39
- package/esm2022/directives/control-value-accessors/text-value-accessor.mjs +0 -38
- package/esm2022/directives/navigation/ion-back-button.mjs +0 -24
- package/esm2022/directives/navigation/ion-nav.mjs +0 -21
- package/esm2022/directives/navigation/ion-router-outlet.mjs +0 -52
- package/esm2022/directives/navigation/ion-tabs.mjs +0 -59
- package/esm2022/directives/navigation/router-link-delegate.mjs +0 -32
- package/esm2022/directives/overlays/modal.mjs +0 -22
- package/esm2022/directives/overlays/popover.mjs +0 -18
- package/esm2022/directives/proxies-list.mjs +0 -93
- package/esm2022/directives/proxies.mjs +0 -2465
- package/esm2022/directives/validators/index.mjs +0 -3
- package/esm2022/directives/validators/max-validator.mjs +0 -27
- package/esm2022/directives/validators/min-validator.mjs +0 -27
- package/esm2022/index.mjs +0 -32
- package/esm2022/ionic-angular.mjs +0 -5
- package/esm2022/ionic-module.mjs +0 -111
- package/esm2022/providers/action-sheet-controller.mjs +0 -19
- package/esm2022/providers/alert-controller.mjs +0 -19
- package/esm2022/providers/animation-controller.mjs +0 -38
- package/esm2022/providers/gesture-controller.mjs +0 -33
- package/esm2022/providers/loading-controller.mjs +0 -19
- package/esm2022/providers/menu-controller.mjs +0 -19
- package/esm2022/providers/modal-controller.mjs +0 -26
- package/esm2022/providers/picker-controller.mjs +0 -22
- package/esm2022/providers/popover-controller.mjs +0 -19
- package/esm2022/providers/toast-controller.mjs +0 -19
- package/esm2022/standalone/directives/angular-component-lib/utils.mjs +0 -59
- package/esm2022/standalone/directives/checkbox.mjs +0 -76
- package/esm2022/standalone/directives/datetime.mjs +0 -95
- package/esm2022/standalone/directives/icon.mjs +0 -35
- package/esm2022/standalone/directives/index.mjs +0 -13
- package/esm2022/standalone/directives/input-otp.mjs +0 -90
- package/esm2022/standalone/directives/input.mjs +0 -113
- package/esm2022/standalone/directives/proxies.mjs +0 -2356
- package/esm2022/standalone/directives/radio-group.mjs +0 -60
- package/esm2022/standalone/directives/range.mjs +0 -78
- package/esm2022/standalone/directives/searchbar.mjs +0 -82
- package/esm2022/standalone/directives/segment.mjs +0 -60
- package/esm2022/standalone/directives/select.mjs +0 -84
- package/esm2022/standalone/directives/textarea.mjs +0 -91
- package/esm2022/standalone/directives/toggle.mjs +0 -76
- package/esm2022/standalone/index.mjs +0 -25
- package/esm2022/standalone/ionic-angular-standalone.mjs +0 -5
- package/esm2022/standalone/navigation/back-button.mjs +0 -32
- package/esm2022/standalone/navigation/nav.mjs +0 -28
- package/esm2022/standalone/navigation/router-link-delegate.mjs +0 -28
- package/esm2022/standalone/navigation/router-outlet.mjs +0 -60
- package/esm2022/standalone/navigation/tabs.mjs +0 -58
- package/esm2022/standalone/overlays/modal.mjs +0 -32
- package/esm2022/standalone/overlays/popover.mjs +0 -28
- package/esm2022/standalone/providers/action-sheet-controller.mjs +0 -21
- package/esm2022/standalone/providers/alert-controller.mjs +0 -21
- package/esm2022/standalone/providers/animation-controller.mjs +0 -38
- package/esm2022/standalone/providers/gesture-controller.mjs +0 -33
- package/esm2022/standalone/providers/ionic-angular.mjs +0 -38
- package/esm2022/standalone/providers/loading-controller.mjs +0 -21
- package/esm2022/standalone/providers/menu-controller.mjs +0 -19
- package/esm2022/standalone/providers/modal-controller.mjs +0 -28
- package/esm2022/standalone/providers/picker-controller.mjs +0 -24
- package/esm2022/standalone/providers/popover-controller.mjs +0 -21
- package/esm2022/standalone/providers/toast-controller.mjs +0 -21
- package/index.d.ts +0 -27
- package/ionic-module.d.ts +0 -28
- package/providers/action-sheet-controller.d.ts +0 -8
- package/providers/alert-controller.d.ts +0 -8
- package/providers/animation-controller.d.ts +0 -25
- package/providers/gesture-controller.d.ts +0 -13
- package/providers/loading-controller.d.ts +0 -8
- package/providers/menu-controller.d.ts +0 -7
- package/providers/modal-controller.d.ts +0 -12
- package/providers/picker-controller.d.ts +0 -11
- package/providers/popover-controller.d.ts +0 -9
- package/providers/toast-controller.d.ts +0 -8
- package/standalone/directives/angular-component-lib/utils.d.ts +0 -9
- package/standalone/directives/checkbox.d.ts +0 -30
- package/standalone/directives/datetime.d.ts +0 -30
- package/standalone/directives/icon.d.ts +0 -9
- package/standalone/directives/index.d.ts +0 -12
- package/standalone/directives/input-otp.d.ts +0 -49
- package/standalone/directives/input.d.ts +0 -47
- package/standalone/directives/proxies.d.ts +0 -1062
- package/standalone/directives/radio-group.d.ts +0 -18
- package/standalone/directives/range.d.ts +0 -47
- package/standalone/directives/searchbar.d.ts +0 -45
- package/standalone/directives/segment.d.ts +0 -19
- package/standalone/directives/select.d.ts +0 -34
- package/standalone/directives/textarea.d.ts +0 -37
- package/standalone/directives/toggle.d.ts +0 -28
- package/standalone/index.d.ts +0 -23
- package/standalone/navigation/back-button.d.ts +0 -9
- package/standalone/navigation/nav.d.ts +0 -8
- package/standalone/navigation/router-link-delegate.d.ts +0 -10
- package/standalone/navigation/router-outlet.d.ts +0 -25
- package/standalone/navigation/tabs.d.ts +0 -13
- package/standalone/overlays/modal.d.ts +0 -6
- package/standalone/overlays/popover.d.ts +0 -6
- package/standalone/providers/action-sheet-controller.d.ts +0 -8
- package/standalone/providers/alert-controller.d.ts +0 -8
- package/standalone/providers/animation-controller.d.ts +0 -25
- package/standalone/providers/gesture-controller.d.ts +0 -13
- package/standalone/providers/ionic-angular.d.ts +0 -7
- package/standalone/providers/loading-controller.d.ts +0 -8
- package/standalone/providers/menu-controller.d.ts +0 -7
- package/standalone/providers/modal-controller.d.ts +0 -12
- package/standalone/providers/picker-controller.d.ts +0 -11
- package/standalone/providers/popover-controller.d.ts +0 -9
- package/standalone/providers/toast-controller.d.ts +0 -8
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DomController {
|
|
3
|
-
/**
|
|
4
|
-
* Schedules a task to run during the READ phase of the next frame.
|
|
5
|
-
* This task should only read the DOM, but never modify it.
|
|
6
|
-
*/
|
|
7
|
-
read(cb: RafCallback): void;
|
|
8
|
-
/**
|
|
9
|
-
* Schedules a task to run during the WRITE phase of the next frame.
|
|
10
|
-
* This task should write the DOM, but never READ it.
|
|
11
|
-
*/
|
|
12
|
-
write(cb: RafCallback): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DomController, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DomController>;
|
|
15
|
-
}
|
|
16
|
-
export type RafCallback = (timeStamp?: number) => void;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { MenuControllerI, AnimationBuilder, MenuI, Animation } from '@ionic/core/components';
|
|
2
|
-
export declare class MenuController implements MenuControllerI {
|
|
3
|
-
private menuController;
|
|
4
|
-
constructor(menuController: MenuControllerI);
|
|
5
|
-
/**
|
|
6
|
-
* Programmatically open the Menu.
|
|
7
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
8
|
-
* @return returns a promise when the menu is fully opened
|
|
9
|
-
*/
|
|
10
|
-
open(menuId?: string): Promise<boolean>;
|
|
11
|
-
/**
|
|
12
|
-
* Programmatically close the Menu. If no `menuId` is given as the first
|
|
13
|
-
* argument then it'll close any menu which is open. If a `menuId`
|
|
14
|
-
* is given then it'll close that exact menu.
|
|
15
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
16
|
-
* @return returns a promise when the menu is fully closed
|
|
17
|
-
*/
|
|
18
|
-
close(menuId?: string): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Toggle the menu. If it's closed, it will open, and if opened, it
|
|
21
|
-
* will close.
|
|
22
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
23
|
-
* @return returns a promise when the menu has been toggled
|
|
24
|
-
*/
|
|
25
|
-
toggle(menuId?: string): Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Used to enable or disable a menu. For example, there could be multiple
|
|
28
|
-
* left menus, but only one of them should be able to be opened at the same
|
|
29
|
-
* time. If there are multiple menus on the same side, then enabling one menu
|
|
30
|
-
* will also automatically disable all the others that are on the same side.
|
|
31
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
32
|
-
* @return Returns the instance of the menu, which is useful for chaining.
|
|
33
|
-
*/
|
|
34
|
-
enable(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement | undefined>;
|
|
35
|
-
/**
|
|
36
|
-
* Used to enable or disable the ability to swipe open the menu.
|
|
37
|
-
* @param shouldEnable True if it should be swipe-able, false if not.
|
|
38
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
39
|
-
* @return Returns the instance of the menu, which is useful for chaining.
|
|
40
|
-
*/
|
|
41
|
-
swipeGesture(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement | undefined>;
|
|
42
|
-
/**
|
|
43
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
44
|
-
* @return Returns true if the specified menu is currently open, otherwise false.
|
|
45
|
-
* If the menuId is not specified, it returns true if ANY menu is currenly open.
|
|
46
|
-
*/
|
|
47
|
-
isOpen(menuId?: string): Promise<boolean>;
|
|
48
|
-
/**
|
|
49
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
50
|
-
* @return Returns true if the menu is currently enabled, otherwise false.
|
|
51
|
-
*/
|
|
52
|
-
isEnabled(menuId?: string): Promise<boolean>;
|
|
53
|
-
/**
|
|
54
|
-
* Used to get a menu instance. If a `menuId` is not provided then it'll
|
|
55
|
-
* return the first menu found. If a `menuId` is `left` or `right`, then
|
|
56
|
-
* it'll return the enabled menu on that side. Otherwise, if a `menuId` is
|
|
57
|
-
* provided, then it'll try to find the menu using the menu's `id`
|
|
58
|
-
* property. If a menu is not found then it'll return `null`.
|
|
59
|
-
* @param [menuId] Optionally get the menu by its id, or side.
|
|
60
|
-
* @return Returns the instance of the menu if found, otherwise `null`.
|
|
61
|
-
*/
|
|
62
|
-
get(menuId?: string): Promise<HTMLIonMenuElement | undefined>;
|
|
63
|
-
/**
|
|
64
|
-
* @return Returns the instance of the menu already opened, otherwise `null`.
|
|
65
|
-
*/
|
|
66
|
-
getOpen(): Promise<HTMLIonMenuElement | undefined>;
|
|
67
|
-
/**
|
|
68
|
-
* @return Returns an array of all menu instances.
|
|
69
|
-
*/
|
|
70
|
-
getMenus(): Promise<HTMLIonMenuElement[]>;
|
|
71
|
-
registerAnimation(name: string, animation: AnimationBuilder): void;
|
|
72
|
-
isAnimating(): Promise<boolean>;
|
|
73
|
-
_getOpenSync(): HTMLIonMenuElement | undefined;
|
|
74
|
-
_createAnimation(type: string, menuCmp: MenuI): Promise<Animation>;
|
|
75
|
-
_register(menu: MenuI): void;
|
|
76
|
-
_unregister(menu: MenuI): void;
|
|
77
|
-
_setOpen(menu: MenuI, shouldOpen: boolean, animated: boolean): Promise<boolean>;
|
|
78
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Location } from '@angular/common';
|
|
2
|
-
import { NavigationExtras, Router, UrlSerializer, UrlTree } from '@angular/router';
|
|
3
|
-
import type { AnimationBuilder, NavDirection, RouterDirection } from '@ionic/core/components';
|
|
4
|
-
import { IonRouterOutlet } from '../directives/navigation/router-outlet';
|
|
5
|
-
import { Platform } from './platform';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export interface AnimationOptions {
|
|
8
|
-
animated?: boolean;
|
|
9
|
-
animation?: AnimationBuilder;
|
|
10
|
-
animationDirection?: 'forward' | 'back';
|
|
11
|
-
}
|
|
12
|
-
export interface NavigationOptions extends NavigationExtras, AnimationOptions {
|
|
13
|
-
}
|
|
14
|
-
export declare class NavController {
|
|
15
|
-
private location;
|
|
16
|
-
private serializer;
|
|
17
|
-
private router?;
|
|
18
|
-
private topOutlet?;
|
|
19
|
-
private direction;
|
|
20
|
-
private animated?;
|
|
21
|
-
private animationBuilder?;
|
|
22
|
-
private guessDirection;
|
|
23
|
-
private guessAnimation?;
|
|
24
|
-
private lastNavId;
|
|
25
|
-
constructor(platform: Platform, location: Location, serializer: UrlSerializer, router?: Router | undefined);
|
|
26
|
-
/**
|
|
27
|
-
* This method uses Angular's [Router](https://angular.io/api/router/Router) under the hood,
|
|
28
|
-
* it's equivalent to calling `this.router.navigateByUrl()`, but it's explicit about the **direction** of the transition.
|
|
29
|
-
*
|
|
30
|
-
* Going **forward** means that a new page is going to be pushed to the stack of the outlet (ion-router-outlet),
|
|
31
|
-
* and that it will show a "forward" animation by default.
|
|
32
|
-
*
|
|
33
|
-
* Navigating forward can also be triggered in a declarative manner by using the `[routerDirection]` directive:
|
|
34
|
-
*
|
|
35
|
-
* ```html
|
|
36
|
-
* <a routerLink="/path/to/page" routerDirection="forward">Link</a>
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
navigateForward(url: string | UrlTree | any[], options?: NavigationOptions): Promise<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* This method uses Angular's [Router](https://angular.io/api/router/Router) under the hood,
|
|
42
|
-
* it's equivalent to calling:
|
|
43
|
-
*
|
|
44
|
-
* ```ts
|
|
45
|
-
* this.navController.setDirection('back');
|
|
46
|
-
* this.router.navigateByUrl(path);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* Going **back** means that all the pages in the stack until the navigated page is found will be popped,
|
|
50
|
-
* and that it will show a "back" animation by default.
|
|
51
|
-
*
|
|
52
|
-
* Navigating back can also be triggered in a declarative manner by using the `[routerDirection]` directive:
|
|
53
|
-
*
|
|
54
|
-
* ```html
|
|
55
|
-
* <a routerLink="/path/to/page" routerDirection="back">Link</a>
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
navigateBack(url: string | UrlTree | any[], options?: NavigationOptions): Promise<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* This method uses Angular's [Router](https://angular.io/api/router/Router) under the hood,
|
|
61
|
-
* it's equivalent to calling:
|
|
62
|
-
*
|
|
63
|
-
* ```ts
|
|
64
|
-
* this.navController.setDirection('root');
|
|
65
|
-
* this.router.navigateByUrl(path);
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* Going **root** means that all existing pages in the stack will be removed,
|
|
69
|
-
* and the navigated page will become the single page in the stack.
|
|
70
|
-
*
|
|
71
|
-
* Navigating root can also be triggered in a declarative manner by using the `[routerDirection]` directive:
|
|
72
|
-
*
|
|
73
|
-
* ```html
|
|
74
|
-
* <a routerLink="/path/to/page" routerDirection="root">Link</a>
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
navigateRoot(url: string | UrlTree | any[], options?: NavigationOptions): Promise<boolean>;
|
|
78
|
-
/**
|
|
79
|
-
* Same as [Location](https://angular.io/api/common/Location)'s back() method.
|
|
80
|
-
* It will use the standard `window.history.back()` under the hood, but featuring a `back` animation
|
|
81
|
-
* by default.
|
|
82
|
-
*/
|
|
83
|
-
back(options?: AnimationOptions): void;
|
|
84
|
-
/**
|
|
85
|
-
* This methods goes back in the context of Ionic's stack navigation.
|
|
86
|
-
*
|
|
87
|
-
* It recursively finds the top active `ion-router-outlet` and calls `pop()`.
|
|
88
|
-
* This is the recommended way to go back when you are using `ion-router-outlet`.
|
|
89
|
-
*
|
|
90
|
-
* Resolves to `true` if it was able to pop.
|
|
91
|
-
*/
|
|
92
|
-
pop(): Promise<boolean>;
|
|
93
|
-
/**
|
|
94
|
-
* This methods specifies the direction of the next navigation performed by the Angular router.
|
|
95
|
-
*
|
|
96
|
-
* `setDirection()` does not trigger any transition, it just sets some flags to be consumed by `ion-router-outlet`.
|
|
97
|
-
*
|
|
98
|
-
* It's recommended to use `navigateForward()`, `navigateBack()` and `navigateRoot()` instead of `setDirection()`.
|
|
99
|
-
*/
|
|
100
|
-
setDirection(direction: RouterDirection, animated?: boolean, animationDirection?: 'forward' | 'back', animationBuilder?: AnimationBuilder): void;
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
setTopOutlet(outlet: IonRouterOutlet): void;
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
|
-
consumeTransition(): {
|
|
109
|
-
direction: RouterDirection;
|
|
110
|
-
animation: NavDirection | undefined;
|
|
111
|
-
animationBuilder: AnimationBuilder | undefined;
|
|
112
|
-
};
|
|
113
|
-
private navigate;
|
|
114
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavController, [null, null, null, { optional: true; }]>;
|
|
115
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NavController>;
|
|
116
|
-
}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import type { BackButtonEventDetail, KeyboardEventDetail, Platforms } from '@ionic/core/components';
|
|
3
|
-
import { Subscription, Subject } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface BackButtonEmitter extends Subject<BackButtonEventDetail> {
|
|
6
|
-
subscribeWithPriority(priority: number, callback: (processNextHandler: () => void) => Promise<any> | void): Subscription;
|
|
7
|
-
}
|
|
8
|
-
export declare class Platform {
|
|
9
|
-
private doc;
|
|
10
|
-
private _readyPromise;
|
|
11
|
-
private win;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
backButton: BackButtonEmitter;
|
|
16
|
-
/**
|
|
17
|
-
* The keyboardDidShow event emits when the
|
|
18
|
-
* on-screen keyboard is presented.
|
|
19
|
-
*/
|
|
20
|
-
keyboardDidShow: Subject<KeyboardEventDetail>;
|
|
21
|
-
/**
|
|
22
|
-
* The keyboardDidHide event emits when the
|
|
23
|
-
* on-screen keyboard is hidden.
|
|
24
|
-
*/
|
|
25
|
-
keyboardDidHide: Subject<void>;
|
|
26
|
-
/**
|
|
27
|
-
* The pause event emits when the native platform puts the application
|
|
28
|
-
* into the background, typically when the user switches to a different
|
|
29
|
-
* application. This event would emit when a Cordova app is put into
|
|
30
|
-
* the background, however, it would not fire on a standard web browser.
|
|
31
|
-
*/
|
|
32
|
-
pause: Subject<void>;
|
|
33
|
-
/**
|
|
34
|
-
* The resume event emits when the native platform pulls the application
|
|
35
|
-
* out from the background. This event would emit when a Cordova app comes
|
|
36
|
-
* out from the background, however, it would not fire on a standard web browser.
|
|
37
|
-
*/
|
|
38
|
-
resume: Subject<void>;
|
|
39
|
-
/**
|
|
40
|
-
* The resize event emits when the browser window has changed dimensions. This
|
|
41
|
-
* could be from a browser window being physically resized, or from a device
|
|
42
|
-
* changing orientation.
|
|
43
|
-
*/
|
|
44
|
-
resize: Subject<void>;
|
|
45
|
-
constructor(doc: any, zone: NgZone);
|
|
46
|
-
/**
|
|
47
|
-
* @returns returns true/false based on platform.
|
|
48
|
-
* @description
|
|
49
|
-
* Depending on the platform the user is on, `is(platformName)` will
|
|
50
|
-
* return `true` or `false`. Note that the same app can return `true`
|
|
51
|
-
* for more than one platform name. For example, an app running from
|
|
52
|
-
* an iPad would return `true` for the platform names: `mobile`,
|
|
53
|
-
* `ios`, `ipad`, and `tablet`. Additionally, if the app was running
|
|
54
|
-
* from Cordova then `cordova` would be true, and if it was running
|
|
55
|
-
* from a web browser on the iPad then `mobileweb` would be `true`.
|
|
56
|
-
*
|
|
57
|
-
* ```
|
|
58
|
-
* import { Platform } from 'ionic-angular';
|
|
59
|
-
*
|
|
60
|
-
* @Component({...})
|
|
61
|
-
* export MyPage {
|
|
62
|
-
* constructor(public platform: Platform) {
|
|
63
|
-
* if (this.platform.is('ios')) {
|
|
64
|
-
* // This will only print when on iOS
|
|
65
|
-
* console.log('I am an iOS device!');
|
|
66
|
-
* }
|
|
67
|
-
* }
|
|
68
|
-
* }
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* | Platform Name | Description |
|
|
72
|
-
* |-----------------|------------------------------------|
|
|
73
|
-
* | android | on a device running Android. |
|
|
74
|
-
* | capacitor | on a device running Capacitor. |
|
|
75
|
-
* | cordova | on a device running Cordova. |
|
|
76
|
-
* | ios | on a device running iOS. |
|
|
77
|
-
* | ipad | on an iPad device. |
|
|
78
|
-
* | iphone | on an iPhone device. |
|
|
79
|
-
* | phablet | on a phablet device. |
|
|
80
|
-
* | tablet | on a tablet device. |
|
|
81
|
-
* | electron | in Electron on a desktop device. |
|
|
82
|
-
* | pwa | as a PWA app. |
|
|
83
|
-
* | mobile | on a mobile device. |
|
|
84
|
-
* | mobileweb | on a mobile device in a browser. |
|
|
85
|
-
* | desktop | on a desktop device. |
|
|
86
|
-
* | hybrid | is a cordova or capacitor app. |
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
is(platformName: Platforms): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* @returns the array of platforms
|
|
92
|
-
* @description
|
|
93
|
-
* Depending on what device you are on, `platforms` can return multiple values.
|
|
94
|
-
* Each possible value is a hierarchy of platforms. For example, on an iPhone,
|
|
95
|
-
* it would return `mobile`, `ios`, and `iphone`.
|
|
96
|
-
*
|
|
97
|
-
* ```
|
|
98
|
-
* import { Platform } from 'ionic-angular';
|
|
99
|
-
*
|
|
100
|
-
* @Component({...})
|
|
101
|
-
* export MyPage {
|
|
102
|
-
* constructor(public platform: Platform) {
|
|
103
|
-
* // This will print an array of the current platforms
|
|
104
|
-
* console.log(this.platform.platforms());
|
|
105
|
-
* }
|
|
106
|
-
* }
|
|
107
|
-
* ```
|
|
108
|
-
*/
|
|
109
|
-
platforms(): string[];
|
|
110
|
-
/**
|
|
111
|
-
* Returns a promise when the platform is ready and native functionality
|
|
112
|
-
* can be called. If the app is running from within a web browser, then
|
|
113
|
-
* the promise will resolve when the DOM is ready. When the app is running
|
|
114
|
-
* from an application engine such as Cordova, then the promise will
|
|
115
|
-
* resolve when Cordova triggers the `deviceready` event.
|
|
116
|
-
*
|
|
117
|
-
* The resolved value is the `readySource`, which states which platform
|
|
118
|
-
* ready was used. For example, when Cordova is ready, the resolved ready
|
|
119
|
-
* source is `cordova`. The default ready source value will be `dom`. The
|
|
120
|
-
* `readySource` is useful if different logic should run depending on the
|
|
121
|
-
* platform the app is running from. For example, only Cordova can execute
|
|
122
|
-
* the status bar plugin, so the web should not run status bar plugin logic.
|
|
123
|
-
*
|
|
124
|
-
* ```
|
|
125
|
-
* import { Component } from '@angular/core';
|
|
126
|
-
* import { Platform } from 'ionic-angular';
|
|
127
|
-
*
|
|
128
|
-
* @Component({...})
|
|
129
|
-
* export MyApp {
|
|
130
|
-
* constructor(public platform: Platform) {
|
|
131
|
-
* this.platform.ready().then((readySource) => {
|
|
132
|
-
* console.log('Platform ready from', readySource);
|
|
133
|
-
* // Platform now ready, execute any required native code
|
|
134
|
-
* });
|
|
135
|
-
* }
|
|
136
|
-
* }
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
ready(): Promise<string>;
|
|
140
|
-
/**
|
|
141
|
-
* Returns if this app is using right-to-left language direction or not.
|
|
142
|
-
* We recommend the app's `index.html` file already has the correct `dir`
|
|
143
|
-
* attribute value set, such as `<html dir="ltr">` or `<html dir="rtl">`.
|
|
144
|
-
* [W3C: Structural markup and right-to-left text in HTML](http://www.w3.org/International/questions/qa-html-dir)
|
|
145
|
-
*/
|
|
146
|
-
get isRTL(): boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Get the query string parameter
|
|
149
|
-
*/
|
|
150
|
-
getQueryParam(key: string): string | null;
|
|
151
|
-
/**
|
|
152
|
-
* Returns `true` if the app is in landscape mode.
|
|
153
|
-
*/
|
|
154
|
-
isLandscape(): boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Returns `true` if the app is in portrait mode.
|
|
157
|
-
*/
|
|
158
|
-
isPortrait(): boolean;
|
|
159
|
-
testUserAgent(expression: string): boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Get the current url.
|
|
162
|
-
*/
|
|
163
|
-
url(): string;
|
|
164
|
-
/**
|
|
165
|
-
* Gets the width of the platform's viewport using `window.innerWidth`.
|
|
166
|
-
*/
|
|
167
|
-
width(): number;
|
|
168
|
-
/**
|
|
169
|
-
* Gets the height of the platform's viewport using `window.innerHeight`.
|
|
170
|
-
*/
|
|
171
|
-
height(): number;
|
|
172
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
|
|
173
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
|
|
174
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* https://ionicframework.com/docs/api/router-outlet#life-cycle-hooks
|
|
3
|
-
*/
|
|
4
|
-
export interface ViewWillEnter {
|
|
5
|
-
/**
|
|
6
|
-
* Fired when the component routing to is about to animate into view.
|
|
7
|
-
*/
|
|
8
|
-
ionViewWillEnter(): void;
|
|
9
|
-
}
|
|
10
|
-
export interface ViewDidEnter {
|
|
11
|
-
/**
|
|
12
|
-
* Fired when the component routing to has finished animating.
|
|
13
|
-
*/
|
|
14
|
-
ionViewDidEnter(): void;
|
|
15
|
-
}
|
|
16
|
-
export interface ViewWillLeave {
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the component routing from is about to animate.
|
|
19
|
-
*/
|
|
20
|
-
ionViewWillLeave(): void;
|
|
21
|
-
}
|
|
22
|
-
export interface ViewDidLeave {
|
|
23
|
-
/**
|
|
24
|
-
* Fired when the component routing to has finished animating.
|
|
25
|
-
*/
|
|
26
|
-
ionViewDidLeave(): void;
|
|
27
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Injector } from '@angular/core';
|
|
2
|
-
import type { ComponentRef, ModalOptions as CoreModalOptions, PopoverOptions as CorePopoverOptions } from '@ionic/core/components';
|
|
3
|
-
/**
|
|
4
|
-
* Modal options with Angular-specific injector support.
|
|
5
|
-
* Extends @ionic/core ModalOptions with an optional injector property.
|
|
6
|
-
*/
|
|
7
|
-
export type ModalOptions<T extends ComponentRef = ComponentRef> = CoreModalOptions<T> & {
|
|
8
|
-
injector?: Injector;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Popover options with Angular-specific injector support.
|
|
12
|
-
* Extends @ionic/core PopoverOptions with an optional injector property.
|
|
13
|
-
*/
|
|
14
|
-
export type PopoverOptions<T extends ComponentRef = ComponentRef> = CorePopoverOptions<T> & {
|
|
15
|
-
injector?: Injector;
|
|
16
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface ControllerShape<Opts, HTMLElm> {
|
|
2
|
-
create(options: Opts): Promise<HTMLElm>;
|
|
3
|
-
dismiss(data?: any, role?: string, id?: string): Promise<boolean>;
|
|
4
|
-
getTop(): Promise<HTMLElm | undefined>;
|
|
5
|
-
}
|
|
6
|
-
export declare class OverlayBaseController<Opts, Overlay> implements ControllerShape<Opts, Overlay> {
|
|
7
|
-
private ctrl;
|
|
8
|
-
constructor(ctrl: ControllerShape<Opts, Overlay>);
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new overlay
|
|
11
|
-
*/
|
|
12
|
-
create(opts?: Opts): Promise<Overlay>;
|
|
13
|
-
/**
|
|
14
|
-
* When `id` is not provided, it dismisses the top overlay.
|
|
15
|
-
*/
|
|
16
|
-
dismiss(data?: any, role?: string, id?: string): Promise<boolean>;
|
|
17
|
-
/**
|
|
18
|
-
* Returns the top overlay.
|
|
19
|
-
*/
|
|
20
|
-
getTop(): Promise<Overlay | undefined>;
|
|
21
|
-
}
|
package/common/utils/proxy.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
-
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
-
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
-
export declare function ProxyCmp(opts: {
|
|
5
|
-
defineCustomElementFn?: () => void;
|
|
6
|
-
inputs?: any;
|
|
7
|
-
methods?: any;
|
|
8
|
-
}): (cls: any) => any;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';
|
|
2
|
-
/**
|
|
3
|
-
* Provides a way to customize when activated routes get reused.
|
|
4
|
-
*/
|
|
5
|
-
export declare class IonicRouteStrategy implements RouteReuseStrategy {
|
|
6
|
-
/**
|
|
7
|
-
* Whether the given route should detach for later reuse.
|
|
8
|
-
*/
|
|
9
|
-
shouldDetach(_route: ActivatedRouteSnapshot): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Returns `false`, meaning the route (and its subtree) is never reattached
|
|
12
|
-
*/
|
|
13
|
-
shouldAttach(_route: ActivatedRouteSnapshot): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* A no-op; the route is never stored since this strategy never detaches routes for later re-use.
|
|
16
|
-
*/
|
|
17
|
-
store(_route: ActivatedRouteSnapshot, _detachedTree: DetachedRouteHandle): void;
|
|
18
|
-
/**
|
|
19
|
-
* Returns `null` because this strategy does not store routes for later re-use.
|
|
20
|
-
*/
|
|
21
|
-
retrieve(_route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
|
|
22
|
-
/**
|
|
23
|
-
* Determines if a route should be reused.
|
|
24
|
-
* This strategy returns `true` when the future route config and
|
|
25
|
-
* current route config are identical and all route parameters are identical.
|
|
26
|
-
*/
|
|
27
|
-
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
|
28
|
-
}
|
package/common/utils/util.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const raf: (h: any) => any;
|