@soybeanjs/headless 0.26.0 → 0.26.2
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-compact.js +1 -1
- package/dist/components/autocomplete/types.d.ts +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +2 -2
- package/dist/components/card/card-compact.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +5 -5
- package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/command-compact.vue.d.ts +2 -2
- package/dist/components/command/types.d.ts +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/date-field/date-field-root.vue.d.ts +3 -3
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +40 -40
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +3 -3
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +40 -40
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +3 -3
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +40 -40
- package/dist/components/slider/slider-root.vue.d.ts +3 -3
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +3 -3
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +3 -3
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-fuse.d.ts +17 -0
- package/dist/composables/use-fuse.js +1 -0
- package/dist/date/utils.d.ts +1 -1
- package/dist/shared/vue.js +1 -1
- package/package.json +9 -5
|
@@ -110,48 +110,11 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
|
|
|
110
110
|
innerHTML: string;
|
|
111
111
|
class: string | false | Record<string, any> | import("vue").ClassValue[] | null;
|
|
112
112
|
style: string | false | CSSProperties | import("vue").StyleValue[] | null;
|
|
113
|
-
|
|
114
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
115
|
-
contextmenu: string;
|
|
116
|
-
dir: string;
|
|
117
|
-
draggable: boolean | "true" | "false";
|
|
118
|
-
enterkeyhint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
119
|
-
enterKeyHint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
120
|
-
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
113
|
+
color: string;
|
|
121
114
|
id: string;
|
|
122
|
-
inert: boolean | "true" | "false";
|
|
123
115
|
lang: string;
|
|
124
|
-
placeholder: string;
|
|
125
|
-
spellcheck: boolean | "true" | "false";
|
|
126
|
-
tabindex: string | number;
|
|
127
|
-
title: string;
|
|
128
|
-
translate: "yes" | "no";
|
|
129
|
-
radiogroup: string;
|
|
130
116
|
role: string;
|
|
131
|
-
|
|
132
|
-
datatype: string;
|
|
133
|
-
inlist: any;
|
|
134
|
-
prefix: string;
|
|
135
|
-
property: string;
|
|
136
|
-
resource: string;
|
|
137
|
-
typeof: string;
|
|
138
|
-
vocab: string;
|
|
139
|
-
autocapitalize: string;
|
|
140
|
-
autocorrect: string;
|
|
141
|
-
autosave: string;
|
|
142
|
-
color: string;
|
|
143
|
-
itemprop: string;
|
|
144
|
-
itemscope: boolean | "true" | "false";
|
|
145
|
-
itemtype: string;
|
|
146
|
-
itemid: string;
|
|
147
|
-
itemref: string;
|
|
148
|
-
results: string | number;
|
|
149
|
-
security: string;
|
|
150
|
-
unselectable: "on" | "off";
|
|
151
|
-
inputmode: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
152
|
-
is: string;
|
|
153
|
-
exportparts: string;
|
|
154
|
-
part: string;
|
|
117
|
+
tabindex: string | number;
|
|
155
118
|
'aria-activedescendant': string;
|
|
156
119
|
'aria-atomic': boolean | "true" | "false";
|
|
157
120
|
'aria-autocomplete': "list" | "none" | "inline" | "both";
|
|
@@ -187,7 +150,7 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
|
|
|
187
150
|
'aria-posinset': string | number;
|
|
188
151
|
'aria-pressed': (boolean | "true" | "false") | "mixed";
|
|
189
152
|
'aria-readonly': boolean | "true" | "false";
|
|
190
|
-
'aria-relevant': "
|
|
153
|
+
'aria-relevant': "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals";
|
|
191
154
|
'aria-required': boolean | "true" | "false";
|
|
192
155
|
'aria-roledescription': string;
|
|
193
156
|
'aria-rowcount': string | number;
|
|
@@ -200,6 +163,43 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
|
|
|
200
163
|
'aria-valuemin': string | number;
|
|
201
164
|
'aria-valuenow': string | number;
|
|
202
165
|
'aria-valuetext': string;
|
|
166
|
+
accesskey: string;
|
|
167
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
168
|
+
contextmenu: string;
|
|
169
|
+
dir: string;
|
|
170
|
+
draggable: boolean | "true" | "false";
|
|
171
|
+
enterkeyhint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
172
|
+
enterKeyHint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
173
|
+
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
174
|
+
inert: boolean | "true" | "false";
|
|
175
|
+
placeholder: string;
|
|
176
|
+
spellcheck: boolean | "true" | "false";
|
|
177
|
+
title: string;
|
|
178
|
+
translate: "yes" | "no";
|
|
179
|
+
radiogroup: string;
|
|
180
|
+
about: string;
|
|
181
|
+
datatype: string;
|
|
182
|
+
inlist: any;
|
|
183
|
+
prefix: string;
|
|
184
|
+
property: string;
|
|
185
|
+
resource: string;
|
|
186
|
+
typeof: string;
|
|
187
|
+
vocab: string;
|
|
188
|
+
autocapitalize: string;
|
|
189
|
+
autocorrect: string;
|
|
190
|
+
autosave: string;
|
|
191
|
+
itemprop: string;
|
|
192
|
+
itemscope: boolean | "true" | "false";
|
|
193
|
+
itemtype: string;
|
|
194
|
+
itemid: string;
|
|
195
|
+
itemref: string;
|
|
196
|
+
results: string | number;
|
|
197
|
+
security: string;
|
|
198
|
+
unselectable: "off" | "on";
|
|
199
|
+
inputmode: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
200
|
+
is: string;
|
|
201
|
+
exportparts: string;
|
|
202
|
+
part: string;
|
|
203
203
|
placement: Placement;
|
|
204
204
|
side: import("@floating-ui/utils").Side;
|
|
205
205
|
sideOffset: number;
|
|
@@ -14,14 +14,14 @@ declare const __VLS_base: import("vue").DefineComponent<SliderRootProps, {}, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
|
|
15
15
|
onValueCommit?: ((value: number[]) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
dir: Direction;
|
|
18
|
-
disabled: boolean;
|
|
19
17
|
max: number;
|
|
20
18
|
min: number;
|
|
21
19
|
orientation: DataOrientation;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
dir: Direction;
|
|
22
22
|
step: number;
|
|
23
|
-
modelValue: number[];
|
|
24
23
|
defaultValue: number[];
|
|
24
|
+
modelValue: number[];
|
|
25
25
|
inverted: boolean;
|
|
26
26
|
minStepsBetweenThumbs: number;
|
|
27
27
|
thumbAlignment: SliderThumbAlignment;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterGroupProps, {},
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<SplitterGroupProps> & Readonly<{
|
|
13
13
|
onLayout?: ((value: number[]) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
dir: Direction;
|
|
16
15
|
direction: DataOrientation;
|
|
16
|
+
dir: Direction;
|
|
17
17
|
keyboardResizeBy: number;
|
|
18
18
|
defaultLayout: number[];
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<StepperRootProps, {
|
|
|
37
37
|
"onUpdate:modelValue"?: ((payload: number) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
39
|
orientation: DataOrientation;
|
|
40
|
-
modelValue: number;
|
|
41
40
|
defaultValue: number;
|
|
41
|
+
modelValue: number;
|
|
42
42
|
linear: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((payload: DefinedValue | null) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
orientation: DataOrientation;
|
|
17
|
-
loop: boolean;
|
|
18
17
|
modelValue: DefinedValue | null;
|
|
18
|
+
loop: boolean;
|
|
19
19
|
activationMode: TabsActivationMode;
|
|
20
20
|
unmountOnHide: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_base: import("vue").DefineComponent<TagsInputRootProps, {},
|
|
|
20
20
|
onRemoveTag?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
max: number;
|
|
23
|
-
modelValue: string[];
|
|
24
23
|
defaultValue: string[];
|
|
24
|
+
modelValue: string[];
|
|
25
25
|
delimiter: string | RegExp;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,14 +10,14 @@ declare const __VLS_base: import("vue").DefineComponent<TimeFieldRootProps, {},
|
|
|
10
10
|
"onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
11
11
|
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
placeholder: TimeValue;
|
|
14
13
|
disabled: boolean;
|
|
14
|
+
placeholder: TimeValue;
|
|
15
15
|
step: DateStep;
|
|
16
16
|
defaultValue: TimeValue;
|
|
17
|
-
readonly: boolean;
|
|
18
17
|
defaultPlaceholder: TimeValue;
|
|
19
|
-
|
|
18
|
+
readonly: boolean;
|
|
20
19
|
granularity: TimeGranularity;
|
|
20
|
+
hourCycle: 12 | 24;
|
|
21
21
|
hideTimeZone: boolean;
|
|
22
22
|
isTimeUnavailable: TimeMatcher;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -14,14 +14,14 @@ declare const __VLS_base: import("vue").DefineComponent<TimeRangeFieldRootProps,
|
|
|
14
14
|
"onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
15
15
|
"onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
placeholder: TimeValue;
|
|
18
17
|
disabled: boolean;
|
|
18
|
+
placeholder: TimeValue;
|
|
19
19
|
step: DateStep;
|
|
20
20
|
defaultValue: TimeRange;
|
|
21
|
-
readonly: boolean;
|
|
22
21
|
defaultPlaceholder: TimeValue;
|
|
23
|
-
|
|
22
|
+
readonly: boolean;
|
|
24
23
|
granularity: TimeGranularity;
|
|
24
|
+
hourCycle: 12 | 24;
|
|
25
25
|
hideTimeZone: boolean;
|
|
26
26
|
isTimeUnavailable: TimeMatcher;
|
|
27
27
|
startName: string;
|
|
@@ -9,10 +9,10 @@ declare const __VLS_base: import("vue").DefineComponent<ToasterProps, {}, {}, {}
|
|
|
9
9
|
offset: ToastOffset;
|
|
10
10
|
duration: number;
|
|
11
11
|
gap: number;
|
|
12
|
-
position: ToastPosition;
|
|
13
|
-
visibleCounts: number;
|
|
14
12
|
hotkey: string[];
|
|
15
13
|
containerAriaLabel: string;
|
|
14
|
+
position: ToastPosition;
|
|
15
|
+
visibleCounts: number;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<ToggleProps, {}, {}, {},
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
modelValue: boolean;
|
|
19
18
|
defaultValue: boolean;
|
|
19
|
+
modelValue: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,8 +2,8 @@ import { VisuallyHiddenFeature, VisuallyHiddenInputProps } from "./types.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/visually-hidden/visually-hidden-input.vue.d.ts
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<VisuallyHiddenInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VisuallyHiddenInputProps> & Readonly<{}>, {
|
|
5
|
-
feature: VisuallyHiddenFeature;
|
|
6
5
|
checked: boolean;
|
|
6
|
+
feature: VisuallyHiddenFeature;
|
|
7
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
declare const _default: typeof __VLS_export;
|
|
9
9
|
//#endregion
|
|
@@ -12,6 +12,7 @@ import { useFocusGuards } from "./use-focus-guards.js";
|
|
|
12
12
|
import { UseFocusScopeOptions, useFocusScope } from "./use-focus-scope.js";
|
|
13
13
|
import { useForwardElement } from "./use-forward-element.js";
|
|
14
14
|
import { useForwardListeners } from "./use-forward-listeners.js";
|
|
15
|
+
import { FuseOptions, UseFuseOptions, UseFuseReturn, useFuse } from "./use-fuse.js";
|
|
15
16
|
import { UseGraceAreaOptions, useGraceArea } from "./use-grace-area.js";
|
|
16
17
|
import { useHideOthers } from "./use-hide-others.js";
|
|
17
18
|
import { useImageLoadingStatus } from "./use-image-loading-status.js";
|
|
@@ -24,4 +25,4 @@ import { useSelection } from "./use-selection.js";
|
|
|
24
25
|
import { useStateMachine } from "./use-state-machine.js";
|
|
25
26
|
import { useTypeahead } from "./use-typeahead.js";
|
|
26
27
|
import { UseUiConsumer, useUiContext } from "./use-ui-context.js";
|
|
27
|
-
export { CollectionItemData, UseDismissableLayerOptions, UseFloatingOptions, UseFloatingReturn, UseFocusScopeOptions, UseGraceAreaOptions, UsePopupEventsOptions, UseUiConsumer, kbdMap, useArrowNavigation, useBodyScrollLock, useBoolProp, useCollection, useContext, useControllableState, useDismissableLayer, useDismissableLayerBranch, useEscapeKeyDown, useExposedElement, useFloating, useFocusGuards, useFocusOutside, useFocusScope, useForwardElement, useForwardListeners, useGraceArea, useHideOthers, useImageLoadingStatus, useIsUsingKeyboard, useKbd, useOmitProps, usePickProps, usePointerdownOutside, usePopupEvents, usePresence, useSelection, useStateMachine, useTypeahead, useUiContext };
|
|
28
|
+
export { CollectionItemData, FuseOptions, UseDismissableLayerOptions, UseFloatingOptions, UseFloatingReturn, UseFocusScopeOptions, UseFuseOptions, UseFuseReturn, UseGraceAreaOptions, UsePopupEventsOptions, UseUiConsumer, kbdMap, useArrowNavigation, useBodyScrollLock, useBoolProp, useCollection, useContext, useControllableState, useDismissableLayer, useDismissableLayerBranch, useEscapeKeyDown, useExposedElement, useFloating, useFocusGuards, useFocusOutside, useFocusScope, useForwardElement, useForwardListeners, useFuse, useGraceArea, useHideOthers, useImageLoadingStatus, useIsUsingKeyboard, useKbd, useOmitProps, usePickProps, usePointerdownOutside, usePopupEvents, usePresence, useSelection, useStateMachine, useTypeahead, useUiContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useArrowNavigation as e}from"./use-arrow-navigation.js";import{useContext as t}from"./use-context.js";import{useBodyScrollLock as n}from"./use-body-scroll-lock.js";import{useBoolProp as r}from"./use-bool-prop.js";import{useCollection as i}from"./use-collection.js";import{useControllableState as a}from"./use-controllable-state.js";import{useEscapeKeyDown as o}from"./use-escape-key-down.js";import{useDismissableLayer as s,useDismissableLayerBranch as c,useFocusOutside as l,usePointerdownOutside as u}from"./use-dismissable-layer.js";import{useForwardElement as d}from"./use-forward-element.js";import{useExposedElement as f}from"./use-exposed-element.js";import{useFloating as p}from"./use-floating.js";import{useFocusGuards as m}from"./use-focus-guards.js";import{useFocusScope as h}from"./use-focus-scope.js";import{useForwardListeners as g}from"./use-forward-listeners.js";import{
|
|
1
|
+
import{useArrowNavigation as e}from"./use-arrow-navigation.js";import{useContext as t}from"./use-context.js";import{useBodyScrollLock as n}from"./use-body-scroll-lock.js";import{useBoolProp as r}from"./use-bool-prop.js";import{useCollection as i}from"./use-collection.js";import{useControllableState as a}from"./use-controllable-state.js";import{useEscapeKeyDown as o}from"./use-escape-key-down.js";import{useDismissableLayer as s,useDismissableLayerBranch as c,useFocusOutside as l,usePointerdownOutside as u}from"./use-dismissable-layer.js";import{useForwardElement as d}from"./use-forward-element.js";import{useExposedElement as f}from"./use-exposed-element.js";import{useFloating as p}from"./use-floating.js";import{useFocusGuards as m}from"./use-focus-guards.js";import{useFocusScope as h}from"./use-focus-scope.js";import{useForwardListeners as g}from"./use-forward-listeners.js";import{useFuse as _}from"./use-fuse.js";import{useGraceArea as v}from"./use-grace-area.js";import{useHideOthers as y}from"./use-hide-others.js";import{useImageLoadingStatus as b}from"./use-image-loading-status.js";import{useIsUsingKeyboard as x}from"./use-is-using-keyboard.js";import{kbdMap as S,useKbd as C}from"./use-kbd.js";import{usePopupEvents as w}from"./use-popup-events.js";import{useStateMachine as T}from"./use-state-machine.js";import{usePresence as E}from"./use-presence.js";import{useOmitProps as D,usePickProps as O}from"./use-props.js";import{useSelection as k}from"./use-selection.js";import{useTypeahead as A}from"./use-typeahead.js";import{useUiContext as j}from"./use-ui-context.js";export{S as kbdMap,e as useArrowNavigation,n as useBodyScrollLock,r as useBoolProp,i as useCollection,t as useContext,a as useControllableState,s as useDismissableLayer,c as useDismissableLayerBranch,o as useEscapeKeyDown,f as useExposedElement,p as useFloating,m as useFocusGuards,l as useFocusOutside,h as useFocusScope,d as useForwardElement,g as useForwardListeners,_ as useFuse,v as useGraceArea,y as useHideOthers,b as useImageLoadingStatus,x as useIsUsingKeyboard,C as useKbd,D as useOmitProps,O as usePickProps,u as usePointerdownOutside,w as usePopupEvents,E as usePresence,k as useSelection,T as useStateMachine,A as useTypeahead,j as useUiContext};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRefOrGetter, Ref } from "vue";
|
|
2
|
+
import Fuse, { FuseResult, IFuseOptions } from "fuse.js";
|
|
3
|
+
|
|
4
|
+
//#region src/composables/use-fuse.d.ts
|
|
5
|
+
type FuseOptions<T> = IFuseOptions<T>;
|
|
6
|
+
interface UseFuseOptions<T> {
|
|
7
|
+
fuseOptions?: FuseOptions<T>;
|
|
8
|
+
resultLimit?: number;
|
|
9
|
+
matchAllWhenSearchEmpty?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface UseFuseReturn<DataItem> {
|
|
12
|
+
fuse: Ref<Fuse<DataItem>>;
|
|
13
|
+
results: ComputedRef<FuseResult<DataItem>[]>;
|
|
14
|
+
}
|
|
15
|
+
declare function useFuse<DataItem>(search: MaybeRefOrGetter<string>, data: MaybeRefOrGetter<DataItem[]>, options?: MaybeRefOrGetter<UseFuseOptions<DataItem>>): UseFuseReturn<DataItem>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FuseOptions, UseFuseOptions, UseFuseReturn, useFuse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{computed as e,shallowRef as t,toValue as n,watch as r}from"vue";import i from"fuse.js";function a(a,o,s){let c=()=>new i(n(o)??[],n(s)?.fuseOptions),l=t(c());return r(()=>n(s)?.fuseOptions,()=>{l.value=c()},{deep:!0}),r(()=>n(o),e=>{l.value.setCollection(e)},{deep:!0}),{fuse:l,results:e(()=>{let e=n(s);if(e?.matchAllWhenSearchEmpty&&!n(a))return n(o).map((e,t)=>({item:e,refIndex:t}));let t=e?.resultLimit;return l.value.search(n(a),t?{limit:t}:void 0)})}}export{a as useFuse};
|
package/dist/date/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { DateStep, DateValue, Granularity, HourCycle, TimeGranularity, TimeInput
|
|
|
4
4
|
declare function getOptsByGranularity(granularity: Granularity, hourCycle: HourCycle, isTimeValue?: boolean): Intl.DateTimeFormatOptions;
|
|
5
5
|
declare function normalizeDateStep(step?: DateStep): DateStep;
|
|
6
6
|
declare function handleCalendarInitialFocus(calendar: HTMLElement): void;
|
|
7
|
-
declare function normalizeHourCycle(hourCycle: HourCycle): "
|
|
7
|
+
declare function normalizeHourCycle(hourCycle: HourCycle): "h23" | "h11" | undefined;
|
|
8
8
|
declare function normalizeHour12(hourCycle: HourCycle): boolean | undefined;
|
|
9
9
|
declare function getInputType(granularity: Granularity): "date" | "datetime-local";
|
|
10
10
|
declare function normalizeInputValue(date: DateValue | undefined, granularity: Granularity): string;
|
package/dist/shared/vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Comment as e,Fragment as t,computed as n,getCurrentInstance as r,toValue as i}from"vue";
|
|
1
|
+
import{Comment as e,Fragment as t,computed as n,getCurrentInstance as r,toValue as i}from"vue";const a={KEYED_FRAGMENT:128,BAIL:-2};function o(e){return e||r()}function s(n){let r=[],i=0;for(let o=0;o<n.length;o++){let c=n[o];c.type===t?((c.patchFlag??0)===a.KEYED_FRAGMENT&&i++,r=r.concat(s(c.children))):c.type!==e&&r.push(c)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=a.BAIL;return r}function c(e){let t=e?.$el??e;return t&&t.nodeType!==1&&(t=void 0),t}function l(e,t){return(t??Object.keys(e)).reduce((t,r)=>(t[r]=n(()=>typeof e[r]==`function`?e[r]():e[r]),t),{})}function u(e){return e?`classList`in e&&e.classList.contains(`form`):!0}const d=e=>{let t={};for(let n in e)t[n]=i(e[n]);return t},f=e=>!!e||e===``;export{c as getElFromTemplateRef,o as getLifeCycleTarget,d as getMergedRefsValue,s as getRawChildren,f as getVueBooleanCasting,u as isFormControl,l as transformPropsToContext};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/headless",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -96,23 +96,21 @@
|
|
|
96
96
|
"@soybeanjs/colord": "^0.5.0",
|
|
97
97
|
"@soybeanjs/hooks": "^0.3.0",
|
|
98
98
|
"@soybeanjs/utils": "^0.1.1",
|
|
99
|
-
"@standard-schema/spec": "^1.1.0",
|
|
100
99
|
"@tanstack/vue-virtual": "^3.13.26",
|
|
101
|
-
"@vue/shared": "^3.5.34",
|
|
102
100
|
"@vueuse/core": "^14.3.0",
|
|
103
|
-
"@vueuse/integrations": "^14.3.0",
|
|
104
|
-
"@vueuse/router": "^14.3.0",
|
|
105
101
|
"@vueuse/shared": "^14.3.0",
|
|
106
102
|
"aria-hidden": "^1.2.6",
|
|
107
103
|
"defu": "^6.1.7",
|
|
108
104
|
"embla-carousel": "^8.6.0",
|
|
109
105
|
"embla-carousel-reactive-utils": "^8.6.0",
|
|
106
|
+
"fuse.js": "^7.3.0",
|
|
110
107
|
"klona": "^2.0.6",
|
|
111
108
|
"ohash": "^2.0.11"
|
|
112
109
|
},
|
|
113
110
|
"devDependencies": {
|
|
114
111
|
"@nuxt/kit": "^4.4.6",
|
|
115
112
|
"@nuxt/schema": "^4.4.6",
|
|
113
|
+
"@standard-schema/spec": "^1.1.0",
|
|
116
114
|
"tsdown": "0.22.0",
|
|
117
115
|
"typescript": "6.0.3",
|
|
118
116
|
"unplugin-vue": "7.2.0",
|
|
@@ -129,6 +127,12 @@
|
|
|
129
127
|
"vue-router": ">=4.0.0"
|
|
130
128
|
},
|
|
131
129
|
"peerDependenciesMeta": {
|
|
130
|
+
"@nuxt/kit": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"@nuxt/schema": {
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
132
136
|
"nuxt": {
|
|
133
137
|
"optional": true
|
|
134
138
|
},
|