mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
chore(deps): update to stencil v3 (#26663)
This commit is contained in:
@ -1,13 +1,6 @@
|
||||
import type {
|
||||
Animation,
|
||||
AnimationBuilder,
|
||||
ComponentProps,
|
||||
ComponentRef,
|
||||
FrameworkDelegate,
|
||||
Mode,
|
||||
} from '../../interface';
|
||||
import type { AnimationBuilder, ComponentProps, ComponentRef, FrameworkDelegate, Mode } from '../../interface';
|
||||
|
||||
import { ViewController } from './view-controller';
|
||||
import type { ViewController } from './view-controller';
|
||||
|
||||
// TODO(FW-2832): types
|
||||
|
||||
@ -54,18 +47,6 @@ export interface NavOptions extends RouterOutletOptions {
|
||||
viewIsReady?: (enteringEl: HTMLElement) => Promise<any>;
|
||||
}
|
||||
|
||||
export type Page = new (...args: any[]) => any;
|
||||
|
||||
export type TransitionResolveFn = (
|
||||
hasCompleted: boolean,
|
||||
requiresTransition: boolean,
|
||||
enteringName?: string,
|
||||
leavingName?: string,
|
||||
direction?: string
|
||||
) => void;
|
||||
|
||||
export type TransitionRejectFn = (rejectReason: any, transition?: Animation) => void;
|
||||
|
||||
export type TransitionDoneFn = (
|
||||
hasCompleted: boolean,
|
||||
requiresTransition: boolean,
|
||||
@ -94,5 +75,3 @@ export interface TransitionInstruction {
|
||||
export interface NavCustomEvent extends CustomEvent {
|
||||
target: HTMLIonNavElement;
|
||||
}
|
||||
|
||||
export { ViewController };
|
||||
|
||||
@ -3,30 +3,23 @@ import { Build, Component, Element, Event, Method, Prop, Watch, h } from '@stenc
|
||||
|
||||
import { config } from '../../global/config';
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import type {
|
||||
Animation,
|
||||
AnimationBuilder,
|
||||
ComponentProps,
|
||||
FrameworkDelegate,
|
||||
Gesture,
|
||||
NavComponent,
|
||||
NavComponentWithProps,
|
||||
NavOptions,
|
||||
NavOutlet,
|
||||
NavResult,
|
||||
RouteID,
|
||||
RouteWrite,
|
||||
RouterDirection,
|
||||
TransitionDoneFn,
|
||||
TransitionInstruction,
|
||||
ViewController,
|
||||
} from '../../interface';
|
||||
import type { Animation, AnimationBuilder, ComponentProps, FrameworkDelegate, Gesture } from '../../interface';
|
||||
import { getTimeGivenProgression } from '../../utils/animation/cubic-bezier';
|
||||
import { assert } from '../../utils/helpers';
|
||||
import type { TransitionOptions } from '../../utils/transition';
|
||||
import { lifecycle, setPageHidden, transition } from '../../utils/transition';
|
||||
import type { NavOutlet, RouteID, RouteWrite, RouterDirection } from '../router/utils/interface';
|
||||
|
||||
import { LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_LEAVE, LIFECYCLE_WILL_UNLOAD } from './constants';
|
||||
import type {
|
||||
NavComponent,
|
||||
NavComponentWithProps,
|
||||
NavOptions,
|
||||
NavResult,
|
||||
TransitionDoneFn,
|
||||
TransitionInstruction,
|
||||
} from './nav-interface';
|
||||
import type { ViewController } from './view-controller';
|
||||
import { VIEW_STATE_ATTACHED, VIEW_STATE_DESTROYED, VIEW_STATE_NEW, convertToViews, matches } from './view-controller';
|
||||
|
||||
@Component({
|
||||
|
||||
Reference in New Issue
Block a user