@soybeanjs/headless 0.28.1 → 0.29.0-beta.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/affix/affix-compact.js +1 -1
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/types.d.ts +1 -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-input.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/bottom-sheet/bottom-sheet-popup.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +1 -1
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/color-area/color-area-area.vue.d.ts +2 -2
- package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
- package/dist/components/color-area/color-area-root.vue.d.ts +3 -3
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +3 -3
- package/dist/components/color-picker/color-picker-root.vue.d.ts +3 -3
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-root.vue.d.ts +4 -4
- 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/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +2 -2
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +6 -6
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +6 -6
- package/dist/components/dialog/dialog-compact.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-provider.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/editable/editable-compact.vue.d.ts +2 -2
- package/dist/components/editable/editable-input.vue.d.ts +2 -2
- package/dist/components/editable/editable-preview.vue.d.ts +2 -2
- package/dist/components/editable/editable-root.vue.d.ts +4 -4
- package/dist/components/hover-card/hover-card-popup.vue.d.ts +2 -2
- package/dist/components/hover-card/hover-card-trigger.vue.d.ts +2 -2
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-filter.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item.vue.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +2 -2
- package/dist/components/menu/menu-item.vue.d.ts +2 -2
- package/dist/components/menu/menu-radio-item.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +1 -1
- 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/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +2 -2
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-item.vue.d.ts +2 -2
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.vue.d.ts +2 -2
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/slider/slider-thumb.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +2 -2
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/stepper-trigger.vue.d.ts +2 -2
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/tabs-trigger.vue.d.ts +2 -2
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
- package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -3
- package/dist/components/time-field/time-field-root.vue.d.ts +2 -2
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +2 -2
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +2 -2
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
- package/dist/shared/env.d.ts +1 -2
- package/dist/shared/env.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./affix-content.js";import n from"./affix-placeholder.js";import r from"./affix-root.js";import{createBlock as i,createVNode as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderSlot as d,unref as f,withCtx as p}from"vue";const m=o({name:`AffixCompact`,__name:`affix-compact`,props:{placeholderProps:{},contentProps:{},offsetTop:{},offsetBottom:{},target:{
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./affix-content.js";import n from"./affix-placeholder.js";import r from"./affix-root.js";import{createBlock as i,createVNode as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderSlot as d,unref as f,withCtx as p}from"vue";const m=o({name:`AffixCompact`,__name:`affix-compact`,props:{placeholderProps:{},contentProps:{},offsetTop:{},offsetBottom:{},target:{}},emits:[`change`],setup(o,{emit:m}){let h=o,g=m,_=e(h,[`placeholderProps`,`contentProps`]),v=e=>{g(`change`,e)};return(e,m)=>(u(),i(r,c(f(_),{onChange:v}),{default:p(()=>[a(n,l(s(o.placeholderProps)),null,16),a(t,l(s(o.contentProps)),{default:p(t=>[d(e.$slots,`default`,l(s(t)))]),_:3},16)]),_:3},16))}});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{provideAffixRootContext as t,useAffixUi as n}from"./context.js";import{getDefaultTarget as r,getFixedBottom as i,getFixedTop as a,getTargetRect as o,isZeroRect as s,resolveAffixTarget as c}from"./shared.js";import{computed as l,createElementBlock as u,defineComponent as d,nextTick as f,normalizeClass as p,onBeforeUnmount as m,onMounted as h,onWatcherCleanup as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b,watch as x}from"vue";import{useEventListener as S,useRafFn as C,useResizeObserver as w}from"@vueuse/core";const T=d({name:`AffixRoot`,__name:`affix-root`,props:{offsetTop:{},offsetBottom:{},target:{
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{provideAffixRootContext as t,useAffixUi as n}from"./context.js";import{getDefaultTarget as r,getFixedBottom as i,getFixedTop as a,getTargetRect as o,isZeroRect as s,resolveAffixTarget as c}from"./shared.js";import{computed as l,createElementBlock as u,defineComponent as d,nextTick as f,normalizeClass as p,onBeforeUnmount as m,onMounted as h,onWatcherCleanup as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b,watch as x}from"vue";import{useEventListener as S,useRafFn as C,useResizeObserver as w}from"@vueuse/core";const T=d({name:`AffixRoot`,__name:`affix-root`,props:{offsetTop:{},offsetBottom:{},target:{}},emits:[`change`],setup(d,{expose:T,emit:E}){let D=d,O=E,k=n(`root`),[A,j]=e(),M=y(!1),N=y(),P=y(),F=l(()=>M.value?`fixed`:`static`),I=y(c(D.target));function L(){I.value=c(D.target)}let R=l(()=>D.offsetBottom===void 0&&D.offsetTop===void 0?0:D.offsetTop);function z(){if(!M.value){N.value=void 0,P.value=void 0;return}M.value=!1,N.value=void 0,P.value=void 0,O(`change`,!1)}function B(){if(typeof window>`u`)return;let e=A.value,t=I.value;if(!e||!t){z();return}let n=e.getBoundingClientRect();if(s(n)){z();return}let r=o(t),c=a(n,r,R.value),l=i(n,r,D.offsetBottom),u,d;(c!==void 0||l!==void 0)&&(u={left:`${n.left}px`,position:`fixed`,width:`${n.width}px`},c!==void 0&&(u.top=`${c}px`),l!==void 0&&(u.bottom=`${l}px`),d={height:`${n.height}px`,width:`${n.width}px`});let f=!!u;M.value!==f&&O(`change`,f),M.value=f,N.value=u,P.value=d}let{pause:V,resume:H}=C(B,{immediate:!1,once:!0}),{contentElement:U}=t({affixed:M,affixStyle:N,placeholderStyle:P,dataState:F,updatePosition:H});return x([()=>D.target,()=>D.offsetTop,()=>D.offsetBottom],async()=>{L(),await f(),H()},{immediate:!0}),x(I,e=>{if(!e)return;let t=S(e,`scroll`,H),n=S(e,`touchstart`,H),r=S(e,`touchmove`,H),i=S(e,`touchend`,H);g(()=>{t(),n(),r(),i()})},{immediate:!0}),S(r,`load`,H),S(r,`pageshow`,H),S(r,`resize`,H),w(A,H),w(U,H),h(async()=>{await f(),L(),H()}),m(()=>{V()}),T({affixed:M,updatePosition:H}),(e,t)=>(_(),u(`div`,{ref:b(j),"data-soybean-affix-root":``,class:p(b(k))},[v(e.$slots,`default`,{affixed:M.value})],2))}});export{T as default};
|
|
@@ -6,7 +6,7 @@ import { ComputedRef, ShallowRef } from "vue";
|
|
|
6
6
|
/**
|
|
7
7
|
* Type information for AffixTarget.
|
|
8
8
|
*/
|
|
9
|
-
type AffixTarget = string | Window | HTMLElement
|
|
9
|
+
type AffixTarget = string | Window | HTMLElement;
|
|
10
10
|
/**
|
|
11
11
|
* State values for AffixState.
|
|
12
12
|
*/
|
|
@@ -4,8 +4,8 @@ import { AutocompleteCompactProps, AutocompleteCompactSlots, AutocompleteHighlig
|
|
|
4
4
|
declare const __VLS_export: <T extends AutocompleteSingleOptionData = AutocompleteSingleOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<AutocompleteCompactProps<T> & {
|
|
6
6
|
onSelect?: ((item: T) => any) | undefined;
|
|
7
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
9
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends AutocompleteSingleOptionData = Autocomple
|
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
14
14
|
attrs: any;
|
|
15
15
|
slots: AutocompleteCompactSlots<T>;
|
|
16
|
-
emit: ((evt: "select", item: T) => void) & ((evt: "update:
|
|
16
|
+
emit: ((evt: "select", item: T) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload?: AutocompleteHighlightPayload | undefined) => void);
|
|
17
17
|
}>) => import("vue").VNode & {
|
|
18
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
19
|
};
|
|
@@ -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-control.js";import a from"../input/input-root.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:
|
|
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-control.js";import a from"../input/input-root.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:ee,disabled:z,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||z.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(e.key===`Enter`){P(e);return}if(!I.value){W(!0);return}F(e)},ae=e=>{if(!I.value)return;let t=e.relatedTarget;if(!t)return;let n=ee.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(a),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(i),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`]),[`enter`,`down`,`up`,`home`,`end`])}),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};
|
|
@@ -3,13 +3,13 @@ import { AutocompleteInputProps } from "./types.js";
|
|
|
3
3
|
//#region src/components/autocomplete/autocomplete-input.vue.d.ts
|
|
4
4
|
declare var __VLS_10: {
|
|
5
5
|
clear: () => void;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_19: {
|
|
7
7
|
clear: () => void;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
leading?: (props: typeof __VLS_10) => any;
|
|
11
11
|
} & {
|
|
12
|
-
trailing?: (props: typeof
|
|
12
|
+
trailing?: (props: typeof __VLS_19) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import("vue").DefineComponent<AutocompleteInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
15
|
"update:modelValue": (value: string) => any;
|
|
@@ -18,16 +18,16 @@ declare const __VLS_base: import("vue").DefineComponent<AutocompleteRootProps, {
|
|
|
18
18
|
highlightFirstItem: () => void;
|
|
19
19
|
highlightSelected: (event?: Event) => Promise<void> | undefined;
|
|
20
20
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:open": (value: boolean) => any;
|
|
22
21
|
"update:modelValue": (value: string) => any;
|
|
22
|
+
"update:open": (value: boolean) => any;
|
|
23
23
|
highlight: (payload?: AutocompleteHighlightPayload | undefined) => any;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<AutocompleteRootProps> & Readonly<{
|
|
25
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
26
25
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
27
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
-
open: boolean;
|
|
30
29
|
modelValue: string;
|
|
30
|
+
open: boolean;
|
|
31
31
|
defaultOpen: boolean;
|
|
32
32
|
highlightOnHover: boolean;
|
|
33
33
|
openOnFocus: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/components/bottom-sheet/bottom-sheet-popup.vue.d.ts
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
5
|
};
|
|
6
6
|
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>;
|
|
7
7
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,9 +2,9 @@ import { DialogRootProps } from "../dialog/types.js";
|
|
|
2
2
|
import { DrawerDirection, WithFadeFromProps, WithoutFadeFromProps } from "./types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_10: any;
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<(DialogRootProps & {
|
|
10
10
|
activeSnapPoint?: number | string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getVueBooleanCasting as e,transformPropsToContext as t}from"../../shared/vue.js";import{getDefaultDate as n}from"../../date/comparators.js";import{getWeekStartsOn as r}from"../../date/calendar.js";import{handleCalendarInitialFocus as i}from"../../date/utils.js";import{useDirection as a,useLocale as o}from"../config-provider/context.js";import"../../date/index.js";import"../../shared/index.js";import{useControllableState as s}from"../../composables/use-controllable-state.js";import{useForwardElement as c}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as l}from"../primitive/primitive.js";import"../primitive/index.js";import u from"../visually-hidden/visually-hidden.js";import{provideCalendarRootContext as d,useCalendarUi as f}from"./context.js";import"../visually-hidden/index.js";import{getMonthOptions as ee,getYearOptions as te,handleMonthChange as ne,handleYearChange as re}from"./shared.js";import{useCalendar as p,useCalendarState as m}from"./use-calendar.js";import{computed as h,createBlock as g,createElementVNode as _,createVNode as v,defineComponent as y,normalizeClass as b,onMounted as x,openBlock as S,renderSlot as ie,toDisplayString as ae,unref as C,watch as w,withCtx as T}from"vue";import{isEqualDay as E,isSameDay as D}from"@internationalized/date";const O={"aria-level":`2`,role:`heading`},k=y({name:`CalendarRoot`,__name:`calendar-root`,props:{dir:{},locale:{},modelValue:{},defaultValue:{default:void 0},multiple:{},placeholder:{default:void 0},defaultPlaceholder:{default:void 0},disabled:{type:Boolean},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{default:`narrow`},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{default:1},initialFocus:{type:Boolean},isDateDisabled:{type:Function,default:void 0},isDateUnavailable:{type:Function,default:void 0},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(y,{emit:k}){let A=y,j=k,M=f(`root`),[N,P]=c(),F=o(()=>A.locale),I=a(()=>A.dir),L=h(()=>A.weekStartsOn??r(F.value)),R=h(()=>e(A.multiple)),z=s(()=>A.modelValue,e=>{j(`update:modelValue`,e)},A.defaultValue,!0),B=n({defaultPlaceholder:A.placeholder,defaultValue:z.value,locale:A.locale}),V=s(()=>A.placeholder,e=>{j(`update:placeholder`,e)},A.defaultPlaceholder??B.copy()),{fullCalendarLabel:H,headingValue:U,isDateDisabled:W,isDateUnavailable:G,isNextButtonDisabled:K,isPrevButtonDisabled:q,weekdays:J,isOutsideVisibleView:oe,nextPage:se,prevPage:ce,formatter:Y,grid:X,isPlaceholderFocusable:le,firstFocusableDate:ue}=p({locale:F,placeholder:V,weekStartsOn:L,fixedWeeks:h(()=>A.fixedWeeks),numberOfMonths:h(()=>A.numberOfMonths),minValue:h(()=>A.minValue),maxValue:h(()=>A.maxValue),disabled:h(()=>A.disabled),weekdayFormat:h(()=>A.weekdayFormat),pagedNavigation:h(()=>A.pagedNavigation),isDateDisabled:A.isDateDisabled,isDateUnavailable:A.isDateUnavailable,calendarLabel:h(()=>A.calendarLabel),nextPage:h(()=>A.nextPage),prevPage:h(()=>A.prevPage)}),{isInvalid:Z,isDateSelected:de,hasSelectedDate:fe,isSelectedDateDisabled:Q}=m({date:z,isDateDisabled:W,isDateUnavailable:G}),pe=h(()=>ee({placeholder:V.value,disabled:A.disabled,minValue:A.minValue,maxValue:A.maxValue,formatter:Y})),me=e=>{ne(e,{placeholder:V.value,disabled:A.disabled,minValue:A.minValue,maxValue:A.maxValue,onPlaceholderChange:$})},he=e=>{re(e,{placeholder:V.value,minValue:A.minValue,maxValue:A.maxValue,onPlaceholderChange:$})},ge=h(()=>te({placeholder:V.value,minValue:A.minValue,maxValue:A.maxValue}));w(z,e=>{if(Array.isArray(e)&&e.length){let t=e.at(-1);t&&!E(V.value,t)&&(V.value=t.copy());return}!Array.isArray(e)&&e&&!E(V.value,e)&&(V.value=e.copy())});function $(e){V.value=e.copy()}function _e(e){if(!A.readonly){if(!R.value){if(!z.value){z.value=e.copy();return}if(!A.preventDeselect&&D(z.value,e)){V.value=e.copy(),z.value=void 0;return}z.value=e.copy();return}if(!z.value){z.value=[e.copy()];return}if(Array.isArray(z.value)){if(z.value.findIndex(t=>D(t,e))===-1){z.value=[...z.value,e.copy()];return}if(!A.preventDeselect){let t=z.value.filter(t=>!D(t,e)).map(e=>e.copy());if(!t.length){V.value=e.copy(),z.value=void 0;return}z.value=t}}}}return d({locale:F,dir:I,weekStartsOn:L,weekdayFormat:h(()=>A.weekdayFormat),modelValue:z,multiple:R,placeholder:V,grid:X,parentElement:N,fullCalendarLabel:H,headingValue:U,isInvalid:Z,minValue:h(()=>A.minValue),maxValue:h(()=>A.maxValue),isPlaceholderFocusable:le,firstFocusableDate:ue,hasSelectedDate:fe,isSelectedDateDisabled:Q,formatter:Y,onDateChange:_e,onPlaceholderChange:$,isDateDisabled:W,isDateSelected:de,isDateUnavailable:G,isOutsideVisibleView:oe,prevPage:ce,nextPage:se,isPrevButtonDisabled:q,isNextButtonDisabled:K,...t(A,[`disableDaysOutsideCurrentView`,`disabled`,`fixedWeeks`,`initialFocus`,`numberOfMonths`,`pagedNavigation`,`preventDeselect`,`readonly`])}),x(()=>{A.initialFocus&&N.value&&i(N.value)}),(e,t)=>(S(),g(C(l),{ref:C(P),as:y.as,"as-child":y.asChild,"data-soybean-calendar-root":``,class:b(C(M)),"aria-label":C(H),"data-disabled":y.disabled?``:void 0,"data-invalid":C(Z)?``:void 0,"data-readonly":
|
|
1
|
+
import{getVueBooleanCasting as e,transformPropsToContext as t}from"../../shared/vue.js";import{getDefaultDate as n}from"../../date/comparators.js";import{getWeekStartsOn as r}from"../../date/calendar.js";import{handleCalendarInitialFocus as i}from"../../date/utils.js";import{useDirection as a,useLocale as o}from"../config-provider/context.js";import"../../date/index.js";import"../../shared/index.js";import{useControllableState as s}from"../../composables/use-controllable-state.js";import{useForwardElement as c}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as l}from"../primitive/primitive.js";import"../primitive/index.js";import u from"../visually-hidden/visually-hidden.js";import{provideCalendarRootContext as d,useCalendarUi as f}from"./context.js";import"../visually-hidden/index.js";import{getMonthOptions as ee,getYearOptions as te,handleMonthChange as ne,handleYearChange as re}from"./shared.js";import{useCalendar as p,useCalendarState as m}from"./use-calendar.js";import{computed as h,createBlock as g,createElementVNode as _,createVNode as v,defineComponent as y,normalizeClass as b,onMounted as x,openBlock as S,renderSlot as ie,toDisplayString as ae,unref as C,watch as w,withCtx as T}from"vue";import{isEqualDay as E,isSameDay as D}from"@internationalized/date";const O={"aria-level":`2`,role:`heading`},k=y({name:`CalendarRoot`,__name:`calendar-root`,props:{dir:{},locale:{},modelValue:{},defaultValue:{default:void 0},multiple:{},placeholder:{default:void 0},defaultPlaceholder:{default:void 0},disabled:{type:Boolean},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{default:`narrow`},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{default:1},initialFocus:{type:Boolean},isDateDisabled:{type:Function,default:void 0},isDateUnavailable:{type:Function,default:void 0},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(y,{emit:k}){let A=y,j=k,M=f(`root`),[N,P]=c(),F=o(()=>A.locale),I=a(()=>A.dir),L=h(()=>A.weekStartsOn??r(F.value)),R=h(()=>e(A.multiple)),z=s(()=>A.modelValue,e=>{j(`update:modelValue`,e)},A.defaultValue,!0),B=n({defaultPlaceholder:A.placeholder,defaultValue:z.value,locale:A.locale}),V=s(()=>A.placeholder,e=>{j(`update:placeholder`,e)},A.defaultPlaceholder??B.copy()),{fullCalendarLabel:H,headingValue:U,isDateDisabled:W,isDateUnavailable:G,isNextButtonDisabled:K,isPrevButtonDisabled:q,weekdays:J,isOutsideVisibleView:oe,nextPage:se,prevPage:ce,formatter:Y,grid:X,isPlaceholderFocusable:le,firstFocusableDate:ue}=p({locale:F,placeholder:V,weekStartsOn:L,fixedWeeks:h(()=>A.fixedWeeks),numberOfMonths:h(()=>A.numberOfMonths),minValue:h(()=>A.minValue),maxValue:h(()=>A.maxValue),disabled:h(()=>A.disabled),weekdayFormat:h(()=>A.weekdayFormat),pagedNavigation:h(()=>A.pagedNavigation),isDateDisabled:A.isDateDisabled,isDateUnavailable:A.isDateUnavailable,calendarLabel:h(()=>A.calendarLabel),nextPage:h(()=>A.nextPage),prevPage:h(()=>A.prevPage)}),{isInvalid:Z,isDateSelected:de,hasSelectedDate:fe,isSelectedDateDisabled:Q}=m({date:z,isDateDisabled:W,isDateUnavailable:G}),pe=h(()=>ee({placeholder:V.value,disabled:A.disabled,minValue:A.minValue,maxValue:A.maxValue,formatter:Y})),me=e=>{ne(e,{placeholder:V.value,disabled:A.disabled,minValue:A.minValue,maxValue:A.maxValue,onPlaceholderChange:$})},he=e=>{re(e,{placeholder:V.value,minValue:A.minValue,maxValue:A.maxValue,onPlaceholderChange:$})},ge=h(()=>te({placeholder:V.value,minValue:A.minValue,maxValue:A.maxValue}));w(z,e=>{if(Array.isArray(e)&&e.length){let t=e.at(-1);t&&!E(V.value,t)&&(V.value=t.copy());return}!Array.isArray(e)&&e&&!E(V.value,e)&&(V.value=e.copy())});function $(e){V.value=e.copy()}function _e(e){if(!A.readonly){if(!R.value){if(!z.value){z.value=e.copy();return}if(!A.preventDeselect&&D(z.value,e)){V.value=e.copy(),z.value=void 0;return}z.value=e.copy();return}if(!z.value){z.value=[e.copy()];return}if(Array.isArray(z.value)){if(z.value.findIndex(t=>D(t,e))===-1){z.value=[...z.value,e.copy()];return}if(!A.preventDeselect){let t=z.value.filter(t=>!D(t,e)).map(e=>e.copy());if(!t.length){V.value=e.copy(),z.value=void 0;return}z.value=t}}}}return d({locale:F,dir:I,weekStartsOn:L,weekdayFormat:h(()=>A.weekdayFormat),modelValue:z,multiple:R,placeholder:V,grid:X,parentElement:N,fullCalendarLabel:H,headingValue:U,isInvalid:Z,minValue:h(()=>A.minValue),maxValue:h(()=>A.maxValue),isPlaceholderFocusable:le,firstFocusableDate:ue,hasSelectedDate:fe,isSelectedDateDisabled:Q,formatter:Y,onDateChange:_e,onPlaceholderChange:$,isDateDisabled:W,isDateSelected:de,isDateUnavailable:G,isOutsideVisibleView:oe,prevPage:ce,nextPage:se,isPrevButtonDisabled:q,isNextButtonDisabled:K,...t(A,[`disableDaysOutsideCurrentView`,`disabled`,`fixedWeeks`,`initialFocus`,`numberOfMonths`,`pagedNavigation`,`preventDeselect`,`readonly`])}),x(()=>{A.initialFocus&&N.value&&i(N.value)}),(e,t)=>(S(),g(C(l),{ref:C(P),as:y.as,"as-child":y.asChild,"data-soybean-calendar-root":``,class:b(C(M)),"aria-label":C(H),"data-disabled":y.disabled?``:void 0,"data-invalid":C(Z)?``:void 0,"data-readonly":A.readonly?``:void 0,dir:C(I)},{default:T(()=>[ie(e.$slots,`default`,{date:C(V),disabled:y.disabled,formatter:C(Y),headingValue:C(U),fixedWeeks:y.fixedWeeks,grid:C(X),locale:C(F),maxValue:y.maxValue,minValue:y.minValue,modelValue:C(z),onPlaceholderChange:$,placeholder:C(V),weekDays:C(J),weekStartsOn:L.value,yearOptions:ge.value,onYearChange:he,monthOptions:pe.value,onMonthChange:me}),v(C(u),{as:`span`,feature:`fully-hidden`},{default:T(()=>[_(`span`,O,ae(C(H)),1)]),_:1})]),_:3},8,[`as`,`as-child`,`class`,`aria-label`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{k as default};
|
|
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarRangeRootProps,
|
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
placeholder: DateValue;
|
|
16
16
|
defaultValue: DateRange;
|
|
17
|
-
defaultPlaceholder: DateValue;
|
|
18
17
|
readonly: boolean;
|
|
18
|
+
defaultPlaceholder: DateValue;
|
|
19
19
|
pagedNavigation: boolean;
|
|
20
20
|
preventDeselect: boolean;
|
|
21
21
|
weekdayFormat: WeekDayFormat;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CheckedState } from "../../types/common.js";
|
|
2
2
|
import { CheckboxControlProps } from "./types.js";
|
|
3
3
|
//#region src/components/checkbox/checkbox-control.vue.d.ts
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_10: {
|
|
5
5
|
modelValue: CheckedState | null | undefined;
|
|
6
6
|
state: CheckedState;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<CheckboxControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CheckboxControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<CollapsibleRootProps, {
|
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<CollapsibleRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
open: boolean;
|
|
18
17
|
unmountOnHide: boolean;
|
|
18
|
+
open: boolean;
|
|
19
19
|
defaultOpen: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColorAreaAreaProps } from "./types.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/color-area/color-area-area.vue.d.ts
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_10: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_10) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<ColorAreaAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorAreaAreaProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,13 +3,13 @@ import { ColorAreaCompactProps } from "./types.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/color-area/color-area-compact.vue.d.ts
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<ColorAreaCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
change: (value: string) => any;
|
|
7
6
|
"update:modelValue": (value: string) => any;
|
|
7
|
+
change: (value: string) => any;
|
|
8
8
|
"update:color": (value: NormalizedColor) => any;
|
|
9
9
|
changeEnd: (value: string) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<ColorAreaCompactProps> & Readonly<{
|
|
11
|
-
onChange?: ((value: string) => any) | undefined;
|
|
12
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
|
13
13
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
14
14
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,20 +7,20 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<ColorAreaRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: string) => any;
|
|
11
10
|
"update:modelValue": (value: string) => any;
|
|
11
|
+
change: (value: string) => any;
|
|
12
12
|
"update:color": (value: NormalizedColor) => any;
|
|
13
13
|
changeEnd: (value: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<ColorAreaRootProps> & Readonly<{
|
|
15
|
-
onChange?: ((value: string) => any) | undefined;
|
|
16
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
+
onChange?: ((value: string) => any) | undefined;
|
|
17
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
18
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
format: ColorFormat;
|
|
22
|
-
defaultValue: string | ColorValue;
|
|
23
22
|
modelValue: string | ColorValue;
|
|
23
|
+
defaultValue: string | ColorValue;
|
|
24
24
|
colorSpace: ColorSpace;
|
|
25
25
|
xChannel: ColorAreaAxisChannel;
|
|
26
26
|
yChannel: ColorAreaAxisChannel;
|
|
@@ -15,9 +15,9 @@ declare const __VLS_base: import("vue").DefineComponent<ColorFieldRootProps, {},
|
|
|
15
15
|
}>, {
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
format: ColorFormat;
|
|
18
|
-
step: number;
|
|
19
|
-
defaultValue: string | ColorValue;
|
|
20
18
|
modelValue: string | ColorValue;
|
|
19
|
+
defaultValue: string | ColorValue;
|
|
20
|
+
step: number;
|
|
21
21
|
readonly: boolean;
|
|
22
22
|
colorSpace: ColorSpace;
|
|
23
23
|
disableWheelChange: boolean;
|
|
@@ -13,9 +13,9 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
trigger?: (props: typeof __VLS_21) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: string) => any;
|
|
16
17
|
change: (value: string) => any;
|
|
17
18
|
"update:open": (value: boolean) => any;
|
|
18
|
-
"update:modelValue": (value: string) => any;
|
|
19
19
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
20
20
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
21
21
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -25,9 +25,9 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps,
|
|
|
25
25
|
"update:color": (value: NormalizedColor) => any;
|
|
26
26
|
"update:format": (value: ColorFormat) => any;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<ColorPickerCompactProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
29
|
onChange?: ((value: string) => any) | undefined;
|
|
29
30
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
30
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
31
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
32
32
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
33
33
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -40,11 +40,11 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps,
|
|
|
40
40
|
open: boolean;
|
|
41
41
|
placement: Placement;
|
|
42
42
|
showArrow: boolean;
|
|
43
|
+
colorSpace: ColorSpace;
|
|
43
44
|
showAlpha: boolean;
|
|
44
45
|
showFields: boolean;
|
|
45
46
|
showSwatches: boolean;
|
|
46
47
|
swatches: string[];
|
|
47
|
-
colorSpace: ColorSpace;
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
49
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
@@ -21,20 +21,20 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
default?: (props: typeof __VLS_1) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import("vue").DefineComponent<ColorPickerRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
change: (value: string) => any;
|
|
25
24
|
"update:modelValue": (value: string) => any;
|
|
25
|
+
change: (value: string) => any;
|
|
26
26
|
"update:color": (value: NormalizedColor) => any;
|
|
27
27
|
"update:format": (value: ColorFormat) => any;
|
|
28
28
|
}, string, import("vue").PublicProps, Readonly<ColorPickerRootProps> & Readonly<{
|
|
29
|
-
onChange?: ((value: string) => any) | undefined;
|
|
30
29
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
|
+
onChange?: ((value: string) => any) | undefined;
|
|
31
31
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
32
32
|
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
disabled: boolean;
|
|
35
35
|
format: ColorFormat;
|
|
36
|
-
defaultValue: string | ColorValue;
|
|
37
36
|
modelValue: string | ColorValue;
|
|
37
|
+
defaultValue: string | ColorValue;
|
|
38
38
|
defaultFormat: ColorFormat;
|
|
39
39
|
colorSpace: ColorSpace;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,13 +3,13 @@ import { ColorSliderCompactProps } from "./types.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/color-slider/color-slider-compact.vue.d.ts
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<ColorSliderCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
change: (value: string) => any;
|
|
7
6
|
"update:modelValue": (value: string) => any;
|
|
7
|
+
change: (value: string) => any;
|
|
8
8
|
"update:color": (value: NormalizedColor) => any;
|
|
9
9
|
changeEnd: (value: string) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<ColorSliderCompactProps> & Readonly<{
|
|
11
|
-
onChange?: ((value: string) => any) | undefined;
|
|
12
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
|
13
13
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
14
14
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,22 +7,22 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<ColorSliderRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: string) => any;
|
|
11
10
|
"update:modelValue": (value: string) => any;
|
|
11
|
+
change: (value: string) => any;
|
|
12
12
|
"update:color": (value: NormalizedColor) => any;
|
|
13
13
|
changeEnd: (value: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<ColorSliderRootProps> & Readonly<{
|
|
15
|
-
onChange?: ((value: string) => any) | undefined;
|
|
16
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
+
onChange?: ((value: string) => any) | undefined;
|
|
17
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
18
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
format: ColorFormat;
|
|
22
22
|
orientation: DataOrientation;
|
|
23
|
-
step: number;
|
|
24
|
-
defaultValue: string | ColorValue;
|
|
25
23
|
modelValue: string | ColorValue;
|
|
24
|
+
defaultValue: string | ColorValue;
|
|
25
|
+
step: number;
|
|
26
26
|
colorSpace: ColorSpace;
|
|
27
27
|
inverted: boolean;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -6,8 +6,8 @@ import { ComboboxCompactProps, ComboboxCompactSlots } from "./types.js";
|
|
|
6
6
|
declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxCompactProps<M> & {
|
|
8
8
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: ComboboxCompactSlots<M>;
|
|
25
|
-
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:
|
|
25
|
+
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => 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: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "placed") => void);
|
|
26
26
|
}>) => import("vue").VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -4,8 +4,8 @@ import { ComboboxRootProps } from "./types.js";
|
|
|
4
4
|
//#region src/components/combobox/combobox-root.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxRootProps<M> & {
|
|
7
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
7
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
8
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
9
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -28,7 +28,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
28
28
|
modelValue: (M extends true ? string[] : string) | undefined;
|
|
29
29
|
}) => any;
|
|
30
30
|
};
|
|
31
|
-
emit: ((evt: "update:
|
|
31
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void);
|
|
32
32
|
}>) => import("vue").VNode & {
|
|
33
33
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
34
|
};
|
|
@@ -6,8 +6,8 @@ import { ContextMenuCheckboxCompactProps, ContextMenuCheckboxCompactSlots } from
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ContextMenuCheckboxCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuCheckboxCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => 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);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -2,9 +2,9 @@ import { FocusOutsideEvent, PointerDownOutsideEvent } from "../../types/event.js
|
|
|
2
2
|
import { ContextMenuContentProps } from "./types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/context-menu/context-menu-content.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<ContextMenuContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -6,8 +6,8 @@ import { ContextMenuRadioCompactProps, ContextMenuRadioCompactSlots } from "./ty
|
|
|
6
6
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ContextMenuRadioCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuRadioCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: Exclude<T, 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: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -2,9 +2,9 @@ import { AsTag } from "../primitive/types.js";
|
|
|
2
2
|
import { ContextMenuTriggerProps } from "./types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/context-menu/context-menu-trigger.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_14: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_14) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<ContextMenuTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContextMenuTriggerProps> & Readonly<{}>, {
|
|
10
10
|
as: AsTag | import("vue").Component;
|
|
@@ -12,10 +12,10 @@ declare const __VLS_base: import("vue").DefineComponent<DateFieldRootProps, {},
|
|
|
12
12
|
}>, {
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
placeholder: import("@internationalized/date").DateValue;
|
|
15
|
-
step: DateStep;
|
|
16
15
|
defaultValue: import("@internationalized/date").DateValue;
|
|
17
|
-
|
|
16
|
+
step: DateStep;
|
|
18
17
|
readonly: boolean;
|
|
18
|
+
defaultPlaceholder: import("@internationalized/date").DateValue;
|
|
19
19
|
isDateUnavailable: DateMatcher;
|
|
20
20
|
granularity: Granularity;
|
|
21
21
|
hourCycle: 12 | 24;
|
|
@@ -9,7 +9,7 @@ import { CalendarCellProps, CalendarCellTriggerProps, CalendarGridBodyProps, Cal
|
|
|
9
9
|
import { PopoverCloseProps, PopoverPopupProps, PopoverPositionerProps, PopoverTriggerProps } from "../popover/types.js";
|
|
10
10
|
import { DatePickerCompactProps } from "./types.js";
|
|
11
11
|
//#region src/components/date-picker/date-picker-compact.vue.d.ts
|
|
12
|
-
declare var
|
|
12
|
+
declare var __VLS_24: {
|
|
13
13
|
open: boolean;
|
|
14
14
|
close: () => void;
|
|
15
15
|
calendarProps: Omit<Readonly<{
|
|
@@ -254,26 +254,26 @@ declare var __VLS_25: {
|
|
|
254
254
|
readonly inlist: boolean;
|
|
255
255
|
readonly asChild: boolean;
|
|
256
256
|
readonly open: boolean | undefined;
|
|
257
|
+
readonly readonly: boolean;
|
|
257
258
|
readonly showArrow: boolean;
|
|
258
259
|
readonly defaultOpen: boolean;
|
|
259
260
|
readonly modal: boolean;
|
|
260
261
|
readonly multiple: boolean;
|
|
261
|
-
readonly readonly: boolean;
|
|
262
262
|
readonly pagedNavigation: boolean;
|
|
263
263
|
readonly preventDeselect: boolean;
|
|
264
264
|
readonly fixedWeeks: boolean;
|
|
265
265
|
readonly initialFocus: boolean;
|
|
266
266
|
readonly disableDaysOutsideCurrentView: boolean;
|
|
267
|
-
}, "
|
|
267
|
+
}, "triggerProps" | "open" | "positionerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
268
268
|
onUpdateModelValue: (value: DateValue | undefined) => void;
|
|
269
269
|
onUpdatePlaceholder: (placeholder: DateValue) => void;
|
|
270
270
|
};
|
|
271
271
|
type __VLS_Slots = {} & {
|
|
272
|
-
default?: (props: typeof
|
|
272
|
+
default?: (props: typeof __VLS_24) => any;
|
|
273
273
|
};
|
|
274
274
|
declare const __VLS_base: import("vue").DefineComponent<DatePickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
275
|
-
"update:open": (value: boolean) => any;
|
|
276
275
|
"update:modelValue": (date: DateValue | undefined) => any;
|
|
276
|
+
"update:open": (value: boolean) => any;
|
|
277
277
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
278
278
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
279
279
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -282,8 +282,8 @@ declare const __VLS_base: import("vue").DefineComponent<DatePickerCompactProps,
|
|
|
282
282
|
closeAutoFocus: (event: Event) => any;
|
|
283
283
|
"update:placeholder": (date: DateValue) => any;
|
|
284
284
|
}, string, import("vue").PublicProps, Readonly<DatePickerCompactProps> & Readonly<{
|
|
285
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
286
285
|
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
286
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
287
287
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
288
288
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
289
289
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -15,10 +15,10 @@ declare const __VLS_base: import("vue").DefineComponent<DateRangeFieldRootProps,
|
|
|
15
15
|
}>, {
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
placeholder: import("@internationalized/date").DateValue;
|
|
18
|
-
step: DateStep;
|
|
19
18
|
defaultValue: DateRange;
|
|
20
|
-
|
|
19
|
+
step: DateStep;
|
|
21
20
|
readonly: boolean;
|
|
21
|
+
defaultPlaceholder: import("@internationalized/date").DateValue;
|
|
22
22
|
isDateUnavailable: DateMatcher;
|
|
23
23
|
granularity: Granularity;
|
|
24
24
|
hourCycle: 12 | 24;
|