@soybeanjs/headless 0.25.4 → 0.26.0
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/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-compact.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +0 -1
- package/dist/components/config-provider/types.d.ts +0 -6
- package/dist/components/date-field/date-field-root.vue.d.ts +3 -3
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +3 -3
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +3 -3
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +3 -3
- package/dist/components/dialog/dialog-compact.vue.d.ts +1 -1
- package/dist/components/hover-card/hover-card-compact.js +1 -1
- package/dist/components/hover-card/hover-card-root.js +1 -1
- package/dist/components/hover-card/types.d.ts +2 -2
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +3 -3
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm-compact.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/types.d.ts +2 -2
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-popup.js +1 -1
- package/dist/components/popper/popper-root.js +1 -1
- package/dist/components/popper/popper-root.vue.d.ts +3 -1
- package/dist/components/popper/types.d.ts +11 -2
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +3 -3
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +4 -4
- package/dist/components/toast/toaster.vue.d.ts +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip-compact.js +1 -1
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/types.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-tooltip-compact.js +1 -0
- package/dist/components/tree-menu/types.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
- package/dist/date/utils.d.ts +1 -1
- package/dist/shared/env.d.ts +2 -1
- package/dist/shared/env.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{providePopoverRootContext as r}from"./context.js";import{createBlock as i,defineComponent as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=a({name:`PopoverRoot`,inheritAttrs:!1,__name:`popover-root`,props:{disabled:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`],setup(a,{emit:u}){let d=a,f=u,p=t(()=>d.open,e=>{f(`update:open`,e)},d.defaultOpen),m=()=>{p.value=!1};return r({...e(d,[`modal`,`disabled`]),open:p}),(e,t)=>(o(),i(c(n),
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{providePopoverRootContext as r}from"./context.js";import{createBlock as i,defineComponent as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=a({name:`PopoverRoot`,inheritAttrs:!1,__name:`popover-root`,props:{disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`],setup(a,{emit:u}){let d=a,f=u,p=t(()=>d.open,e=>{f(`update:open`,e)},d.defaultOpen),m=()=>{p.value=!1};return r({...e(d,[`modal`,`disabled`]),open:p}),(e,t)=>(o(),i(c(n),{dir:a.dir},{default:l(()=>[s(e.$slots,`default`,{open:c(p),close:m})]),_:3},8,[`dir`]))}});export{u as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { DismissableLayerEmits, FocusScopeEmits, ForceMountProps } from "../../types/component.js";
|
|
3
3
|
import { ButtonProps } from "../button/types.js";
|
|
4
|
-
import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps, PopperUiSlot } from "../popper/types.js";
|
|
4
|
+
import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps, PopperRootProps, PopperUiSlot } from "../popper/types.js";
|
|
5
5
|
import { PortalProps } from "../portal/types.js";
|
|
6
6
|
import { DialogBaseProps, DialogRootEmits } from "../dialog/types.js";
|
|
7
7
|
import { ShallowRef } from "vue";
|
|
@@ -10,7 +10,7 @@ import { ShallowRef } from "vue";
|
|
|
10
10
|
/**
|
|
11
11
|
* Properties for the PopoverRoot component.
|
|
12
12
|
*/
|
|
13
|
-
interface PopoverRootProps extends DialogBaseProps {
|
|
13
|
+
interface PopoverRootProps extends PopperRootProps, DialogBaseProps {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the component is disabled.
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{shallowRef as n}from"vue";const[r,i]=e(`PopperRoot`,
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{shallowRef as n}from"vue";const[r,i]=e(`PopperRoot`,e=>{let t=n(),r=e=>{t.value=e},i=n(),a=e=>{i.value=e};return{...e,popupElement:t,onPopupElementChange:r,anchorElement:i,onAnchorElementChange:a}}),[a,o]=e(`PopperPositioner`,e=>{let t=n(null),r=e=>{t.value=e??null};return{...e,arrowElement:t,onArrowElementChange:r}}),[s,c]=t(`PopperUi`);export{a as providePopperPositionerContext,r as providePopperRootContext,s as providePopperUi,o as usePopperPositionerContext,i as usePopperRootContext,c as usePopperUi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{usePopperRootContext as r,usePopperUi as i}from"./context.js";import{createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderSlot as l,unref as u,watchEffect as d,withCtx as f}from"vue";const p=o({name:`PopperAnchor`,__name:`popper-anchor`,props:{reference:{},asChild:{type:Boolean},as:{}},setup(o){let p=o,m=t(p,[`reference`]),h=i(`anchor`),{onAnchorElementChange:
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{usePopperRootContext as r,usePopperUi as i}from"./context.js";import{createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderSlot as l,unref as u,watchEffect as d,withCtx as f}from"vue";const p=o({name:`PopperAnchor`,__name:`popper-anchor`,props:{reference:{},asChild:{type:Boolean},as:{}},setup(o){let p=o,m=t(p,[`reference`]),h=i(`anchor`),{dir:g,onAnchorElementChange:_}=r(`PopperAnchor`),[v,y]=e(e=>{p.reference||_(e)});return d(()=>{p.reference&&_(p.reference)}),(e,t)=>(c(),a(u(n),s(u(m),{ref:u(y),"data-soybean-popper-anchor":``,class:u(h),dir:u(g)}),{default:f(()=>[l(e.$slots,`default`)]),_:3},16,[`class`,`dir`]))}});export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{usePopperPositionerContext as t,usePopperRootContext as n,usePopperUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,unref as d}from"vue";const f=[`data-side`,`data-align`],p=o({name:`PopperPopup`,__name:`popper-popup`,setup(o){let p=r(`popup`),{onPopupElementChange:
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{usePopperPositionerContext as t,usePopperRootContext as n,usePopperUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,unref as d}from"vue";const f=[`data-side`,`data-align`,`dir`],p=o({name:`PopperPopup`,__name:`popper-popup`,setup(o){let p=r(`popup`),{dir:m,onPopupElementChange:h}=n(`PopperPopup`),{placedSide:g,placedAlign:_,isPositioned:v}=t(`PopperPopup`),[y,b]=e(h),x=i(()=>({animation:v.value?void 0:`none`}));return(e,t)=>(l(),a(`div`,{ref:d(b),class:s(d(p)),"data-soybean-popper-popup":``,"data-side":d(g),"data-align":d(_),dir:d(m),style:c(x.value)},[u(e.$slots,`default`)],14,f))}});export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useDirection as e}from"../config-provider/context.js";import{providePopperRootContext as t}from"./context.js";import{defineComponent as n,renderSlot as r}from"vue";const i=n({name:`PopperRoot`,inheritAttrs:!1,__name:`popper-root`,props:{dir:{}},setup(n){let i=n;return t({dir:e(()=>i.dir)}),(e,t)=>r(e.$slots,`default`)}});export{i as default};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { PopperRootProps } from "./types.js";
|
|
2
|
+
|
|
1
3
|
//#region src/components/popper/popper-root.vue.d.ts
|
|
2
4
|
declare var __VLS_1: {};
|
|
3
5
|
type __VLS_Slots = {} & {
|
|
4
6
|
default?: (props: typeof __VLS_1) => any;
|
|
5
7
|
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<PopperRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PopperRootProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
10
|
declare const _default: typeof __VLS_export;
|
|
9
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { Align, Placement as Placement$1, UiClass } from "../../types/common.js";
|
|
1
|
+
import { Align, Direction, Placement as Placement$1, UiClass } from "../../types/common.js";
|
|
2
2
|
import { BaseProps } from "../../types/vue.js";
|
|
3
3
|
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
4
4
|
import { ComputedRef } from "vue";
|
|
5
5
|
import { Padding, ReferenceElement, Side } from "@floating-ui/dom";
|
|
6
6
|
|
|
7
7
|
//#region src/components/popper/types.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Properties for the PopperRoot component.
|
|
10
|
+
*/
|
|
11
|
+
interface PopperRootProps {
|
|
12
|
+
/**
|
|
13
|
+
* The direction of the content. Used to determine the placement when not explicitly provided and for RTL flipping behavior.
|
|
14
|
+
*/
|
|
15
|
+
dir?: Direction;
|
|
16
|
+
}
|
|
8
17
|
/**
|
|
9
18
|
* Properties for the PopperAnchor component.
|
|
10
19
|
*/
|
|
@@ -166,4 +175,4 @@ type PopperUiSlot = 'positioner' | 'popup' | 'arrow' | 'anchor';
|
|
|
166
175
|
*/
|
|
167
176
|
type PopperUi = UiClass<PopperUiSlot>;
|
|
168
177
|
//#endregion
|
|
169
|
-
export { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerEmits, PopperPositionerProps, PopperUi, PopperUiSlot };
|
|
178
|
+
export { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerEmits, PopperPositionerProps, PopperRootProps, PopperUi, PopperUiSlot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tryFocusFirst as e}from"../../shared/focus.js";import"../../shared/index.js";import{useBodyScrollLock as t}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as n}from"../../composables/use-dismissable-layer.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{useFocusGuards as i}from"../../composables/use-focus-guards.js";import{useFocusScope as a}from"../../composables/use-focus-scope.js";import{useHideOthers as ee}from"../../composables/use-hide-others.js";import{useOmitProps as o}from"../../composables/use-props.js";import{useTypeahead as s}from"../../composables/use-typeahead.js";import"../../composables/index.js";import
|
|
1
|
+
import{tryFocusFirst as e}from"../../shared/focus.js";import"../../shared/index.js";import{useBodyScrollLock as t}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as n}from"../../composables/use-dismissable-layer.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{useFocusGuards as i}from"../../composables/use-focus-guards.js";import{useFocusScope as a}from"../../composables/use-focus-scope.js";import{useHideOthers as ee}from"../../composables/use-hide-others.js";import{useOmitProps as o}from"../../composables/use-props.js";import{useTypeahead as s}from"../../composables/use-typeahead.js";import"../../composables/index.js";import te from"../popper/popper-positioner.js";import"../popper/index.js";import{provideSelectContentContext as c,useCollectionContext as ne,useSelectPopupElementContext as re,useSelectRootContext as l}from"./context.js";import"./shared.js";import u from"./select-item-aligned-popup.js";import d from"./select-item-aligned-positioner.js";import f from"./select-popper-popup.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,mergeProps as _,onWatcherCleanup as v,openBlock as y,renderSlot as b,unref as x,watch as S,watchEffect as C,withCtx as w,withModifiers as T}from"vue";const E=g({name:`SelectContentImpl`,__name:`select-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean,default:!0},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{default:`start`},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{default:10},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},disableOutsidePointerEvents:{type:Boolean,default:!0}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(g,{emit:E}){let D=g,O=E,{open:k,onOpenChange:A,dataState:j,modelValue:M,isMultiple:N,dir:P,contentId:F,triggerElement:I,triggerPointerDownPosition:L,resetTriggerPointerDownPosition:R}=l(`SelectContentImpl`),{onPopupElementChange:z}=re(`SelectContentImpl`),{onContainerElementChange:B,getOrderedItems:V,getOrderedElements:H}=ne(`SelectContentImpl`),[U,W]=r(),[G,K]=r(e=>{z(e),B(e)}),{search:q,handleTypeaheadSearch:J}=s(),{pointerEvents:Y}=n(U,{disableOutsidePointerEvents:()=>D.disableOutsidePointerEvents,onEscapeKeyDown:e=>{O(`escapeKeyDown`,e)},onPointerDownOutside:e=>{O(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{A(!1)}}),{onKeydown:ie}=a(U,{onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{O(`closeAutoFocus`,e),!e.defaultPrevented&&(I.value?.focus({preventScroll:!0}),e.preventDefault())}}),{isPositioned:X,focusSelectedItem:ae}=c({position:p(()=>D.position),modelValue:M,isMultiple:N,search:q,popupElement:G}),oe=o(D,[`position`,`bodyLock`,`popupProps`,`disableOutsidePointerEvents`]),Z=p(()=>({display:`flex`,flexDirection:`column`,outline:`none`,pointerEvents:Y.value})),Q=t=>{ie(t);let n=t.ctrlKey||t.altKey||t.metaKey;if(t.key===`Tab`&&t.preventDefault(),!n&&t.key.length===1&&J(t.key,V()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){let n=[...H()];if([`ArrowUp`,`End`].includes(t.key)&&(n=n.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(t.key)){let e=t.target,r=n.indexOf(e);n=n.slice(r+1)}setTimeout(()=>{e(n)}),t.preventDefault()}},$=()=>{X.value=!0};return i(),ee(G,k),S(X,()=>{ae()}),C(()=>{D.bodyLock&&v(t())}),C(()=>{if(!G.value)return;let e={x:0,y:0},t=t=>{let{x:n,y:r}=L.value??{x:0,y:0};e={x:Math.abs(Math.round(t.pageX)-n),y:Math.abs(Math.round(t.pageY)-r)}},n=n=>{n.pointerType!==`touch`&&(e.x<=10&&e.y<=10?n.preventDefault():G.value?.contains(n.target)||A(!1),document.removeEventListener(`pointermove`,t),R())};L.value!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),v(()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})})}),(e,t)=>g.position===`popper`?(y(),m(x(te),_({key:0,ref:x(W)},x(oe),{onContextmenu:t[0]||(t[0]=T(()=>{},[`prevent`])),onPlaced:$,onKeydown:Q}),{default:w(()=>[h(f,_({id:x(F),ref:x(K)},g.popupProps,{"data-dismissable-layer":``,"data-state":x(j),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:w(()=>[b(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`style`])]),_:3},16)):(y(),m(d,{key:1,ref:x(W),onContextmenu:t[1]||(t[1]=T(()=>{},[`prevent`])),onPlaced:$,onKeydown:Q},{default:w(()=>[h(u,_({id:x(F),ref:x(K)},g.popupProps,{"data-dismissable-layer":``,"data-state":x(j),dir:x(P),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:w(()=>[b(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`dir`,`style`])]),_:3},512))}});export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useSelection as i}from"../../composables/use-selection.js";import"../../composables/index.js";import a from"../popper/popper-root.js";import"../popper/index.js";import{provideCollectionContext as o,provideSelectRootContext as s}from"./context.js";import c from"./select-bubble-select.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,defineComponent as m,mergeProps as h,openBlock as g,renderList as _,renderSlot as v,unref as y,withCtx as b}from"vue";const x={key:0,value:``},S=m({name:`SelectRoot`,inheritAttrs:!1,__name:`select-root`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},dir:{},autocomplete:{},disabled:{type:Boolean},modelValue:{default:void 0},defaultValue:{},multiple:{},clearable:{type:Boolean},selectionBehavior:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:open`],setup(m,{emit:S}){let C=m,w=S,{modelValue:T,isMultiple:E,onModelValueChange:D,isEmptyModelValue:O}=i(C,e=>{w(`update:modelValue`,e)}),k=r(()=>C.open,e=>{w(`update:open`,e)},C.defaultOpen),{
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useSelection as i}from"../../composables/use-selection.js";import"../../composables/index.js";import a from"../popper/popper-root.js";import"../popper/index.js";import{provideCollectionContext as o,provideSelectRootContext as s}from"./context.js";import c from"./select-bubble-select.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,defineComponent as m,mergeProps as h,openBlock as g,renderList as _,renderSlot as v,unref as y,withCtx as b}from"vue";const x={key:0,value:``},S=m({name:`SelectRoot`,inheritAttrs:!1,__name:`select-root`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},dir:{},autocomplete:{},disabled:{type:Boolean},modelValue:{default:void 0},defaultValue:{},multiple:{},clearable:{type:Boolean},selectionBehavior:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:open`],setup(m,{emit:S}){let C=m,w=S,{modelValue:T,isMultiple:E,onModelValueChange:D,isEmptyModelValue:O}=i(C,e=>{w(`update:modelValue`,e)}),k=r(()=>C.open,e=>{w(`update:open`,e)},C.defaultOpen),{dir:A,triggerElement:j,options:M,nativeSelectKey:N}=s({...n(C,[`dir`,`autocomplete`,`disabled`,`required`,`clearable`]),open:k,modelValue:T,onModelValueChange:D,isMultiple:E,isEmptyModelValue:O});o();let P=u(()=>t(j.value));return(t,n)=>(g(),d(y(a),{dir:y(A)},{default:b(()=>[v(t.$slots,`default`,{modelValue:y(T),open:!!y(k)}),P.value?(g(),d(c,{key:y(N),"aria-hidden":`true`,tabindex:`-1`,multiple:m.multiple,required:m.required,name:m.name,autocomplete:m.autocomplete,disabled:m.disabled,value:y(T)},{default:b(()=>[y(e)(y(T))?(g(),p(`option`,x)):f(`v-if`,!0),(g(!0),p(l,null,_(y(M),e=>(g(),p(`option`,h({key:e.value??``},{ref_for:!0},e),null,16))),128))]),_:1},8,[`multiple`,`required`,`name`,`autocomplete`,`disabled`,`value`])):f(`v-if`,!0)]),_:3},8,[`dir`]))}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import r from"../popper/popper-anchor.js";import"../popper/index.js";import{useCollectionContext as i,useSelectRootContext as a,useSelectUi as o}from"./context.js";import{OPEN_KEYS as s,shouldShowPlaceholder as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,withCtx as _,withModifiers as v}from"vue";const y=f({name:`SelectTrigger`,__name:`select-trigger`,props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{default:`button`}},setup(f){let y=f,{open:b,dataState:x,modelValue:S,disabled:C,required:w,contentId:T,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import r from"../popper/popper-anchor.js";import"../popper/index.js";import{useCollectionContext as i,useSelectRootContext as a,useSelectUi as o}from"./context.js";import{OPEN_KEYS as s,shouldShowPlaceholder as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,withCtx as _,withModifiers as v}from"vue";const y=f({name:`SelectTrigger`,__name:`select-trigger`,props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{default:`button`}},setup(f){let y=f,{open:b,dataState:x,modelValue:S,disabled:C,required:w,contentId:T,initContentId:E,onTriggerElementChange:D,onOpenChange:O,setTriggerPointerDownPosition:k}=a(`SelectTrigger`),[A,j]=e(D),{getOrderedItems:M}=i(`SelectTrigger`),{search:N,handleTypeaheadSearch:P,resetTypeahead:F}=t(),I=o(`trigger`),L=l(()=>C.value||y.disabled),R=l(()=>c(S.value)?``:void 0),z=l(()=>y.as===`button`?`button`:void 0),B=()=>{L.value||(O(!0),F())},V=e=>{B();let{pageX:t,pageY:n}=e;k({x:Math.round(t),y:Math.round(n)})},H=e=>{b.value||e.currentTarget?.focus()},U=e=>{if(e.pointerType===`touch`){e.preventDefault();return}let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(V(e),e.preventDefault())},W=e=>{e.pointerType===`touch`&&V(e)},G=e=>{let t=N.value!==``;if(!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&t&&e.key===` `)return;let n=M();P(e.key,n),s.includes(e.key)&&(B(),e.preventDefault())};return E(),(e,t)=>(m(),u(g(r),{"as-child":``,reference:f.reference},{default:_(()=>[d(g(n),{ref:g(j),as:f.as,"as-child":f.asChild,"data-soybean-select-trigger":``,class:p(g(I)),"aria-controls":g(T),"aria-expanded":g(b)||!1,"aria-required":g(w),"aria-autocomplete":`none`,disabled:L.value,"data-state":g(x),"data-disabled":L.value?``:void 0,"data-placeholder":R.value,role:`combobox`,type:z.value,onClick:H,onPointerdown:U,onPointerup:v(W,[`prevent`]),onKeydown:G},{default:_(()=>[h(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-controls`,`aria-expanded`,`aria-required`,`disabled`,`data-state`,`data-disabled`,`data-placeholder`,`type`])]),_:3},8,[`reference`]))}});export{y as default};
|
|
@@ -14,14 +14,14 @@ declare const __VLS_base: import("vue").DefineComponent<SliderRootProps, {}, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
|
|
15
15
|
onValueCommit?: ((value: number[]) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
disabled: boolean;
|
|
18
17
|
dir: Direction;
|
|
18
|
+
disabled: boolean;
|
|
19
19
|
max: number;
|
|
20
20
|
min: number;
|
|
21
21
|
orientation: DataOrientation;
|
|
22
22
|
step: number;
|
|
23
|
-
defaultValue: number[];
|
|
24
23
|
modelValue: number[];
|
|
24
|
+
defaultValue: number[];
|
|
25
25
|
inverted: boolean;
|
|
26
26
|
minStepsBetweenThumbs: number;
|
|
27
27
|
thumbAlignment: SliderThumbAlignment;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterGroupProps, {},
|
|
|
14
14
|
}>, {
|
|
15
15
|
dir: Direction;
|
|
16
16
|
direction: DataOrientation;
|
|
17
|
-
defaultLayout: number[];
|
|
18
17
|
keyboardResizeBy: number;
|
|
18
|
+
defaultLayout: number[];
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterResizeHandleProp
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<SplitterResizeHandleProps> & Readonly<{
|
|
14
14
|
onDragging?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
disabled: boolean;
|
|
17
16
|
tabindex: number;
|
|
17
|
+
disabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("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;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<StepperRootProps, {
|
|
|
37
37
|
"onUpdate:modelValue"?: ((payload: number) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
39
|
orientation: DataOrientation;
|
|
40
|
-
defaultValue: number;
|
|
41
40
|
modelValue: number;
|
|
41
|
+
defaultValue: number;
|
|
42
42
|
linear: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((payload: DefinedValue | null) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
orientation: DataOrientation;
|
|
17
|
-
modelValue: DefinedValue | null;
|
|
18
17
|
loop: boolean;
|
|
18
|
+
modelValue: DefinedValue | null;
|
|
19
19
|
activationMode: TabsActivationMode;
|
|
20
20
|
unmountOnHide: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_base: import("vue").DefineComponent<TagsInputRootProps, {},
|
|
|
20
20
|
onRemoveTag?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
max: number;
|
|
23
|
-
defaultValue: string[];
|
|
24
23
|
modelValue: string[];
|
|
24
|
+
defaultValue: string[];
|
|
25
25
|
delimiter: string | RegExp;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,14 +10,14 @@ declare const __VLS_base: import("vue").DefineComponent<TimeFieldRootProps, {},
|
|
|
10
10
|
"onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
11
11
|
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
disabled: boolean;
|
|
14
13
|
placeholder: TimeValue;
|
|
14
|
+
disabled: boolean;
|
|
15
15
|
step: DateStep;
|
|
16
16
|
defaultValue: TimeValue;
|
|
17
|
-
defaultPlaceholder: TimeValue;
|
|
18
17
|
readonly: boolean;
|
|
19
|
-
|
|
18
|
+
defaultPlaceholder: TimeValue;
|
|
20
19
|
hourCycle: 12 | 24;
|
|
20
|
+
granularity: TimeGranularity;
|
|
21
21
|
hideTimeZone: boolean;
|
|
22
22
|
isTimeUnavailable: TimeMatcher;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -14,18 +14,18 @@ declare const __VLS_base: import("vue").DefineComponent<TimeRangeFieldRootProps,
|
|
|
14
14
|
"onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
15
15
|
"onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
disabled: boolean;
|
|
18
17
|
placeholder: TimeValue;
|
|
18
|
+
disabled: boolean;
|
|
19
19
|
step: DateStep;
|
|
20
20
|
defaultValue: TimeRange;
|
|
21
|
-
defaultPlaceholder: TimeValue;
|
|
22
21
|
readonly: boolean;
|
|
23
|
-
|
|
22
|
+
defaultPlaceholder: TimeValue;
|
|
24
23
|
hourCycle: 12 | 24;
|
|
24
|
+
granularity: TimeGranularity;
|
|
25
25
|
hideTimeZone: boolean;
|
|
26
|
+
isTimeUnavailable: TimeMatcher;
|
|
26
27
|
startName: string;
|
|
27
28
|
endName: string;
|
|
28
|
-
isTimeUnavailable: TimeMatcher;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,9 +10,9 @@ declare const __VLS_base: import("vue").DefineComponent<ToasterProps, {}, {}, {}
|
|
|
10
10
|
duration: number;
|
|
11
11
|
gap: number;
|
|
12
12
|
position: ToastPosition;
|
|
13
|
+
visibleCounts: number;
|
|
13
14
|
hotkey: string[];
|
|
14
15
|
containerAriaLabel: string;
|
|
15
|
-
visibleCounts: number;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<ToggleProps, {}, {}, {},
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
defaultValue: boolean;
|
|
19
18
|
modelValue: boolean;
|
|
19
|
+
defaultValue: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -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"../portal/portal.js";import r from"../popper/popper-arrow.js";import i from"./tooltip-popup.js";import a from"./tooltip-positioner.js";import o from"./tooltip-root.js";import s from"./tooltip-trigger.js";import{computed as c,createBlock as l,createCommentVNode as u,createTextVNode as d,createVNode as f,defineComponent as p,guardReactiveProps as m,mergeProps as h,normalizeProps as g,openBlock as _,renderSlot as v,toDisplayString as y,toHandlers as b,unref as x,withCtx as S}from"vue";const C=p({name:`TooltipCompact`,__name:`tooltip-compact`,props:{content:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`],setup(p,{emit:C}){let w=p,T=C,E=t(w,[`content`,`placement`,`showArrow`,`triggerProps`,`portalProps`,`positionerProps`,`popupProps`,`arrowProps`]),D=e(T),O=c(()=>({...w.triggerProps,asChild:w.triggerProps?.asChild??!0})),k=c(()=>({...w.positionerProps,placement:w.placement??w.positionerProps?.placement}));return(e,t)=>(_(),l(o,h(x(E),{"onUpdate:open":t[0]||(t[0]=e=>T(`update:open`,e))}),{default:S(()=>[f(s,g(m(O.value)),{default:S(()=>[v(e.$slots,`trigger`)]),_:3},16),f(n,g(m(p.portalProps)),{default:S(()=>[f(a,h(k.value,b(x(D))),{default:S(()=>[f(i,g(m(p.popupProps)),{default:S(()=>[v(e.$slots,`default`,{},()=>[d(y(p.content),1)]),p.showArrow?(_(),l(r,g(h({key:0},p.arrowProps)),null,16)):u(`v-if`,!0)]),_:3},16)]),_:3},16)]),_:3},16)]),_:3},16))}});export{C 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"../portal/portal.js";import r from"../popper/popper-arrow.js";import i from"./tooltip-popup.js";import a from"./tooltip-positioner.js";import o from"./tooltip-root.js";import s from"./tooltip-trigger.js";import{computed as c,createBlock as l,createCommentVNode as u,createTextVNode as d,createVNode as f,defineComponent as p,guardReactiveProps as m,mergeProps as h,normalizeProps as g,openBlock as _,renderSlot as v,toDisplayString as y,toHandlers as b,unref as x,withCtx as S}from"vue";const C=p({name:`TooltipCompact`,__name:`tooltip-compact`,props:{content:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},dir:{},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`],setup(p,{emit:C}){let w=p,T=C,E=t(w,[`content`,`placement`,`showArrow`,`triggerProps`,`portalProps`,`positionerProps`,`popupProps`,`arrowProps`]),D=e(T),O=c(()=>({...w.triggerProps,asChild:w.triggerProps?.asChild??!0})),k=c(()=>({...w.positionerProps,placement:w.placement??w.positionerProps?.placement}));return(e,t)=>(_(),l(o,h(x(E),{"onUpdate:open":t[0]||(t[0]=e=>T(`update:open`,e))}),{default:S(()=>[f(s,g(m(O.value)),{default:S(()=>[v(e.$slots,`trigger`)]),_:3},16),f(n,g(m(p.portalProps)),{default:S(()=>[f(a,h(k.value,b(x(D))),{default:S(()=>[f(i,g(m(p.popupProps)),{default:S(()=>[v(e.$slots,`default`,{},()=>[d(y(p.content),1)]),p.showArrow?(_(),l(r,g(h({key:0},p.arrowProps)),null,16)):u(`v-if`,!0)]),_:3},16)]),_:3},16)]),_:3},16)]),_:3},16))}});export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useConfigProvider as e}from"../config-provider/context.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{TOOLTIP_OPEN as r,createDefaultTooltipConfig as i}from"./shared.js";import{provideTooltipOpenDelayedContext as a,provideTooltipRootContext as o}from"./context.js";import{computed as s,createBlock as c,defineComponent as l,openBlock as u,renderSlot as d,unref as f,watch as p,withCtx as m}from"vue";const h=l({name:`TooltipRoot`,inheritAttrs:!1,__name:`tooltip-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},positionerProps:{}},emits:[`update:open`],setup(l,{emit:h}){let g=l,_=h,v=t(()=>g.open,e=>{_(`update:open`,e)},g.defaultOpen),y=e(),b=s(()=>i(y?.tooltip?.value)),x=a({skipDelayDuration:s(()=>b.value.skipDelayDuration)});return o({open:v,delayDuration:s(()=>g.delayDuration??b.value.delayDuration),disableHoverableContent:s(()=>g.disableHoverableContent??b.value.disableHoverableContent),disableClosingTrigger:s(()=>g.disableClosingTrigger??b.value.disableClosingTrigger),disabled:s(()=>g.disabled??b.value.disabled),ignoreNonKeyboardFocus:s(()=>g.ignoreNonKeyboardFocus??b.value.ignoreNonKeyboardFocus),isOpenDelayed:x.isOpenDelayed,positionerProps:s(()=>b.value.positionerProps)}),p(v,e=>{x.onClose&&(e?(x.onOpen(),document.dispatchEvent(new CustomEvent(r))):x.onClose())}),(e,t)=>(u(),c(f(n),
|
|
1
|
+
import{useConfigProvider as e}from"../config-provider/context.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{TOOLTIP_OPEN as r,createDefaultTooltipConfig as i}from"./shared.js";import{provideTooltipOpenDelayedContext as a,provideTooltipRootContext as o}from"./context.js";import{computed as s,createBlock as c,defineComponent as l,openBlock as u,renderSlot as d,unref as f,watch as p,withCtx as m}from"vue";const h=l({name:`TooltipRoot`,inheritAttrs:!1,__name:`tooltip-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},dir:{},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},positionerProps:{}},emits:[`update:open`],setup(l,{emit:h}){let g=l,_=h,v=t(()=>g.open,e=>{_(`update:open`,e)},g.defaultOpen),y=e(),b=s(()=>i(y?.tooltip?.value)),x=a({skipDelayDuration:s(()=>b.value.skipDelayDuration)});return o({open:v,delayDuration:s(()=>g.delayDuration??b.value.delayDuration),disableHoverableContent:s(()=>g.disableHoverableContent??b.value.disableHoverableContent),disableClosingTrigger:s(()=>g.disableClosingTrigger??b.value.disableClosingTrigger),disabled:s(()=>g.disabled??b.value.disabled),ignoreNonKeyboardFocus:s(()=>g.ignoreNonKeyboardFocus??b.value.ignoreNonKeyboardFocus),isOpenDelayed:x.isOpenDelayed,positionerProps:s(()=>b.value.positionerProps)}),p(v,e=>{x.onClose&&(e?(x.onOpen(),document.dispatchEvent(new CustomEvent(r))):x.onClose())}),(e,t)=>(u(),c(f(n),{dir:l.dir},{default:m(()=>[d(e.$slots,`default`,{open:f(v)})]),_:3},8,[`dir`]))}});export{h as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Placement } from "../../types/common.js";
|
|
2
2
|
import { DismissableLayerEmits, ForceMountProps } from "../../types/component.js";
|
|
3
|
-
import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps } from "../popper/types.js";
|
|
3
|
+
import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps, PopperRootProps } from "../popper/types.js";
|
|
4
4
|
import { PortalProps } from "../portal/types.js";
|
|
5
5
|
import { Ref, ShallowRef } from "vue";
|
|
6
6
|
|
|
@@ -55,7 +55,7 @@ interface TooltipProviderProps {
|
|
|
55
55
|
/**
|
|
56
56
|
* Properties for the TooltipRoot component.
|
|
57
57
|
*/
|
|
58
|
-
interface TooltipRootProps extends TooltipProviderProps {
|
|
58
|
+
interface TooltipRootProps extends PopperRootProps, TooltipProviderProps {
|
|
59
59
|
/** The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. */
|
|
60
60
|
defaultOpen?: boolean;
|
|
61
61
|
/** The controlled open state of the tooltip. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../button/button.js";import{useTreeMenuItemContext as
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../button/button.js";import{useTreeMenuItemContext as n,useTreeMenuUi as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`TreeMenuButton`,__name:`tree-menu-button`,props:{disabledActive:{type:Boolean},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(a){let d=a,f=e(d,[`disabledActive`]),p=r(`button`),{isActive:m,onActive:h}=n(`TreeMenuButton`),g=()=>{d.disabledActive||h()};return(e,n)=>(s(),i(t,o(l(f),{"data-soybean-tree-menu-button":``,class:l(p),"data-active":l(m),onClick:g}),{default:u(()=>[c(e.$slots,`default`)]),_:3},16,[`class`,`data-active`]))}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../link/link.js";import n from"../dropdown-menu/dropdown-menu-compact.js";import
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../link/link.js";import n from"../dropdown-menu/dropdown-menu-compact.js";import{useTreeMenuRootContext as r,useTreeMenuUi as i}from"./context.js";import a from"./tree-menu-button.js";import o from"./tree-menu-collapsible.js";import s from"./tree-menu-item.js";import c from"./tree-menu-slot-compact.js";import l from"./tree-menu-sub.js";import u from"./tree-menu-tooltip-compact.js";import{Fragment as d,computed as f,createBlock as p,createCommentVNode as m,createElementBlock as h,createElementVNode as g,createSlots as _,createVNode as v,defineComponent as y,guardReactiveProps as b,mergeProps as x,normalizeClass as S,normalizeProps as C,openBlock as w,renderList as T,renderSlot as E,resolveComponent as D,unref as O,useSlots as k,withCtx as A}from"vue";import{keysOf as j}from"@soybeanjs/utils";const M=y({name:`TreeMenuOptionCompact`,__name:`tree-menu-option-compact`,props:{as:{default:`li`},item:{},side:{},activePaths:{},itemProps:{},buttonProps:{},linkProps:{},collapsibleProps:{},subProps:{}},emits:[`selectDropdown`],setup(y,{emit:M}){let N=y,P=M,F=k(),I=e(N,[`as`,`item`]),L=f(()=>j(F)),R=i(),{collapsed:z,modelValue:B,onModelValueChange:V}=r(`TreeMenuCompactOption`),H=f(()=>N.item.children??[]),U=f(()=>!!H.value.length),W=f(()=>B.value===N.item.value?!1:!!N.activePaths?.includes(N.item.value)),G=f(()=>!!(N.item.to||N.item.href)),K=f(()=>{if(!G.value)return{};let{disabled:e,to:t,href:n,target:r,external:i}=N.item;return{...N.linkProps,disabled:e,to:t,href:n,target:r,external:i}}),q=f(()=>z.value&&U.value),J=f(()=>z.value&&!q.value?N.item.label:void 0),Y=f(()=>N.side===`left`?`right`:`left`),X=f(()=>({...N.item.tooltipProps,placement:N.item.tooltipProps?.placement??Y.value})),Z=f(()=>({...N.item.dropdownMenuProps,placement:N.item.dropdownMenuProps?.placement??Y.value,trigger:N.item.dropdownMenuProps?.trigger??`hover`})),Q=()=>{N.item.disabled||V(N.item.value)},$=e=>{N.item.disabled||(V(e.value),P(`selectDropdown`,e.value))};return(e,r)=>{let i=D(`TreeMenuOptionCompact`,!0);return U.value?(w(),p(s,x({key:1},y.itemProps,{"as-child":``,value:y.item.value,disabled:y.item.disabled}),{default:A(()=>[v(o,x(y.collapsibleProps,{as:y.as,"disabled-collapsible":O(z)}),{trigger:A(()=>[v(a,x(y.buttonProps,{"disabled-active":``,"data-child-active":W.value?``:void 0}),{default:A(()=>[v(c,{item:y.item},_({_:2},[T(L.value,t=>({name:t,fn:A(n=>[E(e.$slots,t,C(b(n)))])}))]),1032,[`item`])]),_:3},16,[`data-child-active`])]),extra:A(()=>[q.value?(w(),p(n,x({key:0},Z.value,{items:H.value,disabled:y.item.disabled,"active-value":O(B),"data-menu":y.item.label,onSelect:$}),{trigger:A(()=>[g(`div`,{class:S(O(R).itemAbsolute)},null,2)]),_:1},16,[`items`,`disabled`,`active-value`,`data-menu`])):m(`v-if`,!0)]),default:A(()=>[v(l,C(b(y.subProps)),{default:A(()=>[(w(!0),h(d,null,T(H.value,t=>(w(),p(i,x({key:t.value},{ref_for:!0},O(I),{item:t,side:y.side,"active-paths":y.activePaths,onSelectDropdown:r[0]||(r[0]=e=>P(`selectDropdown`,e))}),_({_:2},[T(L.value,t=>({name:t,fn:A(n=>[E(e.$slots,t,x({ref_for:!0},n))])}))]),1040,[`item`,`side`,`active-paths`]))),128))]),_:3},16)]),_:3},16,[`as`,`disabled-collapsible`])]),_:3},16,[`value`,`disabled`])):(w(),p(s,x({key:0},y.itemProps,{as:y.as,value:y.item.value,disabled:y.item.disabled}),{default:A(()=>[G.value?(w(),p(a,x({key:0},y.buttonProps,{"as-child":``}),{default:A(()=>[v(t,C(b(K.value)),{default:A(({isHref:t})=>[v(c,{item:y.item,"show-link-icon":t},_({_:2},[T(L.value,t=>({name:t,fn:A(n=>[E(e.$slots,t,C(b(n)))])}))]),1032,[`item`,`show-link-icon`])]),_:3},16)]),_:3},16)):(w(),p(a,C(x({key:1},y.buttonProps)),{default:A(()=>[v(c,{item:y.item},_({_:2},[T(L.value,t=>({name:t,fn:A(n=>[E(e.$slots,t,C(b(n)))])}))]),1032,[`item`])]),_:3},16)),J.value?(w(),p(u,x({key:2},X.value,{content:J.value}),{trigger:A(()=>[G.value?(w(),p(t,x({key:0},K.value,{class:O(R).itemAbsolute,onClick:Q}),null,16,[`class`])):(w(),h(`div`,{key:1,class:S(O(R).itemAbsolute),onClick:Q},null,2))]),_:1},16,[`content`])):m(`v-if`,!0)]),_:3},16,[`as`,`value`,`disabled`]))}}});export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../_icon/icon.js";import t from"../button/button.js";import n from"../badge/badge-compact.js";import
|
|
1
|
+
import e from"../_icon/icon.js";import t from"../button/button.js";import{provideBadgeUi as n}from"../badge/context.js";import r from"../badge/badge-compact.js";import i from"../dropdown-menu/dropdown-menu-compact.js";import{useTreeMenuRootContext as a,useTreeMenuUi as o}from"./context.js";import{Fragment as s,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createVNode as p,defineComponent as m,mergeProps as h,normalizeClass as g,openBlock as _,renderSlot as v,toDisplayString as y,unref as b,withCtx as x,withModifiers as S}from"vue";const C=m({name:`TreeMenuSlotCompact`,__name:`tree-menu-slot-compact`,props:{showLinkIcon:{type:Boolean},as:{},item:{},side:{},activePaths:{},itemProps:{},buttonProps:{},linkProps:{},collapsibleProps:{},subProps:{}},setup(m){let C=m,{collapsed:w}=a(`TreeMenuCompactSlot`),T=o(),E=c(()=>!!C.item.children?.some(e=>!e.hidden)),D=c(()=>`Open ${C.item.label} actions`);return n(c(()=>({root:T.value?.badgeRoot,content:T.value?.badgeContent}))),(n,a)=>(_(),d(s,null,[v(n.$slots,`item-leading`,{item:m.item},()=>[m.item.icon?(_(),l(e,{key:0,icon:m.item.icon,"aria-hidden":!0},null,8,[`icon`])):u(`v-if`,!0)]),v(n.$slots,`item`,{item:m.item},()=>[m.item.badge?(_(),l(r,h({key:0},m.item.badgeProps,{content:m.item.badge}),{default:x(()=>[f(`span`,{class:g(b(T).itemLabel)},y(m.item.label),3)]),_:1},16,[`content`])):(_(),d(`span`,{key:1,class:g(b(T).itemLabel)},y(m.item.label),3))]),m.showLinkIcon?(_(),l(e,{key:0,icon:`lucide:arrow-up-right`,class:g(b(T).itemLinkIcon),"aria-hidden":!0},null,8,[`class`])):u(`v-if`,!0),m.item.tag?(_(),d(`span`,h({key:1},m.item.tagProps,{class:b(T).itemTag}),y(m.item.tag),17)):u(`v-if`,!0),!b(w)&&m.item.actions?.length?(_(),l(i,h({key:2},m.item.actionMenuProps,{items:m.item.actions,onSelect:m.item.onActionSelect}),{trigger:x(()=>[p(t,{"aria-label":D.value,class:g(b(T).itemAction),disabled:m.item.disabled,onClick:a[0]||(a[0]=S(()=>{},[`stop`]))},{default:x(()=>[p(e,{icon:`lucide:ellipsis`,"aria-hidden":!0})]),_:1},8,[`aria-label`,`class`,`disabled`])]),_:1},16,[`items`,`onSelect`])):u(`v-if`,!0),v(n.$slots,`item-trailing`,{item:m.item}),E.value?(_(),l(e,{key:3,icon:`lucide:chevron-right`,class:g(b(T).collapsibleIcon),"aria-hidden":!0},null,8,[`class`])):u(`v-if`,!0)],64))}});export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import"../../composables/index.js";import{providePopperUi as t}from"../popper/context.js";import n from"../tooltip/tooltip-compact.js";import{useTreeMenuUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderSlot as l,toHandlers as u,unref as d,withCtx as f}from"vue";const p=o({name:`TreeMenuTooltipCompact`,__name:`tree-menu-tooltip-compact`,props:{content:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},dir:{},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`],setup(o,{emit:p}){let m=o,h=e(p),g=r();return t(i(()=>({positioner:g.value?.tooltipPositioner,popup:g.value?.tooltipPopup,arrow:g.value?.tooltipArrow}))),(e,t)=>(c(),a(n,s(m,u(d(h))),{trigger:f(()=>[l(e.$slots,`trigger`)]),default:f(()=>[l(e.$slots,`default`)]),_:3},16))}});export{p as default};
|
|
@@ -357,7 +357,7 @@ interface TreeMenuRootContextParams {
|
|
|
357
357
|
/**
|
|
358
358
|
* Available UI slots for the TreeMenu component.
|
|
359
359
|
*/
|
|
360
|
-
type TreeMenuUiSlot = 'root' | 'groupRoot' | 'groupLabel' | 'group' | 'item' | 'button' | 'itemLabel' | 'itemAbsolute' | '
|
|
360
|
+
type TreeMenuUiSlot = 'root' | 'groupRoot' | 'groupLabel' | 'group' | 'item' | 'button' | 'itemLabel' | 'itemAbsolute' | 'itemTag' | 'itemAction' | 'itemLinkIcon' | 'collapsibleIcon' | 'sub' | 'subItem' | 'subButton' | 'collapsibleRoot' | 'collapsibleTrigger' | 'collapsibleContent' | 'tooltipPositioner' | 'tooltipPopup' | 'tooltipArrow' | 'badgeRoot' | 'badgeContent';
|
|
361
361
|
/**
|
|
362
362
|
* UI class overrides for the TreeMenu component.
|
|
363
363
|
*/
|
|
@@ -2,8 +2,8 @@ import { VisuallyHiddenFeature, VisuallyHiddenInputProps } from "./types.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/visually-hidden/visually-hidden-input.vue.d.ts
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<VisuallyHiddenInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VisuallyHiddenInputProps> & Readonly<{}>, {
|
|
5
|
-
checked: boolean;
|
|
6
5
|
feature: VisuallyHiddenFeature;
|
|
6
|
+
checked: boolean;
|
|
7
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
declare const _default: typeof __VLS_export;
|
|
9
9
|
//#endregion
|
package/dist/date/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { DateStep, DateValue, Granularity, HourCycle, TimeGranularity, TimeInput
|
|
|
4
4
|
declare function getOptsByGranularity(granularity: Granularity, hourCycle: HourCycle, isTimeValue?: boolean): Intl.DateTimeFormatOptions;
|
|
5
5
|
declare function normalizeDateStep(step?: DateStep): DateStep;
|
|
6
6
|
declare function handleCalendarInitialFocus(calendar: HTMLElement): void;
|
|
7
|
-
declare function normalizeHourCycle(hourCycle: HourCycle): "
|
|
7
|
+
declare function normalizeHourCycle(hourCycle: HourCycle): "h11" | "h23" | undefined;
|
|
8
8
|
declare function normalizeHour12(hourCycle: HourCycle): boolean | undefined;
|
|
9
9
|
declare function getInputType(granularity: Granularity): "date" | "datetime-local";
|
|
10
10
|
declare function normalizeInputValue(date: DateValue | undefined, granularity: Granularity): string;
|
package/dist/shared/env.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
//#region src/shared/env.d.ts
|
|
2
2
|
declare const isBrowser: boolean;
|
|
3
3
|
declare const isClient: boolean;
|
|
4
|
+
declare const isNuxt: boolean;
|
|
4
5
|
declare function isIOS(): boolean;
|
|
5
6
|
declare function refreshIOSDetection(): boolean;
|
|
6
7
|
//#endregion
|
|
7
|
-
export { isBrowser, isClient, isIOS, refreshIOSDetection };
|
|
8
|
+
export { isBrowser, isClient, isIOS, isNuxt, refreshIOSDetection };
|
package/dist/shared/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=typeof document<`u`,t=typeof window<`u`&&typeof document<`u`;let
|
|
1
|
+
const e=typeof document<`u`,t=typeof window<`u`&&typeof document<`u`,n=typeof __NUXT_VERSION__<`u`;let r=null;function i(){return!t||!window?.navigator?.userAgent?!1:/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window.navigator.maxTouchPoints>2&&/iPad|Macintosh/.test(window.navigator.userAgent)}function a(){return r===null&&(r=i()),r}function o(){return r=null,a()}export{e as isBrowser,t as isClient,a as isIOS,n as isNuxt,o as refreshIOSDetection};
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import { createFieldName, parseArrayValue, parseFormValue, parseObjectValue, par
|
|
|
8
8
|
import { getActiveElement, getAriaLabel, getCollectionItemElements, isElementHasAttribute, isHTMLElement, removeLinks } from "./dom.js";
|
|
9
9
|
import { focus, focusFirstAndSelect, getDirectionAwareKey, getFocusIntent, getTabbableCandidates, getTabbableEdges, removeFromTabOrder, tryFocusFirst } from "./focus.js";
|
|
10
10
|
import { getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, transformPropsToContext } from "./vue.js";
|
|
11
|
-
import { isBrowser, isClient, isIOS, refreshIOSDetection } from "./env.js";
|
|
11
|
+
import { isBrowser, isClient, isIOS, isNuxt, refreshIOSDetection } from "./env.js";
|
|
12
12
|
import { handleAndDispatchCustomEvent, isMouseEvent } from "./event.js";
|
|
13
13
|
import { getExitSideFromRect, getHull, getPaddedExitPoints, getPointsFromRect, isDeltaInDirection, isPointInPolygon, isPointerInGraceArea } from "./geometry.js";
|
|
14
14
|
import { getTreePaths } from "./tree.js";
|
|
15
15
|
import { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive } from "./time-picker.js";
|
|
16
|
-
export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, appendAt, areColorsEqual, arrayRemove, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
|
|
16
|
+
export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, appendAt, areColorsEqual, arrayRemove, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isNuxt, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,findValuesBetween as g,flattenChildren as _,getNextMatch as v,insertAt as y,moveAt as b,omit as x,pick as S,prependAt as C,removeAt as w,swapAt as T,updateAt as E,wrapArray as D}from"./object.js";import{interpolate as O,isKey as k,stringToPath as A}from"./string.js";import{isValueEqualOrExist as j}from"./comparison.js";import{areColorsEqual as M,formatChannelValue as N,formatColor as P,getAreaBackgroundStyle as F,getChannelName as I,getChannelObjectSpace as L,getChannelRange as R,getChannelValue as z,getColorContrast as B,getColorLabel as V,getSliderBackgroundStyle as H,hasVisibleChromaticity as U,isValidColor as W,normalizeColor as G,resolveColorFormat as K,setChannelValue as q,setChannelValues as J,toColorObject as Y}from"./color.js";import{clamp as X,getBinaryCheckedState as Z,getCheckedState as Q,getDisclosureState as $,getOpenFromSingleOrMultiple as ee,getValue as te,isIndeterminate as ne,roundToStepPrecision as re,setValue as ie,snapValueToStep as ae}from"./value.js";import{createFieldName as oe,parseArrayValue as se,parseFormValue as ce,parseObjectValue as le,parsePrimitiveValue as ue}from"./form.js";import{getActiveElement as de,getAriaLabel as fe,getCollectionItemElements as pe,isElementHasAttribute as me,isHTMLElement as he,removeLinks as ge}from"./dom.js";import{focus as _e,focusFirstAndSelect as ve,getDirectionAwareKey as ye,getFocusIntent as be,getTabbableCandidates as xe,getTabbableEdges as Se,removeFromTabOrder as Ce,tryFocusFirst as we}from"./focus.js";import{getElFromTemplateRef as Te,getLifeCycleTarget as Ee,getMergedRefsValue as De,getRawChildren as Oe,getVueBooleanCasting as ke,isFormControl as Ae,transformPropsToContext as je}from"./vue.js";import{isBrowser as Me,isClient as Ne,isIOS as Pe,refreshIOSDetection as
|
|
1
|
+
import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,findValuesBetween as g,flattenChildren as _,getNextMatch as v,insertAt as y,moveAt as b,omit as x,pick as S,prependAt as C,removeAt as w,swapAt as T,updateAt as E,wrapArray as D}from"./object.js";import{interpolate as O,isKey as k,stringToPath as A}from"./string.js";import{isValueEqualOrExist as j}from"./comparison.js";import{areColorsEqual as M,formatChannelValue as N,formatColor as P,getAreaBackgroundStyle as F,getChannelName as I,getChannelObjectSpace as L,getChannelRange as R,getChannelValue as z,getColorContrast as B,getColorLabel as V,getSliderBackgroundStyle as H,hasVisibleChromaticity as U,isValidColor as W,normalizeColor as G,resolveColorFormat as K,setChannelValue as q,setChannelValues as J,toColorObject as Y}from"./color.js";import{clamp as X,getBinaryCheckedState as Z,getCheckedState as Q,getDisclosureState as $,getOpenFromSingleOrMultiple as ee,getValue as te,isIndeterminate as ne,roundToStepPrecision as re,setValue as ie,snapValueToStep as ae}from"./value.js";import{createFieldName as oe,parseArrayValue as se,parseFormValue as ce,parseObjectValue as le,parsePrimitiveValue as ue}from"./form.js";import{getActiveElement as de,getAriaLabel as fe,getCollectionItemElements as pe,isElementHasAttribute as me,isHTMLElement as he,removeLinks as ge}from"./dom.js";import{focus as _e,focusFirstAndSelect as ve,getDirectionAwareKey as ye,getFocusIntent as be,getTabbableCandidates as xe,getTabbableEdges as Se,removeFromTabOrder as Ce,tryFocusFirst as we}from"./focus.js";import{getElFromTemplateRef as Te,getLifeCycleTarget as Ee,getMergedRefsValue as De,getRawChildren as Oe,getVueBooleanCasting as ke,isFormControl as Ae,transformPropsToContext as je}from"./vue.js";import{isBrowser as Me,isClient as Ne,isIOS as Pe,isNuxt as Fe,refreshIOSDetection as Ie}from"./env.js";import{handleAndDispatchCustomEvent as Le,isMouseEvent as Re}from"./event.js";import{getExitSideFromRect as ze,getHull as Be,getPaddedExitPoints as Ve,getPointsFromRect as He,isDeltaInDirection as Ue,isPointInPolygon as We,isPointerInGraceArea as Ge}from"./geometry.js";import{getTreePaths as Ke}from"./tree.js";import{compareTimeValues as qe,createTimeOptions as Je,findClosestTimeOption as Ye,formatTimeValue as Xe,isTimeBetweenInclusive as Ze}from"./time-picker.js";export{f as appendAt,M as areColorsEqual,p as arrayRemove,m as chunk,X as clamp,h as compact,qe as compareTimeValues,oe as createFieldName,Je as createTimeOptions,Ye as findClosestTimeOption,g as findValuesBetween,_ as flattenChildren,_e as focus,ve as focusFirstAndSelect,N as formatChannelValue,P as formatColor,Xe as formatTimeValue,de as getActiveElement,F as getAreaBackgroundStyle,fe as getAriaLabel,Z as getBinaryCheckedState,I as getChannelName,L as getChannelObjectSpace,R as getChannelRange,z as getChannelValue,Q as getCheckedState,pe as getCollectionItemElements,B as getColorContrast,V as getColorLabel,ye as getDirectionAwareKey,$ as getDisclosureState,Te as getElFromTemplateRef,ze as getExitSideFromRect,be as getFocusIntent,Be as getHull,Ee as getLifeCycleTarget,De as getMergedRefsValue,v as getNextMatch,ee as getOpenFromSingleOrMultiple,Ve as getPaddedExitPoints,He as getPointsFromRect,Oe as getRawChildren,H as getSliderBackgroundStyle,xe as getTabbableCandidates,Se as getTabbableEdges,Ke as getTreePaths,te as getValue,ke as getVueBooleanCasting,Le as handleAndDispatchCustomEvent,U as hasVisibleChromaticity,y as insertAt,O as interpolate,e as isArrayValue,t as isBlankString,Me as isBrowser,Ne as isClient,n as isDateObject,Ue as isDeltaInDirection,me as isElementHasAttribute,Ae as isFormControl,r as isFunction,he as isHTMLElement,Pe as isIOS,ne as isIndeterminate,k as isKey,Re as isMouseEvent,i as isNonNullObject,a as isNullish,Fe as isNuxt,o as isObject,s as isObjectType,We as isPointInPolygon,Ge as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,Ze as isTimeBetweenInclusive,W as isValidColor,j as isValueEqualOrExist,d as keysOf,b as moveAt,G as normalizeColor,x as omit,se as parseArrayValue,ce as parseFormValue,le as parseObjectValue,ue as parsePrimitiveValue,S as pick,C as prependAt,Ie as refreshIOSDetection,w as removeAt,Ce as removeFromTabOrder,ge as removeLinks,K as resolveColorFormat,re as roundToStepPrecision,q as setChannelValue,J as setChannelValues,ie as setValue,ae as snapValueToStep,A as stringToPath,T as swapAt,Y as toColorObject,je as transformPropsToContext,we as tryFocusFirst,E as updateAt,D as wrapArray};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|