@rockfic.com/vue3-select-component 0.0.0-stage → 1.0.1
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/assembled/Select.d.ts +33 -0
- package/dist/composables/useSelectCollection.d.ts +18 -0
- package/dist/composables/useSelectDismiss.d.ts +14 -0
- package/dist/composables/useSelectKeyboard.d.ts +8 -0
- package/dist/composables/useSelectState.d.ts +36 -0
- package/dist/eslint.config.d.ts +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +246 -0
- package/dist/lib/context.d.ts +51 -0
- package/dist/lib/create-item.d.ts +5 -0
- package/dist/lib/dom.d.ts +2 -0
- package/dist/lib/filter.d.ts +5 -0
- package/dist/lib/group-context.d.ts +15 -0
- package/dist/lib/ids.d.ts +5 -0
- package/dist/lib/normalize-options.d.ts +12 -0
- package/dist/primitives/SelectClear.d.ts +11 -0
- package/dist/primitives/SelectCreateItem.d.ts +11 -0
- package/dist/primitives/SelectGroup.d.ts +19 -0
- package/dist/primitives/SelectGroupLabel.d.ts +11 -0
- package/dist/primitives/SelectIcon.d.ts +11 -0
- package/dist/primitives/SelectInput.d.ts +4 -0
- package/dist/primitives/SelectListbox.d.ts +11 -0
- package/dist/primitives/SelectNoOptions.d.ts +11 -0
- package/dist/primitives/SelectOption.d.ts +20 -0
- package/dist/primitives/SelectPopover.d.ts +32 -0
- package/dist/primitives/SelectPopoverTriggerSync.d.ts +3 -0
- package/dist/primitives/SelectRoot.d.ts +31 -0
- package/dist/primitives/SelectSeparator.d.ts +3 -0
- package/dist/primitives/SelectTag.d.ts +22 -0
- package/dist/primitives/SelectTrailingIcon.d.ts +11 -0
- package/dist/primitives/SelectTrigger.d.ts +11 -0
- package/dist/primitives/SelectValue.d.ts +20 -0
- package/dist/primitives/index.d.ts +18 -0
- package/dist/primitives-B7jyuJ7a.js +3704 -0
- package/dist/primitives.js +1 -0
- package/dist/styles.css +1 -0
- package/dist/types/assembled.d.ts +31 -0
- package/dist/types/model.d.ts +1 -0
- package/dist/types/option.d.ts +6 -0
- package/dist/types/primitives.d.ts +37 -0
- package/dist/types/root.d.ts +27 -0
- package/dist/types/slots.d.ts +62 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/vite.styles.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +94 -6
- package/README.md +0 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SelectModelValue } from '../types/model.js';
|
|
2
|
+
import { SelectRootProps } from '../types/root.js';
|
|
3
|
+
import { SelectDefaultSlots } from '../types/slots.js';
|
|
4
|
+
declare const __VLS_export: <OptionValue extends string | number = string>(__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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(SelectRootProps<OptionValue> & {
|
|
6
|
+
modelValue?: SelectModelValue<OptionValue>;
|
|
7
|
+
}) & {
|
|
8
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
9
|
+
"onUpdate:modelValue"?: ((value: SelectModelValue<OptionValue>) => any) | undefined;
|
|
10
|
+
onMenuOpened?: (() => any) | undefined;
|
|
11
|
+
onMenuClosed?: (() => any) | undefined;
|
|
12
|
+
onCreate?: ((value: string) => any) | undefined;
|
|
13
|
+
onOptionSelected?: ((value: OptionValue) => any) | undefined;
|
|
14
|
+
onOptionDeselected?: ((value: OptionValue | null) => any) | undefined;
|
|
15
|
+
}> & (typeof globalThis extends {
|
|
16
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
17
|
+
} ? P : {});
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: SelectDefaultSlots;
|
|
21
|
+
emit: (((evt: "search", value: string) => void) & ((evt: "update:modelValue", value: SelectModelValue<OptionValue>) => void) & ((evt: "menuOpened") => void) & ((evt: "menuClosed") => void) & ((evt: "create", value: string) => void) & ((evt: "optionSelected", value: OptionValue) => void) & ((evt: "optionDeselected", value: OptionValue | null) => void)) & ((event: "update:modelValue", value: SelectModelValue<OptionValue>) => void);
|
|
22
|
+
}>) => import('vue').VNode & {
|
|
23
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SelectTagSlots } from '../types/slots.js';
|
|
2
|
+
declare const __VLS_export: <OptionValue extends string | number = string>(__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<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
value: OptionValue;
|
|
5
|
+
label: string;
|
|
6
|
+
}> & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: SelectTagSlots;
|
|
12
|
+
emit: {};
|
|
13
|
+
}>) => import('vue').VNode & {
|
|
14
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} : {
|
|
21
|
+
[K in keyof T as K]: T[K];
|
|
22
|
+
}) & {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectTrailingIconSlots } from '../types/slots.js';
|
|
2
|
+
type __VLS_Slots = SelectTrailingIconSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectDefaultSlots } from '../types/slots.js';
|
|
2
|
+
type __VLS_Slots = SelectDefaultSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SelectValueProps } from '../types/primitives.js';
|
|
2
|
+
import { SelectValueSlots } from '../types/slots.js';
|
|
3
|
+
declare const __VLS_export: <OptionValue extends string | number = string>(__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<{
|
|
4
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<SelectValueProps> & (typeof globalThis extends {
|
|
5
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
6
|
+
} ? P : {});
|
|
7
|
+
expose: (exposed: {}) => void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: SelectValueSlots<OptionValue>;
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import('vue').VNode & {
|
|
12
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
17
|
+
[K in keyof T]: T[K];
|
|
18
|
+
} : {
|
|
19
|
+
[K in keyof T as K]: T[K];
|
|
20
|
+
}) & {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { injectSelectContext, provideSelectContext } from '../lib/context.js';
|
|
2
|
+
export type { SelectContext } from '../lib/context.js';
|
|
3
|
+
export { default as SelectClear } from './SelectClear.js';
|
|
4
|
+
export { default as SelectCreateItem } from './SelectCreateItem.js';
|
|
5
|
+
export { default as SelectGroup } from './SelectGroup.js';
|
|
6
|
+
export { default as SelectGroupLabel } from './SelectGroupLabel.js';
|
|
7
|
+
export { default as SelectIcon } from './SelectIcon.js';
|
|
8
|
+
export { default as SelectInput } from './SelectInput.js';
|
|
9
|
+
export { default as SelectListbox } from './SelectListbox.js';
|
|
10
|
+
export { default as SelectNoOptions } from './SelectNoOptions.js';
|
|
11
|
+
export { default as SelectOption } from './SelectOption.js';
|
|
12
|
+
export { default as SelectPopover } from './SelectPopover.js';
|
|
13
|
+
export { default as SelectRoot } from './SelectRoot.js';
|
|
14
|
+
export { default as SelectSeparator } from './SelectSeparator.js';
|
|
15
|
+
export { default as SelectTag } from './SelectTag.js';
|
|
16
|
+
export { default as SelectTrailingIcon } from './SelectTrailingIcon.js';
|
|
17
|
+
export { default as SelectTrigger } from './SelectTrigger.js';
|
|
18
|
+
export { default as SelectValue } from './SelectValue.js';
|