@soybeanjs/headless 0.21.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/accordion-compact.js +1 -1
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/context.d.ts +0 -1
- package/dist/components/accordion/types.d.ts +1 -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 +8 -8
- package/dist/components/calendar-range/context.d.ts +0 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -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-compact.vue.d.ts +2 -2
- 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 +2 -2
- 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-compact.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
- 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-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 +3 -3
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-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.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/date-field/context.d.ts +0 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +13 -13
- package/dist/components/date-range-field/context.d.ts +0 -1
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +12 -12
- package/dist/components/dialog/context.d.ts +0 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
- 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 +2 -2
- package/dist/components/editable/context.d.ts +0 -1
- package/dist/components/editable/editable-compact.vue.d.ts +2 -2
- package/dist/components/editable/editable-root.vue.d.ts +3 -3
- 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/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +2 -2
- 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 +2 -2
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- 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 +3 -3
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- 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 +3 -3
- package/dist/components/popover/context.d.ts +0 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
- 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 +2 -2
- 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/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-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-range-field/context.d.ts +0 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- package/dist/components/toast/context.d.ts +0 -1
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toggle-group/context.d.ts +0 -1
- package/dist/components/toolbar/context.d.ts +0 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../_icon/icon.js";import{useAccordionUi as r}from"./context.js";import i from"./accordion-root.js";import a from"./accordion-item.js";import o from"./accordion-header.js";import s from"./accordion-trigger.js";import c from"./accordion-content.js";import l from"./accordion-description.js";import{Fragment as u,createBlock as d,createElementBlock as f,createTextVNode as p,createVNode as m,defineComponent as h,mergeProps as g,normalizeClass as _,openBlock as v,renderList as y,renderSlot as b,toDisplayString as x,toHandlers as S,unref as C,withCtx as w}from"vue";const T=h({name:`AccordionCompact`,__name:`accordion-compact`,props:{items:{},itemProps:{},headerProps:{},triggerProps:{},contentProps:{},descriptionProps:{},collapsible:{type:Boolean},dir:{},disabled:{type:Boolean},orientation:{},unmountOnHide:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../_icon/icon.js";import{useAccordionUi as r}from"./context.js";import i from"./accordion-root.js";import a from"./accordion-item.js";import o from"./accordion-header.js";import s from"./accordion-trigger.js";import c from"./accordion-content.js";import l from"./accordion-description.js";import{Fragment as u,createBlock as d,createElementBlock as f,createTextVNode as p,createVNode as m,defineComponent as h,mergeProps as g,normalizeClass as _,openBlock as v,renderList as y,renderSlot as b,toDisplayString as x,toHandlers as S,unref as C,withCtx as w}from"vue";const T=h({name:`AccordionCompact`,__name:`accordion-compact`,props:{items:{},itemProps:{},headerProps:{},triggerProps:{},contentProps:{},descriptionProps:{},collapsible:{type:Boolean,default:!0},dir:{},disabled:{type:Boolean},orientation:{},unmountOnHide:{type:Boolean,default:!0},modelValue:{},defaultValue:{},multiple:{},selectionBehavior:{}},emits:[`update:modelValue`],setup(h,{emit:T}){let E=h,D=T,O=t(E,[`items`,`itemProps`,`headerProps`,`triggerProps`,`contentProps`]),k=e(D),A=r();return(e,t)=>(v(),d(i,g(C(O),S(C(k))),{default:w(()=>[(v(!0),f(u,null,y(h.items,(t,r)=>(v(),d(a,g({key:t.value,ref_for:!0},h.itemProps,{value:t.value,disabled:t.disabled}),{default:w(({open:i})=>[b(e.$slots,`item`,{item:t,index:r,modelValue:h.modelValue,open:i},()=>[m(o,g({ref_for:!0},h.headerProps),{default:w(()=>[m(s,g({ref_for:!0},h.triggerProps),{default:w(()=>[b(e.$slots,`leading`,{item:t,index:r,modelValue:h.modelValue,open:i},()=>[m(n,{icon:t.icon,class:_(C(A).triggerLeadingIcon)},null,8,[`icon`,`class`])]),b(e.$slots,`title`,{item:t,index:r,modelValue:h.modelValue,open:i},()=>[p(x(t.title),1)]),b(e.$slots,`trigger-icon`,{item:t,index:r,modelValue:h.modelValue,open:i},()=>[m(n,{icon:`lucide:chevron-down`,class:_(C(A).triggerIcon)},null,8,[`class`])])]),_:2},1040)]),_:2},1040),m(c,g({ref_for:!0},h.contentProps),{default:w(()=>[b(e.$slots,`content`,{item:t,index:r,modelValue:h.modelValue,open:i},()=>[m(l,g({ref_for:!0},h.descriptionProps),{default:w(()=>[p(x(t.description),1)]),_:2},1040)])]),_:2},1040)])]),_:2},1040,[`value`,`disabled`]))),128))]),_:3},16))}});export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useDirection as t}from"../config-provider/context.js";import"../../shared/index.js";import{useSelection as n}from"../../composables/use-selection.js";import"../../composables/index.js";import{provideAccordionRootContext as r,useAccordionUi as i}from"./context.js";import{createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,shallowRef as u,unref as d}from"vue";const f=[`dir`],p=o({name:`AccordionRoot`,__name:`accordion-root`,props:{collapsible:{type:Boolean,default:!
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{useDirection as t}from"../config-provider/context.js";import"../../shared/index.js";import{useSelection as n}from"../../composables/use-selection.js";import"../../composables/index.js";import{provideAccordionRootContext as r,useAccordionUi as i}from"./context.js";import{createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,shallowRef as u,unref as d}from"vue";const f=[`dir`],p=o({name:`AccordionRoot`,__name:`accordion-root`,props:{collapsible:{type:Boolean,default:!0},dir:{},disabled:{type:Boolean,default:!1},orientation:{default:`vertical`},unmountOnHide:{type:Boolean,default:!0},modelValue:{},defaultValue:{},multiple:{},selectionBehavior:{}},emits:[`update:modelValue`],setup(o,{emit:p}){let m=o,h=p,g=i(`root`),_=u(),v=t(()=>m.dir),{modelValue:y,isMultiple:b,onModelValueChange:x}=n(()=>({...m,clearable:m.collapsible}),e=>{h(`update:modelValue`,e)});return r({dir:v,rootElement:_,modelValue:y,isMultiple:b,onModelValueChange:x,...e(m,[`collapsible`,`disabled`,`orientation`,`unmountOnHide`])}),(e,t)=>(c(),a(`div`,{ref_key:`rootElement`,ref:_,"data-soybean-accordion-root":``,class:s(d(g)),dir:d(v)},[l(e.$slots,`default`,{modelValue:d(y)})],10,f))}});export{p as default};
|
|
@@ -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
|
|
@@ -8,7 +8,7 @@ import { ComputedRef, ShallowRef } from "vue";
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for the AccordionRoot component.
|
|
10
10
|
*/
|
|
11
|
-
interface AccordionRootProps<M extends boolean = false> extends SelectionProps<M>, BaseProps {
|
|
11
|
+
interface AccordionRootProps<M extends boolean = false> extends Omit<SelectionProps<M>, 'clearable'>, BaseProps {
|
|
12
12
|
/**
|
|
13
13
|
* When type is "single", allows closing content when clicking trigger for an open item.
|
|
14
14
|
*
|
|
@@ -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
|
|
@@ -15,21 +15,21 @@ declare const __VLS_base: _$vue.DefineComponent<CalendarRangeRootProps, {}, {},
|
|
|
15
15
|
}>, {
|
|
16
16
|
placeholder: DateValue;
|
|
17
17
|
disabled: boolean;
|
|
18
|
-
|
|
19
|
-
fixedWeeks: boolean;
|
|
20
|
-
initialFocus: boolean;
|
|
18
|
+
defaultValue: DateRange;
|
|
21
19
|
numberOfMonths: number;
|
|
22
|
-
|
|
23
|
-
preventDeselect: boolean;
|
|
20
|
+
fixedWeeks: boolean;
|
|
24
21
|
readonly: boolean;
|
|
25
|
-
defaultValue: DateRange;
|
|
26
22
|
defaultPlaceholder: DateValue;
|
|
23
|
+
allowNonContiguousRanges: boolean;
|
|
24
|
+
pagedNavigation: boolean;
|
|
25
|
+
preventDeselect: boolean;
|
|
26
|
+
maximumDays: number;
|
|
27
27
|
weekdayFormat: WeekDayFormat;
|
|
28
|
+
initialFocus: boolean;
|
|
28
29
|
isDateDisabled: DateMatcher;
|
|
29
30
|
isDateUnavailable: DateMatcher;
|
|
30
|
-
allowNonContiguousRanges: boolean;
|
|
31
|
-
maximumDays: number;
|
|
32
31
|
isDateHighlightable: DateMatcher;
|
|
32
|
+
disableDaysOutsideCurrentView: boolean;
|
|
33
33
|
fixedDate: "start" | "end";
|
|
34
34
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
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 { 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
|
|
@@ -15,8 +15,8 @@ declare const __VLS_base: _$vue.DefineComponent<CheckboxRootProps, {}, {}, {}, {
|
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<CheckboxRootProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: CheckedState | null) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
value: DefinedValue;
|
|
19
18
|
modelValue: CheckedState | null;
|
|
19
|
+
value: DefinedValue;
|
|
20
20
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -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
|
|
@@ -5,13 +5,13 @@ import * as _$vue from "vue";
|
|
|
5
5
|
//#region src/components/color-area/color-area-compact.vue.d.ts
|
|
6
6
|
declare const __VLS_export: _$vue.DefineComponent<ColorAreaCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (value: string) => any;
|
|
8
|
-
change: (value: string) => any;
|
|
9
8
|
"update:color": (value: NormalizedColor) => any;
|
|
9
|
+
change: (value: string) => any;
|
|
10
10
|
changeEnd: (value: string) => any;
|
|
11
11
|
}, string, _$vue.PublicProps, Readonly<ColorAreaCompactProps> & Readonly<{
|
|
12
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
|
-
onChange?: ((value: string) => any) | undefined;
|
|
14
13
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string) => any) | undefined;
|
|
15
15
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,13 +9,13 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<ColorAreaRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
11
|
"update:modelValue": (value: string) => any;
|
|
12
|
-
change: (value: string) => any;
|
|
13
12
|
"update:color": (value: NormalizedColor) => any;
|
|
13
|
+
change: (value: string) => any;
|
|
14
14
|
changeEnd: (value: string) => any;
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<ColorAreaRootProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
-
onChange?: ((value: string) => any) | undefined;
|
|
18
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
|
+
onChange?: ((value: string) => any) | undefined;
|
|
19
19
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
disabled: boolean;
|
|
@@ -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,11 +17,11 @@ declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {},
|
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
format: ColorFormat;
|
|
19
19
|
step: number;
|
|
20
|
-
readonly: boolean;
|
|
21
20
|
modelValue: string | ColorValue;
|
|
22
21
|
defaultValue: string | ColorValue;
|
|
23
|
-
disableWheelChange: boolean;
|
|
24
22
|
colorSpace: ColorSpace;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
disableWheelChange: boolean;
|
|
25
25
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
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 { 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;
|
|
21
|
+
"update:color": (value: NormalizedColor) => any;
|
|
22
|
+
"update:format": (value: ColorFormat) => any;
|
|
20
23
|
change: (value: string) => any;
|
|
21
|
-
"update:open": (value: boolean) => any;
|
|
22
24
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
23
25
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
24
26
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
25
27
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
26
28
|
openAutoFocus: (event: Event) => any;
|
|
27
29
|
closeAutoFocus: (event: Event) => any;
|
|
28
|
-
"update:color": (value: NormalizedColor) => any;
|
|
29
|
-
"update:format": (value: ColorFormat) => any;
|
|
30
30
|
}, string, _$vue.PublicProps, Readonly<ColorPickerCompactProps> & Readonly<{
|
|
31
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
31
32
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
34
|
+
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
32
35
|
onChange?: ((value: string) => any) | undefined;
|
|
33
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
34
36
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
35
37
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
36
38
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
37
39
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
38
40
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
39
41
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
40
|
-
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
41
|
-
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
43
|
open: boolean;
|
|
44
|
-
placement: Placement;
|
|
45
|
-
showArrow: boolean;
|
|
46
|
-
colorSpace: ColorSpace;
|
|
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;
|
|
@@ -24,21 +24,21 @@ type __VLS_Slots = {} & {
|
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: _$vue.DefineComponent<ColorPickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
26
26
|
"update:modelValue": (value: string) => any;
|
|
27
|
-
change: (value: string) => any;
|
|
28
27
|
"update:color": (value: NormalizedColor) => 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
|
-
onChange?: ((value: string) => any) | undefined;
|
|
33
32
|
"onUpdate:color"?: ((value: NormalizedColor) => 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
38
|
modelValue: string | ColorValue;
|
|
39
39
|
defaultValue: string | ColorValue;
|
|
40
|
-
colorSpace: ColorSpace;
|
|
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
|
|
@@ -5,13 +5,13 @@ import * as _$vue from "vue";
|
|
|
5
5
|
//#region src/components/color-slider/color-slider-compact.vue.d.ts
|
|
6
6
|
declare const __VLS_export: _$vue.DefineComponent<ColorSliderCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (value: string) => any;
|
|
8
|
-
change: (value: string) => any;
|
|
9
8
|
"update:color": (value: NormalizedColor) => any;
|
|
9
|
+
change: (value: string) => any;
|
|
10
10
|
changeEnd: (value: string) => any;
|
|
11
11
|
}, string, _$vue.PublicProps, Readonly<ColorSliderCompactProps> & Readonly<{
|
|
12
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
|
-
onChange?: ((value: string) => any) | undefined;
|
|
14
13
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string) => any) | undefined;
|
|
15
15
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,13 +10,13 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: string) => any;
|
|
13
|
-
change: (value: string) => any;
|
|
14
13
|
"update:color": (value: NormalizedColor) => any;
|
|
14
|
+
change: (value: string) => any;
|
|
15
15
|
changeEnd: (value: string) => any;
|
|
16
16
|
}, string, _$vue.PublicProps, Readonly<ColorSliderRootProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
-
onChange?: ((value: string) => any) | undefined;
|
|
19
18
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
19
|
+
onChange?: ((value: string) => any) | undefined;
|
|
20
20
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
disabled: boolean;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}
|
|
|
25
25
|
step: number;
|
|
26
26
|
modelValue: string | ColorValue;
|
|
27
27
|
defaultValue: string | ColorValue;
|
|
28
|
-
inverted: boolean;
|
|
29
28
|
colorSpace: ColorSpace;
|
|
29
|
+
inverted: boolean;
|
|
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;
|
|
@@ -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,23 +8,23 @@ 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;
|
|
12
|
+
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
13
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
14
14
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
15
15
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
16
16
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
17
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
18
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
|
-
onPlaced?: (() => any) | undefined;
|
|
20
19
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
20
|
+
onPlaced?: (() => any) | undefined;
|
|
21
21
|
}> & (typeof globalThis extends {
|
|
22
22
|
__VLS_PROPS_FALLBACK: infer P;
|
|
23
23
|
} ? P : {});
|
|
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
|
};
|
|
@@ -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
|