@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,60 +9,216 @@ import { TimePickerOption } from "../../shared/time-picker.js";
|
|
|
9
9
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/components/time-picker/types.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Props for the time picker root component.
|
|
14
|
+
*/
|
|
12
15
|
interface TimePickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
16
|
+
/**
|
|
17
|
+
* Default value.
|
|
18
|
+
*/
|
|
13
19
|
defaultValue?: TimeValue;
|
|
20
|
+
/**
|
|
21
|
+
* Default placeholder.
|
|
22
|
+
*/
|
|
14
23
|
defaultPlaceholder?: TimeValue;
|
|
24
|
+
/**
|
|
25
|
+
* Placeholder.
|
|
26
|
+
*/
|
|
15
27
|
placeholder?: TimeValue;
|
|
28
|
+
/**
|
|
29
|
+
* Current model value.
|
|
30
|
+
*/
|
|
16
31
|
modelValue?: TimeValue;
|
|
32
|
+
/**
|
|
33
|
+
* Hour cycle.
|
|
34
|
+
*/
|
|
17
35
|
hourCycle?: HourCycle;
|
|
36
|
+
/**
|
|
37
|
+
* Step.
|
|
38
|
+
*/
|
|
18
39
|
step?: DateStep;
|
|
40
|
+
/**
|
|
41
|
+
* Granularity.
|
|
42
|
+
*/
|
|
19
43
|
granularity?: TimeGranularity;
|
|
44
|
+
/**
|
|
45
|
+
* Whether hide time zone.
|
|
46
|
+
*/
|
|
20
47
|
hideTimeZone?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Max value.
|
|
50
|
+
*/
|
|
21
51
|
maxValue?: TimeValue;
|
|
52
|
+
/**
|
|
53
|
+
* Min value.
|
|
54
|
+
*/
|
|
22
55
|
minValue?: TimeValue;
|
|
56
|
+
/**
|
|
57
|
+
* Locale.
|
|
58
|
+
*/
|
|
23
59
|
locale?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the component is disabled.
|
|
62
|
+
*/
|
|
24
63
|
disabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the component is readonly.
|
|
66
|
+
*/
|
|
25
67
|
readonly?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the time is unavailable.
|
|
70
|
+
*/
|
|
26
71
|
isTimeUnavailable?: TimeMatcher;
|
|
72
|
+
/**
|
|
73
|
+
* Id.
|
|
74
|
+
*/
|
|
27
75
|
id?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Reading direction of the component.
|
|
78
|
+
*/
|
|
28
79
|
dir?: Direction;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the component is open by default.
|
|
82
|
+
*/
|
|
29
83
|
defaultOpen?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the component is open.
|
|
86
|
+
*/
|
|
30
87
|
open?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the popup is modal.
|
|
90
|
+
*/
|
|
31
91
|
modal?: boolean;
|
|
32
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Emits for the time picker root component.
|
|
95
|
+
*/
|
|
33
96
|
type TimePickerRootEmits = {
|
|
97
|
+
/**
|
|
98
|
+
* Emitted when the model value changes.
|
|
99
|
+
*/
|
|
34
100
|
'update:modelValue': [time: TimeValue | undefined];
|
|
101
|
+
/**
|
|
102
|
+
* Emitted when the placeholder value changes.
|
|
103
|
+
*/
|
|
35
104
|
'update:placeholder': [time: TimeValue];
|
|
105
|
+
/**
|
|
106
|
+
* Emitted when the open state changes.
|
|
107
|
+
*/
|
|
36
108
|
'update:open': [open: boolean];
|
|
37
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* Props for the time picker trigger component.
|
|
112
|
+
*/
|
|
38
113
|
interface TimePickerTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
114
|
+
/**
|
|
115
|
+
* Props for the time picker popup component.
|
|
116
|
+
*/
|
|
39
117
|
interface TimePickerPopupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
118
|
+
/**
|
|
119
|
+
* Context for the time picker root component.
|
|
120
|
+
*/
|
|
40
121
|
interface TimePickerRootContext extends PropsToContext<TimePickerRootProps, 'disabled' | 'readonly'> {
|
|
122
|
+
/**
|
|
123
|
+
* Locale used by the component context.
|
|
124
|
+
*/
|
|
41
125
|
locale: ComputedRef<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Reading direction of the component.
|
|
128
|
+
*/
|
|
42
129
|
dir: ComputedRef<Direction>;
|
|
130
|
+
/**
|
|
131
|
+
* Current model value.
|
|
132
|
+
*/
|
|
43
133
|
modelValue: ShallowRef<TimeValue | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* Placeholder used by the component context.
|
|
136
|
+
*/
|
|
44
137
|
placeholder: ShallowRef<TimeValue>;
|
|
138
|
+
/**
|
|
139
|
+
* Whether the time is unavailable.
|
|
140
|
+
*/
|
|
45
141
|
isTimeUnavailable?: TimeMatcher;
|
|
142
|
+
/**
|
|
143
|
+
* Whether the current value is invalid.
|
|
144
|
+
*/
|
|
46
145
|
isInvalid: ComputedRef<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* Formatter used by the component context.
|
|
148
|
+
*/
|
|
47
149
|
formatter: Formatter;
|
|
150
|
+
/**
|
|
151
|
+
* Granularity used by the component context.
|
|
152
|
+
*/
|
|
48
153
|
granularity: ComputedRef<TimeGranularity>;
|
|
154
|
+
/**
|
|
155
|
+
* Hour cycle used by the component context.
|
|
156
|
+
*/
|
|
49
157
|
hourCycle: HourCycle;
|
|
158
|
+
/**
|
|
159
|
+
* Whether hide time zone.
|
|
160
|
+
*/
|
|
50
161
|
hideTimeZone: ComputedRef<boolean>;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the component is open.
|
|
164
|
+
*/
|
|
51
165
|
open: ShallowRef<boolean | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Popup id used by the component context.
|
|
168
|
+
*/
|
|
52
169
|
popupId: string;
|
|
170
|
+
/**
|
|
171
|
+
* Display value used by the component context.
|
|
172
|
+
*/
|
|
53
173
|
displayValue: ComputedRef<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Focused time used by the component context.
|
|
176
|
+
*/
|
|
54
177
|
focusedTime: ShallowRef<TimeValue>;
|
|
178
|
+
/**
|
|
179
|
+
* Options used by the component context.
|
|
180
|
+
*/
|
|
55
181
|
options: ComputedRef<TimePickerOption[]>;
|
|
182
|
+
/**
|
|
183
|
+
* Min value used by the component context.
|
|
184
|
+
*/
|
|
56
185
|
minValue: ComputedRef<TimeValue | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Max value used by the component context.
|
|
188
|
+
*/
|
|
57
189
|
maxValue: ComputedRef<TimeValue | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* Callback invoked when the time changes.
|
|
192
|
+
*/
|
|
58
193
|
onTimeChange: (time: TimeValue) => void;
|
|
194
|
+
/**
|
|
195
|
+
* Callback invoked when the placeholder changes.
|
|
196
|
+
*/
|
|
59
197
|
onPlaceholderChange: (time: TimeValue) => void;
|
|
198
|
+
/**
|
|
199
|
+
* Whether the time is disabled.
|
|
200
|
+
*/
|
|
60
201
|
isTimeDisabled: (time: TimeValue) => boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Whether the time is selected.
|
|
204
|
+
*/
|
|
61
205
|
isTimeSelected: (time: TimeValue) => boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Set open used by the component context.
|
|
208
|
+
*/
|
|
62
209
|
setOpen: (value: boolean) => void;
|
|
210
|
+
/**
|
|
211
|
+
* Set focused time used by the component context.
|
|
212
|
+
*/
|
|
63
213
|
setFocusedTime: (time: TimeValue) => void;
|
|
64
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Available UI slots for the time picker component.
|
|
217
|
+
*/
|
|
65
218
|
type TimePickerUiSlot = 'root' | 'trigger' | 'popup' | 'list' | 'cellTrigger';
|
|
219
|
+
/**
|
|
220
|
+
* UI class overrides for the time picker component.
|
|
221
|
+
*/
|
|
66
222
|
type TimePickerUi = UiClass<TimePickerUiSlot>;
|
|
67
223
|
//#endregion
|
|
68
224
|
export { TimePickerPopupProps, TimePickerRootContext, TimePickerRootEmits, TimePickerRootProps, TimePickerTriggerProps, TimePickerUi, TimePickerUiSlot };
|
|
@@ -33,14 +33,14 @@ declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldRootProps, {}, {},
|
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
step: DateStep;
|
|
35
35
|
defaultValue: TimeRange;
|
|
36
|
+
readonly: boolean;
|
|
36
37
|
defaultPlaceholder: TimeValue;
|
|
37
38
|
hourCycle: 12 | 24;
|
|
38
39
|
granularity: TimeGranularity;
|
|
39
40
|
hideTimeZone: boolean;
|
|
40
|
-
readonly: boolean;
|
|
41
|
-
isTimeUnavailable: TimeMatcher;
|
|
42
41
|
startName: string;
|
|
43
42
|
endName: string;
|
|
43
|
+
isTimeUnavailable: TimeMatcher;
|
|
44
44
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
46
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,80 +8,272 @@ import { Formatter } from "../../date/formatter.js";
|
|
|
8
8
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/components/time-range-field/types.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Props for the time range field root component.
|
|
13
|
+
*/
|
|
11
14
|
interface TimeRangeFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
15
|
+
/**
|
|
16
|
+
* Default value.
|
|
17
|
+
*/
|
|
12
18
|
defaultValue?: TimeRange;
|
|
19
|
+
/**
|
|
20
|
+
* Default placeholder.
|
|
21
|
+
*/
|
|
13
22
|
defaultPlaceholder?: TimeValue;
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder.
|
|
25
|
+
*/
|
|
14
26
|
placeholder?: TimeValue;
|
|
27
|
+
/**
|
|
28
|
+
* Current model value.
|
|
29
|
+
*/
|
|
15
30
|
modelValue?: TimeRange;
|
|
31
|
+
/**
|
|
32
|
+
* Hour cycle.
|
|
33
|
+
*/
|
|
16
34
|
hourCycle?: HourCycle;
|
|
35
|
+
/**
|
|
36
|
+
* Step.
|
|
37
|
+
*/
|
|
17
38
|
step?: DateStep;
|
|
39
|
+
/**
|
|
40
|
+
* Granularity.
|
|
41
|
+
*/
|
|
18
42
|
granularity?: TimeGranularity;
|
|
43
|
+
/**
|
|
44
|
+
* Whether hide time zone.
|
|
45
|
+
*/
|
|
19
46
|
hideTimeZone?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Max value.
|
|
49
|
+
*/
|
|
20
50
|
maxValue?: TimeValue;
|
|
51
|
+
/**
|
|
52
|
+
* Min value.
|
|
53
|
+
*/
|
|
21
54
|
minValue?: TimeValue;
|
|
55
|
+
/**
|
|
56
|
+
* Locale.
|
|
57
|
+
*/
|
|
22
58
|
locale?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component is disabled.
|
|
61
|
+
*/
|
|
23
62
|
disabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the component is readonly.
|
|
65
|
+
*/
|
|
24
66
|
readonly?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the time is unavailable.
|
|
69
|
+
*/
|
|
25
70
|
isTimeUnavailable?: TimeMatcher;
|
|
71
|
+
/**
|
|
72
|
+
* Id.
|
|
73
|
+
*/
|
|
26
74
|
id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Reading direction of the component.
|
|
77
|
+
*/
|
|
27
78
|
dir?: Direction;
|
|
79
|
+
/**
|
|
80
|
+
* Start name.
|
|
81
|
+
*/
|
|
28
82
|
startName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* End name.
|
|
85
|
+
*/
|
|
29
86
|
endName?: string;
|
|
30
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Emits for the time range field root component.
|
|
90
|
+
*/
|
|
31
91
|
type TimeRangeFieldRootEmits = {
|
|
92
|
+
/**
|
|
93
|
+
* Emitted when the model value changes.
|
|
94
|
+
*/
|
|
32
95
|
'update:modelValue': [range: TimeRange];
|
|
96
|
+
/**
|
|
97
|
+
* Emitted when the placeholder value changes.
|
|
98
|
+
*/
|
|
33
99
|
'update:placeholder': [time: TimeValue];
|
|
100
|
+
/**
|
|
101
|
+
* Emitted when the start value changes.
|
|
102
|
+
*/
|
|
34
103
|
'update:startValue': [time: TimeValue | undefined];
|
|
104
|
+
/**
|
|
105
|
+
* Emitted when the end value changes.
|
|
106
|
+
*/
|
|
35
107
|
'update:endValue': [time: TimeValue | undefined];
|
|
36
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* Props for the time range field input component.
|
|
111
|
+
*/
|
|
37
112
|
interface TimeRangeFieldInputProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
113
|
+
/**
|
|
114
|
+
* Part.
|
|
115
|
+
*/
|
|
38
116
|
part: SegmentPart;
|
|
117
|
+
/**
|
|
118
|
+
* Type.
|
|
119
|
+
*/
|
|
39
120
|
type?: 'start' | 'end';
|
|
40
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Type information for the time range field segment component.
|
|
124
|
+
*/
|
|
41
125
|
interface TimeRangeFieldSegment {
|
|
126
|
+
/**
|
|
127
|
+
* Part.
|
|
128
|
+
*/
|
|
42
129
|
part: SegmentPart;
|
|
130
|
+
/**
|
|
131
|
+
* Value associated with the current item.
|
|
132
|
+
*/
|
|
43
133
|
value: string;
|
|
44
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Context for the time range field root component.
|
|
137
|
+
*/
|
|
45
138
|
interface TimeRangeFieldRootContext extends PropsToContext<TimeRangeFieldRootProps, 'disabled' | 'readonly'> {
|
|
139
|
+
/**
|
|
140
|
+
* Locale used by the component context.
|
|
141
|
+
*/
|
|
46
142
|
locale: ComputedRef<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Reading direction of the component.
|
|
145
|
+
*/
|
|
47
146
|
dir: ComputedRef<Direction>;
|
|
147
|
+
/**
|
|
148
|
+
* Current model value.
|
|
149
|
+
*/
|
|
48
150
|
modelValue: ShallowRef<TimeRange>;
|
|
151
|
+
/**
|
|
152
|
+
* Placeholder used by the component context.
|
|
153
|
+
*/
|
|
49
154
|
placeholder: ShallowRef<TimeValue>;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the time is unavailable.
|
|
157
|
+
*/
|
|
50
158
|
isTimeUnavailable?: TimeMatcher;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the current value is invalid.
|
|
161
|
+
*/
|
|
51
162
|
isInvalid: ComputedRef<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Formatter used by the component context.
|
|
165
|
+
*/
|
|
52
166
|
formatter: Formatter;
|
|
167
|
+
/**
|
|
168
|
+
* Hour cycle used by the component context.
|
|
169
|
+
*/
|
|
53
170
|
hourCycle: HourCycle;
|
|
171
|
+
/**
|
|
172
|
+
* Step used by the component context.
|
|
173
|
+
*/
|
|
54
174
|
step: ComputedRef<DateStep>;
|
|
175
|
+
/**
|
|
176
|
+
* Start segment values used by the component context.
|
|
177
|
+
*/
|
|
55
178
|
startSegmentValues: ShallowRef<SegmentValueObj>;
|
|
179
|
+
/**
|
|
180
|
+
* End segment values used by the component context.
|
|
181
|
+
*/
|
|
56
182
|
endSegmentValues: ShallowRef<SegmentValueObj>;
|
|
183
|
+
/**
|
|
184
|
+
* Start segment contents used by the component context.
|
|
185
|
+
*/
|
|
57
186
|
startSegmentContents: ComputedRef<TimeRangeFieldSegment[]>;
|
|
187
|
+
/**
|
|
188
|
+
* End segment contents used by the component context.
|
|
189
|
+
*/
|
|
58
190
|
endSegmentContents: ComputedRef<TimeRangeFieldSegment[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Start input type used by the component context.
|
|
193
|
+
*/
|
|
59
194
|
startInputType: ComputedRef<TimeInputType>;
|
|
195
|
+
/**
|
|
196
|
+
* End input type used by the component context.
|
|
197
|
+
*/
|
|
60
198
|
endInputType: ComputedRef<TimeInputType>;
|
|
199
|
+
/**
|
|
200
|
+
* Start input value used by the component context.
|
|
201
|
+
*/
|
|
61
202
|
startInputValue: ComputedRef<string>;
|
|
203
|
+
/**
|
|
204
|
+
* End input value used by the component context.
|
|
205
|
+
*/
|
|
62
206
|
endInputValue: ComputedRef<string>;
|
|
207
|
+
/**
|
|
208
|
+
* Input max value used by the component context.
|
|
209
|
+
*/
|
|
63
210
|
inputMaxValue: ComputedRef<string | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* Input min value used by the component context.
|
|
213
|
+
*/
|
|
64
214
|
inputMinValue: ComputedRef<string | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Start elements used by the component context.
|
|
217
|
+
*/
|
|
65
218
|
startElements: ShallowRef<HTMLElement[]>;
|
|
219
|
+
/**
|
|
220
|
+
* End elements used by the component context.
|
|
221
|
+
*/
|
|
66
222
|
endElements: ShallowRef<HTMLElement[]>;
|
|
223
|
+
/**
|
|
224
|
+
* Focused type used by the component context.
|
|
225
|
+
*/
|
|
67
226
|
focusedType: ShallowRef<'start' | 'end'>;
|
|
227
|
+
/**
|
|
228
|
+
* Focus next used by the component context.
|
|
229
|
+
*/
|
|
68
230
|
focusNext: (type: 'start' | 'end') => void;
|
|
231
|
+
/**
|
|
232
|
+
* Set focused element used by the component context.
|
|
233
|
+
*/
|
|
69
234
|
setFocusedElement: (el: HTMLElement, type: 'start' | 'end') => void;
|
|
70
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Available UI slots for the time range field component.
|
|
238
|
+
*/
|
|
71
239
|
type TimeRangeFieldUiSlot = 'root' | 'input' | 'separator';
|
|
240
|
+
/**
|
|
241
|
+
* UI class overrides for the time range field component.
|
|
242
|
+
*/
|
|
72
243
|
type TimeRangeFieldUi = UiClass<TimeRangeFieldUiSlot>;
|
|
244
|
+
/**
|
|
245
|
+
* Props for the time range field compact component.
|
|
246
|
+
*/
|
|
73
247
|
interface TimeRangeFieldCompactProps extends TimeRangeFieldRootProps {
|
|
248
|
+
/**
|
|
249
|
+
* Props forwarded to the input element.
|
|
250
|
+
*/
|
|
74
251
|
inputProps?: Omit<TimeRangeFieldInputProps, 'part' | 'type'>;
|
|
252
|
+
/**
|
|
253
|
+
* Separator.
|
|
254
|
+
*/
|
|
75
255
|
separator?: string;
|
|
76
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Emits for the time range field compact component.
|
|
259
|
+
*/
|
|
77
260
|
type TimeRangeFieldCompactEmits = TimeRangeFieldRootEmits;
|
|
261
|
+
/**
|
|
262
|
+
* Slots for the time range field compact component.
|
|
263
|
+
*/
|
|
78
264
|
type TimeRangeFieldCompactSlots = {
|
|
265
|
+
/**
|
|
266
|
+
* Custom content for the default slot.
|
|
267
|
+
*/
|
|
79
268
|
default?: (props: {
|
|
80
269
|
startSegments: TimeRangeFieldSegment[];
|
|
81
270
|
endSegments: TimeRangeFieldSegment[];
|
|
82
271
|
modelValue: TimeRange;
|
|
83
272
|
isInvalid: boolean;
|
|
84
273
|
}) => any;
|
|
274
|
+
/**
|
|
275
|
+
* Custom content for the separator slot.
|
|
276
|
+
*/
|
|
85
277
|
separator?: () => any;
|
|
86
278
|
};
|
|
87
279
|
//#endregion
|
|
@@ -7,14 +7,14 @@ import * as _$vue from "vue";
|
|
|
7
7
|
type __VLS_Slots = TimeRangePickerCompactSlots;
|
|
8
8
|
declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (range: TimeRange) => any;
|
|
10
|
-
"update:placeholder": (time: TimeValue) => any;
|
|
11
10
|
"update:open": (open: boolean) => any;
|
|
11
|
+
"update:placeholder": (time: TimeValue) => any;
|
|
12
12
|
"update:startValue": (time: TimeValue | undefined) => any;
|
|
13
13
|
"update:endValue": (time: TimeValue | undefined) => any;
|
|
14
14
|
}, string, _$vue.PublicProps, Readonly<TimeRangePickerCompactProps> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((range: TimeRange) => any) | undefined;
|
|
16
|
-
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
17
16
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
17
|
+
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
18
18
|
"onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
19
19
|
"onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
20
20
|
}>, {
|
|
@@ -14,14 +14,14 @@ type __VLS_Slots = {
|
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (range: TimeRange) => any;
|
|
17
|
-
"update:placeholder": (time: TimeValue) => any;
|
|
18
17
|
"update:open": (open: boolean) => any;
|
|
18
|
+
"update:placeholder": (time: TimeValue) => any;
|
|
19
19
|
"update:startValue": (time: TimeValue | undefined) => any;
|
|
20
20
|
"update:endValue": (time: TimeValue | undefined) => any;
|
|
21
21
|
}, string, _$vue.PublicProps, Readonly<TimeRangePickerRootProps> & Readonly<{
|
|
22
22
|
"onUpdate:modelValue"?: ((range: TimeRange) => any) | undefined;
|
|
23
|
-
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
24
23
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
24
|
+
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
25
25
|
"onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
26
26
|
"onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
27
27
|
}>, {
|
|
@@ -29,14 +29,14 @@ declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerRootProps, {}, {}
|
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
step: DateStep;
|
|
31
31
|
defaultValue: TimeRange;
|
|
32
|
+
open: boolean;
|
|
33
|
+
defaultOpen: boolean;
|
|
34
|
+
readonly: boolean;
|
|
32
35
|
defaultPlaceholder: TimeValue;
|
|
36
|
+
modal: boolean;
|
|
33
37
|
hourCycle: 12 | 24;
|
|
34
38
|
granularity: TimeGranularity;
|
|
35
39
|
hideTimeZone: boolean;
|
|
36
|
-
readonly: boolean;
|
|
37
|
-
open: boolean;
|
|
38
|
-
defaultOpen: boolean;
|
|
39
|
-
modal: boolean;
|
|
40
40
|
isTimeUnavailable: TimeMatcher;
|
|
41
41
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|