@soybeanjs/headless 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/context.d.ts +0 -1
- package/dist/components/affix/context.d.ts +0 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +0 -1
- package/dist/components/anchor/context.d.ts +0 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/context.d.ts +0 -1
- package/dist/components/avatar/context.d.ts +0 -1
- package/dist/components/badge/context.d.ts +0 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/context.d.ts +0 -1
- package/dist/components/calendar/context.d.ts +0 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +3 -3
- package/dist/components/calendar-range/context.d.ts +0 -1
- package/dist/components/checkbox/context.d.ts +0 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +1 -1
- package/dist/components/collapsible/context.d.ts +0 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-area/context.d.ts +0 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-field/context.d.ts +0 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +9 -9
- package/dist/components/color-picker/color-picker-root.vue.d.ts +5 -5
- package/dist/components/color-picker/context.d.ts +0 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
- package/dist/components/color-slider/context.d.ts +0 -1
- package/dist/components/color-swatch-picker/context.d.ts +0 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-content.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/context.d.ts +0 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/date-field/context.d.ts +0 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +12 -12
- package/dist/components/date-range-field/context.d.ts +0 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +11 -11
- package/dist/components/dialog/context.d.ts +0 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +9 -9
- package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/editable/context.d.ts +0 -1
- package/dist/components/editable/editable-root.vue.d.ts +1 -1
- package/dist/components/form/context.d.ts +0 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/input/context.d.ts +0 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-compact.vue.d.ts +2 -2
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/types.d.ts +16 -2
- package/dist/components/input-number/context.d.ts +0 -1
- package/dist/components/input-number/input-number-compact.js +1 -1
- package/dist/components/input-number/input-number-compact.vue.d.ts +2 -2
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/types.d.ts +6 -2
- package/dist/components/input-otp/context.d.ts +0 -1
- package/dist/components/layout/context.d.ts +0 -1
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/layout-sidebar.vue.d.ts +3 -3
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/menu/context.d.ts +0 -1
- package/dist/components/menu/hooks.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +4 -4
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
- package/dist/components/menubar/context.d.ts +0 -1
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +4 -4
- package/dist/components/menubar/menubar-content.vue.d.ts +4 -4
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/context.d.ts +0 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
- package/dist/components/page-tabs/context.d.ts +0 -1
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/pagination/context.d.ts +0 -1
- package/dist/components/password/password-compact.js +1 -1
- package/dist/components/password/password-compact.vue.d.ts +2 -0
- package/dist/components/password/types.d.ts +3 -21
- package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +5 -5
- package/dist/components/popover/context.d.ts +0 -1
- package/dist/components/popover/popover-compact.vue.d.ts +3 -3
- package/dist/components/popover/popover-positioner.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/progress/context.d.ts +0 -1
- package/dist/components/radio-group/context.d.ts +0 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/scroll-area/context.d.ts +0 -1
- package/dist/components/select/context.d.ts +0 -1
- package/dist/components/select/select-compact.vue.d.ts +3 -3
- package/dist/components/select/select-content.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/slider/context.d.ts +0 -1
- package/dist/components/splitter/context.d.ts +0 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +4 -4
- package/dist/components/stepper/context.d.ts +0 -1
- package/dist/components/switch/context.d.ts +0 -1
- package/dist/components/table/context.d.ts +0 -1
- package/dist/components/table/table-compact.vue.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +0 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tags-input/context.d.ts +0 -1
- package/dist/components/tags-input/tags-input-compact.js +1 -1
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/textarea/context.d.ts +0 -1
- package/dist/components/textarea/textarea-compact.vue.d.ts +2 -2
- package/dist/components/time-field/context.d.ts +0 -1
- package/dist/components/time-range-field/context.d.ts +0 -1
- package/dist/components/toast/context.d.ts +0 -1
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +1 -1
- package/dist/components/toggle-group/context.d.ts +0 -1
- package/dist/components/toolbar/context.d.ts +0 -1
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +1 -1
- package/dist/components/tree-menu/context.d.ts +3 -18
- package/dist/components/tree-menu/tree-menu-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/composables/use-collection.d.ts +3 -14
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-context.d.ts +1 -6
- package/dist/composables/use-context.js +1 -1
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/package.json +4 -2
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import"../../composables/index.js";import t from"../_icon/icon.js";import{useCommonSlotNames as n}from"./shared.js";import{useNavigationMenuUi as r}from"./context.js";import i from"./navigation-menu-item-slot-compact.js";import a from"./navigation-menu-sub-option-compact.js";import o from"./navigation-menu-content.js";import s from"./navigation-menu-item.js";import c from"./navigation-menu-link.js";import l from"./navigation-menu-sub-list.js";import u from"./navigation-menu-trigger.js";import{Fragment as d,computed as f,createBlock as p,createElementBlock as m,createElementVNode as h,createSlots as g,createVNode as _,defineComponent as v,guardReactiveProps as y,mergeProps as b,normalizeClass as x,normalizeProps as S,openBlock as C,renderList as w,renderSlot as T,resolveDynamicComponent as E,toDisplayString as D,toHandlers as O,unref as k,useSlots as A,withCtx as j}from"vue";import{keysOf as M}from"@soybeanjs/utils";const N=v({name:`NavigationMenuOptionCompact`,__name:`navigation-menu-option-compact`,props:{item:{},itemProps:{},linkProps:{},triggerProps:{},contentProps:{},viewportProps:{},indicatorProps:{},listProps:{},subListProps:{},subItemProps:{}},emits:[`update:modelValue`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`select`],setup(v,{emit:N}){let P=v,F=N,I=A(),L=e(F),R=f(()=>M(I)),z=n(I),B=r(),V=f(()=>!!(P.item.to||P.item.href)),H=f(()=>V.value?{...P.linkProps,disabled:P.item.disabled,to:P.item.to,href:P.item.href,target:P.item.target,external:P.item.external}:{});return(e,n)=>(C(),p(s,b(v.itemProps,{value:v.item.value}),{default:j(()=>[v.item.children?.length?(C(),m(d,{key:1},[_(u,b(v.triggerProps,{disabled:v.item.disabled,"as-child":V.value}),{default:j(()=>[(C(),p(E(V.value?c:`template`),b(H.value,{onSelect:n[1]||(n[1]=e=>F(`select`,e))}),{default:j(()=>[_(i,{icon:v.item.icon},g({"trigger-icon":j(()=>[T(e.$slots,`item-trigger-icon`,{item:v.item},()=>[_(t,{icon:`lucide:chevron-down`,class:x(k(B).triggerIcon)},null,8,[`class`])])]),default:j(()=>[h(`span`,null,D(v.item.label),1)]),_:2},[w(k(z),t=>({name:t,fn:j(()=>[T(e.$slots,t,{item:v.item,isTrigger:!0})])}))]),1032,[`icon`])]),_:3},16))]),_:3},16,[`disabled`,`as-child`]),_(o,b(v.contentProps,O(k(L))),{default:j(()=>[_(l,S(y(v.subListProps)),{default:j(()=>[(C(!0),m(d,null,w(v.item.children,t=>(C(),p(a,{key:t.value,"sub-item":t,"sub-item-props":v.subItemProps,onSelect:n[2]||(n[2]=e=>F(`select`,e))},g({"item-children":j(t=>[T(e.$slots,`item-children`,{item:t.item})]),_:2},[w(R.value,n=>({name:n,fn:j(()=>[T(e.$slots,n,{item:t})])}))]),1032,[`sub-item`,`sub-item-props`]))),128))]),_:3},16)]),_:3},16)],64)):(C(),p(c,b({key:0},H.value,{onSelect:n[0]||(n[0]=e=>F(`select`,e))}),{default:j(({isHref:n})=>[_(i,{icon:v.item.icon},g({default:j(()=>[h(`span`,null,D(v.item.label),1)]),_:2},[w(k(z),t=>({name:t,fn:j(()=>[T(e.$slots,t,{item:v.item})])})),n?{name:`link-icon`,fn:j(()=>[T(e.$slots,`item-link-icon`,{item:v.item},()=>[_(t,{icon:`lucide:arrow-up-right`,class:x(k(B).linkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`])]),_:3},16))]),_:3},16,[`value`]))}});export{N 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 { PageTabsUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/page-tabs/context.d.ts
|
|
7
6
|
declare const providePageTabsUi: (ui: _$vue.ComputedRef<Partial<UiClass<PageTabsUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<PageTabsUiSlot>>>, usePageTabsUi: UseUiConsumer<PageTabsUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -8,8 +8,8 @@ declare const __VLS_export: <T extends PageTabsOptionData = PageTabsOptionData>(
|
|
|
8
8
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
9
|
onClick?: ((tab: T) => any) | undefined;
|
|
10
10
|
onClose?: ((tab: T) => any) | undefined;
|
|
11
|
-
onPin?: ((tab: T) => any) | undefined;
|
|
12
11
|
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
|
+
onPin?: ((tab: T) => any) | undefined;
|
|
13
13
|
onSelectContextMenu?: ((menu: PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
14
14
|
}> & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -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};
|
|
@@ -5,9 +5,11 @@ import * as _$vue from "vue";
|
|
|
5
5
|
type __VLS_Slots = PasswordCompactSlots;
|
|
6
6
|
declare const __VLS_base: _$vue.DefineComponent<PasswordCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (value: string) => any;
|
|
8
|
+
clear: (event: PointerEvent) => any;
|
|
8
9
|
"update:visible": (visible: boolean) => any;
|
|
9
10
|
}, string, _$vue.PublicProps, Readonly<PasswordCompactProps> & Readonly<{
|
|
10
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
onClear?: ((event: PointerEvent) => any) | undefined;
|
|
11
13
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
12
14
|
}>, {
|
|
13
15
|
visible: boolean;
|
|
@@ -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,29 +5,29 @@ 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
|
-
closeAutoFocus: (event: Event) => any;
|
|
11
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
10
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
13
11
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
14
12
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
15
13
|
openAutoFocus: (event: Event) => any;
|
|
14
|
+
closeAutoFocus: (event: Event) => any;
|
|
15
|
+
cancel: (event: PointerEvent) => 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
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
21
19
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
22
20
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
23
21
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
24
22
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
25
23
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
|
+
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
26
26
|
onConfirm?: ((event: PointerEvent) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
open: boolean;
|
|
29
|
-
defaultOpen: boolean;
|
|
30
29
|
showArrow: boolean;
|
|
30
|
+
defaultOpen: boolean;
|
|
31
31
|
modal: boolean;
|
|
32
32
|
showCancel: "onlyWarning" | boolean;
|
|
33
33
|
showIcon: boolean;
|
|
@@ -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,24 +6,24 @@ 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
24
|
open: boolean;
|
|
25
|
-
defaultOpen: boolean;
|
|
26
25
|
showArrow: boolean;
|
|
26
|
+
defaultOpen: boolean;
|
|
27
27
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -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>;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_base: _$vue.DefineComponent<RovingFocusGroupProps, {
|
|
|
18
18
|
"onUpdate:currentTabStopId"?: ((value: string | null | undefined) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
orientation: DataOrientation;
|
|
21
|
-
loop: boolean;
|
|
22
21
|
preventScrollOnEntryFocus: boolean;
|
|
22
|
+
loop: boolean;
|
|
23
23
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
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 { 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
|
|
@@ -7,18 +7,18 @@ import * as _$vue from "vue";
|
|
|
7
7
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, 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<SelectCompactProps<T, M> & {
|
|
9
9
|
onSelect?: ((event: SelectItemEvent<T>) => any) | undefined;
|
|
10
|
-
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
11
10
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
-
|
|
11
|
+
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => 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:
|
|
21
|
+
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => 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;
|
|
@@ -5,8 +5,8 @@ import * as _$vue from "vue";
|
|
|
5
5
|
//#region src/components/select/select-root.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
|
|
8
|
-
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
}) => any;
|
|
20
20
|
};
|
|
21
|
-
emit: ((evt: "update:
|
|
21
|
+
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
|
|
22
22
|
}>) => _$vue.VNode & {
|
|
23
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
24
|
};
|
|
@@ -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
|
|
@@ -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
|
|
@@ -24,19 +24,19 @@ declare const __VLS_base: _$vue.DefineComponent<SplitterPanelProps, {
|
|
|
24
24
|
isExpanded: _$vue.ComputedRef<boolean>;
|
|
25
25
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
26
26
|
resize: (size: number, prevSize: number | undefined) => any;
|
|
27
|
-
collapse: () => any;
|
|
28
27
|
expand: () => any;
|
|
28
|
+
collapse: () => any;
|
|
29
29
|
}, string, _$vue.PublicProps, Readonly<SplitterPanelProps> & Readonly<{
|
|
30
30
|
onResize?: ((size: number, prevSize: number | undefined) => any) | undefined;
|
|
31
|
-
onCollapse?: (() => any) | undefined;
|
|
32
31
|
onExpand?: (() => any) | undefined;
|
|
32
|
+
onCollapse?: (() => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
collapsible: boolean;
|
|
35
35
|
order: number;
|
|
36
36
|
defaultSize: number;
|
|
37
|
-
collapsedSize: number;
|
|
38
|
-
maxSize: number;
|
|
39
37
|
minSize: number;
|
|
38
|
+
maxSize: number;
|
|
39
|
+
collapsedSize: number;
|
|
40
40
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
42
|
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
|
|
@@ -17,9 +17,9 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, _$v
|
|
|
17
17
|
}>, {
|
|
18
18
|
orientation: DataOrientation;
|
|
19
19
|
modelValue: DefinedValue | null;
|
|
20
|
-
unmountOnHide: boolean;
|
|
21
20
|
loop: boolean;
|
|
22
21
|
activationMode: TabsActivationMode;
|
|
22
|
+
unmountOnHide: boolean;
|
|
23
23
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
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 { 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
|
|
@@ -4,11 +4,11 @@ import * as _$vue from "vue";
|
|
|
4
4
|
//#region src/components/textarea/textarea-compact.vue.d.ts
|
|
5
5
|
type __VLS_Slots = TextareaCompactSlots;
|
|
6
6
|
declare const __VLS_base: _$vue.DefineComponent<TextareaCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
-
clear: (event: PointerEvent) => any;
|
|
8
7
|
"update:modelValue": (value: string) => any;
|
|
8
|
+
clear: (event: PointerEvent) => any;
|
|
9
9
|
}, string, _$vue.PublicProps, Readonly<TextareaCompactProps> & Readonly<{
|
|
10
|
-
onClear?: ((event: PointerEvent) => any) | undefined;
|
|
11
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
onClear?: ((event: PointerEvent) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
14
|
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 { 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
|
|
@@ -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
|
|
@@ -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,9 +10,9 @@ declare const __VLS_base: _$vue.DefineComponent<ToasterProps, {}, {}, {}, {}, _$
|
|
|
10
10
|
offset: ToastOffset;
|
|
11
11
|
duration: number;
|
|
12
12
|
position: ToastPosition;
|
|
13
|
+
gap: number;
|
|
13
14
|
hotkey: string[];
|
|
14
15
|
containerAriaLabel: string;
|
|
15
|
-
gap: number;
|
|
16
16
|
visibleCounts: number;
|
|
17
17
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|