@vue/runtime-dom 3.2.46 → 3.3.0-alpha.1

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.
@@ -1,175 +1,141 @@
1
- import { BaseTransitionProps } from '@vue/runtime-core';
2
- import { ComponentInjectOptions } from '@vue/runtime-core';
3
- import { ComponentInternalInstance } from '@vue/runtime-core';
4
- import { ComponentOptionsMixin } from '@vue/runtime-core';
5
- import { ComponentOptionsWithArrayProps } from '@vue/runtime-core';
6
- import { ComponentOptionsWithObjectProps } from '@vue/runtime-core';
7
- import { ComponentOptionsWithoutProps } from '@vue/runtime-core';
8
- import { ComponentPropsOptions } from '@vue/runtime-core';
9
- import { ComponentPublicInstance } from '@vue/runtime-core';
10
- import { ComputedOptions } from '@vue/runtime-core';
11
- import { ConcreteComponent } from '@vue/runtime-core';
12
- import { CreateAppFunction } from '@vue/runtime-core';
13
- import { EmitsOptions } from '@vue/runtime-core';
14
- import { ExtractPropTypes } from '@vue/runtime-core';
15
- import { FunctionalComponent } from '@vue/runtime-core';
16
- import { MethodOptions } from '@vue/runtime-core';
17
- import { ObjectDirective } from '@vue/runtime-core';
18
- import { RenderFunction } from '@vue/runtime-core';
19
- import { RootHydrateFunction } from '@vue/runtime-core';
20
- import { RootRenderFunction } from '@vue/runtime-core';
21
- import { SetupContext } from '@vue/runtime-core';
22
-
23
- declare const ANIMATION = "animation";
24
-
25
- declare type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
26
-
27
- declare type AssignerFn = (value: any) => void;
28
-
29
- declare const BaseClass: {
30
- new (): HTMLElement;
31
- prototype: HTMLElement;
32
- };
33
-
34
- export declare const createApp: CreateAppFunction<Element>;
35
-
36
- export declare const createSSRApp: CreateAppFunction<Element>;
37
-
38
- export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;
39
-
40
- 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>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
41
- styles?: string[];
42
- }): VueElementConstructor<Props>;
43
-
44
- 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>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
45
- styles?: string[];
46
- }): VueElementConstructor<{
47
- [K in PropNames]: any;
48
- }>;
49
-
50
- 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>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
51
- styles?: string[];
52
- }): VueElementConstructor<ExtractPropTypes<PropsOptions>>;
53
-
54
- export declare function defineCustomElement(options: {
55
- new (...args: any[]): ComponentPublicInstance;
56
- }): VueElementConstructor;
57
-
58
- export declare const defineSSRCustomElement: typeof defineCustomElement;
59
-
60
- export declare const hydrate: RootHydrateFunction;
61
-
62
- /* Excluded from this release type: initDirectivesForSSR */
63
-
64
- declare type InnerComponentDef = ConcreteComponent & {
65
- styles?: string[];
66
- };
67
-
68
- declare type ModelDirective<T> = ObjectDirective<T & {
69
- _assign: AssignerFn;
70
- }>;
71
-
72
- export declare const render: RootRenderFunction<Element | ShadowRoot>;
73
-
74
- declare const TRANSITION = "transition";
75
-
76
- export declare const Transition: FunctionalComponent<TransitionProps>;
77
-
78
- export declare const TransitionGroup: new () => {
79
- $props: TransitionGroupProps;
80
- };
81
-
82
- export declare type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
83
- tag?: string;
84
- moveClass?: string;
85
- };
86
-
87
- export declare interface TransitionProps extends BaseTransitionProps<Element> {
88
- name?: string;
89
- type?: AnimationTypes;
90
- css?: boolean;
91
- duration?: number | {
92
- enter: number;
93
- leave: number;
94
- };
95
- enterFromClass?: string;
96
- enterActiveClass?: string;
97
- enterToClass?: string;
98
- appearFromClass?: string;
99
- appearActiveClass?: string;
100
- appearToClass?: string;
101
- leaveFromClass?: string;
102
- leaveActiveClass?: string;
103
- leaveToClass?: string;
104
- }
105
-
106
- export declare function useCssModule(name?: string): Record<string, string>;
107
-
108
- /**
109
- * Runtime helper for SFC's CSS variable injection feature.
110
- * @private
111
- */
112
- export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
113
-
114
- export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
115
-
116
- export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
117
-
118
- export declare const vModelRadio: ModelDirective<HTMLInputElement>;
119
-
120
- export declare const vModelSelect: ModelDirective<HTMLSelectElement>;
121
-
122
- export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
123
-
124
- export declare const vShow: ObjectDirective<VShowElement>;
125
-
126
- declare interface VShowElement extends HTMLElement {
127
- _vod: string;
128
- }
129
-
130
- export declare class VueElement extends BaseClass {
131
- private _def;
132
- private _props;
133
- /* Excluded from this release type: _instance */
134
- private _connected;
135
- private _resolved;
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
- }