@vuetify/v0 0.0.16 → 0.0.18
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/browser/index.js +358 -145
- package/dist/components/index.d.mts +4 -4
- package/dist/components/index.mjs +6 -6
- package/dist/{components-Dk00OFL2.mjs → components-DRdenC8b.mjs} +151 -54
- package/dist/composables/index.d.mts +4 -4
- package/dist/composables/index.mjs +5 -5
- package/dist/{composables-YOUVfUsn.mjs → composables-DG1MHp-R.mjs} +138 -37
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +3 -3
- package/dist/{globals-Rnihe4SF.mjs → globals-BGVqrlN7.mjs} +1 -1
- package/dist/{index-BXN7M6o_.d.mts → index-B-jVvwsm.d.mts} +1 -1
- package/dist/{index-BzW68rBC.d.mts → index-CH7DpIK8.d.mts} +103 -10
- package/dist/{index-BulceeMA.d.mts → index-DaX9-kmY.d.mts} +45 -15
- package/dist/{index-BeJMYhId.d.mts → index-oQuVnpOj.d.mts} +836 -120
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +8 -8
- package/dist/types/index.d.mts +1 -1
- package/dist/{useStep-Bqhi_DDs.mjs → useStep-DC_JvZpy.mjs} +78 -63
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{constants-BWV0uYsM.mjs → constants-DypzAkYp.mjs} +0 -0
- /package/dist/{htmlElements-BYo-fMlZ.mjs → htmlElements-CXObxj0V.mjs} +0 -0
- /package/dist/{index-B6lIRI3i.d.mts → index-B9mKi4pr.d.mts} +0 -0
- /package/dist/{index-Bd3J4RNS.d.mts → index-C5LQZd3v.d.mts} +0 -0
- /package/dist/{utilities-DQWf_4V_.mjs → utilities-JxCe-nF2.mjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { $ as
|
|
3
|
-
import { A as SelectionContextOptions, B as createRegistryContext, C as GroupContextOptions, D as createGroupContext, E as createGroup, F as useSelection, H as ContextTrinity, I as RegistryContext, L as RegistryContextOptions, M as SelectionTicket, N as createSelection, O as useGroup, P as createSelectionContext, R as RegistryOptions, S as GroupContext, T as GroupTicket, U as createTrinity, V as useRegistry, _ as
|
|
4
|
-
import { $ as createQueue, $n as
|
|
5
|
-
import { a as isSelfClosingTag, c as SUPPORTS_MATCH_MEDIA, d as SUPPORTS_TOUCH, f as __LOGGER_ENABLED__, i as SelfClosingElement, l as SUPPORTS_MUTATION_OBSERVER, n as HTMLElementName, o as IN_BROWSER, p as version, r as SELF_CLOSING_TAGS, s as SUPPORTS_INTERSECTION_OBSERVER, t as COMMON_ELEMENTS, u as SUPPORTS_OBSERVER } from "./index-
|
|
6
|
-
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "./index-
|
|
7
|
-
export { _default as Atom, AtomExpose, AtomProps, AtomSlots, Avatar, AvatarContext, AvatarFallbackProps, AvatarFallbackSlotProps, AvatarImageEmits, AvatarImageProps, AvatarImageSlotProps, AvatarRootProps, AvatarTicket, BreakpointName, BreakpointsContext, BreakpointsContextOptions, BreakpointsOptions, BreakpointsPluginOptions, COMMON_ELEMENTS, CleanupFunction, Colors, ConsolaLoggerAdapter, ContextKey, ContextTrinity, CreateContextOptions, EventHandler, ExpansionPanel, ExpansionPanelActivatorProps, ExpansionPanelActivatorSlotProps, ExpansionPanelContentProps, ExpansionPanelContentSlotProps, ExpansionPanelHeaderProps, ExpansionPanelHeaderSlotProps, ExpansionPanelItemContext, ExpansionPanelItemProps, ExpansionPanelItemSlotProps, ExpansionPanelOptionsContext, ExpansionPanelRootProps, ExpansionPanelRootSlotProps, FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FilterFunction, FilterItem, FilterMode, FilterQuery, FlatTokenCollection, FormContext, FormContextOptions, FormOptions, FormTicket, FormValidationResult, FormValidationRule, FormValue, Group, GroupContext, GroupContextOptions, GroupItemProps, GroupItemSlotProps, GroupOptions, GroupRootProps, GroupRootSlotProps, GroupTicket, HTMLElementName, HydrationContext, HydrationContextOptions, HydrationOptions, HydrationPluginOptions, IN_BROWSER, IntersectionObserverEntry, IntersectionObserverOptions, KeyHandler, LocaleAdapter, LocaleContext, LocaleContextOptions, LocaleOptions, LocalePluginOptions, LocaleRecord, LocaleTicket, LogLevel, LoggerAdapter, LoggerContext, LoggerContextOptions, LoggerOptions, LoggerPluginOptions, MemoryAdapter, MutationObserverRecord, OverflowContext, OverflowContextOptions, OverflowOptions, Pagination, PaginationContext, PaginationContextOptions, PaginationEllipsisProps, PaginationEllipsisSlotProps, PaginationFirstProps, PaginationFirstSlotProps, PaginationItem, PaginationItemProps, PaginationItemSlotProps, PaginationLastProps, PaginationLastSlotProps, PaginationNextProps, PaginationNextSlotProps, PaginationOptions, PaginationPrevProps, PaginationPrevSlotProps, PaginationRootProps, PaginationRootSlotProps, PermissionAdapter, PermissionAdapterInterface, PermissionContext, PermissionContextOptions, PermissionOptions, PermissionPluginOptions, PermissionTicket, PinoLoggerAdapter, Plugin, PluginOptions, Popover, PopoverAnchorProps, PopoverContentEmits, PopoverContentProps, PopoverContext, PopoverRootProps, Primitive, ProxyModelOptions, ProxyRegistryContext, ProxyRegistryOptions, QueueContext, QueueContextOptions, QueueOptions, QueueTicket, RegistryContext, RegistryContextOptions, RegistryOptions, RegistryTicket, ResizeObserverEntry, ResizeObserverOptions, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, ScrollToOptions, Selection, SelectionContext, SelectionContextOptions, SelectionItemProps, SelectionItemSlotProps, SelectionOptions, SelectionRootProps, SelectionRootSlotProps, SelectionTicket, SelfClosingElement, Single, SingleContext, SingleContextOptions, SingleItemProps, SingleItemSlotProps, SingleOptions, SingleRootProps, SingleRootSlotProps, SingleTicket, Step, StepContext, StepContextOptions, StepItemProps, StepItemSlotProps, StepOptions, StepRootProps, StepRootSlotProps, StepTicket, StorageAdapter, StorageContext, StorageContextOptions, StorageOptions, StoragePluginOptions, StorageType, ThemeAdapter, ThemeColors, ThemeContext, ThemeContextOptions, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeTicket, TimelineContext, TimelineContextOptions, TimelineOptions, TimelineTicket, ToggleScopeControls, TokenAlias, TokenCollection, TokenContext, TokenContextOptions, TokenOptions, TokenPrimitive, TokenTicket, TokenValue, UseElementIntersectionReturn, UseElementSizeReturn,
|
|
1
|
+
import "./index-C5LQZd3v.mjs";
|
|
2
|
+
import { $ as PaginationEllipsisSlotProps, $t as _default$1, A as PopoverContentProps, At as ExpansionPanelContentSlotProps, B as providePopoverContext, Bt as ExpansionPanelItemSlotProps, C as SelectionRootProps, Ct as GroupRootProps, D as useSelectionRoot, Dt as useGroupRoot, E as provideSelectionRoot, Et as provideGroupRoot, F as _default$19, Ft as ExpansionPanelHeaderProps, G as _default$18, Gt as ExpansionPanelRootProps, H as Pagination, Ht as provideExpansionPanelItem, I as PopoverContext, It as ExpansionPanelHeaderSlotProps, J as _default$14, Jt as provideExpansionPanelSelection, K as PaginationLastProps, Kt as ExpansionPanelRootSlotProps, L as PopoverRootProps, Lt as _default$6, M as _default$20, Mt as ExpansionPanelActivatorProps, N as PopoverAnchorProps, Nt as ExpansionPanelActivatorSlotProps, O as Popover, Ot as ExpansionPanel, P as PopoverAnchorSlotProps, Pt as _default$4, Q as PaginationEllipsisProps, Qt as AvatarFallbackSlotProps, R as PopoverRootSlotProps, Rt as ExpansionPanelItemContext, S as _default$22, St as _default$9, T as _default$23, Tt as _default$10, U as PaginationStatusProps, Ut as useExpansionPanelItem, V as usePopoverContext, Vt as _default$7, W as PaginationStatusSlotProps, Wt as ExpansionPanelOptionsContext, X as PaginationNextSlotProps, Xt as Avatar, Y as PaginationNextProps, Yt as useExpansionPanelRoot, Z as _default$15, Zt as AvatarFallbackProps, _ as provideSingleRoot, _t as usePaginationItems, a as StepRootProps, an as AvatarRootProps, at as PaginationFirstSlotProps, b as SelectionItemProps, bt as GroupItemProps, c as provideStepRoot, cn as provideAvatarContext, ct as PaginationItemSlotProps, d as SingleItemProps, dn as AtomProps, dt as PaginationRootSlotProps, en as AvatarImageEmits, et as _default$11, f as SingleItemSlotProps, fn as AtomSlots, ft as _default$17, g as _default$25, gt as usePaginationControls, h as SingleRootSlotProps, ht as providePaginationRoot, i as _default$26, in as AvatarContext, it as PaginationFirstProps, j as PopoverContentSlotProps, jt as _default$5, k as PopoverContentEmits, kt as ExpansionPanelContentProps, l as useStepRoot, ln as useAvatarRoot, lt as _default$13, m as SingleRootProps, mt as providePaginationItems, n as StepItemProps, nn as AvatarImageSlotProps, nt as PaginationPrevSlotProps, o as StepRootSlotProps, on as AvatarTicket, ot as _default$12, p as _default$24, pn as _default, pt as providePaginationControls, q as PaginationLastSlotProps, qt as _default$8, r as StepItemSlotProps, rn as _default$2, rt as _default$16, s as _default$27, sn as _default$3, st as PaginationItemProps, t as Step, tn as AvatarImageProps, tt as PaginationPrevProps, u as Single, un as AtomExpose, ut as PaginationRootProps, v as useSingleRoot, vt as usePaginationRoot, w as SelectionRootSlotProps, wt as GroupRootSlotProps, x as SelectionItemSlotProps, xt as GroupItemSlotProps, y as Selection, yt as Group, z as _default$21, zt as ExpansionPanelItemProps } from "./index-oQuVnpOj.mjs";
|
|
3
|
+
import { A as SelectionContextOptions, B as createRegistryContext, C as GroupContextOptions, D as createGroupContext, E as createGroup, F as useSelection, H as ContextTrinity, I as RegistryContext, L as RegistryContextOptions, M as SelectionTicket, N as createSelection, O as useGroup, P as createSelectionContext, R as RegistryOptions, S as GroupContext, T as GroupTicket, U as createTrinity, V as useRegistry, _ as PaginationOptions, a as createStep, b as createPaginationContext, c as SingleContext, d as SingleTicket, f as createSingle, g as PaginationContextOptions, h as PaginationContext, i as StepTicket, j as SelectionOptions, k as SelectionContext, l as SingleContextOptions, m as useSingle, n as StepContextOptions, o as createStepContext, p as createSingleContext, r as StepOptions, s as useStep, t as StepContext, u as SingleOptions, v as PaginationTicket, w as GroupOptions, x as usePagination, y as createPagination, z as RegistryTicket } from "./index-DaX9-kmY.mjs";
|
|
4
|
+
import { $ as createQueue, $n as TokenContext, $t as LocaleAdapter, A as Vuetify0ThemeAdapter, An as FilterFunction, Ar as provideContext, At as LoggerOptions, B as StorageAdapter, Bn as useFilterContext, Bt as LoggerAdapter, C as ThemePluginOptions, Cn as FormValidationRule, Cr as toArray, Ct as useOverflow, D as createThemeContext, Dn as useForm, Dr as ContextKey, Dt as useMutationObserver, E as createTheme, En as createFormContext, Er as createPlugin, Et as UseMutationObserverReturn, F as StoragePluginOptions, Fn as FilterResult, Ft as useLogger, G as UseElementSizeReturn, Gn as FeatureTicket, Gt as LocaleRecord, H as MemoryAdapter, Hn as FeatureContextOptions, Ht as LocaleContextOptions, I as createStorage, In as Primitive, It as LogLevel, J as useResizeObserver, Jn as createFeaturesPlugin, Jt as createLocaleContext, K as UseResizeObserverReturn, Kn as createFeatures, Kt as LocaleTicket, L as createStorageContext, Ln as createFilter, Lt as Vuetify0LoggerAdapter, M as StorageContext, Mn as FilterMode, Mt as createLogger, N as StorageContextOptions, Nn as FilterOptions, Nt as createLoggerContext, O as createThemePlugin, On as FilterContext, Or as CreateContextOptions, Ot as LoggerContext, P as StorageOptions, Pn as FilterQuery, Pt as createLoggerPlugin, Q as QueueTicket, Qn as TokenCollection, Qt as Vuetify0LocaleAdapter, R as createStoragePlugin, Rn as createFilterContext, Rt as PinoLoggerAdapter, S as ThemeOptions, Sn as FormValidationResult, Sr as toReactive, St as createOverflowContext, T as ThemeTicket, Tn as createForm, Tr as PluginOptions, Tt as UseMutationObserverOptions, U as ResizeObserverEntry, Un as FeatureOptions, Ut as LocaleOptions, V as StorageType, Vn as FeatureContext, Vt as LocaleContext, W as ResizeObserverOptions, Wn as FeaturePluginOptions, Wt as LocalePluginOptions, X as QueueContextOptions, Xn as FlatTokenCollection, Xt as createLocalePlugin, Y as QueueContext, Yn as useFeatures, Yt as createLocaleFallback, Z as QueueOptions, Zn as TokenAlias, Zt as useLocale, _ as useTimeline, _n as useHydration, _r as BreakpointsPluginOptions, _t as PermissionAdapterInterface, a as VirtualItem, an as UseElementIntersectionReturn, ar as createTokens, at as ProxyModelOptions, b as ThemeContext, bn as FormOptions, br as createBreakpointsPlugin, bt as OverflowOptions, c as useVirtual, cn as useIntersectionObserver, cr as CleanupFunction, ct as PermissionContextOptions, d as TimelineContext, dn as HydrationOptions, dr as useEventListener, dt as PermissionTicket, en as KeyHandler, er as TokenContextOptions, et as createQueueContext, f as TimelineContextOptions, fn as HydrationPluginOptions, fr as useWindowEventListener, ft as createPermissions, g as createTimelineContext, gn as createHydrationPlugin, gr as BreakpointsOptions, gt as PermissionAdapter, h as createTimeline, hn as createHydrationContext, hr as BreakpointsContextOptions, ht as usePermissions, i as VirtualDirection, in as IntersectionObserverOptions, ir as TokenValue, it as useProxyRegistry, j as ThemeAdapter, jn as FilterItem, jr as useContext, jt as LoggerPluginOptions, k as useTheme, kn as FilterContextOptions, kr as createContext, kt as LoggerContextOptions, l as ToggleScopeControls, ln as HydrationContext, lr as EventHandler, lt as PermissionOptions, m as TimelineTicket, mn as createHydration, mr as BreakpointsContext, mt as createPermissionsPlugin, n as VirtualAnchor, nn as useKeydown, nr as TokenPrimitive, nt as ProxyRegistryContext, o as VirtualOptions, on as UseIntersectionObserverReturn, or as createTokensContext, ot as useProxyModel, p as TimelineOptions, pn as createFallbackHydration, pr as BreakpointName, pt as createPermissionsContext, q as useElementSize, qn as createFeaturesContext, qt as createLocale, r as VirtualContext, rn as IntersectionObserverEntry, rr as TokenTicket, rt as ProxyRegistryOptions, s as VirtualState, sn as useElementIntersection, sr as useTokens, st as PermissionContext, t as ScrollToOptions, tn as UseKeydownReturn, tr as TokenOptions, tt as useQueue, u as useToggleScope, un as HydrationContextOptions, ur as useDocumentEventListener, ut as PermissionPluginOptions, v as Colors, vn as FormContext, vr as createBreakpoints, vt as OverflowContext, w as ThemeRecord, wn as FormValue, wr as Plugin, wt as MutationObserverRecord, x as ThemeContextOptions, xn as FormTicket, xr as useBreakpoints, xt as createOverflow, y as ThemeColors, yn as FormContextOptions, yr as createBreakpointsContext, yt as OverflowContextOptions, z as useStorage, zn as useFilter, zt as ConsolaLoggerAdapter } from "./index-CH7DpIK8.mjs";
|
|
5
|
+
import { a as isSelfClosingTag, c as SUPPORTS_MATCH_MEDIA, d as SUPPORTS_TOUCH, f as __LOGGER_ENABLED__, i as SelfClosingElement, l as SUPPORTS_MUTATION_OBSERVER, n as HTMLElementName, o as IN_BROWSER, p as version, r as SELF_CLOSING_TAGS, s as SUPPORTS_INTERSECTION_OBSERVER, t as COMMON_ELEMENTS, u as SUPPORTS_OBSERVER } from "./index-B9mKi4pr.mjs";
|
|
6
|
+
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "./index-B-jVvwsm.mjs";
|
|
7
|
+
export { _default as Atom, AtomExpose, AtomProps, AtomSlots, Avatar, AvatarContext, _default$1 as AvatarFallback, AvatarFallbackProps, AvatarFallbackSlotProps, _default$2 as AvatarImage, AvatarImageEmits, AvatarImageProps, AvatarImageSlotProps, _default$3 as AvatarRoot, AvatarRootProps, AvatarTicket, BreakpointName, BreakpointsContext, BreakpointsContextOptions, BreakpointsOptions, BreakpointsPluginOptions, COMMON_ELEMENTS, CleanupFunction, Colors, ConsolaLoggerAdapter, ContextKey, ContextTrinity, CreateContextOptions, EventHandler, ExpansionPanel, _default$4 as ExpansionPanelActivator, ExpansionPanelActivatorProps, ExpansionPanelActivatorSlotProps, _default$5 as ExpansionPanelContent, ExpansionPanelContentProps, ExpansionPanelContentSlotProps, _default$6 as ExpansionPanelHeader, ExpansionPanelHeaderProps, ExpansionPanelHeaderSlotProps, _default$7 as ExpansionPanelItem, ExpansionPanelItemContext, ExpansionPanelItemProps, ExpansionPanelItemSlotProps, ExpansionPanelOptionsContext, _default$8 as ExpansionPanelRoot, ExpansionPanelRootProps, ExpansionPanelRootSlotProps, FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FilterContext, FilterContextOptions, FilterFunction, FilterItem, FilterMode, FilterOptions, FilterQuery, FilterResult, FlatTokenCollection, FormContext, FormContextOptions, FormOptions, FormTicket, FormValidationResult, FormValidationRule, FormValue, Group, GroupContext, GroupContextOptions, _default$9 as GroupItem, GroupItemProps, GroupItemSlotProps, GroupOptions, _default$10 as GroupRoot, GroupRootProps, GroupRootSlotProps, GroupTicket, HTMLElementName, HydrationContext, HydrationContextOptions, HydrationOptions, HydrationPluginOptions, IN_BROWSER, IntersectionObserverEntry, IntersectionObserverOptions, KeyHandler, LocaleAdapter, LocaleContext, LocaleContextOptions, LocaleOptions, LocalePluginOptions, LocaleRecord, LocaleTicket, LogLevel, LoggerAdapter, LoggerContext, LoggerContextOptions, LoggerOptions, LoggerPluginOptions, MemoryAdapter, MutationObserverRecord, OverflowContext, OverflowContextOptions, OverflowOptions, Pagination, PaginationContext, PaginationContextOptions, _default$11 as PaginationEllipsis, PaginationEllipsisProps, PaginationEllipsisSlotProps, _default$12 as PaginationFirst, PaginationFirstProps, PaginationFirstSlotProps, _default$13 as PaginationItem, PaginationItemProps, PaginationItemSlotProps, _default$14 as PaginationLast, PaginationLastProps, PaginationLastSlotProps, _default$15 as PaginationNext, PaginationNextProps, PaginationNextSlotProps, PaginationOptions, _default$16 as PaginationPrev, PaginationPrevProps, PaginationPrevSlotProps, _default$17 as PaginationRoot, PaginationRootProps, PaginationRootSlotProps, _default$18 as PaginationStatus, PaginationStatusProps, PaginationStatusSlotProps, PaginationTicket, PermissionAdapter, PermissionAdapterInterface, PermissionContext, PermissionContextOptions, PermissionOptions, PermissionPluginOptions, PermissionTicket, PinoLoggerAdapter, Plugin, PluginOptions, Popover, _default$19 as PopoverAnchor, PopoverAnchorProps, PopoverAnchorSlotProps, _default$20 as PopoverContent, PopoverContentEmits, PopoverContentProps, PopoverContentSlotProps, PopoverContext, _default$21 as PopoverRoot, PopoverRootProps, PopoverRootSlotProps, Primitive, ProxyModelOptions, ProxyRegistryContext, ProxyRegistryOptions, QueueContext, QueueContextOptions, QueueOptions, QueueTicket, RegistryContext, RegistryContextOptions, RegistryOptions, RegistryTicket, ResizeObserverEntry, ResizeObserverOptions, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, ScrollToOptions, Selection, SelectionContext, SelectionContextOptions, _default$22 as SelectionItem, SelectionItemProps, SelectionItemSlotProps, SelectionOptions, _default$23 as SelectionRoot, SelectionRootProps, SelectionRootSlotProps, SelectionTicket, SelfClosingElement, Single, SingleContext, SingleContextOptions, _default$24 as SingleItem, SingleItemProps, SingleItemSlotProps, SingleOptions, _default$25 as SingleRoot, SingleRootProps, SingleRootSlotProps, SingleTicket, Step, StepContext, StepContextOptions, _default$26 as StepItem, StepItemProps, StepItemSlotProps, StepOptions, _default$27 as StepRoot, StepRootProps, StepRootSlotProps, StepTicket, StorageAdapter, StorageContext, StorageContextOptions, StorageOptions, StoragePluginOptions, StorageType, ThemeAdapter, ThemeColors, ThemeContext, ThemeContextOptions, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeTicket, TimelineContext, TimelineContextOptions, TimelineOptions, TimelineTicket, ToggleScopeControls, TokenAlias, TokenCollection, TokenContext, TokenContextOptions, TokenOptions, TokenPrimitive, TokenTicket, TokenValue, UseElementIntersectionReturn, UseElementSizeReturn, UseIntersectionObserverReturn, UseKeydownReturn, UseMutationObserverOptions, UseMutationObserverReturn, UseResizeObserverReturn, VirtualAnchor, VirtualContext, VirtualDirection, VirtualItem, VirtualOptions, VirtualState, Vuetify0LocaleAdapter, Vuetify0LoggerAdapter, Vuetify0ThemeAdapter, __LOGGER_ENABLED__, clamp, createBreakpoints, createBreakpointsContext, createBreakpointsPlugin, createContext, createFallbackHydration, createFeatures, createFeaturesContext, createFeaturesPlugin, createFilter, createFilterContext, createForm, createFormContext, createGroup, createGroupContext, createHydration, createHydrationContext, createHydrationPlugin, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, createLogger, createLoggerContext, createLoggerPlugin, createOverflow, createOverflowContext, createPagination, createPaginationContext, createPermissions, createPermissionsContext, createPermissionsPlugin, createPlugin, createQueue, createQueueContext, createRegistryContext, createSelection, createSelectionContext, createSingle, createSingleContext, createStep, createStepContext, createStorage, createStorageContext, createStoragePlugin, createTheme, createThemeContext, createThemePlugin, createTimeline, createTimelineContext, createTokens, createTokensContext, createTrinity, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, isSymbol, isUndefined, mergeDeep, provideAvatarContext, provideContext, provideExpansionPanelItem, provideExpansionPanelSelection, provideGroupRoot, providePaginationControls, providePaginationItems, providePaginationRoot, providePopoverContext, provideSelectionRoot, provideSingleRoot, provideStepRoot, range, toArray, toReactive, useAvatarRoot, useBreakpoints, useContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useExpansionPanelItem, useExpansionPanelRoot, useFeatures, useFilter, useFilterContext, useForm, useGroup, useGroupRoot, useHydration, useIntersectionObserver, useKeydown, useLocale, useLogger, useMutationObserver, useOverflow, usePagination, usePaginationControls, usePaginationItems, usePaginationRoot, usePermissions, usePopoverContext, useProxyModel, useProxyRegistry, useQueue, useRegistry, useResizeObserver, useSelection, useSelectionRoot, useSingle, useSingleRoot, useStep, useStepRoot, useStorage, useTheme, useTimeline, useToggleScope, useTokens, useVirtual, useWindowEventListener, version };
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as SELF_CLOSING_TAGS, r as isSelfClosingTag, t as COMMON_ELEMENTS } from "./htmlElements-
|
|
2
|
-
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "./utilities-
|
|
3
|
-
import { A as
|
|
4
|
-
import { A as createGroupContext, B as createLogger, C as useResizeObserver, D as createHydrationPlugin, E as createHydrationContext, F as createSelection, G as PinoLoggerAdapter, H as createLoggerPlugin, I as createSelectionContext, J as createTrinity, K as ConsolaLoggerAdapter, L as useSelection, M as useProxyRegistry, N as useProxyModel, O as useHydration, P as toArray, R as createRegistryContext, S as useElementSize, T as createHydration, U as useLogger, V as createLoggerContext, W as Vuetify0LoggerAdapter, X as provideContext, Y as createContext, Z as useContext, _ as createPaginationContext, a as createLocaleContext, b as createOverflowContext, c as useLocale, d as createTokensContext, f as useTokens, g as createPagination, h as useSingle, i as createLocale, j as useGroup, k as createGroup, l as Vuetify0LocaleAdapter, m as createSingleContext, n as createStepContext, o as createLocaleFallback, p as createSingle, q as createPlugin, r as useStep, s as createLocalePlugin, t as createStep, u as createTokens, v as usePagination, w as createFallbackHydration, x as useOverflow, y as createOverflow, z as useRegistry } from "./useStep-
|
|
5
|
-
import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
6
|
-
import { A as useForm, B as
|
|
7
|
-
import "./constants-
|
|
1
|
+
import { n as SELF_CLOSING_TAGS, r as isSelfClosingTag, t as COMMON_ELEMENTS } from "./htmlElements-CXObxj0V.mjs";
|
|
2
|
+
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "./utilities-JxCe-nF2.mjs";
|
|
3
|
+
import { $ as AvatarImage_default, A as PaginationRoot_default, B as provideGroupRoot, C as PaginationStatus_default, D as PaginationItem_default, E as PaginationLast_default, F as usePaginationItems, G as ExpansionPanelActivator_default, H as ExpansionPanel, I as usePaginationRoot, J as useExpansionPanelItem, K as ExpansionPanelItem_default, L as Group, M as providePaginationItems, N as providePaginationRoot, O as PaginationFirst_default, P as usePaginationControls, Q as Avatar, R as GroupItem_default, S as Pagination, T as PaginationNext_default, U as ExpansionPanelHeader_default, V as useGroupRoot, W as ExpansionPanelContent_default, X as provideExpansionPanelSelection, Y as ExpansionPanelRoot_default, Z as useExpansionPanelRoot, _ as PopoverContent_default, a as useStepRoot, b as providePopoverContext, c as SingleRoot_default, d as Selection, et as AvatarFallback_default, f as SelectionItem_default, g as Popover, h as useSelectionRoot, i as provideStepRoot, it as Atom_default, j as providePaginationControls, k as PaginationEllipsis_default, l as provideSingleRoot, m as provideSelectionRoot, n as StepItem_default, nt as provideAvatarContext, o as Single, p as SelectionRoot_default, q as provideExpansionPanelItem, r as StepRoot_default, rt as useAvatarRoot, s as SingleItem_default, t as Step, tt as AvatarRoot_default, u as useSingleRoot, v as PopoverAnchor_default, w as PaginationPrev_default, x as usePopoverContext, y as PopoverRoot_default, z as GroupRoot_default } from "./components-DRdenC8b.mjs";
|
|
4
|
+
import { A as createGroupContext, B as createLogger, C as useResizeObserver, D as createHydrationPlugin, E as createHydrationContext, F as createSelection, G as PinoLoggerAdapter, H as createLoggerPlugin, I as createSelectionContext, J as createTrinity, K as ConsolaLoggerAdapter, L as useSelection, M as useProxyRegistry, N as useProxyModel, O as useHydration, P as toArray, R as createRegistryContext, S as useElementSize, T as createHydration, U as useLogger, V as createLoggerContext, W as Vuetify0LoggerAdapter, X as provideContext, Y as createContext, Z as useContext, _ as createPaginationContext, a as createLocaleContext, b as createOverflowContext, c as useLocale, d as createTokensContext, f as useTokens, g as createPagination, h as useSingle, i as createLocale, j as useGroup, k as createGroup, l as Vuetify0LocaleAdapter, m as createSingleContext, n as createStepContext, o as createLocaleFallback, p as createSingle, q as createPlugin, r as useStep, s as createLocalePlugin, t as createStep, u as createTokens, v as usePagination, w as createFallbackHydration, x as useOverflow, y as createOverflow, z as useRegistry } from "./useStep-DC_JvZpy.mjs";
|
|
5
|
+
import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-BGVqrlN7.mjs";
|
|
6
|
+
import { A as useForm, B as createBreakpointsContext, C as PermissionAdapter, D as useIntersectionObserver, E as useElementIntersection, F as createFeatures, G as useWindowEventListener, H as useBreakpoints, I as createFeaturesContext, K as toReactive, L as createFeaturesPlugin, M as createFilterContext, N as useFilter, O as createForm, P as useFilterContext, R as useFeatures, S as usePermissions, T as useKeydown, U as useDocumentEventListener, V as createBreakpointsPlugin, W as useEventListener, _ as createQueueContext, a as useTimeline, b as createPermissionsContext, c as createThemePlugin, d as createStorage, f as createStorageContext, g as createQueue, h as MemoryAdapter, i as createTimelineContext, j as createFilter, k as createFormContext, l as useTheme, m as useStorage, n as useToggleScope, o as createTheme, p as createStoragePlugin, r as createTimeline, s as createThemeContext, t as useVirtual, u as Vuetify0ThemeAdapter, v as useQueue, w as useMutationObserver, x as createPermissionsPlugin, y as createPermissions, z as createBreakpoints } from "./composables-DG1MHp-R.mjs";
|
|
7
|
+
import "./constants-DypzAkYp.mjs";
|
|
8
8
|
|
|
9
|
-
export { Atom_default as Atom, Avatar, COMMON_ELEMENTS, ConsolaLoggerAdapter, ExpansionPanel, Group, IN_BROWSER, MemoryAdapter, Pagination, PermissionAdapter, PinoLoggerAdapter, Popover, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, Selection, Single, Step, Vuetify0LocaleAdapter, Vuetify0LoggerAdapter, Vuetify0ThemeAdapter, __LOGGER_ENABLED__, clamp, createBreakpoints, createBreakpointsContext, createBreakpointsPlugin, createContext, createFallbackHydration, createFeatures, createFeaturesContext, createFeaturesPlugin, createForm, createFormContext, createGroup, createGroupContext, createHydration, createHydrationContext, createHydrationPlugin, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, createLogger, createLoggerContext, createLoggerPlugin, createOverflow, createOverflowContext, createPagination, createPaginationContext, createPermissions, createPermissionsContext, createPermissionsPlugin, createPlugin, createQueue, createQueueContext, createRegistryContext, createSelection, createSelectionContext, createSingle, createSingleContext, createStep, createStepContext, createStorage, createStorageContext, createStoragePlugin, createTheme, createThemeContext, createThemePlugin, createTimeline, createTimelineContext, createTokens, createTokensContext, createTrinity, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, isSymbol, isUndefined, mergeDeep, provideAvatarContext, provideContext, provideExpansionPanelItem, provideExpansionPanelSelection, provideGroupRoot, providePaginationControls, providePaginationItems, providePaginationRoot, providePopoverContext, provideSelectionRoot, provideSingleRoot, provideStepRoot, range, toArray, toReactive, useAvatarRoot, useBreakpoints, useContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useExpansionPanelItem, useExpansionPanelRoot, useFeatures, useFilter, useForm, useGroup, useGroupRoot, useHydration, useIntersectionObserver, useKeydown, useLocale, useLogger, useMutationObserver, useOverflow, usePagination, usePaginationControls, usePaginationItems, usePaginationRoot, usePermissions, usePopoverContext, useProxyModel, useProxyRegistry, useQueue, useRegistry, useResizeObserver, useSelection, useSelectionRoot, useSingle, useSingleRoot, useStep, useStepRoot, useStorage, useTheme, useTimeline, useToggleScope, useTokens, useVirtual, useWindowEventListener, version };
|
|
9
|
+
export { Atom_default as Atom, Avatar, AvatarFallback_default as AvatarFallback, AvatarImage_default as AvatarImage, AvatarRoot_default as AvatarRoot, COMMON_ELEMENTS, ConsolaLoggerAdapter, ExpansionPanel, ExpansionPanelActivator_default as ExpansionPanelActivator, ExpansionPanelContent_default as ExpansionPanelContent, ExpansionPanelHeader_default as ExpansionPanelHeader, ExpansionPanelItem_default as ExpansionPanelItem, ExpansionPanelRoot_default as ExpansionPanelRoot, Group, GroupItem_default as GroupItem, GroupRoot_default as GroupRoot, IN_BROWSER, MemoryAdapter, Pagination, PaginationEllipsis_default as PaginationEllipsis, PaginationFirst_default as PaginationFirst, PaginationItem_default as PaginationItem, PaginationLast_default as PaginationLast, PaginationNext_default as PaginationNext, PaginationPrev_default as PaginationPrev, PaginationRoot_default as PaginationRoot, PaginationStatus_default as PaginationStatus, PermissionAdapter, PinoLoggerAdapter, Popover, PopoverAnchor_default as PopoverAnchor, PopoverContent_default as PopoverContent, PopoverRoot_default as PopoverRoot, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, Selection, SelectionItem_default as SelectionItem, SelectionRoot_default as SelectionRoot, Single, SingleItem_default as SingleItem, SingleRoot_default as SingleRoot, Step, StepItem_default as StepItem, StepRoot_default as StepRoot, Vuetify0LocaleAdapter, Vuetify0LoggerAdapter, Vuetify0ThemeAdapter, __LOGGER_ENABLED__, clamp, createBreakpoints, createBreakpointsContext, createBreakpointsPlugin, createContext, createFallbackHydration, createFeatures, createFeaturesContext, createFeaturesPlugin, createFilter, createFilterContext, createForm, createFormContext, createGroup, createGroupContext, createHydration, createHydrationContext, createHydrationPlugin, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, createLogger, createLoggerContext, createLoggerPlugin, createOverflow, createOverflowContext, createPagination, createPaginationContext, createPermissions, createPermissionsContext, createPermissionsPlugin, createPlugin, createQueue, createQueueContext, createRegistryContext, createSelection, createSelectionContext, createSingle, createSingleContext, createStep, createStepContext, createStorage, createStorageContext, createStoragePlugin, createTheme, createThemeContext, createThemePlugin, createTimeline, createTimelineContext, createTokens, createTokensContext, createTrinity, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, isSymbol, isUndefined, mergeDeep, provideAvatarContext, provideContext, provideExpansionPanelItem, provideExpansionPanelSelection, provideGroupRoot, providePaginationControls, providePaginationItems, providePaginationRoot, providePopoverContext, provideSelectionRoot, provideSingleRoot, provideStepRoot, range, toArray, toReactive, useAvatarRoot, useBreakpoints, useContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useExpansionPanelItem, useExpansionPanelRoot, useFeatures, useFilter, useFilterContext, useForm, useGroup, useGroupRoot, useHydration, useIntersectionObserver, useKeydown, useLocale, useLogger, useMutationObserver, useOverflow, usePagination, usePaginationControls, usePaginationItems, usePaginationRoot, usePermissions, usePopoverContext, useProxyModel, useProxyRegistry, useQueue, useRegistry, useResizeObserver, useSelection, useSelectionRoot, useSingle, useSingleRoot, useStep, useStepRoot, useStorage, useTheme, useTimeline, useToggleScope, useTokens, useVirtual, useWindowEventListener, version };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MaybeArray, i as ID, n as DeepPartial, o as UnknownObject, r as GenericObject, t as DOMElement } from "../index-
|
|
1
|
+
import { a as MaybeArray, i as ID, n as DeepPartial, o as UnknownObject, r as GenericObject, t as DOMElement } from "../index-C5LQZd3v.mjs";
|
|
2
2
|
export { DOMElement, DeepPartial, GenericObject, ID, MaybeArray, UnknownObject };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as range, d as isObject, h as isUndefined,
|
|
2
|
-
import { a as SUPPORTS_OBSERVER, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { _ as range, d as isObject, h as isUndefined, l as isNullOrUndefined, m as isSymbol, o as isFunction, p as isString, r as genId, s as isNaN } from "./utilities-JxCe-nF2.mjs";
|
|
2
|
+
import { a as SUPPORTS_OBSERVER, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-BGVqrlN7.mjs";
|
|
3
3
|
import { computed, getCurrentInstance, inject, isRef, onScopeDispose, provide, reactive, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, watch } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/createContext/index.ts
|
|
@@ -441,12 +441,12 @@ function createFallbackLogger(namespace = "v0:logger") {
|
|
|
441
441
|
return `[${namespace} ${type}] ${message}`;
|
|
442
442
|
}
|
|
443
443
|
return {
|
|
444
|
-
debug: (message, ...args) => console.
|
|
445
|
-
info: (message, ...args) => console.
|
|
446
|
-
warn: (message, ...args) => console.
|
|
447
|
-
error: (message, ...args) => console.
|
|
448
|
-
trace: (message, ...args) => console.
|
|
449
|
-
fatal: (message, ...args) => console.
|
|
444
|
+
debug: (message, ...args) => console.debug(format(message, "debug"), ...args),
|
|
445
|
+
info: (message, ...args) => console.info(format(message, "info"), ...args),
|
|
446
|
+
warn: (message, ...args) => console.warn(format(message, "warn"), ...args),
|
|
447
|
+
error: (message, ...args) => console.error(format(message, "error"), ...args),
|
|
448
|
+
trace: (message, ...args) => console.trace(format(message, "trace"), ...args),
|
|
449
|
+
fatal: (message, ...args) => console.error(format(message, "fatal"), ...args),
|
|
450
450
|
level: () => {},
|
|
451
451
|
current: () => "info",
|
|
452
452
|
enabled: () => true,
|
|
@@ -474,7 +474,7 @@ function createFallbackLogger(namespace = "v0:logger") {
|
|
|
474
474
|
* ```
|
|
475
475
|
*/
|
|
476
476
|
function createLoggerContext(_options = {}) {
|
|
477
|
-
const { namespace = "v0:logger"
|
|
477
|
+
const { namespace = "v0:logger", ...options } = _options;
|
|
478
478
|
const [useLoggerContext, _provideLoggerContext] = createContext(namespace);
|
|
479
479
|
const context = createLogger(options);
|
|
480
480
|
function provideLoggerContext(_context = context, app) {
|
|
@@ -509,7 +509,7 @@ function createLoggerContext(_options = {}) {
|
|
|
509
509
|
* ```
|
|
510
510
|
*/
|
|
511
511
|
function createLoggerPlugin(_options = {}) {
|
|
512
|
-
const { namespace = "v0:logger"
|
|
512
|
+
const { namespace = "v0:logger", ...options } = _options;
|
|
513
513
|
const [, provideLoggerContext, context] = createLoggerContext({
|
|
514
514
|
...options,
|
|
515
515
|
namespace
|
|
@@ -606,6 +606,8 @@ function useRegistry(options) {
|
|
|
606
606
|
let indexDependentCount = 0;
|
|
607
607
|
let needsReindex = false;
|
|
608
608
|
let minDirtyIndex = Infinity;
|
|
609
|
+
let batching = false;
|
|
610
|
+
let pendingEmits = [];
|
|
609
611
|
function emit(event, data = void 0) {
|
|
610
612
|
if (!events) return;
|
|
611
613
|
const cbs = listeners.get(event);
|
|
@@ -681,24 +683,19 @@ function useRegistry(options) {
|
|
|
681
683
|
function assign(value, id) {
|
|
682
684
|
const bucket = catalog.get(value);
|
|
683
685
|
if (bucket) {
|
|
684
|
-
if (
|
|
685
|
-
|
|
686
|
-
} else if (bucket !== id) catalog.set(value, [bucket, id]);
|
|
687
|
-
} else catalog.set(value, id);
|
|
686
|
+
if (!bucket.includes(id)) bucket.push(id);
|
|
687
|
+
} else catalog.set(value, [id]);
|
|
688
688
|
}
|
|
689
689
|
function unassign(value, id) {
|
|
690
690
|
const bucket = catalog.get(value);
|
|
691
691
|
if (!bucket) return;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
else if (next.length === 1) catalog.set(value, next[0]);
|
|
696
|
-
else catalog.set(value, next);
|
|
697
|
-
} else if (bucket === id) catalog.delete(value);
|
|
692
|
+
const next = bucket.filter((v) => v !== id);
|
|
693
|
+
if (next.length === 0) catalog.delete(value);
|
|
694
|
+
else catalog.set(value, next);
|
|
698
695
|
}
|
|
699
696
|
function keys() {
|
|
700
697
|
const cached = cache.get("keys");
|
|
701
|
-
if (
|
|
698
|
+
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
702
699
|
const keys$1 = Array.from(collection.keys());
|
|
703
700
|
cache.set("keys", keys$1);
|
|
704
701
|
return keys$1;
|
|
@@ -728,8 +725,30 @@ function useRegistry(options) {
|
|
|
728
725
|
emit("clear:registry");
|
|
729
726
|
}
|
|
730
727
|
function invalidate() {
|
|
728
|
+
if (batching) return;
|
|
731
729
|
if (cache.size > 0) cache.clear();
|
|
732
730
|
}
|
|
731
|
+
function queueEmit(event, data) {
|
|
732
|
+
if (batching) pendingEmits.push({
|
|
733
|
+
event,
|
|
734
|
+
data
|
|
735
|
+
});
|
|
736
|
+
else emit(event, data);
|
|
737
|
+
}
|
|
738
|
+
function batch(fn) {
|
|
739
|
+
if (batching) return fn();
|
|
740
|
+
batching = true;
|
|
741
|
+
pendingEmits = [];
|
|
742
|
+
try {
|
|
743
|
+
const result = fn();
|
|
744
|
+
if (cache.size > 0) cache.clear();
|
|
745
|
+
for (const { event, data } of pendingEmits) emit(event, data);
|
|
746
|
+
return result;
|
|
747
|
+
} finally {
|
|
748
|
+
batching = false;
|
|
749
|
+
pendingEmits = [];
|
|
750
|
+
}
|
|
751
|
+
}
|
|
733
752
|
function reindex() {
|
|
734
753
|
const startIndex = minDirtyIndex === Infinity ? 0 : minDirtyIndex;
|
|
735
754
|
if (startIndex === 0) {
|
|
@@ -780,7 +799,7 @@ function useRegistry(options) {
|
|
|
780
799
|
directory.set(ticket.index, ticket.id);
|
|
781
800
|
assign(ticket.value, ticket.id);
|
|
782
801
|
invalidate();
|
|
783
|
-
|
|
802
|
+
queueEmit("register:ticket", ticket);
|
|
784
803
|
return ticket;
|
|
785
804
|
}
|
|
786
805
|
function unregister(id) {
|
|
@@ -790,15 +809,12 @@ function useRegistry(options) {
|
|
|
790
809
|
collection.delete(ticket.id);
|
|
791
810
|
directory.delete(ticket.index);
|
|
792
811
|
unassign(ticket.value, ticket.id);
|
|
793
|
-
|
|
812
|
+
const willReindex = indexDependentCount > 0 && ticket.index < collection.size;
|
|
813
|
+
if (!willReindex) invalidate();
|
|
794
814
|
emit("unregister:ticket", ticket);
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
} else {
|
|
799
|
-
minDirtyIndex = Math.min(minDirtyIndex, ticket.index);
|
|
800
|
-
needsReindex = true;
|
|
801
|
-
}
|
|
815
|
+
minDirtyIndex = Math.min(minDirtyIndex, ticket.index);
|
|
816
|
+
if (willReindex) reindex();
|
|
817
|
+
else needsReindex = true;
|
|
802
818
|
}
|
|
803
819
|
function offboard(ids) {
|
|
804
820
|
const removed = [];
|
|
@@ -855,8 +871,9 @@ function useRegistry(options) {
|
|
|
855
871
|
unregister,
|
|
856
872
|
reindex,
|
|
857
873
|
seek,
|
|
874
|
+
batch,
|
|
858
875
|
onboard(registrations) {
|
|
859
|
-
return registrations.map((registration) => register(registration));
|
|
876
|
+
return batch(() => registrations.map((registration) => register(registration)));
|
|
860
877
|
},
|
|
861
878
|
offboard,
|
|
862
879
|
get size() {
|
|
@@ -867,8 +884,7 @@ function useRegistry(options) {
|
|
|
867
884
|
/**
|
|
868
885
|
* Creates a new registry context.
|
|
869
886
|
*
|
|
870
|
-
* @param
|
|
871
|
-
* @param options The options for the registry context.
|
|
887
|
+
* @param options The options for the registry context, including `namespace` (defaults to `'v0:registry'`) and `events`.
|
|
872
888
|
* @template Z The type of registry ticket that extends RegistryTicket. Use this to add custom properties to tickets.
|
|
873
889
|
* @template E The type of registry context that extends RegistryContext<Z>. Use this when extending the registry with additional methods.
|
|
874
890
|
* @returns A new registry context.
|
|
@@ -894,7 +910,7 @@ function useRegistry(options) {
|
|
|
894
910
|
* ```
|
|
895
911
|
*/
|
|
896
912
|
function createRegistryContext(_options = {}) {
|
|
897
|
-
const { namespace = "v0:registry"
|
|
913
|
+
const { namespace = "v0:registry", ...options } = _options;
|
|
898
914
|
const [useRegistryContext, _provideRegistryContext] = createContext(namespace);
|
|
899
915
|
const context = useRegistry(options);
|
|
900
916
|
function provideRegistryContext(_context = context, app) {
|
|
@@ -967,14 +983,14 @@ function createRegistryContext(_options = {}) {
|
|
|
967
983
|
* ```
|
|
968
984
|
*/
|
|
969
985
|
function createSelection(_options = {}) {
|
|
970
|
-
const { disabled = false, enroll = false, mandatory = false, multiple = false
|
|
986
|
+
const { disabled = false, enroll = false, mandatory = false, multiple = false, ...options } = _options;
|
|
971
987
|
const registry = useRegistry(options);
|
|
972
988
|
const selectedIds = shallowReactive(/* @__PURE__ */ new Set());
|
|
973
989
|
const selectedItems = computed(() => {
|
|
974
|
-
return new Set(Array.from(selectedIds).map((id) => registry.get(id)));
|
|
990
|
+
return new Set(Array.from(selectedIds).map((id) => registry.get(id)).filter((item) => !/* @__PURE__ */ isUndefined(item)));
|
|
975
991
|
});
|
|
976
992
|
const selectedValues = computed(() => {
|
|
977
|
-
return new Set(Array.from(selectedItems.value).map((item) => item
|
|
993
|
+
return new Set(Array.from(selectedItems.value).map((item) => item.value));
|
|
978
994
|
});
|
|
979
995
|
function seek(direction = "first", from) {
|
|
980
996
|
return registry.seek(direction, from, (ticket) => !toValue(ticket.disabled));
|
|
@@ -985,16 +1001,19 @@ function createSelection(_options = {}) {
|
|
|
985
1001
|
if (ticket) select(ticket.id);
|
|
986
1002
|
}
|
|
987
1003
|
function select(id) {
|
|
1004
|
+
if (toValue(disabled)) return;
|
|
988
1005
|
const item = registry.get(id);
|
|
989
1006
|
if (!item || toValue(item.disabled)) return;
|
|
990
1007
|
if (!multiple) selectedIds.clear();
|
|
991
1008
|
selectedIds.add(id);
|
|
992
1009
|
}
|
|
993
1010
|
function unselect(id) {
|
|
1011
|
+
if (toValue(disabled)) return;
|
|
994
1012
|
if (mandatory && selectedIds.size === 1) return;
|
|
995
1013
|
selectedIds.delete(id);
|
|
996
1014
|
}
|
|
997
1015
|
function toggle(id) {
|
|
1016
|
+
if (toValue(disabled)) return;
|
|
998
1017
|
if (selected(id)) unselect(id);
|
|
999
1018
|
else select(id);
|
|
1000
1019
|
}
|
|
@@ -1013,7 +1032,7 @@ function createSelection(_options = {}) {
|
|
|
1013
1032
|
id
|
|
1014
1033
|
};
|
|
1015
1034
|
const ticket = registry.register(item);
|
|
1016
|
-
if (enroll && !toValue(item.disabled)) selectedIds.add(ticket.id);
|
|
1035
|
+
if (enroll && !toValue(disabled) && !toValue(item.disabled)) selectedIds.add(ticket.id);
|
|
1017
1036
|
if (mandatory === "force") mandate();
|
|
1018
1037
|
return ticket;
|
|
1019
1038
|
}
|
|
@@ -1084,7 +1103,7 @@ function createSelection(_options = {}) {
|
|
|
1084
1103
|
* ```
|
|
1085
1104
|
*/
|
|
1086
1105
|
function createSelectionContext(_options = {}) {
|
|
1087
|
-
const { namespace = "v0:selection"
|
|
1106
|
+
const { namespace = "v0:selection", ...options } = _options;
|
|
1088
1107
|
const [useSelectionContext, _provideSelectionContext] = createContext(namespace);
|
|
1089
1108
|
const context = createSelection(options);
|
|
1090
1109
|
function provideSelectionContext(_context = context, app) {
|
|
@@ -1211,12 +1230,9 @@ function useProxyModel(registry, model, options) {
|
|
|
1211
1230
|
const pending = new Set(modelAsArray);
|
|
1212
1231
|
for (const value of modelAsArray) {
|
|
1213
1232
|
const ids = registry.browse(value);
|
|
1214
|
-
if (
|
|
1233
|
+
if (ids) {
|
|
1215
1234
|
for (const id of ids) registry.select(id);
|
|
1216
1235
|
pending.delete(value);
|
|
1217
|
-
} else if (ids) {
|
|
1218
|
-
registry.select(ids);
|
|
1219
|
-
pending.delete(value);
|
|
1220
1236
|
}
|
|
1221
1237
|
}
|
|
1222
1238
|
const registryWatch = watch(registry.selectedValues, (val) => {
|
|
@@ -1230,8 +1246,7 @@ function useProxyModel(registry, model, options) {
|
|
|
1230
1246
|
const targetIds = /* @__PURE__ */ new Set();
|
|
1231
1247
|
for (const value of transformIn(val)) {
|
|
1232
1248
|
const ids = registry.browse(value);
|
|
1233
|
-
if (
|
|
1234
|
-
else if (ids) targetIds.add(ids);
|
|
1249
|
+
if (ids) for (const id of ids) targetIds.add(id);
|
|
1235
1250
|
}
|
|
1236
1251
|
if (multiple) {
|
|
1237
1252
|
for (const id of currentIds.difference(targetIds)) registry.selectedIds.delete(id);
|
|
@@ -1426,7 +1441,7 @@ function useProxyRegistry(registry, options) {
|
|
|
1426
1441
|
* ```
|
|
1427
1442
|
*/
|
|
1428
1443
|
function createGroup(_options = {}) {
|
|
1429
|
-
const { mandatory = false, multiple = true
|
|
1444
|
+
const { mandatory = false, multiple = true, ...options } = _options;
|
|
1430
1445
|
const selection = createSelection({
|
|
1431
1446
|
...options,
|
|
1432
1447
|
mandatory,
|
|
@@ -1436,10 +1451,10 @@ function createGroup(_options = {}) {
|
|
|
1436
1451
|
const proxy = useProxyRegistry(selection);
|
|
1437
1452
|
const mixedIds = shallowReactive(/* @__PURE__ */ new Set());
|
|
1438
1453
|
const selectedIndexes = computed(() => {
|
|
1439
|
-
return new Set(Array.from(selection.selectedItems.value).map((item) => item?.index));
|
|
1454
|
+
return new Set(Array.from(selection.selectedItems.value).map((item) => item?.index).filter((index) => !/* @__PURE__ */ isUndefined(index)));
|
|
1440
1455
|
});
|
|
1441
1456
|
const mixedItems = computed(() => {
|
|
1442
|
-
return new Set(Array.from(mixedIds).map((id) => selection.get(id)));
|
|
1457
|
+
return new Set(Array.from(mixedIds).map((id) => selection.get(id)).filter((item) => !/* @__PURE__ */ isUndefined(item)));
|
|
1443
1458
|
});
|
|
1444
1459
|
function mixed(id) {
|
|
1445
1460
|
return mixedIds.has(id);
|
|
@@ -1506,10 +1521,10 @@ function createGroup(_options = {}) {
|
|
|
1506
1521
|
if (items.length === 0) return false;
|
|
1507
1522
|
return items.every((item) => selection.selectedIds.has(item.id));
|
|
1508
1523
|
});
|
|
1509
|
-
const
|
|
1524
|
+
const isNoneSelected = computed(() => selection.selectedIds.size === 0);
|
|
1525
|
+
const isMixed = computed(() => {
|
|
1510
1526
|
return mixedIds.size > 0 || !isNoneSelected.value && !isAllSelected.value;
|
|
1511
1527
|
});
|
|
1512
|
-
const isNoneSelected = toRef(() => selection.selectedIds.size === 0);
|
|
1513
1528
|
function selectAll() {
|
|
1514
1529
|
for (const item of selectableItems.value) {
|
|
1515
1530
|
mixedIds.delete(item.id);
|
|
@@ -1581,7 +1596,7 @@ function createGroup(_options = {}) {
|
|
|
1581
1596
|
* ```
|
|
1582
1597
|
*/
|
|
1583
1598
|
function createGroupContext(_options = {}) {
|
|
1584
|
-
const { namespace = "v0:group"
|
|
1599
|
+
const { namespace = "v0:group", ...options } = _options;
|
|
1585
1600
|
const [useGroupContext, _provideGroupContext] = createContext(namespace);
|
|
1586
1601
|
const context = createGroup(options);
|
|
1587
1602
|
function provideGroupContext(_context = context, app) {
|
|
@@ -1718,7 +1733,7 @@ function createHydrationContext(_options = {}) {
|
|
|
1718
1733
|
* ```
|
|
1719
1734
|
*/
|
|
1720
1735
|
function createHydrationPlugin(_options = {}) {
|
|
1721
|
-
const { namespace = "v0:hydration"
|
|
1736
|
+
const { namespace = "v0:hydration", ...options } = _options;
|
|
1722
1737
|
const [, provideHydrationContext, context] = createHydrationContext({
|
|
1723
1738
|
...options,
|
|
1724
1739
|
namespace
|
|
@@ -2091,7 +2106,7 @@ function createOverflow(options = {}) {
|
|
|
2091
2106
|
* ```
|
|
2092
2107
|
*/
|
|
2093
2108
|
function createOverflowContext(_options = {}) {
|
|
2094
|
-
const { namespace = "v0:overflow"
|
|
2109
|
+
const { namespace = "v0:overflow", ...options } = _options;
|
|
2095
2110
|
const [useOverflowContext, _provideOverflowContext] = createContext(namespace);
|
|
2096
2111
|
const context = createOverflow(options);
|
|
2097
2112
|
function provideOverflowContext(_context = context, app) {
|
|
@@ -2207,7 +2222,7 @@ function createPagination(_options = {}) {
|
|
|
2207
2222
|
};
|
|
2208
2223
|
}
|
|
2209
2224
|
function filter(array) {
|
|
2210
|
-
return array.filter(
|
|
2225
|
+
return array.filter((item) => item !== false);
|
|
2211
2226
|
}
|
|
2212
2227
|
return {
|
|
2213
2228
|
page,
|
|
@@ -2322,7 +2337,7 @@ function createPagination(_options = {}) {
|
|
|
2322
2337
|
* ```
|
|
2323
2338
|
*/
|
|
2324
2339
|
function createPaginationContext(_options = {}) {
|
|
2325
|
-
const { namespace = "v0:pagination"
|
|
2340
|
+
const { namespace = "v0:pagination", ...options } = _options;
|
|
2326
2341
|
const [usePaginationContext, _providePaginationContext] = createContext(namespace);
|
|
2327
2342
|
const context = createPagination(options);
|
|
2328
2343
|
function providePaginationContext(_context = context, app) {
|
|
@@ -2420,7 +2435,7 @@ function usePagination(namespace = "v0:pagination") {
|
|
|
2420
2435
|
* ```
|
|
2421
2436
|
*/
|
|
2422
2437
|
function createSingle(_options = {}) {
|
|
2423
|
-
const { mandatory = false, multiple = false
|
|
2438
|
+
const { mandatory = false, multiple = false, ...options } = _options;
|
|
2424
2439
|
const registry = createSelection({
|
|
2425
2440
|
...options,
|
|
2426
2441
|
mandatory,
|
|
@@ -2477,7 +2492,7 @@ function createSingle(_options = {}) {
|
|
|
2477
2492
|
* ```
|
|
2478
2493
|
*/
|
|
2479
2494
|
function createSingleContext(_options = {}) {
|
|
2480
|
-
const { namespace = "v0:single"
|
|
2495
|
+
const { namespace = "v0:single", ...options } = _options;
|
|
2481
2496
|
const [useSingleContext, _provideSingleContext] = createContext(namespace);
|
|
2482
2497
|
const context = createSingle(options);
|
|
2483
2498
|
function provideSingleContext(_context = context, app) {
|
|
@@ -2665,7 +2680,7 @@ function createTokens(tokens = {}, options = {}) {
|
|
|
2665
2680
|
* ```
|
|
2666
2681
|
*/
|
|
2667
2682
|
function createTokensContext(_options) {
|
|
2668
|
-
const { namespace = "v0:tokens", tokens = {}
|
|
2683
|
+
const { namespace = "v0:tokens", tokens = {}, ...options } = _options;
|
|
2669
2684
|
const [useTokensContext, _provideTokensContext] = createContext(namespace);
|
|
2670
2685
|
const context = createTokens(tokens, options);
|
|
2671
2686
|
function provideTokensContext(_context = context, app) {
|
|
@@ -2830,7 +2845,7 @@ var Vuetify0LocaleAdapter = class {
|
|
|
2830
2845
|
* @see https://0.vuetifyjs.com/composables/plugins/use-locale
|
|
2831
2846
|
*/
|
|
2832
2847
|
function createLocale(_options = {}) {
|
|
2833
|
-
const { adapter = new Vuetify0LocaleAdapter(), messages = {}
|
|
2848
|
+
const { adapter = new Vuetify0LocaleAdapter(), messages = {}, ...options } = _options;
|
|
2834
2849
|
const tokens = createTokens(messages);
|
|
2835
2850
|
const registry = createSingle(options);
|
|
2836
2851
|
for (const id in messages) {
|
|
@@ -2906,7 +2921,7 @@ function createLocaleFallback() {
|
|
|
2906
2921
|
* ```
|
|
2907
2922
|
*/
|
|
2908
2923
|
function createLocaleContext(_options = {}) {
|
|
2909
|
-
const { namespace = "v0:locale"
|
|
2924
|
+
const { namespace = "v0:locale", ...options } = _options;
|
|
2910
2925
|
const [useLocaleContext, _provideLocaleContext] = createContext(namespace);
|
|
2911
2926
|
const context = createLocale(options);
|
|
2912
2927
|
function provideLocaleContext(_context = context, app) {
|
|
@@ -2927,7 +2942,7 @@ function createLocaleContext(_options = {}) {
|
|
|
2927
2942
|
* @see https://0.vuetifyjs.com/composables/plugins/use-locale
|
|
2928
2943
|
*/
|
|
2929
2944
|
function createLocalePlugin(_options = {}) {
|
|
2930
|
-
const { namespace = "v0:locale", adapter = new Vuetify0LocaleAdapter(), messages = {}
|
|
2945
|
+
const { namespace = "v0:locale", adapter = new Vuetify0LocaleAdapter(), messages = {}, ...options } = _options;
|
|
2931
2946
|
const [, provideLocaleContext, context] = createLocaleContext({
|
|
2932
2947
|
...options,
|
|
2933
2948
|
namespace,
|
|
@@ -3043,7 +3058,7 @@ function useLocale(namespace = "v0:locale") {
|
|
|
3043
3058
|
* ```
|
|
3044
3059
|
*/
|
|
3045
3060
|
function createStep(_options = {}) {
|
|
3046
|
-
const { circular = false
|
|
3061
|
+
const { circular = false, ...options } = _options;
|
|
3047
3062
|
const registry = createSingle(options);
|
|
3048
3063
|
function first() {
|
|
3049
3064
|
const ticket = registry.seek("first");
|
|
@@ -3119,7 +3134,7 @@ function createStep(_options = {}) {
|
|
|
3119
3134
|
* ```
|
|
3120
3135
|
*/
|
|
3121
3136
|
function createStepContext(_options = {}) {
|
|
3122
|
-
const { namespace = "v0:step"
|
|
3137
|
+
const { namespace = "v0:step", ...options } = _options;
|
|
3123
3138
|
const [useStepContext, _provideStepContext] = createContext(namespace);
|
|
3124
3139
|
const context = createStep(options);
|
|
3125
3140
|
function provideStepContext(_context = context, app) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "../index-
|
|
1
|
+
import "../index-C5LQZd3v.mjs";
|
|
2
|
+
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "../index-B-jVvwsm.mjs";
|
|
3
3
|
export { clamp, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "../utilities-
|
|
1
|
+
import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "../utilities-JxCe-nF2.mjs";
|
|
2
2
|
|
|
3
3
|
export { clamp, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|