reka-ui 2.5.0 → 2.5.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/dist/Calendar/CalendarCellTrigger.cjs +14 -0
- package/dist/Calendar/CalendarCellTrigger.cjs.map +1 -1
- package/dist/Calendar/CalendarCellTrigger.js +15 -1
- package/dist/Calendar/CalendarCellTrigger.js.map +1 -1
- package/dist/Calendar/CalendarRoot.cjs +3 -1
- package/dist/Calendar/CalendarRoot.cjs.map +1 -1
- package/dist/Calendar/CalendarRoot.js +3 -1
- package/dist/Calendar/CalendarRoot.js.map +1 -1
- package/dist/Combobox/ComboboxInput.cjs +1 -1
- package/dist/Combobox/ComboboxInput.cjs.map +1 -1
- package/dist/Combobox/ComboboxInput.js +1 -1
- package/dist/Combobox/ComboboxInput.js.map +1 -1
- package/dist/Listbox/ListboxContent.cjs +4 -2
- package/dist/Listbox/ListboxContent.cjs.map +1 -1
- package/dist/Listbox/ListboxContent.js +4 -2
- package/dist/Listbox/ListboxContent.js.map +1 -1
- package/dist/Menu/MenuCheckboxItem.cjs +4 -1
- package/dist/Menu/MenuCheckboxItem.cjs.map +1 -1
- package/dist/Menu/MenuCheckboxItem.js +5 -2
- package/dist/Menu/MenuCheckboxItem.js.map +1 -1
- package/dist/Menu/MenuRadioGroup.cjs +4 -1
- package/dist/Menu/MenuRadioGroup.cjs.map +1 -1
- package/dist/Menu/MenuRadioGroup.js +5 -2
- package/dist/Menu/MenuRadioGroup.js.map +1 -1
- package/dist/Menu/MenuRadioItem.cjs +5 -1
- package/dist/Menu/MenuRadioItem.cjs.map +1 -1
- package/dist/Menu/MenuRadioItem.js +5 -1
- package/dist/Menu/MenuRadioItem.js.map +1 -1
- package/dist/NavigationMenu/NavigationMenuViewport.cjs +7 -8
- package/dist/NavigationMenu/NavigationMenuViewport.cjs.map +1 -1
- package/dist/NavigationMenu/NavigationMenuViewport.js +8 -9
- package/dist/NavigationMenu/NavigationMenuViewport.js.map +1 -1
- package/dist/Presence/usePresence.cjs +1 -1
- package/dist/Presence/usePresence.cjs.map +1 -1
- package/dist/Presence/usePresence.js +1 -1
- package/dist/Presence/usePresence.js.map +1 -1
- package/dist/RangeCalendar/RangeCalendarCellTrigger.cjs +22 -5
- package/dist/RangeCalendar/RangeCalendarCellTrigger.cjs.map +1 -1
- package/dist/RangeCalendar/RangeCalendarCellTrigger.js +24 -7
- package/dist/RangeCalendar/RangeCalendarCellTrigger.js.map +1 -1
- package/dist/RangeCalendar/RangeCalendarNext.cjs +7 -3
- package/dist/RangeCalendar/RangeCalendarNext.cjs.map +1 -1
- package/dist/RangeCalendar/RangeCalendarNext.js +8 -4
- package/dist/RangeCalendar/RangeCalendarNext.js.map +1 -1
- package/dist/RangeCalendar/RangeCalendarPrev.cjs +7 -3
- package/dist/RangeCalendar/RangeCalendarPrev.cjs.map +1 -1
- package/dist/RangeCalendar/RangeCalendarPrev.js +8 -4
- package/dist/RangeCalendar/RangeCalendarPrev.js.map +1 -1
- package/dist/RangeCalendar/RangeCalendarRoot.cjs +3 -1
- package/dist/RangeCalendar/RangeCalendarRoot.cjs.map +1 -1
- package/dist/RangeCalendar/RangeCalendarRoot.js +3 -1
- package/dist/RangeCalendar/RangeCalendarRoot.js.map +1 -1
- package/dist/Splitter/SplitterPanel.cjs +4 -5
- package/dist/Splitter/SplitterPanel.cjs.map +1 -1
- package/dist/Splitter/SplitterPanel.js +4 -5
- package/dist/Splitter/SplitterPanel.js.map +1 -1
- package/dist/TagsInput/TagsInputInput.cjs +4 -0
- package/dist/TagsInput/TagsInputInput.cjs.map +1 -1
- package/dist/TagsInput/TagsInputInput.js +4 -0
- package/dist/TagsInput/TagsInputInput.js.map +1 -1
- package/dist/ToggleGroup/ToggleGroupItem.cjs +3 -4
- package/dist/ToggleGroup/ToggleGroupItem.cjs.map +1 -1
- package/dist/ToggleGroup/ToggleGroupItem.js +3 -4
- package/dist/ToggleGroup/ToggleGroupItem.js.map +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs +3 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +3 -1
- package/dist/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/index.d.cts +797 -793
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +814 -810
- package/dist/index.d.ts.map +1 -1
- package/dist/index2.d.cts.map +1 -1
- package/package.json +2 -2
- package/src/Calendar/CalendarCellTrigger.vue +19 -1
- package/src/Calendar/CalendarRoot.vue +4 -0
- package/src/Combobox/ComboboxInput.vue +3 -2
- package/src/Listbox/ListboxContent.vue +17 -1
- package/src/Menu/MenuCheckboxItem.vue +6 -2
- package/src/Menu/MenuRadioGroup.vue +6 -3
- package/src/Menu/MenuRadioItem.vue +6 -1
- package/src/NavigationMenu/NavigationMenuViewport.vue +10 -8
- package/src/Presence/usePresence.ts +2 -2
- package/src/RangeCalendar/RangeCalendarCellTrigger.vue +19 -2
- package/src/RangeCalendar/RangeCalendarNext.vue +2 -1
- package/src/RangeCalendar/RangeCalendarPrev.vue +2 -1
- package/src/RangeCalendar/RangeCalendarRoot.vue +4 -0
- package/src/Splitter/SplitterPanel.vue +5 -5
- package/src/TagsInput/TagsInputInput.vue +5 -0
- package/src/ToggleGroup/ToggleGroupItem.vue +1 -2
- package/src/VisuallyHidden/VisuallyHidden.vue +6 -1
package/dist/index2.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.d.cts","names":[],"sources":["../src/date/types.ts","../src/shared/date/types.ts","../src/shared/date/parts.ts","../src/date/calendar.ts","../src/date/comparators.ts"],"sourcesContent":[],"mappings":";;;KAQY,OAAA,UAAiB;AAAjB,KAEA,IAFO,CAAA,CAAA,CAAA,GAAA;EAEP;;;;;AAyBF;SAlBD;;;ACFT;AAUA;;;;EAEgB,IAAA,EDDR,CCCQ,EAAA,EAAA;EAGJ;AAEZ;AACA;AACA;AACA;AACA;;EAAuB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DjEd,EAAA,KAAA,ECiEgC,SDjEhC,EAAA,GAAA,ECiEgD,SDjEhD,CAAA,EAAA,OAAA;;;;AAA+B;AAyCzD;;;;;AAIqB,iBCiCN,SAAA,CDjCM,IAAA,ECiCU,SDjCV,EAAA,KAAA,ECiC4B,SDjC5B,EAAA,GAAA,ECiC4C,SDjC5C,CAAA,EAAA,OAAA;AAGjB,iBCkCW,qBDlCI,
|
|
1
|
+
{"version":3,"file":"index2.d.cts","names":[],"sources":["../src/date/types.ts","../src/shared/date/types.ts","../src/shared/date/parts.ts","../src/date/calendar.ts","../src/date/comparators.ts"],"sourcesContent":[],"mappings":";;;KAQY,OAAA,UAAiB;AAAjB,KAEA,IAFO,CAAA,CAAA,CAAA,GAAA;EAEP;;;;;AAyBF;SAlBD;;;ACFT;AAUA;;;;EAEgB,IAAA,EDDR,CCCQ,EAAA,EAAA;EAGJ;AAEZ;AACA;AACA;AACA;AACA;;EAAuB,KAAG,EDDjB,CCCiB,EAAA;CAAmB;AAAyB;;;ADV9D,KCXI,QAAA,GDWJ;EAAC,IASA,CAAA,EAAA,MAAA;EAAC,KAAA,CAAA,EAAA,MAAA;;;;ECpBE,MAAA,CAAA,EAAA,MAAQ;EAUR,WAAA,CAAS,EAAA,MAAA;CAAA;AACZ,KADG,SAAA,GACH;EAAS,KACX,EADE,WACF,GAAA,SAAA;EAAS,GAAA,EAAT,WAAS,GAAA,SAAA;AAGhB,CAAA;AAEY,KAFA,SAAA,GAEe,EAAA,GAAA,EAAA,GAAA,SAAW;AAC1B,KADA,eAAA,GACe,CAAA,OADW,kBACkB,CAAA,CAAA,MAAA,CAAA;AAC5C,KADA,eAAA,GACmB,CAAA,OADO,kBACI,CAAA,CAAA,MAAsB,CAAA;AACpD,KADA,mBAAA,GACsB,CAAA,OADQ,sBACG,CAAA,CAAA,MAA0B,CAAA;AAC3D,KADA,sBAAA,GACW,CAAA,OADsB,0BACtB,CAAA,CAAA,MAAA,CAAA;AAAA,KAAX,WAAA,GAAc,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AAA,aAAA,EC4DZ,OD5DY,GAAA,SAAA,EAAA,UAAA,EC6Df,OD7De,GAAA,SAAA,EAAA,eAAA,CAAA,EC8DT,OD9DS,GAAA,SAAA,CAAA,EAAA,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reka-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.1",
|
|
5
5
|
"description": "Vue port for Radix UI Primitives.",
|
|
6
6
|
"author": "UnoVue Contributors (https://github.com/unovue)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@vue/tsconfig": "^0.7.0",
|
|
98
98
|
"jsdom": "^26.1.0",
|
|
99
99
|
"tsdown": "^0.12.9",
|
|
100
|
-
"vite": "^7.1.
|
|
100
|
+
"vite": "^7.1.7",
|
|
101
101
|
"vitest": "^3.2.4",
|
|
102
102
|
"vitest-axe": "0.1.0",
|
|
103
103
|
"vitest-canvas-mock": "^0.3.3",
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isToday,
|
|
10
10
|
} from '@internationalized/date'
|
|
11
11
|
import { computed, nextTick } from 'vue'
|
|
12
|
-
import { getDaysInMonth, toDate } from '@/date'
|
|
12
|
+
import { getDaysInMonth, parseStringToDateValue, toDate } from '@/date'
|
|
13
13
|
import { useKbd } from '@/shared'
|
|
14
14
|
import { getSelectableCells } from './utils'
|
|
15
15
|
|
|
@@ -137,9 +137,17 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
137
137
|
const newIndex = index + add
|
|
138
138
|
|
|
139
139
|
if (newIndex >= 0 && newIndex < allCollectionItems.length) {
|
|
140
|
+
const newDate = allCollectionItems[newIndex].getAttribute('data-value')
|
|
141
|
+
const newDateValue = parseStringToDateValue(newDate!, rootContext.placeholder.value)
|
|
142
|
+
const minValue = rootContext.minValue.value
|
|
143
|
+
const maxValue = rootContext.maxValue.value
|
|
144
|
+
if ((minValue && newDateValue.compare(minValue) < 0) || (maxValue && newDateValue.compare(maxValue) > 0))
|
|
145
|
+
return
|
|
146
|
+
|
|
140
147
|
if (allCollectionItems[newIndex].hasAttribute('data-disabled')) {
|
|
141
148
|
shiftFocus(allCollectionItems[newIndex], add)
|
|
142
149
|
}
|
|
150
|
+
rootContext.onPlaceholderChange(newDateValue)
|
|
143
151
|
allCollectionItems[newIndex].focus()
|
|
144
152
|
return
|
|
145
153
|
}
|
|
@@ -159,15 +167,20 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
159
167
|
if (newCollectionItems[computedIndex].hasAttribute('data-disabled')) {
|
|
160
168
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
161
169
|
}
|
|
170
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
162
171
|
newCollectionItems[
|
|
163
172
|
computedIndex
|
|
164
173
|
].focus()
|
|
174
|
+
|
|
175
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
165
176
|
return
|
|
166
177
|
}
|
|
167
178
|
const computedIndex = newCollectionItems.length - Math.abs(newIndex)
|
|
168
179
|
if (newCollectionItems[computedIndex].hasAttribute('data-disabled')) {
|
|
169
180
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
170
181
|
}
|
|
182
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
183
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
171
184
|
newCollectionItems[
|
|
172
185
|
computedIndex
|
|
173
186
|
].focus()
|
|
@@ -195,6 +208,8 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
195
208
|
if (newCollectionItems[computedIndex].hasAttribute('data-disabled')) {
|
|
196
209
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
197
210
|
}
|
|
211
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
212
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
198
213
|
newCollectionItems[computedIndex].focus()
|
|
199
214
|
return
|
|
200
215
|
}
|
|
@@ -204,6 +219,9 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
204
219
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
205
220
|
}
|
|
206
221
|
|
|
222
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
223
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
224
|
+
|
|
207
225
|
newCollectionItems[computedIndex].focus()
|
|
208
226
|
})
|
|
209
227
|
}
|
|
@@ -45,6 +45,8 @@ type CalendarRootContext = {
|
|
|
45
45
|
formatter: Formatter
|
|
46
46
|
dir: Ref<Direction>
|
|
47
47
|
disableDaysOutsideCurrentView: Ref<boolean>
|
|
48
|
+
minValue: Ref<DateValue | undefined>
|
|
49
|
+
maxValue: Ref<DateValue | undefined>
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
export interface CalendarRootProps extends PrimitiveProps {
|
|
@@ -323,6 +325,8 @@ provideCalendarRootContext({
|
|
|
323
325
|
onPlaceholderChange,
|
|
324
326
|
onDateChange,
|
|
325
327
|
disableDaysOutsideCurrentView,
|
|
328
|
+
minValue,
|
|
329
|
+
maxValue,
|
|
326
330
|
})
|
|
327
331
|
</script>
|
|
328
332
|
|
|
@@ -97,8 +97,9 @@ watch(rootContext.modelValue, async () => {
|
|
|
97
97
|
}, { immediate: true, deep: true })
|
|
98
98
|
|
|
99
99
|
watch(rootContext.filterState, () => {
|
|
100
|
-
// we exclude virtualized list as the state would be constantly updated
|
|
101
|
-
|
|
100
|
+
// we exclude virtualized list as the state would be constantly updated,
|
|
101
|
+
// and only change highlight when there is no highlighted item
|
|
102
|
+
if (!rootContext.isVirtual.value && !rootContext.highlightedElement.value) {
|
|
102
103
|
listboxContext.highlightFirstItem()
|
|
103
104
|
}
|
|
104
105
|
})
|
|
@@ -34,7 +34,23 @@ const isClickFocus = refAutoReset(false, 10)
|
|
|
34
34
|
return
|
|
35
35
|
rootContext.onEnter(ev)
|
|
36
36
|
}"
|
|
37
|
-
@keydown.down.up.left.right.home.end
|
|
37
|
+
@keydown.down.up.left.right.home.end="(event: KeyboardEvent) => {
|
|
38
|
+
if (
|
|
39
|
+
// when orientation is vertical, ignore left/right
|
|
40
|
+
(
|
|
41
|
+
rootContext.orientation.value === 'vertical'
|
|
42
|
+
&& (event.key === 'ArrowLeft' || event.key === 'ArrowRight')
|
|
43
|
+
)
|
|
44
|
+
// when orientation is horizontal, ignore up/down
|
|
45
|
+
|| (
|
|
46
|
+
rootContext.orientation.value === 'horizontal'
|
|
47
|
+
&& (event.key === 'ArrowUp' || event.key === 'ArrowDown')
|
|
48
|
+
)
|
|
49
|
+
) {
|
|
50
|
+
return
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
event.preventDefault()
|
|
38
54
|
rootContext.focusable.value ? rootContext.onKeydownNavigation(event) : undefined
|
|
39
55
|
}"
|
|
40
56
|
@keydown.enter="rootContext.onKeydownEnter"
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
MenuItemProps,
|
|
5
5
|
} from './MenuItem.vue'
|
|
6
6
|
import type { CheckedState } from './utils'
|
|
7
|
+
import { useForwardProps } from '@/shared'
|
|
7
8
|
|
|
8
9
|
export type MenuCheckboxItemEmits = MenuItemEmits & {
|
|
9
10
|
/** Event handler called when the checked state changes. */
|
|
@@ -17,7 +18,7 @@ export interface MenuCheckboxItemProps extends MenuItemProps {
|
|
|
17
18
|
</script>
|
|
18
19
|
|
|
19
20
|
<script setup lang="ts">
|
|
20
|
-
import { useVModel } from '@vueuse/core'
|
|
21
|
+
import { reactiveOmit, useVModel } from '@vueuse/core'
|
|
21
22
|
import MenuItem from './MenuItem.vue'
|
|
22
23
|
import { provideMenuItemIndicatorContext } from './MenuItemIndicator.vue'
|
|
23
24
|
import { getCheckedState, isIndeterminate } from './utils'
|
|
@@ -34,6 +35,9 @@ defineSlots<{
|
|
|
34
35
|
}) => any
|
|
35
36
|
}>()
|
|
36
37
|
|
|
38
|
+
const delegatedProps = reactiveOmit(props, ['modelValue'])
|
|
39
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
40
|
+
|
|
37
41
|
const modelValue = useVModel(props, 'modelValue', emits)
|
|
38
42
|
|
|
39
43
|
provideMenuItemIndicatorContext({ modelValue })
|
|
@@ -42,7 +46,7 @@ provideMenuItemIndicatorContext({ modelValue })
|
|
|
42
46
|
<template>
|
|
43
47
|
<MenuItem
|
|
44
48
|
role="menuitemcheckbox"
|
|
45
|
-
v-bind="
|
|
49
|
+
v-bind="forwarded"
|
|
46
50
|
:aria-checked="isIndeterminate(modelValue) ? 'mixed' : modelValue"
|
|
47
51
|
:data-state="getCheckedState(modelValue)"
|
|
48
52
|
@select="
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Ref } from 'vue'
|
|
3
3
|
import type { MenuGroupProps } from './MenuGroup.vue'
|
|
4
|
-
import { createContext } from '@/shared'
|
|
4
|
+
import { createContext, useForwardProps } from '@/shared'
|
|
5
5
|
|
|
6
6
|
interface MenuRadioGroupContext {
|
|
7
7
|
modelValue: Ref<string>
|
|
@@ -23,7 +23,7 @@ export const [injectMenuRadioGroupContext, provideMenuRadioGroupContext]
|
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
<script setup lang="ts">
|
|
26
|
-
import { useVModel } from '@vueuse/core'
|
|
26
|
+
import { reactiveOmit, useVModel } from '@vueuse/core'
|
|
27
27
|
import MenuGroup from './MenuGroup.vue'
|
|
28
28
|
|
|
29
29
|
const props = withDefaults(defineProps<MenuRadioGroupProps>(), {
|
|
@@ -38,6 +38,9 @@ defineSlots<{
|
|
|
38
38
|
}) => any
|
|
39
39
|
}>()
|
|
40
40
|
|
|
41
|
+
const delegatedProps = reactiveOmit(props, ['modelValue'])
|
|
42
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
43
|
+
|
|
41
44
|
const modelValue = useVModel(props, 'modelValue', emits)
|
|
42
45
|
|
|
43
46
|
provideMenuRadioGroupContext({
|
|
@@ -49,7 +52,7 @@ provideMenuRadioGroupContext({
|
|
|
49
52
|
</script>
|
|
50
53
|
|
|
51
54
|
<template>
|
|
52
|
-
<MenuGroup v-bind="
|
|
55
|
+
<MenuGroup v-bind="forwarded">
|
|
53
56
|
<slot :model-value="modelValue" />
|
|
54
57
|
</MenuGroup>
|
|
55
58
|
</template>
|
|
@@ -3,6 +3,8 @@ import type {
|
|
|
3
3
|
MenuItemEmits,
|
|
4
4
|
MenuItemProps,
|
|
5
5
|
} from './MenuItem.vue'
|
|
6
|
+
import { reactiveOmit } from '@vueuse/shared'
|
|
7
|
+
import { useForwardProps } from '@/shared'
|
|
6
8
|
|
|
7
9
|
export type MenuRadioItemEmits = MenuItemEmits
|
|
8
10
|
|
|
@@ -22,6 +24,9 @@ import { getCheckedState } from './utils'
|
|
|
22
24
|
const props = defineProps<MenuRadioItemProps>()
|
|
23
25
|
const emits = defineEmits<MenuRadioItemEmits>()
|
|
24
26
|
|
|
27
|
+
const delegatedProps = reactiveOmit(props, ['value'])
|
|
28
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
29
|
+
|
|
25
30
|
const { value } = toRefs(props)
|
|
26
31
|
const radioGroupContext = injectMenuRadioGroupContext()
|
|
27
32
|
const modelValue = computed(
|
|
@@ -34,7 +39,7 @@ provideMenuItemIndicatorContext({ modelValue })
|
|
|
34
39
|
<template>
|
|
35
40
|
<MenuItem
|
|
36
41
|
role="menuitemradio"
|
|
37
|
-
v-bind="
|
|
42
|
+
v-bind="forwarded"
|
|
38
43
|
:aria-checked="modelValue"
|
|
39
44
|
:data-state="getCheckedState(modelValue)"
|
|
40
45
|
@select="
|
|
@@ -18,7 +18,7 @@ export interface NavigationMenuViewportProps extends PrimitiveProps {
|
|
|
18
18
|
|
|
19
19
|
<script setup lang="ts">
|
|
20
20
|
import { useResizeObserver } from '@vueuse/core'
|
|
21
|
-
import { computed, ref, watch } from 'vue'
|
|
21
|
+
import { computed, nextTick, ref, watch } from 'vue'
|
|
22
22
|
import { Presence } from '@/Presence'
|
|
23
23
|
import {
|
|
24
24
|
Primitive,
|
|
@@ -51,14 +51,16 @@ watch(currentElement, () => {
|
|
|
51
51
|
const content = ref<HTMLElement>()
|
|
52
52
|
|
|
53
53
|
watch([modelValue, open], () => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
nextTick(() => {
|
|
55
|
+
if (!currentElement.value)
|
|
56
|
+
return
|
|
57
|
+
|
|
58
|
+
requestAnimationFrame(() => {
|
|
59
|
+
const el = (currentElement.value as HTMLElement)?.querySelector('[data-state=open]') as HTMLElement | undefined
|
|
60
|
+
content.value = el
|
|
61
|
+
})
|
|
60
62
|
})
|
|
61
|
-
}, { immediate: true
|
|
63
|
+
}, { immediate: true })
|
|
62
64
|
|
|
63
65
|
function updatePosition() {
|
|
64
66
|
if (content.value && activeTrigger.value && rootNavigationMenu.value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Ref } from 'vue'
|
|
2
|
+
import { useStateMachine } from '@/shared'
|
|
2
3
|
import { defaultWindow } from '@vueuse/core'
|
|
3
4
|
import { isClient } from '@vueuse/shared'
|
|
4
5
|
import { computed, nextTick, onUnmounted, ref, watch } from 'vue'
|
|
5
|
-
import { useStateMachine } from '@/shared'
|
|
6
6
|
|
|
7
7
|
export function usePresence(
|
|
8
8
|
present: Ref<boolean>,
|
|
@@ -93,7 +93,7 @@ export function usePresence(
|
|
|
93
93
|
const handleAnimationEnd = (event: AnimationEvent) => {
|
|
94
94
|
const currentAnimationName = getAnimationName(node.value)
|
|
95
95
|
const isCurrentAnimation = currentAnimationName.includes(
|
|
96
|
-
event.animationName,
|
|
96
|
+
CSS.escape(event.animationName),
|
|
97
97
|
)
|
|
98
98
|
const directionName = state.value === 'mounted' ? 'enter' : 'leave'
|
|
99
99
|
if (event.target === node.value && isCurrentAnimation) {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '@internationalized/date'
|
|
11
11
|
import { computed, nextTick } from 'vue'
|
|
12
12
|
import { getSelectableCells } from '@/Calendar/utils'
|
|
13
|
-
import { getDaysInMonth, isBetweenInclusive, toDate } from '@/date'
|
|
13
|
+
import { getDaysInMonth, isBetweenInclusive, parseStringToDateValue, toDate } from '@/date'
|
|
14
14
|
import { useKbd } from '@/shared'
|
|
15
15
|
|
|
16
16
|
export interface RangeCalendarCellTriggerProps extends PrimitiveProps {
|
|
@@ -204,9 +204,17 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
204
204
|
const newIndex = index + add
|
|
205
205
|
|
|
206
206
|
if (newIndex >= 0 && newIndex < allCollectionItems.length) {
|
|
207
|
+
const newDate = allCollectionItems[newIndex].getAttribute('data-value')
|
|
208
|
+
const newDateValue = parseStringToDateValue(newDate!, rootContext.placeholder.value)
|
|
209
|
+
const minValue = rootContext.minValue.value
|
|
210
|
+
const maxValue = rootContext.maxValue.value
|
|
211
|
+
if ((minValue && newDateValue.compare(minValue) < 0) || (maxValue && newDateValue.compare(maxValue) > 0))
|
|
212
|
+
return
|
|
213
|
+
|
|
207
214
|
if (allCollectionItems[newIndex].hasAttribute('data-disabled')) {
|
|
208
215
|
shiftFocus(allCollectionItems[newIndex], add)
|
|
209
216
|
}
|
|
217
|
+
rootContext.onPlaceholderChange(newDateValue)
|
|
210
218
|
allCollectionItems[newIndex].focus()
|
|
211
219
|
return
|
|
212
220
|
}
|
|
@@ -226,6 +234,8 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
226
234
|
if (newCollectionItems[computedIndex].hasAttribute('data-disabled')) {
|
|
227
235
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
228
236
|
}
|
|
237
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
238
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
229
239
|
newCollectionItems[
|
|
230
240
|
computedIndex
|
|
231
241
|
].focus()
|
|
@@ -235,6 +245,8 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
235
245
|
if (newCollectionItems[computedIndex].hasAttribute('data-disabled')) {
|
|
236
246
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
237
247
|
}
|
|
248
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
249
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
238
250
|
newCollectionItems[
|
|
239
251
|
computedIndex
|
|
240
252
|
].focus()
|
|
@@ -262,6 +274,8 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
262
274
|
if (newCollectionItems[computedIndex].hasAttribute('data-disabled')) {
|
|
263
275
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
264
276
|
}
|
|
277
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
278
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
265
279
|
newCollectionItems[computedIndex].focus()
|
|
266
280
|
return
|
|
267
281
|
}
|
|
@@ -271,6 +285,8 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
271
285
|
shiftFocus(newCollectionItems[computedIndex], add)
|
|
272
286
|
}
|
|
273
287
|
|
|
288
|
+
const newDate = newCollectionItems[computedIndex].getAttribute('data-value')
|
|
289
|
+
rootContext.onPlaceholderChange(parseStringToDateValue(newDate!, rootContext.placeholder.value))
|
|
274
290
|
newCollectionItems[computedIndex].focus()
|
|
275
291
|
})
|
|
276
292
|
}
|
|
@@ -281,7 +297,8 @@ function handleArrowKey(e: KeyboardEvent) {
|
|
|
281
297
|
<template>
|
|
282
298
|
<Primitive
|
|
283
299
|
ref="primitiveElement"
|
|
284
|
-
|
|
300
|
+
:as="as"
|
|
301
|
+
:as-child="asChild"
|
|
285
302
|
role="button"
|
|
286
303
|
:aria-label="labelText"
|
|
287
304
|
data-reka-calendar-cell-trigger
|
|
@@ -30,7 +30,8 @@ const rootContext = injectRangeCalendarRootContext()
|
|
|
30
30
|
|
|
31
31
|
<template>
|
|
32
32
|
<Primitive
|
|
33
|
-
|
|
33
|
+
:as="as"
|
|
34
|
+
:as-child="asChild"
|
|
34
35
|
aria-label="Previous page"
|
|
35
36
|
:type="as === 'button' ? 'button' : undefined"
|
|
36
37
|
:aria-disabled="disabled || undefined"
|
|
@@ -66,6 +66,8 @@ type RangeCalendarRootContext = {
|
|
|
66
66
|
disableDaysOutsideCurrentView: Ref<boolean>
|
|
67
67
|
fixedDate: Ref<'start' | 'end' | undefined>
|
|
68
68
|
maximumDays: Ref<number | undefined>
|
|
69
|
+
minValue: Ref<DateValue | undefined>
|
|
70
|
+
maxValue: Ref<DateValue | undefined>
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export interface RangeCalendarRootProps extends PrimitiveProps {
|
|
@@ -435,6 +437,8 @@ provideRangeCalendarRootContext({
|
|
|
435
437
|
disableDaysOutsideCurrentView,
|
|
436
438
|
fixedDate,
|
|
437
439
|
maximumDays,
|
|
440
|
+
minValue,
|
|
441
|
+
maxValue,
|
|
438
442
|
})
|
|
439
443
|
|
|
440
444
|
onMounted(() => {
|
|
@@ -127,11 +127,11 @@ watch(() => panelDataRef.value.constraints, (constraints, prevConstraints) => {
|
|
|
127
127
|
}, { deep: true })
|
|
128
128
|
|
|
129
129
|
onMounted(() => {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
registerPanel(panelDataRef.value)
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
onUnmounted(() => {
|
|
134
|
+
unregisterPanel(panelDataRef.value)
|
|
135
135
|
})
|
|
136
136
|
|
|
137
137
|
const style = computed(() => getPanelStyle(panelDataRef.value, props.defaultSize))
|
|
@@ -86,6 +86,11 @@ function handleInput(event: InputEvent) {
|
|
|
86
86
|
const target = event.target as HTMLInputElement
|
|
87
87
|
target.value = target.value.replace(delimiter, '')
|
|
88
88
|
|
|
89
|
+
if (target.value.trim() === '') {
|
|
90
|
+
target.value = ''
|
|
91
|
+
return
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
const isAdded = context.onAddValue(target.value)
|
|
90
95
|
if (isAdded)
|
|
91
96
|
target.value = ''
|
|
@@ -33,8 +33,7 @@ const { forwardRef } = useForwardExpose()
|
|
|
33
33
|
<component
|
|
34
34
|
:is="rootContext.rovingFocus.value ? RovingFocusItem : Primitive"
|
|
35
35
|
as-child
|
|
36
|
-
|
|
37
|
-
:active="pressed"
|
|
36
|
+
v-bind="rootContext.rovingFocus.value ? { focusable: !disabled, active: pressed } : {}"
|
|
38
37
|
>
|
|
39
38
|
<Toggle
|
|
40
39
|
v-bind="props"
|
|
@@ -20,7 +20,7 @@ withDefaults(defineProps<VisuallyHiddenProps>(), { as: 'span', feature: 'focusab
|
|
|
20
20
|
:data-hidden="feature === 'fully-hidden' ? '' : undefined"
|
|
21
21
|
:tabindex="feature === 'fully-hidden' ? '-1' : undefined"
|
|
22
22
|
:style="{
|
|
23
|
-
// See: https://github.com/twbs/bootstrap/blob/
|
|
23
|
+
// See: https://github.com/twbs/bootstrap/blob/a360960b8dfdb4bf48f87539c2243458fa0366f7/scss/mixins/_visually-hidden.scss
|
|
24
24
|
position: 'absolute',
|
|
25
25
|
border: 0,
|
|
26
26
|
width: '1px',
|
|
@@ -32,6 +32,11 @@ withDefaults(defineProps<VisuallyHiddenProps>(), { as: 'span', feature: 'focusab
|
|
|
32
32
|
clipPath: 'inset(50%)',
|
|
33
33
|
whiteSpace: 'nowrap',
|
|
34
34
|
wordWrap: 'normal',
|
|
35
|
+
|
|
36
|
+
// Prevent causing unnecessary container scroll
|
|
37
|
+
// @see https://github.com/unovue/reka-ui/issues/2127
|
|
38
|
+
top: '-1px',
|
|
39
|
+
left: '-1px',
|
|
35
40
|
}"
|
|
36
41
|
>
|
|
37
42
|
<slot />
|