@vuetify/v0 0.0.24 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/browser/index.js +165 -66
- package/dist/components/index.d.mts +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/{components-D_yAxHwn.mjs → components-BOipMGkD.mjs} +11 -6
- package/dist/composables/index.d.mts +4 -4
- package/dist/composables/index.mjs +3 -3
- package/dist/constants/index.mjs +1 -1
- package/dist/date/index.mjs +1 -1
- package/dist/{globals-BhNI7no7.mjs → globals-qE_M6ZhX.mjs} +1 -1
- package/dist/{index-OghXharF.d.mts → index-Bx6Ke-u_.d.mts} +291 -264
- package/dist/{index-kvJsAOSg.d.mts → index-CoO8LW8o.d.mts} +1 -1
- package/dist/{index-ZW2YLa57.d.mts → index-DlxrzbvZ.d.mts} +15 -14
- package/dist/{index-isYKpbs6.d.mts → index-DmNXO254.d.mts} +239 -73
- package/dist/{index-DknfL2GU.d.mts → index-qSuLpob3.d.mts} +226 -45
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/json/attributes.json +5 -1
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +12 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/{useClickOutside-w-Y2QxHh.mjs → useClickOutside-DcrXfUVx.mjs} +156 -62
- package/dist/utilities/index.d.mts +2 -2
- package/package.json +19 -2
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as SELF_CLOSING_TAGS, r as isSelfClosingTag, t as COMMON_ELEMENTS } from "./htmlElements-DO9n35bD.mjs";
|
|
2
2
|
import { _ as useId, a as isFunction, c as isNullOrUndefined, d as isPrimitive, f as isString, g as range, h as mergeDeep, i as isBoolean, l as isNumber, m as isUndefined, n as debounce, o as isNaN, p as isSymbol, r as isArray, s as isNull, t as clamp, u as isObject, v as instanceExists, y as instanceName } from "./utilities-B58TiS_S.mjs";
|
|
3
|
-
import { $ as Group, A as provideRadioGroup, At as CheckboxGroup_default, B as PaginationPrev_default, C as Radio, Ct as Checkbox, D as provideRadioRoot, Dt as CheckboxRoot_default, E as RadioRoot_default, Et as CheckboxHiddenInput_default, F as PopoverRoot_default, Ft as AvatarFallback_default, G as PaginationEllipsis_default, H as PaginationLast_default, I as providePopoverContext, It as AvatarRoot_default, J as providePaginationItems, K as PaginationRoot_default, L as usePopoverContext, Lt as provideAvatarContext, M as Popover, Mt as useCheckboxGroup, N as PopoverContent_default, Nt as Avatar, O as useRadioRoot, Ot as provideCheckboxRoot, P as PopoverActivator_default, Pt as AvatarImage_default, Q as usePaginationRoot, R as Pagination, Rt as useAvatarRoot, S as useSelectionRoot, St as useDialogContext, T as RadioHiddenInput_default, Tt as CheckboxIndicator_default, U as PaginationItem_default, V as PaginationNext_default, W as PaginationFirst_default, X as usePaginationControls, Y as providePaginationRoot, Z as usePaginationItems, _ as useSingleRoot, _t as DialogDescription_default, a as TabsRoot_default, at as ExpansionPanelHeader_default, b as SelectionRoot_default, bt as DialogRoot_default, c as Step, ct as ExpansionPanelItem_default, d as provideStepRoot, dt as ExpansionPanelRoot_default, et as GroupItem_default, f as useStepRoot, ft as provideExpansionPanelSelection, g as provideSingleRoot, gt as DialogTitle_default, h as SingleRoot_default, ht as DialogActivator_default, i as TabsList_default, it as ExpansionPanel, j as useRadioGroup, jt as provideCheckboxGroup, k as RadioGroup_default, kt as useCheckboxRoot, l as StepItem_default, lt as provideExpansionPanelItem, m as SingleItem_default, mt as Dialog, n as TabsPanel_default, nt as provideGroupRoot, o as provideTabsRoot, ot as ExpansionPanelContent_default, p as Single, pt as useExpansionPanelRoot, q as providePaginationControls, r as TabsItem_default, rt as useGroupRoot, s as useTabsRoot, st as ExpansionPanelActivator_default, t as Tabs, tt as GroupRoot_default, u as StepRoot_default, ut as useExpansionPanelItem, v as Selection, vt as DialogContent_default, w as RadioIndicator_default, wt as CheckboxSelectAll_default, x as provideSelectionRoot, xt as provideDialogContext, y as SelectionItem_default, yt as DialogClose_default, z as PaginationStatus_default, zt as Atom_default } from "./components-
|
|
4
|
-
import { $ as createForm, $t as
|
|
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-
|
|
3
|
+
import { $ as Group, A as provideRadioGroup, At as CheckboxGroup_default, B as PaginationPrev_default, C as Radio, Ct as Checkbox, D as provideRadioRoot, Dt as CheckboxRoot_default, E as RadioRoot_default, Et as CheckboxHiddenInput_default, F as PopoverRoot_default, Ft as AvatarFallback_default, G as PaginationEllipsis_default, H as PaginationLast_default, I as providePopoverContext, It as AvatarRoot_default, J as providePaginationItems, K as PaginationRoot_default, L as usePopoverContext, Lt as provideAvatarContext, M as Popover, Mt as useCheckboxGroup, N as PopoverContent_default, Nt as Avatar, O as useRadioRoot, Ot as provideCheckboxRoot, P as PopoverActivator_default, Pt as AvatarImage_default, Q as usePaginationRoot, R as Pagination, Rt as useAvatarRoot, S as useSelectionRoot, St as useDialogContext, T as RadioHiddenInput_default, Tt as CheckboxIndicator_default, U as PaginationItem_default, V as PaginationNext_default, W as PaginationFirst_default, X as usePaginationControls, Y as providePaginationRoot, Z as usePaginationItems, _ as useSingleRoot, _t as DialogDescription_default, a as TabsRoot_default, at as ExpansionPanelHeader_default, b as SelectionRoot_default, bt as DialogRoot_default, c as Step, ct as ExpansionPanelItem_default, d as provideStepRoot, dt as ExpansionPanelRoot_default, et as GroupItem_default, f as useStepRoot, ft as provideExpansionPanelSelection, g as provideSingleRoot, gt as DialogTitle_default, h as SingleRoot_default, ht as DialogActivator_default, i as TabsList_default, it as ExpansionPanel, j as useRadioGroup, jt as provideCheckboxGroup, k as RadioGroup_default, kt as useCheckboxRoot, l as StepItem_default, lt as provideExpansionPanelItem, m as SingleItem_default, mt as Dialog, n as TabsPanel_default, nt as provideGroupRoot, o as provideTabsRoot, ot as ExpansionPanelContent_default, p as Single, pt as useExpansionPanelRoot, q as providePaginationControls, r as TabsItem_default, rt as useGroupRoot, s as useTabsRoot, st as ExpansionPanelActivator_default, t as Tabs, tt as GroupRoot_default, u as StepRoot_default, ut as useExpansionPanelItem, v as Selection, vt as DialogContent_default, w as RadioIndicator_default, wt as CheckboxSelectAll_default, x as provideSelectionRoot, xt as provideDialogContext, y as SelectionItem_default, yt as DialogClose_default, z as PaginationStatus_default, zt as Atom_default } from "./components-BOipMGkD.mjs";
|
|
4
|
+
import { $ as createForm, $t as PinoLoggerAdapter, A as PermissionAdapter, At as useBreakpoints, B as createNestedContext, Bt as useGroup, C as createQueue, Ct as useTokens, D as createPermissionsContext, Dt as createBreakpoints, E as createPermissions, Et as useSingle, F as createOverflowContext, Ft as useHydration, G as useMediaQuery, Gt as useSelection, H as multipleOpenStrategy, Ht as useProxyRegistry, I as useOverflow, It as toReactive, J as usePrefersReducedMotion, Jt as createLogger, K as usePrefersContrast, Kt as createRegistry, L as useElementSize, Lt as useProxyModel, M as createPaginationContext, Mt as createHydration, N as usePagination, Nt as createHydrationContext, O as createPermissionsPlugin, Ot as createBreakpointsContext, P as createOverflow, Pt as createHydrationPlugin, Q as useHotkey, Qt as Vuetify0LoggerAdapter, R as useResizeObserver, Rt as createGroup, S as useStep, St as createTokensContext, T as useQueue, Tt as createSingleContext, U as singleOpenStrategy, Ut as createSelection, V as useNested, Vt as toArray, W as useMutationObserver, Wt as createSelectionContext, X as useElementIntersection, Xt as createLoggerPlugin, Y as useLazy, Yt as createLoggerContext, Z as useIntersectionObserver, Zt as useLogger, _ as createStoragePlugin, _t as createLocaleFallback, a as useVirtual, an as useContext, at as useFilterContext, b as createStep, bt as Vuetify0LocaleAdapter, c as createTimelineContext, ct as createFeaturesPlugin, d as createThemeContext, dt as createDate, en as ConsolaLoggerAdapter, et as createFormContext, f as createThemePlugin, ft as createDateContext, g as createStorageContext, gt as createLocaleContext, h as createStorage, ht as createLocale, i as useWindowEventListener, in as provideContext, it as useFilter, j as createPagination, jt as createFallbackHydration, k as usePermissions, kt as createBreakpointsPlugin, l as useTimeline, lt as useFeatures, m as Vuetify0ThemeAdapter, mt as useDate, n as useDocumentEventListener, nn as createTrinity, nt as createFilter, o as useToggleScope, ot as createFeatures, p as useTheme, pt as createDatePlugin, q as usePrefersDark, qt as createRegistryContext, r as useEventListener, rn as createContext, rt as createFilterContext, s as createTimeline, st as createFeaturesContext, t as useClickOutside, tn as createPlugin, tt as useForm, u as createTheme, ut as FeaturesAdapter, v as useStorage, vt as createLocalePlugin, w as createQueueContext, wt as createSingle, x as createStepContext, xt as createTokens, y as MemoryAdapter, yt as useLocale, z as createNested, zt as createGroupContext } from "./useClickOutside-DcrXfUVx.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-qE_M6ZhX.mjs";
|
|
6
6
|
import "./constants-DHKqjdjH.mjs";
|
|
7
7
|
|
|
8
|
-
export { Atom_default as Atom, Avatar, AvatarFallback_default as AvatarFallback, AvatarImage_default as AvatarImage, AvatarRoot_default as AvatarRoot, COMMON_ELEMENTS, Checkbox, CheckboxGroup_default as CheckboxGroup, CheckboxHiddenInput_default as CheckboxHiddenInput, CheckboxIndicator_default as CheckboxIndicator, CheckboxRoot_default as CheckboxRoot, CheckboxSelectAll_default as CheckboxSelectAll, ConsolaLoggerAdapter, Dialog, DialogActivator_default as DialogActivator, DialogClose_default as DialogClose, DialogContent_default as DialogContent, DialogDescription_default as DialogDescription, DialogRoot_default as DialogRoot, DialogTitle_default as DialogTitle, 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, PopoverActivator_default as PopoverActivator, PopoverContent_default as PopoverContent, PopoverRoot_default as PopoverRoot, Radio, RadioGroup_default as RadioGroup, RadioHiddenInput_default as RadioHiddenInput, RadioIndicator_default as RadioIndicator, RadioRoot_default as RadioRoot, 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, Tabs, TabsItem_default as TabsItem, TabsList_default as TabsList, TabsPanel_default as TabsPanel, TabsRoot_default as TabsRoot, Vuetify0LocaleAdapter, Vuetify0LoggerAdapter, Vuetify0ThemeAdapter, __LOGGER_ENABLED__, clamp, createBreakpoints, createBreakpointsContext, createBreakpointsPlugin, createContext, createDate, createDateContext, createDatePlugin, createFallbackHydration, createFeatures, createFeaturesContext, createFeaturesPlugin, createFilter, createFilterContext, createForm, createFormContext, createGroup, createGroupContext, createHydration, createHydrationContext, createHydrationPlugin, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, createLogger, createLoggerContext, createLoggerPlugin, createNested, createNestedContext, createOverflow, createOverflowContext, createPagination, createPaginationContext, createPermissions, createPermissionsContext, createPermissionsPlugin, createPlugin, createQueue, createQueueContext, createRegistry, createRegistryContext, createSelection, createSelectionContext, createSingle, createSingleContext, createStep, createStepContext, createStorage, createStorageContext, createStoragePlugin, createTheme, createThemeContext, createThemePlugin, createTimeline, createTimelineContext, createTokens, createTokensContext, createTrinity, debounce, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, isSymbol, isUndefined, mergeDeep, multipleOpenStrategy, provideAvatarContext, provideCheckboxGroup, provideCheckboxRoot, provideContext, provideDialogContext, provideExpansionPanelItem, provideExpansionPanelSelection, provideGroupRoot, providePaginationControls, providePaginationItems, providePaginationRoot, providePopoverContext, provideRadioGroup, provideRadioRoot, provideSelectionRoot, provideSingleRoot, provideStepRoot, provideTabsRoot, range, singleOpenStrategy, toArray, toReactive, useAvatarRoot, useBreakpoints, useCheckboxGroup, useCheckboxRoot, useClickOutside, useContext, useDate, useDialogContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useExpansionPanelItem, useExpansionPanelRoot, useFeatures, useFilter, useFilterContext, useForm, useGroup, useGroupRoot, useHotkey, useHydration, useId, useIntersectionObserver, useLazy, useLocale, useLogger, useMediaQuery, useMutationObserver, useNested, useOverflow, usePagination, usePaginationControls, usePaginationItems, usePaginationRoot, usePermissions, usePopoverContext, usePrefersContrast, usePrefersDark, usePrefersReducedMotion, useProxyModel, useProxyRegistry, useQueue, useRadioGroup, useRadioRoot, useResizeObserver, useSelection, useSelectionRoot, useSingle, useSingleRoot, useStep, useStepRoot, useStorage, useTabsRoot, useTheme, useTimeline, useToggleScope, useTokens, useVirtual, useWindowEventListener, version };
|
|
8
|
+
export { Atom_default as Atom, Avatar, AvatarFallback_default as AvatarFallback, AvatarImage_default as AvatarImage, AvatarRoot_default as AvatarRoot, COMMON_ELEMENTS, Checkbox, CheckboxGroup_default as CheckboxGroup, CheckboxHiddenInput_default as CheckboxHiddenInput, CheckboxIndicator_default as CheckboxIndicator, CheckboxRoot_default as CheckboxRoot, CheckboxSelectAll_default as CheckboxSelectAll, ConsolaLoggerAdapter, Dialog, DialogActivator_default as DialogActivator, DialogClose_default as DialogClose, DialogContent_default as DialogContent, DialogDescription_default as DialogDescription, DialogRoot_default as DialogRoot, DialogTitle_default as DialogTitle, ExpansionPanel, ExpansionPanelActivator_default as ExpansionPanelActivator, ExpansionPanelContent_default as ExpansionPanelContent, ExpansionPanelHeader_default as ExpansionPanelHeader, ExpansionPanelItem_default as ExpansionPanelItem, ExpansionPanelRoot_default as ExpansionPanelRoot, FeaturesAdapter, 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, PopoverActivator_default as PopoverActivator, PopoverContent_default as PopoverContent, PopoverRoot_default as PopoverRoot, Radio, RadioGroup_default as RadioGroup, RadioHiddenInput_default as RadioHiddenInput, RadioIndicator_default as RadioIndicator, RadioRoot_default as RadioRoot, 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, Tabs, TabsItem_default as TabsItem, TabsList_default as TabsList, TabsPanel_default as TabsPanel, TabsRoot_default as TabsRoot, Vuetify0LocaleAdapter, Vuetify0LoggerAdapter, Vuetify0ThemeAdapter, __LOGGER_ENABLED__, clamp, createBreakpoints, createBreakpointsContext, createBreakpointsPlugin, createContext, createDate, createDateContext, createDatePlugin, createFallbackHydration, createFeatures, createFeaturesContext, createFeaturesPlugin, createFilter, createFilterContext, createForm, createFormContext, createGroup, createGroupContext, createHydration, createHydrationContext, createHydrationPlugin, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, createLogger, createLoggerContext, createLoggerPlugin, createNested, createNestedContext, createOverflow, createOverflowContext, createPagination, createPaginationContext, createPermissions, createPermissionsContext, createPermissionsPlugin, createPlugin, createQueue, createQueueContext, createRegistry, createRegistryContext, createSelection, createSelectionContext, createSingle, createSingleContext, createStep, createStepContext, createStorage, createStorageContext, createStoragePlugin, createTheme, createThemeContext, createThemePlugin, createTimeline, createTimelineContext, createTokens, createTokensContext, createTrinity, debounce, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, isSymbol, isUndefined, mergeDeep, multipleOpenStrategy, provideAvatarContext, provideCheckboxGroup, provideCheckboxRoot, provideContext, provideDialogContext, provideExpansionPanelItem, provideExpansionPanelSelection, provideGroupRoot, providePaginationControls, providePaginationItems, providePaginationRoot, providePopoverContext, provideRadioGroup, provideRadioRoot, provideSelectionRoot, provideSingleRoot, provideStepRoot, provideTabsRoot, range, singleOpenStrategy, toArray, toReactive, useAvatarRoot, useBreakpoints, useCheckboxGroup, useCheckboxRoot, useClickOutside, useContext, useDate, useDialogContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useExpansionPanelItem, useExpansionPanelRoot, useFeatures, useFilter, useFilterContext, useForm, useGroup, useGroupRoot, useHotkey, useHydration, useId, useIntersectionObserver, useLazy, useLocale, useLogger, useMediaQuery, useMutationObserver, useNested, useOverflow, usePagination, usePaginationControls, usePaginationItems, usePaginationRoot, usePermissions, usePopoverContext, usePrefersContrast, usePrefersDark, usePrefersReducedMotion, useProxyModel, useProxyRegistry, useQueue, useRadioGroup, useRadioRoot, useResizeObserver, useSelection, useSelectionRoot, useSingle, useSingleRoot, useStep, useStepRoot, useStorage, useTabsRoot, useTheme, useTimeline, useToggleScope, useTokens, useVirtual, useWindowEventListener, version };
|
|
@@ -679,6 +679,10 @@
|
|
|
679
679
|
"type": "string | undefined",
|
|
680
680
|
"description": "Form field name - enables native form submission for all radios in group"
|
|
681
681
|
},
|
|
682
|
+
"radio-group/activation": {
|
|
683
|
+
"type": "Activation | undefined",
|
|
684
|
+
"description": "Activation mode controlling when selection occurs:\n- `automatic` (default): Selection follows focus (arrow keys select)\n- `manual`: Selection requires explicit Enter/Space key press\n\nPer WAI-ARIA APG, radio groups should have selection follow focus by default.\nUse `manual` for toolbar radio groups or when deliberate selection is preferred."
|
|
685
|
+
},
|
|
682
686
|
"radio-group/as": {
|
|
683
687
|
"type": "string | Component<unknown, any, any, ComputedOptions, MethodOptions, {}, any> | null | undefined",
|
|
684
688
|
"description": "The HTML element to render as, or null for renderless mode"
|
|
@@ -988,7 +992,7 @@
|
|
|
988
992
|
"description": "Tab orientation for keyboard navigation"
|
|
989
993
|
},
|
|
990
994
|
"tabs-root/activation": {
|
|
991
|
-
"type": "
|
|
995
|
+
"type": "Activation | undefined",
|
|
992
996
|
"description": "Activation mode:\n- `automatic`: Tab activates on focus (arrow keys)\n- `manual`: Tab activates on Enter/Space only"
|
|
993
997
|
},
|
|
994
998
|
"tabs-root/modelValue": {
|
package/dist/json/tags.json
CHANGED
package/dist/json/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@vuetify/v0",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.1.1",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -2053,6 +2053,16 @@
|
|
|
2053
2053
|
"description": "Form field name - enables native form submission for all radios in group",
|
|
2054
2054
|
"required": false
|
|
2055
2055
|
},
|
|
2056
|
+
{
|
|
2057
|
+
"name": "activation",
|
|
2058
|
+
"value": {
|
|
2059
|
+
"kind": "expression",
|
|
2060
|
+
"type": "Activation | undefined"
|
|
2061
|
+
},
|
|
2062
|
+
"description": "Activation mode controlling when selection occurs:\n- `automatic` (default): Selection follows focus (arrow keys select)\n- `manual`: Selection requires explicit Enter/Space key press\n\nPer WAI-ARIA APG, radio groups should have selection follow focus by default.\nUse `manual` for toolbar radio groups or when deliberate selection is preferred.",
|
|
2063
|
+
"default": "\"automatic\"",
|
|
2064
|
+
"required": false
|
|
2065
|
+
},
|
|
2056
2066
|
{
|
|
2057
2067
|
"name": "as",
|
|
2058
2068
|
"value": {
|
|
@@ -2949,7 +2959,7 @@
|
|
|
2949
2959
|
"name": "activation",
|
|
2950
2960
|
"value": {
|
|
2951
2961
|
"kind": "expression",
|
|
2952
|
-
"type": "
|
|
2962
|
+
"type": "Activation | undefined"
|
|
2953
2963
|
},
|
|
2954
2964
|
"description": "Activation mode:\n- `automatic`: Tab activates on focus (arrow keys)\n- `manual`: Tab activates on Enter/Space only",
|
|
2955
2965
|
"default": "\"automatic\"",
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { DOMElement, DeepPartial, GenericObject, ID, MaybeArray,
|
|
1
|
+
import { a as ID, i as GenericObject, n as DOMElement, o as MaybeArray, r as DeepPartial, s as UnknownObject, t as Activation } from "../index-DlxrzbvZ.mjs";
|
|
2
|
+
export { Activation, DOMElement, DeepPartial, GenericObject, ID, MaybeArray, UnknownObject };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as useId$1, a as isFunction, c as isNullOrUndefined, f as isString, g as range, h as mergeDeep, i as isBoolean, l as isNumber, m as isUndefined, o as isNaN, p as isSymbol, r as isArray, s as isNull, t as clamp, u as isObject, v as instanceExists } from "./utilities-B58TiS_S.mjs";
|
|
2
|
-
import { a as SUPPORTS_OBSERVER, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
3
|
-
import { computed, effectScope, inject, isRef, nextTick, onScopeDispose, provide, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, unref, watch, watchEffect } from "vue";
|
|
2
|
+
import { a as SUPPORTS_OBSERVER, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-qE_M6ZhX.mjs";
|
|
3
|
+
import { computed, effectScope, inject, isRef, nextTick, onScopeDispose, provide, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toValue, unref, watch, watchEffect } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/createContext/index.ts
|
|
6
6
|
/**
|
|
@@ -601,12 +601,13 @@ function useLogger(namespace = "v0:logger") {
|
|
|
601
601
|
*/
|
|
602
602
|
function createRegistry(options) {
|
|
603
603
|
const logger$1 = useLogger();
|
|
604
|
-
const
|
|
604
|
+
const events = options?.events ?? false;
|
|
605
|
+
const reactive$1 = options?.reactive ?? false;
|
|
606
|
+
const collection = reactive$1 ? shallowReactive(/* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
605
607
|
const catalog = /* @__PURE__ */ new Map();
|
|
606
608
|
const directory = /* @__PURE__ */ new Map();
|
|
607
609
|
const cache = /* @__PURE__ */ new Map();
|
|
608
610
|
const listeners = /* @__PURE__ */ new Map();
|
|
609
|
-
const events = options?.events ?? false;
|
|
610
611
|
let indexDependentCount = 0;
|
|
611
612
|
let needsReindex = false;
|
|
612
613
|
let minDirtyIndex = Infinity;
|
|
@@ -796,13 +797,14 @@ function createRegistry(options) {
|
|
|
796
797
|
const value = valueIsUndefined ? index : registration.value;
|
|
797
798
|
const valueIsIndex = valueIsUndefined;
|
|
798
799
|
if (valueIsIndex) indexDependentCount++;
|
|
799
|
-
const
|
|
800
|
+
const rawTicket = {
|
|
800
801
|
...registration,
|
|
801
802
|
id,
|
|
802
803
|
index,
|
|
803
804
|
value,
|
|
804
805
|
valueIsIndex
|
|
805
806
|
};
|
|
807
|
+
const ticket = reactive$1 ? shallowReactive(rawTicket) : rawTicket;
|
|
806
808
|
collection.set(ticket.id, ticket);
|
|
807
809
|
directory.set(ticket.index, ticket.id);
|
|
808
810
|
assign(ticket.value, ticket.id);
|
|
@@ -955,8 +957,9 @@ function createRegistryContext(_options = {}) {
|
|
|
955
957
|
* Supports disabled items, mandatory selection enforcement, and auto-enrollment.
|
|
956
958
|
*
|
|
957
959
|
* @param options The options for the selection instance.
|
|
958
|
-
* @template Z The type
|
|
959
|
-
* @template E The type
|
|
960
|
+
* @template Z The input ticket type - what users provide to register(). Extend SelectionTicketInput to add custom properties.
|
|
961
|
+
* @template E The output ticket type - what users receive from get(). Automatically includes selection methods.
|
|
962
|
+
* @template R The context type. Defaults to SelectionContext<Z, E>.
|
|
960
963
|
* @returns A new selection instance with selection management methods.
|
|
961
964
|
*
|
|
962
965
|
* @remarks
|
|
@@ -979,6 +982,7 @@ function createRegistryContext(_options = {}) {
|
|
|
979
982
|
* ```ts
|
|
980
983
|
* import { createSelection } from '@vuetify/v0'
|
|
981
984
|
*
|
|
985
|
+
* // Basic usage
|
|
982
986
|
* const selection = createSelection({ mandatory: true })
|
|
983
987
|
*
|
|
984
988
|
* selection.onboard([
|
|
@@ -993,6 +997,23 @@ function createRegistryContext(_options = {}) {
|
|
|
993
997
|
* console.log(selection.selectedIds) // Set { 'item-1', 'item-3' }
|
|
994
998
|
* console.log(Array.from(selection.selectedValues.value)) // ['Item 1', 'Item 3']
|
|
995
999
|
* ```
|
|
1000
|
+
*
|
|
1001
|
+
* @example
|
|
1002
|
+
* ```ts
|
|
1003
|
+
* // With custom ticket type
|
|
1004
|
+
* interface MyTicket extends SelectionTicketInput {
|
|
1005
|
+
* label: string
|
|
1006
|
+
* icon?: string
|
|
1007
|
+
* }
|
|
1008
|
+
*
|
|
1009
|
+
* const tabs = createSelection<MyTicket>()
|
|
1010
|
+
*
|
|
1011
|
+
* tabs.register({ label: 'Home', icon: 'mdi-home' })
|
|
1012
|
+
* tabs.register({ label: 'Settings' })
|
|
1013
|
+
*
|
|
1014
|
+
* const ticket = tabs.get('...')
|
|
1015
|
+
* // ticket has: label, icon, isSelected, select(), unselect(), toggle()
|
|
1016
|
+
* ```
|
|
996
1017
|
*/
|
|
997
1018
|
function createSelection(_options = {}) {
|
|
998
1019
|
const { disabled = false, enroll = false, mandatory = false, multiple = false, ...options } = _options;
|
|
@@ -1008,7 +1029,7 @@ function createSelection(_options = {}) {
|
|
|
1008
1029
|
return registry.seek(direction, from, (ticket) => !toValue(ticket.disabled));
|
|
1009
1030
|
}
|
|
1010
1031
|
function mandate() {
|
|
1011
|
-
if (!mandatory || registry.size === 0 || selectedIds.size > 0) return;
|
|
1032
|
+
if (!toValue(mandatory) || registry.size === 0 || selectedIds.size > 0) return;
|
|
1012
1033
|
const ticket = seek("first");
|
|
1013
1034
|
if (ticket) select(ticket.id);
|
|
1014
1035
|
}
|
|
@@ -1016,12 +1037,12 @@ function createSelection(_options = {}) {
|
|
|
1016
1037
|
if (toValue(disabled)) return;
|
|
1017
1038
|
const item = registry.get(id);
|
|
1018
1039
|
if (!item || toValue(item.disabled)) return;
|
|
1019
|
-
if (!multiple) selectedIds.clear();
|
|
1040
|
+
if (!toValue(multiple)) selectedIds.clear();
|
|
1020
1041
|
selectedIds.add(id);
|
|
1021
1042
|
}
|
|
1022
1043
|
function unselect(id) {
|
|
1023
1044
|
if (toValue(disabled)) return;
|
|
1024
|
-
if (mandatory && selectedIds.size === 1) return;
|
|
1045
|
+
if (toValue(mandatory) && selectedIds.size === 1) return;
|
|
1025
1046
|
selectedIds.delete(id);
|
|
1026
1047
|
}
|
|
1027
1048
|
function toggle(id) {
|
|
@@ -1044,8 +1065,8 @@ function createSelection(_options = {}) {
|
|
|
1044
1065
|
id
|
|
1045
1066
|
};
|
|
1046
1067
|
const ticket = registry.register(item);
|
|
1047
|
-
if (enroll && !toValue(disabled) && !toValue(item.disabled)) selectedIds.add(ticket.id);
|
|
1048
|
-
if (mandatory === "force") mandate();
|
|
1068
|
+
if (toValue(enroll) && !toValue(disabled) && !toValue(item.disabled)) selectedIds.add(ticket.id);
|
|
1069
|
+
if (toValue(mandatory) === "force") mandate();
|
|
1049
1070
|
return ticket;
|
|
1050
1071
|
}
|
|
1051
1072
|
function unregister(id) {
|
|
@@ -1090,8 +1111,9 @@ function createSelection(_options = {}) {
|
|
|
1090
1111
|
* Creates a new selection context.
|
|
1091
1112
|
*
|
|
1092
1113
|
* @param options The options for the selection context.
|
|
1093
|
-
* @template Z The type
|
|
1094
|
-
* @template E The type
|
|
1114
|
+
* @template Z The input ticket type - what users provide to register().
|
|
1115
|
+
* @template E The output ticket type - what users receive from get().
|
|
1116
|
+
* @template R The context type. Defaults to SelectionContext<Z, E>.
|
|
1095
1117
|
* @returns A new selection context.
|
|
1096
1118
|
*
|
|
1097
1119
|
* @see https://0.vuetifyjs.com/composables/selection/use-selection
|
|
@@ -1113,6 +1135,17 @@ function createSelection(_options = {}) {
|
|
|
1113
1135
|
* const checkboxes = useCheckboxes()
|
|
1114
1136
|
* checkboxes.select('checkbox-1')
|
|
1115
1137
|
* ```
|
|
1138
|
+
*
|
|
1139
|
+
* @example
|
|
1140
|
+
* ```ts
|
|
1141
|
+
* // With custom ticket type
|
|
1142
|
+
* interface TabTicket extends SelectionTicketInput {
|
|
1143
|
+
* label: string
|
|
1144
|
+
* icon?: string
|
|
1145
|
+
* }
|
|
1146
|
+
*
|
|
1147
|
+
* export const [useTabs, provideTabs, tabs] = createSelectionContext<TabTicket>()
|
|
1148
|
+
* ```
|
|
1116
1149
|
*/
|
|
1117
1150
|
function createSelectionContext(_options = {}) {
|
|
1118
1151
|
const { namespace = "v0:selection", ...options } = _options;
|
|
@@ -1127,6 +1160,9 @@ function createSelectionContext(_options = {}) {
|
|
|
1127
1160
|
* Returns the current selection instance.
|
|
1128
1161
|
*
|
|
1129
1162
|
* @param namespace The namespace for the selection context. Defaults to `'v0:selection'`.
|
|
1163
|
+
* @template Z The input ticket type.
|
|
1164
|
+
* @template E The output ticket type.
|
|
1165
|
+
* @template R The context type.
|
|
1130
1166
|
* @returns The current selection instance.
|
|
1131
1167
|
*
|
|
1132
1168
|
* @see https://0.vuetifyjs.com/composables/selection/use-selection
|
|
@@ -1476,8 +1512,9 @@ function createGroup(_options = {}) {
|
|
|
1476
1512
|
* Creates a new group context.
|
|
1477
1513
|
*
|
|
1478
1514
|
* @param options The options for the group context.
|
|
1479
|
-
* @template Z The
|
|
1480
|
-
* @template E The
|
|
1515
|
+
* @template Z The input ticket type.
|
|
1516
|
+
* @template E The output ticket type.
|
|
1517
|
+
* @template R The context type.
|
|
1481
1518
|
* @returns A new group context.
|
|
1482
1519
|
*
|
|
1483
1520
|
* @see https://0.vuetifyjs.com/composables/selection/use-group
|
|
@@ -1512,6 +1549,9 @@ function createGroupContext(_options = {}) {
|
|
|
1512
1549
|
* Returns the current group instance.
|
|
1513
1550
|
*
|
|
1514
1551
|
* @param namespace The namespace for the group context. Defaults to `'v0:group'`.
|
|
1552
|
+
* @template Z The input ticket type.
|
|
1553
|
+
* @template E The output ticket type.
|
|
1554
|
+
* @template R The context type.
|
|
1515
1555
|
* @returns The current group instance.
|
|
1516
1556
|
*
|
|
1517
1557
|
* @see https://0.vuetifyjs.com/composables/selection/use-group
|
|
@@ -1608,7 +1648,7 @@ function useProxyModel(registry, model, options) {
|
|
|
1608
1648
|
const currentIds = new Set(toValue(registry.selectedIds));
|
|
1609
1649
|
const targetIds = /* @__PURE__ */ new Set();
|
|
1610
1650
|
for (const value of transformIn(val)) {
|
|
1611
|
-
const ids = registry.browse(value);
|
|
1651
|
+
const ids = registry.browse(toRaw(value));
|
|
1612
1652
|
if (ids) for (const id of ids) targetIds.add(id);
|
|
1613
1653
|
}
|
|
1614
1654
|
if (multiple) {
|
|
@@ -2233,8 +2273,9 @@ function useBreakpoints(namespace = "v0:breakpoints") {
|
|
|
2233
2273
|
* Adds computed singular properties: `selectedId`, `selectedItem`, `selectedIndex`, `selectedValue`.
|
|
2234
2274
|
*
|
|
2235
2275
|
* @param options The options for the single selection instance.
|
|
2236
|
-
* @template Z The type
|
|
2237
|
-
* @template E The type
|
|
2276
|
+
* @template Z The input ticket type - what users provide to register().
|
|
2277
|
+
* @template E The output ticket type - what users receive from get().
|
|
2278
|
+
* @template R The context type.
|
|
2238
2279
|
* @returns A new single selection instance with single-selection enforcement.
|
|
2239
2280
|
*
|
|
2240
2281
|
* @remarks
|
|
@@ -2275,6 +2316,18 @@ function useBreakpoints(namespace = "v0:breakpoints") {
|
|
|
2275
2316
|
* console.log(tabs.selectedId.value) // 'about'
|
|
2276
2317
|
* console.log(tabs.selectedIds.size) // 1 (always enforces single selection)
|
|
2277
2318
|
* ```
|
|
2319
|
+
*
|
|
2320
|
+
* @example
|
|
2321
|
+
* ```ts
|
|
2322
|
+
* // With custom ticket type
|
|
2323
|
+
* interface TabTicket extends SingleTicketInput {
|
|
2324
|
+
* label: string
|
|
2325
|
+
* icon?: string
|
|
2326
|
+
* }
|
|
2327
|
+
*
|
|
2328
|
+
* const tabs = createSingle<TabTicket>()
|
|
2329
|
+
* tabs.register({ label: 'Home', icon: 'mdi-home' })
|
|
2330
|
+
* ```
|
|
2278
2331
|
*/
|
|
2279
2332
|
function createSingle(_options = {}) {
|
|
2280
2333
|
const { mandatory = false, multiple = false, ...options } = _options;
|
|
@@ -2312,8 +2365,9 @@ function createSingle(_options = {}) {
|
|
|
2312
2365
|
* Creates a new single selection context.
|
|
2313
2366
|
*
|
|
2314
2367
|
* @param options The options for the single selection context.
|
|
2315
|
-
* @template Z The
|
|
2316
|
-
* @template E The
|
|
2368
|
+
* @template Z The input ticket type.
|
|
2369
|
+
* @template E The output ticket type.
|
|
2370
|
+
* @template R The context type.
|
|
2317
2371
|
* @returns A new single selection context.
|
|
2318
2372
|
*
|
|
2319
2373
|
* @see https://0.vuetifyjs.com/composables/selection/use-single
|
|
@@ -2346,6 +2400,9 @@ function createSingleContext(_options = {}) {
|
|
|
2346
2400
|
* Returns the current single selection instance.
|
|
2347
2401
|
*
|
|
2348
2402
|
* @param namespace The namespace for the single selection context. Defaults to `'v0:single'`.
|
|
2403
|
+
* @template Z The input ticket type.
|
|
2404
|
+
* @template E The output ticket type.
|
|
2405
|
+
* @template R The context type.
|
|
2349
2406
|
* @returns The current single selection instance.
|
|
2350
2407
|
*
|
|
2351
2408
|
* @see https://0.vuetifyjs.com/composables/selection/use-single
|
|
@@ -3025,6 +3082,10 @@ function useDate(namespace = "v0:date") {
|
|
|
3025
3082
|
return useContext(namespace);
|
|
3026
3083
|
}
|
|
3027
3084
|
|
|
3085
|
+
//#endregion
|
|
3086
|
+
//#region src/composables/useFeatures/adapters/generic/index.ts
|
|
3087
|
+
var FeaturesAdapter = class {};
|
|
3088
|
+
|
|
3028
3089
|
//#endregion
|
|
3029
3090
|
//#region src/composables/useFeatures/index.ts
|
|
3030
3091
|
/**
|
|
@@ -3041,6 +3102,7 @@ function useDate(namespace = "v0:date") {
|
|
|
3041
3102
|
* - Auto-selection of enabled features
|
|
3042
3103
|
* - Multi-select support for feature combinations
|
|
3043
3104
|
* - Perfect for A/B testing, progressive rollout, feature toggles
|
|
3105
|
+
* - Adapter pattern for external feature flag services
|
|
3044
3106
|
*
|
|
3045
3107
|
* Inheritance chain: useRegistry → createSelection → createGroup → createFeatures
|
|
3046
3108
|
* Integrates with useTokens for token-based features.
|
|
@@ -3071,7 +3133,10 @@ function useDate(namespace = "v0:date") {
|
|
|
3071
3133
|
function createFeatures(_options = {}) {
|
|
3072
3134
|
const { features, ...options } = _options;
|
|
3073
3135
|
const tokens = createTokens(features, { flat: true });
|
|
3074
|
-
const registry = createGroup(
|
|
3136
|
+
const registry = createGroup({
|
|
3137
|
+
...options,
|
|
3138
|
+
reactive: true
|
|
3139
|
+
});
|
|
3075
3140
|
for (const [id, { value }] of tokens.entries()) register({
|
|
3076
3141
|
id,
|
|
3077
3142
|
value
|
|
@@ -3090,10 +3155,22 @@ function createFeatures(_options = {}) {
|
|
|
3090
3155
|
if (/* @__PURE__ */ isBoolean(ticket.value) && ticket.value === true || /* @__PURE__ */ isObject(ticket.value) && /* @__PURE__ */ isBoolean(ticket.value.$value) && ticket.value.$value === true) registry.select(ticket.id);
|
|
3091
3156
|
return ticket;
|
|
3092
3157
|
}
|
|
3158
|
+
function sync(flags) {
|
|
3159
|
+
for (const [id, value] of Object.entries(flags)) if (registry.get(id)) {
|
|
3160
|
+
const shouldSelect = /* @__PURE__ */ isBoolean(value) ? value === true : /* @__PURE__ */ isObject(value) && /* @__PURE__ */ isBoolean(value.$value) && value.$value === true;
|
|
3161
|
+
registry.upsert(id, { value });
|
|
3162
|
+
if (shouldSelect) registry.select(id);
|
|
3163
|
+
else registry.unselect(id);
|
|
3164
|
+
} else register({
|
|
3165
|
+
id,
|
|
3166
|
+
value
|
|
3167
|
+
});
|
|
3168
|
+
}
|
|
3093
3169
|
return {
|
|
3094
3170
|
...registry,
|
|
3095
3171
|
variation,
|
|
3096
3172
|
register,
|
|
3173
|
+
sync,
|
|
3097
3174
|
get size() {
|
|
3098
3175
|
return registry.size;
|
|
3099
3176
|
}
|
|
@@ -3162,7 +3239,7 @@ function createFeaturesContext(_options = {}) {
|
|
|
3162
3239
|
* ```
|
|
3163
3240
|
*/
|
|
3164
3241
|
function createFeaturesPlugin(_options = {}) {
|
|
3165
|
-
const { namespace = "v0:features", ...options } = _options;
|
|
3242
|
+
const { namespace = "v0:features", adapter, ...options } = _options;
|
|
3166
3243
|
const [, provideFeaturesContext, context] = createFeaturesContext({
|
|
3167
3244
|
...options,
|
|
3168
3245
|
namespace
|
|
@@ -3171,6 +3248,17 @@ function createFeaturesPlugin(_options = {}) {
|
|
|
3171
3248
|
namespace,
|
|
3172
3249
|
provide: (app) => {
|
|
3173
3250
|
provideFeaturesContext(context, app);
|
|
3251
|
+
},
|
|
3252
|
+
setup: (app) => {
|
|
3253
|
+
if (!adapter) return;
|
|
3254
|
+
const adapters = /* @__PURE__ */ isArray(adapter) ? adapter : [adapter];
|
|
3255
|
+
for (const adapter$1 of adapters) {
|
|
3256
|
+
const initialFlags = adapter$1.setup((flags) => {
|
|
3257
|
+
context.sync(flags);
|
|
3258
|
+
});
|
|
3259
|
+
context.sync(initialFlags);
|
|
3260
|
+
if (/* @__PURE__ */ isFunction(adapter$1.dispose)) app.onUnmount(() => adapter$1.dispose());
|
|
3261
|
+
}
|
|
3174
3262
|
}
|
|
3175
3263
|
});
|
|
3176
3264
|
}
|
|
@@ -4061,17 +4149,17 @@ function useIntersectionObserver(target, callback, options = {}) {
|
|
|
4061
4149
|
}]);
|
|
4062
4150
|
}
|
|
4063
4151
|
watch(() => targetRef.value, (el, oldEl) => {
|
|
4064
|
-
if (oldEl) cleanup();
|
|
4152
|
+
if (oldEl || observer.value) cleanup();
|
|
4065
4153
|
if (isHydrated.value && el) setup();
|
|
4066
4154
|
}, { immediate: true });
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4155
|
+
let stopHydrationWatch;
|
|
4156
|
+
if (!isHydrated.value) stopHydrationWatch = watch(() => isHydrated.value, (hydrated) => {
|
|
4157
|
+
if (hydrated && targetRef.value && !observer.value) {
|
|
4158
|
+
setup();
|
|
4159
|
+
stopHydrationWatch?.();
|
|
4160
|
+
stopHydrationWatch = void 0;
|
|
4161
|
+
}
|
|
4162
|
+
});
|
|
4075
4163
|
function cleanup() {
|
|
4076
4164
|
if (observer.value) {
|
|
4077
4165
|
observer.value.disconnect();
|
|
@@ -4088,6 +4176,8 @@ function useIntersectionObserver(target, callback, options = {}) {
|
|
|
4088
4176
|
setup();
|
|
4089
4177
|
}
|
|
4090
4178
|
function stop() {
|
|
4179
|
+
stopHydrationWatch?.();
|
|
4180
|
+
stopHydrationWatch = void 0;
|
|
4091
4181
|
cleanup();
|
|
4092
4182
|
observer.value = null;
|
|
4093
4183
|
}
|
|
@@ -4476,17 +4566,17 @@ function useMutationObserver(target, callback, options = {}) {
|
|
|
4476
4566
|
}
|
|
4477
4567
|
}
|
|
4478
4568
|
watch(() => targetRef.value, (el, oldEl) => {
|
|
4479
|
-
if (oldEl) cleanup();
|
|
4569
|
+
if (oldEl || observer.value) cleanup();
|
|
4480
4570
|
if (isHydrated.value && el) setup();
|
|
4481
4571
|
}, { immediate: true });
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
}
|
|
4489
|
-
}
|
|
4572
|
+
let stopHydrationWatch;
|
|
4573
|
+
if (!isHydrated.value) stopHydrationWatch = watch(() => isHydrated.value, (hydrated) => {
|
|
4574
|
+
if (hydrated && targetRef.value && !observer.value) {
|
|
4575
|
+
setup();
|
|
4576
|
+
stopHydrationWatch?.();
|
|
4577
|
+
stopHydrationWatch = void 0;
|
|
4578
|
+
}
|
|
4579
|
+
});
|
|
4490
4580
|
function cleanup() {
|
|
4491
4581
|
if (observer.value) {
|
|
4492
4582
|
observer.value.disconnect();
|
|
@@ -4502,6 +4592,8 @@ function useMutationObserver(target, callback, options = {}) {
|
|
|
4502
4592
|
setup();
|
|
4503
4593
|
}
|
|
4504
4594
|
function stop() {
|
|
4595
|
+
stopHydrationWatch?.();
|
|
4596
|
+
stopHydrationWatch = void 0;
|
|
4505
4597
|
cleanup();
|
|
4506
4598
|
observer.value = null;
|
|
4507
4599
|
}
|
|
@@ -5113,17 +5205,17 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
5113
5205
|
}
|
|
5114
5206
|
}
|
|
5115
5207
|
watch(() => targetRef.value, (el, oldEl) => {
|
|
5116
|
-
if (oldEl) cleanup();
|
|
5208
|
+
if (oldEl || observer.value) cleanup();
|
|
5117
5209
|
if (isHydrated.value && el) setup();
|
|
5118
5210
|
}, { immediate: true });
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
}
|
|
5126
|
-
}
|
|
5211
|
+
let stopHydrationWatch;
|
|
5212
|
+
if (!isHydrated.value) stopHydrationWatch = watch(() => isHydrated.value, (hydrated) => {
|
|
5213
|
+
if (hydrated && targetRef.value && !observer.value) {
|
|
5214
|
+
setup();
|
|
5215
|
+
stopHydrationWatch?.();
|
|
5216
|
+
stopHydrationWatch = void 0;
|
|
5217
|
+
}
|
|
5218
|
+
});
|
|
5127
5219
|
function cleanup() {
|
|
5128
5220
|
if (observer.value) {
|
|
5129
5221
|
observer.value.disconnect();
|
|
@@ -5139,6 +5231,8 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
5139
5231
|
setup();
|
|
5140
5232
|
}
|
|
5141
5233
|
function stop() {
|
|
5234
|
+
stopHydrationWatch?.();
|
|
5235
|
+
stopHydrationWatch = void 0;
|
|
5142
5236
|
cleanup();
|
|
5143
5237
|
observer.value = null;
|
|
5144
5238
|
}
|
|
@@ -6132,8 +6226,9 @@ function createStep(_options = {}) {
|
|
|
6132
6226
|
* Creates a new step context.
|
|
6133
6227
|
*
|
|
6134
6228
|
* @param options The options for the step context.
|
|
6135
|
-
* @template Z The
|
|
6136
|
-
* @template E The
|
|
6229
|
+
* @template Z The input ticket type.
|
|
6230
|
+
* @template E The output ticket type.
|
|
6231
|
+
* @template R The context type.
|
|
6137
6232
|
* @returns A new step context.
|
|
6138
6233
|
*
|
|
6139
6234
|
* @see https://0.vuetifyjs.com/composables/selection/use-step
|
|
@@ -6166,6 +6261,9 @@ function createStepContext(_options = {}) {
|
|
|
6166
6261
|
* Returns the current step instance.
|
|
6167
6262
|
*
|
|
6168
6263
|
* @param namespace The namespace for the step context. Defaults to `'v0:step'`.
|
|
6264
|
+
* @template Z The input ticket type.
|
|
6265
|
+
* @template E The output ticket type.
|
|
6266
|
+
* @template R The context type.
|
|
6169
6267
|
* @returns The current step instance.
|
|
6170
6268
|
*
|
|
6171
6269
|
* @see https://0.vuetifyjs.com/composables/selection/use-step
|
|
@@ -6419,6 +6517,7 @@ var ThemeAdapter = class {
|
|
|
6419
6517
|
*/
|
|
6420
6518
|
var Vuetify0ThemeAdapter = class extends ThemeAdapter {
|
|
6421
6519
|
cspNonce;
|
|
6520
|
+
sheet;
|
|
6422
6521
|
constructor(options = {}) {
|
|
6423
6522
|
super(options.prefix ?? "v0");
|
|
6424
6523
|
this.cspNonce = options.cspNonce;
|
|
@@ -6458,16 +6557,11 @@ var Vuetify0ThemeAdapter = class extends ThemeAdapter {
|
|
|
6458
6557
|
}
|
|
6459
6558
|
upsert(styles) {
|
|
6460
6559
|
if (!IN_BROWSER) return;
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
if (!styleEl) {
|
|
6465
|
-
styleEl = document.createElement("style");
|
|
6466
|
-
styleEl.id = id;
|
|
6467
|
-
if (this.cspNonce) styleEl.setAttribute("nonce", this.cspNonce);
|
|
6468
|
-
document.head.append(styleEl);
|
|
6560
|
+
if (!this.sheet) {
|
|
6561
|
+
this.sheet = new CSSStyleSheet();
|
|
6562
|
+
document.adoptedStyleSheets.push(this.sheet);
|
|
6469
6563
|
}
|
|
6470
|
-
|
|
6564
|
+
this.sheet.replaceSync(styles);
|
|
6471
6565
|
}
|
|
6472
6566
|
};
|
|
6473
6567
|
|
|
@@ -7587,4 +7681,4 @@ function useClickOutside(target, handler, options = {}) {
|
|
|
7587
7681
|
}
|
|
7588
7682
|
|
|
7589
7683
|
//#endregion
|
|
7590
|
-
export { createForm as $,
|
|
7684
|
+
export { createForm as $, PinoLoggerAdapter as $t, PermissionAdapter as A, useBreakpoints as At, createNestedContext as B, useGroup as Bt, createQueue as C, useTokens as Ct, createPermissionsContext as D, createBreakpoints as Dt, createPermissions as E, useSingle as Et, createOverflowContext as F, useHydration as Ft, useMediaQuery as G, useSelection as Gt, multipleOpenStrategy as H, useProxyRegistry as Ht, useOverflow as I, toReactive as It, usePrefersReducedMotion as J, createLogger as Jt, usePrefersContrast as K, createRegistry as Kt, useElementSize as L, useProxyModel as Lt, createPaginationContext as M, createHydration as Mt, usePagination as N, createHydrationContext as Nt, createPermissionsPlugin as O, createBreakpointsContext as Ot, createOverflow as P, createHydrationPlugin as Pt, useHotkey as Q, Vuetify0LoggerAdapter as Qt, useResizeObserver as R, createGroup as Rt, useStep as S, createTokensContext as St, useQueue as T, createSingleContext as Tt, singleOpenStrategy as U, createSelection as Ut, useNested as V, toArray as Vt, useMutationObserver as W, createSelectionContext as Wt, useElementIntersection as X, createLoggerPlugin as Xt, useLazy as Y, createLoggerContext as Yt, useIntersectionObserver as Z, useLogger as Zt, createStoragePlugin as _, createLocaleFallback as _t, useVirtual as a, useContext as an, useFilterContext as at, createStep as b, Vuetify0LocaleAdapter as bt, createTimelineContext as c, createFeaturesPlugin as ct, createThemeContext as d, createDate as dt, ConsolaLoggerAdapter as en, createFormContext as et, createThemePlugin as f, createDateContext as ft, createStorageContext as g, createLocaleContext as gt, createStorage as h, createLocale as ht, useWindowEventListener as i, provideContext as in, useFilter as it, createPagination as j, createFallbackHydration as jt, usePermissions as k, createBreakpointsPlugin as kt, useTimeline as l, useFeatures as lt, Vuetify0ThemeAdapter as m, useDate as mt, useDocumentEventListener as n, createTrinity as nn, createFilter as nt, useToggleScope as o, createFeatures as ot, useTheme as p, createDatePlugin as pt, usePrefersDark as q, createRegistryContext as qt, useEventListener as r, createContext as rn, createFilterContext as rt, createTimeline as s, createFeaturesContext as st, useClickOutside as t, createPlugin as tn, useForm as tt, createTheme as u, FeaturesAdapter as ut, useStorage as v, createLocalePlugin as vt, createQueueContext as w, createSingle as wt, createStepContext as x, createTokens as xt, MemoryAdapter as y, useLocale as yt, createNested as z, createGroupContext as zt };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { _ as mergeDeep, a as isArray, c as isNaN, d as isNumber, f as isObject, g as isUndefined, h as isSymbol, i as debounce, l as isNull, m as isString, n as instanceName, o as isBoolean, p as isPrimitive, r as clamp, s as isFunction, t as instanceExists, u as isNullOrUndefined, v as range, y as useId } from "../index-
|
|
1
|
+
import "../index-DlxrzbvZ.mjs";
|
|
2
|
+
import { _ as mergeDeep, a as isArray, c as isNaN, d as isNumber, f as isObject, g as isUndefined, h as isSymbol, i as debounce, l as isNull, m as isString, n as instanceName, o as isBoolean, p as isPrimitive, r as clamp, s as isFunction, t as instanceExists, u as isNullOrUndefined, v as range, y as useId } from "../index-CoO8LW8o.mjs";
|
|
3
3
|
export { clamp, debounce, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range, useId };
|