@mrchar/cumquat 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,4372 @@
1
+ import { App, VNodeChild } from "vue";
2
+ import { ActionLike, AsyncStateLike, ChatMessage, DateShortcut, Fetch, Fetch as Fetch$1, FetchPagination, FetchQuery, FetchResult, FetchSorter, FormRule, FormRules, MessageApi, NotificationApi, PagedResult, Placement, PopoverTrigger, SubscribeHandler, UseFetchReturn } from "../composables/index.js";
3
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.44/node_modules/@vue/shared/dist/shared.d.ts
4
+ type Prettify<T> = { [K in keyof T]: T[K]; } & {};
5
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
6
+ type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P]; };
7
+ type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
8
+ //#endregion
9
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.44/node_modules/@vue/reactivity/dist/reactivity.d.ts
10
+ declare enum TrackOpTypes {
11
+ GET = "get",
12
+ HAS = "has",
13
+ ITERATE = "iterate"
14
+ }
15
+ declare enum TriggerOpTypes {
16
+ SET = "set",
17
+ ADD = "add",
18
+ DELETE = "delete",
19
+ CLEAR = "clear"
20
+ }
21
+ type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
22
+ declare class ShallowReactiveBrandClass {
23
+ private __shallowReactiveBrand?;
24
+ }
25
+ type ShallowReactiveBrand = ShallowReactiveBrandClass;
26
+ type Primitive = string | number | boolean | bigint | symbol | undefined | null;
27
+ type Builtin = Primitive | Function | Date | Error | RegExp;
28
+ type EffectScheduler = (...args: any[]) => any;
29
+ type DebuggerEvent = {
30
+ effect: Subscriber;
31
+ } & DebuggerEventExtraInfo;
32
+ type DebuggerEventExtraInfo = {
33
+ target: object;
34
+ type: TrackOpTypes | TriggerOpTypes;
35
+ key: any;
36
+ newValue?: any;
37
+ oldValue?: any;
38
+ oldTarget?: Map<any, any> | Set<any>;
39
+ };
40
+ interface DebuggerOptions {
41
+ onTrack?: (event: DebuggerEvent) => void;
42
+ onTrigger?: (event: DebuggerEvent) => void;
43
+ }
44
+ interface ReactiveEffectOptions extends DebuggerOptions {
45
+ scheduler?: EffectScheduler;
46
+ allowRecurse?: boolean;
47
+ onStop?: () => void;
48
+ }
49
+ /**
50
+ * Subscriber is a type that tracks (or subscribes to) a list of deps.
51
+ */
52
+ interface Subscriber extends DebuggerOptions {}
53
+ declare class ReactiveEffect<T = any> implements Subscriber, ReactiveEffectOptions {
54
+ fn: () => T;
55
+ scheduler?: EffectScheduler;
56
+ onStop?: () => void;
57
+ onTrack?: (event: DebuggerEvent) => void;
58
+ onTrigger?: (event: DebuggerEvent) => void;
59
+ constructor(fn: () => T);
60
+ pause(): void;
61
+ resume(): void;
62
+ run(): T;
63
+ stop(): void;
64
+ trigger(): void;
65
+ get dirty(): boolean;
66
+ }
67
+ declare const ComputedRefSymbol: unique symbol;
68
+ declare const WritableComputedRefSymbol: unique symbol;
69
+ interface BaseComputedRef<T, S = T> extends Ref<T, S> {
70
+ [ComputedRefSymbol]: true;
71
+ /**
72
+ * @deprecated computed no longer uses effect
73
+ */
74
+ effect: ComputedRefImpl;
75
+ }
76
+ interface ComputedRef<T = any> extends BaseComputedRef<T> {
77
+ readonly value: T;
78
+ }
79
+ interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
80
+ [WritableComputedRefSymbol]: true;
81
+ }
82
+ type ComputedGetter<T> = (oldValue?: T) => T;
83
+ type ComputedSetter<T> = (newValue: T) => void;
84
+ interface WritableComputedOptions<T, S = T> {
85
+ get: ComputedGetter<T>;
86
+ set: ComputedSetter<S>;
87
+ }
88
+ /**
89
+ * @private exported by @vue/reactivity for Vue core use, but not exported from
90
+ * the main vue package
91
+ */
92
+ declare class ComputedRefImpl<T = any> implements Subscriber {
93
+ fn: ComputedGetter<T>;
94
+ private readonly setter;
95
+ effect: this;
96
+ onTrack?: (event: DebuggerEvent) => void;
97
+ onTrigger?: (event: DebuggerEvent) => void;
98
+ constructor(fn: ComputedGetter<T>, setter: ComputedSetter<T> | undefined, isSSR: boolean);
99
+ get value(): T;
100
+ set value(newValue: T);
101
+ }
102
+ declare const RefSymbol: unique symbol;
103
+ declare const RawSymbol: unique symbol;
104
+ interface Ref<T = any, S = T> {
105
+ get value(): T;
106
+ set value(_: S);
107
+ /**
108
+ * Type differentiator only.
109
+ * We need this to be in public d.ts but don't want it to show up in IDE
110
+ * autocomplete, so we use a private Symbol instead.
111
+ */
112
+ [RefSymbol]: true;
113
+ }
114
+ declare const ShallowRefMarker: unique symbol;
115
+ type ShallowRef<T = any, S = T> = Ref<T, S> & {
116
+ [ShallowRefMarker]?: true;
117
+ };
118
+ /**
119
+ * This is a special exported interface for other packages to declare
120
+ * additional types that should bail out for ref unwrapping. For example
121
+ * \@vue/runtime-dom can declare it like so in its d.ts:
122
+ *
123
+ * ``` ts
124
+ * declare module '@vue/reactivity' {
125
+ * export interface RefUnwrapBailTypes {
126
+ * runtimeDOMBailTypes: Node | Window
127
+ * }
128
+ * }
129
+ * ```
130
+ */
131
+ interface RefUnwrapBailTypes {}
132
+ type ShallowUnwrapRef<T> = T extends ShallowReactiveBrand ? T : { [K in keyof T]: DistributeRef<T[K]>; };
133
+ type DistributeRef<T> = T extends Ref<infer V, unknown> ? V : T;
134
+ type UnwrapRef<T> = T extends ShallowRef<infer V, unknown> ? V : T extends Ref<infer V, unknown> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
135
+ type UnwrapRefSimple<T> = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
136
+ [RawSymbol]?: true;
137
+ } ? T : T extends ShallowReactiveBrand ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? { [K in keyof T]: UnwrapRefSimple<T[K]>; } : T extends object ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>; } : T;
138
+ type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
139
+ type OnCleanup = (cleanupFn: () => void) => void;
140
+ type WatchStopHandle = () => void;
141
+ //#endregion
142
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.44/node_modules/@vue/runtime-core/dist/runtime-core.d.ts
143
+ type Slot<T extends any = any> = (...args: IfAny<T, any[], [T] | (T extends undefined ? [] : never)>) => VNode[];
144
+ type InternalSlots = {
145
+ [name: string]: Slot | undefined;
146
+ };
147
+ type Slots = Readonly<InternalSlots>;
148
+ declare const SlotSymbol: unique symbol;
149
+ type SlotsType<T extends Record<string, any> = Record<string, any>> = {
150
+ [SlotSymbol]?: T;
151
+ };
152
+ type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T> & T;
153
+ type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{ [K in keyof T]: NonNullable<T[K]> extends ((...args: any[]) => any) ? T[K] : Slot<T[K]>; }>>;
154
+ type RawSlots = {
155
+ [name: string]: unknown;
156
+ $stable?: boolean;
157
+ };
158
+ declare enum SchedulerJobFlags {
159
+ QUEUED = 1,
160
+ PRE = 2,
161
+ /**
162
+ * Indicates whether the effect is allowed to recursively trigger itself
163
+ * when managed by the scheduler.
164
+ *
165
+ * By default, a job cannot trigger itself because some built-in method calls,
166
+ * e.g. Array.prototype.push actually performs reads as well (#1740) which
167
+ * can lead to confusing infinite loops.
168
+ * The allowed cases are component update functions and watch callbacks.
169
+ * Component update functions may update child component props, which in turn
170
+ * trigger flush: "pre" watch callbacks that mutates state that the parent
171
+ * relies on (#1801). Watch callbacks doesn't track its dependencies so if it
172
+ * triggers itself again, it's likely intentional and it is the user's
173
+ * responsibility to perform recursive state mutation that eventually
174
+ * stabilizes (#1727).
175
+ */
176
+ ALLOW_RECURSE = 4,
177
+ DISPOSED = 8
178
+ }
179
+ interface SchedulerJob extends Function {
180
+ id?: number;
181
+ /**
182
+ * flags can technically be undefined, but it can still be used in bitwise
183
+ * operations just like 0.
184
+ */
185
+ flags?: SchedulerJobFlags;
186
+ /**
187
+ * Attached by renderer.ts when setting up a component's render effect
188
+ * Used to obtain component information when reporting max recursive updates.
189
+ * Also set on watcher jobs: null marks a watcher without an owner component.
190
+ */
191
+ i?: ComponentInternalInstance | null;
192
+ }
193
+ declare function nextTick$1(): Promise<void>;
194
+ declare function nextTick$1<T, R>(this: T, fn: (this: T) => R | Promise<R>): Promise<R>;
195
+ type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
196
+ type ComponentObjectPropsOptions<P = Data> = { [K in keyof P]: Prop<P[K]> | null; };
197
+ type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
198
+ type DefaultFactory<T> = (props: Data) => T | null | undefined;
199
+ interface PropOptions<T = any, D = T> {
200
+ type?: PropType<T> | true | null;
201
+ required?: boolean;
202
+ default?: D | DefaultFactory<D> | null | undefined | object;
203
+ validator?(value: unknown, props: Data): boolean;
204
+ }
205
+ type PropType<T> = PropConstructor<T> | (PropConstructor<T> | null)[];
206
+ type PropConstructor<T = any> = {
207
+ new (...args: any[]): T & {};
208
+ } | {
209
+ (): T;
210
+ } | PropMethod<T>;
211
+ type PropMethod<T, TConstructor = any> = {
212
+ new (): TConstructor;
213
+ (): T;
214
+ readonly prototype: TConstructor;
215
+ };
216
+ type RequiredKeys<T> = { [K in keyof T]: T[K] extends {
217
+ required: true;
218
+ } | {
219
+ default: any;
220
+ } | BooleanConstructor | {
221
+ type: BooleanConstructor;
222
+ } ? T[K] extends {
223
+ default: undefined | (() => undefined);
224
+ } ? never : K : never; }[keyof T];
225
+ type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
226
+ type DefaultKeys<T> = { [K in keyof T]: T[K] extends {
227
+ default: any;
228
+ } | BooleanConstructor | {
229
+ type: BooleanConstructor;
230
+ } ? T[K] extends {
231
+ type: BooleanConstructor;
232
+ required: true;
233
+ } ? never : K : never; }[keyof T];
234
+ type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends true ? any : null : [T] extends [{
235
+ type: null | true;
236
+ }] ? any : [T] extends [ObjectConstructor | {
237
+ type: ObjectConstructor;
238
+ }] ? Record<string, any> : [T] extends [BooleanConstructor | {
239
+ type: BooleanConstructor;
240
+ }] ? boolean : [T] extends [DateConstructor | {
241
+ type: DateConstructor;
242
+ }] ? Date : [T] extends [(infer U)[] | {
243
+ type: (infer U)[];
244
+ }] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, unknown extends D ? V : D> : V : V : T;
245
+ /**
246
+ * Extract prop types from a runtime props options object.
247
+ * The extracted types are **internal** - i.e. the resolved props received by
248
+ * the component.
249
+ * - Boolean props are always present
250
+ * - Props with default values are always present
251
+ *
252
+ * To extract accepted props from the parent, use {@link ExtractPublicPropTypes}.
253
+ */
254
+ type ExtractPropTypes<O> = { [K in keyof Pick<O, RequiredKeys<O>>]: O[K] extends {
255
+ default: any;
256
+ } ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]>; } & { [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>; };
257
+ type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>; } : {};
258
+ /**
259
+ * Vue `<script setup>` compiler macro for declaring component props. The
260
+ * expected argument is the same as the component `props` option.
261
+ *
262
+ * Example runtime declaration:
263
+ * ```js
264
+ * // using Array syntax
265
+ * const props = defineProps(['foo', 'bar'])
266
+ * // using Object syntax
267
+ * const props = defineProps({
268
+ * foo: String,
269
+ * bar: {
270
+ * type: Number,
271
+ * required: true
272
+ * }
273
+ * })
274
+ * ```
275
+ *
276
+ * Equivalent type-based declaration:
277
+ * ```ts
278
+ * // will be compiled into equivalent runtime declarations
279
+ * const props = defineProps<{
280
+ * foo?: string
281
+ * bar: number
282
+ * }>()
283
+ * ```
284
+ *
285
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
286
+ *
287
+ * This is only usable inside `<script setup>`, is compiled away in the
288
+ * output and should **not** be actually called at runtime.
289
+ */
290
+ declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{ [key in PropNames]?: any; }>>;
291
+ declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
292
+ declare function defineProps<TypeProps>(): DefineProps<LooseRequired<TypeProps>, BooleanKey<TypeProps>>;
293
+ type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean; };
294
+ type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? T[K] extends boolean | undefined ? T[K] extends never | undefined ? never : K : never : never;
295
+ /**
296
+ * Vue `<script setup>` compiler macro for declaring a component's emitted
297
+ * events. The expected argument is the same as the component `emits` option.
298
+ *
299
+ * Example runtime declaration:
300
+ * ```js
301
+ * const emit = defineEmits(['change', 'update'])
302
+ * ```
303
+ *
304
+ * Example type-based declaration:
305
+ * ```ts
306
+ * const emit = defineEmits<{
307
+ * // <eventName>: <expected arguments>
308
+ * change: []
309
+ * update: [value: number] // named tuple syntax
310
+ * }>()
311
+ *
312
+ * emit('change')
313
+ * emit('update', 1)
314
+ * ```
315
+ *
316
+ * This is only usable inside `<script setup>`, is compiled away in the
317
+ * output and should **not** be actually called at runtime.
318
+ *
319
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
320
+ */
321
+ declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
322
+ declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
323
+ declare function defineEmits<T extends ComponentTypeEmits>(): T extends ((...args: any[]) => any) ? T : ShortEmits<T>;
324
+ type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
325
+ type RecordToUnion<T extends Record<string, any>> = T[keyof T];
326
+ type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void; }>>;
327
+ /**
328
+ * Vue `<script setup>` compiler macro for declaring a component's exposed
329
+ * instance properties when it is accessed by a parent component via template
330
+ * refs.
331
+ *
332
+ * `<script setup>` components are closed by default - i.e. variables inside
333
+ * the `<script setup>` scope is not exposed to parent unless explicitly exposed
334
+ * via `defineExpose`.
335
+ *
336
+ * This is only usable inside `<script setup>`, is compiled away in the
337
+ * output and should **not** be actually called at runtime.
338
+ *
339
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineexpose}
340
+ */
341
+ declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
342
+ /**
343
+ * Vue `<script setup>` compiler macro for declaring a component's additional
344
+ * options. This should be used only for options that cannot be expressed via
345
+ * Composition API - e.g. `inheritAttrs`.
346
+ *
347
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineoptions}
348
+ */
349
+ declare function defineOptions<RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin>(options?: ComponentOptionsBase<{}, RawBindings, D, C, M, Mixin, Extends, {}> & {
350
+ /**
351
+ * props should be defined via defineProps().
352
+ */
353
+ props?: never;
354
+ /**
355
+ * emits should be defined via defineEmits().
356
+ */
357
+ emits?: never;
358
+ /**
359
+ * expose should be defined via defineExpose().
360
+ */
361
+ expose?: never;
362
+ /**
363
+ * slots should be defined via defineSlots().
364
+ */
365
+ slots?: never;
366
+ }): void;
367
+ /**
368
+ * Vue `<script setup>` compiler macro for providing type hints to IDEs for
369
+ * slot name and slot props type checking.
370
+ *
371
+ * Example usage:
372
+ * ```ts
373
+ * const slots = defineSlots<{
374
+ * default(props: { msg: string }): any
375
+ * }>()
376
+ * ```
377
+ *
378
+ * This is only usable inside `<script setup>`, is compiled away in the
379
+ * output and should **not** be actually called at runtime.
380
+ *
381
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
382
+ */
383
+ declare function defineSlots<S extends Record<string, any> = Record<string, any>>(): StrictUnwrapSlotsType<SlotsType<S>>;
384
+ type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ModelRef<T, M, G, S>, Record<M, true | undefined>];
385
+ type DefineModelOptions<T = any, G = T, S = T> = {
386
+ get?: (v: T) => G;
387
+ set?: (v: S) => any;
388
+ };
389
+ type DefineModelRuntimeOptions<T, G, S> = Omit<PropOptions<T>, 'default'> & DefineModelOptions<T, G, S>;
390
+ type DefineModelDefault<T> = InferDefault<Data, T>;
391
+ /**
392
+ * Vue `<script setup>` compiler macro for declaring a
393
+ * two-way binding prop that can be consumed via `v-model` from the parent
394
+ * component. This will declare a prop with the same name and a corresponding
395
+ * `update:propName` event.
396
+ *
397
+ * If the first argument is a string, it will be used as the prop name;
398
+ * Otherwise the prop name will default to "modelValue". In both cases, you
399
+ * can also pass an additional object which will be used as the prop's options.
400
+ *
401
+ * The returned ref behaves differently depending on whether the parent
402
+ * provided the corresponding v-model props or not:
403
+ * - If yes, the returned ref's value will always be in sync with the parent
404
+ * prop.
405
+ * - If not, the returned ref will behave like a normal local ref.
406
+ *
407
+ * @example
408
+ * ```ts
409
+ * // default model (consumed via `v-model`)
410
+ * const modelValue = defineModel<string>()
411
+ * modelValue.value = "hello"
412
+ *
413
+ * // default model with options
414
+ * const modelValue = defineModel<string>({ required: true })
415
+ *
416
+ * // with specified name (consumed via `v-model:count`)
417
+ * const count = defineModel<number>('count')
418
+ * count.value++
419
+ *
420
+ * // with specified name and default value
421
+ * const count = defineModel<number>('count', { default: 0 })
422
+ * ```
423
+ */
424
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: DefineModelRuntimeOptions<T, G, S> & ({
425
+ default: DefineModelDefault<T>;
426
+ } | {
427
+ required: true;
428
+ })): ModelRef<T, M, G, S>;
429
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?: DefineModelRuntimeOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
430
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: DefineModelRuntimeOptions<T, G, S> & ({
431
+ default: DefineModelDefault<T>;
432
+ } | {
433
+ required: true;
434
+ })): ModelRef<T, M, G, S>;
435
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: DefineModelRuntimeOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
436
+ type NotUndefined<T> = T extends undefined ? never : T;
437
+ type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P]; };
438
+ type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]>; };
439
+ type NativeType = null | undefined | number | string | boolean | symbol | Function;
440
+ type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
441
+ type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never; } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean; } : never;
442
+ /**
443
+ * Vue `<script setup>` compiler macro for providing props default values when
444
+ * using type-based `defineProps` declaration.
445
+ *
446
+ * Example usage:
447
+ * ```ts
448
+ * withDefaults(defineProps<{
449
+ * size?: number
450
+ * labels?: string[]
451
+ * }>(), {
452
+ * size: 3,
453
+ * labels: () => ['default label']
454
+ * })
455
+ * ```
456
+ *
457
+ * This is only usable inside `<script setup>`, is compiled away in the output
458
+ * and should **not** be actually called at runtime.
459
+ *
460
+ * @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props}
461
+ */
462
+ declare function withDefaults<T, BKeys extends keyof T, Defaults extends InferDefaults<T>>(props: DefineProps<T, BKeys>, defaults: Defaults): PropsWithDefaults<T, Defaults, BKeys>;
463
+ type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null | any[]>;
464
+ type EmitsOptions = ObjectEmitsOptions | string[];
465
+ type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any; } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : T[K] extends any[] ? T[K] : never) => any; } : {};
466
+ type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any; } : E;
467
+ type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void; }[Event]>;
468
+ /**
469
+ Runtime helper for applying directives to a vnode. Example usage:
470
+
471
+ const comp = resolveComponent('comp')
472
+ const foo = resolveDirective('foo')
473
+ const bar = resolveDirective('bar')
474
+
475
+ return withDirectives(h(comp), [
476
+ [foo, this.x],
477
+ [bar, this.y]
478
+ ])
479
+ */
480
+ interface DirectiveBinding<Value = any, Modifiers extends string = string, Arg = any> {
481
+ instance: ComponentPublicInstance | Record<string, any> | null;
482
+ value: Value;
483
+ oldValue: Value | null;
484
+ arg?: Arg;
485
+ modifiers: DirectiveModifiers<Modifiers>;
486
+ dir: ObjectDirective<any, Value, Modifiers, Arg>;
487
+ }
488
+ type DirectiveHook<HostElement = any, Prev = VNode<any, HostElement> | null, Value = any, Modifiers extends string = string, Arg = any> = (el: HostElement, binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode<any, HostElement>, prevVNode: Prev) => void;
489
+ type SSRDirectiveHook<Value = any, Modifiers extends string = string, Arg = any> = (binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode) => Data | undefined;
490
+ interface ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> {
491
+ created?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
492
+ beforeMount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
493
+ mounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
494
+ beforeUpdate?: DirectiveHook<HostElement, VNode<any, HostElement>, Value, Modifiers, Arg>;
495
+ updated?: DirectiveHook<HostElement, VNode<any, HostElement>, Value, Modifiers, Arg>;
496
+ beforeUnmount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
497
+ unmounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
498
+ getSSRProps?: SSRDirectiveHook<Value, Modifiers, Arg>;
499
+ deep?: boolean;
500
+ }
501
+ type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg = any> = DirectiveHook<HostElement, any, V, Modifiers, Arg>;
502
+ type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective<HostElement, Value, Modifiers, Arg> | FunctionDirective<HostElement, Value, Modifiers, Arg>;
503
+ type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
504
+ /**
505
+ * Custom properties added to component instances in any way and can be accessed through `this`
506
+ *
507
+ * @example
508
+ * Here is an example of adding a property `$router` to every component instance:
509
+ * ```ts
510
+ * import { createApp } from 'vue'
511
+ * import { Router, createRouter } from 'vue-router'
512
+ *
513
+ * declare module 'vue' {
514
+ * interface ComponentCustomProperties {
515
+ * $router: Router
516
+ * }
517
+ * }
518
+ *
519
+ * // effectively adding the router to every component instance
520
+ * const app = createApp({})
521
+ * const router = createRouter()
522
+ * app.config.globalProperties.$router = router
523
+ *
524
+ * const vm = app.mount('#app')
525
+ * // we can access the router from the instance
526
+ * vm.$router.push('/')
527
+ * ```
528
+ */
529
+ interface ComponentCustomProperties {}
530
+ type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
531
+ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults, any, any, any, any, any, any, any> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
532
+ type ExtractMixin<T> = {
533
+ Mixin: MixinToOptionTypes<T>;
534
+ }[T extends ComponentOptionsMixin ? 'Mixin' : never];
535
+ type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType : UnionToIntersection<ExtractMixin<T>>;
536
+ type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
537
+ type EnsureNonVoid<T> = T extends void ? {} : T;
538
+ type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
539
+ __isFragment?: never;
540
+ __isTeleport?: never;
541
+ __isSuspense?: never;
542
+ new (...args: any[]): T;
543
+ };
544
+ /**
545
+ * This is the same as `CreateComponentPublicInstance` but adds local components,
546
+ * global directives, exposed, and provide inference.
547
+ * It changes the arguments order so that we don't need to repeat mixin
548
+ * inference everywhere internally, but it has to be a new type to avoid
549
+ * breaking types that relies on previous arguments order (#10842)
550
+ */
551
+ type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data = {}, TypeEl = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
552
+ type ExposedKeys<T, Exposed extends string & keyof T> = '' extends Exposed ? T : Pick<T, Exposed>;
553
+ type ComponentPublicInstance<P = {}, // props type extracted from props option
554
+ B = {}, // raw bindings returned from setup()
555
+ D = {}, // return from data()
556
+ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data = {}, TypeEl = any> = {
557
+ $: ComponentInternalInstance;
558
+ $data: D;
559
+ $props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
560
+ $attrs: Attrs;
561
+ $refs: Data & TypeRefs;
562
+ $slots: UnwrapSlotsType<S>;
563
+ $root: ComponentPublicInstance | null;
564
+ $parent: ComponentPublicInstance | null;
565
+ $host: Element | null;
566
+ $emit: EmitFn<E>;
567
+ $el: TypeEl;
568
+ $options: Options & MergedComponentOptionsOverride;
569
+ $forceUpdate: () => void;
570
+ $nextTick: typeof nextTick$1;
571
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
572
+ } & ExposedKeys<IfAny<P, P, Readonly<Defaults> & Omit<P, keyof ShallowUnwrapRef<B> | keyof Defaults>> & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties & InjectToObject<I>, Exposed>;
573
+ interface SuspenseProps {
574
+ onResolve?: () => void;
575
+ onPending?: () => void;
576
+ onFallback?: () => void;
577
+ /**
578
+ * Switch to fallback content if it takes longer than `timeout` milliseconds to render the new default content.
579
+ * A `timeout` value of `0` will cause the fallback content to be displayed immediately when default content is replaced.
580
+ */
581
+ timeout?: string | number;
582
+ /**
583
+ * Allow suspense to be captured by parent suspense
584
+ *
585
+ * @default false
586
+ */
587
+ suspensible?: boolean;
588
+ }
589
+ declare const SuspenseImpl: {
590
+ name: string;
591
+ __isSuspense: boolean;
592
+ process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
593
+ hydrate: typeof hydrateSuspense;
594
+ normalize: typeof normalizeSuspenseChildren;
595
+ };
596
+ declare const Suspense: {
597
+ __isSuspense: true;
598
+ new (): {
599
+ $props: VNodeProps & SuspenseProps;
600
+ $slots: {
601
+ default(): VNode[];
602
+ fallback(): VNode[];
603
+ };
604
+ };
605
+ };
606
+ interface SuspenseBoundary {
607
+ vnode: VNode<RendererNode, RendererElement, SuspenseProps>;
608
+ parent: SuspenseBoundary | null;
609
+ parentComponent: ComponentInternalInstance | null;
610
+ namespace: ElementNamespace;
611
+ container: RendererElement;
612
+ hiddenContainer: RendererElement;
613
+ activeBranch: VNode | null;
614
+ isFallbackMountPending: boolean;
615
+ pendingBranch: VNode | null;
616
+ deps: number;
617
+ pendingId: number;
618
+ timeout: number;
619
+ isInFallback: boolean;
620
+ isHydrating: boolean;
621
+ isUnmounted: boolean;
622
+ effects: Function[];
623
+ resolve(force?: boolean, sync?: boolean): void;
624
+ fallback(fallbackVNode: VNode): void;
625
+ move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
626
+ next(): RendererNode | null;
627
+ registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn, optimized: boolean, namespace: ElementNamespace): void;
628
+ unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
629
+ }
630
+ declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
631
+ declare function normalizeSuspenseChildren(vnode: VNode): void;
632
+ type Hook<T = () => void> = T | T[];
633
+ interface BaseTransitionProps<HostElement = RendererElement> {
634
+ mode?: 'in-out' | 'out-in' | 'default';
635
+ appear?: boolean;
636
+ persisted?: boolean;
637
+ onBeforeEnter?: Hook<(el: HostElement) => void>;
638
+ onEnter?: Hook<(el: HostElement, done: () => void) => void>;
639
+ onAfterEnter?: Hook<(el: HostElement) => void>;
640
+ onEnterCancelled?: Hook<(el: HostElement) => void>;
641
+ onBeforeLeave?: Hook<(el: HostElement) => void>;
642
+ onLeave?: Hook<(el: HostElement, done: () => void) => void>;
643
+ onAfterLeave?: Hook<(el: HostElement) => void>;
644
+ onLeaveCancelled?: Hook<(el: HostElement) => void>;
645
+ onBeforeAppear?: Hook<(el: HostElement) => void>;
646
+ onAppear?: Hook<(el: HostElement, done: () => void) => void>;
647
+ onAfterAppear?: Hook<(el: HostElement) => void>;
648
+ onAppearCancelled?: Hook<(el: HostElement) => void>;
649
+ }
650
+ interface TransitionHooks<HostElement = RendererElement> {
651
+ mode: BaseTransitionProps['mode'];
652
+ persisted: boolean;
653
+ beforeEnter(el: HostElement): void;
654
+ enter(el: HostElement): void;
655
+ leave(el: HostElement, remove: () => void): void;
656
+ clone(vnode: VNode): TransitionHooks<HostElement>;
657
+ afterLeave?(): void;
658
+ delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
659
+ delayedLeave?(): void;
660
+ }
661
+ type ElementNamespace = 'svg' | 'mathml' | undefined;
662
+ interface RendererOptions<HostNode = RendererNode, HostElement = RendererElement> {
663
+ patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, namespace?: ElementNamespace, parentComponent?: ComponentInternalInstance | null): void;
664
+ insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;
665
+ remove(el: HostNode): void;
666
+ createElement(type: string, namespace?: ElementNamespace, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
667
+ [key: string]: any;
668
+ }) | null): HostElement;
669
+ createText(text: string): HostNode;
670
+ createComment(text: string): HostNode;
671
+ setText(node: HostNode, text: string): void;
672
+ setElementText(node: HostElement, text: string): void;
673
+ parentNode(node: HostNode): HostElement | null;
674
+ nextSibling(node: HostNode): HostNode | null;
675
+ querySelector?(selector: string): HostElement | null;
676
+ setScopeId?(el: HostElement, id: string): void;
677
+ cloneNode?(node: HostNode): HostNode;
678
+ insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, namespace: ElementNamespace, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
679
+ }
680
+ interface RendererNode {
681
+ [key: string | symbol]: any;
682
+ }
683
+ interface RendererElement extends RendererNode {}
684
+ interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
685
+ p: PatchFn;
686
+ um: UnmountFn;
687
+ r: RemoveFn;
688
+ m: MoveFn;
689
+ mt: MountComponentFn;
690
+ mc: MountChildrenFn;
691
+ pc: PatchChildrenFn;
692
+ pbc: PatchBlockChildrenFn;
693
+ n: NextFn;
694
+ o: RendererOptions<HostNode, HostElement>;
695
+ }
696
+ type PatchFn = (n1: VNode | null, // null means this is a mount
697
+ n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, namespace?: ElementNamespace, slotScopeIds?: string[] | null, optimized?: boolean) => void;
698
+ type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
699
+ type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean) => void;
700
+ type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null) => void;
701
+ type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
702
+ type NextFn = (vnode: VNode) => RendererNode | null;
703
+ type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
704
+ type RemoveFn = (vnode: VNode) => void;
705
+ type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, optimized: boolean) => void;
706
+ type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, optimized: boolean) => void;
707
+ declare enum MoveType {
708
+ ENTER = 0,
709
+ LEAVE = 1,
710
+ REORDER = 2
711
+ }
712
+ type MatchPattern = string | RegExp | (string | RegExp)[];
713
+ interface KeepAliveProps {
714
+ include?: MatchPattern;
715
+ exclude?: MatchPattern;
716
+ max?: number | string;
717
+ }
718
+ type DebuggerHook = (e: DebuggerEvent) => void;
719
+ type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
720
+ declare enum DeprecationTypes$1 {
721
+ GLOBAL_MOUNT = "GLOBAL_MOUNT",
722
+ GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
723
+ GLOBAL_EXTEND = "GLOBAL_EXTEND",
724
+ GLOBAL_PROTOTYPE = "GLOBAL_PROTOTYPE",
725
+ GLOBAL_SET = "GLOBAL_SET",
726
+ GLOBAL_DELETE = "GLOBAL_DELETE",
727
+ GLOBAL_OBSERVABLE = "GLOBAL_OBSERVABLE",
728
+ GLOBAL_PRIVATE_UTIL = "GLOBAL_PRIVATE_UTIL",
729
+ CONFIG_SILENT = "CONFIG_SILENT",
730
+ CONFIG_DEVTOOLS = "CONFIG_DEVTOOLS",
731
+ CONFIG_KEY_CODES = "CONFIG_KEY_CODES",
732
+ CONFIG_PRODUCTION_TIP = "CONFIG_PRODUCTION_TIP",
733
+ CONFIG_IGNORED_ELEMENTS = "CONFIG_IGNORED_ELEMENTS",
734
+ CONFIG_WHITESPACE = "CONFIG_WHITESPACE",
735
+ CONFIG_OPTION_MERGE_STRATS = "CONFIG_OPTION_MERGE_STRATS",
736
+ INSTANCE_SET = "INSTANCE_SET",
737
+ INSTANCE_DELETE = "INSTANCE_DELETE",
738
+ INSTANCE_DESTROY = "INSTANCE_DESTROY",
739
+ INSTANCE_EVENT_EMITTER = "INSTANCE_EVENT_EMITTER",
740
+ INSTANCE_EVENT_HOOKS = "INSTANCE_EVENT_HOOKS",
741
+ INSTANCE_CHILDREN = "INSTANCE_CHILDREN",
742
+ INSTANCE_LISTENERS = "INSTANCE_LISTENERS",
743
+ INSTANCE_SCOPED_SLOTS = "INSTANCE_SCOPED_SLOTS",
744
+ INSTANCE_ATTRS_CLASS_STYLE = "INSTANCE_ATTRS_CLASS_STYLE",
745
+ OPTIONS_DATA_FN = "OPTIONS_DATA_FN",
746
+ OPTIONS_DATA_MERGE = "OPTIONS_DATA_MERGE",
747
+ OPTIONS_BEFORE_DESTROY = "OPTIONS_BEFORE_DESTROY",
748
+ OPTIONS_DESTROYED = "OPTIONS_DESTROYED",
749
+ WATCH_ARRAY = "WATCH_ARRAY",
750
+ PROPS_DEFAULT_THIS = "PROPS_DEFAULT_THIS",
751
+ V_ON_KEYCODE_MODIFIER = "V_ON_KEYCODE_MODIFIER",
752
+ CUSTOM_DIR = "CUSTOM_DIR",
753
+ ATTR_FALSE_VALUE = "ATTR_FALSE_VALUE",
754
+ ATTR_ENUMERATED_COERCION = "ATTR_ENUMERATED_COERCION",
755
+ TRANSITION_CLASSES = "TRANSITION_CLASSES",
756
+ TRANSITION_GROUP_ROOT = "TRANSITION_GROUP_ROOT",
757
+ COMPONENT_ASYNC = "COMPONENT_ASYNC",
758
+ COMPONENT_FUNCTIONAL = "COMPONENT_FUNCTIONAL",
759
+ COMPONENT_V_MODEL = "COMPONENT_V_MODEL",
760
+ RENDER_FUNCTION = "RENDER_FUNCTION",
761
+ FILTERS = "FILTERS",
762
+ PRIVATE_APIS = "PRIVATE_APIS"
763
+ }
764
+ type CompatConfig = Partial<Record<DeprecationTypes$1, boolean | 'suppress-warning'>> & {
765
+ MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
766
+ };
767
+ /**
768
+ * Interface for declaring custom options.
769
+ *
770
+ * @example
771
+ * ```ts
772
+ * declare module 'vue' {
773
+ * interface ComponentCustomOptions {
774
+ * beforeRouteUpdate?(
775
+ * to: Route,
776
+ * from: Route,
777
+ * next: () => void
778
+ * ): void
779
+ * }
780
+ * }
781
+ * ```
782
+ */
783
+ interface ComponentCustomOptions {}
784
+ type RenderFunction = () => VNodeChild$1;
785
+ interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II, Provide>, ComponentInternalOptions, ComponentCustomOptions {
786
+ setup?: (this: void, props: LooseRequired<Props & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, 'P'>>>, ctx: SetupContext<E, S>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
787
+ name?: string;
788
+ template?: string | object;
789
+ render?: Function;
790
+ components?: LC & Record<string, Component>;
791
+ directives?: Directives & Record<string, Directive>;
792
+ inheritAttrs?: boolean;
793
+ emits?: (E | EE[]) & ThisType<void>;
794
+ slots?: S;
795
+ expose?: Exposed[];
796
+ serverPrefetch?(): void | Promise<any>;
797
+ compilerOptions?: RuntimeCompilerOptions;
798
+ call?: (this: unknown, ...args: unknown[]) => never;
799
+ __isFragment?: never;
800
+ __isTeleport?: never;
801
+ __isSuspense?: never;
802
+ __defaults?: Defaults;
803
+ }
804
+ /**
805
+ * Subset of compiler options that makes sense for the runtime.
806
+ */
807
+ interface RuntimeCompilerOptions {
808
+ isCustomElement?: (tag: string) => boolean;
809
+ whitespace?: 'preserve' | 'condense';
810
+ comments?: boolean;
811
+ delimiters?: [string, string];
812
+ }
813
+ type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S, LC, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>, Defaults, false, I, S, LC, Directives>>;
814
+ type ComponentOptionsMixin = ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
815
+ type ComputedOptions = Record<string, ComputedGetter<any> | WritableComputedOptions<any>>;
816
+ interface MethodOptions {
817
+ [key: string]: Function;
818
+ }
819
+ type ExtractComputedReturns<T extends any> = { [key in keyof T]: T[key] extends {
820
+ get: (...args: any[]) => infer TReturn;
821
+ } ? TReturn : T[key] extends ((...args: any[]) => infer TReturn) ? TReturn : never; };
822
+ type ObjectWatchOptionItem = {
823
+ handler: WatchCallback | string;
824
+ } & WatchOptions;
825
+ type WatchOptionItem = string | WatchCallback | ObjectWatchOptionItem;
826
+ type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
827
+ type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
828
+ type ComponentProvideOptions = ObjectProvideOptions | Function;
829
+ type ObjectProvideOptions = Record<string | symbol, unknown>;
830
+ type ComponentInjectOptions = string[] | ObjectInjectOptions;
831
+ type ObjectInjectOptions = Record<string | symbol, string | symbol | {
832
+ from?: string | symbol;
833
+ default?: unknown;
834
+ }>;
835
+ type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? { [K in T[number]]?: unknown; } : T extends ObjectInjectOptions ? { [K in keyof T]?: unknown; } : never;
836
+ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, I extends ComponentInjectOptions, II extends string, Provide extends ComponentProvideOptions = ComponentProvideOptions> {
837
+ compatConfig?: CompatConfig;
838
+ [key: string]: any;
839
+ data?: (this: CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
840
+ computed?: C;
841
+ methods?: M;
842
+ watch?: ComponentWatchOptions;
843
+ provide?: Provide;
844
+ inject?: I | II[];
845
+ filters?: Record<string, Function>;
846
+ mixins?: Mixin[];
847
+ extends?: Extends;
848
+ beforeCreate?(): any;
849
+ created?(): any;
850
+ beforeMount?(): any;
851
+ mounted?(): any;
852
+ beforeUpdate?(): any;
853
+ updated?(): any;
854
+ activated?(): any;
855
+ deactivated?(): any;
856
+ /** @deprecated use `beforeUnmount` instead */
857
+ beforeDestroy?(): any;
858
+ beforeUnmount?(): any;
859
+ /** @deprecated use `unmounted` instead */
860
+ destroyed?(): any;
861
+ unmounted?(): any;
862
+ renderTracked?: DebuggerHook;
863
+ renderTriggered?: DebuggerHook;
864
+ errorCaptured?: ErrorCapturedHook;
865
+ /**
866
+ * runtime compile only
867
+ * @deprecated use `compilerOptions.delimiters` instead.
868
+ */
869
+ delimiters?: [string, string];
870
+ /**
871
+ * #3468
872
+ *
873
+ * type-only, used to assist Mixin's type inference,
874
+ * TypeScript will try to simplify the inferred `Mixin` type,
875
+ * with the `__differentiator`, TypeScript won't be able to combine different mixins,
876
+ * because the `__differentiator` will be different
877
+ */
878
+ __differentiator?: keyof D | keyof C | keyof M;
879
+ }
880
+ type MergedHook<T = () => void> = T | T[];
881
+ type MergedComponentOptionsOverride = {
882
+ beforeCreate?: MergedHook;
883
+ created?: MergedHook;
884
+ beforeMount?: MergedHook;
885
+ mounted?: MergedHook;
886
+ beforeUpdate?: MergedHook;
887
+ updated?: MergedHook;
888
+ activated?: MergedHook;
889
+ deactivated?: MergedHook;
890
+ /** @deprecated use `beforeUnmount` instead */
891
+ beforeDestroy?: MergedHook;
892
+ beforeUnmount?: MergedHook;
893
+ /** @deprecated use `unmounted` instead */
894
+ destroyed?: MergedHook;
895
+ unmounted?: MergedHook;
896
+ renderTracked?: MergedHook<DebuggerHook>;
897
+ renderTriggered?: MergedHook<DebuggerHook>;
898
+ errorCaptured?: MergedHook<ErrorCapturedHook>;
899
+ };
900
+ type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
901
+ type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Defaults = {}> = {
902
+ P: P;
903
+ B: B;
904
+ D: D;
905
+ C: C;
906
+ M: M;
907
+ Defaults: Defaults;
908
+ };
909
+ interface InjectionConstraint<T> {}
910
+ type InjectionKey<T> = symbol & InjectionConstraint<T>;
911
+ type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
912
+ type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
913
+ type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
914
+ interface App$1<HostElement = any> {
915
+ version: string;
916
+ config: AppConfig;
917
+ use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: NoInfer<Options>): this;
918
+ use<Options>(plugin: Plugin<Options>, options: NoInfer<Options>): this;
919
+ mixin(mixin: ComponentOptions): this;
920
+ component(name: string): Component | undefined;
921
+ component<T extends Component | DefineComponent>(name: string, component: T): this;
922
+ directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any>(name: string): Directive<HostElement, Value, Modifiers, Arg> | undefined;
923
+ directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any>(name: string, directive: Directive<HostElement, Value, Modifiers, Arg>): this;
924
+ mount(rootContainer: HostElement | string,
925
+ /**
926
+ * @internal
927
+ */
928
+ isHydrate?: boolean,
929
+ /**
930
+ * @internal
931
+ */
932
+ namespace?: boolean | ElementNamespace,
933
+ /**
934
+ * @internal
935
+ */
936
+ vnode?: VNode): ComponentPublicInstance;
937
+ unmount(): void;
938
+ onUnmount(cb: () => void): void;
939
+ provide<T, K = InjectionKey<T> | string | number>(key: K, value: K extends InjectionKey<infer V> ? V : T): this;
940
+ /**
941
+ * Runs a function with the app as active instance. This allows using of `inject()` within the function to get access
942
+ * to variables provided via `app.provide()`.
943
+ *
944
+ * @param fn - function to run with the app as active instance
945
+ */
946
+ runWithContext<T>(fn: () => T): T;
947
+ _uid: number;
948
+ _component: ConcreteComponent;
949
+ _props: Data | null;
950
+ _container: HostElement | null;
951
+ _context: AppContext;
952
+ _instance: ComponentInternalInstance | null;
953
+ /**
954
+ * v2 compat only
955
+ */
956
+ filter?(name: string): Function | undefined;
957
+ filter?(name: string, filter: Function): this;
958
+ }
959
+ type OptionMergeFunction = (to: unknown, from: unknown) => any;
960
+ interface AppConfig {
961
+ readonly isNativeTag: (tag: string) => boolean;
962
+ performance: boolean;
963
+ optionMergeStrategies: Record<string, OptionMergeFunction>;
964
+ globalProperties: ComponentCustomProperties & Record<string, any>;
965
+ errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;
966
+ warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;
967
+ /**
968
+ * Options to pass to `@vue/compiler-dom`.
969
+ * Only supported in runtime compiler build.
970
+ */
971
+ compilerOptions: RuntimeCompilerOptions;
972
+ /**
973
+ * @deprecated use config.compilerOptions.isCustomElement
974
+ */
975
+ isCustomElement?: (tag: string) => boolean;
976
+ /**
977
+ * TODO document for 3.5
978
+ * Enable warnings for computed getters that recursively trigger itself.
979
+ */
980
+ warnRecursiveComputed?: boolean;
981
+ /**
982
+ * Whether to throw unhandled errors in production.
983
+ * Default is `false` to avoid crashing on any error (and only logs it)
984
+ * But in some cases, e.g. SSR, throwing might be more desirable.
985
+ */
986
+ throwUnhandledErrorInProduction?: boolean;
987
+ /**
988
+ * Prefix for all useId() calls within this app
989
+ */
990
+ idPrefix?: string;
991
+ }
992
+ interface AppContext {
993
+ app: App$1;
994
+ config: AppConfig;
995
+ mixins: ComponentOptions[];
996
+ components: Record<string, Component>;
997
+ directives: Record<string, Directive>;
998
+ provides: Record<string | symbol, any>;
999
+ }
1000
+ type PluginInstallFunction<Options = any[]> = Options extends unknown[] ? (app: App$1, ...options: Options) => any : (app: App$1, options: Options) => any;
1001
+ type ObjectPlugin<Options = any[]> = {
1002
+ install: PluginInstallFunction<Options>;
1003
+ };
1004
+ type FunctionPlugin<Options = any[]> = PluginInstallFunction<Options> & Partial<ObjectPlugin<Options>>;
1005
+ type Plugin<Options = any[], P extends unknown[] = Options extends unknown[] ? Options : [Options]> = FunctionPlugin<P> | ObjectPlugin<P>;
1006
+ type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
1007
+ interface TeleportProps {
1008
+ to: string | RendererElement | null | undefined;
1009
+ disabled?: boolean;
1010
+ defer?: boolean;
1011
+ }
1012
+ declare const TeleportImpl: {
1013
+ name: string;
1014
+ __isTeleport: boolean;
1015
+ process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
1016
+ remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
1017
+ move: typeof moveTeleport;
1018
+ hydrate: typeof hydrateTeleport;
1019
+ };
1020
+ declare enum TeleportMoveTypes {
1021
+ TARGET_CHANGE = 0,
1022
+ TOGGLE = 1, // enable / disable
1023
+ REORDER = 2
1024
+ }
1025
+ declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
1026
+ declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector, insert, createText } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
1027
+ declare const Teleport$1: {
1028
+ __isTeleport: true;
1029
+ new (): {
1030
+ $props: VNodeProps & TeleportProps;
1031
+ $slots: {
1032
+ default(): VNode[];
1033
+ };
1034
+ };
1035
+ };
1036
+ declare const Fragment$1: {
1037
+ __isFragment: true;
1038
+ new (): {
1039
+ $props: VNodeProps;
1040
+ };
1041
+ };
1042
+ declare const Text: unique symbol;
1043
+ declare const Comment: unique symbol;
1044
+ declare const Static: unique symbol;
1045
+ type VNodeTypes = string | VNode | Component | typeof Text | typeof Static | typeof Comment | typeof Fragment$1 | typeof Teleport$1 | typeof TeleportImpl | typeof Suspense | typeof SuspenseImpl;
1046
+ type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
1047
+ type VNodeNormalizedRefAtom = {
1048
+ /**
1049
+ * component instance
1050
+ */
1051
+ i: ComponentInternalInstance;
1052
+ /**
1053
+ * Actual ref
1054
+ */
1055
+ r: VNodeRef;
1056
+ /**
1057
+ * setup ref key
1058
+ */
1059
+ k?: string;
1060
+ /**
1061
+ * refInFor marker
1062
+ */
1063
+ f?: boolean;
1064
+ };
1065
+ type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
1066
+ type VNodeMountHook = (vnode: VNode) => void;
1067
+ type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
1068
+ type VNodeProps = {
1069
+ key?: PropertyKey;
1070
+ ref?: VNodeRef;
1071
+ ref_for?: boolean;
1072
+ ref_key?: string;
1073
+ onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
1074
+ onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
1075
+ onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
1076
+ onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
1077
+ onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
1078
+ onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
1079
+ };
1080
+ type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
1081
+ type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
1082
+ type VNodeChild$1 = VNodeChildAtom | VNodeArrayChildren;
1083
+ type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
1084
+ interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
1085
+ [key: string]: any;
1086
+ }> {
1087
+ type: VNodeTypes;
1088
+ props: (VNodeProps & ExtraProps) | null;
1089
+ key: PropertyKey | null;
1090
+ ref: VNodeNormalizedRef | null;
1091
+ /**
1092
+ * SFC only. This is assigned on vnode creation using currentScopeId
1093
+ * which is set alongside currentRenderingInstance.
1094
+ */
1095
+ scopeId: string | null;
1096
+ children: VNodeNormalizedChildren;
1097
+ component: ComponentInternalInstance | null;
1098
+ dirs: DirectiveBinding[] | null;
1099
+ transition: TransitionHooks<HostElement> | null;
1100
+ el: HostNode | null;
1101
+ placeholder: HostNode | null;
1102
+ anchor: HostNode | null;
1103
+ target: HostElement | null;
1104
+ targetStart: HostNode | null;
1105
+ targetAnchor: HostNode | null;
1106
+ suspense: SuspenseBoundary | null;
1107
+ shapeFlag: number;
1108
+ patchFlag: number;
1109
+ appContext: AppContext | null;
1110
+ }
1111
+ type Data = Record<string, unknown>;
1112
+ /**
1113
+ * For extending allowed non-declared attrs on components in TSX
1114
+ */
1115
+ interface AllowedAttrs {}
1116
+ type Attrs = Data & AllowedAttrs;
1117
+ /**
1118
+ * For extending allowed non-declared props on components in TSX
1119
+ */
1120
+ interface ComponentCustomProps {}
1121
+ /**
1122
+ * For globally defined Directives
1123
+ * Here is an example of adding a directive `VTooltip` as global directive:
1124
+ *
1125
+ * @example
1126
+ * ```ts
1127
+ * import VTooltip from 'v-tooltip'
1128
+ *
1129
+ * declare module '@vue/runtime-core' {
1130
+ * interface GlobalDirectives {
1131
+ * VTooltip
1132
+ * }
1133
+ * }
1134
+ * ```
1135
+ */
1136
+ interface GlobalDirectives {}
1137
+ /**
1138
+ * For globally defined Components
1139
+ * Here is an example of adding a component `RouterView` as global component:
1140
+ *
1141
+ * @example
1142
+ * ```ts
1143
+ * import { RouterView } from 'vue-router'
1144
+ *
1145
+ * declare module '@vue/runtime-core' {
1146
+ * interface GlobalComponents {
1147
+ * RouterView
1148
+ * }
1149
+ * }
1150
+ * ```
1151
+ */
1152
+ interface GlobalComponents {
1153
+ Teleport: DefineComponent<TeleportProps>;
1154
+ Suspense: DefineComponent<SuspenseProps>;
1155
+ KeepAlive: DefineComponent<KeepAliveProps>;
1156
+ BaseTransition: DefineComponent<BaseTransitionProps>;
1157
+ }
1158
+ /**
1159
+ * Default allowed non-declared props on component in TSX
1160
+ */
1161
+ interface AllowedComponentProps {
1162
+ class?: unknown;
1163
+ style?: unknown;
1164
+ }
1165
+ interface ComponentInternalOptions {
1166
+ /**
1167
+ * Compat build only, for bailing out of certain compatibility behavior
1168
+ */
1169
+ __isBuiltIn?: boolean;
1170
+ /**
1171
+ * This one should be exposed so that devtools can make use of it
1172
+ */
1173
+ __file?: string;
1174
+ /**
1175
+ * name inferred from filename
1176
+ */
1177
+ __name?: string;
1178
+ }
1179
+ interface FunctionalComponent<P = {}, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any, EE extends EmitsOptions = ShortEmitsToObject<E>> extends ComponentInternalOptions {
1180
+ (props: P & EmitsToProps<EE>, ctx: Omit<SetupContext<EE, IfAny<S, {}, SlotsType<S>>>, 'expose'>): any;
1181
+ props?: ComponentPropsOptions<P>;
1182
+ emits?: EE | (keyof EE)[];
1183
+ slots?: IfAny<S, Slots, SlotsType<S>>;
1184
+ inheritAttrs?: boolean;
1185
+ displayName?: string;
1186
+ compatConfig?: CompatConfig;
1187
+ }
1188
+ /**
1189
+ * Concrete component type matches its actual value: it's either an options
1190
+ * object, or a function. Use this where the code expects to work with actual
1191
+ * values, e.g. checking if its a function or not. This is mostly for internal
1192
+ * implementation code.
1193
+ */
1194
+ type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, E, S>;
1195
+ /**
1196
+ * A type used in public APIs where a component type is expected.
1197
+ * The constructor type is an artificial type returned by defineComponent().
1198
+ */
1199
+ type Component<PropsOrInstance = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ConcreteComponent<PropsOrInstance, RawBindings, D, C, M, E, S> | ComponentPublicInstanceConstructor<PropsOrInstance>;
1200
+ type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
1201
+ attrs: Attrs;
1202
+ slots: UnwrapSlotsType<S>;
1203
+ emit: EmitFn<E>;
1204
+ expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
1205
+ } : never;
1206
+ /**
1207
+ * We expose a subset of properties on the internal instance as they are
1208
+ * useful for advanced external libraries and tools.
1209
+ */
1210
+ interface ComponentInternalInstance {
1211
+ uid: number;
1212
+ type: ConcreteComponent;
1213
+ parent: ComponentInternalInstance | null;
1214
+ root: ComponentInternalInstance;
1215
+ appContext: AppContext;
1216
+ /**
1217
+ * Vnode representing this component in its parent's vdom tree
1218
+ */
1219
+ vnode: VNode;
1220
+ /**
1221
+ * Root vnode of this component's own vdom tree
1222
+ */
1223
+ subTree: VNode;
1224
+ /**
1225
+ * Render effect instance
1226
+ */
1227
+ effect: ReactiveEffect;
1228
+ /**
1229
+ * Force update render effect
1230
+ */
1231
+ update: () => void;
1232
+ /**
1233
+ * Render effect job to be passed to scheduler (checks if dirty)
1234
+ */
1235
+ job: SchedulerJob;
1236
+ proxy: ComponentPublicInstance | null;
1237
+ exposed: Record<string, any> | null;
1238
+ exposeProxy: Record<string, any> | null;
1239
+ data: Data;
1240
+ props: Data;
1241
+ attrs: Data;
1242
+ slots: InternalSlots;
1243
+ refs: Data;
1244
+ emit: EmitFn;
1245
+ isMounted: boolean;
1246
+ isUnmounted: boolean;
1247
+ isDeactivated: boolean;
1248
+ }
1249
+ interface WatchEffectOptions extends DebuggerOptions {
1250
+ flush?: 'pre' | 'post' | 'sync';
1251
+ }
1252
+ interface WatchOptions<Immediate = boolean> extends WatchEffectOptions {
1253
+ immediate?: Immediate;
1254
+ deep?: boolean | number;
1255
+ once?: boolean;
1256
+ }
1257
+ declare module '@vue/reactivity' {
1258
+ interface RefUnwrapBailTypes {
1259
+ runtimeCoreBailTypes: VNode | {
1260
+ $: ComponentInternalInstance;
1261
+ };
1262
+ }
1263
+ }
1264
+ // Note: this file is auto concatenated to the end of the bundled d.ts during
1265
+ // build.
1266
+ declare module '@vue/runtime-core' {
1267
+ export interface GlobalComponents {
1268
+ Teleport: DefineComponent<TeleportProps>;
1269
+ Suspense: DefineComponent<SuspenseProps>;
1270
+ KeepAlive: DefineComponent<KeepAliveProps>;
1271
+ BaseTransition: DefineComponent<BaseTransitionProps>;
1272
+ }
1273
+ }
1274
+ // Note: this file is auto concatenated to the end of the bundled d.ts during
1275
+ // build.
1276
+ type _defineProps = typeof defineProps;
1277
+ type _defineEmits = typeof defineEmits;
1278
+ type _defineExpose = typeof defineExpose;
1279
+ type _defineOptions = typeof defineOptions;
1280
+ type _defineSlots = typeof defineSlots;
1281
+ type _defineModel = typeof defineModel;
1282
+ type _withDefaults = typeof withDefaults;
1283
+ declare global {
1284
+ const defineProps: _defineProps;
1285
+ const defineEmits: _defineEmits;
1286
+ const defineExpose: _defineExpose;
1287
+ const defineOptions: _defineOptions;
1288
+ const defineSlots: _defineSlots;
1289
+ const defineModel: _defineModel;
1290
+ const withDefaults: _withDefaults;
1291
+ }
1292
+ //#endregion
1293
+ //#region src/components/extras/LiveDemo.vue.d.ts
1294
+ type __VLS_Props$71 = {
1295
+ /** 组件模板片段(Vue 模板语法),变化后自动重新渲染 */
1296
+ code: string;
1297
+ /** 渲染作用域:模板中可访问的变量与函数 */
1298
+ scope?: Record<string, unknown>;
1299
+ };
1300
+ declare const __VLS_export$72: DefineComponent<__VLS_Props$71, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$71> & Readonly<{}>, {
1301
+ scope: Record<string, unknown>;
1302
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1303
+ declare const _default$34: typeof __VLS_export$72;
1304
+ //#endregion
1305
+ //#region src/components/basic/Button.vue.d.ts
1306
+ type __VLS_Props$70 = {
1307
+ /** 按钮语义类型 */
1308
+ type?: 'primary' | 'secondary' | 'danger' | 'ghost';
1309
+ size?: 'sm' | 'md' | 'lg';
1310
+ disabled?: boolean;
1311
+ /** 外部直接指定加载态 */
1312
+ loading?: boolean;
1313
+ /** 是否撑满一行 */
1314
+ block?: boolean;
1315
+ /** 传入动作后,点击自动执行并派生 loading/disabled */
1316
+ action?: ActionLike;
1317
+ id?: string;
1318
+ };
1319
+ declare var __VLS_1$23: {};
1320
+ type __VLS_Slots$37 = {} & {
1321
+ default?: (props: typeof __VLS_1$23) => any;
1322
+ };
1323
+ declare const __VLS_base$37: DefineComponent<__VLS_Props$70, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1324
+ click: (event: MouseEvent) => any;
1325
+ }, string, PublicProps, Readonly<__VLS_Props$70> & Readonly<{
1326
+ onClick?: ((event: MouseEvent) => any) | undefined;
1327
+ }>, {
1328
+ type: "secondary" | "primary" | "danger" | "ghost";
1329
+ size: "md" | "sm" | "lg";
1330
+ disabled: boolean;
1331
+ loading: boolean;
1332
+ block: boolean;
1333
+ action: ActionLike;
1334
+ id: string;
1335
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1336
+ declare const __VLS_export$71: __VLS_WithSlots$37<typeof __VLS_base$37, __VLS_Slots$37>;
1337
+ declare const _default$8: typeof __VLS_export$71;
1338
+ type __VLS_WithSlots$37<T, S> = T & {
1339
+ new (): {
1340
+ $slots: S;
1341
+ };
1342
+ };
1343
+ //#endregion
1344
+ //#region src/components/basic/Icon.vue.d.ts
1345
+ declare var __VLS_1$22: {};
1346
+ type __VLS_Slots$36 = {} & {
1347
+ default?: (props: typeof __VLS_1$22) => any;
1348
+ };
1349
+ declare const __VLS_base$36: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1350
+ declare const __VLS_export$70: __VLS_WithSlots$36<typeof __VLS_base$36, __VLS_Slots$36>;
1351
+ declare const _default$29: typeof __VLS_export$70;
1352
+ type __VLS_WithSlots$36<T, S> = T & {
1353
+ new (): {
1354
+ $slots: S;
1355
+ };
1356
+ };
1357
+ //#endregion
1358
+ //#region src/components/basic/Input.vue.d.ts
1359
+ type __VLS_Props$69 = {
1360
+ modelValue?: string;
1361
+ type?: string;
1362
+ size?: 'sm' | 'md' | 'lg';
1363
+ placeholder?: string;
1364
+ disabled?: boolean;
1365
+ readonly?: boolean;
1366
+ /** 外部强制校验失败态(红框);表单上下文中也会取字段校验错误 */
1367
+ invalid?: boolean;
1368
+ /** 多行文本域 */
1369
+ textarea?: boolean;
1370
+ rows?: number;
1371
+ /** 可清空 */
1372
+ clearable?: boolean;
1373
+ /** 显示字数统计 */
1374
+ showWordLimit?: boolean;
1375
+ maxlength?: number;
1376
+ /** 失焦时去除首尾空白并回发 */
1377
+ trim?: boolean;
1378
+ name?: string;
1379
+ };
1380
+ declare var __VLS_1$21: {}, __VLS_3$4: {};
1381
+ type __VLS_Slots$35 = {} & {
1382
+ prefix?: (props: typeof __VLS_1$21) => any;
1383
+ } & {
1384
+ suffix?: (props: typeof __VLS_3$4) => any;
1385
+ };
1386
+ declare const __VLS_base$35: DefineComponent<__VLS_Props$69, {
1387
+ validate: () => Promise<string | true>;
1388
+ clearValidate: () => void;
1389
+ focus: () => void;
1390
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1391
+ clear: () => any;
1392
+ "update:modelValue": (value: string) => any;
1393
+ focus: (event: FocusEvent) => any;
1394
+ blur: (event: FocusEvent) => any;
1395
+ }, string, PublicProps, Readonly<__VLS_Props$69> & Readonly<{
1396
+ onClear?: (() => any) | undefined;
1397
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1398
+ onFocus?: ((event: FocusEvent) => any) | undefined;
1399
+ onBlur?: ((event: FocusEvent) => any) | undefined;
1400
+ }>, {
1401
+ type: string;
1402
+ size: "md" | "sm" | "lg";
1403
+ disabled: boolean;
1404
+ trim: boolean;
1405
+ name: string;
1406
+ placeholder: string;
1407
+ readonly: boolean;
1408
+ invalid: boolean;
1409
+ textarea: boolean;
1410
+ rows: number;
1411
+ clearable: boolean;
1412
+ showWordLimit: boolean;
1413
+ maxlength: number;
1414
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1415
+ declare const __VLS_export$69: __VLS_WithSlots$35<typeof __VLS_base$35, __VLS_Slots$35>;
1416
+ declare const _default$31: typeof __VLS_export$69;
1417
+ type __VLS_WithSlots$35<T, S> = T & {
1418
+ new (): {
1419
+ $slots: S;
1420
+ };
1421
+ };
1422
+ //#endregion
1423
+ //#region src/components/basic/Card.vue.d.ts
1424
+ interface CardSubscribeData {
1425
+ title?: string;
1426
+ content?: string;
1427
+ }
1428
+ type __VLS_Props$68 = {
1429
+ title?: string;
1430
+ /** 是否带描边 */
1431
+ bordered?: boolean;
1432
+ /** 是否带悬浮阴影 */
1433
+ hoverable?: boolean;
1434
+ /** 订阅卡片数据:挂载时调用,resolve 出的 title/content 用于渲染,优先级高于 props */
1435
+ subscribe?: SubscribeHandler<CardSubscribeData>;
1436
+ /** 订阅失败时的回退文案 */
1437
+ errorText?: string;
1438
+ };
1439
+ declare var __VLS_1$20: {}, __VLS_3$3: {}, __VLS_5$2: {};
1440
+ type __VLS_Slots$34 = {} & {
1441
+ header?: (props: typeof __VLS_1$20) => any;
1442
+ } & {
1443
+ default?: (props: typeof __VLS_3$3) => any;
1444
+ } & {
1445
+ footer?: (props: typeof __VLS_5$2) => any;
1446
+ };
1447
+ declare const __VLS_base$34: DefineComponent<__VLS_Props$68, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$68> & Readonly<{}>, {
1448
+ subscribe: SubscribeHandler<CardSubscribeData>;
1449
+ errorText: string;
1450
+ title: string;
1451
+ bordered: boolean;
1452
+ hoverable: boolean;
1453
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1454
+ declare const __VLS_export$68: __VLS_WithSlots$34<typeof __VLS_base$34, __VLS_Slots$34>;
1455
+ declare const _default$10: typeof __VLS_export$68;
1456
+ type __VLS_WithSlots$34<T, S> = T & {
1457
+ new (): {
1458
+ $slots: S;
1459
+ };
1460
+ };
1461
+ //#endregion
1462
+ //#region src/components/basic/Divider.vue.d.ts
1463
+ type __VLS_Props$67 = {
1464
+ /** 分割线方向 */
1465
+ orientation?: 'horizontal' | 'vertical';
1466
+ /** 分割线文案 */
1467
+ label?: string;
1468
+ dashed?: boolean;
1469
+ };
1470
+ declare var __VLS_1$19: {};
1471
+ type __VLS_Slots$33 = {} & {
1472
+ default?: (props: typeof __VLS_1$19) => any;
1473
+ };
1474
+ declare const __VLS_base$33: DefineComponent<__VLS_Props$67, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$67> & Readonly<{}>, {
1475
+ orientation: "horizontal" | "vertical";
1476
+ label: string;
1477
+ dashed: boolean;
1478
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1479
+ declare const __VLS_export$67: __VLS_WithSlots$33<typeof __VLS_base$33, __VLS_Slots$33>;
1480
+ declare const _default$21: typeof __VLS_export$67;
1481
+ type __VLS_WithSlots$33<T, S> = T & {
1482
+ new (): {
1483
+ $slots: S;
1484
+ };
1485
+ };
1486
+ //#endregion
1487
+ //#region src/components/basic/Avatar.vue.d.ts
1488
+ interface AvatarSubscribeData {
1489
+ src?: string;
1490
+ text?: string;
1491
+ }
1492
+ type __VLS_Props$66 = {
1493
+ src?: string;
1494
+ alt?: string;
1495
+ size?: 'sm' | 'md' | 'lg';
1496
+ shape?: 'circle' | 'square';
1497
+ /** 无图片时显示的文字(如姓名;仅取首字回退) */
1498
+ text?: string;
1499
+ /** 图片进入视口再加载 */
1500
+ lazy?: boolean;
1501
+ /** 图片加载失败时的兜底地址 */
1502
+ fallbackSrc?: string;
1503
+ /** 订阅头像数据:挂载时调用,resolve 出的 src/text 用于渲染,优先级高于 props */
1504
+ subscribe?: SubscribeHandler<AvatarSubscribeData>;
1505
+ /** 订阅失败时的回退文案 */
1506
+ errorText?: string;
1507
+ };
1508
+ declare var __VLS_1$18: {};
1509
+ type __VLS_Slots$32 = {} & {
1510
+ default?: (props: typeof __VLS_1$18) => any;
1511
+ };
1512
+ declare const __VLS_base$32: DefineComponent<__VLS_Props$66, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$66> & Readonly<{}>, {
1513
+ size: "md" | "sm" | "lg";
1514
+ text: string;
1515
+ src: string;
1516
+ alt: string;
1517
+ shape: "circle" | "square";
1518
+ lazy: boolean;
1519
+ fallbackSrc: string;
1520
+ subscribe: SubscribeHandler<AvatarSubscribeData>;
1521
+ errorText: string;
1522
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1523
+ declare const __VLS_export$66: __VLS_WithSlots$32<typeof __VLS_base$32, __VLS_Slots$32>;
1524
+ declare const _default$4: typeof __VLS_export$66;
1525
+ type __VLS_WithSlots$32<T, S> = T & {
1526
+ new (): {
1527
+ $slots: S;
1528
+ };
1529
+ };
1530
+ //#endregion
1531
+ //#region src/components/basic/Badge.vue.d.ts
1532
+ type __VLS_Props$65 = {
1533
+ /** 角标数值,0 时默认不显示(showZero 可强制显示) */
1534
+ count?: number;
1535
+ /** 超过 max 显示 max+ */
1536
+ max?: number;
1537
+ /** 仅显示小红点 */
1538
+ dot?: boolean;
1539
+ /** 角标语义色 */
1540
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
1541
+ /** count 为 0 时也展示 */
1542
+ showZero?: boolean;
1543
+ /** 自定义角标文本(优先级高于 count) */
1544
+ text?: string | number;
1545
+ /** 有角标时是否在内容上描出白底(点状样式) */
1546
+ hidden?: boolean;
1547
+ /** 订阅角标值:挂载时调用,resolve 出的数值/文本用于渲染,优先级高于 text/count */
1548
+ subscribe?: SubscribeHandler<number | string>;
1549
+ /** 订阅失败时的回退文案 */
1550
+ errorText?: string;
1551
+ };
1552
+ declare var __VLS_1$17: {}, __VLS_9$5: {};
1553
+ type __VLS_Slots$31 = {} & {
1554
+ default?: (props: typeof __VLS_1$17) => any;
1555
+ } & {
1556
+ count?: (props: typeof __VLS_9$5) => any;
1557
+ };
1558
+ declare const __VLS_base$31: DefineComponent<__VLS_Props$65, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$65> & Readonly<{}>, {
1559
+ type: "primary" | "danger" | "success" | "warning" | "info";
1560
+ text: string | number;
1561
+ subscribe: SubscribeHandler<string | number>;
1562
+ errorText: string;
1563
+ count: number;
1564
+ max: number;
1565
+ dot: boolean;
1566
+ showZero: boolean;
1567
+ hidden: boolean;
1568
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1569
+ declare const __VLS_export$65: __VLS_WithSlots$31<typeof __VLS_base$31, __VLS_Slots$31>;
1570
+ declare const _default$6: typeof __VLS_export$65;
1571
+ type __VLS_WithSlots$31<T, S> = T & {
1572
+ new (): {
1573
+ $slots: S;
1574
+ };
1575
+ };
1576
+ //#endregion
1577
+ //#region src/components/basic/Statistic.vue.d.ts
1578
+ /** 统计值:数字 / 可解析数字的字符串 / 时间(倒计时) */
1579
+ type StatisticValue = string | number | Date;
1580
+ type __VLS_Props$64 = {
1581
+ title?: string;
1582
+ /** 数值(字符串原样展示);倒计时模式下为到期时间戳或 Date;fetch 模式下可省略 */
1583
+ value?: StatisticValue;
1584
+ prefix?: string;
1585
+ suffix?: string;
1586
+ /** 小数位数 */
1587
+ precision?: number;
1588
+ /** 千分位分隔符,空串关闭(默认关闭) */
1589
+ groupSeparator?: string;
1590
+ /** 数值滚动动画(数字类型) */
1591
+ animation?: boolean;
1592
+ /** 动画时长(ms) */
1593
+ duration?: number;
1594
+ /** 倒计时模式:value 为到期时刻 */
1595
+ countdown?: boolean;
1596
+ /**
1597
+ * 统一远程请求:挂载即拉取聚合值(数字或 { value } 单值),
1598
+ * value prop 与 fetch 同时存在时 fetch 优先,三者同时存在时 subscribe 优先
1599
+ */
1600
+ fetch?: Fetch$1<StatisticValue>;
1601
+ /**
1602
+ * 订阅数据:挂载时调用,resolve 出的数据用于渲染。
1603
+ * 优先级:subscribe > fetch > value
1604
+ */
1605
+ subscribe?: SubscribeHandler<StatisticValue>;
1606
+ };
1607
+ declare var __VLS_1$16: {};
1608
+ type __VLS_Slots$30 = {} & {
1609
+ default?: (props: typeof __VLS_1$16) => any;
1610
+ };
1611
+ declare const __VLS_base$30: DefineComponent<__VLS_Props$64, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1612
+ finish: () => any;
1613
+ }, string, PublicProps, Readonly<__VLS_Props$64> & Readonly<{
1614
+ onFinish?: (() => any) | undefined;
1615
+ }>, {
1616
+ subscribe: SubscribeHandler<StatisticValue>;
1617
+ title: string;
1618
+ value: StatisticValue;
1619
+ prefix: string;
1620
+ suffix: string;
1621
+ precision: number;
1622
+ groupSeparator: string;
1623
+ animation: boolean;
1624
+ duration: number;
1625
+ countdown: boolean;
1626
+ fetch: Fetch$1<StatisticValue>;
1627
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1628
+ declare const __VLS_export$64: __VLS_WithSlots$30<typeof __VLS_base$30, __VLS_Slots$30>;
1629
+ declare const _default$56: typeof __VLS_export$64;
1630
+ type __VLS_WithSlots$30<T, S> = T & {
1631
+ new (): {
1632
+ $slots: S;
1633
+ };
1634
+ };
1635
+ //#endregion
1636
+ //#region src/components/basic/Typography.vue.d.ts
1637
+ type __VLS_Props$63 = {
1638
+ /** 标题级别;level=0 时渲染为段落文本 */
1639
+ level?: 0 | 1 | 2 | 3 | 4;
1640
+ /** 单行截断 */
1641
+ ellipsis?: boolean;
1642
+ /** 多行截断行数(与 ellipsis 同时生效) */
1643
+ lineClamp?: number;
1644
+ /** 截断方式 */
1645
+ truncate?: 'end' | 'middle' | 'start';
1646
+ /** 显示复制按钮 */
1647
+ copyable?: boolean;
1648
+ /** 复制内容(缺省取元素文本) */
1649
+ text?: string;
1650
+ /** 可编辑 */
1651
+ editable?: boolean;
1652
+ };
1653
+ declare var __VLS_7$7: {};
1654
+ type __VLS_Slots$29 = {} & {
1655
+ default?: (props: typeof __VLS_7$7) => any;
1656
+ };
1657
+ declare const __VLS_base$29: DefineComponent<__VLS_Props$63, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1658
+ copy: (text: string, result: boolean) => any;
1659
+ change: (text: string) => any;
1660
+ editStart: () => any;
1661
+ editEnd: () => any;
1662
+ }, string, PublicProps, Readonly<__VLS_Props$63> & Readonly<{
1663
+ onCopy?: ((text: string, result: boolean) => any) | undefined;
1664
+ onChange?: ((text: string) => any) | undefined;
1665
+ onEditStart?: (() => any) | undefined;
1666
+ onEditEnd?: (() => any) | undefined;
1667
+ }>, {
1668
+ level: 0 | 1 | 2 | 3 | 4;
1669
+ ellipsis: boolean;
1670
+ lineClamp: number;
1671
+ truncate: "end" | "middle" | "start";
1672
+ copyable: boolean;
1673
+ text: string;
1674
+ editable: boolean;
1675
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1676
+ declare const __VLS_export$63: __VLS_WithSlots$29<typeof __VLS_base$29, __VLS_Slots$29>;
1677
+ declare const _default$69: typeof __VLS_export$63;
1678
+ type __VLS_WithSlots$29<T, S> = T & {
1679
+ new (): {
1680
+ $slots: S;
1681
+ };
1682
+ };
1683
+ //#endregion
1684
+ //#region src/components/basic/Tag.vue.d.ts
1685
+ type __VLS_Props$62 = {
1686
+ type?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
1687
+ closable?: boolean;
1688
+ modelValue?: boolean;
1689
+ /** 标签文本(插槽未提供时使用) */
1690
+ text?: string;
1691
+ /** 订阅标签文本:挂载时调用,resolve 出的字符串用于渲染,优先级高于 text */
1692
+ subscribe?: SubscribeHandler<string>;
1693
+ /** 订阅失败时的回退文案 */
1694
+ errorText?: string;
1695
+ };
1696
+ declare var __VLS_7$6: {};
1697
+ type __VLS_Slots$28 = {} & {
1698
+ default?: (props: typeof __VLS_7$6) => any;
1699
+ };
1700
+ declare const __VLS_base$28: DefineComponent<__VLS_Props$62, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1701
+ "update:modelValue": (value: boolean) => any;
1702
+ close: () => any;
1703
+ }, string, PublicProps, Readonly<__VLS_Props$62> & Readonly<{
1704
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1705
+ onClose?: (() => any) | undefined;
1706
+ }>, {
1707
+ type: "primary" | "danger" | "default" | "success" | "warning";
1708
+ text: string;
1709
+ subscribe: SubscribeHandler<string>;
1710
+ errorText: string;
1711
+ modelValue: boolean;
1712
+ closable: boolean;
1713
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1714
+ declare const __VLS_export$62: __VLS_WithSlots$28<typeof __VLS_base$28, __VLS_Slots$28>;
1715
+ declare const _default$61: typeof __VLS_export$62;
1716
+ type __VLS_WithSlots$28<T, S> = T & {
1717
+ new (): {
1718
+ $slots: S;
1719
+ };
1720
+ };
1721
+ //#endregion
1722
+ //#region src/components/basic/Empty.vue.d.ts
1723
+ type __VLS_Props$61 = {
1724
+ description?: string;
1725
+ /** 订阅空状态描述:挂载时调用,resolve 出的字符串用于渲染,优先级高于 description */
1726
+ subscribe?: SubscribeHandler<string>;
1727
+ /** 订阅失败时的回退文案 */
1728
+ errorText?: string;
1729
+ };
1730
+ declare var __VLS_1$15: {}, __VLS_3$2: {};
1731
+ type __VLS_Slots$27 = {} & {
1732
+ default?: (props: typeof __VLS_1$15) => any;
1733
+ } & {
1734
+ default?: (props: typeof __VLS_3$2) => any;
1735
+ };
1736
+ declare const __VLS_base$27: DefineComponent<__VLS_Props$61, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$61> & Readonly<{}>, {
1737
+ subscribe: SubscribeHandler<string>;
1738
+ errorText: string;
1739
+ description: string;
1740
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1741
+ declare const __VLS_export$61: __VLS_WithSlots$27<typeof __VLS_base$27, __VLS_Slots$27>;
1742
+ declare const _default$24: typeof __VLS_export$61;
1743
+ type __VLS_WithSlots$27<T, S> = T & {
1744
+ new (): {
1745
+ $slots: S;
1746
+ };
1747
+ };
1748
+ //#endregion
1749
+ //#region src/components/form-controls/Select.vue.d.ts
1750
+ interface SelectOption {
1751
+ label: string;
1752
+ value: string | number;
1753
+ disabled?: boolean;
1754
+ /** 分组标题:相同 group 的选项在面板内聚合 */
1755
+ group?: string;
1756
+ }
1757
+ type V$4 = string | number;
1758
+ type __VLS_Props$60 = {
1759
+ modelValue?: V$4 | V$4[] | null;
1760
+ options?: SelectOption[];
1761
+ placeholder?: string;
1762
+ disabled?: boolean;
1763
+ multiple?: boolean;
1764
+ filterable?: boolean;
1765
+ clearable?: boolean;
1766
+ name?: string;
1767
+ /** 远程数据状态:传入后优先于 options 渲染,组件自身不发请求 */
1768
+ state?: AsyncStateLike<SelectOption[]>;
1769
+ /**
1770
+ * 统一远程请求方法:挂载即请求首页,搜索词变化自动防抖重取,
1771
+ * 滚动到面板底部时以递增页码继续取下一页并累积(按 value 去重)。
1772
+ * 返回选项数组或 { list, total }
1773
+ */
1774
+ fetch?: Fetch$1<SelectOption>;
1775
+ /** 每页大小:fetch 模式下作为分页参数注入,默认 20 */
1776
+ pageSize?: number;
1777
+ /**
1778
+ * 订阅数据:挂载时调用,resolve 出的选项用于渲染。
1779
+ * 优先级:subscribe > fetch > state > options
1780
+ */
1781
+ subscribe?: SubscribeHandler<SelectOption[]>;
1782
+ /** 选择动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用选择 */
1783
+ action?: ActionLike;
1784
+ };
1785
+ declare const __VLS_export$60: DefineComponent<__VLS_Props$60, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1786
+ change: (value: V$4 | V$4[] | null) => any;
1787
+ "update:modelValue": (value: V$4 | V$4[] | null) => any;
1788
+ actionError: (error: unknown) => any;
1789
+ }, string, PublicProps, Readonly<__VLS_Props$60> & Readonly<{
1790
+ onChange?: ((value: V$4 | V$4[] | null) => any) | undefined;
1791
+ "onUpdate:modelValue"?: ((value: V$4 | V$4[] | null) => any) | undefined;
1792
+ onActionError?: ((error: unknown) => any) | undefined;
1793
+ }>, {
1794
+ disabled: boolean;
1795
+ action: ActionLike;
1796
+ subscribe: SubscribeHandler<SelectOption[]>;
1797
+ state: AsyncStateLike<SelectOption[]>;
1798
+ name: string;
1799
+ fetch: Fetch$1<SelectOption>;
1800
+ options: SelectOption[];
1801
+ placeholder: string;
1802
+ clearable: boolean;
1803
+ multiple: boolean;
1804
+ filterable: boolean;
1805
+ pageSize: number;
1806
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1807
+ declare const _default$52: typeof __VLS_export$60;
1808
+ //#endregion
1809
+ //#region src/components/form-controls/Checkbox.vue.d.ts
1810
+ type V$3 = string | number | boolean;
1811
+ type __VLS_Props$59 = {
1812
+ modelValue?: boolean;
1813
+ /** 成组使用时该选项的取值(配合外部 CheckboxGroup 上下文) */
1814
+ value?: V$3;
1815
+ label?: string;
1816
+ disabled?: boolean;
1817
+ /** 半选态(纯视觉) */
1818
+ indeterminate?: boolean;
1819
+ name?: string;
1820
+ /** 勾选动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用勾选 */
1821
+ action?: ActionLike;
1822
+ };
1823
+ declare var __VLS_1$14: {};
1824
+ type __VLS_Slots$26 = {} & {
1825
+ default?: (props: typeof __VLS_1$14) => any;
1826
+ };
1827
+ declare const __VLS_base$26: DefineComponent<__VLS_Props$59, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1828
+ "update:modelValue": (value: boolean) => any;
1829
+ actionError: (error: unknown) => any;
1830
+ }, string, PublicProps, Readonly<__VLS_Props$59> & Readonly<{
1831
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1832
+ onActionError?: ((error: unknown) => any) | undefined;
1833
+ }>, {
1834
+ disabled: boolean;
1835
+ action: ActionLike;
1836
+ name: string;
1837
+ value: V$3;
1838
+ modelValue: boolean;
1839
+ label: string;
1840
+ indeterminate: boolean;
1841
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1842
+ declare const __VLS_export$59: __VLS_WithSlots$26<typeof __VLS_base$26, __VLS_Slots$26>;
1843
+ declare const _default$14: typeof __VLS_export$59;
1844
+ type __VLS_WithSlots$26<T, S> = T & {
1845
+ new (): {
1846
+ $slots: S;
1847
+ };
1848
+ };
1849
+ //#endregion
1850
+ //#region src/components/form-controls/Radio.vue.d.ts
1851
+ type V$2 = string | number;
1852
+ type __VLS_Props$58 = {
1853
+ /** 该选项的取值 */
1854
+ value: V$2;
1855
+ modelValue?: V$2 | null;
1856
+ label?: string;
1857
+ disabled?: boolean;
1858
+ name?: string;
1859
+ /** 选择动作(仅独立使用时生效;组内由 RadioGroup 的 action 统一管理):新值先乐观应用,动作失败自动回退旧值 */
1860
+ action?: ActionLike;
1861
+ };
1862
+ declare var __VLS_1$13: {};
1863
+ type __VLS_Slots$25 = {} & {
1864
+ default?: (props: typeof __VLS_1$13) => any;
1865
+ };
1866
+ declare const __VLS_base$25: DefineComponent<__VLS_Props$58, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1867
+ "update:modelValue": (value: V$2) => any;
1868
+ actionError: (error: unknown) => any;
1869
+ }, string, PublicProps, Readonly<__VLS_Props$58> & Readonly<{
1870
+ "onUpdate:modelValue"?: ((value: V$2) => any) | undefined;
1871
+ onActionError?: ((error: unknown) => any) | undefined;
1872
+ }>, {
1873
+ disabled: boolean;
1874
+ action: ActionLike;
1875
+ name: string;
1876
+ modelValue: V$2 | null;
1877
+ label: string;
1878
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1879
+ declare const __VLS_export$58: __VLS_WithSlots$25<typeof __VLS_base$25, __VLS_Slots$25>;
1880
+ declare const _default$47: typeof __VLS_export$58;
1881
+ type __VLS_WithSlots$25<T, S> = T & {
1882
+ new (): {
1883
+ $slots: S;
1884
+ };
1885
+ };
1886
+ //#endregion
1887
+ //#region src/components/form-controls/RadioGroup.vue.d.ts
1888
+ type V$1 = string | number;
1889
+ type __VLS_Props$57 = {
1890
+ direction?: 'horizontal' | 'vertical';
1891
+ modelValue?: V$1 | null;
1892
+ disabled?: boolean;
1893
+ /** 选择动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用组内选择 */
1894
+ action?: ActionLike;
1895
+ };
1896
+ declare var __VLS_1$12: {};
1897
+ type __VLS_Slots$24 = {} & {
1898
+ default?: (props: typeof __VLS_1$12) => any;
1899
+ };
1900
+ declare const __VLS_base$24: DefineComponent<__VLS_Props$57, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1901
+ "update:modelValue": (value: V$1 | null) => any;
1902
+ actionError: (error: unknown) => any;
1903
+ }, string, PublicProps, Readonly<__VLS_Props$57> & Readonly<{
1904
+ "onUpdate:modelValue"?: ((value: V$1 | null) => any) | undefined;
1905
+ onActionError?: ((error: unknown) => any) | undefined;
1906
+ }>, {
1907
+ disabled: boolean;
1908
+ action: ActionLike;
1909
+ modelValue: V$1 | null;
1910
+ direction: "horizontal" | "vertical";
1911
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1912
+ declare const __VLS_export$57: __VLS_WithSlots$24<typeof __VLS_base$24, __VLS_Slots$24>;
1913
+ declare const _default$48: typeof __VLS_export$57;
1914
+ type __VLS_WithSlots$24<T, S> = T & {
1915
+ new (): {
1916
+ $slots: S;
1917
+ };
1918
+ };
1919
+ //#endregion
1920
+ //#region src/components/form-controls/Switch.vue.d.ts
1921
+ type __VLS_Props$56 = {
1922
+ modelValue?: boolean;
1923
+ label?: string;
1924
+ disabled?: boolean;
1925
+ name?: string;
1926
+ };
1927
+ declare const __VLS_export$56: DefineComponent<__VLS_Props$56, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1928
+ change: (value: boolean) => any;
1929
+ "update:modelValue": (value: boolean) => any;
1930
+ }, string, PublicProps, Readonly<__VLS_Props$56> & Readonly<{
1931
+ onChange?: ((value: boolean) => any) | undefined;
1932
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1933
+ }>, {
1934
+ disabled: boolean;
1935
+ name: string;
1936
+ modelValue: boolean;
1937
+ label: string;
1938
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1939
+ declare const _default$58: typeof __VLS_export$56;
1940
+ //#endregion
1941
+ //#region src/components/form-controls/InputNumber.vue.d.ts
1942
+ type __VLS_Props$55 = {
1943
+ modelValue?: number | null;
1944
+ min?: number;
1945
+ max?: number;
1946
+ step?: number;
1947
+ /** 小数位数;缺省时按 step 推导 */
1948
+ precision?: number;
1949
+ disabled?: boolean;
1950
+ placeholder?: string;
1951
+ };
1952
+ declare const __VLS_export$55: DefineComponent<__VLS_Props$55, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1953
+ change: (value: number | null) => any;
1954
+ "update:modelValue": (value: number | null) => any;
1955
+ }, string, PublicProps, Readonly<__VLS_Props$55> & Readonly<{
1956
+ onChange?: ((value: number | null) => any) | undefined;
1957
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
1958
+ }>, {
1959
+ disabled: boolean;
1960
+ max: number;
1961
+ precision: number;
1962
+ modelValue: number | null;
1963
+ placeholder: string;
1964
+ min: number;
1965
+ step: number;
1966
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1967
+ declare const _default$32: typeof __VLS_export$55;
1968
+ //#endregion
1969
+ //#region src/components/form-controls/Rate.vue.d.ts
1970
+ type __VLS_Props$54 = {
1971
+ modelValue?: number;
1972
+ /** 星星总数 */
1973
+ count?: number;
1974
+ disabled?: boolean;
1975
+ /** 只读态(不可交互) */
1976
+ readonly?: boolean;
1977
+ /** 是否允许半星 */
1978
+ allowHalf?: boolean;
1979
+ /** 是否允许清除(再次点击同值取消) */
1980
+ allowClear?: boolean;
1981
+ /** 评分动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用评分 */
1982
+ action?: ActionLike;
1983
+ };
1984
+ declare const __VLS_export$54: DefineComponent<__VLS_Props$54, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1985
+ change: (value: number) => any;
1986
+ "update:modelValue": (value: number) => any;
1987
+ actionError: (error: unknown) => any;
1988
+ hoverChange: (value: number) => any;
1989
+ }, string, PublicProps, Readonly<__VLS_Props$54> & Readonly<{
1990
+ onChange?: ((value: number) => any) | undefined;
1991
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
1992
+ onActionError?: ((error: unknown) => any) | undefined;
1993
+ onHoverChange?: ((value: number) => any) | undefined;
1994
+ }>, {
1995
+ disabled: boolean;
1996
+ action: ActionLike;
1997
+ count: number;
1998
+ modelValue: number;
1999
+ readonly: boolean;
2000
+ allowHalf: boolean;
2001
+ allowClear: boolean;
2002
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2003
+ declare const _default$49: typeof __VLS_export$54;
2004
+ //#endregion
2005
+ //#region src/components/form-controls/Segmented.vue.d.ts
2006
+ interface SegmentedOption {
2007
+ label: string;
2008
+ value: string | number;
2009
+ disabled?: boolean;
2010
+ }
2011
+ type __VLS_Props$53 = {
2012
+ options: SegmentedOption[];
2013
+ modelValue?: string | number;
2014
+ disabled?: boolean;
2015
+ size?: 'sm' | 'md';
2016
+ /** 分段选择动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用选择 */
2017
+ action?: ActionLike;
2018
+ };
2019
+ declare const __VLS_export$53: DefineComponent<__VLS_Props$53, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2020
+ change: (value: string | number) => any;
2021
+ "update:modelValue": (value: string | number) => any;
2022
+ actionError: (error: unknown) => any;
2023
+ }, string, PublicProps, Readonly<__VLS_Props$53> & Readonly<{
2024
+ onChange?: ((value: string | number) => any) | undefined;
2025
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
2026
+ onActionError?: ((error: unknown) => any) | undefined;
2027
+ }>, {
2028
+ size: "md" | "sm";
2029
+ disabled: boolean;
2030
+ action: ActionLike;
2031
+ modelValue: string | number;
2032
+ options: SegmentedOption[];
2033
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2034
+ declare const _default$51: typeof __VLS_export$53;
2035
+ //#endregion
2036
+ //#region src/components/form-controls/AutoComplete.vue.d.ts
2037
+ type __VLS_Props$52 = {
2038
+ modelValue?: string;
2039
+ /** 静态候选(本地包含匹配) */
2040
+ options?: string[];
2041
+ /**
2042
+ * 异步候选源。统一签名:(query: { keyword, signal }) => Promise。
2043
+ * 返回数组 / { list, total } 作为候选;兼容旧的 (keyword: string) => Promise<string[]>。
2044
+ */
2045
+ fetch?: Fetch$1<string> | ((keyword: string) => Promise<string[]>);
2046
+ /**
2047
+ * 订阅数据:挂载时调用,resolve 出的候选列表用于本地包含匹配。
2048
+ * 优先级:subscribe > fetch > options
2049
+ */
2050
+ subscribe?: SubscribeHandler<string[]>;
2051
+ placeholder?: string;
2052
+ disabled?: boolean;
2053
+ /** 聚焦时是否即触发建议 */
2054
+ triggerOnFocus?: boolean;
2055
+ /** 防抖时长(异步源生效) */
2056
+ debounce?: number;
2057
+ /** 触发请求的最小关键词长度 */
2058
+ minKeywordLength?: number;
2059
+ };
2060
+ declare var __VLS_8: {
2061
+ option: string;
2062
+ index: number;
2063
+ active: boolean;
2064
+ };
2065
+ type __VLS_Slots$23 = {} & {
2066
+ option?: (props: typeof __VLS_8) => any;
2067
+ };
2068
+ declare const __VLS_base$23: DefineComponent<__VLS_Props$52, {
2069
+ focus: () => void | undefined;
2070
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2071
+ change: (value: string) => any;
2072
+ "update:modelValue": (value: string) => any;
2073
+ select: (value: string) => any;
2074
+ }, string, PublicProps, Readonly<__VLS_Props$52> & Readonly<{
2075
+ onChange?: ((value: string) => any) | undefined;
2076
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
2077
+ onSelect?: ((value: string) => any) | undefined;
2078
+ }>, {
2079
+ disabled: boolean;
2080
+ subscribe: SubscribeHandler<string[]>;
2081
+ fetch: Fetch$1<string> | ((keyword: string) => Promise<string[]>);
2082
+ modelValue: string;
2083
+ options: string[];
2084
+ placeholder: string;
2085
+ triggerOnFocus: boolean;
2086
+ debounce: number;
2087
+ minKeywordLength: number;
2088
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2089
+ declare const __VLS_export$52: __VLS_WithSlots$23<typeof __VLS_base$23, __VLS_Slots$23>;
2090
+ declare const _default$3: typeof __VLS_export$52;
2091
+ type __VLS_WithSlots$23<T, S> = T & {
2092
+ new (): {
2093
+ $slots: S;
2094
+ };
2095
+ };
2096
+ //#endregion
2097
+ //#region src/components/form-controls/Mention.vue.d.ts
2098
+ type __VLS_Props$51 = {
2099
+ /** 本地候选成员;与 fetch 二选一 */
2100
+ members?: string[];
2101
+ /**
2102
+ * 异步候选源(输入触发符后的片段作为关键词)。
2103
+ * 统一签名 (query: { keyword, signal }),兼容旧的 (keyword: string)。
2104
+ */
2105
+ fetch?: Fetch$1<string> | ((keyword: string) => Promise<string[]>);
2106
+ /**
2107
+ * 订阅数据:挂载时调用,resolve 出的成员列表用于本地包含匹配。
2108
+ * 优先级:subscribe > fetch > members
2109
+ */
2110
+ subscribe?: SubscribeHandler<string[]>;
2111
+ /** 触发符,默认 @ */
2112
+ trigger?: string;
2113
+ placeholder?: string;
2114
+ modelValue?: string;
2115
+ debounce?: number;
2116
+ };
2117
+ declare const __VLS_export$51: DefineComponent<__VLS_Props$51, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2118
+ "update:modelValue": (value: string) => any;
2119
+ select: (member: string) => any;
2120
+ }, string, PublicProps, Readonly<__VLS_Props$51> & Readonly<{
2121
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
2122
+ onSelect?: ((member: string) => any) | undefined;
2123
+ }>, {
2124
+ subscribe: SubscribeHandler<string[]>;
2125
+ fetch: Fetch$1<string> | ((keyword: string) => Promise<string[]>);
2126
+ modelValue: string;
2127
+ placeholder: string;
2128
+ debounce: number;
2129
+ trigger: string;
2130
+ members: string[];
2131
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2132
+ declare const _default$36: typeof __VLS_export$51;
2133
+ //#endregion
2134
+ //#region src/components/form-controls/fields.d.ts
2135
+ /**
2136
+ * 字段竞选:字段定义驱动的表单控件推断机制,与单元格竞选同构。
2137
+ *
2138
+ * 每个 Field 对完整字段定义自我评价返回适配度分数(正数越大越适配,0 弃权),
2139
+ * 竞选代理按字段裁决取最高分(同分先注册者优先),无正分回落默认文本输入框。
2140
+ * 优先级链路:字段插槽 > 显式指定 control > 竞选推断 > 默认输入框。
2141
+ */
2142
+ /** 竞选输入:完整字段定义(ResourceField 结构兼容)。type / format 只是常用字段,宿主附加的自定义字段同样进入评价输入 */
2143
+ interface FormFieldMeta {
2144
+ name: string;
2145
+ label: string;
2146
+ /** 保存格式提示:string / number / boolean / date / datetime / enum */
2147
+ type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
2148
+ /** 内容格式提示:email / uri / textarea / password…(原样透传文档声明) */
2149
+ format?: string;
2150
+ /** 枚举选项:select Field 据此装配选项 */
2151
+ options?: Array<{
2152
+ label: string;
2153
+ value: string | number;
2154
+ }>;
2155
+ /** 必填:自动派生必填校验规则 */
2156
+ required?: boolean;
2157
+ /** 占位提示,缺省回落 label */
2158
+ placeholder?: string;
2159
+ /** 显式指定控件渲染器名称(如 'select'),指定即生效,跳过竞选 */
2160
+ control?: string;
2161
+ /** 竞选加成:对指定渲染器加减分,正负均可,裁决前应用 */
2162
+ bias?: Record<string, number>;
2163
+ }
2164
+ /** 装配上下文:控件的值与错误经此接入表单 */
2165
+ interface FieldContext {
2166
+ /** 字段名 */
2167
+ name: string;
2168
+ disabled: boolean;
2169
+ /** 当前校验错误信息(无错误为 undefined) */
2170
+ error: string | undefined;
2171
+ /** 写回整表值;已存在错误的字段写回后自动重新校验 */
2172
+ setValue: (value: unknown) => void;
2173
+ }
2174
+ /** 控件渲染器契约:自包含,只声明「擅长什么、怎么装配」 */
2175
+ interface FieldRenderer {
2176
+ /** 注册名:显式指定的目标;同名重注册替换既有实现(含内建) */
2177
+ name: string;
2178
+ /** 自我评价:完整字段定义 → 适配度分数,0 表示弃权;纯函数、无副作用,不读字段值 */
2179
+ fitness: (field: FormFieldMeta) => number;
2180
+ /** 装配:值 + 字段定义 + 上下文 → 控件节点;值类型语义由选中控件自身定义 */
2181
+ render: (value: unknown, field: FormFieldMeta, ctx: FieldContext) => VNodeChild;
2182
+ }
2183
+ /** 注册控件渲染器:参与全局竞选;同名替换既有实现(含内建) */
2184
+ export declare function registerField(field: FieldRenderer): void;
2185
+ //#endregion
2186
+ //#region src/components/form-controls/Form.vue.d.ts
2187
+ type FormValues = Record<string, unknown>;
2188
+ type __VLS_Props$50 = {
2189
+ /** 整表值(受控或作为初始值) */
2190
+ modelValue?: FormValues;
2191
+ rules?: FormRules<FormValues>;
2192
+ disabled?: boolean;
2193
+ /** 标签摆放位置 */
2194
+ labelPosition?: 'top' | 'left';
2195
+ labelWidth?: string;
2196
+ /** 字段元数据:绑定后自动生成表单(字段竞选推断控件),生成字段在前、插槽在后 */
2197
+ properties?: FormFieldMeta[];
2198
+ /** 局部控件渲染器:与全局注册共同参与竞选,同名显式指定与同分时局部优先 */
2199
+ controls?: FieldRenderer[];
2200
+ };
2201
+ declare var __VLS_9$4: `field-${any}`, __VLS_10$1: {
2202
+ field: FormFieldMeta;
2203
+ value: unknown;
2204
+ error: string | undefined;
2205
+ setValue: (next: unknown) => void;
2206
+ }, __VLS_17$2: {
2207
+ values: FormValues;
2208
+ errors: Record<string, string | undefined>;
2209
+ valid: boolean;
2210
+ dirty: boolean;
2211
+ submit: () => Promise<void>;
2212
+ reset: () => void;
2213
+ };
2214
+ type __VLS_Slots$22 = {} & { [K in NonNullable<typeof __VLS_9$4>]?: (props: typeof __VLS_10$1) => any; } & {
2215
+ default?: (props: typeof __VLS_17$2) => any;
2216
+ };
2217
+ declare const __VLS_base$22: DefineComponent<__VLS_Props$50, {
2218
+ values: FormValues;
2219
+ errors: Record<string, string | undefined>;
2220
+ valid: WritableComputedRef<boolean, boolean>;
2221
+ dirty: WritableComputedRef<boolean, boolean>;
2222
+ validate: () => Promise<boolean>;
2223
+ validateField: (name: string | number) => Promise<string | true>;
2224
+ reset: () => void;
2225
+ clearValidate: (name?: string | number) => void;
2226
+ submit: () => Promise<void>;
2227
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2228
+ "update:modelValue": (values: FormValues) => any;
2229
+ invalid: (errors: Record<string, string | undefined>) => any;
2230
+ submit: (values: FormValues) => any;
2231
+ }, string, PublicProps, Readonly<__VLS_Props$50> & Readonly<{
2232
+ "onUpdate:modelValue"?: ((values: FormValues) => any) | undefined;
2233
+ onInvalid?: ((errors: Record<string, string | undefined>) => any) | undefined;
2234
+ onSubmit?: ((values: FormValues) => any) | undefined;
2235
+ }>, {
2236
+ disabled: boolean;
2237
+ modelValue: FormValues;
2238
+ rules: Partial<Record<string, FormRule<unknown>[] | FormRule<unknown>>>;
2239
+ labelPosition: "top" | "left";
2240
+ labelWidth: string;
2241
+ properties: FormFieldMeta[];
2242
+ controls: FieldRenderer[];
2243
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2244
+ declare const __VLS_export$50: __VLS_WithSlots$22<typeof __VLS_base$22, __VLS_Slots$22>;
2245
+ declare const _default$26: typeof __VLS_export$50;
2246
+ type __VLS_WithSlots$22<T, S> = T & {
2247
+ new (): {
2248
+ $slots: S;
2249
+ };
2250
+ };
2251
+ //#endregion
2252
+ //#region src/components/form-controls/FormItem.vue.d.ts
2253
+ type __VLS_Props$49 = {
2254
+ /** 字段名:与表单 rules/values 对应,并用于错误提示联动 */
2255
+ name?: string;
2256
+ label?: string;
2257
+ required?: boolean;
2258
+ /** 外部直接指定错误信息;非空时优先于表单上下文中的错误 */
2259
+ error?: string;
2260
+ };
2261
+ declare var __VLS_1$11: {
2262
+ error: string;
2263
+ };
2264
+ type __VLS_Slots$21 = {} & {
2265
+ default?: (props: typeof __VLS_1$11) => any;
2266
+ };
2267
+ declare const __VLS_base$21: DefineComponent<__VLS_Props$49, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$49> & Readonly<{}>, {
2268
+ error: string;
2269
+ name: string;
2270
+ required: boolean;
2271
+ label: string;
2272
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2273
+ declare const __VLS_export$49: __VLS_WithSlots$21<typeof __VLS_base$21, __VLS_Slots$21>;
2274
+ declare const _default$27: typeof __VLS_export$49;
2275
+ type __VLS_WithSlots$21<T, S> = T & {
2276
+ new (): {
2277
+ $slots: S;
2278
+ };
2279
+ };
2280
+ //#endregion
2281
+ //#region src/components/form-controls/TreeSelect.vue.d.ts
2282
+ interface TreeSelectNode {
2283
+ key: string;
2284
+ label: string;
2285
+ disabled?: boolean;
2286
+ children?: TreeSelectNode[];
2287
+ /** 远程懒加载时显式标记:true 叶子;false 表示子级尚未加载 */
2288
+ leaf?: boolean;
2289
+ }
2290
+ type __VLS_Props$48 = {
2291
+ nodes?: TreeSelectNode[];
2292
+ modelValue?: string | null;
2293
+ placeholder?: string;
2294
+ disabled?: boolean;
2295
+ /** 可搜索(关键词过滤并自动展开命中路径) */
2296
+ filterable?: boolean;
2297
+ defaultExpandAll?: boolean;
2298
+ /**
2299
+ * 统一远程请求:挂载拉取根节点;展开未加载节点时以
2300
+ * { filters: { parentKey } } 拉取子级,返回节点数组或 { list, total }
2301
+ */
2302
+ fetch?: Fetch$1<TreeSelectNode>;
2303
+ /**
2304
+ * 订阅数据:挂载时调用,resolve 出的节点用于渲染(完整树,非懒加载)。
2305
+ * 优先级:subscribe > fetch > nodes
2306
+ */
2307
+ subscribe?: SubscribeHandler<TreeSelectNode[]>;
2308
+ };
2309
+ declare const __VLS_export$48: DefineComponent<__VLS_Props$48, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2310
+ change: (value: string | null) => any;
2311
+ "update:modelValue": (value: string | null) => any;
2312
+ }, string, PublicProps, Readonly<__VLS_Props$48> & Readonly<{
2313
+ onChange?: ((value: string | null) => any) | undefined;
2314
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
2315
+ }>, {
2316
+ disabled: boolean;
2317
+ subscribe: SubscribeHandler<TreeSelectNode[]>;
2318
+ fetch: Fetch$1<TreeSelectNode>;
2319
+ modelValue: string | null;
2320
+ placeholder: string;
2321
+ filterable: boolean;
2322
+ nodes: TreeSelectNode[];
2323
+ defaultExpandAll: boolean;
2324
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2325
+ declare const _default$68: typeof __VLS_export$48;
2326
+ //#endregion
2327
+ //#region src/components/form-controls/Slider.vue.d.ts
2328
+ type SliderValue = number | [number, number];
2329
+ interface SliderMark {
2330
+ value: number;
2331
+ label?: string;
2332
+ }
2333
+ type __VLS_Props$47 = {
2334
+ modelValue?: SliderValue;
2335
+ min?: number;
2336
+ max?: number;
2337
+ step?: number;
2338
+ disabled?: boolean;
2339
+ /** 区间选择:modelValue 为 [低值, 高值] */
2340
+ range?: boolean;
2341
+ /** 刻度(数值或 { value, label }) */
2342
+ marks?: Array<number | SliderMark>;
2343
+ /** 是否显示当前值文字 */
2344
+ showValue?: boolean;
2345
+ /** 滑动动作:最终值变更时执行(拖动过程仅预览,松手后提交),动作失败自动回退旧值 */
2346
+ action?: ActionLike;
2347
+ };
2348
+ declare const __VLS_export$47: DefineComponent<__VLS_Props$47, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2349
+ change: (value: SliderValue) => any;
2350
+ "update:modelValue": (value: SliderValue) => any;
2351
+ actionError: (error: unknown) => any;
2352
+ }, string, PublicProps, Readonly<__VLS_Props$47> & Readonly<{
2353
+ onChange?: ((value: SliderValue) => any) | undefined;
2354
+ "onUpdate:modelValue"?: ((value: SliderValue) => any) | undefined;
2355
+ onActionError?: ((error: unknown) => any) | undefined;
2356
+ }>, {
2357
+ disabled: boolean;
2358
+ action: ActionLike;
2359
+ max: number;
2360
+ modelValue: SliderValue;
2361
+ min: number;
2362
+ step: number;
2363
+ range: boolean;
2364
+ marks: (number | SliderMark)[];
2365
+ showValue: boolean;
2366
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2367
+ declare const _default$54: typeof __VLS_export$47;
2368
+ //#endregion
2369
+ //#region src/components/overlay/Dialog.vue.d.ts
2370
+ type __VLS_Props$46 = {
2371
+ /** v-model:open 控制开合 */
2372
+ open?: boolean;
2373
+ title?: string;
2374
+ width?: string;
2375
+ closable?: boolean;
2376
+ /** 点击遮罩是否关闭 */
2377
+ maskClosable?: boolean;
2378
+ /** ESC 是否关闭 */
2379
+ escClosable?: boolean;
2380
+ /** 是否锁定背景滚动 */
2381
+ lockScroll?: boolean;
2382
+ /** Teleport 目标,默认 body */
2383
+ appendTo?: string | HTMLElement;
2384
+ /** 确认动作:未提供 footer 插槽时渲染默认底部按钮,动作失败保持打开并展示错误提示 */
2385
+ action?: ActionLike;
2386
+ /** 默认底部确认按钮文案 */
2387
+ confirmText?: string;
2388
+ /** 默认底部取消按钮文案 */
2389
+ cancelText?: string;
2390
+ /** 动作失败时的回退文案 */
2391
+ errorText?: string;
2392
+ };
2393
+ declare var __VLS_15$1: {}, __VLS_17$1: {}, __VLS_19: {};
2394
+ type __VLS_Slots$20 = {} & {
2395
+ title?: (props: typeof __VLS_15$1) => any;
2396
+ } & {
2397
+ default?: (props: typeof __VLS_17$1) => any;
2398
+ } & {
2399
+ footer?: (props: typeof __VLS_19) => any;
2400
+ };
2401
+ declare const __VLS_base$20: DefineComponent<__VLS_Props$46, {
2402
+ open: () => void;
2403
+ close: () => void;
2404
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2405
+ close: () => any;
2406
+ actionError: (error: unknown) => any;
2407
+ open: () => any;
2408
+ "update:open": (value: boolean) => any;
2409
+ confirm: () => any;
2410
+ cancel: () => any;
2411
+ }, string, PublicProps, Readonly<__VLS_Props$46> & Readonly<{
2412
+ onClose?: (() => any) | undefined;
2413
+ onActionError?: ((error: unknown) => any) | undefined;
2414
+ onOpen?: (() => any) | undefined;
2415
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
2416
+ onConfirm?: (() => any) | undefined;
2417
+ onCancel?: (() => any) | undefined;
2418
+ }>, {
2419
+ action: ActionLike;
2420
+ errorText: string;
2421
+ title: string;
2422
+ closable: boolean;
2423
+ open: boolean;
2424
+ maskClosable: boolean;
2425
+ escClosable: boolean;
2426
+ lockScroll: boolean;
2427
+ appendTo: string | HTMLElement;
2428
+ confirmText: string;
2429
+ cancelText: string;
2430
+ width: string;
2431
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2432
+ declare const __VLS_export$46: __VLS_WithSlots$20<typeof __VLS_base$20, __VLS_Slots$20>;
2433
+ declare const _default$20: typeof __VLS_export$46;
2434
+ type __VLS_WithSlots$20<T, S> = T & {
2435
+ new (): {
2436
+ $slots: S;
2437
+ };
2438
+ };
2439
+ //#endregion
2440
+ //#region src/components/overlay/Drawer.vue.d.ts
2441
+ type __VLS_Props$45 = {
2442
+ /** v-model:open 控制开合 */
2443
+ open?: boolean;
2444
+ title?: string;
2445
+ /** 滑出方向 */
2446
+ direction?: 'left' | 'right' | 'top' | 'bottom';
2447
+ /** 面板尺寸(左右为宽度,上下为高度) */
2448
+ size?: string;
2449
+ closable?: boolean;
2450
+ maskClosable?: boolean;
2451
+ escClosable?: boolean;
2452
+ lockScroll?: boolean;
2453
+ appendTo?: string | HTMLElement;
2454
+ /** 确认动作:未提供 footer 插槽时渲染默认底部按钮,动作失败保持打开并展示错误提示 */
2455
+ action?: ActionLike;
2456
+ /** 默认底部确认按钮文案 */
2457
+ confirmText?: string;
2458
+ /** 默认底部取消按钮文案 */
2459
+ cancelText?: string;
2460
+ /** 动作失败时的回退文案 */
2461
+ errorText?: string;
2462
+ };
2463
+ declare var __VLS_15: {}, __VLS_17: {};
2464
+ type __VLS_Slots$19 = {} & {
2465
+ default?: (props: typeof __VLS_15) => any;
2466
+ } & {
2467
+ footer?: (props: typeof __VLS_17) => any;
2468
+ };
2469
+ declare const __VLS_base$19: DefineComponent<__VLS_Props$45, {
2470
+ open: () => void;
2471
+ close: () => void;
2472
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2473
+ close: () => any;
2474
+ actionError: (error: unknown) => any;
2475
+ open: () => any;
2476
+ "update:open": (value: boolean) => any;
2477
+ confirm: () => any;
2478
+ cancel: () => any;
2479
+ }, string, PublicProps, Readonly<__VLS_Props$45> & Readonly<{
2480
+ onClose?: (() => any) | undefined;
2481
+ onActionError?: ((error: unknown) => any) | undefined;
2482
+ onOpen?: (() => any) | undefined;
2483
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
2484
+ onConfirm?: (() => any) | undefined;
2485
+ onCancel?: (() => any) | undefined;
2486
+ }>, {
2487
+ size: string;
2488
+ action: ActionLike;
2489
+ errorText: string;
2490
+ title: string;
2491
+ closable: boolean;
2492
+ direction: "top" | "bottom" | "left" | "right";
2493
+ open: boolean;
2494
+ maskClosable: boolean;
2495
+ escClosable: boolean;
2496
+ lockScroll: boolean;
2497
+ appendTo: string | HTMLElement;
2498
+ confirmText: string;
2499
+ cancelText: string;
2500
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2501
+ declare const __VLS_export$45: __VLS_WithSlots$19<typeof __VLS_base$19, __VLS_Slots$19>;
2502
+ declare const _default$22: typeof __VLS_export$45;
2503
+ type __VLS_WithSlots$19<T, S> = T & {
2504
+ new (): {
2505
+ $slots: S;
2506
+ };
2507
+ };
2508
+ //#endregion
2509
+ //#region src/components/overlay/Dropdown.vue.d.ts
2510
+ interface DropdownItem {
2511
+ key: string;
2512
+ label: string;
2513
+ disabled?: boolean;
2514
+ /** 渲染为分隔线(其余字段忽略) */
2515
+ divider?: boolean;
2516
+ }
2517
+ type __VLS_Props$44 = {
2518
+ /** 数据驱动菜单项;不传时使用默认插槽 */
2519
+ items?: DropdownItem[];
2520
+ trigger?: PopoverTrigger;
2521
+ placement?: Placement;
2522
+ open?: boolean;
2523
+ disabled?: boolean;
2524
+ };
2525
+ declare var __VLS_1$10: {}, __VLS_10: {};
2526
+ type __VLS_Slots$18 = {} & {
2527
+ trigger?: (props: typeof __VLS_1$10) => any;
2528
+ } & {
2529
+ default?: (props: typeof __VLS_10) => any;
2530
+ };
2531
+ declare const __VLS_base$18: DefineComponent<__VLS_Props$44, {
2532
+ open: () => void;
2533
+ close: () => void;
2534
+ toggle: (next?: boolean) => void;
2535
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2536
+ select: (item: DropdownItem) => any;
2537
+ "update:open": (value: boolean) => any;
2538
+ }, string, PublicProps, Readonly<__VLS_Props$44> & Readonly<{
2539
+ onSelect?: ((item: DropdownItem) => any) | undefined;
2540
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
2541
+ }>, {
2542
+ disabled: boolean;
2543
+ trigger: PopoverTrigger;
2544
+ placement: Placement;
2545
+ open: boolean;
2546
+ items: DropdownItem[];
2547
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2548
+ declare const __VLS_export$44: __VLS_WithSlots$18<typeof __VLS_base$18, __VLS_Slots$18>;
2549
+ declare const _default$23: typeof __VLS_export$44;
2550
+ type __VLS_WithSlots$18<T, S> = T & {
2551
+ new (): {
2552
+ $slots: S;
2553
+ };
2554
+ };
2555
+ //#endregion
2556
+ //#region src/components/overlay/Popover.vue.d.ts
2557
+ type __VLS_Props$43 = {
2558
+ title?: string;
2559
+ trigger?: PopoverTrigger;
2560
+ placement?: Placement;
2561
+ open?: boolean;
2562
+ openDelay?: number;
2563
+ closeDelay?: number;
2564
+ disabled?: boolean;
2565
+ };
2566
+ declare var __VLS_1$9: {}, __VLS_9$3: {}, __VLS_11: {
2567
+ close: () => void;
2568
+ };
2569
+ type __VLS_Slots$17 = {} & {
2570
+ trigger?: (props: typeof __VLS_1$9) => any;
2571
+ } & {
2572
+ default?: (props: typeof __VLS_9$3) => any;
2573
+ } & {
2574
+ footer?: (props: typeof __VLS_11) => any;
2575
+ };
2576
+ declare const __VLS_base$17: DefineComponent<__VLS_Props$43, {
2577
+ open: () => void;
2578
+ close: () => void;
2579
+ toggle: (next?: boolean) => void;
2580
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2581
+ "update:open": (value: boolean) => any;
2582
+ }, string, PublicProps, Readonly<__VLS_Props$43> & Readonly<{
2583
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
2584
+ }>, {
2585
+ disabled: boolean;
2586
+ title: string;
2587
+ trigger: PopoverTrigger;
2588
+ placement: Placement;
2589
+ open: boolean;
2590
+ openDelay: number;
2591
+ closeDelay: number;
2592
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2593
+ declare const __VLS_export$43: __VLS_WithSlots$17<typeof __VLS_base$17, __VLS_Slots$17>;
2594
+ declare const _default$44: typeof __VLS_export$43;
2595
+ type __VLS_WithSlots$17<T, S> = T & {
2596
+ new (): {
2597
+ $slots: S;
2598
+ };
2599
+ };
2600
+ //#endregion
2601
+ //#region src/components/overlay/Popconfirm.vue.d.ts
2602
+ type __VLS_Props$42 = {
2603
+ /** 确认气泡文案 */
2604
+ text?: string;
2605
+ confirmText?: string;
2606
+ cancelText?: string;
2607
+ placement?: Placement;
2608
+ open?: boolean;
2609
+ /** 点击确认时执行的异步动作,执行期间按钮进入 loading/禁用态 */
2610
+ action?: ActionLike;
2611
+ disabled?: boolean;
2612
+ };
2613
+ declare var __VLS_1$8: {};
2614
+ type __VLS_Slots$16 = {} & {
2615
+ default?: (props: typeof __VLS_1$8) => any;
2616
+ };
2617
+ declare const __VLS_base$16: DefineComponent<__VLS_Props$42, {
2618
+ open: () => void;
2619
+ close: () => void;
2620
+ toggle: (next?: boolean) => void;
2621
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2622
+ "update:open": (value: boolean) => any;
2623
+ confirm: () => any;
2624
+ cancel: () => any;
2625
+ }, string, PublicProps, Readonly<__VLS_Props$42> & Readonly<{
2626
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
2627
+ onConfirm?: (() => any) | undefined;
2628
+ onCancel?: (() => any) | undefined;
2629
+ }>, {
2630
+ disabled: boolean;
2631
+ action: ActionLike;
2632
+ text: string;
2633
+ placement: Placement;
2634
+ open: boolean;
2635
+ confirmText: string;
2636
+ cancelText: string;
2637
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2638
+ declare const __VLS_export$42: __VLS_WithSlots$16<typeof __VLS_base$16, __VLS_Slots$16>;
2639
+ declare const _default$43: typeof __VLS_export$42;
2640
+ type __VLS_WithSlots$16<T, S> = T & {
2641
+ new (): {
2642
+ $slots: S;
2643
+ };
2644
+ };
2645
+ //#endregion
2646
+ //#region src/components/overlay/Tooltip.vue.d.ts
2647
+ type __VLS_Props$41 = {
2648
+ content?: string;
2649
+ /** 气泡出现位置 */
2650
+ placement?: Placement;
2651
+ /** 打开延迟(毫秒) */
2652
+ openDelay?: number;
2653
+ /** 关闭延迟(毫秒) */
2654
+ closeDelay?: number;
2655
+ disabled?: boolean;
2656
+ };
2657
+ declare var __VLS_1$7: {}, __VLS_9$2: {};
2658
+ type __VLS_Slots$15 = {} & {
2659
+ default?: (props: typeof __VLS_1$7) => any;
2660
+ } & {
2661
+ content?: (props: typeof __VLS_9$2) => any;
2662
+ };
2663
+ declare const __VLS_base$15: DefineComponent<__VLS_Props$41, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$41> & Readonly<{}>, {
2664
+ disabled: boolean;
2665
+ placement: Placement;
2666
+ openDelay: number;
2667
+ closeDelay: number;
2668
+ content: string;
2669
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2670
+ declare const __VLS_export$41: __VLS_WithSlots$15<typeof __VLS_base$15, __VLS_Slots$15>;
2671
+ declare const _default$64: typeof __VLS_export$41;
2672
+ type __VLS_WithSlots$15<T, S> = T & {
2673
+ new (): {
2674
+ $slots: S;
2675
+ };
2676
+ };
2677
+ //#endregion
2678
+ //#region src/components/data-display/cells.d.ts
2679
+ /**
2680
+ * 单元格竞选:列定义驱动的单元格渲染机制。
2681
+ *
2682
+ * 每个 Cell 对完整列定义自我评价返回适配度分数(正数越大越适配,0 弃权),
2683
+ * 竞选代理按列裁决取最高分(同分先注册者优先),无正分回落默认文本。
2684
+ * 优先级链路:插槽 > 显式指定 cell > 竞选推断 > 默认文本。
2685
+ */
2686
+ /** 竞选输入:完整列定义。type / format 只是常用字段,宿主附加的自定义字段同样进入评价输入 */
2687
+ interface CellColumn {
2688
+ key: string;
2689
+ title: string;
2690
+ /** 保存格式提示:string / number / boolean / date / datetime / enum */
2691
+ type?: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
2692
+ /** 内容格式提示:email / uri / tag / status…(原样透传文档声明) */
2693
+ format?: string;
2694
+ /** 枚举选项:enum 单元格据此显示 label */
2695
+ options?: Array<{
2696
+ label: string;
2697
+ value: string | number;
2698
+ }>;
2699
+ /** 筛选项:与 options 同形,enum 单元格回落使用 */
2700
+ filters?: Array<{
2701
+ label: string;
2702
+ value: string | number;
2703
+ }>;
2704
+ /** 显式指定单元格渲染器名称,跳过竞选 */
2705
+ cell?: string;
2706
+ /** 竞选加成:对指定渲染器加减分,正负均可,裁决前应用 */
2707
+ bias?: Record<string, number>;
2708
+ }
2709
+ /** 单元格渲染器契约:自包含,只声明「擅长什么、怎么渲染」 */
2710
+ interface CellRenderer {
2711
+ /** 注册名:显式指定的目标;同名重注册替换既有实现(含内建) */
2712
+ name: string;
2713
+ /** 自我评价:完整列定义 → 适配度分数,0 表示弃权;纯函数、无副作用,不读单元格值 */
2714
+ fitness: (column: CellColumn) => number;
2715
+ /** 渲染:值 → 展示内容;需自行处理空值与越界值 */
2716
+ render: (value: unknown, column: CellColumn) => VNodeChild;
2717
+ }
2718
+ /** 注册单元格渲染器:参与全局竞选;同名替换既有实现(含内建) */
2719
+ export declare function registerCell(cell: CellRenderer): void;
2720
+ //#endregion
2721
+ //#region src/components/data-display/Table.vue.d.ts
2722
+ interface TableColumn {
2723
+ key: string;
2724
+ title: string;
2725
+ width?: string;
2726
+ align?: 'left' | 'center' | 'right';
2727
+ /** 保存格式提示(string / number / boolean / date / datetime / enum):单元格竞选的评分输入,资源池投影自动携带 */
2728
+ type?: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
2729
+ /** 内容格式提示(email / uri / tag / status…):单元格竞选的评分输入,资源池投影自动携带 */
2730
+ format?: string;
2731
+ /** 枚举选项:type 为 enum 时据此显示 label */
2732
+ options?: Array<{
2733
+ label: string;
2734
+ value: string | number;
2735
+ }>;
2736
+ /** 显式指定单元格渲染器名称(如 'tag'),指定即生效,跳过竞选 */
2737
+ cell?: string;
2738
+ /** 竞选加成:对指定渲染器加减分(正负均可),可翻转竞选结果 */
2739
+ bias?: Record<string, number>;
2740
+ /** 该列可排序 */
2741
+ sortable?: boolean;
2742
+ /** 本地排序比较器;远程排序时仅回发状态 */
2743
+ sorter?: (a: Record<string, unknown>, b: Record<string, unknown>) => number;
2744
+ /** 筛选项(表头展示勾选面板) */
2745
+ filters?: Array<{
2746
+ label: string;
2747
+ value: string | number;
2748
+ }>;
2749
+ /** 自定义本地筛选谓词 */
2750
+ filterMethod?: (value: string | number, row: Record<string, unknown>) => boolean;
2751
+ }
2752
+ type Row = Record<string, unknown>;
2753
+ type __VLS_Props$40 = {
2754
+ columns: TableColumn[];
2755
+ rows?: Row[];
2756
+ striped?: boolean;
2757
+ loading?: boolean;
2758
+ emptyText?: string;
2759
+ /** 远程数据状态:传入后 rows/loading 由其派生,组件自身不发请求 */
2760
+ data?: AsyncStateLike<Row[]>;
2761
+ /**
2762
+ * 统一远程请求方法:只绑定方法,组件挂载即请求;
2763
+ * 翻页、排序、筛选变化自动以最新参数重取,返回数组或 { list, total }
2764
+ */
2765
+ fetch?: Fetch$1<Row>;
2766
+ /**
2767
+ * 订阅数据:挂载时调用,resolve 出的行数据用于渲染。
2768
+ * 优先级:subscribe > fetch > data > rows
2769
+ */
2770
+ subscribe?: SubscribeHandler<Row[]>;
2771
+ /** 远程数据总条数(本地数据默认取 rows 长度) */
2772
+ total?: number;
2773
+ rowKey?: (row: Row, index: number) => string | number;
2774
+ selectable?: boolean;
2775
+ expandable?: boolean;
2776
+ /** 是否内置分页条;绑定 v-model:current-page 时自动开启 */
2777
+ pagination?: boolean;
2778
+ /** 当前页(受控,v-model:current-page);不传为组件内部状态 */
2779
+ currentPage?: number;
2780
+ /** 每页条数;配合 @update:page-size 即 v-model:page-size 受控 */
2781
+ pageSize?: number;
2782
+ pageSizes?: number[];
2783
+ /** 排序状态(受控,v-model:sorter);不传为组件内部状态 */
2784
+ sorter?: {
2785
+ key: string;
2786
+ order: 'asc' | 'desc' | null;
2787
+ };
2788
+ /** 初始排序字段(非受控) */
2789
+ defaultSort?: {
2790
+ key: string;
2791
+ order: 'asc' | 'desc';
2792
+ };
2793
+ /** 局部单元格渲染器:与全局注册共同参与竞选,同名显式指定与同分时局部优先 */
2794
+ cells?: CellRenderer[];
2795
+ };
2796
+ declare var __VLS_6: `cell-${string}`, __VLS_7$5: {
2797
+ row: Row;
2798
+ value: unknown;
2799
+ }, __VLS_14: {
2800
+ row: Row;
2801
+ index: number;
2802
+ };
2803
+ type __VLS_Slots$14 = {} & { [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7$5) => any; } & {
2804
+ expanded?: (props: typeof __VLS_14) => any;
2805
+ };
2806
+ declare const __VLS_base$14: DefineComponent<__VLS_Props$40, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2807
+ change: (payload: {
2808
+ pagination: {
2809
+ currentPage: number;
2810
+ pageSize: number;
2811
+ };
2812
+ sorter: {
2813
+ key: string;
2814
+ order: "asc" | "desc" | null;
2815
+ };
2816
+ filters: Record<string, Array<string | number>>;
2817
+ }) => any;
2818
+ "update:selectedKeys": (keys: (string | number)[]) => any;
2819
+ "update:currentPage": (page: number) => any;
2820
+ "update:pageSize": (size: number) => any;
2821
+ "update:sorter": (sorter: {
2822
+ key: string;
2823
+ order: "asc" | "desc" | null;
2824
+ }) => any;
2825
+ rowExpand: (payload: {
2826
+ row: Row;
2827
+ expanded: boolean;
2828
+ key: string | number;
2829
+ }) => any;
2830
+ }, string, PublicProps, Readonly<__VLS_Props$40> & Readonly<{
2831
+ onChange?: ((payload: {
2832
+ pagination: {
2833
+ currentPage: number;
2834
+ pageSize: number;
2835
+ };
2836
+ sorter: {
2837
+ key: string;
2838
+ order: "asc" | "desc" | null;
2839
+ };
2840
+ filters: Record<string, Array<string | number>>;
2841
+ }) => any) | undefined;
2842
+ "onUpdate:selectedKeys"?: ((keys: (string | number)[]) => any) | undefined;
2843
+ "onUpdate:currentPage"?: ((page: number) => any) | undefined;
2844
+ "onUpdate:pageSize"?: ((size: number) => any) | undefined;
2845
+ "onUpdate:sorter"?: ((sorter: {
2846
+ key: string;
2847
+ order: "asc" | "desc" | null;
2848
+ }) => any) | undefined;
2849
+ onRowExpand?: ((payload: {
2850
+ row: Row;
2851
+ expanded: boolean;
2852
+ key: string | number;
2853
+ }) => any) | undefined;
2854
+ }>, {
2855
+ loading: boolean;
2856
+ subscribe: SubscribeHandler<Row[]>;
2857
+ data: AsyncStateLike<Row[]>;
2858
+ fetch: Fetch$1<Row>;
2859
+ rows: Row[];
2860
+ pageSize: number;
2861
+ striped: boolean;
2862
+ emptyText: string;
2863
+ total: number;
2864
+ rowKey: (row: Row, index: number) => string | number;
2865
+ selectable: boolean;
2866
+ expandable: boolean;
2867
+ pagination: boolean;
2868
+ pageSizes: number[];
2869
+ defaultSort: {
2870
+ key: string;
2871
+ order: "asc" | "desc";
2872
+ };
2873
+ cells: CellRenderer[];
2874
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2875
+ declare const __VLS_export$40: __VLS_WithSlots$14<typeof __VLS_base$14, __VLS_Slots$14>;
2876
+ declare const _default$59: typeof __VLS_export$40;
2877
+ type __VLS_WithSlots$14<T, S> = T & {
2878
+ new (): {
2879
+ $slots: S;
2880
+ };
2881
+ };
2882
+ //#endregion
2883
+ //#region src/components/data-display/Pagination.vue.d.ts
2884
+ type __VLS_Props$39 = {
2885
+ total: number;
2886
+ /** 受控每页条数;需配合 v-model:page-size 或监听 update:page-size 才能切换 */
2887
+ pageSize?: number;
2888
+ modelValue?: number;
2889
+ pageSizes?: number[];
2890
+ /** 显示每页条数选择器 */
2891
+ showSizeChanger?: boolean;
2892
+ /** 显示跳页输入框 */
2893
+ showJumper?: boolean;
2894
+ boundaryCount?: number;
2895
+ siblingCount?: number;
2896
+ };
2897
+ declare const __VLS_export$39: DefineComponent<__VLS_Props$39, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2898
+ change: (payload: {
2899
+ currentPage: number;
2900
+ pageSize: number;
2901
+ }) => any;
2902
+ "update:modelValue": (page: number) => any;
2903
+ "update:pageSize": (size: number) => any;
2904
+ }, string, PublicProps, Readonly<__VLS_Props$39> & Readonly<{
2905
+ onChange?: ((payload: {
2906
+ currentPage: number;
2907
+ pageSize: number;
2908
+ }) => any) | undefined;
2909
+ "onUpdate:modelValue"?: ((page: number) => any) | undefined;
2910
+ "onUpdate:pageSize"?: ((size: number) => any) | undefined;
2911
+ }>, {
2912
+ modelValue: number;
2913
+ pageSizes: number[];
2914
+ showSizeChanger: boolean;
2915
+ showJumper: boolean;
2916
+ boundaryCount: number;
2917
+ siblingCount: number;
2918
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2919
+ declare const _default$42: typeof __VLS_export$39;
2920
+ //#endregion
2921
+ //#region src/components/data-display/Tabs.vue.d.ts
2922
+ interface TabItem {
2923
+ key: string;
2924
+ label: string;
2925
+ disabled?: boolean;
2926
+ closable?: boolean;
2927
+ }
2928
+ type __VLS_Props$38 = {
2929
+ tabs?: TabItem[];
2930
+ modelValue?: string;
2931
+ /** 允许增减页签(触发 add/remove 事件,数据由外层维护) */
2932
+ editable?: boolean;
2933
+ addText?: string;
2934
+ /** 面板懒渲染:首次激活后才挂载内容,默认 true */
2935
+ lazy?: boolean;
2936
+ /** 统一远程请求:挂载即拉取页签项,返回数组或 { list, total } */
2937
+ fetch?: Fetch$1<TabItem>;
2938
+ /**
2939
+ * 订阅数据:挂载时调用,resolve 出的页签项用于渲染。
2940
+ * 优先级:subscribe > fetch > tabs
2941
+ */
2942
+ subscribe?: SubscribeHandler<TabItem[]>;
2943
+ /** 切换动作:配置后先确认再切换(成功才激活新页签,失败停留原面板) */
2944
+ action?: ActionLike;
2945
+ };
2946
+ declare var __VLS_2$2: {
2947
+ active: string;
2948
+ };
2949
+ type __VLS_Slots$13 = {} & {
2950
+ default?: (props: typeof __VLS_2$2) => any;
2951
+ };
2952
+ declare const __VLS_base$13: DefineComponent<__VLS_Props$38, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2953
+ change: (key: string) => any;
2954
+ add: () => any;
2955
+ "update:modelValue": (key: string) => any;
2956
+ actionError: (error: unknown) => any;
2957
+ remove: (tab: TabItem) => any;
2958
+ }, string, PublicProps, Readonly<__VLS_Props$38> & Readonly<{
2959
+ onChange?: ((key: string) => any) | undefined;
2960
+ onAdd?: (() => any) | undefined;
2961
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
2962
+ onActionError?: ((error: unknown) => any) | undefined;
2963
+ onRemove?: ((tab: TabItem) => any) | undefined;
2964
+ }>, {
2965
+ action: ActionLike;
2966
+ editable: boolean;
2967
+ lazy: boolean;
2968
+ subscribe: SubscribeHandler<TabItem[]>;
2969
+ fetch: Fetch$1<TabItem>;
2970
+ modelValue: string;
2971
+ tabs: TabItem[];
2972
+ addText: string;
2973
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2974
+ declare const __VLS_export$38: __VLS_WithSlots$13<typeof __VLS_base$13, __VLS_Slots$13>;
2975
+ declare const _default$60: typeof __VLS_export$38;
2976
+ type __VLS_WithSlots$13<T, S> = T & {
2977
+ new (): {
2978
+ $slots: S;
2979
+ };
2980
+ };
2981
+ //#endregion
2982
+ //#region src/components/data-display/Collapse.vue.d.ts
2983
+ interface CollapseItem {
2984
+ key: string;
2985
+ title: string;
2986
+ content: string;
2987
+ disabled?: boolean;
2988
+ }
2989
+ type __VLS_Props$37 = {
2990
+ items?: CollapseItem[];
2991
+ /** 当前展开的 key(受控,手风琴模式同样用单元素数组) */
2992
+ activeKeys?: string[];
2993
+ defaultActiveKeys?: string[];
2994
+ /** 手风琴:同时至多展开一个面板 */
2995
+ accordion?: boolean;
2996
+ /** 统一远程请求:挂载即拉取面板项,返回数组或 { list, total } */
2997
+ fetch?: Fetch$1<CollapseItem>;
2998
+ /**
2999
+ * 订阅数据:挂载时调用,resolve 出的面板项用于渲染。
3000
+ * 优先级:subscribe > fetch > items
3001
+ */
3002
+ subscribe?: SubscribeHandler<CollapseItem[]>;
3003
+ };
3004
+ declare const __VLS_export$37: DefineComponent<__VLS_Props$37, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3005
+ change: (keys: string[]) => any;
3006
+ "update:activeKeys": (keys: string[]) => any;
3007
+ }, string, PublicProps, Readonly<__VLS_Props$37> & Readonly<{
3008
+ onChange?: ((keys: string[]) => any) | undefined;
3009
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
3010
+ }>, {
3011
+ subscribe: SubscribeHandler<CollapseItem[]>;
3012
+ fetch: Fetch$1<CollapseItem>;
3013
+ items: CollapseItem[];
3014
+ activeKeys: string[];
3015
+ defaultActiveKeys: string[];
3016
+ accordion: boolean;
3017
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3018
+ declare const _default$16: typeof __VLS_export$37;
3019
+ //#endregion
3020
+ //#region src/components/data-display/Tree.vue.d.ts
3021
+ interface TreeNode {
3022
+ key: string;
3023
+ label: string;
3024
+ disabled?: boolean;
3025
+ children?: TreeNode[];
3026
+ /** 远程懒加载时显式标记:true 叶子;false 表示子级尚未加载 */
3027
+ leaf?: boolean;
3028
+ }
3029
+ type __VLS_Props$36 = {
3030
+ nodes?: TreeNode[];
3031
+ /** 是否显示勾选框 */
3032
+ checkable?: boolean;
3033
+ defaultExpandAll?: boolean;
3034
+ /** 受控勾选集合(保存被点选的节点自身 key) */
3035
+ checked?: string[];
3036
+ /**
3037
+ * 统一远程请求:挂载拉取根节点;展开未加载节点时以
3038
+ * { filters: { parentKey } } 拉取子级,返回节点数组或 { list, total }
3039
+ */
3040
+ fetch?: Fetch$1<TreeNode>;
3041
+ /**
3042
+ * 订阅数据:挂载时调用,resolve 出的节点用于渲染(完整树,非懒加载)。
3043
+ * 优先级:subscribe > fetch > nodes
3044
+ */
3045
+ subscribe?: SubscribeHandler<TreeNode[]>;
3046
+ /** 勾选动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用勾选 */
3047
+ action?: ActionLike;
3048
+ };
3049
+ declare const __VLS_export$36: DefineComponent<__VLS_Props$36, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3050
+ actionError: (error: unknown) => any;
3051
+ "update:checked": (keys: string[]) => any;
3052
+ check: (keys: string[]) => any;
3053
+ expand: (payload: {
3054
+ node: TreeNode;
3055
+ expanded: boolean;
3056
+ }) => any;
3057
+ "node-click": (node: TreeNode) => any;
3058
+ }, string, PublicProps, Readonly<__VLS_Props$36> & Readonly<{
3059
+ onActionError?: ((error: unknown) => any) | undefined;
3060
+ "onUpdate:checked"?: ((keys: string[]) => any) | undefined;
3061
+ onCheck?: ((keys: string[]) => any) | undefined;
3062
+ onExpand?: ((payload: {
3063
+ node: TreeNode;
3064
+ expanded: boolean;
3065
+ }) => any) | undefined;
3066
+ "onNode-click"?: ((node: TreeNode) => any) | undefined;
3067
+ }>, {
3068
+ action: ActionLike;
3069
+ subscribe: SubscribeHandler<TreeNode[]>;
3070
+ fetch: Fetch$1<TreeNode>;
3071
+ nodes: TreeNode[];
3072
+ defaultExpandAll: boolean;
3073
+ checkable: boolean;
3074
+ checked: string[];
3075
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3076
+ declare const _default$67: typeof __VLS_export$36;
3077
+ //#endregion
3078
+ //#region src/components/data-display/Cascader.vue.d.ts
3079
+ interface CascaderOption {
3080
+ label: string;
3081
+ value: string | number;
3082
+ disabled?: boolean;
3083
+ children?: CascaderOption[];
3084
+ /** 远程懒加载时显式标记:true 叶子;false 表示子级尚未加载 */
3085
+ leaf?: boolean;
3086
+ }
3087
+ type __VLS_Props$35 = {
3088
+ options?: CascaderOption[];
3089
+ /** 叶子节点 value;emitPath=true 时为路径数组 */
3090
+ modelValue?: string | number | Array<string | number> | null;
3091
+ placeholder?: string;
3092
+ disabled?: boolean;
3093
+ /** 允许选择任意一级 */
3094
+ changeOnSelect?: boolean;
3095
+ /** v-model 携带完整路径而非叶子 value */
3096
+ emitPath?: boolean;
3097
+ /**
3098
+ * 统一远程请求:挂载拉取根选项;选中未加载项时以
3099
+ * { filters: { parentKey } } 拉取子级,返回选项数组或 { list, total }
3100
+ */
3101
+ fetch?: Fetch$1<CascaderOption>;
3102
+ /**
3103
+ * 订阅数据:挂载时调用,resolve 出的级联选项用于渲染(完整树,非懒加载)。
3104
+ * 优先级:subscribe > fetch > options
3105
+ */
3106
+ subscribe?: SubscribeHandler<CascaderOption[]>;
3107
+ /** 选择动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用选择 */
3108
+ action?: ActionLike;
3109
+ };
3110
+ declare const __VLS_export$35: DefineComponent<__VLS_Props$35, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3111
+ change: (value: string | number | (string | number)[] | null) => any;
3112
+ "update:modelValue": (value: string | number | (string | number)[] | null) => any;
3113
+ actionError: (error: unknown) => any;
3114
+ }, string, PublicProps, Readonly<__VLS_Props$35> & Readonly<{
3115
+ onChange?: ((value: string | number | (string | number)[] | null) => any) | undefined;
3116
+ "onUpdate:modelValue"?: ((value: string | number | (string | number)[] | null) => any) | undefined;
3117
+ onActionError?: ((error: unknown) => any) | undefined;
3118
+ }>, {
3119
+ disabled: boolean;
3120
+ action: ActionLike;
3121
+ subscribe: SubscribeHandler<CascaderOption[]>;
3122
+ fetch: Fetch$1<CascaderOption>;
3123
+ modelValue: string | number | (string | number)[] | null;
3124
+ options: CascaderOption[];
3125
+ placeholder: string;
3126
+ changeOnSelect: boolean;
3127
+ emitPath: boolean;
3128
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3129
+ declare const _default$12: typeof __VLS_export$35;
3130
+ //#endregion
3131
+ //#region src/components/data-display/Timeline.vue.d.ts
3132
+ interface TimelineItem {
3133
+ key: string;
3134
+ title: string;
3135
+ content?: string;
3136
+ time?: string;
3137
+ /** 节点颜色 */
3138
+ type?: 'primary' | 'success' | 'warning' | 'danger';
3139
+ }
3140
+ type __VLS_Props$34 = {
3141
+ items?: TimelineItem[];
3142
+ /**
3143
+ * 统一远程请求:挂载即拉取时间轴项,
3144
+ * 返回数组或 { list, total }
3145
+ */
3146
+ fetch?: Fetch$1<TimelineItem>;
3147
+ /**
3148
+ * 订阅数据:挂载时调用,resolve 出的时间轴项用于渲染。
3149
+ * 优先级:subscribe > fetch > items
3150
+ */
3151
+ subscribe?: SubscribeHandler<TimelineItem[]>;
3152
+ };
3153
+ declare var __VLS_2$1: {
3154
+ item: TimelineItem;
3155
+ index: number;
3156
+ };
3157
+ type __VLS_Slots$12 = {} & {
3158
+ default?: (props: typeof __VLS_2$1) => any;
3159
+ };
3160
+ declare const __VLS_base$12: DefineComponent<__VLS_Props$34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$34> & Readonly<{}>, {
3161
+ subscribe: SubscribeHandler<TimelineItem[]>;
3162
+ fetch: Fetch$1<TimelineItem>;
3163
+ items: TimelineItem[];
3164
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3165
+ declare const __VLS_export$34: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
3166
+ declare const _default$63: typeof __VLS_export$34;
3167
+ type __VLS_WithSlots$12<T, S> = T & {
3168
+ new (): {
3169
+ $slots: S;
3170
+ };
3171
+ };
3172
+ //#endregion
3173
+ //#region src/components/data-display/Steps.vue.d.ts
3174
+ type StepStatus = 'done' | 'active' | 'error' | 'waiting';
3175
+ interface StepItem {
3176
+ key: string;
3177
+ title: string;
3178
+ description?: string;
3179
+ /** 单步状态覆盖(如标记某一步 error) */
3180
+ status?: Exclude<StepStatus, 'waiting'>;
3181
+ disabled?: boolean;
3182
+ }
3183
+ type __VLS_Props$33 = {
3184
+ steps: StepItem[];
3185
+ /** 当前步骤索引(从 0 开始) */
3186
+ current?: number;
3187
+ /** 是否允许点击已到达的步骤跳转 */
3188
+ changeable?: boolean;
3189
+ };
3190
+ declare function goTo(index: number, step: StepItem): void;
3191
+ declare function next(): void;
3192
+ declare function prev(): void;
3193
+ declare const __VLS_export$33: DefineComponent<__VLS_Props$33, {
3194
+ next: typeof next;
3195
+ prev: typeof prev;
3196
+ goTo: typeof goTo;
3197
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3198
+ change: (index: number) => any;
3199
+ "update:current": (index: number) => any;
3200
+ }, string, PublicProps, Readonly<__VLS_Props$33> & Readonly<{
3201
+ onChange?: ((index: number) => any) | undefined;
3202
+ "onUpdate:current"?: ((index: number) => any) | undefined;
3203
+ }>, {
3204
+ steps: StepItem[];
3205
+ current: number;
3206
+ changeable: boolean;
3207
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3208
+ declare const _default$57: typeof __VLS_export$33;
3209
+ //#endregion
3210
+ //#region src/components/data-display/Descriptions.vue.d.ts
3211
+ interface DescriptionItem {
3212
+ label: string;
3213
+ value: string;
3214
+ }
3215
+ type __VLS_Props$32 = {
3216
+ title?: string;
3217
+ items?: DescriptionItem[];
3218
+ /** 单元格是否带边框 */
3219
+ bordered?: boolean;
3220
+ /** 每行列数 */
3221
+ column?: number;
3222
+ /**
3223
+ * 统一远程请求:挂载即拉取键值对项,
3224
+ * 返回数组或 { list, total }
3225
+ */
3226
+ fetch?: Fetch$1<DescriptionItem>;
3227
+ /**
3228
+ * 订阅数据:挂载时调用,resolve 出的描述项用于渲染。
3229
+ * 优先级:subscribe > fetch > items
3230
+ */
3231
+ subscribe?: SubscribeHandler<DescriptionItem[]>;
3232
+ };
3233
+ declare const __VLS_export$32: DefineComponent<__VLS_Props$32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$32> & Readonly<{}>, {
3234
+ subscribe: SubscribeHandler<DescriptionItem[]>;
3235
+ title: string;
3236
+ fetch: Fetch$1<DescriptionItem>;
3237
+ bordered: boolean;
3238
+ items: DescriptionItem[];
3239
+ column: number;
3240
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3241
+ declare const _default$19: typeof __VLS_export$32;
3242
+ //#endregion
3243
+ //#region src/components/data-display/Carousel.vue.d.ts
3244
+ type __VLS_Props$31 = {
3245
+ /** 轮播项标题(演示用);也可用 slot 自定义内容 */
3246
+ items?: string[];
3247
+ modelValue?: number;
3248
+ height?: string;
3249
+ /** 自动播放 */
3250
+ autoplay?: boolean;
3251
+ /** 播放间隔(ms) */
3252
+ interval?: number;
3253
+ /** 悬停暂停 */
3254
+ pauseOnHover?: boolean;
3255
+ /** 循环切换 */
3256
+ loop?: boolean;
3257
+ /** 统一远程请求:挂载即拉取轮播项,返回数组或 { list, total } */
3258
+ fetch?: Fetch$1<string>;
3259
+ /**
3260
+ * 订阅数据:挂载时调用,resolve 出的轮播项用于渲染。
3261
+ * 优先级:subscribe > fetch > items
3262
+ */
3263
+ subscribe?: SubscribeHandler<string[]>;
3264
+ };
3265
+ declare var __VLS_7$4: {
3266
+ index: number;
3267
+ };
3268
+ type __VLS_Slots$11 = {} & {
3269
+ default?: (props: typeof __VLS_7$4) => any;
3270
+ };
3271
+ declare const __VLS_base$11: DefineComponent<__VLS_Props$31, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3272
+ change: (index: number, previous: number) => any;
3273
+ "update:modelValue": (index: number) => any;
3274
+ }, string, PublicProps, Readonly<__VLS_Props$31> & Readonly<{
3275
+ onChange?: ((index: number, previous: number) => any) | undefined;
3276
+ "onUpdate:modelValue"?: ((index: number) => any) | undefined;
3277
+ }>, {
3278
+ subscribe: SubscribeHandler<string[]>;
3279
+ fetch: Fetch$1<string>;
3280
+ modelValue: number;
3281
+ items: string[];
3282
+ height: string;
3283
+ autoplay: boolean;
3284
+ interval: number;
3285
+ pauseOnHover: boolean;
3286
+ loop: boolean;
3287
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3288
+ declare const __VLS_export$31: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
3289
+ declare const _default$11: typeof __VLS_export$31;
3290
+ type __VLS_WithSlots$11<T, S> = T & {
3291
+ new (): {
3292
+ $slots: S;
3293
+ };
3294
+ };
3295
+ //#endregion
3296
+ //#region src/components/data-display/Progress.vue.d.ts
3297
+ type ProgressStatus = 'normal' | 'success' | 'warning' | 'danger';
3298
+ type __VLS_Props$30 = {
3299
+ /** 进度 0-100 */
3300
+ value?: number;
3301
+ status?: ProgressStatus;
3302
+ /** 线形 / 环形 */
3303
+ type?: 'line' | 'circle';
3304
+ /** 是否显示百分比 */
3305
+ showText?: boolean;
3306
+ /** 环形直径(px) */
3307
+ size?: number;
3308
+ /** 环的描边宽度(px) */
3309
+ strokeWidth?: number;
3310
+ /** 条形高度(px) */
3311
+ lineHeight?: number;
3312
+ /** 订阅进度数据:挂载时调用,resolve 出的进度值用于渲染,优先级高于 value */
3313
+ subscribe?: SubscribeHandler<number>;
3314
+ /** 订阅失败时的回退文案 */
3315
+ errorText?: string;
3316
+ };
3317
+ declare const __VLS_export$30: DefineComponent<__VLS_Props$30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$30> & Readonly<{}>, {
3318
+ type: "circle" | "line";
3319
+ size: number;
3320
+ subscribe: SubscribeHandler<number>;
3321
+ errorText: string;
3322
+ value: number;
3323
+ status: ProgressStatus;
3324
+ showText: boolean;
3325
+ strokeWidth: number;
3326
+ lineHeight: number;
3327
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3328
+ declare const _default$45: typeof __VLS_export$30;
3329
+ //#endregion
3330
+ //#region src/components/data-display/Image.vue.d.ts
3331
+ type __VLS_Props$29 = {
3332
+ src?: string;
3333
+ alt?: string;
3334
+ /** 圆角 */
3335
+ rounded?: boolean;
3336
+ /** 进入视口才加载 */
3337
+ lazy?: boolean;
3338
+ /** 点击进入预览 */
3339
+ previewable?: boolean;
3340
+ /** 预览图地址(缺省用 src) */
3341
+ previewSrc?: string;
3342
+ /** 订阅图片地址:挂载时调用,resolve 出的地址用于渲染,优先级高于 src */
3343
+ subscribe?: SubscribeHandler<string>;
3344
+ /** 订阅失败时的回退文案 */
3345
+ errorText?: string;
3346
+ };
3347
+ declare const __VLS_export$29: DefineComponent<__VLS_Props$29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3348
+ error: (event: Event) => any;
3349
+ close: () => any;
3350
+ load: (event: Event) => any;
3351
+ }, string, PublicProps, Readonly<__VLS_Props$29> & Readonly<{
3352
+ onError?: ((event: Event) => any) | undefined;
3353
+ onClose?: (() => any) | undefined;
3354
+ onLoad?: ((event: Event) => any) | undefined;
3355
+ }>, {
3356
+ src: string;
3357
+ alt: string;
3358
+ lazy: boolean;
3359
+ subscribe: SubscribeHandler<string>;
3360
+ errorText: string;
3361
+ rounded: boolean;
3362
+ previewable: boolean;
3363
+ previewSrc: string;
3364
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3365
+ declare const _default$30: typeof __VLS_export$29;
3366
+ //#endregion
3367
+ //#region src/components/feedback/Message.vue.d.ts
3368
+ type __VLS_Props$28 = {
3369
+ type?: 'info' | 'success' | 'warning' | 'danger' | 'error' | 'loading';
3370
+ closable?: boolean;
3371
+ /** 声明式使用时的可见性(v-model) */
3372
+ visible?: boolean;
3373
+ };
3374
+ declare var __VLS_7$3: {};
3375
+ type __VLS_Slots$10 = {} & {
3376
+ default?: (props: typeof __VLS_7$3) => any;
3377
+ };
3378
+ declare const __VLS_base$10: DefineComponent<__VLS_Props$28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3379
+ close: () => any;
3380
+ "update:visible": (value: boolean) => any;
3381
+ }, string, PublicProps, Readonly<__VLS_Props$28> & Readonly<{
3382
+ onClose?: (() => any) | undefined;
3383
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
3384
+ }>, {
3385
+ type: "loading" | "danger" | "error" | "success" | "warning" | "info";
3386
+ closable: boolean;
3387
+ visible: boolean;
3388
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3389
+ declare const __VLS_export$28: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
3390
+ declare const _default$38: typeof __VLS_export$28;
3391
+ type __VLS_WithSlots$10<T, S> = T & {
3392
+ new (): {
3393
+ $slots: S;
3394
+ };
3395
+ };
3396
+ //#endregion
3397
+ //#region src/components/feedback/MessageContainer.vue.d.ts
3398
+ type __VLS_Props$27 = {
3399
+ /** 可传入自建服务(默认共享全局单例) */
3400
+ api?: MessageApi;
3401
+ };
3402
+ declare const __VLS_export$27: DefineComponent<__VLS_Props$27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$27> & Readonly<{}>, {
3403
+ api: MessageApi;
3404
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3405
+ declare const _default$39: typeof __VLS_export$27;
3406
+ //#endregion
3407
+ //#region src/components/feedback/Alert.vue.d.ts
3408
+ type __VLS_Props$26 = {
3409
+ type?: 'info' | 'success' | 'warning' | 'danger';
3410
+ title?: string;
3411
+ /** 提示内容(插槽未提供时使用) */
3412
+ message?: string;
3413
+ closable?: boolean;
3414
+ /** 是否显示类型图标 */
3415
+ showIcon?: boolean;
3416
+ modelValue?: boolean;
3417
+ /** 订阅提示内容:挂载时调用,resolve 出的字符串用于渲染,优先级高于 message */
3418
+ subscribe?: SubscribeHandler<string>;
3419
+ /** 订阅失败时的回退文案 */
3420
+ errorText?: string;
3421
+ };
3422
+ declare var __VLS_7$2: {}, __VLS_9$1: {};
3423
+ type __VLS_Slots$9 = {} & {
3424
+ title?: (props: typeof __VLS_7$2) => any;
3425
+ } & {
3426
+ default?: (props: typeof __VLS_9$1) => any;
3427
+ };
3428
+ declare const __VLS_base$9: DefineComponent<__VLS_Props$26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3429
+ "update:modelValue": (value: boolean) => any;
3430
+ close: () => any;
3431
+ }, string, PublicProps, Readonly<__VLS_Props$26> & Readonly<{
3432
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
3433
+ onClose?: (() => any) | undefined;
3434
+ }>, {
3435
+ type: "danger" | "success" | "warning" | "info";
3436
+ subscribe: SubscribeHandler<string>;
3437
+ errorText: string;
3438
+ title: string;
3439
+ modelValue: boolean;
3440
+ closable: boolean;
3441
+ message: string;
3442
+ showIcon: boolean;
3443
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3444
+ declare const __VLS_export$26: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
3445
+ declare const _default$1: typeof __VLS_export$26;
3446
+ type __VLS_WithSlots$9<T, S> = T & {
3447
+ new (): {
3448
+ $slots: S;
3449
+ };
3450
+ };
3451
+ //#endregion
3452
+ //#region src/components/feedback/Notification.vue.d.ts
3453
+ type __VLS_Props$25 = {
3454
+ title?: string;
3455
+ type?: 'info' | 'success' | 'warning' | 'danger';
3456
+ closable?: boolean;
3457
+ /** v-model:visible 控制显隐 */
3458
+ visible?: boolean;
3459
+ };
3460
+ declare var __VLS_7$1: {}, __VLS_9: {};
3461
+ type __VLS_Slots$8 = {} & {
3462
+ default?: (props: typeof __VLS_7$1) => any;
3463
+ } & {
3464
+ action?: (props: typeof __VLS_9) => any;
3465
+ };
3466
+ declare const __VLS_base$8: DefineComponent<__VLS_Props$25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3467
+ close: () => any;
3468
+ "update:visible": (value: boolean) => any;
3469
+ }, string, PublicProps, Readonly<__VLS_Props$25> & Readonly<{
3470
+ onClose?: (() => any) | undefined;
3471
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
3472
+ }>, {
3473
+ type: "danger" | "success" | "warning" | "info";
3474
+ title: string;
3475
+ closable: boolean;
3476
+ visible: boolean;
3477
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3478
+ declare const __VLS_export$25: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
3479
+ declare const _default$40: typeof __VLS_export$25;
3480
+ type __VLS_WithSlots$8<T, S> = T & {
3481
+ new (): {
3482
+ $slots: S;
3483
+ };
3484
+ };
3485
+ //#endregion
3486
+ //#region src/components/feedback/NotificationContainer.vue.d.ts
3487
+ type Placement$1 = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
3488
+ type __VLS_Props$24 = {
3489
+ /** 可传入自建服务(默认共享全局单例) */
3490
+ api?: NotificationApi;
3491
+ placement?: Placement$1;
3492
+ };
3493
+ declare const __VLS_export$24: DefineComponent<__VLS_Props$24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$24> & Readonly<{}>, {
3494
+ placement: Placement$1;
3495
+ api: NotificationApi;
3496
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3497
+ declare const _default$41: typeof __VLS_export$24;
3498
+ //#endregion
3499
+ //#region src/components/feedback/Loading.vue.d.ts
3500
+ type __VLS_Props$23 = {
3501
+ size?: 'sm' | 'md' | 'lg';
3502
+ text?: string;
3503
+ /** 局部加载是否激活(非全屏形态使用) */
3504
+ active?: boolean;
3505
+ /** 全屏遮罩形态:可见性与全局 loading 服务计数联动 */
3506
+ fullscreen?: boolean;
3507
+ };
3508
+ declare const __VLS_export$23: DefineComponent<__VLS_Props$23, {
3509
+ service: import("../composables/index.js", { with: { "resolution-mode": "import" } }).LoadingService;
3510
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$23> & Readonly<{}>, {
3511
+ size: "md" | "sm" | "lg";
3512
+ text: string;
3513
+ active: boolean;
3514
+ fullscreen: boolean;
3515
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3516
+ declare const _default$35: typeof __VLS_export$23;
3517
+ //#endregion
3518
+ //#region src/components/feedback/Skeleton.vue.d.ts
3519
+ type __VLS_Props$22 = {
3520
+ /** 是否显示头像骨架 */
3521
+ avatar?: boolean;
3522
+ /** 文本行数 */
3523
+ rows?: number;
3524
+ };
3525
+ declare const __VLS_export$22: DefineComponent<__VLS_Props$22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$22> & Readonly<{}>, {
3526
+ rows: number;
3527
+ avatar: boolean;
3528
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3529
+ declare const _default$53: typeof __VLS_export$22;
3530
+ //#endregion
3531
+ //#region src/components/feedback/Result.vue.d.ts
3532
+ interface ResultSubscribeData {
3533
+ title?: string;
3534
+ subTitle?: string;
3535
+ }
3536
+ type __VLS_Props$21 = {
3537
+ status?: 'success' | 'error' | 'warning' | 'info';
3538
+ title?: string;
3539
+ subTitle?: string;
3540
+ /** 订阅结果数据:挂载时调用,resolve 出的 title/subTitle 用于渲染,优先级高于 props */
3541
+ subscribe?: SubscribeHandler<ResultSubscribeData>;
3542
+ /** 订阅失败时的回退文案 */
3543
+ errorText?: string;
3544
+ };
3545
+ declare var __VLS_1$6: {}, __VLS_3$1: {}, __VLS_5$1: {};
3546
+ type __VLS_Slots$7 = {} & {
3547
+ title?: (props: typeof __VLS_1$6) => any;
3548
+ } & {
3549
+ subTitle?: (props: typeof __VLS_3$1) => any;
3550
+ } & {
3551
+ default?: (props: typeof __VLS_5$1) => any;
3552
+ };
3553
+ declare const __VLS_base$7: DefineComponent<__VLS_Props$21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$21> & Readonly<{}>, {
3554
+ subscribe: SubscribeHandler<ResultSubscribeData>;
3555
+ errorText: string;
3556
+ title: string;
3557
+ status: "error" | "success" | "warning" | "info";
3558
+ subTitle: string;
3559
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3560
+ declare const __VLS_export$21: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
3561
+ declare const _default$50: typeof __VLS_export$21;
3562
+ type __VLS_WithSlots$7<T, S> = T & {
3563
+ new (): {
3564
+ $slots: S;
3565
+ };
3566
+ };
3567
+ //#endregion
3568
+ //#region src/components/feedback/Upload.vue.d.ts
3569
+ interface UploadFile {
3570
+ /** 内部唯一标识(外部传入数据可缺省) */
3571
+ uid?: string | number;
3572
+ name: string;
3573
+ size?: string;
3574
+ status?: 'uploading' | 'done' | 'error';
3575
+ /** 0-100 上传进度 */
3576
+ percent?: number;
3577
+ /** 原始浏览器文件(内部入队项携带) */
3578
+ raw?: File;
3579
+ }
3580
+ type __VLS_Props$20 = {
3581
+ fileList?: UploadFile[];
3582
+ accept?: string;
3583
+ multiple?: boolean;
3584
+ /** 最多文件数 */
3585
+ maxCount?: number;
3586
+ /** 单文件大小上限(字节) */
3587
+ maxSize?: number;
3588
+ /** 实际上传动作;不提供时入队即标记成功(演示态) */
3589
+ uploader?: (file: File, onProgress: (percent: number) => void) => Promise<unknown>;
3590
+ /** 拖拽高亮态(外部强制;默认组件自管) */
3591
+ dragging?: boolean;
3592
+ disabled?: boolean;
3593
+ };
3594
+ declare var __VLS_1$5: {};
3595
+ type __VLS_Slots$6 = {} & {
3596
+ hint?: (props: typeof __VLS_1$5) => any;
3597
+ };
3598
+ declare const __VLS_base$6: DefineComponent<__VLS_Props$20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3599
+ change: (files: UploadFile[]) => any;
3600
+ error: (payload: {
3601
+ file: UploadFile;
3602
+ error: unknown;
3603
+ }) => any;
3604
+ success: (file: UploadFile) => any;
3605
+ remove: (file: UploadFile) => any;
3606
+ "update:fileList": (files: UploadFile[]) => any;
3607
+ exceed: (files: File[]) => any;
3608
+ reject: (files: File[]) => any;
3609
+ }, string, PublicProps, Readonly<__VLS_Props$20> & Readonly<{
3610
+ onChange?: ((files: UploadFile[]) => any) | undefined;
3611
+ onError?: ((payload: {
3612
+ file: UploadFile;
3613
+ error: unknown;
3614
+ }) => any) | undefined;
3615
+ onSuccess?: ((file: UploadFile) => any) | undefined;
3616
+ onRemove?: ((file: UploadFile) => any) | undefined;
3617
+ "onUpdate:fileList"?: ((files: UploadFile[]) => any) | undefined;
3618
+ onExceed?: ((files: File[]) => any) | undefined;
3619
+ onReject?: ((files: File[]) => any) | undefined;
3620
+ }>, {
3621
+ disabled: boolean;
3622
+ multiple: boolean;
3623
+ dragging: boolean;
3624
+ fileList: UploadFile[];
3625
+ accept: string;
3626
+ maxCount: number;
3627
+ maxSize: number;
3628
+ uploader: (file: File, onProgress: (percent: number) => void) => Promise<unknown>;
3629
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3630
+ declare const __VLS_export$20: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
3631
+ declare const _default$70: typeof __VLS_export$20;
3632
+ type __VLS_WithSlots$6<T, S> = T & {
3633
+ new (): {
3634
+ $slots: S;
3635
+ };
3636
+ };
3637
+ //#endregion
3638
+ //#region src/components/feedback/Chat.vue.d.ts
3639
+ /**
3640
+ * 聊天框:消息流 + 底部固定输入区。
3641
+ *
3642
+ * 三大协议各司其职:fetch 加载历史消息(向上翻页,结果前插)、
3643
+ * subscribe 订阅最新消息(追加去重,自己消息回显自动收敛)、
3644
+ * action 发送消息(乐观上屏,失败保留气泡可重试)。
3645
+ */
3646
+ type __VLS_Props$19 = {
3647
+ /** 历史消息加载:注入分页查询,currentPage 递增表示更早一页 */
3648
+ fetch?: Fetch$1<ChatMessage[]>;
3649
+ /** 新消息订阅:推送单条或数组,返回响应式数据时持续更新 */
3650
+ subscribe?: SubscribeHandler<ChatMessage[] | ChatMessage>;
3651
+ /** 发送动作:入参为消息内容,抛错或返回 error 结果即发送失败 */
3652
+ action?: (content: string) => Promise<unknown>;
3653
+ /** 历史分页每页条数 */
3654
+ pageSize?: number;
3655
+ /** 输入框占位文案 */
3656
+ placeholder?: string;
3657
+ /** 禁用整窗交互 */
3658
+ disabled?: boolean;
3659
+ /** 窗体高度 */
3660
+ height?: string;
3661
+ /** 顶部加载更早消息按钮文案 */
3662
+ olderText?: string;
3663
+ };
3664
+ declare var __VLS_2: {
3665
+ message: ChatMessage;
3666
+ retry: () => Promise<ChatMessage | undefined>;
3667
+ };
3668
+ type __VLS_Slots$5 = {} & {
3669
+ message?: (props: typeof __VLS_2) => any;
3670
+ };
3671
+ declare const __VLS_base$5: DefineComponent<__VLS_Props$19, {
3672
+ chat: import("../composables/index.js", { with: { "resolution-mode": "import" } }).UseChatReturn;
3673
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3674
+ error: (message: string) => any;
3675
+ send: (message: ChatMessage) => any;
3676
+ }, string, PublicProps, Readonly<__VLS_Props$19> & Readonly<{
3677
+ onError?: ((message: string) => any) | undefined;
3678
+ onSend?: ((message: ChatMessage) => any) | undefined;
3679
+ }>, {
3680
+ disabled: boolean;
3681
+ action: (content: string) => Promise<unknown>;
3682
+ subscribe: SubscribeHandler<ChatMessage | ChatMessage[]>;
3683
+ fetch: Fetch$1<ChatMessage[]>;
3684
+ placeholder: string;
3685
+ pageSize: number;
3686
+ height: string;
3687
+ olderText: string;
3688
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3689
+ declare const __VLS_export$19: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
3690
+ declare const _default$13: typeof __VLS_export$19;
3691
+ type __VLS_WithSlots$5<T, S> = T & {
3692
+ new (): {
3693
+ $slots: S;
3694
+ };
3695
+ };
3696
+ //#endregion
3697
+ //#region src/components/navigation/Breadcrumb.vue.d.ts
3698
+ interface BreadcrumbItem {
3699
+ label: string;
3700
+ href?: string;
3701
+ }
3702
+ type __VLS_Props$18 = {
3703
+ items: BreadcrumbItem[];
3704
+ };
3705
+ declare const __VLS_export$18: DefineComponent<__VLS_Props$18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$18> & Readonly<{}>, {
3706
+ items: BreadcrumbItem[];
3707
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3708
+ declare const _default$7: typeof __VLS_export$18;
3709
+ //#endregion
3710
+ //#region src/components/navigation/Menu.vue.d.ts
3711
+ interface MenuItem {
3712
+ key: string;
3713
+ label: string;
3714
+ disabled?: boolean;
3715
+ icon?: string;
3716
+ children?: MenuItem[];
3717
+ }
3718
+ type __VLS_Props$17 = {
3719
+ items?: MenuItem[];
3720
+ modelValue?: string;
3721
+ /** 折叠模式:仅展示图标,子菜单弹出(class 开关,数据同构) */
3722
+ collapsed?: boolean;
3723
+ /** 默认展开的分组 key 列表 */
3724
+ defaultExpandedKeys?: string[];
3725
+ /** 统一远程请求:挂载即拉取菜单项,返回数组或 { list, total } */
3726
+ fetch?: Fetch$1<MenuItem>;
3727
+ /**
3728
+ * 订阅数据:挂载时调用,resolve 出的菜单项用于渲染。
3729
+ * 优先级:subscribe > fetch > items
3730
+ */
3731
+ subscribe?: SubscribeHandler<MenuItem[]>;
3732
+ };
3733
+ declare const __VLS_export$17: DefineComponent<__VLS_Props$17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3734
+ "update:modelValue": (key: string) => any;
3735
+ select: (item: MenuItem) => any;
3736
+ }, string, PublicProps, Readonly<__VLS_Props$17> & Readonly<{
3737
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
3738
+ onSelect?: ((item: MenuItem) => any) | undefined;
3739
+ }>, {
3740
+ subscribe: SubscribeHandler<MenuItem[]>;
3741
+ fetch: Fetch$1<MenuItem>;
3742
+ modelValue: string;
3743
+ items: MenuItem[];
3744
+ defaultExpandedKeys: string[];
3745
+ collapsed: boolean;
3746
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3747
+ declare const _default$37: typeof __VLS_export$17;
3748
+ //#endregion
3749
+ //#region src/components/navigation/Anchor.vue.d.ts
3750
+ interface AnchorItem {
3751
+ href: string;
3752
+ label: string;
3753
+ }
3754
+ type __VLS_Props$16 = {
3755
+ items: AnchorItem[];
3756
+ /** 受控激活锚点 */
3757
+ active?: string;
3758
+ /** 命中判定的顶部偏移(px) */
3759
+ offset?: number;
3760
+ /** 点击时是否平滑滚动到目标 */
3761
+ scrollIntoView?: boolean;
3762
+ };
3763
+ declare const __VLS_export$16: DefineComponent<__VLS_Props$16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3764
+ click: (item: AnchorItem) => any;
3765
+ change: (href: string) => any;
3766
+ "update:active": (href: string) => any;
3767
+ }, string, PublicProps, Readonly<__VLS_Props$16> & Readonly<{
3768
+ onClick?: ((item: AnchorItem) => any) | undefined;
3769
+ onChange?: ((href: string) => any) | undefined;
3770
+ "onUpdate:active"?: ((href: string) => any) | undefined;
3771
+ }>, {
3772
+ items: AnchorItem[];
3773
+ active: string;
3774
+ offset: number;
3775
+ scrollIntoView: boolean;
3776
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3777
+ declare const _default$2: typeof __VLS_export$16;
3778
+ //#endregion
3779
+ //#region src/components/navigation/BackTop.vue.d.ts
3780
+ type __VLS_Props$15 = {
3781
+ /** 是否启用(显式开关) */
3782
+ visible?: boolean;
3783
+ /** 滚动超过该高度(px)才出现,默认 0 即恒显 */
3784
+ visibilityHeight?: number;
3785
+ /** 距视口右侧(px) */
3786
+ right?: number;
3787
+ /** 距视口底部(px) */
3788
+ bottom?: number;
3789
+ /** 回到顶部的动画时长(ms),0 为瞬时 */
3790
+ duration?: number;
3791
+ };
3792
+ declare const __VLS_export$15: DefineComponent<__VLS_Props$15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3793
+ click: () => any;
3794
+ }, string, PublicProps, Readonly<__VLS_Props$15> & Readonly<{
3795
+ onClick?: (() => any) | undefined;
3796
+ }>, {
3797
+ duration: number;
3798
+ bottom: number;
3799
+ right: number;
3800
+ visible: boolean;
3801
+ visibilityHeight: number;
3802
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3803
+ declare const _default$5: typeof __VLS_export$15;
3804
+ //#endregion
3805
+ //#region src/components/navigation/Affix.vue.d.ts
3806
+ type __VLS_Props$14 = {
3807
+ /** 距视口顶部吸附距离(px) */
3808
+ top?: number;
3809
+ /** 距视口左侧吸附距离(px) */
3810
+ left?: number;
3811
+ /** 滚动超过该偏移量后切换为 fixed;默认 top 值即阈值 */
3812
+ offsetTop?: number;
3813
+ /** z-index */
3814
+ zIndex?: number;
3815
+ };
3816
+ declare var __VLS_1$4: {};
3817
+ type __VLS_Slots$4 = {} & {
3818
+ default?: (props: typeof __VLS_1$4) => any;
3819
+ };
3820
+ declare const __VLS_base$4: DefineComponent<__VLS_Props$14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3821
+ change: (fixed: boolean) => any;
3822
+ }, string, PublicProps, Readonly<__VLS_Props$14> & Readonly<{
3823
+ onChange?: ((fixed: boolean) => any) | undefined;
3824
+ }>, {
3825
+ top: number;
3826
+ left: number;
3827
+ offsetTop: number;
3828
+ zIndex: number;
3829
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3830
+ declare const __VLS_export$14: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
3831
+ declare const _default: typeof __VLS_export$14;
3832
+ type __VLS_WithSlots$4<T, S> = T & {
3833
+ new (): {
3834
+ $slots: S;
3835
+ };
3836
+ };
3837
+ //#endregion
3838
+ //#region src/components/navigation/FloatButton.vue.d.ts
3839
+ interface FloatAction {
3840
+ key: string;
3841
+ label: string;
3842
+ disabled?: boolean;
3843
+ }
3844
+ type __VLS_Props$13 = {
3845
+ actions?: FloatAction[];
3846
+ /** 受控展开态 */
3847
+ open?: boolean;
3848
+ /** 展开方向 */
3849
+ placement?: 'top' | 'left';
3850
+ };
3851
+ declare const __VLS_export$13: DefineComponent<__VLS_Props$13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3852
+ select: (key: string) => any;
3853
+ "update:open": (open: boolean) => any;
3854
+ }, string, PublicProps, Readonly<__VLS_Props$13> & Readonly<{
3855
+ onSelect?: ((key: string) => any) | undefined;
3856
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
3857
+ }>, {
3858
+ placement: "top" | "left";
3859
+ open: boolean;
3860
+ actions: FloatAction[];
3861
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3862
+ declare const _default$25: typeof __VLS_export$13;
3863
+ //#endregion
3864
+ //#region src/components/navigation/DatePicker.vue.d.ts
3865
+ type __VLS_Props$12 = {
3866
+ /** 选中的日期(当月日序 1-31,演示态取值) */
3867
+ modelValue?: number | null;
3868
+ placeholder?: string;
3869
+ disabled?: boolean;
3870
+ /** 面板初始视角月份(默认静态演示月 2026-10) */
3871
+ viewMonth?: Date;
3872
+ /** 快捷选项 */
3873
+ shortcuts?: DateShortcut[];
3874
+ /** 选择动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用选择 */
3875
+ action?: ActionLike;
3876
+ };
3877
+ declare const __VLS_export$12: DefineComponent<__VLS_Props$12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3878
+ change: (value: number) => any;
3879
+ "update:modelValue": (value: number) => any;
3880
+ actionError: (error: unknown) => any;
3881
+ }, string, PublicProps, Readonly<__VLS_Props$12> & Readonly<{
3882
+ onChange?: ((value: number) => any) | undefined;
3883
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
3884
+ onActionError?: ((error: unknown) => any) | undefined;
3885
+ }>, {
3886
+ disabled: boolean;
3887
+ action: ActionLike;
3888
+ modelValue: number | null;
3889
+ placeholder: string;
3890
+ viewMonth: Date;
3891
+ shortcuts: DateShortcut[];
3892
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3893
+ declare const _default$18: typeof __VLS_export$12;
3894
+ //#endregion
3895
+ //#region src/components/navigation/TimePicker.vue.d.ts
3896
+ type __VLS_Props$11 = {
3897
+ modelValue?: string | null;
3898
+ placeholder?: string;
3899
+ disabled?: boolean;
3900
+ /** 小时列步进,默认 1 */
3901
+ hourStep?: number;
3902
+ /** 分钟列步进,默认 5 */
3903
+ minuteStep?: number;
3904
+ /** 是否展示秒列 */
3905
+ useSeconds?: boolean;
3906
+ minTime?: string;
3907
+ maxTime?: string;
3908
+ /** 确定动作:执行期间禁用面板按钮,失败保持面板打开并展示错误提示 */
3909
+ action?: ActionLike;
3910
+ /** 动作失败时的回退文案 */
3911
+ errorText?: string;
3912
+ };
3913
+ declare const __VLS_export$11: DefineComponent<__VLS_Props$11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3914
+ change: (value: string | null) => any;
3915
+ "update:modelValue": (value: string | null) => any;
3916
+ actionError: (error: unknown) => any;
3917
+ }, string, PublicProps, Readonly<__VLS_Props$11> & Readonly<{
3918
+ onChange?: ((value: string | null) => any) | undefined;
3919
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
3920
+ onActionError?: ((error: unknown) => any) | undefined;
3921
+ }>, {
3922
+ disabled: boolean;
3923
+ action: ActionLike;
3924
+ errorText: string;
3925
+ modelValue: string | null;
3926
+ placeholder: string;
3927
+ hourStep: number;
3928
+ minuteStep: number;
3929
+ useSeconds: boolean;
3930
+ minTime: string;
3931
+ maxTime: string;
3932
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3933
+ declare const _default$62: typeof __VLS_export$11;
3934
+ //#endregion
3935
+ //#region src/components/navigation/Calendar.vue.d.ts
3936
+ interface CalendarEvent {
3937
+ /** yyyy-MM-dd */
3938
+ date: string;
3939
+ label?: string;
3940
+ }
3941
+ type __VLS_Props$10 = {
3942
+ modelValue?: string | Date | null;
3943
+ /** 范围选择值 */
3944
+ rangeValue?: [string | Date | null, string | Date | null] | null;
3945
+ /** 范围选择 */
3946
+ range?: boolean;
3947
+ /** 每周第一天:0=周日,1=周一 */
3948
+ firstDayOfWeek?: 0 | 1;
3949
+ disabledDate?: (date: Date) => boolean;
3950
+ minDate?: string | Date;
3951
+ maxDate?: string | Date;
3952
+ /** 日程/事项标记(按 yyyy-MM-dd 匹配) */
3953
+ events?: CalendarEvent[];
3954
+ /**
3955
+ * 统一远程请求:挂载与面板切换时自动以
3956
+ * { filters: { range: [起始日, 结束日] } } 拉取当前区间日程
3957
+ */
3958
+ fetch?: Fetch$1<CalendarEvent>;
3959
+ /**
3960
+ * 订阅数据:挂载时调用,resolve 出的日程标记用于渲染(静态全量)。
3961
+ * 优先级:subscribe > fetch > events
3962
+ */
3963
+ subscribe?: SubscribeHandler<CalendarEvent[]>;
3964
+ };
3965
+ declare const __VLS_export$10: DefineComponent<__VLS_Props$10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3966
+ change: (value: string | [string | null, string | null] | null) => any;
3967
+ "update:modelValue": (value: string | null) => any;
3968
+ "update:rangeValue": (value: [string | null, string | null] | null) => any;
3969
+ "panel-change": (label: string) => any;
3970
+ }, string, PublicProps, Readonly<__VLS_Props$10> & Readonly<{
3971
+ onChange?: ((value: string | [string | null, string | null] | null) => any) | undefined;
3972
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
3973
+ "onUpdate:rangeValue"?: ((value: [string | null, string | null] | null) => any) | undefined;
3974
+ "onPanel-change"?: ((label: string) => any) | undefined;
3975
+ }>, {
3976
+ subscribe: SubscribeHandler<CalendarEvent[]>;
3977
+ fetch: Fetch$1<CalendarEvent>;
3978
+ modelValue: string | Date | null;
3979
+ range: boolean;
3980
+ rangeValue: [string | Date | null, string | Date | null] | null;
3981
+ firstDayOfWeek: 0 | 1;
3982
+ disabledDate: (date: Date) => boolean;
3983
+ minDate: string | Date;
3984
+ maxDate: string | Date;
3985
+ events: CalendarEvent[];
3986
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3987
+ declare const _default$9: typeof __VLS_export$10;
3988
+ //#endregion
3989
+ //#region src/components/navigation/ColorPicker.vue.d.ts
3990
+ type __VLS_Props$9 = {
3991
+ modelValue?: string;
3992
+ /** 预设色板 */
3993
+ presets?: string[];
3994
+ disabled?: boolean;
3995
+ showAlpha?: boolean;
3996
+ /** 颜色确认动作:确认点(选预设 / 输入 hex / 关闭面板)先乐观应用,动作失败自动回退旧色 */
3997
+ action?: ActionLike;
3998
+ };
3999
+ declare const __VLS_export$9: DefineComponent<__VLS_Props$9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4000
+ change: (color: string) => any;
4001
+ "update:modelValue": (color: string) => any;
4002
+ actionError: (error: unknown) => any;
4003
+ }, string, PublicProps, Readonly<__VLS_Props$9> & Readonly<{
4004
+ onChange?: ((color: string) => any) | undefined;
4005
+ "onUpdate:modelValue"?: ((color: string) => any) | undefined;
4006
+ onActionError?: ((error: unknown) => any) | undefined;
4007
+ }>, {
4008
+ disabled: boolean;
4009
+ action: ActionLike;
4010
+ modelValue: string;
4011
+ presets: string[];
4012
+ showAlpha: boolean;
4013
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4014
+ declare const _default$17: typeof __VLS_export$9;
4015
+ //#endregion
4016
+ //#region src/components/navigation/Transfer.vue.d.ts
4017
+ interface TransferItem {
4018
+ key: string;
4019
+ label: string;
4020
+ disabled?: boolean;
4021
+ }
4022
+ type __VLS_Props$8 = {
4023
+ data?: TransferItem[];
4024
+ modelValue?: string[];
4025
+ titles?: [string, string];
4026
+ /** 两侧搜索过滤 */
4027
+ searchable?: boolean;
4028
+ /**
4029
+ * 统一远程请求:挂载即请求,左侧搜索词自动防抖重取,
4030
+ * 返回候选项数组或 { list, total }
4031
+ */
4032
+ fetch?: Fetch$1<TransferItem>;
4033
+ /** 穿梭动作:新值先乐观应用,动作失败自动回退旧值;执行期间禁用搬移 */
4034
+ action?: ActionLike;
4035
+ };
4036
+ declare const __VLS_export$8: DefineComponent<__VLS_Props$8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4037
+ change: (keys: string[], direction: "left" | "right") => any;
4038
+ "update:modelValue": (keys: string[]) => any;
4039
+ actionError: (error: unknown) => any;
4040
+ }, string, PublicProps, Readonly<__VLS_Props$8> & Readonly<{
4041
+ onChange?: ((keys: string[], direction: "left" | "right") => any) | undefined;
4042
+ "onUpdate:modelValue"?: ((keys: string[]) => any) | undefined;
4043
+ onActionError?: ((error: unknown) => any) | undefined;
4044
+ }>, {
4045
+ action: ActionLike;
4046
+ data: TransferItem[];
4047
+ fetch: Fetch$1<TransferItem>;
4048
+ modelValue: string[];
4049
+ titles: [string, string];
4050
+ searchable: boolean;
4051
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4052
+ declare const _default$66: typeof __VLS_export$8;
4053
+ //#endregion
4054
+ //#region src/components/navigation/VirtualList.vue.d.ts
4055
+ type __VLS_Props$7 = {
4056
+ items?: string[];
4057
+ /** 容器高度(px) */
4058
+ height?: number;
4059
+ /** 单项高度(px);动态行高时传函数 */
4060
+ itemHeight?: number;
4061
+ /** 上下缓冲行数 */
4062
+ buffer?: number;
4063
+ /** 动态行高:按索引返回高度(px) */
4064
+ dynamicHeight?: (item: string, index: number) => number;
4065
+ /**
4066
+ * 统一远程请求:挂载即拉首页,触底自动以递增 pagination 拉取下一页并累积。
4067
+ * 需返回 { list, total } 才能识别是否还有更多;返回数组视为一次性全量。
4068
+ */
4069
+ fetch?: Fetch$1<string>;
4070
+ /**
4071
+ * 订阅数据:挂载时调用,resolve 出的列表项用于渲染。
4072
+ * 优先级:subscribe > fetch > items
4073
+ */
4074
+ subscribe?: SubscribeHandler<string[]>;
4075
+ };
4076
+ declare function scrollToIndex(index: number): void;
4077
+ declare const __VLS_export$7: DefineComponent<__VLS_Props$7, {
4078
+ scrollToIndex: typeof scrollToIndex;
4079
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$7> & Readonly<{}>, {
4080
+ subscribe: SubscribeHandler<string[]>;
4081
+ fetch: Fetch$1<string>;
4082
+ items: string[];
4083
+ height: number;
4084
+ itemHeight: number;
4085
+ buffer: number;
4086
+ dynamicHeight: (item: string, index: number) => number;
4087
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4088
+ declare const _default$71: typeof __VLS_export$7;
4089
+ //#endregion
4090
+ //#region src/components/navigation/Layout.vue.d.ts
4091
+ type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
4092
+ type __VLS_Props$6 = {
4093
+ /** 布局主轴方向 */
4094
+ direction?: 'vertical' | 'horizontal';
4095
+ /** 受控侧栏折叠态 */
4096
+ collapsed?: boolean;
4097
+ defaultCollapsed?: boolean;
4098
+ /** 低于该断点时自动折叠侧栏 */
4099
+ breakpoint?: Breakpoint;
4100
+ /** 是否提供 sider 插槽区域 */
4101
+ hasSider?: boolean;
4102
+ };
4103
+ declare function toggleCollapsed(): void;
4104
+ declare var __VLS_1$3: {
4105
+ collapsed: boolean;
4106
+ toggle: typeof toggleCollapsed;
4107
+ }, __VLS_3: {
4108
+ collapsed: boolean;
4109
+ toggle: typeof toggleCollapsed;
4110
+ }, __VLS_5: {
4111
+ collapsed: boolean;
4112
+ toggle: typeof toggleCollapsed;
4113
+ }, __VLS_7: {};
4114
+ type __VLS_Slots$3 = {} & {
4115
+ header?: (props: typeof __VLS_1$3) => any;
4116
+ } & {
4117
+ sider?: (props: typeof __VLS_3) => any;
4118
+ } & {
4119
+ default?: (props: typeof __VLS_5) => any;
4120
+ } & {
4121
+ footer?: (props: typeof __VLS_7) => any;
4122
+ };
4123
+ declare const __VLS_base$3: DefineComponent<__VLS_Props$6, {
4124
+ collapsed: ComputedRef<boolean>;
4125
+ toggle: typeof toggleCollapsed;
4126
+ collapse: () => void;
4127
+ expand: () => void;
4128
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4129
+ expand: () => any;
4130
+ "update:collapsed": (collapsed: boolean) => any;
4131
+ collapse: () => any;
4132
+ }, string, PublicProps, Readonly<__VLS_Props$6> & Readonly<{
4133
+ onExpand?: (() => any) | undefined;
4134
+ "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
4135
+ onCollapse?: (() => any) | undefined;
4136
+ }>, {
4137
+ direction: "horizontal" | "vertical";
4138
+ collapsed: boolean;
4139
+ defaultCollapsed: boolean;
4140
+ breakpoint: Breakpoint;
4141
+ hasSider: boolean;
4142
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4143
+ declare const __VLS_export$6: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
4144
+ declare const _default$33: typeof __VLS_export$6;
4145
+ type __VLS_WithSlots$3<T, S> = T & {
4146
+ new (): {
4147
+ $slots: S;
4148
+ };
4149
+ };
4150
+ //#endregion
4151
+ //#region src/components/navigation/Grid.vue.d.ts
4152
+ type Cols = 1 | 2 | 3 | 4;
4153
+ type Gap = 'none' | 'sm' | 'md' | 'lg';
4154
+ type __VLS_Props$5 = {
4155
+ /** 默认列数(1-4),可被断点列数覆盖 */
4156
+ cols?: Cols;
4157
+ /** ≥640px 列数 */
4158
+ sm?: Cols;
4159
+ /** ≥768px 列数 */
4160
+ md?: Cols;
4161
+ /** ≥1024px 列数 */
4162
+ lg?: Cols;
4163
+ /** ≥1280px 列数 */
4164
+ xl?: Cols;
4165
+ gap?: Gap;
4166
+ /** 内容居中(最大宽度约束) */
4167
+ centered?: boolean;
4168
+ };
4169
+ declare var __VLS_1$2: {};
4170
+ type __VLS_Slots$2 = {} & {
4171
+ default?: (props: typeof __VLS_1$2) => any;
4172
+ };
4173
+ declare const __VLS_base$2: DefineComponent<__VLS_Props$5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$5> & Readonly<{}>, {
4174
+ md: Cols;
4175
+ sm: Cols;
4176
+ lg: Cols;
4177
+ xl: Cols;
4178
+ cols: Cols;
4179
+ gap: Gap;
4180
+ centered: boolean;
4181
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4182
+ declare const __VLS_export$5: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
4183
+ declare const _default$28: typeof __VLS_export$5;
4184
+ type __VLS_WithSlots$2<T, S> = T & {
4185
+ new (): {
4186
+ $slots: S;
4187
+ };
4188
+ };
4189
+ //#endregion
4190
+ //#region src/components/navigation/Space.vue.d.ts
4191
+ type __VLS_Props$4 = {
4192
+ direction?: 'horizontal' | 'vertical';
4193
+ size?: 'sm' | 'md' | 'lg';
4194
+ /** 子项换行对齐 */
4195
+ wrap?: boolean;
4196
+ };
4197
+ declare const __VLS_export$4: DefineComponent<__VLS_Props$4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$4> & Readonly<{}>, {
4198
+ size: "md" | "sm" | "lg";
4199
+ direction: "horizontal" | "vertical";
4200
+ wrap: boolean;
4201
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4202
+ declare const _default$55: typeof __VLS_export$4;
4203
+ //#endregion
4204
+ //#region src/components/extras/Watermark.vue.d.ts
4205
+ type __VLS_Props$3 = {
4206
+ /** 水印文字 */
4207
+ content?: string | string[];
4208
+ /** 旋转角度(deg) */
4209
+ rotate?: number;
4210
+ /** 平铺间隔(px) */
4211
+ gap?: number;
4212
+ /** 水印颜色 */
4213
+ color?: string;
4214
+ /** 字号(px) */
4215
+ fontSize?: number;
4216
+ /** 水印图片(优先于文字,传图片地址) */
4217
+ image?: string;
4218
+ /** 水印层级 */
4219
+ zIndex?: number;
4220
+ /** 订阅水印内容:挂载时调用,resolve 出的内容用于渲染,优先级高于 content */
4221
+ subscribe?: SubscribeHandler<string | string[]>;
4222
+ /** 订阅失败时的回退文案 */
4223
+ errorText?: string;
4224
+ };
4225
+ declare var __VLS_1$1: {};
4226
+ type __VLS_Slots$1 = {} & {
4227
+ default?: (props: typeof __VLS_1$1) => any;
4228
+ };
4229
+ declare const __VLS_base$1: DefineComponent<__VLS_Props$3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$3> & Readonly<{}>, {
4230
+ subscribe: SubscribeHandler<string | string[]>;
4231
+ errorText: string;
4232
+ content: string | string[];
4233
+ zIndex: number;
4234
+ gap: number;
4235
+ rotate: number;
4236
+ color: string;
4237
+ fontSize: number;
4238
+ image: string;
4239
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4240
+ declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
4241
+ declare const _default$72: typeof __VLS_export$3;
4242
+ type __VLS_WithSlots$1<T, S> = T & {
4243
+ new (): {
4244
+ $slots: S;
4245
+ };
4246
+ };
4247
+ //#endregion
4248
+ //#region src/components/extras/Tour.vue.d.ts
4249
+ interface TourStep {
4250
+ key: string;
4251
+ title: string;
4252
+ content: string;
4253
+ /** 目标元素选择器(高亮挖空 + 卡片定位) */
4254
+ target?: string;
4255
+ /** 卡片相对目标的位置 */
4256
+ placement?: 'top' | 'bottom' | 'left' | 'right' | 'center';
4257
+ }
4258
+ type __VLS_Props$2 = {
4259
+ steps: TourStep[];
4260
+ open?: boolean;
4261
+ /** 是否显示"跳过"按钮 */
4262
+ skippable?: boolean;
4263
+ /** 是否显示关闭按钮 */
4264
+ closable?: boolean;
4265
+ /** 高亮挖空区与目标的间距 */
4266
+ gap?: number;
4267
+ /** 步骤推进动作:执行期间禁用推进,失败停留当前步骤并展示错误提示 */
4268
+ action?: ActionLike;
4269
+ /** 动作失败时的回退文案 */
4270
+ errorText?: string;
4271
+ };
4272
+ type __VLS_ModelProps = {
4273
+ 'open'?: boolean;
4274
+ };
4275
+ type __VLS_PublicProps = __VLS_Props$2 & __VLS_ModelProps;
4276
+ declare const __VLS_export$2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4277
+ change: (current: number) => any;
4278
+ finish: () => any;
4279
+ close: () => any;
4280
+ actionError: (error: unknown) => any;
4281
+ "update:open": (...args: unknown[]) => any;
4282
+ skip: () => any;
4283
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
4284
+ onChange?: ((current: number) => any) | undefined;
4285
+ onFinish?: (() => any) | undefined;
4286
+ onClose?: (() => any) | undefined;
4287
+ onActionError?: ((error: unknown) => any) | undefined;
4288
+ "onUpdate:open"?: ((...args: unknown[]) => any) | undefined;
4289
+ onSkip?: (() => any) | undefined;
4290
+ }>, {
4291
+ action: ActionLike;
4292
+ errorText: string;
4293
+ closable: boolean;
4294
+ open: boolean;
4295
+ steps: TourStep[];
4296
+ gap: number;
4297
+ skippable: boolean;
4298
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4299
+ declare const _default$65: typeof __VLS_export$2;
4300
+ //#endregion
4301
+ //#region src/components/extras/QRCode.vue.d.ts
4302
+ type ErrorLevel = 'L' | 'M' | 'Q' | 'H';
4303
+ type __VLS_Props$1 = {
4304
+ value?: string;
4305
+ /** 格子规模(奇数,保证定位角对齐) */
4306
+ size?: number;
4307
+ /** 容错等级(演示矩阵中影响数据区填充密度) */
4308
+ level?: ErrorLevel;
4309
+ /** 前景色 */
4310
+ color?: string;
4311
+ /** 背景色 */
4312
+ background?: string;
4313
+ /** 订阅二维码内容:挂载时调用,resolve 出的字符串用于渲染,优先级高于 value */
4314
+ subscribe?: SubscribeHandler<string>;
4315
+ /** 订阅失败时的回退文案 */
4316
+ errorText?: string;
4317
+ };
4318
+ declare const __VLS_export$1: DefineComponent<__VLS_Props$1, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props$1> & Readonly<{}>, {
4319
+ size: number;
4320
+ level: ErrorLevel;
4321
+ subscribe: SubscribeHandler<string>;
4322
+ errorText: string;
4323
+ value: string;
4324
+ color: string;
4325
+ background: string;
4326
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4327
+ declare const _default$46: typeof __VLS_export$1;
4328
+ //#endregion
4329
+ //#region src/components/extras/CodeCard.vue.d.ts
4330
+ type __VLS_Props = {
4331
+ /** 卡片标题,不传则不渲染标题栏 */
4332
+ title?: string;
4333
+ /** 示例源码文本,支持带公共缩进的模板字符串 */
4334
+ code: string;
4335
+ /** 源码语言(vue / typescript / javascript / css / html / json) */
4336
+ language?: string;
4337
+ /** 初始是否展开代码 */
4338
+ defaultExpand?: boolean;
4339
+ /** 是否允许编辑代码;编辑内容通过 update:code 同步给宿主 */
4340
+ editable?: boolean;
4341
+ };
4342
+ declare var __VLS_1: {};
4343
+ type __VLS_Slots = {} & {
4344
+ default?: (props: typeof __VLS_1) => any;
4345
+ };
4346
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4347
+ reset: () => any;
4348
+ "update:code": (code: string) => any;
4349
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
4350
+ onReset?: (() => any) | undefined;
4351
+ "onUpdate:code"?: ((code: string) => any) | undefined;
4352
+ }>, {
4353
+ editable: boolean;
4354
+ title: string;
4355
+ language: string;
4356
+ defaultExpand: boolean;
4357
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4358
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4359
+ declare const _default$15: typeof __VLS_export;
4360
+ type __VLS_WithSlots<T, S> = T & {
4361
+ new (): {
4362
+ $slots: S;
4363
+ };
4364
+ };
4365
+ //#endregion
4366
+ //#region src/index.d.ts
4367
+ /** 全量安装入口:app.use(Cumquat) 后以 <c-xxx> 标签名使用全部组件 */
4368
+ export declare const Cumquat: {
4369
+ install(app: App): void;
4370
+ };
4371
+ //#endregion
4372
+ export { _default as Affix, _default$1 as Alert, _default$2 as Anchor, _default$3 as AutoComplete, _default$4 as Avatar, _default$5 as BackTop, _default$6 as Badge, _default$7 as Breadcrumb, _default$8 as Button, _default$9 as Calendar, _default$10 as Card, _default$11 as Carousel, _default$12 as Cascader, type CellColumn, type CellRenderer, _default$13 as Chat, _default$14 as Checkbox, _default$15 as CodeCard, _default$16 as Collapse, _default$17 as ColorPicker, Cumquat as default, _default$18 as DatePicker, _default$19 as Descriptions, _default$20 as Dialog, _default$21 as Divider, _default$22 as Drawer, _default$23 as Dropdown, _default$24 as Empty, type Fetch, type FetchPagination, type FetchQuery, type FetchResult, type FetchSorter, type FieldContext, type FieldRenderer, _default$25 as FloatButton, _default$26 as Form, type FormFieldMeta, _default$27 as FormItem, _default$28 as Grid, _default$29 as Icon, _default$30 as Image, _default$31 as Input, _default$32 as InputNumber, _default$33 as Layout, _default$34 as LiveDemo, _default$35 as Loading, _default$36 as Mention, _default$37 as Menu, _default$38 as Message, _default$39 as MessageContainer, _default$40 as Notification, _default$41 as NotificationContainer, type PagedResult, _default$42 as Pagination, _default$43 as Popconfirm, _default$44 as Popover, _default$45 as Progress, _default$46 as QRCode, _default$47 as Radio, _default$48 as RadioGroup, _default$49 as Rate, _default$50 as Result, _default$51 as Segmented, _default$52 as Select, _default$53 as Skeleton, _default$54 as Slider, _default$55 as Space, _default$56 as Statistic, _default$57 as Steps, _default$58 as Switch, _default$59 as Table, _default$60 as Tabs, _default$61 as Tag, _default$62 as TimePicker, _default$63 as Timeline, _default$64 as Tooltip, _default$65 as Tour, _default$66 as Transfer, _default$67 as Tree, _default$68 as TreeSelect, _default$69 as Typography, _default$70 as Upload, type UseFetchReturn, _default$71 as VirtualList, _default$72 as Watermark };