@soybeanjs/headless 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/_icon/types.d.ts +9 -0
- package/dist/components/accordion/types.d.ts +87 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/types.d.ts +78 -0
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +122 -10
- package/dist/components/arrow/types.d.ts +3 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/types.d.ts +141 -0
- package/dist/components/avatar/types.d.ts +18 -0
- package/dist/components/backtop/backtop.vue.d.ts +9 -3
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/types.d.ts +21 -0
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +99 -0
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/types.d.ts +103 -1
- package/dist/components/button/types.d.ts +16 -1
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/types.d.ts +363 -0
- package/dist/components/card/types.d.ts +90 -0
- package/dist/components/carousel/types.d.ts +42 -0
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/types.d.ts +42 -0
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-area/types.d.ts +60 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/types.d.ts +51 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
- package/dist/components/color-slider/types.d.ts +60 -0
- package/dist/components/color-swatch/types.d.ts +9 -0
- package/dist/components/color-swatch-picker/types.d.ts +27 -0
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/types.d.ts +237 -0
- package/dist/components/command/types.d.ts +147 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +3 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/types.d.ts +78 -0
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-field/types.d.ts +147 -0
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -0
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
- package/dist/components/date-picker/date-picker-content.js +1 -0
- package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
- package/dist/components/date-picker/date-picker-root.js +1 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +9 -14
- package/dist/components/date-picker/index.d.ts +8 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +236 -10
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-field/types.d.ts +192 -0
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +7 -7
- package/dist/components/date-range-picker/types.d.ts +189 -0
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +5 -5
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/types.d.ts +196 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/types.d.ts +123 -0
- package/dist/components/empty/types.d.ts +24 -0
- package/dist/components/form/core/types.d.ts +396 -13
- package/dist/components/form/types.d.ts +27 -0
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/types.d.ts +57 -0
- package/dist/components/input/types.d.ts +21 -0
- package/dist/components/input-number/types.d.ts +30 -0
- package/dist/components/input-otp/index.d.ts +1 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
- package/dist/components/input-otp/types.d.ts +186 -0
- package/dist/components/kbd/types.d.ts +6 -0
- package/dist/components/label/types.d.ts +3 -0
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/types.d.ts +124 -10
- package/dist/components/link/types.d.ts +12 -0
- package/dist/components/list/types.d.ts +21 -0
- package/dist/components/listbox/types.d.ts +66 -0
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/types.d.ts +266 -2
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +4 -4
- package/dist/components/month-picker/types.d.ts +141 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +4 -4
- package/dist/components/month-range-picker/types.d.ts +165 -0
- package/dist/components/navigation-menu/types.d.ts +87 -0
- package/dist/components/page-tabs/types.d.ts +24 -0
- package/dist/components/pagination/types.d.ts +96 -0
- package/dist/components/popover/context.d.ts +9 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +0 -2
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +94 -6
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
- package/dist/components/popper/types.d.ts +21 -0
- package/dist/components/portal/types.d.ts +3 -0
- package/dist/components/primitive/types.d.ts +6 -0
- package/dist/components/progress/types.d.ts +81 -0
- package/dist/components/radio-group/types.d.ts +66 -0
- package/dist/components/range-calendar/range-calendar-root.vue.d.ts +2 -2
- package/dist/components/range-calendar/types.d.ts +330 -0
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/types.d.ts +18 -0
- package/dist/components/scroll-area/types.d.ts +33 -0
- package/dist/components/segment/types.d.ts +36 -0
- package/dist/components/select/select-content.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +240 -0
- package/dist/components/separator/types.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +3 -0
- package/dist/components/slider/slider-root.vue.d.ts +1 -1
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/splitter/types.d.ts +114 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +96 -0
- package/dist/components/switch/types.d.ts +21 -0
- package/dist/components/table/types.d.ts +819 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +75 -0
- package/dist/components/tag/types.d.ts +12 -0
- package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-field/types.d.ts +138 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +6 -6
- package/dist/components/time-picker/types.d.ts +156 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- package/dist/components/time-range-field/types.d.ts +192 -0
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +6 -6
- package/dist/components/time-range-picker/types.d.ts +201 -0
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +224 -4
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/types.d.ts +60 -0
- package/dist/components/virtualizer/types.d.ts +33 -0
- package/dist/components/visually-hidden/types.d.ts +30 -0
- package/dist/components/year-picker/types.d.ts +144 -0
- package/dist/components/year-picker/year-picker-root.vue.d.ts +4 -4
- package/dist/components/year-range-picker/types.d.ts +168 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +4 -4
- package/dist/composables/use-collection.js +1 -1
- package/dist/constants/components.d.ts +5 -5
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +1 -1
- package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
- package/dist/date/parts.d.ts +1 -1
- package/dist/index.d.ts +418 -417
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +877 -872
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/string.d.ts +1 -34
- package/dist/shared/string.js +1 -1
- package/dist/types/common.d.ts +9 -1
- package/dist/types/dom.d.ts +3 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +0 -0
- package/dist/types/vue.d.ts +4 -1
- package/package.json +6 -1
- package/dist/components/date-picker/date-picker-popup.js +0 -1
- package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-picker/date-picker-trigger.js +0 -1
- package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
- /package/dist/{components/input-otp → constants}/regexp.js +0 -0
|
@@ -8,135 +8,465 @@ import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "v
|
|
|
8
8
|
import { DateValue } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/components/range-calendar/types.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Props for the range calendar root component.
|
|
13
|
+
*/
|
|
11
14
|
interface RangeCalendarRootProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
15
|
+
/**
|
|
16
|
+
* Default value.
|
|
17
|
+
*/
|
|
12
18
|
defaultValue?: DateRange;
|
|
19
|
+
/**
|
|
20
|
+
* Default placeholder.
|
|
21
|
+
*/
|
|
13
22
|
defaultPlaceholder?: DateValue;
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder.
|
|
25
|
+
*/
|
|
14
26
|
placeholder?: DateValue;
|
|
27
|
+
/**
|
|
28
|
+
* Current model value.
|
|
29
|
+
*/
|
|
15
30
|
modelValue?: DateRange;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to allow non contiguous ranges.
|
|
33
|
+
*/
|
|
16
34
|
allowNonContiguousRanges?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether paged navigation.
|
|
37
|
+
*/
|
|
17
38
|
pagedNavigation?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether prevent deselect.
|
|
41
|
+
*/
|
|
18
42
|
preventDeselect?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum days.
|
|
45
|
+
*/
|
|
19
46
|
maximumDays?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Week starts on.
|
|
49
|
+
*/
|
|
20
50
|
weekStartsOn?: WeekStartsOn;
|
|
51
|
+
/**
|
|
52
|
+
* Weekday format.
|
|
53
|
+
*/
|
|
21
54
|
weekdayFormat?: WeekDayFormat;
|
|
55
|
+
/**
|
|
56
|
+
* Calendar label.
|
|
57
|
+
*/
|
|
22
58
|
calendarLabel?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether fixed weeks.
|
|
61
|
+
*/
|
|
23
62
|
fixedWeeks?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Max value.
|
|
65
|
+
*/
|
|
24
66
|
maxValue?: DateValue;
|
|
67
|
+
/**
|
|
68
|
+
* Min value.
|
|
69
|
+
*/
|
|
25
70
|
minValue?: DateValue;
|
|
71
|
+
/**
|
|
72
|
+
* Locale.
|
|
73
|
+
*/
|
|
26
74
|
locale?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Number of months.
|
|
77
|
+
*/
|
|
27
78
|
numberOfMonths?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the component is disabled.
|
|
81
|
+
*/
|
|
28
82
|
disabled?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the component is readonly.
|
|
85
|
+
*/
|
|
29
86
|
readonly?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Whether initial focus.
|
|
89
|
+
*/
|
|
30
90
|
initialFocus?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the date is disabled.
|
|
93
|
+
*/
|
|
31
94
|
isDateDisabled?: Matcher;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the date is unavailable.
|
|
97
|
+
*/
|
|
32
98
|
isDateUnavailable?: Matcher;
|
|
99
|
+
/**
|
|
100
|
+
* Whether a date highlightable.
|
|
101
|
+
*/
|
|
33
102
|
isDateHighlightable?: Matcher;
|
|
103
|
+
/**
|
|
104
|
+
* Reading direction of the component.
|
|
105
|
+
*/
|
|
34
106
|
dir?: Direction;
|
|
107
|
+
/**
|
|
108
|
+
* Next page.
|
|
109
|
+
*/
|
|
35
110
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
111
|
+
/**
|
|
112
|
+
* Prev page.
|
|
113
|
+
*/
|
|
36
114
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
115
|
+
/**
|
|
116
|
+
* Whether to disable days outside current view.
|
|
117
|
+
*/
|
|
37
118
|
disableDaysOutsideCurrentView?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Fixed date.
|
|
121
|
+
*/
|
|
38
122
|
fixedDate?: 'start' | 'end';
|
|
39
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Emits for the range calendar root component.
|
|
126
|
+
*/
|
|
40
127
|
type RangeCalendarRootEmits = {
|
|
128
|
+
/**
|
|
129
|
+
* Emitted when the model value changes.
|
|
130
|
+
*/
|
|
41
131
|
'update:modelValue': [range: DateRange];
|
|
132
|
+
/**
|
|
133
|
+
* Emitted when the placeholder value changes.
|
|
134
|
+
*/
|
|
42
135
|
'update:placeholder': [date: DateValue];
|
|
136
|
+
/**
|
|
137
|
+
* Emitted when the start value changes.
|
|
138
|
+
*/
|
|
43
139
|
'update:startValue': [date: DateValue | undefined];
|
|
44
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
* Props for the range calendar header component.
|
|
143
|
+
*/
|
|
45
144
|
interface RangeCalendarHeaderProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
145
|
+
/**
|
|
146
|
+
* Props for the range calendar heading component.
|
|
147
|
+
*/
|
|
46
148
|
interface RangeCalendarHeadingProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
149
|
+
/**
|
|
150
|
+
* Props for the range calendar grid component.
|
|
151
|
+
*/
|
|
47
152
|
interface RangeCalendarGridProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
153
|
+
/**
|
|
154
|
+
* Props for the range calendar grid head component.
|
|
155
|
+
*/
|
|
48
156
|
interface RangeCalendarGridHeadProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
157
|
+
/**
|
|
158
|
+
* Props for the range calendar grid body component.
|
|
159
|
+
*/
|
|
49
160
|
interface RangeCalendarGridBodyProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
161
|
+
/**
|
|
162
|
+
* Props for the range calendar grid row component.
|
|
163
|
+
*/
|
|
50
164
|
interface RangeCalendarGridRowProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
165
|
+
/**
|
|
166
|
+
* Props for the range calendar head cell component.
|
|
167
|
+
*/
|
|
51
168
|
interface RangeCalendarHeadCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
169
|
+
/**
|
|
170
|
+
* Props for the range calendar cell component.
|
|
171
|
+
*/
|
|
52
172
|
interface RangeCalendarCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
173
|
+
/**
|
|
174
|
+
* Date.
|
|
175
|
+
*/
|
|
53
176
|
date: DateValue;
|
|
54
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Props for the range calendar cell trigger component.
|
|
180
|
+
*/
|
|
55
181
|
interface RangeCalendarCellTriggerProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
182
|
+
/**
|
|
183
|
+
* Day.
|
|
184
|
+
*/
|
|
56
185
|
day: DateValue;
|
|
186
|
+
/**
|
|
187
|
+
* Month.
|
|
188
|
+
*/
|
|
57
189
|
month: DateValue;
|
|
58
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Props for the range calendar prev component.
|
|
193
|
+
*/
|
|
59
194
|
interface RangeCalendarPrevProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
195
|
+
/**
|
|
196
|
+
* Prev page.
|
|
197
|
+
*/
|
|
60
198
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
61
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Props for the range calendar next component.
|
|
202
|
+
*/
|
|
62
203
|
interface RangeCalendarNextProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
204
|
+
/**
|
|
205
|
+
* Next page.
|
|
206
|
+
*/
|
|
63
207
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
64
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Context for the range calendar root component.
|
|
211
|
+
*/
|
|
65
212
|
interface RangeCalendarRootContext extends PropsToContext<RangeCalendarRootProps, 'allowNonContiguousRanges' | 'disableDaysOutsideCurrentView' | 'disabled' | 'fixedWeeks' | 'initialFocus' | 'numberOfMonths' | 'pagedNavigation' | 'preventDeselect' | 'readonly'> {
|
|
213
|
+
/**
|
|
214
|
+
* Locale used by the component context.
|
|
215
|
+
*/
|
|
66
216
|
locale: ComputedRef<string>;
|
|
217
|
+
/**
|
|
218
|
+
* Reading direction of the component.
|
|
219
|
+
*/
|
|
67
220
|
dir: ComputedRef<Direction>;
|
|
221
|
+
/**
|
|
222
|
+
* Week starts on used by the component context.
|
|
223
|
+
*/
|
|
68
224
|
weekStartsOn: ComputedRef<WeekStartsOn>;
|
|
225
|
+
/**
|
|
226
|
+
* Weekday format used by the component context.
|
|
227
|
+
*/
|
|
69
228
|
weekdayFormat: ComputedRef<WeekDayFormat>;
|
|
229
|
+
/**
|
|
230
|
+
* Current model value.
|
|
231
|
+
*/
|
|
70
232
|
modelValue: ShallowRef<DateRange>;
|
|
233
|
+
/**
|
|
234
|
+
* Placeholder used by the component context.
|
|
235
|
+
*/
|
|
71
236
|
placeholder: ShallowRef<DateValue>;
|
|
237
|
+
/**
|
|
238
|
+
* Grid used by the component context.
|
|
239
|
+
*/
|
|
72
240
|
grid: ShallowRef<Grid<DateValue>[]>;
|
|
241
|
+
/**
|
|
242
|
+
* Parent element used by the component context.
|
|
243
|
+
*/
|
|
73
244
|
parentElement: ShallowRef<HTMLElement | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* Full calendar label used by the component context.
|
|
247
|
+
*/
|
|
74
248
|
fullCalendarLabel: ComputedRef<string>;
|
|
249
|
+
/**
|
|
250
|
+
* Heading value used by the component context.
|
|
251
|
+
*/
|
|
75
252
|
headingValue: ComputedRef<string>;
|
|
253
|
+
/**
|
|
254
|
+
* Whether the current value is invalid.
|
|
255
|
+
*/
|
|
76
256
|
isInvalid: ComputedRef<boolean>;
|
|
257
|
+
/**
|
|
258
|
+
* Min value used by the component context.
|
|
259
|
+
*/
|
|
77
260
|
minValue: ComputedRef<DateValue | undefined>;
|
|
261
|
+
/**
|
|
262
|
+
* Max value used by the component context.
|
|
263
|
+
*/
|
|
78
264
|
maxValue: ComputedRef<DateValue | undefined>;
|
|
265
|
+
/**
|
|
266
|
+
* Whether the placeholder is focusable.
|
|
267
|
+
*/
|
|
79
268
|
isPlaceholderFocusable: ComputedRef<boolean>;
|
|
269
|
+
/**
|
|
270
|
+
* First focusable date used by the component context.
|
|
271
|
+
*/
|
|
80
272
|
firstFocusableDate: ComputedRef<DateValue | undefined>;
|
|
273
|
+
/**
|
|
274
|
+
* Whether the component has selected date.
|
|
275
|
+
*/
|
|
81
276
|
hasSelectedDate: ComputedRef<boolean>;
|
|
277
|
+
/**
|
|
278
|
+
* Whether the selected date is disabled.
|
|
279
|
+
*/
|
|
82
280
|
isSelectedDateDisabled: ComputedRef<boolean>;
|
|
281
|
+
/**
|
|
282
|
+
* Selected focusable date used by the component context.
|
|
283
|
+
*/
|
|
83
284
|
selectedFocusableDate: ComputedRef<DateValue | undefined>;
|
|
285
|
+
/**
|
|
286
|
+
* Formatter used by the component context.
|
|
287
|
+
*/
|
|
84
288
|
formatter: Formatter;
|
|
289
|
+
/**
|
|
290
|
+
* Highlighted range used by the component context.
|
|
291
|
+
*/
|
|
85
292
|
highlightedRange: ComputedRef<DateRange | null>;
|
|
293
|
+
/**
|
|
294
|
+
* Fixed date used by the component context.
|
|
295
|
+
*/
|
|
86
296
|
fixedDate: ComputedRef<'start' | 'end' | undefined>;
|
|
297
|
+
/**
|
|
298
|
+
* Maximum days used by the component context.
|
|
299
|
+
*/
|
|
87
300
|
maximumDays: ComputedRef<number | undefined>;
|
|
301
|
+
/**
|
|
302
|
+
* Whether the date is unavailable.
|
|
303
|
+
*/
|
|
88
304
|
isDateUnavailable?: Matcher;
|
|
305
|
+
/**
|
|
306
|
+
* Whether a date highlightable.
|
|
307
|
+
*/
|
|
89
308
|
isDateHighlightable?: Matcher;
|
|
309
|
+
/**
|
|
310
|
+
* Callback invoked when the date changes.
|
|
311
|
+
*/
|
|
90
312
|
onDateChange: (date: DateValue) => void;
|
|
313
|
+
/**
|
|
314
|
+
* Callback invoked when the placeholder changes.
|
|
315
|
+
*/
|
|
91
316
|
onPlaceholderChange: (date: DateValue) => void;
|
|
317
|
+
/**
|
|
318
|
+
* Whether the date is disabled.
|
|
319
|
+
*/
|
|
92
320
|
isDateDisabled: Matcher;
|
|
321
|
+
/**
|
|
322
|
+
* Whether the date is selected.
|
|
323
|
+
*/
|
|
93
324
|
isDateSelected: Matcher;
|
|
325
|
+
/**
|
|
326
|
+
* Whether a selection start.
|
|
327
|
+
*/
|
|
94
328
|
isSelectionStart: Matcher;
|
|
329
|
+
/**
|
|
330
|
+
* Whether a selection end.
|
|
331
|
+
*/
|
|
95
332
|
isSelectionEnd: Matcher;
|
|
333
|
+
/**
|
|
334
|
+
* Whether a highlighted start.
|
|
335
|
+
*/
|
|
96
336
|
isHighlightedStart: Matcher;
|
|
337
|
+
/**
|
|
338
|
+
* Whether a highlighted end.
|
|
339
|
+
*/
|
|
97
340
|
isHighlightedEnd: Matcher;
|
|
341
|
+
/**
|
|
342
|
+
* Whether an outside visible view.
|
|
343
|
+
*/
|
|
98
344
|
isOutsideVisibleView: (date: DateValue) => boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Set hovered date used by the component context.
|
|
347
|
+
*/
|
|
99
348
|
setHoveredDate: (date?: DateValue) => void;
|
|
349
|
+
/**
|
|
350
|
+
* Hovered date used by the component context.
|
|
351
|
+
*/
|
|
100
352
|
hoveredDate: ShallowRef<DateValue | undefined>;
|
|
353
|
+
/**
|
|
354
|
+
* Prev page used by the component context.
|
|
355
|
+
*/
|
|
101
356
|
prevPage: (prevPageFunc?: (date: DateValue) => DateValue) => void;
|
|
357
|
+
/**
|
|
358
|
+
* Next page used by the component context.
|
|
359
|
+
*/
|
|
102
360
|
nextPage: (nextPageFunc?: (date: DateValue) => DateValue) => void;
|
|
361
|
+
/**
|
|
362
|
+
* Whether the previous button is disabled.
|
|
363
|
+
*/
|
|
103
364
|
isPrevButtonDisabled: (prevPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
365
|
+
/**
|
|
366
|
+
* Whether the next button is disabled.
|
|
367
|
+
*/
|
|
104
368
|
isNextButtonDisabled: (nextPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
105
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Available UI slots for the range calendar component.
|
|
372
|
+
*/
|
|
106
373
|
type RangeCalendarUiSlot = 'root' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'gridHead' | 'gridBody' | 'gridRow' | 'headCell' | 'cell' | 'cellTrigger';
|
|
374
|
+
/**
|
|
375
|
+
* UI class overrides for the range calendar component.
|
|
376
|
+
*/
|
|
107
377
|
type RangeCalendarUi = UiClass<RangeCalendarUiSlot>;
|
|
378
|
+
/**
|
|
379
|
+
* Props for the range calendar compact component.
|
|
380
|
+
*/
|
|
108
381
|
interface RangeCalendarCompactProps extends RangeCalendarRootProps {
|
|
382
|
+
/**
|
|
383
|
+
* Props forwarded to the header element.
|
|
384
|
+
*/
|
|
109
385
|
headerProps?: RangeCalendarHeaderProps;
|
|
386
|
+
/**
|
|
387
|
+
* Props forwarded to the heading element.
|
|
388
|
+
*/
|
|
110
389
|
headingProps?: RangeCalendarHeadingProps;
|
|
390
|
+
/**
|
|
391
|
+
* Props forwarded to the prev element.
|
|
392
|
+
*/
|
|
111
393
|
prevProps?: RangeCalendarPrevProps;
|
|
394
|
+
/**
|
|
395
|
+
* Props forwarded to the next element.
|
|
396
|
+
*/
|
|
112
397
|
nextProps?: RangeCalendarNextProps;
|
|
398
|
+
/**
|
|
399
|
+
* Props forwarded to the grid element.
|
|
400
|
+
*/
|
|
113
401
|
gridProps?: RangeCalendarGridProps;
|
|
402
|
+
/**
|
|
403
|
+
* Props forwarded to the grid head element.
|
|
404
|
+
*/
|
|
114
405
|
gridHeadProps?: RangeCalendarGridHeadProps;
|
|
406
|
+
/**
|
|
407
|
+
* Props forwarded to the grid body element.
|
|
408
|
+
*/
|
|
115
409
|
gridBodyProps?: RangeCalendarGridBodyProps;
|
|
410
|
+
/**
|
|
411
|
+
* Props forwarded to the grid row element.
|
|
412
|
+
*/
|
|
116
413
|
gridRowProps?: RangeCalendarGridRowProps;
|
|
414
|
+
/**
|
|
415
|
+
* Props forwarded to the head cell element.
|
|
416
|
+
*/
|
|
117
417
|
headCellProps?: RangeCalendarHeadCellProps;
|
|
418
|
+
/**
|
|
419
|
+
* Props forwarded to the cell element.
|
|
420
|
+
*/
|
|
118
421
|
cellProps?: Omit<RangeCalendarCellProps, 'date'>;
|
|
422
|
+
/**
|
|
423
|
+
* Props forwarded to the cell trigger element.
|
|
424
|
+
*/
|
|
119
425
|
cellTriggerProps?: Omit<RangeCalendarCellTriggerProps, 'day' | 'month'>;
|
|
120
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* Emits for the range calendar compact component.
|
|
429
|
+
*/
|
|
121
430
|
type RangeCalendarCompactEmits = RangeCalendarRootEmits;
|
|
431
|
+
/**
|
|
432
|
+
* Slots for the range calendar compact component.
|
|
433
|
+
*/
|
|
122
434
|
type RangeCalendarCompactSlots = {
|
|
435
|
+
/**
|
|
436
|
+
* Custom content for the default slot.
|
|
437
|
+
*/
|
|
123
438
|
default?: (props: {
|
|
124
439
|
modelValue: DateRange;
|
|
125
440
|
}) => any;
|
|
441
|
+
/**
|
|
442
|
+
* Custom content for the prev slot.
|
|
443
|
+
*/
|
|
126
444
|
prev?: (props: {
|
|
127
445
|
disabled: boolean;
|
|
128
446
|
}) => any;
|
|
447
|
+
/**
|
|
448
|
+
* Custom content for the heading slot.
|
|
449
|
+
*/
|
|
129
450
|
heading?: (props: {
|
|
130
451
|
headingValue: string;
|
|
131
452
|
}) => any;
|
|
453
|
+
/**
|
|
454
|
+
* Custom content for the next slot.
|
|
455
|
+
*/
|
|
132
456
|
next?: (props: {
|
|
133
457
|
disabled: boolean;
|
|
134
458
|
}) => any;
|
|
459
|
+
/**
|
|
460
|
+
* Custom content for the head cell slot.
|
|
461
|
+
*/
|
|
135
462
|
'head-cell'?: (props: {
|
|
136
463
|
date: DateValue;
|
|
137
464
|
index: number;
|
|
138
465
|
label: string;
|
|
139
466
|
}) => any;
|
|
467
|
+
/**
|
|
468
|
+
* Custom content for the day slot.
|
|
469
|
+
*/
|
|
140
470
|
day?: (props: {
|
|
141
471
|
day: DateValue;
|
|
142
472
|
month: DateValue;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_base: _$vue.DefineComponent<RovingFocusGroupProps, {
|
|
|
18
18
|
"onUpdate:currentTabStopId"?: ((value: string | null | undefined) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
orientation: DataOrientation;
|
|
21
|
-
preventScrollOnEntryFocus: boolean;
|
|
22
21
|
loop: boolean;
|
|
22
|
+
preventScrollOnEntryFocus: boolean;
|
|
23
23
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,6 +3,9 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
3
3
|
import { HTMLAttributes } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/roving-focus/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Props for the roving focus group component.
|
|
8
|
+
*/
|
|
6
9
|
interface RovingFocusGroupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
7
10
|
/** The orientation of the group. Mainly so arrow navigation is done accordingly (left & right vs. up & down) */
|
|
8
11
|
orientation?: DataOrientation;
|
|
@@ -25,11 +28,26 @@ interface RovingFocusGroupProps extends PrimitiveProps, /** @vue-ignore */HTMLAt
|
|
|
25
28
|
/** When `true`, will prevent scrolling to the focus item when focused. */
|
|
26
29
|
preventScrollOnEntryFocus?: boolean;
|
|
27
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Emits for the roving focus group component.
|
|
33
|
+
*/
|
|
28
34
|
type RovingFocusGroupEmits = {
|
|
35
|
+
/**
|
|
36
|
+
* Emitted when entry focus occurs.
|
|
37
|
+
*/
|
|
29
38
|
entryFocus: [event: Event];
|
|
39
|
+
/**
|
|
40
|
+
* Emitted when the current tab stop id value changes.
|
|
41
|
+
*/
|
|
30
42
|
'update:currentTabStopId': [value: string | null | undefined];
|
|
31
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Props for the roving focus item component.
|
|
46
|
+
*/
|
|
32
47
|
interface RovingFocusItemProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
48
|
+
/**
|
|
49
|
+
* Tab stop id.
|
|
50
|
+
*/
|
|
33
51
|
tabStopId?: string;
|
|
34
52
|
/**
|
|
35
53
|
* When `false`, item will not be focusable.
|
|
@@ -3,9 +3,21 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
3
3
|
import { CSSProperties, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/scroll-area/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Supported scroll area values.
|
|
8
|
+
*/
|
|
6
9
|
type ScrollAreaType = 'auto' | 'always' | 'hover' | 'scroll' | 'glimpse';
|
|
10
|
+
/**
|
|
11
|
+
* Type information for the scroll area orientation component.
|
|
12
|
+
*/
|
|
7
13
|
type ScrollAreaOrientation = 'horizontal' | 'vertical';
|
|
14
|
+
/**
|
|
15
|
+
* State values for the scroll area component.
|
|
16
|
+
*/
|
|
8
17
|
type ScrollAreaState = 'hidden' | 'visible';
|
|
18
|
+
/**
|
|
19
|
+
* Props for the scroll area root component.
|
|
20
|
+
*/
|
|
9
21
|
interface ScrollAreaRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
10
22
|
/** Controls scrollbar visibility behavior. */
|
|
11
23
|
type?: ScrollAreaType;
|
|
@@ -14,18 +26,39 @@ interface ScrollAreaRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttr
|
|
|
14
26
|
/** Delay before transient scrollbars are hidden. */
|
|
15
27
|
scrollHideDelay?: number;
|
|
16
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Props for the scroll area viewport component.
|
|
31
|
+
*/
|
|
17
32
|
interface ScrollAreaViewportProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
18
33
|
/** Adds a nonce to the injected style tag. */
|
|
19
34
|
nonce?: string;
|
|
20
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Props for the scroll area scrollbar component.
|
|
38
|
+
*/
|
|
21
39
|
interface ScrollAreaScrollbarProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
22
40
|
/** The scrollbar orientation. */
|
|
23
41
|
orientation?: ScrollAreaOrientation;
|
|
24
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Props for the scroll area thumb component.
|
|
45
|
+
*/
|
|
25
46
|
interface ScrollAreaThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
47
|
+
/**
|
|
48
|
+
* Props for the scroll area corner component.
|
|
49
|
+
*/
|
|
26
50
|
interface ScrollAreaCornerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
51
|
+
/**
|
|
52
|
+
* Emits for the scroll area root component.
|
|
53
|
+
*/
|
|
27
54
|
type ScrollAreaRootEmits = {};
|
|
55
|
+
/**
|
|
56
|
+
* Available UI slots for the scroll area component.
|
|
57
|
+
*/
|
|
28
58
|
type ScrollAreaUiSlot = 'root' | 'viewport' | 'scrollbar' | 'thumb' | 'corner';
|
|
59
|
+
/**
|
|
60
|
+
* UI class overrides for the scroll area component.
|
|
61
|
+
*/
|
|
29
62
|
type ScrollAreaUi = UiClass<ScrollAreaUiSlot>;
|
|
30
63
|
//#endregion
|
|
31
64
|
export { ScrollAreaCornerProps, ScrollAreaOrientation, ScrollAreaRootEmits, ScrollAreaRootProps, ScrollAreaScrollbarProps, ScrollAreaState, ScrollAreaThumbProps, ScrollAreaType, ScrollAreaUi, ScrollAreaUiSlot, ScrollAreaViewportProps };
|
|
@@ -2,21 +2,57 @@ import { AcceptableValue, UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { TabsIndicatorProps, TabsListProps, TabsOptionData, TabsRootEmits, TabsRootProps, TabsTriggerProps, TabsUiSlot } from "../tabs/types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/segment/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Props for the segment compact component.
|
|
7
|
+
*/
|
|
5
8
|
interface SegmentCompactProps<T extends TabsOptionData> extends TabsRootProps<T['value'] | null> {
|
|
9
|
+
/**
|
|
10
|
+
* Items rendered by the component.
|
|
11
|
+
*/
|
|
6
12
|
items: T[];
|
|
13
|
+
/**
|
|
14
|
+
* Whether to enable indicator.
|
|
15
|
+
*/
|
|
7
16
|
enableIndicator?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Props forwarded to the list element.
|
|
19
|
+
*/
|
|
8
20
|
listProps?: TabsListProps;
|
|
21
|
+
/**
|
|
22
|
+
* Props forwarded to the trigger element.
|
|
23
|
+
*/
|
|
9
24
|
triggerProps?: TabsTriggerProps;
|
|
25
|
+
/**
|
|
26
|
+
* Props forwarded to the indicator element.
|
|
27
|
+
*/
|
|
10
28
|
indicatorProps?: TabsIndicatorProps;
|
|
11
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Emits for the segment compact component.
|
|
32
|
+
*/
|
|
12
33
|
type SegmentCompactEmits<T extends AcceptableValue = AcceptableValue> = TabsRootEmits<T>;
|
|
34
|
+
/**
|
|
35
|
+
* Slots for the segment compact component.
|
|
36
|
+
*/
|
|
13
37
|
type SegmentCompactSlots<T extends TabsOptionData = TabsOptionData> = {
|
|
38
|
+
/**
|
|
39
|
+
* Custom content for the item slot.
|
|
40
|
+
*/
|
|
14
41
|
item?: (props: T & {
|
|
15
42
|
active: boolean;
|
|
16
43
|
}) => any;
|
|
44
|
+
/**
|
|
45
|
+
* Custom content for the indicator slot.
|
|
46
|
+
*/
|
|
17
47
|
indicator?: () => any;
|
|
18
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Available UI slots for the segment component.
|
|
51
|
+
*/
|
|
19
52
|
type SegmentUiSlot = Exclude<TabsUiSlot, 'content'>;
|
|
53
|
+
/**
|
|
54
|
+
* UI class overrides for the segment component.
|
|
55
|
+
*/
|
|
20
56
|
type SegmentUi = UiClass<SegmentUiSlot>;
|
|
21
57
|
//#endregion
|
|
22
58
|
export { SegmentCompactEmits, SegmentCompactProps, SegmentCompactSlots, SegmentUi, SegmentUiSlot };
|
|
@@ -19,9 +19,9 @@ declare const __VLS_base: _$vue.DefineComponent<SelectContentProps, {}, {}, {},
|
|
|
19
19
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
position: SelectPosition;
|
|
22
|
+
bodyLock: boolean;
|
|
22
23
|
avoidCollisions: boolean;
|
|
23
24
|
prioritizePosition: boolean;
|
|
24
|
-
bodyLock: boolean;
|
|
25
25
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|