@vueuse/components 13.9.0 → 14.0.0-alpha.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.
- package/index.d.mts +412 -753
- package/index.iife.js +631 -2116
- package/index.iife.min.js +1 -1
- package/index.mjs +614 -2099
- package/package.json +3 -3
package/index.d.mts
CHANGED
|
@@ -1,112 +1,36 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import { UseClipboardOptions, UseDarkOptions, UseDevicesListOptions, UseDraggableOptions,
|
|
4
|
-
import {
|
|
2
|
+
import { ObjectDirective, SlotsType, Reactive, UnwrapRef, ComputedRef, Ref, FunctionDirective, MaybeRef, ShallowRef } from 'vue';
|
|
3
|
+
import { RenderableComponent as RenderableComponent$1, OnClickOutsideOptions, OnClickOutsideHandler, OnKeyStrokeOptions, OnLongPressOptions, UseOnLongPressReturn, UseActiveElementOptions, UseActiveElementReturn, ConfigurableNavigator, UseBatteryReturn, ConfigurableWindow, UseBrowserLocationReturn, UseClipboardOptions, UseClipboardReturn, UseColorModeOptions, UseColorModeReturn, BasicColorMode, UseDarkOptions, UseDarkReturn, DeviceMotionOptions, UseDeviceMotionReturn, UseDeviceOrientationReturn, UseDevicePixelRatioReturn, UseDevicesListOptions, UseDevicesListReturn, ConfigurableDocument, UseDocumentVisibilityReturn, UseDraggableOptions, UseElementBoundingOptions, UseElementBoundingReturn, UseElementHoverOptions, ElementSize, UseResizeObserverOptions, UseElementSizeReturn, useElementSize, UseElementVisibilityOptions, UseElementVisibilityReturn, UseEyeDropperOptions, UseEyeDropperReturn, UseFullscreenOptions, UseFullscreenReturn, UseGeolocationOptions, UseGeolocationReturn, UseIdleOptions, UseIdleReturn, UseImageOptions, UseImageReturn, useInfiniteScroll, UseInfiniteScrollOptions, UseIntersectionObserverOptions, UseMouseOptions, UseMouseReturn, MouseInElementOptions, UseMouseInElementReturn, MousePressedOptions, UseMousePressedReturn, UseNetworkReturn, UseNowOptions, UseNowReturn, UseOffsetPaginationOptions, UseOffsetPaginationReturn, UsePageLeaveReturn, UsePointerOptions, UsePointerReturn, UsePointerLockOptions, UsePointerLockReturn, ColorSchemeType, ContrastType, ReducedMotionType, ResizeObserverCallback, UseScreenSafeAreaReturn, UseScrollReturn, UseScrollOptions, UseTimeAgoOptions, UseTimeAgoReturn, UseTimestampOptions, UseTimestampReturn, UseVirtualListOptions, UseWindowSizeOptions, UseWindowSizeReturn } from '@vueuse/core';
|
|
4
|
+
import { ToggleFn } from '@vueuse/shared';
|
|
5
5
|
|
|
6
|
-
interface
|
|
7
|
-
window?: Window;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface Position {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
}
|
|
14
|
-
interface RenderableComponent {
|
|
15
|
-
/**
|
|
16
|
-
* The element that the component should be rendered as
|
|
17
|
-
*
|
|
18
|
-
* @default 'div'
|
|
19
|
-
*/
|
|
20
|
-
as?: object | string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type VueInstance = ComponentPublicInstance;
|
|
24
|
-
type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>;
|
|
25
|
-
type MaybeComputedElementRef<T extends MaybeElement = MaybeElement> = MaybeRefOrGetter<T>;
|
|
26
|
-
type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
|
|
27
|
-
|
|
28
|
-
interface OnClickOutsideOptions<Controls extends boolean = false> extends ConfigurableWindow {
|
|
29
|
-
/**
|
|
30
|
-
* List of elements that should not trigger the event,
|
|
31
|
-
* provided as Refs or CSS Selectors.
|
|
32
|
-
*/
|
|
33
|
-
ignore?: MaybeRefOrGetter<(MaybeElementRef | string)[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Use capturing phase for internal event listener.
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
capture?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Run handler function if focus moves to an iframe.
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
detectIframe?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Use controls to cancel/trigger listener.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
controls?: Controls;
|
|
49
|
-
}
|
|
50
|
-
type OnClickOutsideHandler<T extends OnClickOutsideOptions<boolean> = OnClickOutsideOptions> = (event: (T['detectIframe'] extends true ? FocusEvent : never) | (T['controls'] extends true ? Event : never) | PointerEvent) => void;
|
|
51
|
-
|
|
52
|
-
interface OnClickOutsideProps extends RenderableComponent {
|
|
6
|
+
interface OnClickOutsideProps extends RenderableComponent$1 {
|
|
53
7
|
options?: Omit<OnClickOutsideOptions, 'controls'>;
|
|
54
8
|
}
|
|
55
|
-
|
|
9
|
+
type OnClickOutsideEmits = {
|
|
10
|
+
trigger: (event: Event) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const OnClickOutside: vue.DefineSetupFnComponent<OnClickOutsideProps, OnClickOutsideEmits, {}, OnClickOutsideProps & {
|
|
13
|
+
onTrigger?: ((event: Event) => any) | undefined;
|
|
14
|
+
}, vue.PublicProps>;
|
|
56
15
|
|
|
57
16
|
declare const vOnClickOutside: ObjectDirective<HTMLElement, OnClickOutsideHandler | [(evt: any) => void, Omit<OnClickOutsideOptions, 'controls'>]>;
|
|
58
17
|
|
|
59
|
-
type KeyStrokeEventName = 'keydown' | 'keypress' | 'keyup';
|
|
60
|
-
interface OnKeyStrokeOptions {
|
|
61
|
-
eventName?: KeyStrokeEventName;
|
|
62
|
-
target?: MaybeRefOrGetter<EventTarget | null | undefined>;
|
|
63
|
-
passive?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Set to `true` to ignore repeated events when the key is being held down.
|
|
66
|
-
*
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
dedupe?: MaybeRefOrGetter<boolean>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
18
|
type BindingValueFunction$a = (event: KeyboardEvent) => void;
|
|
73
19
|
type BindingValueArray$9 = [BindingValueFunction$a, OnKeyStrokeOptions];
|
|
74
20
|
declare const vOnKeyStroke: ObjectDirective<HTMLElement, BindingValueFunction$a | BindingValueArray$9>;
|
|
75
21
|
|
|
76
|
-
interface
|
|
77
|
-
/**
|
|
78
|
-
* Time in ms till `longpress` gets called
|
|
79
|
-
*
|
|
80
|
-
* @default 500
|
|
81
|
-
*/
|
|
82
|
-
delay?: number | ((ev: PointerEvent) => number);
|
|
83
|
-
modifiers?: OnLongPressModifiers;
|
|
84
|
-
/**
|
|
85
|
-
* Allowance of moving distance in pixels,
|
|
86
|
-
* The action will get canceled When moving too far from the pointerdown position.
|
|
87
|
-
* @default 10
|
|
88
|
-
*/
|
|
89
|
-
distanceThreshold?: number | false;
|
|
90
|
-
/**
|
|
91
|
-
* Function called when the ref element is released.
|
|
92
|
-
* @param duration how long the element was pressed in ms
|
|
93
|
-
* @param distance distance from the pointerdown position
|
|
94
|
-
* @param isLongPress whether the action was a long press or not
|
|
95
|
-
*/
|
|
96
|
-
onMouseUp?: (duration: number, distance: number, isLongPress: boolean) => void;
|
|
97
|
-
}
|
|
98
|
-
interface OnLongPressModifiers {
|
|
99
|
-
stop?: boolean;
|
|
100
|
-
once?: boolean;
|
|
101
|
-
prevent?: boolean;
|
|
102
|
-
capture?: boolean;
|
|
103
|
-
self?: boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface OnLongPressProps extends RenderableComponent {
|
|
22
|
+
interface OnLongPressProps extends RenderableComponent$1 {
|
|
107
23
|
options?: OnLongPressOptions;
|
|
108
24
|
}
|
|
109
|
-
|
|
25
|
+
type OnLongPressEmits = {
|
|
26
|
+
trigger: (event: PointerEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
interface OnLongPressSlots {
|
|
29
|
+
default: (data: UseOnLongPressReturn) => any;
|
|
30
|
+
}
|
|
31
|
+
declare const OnLongPress: vue.DefineSetupFnComponent<OnLongPressProps, OnLongPressEmits, SlotsType<OnLongPressSlots>, OnLongPressProps & {
|
|
32
|
+
onTrigger?: ((event: PointerEvent) => any) | undefined;
|
|
33
|
+
}, vue.PublicProps>;
|
|
110
34
|
|
|
111
35
|
type BindingValueFunction$9 = (evt: PointerEvent) => void;
|
|
112
36
|
type BindingValueArray$8 = [
|
|
@@ -115,179 +39,117 @@ type BindingValueArray$8 = [
|
|
|
115
39
|
];
|
|
116
40
|
declare const vOnLongPress: ObjectDirective<HTMLElement, BindingValueFunction$9 | BindingValueArray$8>;
|
|
117
41
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
42
|
+
interface UseActiveElementProps extends UseActiveElementOptions {
|
|
43
|
+
}
|
|
44
|
+
interface UseActiveElementSlots {
|
|
45
|
+
default: (data: Reactive<{
|
|
46
|
+
element: UseActiveElementReturn;
|
|
47
|
+
}>) => any;
|
|
48
|
+
}
|
|
49
|
+
declare const UseActiveElement: vue.DefineSetupFnComponent<UseActiveElementProps, Record<string, never>, SlotsType<UseActiveElementSlots>, UseActiveElementProps & {
|
|
50
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
51
|
+
}, vue.PublicProps>;
|
|
121
52
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
53
|
+
interface UseBatteryProps extends ConfigurableNavigator {
|
|
54
|
+
}
|
|
55
|
+
interface UseBatterySlots {
|
|
56
|
+
default: (data: Reactive<UseBatteryReturn>) => any;
|
|
57
|
+
}
|
|
58
|
+
declare const UseBattery: vue.DefineSetupFnComponent<UseBatteryProps, Record<string, never>, SlotsType<UseBatterySlots>, UseBatteryProps & {
|
|
59
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
60
|
+
}, vue.PublicProps>;
|
|
125
61
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
62
|
+
interface UseBrowserLocationProps extends ConfigurableWindow {
|
|
63
|
+
}
|
|
64
|
+
interface UseBrowserLocationSlots {
|
|
65
|
+
default: (data: Reactive<UseBrowserLocationReturn>) => any;
|
|
66
|
+
}
|
|
67
|
+
declare const UseBrowserLocation: vue.DefineSetupFnComponent<UseBrowserLocationProps, Record<string, never>, SlotsType<UseBrowserLocationSlots>, UseBrowserLocationProps & {
|
|
68
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
69
|
+
}, vue.PublicProps>;
|
|
129
70
|
|
|
130
71
|
interface UseClipboardProps<Source = string> extends UseClipboardOptions<Source> {
|
|
131
72
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
interface StorageLike {
|
|
135
|
-
getItem: (key: string) => string | null;
|
|
136
|
-
setItem: (key: string, value: string) => void;
|
|
137
|
-
removeItem: (key: string) => void;
|
|
73
|
+
interface UseClipboardSlots {
|
|
74
|
+
default: (data: Reactive<UseClipboardReturn<true>>) => any;
|
|
138
75
|
}
|
|
76
|
+
declare const UseClipboard: vue.DefineSetupFnComponent<UseClipboardProps<string>, Record<string, never>, SlotsType<UseClipboardSlots>, UseClipboardProps<string> & {
|
|
77
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
78
|
+
}, vue.PublicProps>;
|
|
139
79
|
|
|
140
|
-
interface
|
|
141
|
-
read: (raw: string) => T;
|
|
142
|
-
write: (value: T) => string;
|
|
80
|
+
interface UseColorModeProps extends UseColorModeOptions {
|
|
143
81
|
}
|
|
144
|
-
interface
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
deep?: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Listen to storage changes, useful for multiple tabs application
|
|
153
|
-
*
|
|
154
|
-
* @default true
|
|
155
|
-
*/
|
|
156
|
-
listenToStorageChanges?: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Write the default value to the storage when it does not exist
|
|
159
|
-
*
|
|
160
|
-
* @default true
|
|
161
|
-
*/
|
|
162
|
-
writeDefaults?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Merge the default value with the value read from the storage.
|
|
165
|
-
*
|
|
166
|
-
* When setting it to true, it will perform a **shallow merge** for objects.
|
|
167
|
-
* You can pass a function to perform custom merge (e.g. deep merge), for example:
|
|
168
|
-
*
|
|
169
|
-
* @default false
|
|
170
|
-
*/
|
|
171
|
-
mergeDefaults?: boolean | ((storageValue: T, defaults: T) => T);
|
|
172
|
-
/**
|
|
173
|
-
* Custom data serialization
|
|
174
|
-
*/
|
|
175
|
-
serializer?: Serializer<T>;
|
|
176
|
-
/**
|
|
177
|
-
* On error callback
|
|
178
|
-
*
|
|
179
|
-
* Default log error to `console.error`
|
|
180
|
-
*/
|
|
181
|
-
onError?: (error: unknown) => void;
|
|
182
|
-
/**
|
|
183
|
-
* Use shallow ref as reference
|
|
184
|
-
*
|
|
185
|
-
* @default false
|
|
186
|
-
*/
|
|
187
|
-
shallow?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Wait for the component to be mounted before reading the storage.
|
|
190
|
-
*
|
|
191
|
-
* @default false
|
|
192
|
-
*/
|
|
193
|
-
initOnMounted?: boolean;
|
|
82
|
+
interface UseColorModeSlots {
|
|
83
|
+
default: (data: Reactive<{
|
|
84
|
+
mode: UseColorModeReturn<BasicColorMode>;
|
|
85
|
+
system: UseColorModeReturn['system'];
|
|
86
|
+
store: UseColorModeReturn['store'];
|
|
87
|
+
}>) => any;
|
|
194
88
|
}
|
|
89
|
+
declare const UseColorMode: vue.DefineSetupFnComponent<UseColorModeProps, Record<string, never>, SlotsType<UseColorModeSlots>, UseColorModeProps & {
|
|
90
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
91
|
+
}, vue.PublicProps>;
|
|
195
92
|
|
|
196
|
-
|
|
197
|
-
type BasicColorSchema = BasicColorMode | 'auto';
|
|
198
|
-
interface UseColorModeOptions<T extends string = BasicColorMode> extends UseStorageOptions<T | BasicColorMode> {
|
|
199
|
-
/**
|
|
200
|
-
* CSS Selector for the target element applying to
|
|
201
|
-
*
|
|
202
|
-
* @default 'html'
|
|
203
|
-
*/
|
|
204
|
-
selector?: string | MaybeElementRef;
|
|
205
|
-
/**
|
|
206
|
-
* HTML attribute applying the target element
|
|
207
|
-
*
|
|
208
|
-
* @default 'class'
|
|
209
|
-
*/
|
|
210
|
-
attribute?: string;
|
|
211
|
-
/**
|
|
212
|
-
* The initial color mode
|
|
213
|
-
*
|
|
214
|
-
* @default 'auto'
|
|
215
|
-
*/
|
|
216
|
-
initialValue?: MaybeRefOrGetter<T | BasicColorSchema>;
|
|
217
|
-
/**
|
|
218
|
-
* Prefix when adding value to the attribute
|
|
219
|
-
*/
|
|
220
|
-
modes?: Partial<Record<T | BasicColorSchema, string>>;
|
|
221
|
-
/**
|
|
222
|
-
* A custom handler for handle the updates.
|
|
223
|
-
* When specified, the default behavior will be overridden.
|
|
224
|
-
*
|
|
225
|
-
* @default undefined
|
|
226
|
-
*/
|
|
227
|
-
onChanged?: (mode: T | BasicColorMode, defaultHandler: ((mode: T | BasicColorMode) => void)) => void;
|
|
228
|
-
/**
|
|
229
|
-
* Custom storage ref
|
|
230
|
-
*
|
|
231
|
-
* When provided, `useStorage` will be skipped
|
|
232
|
-
*/
|
|
233
|
-
storageRef?: Ref<T | BasicColorSchema>;
|
|
234
|
-
/**
|
|
235
|
-
* Key to persist the data into localStorage/sessionStorage.
|
|
236
|
-
*
|
|
237
|
-
* Pass `null` to disable persistence
|
|
238
|
-
*
|
|
239
|
-
* @default 'vueuse-color-scheme'
|
|
240
|
-
*/
|
|
241
|
-
storageKey?: string | null;
|
|
242
|
-
/**
|
|
243
|
-
* Storage object, can be localStorage or sessionStorage
|
|
244
|
-
*
|
|
245
|
-
* @default localStorage
|
|
246
|
-
*/
|
|
247
|
-
storage?: StorageLike;
|
|
248
|
-
/**
|
|
249
|
-
* Emit `auto` mode from state
|
|
250
|
-
*
|
|
251
|
-
* When set to `true`, preferred mode won't be translated into `light` or `dark`.
|
|
252
|
-
* This is useful when the fact that `auto` mode was selected needs to be known.
|
|
253
|
-
*
|
|
254
|
-
* @default undefined
|
|
255
|
-
* @deprecated use `store.value` when `auto` mode needs to be known
|
|
256
|
-
* @see https://vueuse.org/core/useColorMode/#advanced-usage
|
|
257
|
-
*/
|
|
258
|
-
emitAuto?: boolean;
|
|
259
|
-
/**
|
|
260
|
-
* Disable transition on switch
|
|
261
|
-
*
|
|
262
|
-
* @see https://paco.me/writing/disable-theme-transitions
|
|
263
|
-
* @default true
|
|
264
|
-
*/
|
|
265
|
-
disableTransition?: boolean;
|
|
93
|
+
interface UseDarkProps extends UseDarkOptions {
|
|
266
94
|
}
|
|
95
|
+
interface UseDarkSlots {
|
|
96
|
+
default: (data: Reactive<{
|
|
97
|
+
isDark: UseDarkReturn;
|
|
98
|
+
toggleDark: ToggleFn;
|
|
99
|
+
}>) => any;
|
|
100
|
+
}
|
|
101
|
+
declare const UseDark: vue.DefineSetupFnComponent<UseDarkProps, Record<string, never>, SlotsType<UseDarkSlots>, UseDarkProps & {
|
|
102
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
103
|
+
}, vue.PublicProps>;
|
|
267
104
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
105
|
+
interface UseDeviceMotionProps extends DeviceMotionOptions {
|
|
106
|
+
}
|
|
107
|
+
interface UseDeviceMotionSlots {
|
|
108
|
+
default: (data: UseDeviceMotionReturn) => any;
|
|
109
|
+
}
|
|
110
|
+
declare const UseDeviceMotion: vue.DefineSetupFnComponent<UseDeviceMotionProps, Record<string, never>, SlotsType<UseDeviceMotionSlots>, UseDeviceMotionProps & {
|
|
111
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
112
|
+
}, vue.PublicProps>;
|
|
275
113
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
114
|
+
interface UseDeviceOrientationProps extends ConfigurableWindow {
|
|
115
|
+
}
|
|
116
|
+
interface UseDeviceOrientationSlots {
|
|
117
|
+
default: (data: Reactive<UseDeviceOrientationReturn>) => any;
|
|
118
|
+
}
|
|
119
|
+
declare const UseDeviceOrientation: vue.DefineSetupFnComponent<UseDeviceOrientationProps, Record<string, never>, SlotsType<UseDeviceOrientationSlots>, UseDeviceOrientationProps & {
|
|
120
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
121
|
+
}, vue.PublicProps>;
|
|
279
122
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
123
|
+
interface UseDevicePixelRatioProps extends ConfigurableWindow {
|
|
124
|
+
}
|
|
125
|
+
interface UseDevicePixelRatioSlots {
|
|
126
|
+
default: (data: Reactive<UseDevicePixelRatioReturn>) => any;
|
|
127
|
+
}
|
|
128
|
+
declare const UseDevicePixelRatio: vue.DefineSetupFnComponent<UseDevicePixelRatioProps, Record<string, never>, SlotsType<UseDevicePixelRatioSlots>, UseDevicePixelRatioProps & {
|
|
129
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
130
|
+
}, vue.PublicProps>;
|
|
283
131
|
|
|
284
|
-
|
|
132
|
+
interface UseDevicesListProps extends UseDevicesListOptions {
|
|
133
|
+
}
|
|
134
|
+
interface UseDevicesListSlots {
|
|
135
|
+
default: (data: Reactive<UseDevicesListReturn>) => any;
|
|
136
|
+
}
|
|
137
|
+
declare const UseDevicesList: vue.DefineSetupFnComponent<UseDevicesListProps, Record<string, never>, SlotsType<UseDevicesListSlots>, UseDevicesListProps & {
|
|
138
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
139
|
+
}, vue.PublicProps>;
|
|
285
140
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
141
|
+
interface UseDocumentVisibilityProps extends ConfigurableDocument {
|
|
142
|
+
}
|
|
143
|
+
interface UseDocumentVisibilitySlots {
|
|
144
|
+
default: (data: Reactive<{
|
|
145
|
+
visibility: UseDocumentVisibilityReturn;
|
|
146
|
+
}>) => any;
|
|
147
|
+
}
|
|
148
|
+
declare const UseDocumentVisibility: vue.DefineSetupFnComponent<UseDocumentVisibilityProps, Record<string, never>, SlotsType<UseDocumentVisibilitySlots>, UseDocumentVisibilityProps & {
|
|
149
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
150
|
+
}, vue.PublicProps>;
|
|
289
151
|
|
|
290
|
-
interface UseDraggableProps extends UseDraggableOptions, RenderableComponent {
|
|
152
|
+
interface UseDraggableProps extends UseDraggableOptions, RenderableComponent$1 {
|
|
291
153
|
/**
|
|
292
154
|
* When provided, use `useStorage` to preserve element's position
|
|
293
155
|
*/
|
|
@@ -299,122 +161,35 @@ interface UseDraggableProps extends UseDraggableOptions, RenderableComponent {
|
|
|
299
161
|
*/
|
|
300
162
|
storageType?: 'local' | 'session';
|
|
301
163
|
}
|
|
302
|
-
declare const UseDraggable: vue.
|
|
164
|
+
declare const UseDraggable: vue.DefineSetupFnComponent<UseDraggableProps, Record<string, never>, SlotsType<any>, UseDraggableProps & {
|
|
165
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
166
|
+
}, vue.PublicProps>;
|
|
303
167
|
|
|
304
|
-
interface
|
|
305
|
-
readonly inlineSize: number;
|
|
306
|
-
readonly blockSize: number;
|
|
307
|
-
}
|
|
308
|
-
interface ResizeObserverEntry {
|
|
309
|
-
readonly target: Element;
|
|
310
|
-
readonly contentRect: DOMRectReadOnly;
|
|
311
|
-
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
312
|
-
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
313
|
-
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
314
|
-
}
|
|
315
|
-
type ResizeObserverCallback = (entries: ReadonlyArray<ResizeObserverEntry>, observer: ResizeObserver) => void;
|
|
316
|
-
interface UseResizeObserverOptions extends ConfigurableWindow {
|
|
317
|
-
/**
|
|
318
|
-
* Sets which box model the observer will observe changes to. Possible values
|
|
319
|
-
* are `content-box` (the default), `border-box` and `device-pixel-content-box`.
|
|
320
|
-
*
|
|
321
|
-
* @default 'content-box'
|
|
322
|
-
*/
|
|
323
|
-
box?: ResizeObserverBoxOptions;
|
|
168
|
+
interface UseElementBoundingProps extends UseElementBoundingOptions, RenderableComponent$1 {
|
|
324
169
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
disconnect(): void;
|
|
328
|
-
observe(target: Element, options?: UseResizeObserverOptions): void;
|
|
329
|
-
unobserve(target: Element): void;
|
|
170
|
+
interface UseElementBoundingSlots {
|
|
171
|
+
default: (data: Reactive<UseElementBoundingReturn>) => any;
|
|
330
172
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
interface UseElementBoundingOptions {
|
|
335
|
-
/**
|
|
336
|
-
* Reset values to 0 on component unmounted
|
|
337
|
-
*
|
|
338
|
-
* @default true
|
|
339
|
-
*/
|
|
340
|
-
reset?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* Listen to window resize event
|
|
343
|
-
*
|
|
344
|
-
* @default true
|
|
345
|
-
*/
|
|
346
|
-
windowResize?: boolean;
|
|
347
|
-
/**
|
|
348
|
-
* Listen to window scroll event
|
|
349
|
-
*
|
|
350
|
-
* @default true
|
|
351
|
-
*/
|
|
352
|
-
windowScroll?: boolean;
|
|
353
|
-
/**
|
|
354
|
-
* Immediately call update on component mounted
|
|
355
|
-
*
|
|
356
|
-
* @default true
|
|
357
|
-
*/
|
|
358
|
-
immediate?: boolean;
|
|
359
|
-
/**
|
|
360
|
-
* Timing to recalculate the bounding box
|
|
361
|
-
*
|
|
362
|
-
* Setting to `next-frame` can be useful when using this together with something like {@link useBreakpoints}
|
|
363
|
-
* and therefore the layout (which influences the bounding box of the observed element) is not updated on the current tick.
|
|
364
|
-
*
|
|
365
|
-
* @default 'sync'
|
|
366
|
-
*/
|
|
367
|
-
updateTiming?: 'sync' | 'next-frame';
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Reactive bounding box of an HTML element.
|
|
371
|
-
*
|
|
372
|
-
* @see https://vueuse.org/useElementBounding
|
|
373
|
-
* @param target
|
|
374
|
-
*/
|
|
375
|
-
declare function useElementBounding(target: MaybeComputedElementRef, options?: UseElementBoundingOptions): {
|
|
376
|
-
height: vue.ShallowRef<number, number>;
|
|
377
|
-
bottom: vue.ShallowRef<number, number>;
|
|
378
|
-
left: vue.ShallowRef<number, number>;
|
|
379
|
-
right: vue.ShallowRef<number, number>;
|
|
380
|
-
top: vue.ShallowRef<number, number>;
|
|
381
|
-
width: vue.ShallowRef<number, number>;
|
|
382
|
-
x: vue.ShallowRef<number, number>;
|
|
383
|
-
y: vue.ShallowRef<number, number>;
|
|
384
|
-
update: () => void;
|
|
385
|
-
};
|
|
386
|
-
type UseElementBoundingReturn = ReturnType<typeof useElementBounding>;
|
|
173
|
+
declare const UseElementBounding: vue.DefineSetupFnComponent<UseElementBoundingProps, Record<string, never>, SlotsType<UseElementBoundingSlots>, UseElementBoundingProps & {
|
|
174
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
175
|
+
}, vue.PublicProps>;
|
|
387
176
|
|
|
388
177
|
type ElementBounding = Omit<UseElementBoundingReturn, 'update'>;
|
|
389
178
|
type BindingValueFunction$8 = (bounding: ElementBounding) => void;
|
|
390
179
|
type BindingValueArray$7 = [BindingValueFunction$8, UseElementBoundingOptions];
|
|
391
180
|
declare const vElementBounding: ObjectDirective<HTMLElement, BindingValueFunction$8 | BindingValueArray$7>;
|
|
392
181
|
|
|
393
|
-
interface UseElementHoverOptions extends ConfigurableWindow {
|
|
394
|
-
delayEnter?: number;
|
|
395
|
-
delayLeave?: number;
|
|
396
|
-
triggerOnRemoval?: boolean;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
182
|
type BindingValueFunction$7 = (state: boolean) => void;
|
|
400
183
|
declare const vElementHover: ObjectDirective<HTMLElement, BindingValueFunction$7 | [handler: BindingValueFunction$7, options: UseElementHoverOptions]>;
|
|
401
184
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
interface
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
*
|
|
411
|
-
* @see https://vueuse.org/useElementSize
|
|
412
|
-
*/
|
|
413
|
-
declare function useElementSize(target: MaybeComputedElementRef, initialSize?: ElementSize, options?: UseResizeObserverOptions): {
|
|
414
|
-
width: vue.ShallowRef<number, number>;
|
|
415
|
-
height: vue.ShallowRef<number, number>;
|
|
416
|
-
stop: () => void;
|
|
417
|
-
};
|
|
185
|
+
interface UseElementSizeProps extends Partial<ElementSize>, UseResizeObserverOptions, RenderableComponent$1 {
|
|
186
|
+
}
|
|
187
|
+
interface UseElementSizeSlots {
|
|
188
|
+
default: (data: Reactive<UseElementSizeReturn>) => any;
|
|
189
|
+
}
|
|
190
|
+
declare const UseElementSize: vue.DefineSetupFnComponent<UseElementSizeProps, Record<string, never>, SlotsType<UseElementSizeSlots>, UseElementSizeProps & {
|
|
191
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
192
|
+
}, vue.PublicProps>;
|
|
418
193
|
|
|
419
194
|
type RemoveFirstFromTuple<T extends any[]> = T['length'] extends 0 ? undefined : (((...b: T) => void) extends (a: any, ...b: infer I) => void ? I : []);
|
|
420
195
|
type BindingValueFunction$6 = (size: ElementSize) => void;
|
|
@@ -422,229 +197,77 @@ type VElementSizeOptions = RemoveFirstFromTuple<Parameters<typeof useElementSize
|
|
|
422
197
|
type BindingValueArray$6 = [BindingValueFunction$6, ...VElementSizeOptions];
|
|
423
198
|
declare const vElementSize: ObjectDirective<HTMLElement, BindingValueFunction$6 | BindingValueArray$6>;
|
|
424
199
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
interface UseIntersectionObserverOptions extends ConfigurableWindow {
|
|
428
|
-
/**
|
|
429
|
-
* Start the IntersectionObserver immediately on creation
|
|
430
|
-
*
|
|
431
|
-
* @default true
|
|
432
|
-
*/
|
|
433
|
-
immediate?: boolean;
|
|
434
|
-
/**
|
|
435
|
-
* The Element or Document whose bounds are used as the bounding box when testing for intersection.
|
|
436
|
-
*/
|
|
437
|
-
root?: MaybeComputedElementRef | Document;
|
|
438
|
-
/**
|
|
439
|
-
* A string which specifies a set of offsets to add to the root's bounding_box when calculating intersections.
|
|
440
|
-
*/
|
|
441
|
-
rootMargin?: string;
|
|
442
|
-
/**
|
|
443
|
-
* Either a single number or an array of numbers between 0.0 and 1.
|
|
444
|
-
* @default 0
|
|
445
|
-
*/
|
|
446
|
-
threshold?: number | number[];
|
|
200
|
+
interface UseElementVisibilityProps extends UseElementVisibilityOptions, RenderableComponent$1 {
|
|
447
201
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
*/
|
|
453
|
-
rootMargin?: MaybeRefOrGetter<string>;
|
|
454
|
-
/**
|
|
455
|
-
* The element that is used as the viewport for checking visibility of the target.
|
|
456
|
-
*/
|
|
457
|
-
scrollTarget?: MaybeRefOrGetter<HTMLElement | undefined | null>;
|
|
458
|
-
/**
|
|
459
|
-
* Stop tracking when element visibility changes for the first time
|
|
460
|
-
*
|
|
461
|
-
* @default false
|
|
462
|
-
*/
|
|
463
|
-
once?: boolean;
|
|
202
|
+
interface UseElementVisibilitySlots {
|
|
203
|
+
default: (data: Reactive<{
|
|
204
|
+
isVisible: UseElementVisibilityReturn;
|
|
205
|
+
}>) => any;
|
|
464
206
|
}
|
|
207
|
+
declare const UseElementVisibility: vue.DefineSetupFnComponent<UseElementVisibilityProps, Record<string, never>, SlotsType<UseElementVisibilitySlots>, UseElementVisibilityProps & {
|
|
208
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
209
|
+
}, vue.PublicProps>;
|
|
465
210
|
|
|
466
211
|
type BindingValueFunction$5 = (state: boolean) => void;
|
|
467
212
|
type BindingValueArray$5 = [BindingValueFunction$5, UseElementVisibilityOptions];
|
|
468
213
|
declare const vElementVisibility: ObjectDirective<HTMLElement, BindingValueFunction$5 | BindingValueArray$5>;
|
|
469
214
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
215
|
+
interface UseEyeDropperProps extends UseEyeDropperOptions {
|
|
216
|
+
}
|
|
217
|
+
interface UseEyeDropperSlots {
|
|
218
|
+
default: (data: Reactive<UseEyeDropperReturn>) => any;
|
|
219
|
+
}
|
|
220
|
+
declare const UseEyeDropper: vue.DefineSetupFnComponent<UseEyeDropperProps, Record<string, never>, SlotsType<UseEyeDropperSlots>, UseEyeDropperProps & {
|
|
221
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
222
|
+
}, vue.PublicProps>;
|
|
477
223
|
|
|
478
|
-
|
|
224
|
+
interface UseFullscreenProps extends UseFullscreenOptions, RenderableComponent$1 {
|
|
225
|
+
}
|
|
226
|
+
interface UseFullscreenSlots {
|
|
227
|
+
default: (data: Reactive<UseFullscreenReturn>) => any;
|
|
228
|
+
}
|
|
229
|
+
declare const UseFullscreen: vue.DefineSetupFnComponent<UseFullscreenProps, Record<string, never>, SlotsType<UseFullscreenSlots>, UseFullscreenProps & {
|
|
230
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
231
|
+
}, vue.PublicProps>;
|
|
479
232
|
|
|
480
|
-
|
|
233
|
+
interface UseGeolocationProps extends UseGeolocationOptions {
|
|
234
|
+
}
|
|
235
|
+
interface UseGeolocationSlots {
|
|
236
|
+
default: (data: Reactive<UseGeolocationReturn>) => any;
|
|
237
|
+
}
|
|
238
|
+
declare const UseGeolocation: vue.DefineSetupFnComponent<UseGeolocationProps, Record<string, never>, SlotsType<UseGeolocationSlots>, UseGeolocationProps & {
|
|
239
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
240
|
+
}, vue.PublicProps>;
|
|
481
241
|
|
|
482
|
-
|
|
483
|
-
timeout: number;
|
|
484
|
-
}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<UseIdleOptions & {
|
|
242
|
+
interface UseIdleProps extends UseIdleOptions {
|
|
485
243
|
timeout: number;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
/** Images to use in different situations, e.g., high-resolution displays, small monitors, etc. */
|
|
494
|
-
srcset?: string;
|
|
495
|
-
/** Image sizes for different page layouts */
|
|
496
|
-
sizes?: string;
|
|
497
|
-
/** Image alternative information */
|
|
498
|
-
alt?: string;
|
|
499
|
-
/** Image classes */
|
|
500
|
-
class?: string;
|
|
501
|
-
/** Image loading */
|
|
502
|
-
loading?: HTMLImageElement['loading'];
|
|
503
|
-
/** Image CORS settings */
|
|
504
|
-
crossorigin?: string;
|
|
505
|
-
/** Referrer policy for fetch https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy */
|
|
506
|
-
referrerPolicy?: HTMLImageElement['referrerPolicy'];
|
|
507
|
-
/** Image width */
|
|
508
|
-
width?: HTMLImageElement['width'];
|
|
509
|
-
/** Image height */
|
|
510
|
-
height?: HTMLImageElement['height'];
|
|
511
|
-
/** https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#decoding */
|
|
512
|
-
decoding?: HTMLImageElement['decoding'];
|
|
513
|
-
/** Provides a hint of the relative priority to use when fetching the image */
|
|
514
|
-
fetchPriority?: HTMLImageElement['fetchPriority'];
|
|
515
|
-
/** Provides a hint of the importance of the image */
|
|
516
|
-
ismap?: HTMLImageElement['isMap'];
|
|
517
|
-
/** The partial URL (starting with #) of an image map associated with the element */
|
|
518
|
-
usemap?: HTMLImageElement['useMap'];
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
declare const UseImage: vue.DefineComponent<UseImageOptions & RenderableComponent, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<UseImageOptions & RenderableComponent> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
522
|
-
|
|
523
|
-
interface UseScrollOptions extends ConfigurableWindow {
|
|
524
|
-
/**
|
|
525
|
-
* Throttle time for scroll event, it’s disabled by default.
|
|
526
|
-
*
|
|
527
|
-
* @default 0
|
|
528
|
-
*/
|
|
529
|
-
throttle?: number;
|
|
530
|
-
/**
|
|
531
|
-
* The check time when scrolling ends.
|
|
532
|
-
* This configuration will be setting to (throttle + idle) when the `throttle` is configured.
|
|
533
|
-
*
|
|
534
|
-
* @default 200
|
|
535
|
-
*/
|
|
536
|
-
idle?: number;
|
|
537
|
-
/**
|
|
538
|
-
* Offset arrived states by x pixels
|
|
539
|
-
*
|
|
540
|
-
*/
|
|
541
|
-
offset?: {
|
|
542
|
-
left?: number;
|
|
543
|
-
right?: number;
|
|
544
|
-
top?: number;
|
|
545
|
-
bottom?: number;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* Use MutationObserver to monitor specific DOM changes,
|
|
549
|
-
* such as attribute modifications, child node additions or removals, or subtree changes.
|
|
550
|
-
* @default { mutation: boolean }
|
|
551
|
-
*/
|
|
552
|
-
observe?: boolean | {
|
|
553
|
-
mutation?: boolean;
|
|
554
|
-
};
|
|
555
|
-
/**
|
|
556
|
-
* Trigger it when scrolling.
|
|
557
|
-
*
|
|
558
|
-
*/
|
|
559
|
-
onScroll?: (e: Event) => void;
|
|
560
|
-
/**
|
|
561
|
-
* Trigger it when scrolling ends.
|
|
562
|
-
*
|
|
563
|
-
*/
|
|
564
|
-
onStop?: (e: Event) => void;
|
|
565
|
-
/**
|
|
566
|
-
* Listener options for scroll event.
|
|
567
|
-
*
|
|
568
|
-
* @default {capture: false, passive: true}
|
|
569
|
-
*/
|
|
570
|
-
eventListenerOptions?: boolean | AddEventListenerOptions;
|
|
571
|
-
/**
|
|
572
|
-
* Optionally specify a scroll behavior of `auto` (default, not smooth scrolling) or
|
|
573
|
-
* `smooth` (for smooth scrolling) which takes effect when changing the `x` or `y` refs.
|
|
574
|
-
*
|
|
575
|
-
* @default 'auto'
|
|
576
|
-
*/
|
|
577
|
-
behavior?: MaybeRefOrGetter<ScrollBehavior>;
|
|
578
|
-
/**
|
|
579
|
-
* On error callback
|
|
580
|
-
*
|
|
581
|
-
* Default log error to `console.error`
|
|
582
|
-
*/
|
|
583
|
-
onError?: (error: unknown) => void;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Reactive scroll.
|
|
587
|
-
*
|
|
588
|
-
* @see https://vueuse.org/useScroll
|
|
589
|
-
* @param element
|
|
590
|
-
* @param options
|
|
591
|
-
*/
|
|
592
|
-
declare function useScroll(element: MaybeRefOrGetter<HTMLElement | SVGElement | Window | Document | null | undefined>, options?: UseScrollOptions): {
|
|
593
|
-
x: vue.WritableComputedRef<number, number>;
|
|
594
|
-
y: vue.WritableComputedRef<number, number>;
|
|
595
|
-
isScrolling: vue.ShallowRef<boolean, boolean>;
|
|
596
|
-
arrivedState: {
|
|
597
|
-
left: boolean;
|
|
598
|
-
right: boolean;
|
|
599
|
-
top: boolean;
|
|
600
|
-
bottom: boolean;
|
|
601
|
-
};
|
|
602
|
-
directions: {
|
|
603
|
-
left: boolean;
|
|
604
|
-
right: boolean;
|
|
605
|
-
top: boolean;
|
|
606
|
-
bottom: boolean;
|
|
607
|
-
};
|
|
608
|
-
measure(): void;
|
|
609
|
-
};
|
|
610
|
-
type UseScrollReturn = ReturnType<typeof useScroll>;
|
|
244
|
+
}
|
|
245
|
+
interface UseIdleSlots {
|
|
246
|
+
default: (data: Reactive<UseIdleReturn>) => any;
|
|
247
|
+
}
|
|
248
|
+
declare const UseIdle: vue.DefineSetupFnComponent<UseIdleProps, Record<string, never>, SlotsType<UseIdleSlots>, UseIdleProps & {
|
|
249
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
250
|
+
}, vue.PublicProps>;
|
|
611
251
|
|
|
612
|
-
|
|
613
|
-
interface UseInfiniteScrollOptions<T extends InfiniteScrollElement = InfiniteScrollElement> extends UseScrollOptions {
|
|
614
|
-
/**
|
|
615
|
-
* The minimum distance between the bottom of the element and the bottom of the viewport
|
|
616
|
-
*
|
|
617
|
-
* @default 0
|
|
618
|
-
*/
|
|
619
|
-
distance?: number;
|
|
620
|
-
/**
|
|
621
|
-
* The direction in which to listen the scroll.
|
|
622
|
-
*
|
|
623
|
-
* @default 'bottom'
|
|
624
|
-
*/
|
|
625
|
-
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
252
|
+
interface RenderableComponent {
|
|
626
253
|
/**
|
|
627
|
-
* The
|
|
254
|
+
* The element that the component should be rendered as
|
|
628
255
|
*
|
|
629
|
-
* @default
|
|
630
|
-
*/
|
|
631
|
-
interval?: number;
|
|
632
|
-
/**
|
|
633
|
-
* A function that determines whether more content can be loaded for a specific element.
|
|
634
|
-
* Should return `true` if loading more content is allowed for the given element,
|
|
635
|
-
* and `false` otherwise.
|
|
256
|
+
* @default 'div'
|
|
636
257
|
*/
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
258
|
+
as?: object | string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface UseImageProps extends UseImageOptions, RenderableComponent {
|
|
262
|
+
}
|
|
263
|
+
interface UseImageSlots {
|
|
264
|
+
default: (data: Reactive<UseImageReturn>) => any;
|
|
265
|
+
loading: (data: Reactive<UseImageReturn>) => any;
|
|
266
|
+
error: (data: UnwrapRef<UseImageReturn['error']>) => any;
|
|
267
|
+
}
|
|
268
|
+
declare const UseImage: vue.DefineSetupFnComponent<UseImageProps, Record<string, never>, SlotsType<UseImageSlots>, UseImageProps & {
|
|
269
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
270
|
+
}, vue.PublicProps>;
|
|
648
271
|
|
|
649
272
|
type BindingValueFunction$4 = Parameters<typeof useInfiniteScroll>[1];
|
|
650
273
|
type BindingValueArray$4 = [BindingValueFunction$4, UseInfiniteScrollOptions];
|
|
@@ -654,185 +277,201 @@ type BindingValueFunction$3 = IntersectionObserverCallback;
|
|
|
654
277
|
type BindingValueArray$3 = [BindingValueFunction$3, UseIntersectionObserverOptions];
|
|
655
278
|
declare const vIntersectionObserver: ObjectDirective<HTMLElement, BindingValueFunction$3 | BindingValueArray$3>;
|
|
656
279
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
type UseMouseCoordType = 'page' | 'client' | 'screen' | 'movement';
|
|
662
|
-
type UseMouseEventExtractor = (event: MouseEvent | Touch) => [x: number, y: number] | null | undefined;
|
|
663
|
-
interface UseMouseOptions extends ConfigurableWindow, ConfigurableEventFilter {
|
|
664
|
-
/**
|
|
665
|
-
* Mouse position based by page, client, screen, or relative to previous position
|
|
666
|
-
*
|
|
667
|
-
* @default 'page'
|
|
668
|
-
*/
|
|
669
|
-
type?: UseMouseCoordType | UseMouseEventExtractor;
|
|
670
|
-
/**
|
|
671
|
-
* Listen events on `target` element
|
|
672
|
-
*
|
|
673
|
-
* @default 'Window'
|
|
674
|
-
*/
|
|
675
|
-
target?: MaybeRefOrGetter<Window | EventTarget | null | undefined>;
|
|
676
|
-
/**
|
|
677
|
-
* Listen to `touchmove` events
|
|
678
|
-
*
|
|
679
|
-
* @default true
|
|
680
|
-
*/
|
|
681
|
-
touch?: boolean;
|
|
682
|
-
/**
|
|
683
|
-
* Listen to `scroll` events on window, only effective on type `page`
|
|
684
|
-
*
|
|
685
|
-
* @default true
|
|
686
|
-
*/
|
|
687
|
-
scroll?: boolean;
|
|
688
|
-
/**
|
|
689
|
-
* Reset to initial value when `touchend` event fired
|
|
690
|
-
*
|
|
691
|
-
* @default false
|
|
692
|
-
*/
|
|
693
|
-
resetOnTouchEnds?: boolean;
|
|
694
|
-
/**
|
|
695
|
-
* Initial values
|
|
696
|
-
*/
|
|
697
|
-
initialValue?: Position;
|
|
280
|
+
interface UseMouseProps extends UseMouseOptions {
|
|
281
|
+
}
|
|
282
|
+
interface UseMouseSlots {
|
|
283
|
+
default: (data: Reactive<UseMouseReturn>) => any;
|
|
698
284
|
}
|
|
285
|
+
declare const UseMouse: vue.DefineSetupFnComponent<UseMouseProps, Record<string, never>, SlotsType<UseMouseSlots>, UseMouseProps & {
|
|
286
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
287
|
+
}, vue.PublicProps>;
|
|
699
288
|
|
|
700
|
-
interface
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Listen to window resize event
|
|
710
|
-
*
|
|
711
|
-
* @default true
|
|
712
|
-
*/
|
|
713
|
-
windowScroll?: boolean;
|
|
714
|
-
/**
|
|
715
|
-
* Listen to window scroll event
|
|
716
|
-
*
|
|
717
|
-
* @default true
|
|
718
|
-
*/
|
|
719
|
-
windowResize?: boolean;
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* Reactive mouse position related to an element.
|
|
723
|
-
*
|
|
724
|
-
* @see https://vueuse.org/useMouseInElement
|
|
725
|
-
* @param target
|
|
726
|
-
* @param options
|
|
727
|
-
*/
|
|
728
|
-
declare function useMouseInElement(target?: MaybeElementRef, options?: MouseInElementOptions): {
|
|
729
|
-
x: vue.ShallowRef<number, number>;
|
|
730
|
-
y: vue.ShallowRef<number, number>;
|
|
731
|
-
sourceType: vue.ShallowRef<UseMouseSourceType, UseMouseSourceType>;
|
|
732
|
-
elementX: vue.ShallowRef<number, number>;
|
|
733
|
-
elementY: vue.ShallowRef<number, number>;
|
|
734
|
-
elementPositionX: vue.ShallowRef<number, number>;
|
|
735
|
-
elementPositionY: vue.ShallowRef<number, number>;
|
|
736
|
-
elementHeight: vue.ShallowRef<number, number>;
|
|
737
|
-
elementWidth: vue.ShallowRef<number, number>;
|
|
738
|
-
isOutside: vue.ShallowRef<boolean, boolean>;
|
|
739
|
-
stop: () => void;
|
|
740
|
-
};
|
|
741
|
-
type UseMouseInElementReturn = ReturnType<typeof useMouseInElement>;
|
|
289
|
+
interface UseMouseInElementProps extends MouseInElementOptions, RenderableComponent$1 {
|
|
290
|
+
}
|
|
291
|
+
interface UseMouseInElementSlots {
|
|
292
|
+
default: (data: Reactive<UseMouseInElementReturn>) => any;
|
|
293
|
+
}
|
|
294
|
+
declare const UseMouseInElement: vue.DefineSetupFnComponent<UseMouseInElementProps, Record<string, never>, SlotsType<UseMouseInElementSlots>, UseMouseInElementProps & {
|
|
295
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
296
|
+
}, vue.PublicProps>;
|
|
742
297
|
|
|
743
298
|
type MouseInElement = Omit<UseMouseInElementReturn, 'stop'>;
|
|
744
299
|
type BindingValueFunction$2 = (mouse: Reactive<MouseInElement>) => void;
|
|
745
300
|
type BindingValueArray$2 = [BindingValueFunction$2, MouseInElementOptions];
|
|
746
301
|
declare const vMouseInElement: ObjectDirective<HTMLElement, BindingValueFunction$2 | BindingValueArray$2>;
|
|
747
302
|
|
|
748
|
-
|
|
303
|
+
interface UseMousePressedProps extends Omit<MousePressedOptions, 'target'>, RenderableComponent$1 {
|
|
304
|
+
}
|
|
305
|
+
interface UseMousePressedSlots {
|
|
306
|
+
default: (data: Reactive<UseMousePressedReturn>) => any;
|
|
307
|
+
}
|
|
308
|
+
declare const UseMousePressed: vue.DefineSetupFnComponent<UseMousePressedProps, Record<string, never>, SlotsType<UseMousePressedSlots>, UseMousePressedProps & {
|
|
309
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
310
|
+
}, vue.PublicProps>;
|
|
749
311
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
312
|
+
interface UseNetworkProps extends ConfigurableWindow {
|
|
313
|
+
}
|
|
314
|
+
interface UseNetworkSlots {
|
|
315
|
+
default: (data: Reactive<UseNetworkReturn>) => any;
|
|
316
|
+
}
|
|
317
|
+
declare const UseNetwork: vue.DefineSetupFnComponent<UseNetworkProps, Record<string, never>, SlotsType<UseNetworkSlots>, UseNetworkProps & {
|
|
318
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
319
|
+
}, vue.PublicProps>;
|
|
753
320
|
|
|
754
|
-
|
|
321
|
+
interface UseNowProps extends Omit<UseNowOptions<true>, 'controls'> {
|
|
322
|
+
}
|
|
323
|
+
interface UseNowSlots {
|
|
324
|
+
default: (data: Reactive<UseNowReturn>) => any;
|
|
325
|
+
}
|
|
326
|
+
declare const UseNow: vue.DefineSetupFnComponent<UseNowProps, Record<string, never>, SlotsType<UseNowSlots>, UseNowProps & {
|
|
327
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
328
|
+
}, vue.PublicProps>;
|
|
755
329
|
|
|
756
330
|
interface UseObjectUrlProps {
|
|
757
331
|
object: Blob | MediaSource | undefined;
|
|
758
332
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
interface UseOffsetPaginationOptions {
|
|
762
|
-
/**
|
|
763
|
-
* Total number of items.
|
|
764
|
-
*/
|
|
765
|
-
total?: MaybeRefOrGetter<number>;
|
|
766
|
-
/**
|
|
767
|
-
* The number of items to display per page.
|
|
768
|
-
* @default 10
|
|
769
|
-
*/
|
|
770
|
-
pageSize?: MaybeRefOrGetter<number>;
|
|
771
|
-
/**
|
|
772
|
-
* The current page number.
|
|
773
|
-
* @default 1
|
|
774
|
-
*/
|
|
775
|
-
page?: MaybeRef<number>;
|
|
776
|
-
/**
|
|
777
|
-
* Callback when the `page` change.
|
|
778
|
-
*/
|
|
779
|
-
onPageChange?: (returnValue: UnwrapNestedRefs<UseOffsetPaginationReturn>) => unknown;
|
|
780
|
-
/**
|
|
781
|
-
* Callback when the `pageSize` change.
|
|
782
|
-
*/
|
|
783
|
-
onPageSizeChange?: (returnValue: UnwrapNestedRefs<UseOffsetPaginationReturn>) => unknown;
|
|
784
|
-
/**
|
|
785
|
-
* Callback when the `pageCount` change.
|
|
786
|
-
*/
|
|
787
|
-
onPageCountChange?: (returnValue: UnwrapNestedRefs<UseOffsetPaginationReturn>) => unknown;
|
|
788
|
-
}
|
|
789
|
-
interface UseOffsetPaginationReturn {
|
|
790
|
-
currentPage: Ref<number>;
|
|
791
|
-
currentPageSize: Ref<number>;
|
|
792
|
-
pageCount: ComputedRef<number>;
|
|
793
|
-
isFirstPage: ComputedRef<boolean>;
|
|
794
|
-
isLastPage: ComputedRef<boolean>;
|
|
795
|
-
prev: () => void;
|
|
796
|
-
next: () => void;
|
|
333
|
+
interface UseObjectUrlSlots {
|
|
334
|
+
default: (data: Readonly<string | undefined>) => any;
|
|
797
335
|
}
|
|
336
|
+
declare const UseObjectUrl: vue.DefineSetupFnComponent<UseObjectUrlProps, Record<string, never>, SlotsType<UseObjectUrlSlots>, UseObjectUrlProps & {
|
|
337
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
338
|
+
}, vue.PublicProps>;
|
|
798
339
|
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
declare const
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
340
|
+
interface UseOffsetPaginationProps extends UseOffsetPaginationOptions {
|
|
341
|
+
}
|
|
342
|
+
type UseOffsetPaginationEmits = {
|
|
343
|
+
'page-change': (...args: Parameters<NonNullable<UseOffsetPaginationOptions['onPageChange']>>) => void;
|
|
344
|
+
'page-size-change': (...args: Parameters<NonNullable<UseOffsetPaginationOptions['onPageSizeChange']>>) => void;
|
|
345
|
+
'page-count-change': (...args: Parameters<NonNullable<UseOffsetPaginationOptions['onPageCountChange']>>) => void;
|
|
346
|
+
};
|
|
347
|
+
interface UseOffsetPaginationSlots {
|
|
348
|
+
default: (data: Reactive<UseOffsetPaginationReturn>) => any;
|
|
349
|
+
}
|
|
350
|
+
declare const UseOffsetPagination: vue.DefineSetupFnComponent<UseOffsetPaginationProps, UseOffsetPaginationEmits, SlotsType<UseOffsetPaginationSlots>, UseOffsetPaginationProps & {
|
|
351
|
+
"onPage-change"?: ((returnValue: {
|
|
352
|
+
currentPage: number;
|
|
353
|
+
currentPageSize: number;
|
|
354
|
+
pageCount: number;
|
|
355
|
+
isFirstPage: boolean;
|
|
356
|
+
isLastPage: boolean;
|
|
357
|
+
prev: () => void;
|
|
358
|
+
next: () => void;
|
|
359
|
+
}) => any) | undefined;
|
|
360
|
+
"onPage-size-change"?: ((returnValue: {
|
|
361
|
+
currentPage: number;
|
|
362
|
+
currentPageSize: number;
|
|
363
|
+
pageCount: number;
|
|
364
|
+
isFirstPage: boolean;
|
|
365
|
+
isLastPage: boolean;
|
|
366
|
+
prev: () => void;
|
|
367
|
+
next: () => void;
|
|
368
|
+
}) => any) | undefined;
|
|
369
|
+
"onPage-count-change"?: ((returnValue: {
|
|
370
|
+
currentPage: number;
|
|
371
|
+
currentPageSize: number;
|
|
372
|
+
pageCount: number;
|
|
373
|
+
isFirstPage: boolean;
|
|
374
|
+
isLastPage: boolean;
|
|
375
|
+
prev: () => void;
|
|
376
|
+
next: () => void;
|
|
377
|
+
}) => any) | undefined;
|
|
378
|
+
}, vue.PublicProps>;
|
|
379
|
+
|
|
380
|
+
interface UseOnlineProps extends ConfigurableWindow {
|
|
381
|
+
}
|
|
382
|
+
interface UseOnlineSlots {
|
|
383
|
+
default: (data: Reactive<{
|
|
384
|
+
isOnline: UseNetworkReturn['isOnline'];
|
|
385
|
+
}>) => any;
|
|
386
|
+
}
|
|
387
|
+
declare const UseOnline: vue.DefineSetupFnComponent<UseOnlineProps, Record<string, never>, SlotsType<UseOnlineSlots>, UseOnlineProps & {
|
|
388
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
389
|
+
}, vue.PublicProps>;
|
|
390
|
+
|
|
391
|
+
interface UsePageLeaveProps extends ConfigurableWindow {
|
|
392
|
+
}
|
|
393
|
+
interface UsePageLeaveSlots {
|
|
394
|
+
default: (data: Reactive<{
|
|
395
|
+
isLeft: UsePageLeaveReturn;
|
|
396
|
+
}>) => any;
|
|
397
|
+
}
|
|
398
|
+
declare const UsePageLeave: vue.DefineSetupFnComponent<UsePageLeaveProps, Record<string, never>, SlotsType<UsePageLeaveSlots>, UsePageLeaveProps & {
|
|
399
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
400
|
+
}, vue.PublicProps>;
|
|
401
|
+
|
|
402
|
+
interface UsePointerProps extends Omit<UsePointerOptions, 'target'> {
|
|
403
|
+
target?: 'window' | 'self';
|
|
404
|
+
}
|
|
405
|
+
interface UsePointerSlots {
|
|
406
|
+
default: (data: Reactive<UsePointerReturn>) => any;
|
|
407
|
+
}
|
|
408
|
+
declare const UsePointer: vue.DefineSetupFnComponent<UsePointerProps, Record<string, never>, SlotsType<UsePointerSlots>, UsePointerProps & {
|
|
409
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
410
|
+
}, vue.PublicProps>;
|
|
411
|
+
|
|
412
|
+
interface UsePointerLockProps extends RenderableComponent$1, UsePointerLockOptions {
|
|
413
|
+
}
|
|
414
|
+
interface UsePointerLockSlots {
|
|
415
|
+
default: (data: Reactive<UsePointerLockReturn>) => any;
|
|
416
|
+
}
|
|
417
|
+
declare const UsePointerLock: vue.DefineSetupFnComponent<UsePointerLockProps, Record<string, never>, SlotsType<UsePointerLockSlots>, UsePointerLockProps & {
|
|
418
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
419
|
+
}, vue.PublicProps>;
|
|
420
|
+
|
|
421
|
+
interface UsePreferredColorSchemeProps extends ConfigurableWindow {
|
|
422
|
+
}
|
|
423
|
+
interface UsePreferredColorSchemeSlots {
|
|
424
|
+
default: (data: Reactive<{
|
|
425
|
+
colorScheme: ComputedRef<ColorSchemeType>;
|
|
426
|
+
}>) => any;
|
|
427
|
+
}
|
|
428
|
+
declare const UsePreferredColorScheme: vue.DefineSetupFnComponent<UsePreferredColorSchemeProps, Record<string, never>, SlotsType<UsePreferredColorSchemeSlots>, UsePreferredColorSchemeProps & {
|
|
429
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
430
|
+
}, vue.PublicProps>;
|
|
431
|
+
|
|
432
|
+
interface UsePreferredContrastProps extends ConfigurableWindow {
|
|
433
|
+
}
|
|
434
|
+
interface UsePreferredContrastSlots {
|
|
435
|
+
default: (data: Reactive<{
|
|
436
|
+
contrast: ComputedRef<ContrastType>;
|
|
437
|
+
}>) => any;
|
|
438
|
+
}
|
|
439
|
+
declare const UsePreferredContrast: vue.DefineSetupFnComponent<UsePreferredContrastProps, Record<string, never>, SlotsType<UsePreferredContrastSlots>, UsePreferredContrastProps & {
|
|
440
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
441
|
+
}, vue.PublicProps>;
|
|
442
|
+
|
|
443
|
+
interface UsePreferredDarkProps extends ConfigurableWindow {
|
|
444
|
+
}
|
|
445
|
+
interface UsePreferredDarkSlots {
|
|
446
|
+
default: (data: Reactive<{
|
|
447
|
+
prefersDark: ComputedRef<boolean>;
|
|
448
|
+
}>) => any;
|
|
449
|
+
}
|
|
450
|
+
declare const UsePreferredDark: vue.DefineSetupFnComponent<UsePreferredDarkProps, Record<string, never>, SlotsType<UsePreferredDarkSlots>, UsePreferredDarkProps & {
|
|
451
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
452
|
+
}, vue.PublicProps>;
|
|
453
|
+
|
|
454
|
+
interface UsePreferredLanguagesProps extends ConfigurableWindow {
|
|
455
|
+
}
|
|
456
|
+
interface UsePreferredLanguagesSlots {
|
|
457
|
+
default: (data: Reactive<{
|
|
458
|
+
languages: Ref<readonly string[]>;
|
|
459
|
+
}>) => any;
|
|
460
|
+
}
|
|
461
|
+
declare const UsePreferredLanguages: vue.DefineSetupFnComponent<UsePreferredLanguagesProps, Record<string, never>, SlotsType<UsePreferredLanguagesSlots>, UsePreferredLanguagesProps & {
|
|
462
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
463
|
+
}, vue.PublicProps>;
|
|
832
464
|
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
465
|
+
interface UsePreferredReducedMotionProps extends ConfigurableWindow {
|
|
466
|
+
}
|
|
467
|
+
interface UsePreferredReducedMotionSlots {
|
|
468
|
+
default: (data: Reactive<{
|
|
469
|
+
motion: ComputedRef<ReducedMotionType>;
|
|
470
|
+
}>) => any;
|
|
471
|
+
}
|
|
472
|
+
declare const UsePreferredReducedMotion: vue.DefineSetupFnComponent<UsePreferredReducedMotionProps, Record<string, never>, SlotsType<UsePreferredReducedMotionSlots>, UsePreferredReducedMotionProps & {
|
|
473
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
474
|
+
}, vue.PublicProps>;
|
|
836
475
|
|
|
837
476
|
declare const UsePreferredReducedTransparency: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
838
477
|
[key: string]: any;
|
|
@@ -842,24 +481,18 @@ type BindingValueFunction$1 = ResizeObserverCallback;
|
|
|
842
481
|
type BindingValueArray$1 = [BindingValueFunction$1, UseResizeObserverOptions];
|
|
843
482
|
declare const vResizeObserver: ObjectDirective<HTMLElement, BindingValueFunction$1 | BindingValueArray$1>;
|
|
844
483
|
|
|
845
|
-
|
|
846
|
-
top
|
|
847
|
-
right
|
|
848
|
-
bottom
|
|
849
|
-
left
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}>> & Readonly<{}>, {
|
|
858
|
-
bottom: boolean;
|
|
859
|
-
left: boolean;
|
|
860
|
-
right: boolean;
|
|
861
|
-
top: boolean;
|
|
862
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
484
|
+
interface UseScreenSafeAreaProps extends RenderableComponent$1 {
|
|
485
|
+
top?: boolean;
|
|
486
|
+
right?: boolean;
|
|
487
|
+
bottom?: boolean;
|
|
488
|
+
left?: boolean;
|
|
489
|
+
}
|
|
490
|
+
interface UseScreenSafeAreaSlots {
|
|
491
|
+
default: (data: Reactive<UseScreenSafeAreaReturn>) => any;
|
|
492
|
+
}
|
|
493
|
+
declare const UseScreenSafeArea: vue.DefineSetupFnComponent<UseScreenSafeAreaProps, Record<string, never>, SlotsType<UseScreenSafeAreaSlots>, UseScreenSafeAreaProps & {
|
|
494
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
495
|
+
}, vue.PublicProps>;
|
|
863
496
|
|
|
864
497
|
type BindingValueFunction = (state: UseScrollReturn) => void;
|
|
865
498
|
type BindingValueArray = [BindingValueFunction, UseScrollOptions];
|
|
@@ -867,12 +500,24 @@ declare const vScroll: ObjectDirective<HTMLElement, BindingValueFunction | Bindi
|
|
|
867
500
|
|
|
868
501
|
declare const vScrollLock: FunctionDirective<HTMLElement, boolean>;
|
|
869
502
|
|
|
870
|
-
interface
|
|
503
|
+
interface UseTimeAgoProps extends Omit<UseTimeAgoOptions<true>, 'controls'> {
|
|
871
504
|
time: MaybeRef<Date | number | string>;
|
|
872
505
|
}
|
|
873
|
-
|
|
506
|
+
interface UseTimeAgoSlots {
|
|
507
|
+
default: (data: Reactive<UseTimeAgoReturn<true>>) => any;
|
|
508
|
+
}
|
|
509
|
+
declare const UseTimeAgo: vue.DefineSetupFnComponent<UseTimeAgoProps, Record<string, never>, SlotsType<UseTimeAgoSlots>, UseTimeAgoProps & {
|
|
510
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
511
|
+
}, vue.PublicProps>;
|
|
874
512
|
|
|
875
|
-
|
|
513
|
+
interface UseTimestampProps extends Omit<UseTimestampOptions<true>, 'controls'> {
|
|
514
|
+
}
|
|
515
|
+
interface UseTimestampSlots {
|
|
516
|
+
default: (data: Reactive<UseTimestampReturn>) => any;
|
|
517
|
+
}
|
|
518
|
+
declare const UseTimestamp: vue.DefineSetupFnComponent<UseTimestampProps, Record<string, never>, SlotsType<UseTimestampSlots>, UseTimestampProps & {
|
|
519
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
520
|
+
}, vue.PublicProps>;
|
|
876
521
|
|
|
877
522
|
interface UseVirtualListProps {
|
|
878
523
|
/**
|
|
@@ -894,13 +539,27 @@ interface UseVirtualListProps {
|
|
|
894
539
|
*/
|
|
895
540
|
height: string;
|
|
896
541
|
}
|
|
897
|
-
declare const UseVirtualList: vue.
|
|
542
|
+
declare const UseVirtualList: vue.DefineSetupFnComponent<UseVirtualListProps, {}, {}, UseVirtualListProps & {}, vue.PublicProps>;
|
|
898
543
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
544
|
+
interface UseWindowFocusProps extends ConfigurableWindow {
|
|
545
|
+
}
|
|
546
|
+
interface UseWindowFocusSlots {
|
|
547
|
+
default: (data: Reactive<{
|
|
548
|
+
focused: ShallowRef<boolean>;
|
|
549
|
+
}>) => any;
|
|
550
|
+
}
|
|
551
|
+
declare const UseWindowFocus: vue.DefineSetupFnComponent<UseWindowFocusProps, Record<string, never>, SlotsType<UseWindowFocusSlots>, UseWindowFocusProps & {
|
|
552
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
553
|
+
}, vue.PublicProps>;
|
|
902
554
|
|
|
903
|
-
|
|
555
|
+
interface UseWindowSizeProps extends UseWindowSizeOptions {
|
|
556
|
+
}
|
|
557
|
+
interface UseWindowSizeSlots {
|
|
558
|
+
default: (data: Reactive<UseWindowSizeReturn>) => any;
|
|
559
|
+
}
|
|
560
|
+
declare const UseWindowSize: vue.DefineSetupFnComponent<UseWindowSizeProps, Record<string, never>, SlotsType<UseWindowSizeSlots>, UseWindowSizeProps & {
|
|
561
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
562
|
+
}, vue.PublicProps>;
|
|
904
563
|
|
|
905
564
|
export { OnClickOutside, OnLongPress, UseActiveElement, UseBattery, UseBrowserLocation, UseClipboard, UseColorMode, UseDark, UseDeviceMotion, UseDeviceOrientation, UseDevicePixelRatio, UseDevicesList, UseDocumentVisibility, UseDraggable, UseElementBounding, UseElementSize, UseElementVisibility, UseEyeDropper, UseFullscreen, UseGeolocation, UseIdle, UseImage, UseMouse, UseMouseInElement, UseMousePressed, UseNetwork, UseNow, UseObjectUrl, UseOffsetPagination, UseOnline, UsePageLeave, UsePointer, UsePointerLock, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePreferredReducedMotion, UsePreferredReducedTransparency, UseScreenSafeArea, UseTimeAgo, UseTimestamp, UseVirtualList, UseWindowFocus, UseWindowSize, vOnClickOutside as VOnClickOutside, vOnLongPress as VOnLongPress, vElementBounding, vElementHover, vElementSize, vElementVisibility, vInfiniteScroll, vIntersectionObserver, vMouseInElement, vOnClickOutside, vOnKeyStroke, vOnLongPress, vResizeObserver, vScroll, vScrollLock };
|
|
906
|
-
export type { OnClickOutsideProps, OnLongPressProps, UseDraggableProps, UseObjectUrlProps, UseVirtualListProps };
|
|
565
|
+
export type { OnClickOutsideEmits, OnClickOutsideProps, OnLongPressEmits, OnLongPressProps, UseActiveElementProps, UseBatteryProps, UseClipboardProps, UseColorModeProps, UseDarkProps, UseDeviceMotionProps, UseDeviceOrientationProps, UseDevicePixelRatioProps, UseDevicesListProps, UseDocumentVisibilityProps, UseDraggableProps, UseElementBoundingProps, UseElementSizeProps, UseElementVisibilityProps, UseEyeDropperProps, UseFullscreenProps, UseGeolocationProps, UseIdleProps, UseImageProps, UseMouseInElementProps, UseMousePressedProps, UseMouseProps, UseNetworkProps, UseNowProps, UseObjectUrlProps, UseOffsetPaginationEmits, UseOffsetPaginationProps, UseOnlineProps, UsePageLeaveProps, UsePointerLockProps, UsePointerProps, UsePreferredColorSchemeProps, UsePreferredContrastProps, UsePreferredDarkProps, UsePreferredLanguagesProps, UsePreferredReducedMotionProps, UseScreenSafeAreaProps, UseTimeAgoProps, UseTimestampProps, UseVirtualListProps, UseWindowFocusProps, UseWindowSizeProps };
|