@vue/runtime-dom 3.2.47 → 3.3.0-alpha.2
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/dist/runtime-dom.cjs.js +1279 -1456
- package/dist/runtime-dom.cjs.prod.js +1192 -1367
- package/dist/runtime-dom.d.ts +137 -180
- package/dist/runtime-dom.esm-browser.js +9244 -9907
- package/dist/runtime-dom.esm-browser.prod.js +1 -1
- package/dist/runtime-dom.esm-bundler.js +1333 -1516
- package/dist/runtime-dom.global.js +9230 -9895
- package/dist/runtime-dom.global.prod.js +1 -1
- package/package.json +3 -3
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -1,175 +1,141 @@
|
|
|
1
|
-
import { BaseTransitionProps } from '@vue/runtime-core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
declare
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
private _numberProps;
|
|
137
|
-
private _styles?;
|
|
138
|
-
constructor(_def: InnerComponentDef, _props?: Record<string, any>, hydrate?: RootHydrateFunction);
|
|
139
|
-
connectedCallback(): void;
|
|
140
|
-
disconnectedCallback(): void;
|
|
141
|
-
/**
|
|
142
|
-
* resolve inner component definition (handle possible async component)
|
|
143
|
-
*/
|
|
144
|
-
private _resolveDef;
|
|
145
|
-
private _resolveProps;
|
|
146
|
-
protected _setAttr(key: string): void;
|
|
147
|
-
/* Excluded from this release type: _getProp */
|
|
148
|
-
/* Excluded from this release type: _setProp */
|
|
149
|
-
private _update;
|
|
150
|
-
private _createVNode;
|
|
151
|
-
private _applyStyles;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export declare type VueElementConstructor<P = {}> = {
|
|
155
|
-
new (initialProps?: Record<string, any>): VueElement & P;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @private
|
|
160
|
-
*/
|
|
161
|
-
export declare const withKeys: (fn: Function, modifiers: string[]) => (event: KeyboardEvent) => any;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* @private
|
|
165
|
-
*/
|
|
166
|
-
export declare const withModifiers: (fn: Function, modifiers: string[]) => (event: Event, ...args: unknown[]) => any;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export * from "@vue/runtime-core";
|
|
170
|
-
|
|
171
|
-
export { }
|
|
1
|
+
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, ComponentPublicInstance, ComponentInternalInstance, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
|
|
2
|
+
export * from '@vue/runtime-core';
|
|
3
|
+
|
|
4
|
+
export type VueElementConstructor<P = {}> = {
|
|
5
|
+
new (initialProps?: Record<string, any>): VueElement & P;
|
|
6
|
+
};
|
|
7
|
+
declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;
|
|
8
|
+
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>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
|
|
9
|
+
styles?: string[];
|
|
10
|
+
}): VueElementConstructor<Props>;
|
|
11
|
+
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>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
|
|
12
|
+
styles?: string[];
|
|
13
|
+
}): VueElementConstructor<{
|
|
14
|
+
[K in PropNames]: any;
|
|
15
|
+
}>;
|
|
16
|
+
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>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
|
|
17
|
+
styles?: string[];
|
|
18
|
+
}): VueElementConstructor<ExtractPropTypes<PropsOptions>>;
|
|
19
|
+
declare function defineCustomElement(options: {
|
|
20
|
+
new (...args: any[]): ComponentPublicInstance;
|
|
21
|
+
}): VueElementConstructor;
|
|
22
|
+
declare const defineSSRCustomElement: typeof defineCustomElement;
|
|
23
|
+
declare const BaseClass: {
|
|
24
|
+
new (): HTMLElement;
|
|
25
|
+
prototype: HTMLElement;
|
|
26
|
+
};
|
|
27
|
+
export type InnerComponentDef = ConcreteComponent & {
|
|
28
|
+
styles?: string[];
|
|
29
|
+
};
|
|
30
|
+
declare class VueElement extends BaseClass {
|
|
31
|
+
private _def;
|
|
32
|
+
private _props;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
_instance: ComponentInternalInstance | null;
|
|
37
|
+
private _connected;
|
|
38
|
+
private _resolved;
|
|
39
|
+
private _numberProps;
|
|
40
|
+
private _styles?;
|
|
41
|
+
constructor(_def: InnerComponentDef, _props?: Record<string, any>, hydrate?: RootHydrateFunction);
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
disconnectedCallback(): void;
|
|
44
|
+
/**
|
|
45
|
+
* resolve inner component definition (handle possible async component)
|
|
46
|
+
*/
|
|
47
|
+
private _resolveDef;
|
|
48
|
+
private _resolveProps;
|
|
49
|
+
protected _setAttr(key: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
protected _getProp(key: string): any;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
protected _setProp(key: string, val: any, shouldReflect?: boolean, shouldUpdate?: boolean): void;
|
|
58
|
+
private _update;
|
|
59
|
+
private _createVNode;
|
|
60
|
+
private _applyStyles;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare function useCssModule(name?: string): Record<string, string>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Runtime helper for SFC's CSS variable injection feature.
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
|
|
70
|
+
|
|
71
|
+
declare const TRANSITION = "transition";
|
|
72
|
+
declare const ANIMATION = "animation";
|
|
73
|
+
export type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
|
|
74
|
+
export interface TransitionProps extends BaseTransitionProps<Element> {
|
|
75
|
+
name?: string;
|
|
76
|
+
type?: AnimationTypes;
|
|
77
|
+
css?: boolean;
|
|
78
|
+
duration?: number | {
|
|
79
|
+
enter: number;
|
|
80
|
+
leave: number;
|
|
81
|
+
};
|
|
82
|
+
enterFromClass?: string;
|
|
83
|
+
enterActiveClass?: string;
|
|
84
|
+
enterToClass?: string;
|
|
85
|
+
appearFromClass?: string;
|
|
86
|
+
appearActiveClass?: string;
|
|
87
|
+
appearToClass?: string;
|
|
88
|
+
leaveFromClass?: string;
|
|
89
|
+
leaveActiveClass?: string;
|
|
90
|
+
leaveToClass?: string;
|
|
91
|
+
}
|
|
92
|
+
declare const Transition: FunctionalComponent<TransitionProps>;
|
|
93
|
+
|
|
94
|
+
export type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
|
|
95
|
+
tag?: string;
|
|
96
|
+
moveClass?: string;
|
|
97
|
+
};
|
|
98
|
+
declare const TransitionGroup: new () => {
|
|
99
|
+
$props: TransitionGroupProps;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type AssignerFn = (value: any) => void;
|
|
103
|
+
export type ModelDirective<T> = ObjectDirective<T & {
|
|
104
|
+
_assign: AssignerFn;
|
|
105
|
+
}>;
|
|
106
|
+
declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
|
|
107
|
+
declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
|
|
108
|
+
declare const vModelRadio: ModelDirective<HTMLInputElement>;
|
|
109
|
+
declare const vModelSelect: ModelDirective<HTMLSelectElement>;
|
|
110
|
+
declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
declare const withModifiers: (fn: Function, modifiers: string[]) => (event: Event, ...args: unknown[]) => any;
|
|
116
|
+
/**
|
|
117
|
+
* @private
|
|
118
|
+
*/
|
|
119
|
+
declare const withKeys: (fn: Function, modifiers: string[]) => (event: KeyboardEvent) => any;
|
|
120
|
+
|
|
121
|
+
export interface VShowElement extends HTMLElement {
|
|
122
|
+
_vod: string;
|
|
123
|
+
}
|
|
124
|
+
declare const vShow: ObjectDirective<VShowElement>;
|
|
125
|
+
|
|
126
|
+
declare module '@vue/reactivity' {
|
|
127
|
+
interface RefUnwrapBailTypes {
|
|
128
|
+
runtimeDOMBailTypes: Node | Window;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
declare const render: RootRenderFunction<Element | ShadowRoot>;
|
|
132
|
+
declare const hydrate: RootHydrateFunction;
|
|
133
|
+
declare const createApp: CreateAppFunction<Element>;
|
|
134
|
+
declare const createSSRApp: CreateAppFunction<Element>;
|
|
135
|
+
|
|
172
136
|
|
|
137
|
+
|
|
138
|
+
export { Transition, TransitionGroup, VueElement, createApp, createSSRApp, defineCustomElement, defineSSRCustomElement, hydrate, render, useCssModule, useCssVars, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, withKeys, withModifiers };
|
|
173
139
|
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
174
140
|
// build.
|
|
175
141
|
|
|
@@ -1532,12 +1498,3 @@ declare global {
|
|
|
1532
1498
|
|
|
1533
1499
|
// suppress ts:2669
|
|
1534
1500
|
export {}
|
|
1535
|
-
|
|
1536
|
-
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1537
|
-
// build.
|
|
1538
|
-
|
|
1539
|
-
declare module '@vue/reactivity' {
|
|
1540
|
-
export interface RefUnwrapBailTypes {
|
|
1541
|
-
runtimeDOMBailTypes: Node | Window
|
|
1542
|
-
}
|
|
1543
|
-
}
|