@sit-onyx/headless 0.4.0 → 0.5.0-dev-20260111214528
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/composables/calendar/TestCalendar.d.vue.ts +2 -2
- package/dist/composables/comboBox/SelectOnlyCombobox.d.vue.ts +35 -31
- package/dist/composables/comboBox/TestCombobox.d.vue.ts +35 -31
- package/dist/composables/comboBox/createComboBox.d.ts +4 -0
- package/dist/composables/dataGrid/TestDataGrid.ct.d.ts +1 -0
- package/dist/composables/dataGrid/TestDataGrid.d.vue.ts +2 -0
- package/dist/composables/dataGrid/TestLazyDataGrid.d.vue.ts +2 -0
- package/dist/composables/dataGrid/createDataGrid.d.ts +80 -0
- package/dist/composables/dataGrid/createDataGrid.testing.d.ts +5 -0
- package/dist/composables/helpers/useAllSettled.d.ts +11 -0
- package/dist/composables/helpers/useAllSettled.spec.d.ts +1 -0
- package/dist/composables/helpers/useLastSettled.d.ts +12 -0
- package/dist/composables/helpers/useLastSettled.spec.d.ts +1 -0
- package/dist/composables/helpers/useOutsideClick.d.ts +1 -2
- package/dist/composables/listbox/TestListbox.d.vue.ts +1 -1
- package/dist/composables/menuButton/TestMenuButton.d.vue.ts +1 -1
- package/dist/composables/navigationMenu/TestMenu.d.vue.ts +1 -1
- package/dist/composables/slider/TestSlider.d.vue.ts +3 -3
- package/dist/composables/slider/createSlider.d.ts +9 -1
- package/dist/composables/tabs/TestTabs.d.vue.ts +1 -1
- package/dist/index.js +7 -1
- package/dist/utils/FocusVisibleTest.d.vue.ts +1 -1
- package/dist/utils/TouchEventTest.d.vue.ts +1 -1
- package/dist/utils/builder.d.ts +8 -4
- package/dist/utils/playwright.d.ts +5 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@ import { SelectionMode } from './createCalendar.js';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
mode?: SelectionMode;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
6
|
mode: SelectionMode;
|
|
7
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
8
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {
|
|
2
2
|
comboBox: import('../../index.js', { with: { "resolution-mode": "import" } }).HeadlessComposable<{
|
|
3
|
-
option: import('vue').ComputedRef<(data: {
|
|
3
|
+
option: import('@vue/reactivity').ComputedRef<(data: {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -14,23 +14,25 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
14
14
|
readonly "aria-selected": boolean | undefined;
|
|
15
15
|
readonly onClick: () => false | void | undefined;
|
|
16
16
|
}>;
|
|
17
|
-
group: import('vue').ComputedRef<(options: {
|
|
17
|
+
group: import('@vue/reactivity').ComputedRef<(options: {
|
|
18
18
|
label: string;
|
|
19
19
|
}) => {
|
|
20
20
|
role: string;
|
|
21
21
|
"aria-label": string;
|
|
22
22
|
}>;
|
|
23
|
-
listbox: import('vue').ComputedRef<{
|
|
23
|
+
listbox: import('@vue/reactivity').ComputedRef<{
|
|
24
24
|
id: string;
|
|
25
25
|
onMousedown: (e: MouseEvent) => void;
|
|
26
26
|
innerHTML?: string | undefined;
|
|
27
27
|
class?: any;
|
|
28
|
-
style?: import('vue').StyleValue | undefined;
|
|
28
|
+
style?: import('vue', { with: { "resolution-mode": "import" } }).StyleValue | undefined;
|
|
29
29
|
accesskey?: string | undefined;
|
|
30
30
|
contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
31
31
|
contextmenu?: string | undefined;
|
|
32
32
|
dir?: string | undefined;
|
|
33
33
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
34
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
35
|
+
enterKeyHint?: import('vue', { with: { "resolution-mode": "import" } }).HTMLAttributes["enterkeyhint"];
|
|
34
36
|
hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
35
37
|
inert?: (boolean | "true" | "false") | undefined;
|
|
36
38
|
lang?: string | undefined;
|
|
@@ -63,6 +65,8 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
63
65
|
unselectable?: "on" | "off" | undefined;
|
|
64
66
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
65
67
|
is?: string | undefined;
|
|
68
|
+
exportparts?: string;
|
|
69
|
+
part?: string;
|
|
66
70
|
'aria-activedescendant'?: string | undefined;
|
|
67
71
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
68
72
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -204,8 +208,8 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
204
208
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
205
209
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
206
210
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
207
|
-
ref?: import('vue').Ref<Element | ({
|
|
208
|
-
$: import('vue').ComponentInternalInstance;
|
|
211
|
+
ref?: import('@vue/reactivity').Ref<Element | ({
|
|
212
|
+
$: import('@vue/runtime-core').ComponentInternalInstance;
|
|
209
213
|
$data: {};
|
|
210
214
|
$props: {};
|
|
211
215
|
$attrs: {
|
|
@@ -215,14 +219,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
215
219
|
[x: string]: unknown;
|
|
216
220
|
};
|
|
217
221
|
$slots: Readonly<{
|
|
218
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
222
|
+
[name: string]: import('@vue/runtime-core').Slot<any> | undefined;
|
|
219
223
|
}>;
|
|
220
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
221
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
224
|
+
$root: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
225
|
+
$parent: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
222
226
|
$host: Element | null;
|
|
223
227
|
$emit: (event: string, ...args: any[]) => void;
|
|
224
228
|
$el: any;
|
|
225
|
-
$options: import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions> & {
|
|
229
|
+
$options: import('@vue/runtime-core').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions> & {
|
|
226
230
|
beforeCreate?: (() => void) | (() => void)[];
|
|
227
231
|
created?: (() => void) | (() => void)[];
|
|
228
232
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -235,17 +239,17 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
235
239
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
236
240
|
destroyed?: (() => void) | (() => void)[];
|
|
237
241
|
unmounted?: (() => void) | (() => void)[];
|
|
238
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
239
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
240
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
242
|
+
renderTracked?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
243
|
+
renderTriggered?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
244
|
+
errorCaptured?: ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
241
245
|
};
|
|
242
246
|
$forceUpdate: () => void;
|
|
243
|
-
$nextTick: typeof import('vue').nextTick;
|
|
244
|
-
$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;
|
|
245
|
-
} & Readonly<{}> & Omit<{}, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
247
|
+
$nextTick: typeof import('@vue/runtime-core').nextTick;
|
|
248
|
+
$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/runtime-core').WatchOptions): import('@vue/reactivity').WatchStopHandle;
|
|
249
|
+
} & Readonly<{}> & Omit<{}, never> & import('@vue/reactivity').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
246
250
|
$el: Element;
|
|
247
251
|
}) | null, Element | ({
|
|
248
|
-
$: import('vue').ComponentInternalInstance;
|
|
252
|
+
$: import('@vue/runtime-core').ComponentInternalInstance;
|
|
249
253
|
$data: {};
|
|
250
254
|
$props: {};
|
|
251
255
|
$attrs: {
|
|
@@ -255,14 +259,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
255
259
|
[x: string]: unknown;
|
|
256
260
|
};
|
|
257
261
|
$slots: Readonly<{
|
|
258
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
262
|
+
[name: string]: import('@vue/runtime-core').Slot<any> | undefined;
|
|
259
263
|
}>;
|
|
260
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
261
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
264
|
+
$root: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
265
|
+
$parent: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
262
266
|
$host: Element | null;
|
|
263
267
|
$emit: (event: string, ...args: any[]) => void;
|
|
264
268
|
$el: any;
|
|
265
|
-
$options: import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions> & {
|
|
269
|
+
$options: import('@vue/runtime-core').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions> & {
|
|
266
270
|
beforeCreate?: (() => void) | (() => void)[];
|
|
267
271
|
created?: (() => void) | (() => void)[];
|
|
268
272
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -275,18 +279,18 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
275
279
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
276
280
|
destroyed?: (() => void) | (() => void)[];
|
|
277
281
|
unmounted?: (() => void) | (() => void)[];
|
|
278
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
279
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
280
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
282
|
+
renderTracked?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
283
|
+
renderTriggered?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
284
|
+
errorCaptured?: ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
281
285
|
};
|
|
282
286
|
$forceUpdate: () => void;
|
|
283
|
-
$nextTick: typeof import('vue').nextTick;
|
|
284
|
-
$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;
|
|
285
|
-
} & Readonly<{}> & Omit<{}, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
287
|
+
$nextTick: typeof import('@vue/runtime-core').nextTick;
|
|
288
|
+
$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/runtime-core').WatchOptions): import('@vue/reactivity').WatchStopHandle;
|
|
289
|
+
} & Readonly<{}> & Omit<{}, never> & import('@vue/reactivity').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
286
290
|
$el: Element;
|
|
287
291
|
}) | null> | undefined;
|
|
288
292
|
}>;
|
|
289
|
-
input: import('vue').ComputedRef<{
|
|
293
|
+
input: import('@vue/reactivity').ComputedRef<{
|
|
290
294
|
"aria-autocomplete"?: "none" | undefined;
|
|
291
295
|
type?: string | undefined;
|
|
292
296
|
role: string;
|
|
@@ -297,7 +301,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
297
301
|
onInput: (event: Event) => void;
|
|
298
302
|
onKeydown: (event: KeyboardEvent) => void;
|
|
299
303
|
}>;
|
|
300
|
-
button: import('vue').ComputedRef<{
|
|
304
|
+
button: import('@vue/reactivity').ComputedRef<{
|
|
301
305
|
tabindex: string;
|
|
302
306
|
onClick: () => void | undefined;
|
|
303
307
|
}>;
|
|
@@ -305,7 +309,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
305
309
|
getOptionId: (value: string) => string;
|
|
306
310
|
getOptionValueById: (id: string) => string | undefined;
|
|
307
311
|
}>;
|
|
308
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
312
|
+
}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {
|
|
309
313
|
combobox: HTMLDivElement;
|
|
310
314
|
}, HTMLDivElement>;
|
|
311
315
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {
|
|
2
2
|
comboBox: import('../../index.js', { with: { "resolution-mode": "import" } }).HeadlessComposable<{
|
|
3
|
-
option: import('vue').ComputedRef<(data: {
|
|
3
|
+
option: import('@vue/reactivity').ComputedRef<(data: {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -14,23 +14,25 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
14
14
|
readonly "aria-selected": boolean | undefined;
|
|
15
15
|
readonly onClick: () => false | void | undefined;
|
|
16
16
|
}>;
|
|
17
|
-
group: import('vue').ComputedRef<(options: {
|
|
17
|
+
group: import('@vue/reactivity').ComputedRef<(options: {
|
|
18
18
|
label: string;
|
|
19
19
|
}) => {
|
|
20
20
|
role: string;
|
|
21
21
|
"aria-label": string;
|
|
22
22
|
}>;
|
|
23
|
-
listbox: import('vue').ComputedRef<{
|
|
23
|
+
listbox: import('@vue/reactivity').ComputedRef<{
|
|
24
24
|
id: string;
|
|
25
25
|
onMousedown: (e: MouseEvent) => void;
|
|
26
26
|
innerHTML?: string | undefined;
|
|
27
27
|
class?: any;
|
|
28
|
-
style?: import('vue').StyleValue | undefined;
|
|
28
|
+
style?: import('vue', { with: { "resolution-mode": "import" } }).StyleValue | undefined;
|
|
29
29
|
accesskey?: string | undefined;
|
|
30
30
|
contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
31
31
|
contextmenu?: string | undefined;
|
|
32
32
|
dir?: string | undefined;
|
|
33
33
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
34
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
35
|
+
enterKeyHint?: import('vue', { with: { "resolution-mode": "import" } }).HTMLAttributes["enterkeyhint"];
|
|
34
36
|
hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
35
37
|
inert?: (boolean | "true" | "false") | undefined;
|
|
36
38
|
lang?: string | undefined;
|
|
@@ -63,6 +65,8 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
63
65
|
unselectable?: "on" | "off" | undefined;
|
|
64
66
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
65
67
|
is?: string | undefined;
|
|
68
|
+
exportparts?: string;
|
|
69
|
+
part?: string;
|
|
66
70
|
'aria-activedescendant'?: string | undefined;
|
|
67
71
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
68
72
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -204,8 +208,8 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
204
208
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
205
209
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
206
210
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
207
|
-
ref?: import('vue').Ref<Element | ({
|
|
208
|
-
$: import('vue').ComponentInternalInstance;
|
|
211
|
+
ref?: import('@vue/reactivity').Ref<Element | ({
|
|
212
|
+
$: import('@vue/runtime-core').ComponentInternalInstance;
|
|
209
213
|
$data: {};
|
|
210
214
|
$props: {};
|
|
211
215
|
$attrs: {
|
|
@@ -215,14 +219,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
215
219
|
[x: string]: unknown;
|
|
216
220
|
};
|
|
217
221
|
$slots: Readonly<{
|
|
218
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
222
|
+
[name: string]: import('@vue/runtime-core').Slot<any> | undefined;
|
|
219
223
|
}>;
|
|
220
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
221
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
224
|
+
$root: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
225
|
+
$parent: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
222
226
|
$host: Element | null;
|
|
223
227
|
$emit: (event: string, ...args: any[]) => void;
|
|
224
228
|
$el: any;
|
|
225
|
-
$options: import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions> & {
|
|
229
|
+
$options: import('@vue/runtime-core').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions> & {
|
|
226
230
|
beforeCreate?: (() => void) | (() => void)[];
|
|
227
231
|
created?: (() => void) | (() => void)[];
|
|
228
232
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -235,17 +239,17 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
235
239
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
236
240
|
destroyed?: (() => void) | (() => void)[];
|
|
237
241
|
unmounted?: (() => void) | (() => void)[];
|
|
238
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
239
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
240
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
242
|
+
renderTracked?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
243
|
+
renderTriggered?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
244
|
+
errorCaptured?: ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
241
245
|
};
|
|
242
246
|
$forceUpdate: () => void;
|
|
243
|
-
$nextTick: typeof import('vue').nextTick;
|
|
244
|
-
$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;
|
|
245
|
-
} & Readonly<{}> & Omit<{}, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
247
|
+
$nextTick: typeof import('@vue/runtime-core').nextTick;
|
|
248
|
+
$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/runtime-core').WatchOptions): import('@vue/reactivity').WatchStopHandle;
|
|
249
|
+
} & Readonly<{}> & Omit<{}, never> & import('@vue/reactivity').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
246
250
|
$el: Element;
|
|
247
251
|
}) | null, Element | ({
|
|
248
|
-
$: import('vue').ComponentInternalInstance;
|
|
252
|
+
$: import('@vue/runtime-core').ComponentInternalInstance;
|
|
249
253
|
$data: {};
|
|
250
254
|
$props: {};
|
|
251
255
|
$attrs: {
|
|
@@ -255,14 +259,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
255
259
|
[x: string]: unknown;
|
|
256
260
|
};
|
|
257
261
|
$slots: Readonly<{
|
|
258
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
262
|
+
[name: string]: import('@vue/runtime-core').Slot<any> | undefined;
|
|
259
263
|
}>;
|
|
260
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
261
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
264
|
+
$root: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
265
|
+
$parent: import('@vue/runtime-core').ComponentPublicInstance | null;
|
|
262
266
|
$host: Element | null;
|
|
263
267
|
$emit: (event: string, ...args: any[]) => void;
|
|
264
268
|
$el: any;
|
|
265
|
-
$options: import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions> & {
|
|
269
|
+
$options: import('@vue/runtime-core').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions> & {
|
|
266
270
|
beforeCreate?: (() => void) | (() => void)[];
|
|
267
271
|
created?: (() => void) | (() => void)[];
|
|
268
272
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -275,18 +279,18 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
275
279
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
276
280
|
destroyed?: (() => void) | (() => void)[];
|
|
277
281
|
unmounted?: (() => void) | (() => void)[];
|
|
278
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
279
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
280
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
282
|
+
renderTracked?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
283
|
+
renderTriggered?: ((e: import('@vue/reactivity').DebuggerEvent) => void) | ((e: import('@vue/reactivity').DebuggerEvent) => void)[];
|
|
284
|
+
errorCaptured?: ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('@vue/runtime-core').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
281
285
|
};
|
|
282
286
|
$forceUpdate: () => void;
|
|
283
|
-
$nextTick: typeof import('vue').nextTick;
|
|
284
|
-
$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;
|
|
285
|
-
} & Readonly<{}> & Omit<{}, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
287
|
+
$nextTick: typeof import('@vue/runtime-core').nextTick;
|
|
288
|
+
$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/runtime-core').WatchOptions): import('@vue/reactivity').WatchStopHandle;
|
|
289
|
+
} & Readonly<{}> & Omit<{}, never> & import('@vue/reactivity').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
286
290
|
$el: Element;
|
|
287
291
|
}) | null> | undefined;
|
|
288
292
|
}>;
|
|
289
|
-
input: import('vue').ComputedRef<{
|
|
293
|
+
input: import('@vue/reactivity').ComputedRef<{
|
|
290
294
|
"aria-autocomplete"?: "list" | undefined;
|
|
291
295
|
type?: string | undefined;
|
|
292
296
|
role: string;
|
|
@@ -297,7 +301,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
297
301
|
onInput: (event: Event) => void;
|
|
298
302
|
onKeydown: (event: KeyboardEvent) => void;
|
|
299
303
|
}>;
|
|
300
|
-
button: import('vue').ComputedRef<{
|
|
304
|
+
button: import('@vue/reactivity').ComputedRef<{
|
|
301
305
|
tabindex: string;
|
|
302
306
|
onClick: () => void | undefined;
|
|
303
307
|
}>;
|
|
@@ -305,7 +309,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
305
309
|
getOptionId: (value: string) => string;
|
|
306
310
|
getOptionValueById: (id: string) => string | undefined;
|
|
307
311
|
}>;
|
|
308
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
312
|
+
}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {
|
|
309
313
|
combobox: HTMLDivElement;
|
|
310
314
|
}, HTMLDivElement>;
|
|
311
315
|
export default _default;
|
|
@@ -99,6 +99,8 @@ export declare const createComboBox: <TValue extends ListboxValue, TAutoComplete
|
|
|
99
99
|
contextmenu?: string | undefined;
|
|
100
100
|
dir?: string | undefined;
|
|
101
101
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
103
|
+
enterKeyHint?: import('vue').HTMLAttributes["enterkeyhint"];
|
|
102
104
|
hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
103
105
|
inert?: (boolean | "true" | "false") | undefined;
|
|
104
106
|
lang?: string | undefined;
|
|
@@ -131,6 +133,8 @@ export declare const createComboBox: <TValue extends ListboxValue, TAutoComplete
|
|
|
131
133
|
unselectable?: "on" | "off" | undefined;
|
|
132
134
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
133
135
|
is?: string | undefined;
|
|
136
|
+
exportparts?: string;
|
|
137
|
+
part?: string;
|
|
134
138
|
'aria-activedescendant'?: string | undefined;
|
|
135
139
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
136
140
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLTableElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLTableElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
type RequestLazyLoad = (colIndex: number, rowIndex: number) => Promise<void>;
|
|
3
|
+
type CellIdentifier = {
|
|
4
|
+
rowId: string;
|
|
5
|
+
colKey: string;
|
|
6
|
+
};
|
|
7
|
+
export type LazyOptions<Lazy extends boolean> = Lazy extends true ? {
|
|
8
|
+
lazy: MaybeRefOrGetter<{
|
|
9
|
+
/**
|
|
10
|
+
* total number of rows that are viewable, this includes rows that are hidden because they are out of view
|
|
11
|
+
*/
|
|
12
|
+
totalRows: number | "unknown";
|
|
13
|
+
/**
|
|
14
|
+
* total number of columns that are viewable, this includes columns that are hidden because they are out of view
|
|
15
|
+
*/
|
|
16
|
+
totalCols: number | "unknown";
|
|
17
|
+
requestLazyLoad: RequestLazyLoad;
|
|
18
|
+
}>;
|
|
19
|
+
} : {
|
|
20
|
+
lazy?: never;
|
|
21
|
+
};
|
|
22
|
+
export type CreateDataGridOptions<Lazy extends boolean> = {
|
|
23
|
+
/**
|
|
24
|
+
* TODO: Implement support according to https://w3c.github.io/aria/#desc-grid
|
|
25
|
+
*/
|
|
26
|
+
readonly?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* TODO: Implement support according to https://w3c.github.io/aria/#desc-grid
|
|
29
|
+
*/
|
|
30
|
+
multiselectable?: boolean;
|
|
31
|
+
loading?: MaybeRefOrGetter<boolean>;
|
|
32
|
+
selectedCell?: Ref<CellIdentifier>;
|
|
33
|
+
} & LazyOptions<Lazy>;
|
|
34
|
+
export type TrOptions<Lazy extends boolean> = {
|
|
35
|
+
rowId: PropertyKey;
|
|
36
|
+
} & (Lazy extends true ? {
|
|
37
|
+
rowIndex: number;
|
|
38
|
+
} : {
|
|
39
|
+
rowIndex?: never;
|
|
40
|
+
});
|
|
41
|
+
export type TdOptions<Lazy extends boolean> = CellIdentifier & (Lazy extends true ? {
|
|
42
|
+
colIndex: number;
|
|
43
|
+
} : {
|
|
44
|
+
colIndex?: never;
|
|
45
|
+
});
|
|
46
|
+
export declare const createDataGrid: <Lazy extends boolean = false>(options: CreateDataGridOptions<Lazy>) => import('../../utils/builder.js').HeadlessComposable<{
|
|
47
|
+
label: {
|
|
48
|
+
id: string;
|
|
49
|
+
};
|
|
50
|
+
table: import('vue').ComputedRef<{
|
|
51
|
+
ref: import('../../utils/builder.js').HeadlessElRef<HTMLTableElement>;
|
|
52
|
+
onFocusin: (event: FocusEvent) => void;
|
|
53
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
54
|
+
role: string;
|
|
55
|
+
"aria-busy": boolean;
|
|
56
|
+
"aria-labelledby": string;
|
|
57
|
+
"aria-rowcount": number | undefined;
|
|
58
|
+
"aria-colcount": number | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
tr: ({ rowId, rowIndex }: TrOptions<Lazy>) => {
|
|
61
|
+
"data-onyx-row-id": string;
|
|
62
|
+
"aria-rowindex": number | undefined;
|
|
63
|
+
role: string;
|
|
64
|
+
};
|
|
65
|
+
td: import('vue').ComputedRef<({ rowId, colKey, colIndex }: TdOptions<Lazy>) => {
|
|
66
|
+
tabindex: string;
|
|
67
|
+
ref: import('../../utils/builder.js').HeadlessElRef<HTMLElement> | undefined;
|
|
68
|
+
"data-onyx-col-key": string;
|
|
69
|
+
"aria-colindex": number | undefined;
|
|
70
|
+
role: string;
|
|
71
|
+
}>;
|
|
72
|
+
}, {
|
|
73
|
+
/**
|
|
74
|
+
* Indicates that the data grid expects a content change soon, e.g. because more or other data is loaded.
|
|
75
|
+
* If `loading` is passed in via the options, this will mirror its value.
|
|
76
|
+
* Otherwise it will be dynamically set based on the running state of the `requestLazyLoad` promises.
|
|
77
|
+
*/
|
|
78
|
+
busy: import('vue').ComputedRef<boolean>;
|
|
79
|
+
}, {}>;
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute a callback, when all added promise are settled (either resolved or rejected).
|
|
3
|
+
* It allows for more promises to be added while waiting.
|
|
4
|
+
*
|
|
5
|
+
* @param cb callback to execute when all added promise are settled.
|
|
6
|
+
* @returns an object with an add function and the active state which is true as long as any promise is running.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useAllSettled: (cb?: () => void) => {
|
|
9
|
+
add: (promise: Promise<unknown>) => void;
|
|
10
|
+
active: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute a callback, when the latest promise is settled (either resolved or rejected).
|
|
3
|
+
* This ensures that out-of-order settling promises are ignored and only the latest promise is considered.
|
|
4
|
+
*
|
|
5
|
+
* @param cb callback to execute when the last promise, that was added to the queue, is settled.
|
|
6
|
+
* @returns the active state of the last settled promise and a queue function to add new promises to the queue.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useLastSettled: <T>(cb: (success: boolean, resolved?: T) => void) => {
|
|
9
|
+
active: import('vue').Ref<boolean, boolean>;
|
|
10
|
+
add: (promise: Promise<T>) => void;
|
|
11
|
+
cancel: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Arrayable } from 'vitest';
|
|
2
1
|
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
3
|
-
import { Nullable } from '../../utils/types.js';
|
|
2
|
+
import { Arrayable, Nullable } from '../../utils/types.js';
|
|
4
3
|
export type UseOutsideClickOptions<TCheckOnTab extends boolean | undefined = undefined> = {
|
|
5
4
|
/**
|
|
6
5
|
* HTML element of the component where clicks should be ignored
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
type __VLS_PublicProps = {
|
|
2
2
|
modelValue: number | [number, number];
|
|
3
3
|
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {
|
|
5
5
|
"update:modelValue": (value: number | [number, number]) => any;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
6
|
+
}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
9
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybeRef, Ref } from 'vue';
|
|
1
|
+
import { HTMLAttributes, MaybeRef, Ref } from 'vue';
|
|
2
2
|
export type SliderMark = {
|
|
3
3
|
value: number;
|
|
4
4
|
label?: string;
|
|
@@ -77,6 +77,8 @@ export declare const _unstableCreateSlider: <TValue extends SliderValue>(options
|
|
|
77
77
|
contextmenu?: string | undefined;
|
|
78
78
|
dir?: string | undefined;
|
|
79
79
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
80
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
81
|
+
enterKeyHint?: HTMLAttributes["enterkeyhint"];
|
|
80
82
|
hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
81
83
|
id?: string | undefined;
|
|
82
84
|
inert?: (boolean | "true" | "false") | undefined;
|
|
@@ -110,6 +112,8 @@ export declare const _unstableCreateSlider: <TValue extends SliderValue>(options
|
|
|
110
112
|
unselectable?: "on" | "off" | undefined;
|
|
111
113
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
112
114
|
is?: string | undefined;
|
|
115
|
+
exportparts?: string;
|
|
116
|
+
part?: string;
|
|
113
117
|
'aria-activedescendant'?: string | undefined;
|
|
114
118
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
115
119
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -280,6 +284,8 @@ export declare const _unstableCreateSlider: <TValue extends SliderValue>(options
|
|
|
280
284
|
contextmenu?: string | undefined;
|
|
281
285
|
dir?: string | undefined;
|
|
282
286
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
287
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
288
|
+
enterKeyHint?: HTMLAttributes["enterkeyhint"];
|
|
283
289
|
hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
284
290
|
id?: string | undefined;
|
|
285
291
|
inert?: (boolean | "true" | "false") | undefined;
|
|
@@ -313,6 +319,8 @@ export declare const _unstableCreateSlider: <TValue extends SliderValue>(options
|
|
|
313
319
|
unselectable?: "on" | "off" | undefined;
|
|
314
320
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
315
321
|
is?: string | undefined;
|
|
322
|
+
exportparts?: string;
|
|
323
|
+
part?: string;
|
|
316
324
|
'aria-activedescendant'?: string | undefined;
|
|
317
325
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
318
326
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,13 @@ function createElRef() {
|
|
|
4
4
|
const elementRef = shallowRef();
|
|
5
5
|
return computed({
|
|
6
6
|
set: (element) => {
|
|
7
|
-
|
|
7
|
+
if (Array.isArray(element)) {
|
|
8
|
+
elementRef.value = element.at(0);
|
|
9
|
+
} else if (element != null && "$el" in element) {
|
|
10
|
+
elementRef.value = element.$el;
|
|
11
|
+
} else {
|
|
12
|
+
elementRef.value = element;
|
|
13
|
+
}
|
|
8
14
|
},
|
|
9
15
|
get: () => elementRef.value
|
|
10
16
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {
|
|
2
2
|
buttonRef: HTMLButtonElement;
|
|
3
3
|
}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {
|
|
2
2
|
buttonRef: HTMLButtonElement;
|
|
3
3
|
}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
package/dist/utils/builder.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { ComponentPublicInstance, HTMLAttributes, MaybeRef, Ref, WritableComputedRef } from 'vue';
|
|
2
2
|
import { IfDefined } from './types.js';
|
|
3
|
+
type DataAttributes = {
|
|
4
|
+
[name: `data-${string}`]: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
export type HtmlWithDataAttributes = HTMLAttributes & DataAttributes;
|
|
3
7
|
/**
|
|
4
8
|
* Properties as they can be used by `v-bind` on an HTML element.
|
|
5
9
|
* This includes generic html attributes and the vue reserved `ref` property.
|
|
6
10
|
* `ref` is restricted to be a `HeadlessElRef` which only can by created through `createElRef`.
|
|
7
11
|
*/
|
|
8
|
-
export type VBindAttributes<A extends HTMLAttributes = HTMLAttributes, E extends Element = Element> = A & {
|
|
12
|
+
export type VBindAttributes<A extends HTMLAttributes = HTMLAttributes, E extends Element = Element> = A & DataAttributes & {
|
|
9
13
|
ref?: VueTemplateRef<E>;
|
|
10
14
|
};
|
|
11
|
-
export type IteratedHeadlessElementFunc<A extends
|
|
12
|
-
export type HeadlessElementAttributes<A extends
|
|
13
|
-
export type HeadlessElements = Record<string, MaybeRef<HeadlessElementAttributes<
|
|
15
|
+
export type IteratedHeadlessElementFunc<A extends HtmlWithDataAttributes, T extends Record<string, unknown>> = (opts: T) => VBindAttributes<A>;
|
|
16
|
+
export type HeadlessElementAttributes<A extends HtmlWithDataAttributes> = VBindAttributes<A> | IteratedHeadlessElementFunc<A, any>;
|
|
17
|
+
export type HeadlessElements = Record<string, MaybeRef<HeadlessElementAttributes<HtmlWithDataAttributes>>>;
|
|
14
18
|
export type HeadlessState = Record<string, Ref>;
|
|
15
19
|
export type HeadlessComposable<Elements extends HeadlessElements, State extends HeadlessState | undefined = undefined, Internals extends object | undefined = undefined> = {
|
|
16
20
|
elements: Elements;
|
package/dist/utils/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sit-onyx/headless",
|
|
3
3
|
"description": "Headless composables for Vue",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0-dev-20260111214528",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Schwarz IT KG",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"url": "https://github.com/SchwarzIT/onyx/issues"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@playwright/experimental-ct-vue": "1.
|
|
36
|
-
"@playwright/test": "1.
|
|
35
|
+
"@playwright/experimental-ct-vue": "1.57.0",
|
|
36
|
+
"@playwright/test": "1.57.0",
|
|
37
37
|
"typescript": ">= 5",
|
|
38
38
|
"vue": ">= 3.5.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vue/compiler-dom": "3.5.
|
|
42
|
-
"vue": "3.5.
|
|
41
|
+
"@vue/compiler-dom": "3.5.26",
|
|
42
|
+
"vue": "3.5.26",
|
|
43
43
|
"@sit-onyx/shared": "^0.1.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|