@soybeanjs/headless 0.26.1 → 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/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/types.d.ts +1 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +4 -4
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +3 -3
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- 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/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-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-radio-compact.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +42 -42
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +42 -42
- package/dist/components/dialog/dialog-compact.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.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 +2 -2
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +40 -40
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-group.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +2 -2
- 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/shared/vue.js +1 -1
- package/package.json +9 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useFuse as n}from"../../composables/use-fuse.js";import{useOmitProps as r}from"../../composables/use-props.js";import"../../composables/index.js";import i from"../_icon/icon.js";import a from"../listbox/listbox-group-label.js";import o from"../listbox/listbox-item-indicator.js";import s from"../popper/popper-anchor.js";import c from"../portal/portal.js";import l from"../combobox/combobox-cancel.js";import u from"../combobox/combobox-content.js";import d from"../combobox/combobox-empty.js";import f from"../combobox/combobox-group.js";import p from"../combobox/combobox-item.js";import m from"../combobox/combobox-separator.js";import h from"../combobox/combobox-trigger.js";import g from"../combobox/combobox-viewport.js";import"../combobox/index.js";import"../portal/index.js";import{getAutocompleteItemOptions as _,getAutocompleteSearchOptions as v,isGroupOption as y}from"./shared.js";import b from"./autocomplete-input.js";import x from"./autocomplete-root.js";import{Fragment as S,computed as C,createBlock as w,createCommentVNode as T,createElementBlock as E,createTextVNode as D,createVNode as O,defineComponent as k,guardReactiveProps as A,mergeProps as j,normalizeClass as M,normalizeProps as N,openBlock as P,renderList as F,renderSlot as I,toDisplayString as L,unref as R,withCtx as z}from"vue";import{defu as B}from"defu";const V=k({name:`AutocompleteCompact`,__name:`autocomplete-compact`,props:{modelValue:{default:void 0},defaultValue:{},items:{},placeholder:{},clearable:{type:Boolean,default:!1},clearLabel:{},emptyLabel:{},fuseOptions:{},anchorProps:{},inputProps:{},triggerProps:{},portalProps:{},contentProps:{},viewportProps:{},groupProps:{},groupLabelProps:{},itemProps:{},itemIndicatorProps:{},separatorProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},openOnFocus:{type:Boolean},openOnClick:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:open`,`highlight`,`select`],setup(k,{emit:V}){let H=k,U=V,W=r(H,[`items`,`modelValue`,`defaultValue`,`placeholder`,`clearable`,`clearLabel`,`emptyLabel`,`fuseOptions`,`anchorProps`,`inputProps`,`triggerProps`,`portalProps`,`contentProps`,`viewportProps`,`groupProps`,`groupLabelProps`,`itemProps`,`itemIndicatorProps`,`separatorProps`]),G=t(()=>H.modelValue,e=>{U(`update:modelValue`,e)},H.defaultValue??``),K=C(()=>B(H.fuseOptions,{fuseOptions:{ignoreLocation:!0,threshold:.3,keys:[`label`,`value`,`keywords`,`groupLabel`]},matchAllWhenSearchEmpty:!0})),q=C(()=>v(H.items)),{results:J}=n(C(()=>G.value),q,K),Y=C(()=>_(J.value.map(e=>e.item))),X=C(()=>({...H.inputProps,id:H.inputProps?.id??H.id,placeholder:H.placeholder??H.inputProps?.placeholder})),Z=e(),Q=e=>y(e)?`group-${e.label}`:`item-${e.value}`,$=e=>{U(`select`,e)};return(e,t)=>(P(),w(x,j(R(W),{"model-value":R(G),onHighlight:t[0]||(t[0]=e=>U(`highlight`,e)),"onUpdate:modelValue":t[1]||(t[1]=e=>G.value=e),"onUpdate:open":t[2]||(t[2]=e=>U(`update:open`,e))}),{default:z(()=>[O(R(s),j(k.anchorProps,{"data-soybean-autocomplete-anchor":``}),{default:z(()=>[O(b,N(A(X.value)),{leading:z(()=>[I(e.$slots,`input-leading`,{},()=>[O(i,{icon:`lucide:search`})])]),trailing:z(({clear:t})=>[k.clearable&&R(G)?(P(),w(R(l),{key:0,"aria-label":H.clearLabel??R(Z).autocomplete.clearInput,"data-soybean-autocomplete-cancel":``,onClick:t},{default:z(()=>[O(i,{icon:`lucide:x`})]),_:1},8,[`aria-label`,`onClick`])):T(`v-if`,!0),I(e.$slots,`input-trailing`)]),_:3},16),O(R(h),j(k.triggerProps,{"aria-label":R(Z).autocomplete.toggleSuggestions,"data-soybean-autocomplete-trigger":``}),{default:z(({triggerIconClass:t})=>[I(e.$slots,`trigger-icon`,{},()=>[O(i,{icon:`lucide:chevrons-up-down`,class:M(t)},null,8,[`class`])])]),_:3},16,[`aria-label`])]),_:3},16),O(R(c),N(A(k.portalProps)),{default:z(()=>[O(R(u),N(A(k.contentProps)),{default:z(()=>[O(R(g),N(A(k.viewportProps)),{default:z(()=>[Y.value.length?T(`v-if`,!0):(P(),w(R(d),{key:0},{default:z(()=>[I(e.$slots,`empty`,{},()=>[D(L(H.emptyLabel??R(Z).autocomplete.noResults),1)])]),_:3})),(P(!0),E(S,null,F(Y.value,t=>(P(),E(S,{key:Q(t)},[R(y)(t)?(P(),E(S,{key:0},[O(R(f),j({ref_for:!0},k.groupProps),{default:z(()=>[O(R(a),j({ref_for:!0},k.groupLabelProps),{default:z(()=>[I(e.$slots,`group-label`,{item:t},()=>[D(L(t.label),1)])]),_:2},1040),(P(!0),E(S,null,F(t.items,t=>(P(),E(S,{key:t.value},[O(R(p),j({ref_for:!0},k.itemProps,{value:t.value,disabled:t.disabled,onSelect:e=>$(t)}),{default:z(()=>[I(e.$slots,`item-leading`,{item:t},()=>[t.icon?(P(),w(i,{key:0,icon:t.icon},null,8,[`icon`])):T(`v-if`,!0)]),I(e.$slots,`item-text`,{item:t},()=>[D(L(t.label??t.value),1)]),I(e.$slots,`item-trailing`,{item:t}),O(R(o),j({ref_for:!0},k.itemIndicatorProps),{default:z(()=>[I(e.$slots,`item-indicator`,{item:t},()=>[O(i,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`disabled`,`onSelect`]),t.separator?(P(),w(R(m),j({key:0,ref_for:!0},k.separatorProps),null,16)):T(`v-if`,!0)],64))),128))]),_:2},1040),t.separator?(P(),w(R(m),j({key:0,ref_for:!0},k.separatorProps),null,16)):T(`v-if`,!0)],64)):(P(),E(S,{key:1},[O(R(p),j({ref_for:!0},k.itemProps,{value:t.value,disabled:t.disabled,onSelect:e=>$(t)}),{default:z(()=>[I(e.$slots,`item-leading`,{item:t},()=>[t.icon?(P(),w(i,{key:0,icon:t.icon},null,8,[`icon`])):T(`v-if`,!0)]),I(e.$slots,`item-text`,{item:t},()=>[D(L(t.label??t.value),1)]),I(e.$slots,`item-trailing`,{item:t}),O(R(o),j({ref_for:!0},k.itemIndicatorProps),{default:z(()=>[I(e.$slots,`item-indicator`,{item:t},()=>[O(i,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`disabled`,`onSelect`]),t.separator?(P(),w(R(m),j({key:0,ref_for:!0},k.separatorProps),null,16)):T(`v-if`,!0)],64))],64))),128))]),_:3},16)]),_:3},16)]),_:3},16)]),_:3},16,[`model-value`]))}});export{V as default};
|
|
@@ -4,8 +4,8 @@ import { AutocompleteCompactProps, AutocompleteCompactSlots, AutocompleteHighlig
|
|
|
4
4
|
declare const __VLS_export: <T extends AutocompleteSingleOptionData = AutocompleteSingleOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<AutocompleteCompactProps<T> & {
|
|
6
6
|
onSelect?: ((item: T) => any) | undefined;
|
|
7
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
7
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
9
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends AutocompleteSingleOptionData = Autocomple
|
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
14
14
|
attrs: any;
|
|
15
15
|
slots: AutocompleteCompactSlots<T>;
|
|
16
|
-
emit: ((evt: "select", item: T) => void) & ((evt: "update:
|
|
16
|
+
emit: ((evt: "select", item: T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: AutocompleteHighlightPayload | undefined) => void);
|
|
17
17
|
}>) => import("vue").VNode & {
|
|
18
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
19
|
};
|
|
@@ -18,16 +18,16 @@ declare const __VLS_base: import("vue").DefineComponent<AutocompleteRootProps, {
|
|
|
18
18
|
highlightFirstItem: () => void;
|
|
19
19
|
highlightSelected: (event?: Event) => Promise<void> | undefined;
|
|
20
20
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (value: string) => any;
|
|
22
21
|
"update:open": (value: boolean) => any;
|
|
22
|
+
"update:modelValue": (value: string) => any;
|
|
23
23
|
highlight: (payload?: AutocompleteHighlightPayload | undefined) => any;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<AutocompleteRootProps> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
25
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
27
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
-
modelValue: string;
|
|
30
29
|
open: boolean;
|
|
30
|
+
modelValue: string;
|
|
31
31
|
defaultOpen: boolean;
|
|
32
32
|
highlightOnHover: boolean;
|
|
33
33
|
openOnFocus: boolean;
|
|
@@ -3,13 +3,13 @@ import { FormFieldCommonProps } from "../../types/component.js";
|
|
|
3
3
|
import { BaseProps } from "../../types/vue.js";
|
|
4
4
|
import { IconValue } from "../_icon/types.js";
|
|
5
5
|
import { CollectionItemData } from "../../composables/use-collection.js";
|
|
6
|
+
import { UseFuseOptions } from "../../composables/use-fuse.js";
|
|
6
7
|
import { InputControlProps, InputRootEmits, InputRootProps } from "../input/types.js";
|
|
7
8
|
import { ListboxCollectionItemData, ListboxGroupLabelProps, ListboxGroupProps, ListboxItemIndicatorProps } from "../listbox/types.js";
|
|
8
9
|
import { PopperAnchorProps } from "../popper/types.js";
|
|
9
10
|
import { PortalProps } from "../portal/types.js";
|
|
10
11
|
import { ComboboxContentProps, ComboboxItemEmits, ComboboxItemProps, ComboboxSeparatorProps, ComboboxTriggerProps, ComboboxUi, ComboboxUiSlot, ComboboxViewportProps } from "../combobox/types.js";
|
|
11
12
|
import { ShallowRef } from "vue";
|
|
12
|
-
import { UseFuseOptions } from "@vueuse/integrations/useFuse";
|
|
13
13
|
|
|
14
14
|
//#region src/components/autocomplete/types.d.ts
|
|
15
15
|
/**
|
|
@@ -16,19 +16,19 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarRangeRootProps,
|
|
|
16
16
|
placeholder: DateValue;
|
|
17
17
|
defaultValue: DateRange;
|
|
18
18
|
defaultPlaceholder: DateValue;
|
|
19
|
-
|
|
19
|
+
allowNonContiguousRanges: boolean;
|
|
20
20
|
pagedNavigation: boolean;
|
|
21
21
|
preventDeselect: boolean;
|
|
22
|
+
maximumDays: number;
|
|
22
23
|
weekdayFormat: WeekDayFormat;
|
|
23
24
|
fixedWeeks: boolean;
|
|
24
25
|
numberOfMonths: number;
|
|
26
|
+
readonly: boolean;
|
|
25
27
|
initialFocus: boolean;
|
|
26
28
|
isDateDisabled: DateMatcher;
|
|
27
29
|
isDateUnavailable: DateMatcher;
|
|
28
|
-
disableDaysOutsideCurrentView: boolean;
|
|
29
|
-
allowNonContiguousRanges: boolean;
|
|
30
|
-
maximumDays: number;
|
|
31
30
|
isDateHighlightable: DateMatcher;
|
|
31
|
+
disableDaysOutsideCurrentView: boolean;
|
|
32
32
|
fixedDate: "start" | "end";
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_base: import("vue").DefineComponent<ColorAreaRootProps, {},
|
|
|
17
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
18
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
disabled: boolean;
|
|
21
20
|
format: ColorFormat;
|
|
21
|
+
disabled: boolean;
|
|
22
22
|
defaultValue: string | ColorValue;
|
|
23
23
|
modelValue: string | ColorValue;
|
|
24
24
|
colorSpace: ColorSpace;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<ColorFieldRootProps, {},
|
|
|
13
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
14
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
disabled: boolean;
|
|
17
16
|
format: ColorFormat;
|
|
17
|
+
disabled: boolean;
|
|
18
18
|
step: number;
|
|
19
19
|
defaultValue: string | ColorValue;
|
|
20
20
|
modelValue: string | ColorValue;
|
|
@@ -14,8 +14,8 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
16
|
change: (value: string) => any;
|
|
17
|
-
"update:modelValue": (value: string) => any;
|
|
18
17
|
"update:open": (value: boolean) => any;
|
|
18
|
+
"update:modelValue": (value: string) => any;
|
|
19
19
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
20
20
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
21
21
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps,
|
|
|
26
26
|
"update:format": (value: ColorFormat) => any;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<ColorPickerCompactProps> & Readonly<{
|
|
28
28
|
onChange?: ((value: string) => any) | undefined;
|
|
29
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
29
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
31
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
32
32
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
33
33
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -40,11 +40,11 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps,
|
|
|
40
40
|
open: boolean;
|
|
41
41
|
placement: Placement;
|
|
42
42
|
showArrow: boolean;
|
|
43
|
-
colorSpace: ColorSpace;
|
|
44
43
|
showAlpha: boolean;
|
|
45
44
|
showFields: boolean;
|
|
46
45
|
showSwatches: boolean;
|
|
47
46
|
swatches: string[];
|
|
47
|
+
colorSpace: ColorSpace;
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
49
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
@@ -31,8 +31,8 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerRootProps, {}
|
|
|
31
31
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
32
32
|
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
disabled: boolean;
|
|
35
34
|
format: ColorFormat;
|
|
35
|
+
disabled: boolean;
|
|
36
36
|
defaultValue: string | ColorValue;
|
|
37
37
|
modelValue: string | ColorValue;
|
|
38
38
|
defaultFormat: ColorFormat;
|
|
@@ -17,14 +17,14 @@ declare const __VLS_base: import("vue").DefineComponent<ColorSliderRootProps, {}
|
|
|
17
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
18
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
disabled: boolean;
|
|
21
20
|
format: ColorFormat;
|
|
22
21
|
orientation: DataOrientation;
|
|
22
|
+
disabled: boolean;
|
|
23
23
|
step: number;
|
|
24
24
|
defaultValue: string | ColorValue;
|
|
25
25
|
modelValue: string | ColorValue;
|
|
26
|
-
colorSpace: ColorSpace;
|
|
27
26
|
inverted: boolean;
|
|
27
|
+
colorSpace: ColorSpace;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ColorSwatchPickerCompactProps<M> & {
|
|
8
8
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
9
9
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
11
10
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
11
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
12
12
|
onLeave?: ((event: Event) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
16
16
|
expose: (exposed: {}) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: ColorSwatchPickerCompactSlots<M>;
|
|
19
|
-
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "
|
|
19
|
+
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
|
|
20
20
|
}>) => import("vue").VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|
|
@@ -6,8 +6,8 @@ import { ColorSwatchPickerRootProps } from "./types.js";
|
|
|
6
6
|
declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ColorSwatchPickerRootProps<M> & {
|
|
8
8
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
9
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
10
9
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
10
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
11
11
|
onLeave?: ((event: Event) => any) | undefined;
|
|
12
12
|
}> & (typeof globalThis extends {
|
|
13
13
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -19,7 +19,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
|
|
|
19
19
|
modelValue: ((M extends true ? string[] : string) | undefined) & Exclude<M extends true ? string[] : string, undefined>;
|
|
20
20
|
}) => any;
|
|
21
21
|
};
|
|
22
|
-
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "
|
|
22
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
|
|
23
23
|
}>) => import("vue").VNode & {
|
|
24
24
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
25
|
};
|
|
@@ -6,8 +6,8 @@ import { ComboboxCompactProps, ComboboxCompactSlots } from "./types.js";
|
|
|
6
6
|
declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxCompactProps<M> & {
|
|
8
8
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: ComboboxCompactSlots<M>;
|
|
25
|
-
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:
|
|
25
|
+
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "placed") => void);
|
|
26
26
|
}>) => import("vue").VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -4,8 +4,8 @@ import { ComboboxRootProps } from "./types.js";
|
|
|
4
4
|
//#region src/components/combobox/combobox-root.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxRootProps<M> & {
|
|
7
|
-
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
8
7
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
|
+
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
9
9
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -28,7 +28,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
28
28
|
modelValue: (M extends true ? string[] : string) | undefined;
|
|
29
29
|
}) => any;
|
|
30
30
|
};
|
|
31
|
-
emit: ((evt: "update:
|
|
31
|
+
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void);
|
|
32
32
|
}>) => import("vue").VNode & {
|
|
33
33
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useFuse as n}from"../../composables/use-fuse.js";import{useOmitProps as r}from"../../composables/use-props.js";import"../../composables/index.js";import i from"../_icon/icon.js";import a from"../listbox/listbox-group-label.js";import o from"../listbox/listbox-root.js";import s from"../listbox/listbox-content.js";import c from"../listbox/listbox-group.js";import l from"../listbox/listbox-item.js";import u from"../listbox/listbox-filter.js";import"../listbox/index.js";import d from"../kbd/kbd.js";import f from"../separator/separator-root.js";import{getCommandItemOptions as p,getCommandSearchOptions as m,isGroupOption as h}from"./shared.js";import{useCommandUi as g}from"./context.js";import{Fragment as _,computed as v,createBlock as y,createCommentVNode as b,createElementBlock as x,createElementVNode as S,createTextVNode as C,createVNode as w,defineComponent as T,guardReactiveProps as E,isRef as D,mergeProps as O,normalizeClass as k,normalizeProps as A,openBlock as j,renderList as M,renderSlot as N,toDisplayString as P,unref as F,withCtx as I}from"vue";import{defu as L}from"defu";const R=T({name:`CommandCompact`,__name:`command-compact`,props:{items:{},placeholder:{},searchTerm:{},clearable:{type:Boolean},fuseOptions:{},listProps:{},itemProps:{},itemLabelProps:{},groupProps:{},groupLabelProps:{},shortcutProps:{},separatorProps:{},inputProps:{},emptyProps:{},emptyLabel:{},orientation:{},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},selectionBehavior:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`,`select`,`update:searchTerm`],setup(T,{emit:R}){let z=T,B=R,V=r(z,[`items`,`placeholder`,`searchTerm`,`fuseOptions`,`emptyLabel`,`listProps`,`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`,`inputProps`,`emptyProps`]),H=t(()=>z.searchTerm,e=>{B(`update:searchTerm`,e)},z.inputProps?.defaultValue??``),U=v(()=>L(z.fuseOptions,{fuseOptions:{ignoreLocation:!0,threshold:.1,keys:[`label`,`groupLabel`]},resultLimit:12,matchAllWhenSearchEmpty:!0})),{results:W}=n(H,v(()=>m(z.items)),U),G=v(()=>p(W.value.map(e=>e.item))),K=v(()=>({...z.inputProps,placeholder:z.placeholder??z.inputProps?.placeholder})),q=v(()=>({...z.listProps,"aria-label":z.listProps?.[`aria-label`]??z.placeholder??`Commands`})),J=g(),Y=e(),X=e=>h(e)?`group-${e.value}`:`item-${e.value}`;return(e,t)=>(j(),y(F(o),O(F(V),{"onUpdate:modelValue":t[3]||(t[3]=e=>B(`update:modelValue`,e)),onHighlight:t[4]||(t[4]=e=>B(`highlight`,e)),onEntryFocus:t[5]||(t[5]=e=>B(`entryFocus`,e)),onLeave:t[6]||(t[6]=e=>B(`leave`,e))}),{default:I(()=>[w(F(u),O(K.value,{modelValue:F(H),"onUpdate:modelValue":t[0]||(t[0]=e=>D(H)?H.value=e:null),autofocus:``}),{leading:I(({clear:t})=>[N(e.$slots,`input-leading`,{clear:t},()=>[w(i,{icon:`lucide:search`})])]),trailing:I(({clear:t})=>[T.clearable?(j(),y(i,{key:0,icon:`lucide:x`,class:k(F(J).inputClearable),onClick:t},null,8,[`class`,`onClick`])):b(`v-if`,!0),N(e.$slots,`input-trailing`,{clear:t})]),_:3},16,[`modelValue`]),w(F(s),A(E(q.value)),{default:I(()=>[G.value.length?b(`v-if`,!0):(j(),x(`div`,O({key:0},T.emptyProps,{class:F(J).empty}),[N(e.$slots,`empty`,{},()=>[C(P(z.emptyLabel??F(Y).command.noResults),1)])],16)),(j(!0),x(_,null,M(G.value,n=>(j(),x(_,{key:X(n)},[F(h)(n)?(j(),x(_,{key:0},[w(F(c),O({ref_for:!0},T.groupProps),{default:I(()=>[w(F(a),O({ref_for:!0},T.groupLabelProps),{default:I(()=>[C(P(n.label),1)]),_:2},1040),(j(!0),x(_,null,M(n.items,n=>(j(),y(F(l),O({key:String(n.value)},{ref_for:!0},T.itemProps,{value:n.value,disabled:n.disabled,onSelect:t[1]||(t[1]=e=>B(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),y(i,{key:0,icon:n.icon},null,8,[`icon`])):b(`v-if`,!0)]),S(`span`,O({class:F(J).itemLabel},{ref_for:!0},T.itemLabelProps),[N(e.$slots,`item-label`,{item:n},()=>[C(P(n.label),1)])],16),N(e.$slots,`item-trailing`,{item:n}),n.shortcut?(j(),y(d,O({key:0,ref_for:!0},T.shortcutProps,{value:n.shortcut,class:F(J).shortcut}),null,16,[`value`,`class`])):b(`v-if`,!0)]),_:2},1040,[`value`,`disabled`]))),128))]),_:2},1040),n.separator?(j(),y(f,O({key:0,ref_for:!0},T.separatorProps,{decorative:``,class:F(J).separator}),null,16,[`class`])):b(`v-if`,!0)],64)):(j(),x(_,{key:1},[w(F(l),O({ref_for:!0},T.itemProps,{value:n.value,disabled:n.disabled,onSelect:t[2]||(t[2]=e=>B(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),y(i,{key:0,icon:n.icon},null,8,[`icon`])):b(`v-if`,!0)]),S(`span`,O({class:F(J).itemLabel},{ref_for:!0},T.itemLabelProps),[N(e.$slots,`item-label`,{item:n},()=>[C(P(n.label),1)])],16),N(e.$slots,`item-trailing`,{item:n}),n.shortcut?(j(),y(d,O({key:0,ref_for:!0},T.shortcutProps,{value:n.shortcut,class:F(J).shortcut}),null,16,[`value`,`class`])):b(`v-if`,!0)]),_:2},1040,[`value`,`disabled`]),n.separator?(j(),y(f,O({key:0,ref_for:!0},T.separatorProps,{decorative:``,class:F(J).separator}),null,16,[`class`])):b(`v-if`,!0)],64))],64))),128))]),_:3},16),N(e.$slots,`bottom`)]),_:3},16))}});export{R as default};
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: <T extends CommandSingleOptionData = CommandSingleOp
|
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<CommandCompactProps<T> & {
|
|
8
8
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
9
9
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
11
10
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
11
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
12
12
|
onLeave?: ((event: Event) => any) | undefined;
|
|
13
13
|
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
14
14
|
}> & (typeof globalThis extends {
|
|
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends CommandSingleOptionData = CommandSingleOp
|
|
|
17
17
|
expose: (exposed: {}) => void;
|
|
18
18
|
attrs: any;
|
|
19
19
|
slots: CommandCompactSlots<T>;
|
|
20
|
-
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "
|
|
20
|
+
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
|
|
21
21
|
}>) => import("vue").VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { BaseProps } from "../../types/vue.js";
|
|
3
3
|
import { IconValue } from "../_icon/types.js";
|
|
4
|
+
import { UseFuseOptions } from "../../composables/use-fuse.js";
|
|
4
5
|
import { ListboxContentProps, ListboxFilterProps, ListboxGroupLabelProps, ListboxGroupProps, ListboxItemEmits, ListboxItemProps, ListboxRootEmits, ListboxRootProps, ListboxUiSlot } from "../listbox/types.js";
|
|
5
6
|
import { KbdProps, KbdValue } from "../kbd/types.js";
|
|
6
7
|
import { SeparatorRootProps } from "../separator/types.js";
|
|
7
|
-
import { UseFuseOptions } from "@vueuse/integrations/useFuse";
|
|
8
8
|
|
|
9
9
|
//#region src/components/command/types.d.ts
|
|
10
10
|
/**
|
|
@@ -6,8 +6,8 @@ import { ContextMenuCheckboxCompactProps, ContextMenuCheckboxCompactSlots } from
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ContextMenuCheckboxCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuCheckboxCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -6,8 +6,8 @@ import { ContextMenuRadioCompactProps, ContextMenuRadioCompactSlots } from "./ty
|
|
|
6
6
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ContextMenuRadioCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuRadioCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", payload: Exclude<T, undefined>) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t,usePickProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import r from"../_icon/icon.js";import i from"../popover/popover-compact.js";import a from"../date-field/date-field-compact.js";import{computed as o,createBlock as s,createVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,toHandlers as p,unref as m,withCtx as h}from"vue";const g=l({name:`DatePickerCompact`,__name:`date-picker-compact`,props:{dateFieldProps:{},placement:{},showArrow:{type:Boolean},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},locale:{},modelValue:{},defaultValue:{},multiple:{
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t,usePickProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import r from"../_icon/icon.js";import i from"../popover/popover-compact.js";import a from"../date-field/date-field-compact.js";import{computed as o,createBlock as s,createVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,toHandlers as p,unref as m,withCtx as h}from"vue";const g=l({name:`DatePickerCompact`,__name:`date-picker-compact`,props:{dateFieldProps:{},placement:{},showArrow:{type:Boolean},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},locale:{},modelValue:{},defaultValue:{},multiple:{},placeholder:{},defaultPlaceholder:{},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{},initialFocus:{type:Boolean},isDateDisabled:{},isDateUnavailable:{},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`update:modelValue`,`update:placeholder`],setup(l,{emit:g}){let _=l,v=g,y=e(v),b=n(_,[`open`,`defaultOpen`,`modal`,`disabled`,`placement`,`showArrow`,`portalProps`,`positionerProps`,`popupProps`,`arrowProps`,`closeProps`]),x=n(_,[`dir`,`locale`,`modelValue`,`defaultValue`,`placeholder`,`defaultPlaceholder`,`disabled`,`readonly`,`maxValue`,`minValue`,`isDateUnavailable`],o(()=>({..._.dateFieldProps}))),S=o(()=>({..._.triggerProps,asChild:_.triggerProps?.asChild??!1})),C=t(_,[`open`,`defaultOpen`,`modal`,`placement`,`showArrow`,`triggerProps`,`portalProps`,`positionerProps`,`popupProps`,`arrowProps`,`closeProps`]),w=e=>{v(`update:modelValue`,e)},T=e=>{v(`update:placeholder`,e)};return(e,t)=>(d(),s(a,u(m(x),{"data-soybean-date-picker":``,"onUpdate:modelValue":t[0]||(t[0]=e=>v(`update:modelValue`,e)),"onUpdate:placeholder":t[1]||(t[1]=e=>v(`update:placeholder`,e))}),{trailing:h(()=>[c(i,u(m(b),{"trigger-props":S.value},p(m(y))),{trigger:h(()=>[c(r,{icon:`lucide:calendar`})]),default:h(({open:t,close:n})=>[f(e.$slots,`default`,{open:t,close:n,calendarProps:m(C),onUpdateModelValue:w,onUpdatePlaceholder:T})]),_:3},16,[`trigger-props`])]),_:3},16))}});export{g as default};
|
|
@@ -157,46 +157,11 @@ declare var __VLS_25: {
|
|
|
157
157
|
innerHTML: string | undefined;
|
|
158
158
|
class: import("vue").ClassValue | undefined;
|
|
159
159
|
style: import("vue").StyleValue | undefined;
|
|
160
|
-
|
|
161
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
162
|
-
contextmenu: string | undefined;
|
|
163
|
-
draggable: (boolean | "true" | "false") | undefined;
|
|
164
|
-
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
165
|
-
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
166
|
-
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
160
|
+
color: string | undefined;
|
|
167
161
|
id: string | undefined;
|
|
168
|
-
inert: (boolean | "true" | "false") | undefined;
|
|
169
162
|
lang: string | undefined;
|
|
170
|
-
spellcheck: (boolean | "true" | "false") | undefined;
|
|
171
|
-
tabindex: (string | number) | undefined;
|
|
172
|
-
title: string | undefined;
|
|
173
|
-
translate: "yes" | "no" | undefined;
|
|
174
|
-
radiogroup: string | undefined;
|
|
175
163
|
role: string | undefined;
|
|
176
|
-
|
|
177
|
-
datatype: string | undefined;
|
|
178
|
-
inlist: any;
|
|
179
|
-
prefix: string | undefined;
|
|
180
|
-
property: string | undefined;
|
|
181
|
-
resource: string | undefined;
|
|
182
|
-
typeof: string | undefined;
|
|
183
|
-
vocab: string | undefined;
|
|
184
|
-
autocapitalize: string | undefined;
|
|
185
|
-
autocorrect: string | undefined;
|
|
186
|
-
autosave: string | undefined;
|
|
187
|
-
color: string | undefined;
|
|
188
|
-
itemprop: string | undefined;
|
|
189
|
-
itemscope: (boolean | "true" | "false") | undefined;
|
|
190
|
-
itemtype: string | undefined;
|
|
191
|
-
itemid: string | undefined;
|
|
192
|
-
itemref: string | undefined;
|
|
193
|
-
results: (string | number) | undefined;
|
|
194
|
-
security: string | undefined;
|
|
195
|
-
unselectable: "on" | "off" | undefined;
|
|
196
|
-
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
197
|
-
is: string | undefined;
|
|
198
|
-
exportparts: string;
|
|
199
|
-
part: string;
|
|
164
|
+
tabindex: (string | number) | undefined;
|
|
200
165
|
'aria-activedescendant': string | undefined;
|
|
201
166
|
'aria-atomic': (boolean | "true" | "false") | undefined;
|
|
202
167
|
'aria-autocomplete': "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -245,6 +210,41 @@ declare var __VLS_25: {
|
|
|
245
210
|
'aria-valuemin': (string | number) | undefined;
|
|
246
211
|
'aria-valuenow': (string | number) | undefined;
|
|
247
212
|
'aria-valuetext': string | undefined;
|
|
213
|
+
accesskey: string | undefined;
|
|
214
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
215
|
+
contextmenu: string | undefined;
|
|
216
|
+
draggable: (boolean | "true" | "false") | undefined;
|
|
217
|
+
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
218
|
+
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
219
|
+
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
220
|
+
inert: (boolean | "true" | "false") | undefined;
|
|
221
|
+
spellcheck: (boolean | "true" | "false") | undefined;
|
|
222
|
+
title: string | undefined;
|
|
223
|
+
translate: "yes" | "no" | undefined;
|
|
224
|
+
radiogroup: string | undefined;
|
|
225
|
+
about: string | undefined;
|
|
226
|
+
datatype: string | undefined;
|
|
227
|
+
inlist: any;
|
|
228
|
+
prefix: string | undefined;
|
|
229
|
+
property: string | undefined;
|
|
230
|
+
resource: string | undefined;
|
|
231
|
+
typeof: string | undefined;
|
|
232
|
+
vocab: string | undefined;
|
|
233
|
+
autocapitalize: string | undefined;
|
|
234
|
+
autocorrect: string | undefined;
|
|
235
|
+
autosave: string | undefined;
|
|
236
|
+
itemprop: string | undefined;
|
|
237
|
+
itemscope: (boolean | "true" | "false") | undefined;
|
|
238
|
+
itemtype: string | undefined;
|
|
239
|
+
itemid: string | undefined;
|
|
240
|
+
itemref: string | undefined;
|
|
241
|
+
results: (string | number) | undefined;
|
|
242
|
+
security: string | undefined;
|
|
243
|
+
unselectable: "on" | "off" | undefined;
|
|
244
|
+
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
245
|
+
is: string | undefined;
|
|
246
|
+
exportparts: string;
|
|
247
|
+
part: string;
|
|
248
248
|
asChild: boolean;
|
|
249
249
|
as: AsTag | import("vue").Component;
|
|
250
250
|
}> & {
|
|
@@ -257,14 +257,14 @@ declare var __VLS_25: {
|
|
|
257
257
|
readonly showArrow: boolean;
|
|
258
258
|
readonly defaultOpen: boolean;
|
|
259
259
|
readonly modal: boolean;
|
|
260
|
-
readonly multiple: boolean;
|
|
261
|
-
readonly readonly: boolean;
|
|
262
260
|
readonly pagedNavigation: boolean;
|
|
263
261
|
readonly preventDeselect: boolean;
|
|
264
262
|
readonly fixedWeeks: boolean;
|
|
263
|
+
readonly readonly: boolean;
|
|
265
264
|
readonly initialFocus: boolean;
|
|
266
265
|
readonly disableDaysOutsideCurrentView: boolean;
|
|
267
|
-
|
|
266
|
+
readonly multiple: boolean;
|
|
267
|
+
}, "open" | "positionerProps" | "triggerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
268
268
|
onUpdateModelValue: (value: DateValue | undefined) => void;
|
|
269
269
|
onUpdatePlaceholder: (placeholder: DateValue) => void;
|
|
270
270
|
};
|
|
@@ -272,8 +272,8 @@ type __VLS_Slots = {} & {
|
|
|
272
272
|
default?: (props: typeof __VLS_25) => any;
|
|
273
273
|
};
|
|
274
274
|
declare const __VLS_base: import("vue").DefineComponent<DatePickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
275
|
-
"update:modelValue": (date: DateValue | undefined) => any;
|
|
276
275
|
"update:open": (value: boolean) => any;
|
|
276
|
+
"update:modelValue": (date: DateValue | undefined) => any;
|
|
277
277
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
278
278
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
279
279
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -282,8 +282,8 @@ declare const __VLS_base: import("vue").DefineComponent<DatePickerCompactProps,
|
|
|
282
282
|
closeAutoFocus: (event: Event) => any;
|
|
283
283
|
"update:placeholder": (date: DateValue) => any;
|
|
284
284
|
}, string, import("vue").PublicProps, Readonly<DatePickerCompactProps> & Readonly<{
|
|
285
|
-
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
286
285
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
286
|
+
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
287
287
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
288
288
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
289
289
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -160,46 +160,11 @@ declare var __VLS_25: {
|
|
|
160
160
|
innerHTML: string | undefined;
|
|
161
161
|
class: import("vue").ClassValue | undefined;
|
|
162
162
|
style: import("vue").StyleValue | undefined;
|
|
163
|
-
|
|
164
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
165
|
-
contextmenu: string | undefined;
|
|
166
|
-
draggable: (boolean | "true" | "false") | undefined;
|
|
167
|
-
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
168
|
-
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
169
|
-
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
163
|
+
color: string | undefined;
|
|
170
164
|
id: string | undefined;
|
|
171
|
-
inert: (boolean | "true" | "false") | undefined;
|
|
172
165
|
lang: string | undefined;
|
|
173
|
-
spellcheck: (boolean | "true" | "false") | undefined;
|
|
174
|
-
tabindex: (string | number) | undefined;
|
|
175
|
-
title: string | undefined;
|
|
176
|
-
translate: "yes" | "no" | undefined;
|
|
177
|
-
radiogroup: string | undefined;
|
|
178
166
|
role: string | undefined;
|
|
179
|
-
|
|
180
|
-
datatype: string | undefined;
|
|
181
|
-
inlist: any;
|
|
182
|
-
prefix: string | undefined;
|
|
183
|
-
property: string | undefined;
|
|
184
|
-
resource: string | undefined;
|
|
185
|
-
typeof: string | undefined;
|
|
186
|
-
vocab: string | undefined;
|
|
187
|
-
autocapitalize: string | undefined;
|
|
188
|
-
autocorrect: string | undefined;
|
|
189
|
-
autosave: string | undefined;
|
|
190
|
-
color: string | undefined;
|
|
191
|
-
itemprop: string | undefined;
|
|
192
|
-
itemscope: (boolean | "true" | "false") | undefined;
|
|
193
|
-
itemtype: string | undefined;
|
|
194
|
-
itemid: string | undefined;
|
|
195
|
-
itemref: string | undefined;
|
|
196
|
-
results: (string | number) | undefined;
|
|
197
|
-
security: string | undefined;
|
|
198
|
-
unselectable: "on" | "off" | undefined;
|
|
199
|
-
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
200
|
-
is: string | undefined;
|
|
201
|
-
exportparts: string;
|
|
202
|
-
part: string;
|
|
167
|
+
tabindex: (string | number) | undefined;
|
|
203
168
|
'aria-activedescendant': string | undefined;
|
|
204
169
|
'aria-atomic': (boolean | "true" | "false") | undefined;
|
|
205
170
|
'aria-autocomplete': "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -248,6 +213,41 @@ declare var __VLS_25: {
|
|
|
248
213
|
'aria-valuemin': (string | number) | undefined;
|
|
249
214
|
'aria-valuenow': (string | number) | undefined;
|
|
250
215
|
'aria-valuetext': string | undefined;
|
|
216
|
+
accesskey: string | undefined;
|
|
217
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
218
|
+
contextmenu: string | undefined;
|
|
219
|
+
draggable: (boolean | "true" | "false") | undefined;
|
|
220
|
+
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
221
|
+
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
222
|
+
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
223
|
+
inert: (boolean | "true" | "false") | undefined;
|
|
224
|
+
spellcheck: (boolean | "true" | "false") | undefined;
|
|
225
|
+
title: string | undefined;
|
|
226
|
+
translate: "yes" | "no" | undefined;
|
|
227
|
+
radiogroup: string | undefined;
|
|
228
|
+
about: string | undefined;
|
|
229
|
+
datatype: string | undefined;
|
|
230
|
+
inlist: any;
|
|
231
|
+
prefix: string | undefined;
|
|
232
|
+
property: string | undefined;
|
|
233
|
+
resource: string | undefined;
|
|
234
|
+
typeof: string | undefined;
|
|
235
|
+
vocab: string | undefined;
|
|
236
|
+
autocapitalize: string | undefined;
|
|
237
|
+
autocorrect: string | undefined;
|
|
238
|
+
autosave: string | undefined;
|
|
239
|
+
itemprop: string | undefined;
|
|
240
|
+
itemscope: (boolean | "true" | "false") | undefined;
|
|
241
|
+
itemtype: string | undefined;
|
|
242
|
+
itemid: string | undefined;
|
|
243
|
+
itemref: string | undefined;
|
|
244
|
+
results: (string | number) | undefined;
|
|
245
|
+
security: string | undefined;
|
|
246
|
+
unselectable: "on" | "off" | undefined;
|
|
247
|
+
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
248
|
+
is: string | undefined;
|
|
249
|
+
exportparts: string;
|
|
250
|
+
part: string;
|
|
251
251
|
asChild: boolean;
|
|
252
252
|
as: AsTag | import("vue").Component;
|
|
253
253
|
}> & {
|
|
@@ -260,14 +260,14 @@ declare var __VLS_25: {
|
|
|
260
260
|
readonly showArrow: boolean;
|
|
261
261
|
readonly defaultOpen: boolean;
|
|
262
262
|
readonly modal: boolean;
|
|
263
|
-
readonly
|
|
263
|
+
readonly allowNonContiguousRanges: boolean;
|
|
264
264
|
readonly pagedNavigation: boolean;
|
|
265
265
|
readonly preventDeselect: boolean;
|
|
266
266
|
readonly fixedWeeks: boolean;
|
|
267
|
+
readonly readonly: boolean;
|
|
267
268
|
readonly initialFocus: boolean;
|
|
268
269
|
readonly disableDaysOutsideCurrentView: boolean;
|
|
269
|
-
|
|
270
|
-
}, "positionerProps" | "open" | "triggerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
270
|
+
}, "open" | "positionerProps" | "triggerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
271
271
|
onUpdateModelValue: (value: DateRange) => void;
|
|
272
272
|
onUpdatePlaceholder: (placeholder: DateValue) => void;
|
|
273
273
|
};
|
|
@@ -275,8 +275,8 @@ type __VLS_Slots = {} & {
|
|
|
275
275
|
default?: (props: typeof __VLS_25) => any;
|
|
276
276
|
};
|
|
277
277
|
declare const __VLS_base: import("vue").DefineComponent<DateRangePickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
278
|
-
"update:modelValue": (range: DateRange) => any;
|
|
279
278
|
"update:open": (value: boolean) => any;
|
|
279
|
+
"update:modelValue": (range: DateRange) => any;
|
|
280
280
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
281
281
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
282
282
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -286,8 +286,8 @@ declare const __VLS_base: import("vue").DefineComponent<DateRangePickerCompactPr
|
|
|
286
286
|
"update:placeholder": (date: DateValue) => any;
|
|
287
287
|
"update:startValue": (date: DateValue | undefined) => any;
|
|
288
288
|
}, string, import("vue").PublicProps, Readonly<DateRangePickerCompactProps> & Readonly<{
|
|
289
|
-
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
290
289
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
290
|
+
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
291
291
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
292
292
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
293
293
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -30,9 +30,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogCompactProps, {},
|
|
|
30
30
|
open: boolean;
|
|
31
31
|
modal: boolean;
|
|
32
32
|
showClose: boolean;
|
|
33
|
-
alertType: DialogAlertType;
|
|
34
33
|
showCancel: "onlyWarning" | boolean;
|
|
35
34
|
showConfirm: boolean;
|
|
35
|
+
alertType: DialogAlertType;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
@@ -6,8 +6,8 @@ import { DropdownMenuCheckboxCompactProps, DropdownMenuCheckboxCompactSlots } fr
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<DropdownMenuCheckboxCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: DropdownMenuCheckboxCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -6,8 +6,8 @@ import { DropdownMenuRadioCompactProps, DropdownMenuRadioCompactSlots } from "./
|
|
|
6
6
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<DropdownMenuRadioCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: DropdownMenuRadioCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", payload: Exclude<T, undefined>) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -12,11 +12,11 @@ declare const __VLS_base: import("vue").DefineComponent<DropdownMenuRootProps, {
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<DropdownMenuRootProps> & Readonly<{
|
|
13
13
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
+
open: boolean;
|
|
15
16
|
delayDuration: number;
|
|
16
17
|
skipDelayDuration: number;
|
|
17
|
-
open: boolean;
|
|
18
|
-
trigger: DropdownMenuTriggerType;
|
|
19
18
|
modal: boolean;
|
|
19
|
+
trigger: DropdownMenuTriggerType;
|
|
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;
|
|
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<InputNumberRootProps, {}
|
|
|
15
15
|
}>, {
|
|
16
16
|
step: number;
|
|
17
17
|
modelValue: number | null;
|
|
18
|
-
stepSnapping: boolean;
|
|
19
18
|
focusOnChange: boolean;
|
|
19
|
+
stepSnapping: 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;
|
|
@@ -5,8 +5,8 @@ import { ListboxCollectionItemData, ListboxRootProps } from "./types.js";
|
|
|
5
5
|
declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ListboxRootProps<M> & {
|
|
7
7
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
8
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
9
8
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
9
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
10
10
|
onLeave?: ((event: Event) => any) | undefined;
|
|
11
11
|
}> & (typeof globalThis extends {
|
|
12
12
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
|
|
|
24
24
|
modelValue: (M extends true ? string[] : string) | undefined;
|
|
25
25
|
}) => any;
|
|
26
26
|
};
|
|
27
|
-
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "
|
|
27
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
|
|
28
28
|
}>) => import("vue").VNode & {
|
|
29
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
30
|
};
|
|
@@ -6,8 +6,8 @@ import { MenubarCompactProps, MenubarCompactSlots } from "./types.js";
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<MenubarCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: MenubarCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: <T extends PageTabsOptionData = PageTabsOptionData>(
|
|
|
7
7
|
onClick?: ((tab: T) => any) | undefined;
|
|
8
8
|
onClose?: ((tab: T) => any) | undefined;
|
|
9
9
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
-
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
11
10
|
onPin?: ((tab: T) => any) | undefined;
|
|
11
|
+
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
12
|
onSelectContextMenu?: ((menu: PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -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;
|
|
@@ -5,8 +5,8 @@ import { SelectCompactProps, SelectCompactSlots, SelectItemEvent } from "./types
|
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectCompactProps<T, M> & {
|
|
7
7
|
onSelect?: ((event: SelectItemEvent<T>) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
10
10
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
11
11
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
12
12
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, M extends bo
|
|
|
16
16
|
expose: (exposed: {}) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: SelectCompactSlots<T, M>;
|
|
19
|
-
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:
|
|
19
|
+
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
20
20
|
}>) => import("vue").VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|
|
@@ -4,8 +4,8 @@ import { SelectRootProps } from "./types.js";
|
|
|
4
4
|
//#region src/components/select/select-root.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
|
|
7
|
-
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
8
7
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
|
+
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
9
9
|
}> & (typeof globalThis extends {
|
|
10
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
11
11
|
} ? P : {});
|
|
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
|
|
|
17
17
|
open: boolean;
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
|
-
emit: ((evt: "update:
|
|
20
|
+
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
|
|
21
21
|
}>) => import("vue").VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
@@ -14,11 +14,11 @@ 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
|
-
disabled: boolean;
|
|
18
|
-
dir: Direction;
|
|
19
17
|
max: number;
|
|
20
18
|
min: number;
|
|
21
19
|
orientation: DataOrientation;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
dir: Direction;
|
|
22
22
|
step: number;
|
|
23
23
|
defaultValue: number[];
|
|
24
24
|
modelValue: number[];
|
|
@@ -12,10 +12,10 @@ 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;
|
|
17
|
-
|
|
16
|
+
dir: Direction;
|
|
18
17
|
keyboardResizeBy: number;
|
|
18
|
+
defaultLayout: number[];
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterResizeHandleProp
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<SplitterResizeHandleProps> & Readonly<{
|
|
14
14
|
onDragging?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
disabled: boolean;
|
|
17
16
|
tabindex: number;
|
|
17
|
+
disabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -23,9 +23,9 @@ declare const __VLS_base: import("vue").DefineComponent<TimeRangeFieldRootProps,
|
|
|
23
23
|
granularity: TimeGranularity;
|
|
24
24
|
hourCycle: 12 | 24;
|
|
25
25
|
hideTimeZone: boolean;
|
|
26
|
+
isTimeUnavailable: TimeMatcher;
|
|
26
27
|
startName: string;
|
|
27
28
|
endName: string;
|
|
28
|
-
isTimeUnavailable: TimeMatcher;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,15 +5,15 @@ declare const __VLS_export: <T extends TreeMenuBaseOptionData = TreeMenuBaseOpti
|
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TreeMenuCompactProps<T> & {
|
|
6
6
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
7
7
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
8
|
-
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
9
8
|
onSelectDropdown?: ((value: string) => any) | undefined;
|
|
9
|
+
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
14
14
|
attrs: any;
|
|
15
15
|
slots: TreeMenuCompactSlots<T>;
|
|
16
|
-
emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "
|
|
16
|
+
emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "selectDropdown", value: string) => void) & ((evt: "update:collapsed", value: boolean) => void);
|
|
17
17
|
}>) => import("vue").VNode & {
|
|
18
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
19
|
};
|
|
@@ -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/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
|
},
|