@dcloudio/uni-cli-shared 3.0.0-5000720260410001 → 3.0.0-5010520260709001
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/constants.d.ts +1 -3
- package/dist/constants.js +2 -6
- package/dist/deps.d.ts +1 -0
- package/dist/deps.js +22 -13
- package/dist/dom2/fontFamily.d.ts +4 -0
- package/dist/dom2/fontFamily.js +21 -0
- package/dist/dom2/index.d.ts +3 -0
- package/dist/dom2/index.js +3 -0
- package/dist/dom2/rootScrollView.d.ts +47 -0
- package/dist/dom2/rootScrollView.js +283 -0
- package/dist/dom2/sharedData.d.ts +4 -0
- package/dist/dom2/sharedData.js +40 -5
- package/dist/dom2/vue.d.ts +16 -0
- package/dist/dom2/vue.js +37 -0
- package/dist/easycom.d.ts +1 -0
- package/dist/easycom.js +23 -9
- package/dist/env/define.d.ts +0 -1
- package/dist/env/define.js +3 -11
- package/dist/hbx/alias.js +64 -10
- package/dist/hbx/log.js +9 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/json/app/manifest/plus.js +9 -1
- package/dist/json/app/pages/definePage.js +3 -1
- package/dist/json/index.d.ts +1 -1
- package/dist/json/index.js +2 -1
- package/dist/json/mp/index.d.ts +2 -0
- package/dist/json/mp/index.js +23 -1
- package/dist/json/mp/jsonFile.d.ts +3 -2
- package/dist/json/mp/jsonFile.js +83 -13
- package/dist/json/mp/pages.d.ts +1 -0
- package/dist/json/mp/pages.js +6 -2
- package/dist/json/mp/subpackage.d.ts +26 -0
- package/dist/json/mp/subpackage.js +236 -0
- package/dist/json/uni-x/index.d.ts +6 -0
- package/dist/json/uni-x/index.js +54 -1
- package/dist/json/uni-x/manifest.d.ts +1 -1
- package/dist/json/uni-x/manifest.js +2 -1
- package/dist/json/utils.js +24 -0
- package/dist/logs/console.js +4 -1
- package/dist/messages/en.d.ts +11 -2
- package/dist/messages/en.js +11 -2
- package/dist/messages/index.d.ts +22 -4
- package/dist/messages/zh_CN.d.ts +11 -2
- package/dist/messages/zh_CN.js +11 -2
- package/dist/mp/style.js +6 -2
- package/dist/mp/usingComponents.d.ts +7 -5
- package/dist/mp/usingComponents.js +63 -34
- package/dist/postcss/plugins/stylePluginExternal.d.ts +9 -10
- package/dist/postcss/plugins/stylePluginExternal.js +51 -45
- package/dist/resolve.d.ts +1 -0
- package/dist/resolve.js +9 -2
- package/dist/uni_modules.cloud.d.ts +7 -1
- package/dist/uni_modules.cloud.js +131 -14
- package/dist/uni_modules.js +3 -2
- package/dist/utils.js +5 -0
- package/dist/uts.d.ts +1 -0
- package/dist/uts.js +90 -6
- package/dist/vite/autoImport.js +7 -4
- package/dist/vite/cloud.js +13 -6
- package/dist/vite/extApi.js +4 -1
- package/dist/vite/plugins/cssScoped.js +11 -2
- package/dist/vite/plugins/easycom.js +3 -1
- package/dist/vite/plugins/inject.js +11 -3
- package/dist/vite/plugins/json.js +2 -69
- package/dist/vite/plugins/jsonJs.js +41 -3
- package/dist/vite/plugins/pre.js +2 -0
- package/dist/vite/plugins/sfc.js +4 -1
- package/dist/vite/plugins/stats.d.ts +5 -1
- package/dist/vite/plugins/stats.js +74 -3
- package/dist/vite/plugins/uts/uni_modules.d.ts +1 -1
- package/dist/vite/plugins/uts/uni_modules.js +30 -12
- package/dist/vite/plugins/vitejs/plugins/asset.js +14 -1
- package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -2
- package/dist/vite/plugins/vitejs/plugins/css.js +45 -6
- package/dist/vue/transforms/index.d.ts +1 -0
- package/dist/vue/transforms/index.js +2 -1
- package/dist/vue/transforms/transformTeleport.d.ts +2 -0
- package/dist/vue/transforms/transformTeleport.js +68 -0
- package/dist/vue/transforms/x/transformDirection.js +33 -4
- package/dist/workers.d.ts +1 -0
- package/dist/workers.js +12 -5
- package/dist/x.d.ts +11 -0
- package/dist/x.js +43 -0
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +0 -7
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +0 -7
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +58 -63
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +58 -63
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +7 -1
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +22 -47
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +12 -23
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +12 -22
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +23 -74
- 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 +3 -20
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +310 -363
- 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 +810 -579
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +33 -11114
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +1638 -1250
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +1031 -599
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +470 -328
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +1154 -709
- 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 +16 -25
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +16 -25
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +5 -0
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +11 -23
- package/package.json +6 -6
|
@@ -1,12 +1,24 @@
|
|
|
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, LifecycleHook, NULL_DYNAMIC_COMPONENT, NormalizedPropsOptions, ObjectEmitsOptions, Plugin, ReservedProps, SchedulerJob, ShallowUnwrapRef, SuspenseBoundary, TransitionHooks, TransitionProps, TransitionState, TypeEmitsToOptions, VNode, VueElementBase } from "@vue/runtime-dom";
|
|
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, KeepAliveProps, LifecycleHook, NULL_DYNAMIC_COMPONENT, NormalizedPropsOptions, ObjectEmitsOptions, Plugin, ReservedProps, SchedulerJob, ShallowUnwrapRef, SuspenseBoundary, TeleportProps, TransitionGroupProps, TransitionHooks, TransitionProps, TransitionState, TypeEmitsToOptions, VNode, VueElementBase } from "@vue/runtime-dom";
|
|
4
4
|
import { EffectScope as EffectScope$1, ReactiveEffect, Ref, ShallowRef } from "@vue/reactivity";
|
|
5
5
|
import { IsKeyValues, Namespace, NormalizedStyle, Prettify } from "@vue/shared";
|
|
6
6
|
import { ImportItem } from "@vue/compiler-core";
|
|
7
|
+
import { ParserOptions } from "@babel/parser";
|
|
7
8
|
|
|
8
9
|
//#region \0rolldown/runtime.js
|
|
9
10
|
//#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
|
|
10
22
|
//#region node_modules/.pnpm/@types+trusted-types@2.0.7/node_modules/@types/trusted-types/lib/index.d.ts
|
|
11
23
|
declare class TrustedHTML {
|
|
12
24
|
private constructor(); // To prevent instantiting with 'new'.
|
|
@@ -22,6 +34,7 @@ declare const nodeOps: Omit<RendererOptions<Node, Element>, "patchProp">;
|
|
|
22
34
|
type DOMRendererOptions = RendererOptions<Node, Element>;
|
|
23
35
|
declare const patchProp: DOMRendererOptions["patchProp"];
|
|
24
36
|
declare function shouldSetAsProp(el: Element, key: string, value: unknown, isSVG: boolean): boolean;
|
|
37
|
+
declare function shouldSetAsPropForVueCE(el: any, key: string): boolean;
|
|
25
38
|
//#endregion
|
|
26
39
|
//#region packages/runtime-dom/src/components/Transition.d.ts
|
|
27
40
|
declare const TRANSITION = "transition";
|
|
@@ -63,13 +76,13 @@ interface Position$1 {
|
|
|
63
76
|
top: number;
|
|
64
77
|
left: number;
|
|
65
78
|
}
|
|
66
|
-
type TransitionGroupProps = Omit<TransitionProps$1, "mode"> & {
|
|
79
|
+
type TransitionGroupProps$1 = Omit<TransitionProps$1, "mode"> & {
|
|
67
80
|
tag?: string;
|
|
68
81
|
moveClass?: string;
|
|
69
82
|
};
|
|
70
83
|
declare const TransitionGroup: {
|
|
71
84
|
new (): {
|
|
72
|
-
$props: TransitionGroupProps;
|
|
85
|
+
$props: TransitionGroupProps$1;
|
|
73
86
|
};
|
|
74
87
|
};
|
|
75
88
|
declare function callPendingCbs(el: any): void;
|
|
@@ -77,17 +90,6 @@ declare function baseApplyTranslation(oldPos: Position$1, newPos: Position$1, el
|
|
|
77
90
|
declare function hasCSSTransform(el: ElementWithTransition, root: Node, moveClass: string): boolean;
|
|
78
91
|
declare const handleMovedChildren: (el: ElementWithTransition, moveClass: string) => void;
|
|
79
92
|
//#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
|
|
91
93
|
//#region packages/runtime-dom/src/directives/vOn.d.ts
|
|
92
94
|
declare const systemModifiers: readonly ["ctrl", "shift", "alt", "meta"];
|
|
93
95
|
type SystemModifiers = (typeof systemModifiers)[number];
|
|
@@ -158,183 +160,6 @@ declare function getValue(el: HTMLOptionElement | HTMLInputElement): any;
|
|
|
158
160
|
declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
159
161
|
type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModelSelect | typeof vModelRadio | typeof vModelDynamic;
|
|
160
162
|
//#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
|
|
338
163
|
//#region node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts
|
|
339
164
|
interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
340
165
|
/**
|
|
@@ -20707,9 +20532,10 @@ interface AriaAttributes {
|
|
|
20707
20532
|
"aria-valuetext"?: string | undefined;
|
|
20708
20533
|
}
|
|
20709
20534
|
type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
|
|
20535
|
+
type ClassValue = false | null | undefined | string | Record<string, any> | Array<ClassValue>;
|
|
20710
20536
|
interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
20711
20537
|
innerHTML?: string | undefined;
|
|
20712
|
-
class?:
|
|
20538
|
+
class?: ClassValue | undefined;
|
|
20713
20539
|
style?: StyleValue | undefined;
|
|
20714
20540
|
accesskey?: string | undefined;
|
|
20715
20541
|
contenteditable?: Booleanish | "inherit" | "plaintext-only" | undefined;
|
|
@@ -21182,7 +21008,7 @@ interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
21182
21008
|
* SVG Styling Attributes
|
|
21183
21009
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
21184
21010
|
*/
|
|
21185
|
-
class?:
|
|
21011
|
+
class?: ClassValue | undefined;
|
|
21186
21012
|
style?: StyleValue | undefined;
|
|
21187
21013
|
color?: string | undefined;
|
|
21188
21014
|
height?: Numberish | undefined;
|
|
@@ -21717,6 +21543,192 @@ interface ReservedProps$1 {
|
|
|
21717
21543
|
}
|
|
21718
21544
|
type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 };
|
|
21719
21545
|
//#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
|
|
21720
21732
|
//#region packages/runtime-dom/src/modules/style.d.ts
|
|
21721
21733
|
type Style = string | null | undefined | Record<string, unknown>;
|
|
21722
21734
|
declare function patchStyle(el: Element, prev: Style, next: Style): void;
|
|
@@ -21724,7 +21736,7 @@ declare function patchStyle(el: Element, prev: Style, next: Style): void;
|
|
|
21724
21736
|
//#region packages/runtime-dom/src/modules/attrs.d.ts
|
|
21725
21737
|
declare const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
21726
21738
|
declare namespace index_d_exports$1 {
|
|
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 };
|
|
21739
|
+
export { AnchorHTMLAttributes, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseHTMLAttributes, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ClassValue, 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$1 as 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, shouldSetAsPropForVueCE, 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 };
|
|
21728
21740
|
}
|
|
21729
21741
|
import * as import__vue_runtime_core from "@vue/runtime-core";
|
|
21730
21742
|
/**
|
|
@@ -21741,9 +21753,13 @@ declare module "@vue/reactivity" {
|
|
|
21741
21753
|
}
|
|
21742
21754
|
}
|
|
21743
21755
|
declare module "@vue/runtime-core" {
|
|
21756
|
+
interface AllowedAttrs {
|
|
21757
|
+
class?: ClassValue;
|
|
21758
|
+
style?: StyleValue;
|
|
21759
|
+
}
|
|
21744
21760
|
interface GlobalComponents {
|
|
21745
21761
|
Transition: DefineComponent<TransitionProps$1>;
|
|
21746
|
-
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
|
21762
|
+
TransitionGroup: DefineComponent<TransitionGroupProps$1>;
|
|
21747
21763
|
}
|
|
21748
21764
|
interface GlobalDirectives {
|
|
21749
21765
|
vShow: typeof vShow;
|
|
@@ -21771,18 +21787,17 @@ declare const initDirectivesForSSR: () => void;
|
|
|
21771
21787
|
//#endregion
|
|
21772
21788
|
//#region packages/runtime-vapor/src/apiTemplateRef.d.ts
|
|
21773
21789
|
type NodeRef = string | Ref | ((ref: Element | VaporComponentInstance, refs: Record<string, any>) => void);
|
|
21774
|
-
type RefEl = Element | VaporComponentInstance;
|
|
21790
|
+
type RefEl = Element | VaporComponentInstance | DynamicFragment | VaporFragment;
|
|
21775
21791
|
type setRefFn = (el: RefEl, ref: NodeRef, refFor?: boolean, refKey?: string) => NodeRef | undefined;
|
|
21776
21792
|
declare function createTemplateRefSetter(): setRefFn;
|
|
21777
21793
|
//#endregion
|
|
21778
|
-
//#region packages/runtime-vapor/src/
|
|
21779
|
-
interface
|
|
21780
|
-
processShapeFlag(block: Block):
|
|
21781
|
-
cacheBlock(): void;
|
|
21782
|
-
cacheScope(
|
|
21794
|
+
//#region packages/runtime-vapor/src/keepAlive.d.ts
|
|
21795
|
+
interface VaporKeepAliveContext {
|
|
21796
|
+
processShapeFlag(block: Block): any | false;
|
|
21797
|
+
cacheBlock(block?: Block): void;
|
|
21798
|
+
cacheScope(cacheKey: any, scopeLookupKey: any, scope: EffectScope$1): void;
|
|
21783
21799
|
getScope(key: any): EffectScope$1 | undefined;
|
|
21784
21800
|
}
|
|
21785
|
-
declare const VaporKeepAliveImpl: ObjectVaporComponent;
|
|
21786
21801
|
//#endregion
|
|
21787
21802
|
//#region packages/runtime-vapor/src/fragment.d.ts
|
|
21788
21803
|
declare class VaporFragment<T extends Block = Block> implements TransitionOptions {
|
|
@@ -21792,16 +21807,23 @@ declare class VaporFragment<T extends Block = Block> implements TransitionOption
|
|
|
21792
21807
|
vnode?: VNode | null;
|
|
21793
21808
|
anchor?: Node;
|
|
21794
21809
|
parentComponent?: GenericComponentInstance$1 | null;
|
|
21795
|
-
|
|
21810
|
+
validityPending?: boolean;
|
|
21796
21811
|
insert?: (parent: ParentNode, anchor: Node | null, transitionHooks?: TransitionHooks) => void;
|
|
21797
21812
|
remove?: (parent?: ParentNode, transitionHooks?: TransitionHooks) => void;
|
|
21798
21813
|
hydrate?: (...args: any[]) => void;
|
|
21799
21814
|
setRef?: (instance: VaporComponentInstance, ref: NodeRef, refFor: boolean, refKey: string | undefined) => void;
|
|
21800
21815
|
onUpdated?: ((nodes?: Block) => void)[];
|
|
21816
|
+
readonly renderInstance: GenericComponentInstance$1 | null;
|
|
21817
|
+
readonly slotOwner: VaporComponentInstance | null;
|
|
21818
|
+
readonly keepAliveCtx?: VaporKeepAliveContext | null;
|
|
21819
|
+
readonly inheritedSlotBoundary: SlotBoundaryContext | null;
|
|
21801
21820
|
constructor(nodes: T);
|
|
21821
|
+
protected runWithRenderCtx<R>(fn: () => R, scope?: EffectScope$1): R;
|
|
21802
21822
|
}
|
|
21803
21823
|
declare class ForFragment extends VaporFragment<Block[]> {
|
|
21824
|
+
resetListeners?: (() => void)[];
|
|
21804
21825
|
constructor(nodes: Block[]);
|
|
21826
|
+
onReset(fn: () => void): void;
|
|
21805
21827
|
}
|
|
21806
21828
|
declare class DynamicFragment extends VaporFragment {
|
|
21807
21829
|
anchor: Node;
|
|
@@ -21811,18 +21833,24 @@ declare class DynamicFragment extends VaporFragment {
|
|
|
21811
21833
|
render?: BlockFn;
|
|
21812
21834
|
key: any;
|
|
21813
21835
|
};
|
|
21814
|
-
fallback?: BlockFn;
|
|
21815
21836
|
anchorLabel?: string;
|
|
21816
21837
|
keyed?: boolean;
|
|
21838
|
+
inTransition?: boolean;
|
|
21817
21839
|
attrs?: Record<string, any>;
|
|
21818
|
-
|
|
21819
|
-
|
|
21820
|
-
slotOwner: VaporComponentInstance | null;
|
|
21821
|
-
constructor(anchorLabel?: string, keyed?: boolean);
|
|
21840
|
+
constructor(anchorLabel?: string, keyed?: boolean, locate?: boolean);
|
|
21841
|
+
protected registerSlotBoundaryDirty(): void;
|
|
21822
21842
|
update(render?: BlockFn, key?: any): void;
|
|
21823
|
-
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null,
|
|
21824
|
-
hydrate: (isEmpty?: boolean) => void;
|
|
21843
|
+
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null, key: any): void;
|
|
21844
|
+
hydrate: (isEmpty?: boolean, isSlot?: boolean) => void;
|
|
21845
|
+
}
|
|
21846
|
+
interface SlotBoundaryContext {
|
|
21847
|
+
parent: SlotBoundaryContext | null;
|
|
21848
|
+
getFallback: () => BlockFn | undefined;
|
|
21849
|
+
run<R>(fn: () => R, scope?: EffectScope$1): R;
|
|
21850
|
+
markDirty: () => void;
|
|
21851
|
+
redirected?: SlotBoundaryContext;
|
|
21825
21852
|
}
|
|
21853
|
+
declare function isFragment(val: NonNullable<unknown>): val is VaporFragment;
|
|
21826
21854
|
//#endregion
|
|
21827
21855
|
//#region packages/runtime-vapor/src/block.d.ts
|
|
21828
21856
|
interface VaporTransitionHooks extends TransitionHooks {
|
|
@@ -21830,6 +21858,7 @@ interface VaporTransitionHooks extends TransitionHooks {
|
|
|
21830
21858
|
props: TransitionProps;
|
|
21831
21859
|
instance: VaporComponentInstance;
|
|
21832
21860
|
disabled?: boolean;
|
|
21861
|
+
applyGroup?: (block: Block, props: TransitionProps, state: TransitionState, instance: VaporComponentInstance) => void;
|
|
21833
21862
|
}
|
|
21834
21863
|
interface TransitionOptions {
|
|
21835
21864
|
$key?: any;
|
|
@@ -21843,9 +21872,8 @@ declare function insert(block: Block, parent: ParentNode & {
|
|
|
21843
21872
|
declare function prepend(parent: ParentNode, ...blocks: Block[]): void;
|
|
21844
21873
|
declare function remove(block: Block, parent?: ParentNode): void;
|
|
21845
21874
|
//#endregion
|
|
21846
|
-
//#region packages/runtime-vapor/src/
|
|
21875
|
+
//#region packages/runtime-vapor/src/vdomInteropState.d.ts
|
|
21847
21876
|
declare const interopKey: unique symbol;
|
|
21848
|
-
declare const vaporInteropPlugin: Plugin;
|
|
21849
21877
|
//#endregion
|
|
21850
21878
|
//#region packages/runtime-vapor/src/componentProps.d.ts
|
|
21851
21879
|
type RawProps = Record<string, () => unknown> & {
|
|
@@ -21857,11 +21885,11 @@ type DynamicPropsSource = (() => Record<string, unknown>) | Record<string, () =>
|
|
|
21857
21885
|
//#endregion
|
|
21858
21886
|
//#region packages/runtime-vapor/src/renderEffect.d.ts
|
|
21859
21887
|
declare class RenderEffect extends ReactiveEffect {
|
|
21860
|
-
render: () => void;
|
|
21861
21888
|
i: VaporComponentInstance | null;
|
|
21862
21889
|
job: SchedulerJob;
|
|
21863
|
-
updateJob
|
|
21864
|
-
|
|
21890
|
+
updateJob?: SchedulerJob;
|
|
21891
|
+
render: () => void;
|
|
21892
|
+
constructor(render: () => void, noLifecycle?: boolean);
|
|
21865
21893
|
fn(): void;
|
|
21866
21894
|
notify(): void;
|
|
21867
21895
|
}
|
|
@@ -21883,51 +21911,12 @@ type DynamicSlotSource = StaticSlots | DynamicSlotFn;
|
|
|
21883
21911
|
* Wrap a slot function to track the slot owner.
|
|
21884
21912
|
*
|
|
21885
21913
|
* This ensures:
|
|
21886
|
-
* 1. createSlot gets rawSlots from the correct
|
|
21887
|
-
* 2.
|
|
21914
|
+
* 1. createSlot gets rawSlots from the correct instance (slot owner)
|
|
21915
|
+
* 2. elements inherit the slot owner's scopeId
|
|
21888
21916
|
*/
|
|
21889
21917
|
declare function withVaporCtx(fn: Function): BlockFn;
|
|
21890
21918
|
declare function createSlot(name: string | (() => string), rawProps?: LooseRawProps | null, fallback?: VaporSlot, noSlotted?: boolean, once?: boolean): Block;
|
|
21891
21919
|
//#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
|
-
}
|
|
21930
|
-
//#endregion
|
|
21931
21920
|
//#region packages/runtime-vapor/src/apiDefineComponent.d.ts
|
|
21932
21921
|
type VaporPublicProps = ReservedProps & AllowedComponentProps & ComponentCustomProps;
|
|
21933
21922
|
type VaporRenderResult<T = Block> = VNode | T | VaporRenderResult<T>[];
|
|
@@ -21937,21 +21926,22 @@ type VaporComponentInstanceConstructor<T extends VaporComponentInstance> = {
|
|
|
21937
21926
|
__isSuspense?: never;
|
|
21938
21927
|
new (...args: any[]): T;
|
|
21939
21928
|
};
|
|
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,
|
|
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 (
|
|
21929
|
+
type DefineVaporComponent<RuntimePropsOptions = {}, RuntimePropsKeys extends string = string, InferredProps = (string extends RuntimePropsKeys ? ComponentObjectPropsOptions$1 extends RuntimePropsOptions ? {} : ExtractPropTypes$1<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: 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, TypeRefs extends Record<string, unknown> = {}, MakeDefaultsOptional extends boolean = true, 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>> & VaporComponentOptions<RuntimePropsOptions | RuntimePropsKeys[], Emits, RuntimeEmitsKeys, Slots, Exposed>;
|
|
21930
|
+
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>;
|
|
21942
21931
|
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: {
|
|
21943
21932
|
emit: EmitFn<Emits>;
|
|
21944
21933
|
slots: Slots;
|
|
21945
21934
|
attrs: Record<string, any>;
|
|
21946
21935
|
expose: (exposed: Exposed) => void;
|
|
21947
|
-
}) => VaporRenderResult<TypeBlock> | void, extraOptions?:
|
|
21936
|
+
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: VaporComponentOptions<(keyof NoInfer<Props>)[], Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
21948
21937
|
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: {
|
|
21949
21938
|
emit: EmitFn<Emits>;
|
|
21950
21939
|
slots: Slots;
|
|
21951
21940
|
attrs: Record<string, any>;
|
|
21952
21941
|
expose: (exposed: Exposed) => void;
|
|
21953
|
-
}) => VaporRenderResult<TypeBlock> | void, extraOptions?:
|
|
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:
|
|
21942
|
+
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: VaporComponentOptions<ComponentObjectPropsOptions$1<Props>, Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
21943
|
+
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: VaporComponentOptions<RuntimePropsOptions | RuntimePropsKeys[], ResolvedEmits, RuntimeEmitsKeys, Slots, Exposed, TypeBlock, InferredProps> & {
|
|
21944
|
+
[key: string]: any;
|
|
21955
21945
|
/**
|
|
21956
21946
|
* @private for language-tools use only
|
|
21957
21947
|
*/
|
|
@@ -21968,19 +21958,63 @@ declare function defineVaporComponent<TypeProps, RuntimePropsOptions extends Com
|
|
|
21968
21958
|
* @private for language-tools use only
|
|
21969
21959
|
*/
|
|
21970
21960
|
__typeEl?: TypeBlock;
|
|
21971
|
-
} & ThisType<void>): DefineVaporComponent<RuntimePropsOptions, RuntimePropsKeys, ResolvedEmits, RuntimeEmitsKeys, Slots, Exposed extends Block ? Record<string, any> : Exposed, TypeBlock, TypeRefs, unknown extends TypeProps ? true : false
|
|
21961
|
+
} & ThisType<void>): DefineVaporComponent<RuntimePropsOptions, RuntimePropsKeys, InferredProps, ResolvedEmits, RuntimeEmitsKeys, Slots, Exposed extends Block ? Record<string, any> : Exposed, TypeBlock, TypeRefs, unknown extends TypeProps ? true : false>;
|
|
21962
|
+
//#endregion
|
|
21963
|
+
//#region packages/runtime-vapor/src/components/Teleport.d.ts
|
|
21964
|
+
declare class TeleportFragment extends VaporFragment {
|
|
21965
|
+
/**
|
|
21966
|
+
* @internal marker for duck typing to avoid direct instanceof check
|
|
21967
|
+
* which prevents tree-shaking of TeleportFragment
|
|
21968
|
+
*/
|
|
21969
|
+
readonly __isTeleportFragment = true;
|
|
21970
|
+
anchor?: Node;
|
|
21971
|
+
private rawProps?;
|
|
21972
|
+
private resolvedProps?;
|
|
21973
|
+
private rawSlots?;
|
|
21974
|
+
isDisabled?: boolean;
|
|
21975
|
+
private isMounted;
|
|
21976
|
+
private childrenInitialized;
|
|
21977
|
+
private readonly ownerInstance;
|
|
21978
|
+
private readonly childrenScope;
|
|
21979
|
+
target?: ParentNode | null;
|
|
21980
|
+
targetAnchor?: Node | null;
|
|
21981
|
+
targetStart?: Node | null;
|
|
21982
|
+
placeholder?: Node;
|
|
21983
|
+
mountContainer?: ParentNode | null;
|
|
21984
|
+
mountAnchor?: Node | null;
|
|
21985
|
+
private mountToTargetJob?;
|
|
21986
|
+
constructor(props: LooseRawProps, slots?: LooseRawSlots | null);
|
|
21987
|
+
get parent(): ParentNode | null;
|
|
21988
|
+
private initChildren;
|
|
21989
|
+
private ensureChildrenInitialized;
|
|
21990
|
+
private registerUpdateCssVars;
|
|
21991
|
+
private bindChildren;
|
|
21992
|
+
private handleChildrenUpdate;
|
|
21993
|
+
private mount;
|
|
21994
|
+
private mountToTarget;
|
|
21995
|
+
private clearMainViewChildren;
|
|
21996
|
+
private handlePropsUpdate;
|
|
21997
|
+
insert: (container: ParentNode, anchor: Node | null) => void;
|
|
21998
|
+
dispose: () => void;
|
|
21999
|
+
remove: (_parent?: ParentNode) => void;
|
|
22000
|
+
private hydrateTargetAnchors;
|
|
22001
|
+
private hydrateDisabledTeleport;
|
|
22002
|
+
private mountChildren;
|
|
22003
|
+
hydrate: () => void;
|
|
22004
|
+
}
|
|
22005
|
+
declare const VaporTeleport: DefineVaporSetupFnComponent<TeleportProps>;
|
|
21972
22006
|
//#endregion
|
|
21973
22007
|
//#region packages/runtime-vapor/src/component.d.ts
|
|
21974
|
-
type VaporComponent = FunctionalVaporComponent |
|
|
21975
|
-
type FunctionalVaporComponent<Props = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>> = ((props:
|
|
22008
|
+
type VaporComponent = FunctionalVaporComponent<any> | VaporComponentOptions | DefineVaporComponent;
|
|
22009
|
+
type FunctionalVaporComponent<Props = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>> = ((props: Props & EmitsToProps$1<Emits>, ctx: {
|
|
21976
22010
|
emit: EmitFn<Emits>;
|
|
21977
22011
|
slots: Slots;
|
|
21978
22012
|
attrs: Record<string, any>;
|
|
21979
22013
|
expose: <T extends Record<string, any> = Exposed>(exposed: T) => void;
|
|
21980
|
-
}) => VaporRenderResult) & Omit<
|
|
22014
|
+
}) => VaporRenderResult) & Omit<VaporComponentOptions<ComponentPropsOptions<Props>, Emits, string, Slots>, "setup"> & {
|
|
21981
22015
|
displayName?: string;
|
|
21982
22016
|
} & SharedInternalOptions;
|
|
21983
|
-
interface
|
|
22017
|
+
interface VaporComponentOptions<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<VaporComponentOptions, VaporComponentInstance>, SharedInternalOptions {
|
|
21984
22018
|
inheritAttrs?: boolean;
|
|
21985
22019
|
props?: Props;
|
|
21986
22020
|
emits?: Emits | RuntimeEmitsKeys[];
|
|
@@ -22022,7 +22056,7 @@ type LooseRawProps = Record<string, (() => unknown) | DynamicPropsSource[]> & {
|
|
|
22022
22056
|
type LooseRawSlots = Record<string, VaporSlot | DynamicSlotSource[]> & {
|
|
22023
22057
|
$?: DynamicSlotSource[];
|
|
22024
22058
|
};
|
|
22025
|
-
declare function createComponent(component: VaporComponent, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext): VaporComponentInstance;
|
|
22059
|
+
declare function createComponent(component: VaporComponent, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext, managedMount?: boolean): VaporComponentInstance;
|
|
22026
22060
|
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 {
|
|
22027
22061
|
vapor: true;
|
|
22028
22062
|
uid: number;
|
|
@@ -22053,9 +22087,12 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22053
22087
|
suspenseId: number;
|
|
22054
22088
|
asyncDep: Promise<any> | null;
|
|
22055
22089
|
asyncResolved: boolean;
|
|
22090
|
+
restoreAsyncContext?: () => void | (() => void);
|
|
22091
|
+
deferredHydrationBoundary?: () => void;
|
|
22056
22092
|
renderEffects?: RenderEffect[];
|
|
22057
22093
|
hasFallthrough: boolean;
|
|
22058
22094
|
shapeFlag?: number;
|
|
22095
|
+
$key?: any;
|
|
22059
22096
|
oncePropsCache?: Record<string | symbol, any>;
|
|
22060
22097
|
isMounted: boolean;
|
|
22061
22098
|
isUnmounted: boolean;
|
|
@@ -22089,6 +22126,10 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22089
22126
|
* fallthrough can be suppressed.
|
|
22090
22127
|
*/
|
|
22091
22128
|
accessedAttrs: boolean;
|
|
22129
|
+
/**
|
|
22130
|
+
* @deprecated only used for JSX to detect props types.
|
|
22131
|
+
*/
|
|
22132
|
+
$props: Props;
|
|
22092
22133
|
constructor(comp: VaporComponent, rawProps?: RawProps | null, rawSlots?: RawSlots | null, appContext?: GenericAppContext, once?: boolean);
|
|
22093
22134
|
/**
|
|
22094
22135
|
* Expose `getKeysFromRawProps` on the instance so it can be used in code
|
|
@@ -22114,11 +22155,17 @@ declare const createVaporSSRApp: CreateAppFunction$1<ParentNode, VaporComponent>
|
|
|
22114
22155
|
//#region packages/runtime-vapor/src/apiDefineAsyncComponent.d.ts
|
|
22115
22156
|
declare function defineVaporAsyncComponent<T extends VaporComponent>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
22116
22157
|
//#endregion
|
|
22158
|
+
//#region packages/runtime-vapor/src/vdomInterop.d.ts
|
|
22159
|
+
declare const vaporInteropPlugin: Plugin;
|
|
22160
|
+
//#endregion
|
|
22117
22161
|
//#region packages/runtime-vapor/src/directives/custom.d.ts
|
|
22118
22162
|
type VaporDirective = (node: Element | VaporComponentInstance, value?: () => any, argument?: string, modifiers?: DirectiveModifiers) => (() => void) | void;
|
|
22119
22163
|
type VaporDirectiveArguments = Array<[VaporDirective | undefined] | [VaporDirective | undefined, () => any] | [VaporDirective | undefined, (() => any) | undefined, argument: string] | [VaporDirective | undefined, value: (() => any) | undefined, argument: string | undefined, modifiers: DirectiveModifiers]>;
|
|
22120
22164
|
declare function withVaporDirectives(node: Element | VaporComponentInstance, dirs: VaporDirectiveArguments): void;
|
|
22121
22165
|
//#endregion
|
|
22166
|
+
//#region packages/runtime-vapor/src/components/KeepAlive.d.ts
|
|
22167
|
+
declare const VaporKeepAlive: DefineVaporComponent<{}, string, KeepAliveProps>;
|
|
22168
|
+
//#endregion
|
|
22122
22169
|
//#region packages/runtime-vapor/src/apiDefineCustomElement.d.ts
|
|
22123
22170
|
type VaporElementConstructor<P = {}> = {
|
|
22124
22171
|
new (initialProps?: Record<string, any>): VaporElement & P;
|
|
@@ -22128,15 +22175,15 @@ declare function defineVaporCustomElement<Props, RawBindings = object>(setup: (p
|
|
|
22128
22175
|
slots: StaticSlots;
|
|
22129
22176
|
emit: EmitFn;
|
|
22130
22177
|
expose: (exposed: Record<string, any>) => void;
|
|
22131
|
-
}) => RawBindings | VaporRenderResult, options?: Pick<
|
|
22132
|
-
props?: (keyof Props)[];
|
|
22178
|
+
}) => RawBindings | VaporRenderResult, options?: Pick<VaporComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions & {
|
|
22179
|
+
props?: (keyof NoInfer<Props>)[];
|
|
22133
22180
|
}): VaporElementConstructor<Props>;
|
|
22134
22181
|
declare function defineVaporCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: {
|
|
22135
22182
|
attrs: Record<string, any>;
|
|
22136
22183
|
slots: StaticSlots;
|
|
22137
22184
|
emit: EmitFn;
|
|
22138
22185
|
expose: (exposed: Record<string, any>) => void;
|
|
22139
|
-
}) => RawBindings | VaporRenderResult, options?: Pick<
|
|
22186
|
+
}) => RawBindings | VaporRenderResult, options?: Pick<VaporComponentOptions, "name" | "inheritAttrs" | "emits"> & CustomElementOptions & {
|
|
22140
22187
|
props?: ComponentObjectPropsOptions$1<Props>;
|
|
22141
22188
|
}): VaporElementConstructor<Props>;
|
|
22142
22189
|
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 & {
|
|
@@ -22162,7 +22209,10 @@ declare class VaporElement extends VueElementBase<ParentNode, VaporComponent, Va
|
|
|
22162
22209
|
/**
|
|
22163
22210
|
* Only called when shadowRoot is false
|
|
22164
22211
|
*/
|
|
22165
|
-
protected _updateSlotNodes(replacements: Map<Node,
|
|
22212
|
+
protected _updateSlotNodes(replacements: Map<Node, {
|
|
22213
|
+
nodes: Node[];
|
|
22214
|
+
usedFallback: boolean;
|
|
22215
|
+
}>): void;
|
|
22166
22216
|
/**
|
|
22167
22217
|
* Replace slot nodes with their replace content
|
|
22168
22218
|
* @internal
|
|
@@ -22183,32 +22233,26 @@ type InsertionParent = ParentNode & {
|
|
|
22183
22233
|
*/
|
|
22184
22234
|
declare function setInsertionState(parent: ParentNode & {
|
|
22185
22235
|
$fc?: Node | null;
|
|
22186
|
-
}, anchor?: Node | 0 | null, logicalIndex?: number
|
|
22236
|
+
}, anchor?: Node | 0 | null, logicalIndex?: number): void;
|
|
22187
22237
|
//#endregion
|
|
22188
22238
|
//#region packages/runtime-vapor/src/dom/template.d.ts
|
|
22189
|
-
declare function template(html: string, root?: boolean, ns?: Namespace): () => Node & {
|
|
22239
|
+
declare function template(html: string, root?: boolean, isStatic?: boolean, ns?: Namespace): () => Node & {
|
|
22190
22240
|
$root?: true;
|
|
22191
22241
|
};
|
|
22192
22242
|
//#endregion
|
|
22193
22243
|
//#region packages/runtime-vapor/src/dom/node.d.ts
|
|
22194
22244
|
declare function createTextNode(value?: string): Text;
|
|
22195
|
-
declare
|
|
22196
|
-
declare function
|
|
22197
|
-
declare function
|
|
22198
|
-
declare function
|
|
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>;
|
|
22245
|
+
declare function txt(node: ParentNode): Node;
|
|
22246
|
+
declare function child(node: InsertionParent, logicalIndex?: number): Node;
|
|
22247
|
+
declare function nthChild(node: InsertionParent, i: number, logicalIndex?: number): Node;
|
|
22248
|
+
declare function next(node: Node, logicalIndex?: number): Node;
|
|
22206
22249
|
//#endregion
|
|
22207
22250
|
//#region packages/runtime-vapor/src/dom/prop.d.ts
|
|
22208
22251
|
type TargetElement = Element & {
|
|
22209
22252
|
$root?: true;
|
|
22210
22253
|
$html?: string;
|
|
22211
22254
|
$cls?: string;
|
|
22255
|
+
$clsFlags?: number;
|
|
22212
22256
|
$sty?: NormalizedStyle | string | undefined;
|
|
22213
22257
|
value?: string;
|
|
22214
22258
|
_value?: any;
|
|
@@ -22216,7 +22260,8 @@ type TargetElement = Element & {
|
|
|
22216
22260
|
declare function setProp(el: any, key: string, value: any): void;
|
|
22217
22261
|
declare function setAttr(el: any, key: string, value: any, isSVG?: boolean): void;
|
|
22218
22262
|
declare function setDOMProp(el: any, key: string, value: any, forceHydrate?: boolean, attrName?: string): void;
|
|
22219
|
-
declare function setClass(el: TargetElement, value: any, isSVG?: boolean): void;
|
|
22263
|
+
declare function setClass(el: TargetElement, value: any, isSVG?: boolean, isNormalized?: boolean): void;
|
|
22264
|
+
declare function setClassName(el: TargetElement, flags: number, cls: string | string[], prefix?: string, suffix?: string): void;
|
|
22220
22265
|
declare function setStyle(el: TargetElement, value: any): void;
|
|
22221
22266
|
declare function setValue(el: TargetElement, value: any, forceHydrate?: boolean): void;
|
|
22222
22267
|
/**
|
|
@@ -22252,7 +22297,7 @@ declare function setDynamicEvents(el: HTMLElement, events: Record<string, (...ar
|
|
|
22252
22297
|
declare function createInvoker(handler: (...args: any[]) => any): (...args: any[]) => any;
|
|
22253
22298
|
//#endregion
|
|
22254
22299
|
//#region packages/runtime-vapor/src/apiCreateIf.d.ts
|
|
22255
|
-
declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn, once?: boolean, index?: number): Block;
|
|
22300
|
+
declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn, blockShape?: number, once?: boolean, index?: number): Block;
|
|
22256
22301
|
//#endregion
|
|
22257
22302
|
//#region packages/runtime-vapor/src/apiCreateFragment.d.ts
|
|
22258
22303
|
/**
|
|
@@ -22269,9 +22314,29 @@ declare function createKeyedFragment(key: () => any, render: BlockFn): Block;
|
|
|
22269
22314
|
//#endregion
|
|
22270
22315
|
//#region packages/runtime-vapor/src/apiCreateFor.d.ts
|
|
22271
22316
|
type Source = any[] | Record<any, any> | number | Set<any> | Map<any, any>;
|
|
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
|
|
22273
|
-
|
|
22274
|
-
|
|
22317
|
+
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) => ForFragment;
|
|
22318
|
+
interface ForSelector {
|
|
22319
|
+
(key: any, oper: () => void): void;
|
|
22320
|
+
/**
|
|
22321
|
+
* Bulk-reset the selector's internal state. Hook into a v-for's fast-reset
|
|
22322
|
+
* paths via `forFragment.onReset(selector.reset)` so the lazy per-item
|
|
22323
|
+
* `onScopeDispose` teardowns short-circuit instead of doing N individual
|
|
22324
|
+
* Map.delete() calls.
|
|
22325
|
+
*/
|
|
22326
|
+
reset(): void;
|
|
22327
|
+
}
|
|
22328
|
+
/**
|
|
22329
|
+
* Builds a key-indexed selector that activates only the opers registered with
|
|
22330
|
+
* the key matching the current source value. Compared to letting each item
|
|
22331
|
+
* subscribe directly, this keeps re-renders on source change O(2) instead of
|
|
22332
|
+
* O(N) (only previous and new active item re-run).
|
|
22333
|
+
*
|
|
22334
|
+
* Selector cleanup follows the current scope. Per-item teardown is auto-wired
|
|
22335
|
+
* via `onScopeDispose` so callers (typically v-for item scopes) don't need
|
|
22336
|
+
* explicit deregistration. For bulk-reset hot paths, attach the selector to
|
|
22337
|
+
* the v-for via `frag.onReset(selector.reset)` to skip the per-item Map ops.
|
|
22338
|
+
*/
|
|
22339
|
+
declare function createSelector(source: () => any): ForSelector;
|
|
22275
22340
|
declare function createForSlots(rawSource: Source, getSlot: (item: any, key: any, index?: number) => DynamicSlot): DynamicSlot[];
|
|
22276
22341
|
declare function getRestElement(val: any, keys: string[]): any;
|
|
22277
22342
|
declare function getDefaultValue(val: any, defaultVal: any): any;
|
|
@@ -22279,9 +22344,17 @@ declare function getDefaultValue(val: any, defaultVal: any): any;
|
|
|
22279
22344
|
//#region packages/runtime-vapor/src/helpers/useCssVars.d.ts
|
|
22280
22345
|
declare function useVaporCssVars(getter: () => Record<string, string>): void;
|
|
22281
22346
|
//#endregion
|
|
22347
|
+
//#region packages/runtime-vapor/src/helpers/setKey.d.ts
|
|
22348
|
+
declare function setBlockKey(block: (Block & {
|
|
22349
|
+
$key?: any;
|
|
22350
|
+
}) | null | undefined, key: any): void;
|
|
22351
|
+
//#endregion
|
|
22282
22352
|
//#region packages/runtime-vapor/src/apiCreateDynamicComponent.d.ts
|
|
22283
22353
|
declare function createDynamicComponent(getter: () => any, rawProps?: RawProps | null, rawSlots?: RawSlots | null, isSingleRoot?: boolean, once?: boolean): VaporFragment;
|
|
22284
22354
|
//#endregion
|
|
22355
|
+
//#region packages/runtime-vapor/src/apiSetupHelpers.d.ts
|
|
22356
|
+
declare function withAsyncContext(getAwaitable: () => any): [any, () => void];
|
|
22357
|
+
//#endregion
|
|
22285
22358
|
//#region packages/runtime-vapor/src/directives/vShow.d.ts
|
|
22286
22359
|
declare function applyVShow(target: Block, source: () => any): void;
|
|
22287
22360
|
//#endregion
|
|
@@ -22297,9 +22370,9 @@ declare const applyDynamicModel: VaporModelDirective;
|
|
|
22297
22370
|
declare const VaporTransition: FunctionalVaporComponent<TransitionProps>;
|
|
22298
22371
|
//#endregion
|
|
22299
22372
|
//#region packages/runtime-vapor/src/components/TransitionGroup.d.ts
|
|
22300
|
-
declare const VaporTransitionGroup:
|
|
22373
|
+
declare const VaporTransitionGroup: DefineVaporComponent<{}, string, TransitionGroupProps>;
|
|
22301
22374
|
declare namespace index_d_exports {
|
|
22302
|
-
export { Block, DefineVaporComponent, FunctionalVaporComponent, VaporComponent, VaporComponentInstance, VaporDirective, VaporElement, VaporElementConstructor,
|
|
22375
|
+
export { Block, DefineVaporComponent, DynamicFragment, FunctionalVaporComponent, VaporComponent, VaporComponentInstance, VaporComponentOptions, VaporDirective, VaporElement, VaporElementConstructor, VaporFragment, VaporKeepAlive, VaporKeepAliveContext, VaporPublicProps, VaporRenderResult, VaporSlot, VaporTeleport, VaporTransition, VaporTransitionGroup, VaporTransitionHooks, applyCheckboxModel, applyDynamicModel, applyRadioModel, applySelectModel, applyTextModel, applyVShow, child, createComponent, createComponentWithFallback, createDynamicComponent, createFor, createForSlots, createIf, createInvoker, createKeyedFragment, createPlainElement, createSelector, createSlot, createTemplateRefSetter, createTextNode, createVaporApp, createVaporSSRApp, defineVaporAsyncComponent, defineVaporComponent, defineVaporCustomElement, defineVaporSSRCustomElement, delegate, delegateEvents, getDefaultValue, getRestElement, insert, isFragment, isVaporComponent, next, nthChild, on, prepend, remove, renderEffect, setAttr, setBlockHtml, setBlockKey, setBlockText, setClass, setClassName, setDOMProp, setDynamicEvents, setDynamicProps, setElementText, setHtml, setInsertionState, setProp, setStyle, setText, setValue, template, txt, unmountComponent, useVaporCssVars, vaporInteropPlugin, withAsyncContext, withVaporCtx, withVaporDirectives };
|
|
22303
22376
|
}
|
|
22304
22377
|
//#endregion
|
|
22305
22378
|
//#region temp/packages/compiler-vapor/src/ir/component.d.ts
|
|
@@ -22310,7 +22383,12 @@ export interface IRProp extends Omit<DirectiveTransformResult, "value"> {
|
|
|
22310
22383
|
*/
|
|
22311
22384
|
sharedData?: {
|
|
22312
22385
|
ident?: string;
|
|
22386
|
+
classRef?: string;
|
|
22313
22387
|
};
|
|
22388
|
+
/**
|
|
22389
|
+
* fixed by uts synthetic data-* group for dom2 dataset callbacks.
|
|
22390
|
+
*/
|
|
22391
|
+
datasetProps?: IRProp[];
|
|
22314
22392
|
}
|
|
22315
22393
|
export declare enum IRDynamicPropsKind {
|
|
22316
22394
|
EXPRESSION = 0,
|
|
@@ -22368,29 +22446,35 @@ export type IRSlots = IRSlotsStatic | IRSlotDynamic | IRSlotsExpression;
|
|
|
22368
22446
|
export declare enum IRNodeTypes {
|
|
22369
22447
|
ROOT = 0,
|
|
22370
22448
|
BLOCK = 1,
|
|
22371
|
-
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
|
|
22449
|
+
SET_BLOCK_KEY = 2,
|
|
22450
|
+
SET_PROP = 3,
|
|
22451
|
+
SET_DYNAMIC_PROPS = 4,
|
|
22452
|
+
SET_TEXT = 5,
|
|
22453
|
+
SET_EVENT = 6,
|
|
22454
|
+
SET_DYNAMIC_EVENTS = 7,
|
|
22455
|
+
SET_HTML = 8,
|
|
22456
|
+
SET_TEMPLATE_REF = 9,
|
|
22457
|
+
INSERT_NODE = 10,
|
|
22458
|
+
PREPEND_NODE = 11,
|
|
22459
|
+
CREATE_COMPONENT_NODE = 12,
|
|
22460
|
+
SLOT_OUTLET_NODE = 13,
|
|
22461
|
+
DIRECTIVE = 14,
|
|
22462
|
+
IF = 15,
|
|
22463
|
+
FOR = 16,
|
|
22464
|
+
KEY = 17,
|
|
22465
|
+
GET_TEXT_CHILD = 18,
|
|
22466
|
+
GET_INSERTION_PARENT = 19,
|
|
22467
|
+
SET_CHANGE_PROP = 20
|
|
22388
22468
|
}
|
|
22389
22469
|
export interface BaseIRNode {
|
|
22390
22470
|
type: IRNodeTypes;
|
|
22391
22471
|
node: Node$1;
|
|
22392
22472
|
key?: SimpleExpressionNode | undefined;
|
|
22393
22473
|
}
|
|
22474
|
+
export interface EffectBoundary {
|
|
22475
|
+
operationIndex?: number;
|
|
22476
|
+
effectIndex?: number;
|
|
22477
|
+
}
|
|
22394
22478
|
export type CoreHelper = keyof typeof index_d_exports$1;
|
|
22395
22479
|
export type VaporHelper = keyof typeof index_d_exports;
|
|
22396
22480
|
export interface BlockIRNode extends BaseIRNode {
|
|
@@ -22406,18 +22490,26 @@ export interface RootIRNode {
|
|
|
22406
22490
|
type: IRNodeTypes.ROOT;
|
|
22407
22491
|
node: RootNode;
|
|
22408
22492
|
source: string;
|
|
22409
|
-
template:
|
|
22410
|
-
templateIndexMap: Map<string, number>;
|
|
22411
|
-
rootTemplateIndexes: Set<number>;
|
|
22493
|
+
template: TemplateRegistry;
|
|
22412
22494
|
component: Set<string>;
|
|
22413
22495
|
directive: Set<string>;
|
|
22414
22496
|
block: BlockIRNode;
|
|
22415
22497
|
hasTemplateRef: boolean;
|
|
22416
|
-
hasDeferredVShow: boolean;
|
|
22417
22498
|
}
|
|
22418
|
-
export interface
|
|
22499
|
+
export interface IRTemplate {
|
|
22500
|
+
content: string;
|
|
22501
|
+
ns: Namespace;
|
|
22502
|
+
root: boolean;
|
|
22503
|
+
static: boolean;
|
|
22504
|
+
}
|
|
22505
|
+
export declare class TemplateRegistry {
|
|
22506
|
+
entries: IRTemplate[];
|
|
22507
|
+
keys(): string[];
|
|
22508
|
+
}
|
|
22509
|
+
export interface IfIRNode extends BaseIRNode, EffectBoundary {
|
|
22419
22510
|
type: IRNodeTypes.IF;
|
|
22420
22511
|
id: number;
|
|
22512
|
+
blockShape: number;
|
|
22421
22513
|
condition: SimpleExpressionNode;
|
|
22422
22514
|
positive: BlockIRNode;
|
|
22423
22515
|
negative?: BlockIRNode | IfIRNode;
|
|
@@ -22427,7 +22519,6 @@ export interface IfIRNode extends BaseIRNode {
|
|
|
22427
22519
|
anchor?: number;
|
|
22428
22520
|
logicalIndex?: number;
|
|
22429
22521
|
append?: boolean;
|
|
22430
|
-
last?: boolean;
|
|
22431
22522
|
}
|
|
22432
22523
|
export interface IRFor {
|
|
22433
22524
|
source: SimpleExpressionNode;
|
|
@@ -22435,7 +22526,7 @@ export interface IRFor {
|
|
|
22435
22526
|
key?: SimpleExpressionNode;
|
|
22436
22527
|
index?: SimpleExpressionNode;
|
|
22437
22528
|
}
|
|
22438
|
-
export interface ForIRNode extends BaseIRNode, IRFor {
|
|
22529
|
+
export interface ForIRNode extends BaseIRNode, IRFor, EffectBoundary {
|
|
22439
22530
|
type: IRNodeTypes.FOR;
|
|
22440
22531
|
id: number;
|
|
22441
22532
|
keyProp?: SimpleExpressionNode;
|
|
@@ -22448,13 +22539,31 @@ export interface ForIRNode extends BaseIRNode, IRFor {
|
|
|
22448
22539
|
anchor?: number;
|
|
22449
22540
|
logicalIndex?: number;
|
|
22450
22541
|
append?: boolean;
|
|
22451
|
-
|
|
22542
|
+
}
|
|
22543
|
+
export interface KeyIRNode extends BaseIRNode, EffectBoundary {
|
|
22544
|
+
type: IRNodeTypes.KEY;
|
|
22545
|
+
id: number;
|
|
22546
|
+
value: SimpleExpressionNode;
|
|
22547
|
+
block: BlockIRNode;
|
|
22548
|
+
parent?: number;
|
|
22549
|
+
anchor?: number;
|
|
22550
|
+
logicalIndex?: number;
|
|
22551
|
+
append?: boolean;
|
|
22552
|
+
}
|
|
22553
|
+
export interface SetBlockKeyIRNode extends BaseIRNode {
|
|
22554
|
+
type: IRNodeTypes.SET_BLOCK_KEY;
|
|
22555
|
+
element: number;
|
|
22556
|
+
value: SimpleExpressionNode;
|
|
22452
22557
|
}
|
|
22453
22558
|
export interface SetPropIRNode extends BaseIRNode {
|
|
22454
22559
|
type: IRNodeTypes.SET_PROP;
|
|
22455
22560
|
element: number;
|
|
22456
22561
|
prop: IRProp;
|
|
22457
22562
|
tag: string;
|
|
22563
|
+
/**
|
|
22564
|
+
* fixed by uts 当前操作的目标元素是否为组件模板单根根节点,可用于后续 root-only 逻辑。
|
|
22565
|
+
*/
|
|
22566
|
+
root?: boolean;
|
|
22458
22567
|
isChangeProp?: boolean;
|
|
22459
22568
|
}
|
|
22460
22569
|
export interface SetDynamicPropsIRNode extends BaseIRNode {
|
|
@@ -22463,6 +22572,10 @@ export interface SetDynamicPropsIRNode extends BaseIRNode {
|
|
|
22463
22572
|
props: IRProps[];
|
|
22464
22573
|
tag: string;
|
|
22465
22574
|
/**
|
|
22575
|
+
* fixed by uts 当前操作的目标元素是否为组件模板单根根节点,可用于后续 root-only 逻辑。
|
|
22576
|
+
*/
|
|
22577
|
+
root?: boolean;
|
|
22578
|
+
/**
|
|
22466
22579
|
* fixed by uts 当前整个动态绑定表达式对应的标识符,因为动态绑定需要在sharedData层对数据做格式化,不能单个生成标识符,不然需要在c层再格式化一次
|
|
22467
22580
|
*/
|
|
22468
22581
|
sharedData?: SimpleExpressionNode["sharedData"];
|
|
@@ -22531,9 +22644,8 @@ export interface DirectiveIRNode extends BaseIRNode {
|
|
|
22531
22644
|
builtin?: boolean;
|
|
22532
22645
|
asset?: boolean;
|
|
22533
22646
|
modelType?: "text" | "dynamic" | "radio" | "checkbox" | "select";
|
|
22534
|
-
deferred?: boolean;
|
|
22535
22647
|
}
|
|
22536
|
-
export interface CreateComponentIRNode extends BaseIRNode {
|
|
22648
|
+
export interface CreateComponentIRNode extends BaseIRNode, EffectBoundary {
|
|
22537
22649
|
type: IRNodeTypes.CREATE_COMPONENT_NODE;
|
|
22538
22650
|
id: number;
|
|
22539
22651
|
tag: string;
|
|
@@ -22543,18 +22655,17 @@ export interface CreateComponentIRNode extends BaseIRNode {
|
|
|
22543
22655
|
root: boolean;
|
|
22544
22656
|
once: boolean;
|
|
22545
22657
|
dynamic?: SimpleExpressionNode;
|
|
22546
|
-
|
|
22658
|
+
useCreateElement: boolean;
|
|
22547
22659
|
parent?: number;
|
|
22548
22660
|
anchor?: number;
|
|
22549
22661
|
logicalIndex?: number;
|
|
22550
22662
|
append?: boolean;
|
|
22551
|
-
last?: boolean;
|
|
22552
22663
|
/**
|
|
22553
22664
|
* fixed by uts 当前表达式对应的标识符
|
|
22554
22665
|
*/
|
|
22555
22666
|
sharedData?: SimpleExpressionNode["sharedData"];
|
|
22556
22667
|
}
|
|
22557
|
-
export interface SlotOutletIRNode extends BaseIRNode {
|
|
22668
|
+
export interface SlotOutletIRNode extends BaseIRNode, EffectBoundary {
|
|
22558
22669
|
type: IRNodeTypes.SLOT_OUTLET_NODE;
|
|
22559
22670
|
id: number;
|
|
22560
22671
|
name: SimpleExpressionNode;
|
|
@@ -22566,7 +22677,7 @@ export interface SlotOutletIRNode extends BaseIRNode {
|
|
|
22566
22677
|
anchor?: number;
|
|
22567
22678
|
logicalIndex?: number;
|
|
22568
22679
|
append?: boolean;
|
|
22569
|
-
|
|
22680
|
+
sharedData?: SimpleExpressionNode["sharedData"];
|
|
22570
22681
|
}
|
|
22571
22682
|
export interface GetTextChildIRNode extends BaseIRNode {
|
|
22572
22683
|
type: IRNodeTypes.GET_TEXT_CHILD;
|
|
@@ -22581,7 +22692,7 @@ export interface SetChangePropIRNode extends BaseIRNode {
|
|
|
22581
22692
|
prop: IRProp;
|
|
22582
22693
|
}
|
|
22583
22694
|
export type IRNode = OperationNode | RootIRNode;
|
|
22584
|
-
export type OperationNode = SetPropIRNode | SetDynamicPropsIRNode | SetTextIRNode | SetEventIRNode | SetDynamicEventsIRNode | SetHtmlIRNode | SetTemplateRefIRNode | InsertNodeIRNode | PrependNodeIRNode | DirectiveIRNode | IfIRNode | ForIRNode | CreateComponentIRNode | SlotOutletIRNode | GetTextChildIRNode | GetInsertionParentIRNode | SetChangePropIRNode;
|
|
22695
|
+
export type OperationNode = SetBlockKeyIRNode | SetPropIRNode | SetDynamicPropsIRNode | SetTextIRNode | SetEventIRNode | SetDynamicEventsIRNode | SetHtmlIRNode | SetTemplateRefIRNode | InsertNodeIRNode | PrependNodeIRNode | DirectiveIRNode | IfIRNode | ForIRNode | KeyIRNode | CreateComponentIRNode | SlotOutletIRNode | GetTextChildIRNode | GetInsertionParentIRNode | SetChangePropIRNode;
|
|
22585
22696
|
export declare enum DynamicFlag {
|
|
22586
22697
|
NONE = 0,
|
|
22587
22698
|
/**
|
|
@@ -22626,7 +22737,7 @@ export type VaporDirectiveNode = Overwrite<DirectiveNode, {
|
|
|
22626
22737
|
exp: Exclude<DirectiveNode["exp"], CompoundExpressionNode>;
|
|
22627
22738
|
arg: Exclude<DirectiveNode["arg"], CompoundExpressionNode>;
|
|
22628
22739
|
}>;
|
|
22629
|
-
export type InsertionStateTypes = IfIRNode | ForIRNode | SlotOutletIRNode | CreateComponentIRNode;
|
|
22740
|
+
export type InsertionStateTypes = IfIRNode | ForIRNode | KeyIRNode | SlotOutletIRNode | CreateComponentIRNode;
|
|
22630
22741
|
export declare function isBlockOperation(op: OperationNode): op is InsertionStateTypes;
|
|
22631
22742
|
//#endregion
|
|
22632
22743
|
//#region temp/packages/compiler-vapor/src/transform.d.ts
|
|
@@ -22655,6 +22766,8 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22655
22766
|
block: BlockIRNode;
|
|
22656
22767
|
options: Required<Omit<TransformOptions$1, "filename" | keyof CompilerCompatOptions>>;
|
|
22657
22768
|
template: string;
|
|
22769
|
+
templateRoot: boolean;
|
|
22770
|
+
templateIndexMap: Map<string, number>;
|
|
22658
22771
|
childrenTemplate: (string | null)[];
|
|
22659
22772
|
dynamic: IRDynamicInfo;
|
|
22660
22773
|
imports: ImportItem[];
|
|
@@ -22664,9 +22777,12 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22664
22777
|
component: Set<string>;
|
|
22665
22778
|
directive: Set<string>;
|
|
22666
22779
|
slots: IRSlots[];
|
|
22780
|
+
effectIndex: number;
|
|
22781
|
+
operationIndex: number;
|
|
22667
22782
|
isLastEffectiveChild: boolean;
|
|
22668
22783
|
isOnRightmostPath: boolean;
|
|
22669
|
-
|
|
22784
|
+
templateCloseTags: Set<string> | undefined;
|
|
22785
|
+
templateCloseBlocks: boolean;
|
|
22670
22786
|
private globalId;
|
|
22671
22787
|
private nextIdMap;
|
|
22672
22788
|
private ifIndex;
|
|
@@ -22676,11 +22792,25 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22676
22792
|
private initNextIdMap;
|
|
22677
22793
|
reference(): number;
|
|
22678
22794
|
nextIfIndex(): number;
|
|
22679
|
-
|
|
22795
|
+
private getTemplateNamespace;
|
|
22796
|
+
private canUseStaticTemplate;
|
|
22797
|
+
pushTemplate(content: string, {
|
|
22798
|
+
root,
|
|
22799
|
+
static: isStatic
|
|
22800
|
+
}?: {
|
|
22801
|
+
root?: boolean;
|
|
22802
|
+
static?: boolean;
|
|
22803
|
+
}): number;
|
|
22680
22804
|
registerTemplate(): number;
|
|
22681
22805
|
registerEffect(expressions: SimpleExpressionNode[], operation: OperationNode | OperationNode[], getIndex?: () => number, getOperationIndex?: () => number): void;
|
|
22682
22806
|
registerOperation(...node: OperationNode[]): void;
|
|
22807
|
+
effectBoundary(): {
|
|
22808
|
+
operationIndex: number;
|
|
22809
|
+
effectIndex: number;
|
|
22810
|
+
};
|
|
22683
22811
|
create<T extends TemplateChildNode>(node: T, index: number): TransformContext<T>;
|
|
22812
|
+
private shiftEffectBoundaries;
|
|
22813
|
+
private shiftOperationBoundaries;
|
|
22684
22814
|
private isEffectivelyLastChild;
|
|
22685
22815
|
}
|
|
22686
22816
|
export declare function transform(node: RootNode, options?: TransformOptions$1): RootIRNode;
|
|
@@ -22737,6 +22867,7 @@ export declare const DELIMITERS_ARRAY_NEWLINE: CodeFragmentDelimiters;
|
|
|
22737
22867
|
export declare const DELIMITERS_OBJECT: CodeFragmentDelimiters;
|
|
22738
22868
|
export declare const DELIMITERS_OBJECT_NEWLINE: CodeFragmentDelimiters;
|
|
22739
22869
|
export declare function genCall(name: string | [name: string, placeholder?: CodeFragments], ...frags: CodeFragments[]): CodeFragment[];
|
|
22870
|
+
export declare function getParserOptions(plugins: CodegenContext["options"]["expressionPlugins"]): ParserOptions;
|
|
22740
22871
|
export declare function codeFragmentToString(code: CodeFragment[], context: CodegenContext): [code: string, map: CodegenSourceMapGenerator | undefined];
|
|
22741
22872
|
//#endregion
|
|
22742
22873
|
//#region temp/packages/compiler-vapor/src/transforms/utils.d.ts
|
|
@@ -22797,6 +22928,9 @@ export declare const transformVIf: NodeTransform;
|
|
|
22797
22928
|
//#region temp/packages/compiler-vapor/src/transforms/vFor.d.ts
|
|
22798
22929
|
export declare const transformVFor: NodeTransform;
|
|
22799
22930
|
//#endregion
|
|
22931
|
+
//#region temp/packages/compiler-vapor/src/transforms/transformKey.d.ts
|
|
22932
|
+
export declare const transformKey: NodeTransform;
|
|
22933
|
+
//#endregion
|
|
22800
22934
|
//#region temp/packages/compiler-vapor/src/transforms/vModel.d.ts
|
|
22801
22935
|
export declare const transformVModel: DirectiveTransform;
|
|
22802
22936
|
//#endregion
|
|
@@ -22821,7 +22955,7 @@ export declare function isTeleportTag(tag: string): boolean;
|
|
|
22821
22955
|
export declare function isBuiltInComponent(tag: string): string | undefined;
|
|
22822
22956
|
//#endregion
|
|
22823
22957
|
//#region temp/packages/compiler-vapor/src/generators/expression.d.ts
|
|
22824
|
-
|
|
22958
|
+
interface AnalyzeExPressionsResult {
|
|
22825
22959
|
seenVariable: Record<string, number>;
|
|
22826
22960
|
variableToExpMap: Map<string, Set<SimpleExpressionNode>>;
|
|
22827
22961
|
expToVariableMap: Map<SimpleExpressionNode, Array<{
|
|
@@ -22833,7 +22967,8 @@ export declare function analyzeExpressions(expressions: SimpleExpressionNode[]):
|
|
|
22833
22967
|
}>>;
|
|
22834
22968
|
seenIdentifier: Set<string>;
|
|
22835
22969
|
updatedVariable: Set<string>;
|
|
22836
|
-
}
|
|
22970
|
+
}
|
|
22971
|
+
export declare function analyzeExpressions(expressions: SimpleExpressionNode[]): AnalyzeExPressionsResult;
|
|
22837
22972
|
//#endregion
|
|
22838
22973
|
//#region temp/packages/compiler-vapor/src/generators/for.d.ts
|
|
22839
22974
|
export type DestructureMapValue = {
|
|
@@ -22845,6 +22980,13 @@ export type DestructureMapValue = {
|
|
|
22845
22980
|
export type DestructureMap = Map<string, DestructureMapValue | null>;
|
|
22846
22981
|
export declare function parseValueDestructure(value: SimpleExpressionNode | undefined, context: CodegenContext): DestructureMap;
|
|
22847
22982
|
export declare function buildDestructureIdMap(idToPathMap: DestructureMap, baseAccessor: string, plugins: CodegenContext["options"]["expressionPlugins"]): Record<string, string | SimpleExpressionNode | null>;
|
|
22983
|
+
export declare function matchKeyOnlyBindingPattern(effect: IREffect, key: string): {
|
|
22984
|
+
effect: IREffect;
|
|
22985
|
+
} | undefined;
|
|
22986
|
+
export declare function matchSelectorPattern(effect: IREffect, key: string, idMap: Record<string, string | SimpleExpressionNode | null>, context: CodegenContext): {
|
|
22987
|
+
effect: IREffect;
|
|
22988
|
+
selector: SimpleExpressionNode;
|
|
22989
|
+
} | undefined;
|
|
22848
22990
|
//#endregion
|
|
22849
22991
|
//#region temp/packages/compiler-vapor/src/generators/component.d.ts
|
|
22850
22992
|
/**
|