@vue/runtime-dom 3.6.0-rc.5 → 3.6.0-rc.7
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 +77 -64
- package/dist/runtime-dom.cjs.prod.js +77 -64
- package/dist/runtime-dom.d.ts +145 -157
- package/dist/runtime-dom.esm-browser.js +622 -458
- package/dist/runtime-dom.esm-browser.prod.js +4 -4
- package/dist/runtime-dom.esm-bundler.js +91 -74
- package/dist/runtime-dom.global.js +622 -458
- package/dist/runtime-dom.global.prod.js +4 -4
- package/package.json +4 -4
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { App, BaseTransitionProps, Component, ComponentCustomElementInterface, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentProvideOptions, ComponentPublicInstance, ComputedOptions, ConcreteComponent, CreateAppFunction, CreateComponentPublicInstanceWithMixins, DefineComponent, Directive, EmitsOptions, EmitsToProps, ExtractPropTypes, FunctionalComponent, MethodOptions, ObjectDirective, RenderFunction, RendererOptions, RootHydrateFunction, RootRenderFunction, SetupContext, SlotsType, VNodeRef } from "@vue/runtime-core";
|
|
2
2
|
import * as CSS from "csstype";
|
|
3
3
|
export * from "@vue/runtime-core";
|
|
4
|
-
|
|
5
4
|
//#region temp/packages/runtime-dom/src/nodeOps.d.ts
|
|
6
5
|
export declare const nodeOps: Omit<RendererOptions<Node, Element>, "patchProp">;
|
|
7
6
|
//#endregion
|
|
@@ -32,9 +31,9 @@ export interface TransitionProps extends BaseTransitionProps<Element> {
|
|
|
32
31
|
leaveToClass?: string;
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
|
-
* DOM Transition is a higher-order-component based on the platform-agnostic
|
|
36
|
-
* base Transition component, with DOM-specific logic.
|
|
37
|
-
*/
|
|
34
|
+
* DOM Transition is a higher-order-component based on the platform-agnostic
|
|
35
|
+
* base Transition component, with DOM-specific logic.
|
|
36
|
+
*/
|
|
38
37
|
export declare const Transition: FunctionalComponent<TransitionProps>;
|
|
39
38
|
//#endregion
|
|
40
39
|
//#region temp/packages/runtime-dom/src/components/TransitionGroup.d.ts
|
|
@@ -66,8 +65,8 @@ type CompatModifiers = keyof typeof keyNames;
|
|
|
66
65
|
type VOnModifiers = SystemModifiers | ModifierGuards | CompatModifiers;
|
|
67
66
|
type ModifierGuards = "shift" | "ctrl" | "alt" | "meta" | "left" | "right" | "stop" | "prevent" | "self" | "middle" | "exact";
|
|
68
67
|
/**
|
|
69
|
-
* @private
|
|
70
|
-
*/
|
|
68
|
+
* @private
|
|
69
|
+
*/
|
|
71
70
|
export declare const withModifiers: <T extends (event: Event, ...args: unknown[]) => any>(fn: T & {
|
|
72
71
|
_withMods?: {
|
|
73
72
|
[key: string]: T;
|
|
@@ -75,8 +74,8 @@ export declare const withModifiers: <T extends (event: Event, ...args: unknown[]
|
|
|
75
74
|
}, modifiers: VOnModifiers[]) => T;
|
|
76
75
|
declare const keyNames: Record<"esc" | "space" | "up" | "left" | "right" | "down" | "delete", string>;
|
|
77
76
|
/**
|
|
78
|
-
* @private
|
|
79
|
-
*/
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
80
79
|
export declare const withKeys: <T extends (event: KeyboardEvent) => any>(fn: T & {
|
|
81
80
|
_withKeys?: {
|
|
82
81
|
[k: string]: T;
|
|
@@ -91,7 +90,7 @@ declare const initialValueKey: unique symbol;
|
|
|
91
90
|
type ModelDirective<T, Modifiers extends string = string> = ObjectDirective<T & {
|
|
92
91
|
[assignKey]: AssignerFn;
|
|
93
92
|
[initialValueKey]?: string;
|
|
94
|
-
|
|
93
|
+
_pendingValue?: [multiple: boolean, value: any];
|
|
95
94
|
}, any, Modifiers>;
|
|
96
95
|
export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, "trim" | "number" | "lazy">;
|
|
97
96
|
export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
|
|
@@ -103,13 +102,13 @@ type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModel
|
|
|
103
102
|
//#region temp/packages/runtime-dom/src/jsx.d.ts
|
|
104
103
|
export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
|
|
105
104
|
/**
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
* The index signature was removed to enable closed typing for style
|
|
106
|
+
* using CSSType. You're able to use type assertion or module augmentation
|
|
107
|
+
* to add properties or an index signature of your own.
|
|
108
|
+
*
|
|
109
|
+
* For examples and more information, visit:
|
|
110
|
+
* https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
|
|
111
|
+
*/
|
|
113
112
|
[v: `--${string}`]: string | number | undefined;
|
|
114
113
|
}
|
|
115
114
|
type Booleanish = boolean | "true" | "false";
|
|
@@ -120,99 +119,99 @@ export interface AriaAttributes {
|
|
|
120
119
|
/** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
|
|
121
120
|
"aria-atomic"?: Booleanish | undefined;
|
|
122
121
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
* Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
|
|
123
|
+
* presented if they are made.
|
|
124
|
+
*/
|
|
126
125
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
127
126
|
/** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
|
|
128
127
|
"aria-busy"?: Booleanish | undefined;
|
|
129
128
|
/**
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
130
|
+
* @see aria-pressed @see aria-selected.
|
|
131
|
+
*/
|
|
133
132
|
"aria-checked"?: Booleanish | "mixed" | undefined;
|
|
134
133
|
/**
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
* Defines the total number of columns in a table, grid, or treegrid.
|
|
135
|
+
* @see aria-colindex.
|
|
136
|
+
*/
|
|
138
137
|
"aria-colcount"?: Numberish | undefined;
|
|
139
138
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
140
|
+
* @see aria-colcount @see aria-colspan.
|
|
141
|
+
*/
|
|
143
142
|
"aria-colindex"?: Numberish | undefined;
|
|
144
143
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
145
|
+
* @see aria-colindex @see aria-rowspan.
|
|
146
|
+
*/
|
|
148
147
|
"aria-colspan"?: Numberish | undefined;
|
|
149
148
|
/**
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
150
|
+
* @see aria-owns.
|
|
151
|
+
*/
|
|
153
152
|
"aria-controls"?: string | undefined;
|
|
154
153
|
/** Indicates the element that represents the current item within a container or set of related elements. */
|
|
155
154
|
"aria-current"?: Booleanish | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
156
155
|
/**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
* Identifies the element (or elements) that describes the object.
|
|
157
|
+
* @see aria-labelledby
|
|
158
|
+
*/
|
|
160
159
|
"aria-describedby"?: string | undefined;
|
|
161
160
|
/**
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
* Identifies the element that provides a detailed, extended description for the object.
|
|
162
|
+
* @see aria-describedby.
|
|
163
|
+
*/
|
|
165
164
|
"aria-details"?: string | undefined;
|
|
166
165
|
/**
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
167
|
+
* @see aria-hidden @see aria-readonly.
|
|
168
|
+
*/
|
|
170
169
|
"aria-disabled"?: Booleanish | undefined;
|
|
171
170
|
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
172
|
+
* @deprecated in ARIA 1.1
|
|
173
|
+
*/
|
|
175
174
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
176
175
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
* Identifies the element that provides an error message for the object.
|
|
177
|
+
* @see aria-invalid @see aria-describedby.
|
|
178
|
+
*/
|
|
180
179
|
"aria-errormessage"?: string | undefined;
|
|
181
180
|
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
|
182
181
|
"aria-expanded"?: Booleanish | undefined;
|
|
183
182
|
/**
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
184
|
+
* allows assistive technology to override the general default of reading in document source order.
|
|
185
|
+
*/
|
|
187
186
|
"aria-flowto"?: string | undefined;
|
|
188
187
|
/**
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
189
|
+
* @deprecated in ARIA 1.1
|
|
190
|
+
*/
|
|
192
191
|
"aria-grabbed"?: Booleanish | undefined;
|
|
193
192
|
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
|
|
194
193
|
"aria-haspopup"?: Booleanish | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
195
194
|
/**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
* Indicates whether the element is exposed to an accessibility API.
|
|
196
|
+
* @see aria-disabled.
|
|
197
|
+
*/
|
|
199
198
|
"aria-hidden"?: Booleanish | undefined;
|
|
200
199
|
/**
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
201
|
+
* @see aria-errormessage.
|
|
202
|
+
*/
|
|
204
203
|
"aria-invalid"?: Booleanish | "grammar" | "spelling" | undefined;
|
|
205
204
|
/** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
|
|
206
205
|
"aria-keyshortcuts"?: string | undefined;
|
|
207
206
|
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
* Defines a string value that labels the current element.
|
|
208
|
+
* @see aria-labelledby.
|
|
209
|
+
*/
|
|
211
210
|
"aria-label"?: string | undefined;
|
|
212
211
|
/**
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
* Identifies the element (or elements) that labels the current element.
|
|
213
|
+
* @see aria-describedby.
|
|
214
|
+
*/
|
|
216
215
|
"aria-labelledby"?: string | undefined;
|
|
217
216
|
/** Defines the hierarchical level of an element within a structure. */
|
|
218
217
|
"aria-level"?: Numberish | undefined;
|
|
@@ -227,64 +226,64 @@ export interface AriaAttributes {
|
|
|
227
226
|
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
|
|
228
227
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
229
228
|
/**
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
229
|
+
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
230
|
+
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
231
|
+
* @see aria-controls.
|
|
232
|
+
*/
|
|
234
233
|
"aria-owns"?: string | undefined;
|
|
235
234
|
/**
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
236
|
+
* A hint could be a sample value or a brief description of the expected format.
|
|
237
|
+
*/
|
|
239
238
|
"aria-placeholder"?: string | undefined;
|
|
240
239
|
/**
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
* Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
241
|
+
* @see aria-setsize.
|
|
242
|
+
*/
|
|
244
243
|
"aria-posinset"?: Numberish | undefined;
|
|
245
244
|
/**
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
* Indicates the current "pressed" state of toggle buttons.
|
|
246
|
+
* @see aria-checked @see aria-selected.
|
|
247
|
+
*/
|
|
249
248
|
"aria-pressed"?: Booleanish | "mixed" | undefined;
|
|
250
249
|
/**
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
* Indicates that the element is not editable, but is otherwise operable.
|
|
251
|
+
* @see aria-disabled.
|
|
252
|
+
*/
|
|
254
253
|
"aria-readonly"?: Booleanish | undefined;
|
|
255
254
|
/**
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
256
|
+
* @see aria-atomic.
|
|
257
|
+
*/
|
|
259
258
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
260
259
|
/** Indicates that user input is required on the element before a form may be submitted. */
|
|
261
260
|
"aria-required"?: Booleanish | undefined;
|
|
262
261
|
/** Defines a human-readable, author-localized description for the role of an element. */
|
|
263
262
|
"aria-roledescription"?: string | undefined;
|
|
264
263
|
/**
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
* Defines the total number of rows in a table, grid, or treegrid.
|
|
265
|
+
* @see aria-rowindex.
|
|
266
|
+
*/
|
|
268
267
|
"aria-rowcount"?: Numberish | undefined;
|
|
269
268
|
/**
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
269
|
+
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
270
|
+
* @see aria-rowcount @see aria-rowspan.
|
|
271
|
+
*/
|
|
273
272
|
"aria-rowindex"?: Numberish | undefined;
|
|
274
273
|
/**
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
275
|
+
* @see aria-rowindex @see aria-colspan.
|
|
276
|
+
*/
|
|
278
277
|
"aria-rowspan"?: Numberish | undefined;
|
|
279
278
|
/**
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
* Indicates the current "selected" state of various widgets.
|
|
280
|
+
* @see aria-checked @see aria-pressed.
|
|
281
|
+
*/
|
|
283
282
|
"aria-selected"?: Booleanish | undefined;
|
|
284
283
|
/**
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
* Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
285
|
+
* @see aria-posinset.
|
|
286
|
+
*/
|
|
288
287
|
"aria-setsize"?: Numberish | undefined;
|
|
289
288
|
/** Indicates if items in a table or grid are sorted in ascending or descending order. */
|
|
290
289
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -293,9 +292,9 @@ export interface AriaAttributes {
|
|
|
293
292
|
/** Defines the minimum allowed value for a range widget. */
|
|
294
293
|
"aria-valuemin"?: Numberish | undefined;
|
|
295
294
|
/**
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
295
|
+
* Defines the current value for a range widget.
|
|
296
|
+
* @see aria-valuetext.
|
|
297
|
+
*/
|
|
299
298
|
"aria-valuenow"?: Numberish | undefined;
|
|
300
299
|
/** Defines the human readable text alternative of aria-valuenow for a range widget. */
|
|
301
300
|
"aria-valuetext"?: string | undefined;
|
|
@@ -313,8 +312,8 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
313
312
|
draggable?: Booleanish | undefined;
|
|
314
313
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
315
314
|
/**
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
* @deprecated Use `enterkeyhint` instead.
|
|
316
|
+
*/
|
|
318
317
|
enterKeyHint?: HTMLAttributes["enterkeyhint"];
|
|
319
318
|
hidden?: Booleanish | "" | "hidden" | "until-found" | undefined;
|
|
320
319
|
id?: string | undefined;
|
|
@@ -348,22 +347,22 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
348
347
|
security?: string | undefined;
|
|
349
348
|
unselectable?: "on" | "off" | undefined;
|
|
350
349
|
/**
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
350
|
+
* Hints at the type of data that might be entered by the user while editing the element or its contents
|
|
351
|
+
* @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
|
|
352
|
+
*/
|
|
354
353
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
355
354
|
/**
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
355
|
+
* Specify that a standard HTML element should behave like a defined custom built-in element
|
|
356
|
+
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
|
|
357
|
+
*/
|
|
359
358
|
is?: string | undefined;
|
|
360
359
|
/**
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
|
|
361
|
+
*/
|
|
363
362
|
exportparts?: string;
|
|
364
363
|
/**
|
|
365
|
-
|
|
366
|
-
|
|
364
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
|
|
365
|
+
*/
|
|
367
366
|
part?: string;
|
|
368
367
|
}
|
|
369
368
|
type HTMLAttributeReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
@@ -774,9 +773,9 @@ export interface WebViewHTMLAttributes extends HTMLAttributes {
|
|
|
774
773
|
export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
775
774
|
innerHTML?: string | undefined;
|
|
776
775
|
/**
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
* SVG Styling Attributes
|
|
777
|
+
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
778
|
+
*/
|
|
780
779
|
class?: ClassValue | undefined;
|
|
781
780
|
style?: StyleValue | undefined;
|
|
782
781
|
color?: string | undefined;
|
|
@@ -1303,14 +1302,14 @@ export interface Events {
|
|
|
1303
1302
|
onTransitionrun: TransitionEvent;
|
|
1304
1303
|
onTransitionstart: TransitionEvent;
|
|
1305
1304
|
}
|
|
1306
|
-
type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
|
|
1305
|
+
type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void; };
|
|
1307
1306
|
export interface ReservedProps {
|
|
1308
1307
|
key?: PropertyKey | undefined;
|
|
1309
1308
|
ref?: VNodeRef | undefined;
|
|
1310
1309
|
ref_for?: boolean | undefined;
|
|
1311
1310
|
ref_key?: string | undefined;
|
|
1312
1311
|
}
|
|
1313
|
-
export type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps };
|
|
1312
|
+
export type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps; };
|
|
1314
1313
|
//#endregion
|
|
1315
1314
|
//#region temp/packages/runtime-dom/src/apiCustomElement.d.ts
|
|
1316
1315
|
export type VueElementConstructor<P = {}> = {
|
|
@@ -1329,7 +1328,7 @@ export declare function defineCustomElement<Props, RawBindings = object>(setup:
|
|
|
1329
1328
|
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions & {
|
|
1330
1329
|
props?: ComponentObjectPropsOptions<Props>;
|
|
1331
1330
|
}): VueElementConstructor<Props>;
|
|
1332
|
-
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 =
|
|
1331
|
+
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 & {
|
|
1333
1332
|
props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
|
|
1334
1333
|
} & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, 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>;
|
|
1335
1334
|
export declare function defineCustomElement<T extends {
|
|
@@ -1355,28 +1354,24 @@ export declare abstract class VueElementBase<E = Element, C = Component, Def ext
|
|
|
1355
1354
|
protected _props: Record<string, any>;
|
|
1356
1355
|
protected _createApp: CreateAppFunction<E, C>;
|
|
1357
1356
|
/**
|
|
1358
|
-
|
|
1359
|
-
|
|
1357
|
+
* dev only
|
|
1358
|
+
*/
|
|
1360
1359
|
protected _styles?: HTMLStyleElement[];
|
|
1361
1360
|
/**
|
|
1362
|
-
|
|
1363
|
-
|
|
1361
|
+
* dev only
|
|
1362
|
+
*/
|
|
1364
1363
|
protected _childStyles?: Map<string, HTMLStyleElement[]>;
|
|
1365
1364
|
protected _ob?: MutationObserver | null;
|
|
1366
1365
|
protected _slots?: Record<string, Node[]>;
|
|
1367
1366
|
/**
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1367
|
+
* Check if this custom element needs hydration.
|
|
1368
|
+
* Returns true if it has a pre-rendered declarative shadow root that
|
|
1369
|
+
* needs to be hydrated.
|
|
1370
|
+
*/
|
|
1372
1371
|
protected abstract _needsHydration(): boolean;
|
|
1373
1372
|
protected abstract _mount(def: Def): void;
|
|
1374
1373
|
protected abstract _update(): void;
|
|
1375
1374
|
protected abstract _unmount(): void;
|
|
1376
|
-
protected abstract _updateSlotNodes(slot: Map<Node, {
|
|
1377
|
-
nodes: Node[];
|
|
1378
|
-
usedFallback: boolean;
|
|
1379
|
-
}>): void;
|
|
1380
1375
|
constructor(def: Def, props: Record<string, any> | undefined, createAppFn: CreateAppFunction<E, C>);
|
|
1381
1376
|
connectedCallback(): void;
|
|
1382
1377
|
disconnectedCallback(): void;
|
|
@@ -1384,8 +1379,8 @@ export declare abstract class VueElementBase<E = Element, C = Component, Def ext
|
|
|
1384
1379
|
protected _inheritParentContext(parent?: VueElementBase | undefined): void;
|
|
1385
1380
|
private _processMutations;
|
|
1386
1381
|
/**
|
|
1387
|
-
|
|
1388
|
-
|
|
1382
|
+
* resolve inner component definition (handle possible async component)
|
|
1383
|
+
*/
|
|
1389
1384
|
private _resolveDef;
|
|
1390
1385
|
private _mountComponent;
|
|
1391
1386
|
protected _processExposed(): void;
|
|
@@ -1396,12 +1391,12 @@ export declare abstract class VueElementBase<E = Element, C = Component, Def ext
|
|
|
1396
1391
|
private _getStyleAnchor;
|
|
1397
1392
|
private _getRootStyleInsertionAnchor;
|
|
1398
1393
|
/**
|
|
1399
|
-
|
|
1400
|
-
|
|
1394
|
+
* Only called when shadowRoot is false
|
|
1395
|
+
*/
|
|
1401
1396
|
private _parseSlots;
|
|
1402
1397
|
/**
|
|
1403
|
-
|
|
1404
|
-
|
|
1398
|
+
* Only called when shadowRoot is false
|
|
1399
|
+
*/
|
|
1405
1400
|
protected _renderSlots(): void;
|
|
1406
1401
|
}
|
|
1407
1402
|
export declare class VueElement extends VueElementBase<Element, Component, InnerComponentDef> {
|
|
@@ -1410,20 +1405,13 @@ export declare class VueElement extends VueElementBase<Element, Component, Inner
|
|
|
1410
1405
|
protected _mount(def: InnerComponentDef): void;
|
|
1411
1406
|
protected _update(): void;
|
|
1412
1407
|
protected _unmount(): void;
|
|
1413
|
-
/**
|
|
1414
|
-
* Only called when shadowRoot is false
|
|
1415
|
-
*/
|
|
1416
|
-
protected _updateSlotNodes(replacements: Map<Node, {
|
|
1417
|
-
nodes: Node[];
|
|
1418
|
-
usedFallback: boolean;
|
|
1419
|
-
}>): void;
|
|
1420
1408
|
private _createVNode;
|
|
1421
1409
|
}
|
|
1422
1410
|
export declare function useHost(caller?: string): VueElementBase | null;
|
|
1423
1411
|
/**
|
|
1424
|
-
* Retrieve the shadowRoot of the current custom element. Only usable in setup()
|
|
1425
|
-
* of a `defineCustomElement` component.
|
|
1426
|
-
*/
|
|
1412
|
+
* Retrieve the shadowRoot of the current custom element. Only usable in setup()
|
|
1413
|
+
* of a `defineCustomElement` component.
|
|
1414
|
+
*/
|
|
1427
1415
|
export declare function useShadowRoot(): ShadowRoot | null;
|
|
1428
1416
|
//#endregion
|
|
1429
1417
|
//#region temp/packages/runtime-dom/src/helpers/useCssModule.d.ts
|
|
@@ -1431,17 +1419,17 @@ export declare function useCssModule(name?: string): Record<string, string>;
|
|
|
1431
1419
|
//#endregion
|
|
1432
1420
|
//#region temp/packages/runtime-dom/src/helpers/useCssVars.d.ts
|
|
1433
1421
|
/**
|
|
1434
|
-
* Runtime helper for SFC's CSS variable injection feature.
|
|
1435
|
-
* @private
|
|
1436
|
-
*/
|
|
1422
|
+
* Runtime helper for SFC's CSS variable injection feature.
|
|
1423
|
+
* @private
|
|
1424
|
+
*/
|
|
1437
1425
|
export declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void;
|
|
1438
1426
|
//#endregion
|
|
1439
1427
|
//#region temp/packages/runtime-dom/src/index.d.ts
|
|
1440
1428
|
/**
|
|
1441
|
-
* This is a stub implementation to prevent the need to use dom types.
|
|
1442
|
-
*
|
|
1443
|
-
* To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
|
|
1444
|
-
*/
|
|
1429
|
+
* This is a stub implementation to prevent the need to use dom types.
|
|
1430
|
+
*
|
|
1431
|
+
* To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
|
|
1432
|
+
*/
|
|
1445
1433
|
type DomType<T> = typeof globalThis extends {
|
|
1446
1434
|
window: unknown;
|
|
1447
1435
|
} ? T : never;
|