@soybeanjs/headless 0.25.3 → 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-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
- package/dist/components/color-area/color-area-root.vue.d.ts +3 -3
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-picker/color-picker-compact.js +1 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +2 -2
- package/dist/components/color-picker/color-picker-root.vue.d.ts +3 -3
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-root.vue.d.ts +4 -4
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- 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/context-menu/context-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +6 -6
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- 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-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +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-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
- 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-compact.vue.d.ts +2 -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-root.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/slot/slot.js +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-compact.vue.d.ts +2 -2
- package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -3
- package/dist/components/time-field/time-field-root.vue.d.ts +2 -2
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +3 -3
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- 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/composables/use-hide-others.js +1 -1
- package/dist/date/utils.d.ts +1 -1
- package/dist/nuxt/index.js +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 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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isClient as e}from"../shared/env.js";import"../shared/index.js";import{onWatcherCleanup as t,toValue as n,watchPostEffect as r}from"vue";import{filterNullish as i}from"@soybeanjs/utils";import{hideOthers as a}from"aria-hidden";function o(o,s=!0){r(()=>{if(!e)return;let r=n(o),c=i(Array.isArray(r)?r:[r]);if(c.length===0||c.some(e=>e.closest(`[popover]:not(:popover-open)`))||!n(s)
|
|
1
|
+
import{isClient as e}from"../shared/env.js";import"../shared/index.js";import{onWatcherCleanup as t,toValue as n,watchPostEffect as r}from"vue";import{filterNullish as i}from"@soybeanjs/utils";import{hideOthers as a}from"aria-hidden";function o(o,s=!0){r(()=>{if(!e)return;let r=n(o),c=i(Array.isArray(r)?r:[r]);if(c.length===0||c.some(e=>e.closest(`[popover]:not(:popover-open)`))||!n(s))return;let l=a(c);t(()=>{l()})})}export{o as useHideOthers};
|
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/nuxt/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{components as e}from"../constants/components.js";import{addComponent as t,defineNuxtModule as n}from"@nuxt/kit";var r=n({meta:{name:`@soybeanjs/headless/nuxt`,configKey:`@soybeanjs/headless`,compatibility:{nuxt:`>=3.14`}},defaults:{components:!0},setup(n
|
|
1
|
+
import{components as e}from"../constants/components.js";import{addComponent as t,defineNuxtModule as n}from"@nuxt/kit";var r=n({meta:{name:`@soybeanjs/headless/nuxt`,configKey:`@soybeanjs/headless`,compatibility:{nuxt:`>=3.14`}},defaults:{components:!0},setup(n){function r(){return typeof n.components==`object`?Object.entries(e).filter(([e])=>n.components[e]).flatMap(([e,t])=>t):n.components?Object.values(e).flat():[]}for(let e of r())t({name:`${e}`,export:e,filePath:`@soybeanjs/headless`})}});export{r as default};
|
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": {
|