@soybeanjs/headless 0.22.0 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/context.d.ts +0 -1
- package/dist/components/affix/context.d.ts +0 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +0 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/context.d.ts +0 -1
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -1
- 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 +6 -6
- package/dist/components/calendar-range/context.d.ts +0 -1
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/checkbox/context.d.ts +0 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/context.d.ts +0 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-area/context.d.ts +0 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/context.d.ts +0 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +3 -3
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-picker/context.d.ts +0 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- package/dist/components/color-slider/context.d.ts +0 -1
- package/dist/components/color-swatch-picker/context.d.ts +0 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-content.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/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 +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/date-field/context.d.ts +0 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +10 -10
- 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 +10 -10
- package/dist/components/dialog/context.d.ts +0 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +7 -7
- package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +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 +4 -4
- package/dist/components/editable/context.d.ts +0 -1
- package/dist/components/form/context.d.ts +0 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +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-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-control.js +1 -1
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +2 -2
- package/dist/components/input-number/types.d.ts +6 -2
- package/dist/components/input-otp/context.d.ts +0 -1
- package/dist/components/layout/context.d.ts +0 -1
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +2 -2
- package/dist/components/layout/layout-sidebar.vue.d.ts +3 -3
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/menu/context.d.ts +0 -1
- package/dist/components/menu/hooks.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +4 -4
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
- package/dist/components/menubar/context.d.ts +0 -1
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-content.vue.d.ts +4 -4
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/context.d.ts +0 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
- package/dist/components/page-tabs/context.d.ts +0 -1
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/pagination/context.d.ts +0 -1
- package/dist/components/password/password-compact.js +1 -1
- package/dist/components/password/password-compact.vue.d.ts +2 -0
- package/dist/components/password/types.d.ts +3 -21
- package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +7 -7
- package/dist/components/popover/context.d.ts +0 -1
- package/dist/components/popover/popover-compact.vue.d.ts +3 -3
- package/dist/components/popover/popover-positioner.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/progress/context.d.ts +0 -1
- package/dist/components/radio-group/context.d.ts +0 -1
- package/dist/components/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-content.vue.d.ts +4 -4
- package/dist/components/slider/context.d.ts +0 -1
- package/dist/components/slider/slider-root.vue.d.ts +1 -1
- package/dist/components/splitter/context.d.ts +0 -1
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/stepper/context.d.ts +0 -1
- package/dist/components/switch/context.d.ts +0 -1
- package/dist/components/table/context.d.ts +0 -1
- package/dist/components/table/table-compact.vue.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +0 -1
- package/dist/components/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/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/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toggle-group/context.d.ts +0 -1
- package/dist/components/toolbar/context.d.ts +0 -1
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/context.d.ts +3 -18
- package/dist/components/tree-menu/tree-menu-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/composables/use-collection.d.ts +3 -14
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-context.d.ts +1 -6
- package/dist/composables/use-context.js +1 -1
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/package.json +4 -2
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +0 -1
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { PaginationUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/pagination/context.d.ts
|
|
7
6
|
declare const providePaginationUi: (ui: _$vue.ComputedRef<Partial<UiClass<PaginationUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<PaginationUiSlot>>>, usePaginationUi: UseUiConsumer<PaginationUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import{useOmitProps as r}from"../../composables/use-props.js";import"../../composables/index.js";import i from"../_icon/icon.js";import a from"../button/button.js";import o from"../input/input-root.js";import s from"../input/input-clear.js";import c from"../input/input-control.js";import{usePasswordUi as l}from"./context.js";import{computed as u,createBlock as d,createCommentVNode as f,createVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,unref as v,withCtx as y}from"vue";const b=m({name:`PasswordCompact`,__name:`password-compact`,props:{
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import{useOmitProps as r}from"../../composables/use-props.js";import"../../composables/index.js";import i from"../_icon/icon.js";import a from"../button/button.js";import o from"../input/input-root.js";import s from"../input/input-clear.js";import c from"../input/input-control.js";import{usePasswordUi as l}from"./context.js";import{computed as u,createBlock as d,createCommentVNode as f,createVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,unref as v,withCtx as y}from"vue";const b=m({name:`PasswordCompact`,__name:`password-compact`,props:{visible:{type:Boolean,default:void 0},visibleProps:{},inputRef:{},clearable:{type:Boolean},controlProps:{},clearProps:{},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`,`clear`,`update:visible`],setup(m,{emit:b}){let x=m,S=b,C=r(x,[`inputRef`,`controlProps`,`clearable`,`clearProps`,`visible`,`visibleProps`]),[w,T]=n(e=>x.inputRef?.(e)),E=t(()=>x.visible,e=>{S(`update:visible`,e)},!1),D=l(),O=e(),k=u(()=>x.clearProps?.[`aria-label`]??O.value.password.clearInput),A=u(()=>x.disabled||x.readonly||x.visibleProps?.disabled||!1),j=u(()=>E.value?O.value.password.hidePassword:O.value.password.showPassword),M=()=>{E.value=!E.value};return(e,t)=>(g(),d(o,h(v(C),{"data-soybean-password":``,"onUpdate:modelValue":t[1]||(t[1]=e=>S(`update:modelValue`,e))}),{default:y(({clear:n,modelValue:r})=>[_(e.$slots,`leading`,{clear:n,modelValue:r,toggle:M,visible:v(E)}),p(c,h(m.controlProps,{ref:v(T),type:v(E)?`text`:`password`}),null,16,[`type`]),m.clearable?_(e.$slots,`clear`,{key:0,clear:n,modelValue:r,toggle:M,visible:v(E)},()=>[p(s,h(m.clearProps,{"aria-label":k.value,onClear:t[0]||(t[0]=e=>S(`clear`,e))}),null,16,[`aria-label`])]):f(`v-if`,!0),_(e.$slots,`trailing`,{clear:n,modelValue:r,toggle:M,visible:v(E)}),_(e.$slots,`visible`,{clear:n,modelValue:r,toggle:M,visible:v(E)},()=>[p(a,h(m.visibleProps,{"data-soybean-password-visible":``,class:v(D).visible,disabled:A.value,"aria-label":j.value,"aria-pressed":v(E),onClick:M}),{default:y(()=>[p(i,{icon:v(E)?`lucide:eye`:`lucide:eye-off`,"aria-hidden":!0},null,8,[`icon`])]),_:1},16,[`class`,`disabled`,`aria-label`,`aria-pressed`])])]),_:3},16))}});export{b as default};
|
|
@@ -4,9 +4,11 @@ import * as _$vue from "vue";
|
|
|
4
4
|
//#region src/components/password/password-compact.vue.d.ts
|
|
5
5
|
type __VLS_Slots = PasswordCompactSlots;
|
|
6
6
|
declare const __VLS_base: _$vue.DefineComponent<PasswordCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
+
clear: (event: PointerEvent) => any;
|
|
7
8
|
"update:modelValue": (value: string) => any;
|
|
8
9
|
"update:visible": (visible: boolean) => any;
|
|
9
10
|
}, string, _$vue.PublicProps, Readonly<PasswordCompactProps> & Readonly<{
|
|
11
|
+
onClear?: ((event: PointerEvent) => any) | undefined;
|
|
10
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
13
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
12
14
|
}>, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { ButtonProps } from "../button/types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { InputCompactEmits, InputCompactProps, InputUiSlot } from "../input/types.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/password/types.d.ts
|
|
6
6
|
/**
|
|
@@ -27,29 +27,11 @@ interface PasswordCompactSlotProps {
|
|
|
27
27
|
/**
|
|
28
28
|
* Properties for the PasswordCompact component.
|
|
29
29
|
*/
|
|
30
|
-
interface PasswordCompactProps extends
|
|
31
|
-
/**
|
|
32
|
-
* Whether to show the clear trigger.
|
|
33
|
-
*
|
|
34
|
-
* @defaultValue false
|
|
35
|
-
*/
|
|
36
|
-
clearable?: boolean;
|
|
30
|
+
interface PasswordCompactProps extends InputCompactProps {
|
|
37
31
|
/**
|
|
38
32
|
* Controlled password visibility.
|
|
39
33
|
*/
|
|
40
34
|
visible?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* The function to set the input element.
|
|
43
|
-
*/
|
|
44
|
-
inputRef?: (el: HTMLInputElement) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Properties forwarded to the control element.
|
|
47
|
-
*/
|
|
48
|
-
controlProps?: InputControlProps;
|
|
49
|
-
/**
|
|
50
|
-
* Properties forwarded to the clear element.
|
|
51
|
-
*/
|
|
52
|
-
clearProps?: InputClearProps;
|
|
53
35
|
/**
|
|
54
36
|
* Properties forwarded to the visible element.
|
|
55
37
|
*/
|
|
@@ -58,7 +40,7 @@ interface PasswordCompactProps extends InputRootProps {
|
|
|
58
40
|
/**
|
|
59
41
|
* Events for the PasswordCompact component.
|
|
60
42
|
*/
|
|
61
|
-
type PasswordCompactEmits =
|
|
43
|
+
type PasswordCompactEmits = InputCompactEmits & {
|
|
62
44
|
/**
|
|
63
45
|
* Emitted when the visible state changes.
|
|
64
46
|
*/
|
|
@@ -5,31 +5,31 @@ import * as _$vue from "vue";
|
|
|
5
5
|
//#region src/components/popconfirm/popconfirm-compact.vue.d.ts
|
|
6
6
|
type __VLS_Slots = PopconfirmCompactSlots;
|
|
7
7
|
declare const __VLS_base: _$vue.DefineComponent<PopconfirmCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
-
cancel: (event: PointerEvent) => any;
|
|
9
8
|
"update:open": (value: boolean) => any;
|
|
10
|
-
|
|
9
|
+
cancel: (event: PointerEvent) => any;
|
|
11
10
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
11
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
13
12
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
14
13
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
15
14
|
openAutoFocus: (event: Event) => any;
|
|
15
|
+
closeAutoFocus: (event: Event) => any;
|
|
16
16
|
confirm: (event: PointerEvent) => any;
|
|
17
17
|
}, string, _$vue.PublicProps, Readonly<PopconfirmCompactProps> & Readonly<{
|
|
18
|
-
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
19
18
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
20
|
-
|
|
19
|
+
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
21
20
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
22
21
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
23
22
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
24
23
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
25
24
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
26
|
onConfirm?: ((event: PointerEvent) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
open: boolean;
|
|
29
28
|
defaultOpen: boolean;
|
|
30
|
-
|
|
31
|
-
modal: boolean;
|
|
29
|
+
open: boolean;
|
|
32
30
|
showCancel: "onlyWarning" | boolean;
|
|
31
|
+
modal: boolean;
|
|
32
|
+
showArrow: boolean;
|
|
33
33
|
showIcon: boolean;
|
|
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 { PopoverUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/popover/context.d.ts
|
|
7
6
|
declare const providePopoverUi: (ui: _$vue.ComputedRef<Partial<UiClass<PopoverUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<PopoverUiSlot>>>, usePopoverUi: UseUiConsumer<PopoverUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -6,23 +6,23 @@ import * as _$vue from "vue";
|
|
|
6
6
|
type __VLS_Slots = PopoverCompactSlots;
|
|
7
7
|
declare const __VLS_base: _$vue.DefineComponent<PopoverCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
8
|
"update:open": (value: boolean) => any;
|
|
9
|
-
closeAutoFocus: (event: Event) => any;
|
|
10
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
11
10
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
12
11
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
13
12
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
14
13
|
openAutoFocus: (event: Event) => any;
|
|
14
|
+
closeAutoFocus: (event: Event) => any;
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<PopoverCompactProps> & Readonly<{
|
|
16
16
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
17
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
17
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
18
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
20
19
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
21
20
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
22
21
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
22
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
open: boolean;
|
|
25
24
|
defaultOpen: boolean;
|
|
25
|
+
open: boolean;
|
|
26
26
|
showArrow: boolean;
|
|
27
27
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_13) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<PopoverPositionerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
|
-
closeAutoFocus: (event: Event) => any;
|
|
12
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
12
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
14
13
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
15
14
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
16
15
|
openAutoFocus: (event: Event) => any;
|
|
16
|
+
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, _$vue.PublicProps, Readonly<PopoverPositionerProps> & Readonly<{
|
|
18
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
18
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
19
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
21
20
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
22
21
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
23
22
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
avoidCollisions: boolean;
|
|
26
26
|
prioritizePosition: boolean;
|
|
@@ -204,7 +204,6 @@ declare const __VLS_base: _$vue.DefineComponent<PopperPositionerProps, {}, {}, {
|
|
|
204
204
|
'aria-valuenow': string | number;
|
|
205
205
|
'aria-valuetext': string;
|
|
206
206
|
placement: Placement$1;
|
|
207
|
-
reference: _$_floating_ui_dom0.ReferenceElement;
|
|
208
207
|
side: _$_floating_ui_utils0.Side;
|
|
209
208
|
sideOffset: number;
|
|
210
209
|
sideFlip: boolean;
|
|
@@ -222,6 +221,7 @@ declare const __VLS_base: _$vue.DefineComponent<PopperPositionerProps, {}, {}, {
|
|
|
222
221
|
updatePositionStrategy: "optimized" | "always";
|
|
223
222
|
disableUpdateOnLayoutShift: boolean;
|
|
224
223
|
prioritizePosition: boolean;
|
|
224
|
+
reference: _$_floating_ui_dom0.ReferenceElement;
|
|
225
225
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
226
226
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
227
227
|
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 { ProgressProviderUiSlot, ProgressUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/progress/context.d.ts
|
|
7
6
|
declare const provideProgressUi: (ui: _$vue.ComputedRef<Partial<UiClass<ProgressUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ProgressUiSlot>>>, useProgressUi: UseUiConsumer<ProgressUiSlot>;
|
|
8
7
|
declare const provideProgressProviderUi: (ui: _$vue.ComputedRef<Partial<UiClass<ProgressProviderUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ProgressProviderUiSlot>>>, useProgressProviderUi: UseUiConsumer<ProgressProviderUiSlot>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { RadioGroupCardUiSlot, RadioGroupUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/radio-group/context.d.ts
|
|
7
6
|
declare const provideRadioGroupUi: (ui: _$vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: UseUiConsumer<RadioGroupUiSlot>;
|
|
8
7
|
declare const provideRadioGroupCardUi: (ui: _$vue.ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>, useRadioGroupCardUi: UseUiConsumer<RadioGroupCardUiSlot>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { ScrollAreaUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/scroll-area/context.d.ts
|
|
7
6
|
declare const provideScrollAreaUi: (ui: _$vue.ComputedRef<Partial<UiClass<ScrollAreaUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ScrollAreaUiSlot>>>, useScrollAreaUi: UseUiConsumer<ScrollAreaUiSlot>;
|
|
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 { SelectUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/select/context.d.ts
|
|
7
6
|
declare const provideSelectUi: (ui: _$vue.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: UseUiConsumer<SelectUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -9,16 +9,16 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, M extends bo
|
|
|
9
9
|
onSelect?: ((event: SelectItemEvent<T>) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
11
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
13
12
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
14
13
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
14
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
15
|
}> & (typeof globalThis extends {
|
|
16
16
|
__VLS_PROPS_FALLBACK: infer P;
|
|
17
17
|
} ? P : {});
|
|
18
18
|
expose: (exposed: {}) => void;
|
|
19
19
|
attrs: any;
|
|
20
20
|
slots: SelectCompactSlots<T, M>;
|
|
21
|
-
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "
|
|
21
|
+
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
22
22
|
}>) => _$vue.VNode & {
|
|
23
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
24
|
};
|
|
@@ -10,18 +10,18 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_22) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: _$vue.DefineComponent<SelectContentProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
13
|
-
closeAutoFocus: (event: Event) => any;
|
|
14
13
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
14
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
15
|
+
closeAutoFocus: (event: Event) => any;
|
|
16
16
|
}, string, _$vue.PublicProps, Readonly<SelectContentProps> & Readonly<{
|
|
17
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
17
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
18
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
19
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
-
position: SelectPosition;
|
|
22
|
-
bodyLock: boolean;
|
|
23
21
|
avoidCollisions: boolean;
|
|
24
22
|
prioritizePosition: boolean;
|
|
23
|
+
position: SelectPosition;
|
|
24
|
+
bodyLock: 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 { SliderUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/slider/context.d.ts
|
|
7
6
|
declare const provideSliderUi: (ui: _$vue.ComputedRef<Partial<UiClass<SliderUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<SliderUiSlot>>>, useSliderUi: UseUiConsumer<SliderUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -21,9 +21,9 @@ declare const __VLS_base: _$vue.DefineComponent<SliderRootProps, {}, {}, {}, {},
|
|
|
21
21
|
max: number;
|
|
22
22
|
min: number;
|
|
23
23
|
orientation: DataOrientation;
|
|
24
|
-
step: number;
|
|
25
24
|
modelValue: number[];
|
|
26
25
|
defaultValue: number[];
|
|
26
|
+
step: number;
|
|
27
27
|
inverted: boolean;
|
|
28
28
|
minStepsBetweenThumbs: number;
|
|
29
29
|
thumbAlignment: SliderThumbAlignment;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { SplitterUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/splitter/context.d.ts
|
|
7
6
|
declare const provideSplitterUi: (ui: _$vue.ComputedRef<Partial<UiClass<SplitterUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<SplitterUiSlot>>>, useSplitterUi: UseUiConsumer<SplitterUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -16,8 +16,8 @@ declare const __VLS_base: _$vue.DefineComponent<SplitterGroupProps, {}, {}, {},
|
|
|
16
16
|
}>, {
|
|
17
17
|
dir: Direction;
|
|
18
18
|
direction: DataOrientation;
|
|
19
|
-
keyboardResizeBy: number;
|
|
20
19
|
defaultLayout: number[];
|
|
20
|
+
keyboardResizeBy: number;
|
|
21
21
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
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 { StepperUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/stepper/context.d.ts
|
|
7
6
|
declare const provideStepperUi: (ui: _$vue.ComputedRef<Partial<UiClass<StepperUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<StepperUiSlot>>>, useStepperUi: UseUiConsumer<StepperUiSlot>;
|
|
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 { SwitchUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/switch/context.d.ts
|
|
7
6
|
declare const provideSwitchUi: (ui: _$vue.ComputedRef<Partial<UiClass<SwitchUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<SwitchUiSlot>>>, useSwitchUi: UseUiConsumer<SwitchUiSlot>;
|
|
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 { TableUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/table/context.d.ts
|
|
7
6
|
declare const provideTableUi: (ui: _$vue.ComputedRef<Partial<UiClass<TableUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TableUiSlot>>>, useTableUi: UseUiConsumer<TableUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -4,10 +4,10 @@ import * as _$vue from "vue";
|
|
|
4
4
|
//#region src/components/table/table-compact.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends TableBaseData = TableBaseData, R extends string | number = string | number, M extends boolean = boolean>(__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<TableCompactProps<T, R, M> & {
|
|
7
|
+
"onUpdate:expanded"?: ((expanded: R[]) => any) | undefined;
|
|
7
8
|
"onUpdate:sortState"?: ((state: TableSortState | undefined) => any) | undefined;
|
|
8
9
|
"onUpdate:filterState"?: ((state: TableFilterState) => any) | undefined;
|
|
9
10
|
"onUpdate:columnWidths"?: ((state: TableColumnWidthState) => any) | undefined;
|
|
10
|
-
"onUpdate:expanded"?: ((expanded: R[]) => any) | undefined;
|
|
11
11
|
"onUpdate:selected"?: ((selected: M extends true ? R[] : R | undefined) => any) | undefined;
|
|
12
12
|
}> & (typeof globalThis extends {
|
|
13
13
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends TableBaseData = TableBaseData, R extends
|
|
|
15
15
|
expose: (exposed: {}) => void;
|
|
16
16
|
attrs: any;
|
|
17
17
|
slots: TableCompactSlots<T>;
|
|
18
|
-
emit: ((evt: "update:
|
|
18
|
+
emit: ((evt: "update:expanded", expanded: R[]) => void) & ((evt: "update:sortState", state: TableSortState | undefined) => void) & ((evt: "update:filterState", state: TableFilterState) => void) & ((evt: "update:columnWidths", state: TableColumnWidthState) => void) & ((evt: "update:selected", selected: M extends true ? R[] : R | undefined) => void);
|
|
19
19
|
}>) => _$vue.VNode & {
|
|
20
20
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
21
21
|
};
|
|
@@ -3,7 +3,6 @@ import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
|
3
3
|
import { TabsUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
5
|
import { MaybeRefOrGetter } from "vue";
|
|
6
|
-
|
|
7
6
|
//#region src/components/tabs/context.d.ts
|
|
8
7
|
declare const provideTabsUi: (ui: _$vue.ComputedRef<Partial<UiClass<TabsUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TabsUiSlot>>>, useTabsUi: UseUiConsumer<TabsUiSlot>;
|
|
9
8
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { TagsInputUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/tags-input/context.d.ts
|
|
7
6
|
declare const provideTagsInputUi: (ui: _$vue.ComputedRef<Partial<UiClass<TagsInputUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TagsInputUiSlot>>>, useTagsInputUi: UseUiConsumer<TagsInputUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -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"./tags-input-clear.js";import r from"./tags-input-control.js";import i from"./tags-input-item-delete.js";import a from"./tags-input-item-text.js";import o from"./tags-input-item.js";import s from"./tags-input-root.js";import{Fragment as c,createBlock as l,createElementBlock as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeProps as h,openBlock as g,renderList as _,renderSlot as v,toHandlers as y,unref as b,withCtx as x}from"vue";const S=f({name:`TagsInputCompact`,__name:`tags-input-compact`,props:{clearable:{type:Boolean},controlProps:{},clearProps:{},itemProps:{},itemTextProps:{},itemDeleteProps:{},dir:{},modelValue:{},defaultValue:{},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},delimiter:{},max:{},displayValue:{type:Function},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(f,{emit:S}){let C=f,w=S,T=t(C,[`clearable`,`controlProps`,`clearProps`,`itemProps`,`itemTextProps`,`itemDeleteProps`]),E=e(w);return(e,t)=>(g(),l(s,m(b(T),y(b(E))),{default:x(({modelValue:t,clear:s})=>[(g(!0),u(c,null,_(t,(t,n)=>(g(),l(o,{key:t,value:t},{default:x(({onDelete:r,displayedValue:o})=>[v(e.$slots,`item`,{value:t,index:n,displayedValue:o,onDelete:r,onClear:s},()=>[d(a),d(i)])]),_:2},1032,[`value`]))),128)),d(r,h(p(f.controlProps)),null,16),d(n,h(p(f.clearProps)),null,16)]),_:3},16))}});export{S as default};
|
|
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"./tags-input-clear.js";import r from"./tags-input-control.js";import i from"./tags-input-item-delete.js";import a from"./tags-input-item-text.js";import o from"./tags-input-item.js";import s from"./tags-input-root.js";import{Fragment as c,createBlock as l,createElementBlock as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeProps as h,openBlock as g,renderList as _,renderSlot as v,toHandlers as y,unref as b,withCtx as x}from"vue";const S=f({name:`TagsInputCompact`,__name:`tags-input-compact`,props:{clearable:{type:Boolean},controlProps:{},clearProps:{},itemProps:{},itemTextProps:{},itemDeleteProps:{},dir:{},modelValue:{},defaultValue:{},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},delimiter:{},max:{},displayValue:{type:Function},id:{},autofocus:{type:Boolean},autocomplete:{},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},type:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(f,{emit:S}){let C=f,w=S,T=t(C,[`clearable`,`controlProps`,`clearProps`,`itemProps`,`itemTextProps`,`itemDeleteProps`]),E=e(w);return(e,t)=>(g(),l(s,m(b(T),y(b(E))),{default:x(({modelValue:t,clear:s})=>[(g(!0),u(c,null,_(t,(t,n)=>(g(),l(o,{key:t,value:t},{default:x(({onDelete:r,displayedValue:o})=>[v(e.$slots,`item`,{value:t,index:n,displayedValue:o,onDelete:r,onClear:s},()=>[d(a),d(i)])]),_:2},1032,[`value`]))),128)),d(r,h(p(f.controlProps)),null,16),d(n,h(p(f.clearProps)),null,16)]),_:3},16))}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{removeAt as t}from"../../shared/object.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import{useDirection as i}from"../config-provider/context.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{useForwardElement as o}from"../../composables/use-forward-element.js";import"../../composables/index.js";import s from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCollectionContext as c,provideTagsInputRootContext as l,useTagsInputUi as u}from"./context.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,defineComponent as h,normalizeClass as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b}from"vue";const x=[`dir`,`data-disabled`,`data-invalid`,`data-has-value`],S=h({name:`TagsInputRoot`,__name:`tags-input-root`,props:{dir:{},modelValue:{default:void 0},defaultValue:{default:()=>[]},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},delimiter:{default:`,`},max:{default:0},displayValue:{},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(h,{emit:S}){let C=h,w=S,T=u(`root`),{getOrderedItems:E,getOrderedElements:D,onContainerElementChange:O}=c(),[k,A]=o(O),j=i(()=>C.dir),M=a(()=>C.modelValue,e=>{w(`update:modelValue`,e)},C.defaultValue??[]),N=y(),P=y(!1),F=d(()=>M.value.length>0),I=d(()=>n(k.value)),L=()=>E(),R=()=>D(),z=()=>{C.disabled||(M.value=[],N.value=void 0,P.value=!1)},B=e=>{if(C.disabled||e<0)return;let n=L()[e];n&&(M.value=t(M.value,e),w(`removeTag`,n.data.value))},V=e=>{if(C.disabled)return!1;let t=e.trim();if(!t)return!1;let n=M.value;if(C.max>0&&n.length>=C.max)return P.value=!0,w(`invalid`,t),!1;let r=n.some(e=>e===t);return!C.duplicate&&r?(P.value=!0,w(`invalid`,t),!1):(P.value=!1,M.value=[...n,t],w(`addTag`,t),!0)},H=t=>{if(C.disabled)return;let n=t.target;if(!n)return;let r=R();if(!r.length){N.value=void 0;return}let i=r.at(-1),a=n.selectionStart===0&&n.selectionEnd===0,o=t.key===`ArrowRight`&&j.value===`ltr`||t.key===`ArrowLeft`&&j.value===`rtl`,s=t.key===`ArrowLeft`&&j.value===`ltr`||t.key===`ArrowRight`&&j.value===`rtl`;switch(t.key){case`Delete`:case`Backspace`:if(!a){N.value=void 0;break}if(N.value){let e=L().findIndex(e=>e.element===N.value),n=N.value===i?r.at(r.indexOf(N.value)-1):r.at(r.indexOf(N.value)+1);B(e),N.value=n,t.preventDefault()}else t.key===`Backspace`&&(N.value=i,t.preventDefault());break;case`Home`:case`End`:case`ArrowLeft`:case`ArrowRight`:if(!a){N.value=void 0;break}if(s&&!N.value)N.value=i,t.preventDefault();else if(o&&N.value===i)N.value=void 0,t.preventDefault();else if(N.value){let n=e(t,N.value,void 0,{itemsArray:r,loop:!1,dir:j.value});n&&(N.value=n)}break;case`ArrowUp`:case`ArrowDown`:N.value&&t.preventDefault();break;default:N.value=void 0;break}};return l({...r(C,[`id`,`autofocus`,`disabled`,`maxlength`,`minlength`,`pattern`,`placeholder`,`readonly`,`addOnPaste`,`addOnTab`,`addOnBlur`,`disabled`,`delimiter`,`max`]),modelValue:M,selectedElement:N,isInvalidInput:P,dir:j,onAddValue:V,onRemoveValue:B,onInputKeydown:H,onClear:z,getItems:L,displayValue:C.displayValue??(e=>e)}),(e,t)=>(_(),m(`div`,{ref:b(A),"data-soybean-tags-input-root":``,class:g(b(T)),role:`group`,dir:b(j),"data-disabled":h.disabled?``:void 0,"data-invalid":P.value?``:void 0,"data-has-value":F.value?``:void 0},[v(e.$slots,`default`,{modelValue:b(M),clear:z}),I.value&&h.name?(_(),f(b(s),{key:0,name:h.name,value:b(M),required:h.required,disabled:h.disabled},null,8,[`name`,`value`,`required`,`disabled`])):p(`v-if`,!0)],10,x))}});export{S as default};
|
|
1
|
+
import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{removeAt as t}from"../../shared/object.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import{useDirection as i}from"../config-provider/context.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{useForwardElement as o}from"../../composables/use-forward-element.js";import"../../composables/index.js";import s from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCollectionContext as c,provideTagsInputRootContext as l,useTagsInputUi as u}from"./context.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,defineComponent as h,normalizeClass as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b}from"vue";const x=[`dir`,`data-disabled`,`data-invalid`,`data-has-value`],S=h({name:`TagsInputRoot`,__name:`tags-input-root`,props:{dir:{},modelValue:{default:void 0},defaultValue:{default:()=>[]},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},delimiter:{default:`,`},max:{default:0},displayValue:{},id:{},autofocus:{type:Boolean},autocomplete:{},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},type:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(h,{emit:S}){let C=h,w=S,T=u(`root`),{getOrderedItems:E,getOrderedElements:D,onContainerElementChange:O}=c(),[k,A]=o(O),j=i(()=>C.dir),M=a(()=>C.modelValue,e=>{w(`update:modelValue`,e)},C.defaultValue??[]),N=y(),P=y(!1),F=d(()=>M.value.length>0),I=d(()=>n(k.value)),L=()=>E(),R=()=>D(),z=()=>{C.disabled||(M.value=[],N.value=void 0,P.value=!1)},B=e=>{if(C.disabled||e<0)return;let n=L()[e];n&&(M.value=t(M.value,e),w(`removeTag`,n.data.value))},V=e=>{if(C.disabled)return!1;let t=e.trim();if(!t)return!1;let n=M.value;if(C.max>0&&n.length>=C.max)return P.value=!0,w(`invalid`,t),!1;let r=n.some(e=>e===t);return!C.duplicate&&r?(P.value=!0,w(`invalid`,t),!1):(P.value=!1,M.value=[...n,t],w(`addTag`,t),!0)},H=t=>{if(C.disabled)return;let n=t.target;if(!n)return;let r=R();if(!r.length){N.value=void 0;return}let i=r.at(-1),a=n.selectionStart===0&&n.selectionEnd===0,o=t.key===`ArrowRight`&&j.value===`ltr`||t.key===`ArrowLeft`&&j.value===`rtl`,s=t.key===`ArrowLeft`&&j.value===`ltr`||t.key===`ArrowRight`&&j.value===`rtl`;switch(t.key){case`Delete`:case`Backspace`:if(!a){N.value=void 0;break}if(N.value){let e=L().findIndex(e=>e.element===N.value),n=N.value===i?r.at(r.indexOf(N.value)-1):r.at(r.indexOf(N.value)+1);B(e),N.value=n,t.preventDefault()}else t.key===`Backspace`&&(N.value=i,t.preventDefault());break;case`Home`:case`End`:case`ArrowLeft`:case`ArrowRight`:if(!a){N.value=void 0;break}if(s&&!N.value)N.value=i,t.preventDefault();else if(o&&N.value===i)N.value=void 0,t.preventDefault();else if(N.value){let n=e(t,N.value,void 0,{itemsArray:r,loop:!1,dir:j.value});n&&(N.value=n)}break;case`ArrowUp`:case`ArrowDown`:N.value&&t.preventDefault();break;default:N.value=void 0;break}};return l({...r(C,[`id`,`autofocus`,`disabled`,`maxlength`,`minlength`,`pattern`,`placeholder`,`readonly`,`addOnPaste`,`addOnTab`,`addOnBlur`,`disabled`,`delimiter`,`max`]),modelValue:M,selectedElement:N,isInvalidInput:P,dir:j,onAddValue:V,onRemoveValue:B,onInputKeydown:H,onClear:z,getItems:L,displayValue:C.displayValue??(e=>e)}),(e,t)=>(_(),m(`div`,{ref:b(A),"data-soybean-tags-input-root":``,class:g(b(T)),role:`group`,dir:b(j),"data-disabled":h.disabled?``:void 0,"data-invalid":P.value?``:void 0,"data-has-value":F.value?``:void 0},[v(e.$slots,`default`,{modelValue:b(M),clear:z}),I.value&&h.name?(_(),f(b(s),{key:0,name:h.name,value:b(M),required:h.required,disabled:h.disabled},null,8,[`name`,`value`,`required`,`disabled`])):p(`v-if`,!0)],10,x))}});export{S as default};
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { TextareaUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/textarea/context.d.ts
|
|
7
6
|
declare const provideTextareaUi: (ui: _$vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>, useTextareaUi: UseUiConsumer<TextareaUiSlot>;
|
|
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 { TimeFieldUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/time-field/context.d.ts
|
|
7
6
|
declare const provideTimeFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<TimeFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TimeFieldUiSlot>>>, useTimeFieldUi: UseUiConsumer<TimeFieldUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: _$vue.DefineComponent<TimeFieldRootProps, {}, {}, {},
|
|
|
13
13
|
}>, {
|
|
14
14
|
placeholder: TimeValue;
|
|
15
15
|
disabled: boolean;
|
|
16
|
-
step: DateStep;
|
|
17
16
|
defaultValue: TimeValue;
|
|
17
|
+
step: DateStep;
|
|
18
18
|
readonly: boolean;
|
|
19
19
|
defaultPlaceholder: TimeValue;
|
|
20
20
|
granularity: TimeGranularity;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { TimeRangeFieldUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/time-range-field/context.d.ts
|
|
7
6
|
declare const provideTimeRangeFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<TimeRangeFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TimeRangeFieldUiSlot>>>, useTimeRangeFieldUi: UseUiConsumer<TimeRangeFieldUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -17,16 +17,16 @@ declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldRootProps, {}, {},
|
|
|
17
17
|
}>, {
|
|
18
18
|
placeholder: TimeValue;
|
|
19
19
|
disabled: boolean;
|
|
20
|
-
step: DateStep;
|
|
21
20
|
defaultValue: TimeRange;
|
|
21
|
+
step: DateStep;
|
|
22
22
|
readonly: boolean;
|
|
23
23
|
defaultPlaceholder: TimeValue;
|
|
24
24
|
granularity: TimeGranularity;
|
|
25
25
|
hourCycle: 12 | 24;
|
|
26
26
|
hideTimeZone: boolean;
|
|
27
|
+
isTimeUnavailable: TimeMatcher;
|
|
27
28
|
startName: string;
|
|
28
29
|
endName: string;
|
|
29
|
-
isTimeUnavailable: TimeMatcher;
|
|
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 { ToastUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/toast/context.d.ts
|
|
7
6
|
declare const provideToastUi: (ui: _$vue.ComputedRef<Partial<UiClass<ToastUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ToastUiSlot>>>, useToastUi: UseUiConsumer<ToastUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"
|
|
1
|
+
import{keysOf as e}from"@soybeanjs/utils";const t={gap:`--gap`,offsetTop:`--offset-top`,offsetRight:`--offset-right`,offsetBottom:`--offset-bottom`,offsetLeft:`--offset-left`,mobileOffsetTop:`--mobile-offset-top`,mobileOffsetRight:`--mobile-offset-right`,mobileOffsetBottom:`--mobile-offset-bottom`,mobileOffsetLeft:`--mobile-offset-left`,frontHeight:`--front-toast-height`},n={index:`--index`,offset:`--offset`,beforeIndex:`--toasts-before`,zIndex:`--z-index`,swipeAmountX:`--swipe-amount-x`,swipeAmountY:`--swipe-amount-y`,swipeDirection:`--swipe-direction`,swipeOut:`--swipe-out`,initialHeight:`--initial-height`},r=`top-right`,i=4e3,a={info:`lucide:info`,success:`lucide:circle-check`,warning:`lucide:circle-alert`,error:`lucide:circle-x`,close:`lucide:x`,loading:`svg-spinners:270-ring`},o=[`top-right`,`top-center`,`top-left`,`bottom-right`,`bottom-center`,`bottom-left`],s={left:`left`,right:`right`,top:`up`,bottom:`down`};function c(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(s[t]),n&&r.push(s[n]),r}const l=n=>{let r={top:t.offsetTop,right:t.offsetRight,bottom:t.offsetBottom,left:t.offsetLeft},i={top:t.mobileOffsetTop,right:t.mobileOffsetRight,bottom:t.mobileOffsetBottom,left:t.mobileOffsetLeft},a={};return e(r).forEach(e=>{let t=(typeof n==`number`?n:n[e])??24;a[r[e]]=`${t}px`,a[i[e]]=`calc(${t}px * 0.67)`}),a},u=e=>{if(!e)return{x:0,y:0};let t=e.style.getPropertyValue(n.swipeAmountX),r=e.style.getPropertyValue(n.swipeAmountY);return{x:Number(t.replace(`px`,``))||0,y:Number(r.replace(`px`,``))||0}},d=(e,t)=>{e&&(e.style.setProperty(n.swipeAmountX,`${t.x}px`),e.style.setProperty(n.swipeAmountY,`${t.y}px`))},f=e=>{e&&d(e,{x:0,y:0})},p=e=>`dismiss`in e&&e.dismiss===!0,m=e=>[`altKey`,`ctrlKey`,`metaKey`,`shiftKey`].includes(e);export{o as ALL_TOAST_POSITIONS,r as DEFAULT_POSITION,a as ICONS,i as TOAST_LIFETIME,c as getDefaultSwipeDirections,u as getSwipeAmount,m as isModifierHotkey,p as isToastDismiss,f as resetSwipeAmount,l as resolveOffset,d as setSwipeAmount,n as toastCssVars,t as toasterCssVars};
|
|
@@ -10,10 +10,10 @@ declare const __VLS_base: _$vue.DefineComponent<ToasterProps, {}, {}, {}, {}, _$
|
|
|
10
10
|
offset: ToastOffset;
|
|
11
11
|
duration: number;
|
|
12
12
|
position: ToastPosition;
|
|
13
|
-
hotkey: string[];
|
|
14
|
-
containerAriaLabel: string;
|
|
15
13
|
gap: number;
|
|
16
14
|
visibleCounts: number;
|
|
15
|
+
hotkey: string[];
|
|
16
|
+
containerAriaLabel: string;
|
|
17
17
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
19
|
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 { ToggleGroupUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/toggle-group/context.d.ts
|
|
7
6
|
declare const provideToggleGroupUi: (ui: _$vue.ComputedRef<Partial<UiClass<ToggleGroupUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ToggleGroupUiSlot>>>, useToggleGroupUi: UseUiConsumer<ToggleGroupUiSlot>;
|
|
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 { ToolbarUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/toolbar/context.d.ts
|
|
7
6
|
declare const provideToolbarUi: (ui: _$vue.ComputedRef<Partial<UiClass<ToolbarUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ToolbarUiSlot>>>, useToolbarUi: UseUiConsumer<ToolbarUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: _$vue.DefineComponent<TooltipCompactProps, {}, {}, {},
|
|
|
13
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
14
14
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
open: boolean;
|
|
17
16
|
defaultOpen: boolean;
|
|
17
|
+
open: boolean;
|
|
18
18
|
showArrow: boolean;
|
|
19
19
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: _$vue.DefineComponent<TooltipRootProps, {}, {}, {}, {}
|
|
|
13
13
|
}, string, _$vue.PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
14
14
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
open: boolean;
|
|
17
16
|
defaultOpen: boolean;
|
|
17
|
+
open: boolean;
|
|
18
18
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,6 +2,7 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { TreeMenuRootContextParams, TreeMenuUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
+
import * as _$_soybeanjs_hooks0 from "@soybeanjs/hooks";
|
|
5
6
|
|
|
6
7
|
//#region src/components/tree-menu/context.d.ts
|
|
7
8
|
declare const provideTreeMenuRootContext: (params: TreeMenuRootContextParams) => {
|
|
@@ -12,7 +13,7 @@ declare const provideTreeMenuRootContext: (params: TreeMenuRootContextParams) =>
|
|
|
12
13
|
modelValue: _$vue.ShallowRef<string>;
|
|
13
14
|
expanded: _$vue.ShallowRef<string[]>;
|
|
14
15
|
collapsed: _$vue.ShallowRef<boolean>;
|
|
15
|
-
}, useTreeMenuRootContext: <
|
|
16
|
+
}, useTreeMenuRootContext: _$_soybeanjs_hooks0.ContextConsumer<{
|
|
16
17
|
onModelValueChange: (value: string) => void;
|
|
17
18
|
onExpandedChange: (value: string[]) => void;
|
|
18
19
|
onExpandedToggle: (value: string) => void;
|
|
@@ -20,23 +21,7 @@ declare const provideTreeMenuRootContext: (params: TreeMenuRootContextParams) =>
|
|
|
20
21
|
modelValue: _$vue.ShallowRef<string>;
|
|
21
22
|
expanded: _$vue.ShallowRef<string[]>;
|
|
22
23
|
collapsed: _$vue.ShallowRef<boolean>;
|
|
23
|
-
}
|
|
24
|
-
onModelValueChange: (value: string) => void;
|
|
25
|
-
onExpandedChange: (value: string[]) => void;
|
|
26
|
-
onExpandedToggle: (value: string) => void;
|
|
27
|
-
onCollapsedChange: (value: boolean) => void;
|
|
28
|
-
modelValue: _$vue.ShallowRef<string>;
|
|
29
|
-
expanded: _$vue.ShallowRef<string[]>;
|
|
30
|
-
collapsed: _$vue.ShallowRef<boolean>;
|
|
31
|
-
} | null : {
|
|
32
|
-
onModelValueChange: (value: string) => void;
|
|
33
|
-
onExpandedChange: (value: string[]) => void;
|
|
34
|
-
onExpandedToggle: (value: string) => void;
|
|
35
|
-
onCollapsedChange: (value: boolean) => void;
|
|
36
|
-
modelValue: _$vue.ShallowRef<string>;
|
|
37
|
-
expanded: _$vue.ShallowRef<string[]>;
|
|
38
|
-
collapsed: _$vue.ShallowRef<boolean>;
|
|
39
|
-
};
|
|
24
|
+
}>;
|
|
40
25
|
declare const provideTreeMenuUi: (ui: _$vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>, useTreeMenuUi: UseUiConsumer<TreeMenuUiSlot>;
|
|
41
26
|
//#endregion
|
|
42
27
|
export { provideTreeMenuRootContext, provideTreeMenuUi, useTreeMenuRootContext };
|