🔧 npm update
This commit is contained in:
248
node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
generated
vendored
248
node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
generated
vendored
@@ -1,62 +1,7 @@
|
||||
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, DefineComponent, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, VNodeRef, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
|
||||
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, App, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, ComponentCustomElementInterface, CreateAppFunction, ConcreteComponent, VNodeRef, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
|
||||
export * from '@vue/runtime-core';
|
||||
import * as CSS from 'csstype';
|
||||
|
||||
export type VueElementConstructor<P = {}> = {
|
||||
new (initialProps?: Record<string, any>): VueElement & P;
|
||||
};
|
||||
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;
|
||||
export declare function defineCustomElement<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S> & {
|
||||
styles?: string[];
|
||||
}): VueElementConstructor<Props>;
|
||||
export declare function defineCustomElement<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S> & {
|
||||
styles?: string[];
|
||||
}): VueElementConstructor<{
|
||||
[K in PropNames]: any;
|
||||
}>;
|
||||
export declare function defineCustomElement<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S> & {
|
||||
styles?: string[];
|
||||
}): VueElementConstructor<ExtractPropTypes<PropsOptions>>;
|
||||
export declare function defineCustomElement<P>(options: DefineComponent<P, any, any, any>): VueElementConstructor<ExtractPropTypes<P>>;
|
||||
/*! #__NO_SIDE_EFFECTS__ */
|
||||
export declare const defineSSRCustomElement: typeof defineCustomElement;
|
||||
declare const BaseClass: {
|
||||
new (): HTMLElement;
|
||||
prototype: HTMLElement;
|
||||
};
|
||||
type InnerComponentDef = ConcreteComponent & {
|
||||
styles?: string[];
|
||||
};
|
||||
export declare class VueElement extends BaseClass {
|
||||
private _def;
|
||||
private _props;
|
||||
private _connected;
|
||||
private _resolved;
|
||||
private _numberProps;
|
||||
private _styles?;
|
||||
private _ob?;
|
||||
constructor(_def: InnerComponentDef, _props?: Record<string, any>, hydrate?: RootHydrateFunction);
|
||||
connectedCallback(): void;
|
||||
disconnectedCallback(): void;
|
||||
/**
|
||||
* resolve inner component definition (handle possible async component)
|
||||
*/
|
||||
private _resolveDef;
|
||||
private _resolveProps;
|
||||
protected _setAttr(key: string): void;
|
||||
private _update;
|
||||
private _createVNode;
|
||||
private _applyStyles;
|
||||
}
|
||||
|
||||
export declare function useCssModule(name?: string): Record<string, string>;
|
||||
|
||||
/**
|
||||
* Runtime helper for SFC's CSS variable injection feature.
|
||||
* @private
|
||||
*/
|
||||
export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
|
||||
|
||||
declare const TRANSITION = "transition";
|
||||
declare const ANIMATION = "animation";
|
||||
type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
|
||||
@@ -78,52 +23,164 @@ export interface TransitionProps extends BaseTransitionProps<Element> {
|
||||
leaveActiveClass?: string;
|
||||
leaveToClass?: string;
|
||||
}
|
||||
/**
|
||||
* DOM Transition is a higher-order-component based on the platform-agnostic
|
||||
* base Transition component, with DOM-specific logic.
|
||||
*/
|
||||
export declare const Transition: FunctionalComponent<TransitionProps>;
|
||||
|
||||
export type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
|
||||
tag?: string;
|
||||
moveClass?: string;
|
||||
};
|
||||
export declare const TransitionGroup: new () => {
|
||||
$props: TransitionGroupProps;
|
||||
export declare const TransitionGroup: {
|
||||
new (): {
|
||||
$props: TransitionGroupProps;
|
||||
};
|
||||
};
|
||||
|
||||
type AssignerFn = (value: any) => void;
|
||||
declare const assignKey: unique symbol;
|
||||
type ModelDirective<T> = ObjectDirective<T & {
|
||||
[assignKey]: AssignerFn;
|
||||
_assigning?: boolean;
|
||||
}>;
|
||||
export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
|
||||
export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
|
||||
export declare const vModelRadio: ModelDirective<HTMLInputElement>;
|
||||
export declare const vModelSelect: ModelDirective<HTMLSelectElement>;
|
||||
export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
||||
declare const vShowOriginalDisplay: unique symbol;
|
||||
declare const vShowHidden: unique symbol;
|
||||
interface VShowElement extends HTMLElement {
|
||||
[vShowOriginalDisplay]: string;
|
||||
[vShowHidden]: boolean;
|
||||
}
|
||||
export declare const vShow: ObjectDirective<VShowElement> & {
|
||||
name?: 'show';
|
||||
};
|
||||
|
||||
declare const systemModifiers: readonly ["ctrl", "shift", "alt", "meta"];
|
||||
type SystemModifiers = (typeof systemModifiers)[number];
|
||||
type CompatModifiers = keyof typeof keyNames;
|
||||
type VOnModifiers = SystemModifiers | ModifierGuards | CompatModifiers;
|
||||
type ModifierGuards = 'shift' | 'ctrl' | 'alt' | 'meta' | 'left' | 'right' | 'stop' | 'prevent' | 'self' | 'middle' | 'exact';
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export declare const withModifiers: <T extends (event: Event, ...args: unknown[]) => any>(fn: T & {
|
||||
_withMods?: {
|
||||
[key: string]: T;
|
||||
} | undefined;
|
||||
}, modifiers: string[]) => T;
|
||||
};
|
||||
}, modifiers: VOnModifiers[]) => T;
|
||||
declare const keyNames: Record<'esc' | 'space' | 'up' | 'left' | 'right' | 'down' | 'delete', string>;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export declare const withKeys: <T extends (event: KeyboardEvent) => any>(fn: T & {
|
||||
_withKeys?: {
|
||||
[k: string]: T;
|
||||
} | undefined;
|
||||
};
|
||||
}, modifiers: string[]) => T;
|
||||
type VOnDirective = Directive<any, any, VOnModifiers>;
|
||||
|
||||
declare const vShowOldKey: unique symbol;
|
||||
interface VShowElement extends HTMLElement {
|
||||
[vShowOldKey]: string;
|
||||
}
|
||||
export declare const vShow: ObjectDirective<VShowElement> & {
|
||||
name?: 'show';
|
||||
type AssignerFn = (value: any) => void;
|
||||
declare const assignKey: unique symbol;
|
||||
type ModelDirective<T, Modifiers extends string = string> = ObjectDirective<T & {
|
||||
[assignKey]: AssignerFn;
|
||||
_assigning?: boolean;
|
||||
}, any, Modifiers>;
|
||||
export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, 'trim' | 'number' | 'lazy'>;
|
||||
export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
|
||||
export declare const vModelRadio: ModelDirective<HTMLInputElement>;
|
||||
export declare const vModelSelect: ModelDirective<HTMLSelectElement, 'number'>;
|
||||
export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
||||
type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModelSelect | typeof vModelRadio | typeof vModelDynamic;
|
||||
|
||||
export type VueElementConstructor<P = {}> = {
|
||||
new (initialProps?: Record<string, any>): VueElement & P;
|
||||
};
|
||||
export interface CustomElementOptions {
|
||||
styles?: string[];
|
||||
shadowRoot?: boolean;
|
||||
nonce?: string;
|
||||
configureApp?: (app: App) => void;
|
||||
}
|
||||
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
|
||||
props?: (keyof Props)[];
|
||||
}): VueElementConstructor<Props>;
|
||||
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
|
||||
props?: ComponentObjectPropsOptions<Props>;
|
||||
}): VueElementConstructor<Props>;
|
||||
export declare function defineCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, PropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions = {}, EmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, InferredProps = string extends PropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
|
||||
[key in PropsKeys]?: any;
|
||||
}, ResolvedProps = InferredProps & EmitsToProps<RuntimeEmitsOptions>>(options: CustomElementOptions & {
|
||||
props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
|
||||
} & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, // Defaults
|
||||
InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>;
|
||||
export declare function defineCustomElement<T extends {
|
||||
new (...args: any[]): ComponentPublicInstance<any>;
|
||||
}>(options: T, extraOptions?: CustomElementOptions): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
|
||||
/*! #__NO_SIDE_EFFECTS__ */
|
||||
export declare const defineSSRCustomElement: typeof defineCustomElement;
|
||||
declare const BaseClass: typeof HTMLElement;
|
||||
type InnerComponentDef = ConcreteComponent & CustomElementOptions;
|
||||
export declare class VueElement extends BaseClass implements ComponentCustomElementInterface {
|
||||
/**
|
||||
* Component def - note this may be an AsyncWrapper, and this._def will
|
||||
* be overwritten by the inner component when resolved.
|
||||
*/
|
||||
private _def;
|
||||
private _props;
|
||||
private _createApp;
|
||||
_isVueCE: boolean;
|
||||
private _connected;
|
||||
private _resolved;
|
||||
private _numberProps;
|
||||
private _styleChildren;
|
||||
private _pendingResolve;
|
||||
private _parent;
|
||||
/**
|
||||
* dev only
|
||||
*/
|
||||
private _styles?;
|
||||
/**
|
||||
* dev only
|
||||
*/
|
||||
private _childStyles?;
|
||||
private _ob?;
|
||||
private _slots?;
|
||||
constructor(
|
||||
/**
|
||||
* Component def - note this may be an AsyncWrapper, and this._def will
|
||||
* be overwritten by the inner component when resolved.
|
||||
*/
|
||||
_def: InnerComponentDef, _props?: Record<string, any>, _createApp?: CreateAppFunction<Element>);
|
||||
connectedCallback(): void;
|
||||
private _setParent;
|
||||
disconnectedCallback(): void;
|
||||
/**
|
||||
* resolve inner component definition (handle possible async component)
|
||||
*/
|
||||
private _resolveDef;
|
||||
private _mount;
|
||||
private _resolveProps;
|
||||
protected _setAttr(key: string): void;
|
||||
private _update;
|
||||
private _createVNode;
|
||||
private _applyStyles;
|
||||
/**
|
||||
* Only called when shadowRoot is false
|
||||
*/
|
||||
private _parseSlots;
|
||||
/**
|
||||
* Only called when shadowRoot is false
|
||||
*/
|
||||
private _renderSlots;
|
||||
}
|
||||
export declare function useHost(caller?: string): VueElement | null;
|
||||
/**
|
||||
* Retrieve the shadowRoot of the current custom element. Only usable in setup()
|
||||
* of a `defineCustomElement` component.
|
||||
*/
|
||||
export declare function useShadowRoot(): ShadowRoot | null;
|
||||
|
||||
export declare function useCssModule(name?: string): Record<string, string>;
|
||||
|
||||
/**
|
||||
* Runtime helper for SFC's CSS variable injection feature.
|
||||
* @private
|
||||
*/
|
||||
export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
|
||||
|
||||
export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
|
||||
/**
|
||||
@@ -437,8 +494,9 @@ export interface DataHTMLAttributes extends HTMLAttributes {
|
||||
value?: string | ReadonlyArray<string> | number;
|
||||
}
|
||||
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
||||
name?: string;
|
||||
open?: Booleanish;
|
||||
onToggle?: Event;
|
||||
onToggle?: (payload: ToggleEvent) => void;
|
||||
}
|
||||
export interface DelHTMLAttributes extends HTMLAttributes {
|
||||
cite?: string;
|
||||
@@ -446,6 +504,7 @@ export interface DelHTMLAttributes extends HTMLAttributes {
|
||||
}
|
||||
export interface DialogHTMLAttributes extends HTMLAttributes {
|
||||
open?: Booleanish;
|
||||
onClose?: (payload: Event) => void;
|
||||
}
|
||||
export interface EmbedHTMLAttributes extends HTMLAttributes {
|
||||
height?: Numberish;
|
||||
@@ -478,6 +537,7 @@ export interface IframeHTMLAttributes extends HTMLAttributes {
|
||||
/** @deprecated */
|
||||
frameborder?: Numberish;
|
||||
height?: Numberish;
|
||||
loading?: 'eager' | 'lazy';
|
||||
/** @deprecated */
|
||||
marginheight?: Numberish;
|
||||
/** @deprecated */
|
||||
@@ -1265,7 +1325,8 @@ export interface Events {
|
||||
onVolumechange: Event;
|
||||
onWaiting: Event;
|
||||
onSelect: Event;
|
||||
onScroll: UIEvent;
|
||||
onScroll: Event;
|
||||
onScrollend: Event;
|
||||
onTouchcancel: TouchEvent;
|
||||
onTouchend: TouchEvent;
|
||||
onTouchmove: TouchEvent;
|
||||
@@ -1290,7 +1351,7 @@ type EventHandlers<E> = {
|
||||
};
|
||||
|
||||
export type ReservedProps = {
|
||||
key?: string | number | symbol;
|
||||
key?: PropertyKey;
|
||||
ref?: VNodeRef;
|
||||
ref_for?: boolean;
|
||||
ref_key?: string;
|
||||
@@ -1299,9 +1360,32 @@ export type NativeElements = {
|
||||
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps;
|
||||
};
|
||||
|
||||
/**
|
||||
* This is a stub implementation to prevent the need to use dom types.
|
||||
*
|
||||
* To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
|
||||
*/
|
||||
type DomStub = {};
|
||||
type DomType<T> = typeof globalThis extends {
|
||||
window: unknown;
|
||||
} ? T : DomStub;
|
||||
declare module '@vue/reactivity' {
|
||||
interface RefUnwrapBailTypes {
|
||||
runtimeDOMBailTypes: Node | Window;
|
||||
runtimeDOMBailTypes: DomType<Node | Window>;
|
||||
}
|
||||
}
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Transition: DefineComponent<TransitionProps>;
|
||||
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
||||
}
|
||||
interface GlobalDirectives {
|
||||
vShow: typeof vShow;
|
||||
vOn: VOnDirective;
|
||||
vBind: VModelDirective;
|
||||
vIf: Directive<any, boolean>;
|
||||
VOnce: Directive;
|
||||
VSlot: Directive;
|
||||
}
|
||||
}
|
||||
export declare const render: RootRenderFunction<Element | ShadowRoot>;
|
||||
|
||||
Reference in New Issue
Block a user