mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-03 19:43:27 +08:00
chore(stencil): update to latest
This commit is contained in:
8
core/package-lock.json
generated
8
core/package-lock.json
generated
@ -2239,7 +2239,7 @@
|
||||
},
|
||||
"onetime": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
|
||||
"dev": true
|
||||
},
|
||||
@ -6880,7 +6880,7 @@
|
||||
},
|
||||
"onetime": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
|
||||
"dev": true
|
||||
},
|
||||
@ -7069,7 +7069,7 @@
|
||||
},
|
||||
"onetime": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
|
||||
"dev": true
|
||||
},
|
||||
@ -8418,7 +8418,7 @@
|
||||
},
|
||||
"onetime": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
|
||||
"dev": true
|
||||
},
|
||||
|
||||
154
core/src/components.d.ts
vendored
154
core/src/components.d.ts
vendored
@ -134,8 +134,8 @@ import {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonActionSheetControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: ActionSheetOptions) => Promise<HTMLIonActionSheetElement>;
|
||||
'dismiss': (data?: any, role?: string, actionSheetId?: number) => Promise<void>;
|
||||
'create': (opts?: ActionSheetOptions | undefined) => Promise<HTMLIonActionSheetElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, actionSheetId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonActionSheetElement;
|
||||
}
|
||||
var HTMLIonActionSheetControllerElement: {
|
||||
@ -174,7 +174,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the action sheet overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* If true, the action sheet will be dismissed when the backdrop is clicked. Defaults to `true`.
|
||||
*/
|
||||
@ -195,11 +195,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the action-sheet did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await actionSheet.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the action-sheet will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await actionSheet.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* Present the action sheet overlay after it has been created.
|
||||
@ -304,8 +304,8 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonAlertControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: AlertOptions) => Promise<HTMLIonAlertElement>;
|
||||
'dismiss': (data?: any, role?: string, alertId?: number) => Promise<void>;
|
||||
'create': (opts?: AlertOptions | undefined) => Promise<HTMLIonAlertElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, alertId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonAlertElement;
|
||||
}
|
||||
var HTMLIonAlertControllerElement: {
|
||||
@ -344,7 +344,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the alert overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* If true, the alert will be dismissed when the backdrop is clicked. Defaults to `true`.
|
||||
*/
|
||||
@ -374,11 +374,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the alert did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await alert.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the alert will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await alert.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* Present the alert overlay after it has been created.
|
||||
@ -521,7 +521,7 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonAnimationControllerElement extends HTMLStencilElement {
|
||||
'create': (animationBuilder?: AnimationBuilder, baseEl?: any, opts?: any) => Promise<Animation>;
|
||||
'create': (animationBuilder?: AnimationBuilder | undefined, baseEl?: any, opts?: any) => Promise<Animation>;
|
||||
}
|
||||
var HTMLIonAnimationControllerElement: {
|
||||
prototype: HTMLIonAnimationControllerElement;
|
||||
@ -1360,14 +1360,14 @@ declare global {
|
||||
* If true, the content will scroll behind the headers and footers. This effect can easily be seen by setting the toolbar to transparent.
|
||||
*/
|
||||
'fullscreen': boolean;
|
||||
'scrollByPoint': (x: number, y: number, duration: number, done?: Function) => Promise<any>;
|
||||
'scrollByPoint': (x: number, y: number, duration: number, done?: Function | undefined) => Promise<any>;
|
||||
'scrollEnabled': boolean;
|
||||
'scrollEvents': boolean;
|
||||
/**
|
||||
* Scroll to the bottom of the content component. Duration of the scroll animation in milliseconds. Defaults to `300`. Returns a promise which is resolved when the scroll has completed.
|
||||
*/
|
||||
'scrollToBottom': (duration?: number) => Promise<void>;
|
||||
'scrollToPoint': (x: number, y: number, duration: number, done?: Function) => Promise<any>;
|
||||
'scrollToPoint': (x: number, y: number, duration: number, done?: Function | undefined) => Promise<any>;
|
||||
/**
|
||||
* Scroll to the top of the content component. Duration of the scroll animation in milliseconds. Defaults to `300`. Returns a promise which is resolved when the scroll has completed.
|
||||
*/
|
||||
@ -2835,11 +2835,11 @@ declare global {
|
||||
/**
|
||||
* Get the [Item Sliding](../../item-sliding/ItemSliding) that is currently opene.
|
||||
*/
|
||||
'getOpenItem': () => ItemSliding;
|
||||
'getOpenItem': () => ItemSliding | null;
|
||||
/**
|
||||
* Set an [Item Sliding](../../item-sliding/ItemSliding) as the open item.
|
||||
*/
|
||||
'setOpenItem': (itemSliding: ItemSliding) => void;
|
||||
'setOpenItem': (itemSliding: ItemSliding | null) => void;
|
||||
}
|
||||
var HTMLIonListElement: {
|
||||
prototype: HTMLIonListElement;
|
||||
@ -2866,8 +2866,8 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonLoadingControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: LoadingOptions) => Promise<HTMLIonLoadingElement>;
|
||||
'dismiss': (data?: any, role?: string, loadingId?: number) => Promise<void>;
|
||||
'create': (opts?: LoadingOptions | undefined) => Promise<HTMLIonLoadingElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, loadingId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonLoadingElement;
|
||||
}
|
||||
var HTMLIonLoadingControllerElement: {
|
||||
@ -2906,7 +2906,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the loading overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* If true, the loading indicator will dismiss when the page changes. Defaults to `false`.
|
||||
*/
|
||||
@ -2931,11 +2931,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the loading did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await loading.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the loading will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await loading.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* Present the loading overlay after it has been created.
|
||||
@ -3100,34 +3100,34 @@ declare global {
|
||||
/**
|
||||
* Programatically close the Menu. If no `menuId` is given as the first argument then it'll close any menu which is open. If a `menuId` is given then it'll close that exact menu.
|
||||
*/
|
||||
'close': (menuId?: string) => Promise<boolean>;
|
||||
'close': (menuId?: string | undefined) => Promise<boolean>;
|
||||
'createAnimation': (type: string, menuCmp: Menu) => Promise<Animation>;
|
||||
/**
|
||||
* Used to enable or disable a menu. For example, there could be multiple left menus, but only one of them should be able to be opened at the same time. If there are multiple menus on the same side, then enabling one menu will also automatically disable all the others that are on the same side.
|
||||
*/
|
||||
'enable': (shouldEnable: boolean, menuId?: string) => HTMLIonMenuElement;
|
||||
'enable': (shouldEnable: boolean, menuId?: string | undefined) => HTMLIonMenuElement | null;
|
||||
/**
|
||||
* Used to get a menu instance. If a `menuId` is not provided then it'll return the first menu found. If a `menuId` is `left` or `right`, then it'll return the enabled menu on that side. Otherwise, if a `menuId` is provided, then it'll try to find the menu using the menu's `id` property. If a menu is not found then it'll return `null`.
|
||||
*/
|
||||
'get': (menuId?: string) => HTMLIonMenuElement;
|
||||
'get': (menuId?: string | undefined) => HTMLIonMenuElement | null;
|
||||
'getMenus': () => HTMLIonMenuElement[];
|
||||
'getOpen': () => HTMLIonMenuElement;
|
||||
'getOpen': () => HTMLIonMenuElement | null;
|
||||
'isAnimating': () => boolean;
|
||||
'isEnabled': (menuId?: string) => boolean;
|
||||
'isOpen': (menuId?: string) => boolean;
|
||||
'isEnabled': (menuId?: string | undefined) => boolean;
|
||||
'isOpen': (menuId?: string | undefined) => boolean;
|
||||
/**
|
||||
* Programatically open the Menu.
|
||||
*/
|
||||
'open': (menuId?: string) => Promise<boolean>;
|
||||
'open': (menuId?: string | undefined) => Promise<boolean>;
|
||||
'registerAnimation': (name: string, animation: AnimationBuilder) => void;
|
||||
/**
|
||||
* Used to enable or disable the ability to swipe open the menu.
|
||||
*/
|
||||
'swipeEnable': (shouldEnable: boolean, menuId?: string) => HTMLIonMenuElement;
|
||||
'swipeEnable': (shouldEnable: boolean, menuId?: string | undefined) => HTMLIonMenuElement | null;
|
||||
/**
|
||||
* Toggle the menu. If it's closed, it will open, and if opened, it will close.
|
||||
*/
|
||||
'toggle': (menuId?: string) => Promise<boolean>;
|
||||
'toggle': (menuId?: string | undefined) => Promise<boolean>;
|
||||
}
|
||||
var HTMLIonMenuControllerElement: {
|
||||
prototype: HTMLIonMenuControllerElement;
|
||||
@ -3293,8 +3293,8 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonModalControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: ModalOptions) => Promise<HTMLIonModalElement>;
|
||||
'dismiss': (data?: any, role?: string, modalId?: number) => Promise<void>;
|
||||
'create': (opts?: ModalOptions | undefined) => Promise<HTMLIonModalElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, modalId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonModalElement;
|
||||
}
|
||||
var HTMLIonModalControllerElement: {
|
||||
@ -3342,7 +3342,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the modal overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* If true, the modal will be dismissed when the backdrop is clicked. Defaults to `true`.
|
||||
*/
|
||||
@ -3363,11 +3363,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the modal did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await modal.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the modal will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await modal.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* Present the modal overlay after it has been created.
|
||||
@ -3563,24 +3563,24 @@ declare global {
|
||||
declare global {
|
||||
interface HTMLIonNavElement extends HTMLStencilElement {
|
||||
'animated': boolean;
|
||||
'canGoBack': (view?: ViewController) => boolean;
|
||||
'canGoBack': (view?: ViewController | undefined) => boolean;
|
||||
'delegate': FrameworkDelegate|undefined;
|
||||
'getActive': () => ViewController;
|
||||
'getByIndex': (index: number) => ViewController;
|
||||
'getPrevious': (view?: ViewController) => ViewController;
|
||||
'getRouteId': () => RouteID;
|
||||
'insert': (insertIndex: number, component: NavComponent, componentProps?: ComponentProps, opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'insertPages': (insertIndex: number, insertComponents: NavComponent[], opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'getActive': () => ViewController | undefined;
|
||||
'getByIndex': (index: number) => ViewController | undefined;
|
||||
'getPrevious': (view?: ViewController | undefined) => ViewController | undefined;
|
||||
'getRouteId': () => RouteID | undefined;
|
||||
'insert': (insertIndex: number, component: NavComponent, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'insertPages': (insertIndex: number, insertComponents: NavComponent[], opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'length': () => number;
|
||||
'pop': (opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'popTo': (indexOrViewCtrl: number | ViewController, opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'popToRoot': (opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'push': (component: NavComponent, componentProps?: ComponentProps, opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'removeIndex': (startIndex: number, removeCount?: number, opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'pop': (opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'popTo': (indexOrViewCtrl: number | ViewController, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'popToRoot': (opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'push': (component: NavComponent, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'removeIndex': (startIndex: number, removeCount?: number, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'root': NavComponent|undefined;
|
||||
'rootParams': ComponentProps|undefined;
|
||||
'setPages': (views: any[], opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'setRoot': (component: NavComponent, componentProps?: ComponentProps, opts?: NavOptions, done?: TransitionDoneFn) => Promise<boolean>;
|
||||
'setPages': (views: any[], opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'setRoot': (component: NavComponent, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
|
||||
'setRouteId': (id: string, params: any, direction: number) => Promise<RouteWrite>;
|
||||
'swipeBackEnabled': boolean;
|
||||
}
|
||||
@ -3683,8 +3683,8 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonPickerControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: PickerOptions) => Promise<HTMLIonPickerElement>;
|
||||
'dismiss': (data?: any, role?: string, pickerId?: number) => Promise<void>;
|
||||
'create': (opts?: PickerOptions | undefined) => Promise<HTMLIonPickerElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, pickerId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonPickerElement;
|
||||
}
|
||||
var HTMLIonPickerControllerElement: {
|
||||
@ -3729,7 +3729,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the picker overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* Number of milliseconds to wait before dismissing the picker.
|
||||
*/
|
||||
@ -3742,7 +3742,7 @@ declare global {
|
||||
* Animation to use when the picker is presented.
|
||||
*/
|
||||
'enterAnimation': AnimationBuilder;
|
||||
'getColumn': (name: string) => PickerColumn;
|
||||
'getColumn': (name: string) => PickerColumn | undefined;
|
||||
'getColumns': () => PickerColumn[];
|
||||
'keyboardClose': boolean;
|
||||
/**
|
||||
@ -3752,11 +3752,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the picker did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await picker.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the picker will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await picker.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* Present the picker overlay after it has been created.
|
||||
@ -3899,8 +3899,8 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonPopoverControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: PopoverOptions) => Promise<HTMLIonPopoverElement>;
|
||||
'dismiss': (data?: any, role?: string, popoverId?: number) => Promise<void>;
|
||||
'create': (opts?: PopoverOptions | undefined) => Promise<HTMLIonPopoverElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, popoverId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonPopoverElement;
|
||||
}
|
||||
var HTMLIonPopoverControllerElement: {
|
||||
@ -3948,7 +3948,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the popover overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* If true, the popover will be dismissed when the backdrop is clicked. Defaults to `true`.
|
||||
*/
|
||||
@ -3973,11 +3973,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the popover did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await popover.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the popover will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await popover.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* Present the popover overlay after it has been created.
|
||||
@ -4328,7 +4328,7 @@ declare global {
|
||||
/**
|
||||
* Returns the ratio of the upper value's is current location, which is a number between `0` and `1`. If there is only one knob, then this will return `null`.
|
||||
*/
|
||||
'ratioUpper': () => number;
|
||||
'ratioUpper': () => number | null;
|
||||
/**
|
||||
* If true, the knob snaps to tick marks evenly spaced based on the step property value. Defaults to `false`.
|
||||
*/
|
||||
@ -4757,10 +4757,10 @@ declare global {
|
||||
interface HTMLIonRouterOutletElement extends HTMLStencilElement {
|
||||
'animated': boolean;
|
||||
'animationBuilder': AnimationBuilder;
|
||||
'commit': (enteringEl: HTMLElement, leavingEl: HTMLElement, opts?: RouterOutletOptions) => Promise<boolean>;
|
||||
'commit': (enteringEl: HTMLElement, leavingEl: HTMLElement | undefined, opts?: RouterOutletOptions | undefined) => Promise<boolean>;
|
||||
'delegate': FrameworkDelegate;
|
||||
'getRouteId': () => RouteID;
|
||||
'setRoot': (component: ComponentRef, params?: ComponentProps, opts?: RouterOutletOptions) => Promise<boolean>;
|
||||
'getRouteId': () => RouteID | undefined;
|
||||
'setRoot': (component: ComponentRef, params?: ComponentProps | undefined, opts?: RouterOutletOptions | undefined) => Promise<boolean>;
|
||||
'setRouteId': (id: string, params: any, direction: number) => Promise<RouteWrite>;
|
||||
}
|
||||
var HTMLIonRouterOutletElement: {
|
||||
@ -4856,10 +4856,10 @@ declare global {
|
||||
*/
|
||||
'forceOverscroll': boolean;
|
||||
'mode': string;
|
||||
'scrollByPoint': (x: number, y: number, duration: number, done?: Function) => Promise<any>;
|
||||
'scrollByPoint': (x: number, y: number, duration: number, done?: Function | undefined) => Promise<any>;
|
||||
'scrollEvents': boolean;
|
||||
'scrollToBottom': (duration: number) => Promise<void>;
|
||||
'scrollToPoint': (x: number, y: number, duration: number, done?: Function) => Promise<any>;
|
||||
'scrollToPoint': (x: number, y: number, duration: number, done?: Function | undefined) => Promise<any>;
|
||||
'scrollToTop': (duration: number) => Promise<void>;
|
||||
}
|
||||
var HTMLIonScrollElement: {
|
||||
@ -5522,15 +5522,15 @@ declare global {
|
||||
/**
|
||||
* Transition to the next slide.
|
||||
*/
|
||||
'slideNext': (speed?: number, runCallbacks?: boolean) => void;
|
||||
'slideNext': (speed?: number | undefined, runCallbacks?: boolean | undefined) => void;
|
||||
/**
|
||||
* Transition to the previous slide.
|
||||
*/
|
||||
'slidePrev': (speed?: number, runCallbacks?: boolean) => void;
|
||||
'slidePrev': (speed?: number | undefined, runCallbacks?: boolean | undefined) => void;
|
||||
/**
|
||||
* Transition to the specified slide.
|
||||
*/
|
||||
'slideTo': (index: number, speed?: number, runCallbacks?: boolean) => void;
|
||||
'slideTo': (index: number, speed?: number | undefined, runCallbacks?: boolean | undefined) => void;
|
||||
/**
|
||||
* Start auto play.
|
||||
*/
|
||||
@ -5822,7 +5822,7 @@ declare global {
|
||||
* If true, the user cannot interact with the tab. Defaults to `false`.
|
||||
*/
|
||||
'disabled': boolean;
|
||||
'getTabId': () => string;
|
||||
'getTabId': () => string | null;
|
||||
/**
|
||||
* The URL which will be used as the `href` within this tab's `<ion-tab-button>` anchor.
|
||||
*/
|
||||
@ -5977,9 +5977,9 @@ declare global {
|
||||
* The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app).
|
||||
*/
|
||||
'color': string;
|
||||
'getRouteId': () => RouteID;
|
||||
'getSelected': () => HTMLIonTabElement;
|
||||
'getTab': (tabOrIndex: string | number | HTMLIonTabElement) => HTMLIonTabElement;
|
||||
'getRouteId': () => RouteID | undefined;
|
||||
'getSelected': () => HTMLIonTabElement | undefined;
|
||||
'getTab': (tabOrIndex: string | number | HTMLIonTabElement) => HTMLIonTabElement | undefined;
|
||||
/**
|
||||
* A unique name for the tabs
|
||||
*/
|
||||
@ -6368,8 +6368,8 @@ declare global {
|
||||
|
||||
declare global {
|
||||
interface HTMLIonToastControllerElement extends HTMLStencilElement {
|
||||
'create': (opts?: ToastOptions) => Promise<HTMLIonToastElement>;
|
||||
'dismiss': (data?: any, role?: string, toastId?: number) => Promise<void>;
|
||||
'create': (opts?: ToastOptions | undefined) => Promise<HTMLIonToastElement>;
|
||||
'dismiss': (data?: any, role?: string | undefined, toastId?: number) => Promise<void>;
|
||||
'getTop': () => HTMLIonToastElement;
|
||||
}
|
||||
var HTMLIonToastControllerElement: {
|
||||
@ -6408,7 +6408,7 @@ declare global {
|
||||
/**
|
||||
* Dismiss the toast overlay after it has been presented.
|
||||
*/
|
||||
'dismiss': (data?: any, role?: string) => Promise<void>;
|
||||
'dismiss': (data?: any, role?: string | undefined) => Promise<void>;
|
||||
/**
|
||||
* If true, the toast will dismiss when the page changes. Defaults to `false`.
|
||||
*/
|
||||
@ -6433,11 +6433,11 @@ declare global {
|
||||
/**
|
||||
* Returns a promise that resolves when the toast did dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await toast.onDidDismiss(); ```
|
||||
*/
|
||||
'onDidDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onDidDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
/**
|
||||
* Returns a promise that resolves when the toast will dismiss. It also accepts a callback that is called in the same circustances. ``` const {data, role} = await toast.onWillDismiss(); ```
|
||||
*/
|
||||
'onWillDismiss': (callback?: (detail: OverlayEventDetail) => void) => Promise<OverlayEventDetail>;
|
||||
'onWillDismiss': (callback?: ((detail: OverlayEventDetail) => void) | undefined) => Promise<OverlayEventDetail>;
|
||||
'overlayId': number;
|
||||
/**
|
||||
* The position of the toast on the screen. Possible values: "top", "middle", "bottom".
|
||||
|
||||
Reference in New Issue
Block a user