@dcloudio/uni-cli-shared 3.0.0-5020320260806002 → 3.0.0-5020420260811002
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/resolve.d.ts +8 -0
- package/dist/resolve.js +78 -2
- package/lib/dom2/@intlify/core-base/LICENSE +20 -0
- package/lib/dom2/@intlify/core-base/dist/core-base.mjs +1903 -0
- package/lib/dom2/@intlify/core-base/package.json +11 -0
- package/lib/dom2/@intlify/message-compiler/LICENSE +20 -0
- package/lib/dom2/@intlify/message-compiler/dist/message-compiler.mjs +1550 -0
- package/lib/dom2/@intlify/message-compiler/package.json +11 -0
- package/lib/dom2/@intlify/shared/LICENSE +20 -0
- package/lib/dom2/@intlify/shared/dist/shared.mjs +333 -0
- package/lib/dom2/@intlify/shared/package.json +11 -0
- package/lib/dom2/@vue/devtools-api/LICENSE +21 -0
- package/lib/dom2/@vue/devtools-api/dist/index.js +26 -0
- package/lib/dom2/@vue/devtools-api/package.json +12 -0
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +2 -20
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +53 -29
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +23 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +22 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +80 -30
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +20 -3
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +369 -317
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +2032 -5522
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11114 -33
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +2825 -4668
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +905 -2413
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +378 -544
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +998 -2549
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +2 -94
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +24 -83
- package/lib/dom2/pinia/LICENSE +21 -0
- package/lib/dom2/pinia/dist/pinia.mjs +1941 -0
- package/lib/dom2/pinia/package.json +11 -0
- package/lib/dom2/vue-i18n/LICENSE +20 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.mjs +2501 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.mjs +2501 -0
- package/lib/dom2/vue-i18n/package.json +12 -0
- package/package.json +5 -5
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import { AllNode, AttributeNode, BaseCodegenResult, BindingMetadata, CodegenOptions as CodegenOptions$1, CodegenSourceMapGenerator, CommentNode, CompilerCompatOptions, CompilerError, CompilerOptions as CompilerOptions$1, CompoundExpressionNode, DirectiveNode, ElementNode, Node as Node$1, NodeTypes, RootNode, SimpleExpressionNode, SourceLocation, TemplateChildNode, TemplateNode, TransformOptions, parse } from "@vue/compiler-dom";
|
|
2
2
|
import { App, BaseTransitionProps, Component, ComponentCustomElementInterface, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentProvideOptions, ComponentPublicInstance, ComputedOptions, ConcreteComponent, CreateAppFunction, CreateComponentPublicInstanceWithMixins, DefineComponent, Directive, EmitsOptions, EmitsToProps, ExtractPropTypes, FunctionalComponent, GenericComponentInstance, HydrationRenderer, MethodOptions, ObjectDirective, RenderFunction, Renderer, RendererOptions, RootHydrateFunction, RootRenderFunction, SetupContext, SlotsType, VNodeRef } from "@vue/runtime-core";
|
|
3
|
-
import { AllowedComponentProps, AsyncComponentInternalOptions, AsyncComponentLoader, AsyncComponentOptions, ComponentCustomProps, ComponentInternalOptions, ComponentObjectPropsOptions as ComponentObjectPropsOptions$1, ComponentPropsOptions, ComponentTypeEmits, CreateAppFunction as CreateAppFunction$1, CustomElementOptions, DirectiveModifiers, EffectScope, EmitFn, EmitsOptions as EmitsOptions$1, EmitsToProps as EmitsToProps$1, ExtractDefaultPropTypes, ExtractPropTypes as ExtractPropTypes$1, GenericAppContext, GenericComponentInstance as GenericComponentInstance$1,
|
|
3
|
+
import { AllowedComponentProps, AsyncComponentInternalOptions, AsyncComponentLoader, AsyncComponentOptions, ComponentCustomProps, ComponentInternalOptions, ComponentObjectPropsOptions as ComponentObjectPropsOptions$1, ComponentPropsOptions, ComponentTypeEmits, CreateAppFunction as CreateAppFunction$1, CustomElementOptions, DirectiveModifiers, EffectScope, EmitFn, EmitsOptions as EmitsOptions$1, EmitsToProps as EmitsToProps$1, ExtractDefaultPropTypes, ExtractPropTypes as ExtractPropTypes$1, GenericAppContext, GenericComponentInstance as GenericComponentInstance$1, LifecycleHook, NULL_DYNAMIC_COMPONENT, NormalizedPropsOptions, ObjectEmitsOptions, Plugin, ReservedProps, SchedulerJob, ShallowUnwrapRef, SuspenseBoundary, TransitionHooks, TransitionProps, TransitionState, TypeEmitsToOptions, VNode, VueElementBase } from "@vue/runtime-dom";
|
|
4
4
|
import { EffectScope as EffectScope$1, ReactiveEffect, Ref, ShallowRef } from "@vue/reactivity";
|
|
5
|
-
import { IsKeyValues, Namespace, NormalizedStyle, Prettify
|
|
5
|
+
import { IsKeyValues, Namespace, NormalizedStyle, Prettify } from "@vue/shared";
|
|
6
6
|
import { ImportItem } from "@vue/compiler-core";
|
|
7
|
-
import { ParserOptions } from "@babel/parser";
|
|
8
7
|
|
|
9
8
|
//#region \0rolldown/runtime.js
|
|
10
9
|
//#endregion
|
|
11
|
-
//#region packages/runtime-dom/src/directives/vShow.d.ts
|
|
12
|
-
declare const vShowOriginalDisplay: unique symbol;
|
|
13
|
-
declare const vShowHidden: unique symbol;
|
|
14
|
-
interface VShowElement extends HTMLElement {
|
|
15
|
-
[vShowOriginalDisplay]?: string;
|
|
16
|
-
[vShowHidden]?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const vShow: ObjectDirective<VShowElement> & {
|
|
19
|
-
name: "show";
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
10
|
//#region node_modules/.pnpm/@types+trusted-types@2.0.7/node_modules/@types/trusted-types/lib/index.d.ts
|
|
23
11
|
declare class TrustedHTML {
|
|
24
12
|
private constructor(); // To prevent instantiting with 'new'.
|
|
@@ -34,7 +22,6 @@ declare const nodeOps: Omit<RendererOptions<Node, Element>, "patchProp">;
|
|
|
34
22
|
type DOMRendererOptions = RendererOptions<Node, Element>;
|
|
35
23
|
declare const patchProp: DOMRendererOptions["patchProp"];
|
|
36
24
|
declare function shouldSetAsProp(el: Element, key: string, value: unknown, isSVG: boolean): boolean;
|
|
37
|
-
declare function shouldSetAsPropForVueCE(el: any, key: string): boolean;
|
|
38
25
|
//#endregion
|
|
39
26
|
//#region packages/runtime-dom/src/components/Transition.d.ts
|
|
40
27
|
declare const TRANSITION = "transition";
|
|
@@ -76,13 +63,13 @@ interface Position$1 {
|
|
|
76
63
|
top: number;
|
|
77
64
|
left: number;
|
|
78
65
|
}
|
|
79
|
-
type TransitionGroupProps
|
|
66
|
+
type TransitionGroupProps = Omit<TransitionProps$1, "mode"> & {
|
|
80
67
|
tag?: string;
|
|
81
68
|
moveClass?: string;
|
|
82
69
|
};
|
|
83
70
|
declare const TransitionGroup: {
|
|
84
71
|
new (): {
|
|
85
|
-
$props: TransitionGroupProps
|
|
72
|
+
$props: TransitionGroupProps;
|
|
86
73
|
};
|
|
87
74
|
};
|
|
88
75
|
declare function callPendingCbs(el: any): void;
|
|
@@ -90,6 +77,17 @@ declare function baseApplyTranslation(oldPos: Position$1, newPos: Position$1, el
|
|
|
90
77
|
declare function hasCSSTransform(el: ElementWithTransition, root: Node, moveClass: string): boolean;
|
|
91
78
|
declare const handleMovedChildren: (el: ElementWithTransition, moveClass: string) => void;
|
|
92
79
|
//#endregion
|
|
80
|
+
//#region packages/runtime-dom/src/directives/vShow.d.ts
|
|
81
|
+
declare const vShowOriginalDisplay: unique symbol;
|
|
82
|
+
declare const vShowHidden: unique symbol;
|
|
83
|
+
interface VShowElement extends HTMLElement {
|
|
84
|
+
[vShowOriginalDisplay]?: string;
|
|
85
|
+
[vShowHidden]?: boolean;
|
|
86
|
+
}
|
|
87
|
+
declare const vShow: ObjectDirective<VShowElement> & {
|
|
88
|
+
name: "show";
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
93
91
|
//#region packages/runtime-dom/src/directives/vOn.d.ts
|
|
94
92
|
declare const systemModifiers: readonly ["ctrl", "shift", "alt", "meta"];
|
|
95
93
|
type SystemModifiers = (typeof systemModifiers)[number];
|
|
@@ -160,6 +158,183 @@ declare function getValue(el: HTMLOptionElement | HTMLInputElement): any;
|
|
|
160
158
|
declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
161
159
|
type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModelSelect | typeof vModelRadio | typeof vModelDynamic;
|
|
162
160
|
//#endregion
|
|
161
|
+
//#region packages/runtime-dom/src/apiCustomElement.d.ts
|
|
162
|
+
type VueElementConstructor<P = {}> = {
|
|
163
|
+
new (initialProps?: Record<string, any>): VueElement & P;
|
|
164
|
+
};
|
|
165
|
+
interface CustomElementOptions$1 {
|
|
166
|
+
styles?: string[];
|
|
167
|
+
shadowRoot?: boolean;
|
|
168
|
+
shadowRootOptions?: Omit<ShadowRootInit, "mode">;
|
|
169
|
+
nonce?: string;
|
|
170
|
+
configureApp?: (app: App) => void;
|
|
171
|
+
}
|
|
172
|
+
declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions$1 & {
|
|
173
|
+
props?: (keyof Props)[];
|
|
174
|
+
}): VueElementConstructor<Props>;
|
|
175
|
+
declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions$1 & {
|
|
176
|
+
props?: ComponentObjectPropsOptions<Props>;
|
|
177
|
+
}): VueElementConstructor<Props>;
|
|
178
|
+
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$1 & {
|
|
179
|
+
props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
|
|
180
|
+
} & 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$1): VueElementConstructor<ResolvedProps>;
|
|
181
|
+
declare function defineCustomElement<T extends {
|
|
182
|
+
new (...args: any[]): ComponentPublicInstance<any>;
|
|
183
|
+
}>(options: T, extraOptions?: CustomElementOptions$1): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
|
|
184
|
+
declare const defineSSRCustomElement: typeof defineCustomElement;
|
|
185
|
+
declare const BaseClass: typeof HTMLElement;
|
|
186
|
+
type InnerComponentDef = ConcreteComponent & CustomElementOptions$1;
|
|
187
|
+
declare abstract class VueElementBase$1<E = Element, C = Component, Def extends CustomElementOptions$1 & {
|
|
188
|
+
props?: any;
|
|
189
|
+
} = InnerComponentDef> extends BaseClass implements ComponentCustomElementInterface {
|
|
190
|
+
_isVueCE: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
_instance: GenericComponentInstance | null;
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
_app: App | null;
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
_root: Element | ShadowRoot;
|
|
203
|
+
/**
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
_nonce: string | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
_teleportTargets?: Set<Element>;
|
|
211
|
+
protected _connected: boolean;
|
|
212
|
+
protected _resolved: boolean;
|
|
213
|
+
protected _numberProps: Record<string, true> | null;
|
|
214
|
+
protected _styleChildren: WeakSet<object>;
|
|
215
|
+
protected _pendingResolve: Promise<void> | undefined;
|
|
216
|
+
protected _parent: VueElementBase$1 | undefined;
|
|
217
|
+
protected _patching: boolean;
|
|
218
|
+
protected _dirty: boolean;
|
|
219
|
+
protected _def: Def;
|
|
220
|
+
protected _props: Record<string, any>;
|
|
221
|
+
protected _createApp: CreateAppFunction<E, C>;
|
|
222
|
+
/**
|
|
223
|
+
* dev only
|
|
224
|
+
*/
|
|
225
|
+
protected _styles?: HTMLStyleElement[];
|
|
226
|
+
/**
|
|
227
|
+
* dev only
|
|
228
|
+
*/
|
|
229
|
+
protected _childStyles?: Map<string, HTMLStyleElement[]>;
|
|
230
|
+
protected _ob?: MutationObserver | null;
|
|
231
|
+
protected _slots?: Record<string, Node[]>;
|
|
232
|
+
/**
|
|
233
|
+
* Check if this custom element needs hydration.
|
|
234
|
+
* Returns true if it has a pre-rendered declarative shadow root that
|
|
235
|
+
* needs to be hydrated.
|
|
236
|
+
*/
|
|
237
|
+
protected abstract _needsHydration(): boolean;
|
|
238
|
+
protected abstract _mount(def: Def): void;
|
|
239
|
+
protected abstract _update(): void;
|
|
240
|
+
protected abstract _unmount(): void;
|
|
241
|
+
protected abstract _updateSlotNodes(slot: Map<Node, Node[]>): void;
|
|
242
|
+
constructor(def: Def, props: Record<string, any> | undefined, createAppFn: CreateAppFunction<E, C>);
|
|
243
|
+
connectedCallback(): void;
|
|
244
|
+
disconnectedCallback(): void;
|
|
245
|
+
protected _setParent(parent?: VueElementBase$1 | undefined): void;
|
|
246
|
+
protected _inheritParentContext(parent?: VueElementBase$1 | undefined): void;
|
|
247
|
+
private _processMutations;
|
|
248
|
+
/**
|
|
249
|
+
* resolve inner component definition (handle possible async component)
|
|
250
|
+
*/
|
|
251
|
+
private _resolveDef;
|
|
252
|
+
private _mountComponent;
|
|
253
|
+
protected _processExposed(): void;
|
|
254
|
+
protected _processInstance(): void;
|
|
255
|
+
private _resolveProps;
|
|
256
|
+
private _setAttr;
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
protected _getProp(key: string): any;
|
|
261
|
+
/**
|
|
262
|
+
* @internal
|
|
263
|
+
*/
|
|
264
|
+
_setProp(key: string, val: any, shouldReflect?: boolean, shouldUpdate?: boolean): void;
|
|
265
|
+
protected _applyStyles(styles: string[] | undefined, owner?: ConcreteComponent): void;
|
|
266
|
+
/**
|
|
267
|
+
* Only called when shadowRoot is false
|
|
268
|
+
*/
|
|
269
|
+
private _parseSlots;
|
|
270
|
+
/**
|
|
271
|
+
* Only called when shadowRoot is false
|
|
272
|
+
*/
|
|
273
|
+
protected _renderSlots(): void;
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
277
|
+
private _getSlots;
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
_injectChildStyle(comp: ConcreteComponent & CustomElementOptions$1): void;
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
_beginPatch(): void;
|
|
286
|
+
/**
|
|
287
|
+
* @internal
|
|
288
|
+
*/
|
|
289
|
+
_endPatch(): void;
|
|
290
|
+
/**
|
|
291
|
+
* @internal
|
|
292
|
+
*/
|
|
293
|
+
_hasShadowRoot(): boolean;
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
_removeChildStyle(comp: ConcreteComponent): void;
|
|
298
|
+
}
|
|
299
|
+
declare class VueElement extends VueElementBase$1<Element, Component, InnerComponentDef> {
|
|
300
|
+
constructor(def: InnerComponentDef, props?: Record<string, any> | undefined, createAppFn?: CreateAppFunction<Element, Component>);
|
|
301
|
+
protected _needsHydration(): boolean;
|
|
302
|
+
protected _mount(def: InnerComponentDef): void;
|
|
303
|
+
protected _update(): void;
|
|
304
|
+
protected _unmount(): void;
|
|
305
|
+
/**
|
|
306
|
+
* Only called when shadowRoot is false
|
|
307
|
+
*/
|
|
308
|
+
protected _updateSlotNodes(replacements: Map<Node, Node[]>): void;
|
|
309
|
+
private _createVNode;
|
|
310
|
+
}
|
|
311
|
+
declare function useHost(caller?: string): VueElementBase$1 | null;
|
|
312
|
+
/**
|
|
313
|
+
* Retrieve the shadowRoot of the current custom element. Only usable in setup()
|
|
314
|
+
* of a `defineCustomElement` component.
|
|
315
|
+
*/
|
|
316
|
+
declare function useShadowRoot(): ShadowRoot | null;
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region packages/runtime-dom/src/helpers/useCssModule.d.ts
|
|
319
|
+
declare function useCssModule(name?: string): Record<string, string>;
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region packages/runtime-dom/src/helpers/useCssVars.d.ts
|
|
322
|
+
/**
|
|
323
|
+
* Runtime helper for SFC's CSS variable injection feature.
|
|
324
|
+
* @private
|
|
325
|
+
*/
|
|
326
|
+
declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void;
|
|
327
|
+
/**
|
|
328
|
+
* @internal
|
|
329
|
+
* shared between vdom and vapor
|
|
330
|
+
*/
|
|
331
|
+
declare function baseUseCssVars(instance: GenericComponentInstance | null, getParentNode: () => Node, getVars: () => Record<string, any>, setVars: (vars: Record<string, any>) => void): void;
|
|
332
|
+
/**
|
|
333
|
+
* @internal
|
|
334
|
+
* shared between vdom and vapor
|
|
335
|
+
*/
|
|
336
|
+
declare function setVarsOnNode(el: Node, vars: Record<string, string>): void;
|
|
337
|
+
//#endregion
|
|
163
338
|
//#region node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts
|
|
164
339
|
interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
165
340
|
/**
|
|
@@ -20532,10 +20707,9 @@ interface AriaAttributes {
|
|
|
20532
20707
|
"aria-valuetext"?: string | undefined;
|
|
20533
20708
|
}
|
|
20534
20709
|
type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
|
|
20535
|
-
type ClassValue = false | null | undefined | string | Record<string, any> | Array<ClassValue>;
|
|
20536
20710
|
interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
20537
20711
|
innerHTML?: string | undefined;
|
|
20538
|
-
class?:
|
|
20712
|
+
class?: any;
|
|
20539
20713
|
style?: StyleValue | undefined;
|
|
20540
20714
|
accesskey?: string | undefined;
|
|
20541
20715
|
contenteditable?: Booleanish | "inherit" | "plaintext-only" | undefined;
|
|
@@ -21008,7 +21182,7 @@ interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
21008
21182
|
* SVG Styling Attributes
|
|
21009
21183
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
21010
21184
|
*/
|
|
21011
|
-
class?:
|
|
21185
|
+
class?: any;
|
|
21012
21186
|
style?: StyleValue | undefined;
|
|
21013
21187
|
color?: string | undefined;
|
|
21014
21188
|
height?: Numberish | undefined;
|
|
@@ -21543,203 +21717,14 @@ interface ReservedProps$1 {
|
|
|
21543
21717
|
}
|
|
21544
21718
|
type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 };
|
|
21545
21719
|
//#endregion
|
|
21546
|
-
//#region packages/runtime-dom/src/apiCustomElement.d.ts
|
|
21547
|
-
type VueElementConstructor<P = {}> = {
|
|
21548
|
-
new (initialProps?: Record<string, any>): VueElement & P;
|
|
21549
|
-
};
|
|
21550
|
-
interface CustomElementOptions$1 {
|
|
21551
|
-
styles?: string[];
|
|
21552
|
-
shadowRoot?: boolean;
|
|
21553
|
-
shadowRootOptions?: Omit<ShadowRootInit, "mode">;
|
|
21554
|
-
nonce?: string;
|
|
21555
|
-
configureApp?: (app: App) => void;
|
|
21556
|
-
}
|
|
21557
|
-
declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions$1 & {
|
|
21558
|
-
props?: (keyof Props)[];
|
|
21559
|
-
}): VueElementConstructor<Props>;
|
|
21560
|
-
declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions$1 & {
|
|
21561
|
-
props?: ComponentObjectPropsOptions<Props>;
|
|
21562
|
-
}): VueElementConstructor<Props>;
|
|
21563
|
-
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$1 & {
|
|
21564
|
-
props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
|
|
21565
|
-
} & 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$1): VueElementConstructor<ResolvedProps>;
|
|
21566
|
-
declare function defineCustomElement<T extends {
|
|
21567
|
-
new (...args: any[]): ComponentPublicInstance<any>;
|
|
21568
|
-
}>(options: T, extraOptions?: CustomElementOptions$1): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
|
|
21569
|
-
declare const defineSSRCustomElement: typeof defineCustomElement;
|
|
21570
|
-
declare const BaseClass: typeof HTMLElement;
|
|
21571
|
-
type InnerComponentDef = ConcreteComponent & CustomElementOptions$1;
|
|
21572
|
-
declare abstract class VueElementBase$1<E = Element, C = Component, Def extends CustomElementOptions$1 & {
|
|
21573
|
-
props?: any;
|
|
21574
|
-
} = InnerComponentDef> extends BaseClass implements ComponentCustomElementInterface {
|
|
21575
|
-
_isVueCE: boolean;
|
|
21576
|
-
/**
|
|
21577
|
-
* @internal
|
|
21578
|
-
*/
|
|
21579
|
-
_instance: GenericComponentInstance | null;
|
|
21580
|
-
/**
|
|
21581
|
-
* @internal
|
|
21582
|
-
*/
|
|
21583
|
-
_app: App | null;
|
|
21584
|
-
/**
|
|
21585
|
-
* @internal
|
|
21586
|
-
*/
|
|
21587
|
-
_root: Element | ShadowRoot;
|
|
21588
|
-
/**
|
|
21589
|
-
* @internal
|
|
21590
|
-
*/
|
|
21591
|
-
_nonce: string | undefined;
|
|
21592
|
-
/**
|
|
21593
|
-
* @internal
|
|
21594
|
-
*/
|
|
21595
|
-
_teleportTargets?: Set<Element>;
|
|
21596
|
-
protected _connected: boolean;
|
|
21597
|
-
protected _resolved: boolean;
|
|
21598
|
-
protected _numberProps: Record<string, true> | null;
|
|
21599
|
-
protected _styleChildren: WeakSet<object>;
|
|
21600
|
-
protected _styleAnchors: WeakMap<ConcreteComponent, HTMLStyleElement>;
|
|
21601
|
-
protected _pendingResolve: Promise<void> | undefined;
|
|
21602
|
-
protected _parent: VueElementBase$1 | undefined;
|
|
21603
|
-
protected _patching: boolean;
|
|
21604
|
-
protected _dirty: boolean;
|
|
21605
|
-
protected _def: Def;
|
|
21606
|
-
protected _props: Record<string, any>;
|
|
21607
|
-
protected _createApp: CreateAppFunction<E, C>;
|
|
21608
|
-
/**
|
|
21609
|
-
* dev only
|
|
21610
|
-
*/
|
|
21611
|
-
protected _styles?: HTMLStyleElement[];
|
|
21612
|
-
/**
|
|
21613
|
-
* dev only
|
|
21614
|
-
*/
|
|
21615
|
-
protected _childStyles?: Map<string, HTMLStyleElement[]>;
|
|
21616
|
-
protected _ob?: MutationObserver | null;
|
|
21617
|
-
protected _slots?: Record<string, Node[]>;
|
|
21618
|
-
/**
|
|
21619
|
-
* Check if this custom element needs hydration.
|
|
21620
|
-
* Returns true if it has a pre-rendered declarative shadow root that
|
|
21621
|
-
* needs to be hydrated.
|
|
21622
|
-
*/
|
|
21623
|
-
protected abstract _needsHydration(): boolean;
|
|
21624
|
-
protected abstract _mount(def: Def): void;
|
|
21625
|
-
protected abstract _update(): void;
|
|
21626
|
-
protected abstract _unmount(): void;
|
|
21627
|
-
protected abstract _updateSlotNodes(slot: Map<Node, {
|
|
21628
|
-
nodes: Node[];
|
|
21629
|
-
usedFallback: boolean;
|
|
21630
|
-
}>): void;
|
|
21631
|
-
constructor(def: Def, props: Record<string, any> | undefined, createAppFn: CreateAppFunction<E, C>);
|
|
21632
|
-
connectedCallback(): void;
|
|
21633
|
-
disconnectedCallback(): void;
|
|
21634
|
-
protected _setParent(parent?: VueElementBase$1 | undefined): void;
|
|
21635
|
-
protected _inheritParentContext(parent?: VueElementBase$1 | undefined): void;
|
|
21636
|
-
private _processMutations;
|
|
21637
|
-
/**
|
|
21638
|
-
* resolve inner component definition (handle possible async component)
|
|
21639
|
-
*/
|
|
21640
|
-
private _resolveDef;
|
|
21641
|
-
private _mountComponent;
|
|
21642
|
-
protected _processExposed(): void;
|
|
21643
|
-
protected _processInstance(): void;
|
|
21644
|
-
private _resolveProps;
|
|
21645
|
-
private _setAttr;
|
|
21646
|
-
/**
|
|
21647
|
-
* @internal
|
|
21648
|
-
*/
|
|
21649
|
-
protected _getProp(key: string): any;
|
|
21650
|
-
/**
|
|
21651
|
-
* @internal
|
|
21652
|
-
*/
|
|
21653
|
-
_setProp(key: string, val: any, shouldReflect?: boolean, shouldUpdate?: boolean): void;
|
|
21654
|
-
protected _applyStyles(styles: string[] | undefined, owner?: ConcreteComponent, parentComp?: ConcreteComponent): void;
|
|
21655
|
-
private _getStyleAnchor;
|
|
21656
|
-
private _getRootStyleInsertionAnchor;
|
|
21657
|
-
/**
|
|
21658
|
-
* Only called when shadowRoot is false
|
|
21659
|
-
*/
|
|
21660
|
-
private _parseSlots;
|
|
21661
|
-
/**
|
|
21662
|
-
* Only called when shadowRoot is false
|
|
21663
|
-
*/
|
|
21664
|
-
protected _renderSlots(): void;
|
|
21665
|
-
/**
|
|
21666
|
-
* @internal
|
|
21667
|
-
*/
|
|
21668
|
-
private _getSlots;
|
|
21669
|
-
/**
|
|
21670
|
-
* @internal
|
|
21671
|
-
*/
|
|
21672
|
-
_injectChildStyle(comp: ConcreteComponent & CustomElementOptions$1, parentComp?: ConcreteComponent): void;
|
|
21673
|
-
/**
|
|
21674
|
-
* @internal
|
|
21675
|
-
*/
|
|
21676
|
-
_beginPatch(): void;
|
|
21677
|
-
/**
|
|
21678
|
-
* @internal
|
|
21679
|
-
*/
|
|
21680
|
-
_endPatch(): void;
|
|
21681
|
-
/**
|
|
21682
|
-
* @internal
|
|
21683
|
-
*/
|
|
21684
|
-
_hasShadowRoot(): boolean;
|
|
21685
|
-
/**
|
|
21686
|
-
* @internal
|
|
21687
|
-
*/
|
|
21688
|
-
_removeChildStyle(comp: ConcreteComponent): void;
|
|
21689
|
-
}
|
|
21690
|
-
declare class VueElement extends VueElementBase$1<Element, Component, InnerComponentDef> {
|
|
21691
|
-
constructor(def: InnerComponentDef, props?: Record<string, any> | undefined, createAppFn?: CreateAppFunction<Element, Component>);
|
|
21692
|
-
protected _needsHydration(): boolean;
|
|
21693
|
-
protected _mount(def: InnerComponentDef): void;
|
|
21694
|
-
protected _update(): void;
|
|
21695
|
-
protected _unmount(): void;
|
|
21696
|
-
/**
|
|
21697
|
-
* Only called when shadowRoot is false
|
|
21698
|
-
*/
|
|
21699
|
-
protected _updateSlotNodes(replacements: Map<Node, {
|
|
21700
|
-
nodes: Node[];
|
|
21701
|
-
usedFallback: boolean;
|
|
21702
|
-
}>): void;
|
|
21703
|
-
private _createVNode;
|
|
21704
|
-
}
|
|
21705
|
-
declare function useHost(caller?: string): VueElementBase$1 | null;
|
|
21706
|
-
/**
|
|
21707
|
-
* Retrieve the shadowRoot of the current custom element. Only usable in setup()
|
|
21708
|
-
* of a `defineCustomElement` component.
|
|
21709
|
-
*/
|
|
21710
|
-
declare function useShadowRoot(): ShadowRoot | null;
|
|
21711
|
-
//#endregion
|
|
21712
|
-
//#region packages/runtime-dom/src/helpers/useCssModule.d.ts
|
|
21713
|
-
declare function useCssModule(name?: string): Record<string, string>;
|
|
21714
|
-
//#endregion
|
|
21715
|
-
//#region packages/runtime-dom/src/helpers/useCssVars.d.ts
|
|
21716
|
-
/**
|
|
21717
|
-
* Runtime helper for SFC's CSS variable injection feature.
|
|
21718
|
-
* @private
|
|
21719
|
-
*/
|
|
21720
|
-
declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void;
|
|
21721
|
-
/**
|
|
21722
|
-
* @internal
|
|
21723
|
-
* shared between vdom and vapor
|
|
21724
|
-
*/
|
|
21725
|
-
declare function baseUseCssVars(instance: GenericComponentInstance | null, getParentNode: () => Node, getVars: () => Record<string, any>, setVars: (vars: Record<string, any>) => void): void;
|
|
21726
|
-
/**
|
|
21727
|
-
* @internal
|
|
21728
|
-
* shared between vdom and vapor
|
|
21729
|
-
*/
|
|
21730
|
-
declare function setVarsOnNode(el: Node, vars: Record<string, string>): void;
|
|
21731
|
-
//#endregion
|
|
21732
21720
|
//#region packages/runtime-dom/src/modules/style.d.ts
|
|
21733
21721
|
type Style = string | null | undefined | Record<string, unknown>;
|
|
21734
21722
|
declare function patchStyle(el: Element, prev: Style, next: Style): void;
|
|
21735
21723
|
//#endregion
|
|
21736
|
-
//#region packages/runtime-dom/src/modules/events.d.ts
|
|
21737
|
-
declare function parseEventName(name: string): [string, EventListenerOptions | undefined];
|
|
21738
|
-
//#endregion
|
|
21739
21724
|
//#region packages/runtime-dom/src/modules/attrs.d.ts
|
|
21740
21725
|
declare const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
21741
21726
|
declare namespace index_d_exports$1 {
|
|
21742
|
-
export { AnchorHTMLAttributes, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseHTMLAttributes, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes,
|
|
21727
|
+
export { AnchorHTMLAttributes, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseHTMLAttributes, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ColHTMLAttributes, ColgroupHTMLAttributes, CustomElementOptions$1 as CustomElementOptions, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, ElementWithTransition, EmbedHTMLAttributes, Events, FieldsetHTMLAttributes, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputAutoCompleteAttribute, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps$1 as ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, Transition, TransitionGroup, TransitionGroupProps, TransitionProps$1 as TransitionProps, TransitionPropsValidators, VShowElement, VideoHTMLAttributes, VueElement, VueElementBase$1 as VueElementBase, VueElementConstructor, WebViewHTMLAttributes, baseApplyTranslation, baseUseCssVars, callPendingCbs, createApp, createSSRApp, defineCustomElement, defineSSRCustomElement, ensureHydrationRenderer, ensureRenderer, forceReflow, handleMovedChildren, hasCSSTransform, hydrate, initDirectivesForSSR, nodeOps, normalizeContainer, patchProp, patchStyle, render, resolveTransitionProps, setVarsOnNode, shouldSetAsProp, svgNS, unsafeToTrustedHTML, useCssModule, useCssVars, useHost, useShadowRoot, vModelCheckbox, vModelCheckboxInit, vModelCheckboxUpdate, vModelDynamic, getValue as vModelGetValue, vModelRadio, vModelSelect, vModelSelectInit, vModelSetSelected, vModelText, vModelTextInit, vModelTextUpdate, vShow, vShowHidden, vShowOriginalDisplay, withKeys, withModifiers, xlinkNS };
|
|
21743
21728
|
}
|
|
21744
21729
|
import * as import__vue_runtime_core from "@vue/runtime-core";
|
|
21745
21730
|
/**
|
|
@@ -21756,13 +21741,9 @@ declare module "@vue/reactivity" {
|
|
|
21756
21741
|
}
|
|
21757
21742
|
}
|
|
21758
21743
|
declare module "@vue/runtime-core" {
|
|
21759
|
-
interface AllowedAttrs {
|
|
21760
|
-
class?: ClassValue;
|
|
21761
|
-
style?: StyleValue;
|
|
21762
|
-
}
|
|
21763
21744
|
interface GlobalComponents {
|
|
21764
21745
|
Transition: DefineComponent<TransitionProps$1>;
|
|
21765
|
-
TransitionGroup: DefineComponent<TransitionGroupProps
|
|
21746
|
+
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
|
21766
21747
|
}
|
|
21767
21748
|
interface GlobalDirectives {
|
|
21768
21749
|
vShow: typeof vShow;
|
|
@@ -21790,93 +21771,58 @@ declare const initDirectivesForSSR: () => void;
|
|
|
21790
21771
|
//#endregion
|
|
21791
21772
|
//#region packages/runtime-vapor/src/apiTemplateRef.d.ts
|
|
21792
21773
|
type NodeRef = string | Ref | ((ref: Element | VaporComponentInstance, refs: Record<string, any>) => void);
|
|
21793
|
-
type RefEl = Element | VaporComponentInstance
|
|
21774
|
+
type RefEl = Element | VaporComponentInstance;
|
|
21794
21775
|
type setRefFn = (el: RefEl, ref: NodeRef, refFor?: boolean, refKey?: string) => NodeRef | undefined;
|
|
21795
21776
|
declare function createTemplateRefSetter(): setRefFn;
|
|
21796
|
-
declare function setStaticTemplateRef(el: RefEl, ref: NodeRef, refFor?: boolean, refKey?: string): NodeRef | undefined;
|
|
21797
|
-
declare function setTemplateRefBinding(el: RefEl, getter: () => any, setter?: setRefFn, refFor?: boolean, refKey?: string): void;
|
|
21798
21777
|
//#endregion
|
|
21799
|
-
//#region packages/runtime-vapor/src/
|
|
21800
|
-
interface
|
|
21801
|
-
|
|
21802
|
-
|
|
21803
|
-
|
|
21804
|
-
|
|
21805
|
-
}
|
|
21806
|
-
//#endregion
|
|
21807
|
-
//#region packages/runtime-vapor/src/keepAlive.d.ts
|
|
21808
|
-
interface VaporKeepAliveContext {
|
|
21809
|
-
acquireBranchScope(key: any): EffectScope$1 | undefined;
|
|
21810
|
-
runBranchRender(frag: DynamicFragment, fn: () => void): void;
|
|
21811
|
-
processShapeFlag(block: Block): any | false;
|
|
21812
|
-
cacheBlock(block?: Block): void;
|
|
21813
|
-
cacheScope(cacheKey: any, scopeLookupKey: any, scope: EffectScope$1): void;
|
|
21778
|
+
//#region packages/runtime-vapor/src/components/KeepAlive.d.ts
|
|
21779
|
+
interface KeepAliveContext {
|
|
21780
|
+
processShapeFlag(block: Block): boolean;
|
|
21781
|
+
cacheBlock(): void;
|
|
21782
|
+
cacheScope(key: any, scope: EffectScope$1): void;
|
|
21783
|
+
getScope(key: any): EffectScope$1 | undefined;
|
|
21814
21784
|
}
|
|
21785
|
+
declare const VaporKeepAliveImpl: ObjectVaporComponent;
|
|
21815
21786
|
//#endregion
|
|
21816
21787
|
//#region packages/runtime-vapor/src/fragment.d.ts
|
|
21817
21788
|
declare class VaporFragment<T extends Block = Block> implements TransitionOptions {
|
|
21818
|
-
/**
|
|
21819
|
-
* @internal marker for duck typing to avoid direct instanceof check
|
|
21820
|
-
* which prevents tree-shaking of VaporFragment
|
|
21821
|
-
*/
|
|
21822
|
-
readonly __vf = true;
|
|
21823
21789
|
$key?: any;
|
|
21824
21790
|
$transition?: VaporTransitionHooks | undefined;
|
|
21825
21791
|
nodes: T;
|
|
21826
21792
|
vnode?: VNode | null;
|
|
21827
21793
|
anchor?: Node;
|
|
21828
|
-
|
|
21794
|
+
parentComponent?: GenericComponentInstance$1 | null;
|
|
21795
|
+
fallback?: BlockFn;
|
|
21829
21796
|
insert?: (parent: ParentNode, anchor: Node | null, transitionHooks?: TransitionHooks) => void;
|
|
21830
21797
|
remove?: (parent?: ParentNode, transitionHooks?: TransitionHooks) => void;
|
|
21831
|
-
hydrate
|
|
21798
|
+
hydrate?: (...args: any[]) => void;
|
|
21832
21799
|
setRef?: (instance: VaporComponentInstance, ref: NodeRef, refFor: boolean, refKey: string | undefined) => void;
|
|
21833
|
-
onBeforeInsert?: ((nodes: Block) => void)[];
|
|
21834
|
-
onBeforeRemove?: ((scope: EffectScope$1) => boolean)[];
|
|
21835
|
-
onBeforeUpdate?: (() => void)[];
|
|
21836
21800
|
onUpdated?: ((nodes?: Block) => void)[];
|
|
21837
21801
|
constructor(nodes: T);
|
|
21838
21802
|
}
|
|
21839
|
-
declare class RenderContextFragment<T extends Block = Block> extends VaporFragment<T> {
|
|
21840
|
-
readonly renderInstance: GenericComponentInstance$1 | null;
|
|
21841
|
-
readonly slotOwner: VaporComponentInstance | null;
|
|
21842
|
-
readonly keepAliveCtx?: VaporKeepAliveContext | null;
|
|
21843
|
-
readonly slotBoundary: SlotBoundaryContext | null;
|
|
21844
|
-
constructor(nodes: T);
|
|
21845
|
-
protected runWithRenderCtx<R>(fn: () => R, scope?: EffectScope$1): R;
|
|
21846
|
-
}
|
|
21847
21803
|
declare class ForFragment extends VaporFragment<Block[]> {
|
|
21848
|
-
|
|
21849
|
-
constructor(nodes: Block[], trackSlotBoundary: boolean);
|
|
21850
|
-
onReset(fn: () => void): void;
|
|
21804
|
+
constructor(nodes: Block[]);
|
|
21851
21805
|
}
|
|
21852
|
-
declare class DynamicFragment extends
|
|
21853
|
-
/**
|
|
21854
|
-
* @internal marker for duck typing to avoid direct instanceof check
|
|
21855
|
-
* which prevents tree-shaking of DynamicFragment
|
|
21856
|
-
*/
|
|
21857
|
-
readonly __df = true;
|
|
21806
|
+
declare class DynamicFragment extends VaporFragment {
|
|
21858
21807
|
anchor: Node;
|
|
21859
21808
|
scope: EffectScope$1 | undefined;
|
|
21860
21809
|
current?: BlockFn;
|
|
21861
21810
|
pending?: {
|
|
21862
21811
|
render?: BlockFn;
|
|
21863
21812
|
key: any;
|
|
21864
|
-
noScope: boolean;
|
|
21865
21813
|
};
|
|
21814
|
+
fallback?: BlockFn;
|
|
21866
21815
|
anchorLabel?: string;
|
|
21867
21816
|
keyed?: boolean;
|
|
21868
|
-
|
|
21869
|
-
|
|
21870
|
-
|
|
21871
|
-
|
|
21872
|
-
|
|
21873
|
-
|
|
21874
|
-
|
|
21875
|
-
|
|
21876
|
-
protected getBranchParent(): ParentNode | null;
|
|
21877
|
-
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null, key: any, noScope?: boolean, notifyUpdated?: boolean): void;
|
|
21817
|
+
attrs?: Record<string, any>;
|
|
21818
|
+
setAsyncRef?: (instance: VaporComponentInstance) => void;
|
|
21819
|
+
keepAliveCtx: KeepAliveContext | null;
|
|
21820
|
+
slotOwner: VaporComponentInstance | null;
|
|
21821
|
+
constructor(anchorLabel?: string, keyed?: boolean);
|
|
21822
|
+
update(render?: BlockFn, key?: any): void;
|
|
21823
|
+
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null, instance: GenericComponentInstance$1 | null): void;
|
|
21824
|
+
hydrate: (isEmpty?: boolean) => void;
|
|
21878
21825
|
}
|
|
21879
|
-
declare function isFragment(val: unknown): val is VaporFragment;
|
|
21880
21826
|
//#endregion
|
|
21881
21827
|
//#region packages/runtime-vapor/src/block.d.ts
|
|
21882
21828
|
interface VaporTransitionHooks extends TransitionHooks {
|
|
@@ -21884,7 +21830,6 @@ interface VaporTransitionHooks extends TransitionHooks {
|
|
|
21884
21830
|
props: TransitionProps;
|
|
21885
21831
|
instance: VaporComponentInstance;
|
|
21886
21832
|
disabled?: boolean;
|
|
21887
|
-
applyGroup?: (block: Block, props: TransitionProps, state: TransitionState, instance: VaporComponentInstance) => void;
|
|
21888
21833
|
}
|
|
21889
21834
|
interface TransitionOptions {
|
|
21890
21835
|
$key?: any;
|
|
@@ -21898,25 +21843,25 @@ declare function insert(block: Block, parent: ParentNode & {
|
|
|
21898
21843
|
declare function prepend(parent: ParentNode, ...blocks: Block[]): void;
|
|
21899
21844
|
declare function remove(block: Block, parent?: ParentNode): void;
|
|
21900
21845
|
//#endregion
|
|
21901
|
-
//#region packages/runtime-vapor/src/
|
|
21846
|
+
//#region packages/runtime-vapor/src/vdomInterop.d.ts
|
|
21902
21847
|
declare const interopKey: unique symbol;
|
|
21848
|
+
declare const vaporInteropPlugin: Plugin;
|
|
21903
21849
|
//#endregion
|
|
21904
21850
|
//#region packages/runtime-vapor/src/componentProps.d.ts
|
|
21905
|
-
type RawProps = Record<string, unknown> & {
|
|
21851
|
+
type RawProps = Record<string, () => unknown> & {
|
|
21906
21852
|
$?: DynamicPropsSource[] & {
|
|
21907
21853
|
[interopKey]?: boolean;
|
|
21908
21854
|
};
|
|
21909
21855
|
};
|
|
21910
|
-
type DynamicPropsSource = (() => Record<string, unknown>) | Record<string, unknown>;
|
|
21856
|
+
type DynamicPropsSource = (() => Record<string, unknown>) | Record<string, () => unknown>;
|
|
21911
21857
|
//#endregion
|
|
21912
21858
|
//#region packages/runtime-vapor/src/renderEffect.d.ts
|
|
21913
21859
|
declare class RenderEffect extends ReactiveEffect {
|
|
21860
|
+
render: () => void;
|
|
21914
21861
|
i: VaporComponentInstance | null;
|
|
21915
21862
|
job: SchedulerJob;
|
|
21916
|
-
updateJob
|
|
21917
|
-
render: () => void;
|
|
21918
|
-
order: number;
|
|
21919
|
-
constructor(render: () => void, noLifecycle?: boolean);
|
|
21863
|
+
updateJob: SchedulerJob;
|
|
21864
|
+
constructor(render: () => void);
|
|
21920
21865
|
fn(): void;
|
|
21921
21866
|
notify(): void;
|
|
21922
21867
|
}
|
|
@@ -21926,21 +21871,62 @@ declare function renderEffect(fn: () => void, noLifecycle?: boolean): void;
|
|
|
21926
21871
|
type RawSlots = Record<string, VaporSlot> & {
|
|
21927
21872
|
$?: DynamicSlotSource[];
|
|
21928
21873
|
};
|
|
21929
|
-
type LooseRawSlots = VaporSlot | (Record<string, VaporSlot | DynamicSlotSource[]> & {
|
|
21930
|
-
$?: DynamicSlotSource[];
|
|
21931
|
-
});
|
|
21932
21874
|
type StaticSlots = Record<string, VaporSlot>;
|
|
21933
|
-
type VaporSlot = BlockFn
|
|
21934
|
-
_?: VaporSlotFlags.NON_STABLE;
|
|
21935
|
-
};
|
|
21875
|
+
type VaporSlot = BlockFn;
|
|
21936
21876
|
type DynamicSlot = {
|
|
21937
21877
|
name: string;
|
|
21938
21878
|
fn: VaporSlot;
|
|
21939
21879
|
};
|
|
21940
21880
|
type DynamicSlotFn = () => DynamicSlot | DynamicSlot[];
|
|
21941
21881
|
type DynamicSlotSource = StaticSlots | DynamicSlotFn;
|
|
21882
|
+
/**
|
|
21883
|
+
* Wrap a slot function to track the slot owner.
|
|
21884
|
+
*
|
|
21885
|
+
* This ensures:
|
|
21886
|
+
* 1. createSlot gets rawSlots from the correct component (slot owner)
|
|
21887
|
+
* 2. Elements inherit the slot owner's scopeId
|
|
21888
|
+
*/
|
|
21942
21889
|
declare function withVaporCtx(fn: Function): BlockFn;
|
|
21943
|
-
declare function createSlot(name
|
|
21890
|
+
declare function createSlot(name: string | (() => string), rawProps?: LooseRawProps | null, fallback?: VaporSlot, noSlotted?: boolean, once?: boolean): Block;
|
|
21891
|
+
//#endregion
|
|
21892
|
+
//#region packages/runtime-vapor/src/components/Teleport.d.ts
|
|
21893
|
+
declare const VaporTeleportImpl: {
|
|
21894
|
+
name: string;
|
|
21895
|
+
__isTeleport: boolean;
|
|
21896
|
+
__vapor: boolean;
|
|
21897
|
+
process(props: LooseRawProps, slots: LooseRawSlots): TeleportFragment;
|
|
21898
|
+
};
|
|
21899
|
+
declare class TeleportFragment extends VaporFragment {
|
|
21900
|
+
/**
|
|
21901
|
+
* @internal marker for duck typing to avoid direct instanceof check
|
|
21902
|
+
* which prevents tree-shaking of TeleportFragment
|
|
21903
|
+
*/
|
|
21904
|
+
readonly __isTeleportFragment: true;
|
|
21905
|
+
anchor?: Node;
|
|
21906
|
+
private rawProps?;
|
|
21907
|
+
private resolvedProps?;
|
|
21908
|
+
private rawSlots?;
|
|
21909
|
+
isDisabled?: boolean;
|
|
21910
|
+
target?: ParentNode | null;
|
|
21911
|
+
targetAnchor?: Node | null;
|
|
21912
|
+
targetStart?: Node | null;
|
|
21913
|
+
placeholder?: Node;
|
|
21914
|
+
mountContainer?: ParentNode | null;
|
|
21915
|
+
mountAnchor?: Node | null;
|
|
21916
|
+
constructor(props: LooseRawProps, slots: LooseRawSlots);
|
|
21917
|
+
get parent(): ParentNode | null;
|
|
21918
|
+
private initChildren;
|
|
21919
|
+
private registerUpdateCssVars;
|
|
21920
|
+
private handleChildrenUpdate;
|
|
21921
|
+
private mount;
|
|
21922
|
+
private mountToTarget;
|
|
21923
|
+
private handlePropsUpdate;
|
|
21924
|
+
insert: (container: ParentNode, anchor: Node | null) => void;
|
|
21925
|
+
remove: (parent?: ParentNode | undefined) => void;
|
|
21926
|
+
private hydrateDisabledTeleport;
|
|
21927
|
+
private mountChildren;
|
|
21928
|
+
hydrate: () => void;
|
|
21929
|
+
}
|
|
21944
21930
|
//#endregion
|
|
21945
21931
|
//#region packages/runtime-vapor/src/apiDefineComponent.d.ts
|
|
21946
21932
|
type VaporPublicProps = ReservedProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -21951,22 +21937,21 @@ type VaporComponentInstanceConstructor<T extends VaporComponentInstance> = {
|
|
|
21951
21937
|
__isSuspense?: never;
|
|
21952
21938
|
new (...args: any[]): T;
|
|
21953
21939
|
};
|
|
21954
|
-
type DefineVaporComponent<RuntimePropsOptions = {}, RuntimePropsKeys extends string = string,
|
|
21955
|
-
type DefineVaporSetupFnComponent<Props extends Record<string, any> = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block, ResolvedProps extends Record<string, any> = Props & EmitsToProps$1<Emits> & VaporPublicProps> = new () => VaporComponentInstance<ResolvedProps, Emits, Slots, Exposed, TypeBlock>;
|
|
21940
|
+
type DefineVaporComponent<RuntimePropsOptions = {}, RuntimePropsKeys extends string = string, Emits extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block, TypeRefs extends Record<string, unknown> = {}, MakeDefaultsOptional extends boolean = true, InferredProps = (string extends RuntimePropsKeys ? ComponentObjectPropsOptions$1 extends RuntimePropsOptions ? {} : ExtractPropTypes$1<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: any }), PublicProps = VaporPublicProps, ResolvedProps = InferredProps & EmitsToProps$1<Emits>, Defaults = ExtractDefaultPropTypes<RuntimePropsOptions>> = VaporComponentInstanceConstructor<VaporComponentInstance<MakeDefaultsOptional extends true ? keyof Defaults extends never ? Prettify<ResolvedProps> & PublicProps : Partial<Defaults> & Omit<Prettify<ResolvedProps> & PublicProps, keyof Defaults> : Prettify<ResolvedProps> & PublicProps, Emits, Slots, Exposed, TypeBlock, TypeRefs>> & ObjectVaporComponent<RuntimePropsOptions | RuntimePropsKeys[], Emits, RuntimeEmitsKeys, Slots, Exposed>;
|
|
21941
|
+
type DefineVaporSetupFnComponent<Props extends Record<string, any> = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block, ResolvedProps extends Record<string, any> = Props & EmitsToProps$1<Emits> & VaporPublicProps> = new (props?: ResolvedProps) => VaporComponentInstance<ResolvedProps, Emits, Slots, Exposed, TypeBlock>;
|
|
21956
21942
|
declare function defineVaporComponent<Props extends Record<string, any>, Emits extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block>(setup: (props: Props, ctx: {
|
|
21957
21943
|
emit: EmitFn<Emits>;
|
|
21958
21944
|
slots: Slots;
|
|
21959
21945
|
attrs: Record<string, any>;
|
|
21960
21946
|
expose: (exposed: Exposed) => void;
|
|
21961
|
-
}) => VaporRenderResult<TypeBlock> | void, extraOptions?:
|
|
21947
|
+
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: ObjectVaporComponent<(keyof Props)[], Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
21962
21948
|
declare function defineVaporComponent<Props extends Record<string, any>, Emits extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block>(setup: (props: Props, ctx: {
|
|
21963
21949
|
emit: EmitFn<Emits>;
|
|
21964
21950
|
slots: Slots;
|
|
21965
21951
|
attrs: Record<string, any>;
|
|
21966
21952
|
expose: (exposed: Exposed) => void;
|
|
21967
|
-
}) => VaporRenderResult<TypeBlock> | void, extraOptions?:
|
|
21968
|
-
declare function defineVaporComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions$1 = ComponentObjectPropsOptions$1, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, ResolvedEmits extends EmitsOptions$1 = ({} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions), InferredProps = (IsKeyValues<TypeProps> extends true ? TypeProps : string extends RuntimePropsKeys ? ComponentObjectPropsOptions$1 extends RuntimePropsOptions ? {} : ExtractPropTypes$1<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: any }), TypeRefs extends Record<string, unknown> = {}, TypeBlock extends Block = Block>(options:
|
|
21969
|
-
[key: string]: any;
|
|
21953
|
+
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: ObjectVaporComponent<ComponentObjectPropsOptions$1<Props>, Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
21954
|
+
declare function defineVaporComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions$1 = ComponentObjectPropsOptions$1, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, ResolvedEmits extends EmitsOptions$1 = ({} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions), InferredProps = (IsKeyValues<TypeProps> extends true ? TypeProps : string extends RuntimePropsKeys ? ComponentObjectPropsOptions$1 extends RuntimePropsOptions ? {} : ExtractPropTypes$1<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: any }), TypeRefs extends Record<string, unknown> = {}, TypeBlock extends Block = Block>(options: ObjectVaporComponent<RuntimePropsOptions | RuntimePropsKeys[], ResolvedEmits, RuntimeEmitsKeys, Slots, Exposed, TypeBlock, InferredProps> & {
|
|
21970
21955
|
/**
|
|
21971
21956
|
* @private for language-tools use only
|
|
21972
21957
|
*/
|
|
@@ -21983,19 +21968,19 @@ declare function defineVaporComponent<TypeProps, RuntimePropsOptions extends Com
|
|
|
21983
21968
|
* @private for language-tools use only
|
|
21984
21969
|
*/
|
|
21985
21970
|
__typeEl?: TypeBlock;
|
|
21986
|
-
} & ThisType<void>): DefineVaporComponent<RuntimePropsOptions, RuntimePropsKeys,
|
|
21971
|
+
} & ThisType<void>): DefineVaporComponent<RuntimePropsOptions, RuntimePropsKeys, ResolvedEmits, RuntimeEmitsKeys, Slots, Exposed extends Block ? Record<string, any> : Exposed, TypeBlock, TypeRefs, unknown extends TypeProps ? true : false, InferredProps>;
|
|
21987
21972
|
//#endregion
|
|
21988
21973
|
//#region packages/runtime-vapor/src/component.d.ts
|
|
21989
|
-
type VaporComponent = FunctionalVaporComponent
|
|
21990
|
-
type FunctionalVaporComponent<Props = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>> = ((props: Props & EmitsToProps$1<Emits
|
|
21974
|
+
type VaporComponent = FunctionalVaporComponent | ObjectVaporComponent | DefineVaporComponent;
|
|
21975
|
+
type FunctionalVaporComponent<Props = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>> = ((props: Readonly<Props & EmitsToProps$1<Emits>>, ctx: {
|
|
21991
21976
|
emit: EmitFn<Emits>;
|
|
21992
21977
|
slots: Slots;
|
|
21993
21978
|
attrs: Record<string, any>;
|
|
21994
21979
|
expose: <T extends Record<string, any> = Exposed>(exposed: T) => void;
|
|
21995
|
-
}) => VaporRenderResult) & Omit<
|
|
21980
|
+
}) => VaporRenderResult) & Omit<ObjectVaporComponent<ComponentPropsOptions<Props>, Emits, string, Slots>, "setup"> & {
|
|
21996
21981
|
displayName?: string;
|
|
21997
21982
|
} & SharedInternalOptions;
|
|
21998
|
-
interface
|
|
21983
|
+
interface ObjectVaporComponent<Props = {}, Emits extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block, InferredProps = (ComponentObjectPropsOptions$1 extends Props ? {} : ExtractPropTypes$1<Props>)> extends ComponentInternalOptions, AsyncComponentInternalOptions<ObjectVaporComponent, VaporComponentInstance>, SharedInternalOptions {
|
|
21999
21984
|
inheritAttrs?: boolean;
|
|
22000
21985
|
props?: Props;
|
|
22001
21986
|
emits?: Emits | RuntimeEmitsKeys[];
|
|
@@ -22010,6 +21995,10 @@ interface VaporComponentOptions<Props = {}, Emits extends EmitsOptions$1 = {}, R
|
|
|
22010
21995
|
name?: string;
|
|
22011
21996
|
vapor?: boolean;
|
|
22012
21997
|
components?: Record<string, VaporComponent>;
|
|
21998
|
+
/**
|
|
21999
|
+
* @internal custom element interception hook
|
|
22000
|
+
*/
|
|
22001
|
+
ce?: (instance: VaporComponentInstance) => void;
|
|
22013
22002
|
}
|
|
22014
22003
|
interface SharedInternalOptions {
|
|
22015
22004
|
/**
|
|
@@ -22027,10 +22016,13 @@ interface SharedInternalOptions {
|
|
|
22027
22016
|
*/
|
|
22028
22017
|
__emitsOptions?: ObjectEmitsOptions;
|
|
22029
22018
|
}
|
|
22030
|
-
type LooseRawProps = Record<string, unknown> & {
|
|
22019
|
+
type LooseRawProps = Record<string, (() => unknown) | DynamicPropsSource[]> & {
|
|
22031
22020
|
$?: DynamicPropsSource[];
|
|
22032
22021
|
};
|
|
22033
|
-
|
|
22022
|
+
type LooseRawSlots = Record<string, VaporSlot | DynamicSlotSource[]> & {
|
|
22023
|
+
$?: DynamicSlotSource[];
|
|
22024
|
+
};
|
|
22025
|
+
declare function createComponent(component: VaporComponent, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext): VaporComponentInstance;
|
|
22034
22026
|
declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block, TypeRefs extends Record<string, any> = Record<string, any>> implements GenericComponentInstance$1 {
|
|
22035
22027
|
vapor: true;
|
|
22036
22028
|
uid: number;
|
|
@@ -22061,13 +22053,10 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22061
22053
|
suspenseId: number;
|
|
22062
22054
|
asyncDep: Promise<any> | null;
|
|
22063
22055
|
asyncResolved: boolean;
|
|
22064
|
-
|
|
22065
|
-
deferredHydrationBoundary?: () => void;
|
|
22056
|
+
renderEffects?: RenderEffect[];
|
|
22066
22057
|
hasFallthrough: boolean;
|
|
22067
22058
|
shapeFlag?: number;
|
|
22068
|
-
$key?: any;
|
|
22069
22059
|
oncePropsCache?: Record<string | symbol, any>;
|
|
22070
|
-
isOnce: boolean;
|
|
22071
22060
|
isMounted: boolean;
|
|
22072
22061
|
isUnmounted: boolean;
|
|
22073
22062
|
isDeactivated: boolean;
|
|
@@ -22086,26 +22075,21 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22086
22075
|
rtc?: LifecycleHook;
|
|
22087
22076
|
ec?: LifecycleHook;
|
|
22088
22077
|
sp?: LifecycleHook<() => Promise<unknown>>;
|
|
22089
|
-
effectCount: number;
|
|
22090
22078
|
setupState?: Exposed extends Block ? undefined : ShallowUnwrapRef<Exposed>;
|
|
22091
22079
|
devtoolsRawSetupState?: any;
|
|
22092
22080
|
hmrRerender?: () => void;
|
|
22093
22081
|
hmrReload?: (newComp: VaporComponent) => void;
|
|
22082
|
+
parentTeleport?: TeleportFragment | null;
|
|
22094
22083
|
propsOptions?: NormalizedPropsOptions;
|
|
22095
22084
|
emitsOptions?: ObjectEmitsOptions | null;
|
|
22096
22085
|
isSingleRoot?: boolean;
|
|
22097
|
-
renderEffects?: RenderEffect[];
|
|
22098
22086
|
/**
|
|
22099
22087
|
* dev only flag to track whether $attrs was used during render.
|
|
22100
22088
|
* If $attrs was used during render then the warning for failed attrs
|
|
22101
22089
|
* fallthrough can be suppressed.
|
|
22102
22090
|
*/
|
|
22103
22091
|
accessedAttrs: boolean;
|
|
22104
|
-
|
|
22105
|
-
* @deprecated only used for JSX to detect props types.
|
|
22106
|
-
*/
|
|
22107
|
-
$props: Props;
|
|
22108
|
-
constructor(comp: VaporComponent, rawProps?: RawProps | null, rawSlots?: LooseRawSlots | null, appContext?: GenericAppContext, once?: boolean, ce?: (instance: VaporComponentInstance) => void);
|
|
22092
|
+
constructor(comp: VaporComponent, rawProps?: RawProps | null, rawSlots?: RawSlots | null, appContext?: GenericAppContext, once?: boolean);
|
|
22109
22093
|
/**
|
|
22110
22094
|
* Expose `getKeysFromRawProps` on the instance so it can be used in code
|
|
22111
22095
|
* paths where it's needed, e.g. `useModel`
|
|
@@ -22115,12 +22099,6 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22115
22099
|
}
|
|
22116
22100
|
declare function isVaporComponent(value: unknown): value is VaporComponentInstance;
|
|
22117
22101
|
/**
|
|
22118
|
-
* Resolve an asset component by name before passing it to the fallback helper;
|
|
22119
|
-
* a string passed directly to `createComponentWithFallback` is plain element
|
|
22120
|
-
* fallback, not a component name.
|
|
22121
|
-
*/
|
|
22122
|
-
declare function createAssetComponent(name: string, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, maybeSelfReference?: boolean, appContext?: GenericAppContext): HTMLElement | VaporComponentInstance;
|
|
22123
|
-
/**
|
|
22124
22102
|
* Used when a component cannot be resolved at compile time
|
|
22125
22103
|
* and needs rely on runtime resolution - where it might fallback to a plain
|
|
22126
22104
|
* element if the resolution fails.
|
|
@@ -22136,20 +22114,11 @@ declare const createVaporSSRApp: CreateAppFunction$1<ParentNode, VaporComponent>
|
|
|
22136
22114
|
//#region packages/runtime-vapor/src/apiDefineAsyncComponent.d.ts
|
|
22137
22115
|
declare function defineVaporAsyncComponent<T extends VaporComponent>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
22138
22116
|
//#endregion
|
|
22139
|
-
//#region packages/runtime-vapor/src/vdomInterop.d.ts
|
|
22140
|
-
declare const vaporInteropPlugin: Plugin;
|
|
22141
|
-
//#endregion
|
|
22142
22117
|
//#region packages/runtime-vapor/src/directives/custom.d.ts
|
|
22143
22118
|
type VaporDirective = (node: Element | VaporComponentInstance, value?: () => any, argument?: string, modifiers?: DirectiveModifiers) => (() => void) | void;
|
|
22144
22119
|
type VaporDirectiveArguments = Array<[VaporDirective | undefined] | [VaporDirective | undefined, () => any] | [VaporDirective | undefined, (() => any) | undefined, argument: string] | [VaporDirective | undefined, value: (() => any) | undefined, argument: string | undefined, modifiers: DirectiveModifiers]>;
|
|
22145
22120
|
declare function withVaporDirectives(node: Element | VaporComponentInstance, dirs: VaporDirectiveArguments): void;
|
|
22146
22121
|
//#endregion
|
|
22147
|
-
//#region packages/runtime-vapor/src/components/Teleport.d.ts
|
|
22148
|
-
declare const VaporTeleport: DefineVaporSetupFnComponent<TeleportProps>;
|
|
22149
|
-
//#endregion
|
|
22150
|
-
//#region packages/runtime-vapor/src/components/KeepAlive.d.ts
|
|
22151
|
-
declare const VaporKeepAlive: DefineVaporComponent<{}, string, KeepAliveProps>;
|
|
22152
|
-
//#endregion
|
|
22153
22122
|
//#region packages/runtime-vapor/src/apiDefineCustomElement.d.ts
|
|
22154
22123
|
type VaporElementConstructor<P = {}> = {
|
|
22155
22124
|
new (initialProps?: Record<string, any>): VaporElement & P;
|
|
@@ -22159,15 +22128,15 @@ declare function defineVaporCustomElement<Props, RawBindings = object>(setup: (p
|
|
|
22159
22128
|
slots: StaticSlots;
|
|
22160
22129
|
emit: EmitFn;
|
|
22161
22130
|
expose: (exposed: Record<string, any>) => void;
|
|
22162
|
-
}) => RawBindings | VaporRenderResult, options?: Pick<
|
|
22163
|
-
props?: (keyof
|
|
22131
|
+
}) => RawBindings | VaporRenderResult, options?: Pick<ObjectVaporComponent, "name" | "inheritAttrs" | "emits"> & CustomElementOptions & {
|
|
22132
|
+
props?: (keyof Props)[];
|
|
22164
22133
|
}): VaporElementConstructor<Props>;
|
|
22165
22134
|
declare function defineVaporCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: {
|
|
22166
22135
|
attrs: Record<string, any>;
|
|
22167
22136
|
slots: StaticSlots;
|
|
22168
22137
|
emit: EmitFn;
|
|
22169
22138
|
expose: (exposed: Record<string, any>) => void;
|
|
22170
|
-
}) => RawBindings | VaporRenderResult, options?: Pick<
|
|
22139
|
+
}) => RawBindings | VaporRenderResult, options?: Pick<ObjectVaporComponent, "name" | "inheritAttrs" | "emits"> & CustomElementOptions & {
|
|
22171
22140
|
props?: ComponentObjectPropsOptions$1<Props>;
|
|
22172
22141
|
}): VaporElementConstructor<Props>;
|
|
22173
22142
|
declare function defineVaporCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions$1 = ComponentObjectPropsOptions$1, RuntimePropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions$1 = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, InferredProps = (string extends RuntimePropsKeys ? ComponentObjectPropsOptions$1 extends RuntimePropsOptions ? {} : ExtractPropTypes$1<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: any }), ResolvedProps = InferredProps & EmitsToProps$1<RuntimeEmitsOptions>>(options: CustomElementOptions & {
|
|
@@ -22193,10 +22162,7 @@ declare class VaporElement extends VueElementBase<ParentNode, VaporComponent, Va
|
|
|
22193
22162
|
/**
|
|
22194
22163
|
* Only called when shadowRoot is false
|
|
22195
22164
|
*/
|
|
22196
|
-
protected _updateSlotNodes(replacements: Map<Node,
|
|
22197
|
-
nodes: Node[];
|
|
22198
|
-
usedFallback: boolean;
|
|
22199
|
-
}>): void;
|
|
22165
|
+
protected _updateSlotNodes(replacements: Map<Node, Node[]>): void;
|
|
22200
22166
|
/**
|
|
22201
22167
|
* Replace slot nodes with their replace content
|
|
22202
22168
|
* @internal
|
|
@@ -22217,26 +22183,32 @@ type InsertionParent = ParentNode & {
|
|
|
22217
22183
|
*/
|
|
22218
22184
|
declare function setInsertionState(parent: ParentNode & {
|
|
22219
22185
|
$fc?: Node | null;
|
|
22220
|
-
}, anchor?: Node | 0 | null, logicalIndex?: number): void;
|
|
22186
|
+
}, anchor?: Node | 0 | null, logicalIndex?: number, last?: boolean): void;
|
|
22221
22187
|
//#endregion
|
|
22222
22188
|
//#region packages/runtime-vapor/src/dom/template.d.ts
|
|
22223
|
-
declare function template(html: string,
|
|
22189
|
+
declare function template(html: string, root?: boolean, ns?: Namespace): () => Node & {
|
|
22224
22190
|
$root?: true;
|
|
22225
22191
|
};
|
|
22226
22192
|
//#endregion
|
|
22227
22193
|
//#region packages/runtime-vapor/src/dom/node.d.ts
|
|
22228
22194
|
declare function createTextNode(value?: string): Text;
|
|
22229
|
-
declare
|
|
22230
|
-
declare function
|
|
22231
|
-
declare function
|
|
22232
|
-
declare function
|
|
22195
|
+
declare const _txt: typeof _child;
|
|
22196
|
+
declare function _child(node: InsertionParent): Node;
|
|
22197
|
+
declare function _nthChild(node: InsertionParent, i: number): Node;
|
|
22198
|
+
declare function _next(node: Node): Node;
|
|
22199
|
+
type DelegatedFunction<T extends (...args: any[]) => any> = T & {
|
|
22200
|
+
impl: T;
|
|
22201
|
+
};
|
|
22202
|
+
declare const txt: DelegatedFunction<typeof _txt>;
|
|
22203
|
+
declare const child: DelegatedFunction<typeof _child>;
|
|
22204
|
+
declare const next: DelegatedFunction<typeof _next>;
|
|
22205
|
+
declare const nthChild: DelegatedFunction<typeof _nthChild>;
|
|
22233
22206
|
//#endregion
|
|
22234
22207
|
//#region packages/runtime-vapor/src/dom/prop.d.ts
|
|
22235
22208
|
type TargetElement = Element & {
|
|
22236
22209
|
$root?: true;
|
|
22237
22210
|
$html?: string;
|
|
22238
22211
|
$cls?: string;
|
|
22239
|
-
$clsFlags?: number;
|
|
22240
22212
|
$sty?: NormalizedStyle | string | undefined;
|
|
22241
22213
|
value?: string;
|
|
22242
22214
|
_value?: any;
|
|
@@ -22244,8 +22216,7 @@ type TargetElement = Element & {
|
|
|
22244
22216
|
declare function setProp(el: any, key: string, value: any): void;
|
|
22245
22217
|
declare function setAttr(el: any, key: string, value: any, isSVG?: boolean): void;
|
|
22246
22218
|
declare function setDOMProp(el: any, key: string, value: any, forceHydrate?: boolean, attrName?: string): void;
|
|
22247
|
-
declare function setClass(el: TargetElement, value: any, isSVG?: boolean
|
|
22248
|
-
declare function setClassName(el: TargetElement, flags: number, cls: string | string[], prefix?: string, suffix?: string): void;
|
|
22219
|
+
declare function setClass(el: TargetElement, value: any, isSVG?: boolean): void;
|
|
22249
22220
|
declare function setStyle(el: TargetElement, value: any): void;
|
|
22250
22221
|
declare function setValue(el: TargetElement, value: any, forceHydrate?: boolean): void;
|
|
22251
22222
|
/**
|
|
@@ -22272,20 +22243,16 @@ declare function setBlockHtml(block: Block & {
|
|
|
22272
22243
|
declare function setDynamicProps(el: any, args: any[], isSVG?: boolean): void;
|
|
22273
22244
|
//#endregion
|
|
22274
22245
|
//#region packages/runtime-vapor/src/dom/event.d.ts
|
|
22275
|
-
|
|
22276
|
-
|
|
22277
|
-
|
|
22278
|
-
declare function
|
|
22279
|
-
declare function onBinding(el: Element, event: string, handler: EventHandlerValue, options?: AddEventListenerOptions): void;
|
|
22280
|
-
declare function delegate(el: any, event: string, handler: EventHandler): void;
|
|
22246
|
+
declare function on(el: Element, event: string, handler: (e: Event) => any | ((e: Event) => any)[], options?: AddEventListenerOptions & {
|
|
22247
|
+
effect?: boolean;
|
|
22248
|
+
}): void;
|
|
22249
|
+
declare function delegate(el: any, event: string, handler: (e: Event) => any): void;
|
|
22281
22250
|
declare const delegateEvents: (...names: string[]) => void;
|
|
22282
|
-
declare function setDynamicEvents(el: HTMLElement, events: Record<string,
|
|
22283
|
-
declare function
|
|
22284
|
-
declare function withVaporKeys<T extends (event: KeyboardEvent) => any>(fn: T | null | undefined, modifiers: string[]): T;
|
|
22285
|
-
declare function createInvoker(handler: MaybeEventHandlerValue): EventHandler;
|
|
22251
|
+
declare function setDynamicEvents(el: HTMLElement, events: Record<string, (...args: any[]) => any>): void;
|
|
22252
|
+
declare function createInvoker(handler: (...args: any[]) => any): (...args: any[]) => any;
|
|
22286
22253
|
//#endregion
|
|
22287
22254
|
//#region packages/runtime-vapor/src/apiCreateIf.d.ts
|
|
22288
|
-
declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn,
|
|
22255
|
+
declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn, once?: boolean, index?: number): Block;
|
|
22289
22256
|
//#endregion
|
|
22290
22257
|
//#region packages/runtime-vapor/src/apiCreateFragment.d.ts
|
|
22291
22258
|
/**
|
|
@@ -22302,46 +22269,18 @@ declare function createKeyedFragment(key: () => any, render: BlockFn): Block;
|
|
|
22302
22269
|
//#endregion
|
|
22303
22270
|
//#region packages/runtime-vapor/src/apiCreateFor.d.ts
|
|
22304
22271
|
type Source = any[] | Record<any, any> | number | Set<any> | Map<any, any>;
|
|
22305
|
-
declare const createFor: (src: () => Source, renderItem: (item: ShallowRef<any>, key: ShallowRef<any>, index: ShallowRef<number | undefined>) => Block, getKey?: (item: any, key: any, index?: number) => any, flags?: number
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
/**
|
|
22309
|
-
* Bulk-reset the selector's internal state. Hook into a v-for's fast-reset
|
|
22310
|
-
* paths via `forFragment.onReset(selector.reset)` so the lazy per-item
|
|
22311
|
-
* `onScopeDispose` teardowns short-circuit instead of doing N individual
|
|
22312
|
-
* Map.delete() calls.
|
|
22313
|
-
*/
|
|
22314
|
-
reset(): void;
|
|
22315
|
-
}
|
|
22316
|
-
/**
|
|
22317
|
-
* Builds a key-indexed selector that activates only the opers registered with
|
|
22318
|
-
* the key matching the current source value. Compared to letting each item
|
|
22319
|
-
* subscribe directly, this keeps re-renders on source change O(2) instead of
|
|
22320
|
-
* O(N) (only previous and new active item re-run).
|
|
22321
|
-
*
|
|
22322
|
-
* Selector cleanup follows the current scope. Per-item teardown is auto-wired
|
|
22323
|
-
* via `onScopeDispose` so callers (typically v-for item scopes) don't need
|
|
22324
|
-
* explicit deregistration. For bulk-reset hot paths, attach the selector to
|
|
22325
|
-
* the v-for via `frag.onReset(selector.reset)` to skip the per-item Map ops.
|
|
22326
|
-
*/
|
|
22327
|
-
declare function createSelector(source: () => any): ForSelector;
|
|
22272
|
+
declare const createFor: (src: () => Source, renderItem: (item: ShallowRef<any>, key: ShallowRef<any>, index: ShallowRef<number | undefined>) => Block, getKey?: (item: any, key: any, index?: number) => any, flags?: number, setup?: (_: {
|
|
22273
|
+
createSelector: (source: () => any) => (cb: () => void) => void;
|
|
22274
|
+
}) => void) => ForFragment;
|
|
22328
22275
|
declare function createForSlots(rawSource: Source, getSlot: (item: any, key: any, index?: number) => DynamicSlot): DynamicSlot[];
|
|
22329
22276
|
declare function getRestElement(val: any, keys: string[]): any;
|
|
22330
|
-
declare function getDefaultValue(val: any,
|
|
22277
|
+
declare function getDefaultValue(val: any, defaultVal: any): any;
|
|
22331
22278
|
//#endregion
|
|
22332
22279
|
//#region packages/runtime-vapor/src/helpers/useCssVars.d.ts
|
|
22333
22280
|
declare function useVaporCssVars(getter: () => Record<string, string>): void;
|
|
22334
22281
|
//#endregion
|
|
22335
|
-
//#region packages/runtime-vapor/src/helpers/setKey.d.ts
|
|
22336
|
-
declare function setBlockKey(block: (Block & {
|
|
22337
|
-
$key?: any;
|
|
22338
|
-
}) | null | undefined, key: any): void;
|
|
22339
|
-
//#endregion
|
|
22340
22282
|
//#region packages/runtime-vapor/src/apiCreateDynamicComponent.d.ts
|
|
22341
|
-
declare function createDynamicComponent(getter: () => any, rawProps?: RawProps | null, rawSlots?:
|
|
22342
|
-
//#endregion
|
|
22343
|
-
//#region packages/runtime-vapor/src/apiSetupHelpers.d.ts
|
|
22344
|
-
declare function withAsyncContext(getAwaitable: () => any): [any, () => void];
|
|
22283
|
+
declare function createDynamicComponent(getter: () => any, rawProps?: RawProps | null, rawSlots?: RawSlots | null, isSingleRoot?: boolean, once?: boolean): VaporFragment;
|
|
22345
22284
|
//#endregion
|
|
22346
22285
|
//#region packages/runtime-vapor/src/directives/vShow.d.ts
|
|
22347
22286
|
declare function applyVShow(target: Block, source: () => any): void;
|
|
@@ -22358,9 +22297,9 @@ declare const applyDynamicModel: VaporModelDirective;
|
|
|
22358
22297
|
declare const VaporTransition: FunctionalVaporComponent<TransitionProps>;
|
|
22359
22298
|
//#endregion
|
|
22360
22299
|
//#region packages/runtime-vapor/src/components/TransitionGroup.d.ts
|
|
22361
|
-
declare const VaporTransitionGroup:
|
|
22300
|
+
declare const VaporTransitionGroup: ObjectVaporComponent;
|
|
22362
22301
|
declare namespace index_d_exports {
|
|
22363
|
-
export { Block, DefineVaporComponent,
|
|
22302
|
+
export { Block, DefineVaporComponent, FunctionalVaporComponent, VaporComponent, VaporComponentInstance, VaporDirective, VaporElement, VaporElementConstructor, VaporKeepAliveImpl as VaporKeepAlive, VaporPublicProps, VaporRenderResult, VaporSlot, VaporTeleportImpl as VaporTeleport, VaporTransition, VaporTransitionGroup, VaporTransitionHooks, applyCheckboxModel, applyDynamicModel, applyRadioModel, applySelectModel, applyTextModel, applyVShow, child, createComponent, createComponentWithFallback, createDynamicComponent, createFor, createForSlots, createIf, createInvoker, createKeyedFragment, createPlainElement, createSlot, createTemplateRefSetter, createTextNode, createVaporApp, createVaporSSRApp, defineVaporAsyncComponent, defineVaporComponent, defineVaporCustomElement, defineVaporSSRCustomElement, delegate, delegateEvents, getDefaultValue, getRestElement, insert, isVaporComponent, next, nthChild, on, prepend, remove, renderEffect, setAttr, setBlockHtml, setBlockText, setClass, setDOMProp, setDynamicEvents, setDynamicProps, setElementText, setHtml, setInsertionState, setProp, setStyle, setText, setValue, template, txt, unmountComponent, useVaporCssVars, vaporInteropPlugin, withVaporCtx, withVaporDirectives };
|
|
22364
22303
|
}
|
|
22365
22304
|
//#endregion
|
|
22366
22305
|
//#region temp/packages/compiler-vapor/src/ir/component.d.ts
|
|
@@ -22371,12 +22310,7 @@ export interface IRProp extends Omit<DirectiveTransformResult, "value"> {
|
|
|
22371
22310
|
*/
|
|
22372
22311
|
sharedData?: {
|
|
22373
22312
|
ident?: string;
|
|
22374
|
-
classRef?: string;
|
|
22375
22313
|
};
|
|
22376
|
-
/**
|
|
22377
|
-
* fixed by uts synthetic data-* group for dom2 dataset callbacks.
|
|
22378
|
-
*/
|
|
22379
|
-
datasetProps?: IRProp[];
|
|
22380
22314
|
}
|
|
22381
22315
|
export declare enum IRDynamicPropsKind {
|
|
22382
22316
|
EXPRESSION = 0,
|
|
@@ -22434,35 +22368,29 @@ export type IRSlots = IRSlotsStatic | IRSlotDynamic | IRSlotsExpression;
|
|
|
22434
22368
|
export declare enum IRNodeTypes {
|
|
22435
22369
|
ROOT = 0,
|
|
22436
22370
|
BLOCK = 1,
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
|
|
22451
|
-
|
|
22452
|
-
|
|
22453
|
-
|
|
22454
|
-
GET_INSERTION_PARENT = 19,
|
|
22455
|
-
SET_CHANGE_PROP = 20
|
|
22371
|
+
SET_PROP = 2,
|
|
22372
|
+
SET_DYNAMIC_PROPS = 3,
|
|
22373
|
+
SET_TEXT = 4,
|
|
22374
|
+
SET_EVENT = 5,
|
|
22375
|
+
SET_DYNAMIC_EVENTS = 6,
|
|
22376
|
+
SET_HTML = 7,
|
|
22377
|
+
SET_TEMPLATE_REF = 8,
|
|
22378
|
+
INSERT_NODE = 9,
|
|
22379
|
+
PREPEND_NODE = 10,
|
|
22380
|
+
CREATE_COMPONENT_NODE = 11,
|
|
22381
|
+
SLOT_OUTLET_NODE = 12,
|
|
22382
|
+
DIRECTIVE = 13,
|
|
22383
|
+
IF = 14,
|
|
22384
|
+
FOR = 15,
|
|
22385
|
+
GET_TEXT_CHILD = 16,
|
|
22386
|
+
GET_INSERTION_PARENT = 17,
|
|
22387
|
+
SET_CHANGE_PROP = 18
|
|
22456
22388
|
}
|
|
22457
22389
|
export interface BaseIRNode {
|
|
22458
22390
|
type: IRNodeTypes;
|
|
22459
22391
|
node: Node$1;
|
|
22460
22392
|
key?: SimpleExpressionNode | undefined;
|
|
22461
22393
|
}
|
|
22462
|
-
export interface EffectBoundary {
|
|
22463
|
-
operationIndex?: number;
|
|
22464
|
-
effectIndex?: number;
|
|
22465
|
-
}
|
|
22466
22394
|
export type CoreHelper = keyof typeof index_d_exports$1;
|
|
22467
22395
|
export type VaporHelper = keyof typeof index_d_exports;
|
|
22468
22396
|
export interface BlockIRNode extends BaseIRNode {
|
|
@@ -22478,36 +22406,28 @@ export interface RootIRNode {
|
|
|
22478
22406
|
type: IRNodeTypes.ROOT;
|
|
22479
22407
|
node: RootNode;
|
|
22480
22408
|
source: string;
|
|
22481
|
-
template:
|
|
22409
|
+
template: Map<string, Namespace>;
|
|
22410
|
+
templateIndexMap: Map<string, number>;
|
|
22411
|
+
rootTemplateIndexes: Set<number>;
|
|
22482
22412
|
component: Set<string>;
|
|
22483
22413
|
directive: Set<string>;
|
|
22484
22414
|
block: BlockIRNode;
|
|
22485
22415
|
hasTemplateRef: boolean;
|
|
22416
|
+
hasDeferredVShow: boolean;
|
|
22486
22417
|
}
|
|
22487
|
-
export interface
|
|
22488
|
-
content: string;
|
|
22489
|
-
ns: Namespace;
|
|
22490
|
-
root: boolean;
|
|
22491
|
-
static: boolean;
|
|
22492
|
-
}
|
|
22493
|
-
export declare class TemplateRegistry {
|
|
22494
|
-
entries: IRTemplate[];
|
|
22495
|
-
keys(): string[];
|
|
22496
|
-
}
|
|
22497
|
-
export interface IfIRNode extends BaseIRNode, EffectBoundary {
|
|
22418
|
+
export interface IfIRNode extends BaseIRNode {
|
|
22498
22419
|
type: IRNodeTypes.IF;
|
|
22499
22420
|
id: number;
|
|
22500
|
-
blockShape: number;
|
|
22501
22421
|
condition: SimpleExpressionNode;
|
|
22502
22422
|
positive: BlockIRNode;
|
|
22503
22423
|
negative?: BlockIRNode | IfIRNode;
|
|
22504
22424
|
once?: boolean;
|
|
22505
|
-
slotRoot?: boolean;
|
|
22506
22425
|
index?: number;
|
|
22507
22426
|
parent?: number;
|
|
22508
22427
|
anchor?: number;
|
|
22509
22428
|
logicalIndex?: number;
|
|
22510
22429
|
append?: boolean;
|
|
22430
|
+
last?: boolean;
|
|
22511
22431
|
}
|
|
22512
22432
|
export interface IRFor {
|
|
22513
22433
|
source: SimpleExpressionNode;
|
|
@@ -22515,45 +22435,26 @@ export interface IRFor {
|
|
|
22515
22435
|
key?: SimpleExpressionNode;
|
|
22516
22436
|
index?: SimpleExpressionNode;
|
|
22517
22437
|
}
|
|
22518
|
-
export interface ForIRNode extends BaseIRNode, IRFor
|
|
22438
|
+
export interface ForIRNode extends BaseIRNode, IRFor {
|
|
22519
22439
|
type: IRNodeTypes.FOR;
|
|
22520
22440
|
id: number;
|
|
22521
22441
|
keyProp?: SimpleExpressionNode;
|
|
22522
22442
|
typeProp?: SimpleExpressionNode;
|
|
22523
22443
|
render: BlockIRNode;
|
|
22524
22444
|
once: boolean;
|
|
22525
|
-
slotRoot?: boolean;
|
|
22526
22445
|
component: boolean;
|
|
22527
22446
|
onlyChild: boolean;
|
|
22528
22447
|
parent?: number;
|
|
22529
22448
|
anchor?: number;
|
|
22530
22449
|
logicalIndex?: number;
|
|
22531
22450
|
append?: boolean;
|
|
22532
|
-
|
|
22533
|
-
export interface KeyIRNode extends BaseIRNode, EffectBoundary {
|
|
22534
|
-
type: IRNodeTypes.KEY;
|
|
22535
|
-
id: number;
|
|
22536
|
-
value: SimpleExpressionNode;
|
|
22537
|
-
block: BlockIRNode;
|
|
22538
|
-
parent?: number;
|
|
22539
|
-
anchor?: number;
|
|
22540
|
-
logicalIndex?: number;
|
|
22541
|
-
append?: boolean;
|
|
22542
|
-
}
|
|
22543
|
-
export interface SetBlockKeyIRNode extends BaseIRNode {
|
|
22544
|
-
type: IRNodeTypes.SET_BLOCK_KEY;
|
|
22545
|
-
element: number;
|
|
22546
|
-
value: SimpleExpressionNode;
|
|
22451
|
+
last?: boolean;
|
|
22547
22452
|
}
|
|
22548
22453
|
export interface SetPropIRNode extends BaseIRNode {
|
|
22549
22454
|
type: IRNodeTypes.SET_PROP;
|
|
22550
22455
|
element: number;
|
|
22551
22456
|
prop: IRProp;
|
|
22552
22457
|
tag: string;
|
|
22553
|
-
/**
|
|
22554
|
-
* fixed by uts 当前操作的目标元素是否为组件模板单根根节点,可用于后续 root-only 逻辑。
|
|
22555
|
-
*/
|
|
22556
|
-
root?: boolean;
|
|
22557
22458
|
isChangeProp?: boolean;
|
|
22558
22459
|
}
|
|
22559
22460
|
export interface SetDynamicPropsIRNode extends BaseIRNode {
|
|
@@ -22562,10 +22463,6 @@ export interface SetDynamicPropsIRNode extends BaseIRNode {
|
|
|
22562
22463
|
props: IRProps[];
|
|
22563
22464
|
tag: string;
|
|
22564
22465
|
/**
|
|
22565
|
-
* fixed by uts 当前操作的目标元素是否为组件模板单根根节点,可用于后续 root-only 逻辑。
|
|
22566
|
-
*/
|
|
22567
|
-
root?: boolean;
|
|
22568
|
-
/**
|
|
22569
22466
|
* fixed by uts 当前整个动态绑定表达式对应的标识符,因为动态绑定需要在sharedData层对数据做格式化,不能单个生成标识符,不然需要在c层再格式化一次
|
|
22570
22467
|
*/
|
|
22571
22468
|
sharedData?: SimpleExpressionNode["sharedData"];
|
|
@@ -22634,8 +22531,9 @@ export interface DirectiveIRNode extends BaseIRNode {
|
|
|
22634
22531
|
builtin?: boolean;
|
|
22635
22532
|
asset?: boolean;
|
|
22636
22533
|
modelType?: "text" | "dynamic" | "radio" | "checkbox" | "select";
|
|
22534
|
+
deferred?: boolean;
|
|
22637
22535
|
}
|
|
22638
|
-
export interface CreateComponentIRNode extends BaseIRNode
|
|
22536
|
+
export interface CreateComponentIRNode extends BaseIRNode {
|
|
22639
22537
|
type: IRNodeTypes.CREATE_COMPONENT_NODE;
|
|
22640
22538
|
id: number;
|
|
22641
22539
|
tag: string;
|
|
@@ -22644,34 +22542,31 @@ export interface CreateComponentIRNode extends BaseIRNode, EffectBoundary {
|
|
|
22644
22542
|
asset: boolean;
|
|
22645
22543
|
root: boolean;
|
|
22646
22544
|
once: boolean;
|
|
22647
|
-
slotRoot?: boolean;
|
|
22648
22545
|
dynamic?: SimpleExpressionNode;
|
|
22649
|
-
|
|
22546
|
+
isCustomElement: boolean;
|
|
22650
22547
|
parent?: number;
|
|
22651
22548
|
anchor?: number;
|
|
22652
22549
|
logicalIndex?: number;
|
|
22653
22550
|
append?: boolean;
|
|
22551
|
+
last?: boolean;
|
|
22654
22552
|
/**
|
|
22655
22553
|
* fixed by uts 当前表达式对应的标识符
|
|
22656
22554
|
*/
|
|
22657
22555
|
sharedData?: SimpleExpressionNode["sharedData"];
|
|
22658
|
-
/**
|
|
22659
|
-
* fixed by uts DOM2 组件 flatten 静态值。
|
|
22660
|
-
*/
|
|
22661
|
-
flatten?: boolean;
|
|
22662
22556
|
}
|
|
22663
|
-
export interface SlotOutletIRNode extends BaseIRNode
|
|
22557
|
+
export interface SlotOutletIRNode extends BaseIRNode {
|
|
22664
22558
|
type: IRNodeTypes.SLOT_OUTLET_NODE;
|
|
22665
22559
|
id: number;
|
|
22666
22560
|
name: SimpleExpressionNode;
|
|
22667
22561
|
props: IRProps[];
|
|
22668
22562
|
fallback?: BlockIRNode;
|
|
22669
|
-
|
|
22563
|
+
noSlotted?: boolean;
|
|
22564
|
+
once?: boolean;
|
|
22670
22565
|
parent?: number;
|
|
22671
22566
|
anchor?: number;
|
|
22672
22567
|
logicalIndex?: number;
|
|
22673
22568
|
append?: boolean;
|
|
22674
|
-
|
|
22569
|
+
last?: boolean;
|
|
22675
22570
|
}
|
|
22676
22571
|
export interface GetTextChildIRNode extends BaseIRNode {
|
|
22677
22572
|
type: IRNodeTypes.GET_TEXT_CHILD;
|
|
@@ -22686,7 +22581,7 @@ export interface SetChangePropIRNode extends BaseIRNode {
|
|
|
22686
22581
|
prop: IRProp;
|
|
22687
22582
|
}
|
|
22688
22583
|
export type IRNode = OperationNode | RootIRNode;
|
|
22689
|
-
export type OperationNode =
|
|
22584
|
+
export type OperationNode = SetPropIRNode | SetDynamicPropsIRNode | SetTextIRNode | SetEventIRNode | SetDynamicEventsIRNode | SetHtmlIRNode | SetTemplateRefIRNode | InsertNodeIRNode | PrependNodeIRNode | DirectiveIRNode | IfIRNode | ForIRNode | CreateComponentIRNode | SlotOutletIRNode | GetTextChildIRNode | GetInsertionParentIRNode | SetChangePropIRNode;
|
|
22690
22585
|
export declare enum DynamicFlag {
|
|
22691
22586
|
NONE = 0,
|
|
22692
22587
|
/**
|
|
@@ -22731,7 +22626,7 @@ export type VaporDirectiveNode = Overwrite<DirectiveNode, {
|
|
|
22731
22626
|
exp: Exclude<DirectiveNode["exp"], CompoundExpressionNode>;
|
|
22732
22627
|
arg: Exclude<DirectiveNode["arg"], CompoundExpressionNode>;
|
|
22733
22628
|
}>;
|
|
22734
|
-
export type InsertionStateTypes = IfIRNode | ForIRNode |
|
|
22629
|
+
export type InsertionStateTypes = IfIRNode | ForIRNode | SlotOutletIRNode | CreateComponentIRNode;
|
|
22735
22630
|
export declare function isBlockOperation(op: OperationNode): op is InsertionStateTypes;
|
|
22736
22631
|
//#endregion
|
|
22737
22632
|
//#region temp/packages/compiler-vapor/src/transform.d.ts
|
|
@@ -22760,8 +22655,6 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22760
22655
|
block: BlockIRNode;
|
|
22761
22656
|
options: Required<Omit<TransformOptions$1, "filename" | keyof CompilerCompatOptions>>;
|
|
22762
22657
|
template: string;
|
|
22763
|
-
templateRoot: boolean;
|
|
22764
|
-
templateIndexMap: Map<string, number>;
|
|
22765
22658
|
childrenTemplate: (string | null)[];
|
|
22766
22659
|
dynamic: IRDynamicInfo;
|
|
22767
22660
|
imports: ImportItem[];
|
|
@@ -22771,13 +22664,9 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22771
22664
|
component: Set<string>;
|
|
22772
22665
|
directive: Set<string>;
|
|
22773
22666
|
slots: IRSlots[];
|
|
22774
|
-
effectIndex: number;
|
|
22775
|
-
operationIndex: number;
|
|
22776
22667
|
isLastEffectiveChild: boolean;
|
|
22777
22668
|
isOnRightmostPath: boolean;
|
|
22778
|
-
|
|
22779
|
-
templateCloseTags: Set<string> | undefined;
|
|
22780
|
-
templateCloseBlocks: boolean;
|
|
22669
|
+
hasInlineAncestorNeedingClose: boolean;
|
|
22781
22670
|
private globalId;
|
|
22782
22671
|
private nextIdMap;
|
|
22783
22672
|
private ifIndex;
|
|
@@ -22787,27 +22676,12 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22787
22676
|
private initNextIdMap;
|
|
22788
22677
|
reference(): number;
|
|
22789
22678
|
nextIfIndex(): number;
|
|
22790
|
-
|
|
22791
|
-
private canUseStaticTemplate;
|
|
22792
|
-
pushTemplate(content: string, {
|
|
22793
|
-
root,
|
|
22794
|
-
static: isStatic
|
|
22795
|
-
}?: {
|
|
22796
|
-
root?: boolean;
|
|
22797
|
-
static?: boolean;
|
|
22798
|
-
}): number;
|
|
22679
|
+
pushTemplate(content: string): number;
|
|
22799
22680
|
registerTemplate(): number;
|
|
22800
22681
|
registerEffect(expressions: SimpleExpressionNode[], operation: OperationNode | OperationNode[], getIndex?: () => number, getOperationIndex?: () => number): void;
|
|
22801
22682
|
registerOperation(...node: OperationNode[]): void;
|
|
22802
|
-
effectBoundary(): {
|
|
22803
|
-
operationIndex: number;
|
|
22804
|
-
effectIndex: number;
|
|
22805
|
-
};
|
|
22806
22683
|
create<T extends TemplateChildNode>(node: T, index: number): TransformContext<T>;
|
|
22807
|
-
private
|
|
22808
|
-
private shiftOperationBoundaries;
|
|
22809
|
-
private getChildContextInfo;
|
|
22810
|
-
private isSingleRootChild;
|
|
22684
|
+
private isEffectivelyLastChild;
|
|
22811
22685
|
}
|
|
22812
22686
|
export declare function transform(node: RootNode, options?: TransformOptions$1): RootIRNode;
|
|
22813
22687
|
export declare function createStructuralDirectiveTransform(name: string | string[], fn: StructuralDirectiveTransform): NodeTransform;
|
|
@@ -22819,27 +22693,18 @@ export declare class CodegenContext {
|
|
|
22819
22693
|
options: Required<CodegenOptions>;
|
|
22820
22694
|
bindingNames: Set<string>;
|
|
22821
22695
|
helpers: Map<string, string>;
|
|
22822
|
-
needsTemplateRefSetter: boolean;
|
|
22823
|
-
staticTemplateRefHelperCandidate?: SetTemplateRefIRNode;
|
|
22824
|
-
inSlotBlock: boolean;
|
|
22825
22696
|
helper: (name: CoreHelper | VaporHelper) => string;
|
|
22826
22697
|
delegates: Set<string>;
|
|
22827
|
-
singleUseAssetComponentNames?: Set<string>;
|
|
22828
22698
|
identifiers: Record<string, (string | SimpleExpressionNode)[]>;
|
|
22829
|
-
expressionReplacements: Map<SimpleExpressionNode, SimpleExpressionNode>[];
|
|
22830
|
-
withExpressionReplacements<T>(map: Map<SimpleExpressionNode, SimpleExpressionNode>, fn: () => T): T;
|
|
22831
|
-
getExpressionReplacement(node: SimpleExpressionNode): SimpleExpressionNode;
|
|
22832
22699
|
seenInlineHandlerNames: Record<string, number>;
|
|
22833
22700
|
block: BlockIRNode;
|
|
22834
22701
|
withId<T>(fn: () => T, map: Record<string, string | SimpleExpressionNode | null>): T;
|
|
22835
22702
|
enterBlock(block: BlockIRNode): () => BlockIRNode;
|
|
22836
|
-
enterSlotBlock(): () => boolean;
|
|
22837
22703
|
scopeLevel: number;
|
|
22838
22704
|
enterScope(): [level: number, exit: () => number];
|
|
22839
22705
|
private templateVars;
|
|
22840
22706
|
private nextIdMap;
|
|
22841
22707
|
private lastIdMap;
|
|
22842
|
-
private isHelperNameAvailable;
|
|
22843
22708
|
private lastTIndex;
|
|
22844
22709
|
private initNextIdMap;
|
|
22845
22710
|
tName(i: number): string;
|
|
@@ -22872,7 +22737,6 @@ export declare const DELIMITERS_ARRAY_NEWLINE: CodeFragmentDelimiters;
|
|
|
22872
22737
|
export declare const DELIMITERS_OBJECT: CodeFragmentDelimiters;
|
|
22873
22738
|
export declare const DELIMITERS_OBJECT_NEWLINE: CodeFragmentDelimiters;
|
|
22874
22739
|
export declare function genCall(name: string | [name: string, placeholder?: CodeFragments], ...frags: CodeFragments[]): CodeFragment[];
|
|
22875
|
-
export declare function getParserOptions(plugins: CodegenContext["options"]["expressionPlugins"]): ParserOptions;
|
|
22876
22740
|
export declare function codeFragmentToString(code: CodeFragment[], context: CodegenContext): [code: string, map: CodegenSourceMapGenerator | undefined];
|
|
22877
22741
|
//#endregion
|
|
22878
22742
|
//#region temp/packages/compiler-vapor/src/transforms/utils.d.ts
|
|
@@ -22893,8 +22757,7 @@ export interface VaporCompilerError extends CompilerError {
|
|
|
22893
22757
|
export declare function createVaporCompilerError(code: VaporErrorCodes, loc?: SourceLocation): VaporCompilerError;
|
|
22894
22758
|
export declare enum VaporErrorCodes {
|
|
22895
22759
|
X_V_PLACEHOLDER = 100,
|
|
22896
|
-
|
|
22897
|
-
__EXTEND_POINT__ = 102
|
|
22760
|
+
__EXTEND_POINT__ = 101
|
|
22898
22761
|
}
|
|
22899
22762
|
export declare const VaporErrorMessages: Record<VaporErrorCodes, string>;
|
|
22900
22763
|
//#endregion
|
|
@@ -22934,9 +22797,6 @@ export declare const transformVIf: NodeTransform;
|
|
|
22934
22797
|
//#region temp/packages/compiler-vapor/src/transforms/vFor.d.ts
|
|
22935
22798
|
export declare const transformVFor: NodeTransform;
|
|
22936
22799
|
//#endregion
|
|
22937
|
-
//#region temp/packages/compiler-vapor/src/transforms/transformKey.d.ts
|
|
22938
|
-
export declare const transformKey: NodeTransform;
|
|
22939
|
-
//#endregion
|
|
22940
22800
|
//#region temp/packages/compiler-vapor/src/transforms/vModel.d.ts
|
|
22941
22801
|
export declare const transformVModel: DirectiveTransform;
|
|
22942
22802
|
//#endregion
|
|
@@ -22953,7 +22813,6 @@ export declare const transformVSlot: NodeTransform;
|
|
|
22953
22813
|
export declare function propToExpression(prop: AttributeNode | VaporDirectiveNode): SimpleExpressionNode | undefined;
|
|
22954
22814
|
export declare function isConstantExpression(exp: SimpleExpressionNode): boolean;
|
|
22955
22815
|
export declare function isStaticExpression(node: SimpleExpressionNode, bindings: BindingMetadata): boolean;
|
|
22956
|
-
export declare function parseStaticAttrBooleanExpression(exp: SimpleExpressionNode): boolean | null;
|
|
22957
22816
|
export declare function getLiteralExpressionValue(exp: SimpleExpressionNode, excludeNumber?: boolean): string | null;
|
|
22958
22817
|
export declare function isTransitionTag(tag: string): boolean;
|
|
22959
22818
|
export declare function isTransitionGroupTag(tag: string): boolean;
|
|
@@ -22962,28 +22821,19 @@ export declare function isTeleportTag(tag: string): boolean;
|
|
|
22962
22821
|
export declare function isBuiltInComponent(tag: string): string | undefined;
|
|
22963
22822
|
//#endregion
|
|
22964
22823
|
//#region temp/packages/compiler-vapor/src/generators/expression.d.ts
|
|
22965
|
-
|
|
22966
|
-
start: number;
|
|
22967
|
-
end: number;
|
|
22968
|
-
};
|
|
22969
|
-
type VariableUse = {
|
|
22970
|
-
name: string;
|
|
22971
|
-
loc?: SourceRange;
|
|
22972
|
-
};
|
|
22973
|
-
type ExpressionRecord = {
|
|
22974
|
-
variables: VariableUse[];
|
|
22975
|
-
};
|
|
22976
|
-
type ExpressionAnalysis = {
|
|
22824
|
+
export declare function analyzeExpressions(expressions: SimpleExpressionNode[]): {
|
|
22977
22825
|
seenVariable: Record<string, number>;
|
|
22978
22826
|
variableToExpMap: Map<string, Set<SimpleExpressionNode>>;
|
|
22979
|
-
|
|
22827
|
+
expToVariableMap: Map<SimpleExpressionNode, Array<{
|
|
22828
|
+
name: string;
|
|
22829
|
+
loc?: {
|
|
22830
|
+
start: number;
|
|
22831
|
+
end: number;
|
|
22832
|
+
};
|
|
22833
|
+
}>>;
|
|
22980
22834
|
seenIdentifier: Set<string>;
|
|
22981
22835
|
updatedVariable: Set<string>;
|
|
22982
22836
|
};
|
|
22983
|
-
export declare function analyzeExpressions(expressions: SimpleExpressionNode[]): ExpressionAnalysis;
|
|
22984
|
-
//#endregion
|
|
22985
|
-
//#region temp/packages/compiler-vapor/src/generators/modifier.d.ts
|
|
22986
|
-
export declare function genDirectiveModifiers(modifiers: string[]): string;
|
|
22987
22837
|
//#endregion
|
|
22988
22838
|
//#region temp/packages/compiler-vapor/src/generators/for.d.ts
|
|
22989
22839
|
export type DestructureMapValue = {
|
|
@@ -22995,30 +22845,14 @@ export type DestructureMapValue = {
|
|
|
22995
22845
|
export type DestructureMap = Map<string, DestructureMapValue | null>;
|
|
22996
22846
|
export declare function parseValueDestructure(value: SimpleExpressionNode | undefined, context: CodegenContext): DestructureMap;
|
|
22997
22847
|
export declare function buildDestructureIdMap(idToPathMap: DestructureMap, baseAccessor: string, plugins: CodegenContext["options"]["expressionPlugins"]): Record<string, string | SimpleExpressionNode | null>;
|
|
22998
|
-
export declare function matchKeyOnlyBindingPattern(effect: IREffect, key: string): {
|
|
22999
|
-
effect: IREffect;
|
|
23000
|
-
} | undefined;
|
|
23001
|
-
export declare function matchSelectorPattern(effect: IREffect, key: string, idMap: Record<string, string | SimpleExpressionNode | null>, context: CodegenContext): {
|
|
23002
|
-
effect: IREffect;
|
|
23003
|
-
selector: SimpleExpressionNode;
|
|
23004
|
-
} | undefined;
|
|
23005
|
-
//#endregion
|
|
23006
|
-
//#region temp/packages/compiler-vapor/src/generators/block.d.ts
|
|
23007
|
-
export declare function markSlotRootOperations(block: BlockIRNode): void;
|
|
23008
22848
|
//#endregion
|
|
23009
22849
|
//#region temp/packages/compiler-vapor/src/generators/component.d.ts
|
|
23010
|
-
export declare function genDynamicComponentFlags(root: boolean | undefined, once: boolean | undefined, slotRoot: boolean | undefined, extraFlags?: [flag: number, name: string][]): string | false;
|
|
23011
22850
|
/**
|
|
23012
|
-
*
|
|
23013
|
-
*
|
|
23014
|
-
*
|
|
22851
|
+
* Check if a slot block needs withVaporCtx wrapper.
|
|
22852
|
+
* Returns true if the block contains:
|
|
22853
|
+
* - Component creation (needs scopeId inheritance)
|
|
22854
|
+
* - Slot outlet (needs rawSlots from slot owner)
|
|
23015
22855
|
*/
|
|
23016
|
-
export declare function isDirectStaticLiteralProp(prop: IRProp, context: CodegenContext): boolean;
|
|
23017
|
-
type SlotRootStabilityContext = Pick<CodegenContext, "ir">;
|
|
23018
|
-
export declare function hasStableSlotRoot(block: BlockIRNode, context: SlotRootStabilityContext): boolean;
|
|
23019
22856
|
export declare function needsVaporCtx(block: BlockIRNode): boolean;
|
|
23020
22857
|
//#endregion
|
|
23021
|
-
//#region temp/packages/compiler-vapor/src/generators/slotOutlet.d.ts
|
|
23022
|
-
export declare function genSlotFlags(flags: number): string | undefined;
|
|
23023
|
-
//#endregion
|
|
23024
22858
|
export { parse, };
|