@soybeanjs/headless 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/_icon/types.d.ts +9 -0
- package/dist/components/accordion/types.d.ts +87 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/types.d.ts +78 -0
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +122 -10
- package/dist/components/arrow/types.d.ts +3 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- 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 +141 -0
- package/dist/components/avatar/types.d.ts +18 -0
- package/dist/components/backtop/backtop.vue.d.ts +9 -3
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/types.d.ts +21 -0
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +99 -0
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/types.d.ts +103 -1
- package/dist/components/button/types.d.ts +16 -1
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/types.d.ts +363 -0
- package/dist/components/card/types.d.ts +90 -0
- package/dist/components/carousel/types.d.ts +42 -0
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/types.d.ts +42 -0
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-area/types.d.ts +60 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/types.d.ts +51 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
- package/dist/components/color-slider/types.d.ts +60 -0
- package/dist/components/color-swatch/types.d.ts +9 -0
- package/dist/components/color-swatch-picker/types.d.ts +27 -0
- 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/combobox/types.d.ts +237 -0
- package/dist/components/command/types.d.ts +147 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +3 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/types.d.ts +78 -0
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-field/types.d.ts +147 -0
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -0
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
- package/dist/components/date-picker/date-picker-content.js +1 -0
- package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
- package/dist/components/date-picker/date-picker-root.js +1 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +9 -14
- package/dist/components/date-picker/index.d.ts +8 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +236 -10
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-field/types.d.ts +192 -0
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +7 -7
- package/dist/components/date-range-picker/types.d.ts +189 -0
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +5 -5
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/types.d.ts +196 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/types.d.ts +123 -0
- package/dist/components/empty/types.d.ts +24 -0
- package/dist/components/form/core/types.d.ts +396 -13
- package/dist/components/form/types.d.ts +27 -0
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/types.d.ts +57 -0
- package/dist/components/input/types.d.ts +21 -0
- package/dist/components/input-number/types.d.ts +30 -0
- package/dist/components/input-otp/index.d.ts +1 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
- package/dist/components/input-otp/types.d.ts +186 -0
- package/dist/components/kbd/types.d.ts +6 -0
- package/dist/components/label/types.d.ts +3 -0
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/types.d.ts +124 -10
- package/dist/components/link/types.d.ts +12 -0
- package/dist/components/list/types.d.ts +21 -0
- package/dist/components/listbox/types.d.ts +66 -0
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/types.d.ts +266 -2
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +4 -4
- package/dist/components/month-picker/types.d.ts +141 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +4 -4
- package/dist/components/month-range-picker/types.d.ts +165 -0
- package/dist/components/navigation-menu/types.d.ts +87 -0
- package/dist/components/page-tabs/types.d.ts +24 -0
- package/dist/components/pagination/types.d.ts +96 -0
- package/dist/components/popover/context.d.ts +9 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +0 -2
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +94 -6
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
- package/dist/components/popper/types.d.ts +21 -0
- package/dist/components/portal/types.d.ts +3 -0
- package/dist/components/primitive/types.d.ts +6 -0
- package/dist/components/progress/types.d.ts +81 -0
- package/dist/components/radio-group/types.d.ts +66 -0
- package/dist/components/range-calendar/range-calendar-root.vue.d.ts +2 -2
- package/dist/components/range-calendar/types.d.ts +330 -0
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/types.d.ts +18 -0
- package/dist/components/scroll-area/types.d.ts +33 -0
- package/dist/components/segment/types.d.ts +36 -0
- package/dist/components/select/select-content.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +240 -0
- package/dist/components/separator/types.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +3 -0
- package/dist/components/slider/slider-root.vue.d.ts +1 -1
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/splitter/types.d.ts +114 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +96 -0
- package/dist/components/switch/types.d.ts +21 -0
- package/dist/components/table/types.d.ts +819 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +75 -0
- package/dist/components/tag/types.d.ts +12 -0
- package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-field/types.d.ts +138 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +6 -6
- package/dist/components/time-picker/types.d.ts +156 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- package/dist/components/time-range-field/types.d.ts +192 -0
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +6 -6
- package/dist/components/time-range-picker/types.d.ts +201 -0
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +224 -4
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/types.d.ts +60 -0
- package/dist/components/virtualizer/types.d.ts +33 -0
- package/dist/components/visually-hidden/types.d.ts +30 -0
- package/dist/components/year-picker/types.d.ts +144 -0
- package/dist/components/year-picker/year-picker-root.vue.d.ts +4 -4
- package/dist/components/year-range-picker/types.d.ts +168 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +4 -4
- package/dist/composables/use-collection.js +1 -1
- package/dist/constants/components.d.ts +5 -5
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +1 -1
- package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
- package/dist/date/parts.d.ts +1 -1
- package/dist/index.d.ts +418 -417
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +877 -872
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/string.d.ts +1 -34
- package/dist/shared/string.js +1 -1
- package/dist/types/common.d.ts +9 -1
- package/dist/types/dom.d.ts +3 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +0 -0
- package/dist/types/vue.d.ts +4 -1
- package/package.json +6 -1
- package/dist/components/date-picker/date-picker-popup.js +0 -1
- package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-picker/date-picker-trigger.js +0 -1
- package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
- /package/dist/{components/input-otp → constants}/regexp.js +0 -0
|
@@ -4,15 +4,42 @@ import { ListboxItemEmits, ListboxItemIndicatorProps, ListboxItemProps, ListboxR
|
|
|
4
4
|
import { ComputedRef, HTMLAttributes } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/color-swatch-picker/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Props for the color swatch picker root component.
|
|
9
|
+
*/
|
|
7
10
|
interface ColorSwatchPickerRootProps<M extends boolean = false> extends PrimitiveProps, ListboxRootProps<M> {}
|
|
11
|
+
/**
|
|
12
|
+
* Emits for the color swatch picker root component.
|
|
13
|
+
*/
|
|
8
14
|
type ColorSwatchPickerRootEmits<M extends boolean = false> = ListboxRootEmits<M>;
|
|
15
|
+
/**
|
|
16
|
+
* Props for the color swatch picker item component.
|
|
17
|
+
*/
|
|
9
18
|
interface ColorSwatchPickerItemProps extends ListboxItemProps {}
|
|
19
|
+
/**
|
|
20
|
+
* Emits for the color swatch picker item component.
|
|
21
|
+
*/
|
|
10
22
|
type ColorSwatchPickerItemEmits = ListboxItemEmits;
|
|
23
|
+
/**
|
|
24
|
+
* Props for the color swatch picker item indicator component.
|
|
25
|
+
*/
|
|
11
26
|
interface ColorSwatchPickerItemIndicatorProps extends ListboxItemIndicatorProps {}
|
|
27
|
+
/**
|
|
28
|
+
* Props for the color swatch picker item swatch component.
|
|
29
|
+
*/
|
|
12
30
|
interface ColorSwatchPickerItemSwatchProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
31
|
+
/**
|
|
32
|
+
* Label text rendered by the component.
|
|
33
|
+
*/
|
|
13
34
|
label?: string;
|
|
14
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Available UI slots for the color swatch picker component.
|
|
38
|
+
*/
|
|
15
39
|
type ColorSwatchPickerUiSlot = 'root' | 'item' | 'itemIndicator' | 'swatch';
|
|
40
|
+
/**
|
|
41
|
+
* UI class overrides for the color swatch picker component.
|
|
42
|
+
*/
|
|
16
43
|
type ColorSwatchPickerUi = UiClass<ColorSwatchPickerUiSlot>;
|
|
17
44
|
//#endregion
|
|
18
45
|
export { ColorSwatchPickerItemEmits, ColorSwatchPickerItemIndicatorProps, ColorSwatchPickerItemProps, ColorSwatchPickerItemSwatchProps, ColorSwatchPickerRootEmits, ColorSwatchPickerRootProps, ColorSwatchPickerUi, ColorSwatchPickerUiSlot };
|
|
@@ -9,8 +9,8 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
9
9
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ComboboxCompactProps<M> & {
|
|
10
10
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
11
11
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
12
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
12
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
13
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14
14
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
15
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
16
16
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
24
24
|
expose: (exposed: {}) => void;
|
|
25
25
|
attrs: any;
|
|
26
26
|
slots: ComboboxCompactSlots<M>;
|
|
27
|
-
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "
|
|
27
|
+
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: "update:open", value: boolean) => 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: "placed") => void);
|
|
28
28
|
}>) => _$vue.VNode & {
|
|
29
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
30
|
};
|
|
@@ -7,8 +7,8 @@ import * as _$vue from "vue";
|
|
|
7
7
|
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<{
|
|
8
8
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ComboboxRootProps<M> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
10
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
11
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
12
|
}> & (typeof globalThis extends {
|
|
13
13
|
__VLS_PROPS_FALLBACK: infer P;
|
|
14
14
|
} ? P : {});
|
|
@@ -30,7 +30,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
30
30
|
modelValue: (M extends true ? string[] : string) | undefined;
|
|
31
31
|
}) => any;
|
|
32
32
|
};
|
|
33
|
-
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "
|
|
33
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "update:open", value: boolean) => void);
|
|
34
34
|
}>) => _$vue.VNode & {
|
|
35
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
36
|
};
|
|
@@ -7,6 +7,9 @@ import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositioner
|
|
|
7
7
|
import { PortalProps } from "../portal/types.js";
|
|
8
8
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
9
9
|
//#region src/components/combobox/types.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Props for the combobox root component.
|
|
12
|
+
*/
|
|
10
13
|
interface ComboboxRootProps<M extends boolean = false> extends Omit<ListboxRootProps<M>, 'orientation' | 'selectionBehavior'> {
|
|
11
14
|
/** The controlled open state of the Combobox. Can be bound with `v-model:open`. */
|
|
12
15
|
open?: boolean;
|
|
@@ -41,99 +44,333 @@ interface ComboboxRootProps<M extends boolean = false> extends Omit<ListboxRootP
|
|
|
41
44
|
*/
|
|
42
45
|
resetModelValueOnClear?: boolean;
|
|
43
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Emits for the combobox root component.
|
|
49
|
+
*/
|
|
44
50
|
type ComboboxRootEmits<M extends boolean = false> = Pick<ListboxRootEmits<M>, 'update:modelValue' | 'highlight'> & {
|
|
51
|
+
/**
|
|
52
|
+
* Emitted when the open state changes.
|
|
53
|
+
*/
|
|
45
54
|
'update:open': [value: boolean];
|
|
46
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* Props for the combobox trigger component.
|
|
58
|
+
*/
|
|
47
59
|
interface ComboboxTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
60
|
+
/**
|
|
61
|
+
* Whether the component is disabled.
|
|
62
|
+
*/
|
|
48
63
|
disabled?: boolean;
|
|
49
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Props for the combobox content impl component.
|
|
67
|
+
*/
|
|
50
68
|
interface ComboboxContentImplProps extends PopperPositionerProps, TrapFocusProps, DismissableLayerProps, ForceMountProps {
|
|
69
|
+
/**
|
|
70
|
+
* Position.
|
|
71
|
+
*/
|
|
51
72
|
position?: 'inline' | 'popper';
|
|
73
|
+
/**
|
|
74
|
+
* Whether body lock.
|
|
75
|
+
*/
|
|
52
76
|
bodyLock?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether hide when empty.
|
|
79
|
+
*/
|
|
53
80
|
hideWhenEmpty?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Props forwarded to the popup element.
|
|
83
|
+
*/
|
|
54
84
|
popupProps?: PopperPopupProps;
|
|
55
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Emits for the combobox content impl component.
|
|
88
|
+
*/
|
|
56
89
|
type ComboboxContentImplEmits = DismissableLayerEmits & FocusScopeEmits & PopperPositionerEmits;
|
|
90
|
+
/**
|
|
91
|
+
* Props for the combobox content component.
|
|
92
|
+
*/
|
|
57
93
|
interface ComboboxContentProps extends ComboboxContentImplProps {}
|
|
94
|
+
/**
|
|
95
|
+
* Emits for the combobox content component.
|
|
96
|
+
*/
|
|
58
97
|
type ComboboxContentEmits = ComboboxContentImplEmits;
|
|
98
|
+
/**
|
|
99
|
+
* Props for the combobox input component.
|
|
100
|
+
*/
|
|
59
101
|
interface ComboboxInputProps extends ListboxFilterProps {
|
|
102
|
+
/**
|
|
103
|
+
* Display value.
|
|
104
|
+
*/
|
|
60
105
|
displayValue?: (value: MaybeArray<string> | undefined) => string;
|
|
61
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Emits for the combobox input component.
|
|
109
|
+
*/
|
|
62
110
|
type ComboboxInputEmits = ListboxFilterEmits;
|
|
111
|
+
/**
|
|
112
|
+
* Props for the combobox viewport component.
|
|
113
|
+
*/
|
|
63
114
|
interface ComboboxViewportProps extends /** @vue-ignore */HTMLAttributes {
|
|
115
|
+
/**
|
|
116
|
+
* Nonce.
|
|
117
|
+
*/
|
|
64
118
|
nonce?: string;
|
|
65
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Props for the combobox item component.
|
|
122
|
+
*/
|
|
66
123
|
interface ComboboxItemProps extends ListboxItemProps {
|
|
124
|
+
/**
|
|
125
|
+
* Text value.
|
|
126
|
+
*/
|
|
67
127
|
textValue?: string;
|
|
68
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Emits for the combobox item component.
|
|
131
|
+
*/
|
|
69
132
|
type ComboboxItemEmits = ListboxItemEmits;
|
|
133
|
+
/**
|
|
134
|
+
* Props for the combobox empty component.
|
|
135
|
+
*/
|
|
70
136
|
interface ComboboxEmptyProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
137
|
+
/**
|
|
138
|
+
* Props for the combobox separator component.
|
|
139
|
+
*/
|
|
71
140
|
interface ComboboxSeparatorProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
141
|
+
/**
|
|
142
|
+
* Props for the combobox cancel component.
|
|
143
|
+
*/
|
|
72
144
|
interface ComboboxCancelProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
145
|
+
/**
|
|
146
|
+
* Whether the component is disabled.
|
|
147
|
+
*/
|
|
73
148
|
disabled?: boolean;
|
|
74
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Props for the combobox virtualizer component.
|
|
152
|
+
*/
|
|
75
153
|
interface ComboboxVirtualizerProps extends ListboxVirtualizerProps {}
|
|
154
|
+
/**
|
|
155
|
+
* Option data for the combobox single component.
|
|
156
|
+
*/
|
|
76
157
|
interface ComboboxSingleOptionData extends Pick<ComboboxItemProps, 'disabled' | 'textValue'> {
|
|
158
|
+
/**
|
|
159
|
+
* Value associated with the current item.
|
|
160
|
+
*/
|
|
77
161
|
value: string;
|
|
162
|
+
/**
|
|
163
|
+
* Icon rendered by the component.
|
|
164
|
+
*/
|
|
78
165
|
icon?: IconValue;
|
|
166
|
+
/**
|
|
167
|
+
* Label text rendered by the component.
|
|
168
|
+
*/
|
|
79
169
|
label: string;
|
|
170
|
+
/**
|
|
171
|
+
* Whether separator.
|
|
172
|
+
*/
|
|
80
173
|
separator?: boolean;
|
|
81
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Option data for the combobox group component.
|
|
177
|
+
*/
|
|
82
178
|
interface ComboboxGroupOptionData extends Pick<ComboboxSingleOptionData, 'label' | 'separator'> {
|
|
179
|
+
/**
|
|
180
|
+
* Items rendered by the component.
|
|
181
|
+
*/
|
|
83
182
|
items: ComboboxSingleOptionData[];
|
|
84
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Option data for the combobox component.
|
|
186
|
+
*/
|
|
85
187
|
type ComboboxOptionData = ComboboxSingleOptionData | ComboboxGroupOptionData;
|
|
188
|
+
/**
|
|
189
|
+
* Props for the combobox compact component.
|
|
190
|
+
*/
|
|
86
191
|
interface ComboboxCompactProps<M extends boolean = false> extends ComboboxRootProps<M> {
|
|
192
|
+
/**
|
|
193
|
+
* Items rendered by the component.
|
|
194
|
+
*/
|
|
87
195
|
items: ComboboxOptionData[];
|
|
196
|
+
/**
|
|
197
|
+
* Placeholder.
|
|
198
|
+
*/
|
|
88
199
|
placeholder?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Search placeholder.
|
|
202
|
+
*/
|
|
89
203
|
searchPlaceholder?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Clear label.
|
|
206
|
+
*/
|
|
90
207
|
clearLabel?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Empty label.
|
|
210
|
+
*/
|
|
91
211
|
emptyLabel?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Props forwarded to the anchor element.
|
|
214
|
+
*/
|
|
92
215
|
anchorProps?: PopperAnchorProps;
|
|
216
|
+
/**
|
|
217
|
+
* Props forwarded to the trigger element.
|
|
218
|
+
*/
|
|
93
219
|
triggerProps?: ComboboxTriggerProps;
|
|
220
|
+
/**
|
|
221
|
+
* Props forwarded to the cancel element.
|
|
222
|
+
*/
|
|
94
223
|
cancelProps?: ComboboxCancelProps;
|
|
224
|
+
/**
|
|
225
|
+
* Props forwarded to the portal element.
|
|
226
|
+
*/
|
|
95
227
|
portalProps?: PortalProps;
|
|
228
|
+
/**
|
|
229
|
+
* Props forwarded to the content element.
|
|
230
|
+
*/
|
|
96
231
|
contentProps?: ComboboxContentProps;
|
|
232
|
+
/**
|
|
233
|
+
* Props forwarded to the viewport element.
|
|
234
|
+
*/
|
|
97
235
|
viewportProps?: ComboboxViewportProps;
|
|
236
|
+
/**
|
|
237
|
+
* Props forwarded to the input element.
|
|
238
|
+
*/
|
|
98
239
|
inputProps?: ComboboxInputProps;
|
|
240
|
+
/**
|
|
241
|
+
* Props forwarded to the empty element.
|
|
242
|
+
*/
|
|
99
243
|
emptyProps?: ComboboxEmptyProps;
|
|
244
|
+
/**
|
|
245
|
+
* Props forwarded to the group element.
|
|
246
|
+
*/
|
|
100
247
|
groupProps?: ListboxGroupProps;
|
|
248
|
+
/**
|
|
249
|
+
* Props forwarded to the group label element.
|
|
250
|
+
*/
|
|
101
251
|
groupLabelProps?: ListboxGroupLabelProps;
|
|
252
|
+
/**
|
|
253
|
+
* Props forwarded to the item element.
|
|
254
|
+
*/
|
|
102
255
|
itemProps?: ComboboxItemProps;
|
|
256
|
+
/**
|
|
257
|
+
* Props forwarded to the item indicator element.
|
|
258
|
+
*/
|
|
103
259
|
itemIndicatorProps?: ListboxItemIndicatorProps;
|
|
260
|
+
/**
|
|
261
|
+
* Props forwarded to the separator element.
|
|
262
|
+
*/
|
|
104
263
|
separatorProps?: ComboboxSeparatorProps;
|
|
105
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* Emits for the combobox compact component.
|
|
267
|
+
*/
|
|
106
268
|
type ComboboxCompactEmits<M extends boolean = false> = ComboboxRootEmits<M> & ComboboxContentEmits & ComboboxItemEmits;
|
|
107
269
|
type ComboboxCompactModelValue<M extends boolean = false> = (M extends true ? string[] : string) | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* Slot props for the combobox compact trigger value component.
|
|
272
|
+
*/
|
|
108
273
|
interface ComboboxCompactTriggerValueSlotProps<M extends boolean = false> {
|
|
274
|
+
/**
|
|
275
|
+
* Current model value.
|
|
276
|
+
*/
|
|
109
277
|
modelValue: ComboboxCompactModelValue<M>;
|
|
278
|
+
/**
|
|
279
|
+
* Selected labels exposed in the slot scope.
|
|
280
|
+
*/
|
|
110
281
|
selectedLabels: string[];
|
|
282
|
+
/**
|
|
283
|
+
* Slot text exposed in the slot scope.
|
|
284
|
+
*/
|
|
111
285
|
slotText: string | undefined;
|
|
112
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Slot props for the combobox compact input component.
|
|
289
|
+
*/
|
|
113
290
|
interface ComboboxCompactInputSlotProps {
|
|
291
|
+
/**
|
|
292
|
+
* Clear exposed in the slot scope.
|
|
293
|
+
*/
|
|
114
294
|
clear: () => void;
|
|
115
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* Slot props for the combobox compact group label component.
|
|
298
|
+
*/
|
|
116
299
|
interface ComboboxCompactGroupLabelSlotProps {
|
|
300
|
+
/**
|
|
301
|
+
* Current item data.
|
|
302
|
+
*/
|
|
117
303
|
item: ComboboxGroupOptionData;
|
|
118
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* Slot props for the combobox compact item component.
|
|
307
|
+
*/
|
|
119
308
|
interface ComboboxCompactItemSlotProps {
|
|
309
|
+
/**
|
|
310
|
+
* Current item data.
|
|
311
|
+
*/
|
|
120
312
|
item: ComboboxSingleOptionData;
|
|
121
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Slots for the combobox compact component.
|
|
316
|
+
*/
|
|
122
317
|
type ComboboxCompactSlots<M extends boolean = false> = {
|
|
318
|
+
/**
|
|
319
|
+
* Custom content for the trigger leading slot.
|
|
320
|
+
*/
|
|
123
321
|
'trigger-leading'?: () => any;
|
|
322
|
+
/**
|
|
323
|
+
* Custom content for the trigger value slot.
|
|
324
|
+
*/
|
|
124
325
|
'trigger-value'?: (props: ComboboxCompactTriggerValueSlotProps<M>) => any;
|
|
326
|
+
/**
|
|
327
|
+
* Custom content for the trigger trailing slot.
|
|
328
|
+
*/
|
|
125
329
|
'trigger-trailing'?: () => any;
|
|
330
|
+
/**
|
|
331
|
+
* Custom content for the trigger icon slot.
|
|
332
|
+
*/
|
|
126
333
|
'trigger-icon'?: () => any;
|
|
334
|
+
/**
|
|
335
|
+
* Custom content for the input leading slot.
|
|
336
|
+
*/
|
|
127
337
|
'input-leading'?: (props: ComboboxCompactInputSlotProps) => any;
|
|
338
|
+
/**
|
|
339
|
+
* Custom content for the input trailing slot.
|
|
340
|
+
*/
|
|
128
341
|
'input-trailing'?: (props: ComboboxCompactInputSlotProps) => any;
|
|
342
|
+
/**
|
|
343
|
+
* Custom content for the empty slot.
|
|
344
|
+
*/
|
|
129
345
|
empty?: () => any;
|
|
346
|
+
/**
|
|
347
|
+
* Custom content for the group label slot.
|
|
348
|
+
*/
|
|
130
349
|
'group-label'?: (props: ComboboxCompactGroupLabelSlotProps) => any;
|
|
350
|
+
/**
|
|
351
|
+
* Custom content for the item leading slot.
|
|
352
|
+
*/
|
|
131
353
|
'item-leading'?: (props: ComboboxCompactItemSlotProps) => any;
|
|
354
|
+
/**
|
|
355
|
+
* Custom content for the item text slot.
|
|
356
|
+
*/
|
|
132
357
|
'item-text'?: (props: ComboboxCompactItemSlotProps) => any;
|
|
358
|
+
/**
|
|
359
|
+
* Custom content for the item trailing slot.
|
|
360
|
+
*/
|
|
133
361
|
'item-trailing'?: (props: ComboboxCompactItemSlotProps) => any;
|
|
362
|
+
/**
|
|
363
|
+
* Custom content for the item indicator slot.
|
|
364
|
+
*/
|
|
134
365
|
'item-indicator'?: (props: ComboboxCompactItemSlotProps) => any;
|
|
135
366
|
};
|
|
367
|
+
/**
|
|
368
|
+
* Available UI slots for the combobox component.
|
|
369
|
+
*/
|
|
136
370
|
type ComboboxUiSlot = PopperUiSlot | 'root' | 'trigger' | 'triggerIcon' | 'cancel' | 'viewport' | 'inputRoot' | 'inputControl' | 'group' | 'groupLabel' | 'item' | 'itemIndicator' | 'empty' | 'separator' | 'virtualizer';
|
|
371
|
+
/**
|
|
372
|
+
* UI class overrides for the combobox component.
|
|
373
|
+
*/
|
|
137
374
|
type ComboboxUi = UiClass<ComboboxUiSlot>;
|
|
138
375
|
//#endregion
|
|
139
376
|
export { ComboboxCancelProps, ComboboxCompactEmits, ComboboxCompactProps, ComboboxCompactSlots, ComboboxContentEmits, ComboboxContentProps, ComboboxEmptyProps, ComboboxGroupOptionData, ComboboxInputEmits, ComboboxInputProps, ComboboxItemEmits, ComboboxItemProps, ComboboxOptionData, ComboboxRootEmits, ComboboxRootProps, ComboboxSeparatorProps, ComboboxSingleOptionData, ComboboxTriggerProps, ComboboxUi, ComboboxUiSlot, ComboboxViewportProps, ComboboxVirtualizerProps };
|
|
@@ -7,61 +7,208 @@ import { HTMLAttributes } from "vue";
|
|
|
7
7
|
import { UseFuseOptions } from "@vueuse/integrations/useFuse";
|
|
8
8
|
|
|
9
9
|
//#region src/components/command/types.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Option data for the command single component.
|
|
12
|
+
*/
|
|
10
13
|
interface CommandSingleOptionData extends Pick<ListboxItemProps, 'value' | 'disabled'> {
|
|
14
|
+
/**
|
|
15
|
+
* Icon rendered by the component.
|
|
16
|
+
*/
|
|
11
17
|
icon?: IconValue;
|
|
18
|
+
/**
|
|
19
|
+
* Label text rendered by the component.
|
|
20
|
+
*/
|
|
12
21
|
label: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether separator.
|
|
24
|
+
*/
|
|
13
25
|
separator?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Shortcut.
|
|
28
|
+
*/
|
|
14
29
|
shortcut?: KbdValue | KbdValue[];
|
|
15
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Option data for the command group component.
|
|
33
|
+
*/
|
|
16
34
|
interface CommandGroupOptionData<T extends CommandSingleOptionData = CommandSingleOptionData> extends Pick<CommandSingleOptionData, 'value' | 'label' | 'separator'> {
|
|
35
|
+
/**
|
|
36
|
+
* Items rendered by the component.
|
|
37
|
+
*/
|
|
17
38
|
items: T[];
|
|
18
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Option data for the command component.
|
|
42
|
+
*/
|
|
19
43
|
type CommandOptionData<T extends CommandSingleOptionData = CommandSingleOptionData> = T | CommandGroupOptionData<T>;
|
|
44
|
+
/**
|
|
45
|
+
* Props for the command item label component.
|
|
46
|
+
*/
|
|
20
47
|
interface CommandItemLabelProps extends /** @vue-ignore */HTMLAttributes {}
|
|
48
|
+
/**
|
|
49
|
+
* Props for the command shortcut component.
|
|
50
|
+
*/
|
|
21
51
|
interface CommandShortcutProps extends Omit<KbdProps, 'value'> {}
|
|
52
|
+
/**
|
|
53
|
+
* Props for the command separator component.
|
|
54
|
+
*/
|
|
22
55
|
interface CommandSeparatorProps extends SeparatorRootProps {}
|
|
56
|
+
/**
|
|
57
|
+
* Option data for the command search component.
|
|
58
|
+
*/
|
|
23
59
|
type CommandSearchOptionData<T extends CommandSingleOptionData = CommandSingleOptionData> = T & {
|
|
60
|
+
/**
|
|
61
|
+
* Group value.
|
|
62
|
+
*/
|
|
24
63
|
groupValue?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Group label.
|
|
66
|
+
*/
|
|
25
67
|
groupLabel?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether group separator.
|
|
70
|
+
*/
|
|
26
71
|
groupSeparator?: boolean;
|
|
27
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* Props for the command empty component.
|
|
75
|
+
*/
|
|
28
76
|
interface CommandEmptyProps extends /** @vue-ignore */HTMLAttributes {}
|
|
77
|
+
/**
|
|
78
|
+
* Available UI slots for the command component.
|
|
79
|
+
*/
|
|
29
80
|
type CommandUiSlot = Extract<ListboxUiSlot, 'root' | 'item' | 'group' | 'groupLabel'> | 'list' | 'inputRoot' | 'inputControl' | 'inputClearable' | 'itemLabel' | 'shortcut' | 'separator' | 'empty';
|
|
81
|
+
/**
|
|
82
|
+
* UI class overrides for the command component.
|
|
83
|
+
*/
|
|
30
84
|
type CommandUi = UiClass<CommandUiSlot>;
|
|
85
|
+
/**
|
|
86
|
+
* Props for the command compact component.
|
|
87
|
+
*/
|
|
31
88
|
interface CommandCompactProps<T extends CommandSingleOptionData = CommandSingleOptionData> extends Omit<ListboxRootProps, 'onSelect'> {
|
|
89
|
+
/**
|
|
90
|
+
* Items rendered by the component.
|
|
91
|
+
*/
|
|
32
92
|
items: CommandOptionData<T>[];
|
|
93
|
+
/**
|
|
94
|
+
* Placeholder.
|
|
95
|
+
*/
|
|
33
96
|
placeholder?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Search term.
|
|
99
|
+
*/
|
|
34
100
|
searchTerm?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whether clearable.
|
|
103
|
+
*/
|
|
35
104
|
clearable?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Fuse options.
|
|
107
|
+
*/
|
|
36
108
|
fuseOptions?: UseFuseOptions<CommandSearchOptionData<T>>;
|
|
109
|
+
/**
|
|
110
|
+
* Props forwarded to the list element.
|
|
111
|
+
*/
|
|
37
112
|
listProps?: ListboxContentProps;
|
|
113
|
+
/**
|
|
114
|
+
* Props forwarded to the item element.
|
|
115
|
+
*/
|
|
38
116
|
itemProps?: ListboxItemProps;
|
|
117
|
+
/**
|
|
118
|
+
* Props forwarded to the item label element.
|
|
119
|
+
*/
|
|
39
120
|
itemLabelProps?: CommandItemLabelProps;
|
|
121
|
+
/**
|
|
122
|
+
* Props forwarded to the group element.
|
|
123
|
+
*/
|
|
40
124
|
groupProps?: ListboxGroupProps;
|
|
125
|
+
/**
|
|
126
|
+
* Props forwarded to the group label element.
|
|
127
|
+
*/
|
|
41
128
|
groupLabelProps?: ListboxGroupLabelProps;
|
|
129
|
+
/**
|
|
130
|
+
* Props forwarded to the shortcut element.
|
|
131
|
+
*/
|
|
42
132
|
shortcutProps?: CommandShortcutProps;
|
|
133
|
+
/**
|
|
134
|
+
* Props forwarded to the separator element.
|
|
135
|
+
*/
|
|
43
136
|
separatorProps?: CommandSeparatorProps;
|
|
137
|
+
/**
|
|
138
|
+
* Props forwarded to the input element.
|
|
139
|
+
*/
|
|
44
140
|
inputProps?: ListboxFilterProps;
|
|
141
|
+
/**
|
|
142
|
+
* Props forwarded to the empty element.
|
|
143
|
+
*/
|
|
45
144
|
emptyProps?: CommandEmptyProps;
|
|
145
|
+
/**
|
|
146
|
+
* Empty label.
|
|
147
|
+
*/
|
|
46
148
|
emptyLabel?: string;
|
|
47
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Emits for the command search term component.
|
|
152
|
+
*/
|
|
48
153
|
type CommandSearchTermEmits = {
|
|
154
|
+
/**
|
|
155
|
+
* Emitted when the search term value changes.
|
|
156
|
+
*/
|
|
49
157
|
'update:searchTerm': [value: string];
|
|
50
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Emits for the command compact component.
|
|
161
|
+
*/
|
|
51
162
|
type CommandCompactEmits = ListboxRootEmits & ListboxItemEmits & CommandSearchTermEmits;
|
|
163
|
+
/**
|
|
164
|
+
* Slot props for the command compact input component.
|
|
165
|
+
*/
|
|
52
166
|
interface CommandCompactInputSlotProps {
|
|
167
|
+
/**
|
|
168
|
+
* Clear exposed in the slot scope.
|
|
169
|
+
*/
|
|
53
170
|
clear: () => void;
|
|
54
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Slot props for the command compact item component.
|
|
174
|
+
*/
|
|
55
175
|
interface CommandCompactItemSlotProps<T extends CommandSingleOptionData = CommandSingleOptionData> {
|
|
176
|
+
/**
|
|
177
|
+
* Current item data.
|
|
178
|
+
*/
|
|
56
179
|
item: T;
|
|
57
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Slots for the command compact component.
|
|
183
|
+
*/
|
|
58
184
|
type CommandCompactSlots<T extends CommandSingleOptionData = CommandSingleOptionData> = {
|
|
185
|
+
/**
|
|
186
|
+
* Custom content for the input leading slot.
|
|
187
|
+
*/
|
|
59
188
|
'input-leading'?: (props: CommandCompactInputSlotProps) => any;
|
|
189
|
+
/**
|
|
190
|
+
* Custom content for the input trailing slot.
|
|
191
|
+
*/
|
|
60
192
|
'input-trailing'?: (props: CommandCompactInputSlotProps) => any;
|
|
193
|
+
/**
|
|
194
|
+
* Custom content for the empty slot.
|
|
195
|
+
*/
|
|
61
196
|
empty?: () => any;
|
|
197
|
+
/**
|
|
198
|
+
* Custom content for the item leading slot.
|
|
199
|
+
*/
|
|
62
200
|
'item-leading'?: (props: CommandCompactItemSlotProps<T>) => any;
|
|
201
|
+
/**
|
|
202
|
+
* Custom content for the item trailing slot.
|
|
203
|
+
*/
|
|
63
204
|
'item-trailing'?: (props: CommandCompactItemSlotProps<T>) => any;
|
|
205
|
+
/**
|
|
206
|
+
* Custom content for the item label slot.
|
|
207
|
+
*/
|
|
64
208
|
'item-label'?: (props: CommandCompactItemSlotProps<T>) => any;
|
|
209
|
+
/**
|
|
210
|
+
* Custom content for the bottom slot.
|
|
211
|
+
*/
|
|
65
212
|
bottom?: () => any;
|
|
66
213
|
};
|
|
67
214
|
//#endregion
|
|
@@ -10,8 +10,8 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<ConfigProviderProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
|
11
11
|
nuxt: boolean;
|
|
12
12
|
dir: Direction;
|
|
13
|
-
locale: string;
|
|
14
13
|
nonce: string;
|
|
14
|
+
locale: string;
|
|
15
15
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -4,6 +4,9 @@ import { TooltipProviderProps } from "../tooltip/types.js";
|
|
|
4
4
|
import { VNode } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/config-provider/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Props for the config provider component.
|
|
9
|
+
*/
|
|
7
10
|
interface ConfigProviderProps {
|
|
8
11
|
/**
|
|
9
12
|
* The global reading direction of your application. This will be inherited by all components.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e}from"../../node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js";import{useForwardListeners as t}from"../../composables/use-forward-listeners.js";import{useOmitProps as n,usePickProps as r}from"../../composables/use-props.js";import"../../composables/index.js";import i from"../menu/menu-checkbox-options-compact.js";import a from"./context-menu-wrapper-compact.js";import{computed as o,createBlock as s,createSlots as c,createVNode as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toHandlers as _,unref as v,useSlots as y,withCtx as b}from"vue";const x=u({name:`ContextMenuCheckboxCompact`,__name:`context-menu-checkbox-compact`,props:{disabled:{type:Boolean},showArrow:{type:Boolean},triggerProps:{},portalProps:{},contentProps:{},popupProps:{},arrowProps:{},pressOpenDelay:{},dir:{},modal:{type:Boolean,default:!0},items:{},groupLabelProps:{},checkboxItemProps:{},indicatorProps:{},shortcutProps:{},separatorProps:{},modelValue:{default:void 0},defaultValue:{default:()=>[]},asChild:{type:Boolean},as:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`,`update:modelValue`,`select`],setup(u,{emit:x}){let S=u,C=x,w=y(),T=[`dir`,`modal`,`disabled`,`showArrow`,`triggerProps`,`portalProps`,`contentProps`,`popupProps`,`arrowProps`],E=r(S,[...T]),D=n(S,[...T]),O=t(C),k=o(()=>e(w).filter(e=>e!==`trigger`));return(e,t)=>(m(),s(a,f(v(E),_(v(O))),{trigger:b(()=>[g(e.$slots,`trigger`)]),default:b(()=>[l(i,f(v(D),{"portal-props":u.portalProps},_(v(O))),c({_:2},[h(k.value,t=>({name:t,fn:b(n=>[g(e.$slots,t,p(d(n)))])}))]),1040,[`portal-props`])]),_:3},16))}});export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e}from"../../node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js";import{useForwardListeners as t}from"../../composables/use-forward-listeners.js";import{useOmitProps as n,usePickProps as r}from"../../composables/use-props.js";import"../../composables/index.js";import i from"../menu/menu-options-compact.js";import a from"./context-menu-wrapper-compact.js";import{computed as o,createBlock as s,createSlots as c,createVNode as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toHandlers as _,unref as v,useSlots as y,withCtx as b}from"vue";const x=u({name:`ContextMenuCompact`,__name:`context-menu-compact`,props:{disabled:{type:Boolean},showArrow:{type:Boolean},triggerProps:{},portalProps:{},contentProps:{},popupProps:{},arrowProps:{},pressOpenDelay:{},dir:{},modal:{type:Boolean,default:!0},items:{},activeValue:{},itemProps:{},linkProps:{},groupProps:{},groupLabelProps:{},subProps:{},subTriggerProps:{},subContentProps:{},separatorProps:{},shortcutProps:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`,`select`],setup(u,{emit:x}){let S=u,C=x,w=y(),T=[`dir`,`modal`,`disabled`,`showArrow`,`triggerProps`,`portalProps`,`contentProps`,`popupProps`,`arrowProps`],E=r(S,[...T]),D=n(S,[...T]),O=t(C),k=o(()=>e(w).filter(e=>e!==`trigger`));return(e,t)=>(m(),s(a,f(v(E),_(v(O))),{trigger:b(()=>[g(e.$slots,`trigger`)]),default:b(()=>[l(i,f(v(D),{"portal-props":u.portalProps},_(v(O))),c({_:2},[h(k.value,t=>({name:t,fn:b(n=>[g(e.$slots,t,p(d(n)))])}))]),1040,[`portal-props`])]),_:3},16))}});export{x as default};
|