@soybeanjs/headless 0.22.0 → 0.22.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/components/accordion/context.d.ts +0 -1
- package/dist/components/affix/context.d.ts +0 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +0 -1
- package/dist/components/anchor/context.d.ts +0 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/context.d.ts +0 -1
- package/dist/components/avatar/context.d.ts +0 -1
- package/dist/components/badge/context.d.ts +0 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/context.d.ts +0 -1
- package/dist/components/calendar/context.d.ts +0 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +3 -3
- package/dist/components/calendar-range/context.d.ts +0 -1
- package/dist/components/checkbox/context.d.ts +0 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +1 -1
- package/dist/components/collapsible/context.d.ts +0 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-area/context.d.ts +0 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-field/context.d.ts +0 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +9 -9
- package/dist/components/color-picker/color-picker-root.vue.d.ts +5 -5
- package/dist/components/color-picker/context.d.ts +0 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
- package/dist/components/color-slider/context.d.ts +0 -1
- package/dist/components/color-swatch-picker/context.d.ts +0 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-content.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/context.d.ts +0 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/date-field/context.d.ts +0 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +12 -12
- package/dist/components/date-range-field/context.d.ts +0 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +11 -11
- package/dist/components/dialog/context.d.ts +0 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +9 -9
- package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/editable/context.d.ts +0 -1
- package/dist/components/editable/editable-root.vue.d.ts +1 -1
- package/dist/components/form/context.d.ts +0 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/input/context.d.ts +0 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-compact.vue.d.ts +2 -2
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/types.d.ts +16 -2
- package/dist/components/input-number/context.d.ts +0 -1
- package/dist/components/input-number/input-number-compact.js +1 -1
- package/dist/components/input-number/input-number-compact.vue.d.ts +2 -2
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/types.d.ts +6 -2
- package/dist/components/input-otp/context.d.ts +0 -1
- package/dist/components/layout/context.d.ts +0 -1
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/layout-sidebar.vue.d.ts +3 -3
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/menu/context.d.ts +0 -1
- package/dist/components/menu/hooks.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +4 -4
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
- package/dist/components/menubar/context.d.ts +0 -1
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +4 -4
- package/dist/components/menubar/menubar-content.vue.d.ts +4 -4
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/context.d.ts +0 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
- package/dist/components/page-tabs/context.d.ts +0 -1
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/pagination/context.d.ts +0 -1
- package/dist/components/password/password-compact.js +1 -1
- package/dist/components/password/password-compact.vue.d.ts +2 -0
- package/dist/components/password/types.d.ts +3 -21
- package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +5 -5
- package/dist/components/popover/context.d.ts +0 -1
- package/dist/components/popover/popover-compact.vue.d.ts +3 -3
- package/dist/components/popover/popover-positioner.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/progress/context.d.ts +0 -1
- package/dist/components/radio-group/context.d.ts +0 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/scroll-area/context.d.ts +0 -1
- package/dist/components/select/context.d.ts +0 -1
- package/dist/components/select/select-compact.vue.d.ts +3 -3
- package/dist/components/select/select-content.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/slider/context.d.ts +0 -1
- package/dist/components/splitter/context.d.ts +0 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +4 -4
- package/dist/components/stepper/context.d.ts +0 -1
- package/dist/components/switch/context.d.ts +0 -1
- package/dist/components/table/context.d.ts +0 -1
- package/dist/components/table/table-compact.vue.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +0 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tags-input/context.d.ts +0 -1
- package/dist/components/tags-input/tags-input-compact.js +1 -1
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/textarea/context.d.ts +0 -1
- package/dist/components/textarea/textarea-compact.vue.d.ts +2 -2
- package/dist/components/time-field/context.d.ts +0 -1
- package/dist/components/time-range-field/context.d.ts +0 -1
- package/dist/components/toast/context.d.ts +0 -1
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +1 -1
- package/dist/components/toggle-group/context.d.ts +0 -1
- package/dist/components/toolbar/context.d.ts +0 -1
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +1 -1
- package/dist/components/tree-menu/context.d.ts +3 -18
- package/dist/components/tree-menu/tree-menu-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/composables/use-collection.d.ts +3 -14
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-context.d.ts +1 -6
- package/dist/composables/use-context.js +1 -1
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/package.json +4 -2
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +0 -1
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { AccordionUiSlot } from "./types.js";
|
|
3
3
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/accordion/context.d.ts
|
|
7
6
|
declare const provideAccordionUi: (ui: _$vue.ComputedRef<Partial<UiClass<AccordionUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<AccordionUiSlot>>>, useAccordionUi: UseUiConsumer<AccordionUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { AffixUiSlot } from "./types.js";
|
|
3
3
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/affix/context.d.ts
|
|
7
6
|
declare const provideAffixUi: (ui: _$vue.ComputedRef<Partial<UiClass<AffixUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<AffixUiSlot>>>, useAffixUi: UseUiConsumer<AffixUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -4,11 +4,11 @@ import * as _$vue from "vue";
|
|
|
4
4
|
//#region src/components/alert/alert-compact.vue.d.ts
|
|
5
5
|
type __VLS_Slots = AlertCompactSlots;
|
|
6
6
|
declare const __VLS_base: _$vue.DefineComponent<AlertCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
-
close: (event: PointerEvent) => any;
|
|
8
7
|
"update:open": (open: boolean) => any;
|
|
8
|
+
close: (event: PointerEvent) => any;
|
|
9
9
|
}, string, _$vue.PublicProps, Readonly<AlertCompactProps> & Readonly<{
|
|
10
|
-
onClose?: ((event: PointerEvent) => any) | undefined;
|
|
11
10
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11
|
+
onClose?: ((event: PointerEvent) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
open: boolean;
|
|
14
14
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { AlertUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/alert/context.d.ts
|
|
7
6
|
declare const provideAlertUi: (ui: _$vue.ComputedRef<Partial<UiClass<AlertUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<AlertUiSlot>>>, useAlertUi: UseUiConsumer<AlertUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { AnchorUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/anchor/context.d.ts
|
|
7
6
|
declare const provideAnchorUi: (ui: _$vue.ComputedRef<Partial<UiClass<AnchorUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<AnchorUiSlot>>>, useAnchorUi: UseUiConsumer<AnchorUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -5,8 +5,8 @@ import * as _$vue from "vue";
|
|
|
5
5
|
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<{
|
|
6
6
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<AutocompleteCompactProps<T> & {
|
|
7
7
|
onSelect?: ((item: T) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
10
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
11
11
|
}> & (typeof globalThis extends {
|
|
12
12
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -14,7 +14,7 @@ declare const __VLS_export: <T extends AutocompleteSingleOptionData = Autocomple
|
|
|
14
14
|
expose: (exposed: {}) => void;
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: AutocompleteCompactSlots<T>;
|
|
17
|
-
emit: ((evt: "select", item: T) => void) & ((evt: "update:
|
|
17
|
+
emit: ((evt: "select", item: T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: AutocompleteHighlightPayload | undefined) => void);
|
|
18
18
|
}>) => _$vue.VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxRootContext as n}from"../listbox/context.js";import{useComboboxRootContext as r}from"../combobox/context.js";import i from"../input/input-root.js";import a from"../input/input-control.js";import"../input/index.js";import{useAutocompleteRootContext as o}from"./context.js";import{computed as s,createBlock as c,createVNode as l,defineComponent as u,mergeProps as d,nextTick as f,onMounted as p,onUnmounted as m,openBlock as h,renderSlot as g,shallowRef as _,unref as v,useId as y,watchSyncEffect as b,withCtx as x,withKeys as S,withModifiers as C}from"vue";const w=u({name:`AutocompleteInput`,__name:`autocomplete-input`,props:{inputRef:{type:Function},controlProps:{},
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxRootContext as n}from"../listbox/context.js";import{useComboboxRootContext as r}from"../combobox/context.js";import i from"../input/input-root.js";import a from"../input/input-control.js";import"../input/index.js";import{useAutocompleteRootContext as o}from"./context.js";import{computed as s,createBlock as c,createVNode as l,defineComponent as u,mergeProps as d,nextTick as f,onMounted as p,onUnmounted as m,openBlock as h,renderSlot as g,shallowRef as _,unref as v,useId as y,watchSyncEffect as b,withCtx as x,withKeys as S,withModifiers as C}from"vue";const w=u({name:`AutocompleteInput`,__name:`autocomplete-input`,props:{inputRef:{type:Function},controlProps:{},disabled:{type:Boolean},readonly:{type:Boolean},rootProps:{},name:{},required:{type:Boolean},id:{},autofocus:{type:Boolean},autocomplete:{},maxlength:{},minlength:{},pattern:{},placeholder:{},type:{}},emits:[`update:modelValue`],setup(u,{emit:w}){let T=u,E=w,D=t(T,[`inputRef`,`controlProps`]),{disabled:O,focusable:k,highlightedElement:A,highlightFirstItem:j,onCompositionEnd:M,onCompositionStart:N,onKeydownEnter:P,onKeydownNavigation:F}=n(`AutocompleteInput`),{open:I,contentId:L,inputElement:R,triggerElement:z,disabled:ee,openOnClick:B,openOnFocus:V,filterSearch:H,isUserInputted:U,onOpenChange:W,onInputElementChange:G}=r(`AutocompleteInput`),{modelValue:K}=o(`AutocompleteInput`),q=y(),[J,Y]=e(e=>{let t=e;G(t),T.inputRef?.(t)}),X=s(()=>T.disabled||O.value||ee.value||!1),Z=_(),Q=s(()=>T.id??T.controlProps?.id??`soybean-autocomplete-input-${q}`),$=e=>{K.value=e,E(`update:modelValue`,e)},te=e=>{let t=e.target;if(U.value=!0,!I.value){W(!0),f(()=>{t.value&&(H.value=t.value,j())});return}H.value=t.value},ne=()=>{!V.value||I.value||W(!0)},re=()=>{!B.value||I.value||W(!0)},ie=e=>{if(!I.value){W(!0);return}F(e)},ae=e=>{if(!I.value)return;let t=e.relatedTarget;if(!t)return;let n=z.value?.contains(t),r=document.getElementById(L.value)?.contains(t);!n&&!r&&W(!1)};return b(()=>{Z.value=A.value?.id}),p(()=>{k.value=!1,setTimeout(()=>{T.autofocus&&J.value?.focus()},1)}),m(()=>{k.value=!0,R.value=void 0}),(e,t)=>(h(),c(v(i),d({"data-soybean-autocomplete-input-root":``},v(D),{"model-value":v(K),"onUpdate:modelValue":$}),{default:x(({clear:t})=>[g(e.$slots,`leading`,{clear:t}),l(v(a),d(u.controlProps,{id:Q.value,ref:v(Y),"data-soybean-autocomplete-input-control":``,"aria-activedescendant":Z.value,"aria-controls":v(L),"aria-expanded":v(I)||!1,"aria-autocomplete":`list`,autocomplete:`off`,disabled:X.value,role:`combobox`,spellcheck:`false`,type:`text`,onBlur:ae,onClick:re,onCompositionend:v(M),onCompositionstart:v(N),onFocus:ne,onInput:te,onKeydown:[S(C(ie,[`prevent`]),[`down`,`up`,`home`,`end`]),S(v(P),[`enter`])]}),null,16,[`id`,`aria-activedescendant`,`aria-controls`,`aria-expanded`,`disabled`,`onCompositionend`,`onCompositionstart`,`onKeydown`]),g(e.$slots,`trailing`,{clear:t})]),_:3},16,[`model-value`]))}});export{w as default};
|
|
@@ -19,16 +19,16 @@ declare const __VLS_base: _$vue.DefineComponent<AutocompleteRootProps, {
|
|
|
19
19
|
highlightFirstItem: () => void;
|
|
20
20
|
highlightSelected: (event?: Event) => Promise<void> | undefined;
|
|
21
21
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (value: string) => any;
|
|
23
22
|
"update:open": (value: boolean) => any;
|
|
23
|
+
"update:modelValue": (value: string) => any;
|
|
24
24
|
highlight: (payload?: AutocompleteHighlightPayload | undefined) => any;
|
|
25
25
|
}, string, _$vue.PublicProps, Readonly<AutocompleteRootProps> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
26
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
28
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
modelValue: string;
|
|
31
30
|
open: boolean;
|
|
31
|
+
modelValue: string;
|
|
32
32
|
defaultOpen: boolean;
|
|
33
33
|
highlightOnHover: boolean;
|
|
34
34
|
openOnFocus: boolean;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ComboboxUiSlot } from "../combobox/types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/autocomplete/context.d.ts
|
|
7
6
|
declare const provideAutocompleteUi: (ui: _$vue.ComputedRef<Partial<UiClass<ComboboxUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ComboboxUiSlot>>>, useAutocompleteUi: UseUiConsumer<ComboboxUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { AvatarUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/avatar/context.d.ts
|
|
7
6
|
declare const provideAvatarUi: (ui: _$vue.ComputedRef<Partial<UiClass<AvatarUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<AvatarUiSlot>>>, useAvatarUi: UseUiConsumer<AvatarUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { BadgeUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/badge/context.d.ts
|
|
7
6
|
declare const provideBadgeUi: (ui: _$vue.ComputedRef<Partial<UiClass<BadgeUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<BadgeUiSlot>>>, useBadgeUi: UseUiConsumer<BadgeUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -34,9 +34,9 @@ declare const __VLS_base: _$vue.DefineComponent<(DialogRootProps & {
|
|
|
34
34
|
handleOnly?: boolean;
|
|
35
35
|
preventScrollRestoration?: boolean;
|
|
36
36
|
} & WithoutFadeFromProps), {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
37
|
+
"update:open": (value: boolean) => any;
|
|
37
38
|
close: () => any;
|
|
38
39
|
drag: (percentageDragged: number) => any;
|
|
39
|
-
"update:open": (value: boolean) => any;
|
|
40
40
|
release: (open: boolean) => any;
|
|
41
41
|
"update:activeSnapPoint": (val: string | number | null) => any;
|
|
42
42
|
}, string, _$vue.PublicProps, Readonly<(DialogRootProps & {
|
|
@@ -66,9 +66,9 @@ declare const __VLS_base: _$vue.DefineComponent<(DialogRootProps & {
|
|
|
66
66
|
handleOnly?: boolean;
|
|
67
67
|
preventScrollRestoration?: boolean;
|
|
68
68
|
} & WithoutFadeFromProps)> & Readonly<{
|
|
69
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
69
70
|
onClose?: (() => any) | undefined;
|
|
70
71
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
71
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
72
72
|
onRelease?: ((open: boolean) => any) | undefined;
|
|
73
73
|
"onUpdate:activeSnapPoint"?: ((val: string | number | null) => any) | undefined;
|
|
74
74
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { BottomSheetUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/bottom-sheet/context.d.ts
|
|
7
6
|
declare const provideBottomSheetUi: (ui: _$vue.ComputedRef<Partial<UiClass<BottomSheetUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<BottomSheetUiSlot>>>, useBottomSheetUi: UseUiConsumer<BottomSheetUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { CalendarUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/calendar/context.d.ts
|
|
7
6
|
declare const provideCalendarUi: (ui: _$vue.ComputedRef<Partial<UiClass<CalendarUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CalendarUiSlot>>>, useCalendarUi: UseUiConsumer<CalendarUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -16,18 +16,18 @@ declare const __VLS_base: _$vue.DefineComponent<CalendarRangeRootProps, {}, {},
|
|
|
16
16
|
placeholder: DateValue;
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
defaultValue: DateRange;
|
|
19
|
+
numberOfMonths: number;
|
|
20
|
+
fixedWeeks: boolean;
|
|
19
21
|
readonly: boolean;
|
|
20
22
|
defaultPlaceholder: DateValue;
|
|
21
|
-
isDateUnavailable: DateMatcher;
|
|
22
23
|
allowNonContiguousRanges: boolean;
|
|
23
24
|
pagedNavigation: boolean;
|
|
24
25
|
preventDeselect: boolean;
|
|
25
26
|
maximumDays: number;
|
|
26
27
|
weekdayFormat: WeekDayFormat;
|
|
27
|
-
fixedWeeks: boolean;
|
|
28
|
-
numberOfMonths: number;
|
|
29
28
|
initialFocus: boolean;
|
|
30
29
|
isDateDisabled: DateMatcher;
|
|
30
|
+
isDateUnavailable: DateMatcher;
|
|
31
31
|
isDateHighlightable: DateMatcher;
|
|
32
32
|
disableDaysOutsideCurrentView: boolean;
|
|
33
33
|
fixedDate: "start" | "end";
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { CalendarRangeUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/calendar-range/context.d.ts
|
|
7
6
|
declare const provideCalendarRangeUi: (ui: _$vue.ComputedRef<Partial<UiClass<CalendarRangeUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CalendarRangeUiSlot>>>, useCalendarRangeUi: UseUiConsumer<CalendarRangeUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { CheckboxCardUiSlot, CheckboxUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/checkbox/context.d.ts
|
|
7
6
|
declare const provideCheckboxUi: (ui: _$vue.ComputedRef<Partial<UiClass<CheckboxUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CheckboxUiSlot>>>, useCheckboxUi: UseUiConsumer<CheckboxUiSlot>;
|
|
8
7
|
declare const provideCheckboxCardUi: (ui: _$vue.ComputedRef<Partial<UiClass<CheckboxCardUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CheckboxCardUiSlot>>>, useCheckboxCardUi: UseUiConsumer<CheckboxCardUiSlot>;
|
|
@@ -44,8 +44,8 @@ declare const __VLS_base: _$vue.DefineComponent<ClipboardProps, {}, {}, {}, {},
|
|
|
44
44
|
onCopied?: ((value: string) => any) | undefined;
|
|
45
45
|
onCopyError?: ((error: unknown) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
|
-
legacy: boolean;
|
|
48
47
|
copiedDuration: number;
|
|
48
|
+
legacy: boolean;
|
|
49
49
|
copyIcon: string | _$vue.Component | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
50
50
|
[key: string]: any;
|
|
51
51
|
}> | null;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { CollapsibleUiSlot } from "./types.js";
|
|
3
3
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/collapsible/context.d.ts
|
|
7
6
|
declare const provideCollapsibleUi: (ui: _$vue.ComputedRef<Partial<UiClass<CollapsibleUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CollapsibleUiSlot>>>, useCollapsibleUi: UseUiConsumer<CollapsibleUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -20,11 +20,11 @@ declare const __VLS_base: _$vue.DefineComponent<ColorAreaRootProps, {}, {}, {},
|
|
|
20
20
|
}>, {
|
|
21
21
|
disabled: boolean;
|
|
22
22
|
format: ColorFormat;
|
|
23
|
+
modelValue: string | ColorValue;
|
|
24
|
+
defaultValue: string | ColorValue;
|
|
23
25
|
colorSpace: ColorSpace;
|
|
24
26
|
xChannel: ColorAreaAxisChannel;
|
|
25
27
|
yChannel: ColorAreaAxisChannel;
|
|
26
|
-
modelValue: string | ColorValue;
|
|
27
|
-
defaultValue: string | ColorValue;
|
|
28
28
|
}, {}, {}, {}, string, _$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;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ColorAreaUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/color-area/context.d.ts
|
|
7
6
|
declare const provideColorAreaUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorAreaUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorAreaUiSlot>>>, useColorAreaUi: UseUiConsumer<ColorAreaUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -17,9 +17,9 @@ declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {},
|
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
format: ColorFormat;
|
|
19
19
|
step: number;
|
|
20
|
-
colorSpace: ColorSpace;
|
|
21
20
|
modelValue: string | ColorValue;
|
|
22
21
|
defaultValue: string | ColorValue;
|
|
22
|
+
colorSpace: ColorSpace;
|
|
23
23
|
readonly: boolean;
|
|
24
24
|
disableWheelChange: boolean;
|
|
25
25
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ColorFieldUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/color-field/context.d.ts
|
|
7
6
|
declare const provideColorFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>, useColorFieldUi: UseUiConsumer<ColorFieldUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -16,38 +16,38 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
trigger?: (props: typeof __VLS_21) => any;
|
|
17
17
|
};
|
|
18
18
|
declare const __VLS_base: _$vue.DefineComponent<ColorPickerCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
19
|
+
"update:open": (value: boolean) => any;
|
|
19
20
|
"update:modelValue": (value: string) => any;
|
|
20
21
|
"update:color": (value: NormalizedColor) => any;
|
|
22
|
+
"update:format": (value: ColorFormat) => any;
|
|
21
23
|
change: (value: string) => any;
|
|
22
|
-
"update:open": (value: boolean) => any;
|
|
23
|
-
closeAutoFocus: (event: Event) => any;
|
|
24
24
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
25
25
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
26
26
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
27
27
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
28
28
|
openAutoFocus: (event: Event) => any;
|
|
29
|
-
|
|
29
|
+
closeAutoFocus: (event: Event) => any;
|
|
30
30
|
}, string, _$vue.PublicProps, Readonly<ColorPickerCompactProps> & Readonly<{
|
|
31
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
31
32
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
33
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
34
|
+
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
33
35
|
onChange?: ((value: string) => any) | undefined;
|
|
34
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
35
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
36
36
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
37
37
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
38
38
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
39
39
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
40
40
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
41
|
-
|
|
41
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
|
-
colorSpace: ColorSpace;
|
|
44
43
|
open: boolean;
|
|
45
|
-
showArrow: boolean;
|
|
46
|
-
placement: Placement;
|
|
47
44
|
showAlpha: boolean;
|
|
48
45
|
showFields: boolean;
|
|
49
46
|
showSwatches: boolean;
|
|
50
47
|
swatches: string[];
|
|
48
|
+
colorSpace: ColorSpace;
|
|
49
|
+
placement: Placement;
|
|
50
|
+
showArrow: boolean;
|
|
51
51
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
52
52
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,8 +13,8 @@ declare var __VLS_1: {
|
|
|
13
13
|
displayFormat: ColorFormat;
|
|
14
14
|
displayFormatLabel: string;
|
|
15
15
|
areaChannel: {
|
|
16
|
-
readonly x: "
|
|
17
|
-
readonly y: "
|
|
16
|
+
readonly x: "chroma" | "saturation";
|
|
17
|
+
readonly y: "brightness" | "lightness";
|
|
18
18
|
};
|
|
19
19
|
setColor: typeof setColor;
|
|
20
20
|
setFormat: typeof setFormat;
|
|
@@ -25,20 +25,20 @@ type __VLS_Slots = {} & {
|
|
|
25
25
|
declare const __VLS_base: _$vue.DefineComponent<ColorPickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
26
26
|
"update:modelValue": (value: string) => any;
|
|
27
27
|
"update:color": (value: NormalizedColor) => any;
|
|
28
|
-
change: (value: string) => any;
|
|
29
28
|
"update:format": (value: ColorFormat) => any;
|
|
29
|
+
change: (value: string) => any;
|
|
30
30
|
}, string, _$vue.PublicProps, Readonly<ColorPickerRootProps> & Readonly<{
|
|
31
31
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
32
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
33
|
-
onChange?: ((value: string) => any) | undefined;
|
|
34
33
|
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
34
|
+
onChange?: ((value: string) => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
36
|
disabled: boolean;
|
|
37
37
|
format: ColorFormat;
|
|
38
|
-
colorSpace: ColorSpace;
|
|
39
38
|
modelValue: string | ColorValue;
|
|
40
39
|
defaultValue: string | ColorValue;
|
|
41
40
|
defaultFormat: ColorFormat;
|
|
41
|
+
colorSpace: ColorSpace;
|
|
42
42
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ColorPickerUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/color-picker/context.d.ts
|
|
7
6
|
declare const provideColorPickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorPickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorPickerUiSlot>>>, useColorPickerUi: UseUiConsumer<ColorPickerUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -23,9 +23,9 @@ declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}
|
|
|
23
23
|
format: ColorFormat;
|
|
24
24
|
orientation: DataOrientation;
|
|
25
25
|
step: number;
|
|
26
|
-
colorSpace: ColorSpace;
|
|
27
26
|
modelValue: string | ColorValue;
|
|
28
27
|
defaultValue: string | ColorValue;
|
|
28
|
+
colorSpace: ColorSpace;
|
|
29
29
|
inverted: boolean;
|
|
30
30
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ColorSliderUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/color-slider/context.d.ts
|
|
7
6
|
declare const provideColorSliderUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>, useColorSliderUi: UseUiConsumer<ColorSliderUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ColorSwatchPickerUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/color-swatch-picker/context.d.ts
|
|
7
6
|
declare const provideColorSwatchPickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>, useColorSwatchPickerUi: UseUiConsumer<ColorSwatchPickerUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -8,14 +8,14 @@ import * as _$vue from "vue";
|
|
|
8
8
|
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<{
|
|
9
9
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ComboboxCompactProps<M> & {
|
|
10
10
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
11
|
-
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
12
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
|
-
|
|
12
|
+
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
14
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
14
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
16
15
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
17
16
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
18
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
20
20
|
onPlaced?: (() => any) | undefined;
|
|
21
21
|
}> & (typeof globalThis extends {
|
|
@@ -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:
|
|
27
|
+
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);
|
|
28
28
|
}>) => _$vue.VNode & {
|
|
29
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
30
|
};
|
|
@@ -8,25 +8,25 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<ComboboxContentProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
|
-
closeAutoFocus: (event: Event) => any;
|
|
12
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
12
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
14
13
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
15
14
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
16
15
|
openAutoFocus: (event: Event) => any;
|
|
16
|
+
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
placed: () => any;
|
|
18
18
|
}, string, _$vue.PublicProps, Readonly<ComboboxContentProps> & Readonly<{
|
|
19
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
19
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
20
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
22
21
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
23
22
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
24
23
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
25
|
onPlaced?: (() => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
position: "inline" | "popper";
|
|
28
27
|
avoidCollisions: boolean;
|
|
29
28
|
prioritizePosition: boolean;
|
|
29
|
+
position: "inline" | "popper";
|
|
30
30
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxRootContext as n}from"../listbox/context.js";import{useComboboxRootContext as r}from"./context.js";import i from"../listbox/listbox-filter.js";import"../listbox/index.js";import{computed as a,createBlock as o,defineComponent as s,guardReactiveProps as c,isRef as l,mergeProps as u,nextTick as d,normalizeProps as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,watch as _,withCtx as v}from"vue";const y=s({name:`ComboboxInput`,__name:`combobox-input`,props:{displayValue:{type:Function},inputRef:{type:Function},controlProps:{},defaultValue:{},modelValue:{},
|
|
1
|
+
import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxRootContext as n}from"../listbox/context.js";import{useComboboxRootContext as r}from"./context.js";import i from"../listbox/listbox-filter.js";import"../listbox/index.js";import{computed as a,createBlock as o,defineComponent as s,guardReactiveProps as c,isRef as l,mergeProps as u,nextTick as d,normalizeProps as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,watch as _,withCtx as v}from"vue";const y=s({name:`ComboboxInput`,__name:`combobox-input`,props:{displayValue:{type:Function},inputRef:{type:Function},controlProps:{},defaultValue:{},modelValue:{},disabled:{type:Boolean},readonly:{type:Boolean},rootProps:{},name:{},required:{type:Boolean},id:{},autofocus:{type:Boolean},autocomplete:{},maxlength:{},minlength:{},pattern:{},placeholder:{},type:{}},emits:[`update:modelValue`],setup(s,{emit:y}){let b=s,x=y,{modelValue:S,open:C,openOnFocus:w,openOnClick:T,isUserInputted:E,isMultiple:D,resetSearchTermOnSelect:O,parentElement:k,contentId:A,filterSearch:j,filterState:M,isVirtual:N,onInputElementChange:P,onOpenChange:F,onResetSearchTerm:I}=r(`ComboboxInput`),{highlightFirstItem:L}=n(`ComboboxInput`),R=t(b,[`displayValue`]),z=e(()=>b.modelValue,e=>{x(`update:modelValue`,e)},b.defaultValue??``),B=e=>{b.inputRef?.(e),P(e)},V=e=>{![`ArrowDown`,`ArrowUp`].includes(e.key)||C.value||F(!0)},H=e=>{let t=e.target;if(E.value=!0,!C.value){F(!0),d(()=>{t.value&&(j.value=t.value,L())});return}j.value=t.value},U=()=>{w.value&&!C.value&&F(!0)},W=e=>{if(!C.value)return;let t=e.relatedTarget;if(!t)return;let n=k.value?.contains(t),r=document.getElementById(A.value)?.contains(t);!n&&!r&&F(!1)},G=()=>{T.value&&!C.value&&F(!0)},K=()=>{let e=S.value;if(b.displayValue){z.value=b.displayValue(e);return}if(!D.value&&typeof e==`string`){z.value=e;return}z.value=``};I(()=>{K()});let q=a(()=>u({...b.controlProps},{"data-soybean-combobox-input-control":``,role:`combobox`,"aria-autocomplete":`list`,autocomplete:`off`,"aria-controls":A.value||void 0,"aria-expanded":C.value??!1,onBlur:W,onClick:G,onFocus:U,onInput:H,onKeydown:V}));return _(S,()=>{!E.value&&O.value&&K()},{immediate:!0,deep:!0}),_(M,(e,t)=>{!N.value&&t?.count===0&&L()}),p(()=>{K()}),(e,t)=>(m(),o(g(i),u(g(R),{modelValue:g(z),"onUpdate:modelValue":t[0]||(t[0]=e=>l(z)?z.value=e:null),"data-soybean-combobox-input-root":``,"control-props":q.value,"input-ref":B}),{leading:v(t=>[h(e.$slots,`leading`,f(c(t)))]),trailing:v(t=>[h(e.$slots,`trailing`,f(c(t)))]),_:3},16,[`modelValue`,`control-props`]))}});export{y as default};
|
|
@@ -6,8 +6,8 @@ import * as _$vue from "vue";
|
|
|
6
6
|
//#region src/components/combobox/combobox-root.vue.d.ts
|
|
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
|
-
"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
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
12
12
|
}> & (typeof globalThis extends {
|
|
13
13
|
__VLS_PROPS_FALLBACK: infer 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:
|
|
33
|
+
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void);
|
|
34
34
|
}>) => _$vue.VNode & {
|
|
35
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
36
|
};
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ComboboxUiSlot } from "./types.js";
|
|
4
4
|
import { ComputedRef } from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/combobox/context.d.ts
|
|
7
6
|
declare const provideComboboxUi: (ui: ComputedRef<Partial<UiClass<ComboboxUiSlot>>>) => ComputedRef<Partial<UiClass<ComboboxUiSlot>>>, useComboboxUi: UseUiConsumer<ComboboxUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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"../menu/menu-checkbox-options-compact.js";import i from"./context-menu-wrapper-compact.js";import{computed as a,createBlock as o,createSlots as s,createVNode as c,defineComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,openBlock as p,renderList as m,renderSlot as h,toHandlers as g,unref as _,useSlots as v,withCtx as y}from"vue";import{keysOf as b}from"@soybeanjs/utils";const x=l({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(l,{emit:x}){let S=l,C=x,w=v(),T=[`dir`,`modal`,`disabled`,`showArrow`,`triggerProps`,`portalProps`,`contentProps`,`popupProps`,`arrowProps`],E=n(S,[...T]),D=t(S,[...T]),O=e(C),k=a(()=>b(w).filter(e=>e!==`trigger`));return(e,t)=>(p(),o(i,d(_(E),g(_(O))),{trigger:y(()=>[h(e.$slots,`trigger`)]),default:y(()=>[c(r,d(_(D),{"portal-props":l.portalProps},g(_(O))),s({_:2},[m(k.value,t=>({name:t,fn:y(n=>[h(e.$slots,t,f(u(n)))])}))]),1040,[`portal-props`])]),_:3},16))}});export{x as default};
|
|
@@ -8,22 +8,22 @@ import * as _$vue from "vue";
|
|
|
8
8
|
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<{
|
|
9
9
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ContextMenuCheckboxCompactProps<T> & {
|
|
10
10
|
onSelect?: ((item: MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
11
|
-
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
12
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
|
-
|
|
14
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
12
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
15
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
16
14
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
17
15
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
18
16
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
19
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
20
20
|
}> & (typeof globalThis extends {
|
|
21
21
|
__VLS_PROPS_FALLBACK: infer P;
|
|
22
22
|
} ? P : {});
|
|
23
23
|
expose: (exposed: {}) => void;
|
|
24
24
|
attrs: any;
|
|
25
25
|
slots: ContextMenuCheckboxCompactSlots<T>;
|
|
26
|
-
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
26
|
+
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);
|
|
27
27
|
}>) => _$vue.VNode & {
|
|
28
28
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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"../menu/menu-options-compact.js";import i from"./context-menu-wrapper-compact.js";import{computed as a,createBlock as o,createSlots as s,createVNode as c,defineComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,openBlock as p,renderList as m,renderSlot as h,toHandlers as g,unref as _,useSlots as v,withCtx as y}from"vue";import{keysOf as b}from"@soybeanjs/utils";const x=l({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(l,{emit:x}){let S=l,C=x,w=v(),T=[`dir`,`modal`,`disabled`,`showArrow`,`triggerProps`,`portalProps`,`contentProps`,`popupProps`,`arrowProps`],E=n(S,[...T]),D=t(S,[...T]),O=e(C),k=a(()=>b(w).filter(e=>e!==`trigger`));return(e,t)=>(p(),o(i,d(_(E),g(_(O))),{trigger:y(()=>[h(e.$slots,`trigger`)]),default:y(()=>[c(r,d(_(D),{"portal-props":l.portalProps},g(_(O))),s({_:2},[m(k.value,t=>({name:t,fn:y(n=>[h(e.$slots,t,f(u(n)))])}))]),1040,[`portal-props`])]),_:3},16))}});export{x as default};
|
|
@@ -9,20 +9,20 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
9
9
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ContextMenuCompactProps<T> & {
|
|
10
10
|
onSelect?: ((item: MenuOptionData<T>, event: Event) => any) | undefined;
|
|
11
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
13
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
14
12
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
13
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
16
14
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
17
15
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
18
16
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: ContextMenuCompactSlots<T>;
|
|
25
|
-
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "
|
|
25
|
+
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => 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: "entryFocus", event: Event) => void);
|
|
26
26
|
}>) => _$vue.VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|