@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
|
@@ -9,146 +9,509 @@ import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "v
|
|
|
9
9
|
import { DateValue } from "@internationalized/date";
|
|
10
10
|
|
|
11
11
|
//#region src/components/calendar/types.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Model value type for the calendar component.
|
|
14
|
+
*/
|
|
12
15
|
type CalendarModelValue<M extends boolean = false> = M extends true ? DateValue[] | undefined : DateValue | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Props for the calendar root component.
|
|
18
|
+
*/
|
|
13
19
|
interface CalendarRootProps<M extends boolean = false> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
20
|
+
/**
|
|
21
|
+
* Default value.
|
|
22
|
+
*/
|
|
14
23
|
defaultValue?: CalendarModelValue<M>;
|
|
24
|
+
/**
|
|
25
|
+
* Default placeholder.
|
|
26
|
+
*/
|
|
15
27
|
defaultPlaceholder?: DateValue;
|
|
28
|
+
/**
|
|
29
|
+
* Placeholder.
|
|
30
|
+
*/
|
|
16
31
|
placeholder?: DateValue;
|
|
32
|
+
/**
|
|
33
|
+
* Whether paged navigation.
|
|
34
|
+
*/
|
|
17
35
|
pagedNavigation?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether prevent deselect.
|
|
38
|
+
*/
|
|
18
39
|
preventDeselect?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Week starts on.
|
|
42
|
+
*/
|
|
19
43
|
weekStartsOn?: WeekStartsOn;
|
|
44
|
+
/**
|
|
45
|
+
* Weekday format.
|
|
46
|
+
*/
|
|
20
47
|
weekdayFormat?: WeekDayFormat;
|
|
48
|
+
/**
|
|
49
|
+
* Calendar label.
|
|
50
|
+
*/
|
|
21
51
|
calendarLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether fixed weeks.
|
|
54
|
+
*/
|
|
22
55
|
fixedWeeks?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Max value.
|
|
58
|
+
*/
|
|
23
59
|
maxValue?: DateValue;
|
|
60
|
+
/**
|
|
61
|
+
* Min value.
|
|
62
|
+
*/
|
|
24
63
|
minValue?: DateValue;
|
|
64
|
+
/**
|
|
65
|
+
* Locale.
|
|
66
|
+
*/
|
|
25
67
|
locale?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Number of months.
|
|
70
|
+
*/
|
|
26
71
|
numberOfMonths?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the component is disabled.
|
|
74
|
+
*/
|
|
27
75
|
disabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the component is readonly.
|
|
78
|
+
*/
|
|
28
79
|
readonly?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether initial focus.
|
|
82
|
+
*/
|
|
29
83
|
initialFocus?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the date is disabled.
|
|
86
|
+
*/
|
|
30
87
|
isDateDisabled?: Matcher;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the date is unavailable.
|
|
90
|
+
*/
|
|
31
91
|
isDateUnavailable?: Matcher;
|
|
92
|
+
/**
|
|
93
|
+
* Reading direction of the component.
|
|
94
|
+
*/
|
|
32
95
|
dir?: Direction;
|
|
96
|
+
/**
|
|
97
|
+
* Next page.
|
|
98
|
+
*/
|
|
33
99
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
100
|
+
/**
|
|
101
|
+
* Prev page.
|
|
102
|
+
*/
|
|
34
103
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
104
|
+
/**
|
|
105
|
+
* Current model value.
|
|
106
|
+
*/
|
|
35
107
|
modelValue?: CalendarModelValue<M>;
|
|
108
|
+
/**
|
|
109
|
+
* Whether multiple values are supported.
|
|
110
|
+
*/
|
|
36
111
|
multiple?: M;
|
|
112
|
+
/**
|
|
113
|
+
* Whether to disable days outside current view.
|
|
114
|
+
*/
|
|
37
115
|
disableDaysOutsideCurrentView?: boolean;
|
|
38
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Emits for the calendar root component.
|
|
119
|
+
*/
|
|
39
120
|
type CalendarRootEmits<M extends boolean = false> = {
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when the model value changes.
|
|
123
|
+
*/
|
|
40
124
|
'update:modelValue': [date: CalendarModelValue<M>];
|
|
125
|
+
/**
|
|
126
|
+
* Emitted when the placeholder value changes.
|
|
127
|
+
*/
|
|
41
128
|
'update:placeholder': [date: DateValue];
|
|
42
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Props for the calendar header component.
|
|
132
|
+
*/
|
|
43
133
|
interface CalendarHeaderProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
134
|
+
/**
|
|
135
|
+
* Props for the calendar heading component.
|
|
136
|
+
*/
|
|
44
137
|
interface CalendarHeadingProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
138
|
+
/**
|
|
139
|
+
* Props for the calendar grid component.
|
|
140
|
+
*/
|
|
45
141
|
interface CalendarGridProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
142
|
+
/**
|
|
143
|
+
* Props for the calendar grid head component.
|
|
144
|
+
*/
|
|
46
145
|
interface CalendarGridHeadProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
146
|
+
/**
|
|
147
|
+
* Props for the calendar grid body component.
|
|
148
|
+
*/
|
|
47
149
|
interface CalendarGridBodyProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
150
|
+
/**
|
|
151
|
+
* Props for the calendar grid row component.
|
|
152
|
+
*/
|
|
48
153
|
interface CalendarGridRowProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
154
|
+
/**
|
|
155
|
+
* Props for the calendar head cell component.
|
|
156
|
+
*/
|
|
49
157
|
interface CalendarHeadCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
158
|
+
/**
|
|
159
|
+
* Props for the calendar cell component.
|
|
160
|
+
*/
|
|
50
161
|
interface CalendarCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
162
|
+
/**
|
|
163
|
+
* Date.
|
|
164
|
+
*/
|
|
51
165
|
date: DateValue;
|
|
52
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Props for the calendar cell trigger component.
|
|
169
|
+
*/
|
|
53
170
|
interface CalendarCellTriggerProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
171
|
+
/**
|
|
172
|
+
* Day.
|
|
173
|
+
*/
|
|
54
174
|
day: DateValue;
|
|
175
|
+
/**
|
|
176
|
+
* Month.
|
|
177
|
+
*/
|
|
55
178
|
month: DateValue;
|
|
56
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Props for the calendar prev component.
|
|
182
|
+
*/
|
|
57
183
|
interface CalendarPrevProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
184
|
+
/**
|
|
185
|
+
* Prev page.
|
|
186
|
+
*/
|
|
58
187
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
59
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Props for the calendar next component.
|
|
191
|
+
*/
|
|
60
192
|
interface CalendarNextProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
193
|
+
/**
|
|
194
|
+
* Next page.
|
|
195
|
+
*/
|
|
61
196
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
62
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Context for the calendar root component.
|
|
200
|
+
*/
|
|
63
201
|
interface CalendarRootContext extends PropsToContext<CalendarRootProps, 'disableDaysOutsideCurrentView' | 'disabled' | 'fixedWeeks' | 'initialFocus' | 'numberOfMonths' | 'pagedNavigation' | 'preventDeselect' | 'readonly'> {
|
|
202
|
+
/**
|
|
203
|
+
* Locale used by the component context.
|
|
204
|
+
*/
|
|
64
205
|
locale: ComputedRef<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Reading direction of the component.
|
|
208
|
+
*/
|
|
65
209
|
dir: ComputedRef<Direction>;
|
|
210
|
+
/**
|
|
211
|
+
* Week starts on used by the component context.
|
|
212
|
+
*/
|
|
66
213
|
weekStartsOn: ComputedRef<WeekStartsOn>;
|
|
214
|
+
/**
|
|
215
|
+
* Weekday format used by the component context.
|
|
216
|
+
*/
|
|
67
217
|
weekdayFormat: ComputedRef<WeekDayFormat>;
|
|
218
|
+
/**
|
|
219
|
+
* Current model value.
|
|
220
|
+
*/
|
|
68
221
|
modelValue: ShallowRef<DateValue | DateValue[] | undefined>;
|
|
222
|
+
/**
|
|
223
|
+
* Whether multiple values are supported.
|
|
224
|
+
*/
|
|
69
225
|
multiple: ComputedRef<boolean>;
|
|
226
|
+
/**
|
|
227
|
+
* Placeholder used by the component context.
|
|
228
|
+
*/
|
|
70
229
|
placeholder: ShallowRef<DateValue>;
|
|
230
|
+
/**
|
|
231
|
+
* Grid used by the component context.
|
|
232
|
+
*/
|
|
71
233
|
grid: ShallowRef<Grid<DateValue>[]>;
|
|
234
|
+
/**
|
|
235
|
+
* Parent element used by the component context.
|
|
236
|
+
*/
|
|
72
237
|
parentElement: ShallowRef<HTMLElement | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
* Full calendar label used by the component context.
|
|
240
|
+
*/
|
|
73
241
|
fullCalendarLabel: ComputedRef<string>;
|
|
242
|
+
/**
|
|
243
|
+
* Heading value used by the component context.
|
|
244
|
+
*/
|
|
74
245
|
headingValue: ComputedRef<string>;
|
|
246
|
+
/**
|
|
247
|
+
* Whether the current value is invalid.
|
|
248
|
+
*/
|
|
75
249
|
isInvalid: ComputedRef<boolean>;
|
|
250
|
+
/**
|
|
251
|
+
* Min value used by the component context.
|
|
252
|
+
*/
|
|
76
253
|
minValue: ComputedRef<DateValue | undefined>;
|
|
254
|
+
/**
|
|
255
|
+
* Max value used by the component context.
|
|
256
|
+
*/
|
|
77
257
|
maxValue: ComputedRef<DateValue | undefined>;
|
|
258
|
+
/**
|
|
259
|
+
* Whether the placeholder is focusable.
|
|
260
|
+
*/
|
|
78
261
|
isPlaceholderFocusable: ComputedRef<boolean>;
|
|
262
|
+
/**
|
|
263
|
+
* First focusable date used by the component context.
|
|
264
|
+
*/
|
|
79
265
|
firstFocusableDate: ComputedRef<DateValue | undefined>;
|
|
266
|
+
/**
|
|
267
|
+
* Whether the component has selected date.
|
|
268
|
+
*/
|
|
80
269
|
hasSelectedDate: ComputedRef<boolean>;
|
|
270
|
+
/**
|
|
271
|
+
* Whether the selected date is disabled.
|
|
272
|
+
*/
|
|
81
273
|
isSelectedDateDisabled: ComputedRef<boolean>;
|
|
274
|
+
/**
|
|
275
|
+
* Formatter used by the component context.
|
|
276
|
+
*/
|
|
82
277
|
formatter: Formatter;
|
|
278
|
+
/**
|
|
279
|
+
* Callback invoked when the date changes.
|
|
280
|
+
*/
|
|
83
281
|
onDateChange: (date: DateValue) => void;
|
|
282
|
+
/**
|
|
283
|
+
* Callback invoked when the placeholder changes.
|
|
284
|
+
*/
|
|
84
285
|
onPlaceholderChange: (date: DateValue) => void;
|
|
286
|
+
/**
|
|
287
|
+
* Whether the date is disabled.
|
|
288
|
+
*/
|
|
85
289
|
isDateDisabled: Matcher;
|
|
290
|
+
/**
|
|
291
|
+
* Whether the date is selected.
|
|
292
|
+
*/
|
|
86
293
|
isDateSelected: Matcher;
|
|
294
|
+
/**
|
|
295
|
+
* Whether the date is unavailable.
|
|
296
|
+
*/
|
|
87
297
|
isDateUnavailable?: Matcher;
|
|
298
|
+
/**
|
|
299
|
+
* Whether an outside visible view.
|
|
300
|
+
*/
|
|
88
301
|
isOutsideVisibleView: (date: DateValue) => boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Prev page used by the component context.
|
|
304
|
+
*/
|
|
89
305
|
prevPage: (prevPageFunc?: (date: DateValue) => DateValue) => void;
|
|
306
|
+
/**
|
|
307
|
+
* Next page used by the component context.
|
|
308
|
+
*/
|
|
90
309
|
nextPage: (nextPageFunc?: (date: DateValue) => DateValue) => void;
|
|
310
|
+
/**
|
|
311
|
+
* Whether the previous button is disabled.
|
|
312
|
+
*/
|
|
91
313
|
isPrevButtonDisabled: (prevPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Whether the next button is disabled.
|
|
316
|
+
*/
|
|
92
317
|
isNextButtonDisabled: (nextPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
93
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Slot props for the calendar root component.
|
|
321
|
+
*/
|
|
94
322
|
interface CalendarRootSlotProps<M extends boolean = false> {
|
|
323
|
+
/**
|
|
324
|
+
* Date exposed in the slot scope.
|
|
325
|
+
*/
|
|
95
326
|
date: DateValue;
|
|
327
|
+
/**
|
|
328
|
+
* Placeholder exposed in the slot scope.
|
|
329
|
+
*/
|
|
96
330
|
placeholder: DateValue;
|
|
331
|
+
/**
|
|
332
|
+
* Grid exposed in the slot scope.
|
|
333
|
+
*/
|
|
97
334
|
grid: Grid<DateValue>[];
|
|
335
|
+
/**
|
|
336
|
+
* Week days exposed in the slot scope.
|
|
337
|
+
*/
|
|
98
338
|
weekDays: string[];
|
|
339
|
+
/**
|
|
340
|
+
* Week starts on exposed in the slot scope.
|
|
341
|
+
*/
|
|
99
342
|
weekStartsOn: number;
|
|
343
|
+
/**
|
|
344
|
+
* Locale exposed in the slot scope.
|
|
345
|
+
*/
|
|
100
346
|
locale: string;
|
|
347
|
+
/**
|
|
348
|
+
* Whether fixed weeks.
|
|
349
|
+
*/
|
|
101
350
|
fixedWeeks: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Current model value.
|
|
353
|
+
*/
|
|
102
354
|
modelValue: CalendarModelValue<M>;
|
|
355
|
+
/**
|
|
356
|
+
* Formatter exposed in the slot scope.
|
|
357
|
+
*/
|
|
103
358
|
formatter: Formatter;
|
|
359
|
+
/**
|
|
360
|
+
* Min value exposed in the slot scope.
|
|
361
|
+
*/
|
|
104
362
|
minValue: DateValue | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* Max value exposed in the slot scope.
|
|
365
|
+
*/
|
|
105
366
|
maxValue: DateValue | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* Whether the component is disabled.
|
|
369
|
+
*/
|
|
106
370
|
disabled: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Callback invoked when the placeholder changes.
|
|
373
|
+
*/
|
|
107
374
|
onPlaceholderChange: (date: DateValue) => void;
|
|
108
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* Slot props for the calendar heading component.
|
|
378
|
+
*/
|
|
109
379
|
interface CalendarHeadingSlotProps {
|
|
380
|
+
/**
|
|
381
|
+
* Heading value exposed in the slot scope.
|
|
382
|
+
*/
|
|
110
383
|
headingValue: string;
|
|
384
|
+
/**
|
|
385
|
+
* Month value exposed in the slot scope.
|
|
386
|
+
*/
|
|
111
387
|
monthValue: string;
|
|
388
|
+
/**
|
|
389
|
+
* Year value exposed in the slot scope.
|
|
390
|
+
*/
|
|
112
391
|
yearValue: string;
|
|
392
|
+
/**
|
|
393
|
+
* Selected month exposed in the slot scope.
|
|
394
|
+
*/
|
|
113
395
|
selectedMonth: number;
|
|
396
|
+
/**
|
|
397
|
+
* Selected year exposed in the slot scope.
|
|
398
|
+
*/
|
|
114
399
|
selectedYear: number;
|
|
400
|
+
/**
|
|
401
|
+
* Month options exposed in the slot scope.
|
|
402
|
+
*/
|
|
115
403
|
monthOptions: SelectOptionData<number>[];
|
|
404
|
+
/**
|
|
405
|
+
* Year options exposed in the slot scope.
|
|
406
|
+
*/
|
|
116
407
|
yearOptions: SelectOptionData<number>[];
|
|
408
|
+
/**
|
|
409
|
+
* Callback invoked when the month changes.
|
|
410
|
+
*/
|
|
117
411
|
onMonthChange: (value: number | undefined) => void;
|
|
412
|
+
/**
|
|
413
|
+
* Callback invoked when the year changes.
|
|
414
|
+
*/
|
|
118
415
|
onYearChange: (value: number | undefined) => void;
|
|
119
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* Available UI slots for the calendar component.
|
|
419
|
+
*/
|
|
120
420
|
type CalendarUiSlot = 'root' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'gridHead' | 'gridBody' | 'gridRow' | 'headCell' | 'cell' | 'cellTrigger';
|
|
421
|
+
/**
|
|
422
|
+
* UI class overrides for the calendar component.
|
|
423
|
+
*/
|
|
121
424
|
type CalendarUi = UiClass<CalendarUiSlot>;
|
|
425
|
+
/**
|
|
426
|
+
* Props for the calendar compact component.
|
|
427
|
+
*/
|
|
122
428
|
interface CalendarCompactProps<M extends boolean = false> extends CalendarRootProps<M> {
|
|
429
|
+
/**
|
|
430
|
+
* Props forwarded to the header element.
|
|
431
|
+
*/
|
|
123
432
|
headerProps?: CalendarHeaderProps;
|
|
433
|
+
/**
|
|
434
|
+
* Props forwarded to the heading element.
|
|
435
|
+
*/
|
|
124
436
|
headingProps?: CalendarHeadingProps;
|
|
437
|
+
/**
|
|
438
|
+
* Props forwarded to the prev element.
|
|
439
|
+
*/
|
|
125
440
|
prevProps?: CalendarPrevProps;
|
|
441
|
+
/**
|
|
442
|
+
* Props forwarded to the next element.
|
|
443
|
+
*/
|
|
126
444
|
nextProps?: CalendarNextProps;
|
|
445
|
+
/**
|
|
446
|
+
* Props forwarded to the grid element.
|
|
447
|
+
*/
|
|
127
448
|
gridProps?: CalendarGridProps;
|
|
449
|
+
/**
|
|
450
|
+
* Props forwarded to the grid head element.
|
|
451
|
+
*/
|
|
128
452
|
gridHeadProps?: CalendarGridHeadProps;
|
|
453
|
+
/**
|
|
454
|
+
* Props forwarded to the grid body element.
|
|
455
|
+
*/
|
|
129
456
|
gridBodyProps?: CalendarGridBodyProps;
|
|
457
|
+
/**
|
|
458
|
+
* Props forwarded to the grid row element.
|
|
459
|
+
*/
|
|
130
460
|
gridRowProps?: CalendarGridRowProps;
|
|
461
|
+
/**
|
|
462
|
+
* Props forwarded to the head cell element.
|
|
463
|
+
*/
|
|
131
464
|
headCellProps?: CalendarHeadCellProps;
|
|
465
|
+
/**
|
|
466
|
+
* Props forwarded to the cell element.
|
|
467
|
+
*/
|
|
132
468
|
cellProps?: Omit<CalendarCellProps, 'date'>;
|
|
469
|
+
/**
|
|
470
|
+
* Props forwarded to the cell trigger element.
|
|
471
|
+
*/
|
|
133
472
|
cellTriggerProps?: Omit<CalendarCellTriggerProps, 'day' | 'month'>;
|
|
134
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* Emits for the calendar compact component.
|
|
476
|
+
*/
|
|
135
477
|
type CalendarCompactEmits<M extends boolean = false> = CalendarRootEmits<M>;
|
|
478
|
+
/**
|
|
479
|
+
* Slots for the calendar compact component.
|
|
480
|
+
*/
|
|
136
481
|
type CalendarCompactSlots<M extends boolean = false> = {
|
|
482
|
+
/**
|
|
483
|
+
* Custom content for the default slot.
|
|
484
|
+
*/
|
|
137
485
|
default?: (props: {
|
|
138
486
|
modelValue: CalendarModelValue<M>;
|
|
139
487
|
}) => any;
|
|
488
|
+
/**
|
|
489
|
+
* Custom content for the prev slot.
|
|
490
|
+
*/
|
|
140
491
|
prev?: (props: {
|
|
141
492
|
disabled: boolean;
|
|
142
493
|
}) => any;
|
|
494
|
+
/**
|
|
495
|
+
* Custom content for the heading slot.
|
|
496
|
+
*/
|
|
143
497
|
heading?: (props: CalendarHeadingSlotProps) => any;
|
|
498
|
+
/**
|
|
499
|
+
* Custom content for the next slot.
|
|
500
|
+
*/
|
|
144
501
|
next?: (props: {
|
|
145
502
|
disabled: boolean;
|
|
146
503
|
}) => any;
|
|
504
|
+
/**
|
|
505
|
+
* Custom content for the head cell slot.
|
|
506
|
+
*/
|
|
147
507
|
'head-cell'?: (props: {
|
|
148
508
|
date: DateValue;
|
|
149
509
|
index: number;
|
|
150
510
|
label: string;
|
|
151
511
|
}) => any;
|
|
512
|
+
/**
|
|
513
|
+
* Custom content for the day slot.
|
|
514
|
+
*/
|
|
152
515
|
day?: (props: {
|
|
153
516
|
day: DateValue;
|
|
154
517
|
month: DateValue;
|
|
@@ -3,36 +3,126 @@ import { CollapsibleContentProps, CollapsibleRootEmits, CollapsibleRootProps, Co
|
|
|
3
3
|
import { HTMLAttributes } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/card/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Props for the card root component.
|
|
8
|
+
*/
|
|
6
9
|
interface CardRootProps extends CollapsibleRootProps {}
|
|
10
|
+
/**
|
|
11
|
+
* Emits for the card root component.
|
|
12
|
+
*/
|
|
7
13
|
type CardRootEmits = CollapsibleRootEmits;
|
|
14
|
+
/**
|
|
15
|
+
* Props for the card header component.
|
|
16
|
+
*/
|
|
8
17
|
interface CardHeaderProps extends /** @vue-ignore */HTMLAttributes {}
|
|
18
|
+
/**
|
|
19
|
+
* Props for the card content component.
|
|
20
|
+
*/
|
|
9
21
|
interface CardContentProps extends CollapsibleContentProps {}
|
|
22
|
+
/**
|
|
23
|
+
* Props for the card footer component.
|
|
24
|
+
*/
|
|
10
25
|
interface CardFooterProps extends /** @vue-ignore */HTMLAttributes {}
|
|
26
|
+
/**
|
|
27
|
+
* Props for the card title root component.
|
|
28
|
+
*/
|
|
11
29
|
interface CardTitleRootProps extends /** @vue-ignore */HTMLAttributes {}
|
|
30
|
+
/**
|
|
31
|
+
* Props for the card title component.
|
|
32
|
+
*/
|
|
12
33
|
interface CardTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
34
|
+
/**
|
|
35
|
+
* Props for the card description component.
|
|
36
|
+
*/
|
|
13
37
|
interface CardDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
38
|
+
/**
|
|
39
|
+
* Props for the card collapsible trigger component.
|
|
40
|
+
*/
|
|
14
41
|
interface CardCollapsibleTriggerProps extends CollapsibleTriggerProps {}
|
|
42
|
+
/**
|
|
43
|
+
* Available UI slots for the card component.
|
|
44
|
+
*/
|
|
15
45
|
type CardUiSlot = 'root' | 'header' | 'content' | 'footer' | 'titleRoot' | 'title' | 'description' | 'trigger';
|
|
46
|
+
/**
|
|
47
|
+
* UI class overrides for the card component.
|
|
48
|
+
*/
|
|
16
49
|
type CardUi = UiClass<CardUiSlot>;
|
|
50
|
+
/**
|
|
51
|
+
* Props for the card compact component.
|
|
52
|
+
*/
|
|
17
53
|
interface CardCompactProps extends CardRootProps {
|
|
54
|
+
/**
|
|
55
|
+
* Title text rendered by the component.
|
|
56
|
+
*/
|
|
18
57
|
title?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Description text rendered by the component.
|
|
60
|
+
*/
|
|
19
61
|
description?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Props forwarded to the header element.
|
|
64
|
+
*/
|
|
20
65
|
headerProps?: CardHeaderProps;
|
|
66
|
+
/**
|
|
67
|
+
* Props forwarded to the content element.
|
|
68
|
+
*/
|
|
21
69
|
contentProps?: CardContentProps;
|
|
70
|
+
/**
|
|
71
|
+
* Props forwarded to the footer element.
|
|
72
|
+
*/
|
|
22
73
|
footerProps?: CardFooterProps;
|
|
74
|
+
/**
|
|
75
|
+
* Props forwarded to the title root element.
|
|
76
|
+
*/
|
|
23
77
|
titleRootProps?: CardTitleRootProps;
|
|
78
|
+
/**
|
|
79
|
+
* Props forwarded to the title element.
|
|
80
|
+
*/
|
|
24
81
|
titleProps?: CardTitleProps;
|
|
82
|
+
/**
|
|
83
|
+
* Props forwarded to the description element.
|
|
84
|
+
*/
|
|
25
85
|
descriptionProps?: CardDescriptionProps;
|
|
26
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Emits for the card compact component.
|
|
89
|
+
*/
|
|
27
90
|
type CardCompactEmits = CardRootEmits;
|
|
91
|
+
/**
|
|
92
|
+
* Slots for the card compact component.
|
|
93
|
+
*/
|
|
28
94
|
interface CardCompactSlots {
|
|
95
|
+
/**
|
|
96
|
+
* Custom content for the default slot.
|
|
97
|
+
*/
|
|
29
98
|
default?: () => any;
|
|
99
|
+
/**
|
|
100
|
+
* Custom content for the header slot.
|
|
101
|
+
*/
|
|
30
102
|
header?: () => any;
|
|
103
|
+
/**
|
|
104
|
+
* Custom content for the title slot.
|
|
105
|
+
*/
|
|
31
106
|
title?: () => any;
|
|
107
|
+
/**
|
|
108
|
+
* Custom content for the title leading slot.
|
|
109
|
+
*/
|
|
32
110
|
'title-leading'?: () => any;
|
|
111
|
+
/**
|
|
112
|
+
* Custom content for the title trailing slot.
|
|
113
|
+
*/
|
|
33
114
|
'title-trailing'?: () => any;
|
|
115
|
+
/**
|
|
116
|
+
* Custom content for the extra slot.
|
|
117
|
+
*/
|
|
34
118
|
extra?: () => any;
|
|
119
|
+
/**
|
|
120
|
+
* Custom content for the footer slot.
|
|
121
|
+
*/
|
|
35
122
|
footer?: () => any;
|
|
123
|
+
/**
|
|
124
|
+
* Custom content for the description slot.
|
|
125
|
+
*/
|
|
36
126
|
description?: () => any;
|
|
37
127
|
}
|
|
38
128
|
//#endregion
|
|
@@ -6,21 +6,63 @@ import { ComputedRef, HTMLAttributes, Ref, ShallowRef } from "vue";
|
|
|
6
6
|
import { EmblaCarouselVueType } from "embla-carousel-vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/carousel/types.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Props for the carousel root component.
|
|
11
|
+
*/
|
|
9
12
|
interface CarouselRootProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {
|
|
13
|
+
/**
|
|
14
|
+
* Opts.
|
|
15
|
+
*/
|
|
10
16
|
opts?: EmblaOptionsType;
|
|
17
|
+
/**
|
|
18
|
+
* Plugins.
|
|
19
|
+
*/
|
|
11
20
|
plugins?: EmblaPluginType[];
|
|
21
|
+
/**
|
|
22
|
+
* Orientation of the component.
|
|
23
|
+
*/
|
|
12
24
|
orientation?: DataOrientation;
|
|
25
|
+
/**
|
|
26
|
+
* Reading direction of the component.
|
|
27
|
+
*/
|
|
13
28
|
dir?: Direction;
|
|
14
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Type information for the carousel api component.
|
|
32
|
+
*/
|
|
15
33
|
type CarouselApi = NonNullable<EmblaCarouselVueType[1]['value']>;
|
|
34
|
+
/**
|
|
35
|
+
* Emits for the carousel root component.
|
|
36
|
+
*/
|
|
16
37
|
type CarouselRootEmits = {
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when init api occurs.
|
|
40
|
+
*/
|
|
17
41
|
initApi: [api: CarouselApi];
|
|
18
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Props for the carousel content component.
|
|
45
|
+
*/
|
|
19
46
|
interface CarouselContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
47
|
+
/**
|
|
48
|
+
* Props for the carousel item component.
|
|
49
|
+
*/
|
|
20
50
|
interface CarouselItemProps extends /** @vue-ignore */HTMLAttributes {}
|
|
51
|
+
/**
|
|
52
|
+
* Props for the carousel previous component.
|
|
53
|
+
*/
|
|
21
54
|
interface CarouselPreviousProps extends ButtonProps {}
|
|
55
|
+
/**
|
|
56
|
+
* Props for the carousel next component.
|
|
57
|
+
*/
|
|
22
58
|
interface CarouselNextProps extends ButtonProps {}
|
|
59
|
+
/**
|
|
60
|
+
* Available UI slots for the carousel component.
|
|
61
|
+
*/
|
|
23
62
|
type CarouselUiSlot = 'root' | 'content' | 'container' | 'item' | 'previous' | 'next';
|
|
63
|
+
/**
|
|
64
|
+
* UI class overrides for the carousel component.
|
|
65
|
+
*/
|
|
24
66
|
type CarouselUi = UiClass<CarouselUiSlot>;
|
|
25
67
|
//#endregion
|
|
26
68
|
export { CarouselApi, CarouselContentProps, CarouselItemProps, CarouselNextProps, CarouselPreviousProps, CarouselRootEmits, CarouselRootProps, CarouselUi, CarouselUiSlot };
|