@vuetify/v0 0.0.24 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/browser/index.js +266 -50
- package/dist/components/index.d.mts +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/{components-D_yAxHwn.mjs → components-V4KaMfn-.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-CgcVstn0.mjs} +1 -1
- package/dist/{index-OghXharF.d.mts → index-CSjKBMhp.d.mts} +266 -239
- 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-DsiFkTD8.d.mts} +269 -73
- package/dist/{index-DknfL2GU.d.mts → index-t-t6sAn3.d.mts} +222 -41
- 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-Cj8CguMD.mjs} +257 -46
- 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-V4KaMfn-.mjs";
|
|
4
|
+
import { $ as createForm, $t as createLoggerPlugin, A as PermissionAdapter, At as createBreakpoints, B as createNestedContext, Bt as useProxyModel, C as createQueue, Ct as Vuetify0LocaleAdapter, D as createPermissionsContext, Dt as createSingle, E as createPermissions, Et as useTokens, F as createOverflowContext, Ft as createHydration, G as useMediaQuery, Gt as useProxyRegistry, H as multipleOpenStrategy, Ht as createGroupContext, I as useOverflow, It as createHydrationContext, J as usePrefersReducedMotion, Jt as useSelection, K as usePrefersContrast, Kt as createSelection, L as useElementSize, Lt as createHydrationPlugin, M as createPaginationContext, Mt as createBreakpointsPlugin, N as usePagination, Nt as useBreakpoints, O as createPermissionsPlugin, Ot as createSingleContext, P as createOverflow, Pt as createFallbackHydration, Q as useHotkey, Qt as createLoggerContext, R as useResizeObserver, Rt as useHydration, S as useStep, St as useLocale, T as useQueue, Tt as createTokensContext, U as singleOpenStrategy, Ut as useGroup, V as useNested, Vt as createGroup, W as useMutationObserver, Wt as toArray, X as useElementIntersection, Xt as createRegistryContext, Y as useLazy, Yt as createRegistry, Z as useIntersectionObserver, Zt as createLogger, _ as createStoragePlugin, _t as useDate, a as useVirtual, an as createTrinity, at as useFilterContext, b as createStep, bt as createLocaleFallback, c as createTimelineContext, cn as useContext, ct as createFeaturesPlugin, d as createThemeContext, dt as LaunchDarklyFeatureAdapter, en as useLogger, et as createFormContext, f as createThemePlugin, ft as FlagsmithFeatureAdapter, g as createStorageContext, gt as createDatePlugin, h as createStorage, ht as createDateContext, i as useWindowEventListener, in as createPlugin, it as useFilter, j as createPagination, jt as createBreakpointsContext, k as usePermissions, kt as useSingle, l as useTimeline, lt as useFeatures, m as Vuetify0ThemeAdapter, mt as createDate, n as useDocumentEventListener, nn as PinoLoggerAdapter, nt as createFilter, o as useToggleScope, on as createContext, ot as createFeatures, p as useTheme, pt as FeaturesAdapter, q as usePrefersDark, qt as createSelectionContext, r as useEventListener, rn as ConsolaLoggerAdapter, rt as createFilterContext, s as createTimeline, sn as provideContext, st as createFeaturesContext, t as useClickOutside, tn as Vuetify0LoggerAdapter, tt as useForm, u as createTheme, ut as PostHogFeatureAdapter, v as useStorage, vt as createLocale, w as createQueueContext, wt as createTokens, x as createStepContext, xt as createLocalePlugin, y as MemoryAdapter, yt as createLocaleContext, z as createNested, zt as toReactive } from "./useClickOutside-Cj8CguMD.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-CgcVstn0.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, FlagsmithFeatureAdapter, Group, GroupItem_default as GroupItem, GroupRoot_default as GroupRoot, IN_BROWSER, LaunchDarklyFeatureAdapter, 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, PostHogFeatureAdapter, 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.0
|
|
5
|
+
"version": "0.1.0",
|
|
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,7 @@
|
|
|
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-
|
|
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-CgcVstn0.mjs";
|
|
3
3
|
import { computed, effectScope, inject, isRef, nextTick, onScopeDispose, provide, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, unref, watch, watchEffect } from "vue";
|
|
4
|
+
import flagsmith from "flagsmith";
|
|
4
5
|
|
|
5
6
|
//#region src/composables/createContext/index.ts
|
|
6
7
|
/**
|
|
@@ -601,12 +602,13 @@ function useLogger(namespace = "v0:logger") {
|
|
|
601
602
|
*/
|
|
602
603
|
function createRegistry(options) {
|
|
603
604
|
const logger$1 = useLogger();
|
|
604
|
-
const
|
|
605
|
+
const events = options?.events ?? false;
|
|
606
|
+
const reactive$1 = options?.reactive ?? false;
|
|
607
|
+
const collection = reactive$1 ? shallowReactive(/* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
605
608
|
const catalog = /* @__PURE__ */ new Map();
|
|
606
609
|
const directory = /* @__PURE__ */ new Map();
|
|
607
610
|
const cache = /* @__PURE__ */ new Map();
|
|
608
611
|
const listeners = /* @__PURE__ */ new Map();
|
|
609
|
-
const events = options?.events ?? false;
|
|
610
612
|
let indexDependentCount = 0;
|
|
611
613
|
let needsReindex = false;
|
|
612
614
|
let minDirtyIndex = Infinity;
|
|
@@ -796,13 +798,14 @@ function createRegistry(options) {
|
|
|
796
798
|
const value = valueIsUndefined ? index : registration.value;
|
|
797
799
|
const valueIsIndex = valueIsUndefined;
|
|
798
800
|
if (valueIsIndex) indexDependentCount++;
|
|
799
|
-
const
|
|
801
|
+
const rawTicket = {
|
|
800
802
|
...registration,
|
|
801
803
|
id,
|
|
802
804
|
index,
|
|
803
805
|
value,
|
|
804
806
|
valueIsIndex
|
|
805
807
|
};
|
|
808
|
+
const ticket = reactive$1 ? shallowReactive(rawTicket) : rawTicket;
|
|
806
809
|
collection.set(ticket.id, ticket);
|
|
807
810
|
directory.set(ticket.index, ticket.id);
|
|
808
811
|
assign(ticket.value, ticket.id);
|
|
@@ -955,8 +958,9 @@ function createRegistryContext(_options = {}) {
|
|
|
955
958
|
* Supports disabled items, mandatory selection enforcement, and auto-enrollment.
|
|
956
959
|
*
|
|
957
960
|
* @param options The options for the selection instance.
|
|
958
|
-
* @template Z The type
|
|
959
|
-
* @template E The type
|
|
961
|
+
* @template Z The input ticket type - what users provide to register(). Extend SelectionTicketInput to add custom properties.
|
|
962
|
+
* @template E The output ticket type - what users receive from get(). Automatically includes selection methods.
|
|
963
|
+
* @template R The context type. Defaults to SelectionContext<Z, E>.
|
|
960
964
|
* @returns A new selection instance with selection management methods.
|
|
961
965
|
*
|
|
962
966
|
* @remarks
|
|
@@ -979,6 +983,7 @@ function createRegistryContext(_options = {}) {
|
|
|
979
983
|
* ```ts
|
|
980
984
|
* import { createSelection } from '@vuetify/v0'
|
|
981
985
|
*
|
|
986
|
+
* // Basic usage
|
|
982
987
|
* const selection = createSelection({ mandatory: true })
|
|
983
988
|
*
|
|
984
989
|
* selection.onboard([
|
|
@@ -993,6 +998,23 @@ function createRegistryContext(_options = {}) {
|
|
|
993
998
|
* console.log(selection.selectedIds) // Set { 'item-1', 'item-3' }
|
|
994
999
|
* console.log(Array.from(selection.selectedValues.value)) // ['Item 1', 'Item 3']
|
|
995
1000
|
* ```
|
|
1001
|
+
*
|
|
1002
|
+
* @example
|
|
1003
|
+
* ```ts
|
|
1004
|
+
* // With custom ticket type
|
|
1005
|
+
* interface MyTicket extends SelectionTicketInput {
|
|
1006
|
+
* label: string
|
|
1007
|
+
* icon?: string
|
|
1008
|
+
* }
|
|
1009
|
+
*
|
|
1010
|
+
* const tabs = createSelection<MyTicket>()
|
|
1011
|
+
*
|
|
1012
|
+
* tabs.register({ label: 'Home', icon: 'mdi-home' })
|
|
1013
|
+
* tabs.register({ label: 'Settings' })
|
|
1014
|
+
*
|
|
1015
|
+
* const ticket = tabs.get('...')
|
|
1016
|
+
* // ticket has: label, icon, isSelected, select(), unselect(), toggle()
|
|
1017
|
+
* ```
|
|
996
1018
|
*/
|
|
997
1019
|
function createSelection(_options = {}) {
|
|
998
1020
|
const { disabled = false, enroll = false, mandatory = false, multiple = false, ...options } = _options;
|
|
@@ -1090,8 +1112,9 @@ function createSelection(_options = {}) {
|
|
|
1090
1112
|
* Creates a new selection context.
|
|
1091
1113
|
*
|
|
1092
1114
|
* @param options The options for the selection context.
|
|
1093
|
-
* @template Z The type
|
|
1094
|
-
* @template E The type
|
|
1115
|
+
* @template Z The input ticket type - what users provide to register().
|
|
1116
|
+
* @template E The output ticket type - what users receive from get().
|
|
1117
|
+
* @template R The context type. Defaults to SelectionContext<Z, E>.
|
|
1095
1118
|
* @returns A new selection context.
|
|
1096
1119
|
*
|
|
1097
1120
|
* @see https://0.vuetifyjs.com/composables/selection/use-selection
|
|
@@ -1113,6 +1136,17 @@ function createSelection(_options = {}) {
|
|
|
1113
1136
|
* const checkboxes = useCheckboxes()
|
|
1114
1137
|
* checkboxes.select('checkbox-1')
|
|
1115
1138
|
* ```
|
|
1139
|
+
*
|
|
1140
|
+
* @example
|
|
1141
|
+
* ```ts
|
|
1142
|
+
* // With custom ticket type
|
|
1143
|
+
* interface TabTicket extends SelectionTicketInput {
|
|
1144
|
+
* label: string
|
|
1145
|
+
* icon?: string
|
|
1146
|
+
* }
|
|
1147
|
+
*
|
|
1148
|
+
* export const [useTabs, provideTabs, tabs] = createSelectionContext<TabTicket>()
|
|
1149
|
+
* ```
|
|
1116
1150
|
*/
|
|
1117
1151
|
function createSelectionContext(_options = {}) {
|
|
1118
1152
|
const { namespace = "v0:selection", ...options } = _options;
|
|
@@ -1127,6 +1161,9 @@ function createSelectionContext(_options = {}) {
|
|
|
1127
1161
|
* Returns the current selection instance.
|
|
1128
1162
|
*
|
|
1129
1163
|
* @param namespace The namespace for the selection context. Defaults to `'v0:selection'`.
|
|
1164
|
+
* @template Z The input ticket type.
|
|
1165
|
+
* @template E The output ticket type.
|
|
1166
|
+
* @template R The context type.
|
|
1130
1167
|
* @returns The current selection instance.
|
|
1131
1168
|
*
|
|
1132
1169
|
* @see https://0.vuetifyjs.com/composables/selection/use-selection
|
|
@@ -1476,8 +1513,9 @@ function createGroup(_options = {}) {
|
|
|
1476
1513
|
* Creates a new group context.
|
|
1477
1514
|
*
|
|
1478
1515
|
* @param options The options for the group context.
|
|
1479
|
-
* @template Z The
|
|
1480
|
-
* @template E The
|
|
1516
|
+
* @template Z The input ticket type.
|
|
1517
|
+
* @template E The output ticket type.
|
|
1518
|
+
* @template R The context type.
|
|
1481
1519
|
* @returns A new group context.
|
|
1482
1520
|
*
|
|
1483
1521
|
* @see https://0.vuetifyjs.com/composables/selection/use-group
|
|
@@ -1512,6 +1550,9 @@ function createGroupContext(_options = {}) {
|
|
|
1512
1550
|
* Returns the current group instance.
|
|
1513
1551
|
*
|
|
1514
1552
|
* @param namespace The namespace for the group context. Defaults to `'v0:group'`.
|
|
1553
|
+
* @template Z The input ticket type.
|
|
1554
|
+
* @template E The output ticket type.
|
|
1555
|
+
* @template R The context type.
|
|
1515
1556
|
* @returns The current group instance.
|
|
1516
1557
|
*
|
|
1517
1558
|
* @see https://0.vuetifyjs.com/composables/selection/use-group
|
|
@@ -2233,8 +2274,9 @@ function useBreakpoints(namespace = "v0:breakpoints") {
|
|
|
2233
2274
|
* Adds computed singular properties: `selectedId`, `selectedItem`, `selectedIndex`, `selectedValue`.
|
|
2234
2275
|
*
|
|
2235
2276
|
* @param options The options for the single selection instance.
|
|
2236
|
-
* @template Z The type
|
|
2237
|
-
* @template E The type
|
|
2277
|
+
* @template Z The input ticket type - what users provide to register().
|
|
2278
|
+
* @template E The output ticket type - what users receive from get().
|
|
2279
|
+
* @template R The context type.
|
|
2238
2280
|
* @returns A new single selection instance with single-selection enforcement.
|
|
2239
2281
|
*
|
|
2240
2282
|
* @remarks
|
|
@@ -2275,6 +2317,18 @@ function useBreakpoints(namespace = "v0:breakpoints") {
|
|
|
2275
2317
|
* console.log(tabs.selectedId.value) // 'about'
|
|
2276
2318
|
* console.log(tabs.selectedIds.size) // 1 (always enforces single selection)
|
|
2277
2319
|
* ```
|
|
2320
|
+
*
|
|
2321
|
+
* @example
|
|
2322
|
+
* ```ts
|
|
2323
|
+
* // With custom ticket type
|
|
2324
|
+
* interface TabTicket extends SingleTicketInput {
|
|
2325
|
+
* label: string
|
|
2326
|
+
* icon?: string
|
|
2327
|
+
* }
|
|
2328
|
+
*
|
|
2329
|
+
* const tabs = createSingle<TabTicket>()
|
|
2330
|
+
* tabs.register({ label: 'Home', icon: 'mdi-home' })
|
|
2331
|
+
* ```
|
|
2278
2332
|
*/
|
|
2279
2333
|
function createSingle(_options = {}) {
|
|
2280
2334
|
const { mandatory = false, multiple = false, ...options } = _options;
|
|
@@ -2312,8 +2366,9 @@ function createSingle(_options = {}) {
|
|
|
2312
2366
|
* Creates a new single selection context.
|
|
2313
2367
|
*
|
|
2314
2368
|
* @param options The options for the single selection context.
|
|
2315
|
-
* @template Z The
|
|
2316
|
-
* @template E The
|
|
2369
|
+
* @template Z The input ticket type.
|
|
2370
|
+
* @template E The output ticket type.
|
|
2371
|
+
* @template R The context type.
|
|
2317
2372
|
* @returns A new single selection context.
|
|
2318
2373
|
*
|
|
2319
2374
|
* @see https://0.vuetifyjs.com/composables/selection/use-single
|
|
@@ -2346,6 +2401,9 @@ function createSingleContext(_options = {}) {
|
|
|
2346
2401
|
* Returns the current single selection instance.
|
|
2347
2402
|
*
|
|
2348
2403
|
* @param namespace The namespace for the single selection context. Defaults to `'v0:single'`.
|
|
2404
|
+
* @template Z The input ticket type.
|
|
2405
|
+
* @template E The output ticket type.
|
|
2406
|
+
* @template R The context type.
|
|
2349
2407
|
* @returns The current single selection instance.
|
|
2350
2408
|
*
|
|
2351
2409
|
* @see https://0.vuetifyjs.com/composables/selection/use-single
|
|
@@ -3025,6 +3083,122 @@ function useDate(namespace = "v0:date") {
|
|
|
3025
3083
|
return useContext(namespace);
|
|
3026
3084
|
}
|
|
3027
3085
|
|
|
3086
|
+
//#endregion
|
|
3087
|
+
//#region src/composables/useFeatures/adapters/generic/index.ts
|
|
3088
|
+
var FeaturesAdapter = class {};
|
|
3089
|
+
|
|
3090
|
+
//#endregion
|
|
3091
|
+
//#region src/composables/useFeatures/adapters/flagsmith/index.ts
|
|
3092
|
+
/**
|
|
3093
|
+
* @module FlagsmithFeatureAdapter
|
|
3094
|
+
*
|
|
3095
|
+
* @remarks
|
|
3096
|
+
* Flagsmith adapter for feature flags.
|
|
3097
|
+
*/
|
|
3098
|
+
var FlagsmithFeatureAdapter = class {
|
|
3099
|
+
client;
|
|
3100
|
+
options;
|
|
3101
|
+
constructor(client = flagsmith, options) {
|
|
3102
|
+
this.client = client;
|
|
3103
|
+
this.options = options;
|
|
3104
|
+
}
|
|
3105
|
+
setup(onUpdate) {
|
|
3106
|
+
const updateFlags = () => {
|
|
3107
|
+
const flags = this.client.getAllFlags();
|
|
3108
|
+
const adapterFlags = {};
|
|
3109
|
+
if (flags) for (const [key, flag] of Object.entries(flags)) {
|
|
3110
|
+
const isEnabled = flag.enabled;
|
|
3111
|
+
const variation = flag.value;
|
|
3112
|
+
adapterFlags[key] = variation !== null && variation !== void 0 ? {
|
|
3113
|
+
$value: isEnabled,
|
|
3114
|
+
$variation: variation
|
|
3115
|
+
} : isEnabled;
|
|
3116
|
+
}
|
|
3117
|
+
return adapterFlags;
|
|
3118
|
+
};
|
|
3119
|
+
this.client.init({
|
|
3120
|
+
...this.options,
|
|
3121
|
+
onChange: (oldFlags, params, loadingState) => {
|
|
3122
|
+
onUpdate(updateFlags());
|
|
3123
|
+
this.options.onChange?.(oldFlags, params, loadingState);
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
this.disposeFn = () => this.client.stopListening();
|
|
3127
|
+
return updateFlags();
|
|
3128
|
+
}
|
|
3129
|
+
dispose() {
|
|
3130
|
+
this.disposeFn();
|
|
3131
|
+
}
|
|
3132
|
+
disposeFn = () => {};
|
|
3133
|
+
};
|
|
3134
|
+
|
|
3135
|
+
//#endregion
|
|
3136
|
+
//#region src/composables/useFeatures/adapters/launchdarkly/index.ts
|
|
3137
|
+
var LaunchDarklyFeatureAdapter = class {
|
|
3138
|
+
constructor(client) {
|
|
3139
|
+
this.client = client;
|
|
3140
|
+
}
|
|
3141
|
+
setup(onUpdate) {
|
|
3142
|
+
const updateFlags = () => {
|
|
3143
|
+
const allFlags = this.client.allFlags();
|
|
3144
|
+
const flags = {};
|
|
3145
|
+
for (const [key, value] of Object.entries(allFlags)) flags[key] = typeof value === "boolean" ? value : {
|
|
3146
|
+
$value: true,
|
|
3147
|
+
$variation: value
|
|
3148
|
+
};
|
|
3149
|
+
onUpdate(flags);
|
|
3150
|
+
return flags;
|
|
3151
|
+
};
|
|
3152
|
+
this.client.on("change", updateFlags);
|
|
3153
|
+
this.disposeFn = () => this.client.off("change", updateFlags);
|
|
3154
|
+
return updateFlags();
|
|
3155
|
+
}
|
|
3156
|
+
dispose() {
|
|
3157
|
+
this.disposeFn();
|
|
3158
|
+
}
|
|
3159
|
+
disposeFn = () => {};
|
|
3160
|
+
};
|
|
3161
|
+
|
|
3162
|
+
//#endregion
|
|
3163
|
+
//#region src/composables/useFeatures/adapters/posthog/index.ts
|
|
3164
|
+
var PostHogFeatureAdapter = class {
|
|
3165
|
+
constructor(client) {
|
|
3166
|
+
this.client = client;
|
|
3167
|
+
}
|
|
3168
|
+
setup(onUpdate) {
|
|
3169
|
+
const updateFlags = () => {
|
|
3170
|
+
const flags = {};
|
|
3171
|
+
const activeFlags = this.client.featureFlags.getFlags();
|
|
3172
|
+
if (activeFlags) {
|
|
3173
|
+
for (const key of activeFlags) {
|
|
3174
|
+
const isEnabled = this.client.isFeatureEnabled(key) ?? false;
|
|
3175
|
+
const payload = this.client.getFeatureFlagPayload(key);
|
|
3176
|
+
if (payload !== void 0 && payload !== null) flags[key] = {
|
|
3177
|
+
$value: isEnabled,
|
|
3178
|
+
$variation: payload
|
|
3179
|
+
};
|
|
3180
|
+
else {
|
|
3181
|
+
const variant = this.client.getFeatureFlag(key);
|
|
3182
|
+
flags[key] = variant !== true && variant !== false && variant !== void 0 && variant !== null ? {
|
|
3183
|
+
$value: true,
|
|
3184
|
+
$variation: variant
|
|
3185
|
+
} : isEnabled;
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
onUpdate(flags);
|
|
3189
|
+
return flags;
|
|
3190
|
+
}
|
|
3191
|
+
return {};
|
|
3192
|
+
};
|
|
3193
|
+
this.disposeFn = this.client.onFeatureFlags(updateFlags);
|
|
3194
|
+
return updateFlags();
|
|
3195
|
+
}
|
|
3196
|
+
dispose() {
|
|
3197
|
+
this.disposeFn();
|
|
3198
|
+
}
|
|
3199
|
+
disposeFn = () => {};
|
|
3200
|
+
};
|
|
3201
|
+
|
|
3028
3202
|
//#endregion
|
|
3029
3203
|
//#region src/composables/useFeatures/index.ts
|
|
3030
3204
|
/**
|
|
@@ -3041,6 +3215,7 @@ function useDate(namespace = "v0:date") {
|
|
|
3041
3215
|
* - Auto-selection of enabled features
|
|
3042
3216
|
* - Multi-select support for feature combinations
|
|
3043
3217
|
* - Perfect for A/B testing, progressive rollout, feature toggles
|
|
3218
|
+
* - Adapter pattern for external feature flag services
|
|
3044
3219
|
*
|
|
3045
3220
|
* Inheritance chain: useRegistry → createSelection → createGroup → createFeatures
|
|
3046
3221
|
* Integrates with useTokens for token-based features.
|
|
@@ -3071,7 +3246,10 @@ function useDate(namespace = "v0:date") {
|
|
|
3071
3246
|
function createFeatures(_options = {}) {
|
|
3072
3247
|
const { features, ...options } = _options;
|
|
3073
3248
|
const tokens = createTokens(features, { flat: true });
|
|
3074
|
-
const registry = createGroup(
|
|
3249
|
+
const registry = createGroup({
|
|
3250
|
+
...options,
|
|
3251
|
+
reactive: true
|
|
3252
|
+
});
|
|
3075
3253
|
for (const [id, { value }] of tokens.entries()) register({
|
|
3076
3254
|
id,
|
|
3077
3255
|
value
|
|
@@ -3090,10 +3268,22 @@ function createFeatures(_options = {}) {
|
|
|
3090
3268
|
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
3269
|
return ticket;
|
|
3092
3270
|
}
|
|
3271
|
+
function sync(flags) {
|
|
3272
|
+
for (const [id, value] of Object.entries(flags)) if (registry.get(id)) {
|
|
3273
|
+
const shouldSelect = /* @__PURE__ */ isBoolean(value) ? value === true : /* @__PURE__ */ isObject(value) && /* @__PURE__ */ isBoolean(value.$value) && value.$value === true;
|
|
3274
|
+
registry.upsert(id, { value });
|
|
3275
|
+
if (shouldSelect) registry.select(id);
|
|
3276
|
+
else registry.unselect(id);
|
|
3277
|
+
} else register({
|
|
3278
|
+
id,
|
|
3279
|
+
value
|
|
3280
|
+
});
|
|
3281
|
+
}
|
|
3093
3282
|
return {
|
|
3094
3283
|
...registry,
|
|
3095
3284
|
variation,
|
|
3096
3285
|
register,
|
|
3286
|
+
sync,
|
|
3097
3287
|
get size() {
|
|
3098
3288
|
return registry.size;
|
|
3099
3289
|
}
|
|
@@ -3162,7 +3352,7 @@ function createFeaturesContext(_options = {}) {
|
|
|
3162
3352
|
* ```
|
|
3163
3353
|
*/
|
|
3164
3354
|
function createFeaturesPlugin(_options = {}) {
|
|
3165
|
-
const { namespace = "v0:features", ...options } = _options;
|
|
3355
|
+
const { namespace = "v0:features", adapter, ...options } = _options;
|
|
3166
3356
|
const [, provideFeaturesContext, context] = createFeaturesContext({
|
|
3167
3357
|
...options,
|
|
3168
3358
|
namespace
|
|
@@ -3171,6 +3361,17 @@ function createFeaturesPlugin(_options = {}) {
|
|
|
3171
3361
|
namespace,
|
|
3172
3362
|
provide: (app) => {
|
|
3173
3363
|
provideFeaturesContext(context, app);
|
|
3364
|
+
},
|
|
3365
|
+
setup: (app) => {
|
|
3366
|
+
if (!adapter) return;
|
|
3367
|
+
const adapters = /* @__PURE__ */ isArray(adapter) ? adapter : [adapter];
|
|
3368
|
+
for (const adapter$1 of adapters) {
|
|
3369
|
+
const initialFlags = adapter$1.setup((flags) => {
|
|
3370
|
+
context.sync(flags);
|
|
3371
|
+
});
|
|
3372
|
+
context.sync(initialFlags);
|
|
3373
|
+
if (/* @__PURE__ */ isFunction(adapter$1.dispose)) app.onUnmount(() => adapter$1.dispose());
|
|
3374
|
+
}
|
|
3174
3375
|
}
|
|
3175
3376
|
});
|
|
3176
3377
|
}
|
|
@@ -4061,17 +4262,17 @@ function useIntersectionObserver(target, callback, options = {}) {
|
|
|
4061
4262
|
}]);
|
|
4062
4263
|
}
|
|
4063
4264
|
watch(() => targetRef.value, (el, oldEl) => {
|
|
4064
|
-
if (oldEl) cleanup();
|
|
4265
|
+
if (oldEl || observer.value) cleanup();
|
|
4065
4266
|
if (isHydrated.value && el) setup();
|
|
4066
4267
|
}, { immediate: true });
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4268
|
+
let stopHydrationWatch;
|
|
4269
|
+
if (!isHydrated.value) stopHydrationWatch = watch(() => isHydrated.value, (hydrated) => {
|
|
4270
|
+
if (hydrated && targetRef.value && !observer.value) {
|
|
4271
|
+
setup();
|
|
4272
|
+
stopHydrationWatch?.();
|
|
4273
|
+
stopHydrationWatch = void 0;
|
|
4274
|
+
}
|
|
4275
|
+
});
|
|
4075
4276
|
function cleanup() {
|
|
4076
4277
|
if (observer.value) {
|
|
4077
4278
|
observer.value.disconnect();
|
|
@@ -4088,6 +4289,8 @@ function useIntersectionObserver(target, callback, options = {}) {
|
|
|
4088
4289
|
setup();
|
|
4089
4290
|
}
|
|
4090
4291
|
function stop() {
|
|
4292
|
+
stopHydrationWatch?.();
|
|
4293
|
+
stopHydrationWatch = void 0;
|
|
4091
4294
|
cleanup();
|
|
4092
4295
|
observer.value = null;
|
|
4093
4296
|
}
|
|
@@ -4476,17 +4679,17 @@ function useMutationObserver(target, callback, options = {}) {
|
|
|
4476
4679
|
}
|
|
4477
4680
|
}
|
|
4478
4681
|
watch(() => targetRef.value, (el, oldEl) => {
|
|
4479
|
-
if (oldEl) cleanup();
|
|
4682
|
+
if (oldEl || observer.value) cleanup();
|
|
4480
4683
|
if (isHydrated.value && el) setup();
|
|
4481
4684
|
}, { immediate: true });
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
}
|
|
4489
|
-
}
|
|
4685
|
+
let stopHydrationWatch;
|
|
4686
|
+
if (!isHydrated.value) stopHydrationWatch = watch(() => isHydrated.value, (hydrated) => {
|
|
4687
|
+
if (hydrated && targetRef.value && !observer.value) {
|
|
4688
|
+
setup();
|
|
4689
|
+
stopHydrationWatch?.();
|
|
4690
|
+
stopHydrationWatch = void 0;
|
|
4691
|
+
}
|
|
4692
|
+
});
|
|
4490
4693
|
function cleanup() {
|
|
4491
4694
|
if (observer.value) {
|
|
4492
4695
|
observer.value.disconnect();
|
|
@@ -4502,6 +4705,8 @@ function useMutationObserver(target, callback, options = {}) {
|
|
|
4502
4705
|
setup();
|
|
4503
4706
|
}
|
|
4504
4707
|
function stop() {
|
|
4708
|
+
stopHydrationWatch?.();
|
|
4709
|
+
stopHydrationWatch = void 0;
|
|
4505
4710
|
cleanup();
|
|
4506
4711
|
observer.value = null;
|
|
4507
4712
|
}
|
|
@@ -5113,17 +5318,17 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
5113
5318
|
}
|
|
5114
5319
|
}
|
|
5115
5320
|
watch(() => targetRef.value, (el, oldEl) => {
|
|
5116
|
-
if (oldEl) cleanup();
|
|
5321
|
+
if (oldEl || observer.value) cleanup();
|
|
5117
5322
|
if (isHydrated.value && el) setup();
|
|
5118
5323
|
}, { immediate: true });
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
}
|
|
5126
|
-
}
|
|
5324
|
+
let stopHydrationWatch;
|
|
5325
|
+
if (!isHydrated.value) stopHydrationWatch = watch(() => isHydrated.value, (hydrated) => {
|
|
5326
|
+
if (hydrated && targetRef.value && !observer.value) {
|
|
5327
|
+
setup();
|
|
5328
|
+
stopHydrationWatch?.();
|
|
5329
|
+
stopHydrationWatch = void 0;
|
|
5330
|
+
}
|
|
5331
|
+
});
|
|
5127
5332
|
function cleanup() {
|
|
5128
5333
|
if (observer.value) {
|
|
5129
5334
|
observer.value.disconnect();
|
|
@@ -5139,6 +5344,8 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
5139
5344
|
setup();
|
|
5140
5345
|
}
|
|
5141
5346
|
function stop() {
|
|
5347
|
+
stopHydrationWatch?.();
|
|
5348
|
+
stopHydrationWatch = void 0;
|
|
5142
5349
|
cleanup();
|
|
5143
5350
|
observer.value = null;
|
|
5144
5351
|
}
|
|
@@ -6132,8 +6339,9 @@ function createStep(_options = {}) {
|
|
|
6132
6339
|
* Creates a new step context.
|
|
6133
6340
|
*
|
|
6134
6341
|
* @param options The options for the step context.
|
|
6135
|
-
* @template Z The
|
|
6136
|
-
* @template E The
|
|
6342
|
+
* @template Z The input ticket type.
|
|
6343
|
+
* @template E The output ticket type.
|
|
6344
|
+
* @template R The context type.
|
|
6137
6345
|
* @returns A new step context.
|
|
6138
6346
|
*
|
|
6139
6347
|
* @see https://0.vuetifyjs.com/composables/selection/use-step
|
|
@@ -6166,6 +6374,9 @@ function createStepContext(_options = {}) {
|
|
|
6166
6374
|
* Returns the current step instance.
|
|
6167
6375
|
*
|
|
6168
6376
|
* @param namespace The namespace for the step context. Defaults to `'v0:step'`.
|
|
6377
|
+
* @template Z The input ticket type.
|
|
6378
|
+
* @template E The output ticket type.
|
|
6379
|
+
* @template R The context type.
|
|
6169
6380
|
* @returns The current step instance.
|
|
6170
6381
|
*
|
|
6171
6382
|
* @see https://0.vuetifyjs.com/composables/selection/use-step
|
|
@@ -7587,4 +7798,4 @@ function useClickOutside(target, handler, options = {}) {
|
|
|
7587
7798
|
}
|
|
7588
7799
|
|
|
7589
7800
|
//#endregion
|
|
7590
|
-
export { createForm as $,
|
|
7801
|
+
export { createForm as $, createLoggerPlugin as $t, PermissionAdapter as A, createBreakpoints as At, createNestedContext as B, useProxyModel as Bt, createQueue as C, Vuetify0LocaleAdapter as Ct, createPermissionsContext as D, createSingle as Dt, createPermissions as E, useTokens as Et, createOverflowContext as F, createHydration as Ft, useMediaQuery as G, useProxyRegistry as Gt, multipleOpenStrategy as H, createGroupContext as Ht, useOverflow as I, createHydrationContext as It, usePrefersReducedMotion as J, useSelection as Jt, usePrefersContrast as K, createSelection as Kt, useElementSize as L, createHydrationPlugin as Lt, createPaginationContext as M, createBreakpointsPlugin as Mt, usePagination as N, useBreakpoints as Nt, createPermissionsPlugin as O, createSingleContext as Ot, createOverflow as P, createFallbackHydration as Pt, useHotkey as Q, createLoggerContext as Qt, useResizeObserver as R, useHydration as Rt, useStep as S, useLocale as St, useQueue as T, createTokensContext as Tt, singleOpenStrategy as U, useGroup as Ut, useNested as V, createGroup as Vt, useMutationObserver as W, toArray as Wt, useElementIntersection as X, createRegistryContext as Xt, useLazy as Y, createRegistry as Yt, useIntersectionObserver as Z, createLogger as Zt, createStoragePlugin as _, useDate as _t, useVirtual as a, createTrinity as an, useFilterContext as at, createStep as b, createLocaleFallback as bt, createTimelineContext as c, useContext as cn, createFeaturesPlugin as ct, createThemeContext as d, LaunchDarklyFeatureAdapter as dt, useLogger as en, createFormContext as et, createThemePlugin as f, FlagsmithFeatureAdapter as ft, createStorageContext as g, createDatePlugin as gt, createStorage as h, createDateContext as ht, useWindowEventListener as i, createPlugin as in, useFilter as it, createPagination as j, createBreakpointsContext as jt, usePermissions as k, useSingle as kt, useTimeline as l, useFeatures as lt, Vuetify0ThemeAdapter as m, createDate as mt, useDocumentEventListener as n, PinoLoggerAdapter as nn, createFilter as nt, useToggleScope as o, createContext as on, createFeatures as ot, useTheme as p, FeaturesAdapter as pt, usePrefersDark as q, createSelectionContext as qt, useEventListener as r, ConsolaLoggerAdapter as rn, createFilterContext as rt, createTimeline as s, provideContext as sn, createFeaturesContext as st, useClickOutside as t, Vuetify0LoggerAdapter as tn, useForm as tt, createTheme as u, PostHogFeatureAdapter as ut, useStorage as v, createLocale as vt, createQueueContext as w, createTokens as wt, createStepContext as x, createLocalePlugin as xt, MemoryAdapter as y, createLocaleContext as yt, createNested as z, toReactive as zt };
|