From 427e4bc06c437673b49e60386bde8815f9667e21 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 27 Sep 2022 14:03:13 -0500 Subject: [PATCH] chore(): update to stencil 2.18.0 (#26023) --- core/api.txt | 58 ++++++++++++++++++------------------- core/package-lock.json | 14 ++++----- core/package.json | 2 +- core/src/components.d.ts | 62 ++++++++++++++++++++-------------------- 4 files changed, 68 insertions(+), 68 deletions(-) diff --git a/core/api.txt b/core/api.txt index 996ca60c94..b57dbd14f5 100644 --- a/core/api.txt +++ b/core/api.txt @@ -33,7 +33,7 @@ ion-action-sheet,prop,leaveAnimation,((baseEl: any, opts?: any) => Animation) | ion-action-sheet,prop,mode,"ios" | "md",undefined,false,false ion-action-sheet,prop,subHeader,string | undefined,undefined,false,false ion-action-sheet,prop,translucent,boolean,false,false,false -ion-action-sheet,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise +ion-action-sheet,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-action-sheet,method,onDidDismiss,onDidDismiss() => Promise> ion-action-sheet,method,onWillDismiss,onWillDismiss() => Promise> ion-action-sheet,method,present,present() => Promise @@ -80,7 +80,7 @@ ion-alert,prop,message,IonicSafeString | string | undefined,undefined,false,fals ion-alert,prop,mode,"ios" | "md",undefined,false,false ion-alert,prop,subHeader,string | undefined,undefined,false,false ion-alert,prop,translucent,boolean,false,false,false -ion-alert,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise +ion-alert,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-alert,method,onDidDismiss,onDidDismiss() => Promise> ion-alert,method,onWillDismiss,onWillDismiss() => Promise> ion-alert,method,present,present() => Promise @@ -401,7 +401,7 @@ ion-datetime,prop,value,null | string | string[] | undefined,undefined,false,fal ion-datetime,prop,yearValues,number | number[] | string | undefined,undefined,false,false ion-datetime,method,cancel,cancel(closeOverlay?: boolean) => Promise ion-datetime,method,confirm,confirm(closeOverlay?: boolean) => Promise -ion-datetime,method,reset,reset(startDate?: string | undefined) => Promise +ion-datetime,method,reset,reset(startDate?: string) => Promise ion-datetime,event,ionBlur,void,true ion-datetime,event,ionCancel,void,true ion-datetime,event,ionChange,DatetimeChangeEventDetail,true @@ -519,7 +519,7 @@ ion-infinite-scroll-content,prop,loadingText,IonicSafeString | string | undefine ion-input,scoped ion-input,prop,accept,string | undefined,undefined,false,false ion-input,prop,autocapitalize,string,'off',false,false -ion-input,prop,autocomplete,"off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo",'off',false,false +ion-input,prop,autocomplete,"name" | "email" | "tel" | "url" | "on" | "off" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo",'off',false,false ion-input,prop,autocorrect,"off" | "on",'off',false,false ion-input,prop,autofocus,boolean,false,false,false ion-input,prop,clearInput,boolean,false,false,false @@ -700,7 +700,7 @@ ion-loading,prop,mode,"ios" | "md",undefined,false,false ion-loading,prop,showBackdrop,boolean,true,false,false ion-loading,prop,spinner,"bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-sharp" | "lines-sharp-small" | "lines-small" | null | undefined,undefined,false,false ion-loading,prop,translucent,boolean,false,false,false -ion-loading,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise +ion-loading,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-loading,method,onDidDismiss,onDidDismiss() => Promise> ion-loading,method,onWillDismiss,onWillDismiss() => Promise> ion-loading,method,present,present() => Promise @@ -793,7 +793,7 @@ ion-modal,prop,presentingElement,HTMLElement | undefined,undefined,false,false ion-modal,prop,showBackdrop,boolean,true,false,false ion-modal,prop,swipeToClose,boolean,false,false,false ion-modal,prop,trigger,string | undefined,undefined,false,false -ion-modal,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise +ion-modal,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-modal,method,getCurrentBreakpoint,getCurrentBreakpoint() => Promise ion-modal,method,onDidDismiss,onDidDismiss() => Promise> ion-modal,method,onWillDismiss,onWillDismiss() => Promise> @@ -830,19 +830,19 @@ ion-nav,prop,animation,((baseEl: any, opts?: any) => Animation) | undefined,unde ion-nav,prop,root,Function | HTMLElement | ViewController | null | string | undefined,undefined,false,false ion-nav,prop,rootParams,undefined | { [key: string]: any; },undefined,false,false ion-nav,prop,swipeGesture,boolean | undefined,undefined,false,false -ion-nav,method,canGoBack,canGoBack(view?: ViewController | undefined) => Promise +ion-nav,method,canGoBack,canGoBack(view?: ViewController) => Promise ion-nav,method,getActive,getActive() => Promise ion-nav,method,getByIndex,getByIndex(index: number) => Promise -ion-nav,method,getPrevious,getPrevious(view?: ViewController | undefined) => Promise -ion-nav,method,insert,insert(insertIndex: number, component: T, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,insertPages,insertPages(insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,pop,pop(opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,popTo,popTo(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,popToRoot,popToRoot(opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,push,push(component: T, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,removeIndex,removeIndex(startIndex: number, removeCount?: number, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,setPages,setPages(views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise -ion-nav,method,setRoot,setRoot(component: T, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise +ion-nav,method,getPrevious,getPrevious(view?: ViewController) => Promise +ion-nav,method,insert,insert(insertIndex: number, component: T, componentProps?: ComponentProps | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,insertPages,insertPages(insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,pop,pop(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,popTo,popTo(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,popToRoot,popToRoot(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,push,push(component: T, componentProps?: ComponentProps | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,removeIndex,removeIndex(startIndex: number, removeCount?: number, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,setPages,setPages(views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise +ion-nav,method,setRoot,setRoot(component: T, componentProps?: ComponentProps | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise ion-nav,event,ionNavDidChange,void,false ion-nav,event,ionNavWillChange,void,false @@ -870,7 +870,7 @@ ion-picker,prop,keyboardClose,boolean,true,false,false ion-picker,prop,leaveAnimation,((baseEl: any, opts?: any) => Animation) | undefined,undefined,false,false ion-picker,prop,mode,"ios" | "md",undefined,false,false ion-picker,prop,showBackdrop,boolean,true,false,false -ion-picker,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise +ion-picker,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-picker,method,getColumn,getColumn(name: string) => Promise ion-picker,method,onDidDismiss,onDidDismiss() => Promise> ion-picker,method,onWillDismiss,onWillDismiss() => Promise> @@ -916,10 +916,10 @@ ion-popover,prop,size,"auto" | "cover",'auto',false,false ion-popover,prop,translucent,boolean,false,false,false ion-popover,prop,trigger,string | undefined,undefined,false,false ion-popover,prop,triggerAction,"click" | "context-menu" | "hover",'click',false,false -ion-popover,method,dismiss,dismiss(data?: any, role?: string | undefined, dismissParentPopover?: boolean) => Promise +ion-popover,method,dismiss,dismiss(data?: any, role?: string, dismissParentPopover?: boolean) => Promise ion-popover,method,onDidDismiss,onDidDismiss() => Promise> ion-popover,method,onWillDismiss,onWillDismiss() => Promise> -ion-popover,method,present,present(event?: MouseEvent | TouchEvent | PointerEvent | CustomEvent | undefined) => Promise +ion-popover,method,present,present(event?: MouseEvent | TouchEvent | PointerEvent | CustomEvent) => Promise ion-popover,event,didDismiss,OverlayEventDetail,true ion-popover,event,didPresent,void,true ion-popover,event,ionPopoverDidDismiss,OverlayEventDetail,true @@ -1042,7 +1042,7 @@ ion-reorder,part,icon ion-reorder-group,none ion-reorder-group,prop,disabled,boolean,true,false,false -ion-reorder-group,method,complete,complete(listOrReorder?: boolean | any[] | undefined) => Promise +ion-reorder-group,method,complete,complete(listOrReorder?: boolean | any[]) => Promise ion-reorder-group,event,ionItemReorder,ItemReorderEventDetail,true ion-ripple-effect,shadow @@ -1066,7 +1066,7 @@ ion-router,none ion-router,prop,root,string,'/',false,false ion-router,prop,useHash,boolean,true,false,false ion-router,method,back,back() => Promise -ion-router,method,push,push(path: string, direction?: RouterDirection, animation?: AnimationBuilder | undefined) => Promise +ion-router,method,push,push(path: string, direction?: RouterDirection, animation?: AnimationBuilder) => Promise ion-router,event,ionRouteDidChange,RouterEventDetail,true ion-router,event,ionRouteWillChange,RouterEventDetail,true @@ -1089,7 +1089,7 @@ ion-row,shadow ion-searchbar,scoped ion-searchbar,prop,animated,boolean,false,false,false -ion-searchbar,prop,autocomplete,"off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo",'off',false,false +ion-searchbar,prop,autocomplete,"name" | "email" | "tel" | "url" | "on" | "off" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo",'off',false,false ion-searchbar,prop,autocorrect,"off" | "on",'off',false,false ion-searchbar,prop,cancelButtonIcon,string,config.get('backButtonIcon', arrowBackSharp) as string,false,false ion-searchbar,prop,cancelButtonText,string,'Cancel',false,false @@ -1189,7 +1189,7 @@ ion-select,prop,okText,string,'OK',false,false ion-select,prop,placeholder,string | undefined,undefined,false,false ion-select,prop,selectedText,null | string | undefined,undefined,false,false ion-select,prop,value,any,undefined,false,false -ion-select,method,open,open(event?: UIEvent | undefined) => Promise +ion-select,method,open,open(event?: UIEvent) => Promise ion-select,event,ionBlur,void,true ion-select,event,ionCancel,void,true ion-select,event,ionChange,SelectChangeEventDetail,true @@ -1231,13 +1231,13 @@ ion-slides,method,length,length() => Promise ion-slides,method,lockSwipeToNext,lockSwipeToNext(lock: boolean) => Promise ion-slides,method,lockSwipeToPrev,lockSwipeToPrev(lock: boolean) => Promise ion-slides,method,lockSwipes,lockSwipes(lock: boolean) => Promise -ion-slides,method,slideNext,slideNext(speed?: number | undefined, runCallbacks?: boolean | undefined) => Promise -ion-slides,method,slidePrev,slidePrev(speed?: number | undefined, runCallbacks?: boolean | undefined) => Promise -ion-slides,method,slideTo,slideTo(index: number, speed?: number | undefined, runCallbacks?: boolean | undefined) => Promise +ion-slides,method,slideNext,slideNext(speed?: number, runCallbacks?: boolean) => Promise +ion-slides,method,slidePrev,slidePrev(speed?: number, runCallbacks?: boolean) => Promise +ion-slides,method,slideTo,slideTo(index: number, speed?: number, runCallbacks?: boolean) => Promise ion-slides,method,startAutoplay,startAutoplay() => Promise ion-slides,method,stopAutoplay,stopAutoplay() => Promise ion-slides,method,update,update() => Promise -ion-slides,method,updateAutoHeight,updateAutoHeight(speed?: number | undefined) => Promise +ion-slides,method,updateAutoHeight,updateAutoHeight(speed?: number) => Promise ion-slides,event,ionSlideDidChange,void,true ion-slides,event,ionSlideDoubleTap,void,true ion-slides,event,ionSlideDrag,void,true @@ -1391,7 +1391,7 @@ ion-toast,prop,message,IonicSafeString | string | undefined,undefined,false,fals ion-toast,prop,mode,"ios" | "md",undefined,false,false ion-toast,prop,position,"bottom" | "middle" | "top",'bottom',false,false ion-toast,prop,translucent,boolean,false,false,false -ion-toast,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise +ion-toast,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-toast,method,onDidDismiss,onDidDismiss() => Promise> ion-toast,method,onWillDismiss,onWillDismiss() => Promise> ion-toast,method,present,present() => Promise diff --git a/core/package-lock.json b/core/package-lock.json index e49ebffd95..1c1d10d931 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -9,7 +9,7 @@ "version": "6.2.8", "license": "MIT", "dependencies": { - "@stencil/core": "^2.17.4", + "@stencil/core": "^2.18.0", "ionicons": "^6.0.3", "tslib": "^2.1.0" }, @@ -3565,9 +3565,9 @@ } }, "node_modules/@stencil/core": { - "version": "2.17.4", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.17.4.tgz", - "integrity": "sha512-SGRlHpjV1RyFvzw6jFMVKpLNox9Eds3VvpbpD2SW9CuxdLonHDSFtQks5zmT4zs1Rse9I6kFc2mFK/dHNTalkg==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.18.0.tgz", + "integrity": "sha512-NLEY8Jq59smyiivBAxHKipsp9YkkW/K/Vm90zAyXQqukb12i2SFucWHJ1Ik7ropVlhmMVvigyxXgRfQ9quIqtg==", "bin": { "stencil": "bin/stencil" }, @@ -20045,9 +20045,9 @@ "dev": true }, "@stencil/core": { - "version": "2.17.4", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.17.4.tgz", - "integrity": "sha512-SGRlHpjV1RyFvzw6jFMVKpLNox9Eds3VvpbpD2SW9CuxdLonHDSFtQks5zmT4zs1Rse9I6kFc2mFK/dHNTalkg==" + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.18.0.tgz", + "integrity": "sha512-NLEY8Jq59smyiivBAxHKipsp9YkkW/K/Vm90zAyXQqukb12i2SFucWHJ1Ik7ropVlhmMVvigyxXgRfQ9quIqtg==" }, "@stencil/react-output-target": { "version": "0.2.1", diff --git a/core/package.json b/core/package.json index 06916fd7e0..35c2540230 100644 --- a/core/package.json +++ b/core/package.json @@ -31,7 +31,7 @@ "loader/" ], "dependencies": { - "@stencil/core": "^2.17.4", + "@stencil/core": "^2.18.0", "ionicons": "^6.0.3", "tslib": "^2.1.0" }, diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 75efd98dec..0ef528e1e3 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -96,7 +96,7 @@ export namespace Components { * @param data Any data to emit in the dismiss events. * @param role The role of the element that is dismissing the action sheet. This can be useful in a button handler for determining which button was clicked to dismiss the action sheet. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. */ - "dismiss": (data?: any, role?: string | undefined) => Promise; + "dismiss": (data?: any, role?: string) => Promise; /** * Animation to use when the action sheet is presented. */ @@ -165,7 +165,7 @@ export namespace Components { * @param data Any data to emit in the dismiss events. * @param role The role of the element that is dismissing the alert. This can be useful in a button handler for determining which button was clicked to dismiss the alert. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. */ - "dismiss": (data?: any, role?: string | undefined) => Promise; + "dismiss": (data?: any, role?: string) => Promise; /** * Animation to use when the alert is presented. */ @@ -812,7 +812,7 @@ export namespace Components { /** * Resets the internal state of the datetime but does not update the value. Passing a valid ISO-8601 string will reset the state of the component to the provided date. If no value is provided, the internal state will be reset to the clamped value of the min, max and today. */ - "reset": (startDate?: string | undefined) => Promise; + "reset": (startDate?: string) => Promise; /** * If `true`, a "Clear" button will be rendered alongside the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime` component. Developers can also use the `button` slot if they want to customize these buttons. If custom buttons are set in the `button` slot then the default buttons will not be rendered. */ @@ -1387,7 +1387,7 @@ export namespace Components { * @param data Any data to emit in the dismiss events. * @param role The role of the element that is dismissing the loading. This can be useful in a button handler for determining which button was clicked to dismiss the loading. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. */ - "dismiss": (data?: any, role?: string | undefined) => Promise; + "dismiss": (data?: any, role?: string) => Promise; /** * Number of milliseconds to wait before dismissing the loading indicator. */ @@ -1571,7 +1571,7 @@ export namespace Components { * @param data Any data to emit in the dismiss events. * @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'. */ - "dismiss": (data?: any, role?: string | undefined) => Promise; + "dismiss": (data?: any, role?: string) => Promise; /** * Animation to use when the modal is presented. */ @@ -1665,7 +1665,7 @@ export namespace Components { * Returns `true` if the current view can go back. * @param view The view to check. */ - "canGoBack": (view?: ViewController | undefined) => Promise; + "canGoBack": (view?: ViewController) => Promise; "delegate"?: FrameworkDelegate; /** * Get the active view. @@ -1680,7 +1680,7 @@ export namespace Components { * Get the previous view. * @param view The view to get. */ - "getPrevious": (view?: ViewController | undefined) => Promise; + "getPrevious": (view?: ViewController) => Promise; /** * Called by to retrieve the current component. */ @@ -1693,7 +1693,7 @@ export namespace Components { * @param opts The navigation options. * @param done The transition complete function. */ - "insert": (insertIndex: number, component: T, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "insert": (insertIndex: number, component: T, componentProps?: ComponentProps | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Inserts an array of components into the navigation stack at the specified index. The last component in the array will become instantiated as a view, and animate in to become the active view. * @param insertIndex The index to insert the components at in the stack. @@ -1701,26 +1701,26 @@ export namespace Components { * @param opts The navigation options. * @param done The transition complete function. */ - "insertPages": (insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "insertPages": (insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Pop a component off of the navigation stack. Navigates back from the current component. * @param opts The navigation options. * @param done The transition complete function. */ - "pop": (opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "pop": (opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Pop to a specific index in the navigation stack. * @param indexOrViewCtrl The index or view controller to pop to. * @param opts The navigation options. * @param done The transition complete function. */ - "popTo": (indexOrViewCtrl: number | ViewController, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "popTo": (indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Navigate back to the root of the stack, no matter how far back that is. * @param opts The navigation options. * @param done The transition complete function. */ - "popToRoot": (opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "popToRoot": (opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Push a new component onto the current navigation stack. Pass any additional information along as an object. This additional information is accessible through NavParams. * @param component The component to push onto the navigation stack. @@ -1728,7 +1728,7 @@ export namespace Components { * @param opts The navigation options. * @param done The transition complete function. */ - "push": (component: T, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "push": (component: T, componentProps?: ComponentProps | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Removes a component from the navigation stack at the specified index. * @param startIndex The number to begin removal at. @@ -1736,7 +1736,7 @@ export namespace Components { * @param opts The navigation options. * @param done The transition complete function. */ - "removeIndex": (startIndex: number, removeCount?: number, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "removeIndex": (startIndex: number, removeCount?: number, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Root NavComponent to load */ @@ -1751,7 +1751,7 @@ export namespace Components { * @param opts The navigation options. * @param done The transition complete function. */ - "setPages": (views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "setPages": (views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Set the root for the current navigation stack to a component. * @param component The component to set as the root of the navigation stack. @@ -1759,7 +1759,7 @@ export namespace Components { * @param opts The navigation options. * @param done The transition complete function. */ - "setRoot": (component: T, componentProps?: ComponentProps | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise; + "setRoot": (component: T, componentProps?: ComponentProps | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise; /** * Called by the router to update the view. * @param id The component tag. @@ -1768,7 +1768,7 @@ export namespace Components { * @param animation an AnimationBuilder. * @return the status. */ - "setRouteId": (id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder | undefined) => Promise; + "setRouteId": (id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder) => Promise; /** * If the nav component should allow for swipe-to-go-back. */ @@ -1828,7 +1828,7 @@ export namespace Components { * @param data Any data to emit in the dismiss events. * @param role The role of the element that is dismissing the picker. This can be useful in a button handler for determining which button was clicked to dismiss the picker. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. */ - "dismiss": (data?: any, role?: string | undefined) => Promise; + "dismiss": (data?: any, role?: string) => Promise; /** * Number of milliseconds to wait before dismissing the picker. */ @@ -1903,7 +1903,7 @@ export namespace Components { /** * Sets the value prop and fires the ionChange event. This is used when we need to fire ionChange from user-generated events that cannot be caught with normal input/change event listeners. */ - "setValue": (value?: string | number | undefined) => Promise; + "setValue": (value?: string | number) => Promise; /** * The selected option in the picker. */ @@ -1951,7 +1951,7 @@ export namespace Components { * @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'. * @param dismissParentPopover If `true`, dismissing this popover will also dismiss a parent popover if this popover is nested. Defaults to `true`. */ - "dismiss": (data?: any, role?: string | undefined, dismissParentPopover?: boolean) => Promise; + "dismiss": (data?: any, role?: string, dismissParentPopover?: boolean) => Promise; /** * If `true`, the popover will be automatically dismissed when the content has been clicked. */ @@ -2003,7 +2003,7 @@ export namespace Components { /** * Present the popover overlay after it has been created. Developers can pass a mouse, touch, or pointer event to position the popover relative to where that event was dispatched. */ - "present": (event?: MouseEvent | TouchEvent | PointerEvent | CustomEvent | undefined) => Promise; + "present": (event?: MouseEvent | TouchEvent | PointerEvent | CustomEvent) => Promise; /** * When opening a popover from a trigger, we should not be modifying the `event` prop from inside the component. Additionally, when pressing the "Right" arrow key, we need to shift focus to the first descendant in the newly presented popover. */ @@ -2226,7 +2226,7 @@ export namespace Components { * Completes the reorder operation. Must be called by the `ionItemReorder` event. If a list of items is passed, the list will be reordered and returned in the proper order. If no parameters are passed or if `true` is passed in, the reorder will complete and the item will remain in the position it was dragged to. If `false` is passed, the reorder will complete and the item will bounce back to its original position. * @param listOrReorder A list of items to be sorted and returned in the new order or a boolean of whether or not the reorder should reposition the item. */ - "complete": (listOrReorder?: boolean | any[] | undefined) => Promise; + "complete": (listOrReorder?: boolean | any[]) => Promise; /** * If `true`, the reorder will be hidden. */ @@ -2289,7 +2289,7 @@ export namespace Components { * @param path The path to navigate to. * @param direction The direction of the animation. Defaults to `"forward"`. */ - "push": (path: string, direction?: RouterDirection, animation?: AnimationBuilder | undefined) => Promise; + "push": (path: string, direction?: RouterDirection, animation?: AnimationBuilder) => Promise; /** * The root path to use when matching URLs. By default, this is set to "/", but you can specify an alternate prefix for all URL paths. */ @@ -2334,14 +2334,14 @@ export namespace Components { * This property allows to create custom transition using AnimationBuilder functions. */ "animation"?: AnimationBuilder; - "commit": (enteringEl: HTMLElement, leavingEl: HTMLElement | undefined, opts?: RouterOutletOptions | undefined) => Promise; + "commit": (enteringEl: HTMLElement, leavingEl: HTMLElement | undefined, opts?: RouterOutletOptions) => Promise; "delegate"?: FrameworkDelegate; "getRouteId": () => Promise; /** * The mode determines which platform styles to use. */ "mode": "ios" | "md"; - "setRouteId": (id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder | undefined) => Promise; + "setRouteId": (id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder) => Promise; "swipeHandler"?: SwipeGestureHandler; } interface IonRow { @@ -2525,7 +2525,7 @@ export namespace Components { * Open the select overlay. The overlay is either an alert, action sheet, or popover, depending on the `interface` property on the `ion-select`. * @param event The user interface event that called the open. */ - "open": (event?: UIEvent | undefined) => Promise; + "open": (event?: UIEvent) => Promise; /** * The text to display when the select is empty. */ @@ -2640,20 +2640,20 @@ export namespace Components { * @param speed The transition duration (in ms). * @param runCallbacks If true, the transition will produce [Transition/SlideChange][Start/End] transition events. */ - "slideNext": (speed?: number | undefined, runCallbacks?: boolean | undefined) => Promise; + "slideNext": (speed?: number, runCallbacks?: boolean) => Promise; /** * Transition to the previous slide. * @param speed The transition duration (in ms). * @param runCallbacks If true, the transition will produce the [Transition/SlideChange][Start/End] transition events. */ - "slidePrev": (speed?: number | undefined, runCallbacks?: boolean | undefined) => Promise; + "slidePrev": (speed?: number, runCallbacks?: boolean) => Promise; /** * Transition to the specified slide. * @param index The index of the slide to transition to. * @param speed The transition duration (in ms). * @param runCallbacks If true, the transition will produce [Transition/SlideChange][Start/End] transition events. */ - "slideTo": (index: number, speed?: number | undefined, runCallbacks?: boolean | undefined) => Promise; + "slideTo": (index: number, speed?: number, runCallbacks?: boolean) => Promise; /** * Start auto play. */ @@ -2670,7 +2670,7 @@ export namespace Components { * Force swiper to update its height (when autoHeight is enabled) for the duration equal to 'speed' parameter. * @param speed The transition duration (in ms). */ - "updateAutoHeight": (speed?: number | undefined) => Promise; + "updateAutoHeight": (speed?: number) => Promise; } interface IonSpinner { /** @@ -2941,7 +2941,7 @@ export namespace Components { * @param data Any data to emit in the dismiss events. * @param role The role of the element that is dismissing the toast. This can be useful in a button handler for determining which button was clicked to dismiss the toast. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. */ - "dismiss": (data?: any, role?: string | undefined) => Promise; + "dismiss": (data?: any, role?: string) => Promise; /** * How many milliseconds to wait before hiding the toast. By default, it will show until `dismiss()` is called. */