@sabrenski/spire-ui-vue 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Autocomplete/Autocomplete.vue.d.ts +369 -4
- package/dist/components/BottomSheet/BottomSheet.vue.d.ts +48 -0
- package/dist/components/BottomSheet/index.d.ts +2 -0
- package/dist/components/BottomSheet/types.d.ts +19 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +1 -0
- package/dist/components/Calendar/CalendarGrid.vue.d.ts +1 -0
- package/dist/components/Calendar/types.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +95 -1
- package/dist/components/Dropdown/DropdownMenu.vue.d.ts +189 -2
- package/dist/components/IconPicker/IconPicker.vue.d.ts +3 -3
- package/dist/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts +188 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useSwipeGesture/index.d.ts +1 -0
- package/dist/composables/useSwipeGesture/useSwipeGesture.d.ts +27 -0
- package/dist/spire-ui.cjs +44 -44
- package/dist/spire-ui.js +18787 -18594
- package/dist/theme/semantic.css +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { nextTick, Component } from 'vue';
|
|
1
2
|
import { AutocompleteProps, AutocompleteOptionData } from './types';
|
|
2
3
|
declare function focus(): void;
|
|
3
4
|
declare function __VLS_template(): {
|
|
@@ -20,8 +21,190 @@ declare function __VLS_template(): {
|
|
|
20
21
|
};
|
|
21
22
|
refs: {
|
|
22
23
|
inputRef: HTMLInputElement;
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
bottomSheetRef: ({
|
|
25
|
+
$: import('vue').ComponentInternalInstance;
|
|
26
|
+
$data: {};
|
|
27
|
+
$props: {
|
|
28
|
+
readonly modelValue?: boolean | undefined;
|
|
29
|
+
readonly title?: string | undefined;
|
|
30
|
+
readonly size?: import('..').BottomSheetSize | undefined;
|
|
31
|
+
readonly showDragHandle?: boolean | undefined;
|
|
32
|
+
readonly swipeToDismiss?: boolean | undefined;
|
|
33
|
+
readonly closable?: boolean | undefined;
|
|
34
|
+
readonly closeOnBackdrop?: boolean | undefined;
|
|
35
|
+
readonly closeOnEscape?: boolean | undefined;
|
|
36
|
+
readonly onClose?: (() => any) | undefined;
|
|
37
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
38
|
+
readonly onOpen?: (() => any) | undefined;
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
40
|
+
$attrs: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
$refs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
} & {
|
|
46
|
+
dialogRef: HTMLDialogElement;
|
|
47
|
+
dragHandleRef: HTMLDivElement;
|
|
48
|
+
};
|
|
49
|
+
$slots: Readonly<{
|
|
50
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
53
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
54
|
+
$host: Element | null;
|
|
55
|
+
$emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void);
|
|
56
|
+
$el: HTMLDialogElement;
|
|
57
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').BottomSheetProps> & Readonly<{
|
|
58
|
+
onClose?: (() => any) | undefined;
|
|
59
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
60
|
+
onOpen?: (() => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
open: () => void;
|
|
63
|
+
close: () => void;
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
+
close: () => any;
|
|
66
|
+
"update:modelValue": (value: boolean) => any;
|
|
67
|
+
open: () => any;
|
|
68
|
+
}, string, {
|
|
69
|
+
size: import('..').BottomSheetSize;
|
|
70
|
+
closable: boolean;
|
|
71
|
+
showDragHandle: boolean;
|
|
72
|
+
swipeToDismiss: boolean;
|
|
73
|
+
closeOnBackdrop: boolean;
|
|
74
|
+
closeOnEscape: boolean;
|
|
75
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
76
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
77
|
+
created?: (() => void) | (() => void)[];
|
|
78
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
79
|
+
mounted?: (() => void) | (() => void)[];
|
|
80
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
81
|
+
updated?: (() => void) | (() => void)[];
|
|
82
|
+
activated?: (() => void) | (() => void)[];
|
|
83
|
+
deactivated?: (() => void) | (() => void)[];
|
|
84
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
85
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
86
|
+
destroyed?: (() => void) | (() => void)[];
|
|
87
|
+
unmounted?: (() => void) | (() => void)[];
|
|
88
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
89
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
90
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
91
|
+
};
|
|
92
|
+
$forceUpdate: () => void;
|
|
93
|
+
$nextTick: typeof nextTick;
|
|
94
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
95
|
+
} & Readonly<{
|
|
96
|
+
size: import('..').BottomSheetSize;
|
|
97
|
+
closable: boolean;
|
|
98
|
+
showDragHandle: boolean;
|
|
99
|
+
swipeToDismiss: boolean;
|
|
100
|
+
closeOnBackdrop: boolean;
|
|
101
|
+
closeOnEscape: boolean;
|
|
102
|
+
}> & Omit<Readonly<import('..').BottomSheetProps> & Readonly<{
|
|
103
|
+
onClose?: (() => any) | undefined;
|
|
104
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
105
|
+
onOpen?: (() => any) | undefined;
|
|
106
|
+
}>, "close" | "open" | ("size" | "closable" | "showDragHandle" | "swipeToDismiss" | "closeOnBackdrop" | "closeOnEscape")> & import('vue').ShallowUnwrapRef<{
|
|
107
|
+
open: () => void;
|
|
108
|
+
close: () => void;
|
|
109
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
110
|
+
$slots: {
|
|
111
|
+
header?(_: {}): any;
|
|
112
|
+
default?(_: {}): any;
|
|
113
|
+
footer?(_: {
|
|
114
|
+
close: () => void;
|
|
115
|
+
}): any;
|
|
116
|
+
};
|
|
117
|
+
}) | null;
|
|
118
|
+
mobileSearchRef: ({
|
|
119
|
+
$: import('vue').ComponentInternalInstance;
|
|
120
|
+
$data: {};
|
|
121
|
+
$props: {
|
|
122
|
+
readonly modelValue?: string | number | undefined;
|
|
123
|
+
readonly type?: import('..').InputType | undefined;
|
|
124
|
+
readonly placeholder?: string | undefined;
|
|
125
|
+
readonly size?: import('..').InputSize | undefined;
|
|
126
|
+
readonly variant?: import('..').InputVariant | undefined;
|
|
127
|
+
readonly disabled?: boolean | undefined;
|
|
128
|
+
readonly readonly?: boolean | undefined;
|
|
129
|
+
readonly invalid?: boolean | undefined;
|
|
130
|
+
readonly clearable?: boolean | undefined;
|
|
131
|
+
readonly loading?: boolean | undefined;
|
|
132
|
+
readonly icon?: Component | undefined;
|
|
133
|
+
readonly iconEnd?: Component | undefined;
|
|
134
|
+
readonly onClear?: (() => any) | undefined;
|
|
135
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
136
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
137
|
+
$attrs: {
|
|
138
|
+
[x: string]: unknown;
|
|
139
|
+
};
|
|
140
|
+
$refs: {
|
|
141
|
+
[x: string]: unknown;
|
|
142
|
+
} & {
|
|
143
|
+
inputRef: HTMLInputElement;
|
|
144
|
+
};
|
|
145
|
+
$slots: Readonly<{
|
|
146
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
147
|
+
}>;
|
|
148
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
149
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
150
|
+
$host: Element | null;
|
|
151
|
+
$emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void);
|
|
152
|
+
$el: HTMLDivElement;
|
|
153
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputProps> & Readonly<{
|
|
154
|
+
onClear?: (() => any) | undefined;
|
|
155
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
156
|
+
}>, {
|
|
157
|
+
focus: () => void;
|
|
158
|
+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
159
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
160
|
+
clear: () => any;
|
|
161
|
+
"update:modelValue": (value: string | number) => any;
|
|
162
|
+
}, string, {
|
|
163
|
+
type: import('..').InputType;
|
|
164
|
+
disabled: boolean;
|
|
165
|
+
loading: boolean;
|
|
166
|
+
invalid: boolean;
|
|
167
|
+
readonly: boolean;
|
|
168
|
+
clearable: boolean;
|
|
169
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
170
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
171
|
+
created?: (() => void) | (() => void)[];
|
|
172
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
173
|
+
mounted?: (() => void) | (() => void)[];
|
|
174
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
175
|
+
updated?: (() => void) | (() => void)[];
|
|
176
|
+
activated?: (() => void) | (() => void)[];
|
|
177
|
+
deactivated?: (() => void) | (() => void)[];
|
|
178
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
179
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
180
|
+
destroyed?: (() => void) | (() => void)[];
|
|
181
|
+
unmounted?: (() => void) | (() => void)[];
|
|
182
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
183
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
184
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
185
|
+
};
|
|
186
|
+
$forceUpdate: () => void;
|
|
187
|
+
$nextTick: typeof nextTick;
|
|
188
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
189
|
+
} & Readonly<{
|
|
190
|
+
type: import('..').InputType;
|
|
191
|
+
disabled: boolean;
|
|
192
|
+
loading: boolean;
|
|
193
|
+
invalid: boolean;
|
|
194
|
+
readonly: boolean;
|
|
195
|
+
clearable: boolean;
|
|
196
|
+
}> & Omit<Readonly<import('..').InputProps> & Readonly<{
|
|
197
|
+
onClear?: (() => any) | undefined;
|
|
198
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
199
|
+
}>, "focus" | "inputRef" | ("type" | "disabled" | "loading" | "invalid" | "readonly" | "clearable")> & import('vue').ShallowUnwrapRef<{
|
|
200
|
+
focus: () => void;
|
|
201
|
+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
202
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
203
|
+
$slots: {
|
|
204
|
+
start?(_: {}): any;
|
|
205
|
+
end?(_: {}): any;
|
|
206
|
+
};
|
|
207
|
+
}) | null;
|
|
25
208
|
};
|
|
26
209
|
rootEl: any;
|
|
27
210
|
};
|
|
@@ -58,8 +241,190 @@ declare const __VLS_component: import('vue').DefineComponent<AutocompleteProps,
|
|
|
58
241
|
strategy: "absolute" | "fixed";
|
|
59
242
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
60
243
|
inputRef: HTMLInputElement;
|
|
61
|
-
|
|
62
|
-
|
|
244
|
+
bottomSheetRef: ({
|
|
245
|
+
$: import('vue').ComponentInternalInstance;
|
|
246
|
+
$data: {};
|
|
247
|
+
$props: {
|
|
248
|
+
readonly modelValue?: boolean | undefined;
|
|
249
|
+
readonly title?: string | undefined;
|
|
250
|
+
readonly size?: import('..').BottomSheetSize | undefined;
|
|
251
|
+
readonly showDragHandle?: boolean | undefined;
|
|
252
|
+
readonly swipeToDismiss?: boolean | undefined;
|
|
253
|
+
readonly closable?: boolean | undefined;
|
|
254
|
+
readonly closeOnBackdrop?: boolean | undefined;
|
|
255
|
+
readonly closeOnEscape?: boolean | undefined;
|
|
256
|
+
readonly onClose?: (() => any) | undefined;
|
|
257
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
258
|
+
readonly onOpen?: (() => any) | undefined;
|
|
259
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
260
|
+
$attrs: {
|
|
261
|
+
[x: string]: unknown;
|
|
262
|
+
};
|
|
263
|
+
$refs: {
|
|
264
|
+
[x: string]: unknown;
|
|
265
|
+
} & {
|
|
266
|
+
dialogRef: HTMLDialogElement;
|
|
267
|
+
dragHandleRef: HTMLDivElement;
|
|
268
|
+
};
|
|
269
|
+
$slots: Readonly<{
|
|
270
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
271
|
+
}>;
|
|
272
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
273
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
274
|
+
$host: Element | null;
|
|
275
|
+
$emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void);
|
|
276
|
+
$el: HTMLDialogElement;
|
|
277
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').BottomSheetProps> & Readonly<{
|
|
278
|
+
onClose?: (() => any) | undefined;
|
|
279
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
280
|
+
onOpen?: (() => any) | undefined;
|
|
281
|
+
}>, {
|
|
282
|
+
open: () => void;
|
|
283
|
+
close: () => void;
|
|
284
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
285
|
+
close: () => any;
|
|
286
|
+
"update:modelValue": (value: boolean) => any;
|
|
287
|
+
open: () => any;
|
|
288
|
+
}, string, {
|
|
289
|
+
size: import('..').BottomSheetSize;
|
|
290
|
+
closable: boolean;
|
|
291
|
+
showDragHandle: boolean;
|
|
292
|
+
swipeToDismiss: boolean;
|
|
293
|
+
closeOnBackdrop: boolean;
|
|
294
|
+
closeOnEscape: boolean;
|
|
295
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
296
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
297
|
+
created?: (() => void) | (() => void)[];
|
|
298
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
299
|
+
mounted?: (() => void) | (() => void)[];
|
|
300
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
301
|
+
updated?: (() => void) | (() => void)[];
|
|
302
|
+
activated?: (() => void) | (() => void)[];
|
|
303
|
+
deactivated?: (() => void) | (() => void)[];
|
|
304
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
305
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
306
|
+
destroyed?: (() => void) | (() => void)[];
|
|
307
|
+
unmounted?: (() => void) | (() => void)[];
|
|
308
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
309
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
310
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
311
|
+
};
|
|
312
|
+
$forceUpdate: () => void;
|
|
313
|
+
$nextTick: typeof nextTick;
|
|
314
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
315
|
+
} & Readonly<{
|
|
316
|
+
size: import('..').BottomSheetSize;
|
|
317
|
+
closable: boolean;
|
|
318
|
+
showDragHandle: boolean;
|
|
319
|
+
swipeToDismiss: boolean;
|
|
320
|
+
closeOnBackdrop: boolean;
|
|
321
|
+
closeOnEscape: boolean;
|
|
322
|
+
}> & Omit<Readonly<import('..').BottomSheetProps> & Readonly<{
|
|
323
|
+
onClose?: (() => any) | undefined;
|
|
324
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
325
|
+
onOpen?: (() => any) | undefined;
|
|
326
|
+
}>, "close" | "open" | ("size" | "closable" | "showDragHandle" | "swipeToDismiss" | "closeOnBackdrop" | "closeOnEscape")> & import('vue').ShallowUnwrapRef<{
|
|
327
|
+
open: () => void;
|
|
328
|
+
close: () => void;
|
|
329
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
330
|
+
$slots: {
|
|
331
|
+
header?(_: {}): any;
|
|
332
|
+
default?(_: {}): any;
|
|
333
|
+
footer?(_: {
|
|
334
|
+
close: () => void;
|
|
335
|
+
}): any;
|
|
336
|
+
};
|
|
337
|
+
}) | null;
|
|
338
|
+
mobileSearchRef: ({
|
|
339
|
+
$: import('vue').ComponentInternalInstance;
|
|
340
|
+
$data: {};
|
|
341
|
+
$props: {
|
|
342
|
+
readonly modelValue?: string | number | undefined;
|
|
343
|
+
readonly type?: import('..').InputType | undefined;
|
|
344
|
+
readonly placeholder?: string | undefined;
|
|
345
|
+
readonly size?: import('..').InputSize | undefined;
|
|
346
|
+
readonly variant?: import('..').InputVariant | undefined;
|
|
347
|
+
readonly disabled?: boolean | undefined;
|
|
348
|
+
readonly readonly?: boolean | undefined;
|
|
349
|
+
readonly invalid?: boolean | undefined;
|
|
350
|
+
readonly clearable?: boolean | undefined;
|
|
351
|
+
readonly loading?: boolean | undefined;
|
|
352
|
+
readonly icon?: Component | undefined;
|
|
353
|
+
readonly iconEnd?: Component | undefined;
|
|
354
|
+
readonly onClear?: (() => any) | undefined;
|
|
355
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
356
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
357
|
+
$attrs: {
|
|
358
|
+
[x: string]: unknown;
|
|
359
|
+
};
|
|
360
|
+
$refs: {
|
|
361
|
+
[x: string]: unknown;
|
|
362
|
+
} & {
|
|
363
|
+
inputRef: HTMLInputElement;
|
|
364
|
+
};
|
|
365
|
+
$slots: Readonly<{
|
|
366
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
367
|
+
}>;
|
|
368
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
369
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
370
|
+
$host: Element | null;
|
|
371
|
+
$emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void);
|
|
372
|
+
$el: HTMLDivElement;
|
|
373
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputProps> & Readonly<{
|
|
374
|
+
onClear?: (() => any) | undefined;
|
|
375
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
376
|
+
}>, {
|
|
377
|
+
focus: () => void;
|
|
378
|
+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
379
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
380
|
+
clear: () => any;
|
|
381
|
+
"update:modelValue": (value: string | number) => any;
|
|
382
|
+
}, string, {
|
|
383
|
+
type: import('..').InputType;
|
|
384
|
+
disabled: boolean;
|
|
385
|
+
loading: boolean;
|
|
386
|
+
invalid: boolean;
|
|
387
|
+
readonly: boolean;
|
|
388
|
+
clearable: boolean;
|
|
389
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
390
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
391
|
+
created?: (() => void) | (() => void)[];
|
|
392
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
393
|
+
mounted?: (() => void) | (() => void)[];
|
|
394
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
395
|
+
updated?: (() => void) | (() => void)[];
|
|
396
|
+
activated?: (() => void) | (() => void)[];
|
|
397
|
+
deactivated?: (() => void) | (() => void)[];
|
|
398
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
399
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
400
|
+
destroyed?: (() => void) | (() => void)[];
|
|
401
|
+
unmounted?: (() => void) | (() => void)[];
|
|
402
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
403
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
404
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
405
|
+
};
|
|
406
|
+
$forceUpdate: () => void;
|
|
407
|
+
$nextTick: typeof nextTick;
|
|
408
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
409
|
+
} & Readonly<{
|
|
410
|
+
type: import('..').InputType;
|
|
411
|
+
disabled: boolean;
|
|
412
|
+
loading: boolean;
|
|
413
|
+
invalid: boolean;
|
|
414
|
+
readonly: boolean;
|
|
415
|
+
clearable: boolean;
|
|
416
|
+
}> & Omit<Readonly<import('..').InputProps> & Readonly<{
|
|
417
|
+
onClear?: (() => any) | undefined;
|
|
418
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
419
|
+
}>, "focus" | "inputRef" | ("type" | "disabled" | "loading" | "invalid" | "readonly" | "clearable")> & import('vue').ShallowUnwrapRef<{
|
|
420
|
+
focus: () => void;
|
|
421
|
+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
422
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
423
|
+
$slots: {
|
|
424
|
+
start?(_: {}): any;
|
|
425
|
+
end?(_: {}): any;
|
|
426
|
+
};
|
|
427
|
+
}) | null;
|
|
63
428
|
}, any>;
|
|
64
429
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
430
|
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BottomSheetProps, BottomSheetSize } from './types';
|
|
2
|
+
declare function open(): void;
|
|
3
|
+
declare function close(): void;
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
header?(_: {}): any;
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
footer?(_: {
|
|
10
|
+
close: typeof close;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
dialogRef: HTMLDialogElement;
|
|
15
|
+
dragHandleRef: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
rootEl: HTMLDialogElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<BottomSheetProps, {
|
|
21
|
+
open: typeof open;
|
|
22
|
+
close: typeof close;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
close: () => any;
|
|
25
|
+
"update:modelValue": (value: boolean) => any;
|
|
26
|
+
open: () => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<BottomSheetProps> & Readonly<{
|
|
28
|
+
onClose?: (() => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
onOpen?: (() => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
size: BottomSheetSize;
|
|
33
|
+
closable: boolean;
|
|
34
|
+
showDragHandle: boolean;
|
|
35
|
+
swipeToDismiss: boolean;
|
|
36
|
+
closeOnBackdrop: boolean;
|
|
37
|
+
closeOnEscape: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
dialogRef: HTMLDialogElement;
|
|
40
|
+
dragHandleRef: HTMLDivElement;
|
|
41
|
+
}, HTMLDialogElement>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type BottomSheetSize = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'auto';
|
|
2
|
+
export interface BottomSheetProps {
|
|
3
|
+
/** v-model for controlling open state */
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
/** Optional title displayed in header */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Size variant controlling max-height */
|
|
8
|
+
size?: BottomSheetSize;
|
|
9
|
+
/** Show drag handle indicator at top */
|
|
10
|
+
showDragHandle?: boolean;
|
|
11
|
+
/** Enable swipe-to-dismiss gesture */
|
|
12
|
+
swipeToDismiss?: boolean;
|
|
13
|
+
/** Show close button in header */
|
|
14
|
+
closable?: boolean;
|
|
15
|
+
/** Close when clicking backdrop */
|
|
16
|
+
closeOnBackdrop?: boolean;
|
|
17
|
+
/** Close when pressing Escape key */
|
|
18
|
+
closeOnEscape?: boolean;
|
|
19
|
+
}
|
|
@@ -10,6 +10,7 @@ declare const _default: import('vue').DefineComponent<CalendarProps, {}, {}, {},
|
|
|
10
10
|
mode: import('./types').CalendarMode;
|
|
11
11
|
showWeekNumbers: boolean;
|
|
12
12
|
firstDayOfWeek: 0 | 1;
|
|
13
|
+
fluid: boolean;
|
|
13
14
|
showTime: boolean;
|
|
14
15
|
showPresets: boolean;
|
|
15
16
|
numberOfMonths: number;
|
|
@@ -10,5 +10,6 @@ declare const _default: import('vue').DefineComponent<CalendarGridProps, {}, {},
|
|
|
10
10
|
locale: string;
|
|
11
11
|
showWeekNumbers: boolean;
|
|
12
12
|
firstDayOfWeek: 0 | 1;
|
|
13
|
+
fluid: boolean;
|
|
13
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
15
|
export default _default;
|
|
@@ -57,6 +57,8 @@ export interface CalendarProps {
|
|
|
57
57
|
presets?: DateRangePreset[];
|
|
58
58
|
/** Number of months to display side by side (default: 1, max: 3) */
|
|
59
59
|
numberOfMonths?: number;
|
|
60
|
+
/** Remove border and fill available width (for use in bottom sheets) */
|
|
61
|
+
fluid?: boolean;
|
|
60
62
|
}
|
|
61
63
|
export interface CalendarHeaderProps {
|
|
62
64
|
month: number;
|
|
@@ -72,6 +74,8 @@ export interface CalendarGridProps {
|
|
|
72
74
|
firstDayOfWeek?: 0 | 1;
|
|
73
75
|
size?: CalendarSize;
|
|
74
76
|
locale?: string;
|
|
77
|
+
/** Use flexible width cells to fill available space */
|
|
78
|
+
fluid?: boolean;
|
|
75
79
|
}
|
|
76
80
|
export interface CalendarTimeProps {
|
|
77
81
|
hours: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
1
2
|
import { DateRange } from '../Calendar/types';
|
|
2
3
|
import { DatePickerProps, DatePickerSize, DatePickerVariant } from './types';
|
|
3
4
|
declare const _default: import('vue').DefineComponent<DatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -22,6 +23,99 @@ declare const _default: import('vue').DefineComponent<DatePickerProps, {}, {}, {
|
|
|
22
23
|
numberOfMonths: number;
|
|
23
24
|
useNativeDialog: boolean;
|
|
24
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
-
|
|
26
|
+
bottomSheetRef: ({
|
|
27
|
+
$: import('vue').ComponentInternalInstance;
|
|
28
|
+
$data: {};
|
|
29
|
+
$props: {
|
|
30
|
+
readonly modelValue?: boolean | undefined;
|
|
31
|
+
readonly title?: string | undefined;
|
|
32
|
+
readonly size?: import('..').BottomSheetSize | undefined;
|
|
33
|
+
readonly showDragHandle?: boolean | undefined;
|
|
34
|
+
readonly swipeToDismiss?: boolean | undefined;
|
|
35
|
+
readonly closable?: boolean | undefined;
|
|
36
|
+
readonly closeOnBackdrop?: boolean | undefined;
|
|
37
|
+
readonly closeOnEscape?: boolean | undefined;
|
|
38
|
+
readonly onClose?: (() => any) | undefined;
|
|
39
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
40
|
+
readonly onOpen?: (() => any) | undefined;
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
42
|
+
$attrs: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
$refs: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
} & {
|
|
48
|
+
dialogRef: HTMLDialogElement;
|
|
49
|
+
dragHandleRef: HTMLDivElement;
|
|
50
|
+
};
|
|
51
|
+
$slots: Readonly<{
|
|
52
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
55
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
56
|
+
$host: Element | null;
|
|
57
|
+
$emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void);
|
|
58
|
+
$el: HTMLDialogElement;
|
|
59
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').BottomSheetProps> & Readonly<{
|
|
60
|
+
onClose?: (() => any) | undefined;
|
|
61
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
62
|
+
onOpen?: (() => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
open: () => void;
|
|
65
|
+
close: () => void;
|
|
66
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
close: () => any;
|
|
68
|
+
"update:modelValue": (value: boolean) => any;
|
|
69
|
+
open: () => any;
|
|
70
|
+
}, string, {
|
|
71
|
+
size: import('..').BottomSheetSize;
|
|
72
|
+
closable: boolean;
|
|
73
|
+
showDragHandle: boolean;
|
|
74
|
+
swipeToDismiss: boolean;
|
|
75
|
+
closeOnBackdrop: boolean;
|
|
76
|
+
closeOnEscape: boolean;
|
|
77
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
78
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
79
|
+
created?: (() => void) | (() => void)[];
|
|
80
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
81
|
+
mounted?: (() => void) | (() => void)[];
|
|
82
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
83
|
+
updated?: (() => void) | (() => void)[];
|
|
84
|
+
activated?: (() => void) | (() => void)[];
|
|
85
|
+
deactivated?: (() => void) | (() => void)[];
|
|
86
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
87
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
88
|
+
destroyed?: (() => void) | (() => void)[];
|
|
89
|
+
unmounted?: (() => void) | (() => void)[];
|
|
90
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
91
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
92
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
93
|
+
};
|
|
94
|
+
$forceUpdate: () => void;
|
|
95
|
+
$nextTick: typeof nextTick;
|
|
96
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
97
|
+
} & Readonly<{
|
|
98
|
+
size: import('..').BottomSheetSize;
|
|
99
|
+
closable: boolean;
|
|
100
|
+
showDragHandle: boolean;
|
|
101
|
+
swipeToDismiss: boolean;
|
|
102
|
+
closeOnBackdrop: boolean;
|
|
103
|
+
closeOnEscape: boolean;
|
|
104
|
+
}> & Omit<Readonly<import('..').BottomSheetProps> & Readonly<{
|
|
105
|
+
onClose?: (() => any) | undefined;
|
|
106
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
107
|
+
onOpen?: (() => any) | undefined;
|
|
108
|
+
}>, "close" | "open" | ("size" | "closable" | "showDragHandle" | "swipeToDismiss" | "closeOnBackdrop" | "closeOnEscape")> & import('vue').ShallowUnwrapRef<{
|
|
109
|
+
open: () => void;
|
|
110
|
+
close: () => void;
|
|
111
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
112
|
+
$slots: {
|
|
113
|
+
header?(_: {}): any;
|
|
114
|
+
default?(_: {}): any;
|
|
115
|
+
footer?(_: {
|
|
116
|
+
close: () => void;
|
|
117
|
+
}): any;
|
|
118
|
+
};
|
|
119
|
+
}) | null;
|
|
26
120
|
}, HTMLDivElement>;
|
|
27
121
|
export default _default;
|