@progress/kendo-vue-dateinputs 8.0.3-develop.1 → 8.0.3-develop.3
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/PopupSettings.d.ts +21 -0
- package/calendar/components/Calendar.d.ts +206 -0
- package/calendar/components/CalendarCell.d.ts +70 -0
- package/calendar/components/CalendarHeaderTitle.d.ts +35 -0
- package/calendar/components/CalendarWeekCell.d.ts +35 -0
- package/calendar/components/Header.d.ts +175 -0
- package/calendar/components/View.d.ts +204 -0
- package/calendar/components/ViewList.d.ts +226 -0
- package/calendar/components/interfaces/CalendarComputed.d.ts +17 -0
- package/calendar/components/interfaces/CalendarData.d.ts +17 -0
- package/calendar/components/interfaces/CalendarEventArguments.d.ts +63 -0
- package/calendar/components/interfaces/CalendarMethods.d.ts +40 -0
- package/calendar/components/interfaces/CalendarProps.d.ts +66 -0
- package/calendar/components/interfaces/CalendarState.d.ts +32 -0
- package/calendar/models/ActiveView.d.ts +11 -0
- package/calendar/models/CalendarMode.d.ts +16 -0
- package/calendar/models/CalendarSettings.d.ts +84 -0
- package/calendar/models/CalendarViewEnum.d.ts +16 -0
- package/calendar/models/CellContext.d.ts +26 -0
- package/calendar/models/NavigationAction.d.ts +22 -0
- package/calendar/models/SelectionRange.d.ts +24 -0
- package/calendar/models/SelectionRangeEnd.d.ts +11 -0
- package/calendar/models/ViewService.d.ts +32 -0
- package/calendar/models/main.d.ts +17 -0
- package/calendar/services/BusViewService.d.ts +28 -0
- package/calendar/services/CenturyViewService.d.ts +32 -0
- package/calendar/services/DOMService.d.ts +36 -0
- package/calendar/services/DecadeViewService.d.ts +34 -0
- package/calendar/services/MonthViewService.d.ts +40 -0
- package/calendar/services/NavigationService.d.ts +20 -0
- package/calendar/services/WeekNamesService.d.ts +16 -0
- package/calendar/services/YearViewService.d.ts +38 -0
- package/calendar/services/main.d.ts +16 -0
- package/calendar/utils/main.d.ts +33 -0
- package/common/PickerWrap.d.ts +23 -0
- package/dateinput/DateInput.d.ts +260 -0
- package/dateinput/DateInput.mjs +3 -3
- package/dateinput/interfaces/DateInputBlurEvent.d.ts +16 -0
- package/dateinput/interfaces/DateInputComputed.d.ts +15 -0
- package/dateinput/interfaces/DateInputData.d.ts +18 -0
- package/dateinput/interfaces/DateInputEventArguments.d.ts +17 -0
- package/dateinput/interfaces/DateInputFocusEvent.d.ts +16 -0
- package/dateinput/interfaces/DateInputMethods.d.ts +37 -0
- package/dateinput/interfaces/DateInputProps.d.ts +38 -0
- package/dateinput/interfaces/DateInputState.d.ts +16 -0
- package/dateinput/models/DateInputSettings.d.ts +160 -0
- package/dateinput/models/format-placeholder.d.ts +46 -0
- package/dateinput/models/incremental-steps.d.ts +18 -0
- package/dateinput/models/kendo-date.d.ts +60 -0
- package/dateinput/models/main.d.ts +14 -0
- package/dateinput/models/mask.d.ts +14 -0
- package/dateinput/models/selection.d.ts +14 -0
- package/dateinput/utils.d.ts +37 -0
- package/datepicker/DatePicker.d.ts +280 -0
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +11 -10
- package/datepicker/ToggleButton.d.ts +151 -0
- package/datepicker/interfaces/DatePickerComputed.d.ts +15 -0
- package/datepicker/interfaces/DatePickerData.d.ts +15 -0
- package/datepicker/interfaces/DatePickerEventArguments.d.ts +29 -0
- package/datepicker/interfaces/DatePickerFocusBlurEvents.d.ts +25 -0
- package/datepicker/interfaces/DatePickerMethods.d.ts +34 -0
- package/datepicker/interfaces/DatePickerProps.d.ts +53 -0
- package/datepicker/interfaces/DatePickerState.d.ts +23 -0
- package/datepicker/models/DatePickerSettings.d.ts +157 -0
- package/datepicker/models/main.d.ts +9 -0
- package/daterangepicker/DateRangePicker.d.ts +315 -0
- package/daterangepicker/interfaces/DateRangePickerFocusBlurEvents.d.ts +25 -0
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerSettings.d.ts +162 -0
- package/daterangepicker/models/main.d.ts +12 -0
- package/datetimepicker/DateTimePicker.d.ts +380 -0
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +17 -16
- package/datetimepicker/DateTimeSelector.d.ts +188 -0
- package/datetimepicker/interfaces/DateTimePickerFocusBlurEvents.d.ts +25 -0
- package/datetimepicker/models/DateTimePickerSettings.d.ts +199 -0
- package/datetimepicker/models/main.d.ts +9 -0
- package/defaults.d.ts +27 -0
- package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/index.d.mts +30 -3477
- package/index.d.ts +30 -3477
- package/messages/main.d.ts +117 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -10
- package/timepicker/TimeList.d.ts +129 -0
- package/timepicker/TimePart.d.ts +177 -0
- package/timepicker/TimePart.js +1 -1
- package/timepicker/TimePart.mjs +2 -2
- package/timepicker/TimePicker.d.ts +369 -0
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +1 -0
- package/timepicker/TimeSelector.d.ts +185 -0
- package/timepicker/interfaces/TimePickerFocusBlurEvents.d.ts +25 -0
- package/timepicker/models/IncrementalSteps.d.ts +15 -0
- package/timepicker/models/ListItem.d.ts +14 -0
- package/timepicker/models/ListService.d.ts +22 -0
- package/timepicker/models/ListServiceSettings.d.ts +19 -0
- package/timepicker/models/TimePart.d.ts +17 -0
- package/timepicker/models/TimePickerSettings.d.ts +180 -0
- package/timepicker/models/main.d.ts +14 -0
- package/timepicker/services/DOMService.d.ts +17 -0
- package/timepicker/services/DayPeriodService.d.ts +54 -0
- package/timepicker/services/HoursService.d.ts +40 -0
- package/timepicker/services/MinutesService.d.ts +39 -0
- package/timepicker/services/SecondsService.d.ts +39 -0
- package/timepicker/services/main.d.ts +13 -0
- package/timepicker/utils.d.ts +63 -0
- package/utils.d.ts +77 -0
- package/utils.mjs +1 -1
- package/virtualization/Virtualization.d.ts +186 -0
- package/virtualization/Virtualization.js +1 -1
- package/virtualization/Virtualization.mjs +2 -2
- package/virtualization/services/RowHeightService.d.ts +25 -0
- package/virtualization/services/ScrollerService.d.ts +56 -0
- package/virtualization/services/main.d.ts +10 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService } from '@progress/kendo-vue-intl';
|
|
9
|
+
import { Selection, DateInputFormatPlaceholder } from './models/main';
|
|
10
|
+
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
11
|
+
import { DateInputChangeEvent } from './interfaces/DateInputEventArguments';
|
|
12
|
+
import { DateInputFocusEvent } from './interfaces/DateInputFocusEvent';
|
|
13
|
+
import { DateInputBlurEvent } from './interfaces/DateInputBlurEvent';
|
|
14
|
+
import { PropType } from 'vue';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare const DateInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
|
+
modelValue: PropType<Date>;
|
|
20
|
+
value: PropType<Date>;
|
|
21
|
+
defaultValue: PropType<Date>;
|
|
22
|
+
format: {
|
|
23
|
+
type: PropType<string | import('@progress/kendo-vue-intl').DateFormatOptions>;
|
|
24
|
+
default: () => string | object;
|
|
25
|
+
};
|
|
26
|
+
formatPlaceholder: {
|
|
27
|
+
type: PropType<DateInputFormatPlaceholder>;
|
|
28
|
+
default: () => DateInputFormatPlaceholder;
|
|
29
|
+
};
|
|
30
|
+
rounded: {
|
|
31
|
+
type: PropType<string>;
|
|
32
|
+
validator: (value: string) => boolean;
|
|
33
|
+
};
|
|
34
|
+
fillMode: {
|
|
35
|
+
type: PropType<string>;
|
|
36
|
+
validator: (value: string) => boolean;
|
|
37
|
+
};
|
|
38
|
+
size: {
|
|
39
|
+
type: PropType<"small" | "medium" | "large">;
|
|
40
|
+
validator: (value: string) => boolean;
|
|
41
|
+
};
|
|
42
|
+
tabIndex: PropType<number>;
|
|
43
|
+
title: PropType<string>;
|
|
44
|
+
steps: PropType<import('./models/incremental-steps').DateInputIncrementalSteps>;
|
|
45
|
+
placeholder: PropType<string>;
|
|
46
|
+
max: {
|
|
47
|
+
type: PropType<Date>;
|
|
48
|
+
default: () => Date;
|
|
49
|
+
};
|
|
50
|
+
min: {
|
|
51
|
+
type: PropType<Date>;
|
|
52
|
+
default: () => Date;
|
|
53
|
+
};
|
|
54
|
+
maxTime: {
|
|
55
|
+
type: PropType<Date>;
|
|
56
|
+
default: () => Date;
|
|
57
|
+
};
|
|
58
|
+
minTime: {
|
|
59
|
+
type: PropType<Date>;
|
|
60
|
+
default: () => Date;
|
|
61
|
+
};
|
|
62
|
+
disabled: {
|
|
63
|
+
type: PropType<boolean>;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
spinners: {
|
|
67
|
+
type: PropType<boolean>;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
name: PropType<string>;
|
|
71
|
+
dir: PropType<string>;
|
|
72
|
+
label: PropType<string>;
|
|
73
|
+
id: PropType<string>;
|
|
74
|
+
validationMessage: {
|
|
75
|
+
type: PropType<string>;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
required: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
validityStyles: {
|
|
83
|
+
type: PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
validate: PropType<boolean>;
|
|
87
|
+
valid: {
|
|
88
|
+
type: PropType<boolean>;
|
|
89
|
+
default: any;
|
|
90
|
+
};
|
|
91
|
+
ariaRole: {
|
|
92
|
+
type: PropType<string>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
ariaControls: PropType<string>;
|
|
96
|
+
ariaLabel: PropType<string>;
|
|
97
|
+
ariaExpanded: {
|
|
98
|
+
type: PropType<boolean>;
|
|
99
|
+
default: any;
|
|
100
|
+
};
|
|
101
|
+
ariaHasPopup: {
|
|
102
|
+
type: PropType<String>;
|
|
103
|
+
default: any;
|
|
104
|
+
};
|
|
105
|
+
inputAttributes: PropType<Object>;
|
|
106
|
+
}>, {
|
|
107
|
+
inputRef: import('vue').Ref<any, any>;
|
|
108
|
+
kendoIntlService: {};
|
|
109
|
+
kendoLocalizationService: {};
|
|
110
|
+
}, {
|
|
111
|
+
kendoDate: any;
|
|
112
|
+
currentFormat: any;
|
|
113
|
+
valueDuringOnChange: any;
|
|
114
|
+
hasMounted: boolean;
|
|
115
|
+
isEmpty: any;
|
|
116
|
+
lastSelectedSymbol: any;
|
|
117
|
+
isFocused: boolean;
|
|
118
|
+
}, {
|
|
119
|
+
computedValue(): Date | null;
|
|
120
|
+
wrapperClassNames(): object;
|
|
121
|
+
}, {
|
|
122
|
+
selection(): Selection;
|
|
123
|
+
element(): HTMLInputElement | null;
|
|
124
|
+
focus(e: any): void;
|
|
125
|
+
handleFocus(e: FocusEvent): void;
|
|
126
|
+
handleBlur(e: FocusEvent): void;
|
|
127
|
+
intl(): IntlService;
|
|
128
|
+
setValidity(): void;
|
|
129
|
+
spinnersMouseDown(event: any): void;
|
|
130
|
+
elementChange(event: any): void;
|
|
131
|
+
elementClick(_: any): void;
|
|
132
|
+
wheel(event: any): void;
|
|
133
|
+
increasePart(event: any): void;
|
|
134
|
+
decreasePart(event: any): void;
|
|
135
|
+
elementKeyDown(event: any): void;
|
|
136
|
+
setSelection(selection: Selection): void;
|
|
137
|
+
triggerChange(event: any, oldValue: Date | null): void;
|
|
138
|
+
selectionBySymbol(symbol: string): Selection;
|
|
139
|
+
selectionByIndex(index: number): Selection;
|
|
140
|
+
switchDateSegment(offset: number): void;
|
|
141
|
+
modifyDateSegmentValue(offset: number, event: any): void;
|
|
142
|
+
validity(): FormComponentValidity;
|
|
143
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
144
|
+
change: (event: DateInputChangeEvent) => true;
|
|
145
|
+
changemodel: (value: Date | null) => true;
|
|
146
|
+
'update:modelValue': (value: Date | null) => true;
|
|
147
|
+
focus: (event: DateInputFocusEvent) => true;
|
|
148
|
+
blur: (event: DateInputBlurEvent) => true;
|
|
149
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
150
|
+
modelValue: PropType<Date>;
|
|
151
|
+
value: PropType<Date>;
|
|
152
|
+
defaultValue: PropType<Date>;
|
|
153
|
+
format: {
|
|
154
|
+
type: PropType<string | import('@progress/kendo-vue-intl').DateFormatOptions>;
|
|
155
|
+
default: () => string | object;
|
|
156
|
+
};
|
|
157
|
+
formatPlaceholder: {
|
|
158
|
+
type: PropType<DateInputFormatPlaceholder>;
|
|
159
|
+
default: () => DateInputFormatPlaceholder;
|
|
160
|
+
};
|
|
161
|
+
rounded: {
|
|
162
|
+
type: PropType<string>;
|
|
163
|
+
validator: (value: string) => boolean;
|
|
164
|
+
};
|
|
165
|
+
fillMode: {
|
|
166
|
+
type: PropType<string>;
|
|
167
|
+
validator: (value: string) => boolean;
|
|
168
|
+
};
|
|
169
|
+
size: {
|
|
170
|
+
type: PropType<"small" | "medium" | "large">;
|
|
171
|
+
validator: (value: string) => boolean;
|
|
172
|
+
};
|
|
173
|
+
tabIndex: PropType<number>;
|
|
174
|
+
title: PropType<string>;
|
|
175
|
+
steps: PropType<import('./models/incremental-steps').DateInputIncrementalSteps>;
|
|
176
|
+
placeholder: PropType<string>;
|
|
177
|
+
max: {
|
|
178
|
+
type: PropType<Date>;
|
|
179
|
+
default: () => Date;
|
|
180
|
+
};
|
|
181
|
+
min: {
|
|
182
|
+
type: PropType<Date>;
|
|
183
|
+
default: () => Date;
|
|
184
|
+
};
|
|
185
|
+
maxTime: {
|
|
186
|
+
type: PropType<Date>;
|
|
187
|
+
default: () => Date;
|
|
188
|
+
};
|
|
189
|
+
minTime: {
|
|
190
|
+
type: PropType<Date>;
|
|
191
|
+
default: () => Date;
|
|
192
|
+
};
|
|
193
|
+
disabled: {
|
|
194
|
+
type: PropType<boolean>;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
spinners: {
|
|
198
|
+
type: PropType<boolean>;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
name: PropType<string>;
|
|
202
|
+
dir: PropType<string>;
|
|
203
|
+
label: PropType<string>;
|
|
204
|
+
id: PropType<string>;
|
|
205
|
+
validationMessage: {
|
|
206
|
+
type: PropType<string>;
|
|
207
|
+
default: string;
|
|
208
|
+
};
|
|
209
|
+
required: {
|
|
210
|
+
type: PropType<boolean>;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
validityStyles: {
|
|
214
|
+
type: PropType<boolean>;
|
|
215
|
+
default: boolean;
|
|
216
|
+
};
|
|
217
|
+
validate: PropType<boolean>;
|
|
218
|
+
valid: {
|
|
219
|
+
type: PropType<boolean>;
|
|
220
|
+
default: any;
|
|
221
|
+
};
|
|
222
|
+
ariaRole: {
|
|
223
|
+
type: PropType<string>;
|
|
224
|
+
default: string;
|
|
225
|
+
};
|
|
226
|
+
ariaControls: PropType<string>;
|
|
227
|
+
ariaLabel: PropType<string>;
|
|
228
|
+
ariaExpanded: {
|
|
229
|
+
type: PropType<boolean>;
|
|
230
|
+
default: any;
|
|
231
|
+
};
|
|
232
|
+
ariaHasPopup: {
|
|
233
|
+
type: PropType<String>;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
inputAttributes: PropType<Object>;
|
|
237
|
+
}>> & Readonly<{
|
|
238
|
+
onBlur?: (event: DateInputBlurEvent) => any;
|
|
239
|
+
onChange?: (event: DateInputChangeEvent) => any;
|
|
240
|
+
onFocus?: (event: DateInputFocusEvent) => any;
|
|
241
|
+
onChangemodel?: (value: Date) => any;
|
|
242
|
+
"onUpdate:modelValue"?: (value: Date) => any;
|
|
243
|
+
}>, {
|
|
244
|
+
required: boolean;
|
|
245
|
+
disabled: boolean;
|
|
246
|
+
format: string | object;
|
|
247
|
+
max: Date;
|
|
248
|
+
min: Date;
|
|
249
|
+
validationMessage: string;
|
|
250
|
+
maxTime: Date;
|
|
251
|
+
minTime: Date;
|
|
252
|
+
spinners: boolean;
|
|
253
|
+
validityStyles: boolean;
|
|
254
|
+
valid: boolean;
|
|
255
|
+
ariaRole: string;
|
|
256
|
+
ariaExpanded: boolean;
|
|
257
|
+
ariaHasPopup: String;
|
|
258
|
+
formatPlaceholder: DateInputFormatPlaceholder;
|
|
259
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
260
|
+
export { DateInput };
|
package/dateinput/DateInput.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { defineComponent as T, createVNode as o, mergeProps as _, ref as O, inje
|
|
|
9
9
|
import { isEqual as B, cloneDate as u } from "@progress/kendo-date-math";
|
|
10
10
|
import { provideLocalizationService as E, provideIntlService as A } from "@progress/kendo-vue-intl";
|
|
11
11
|
import { KendoDate as z } from "./models/kendo-date.mjs";
|
|
12
|
-
import { getDefaultSlots as L,
|
|
12
|
+
import { getDefaultSlots as L, noop as j, setRef as R, getRef as N, canUseDOM as c, kendoThemeMaps as v, validatePackage as K, guid as q } from "@progress/kendo-vue-common";
|
|
13
13
|
import { Button as D } from "@progress/kendo-vue-buttons";
|
|
14
14
|
import { packageMetadata as H } from "../package-metadata.mjs";
|
|
15
15
|
import { isInRange as U, approximateStringMatching as X, defaultFormatPlaceholder as Y, defaultFormat as G } from "./utils.mjs";
|
|
@@ -426,7 +426,7 @@ const se = "Please enter a valid value!", De = /* @__PURE__ */ T({
|
|
|
426
426
|
onClick: this.elementClick,
|
|
427
427
|
onInput: this.elementChange,
|
|
428
428
|
onKeydown: this.elementKeyDown,
|
|
429
|
-
onChange:
|
|
429
|
+
onChange: j,
|
|
430
430
|
onFocusin: this.handleFocus,
|
|
431
431
|
onFocusout: this.handleBlur,
|
|
432
432
|
value: $,
|
|
@@ -436,7 +436,7 @@ const se = "Please enter a valid value!", De = /* @__PURE__ */ T({
|
|
|
436
436
|
"aria-haspopup": F,
|
|
437
437
|
"aria-controls": I,
|
|
438
438
|
"aria-disabled": this.$props.disabled,
|
|
439
|
-
ref:
|
|
439
|
+
ref: R(this, "input")
|
|
440
440
|
}, M), null), e, this.$props.spinners && o("span", {
|
|
441
441
|
class: "k-input-spinner k-spin-button",
|
|
442
442
|
onMousedown: this.spinnersMouseDown
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onBlur` event of the DateInput.
|
|
10
|
+
*/
|
|
11
|
+
export interface DateInputBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native browser blur event.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface DateInputComputed {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
computedValue: any;
|
|
14
|
+
wrapperClassNames: object;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { KendoDate } from '../models/main';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface DateInputData {
|
|
13
|
+
kendoDate: KendoDate;
|
|
14
|
+
currentFormat: string;
|
|
15
|
+
valueDuringOnChange: Date | null | undefined;
|
|
16
|
+
lastSelectedSymbol: string;
|
|
17
|
+
isFocused: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `change` event of the DateInput.
|
|
10
|
+
* The generic argument sets the target type of the event. Defaults to `DateInput`.
|
|
11
|
+
*/
|
|
12
|
+
export interface DateInputChangeEvent {
|
|
13
|
+
event?: any;
|
|
14
|
+
value: Date | null;
|
|
15
|
+
component: any;
|
|
16
|
+
target: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onFocus` event of the DateInput.
|
|
10
|
+
*/
|
|
11
|
+
export interface DateInputFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native browser focus event.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService } from '@progress/kendo-vue-intl';
|
|
9
|
+
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
10
|
+
import { Selection } from '../models/main';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface DateInputMethods {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
handleFocus?: (_: any) => void;
|
|
17
|
+
handleBlur?: (_: any) => void;
|
|
18
|
+
element: () => HTMLInputElement | null;
|
|
19
|
+
focus: () => void;
|
|
20
|
+
intl: () => IntlService;
|
|
21
|
+
setValidity: () => void;
|
|
22
|
+
spinnersMouseDown: (event: any) => void;
|
|
23
|
+
elementChange: (event: any) => void;
|
|
24
|
+
elementClick: (event: any) => void;
|
|
25
|
+
wheel: (event: any) => void;
|
|
26
|
+
increasePart: (event: any) => void;
|
|
27
|
+
decreasePart: (event: any) => void;
|
|
28
|
+
elementKeyDown: (event: any) => void;
|
|
29
|
+
setSelection: (selection: Selection) => void;
|
|
30
|
+
triggerChange: (event: any, oldValue: Date | null) => void;
|
|
31
|
+
selection: () => Selection;
|
|
32
|
+
selectionBySymbol: (symbol: string) => Selection;
|
|
33
|
+
selectionByIndex: (index: number) => Selection;
|
|
34
|
+
switchDateSegment: (offset: number) => void;
|
|
35
|
+
modifyDateSegmentValue: (offset: number, event: any) => void;
|
|
36
|
+
validity: () => FormComponentValidity;
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
9
|
+
import { DateInputSettings } from '../models/main';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the [Kendo UI for Vue DateInput component]({% slug overview_dateinput %}). The generic argument is passed to the `change` property and is used as a target in the [`DateInputChangeEvent`]({% slug api_dateinputs_dateinputchangeevent %}) interface.
|
|
12
|
+
*/
|
|
13
|
+
export interface DateInputProps extends FormComponentProps, DateInputSettings {
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the value of the placeholder.
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
modelValue?: Date | null;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the value of the DateInput.
|
|
24
|
+
*/
|
|
25
|
+
value?: Date | null;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the validate of the DateInput.
|
|
28
|
+
*/
|
|
29
|
+
validate?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the default value of the DateInput. If `value` is not set, this value will correspond to the initial value.
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* Determines the event handler that will be fired when the user edits the value ([see example]({% slug dateranges_dateinput %}).
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (event: any) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface DateInputState {
|
|
12
|
+
_element: any;
|
|
13
|
+
_inputId: string;
|
|
14
|
+
_emptyText: string;
|
|
15
|
+
inputRef: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DateInputFormatPlaceholder } from './format-placeholder';
|
|
9
|
+
import { DateInputIncrementalSteps } from './incremental-steps';
|
|
10
|
+
import { DateFormatOptions } from '@progress/kendo-vue-intl';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface DateInputSettings {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the `date` format which is used for formatting the value ([see example]({% slug formats_dateinput %}). If not set, the default format will be used.
|
|
17
|
+
*/
|
|
18
|
+
format?: string | DateFormatOptions;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the descriptions of the format sections in the input field ([more information and example]({% slug placeholders_dateinput %}).
|
|
21
|
+
*/
|
|
22
|
+
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the width of the DateInput.
|
|
25
|
+
*/
|
|
26
|
+
width?: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* Configures the `size` of the DateInput.
|
|
29
|
+
*
|
|
30
|
+
* The available options are:
|
|
31
|
+
* - small
|
|
32
|
+
* - medium
|
|
33
|
+
* - large
|
|
34
|
+
* - null—Does not set a size `class`.
|
|
35
|
+
*
|
|
36
|
+
* @default `medium`
|
|
37
|
+
*/
|
|
38
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
39
|
+
/**
|
|
40
|
+
* Configures the `roundness` of the DateInput.
|
|
41
|
+
*
|
|
42
|
+
* The available options are:
|
|
43
|
+
* - small
|
|
44
|
+
* - medium
|
|
45
|
+
* - large
|
|
46
|
+
* - circle
|
|
47
|
+
* - full
|
|
48
|
+
* - null—Does not set a rounded `class`.
|
|
49
|
+
*
|
|
50
|
+
* @default `medium`
|
|
51
|
+
*/
|
|
52
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
53
|
+
/**
|
|
54
|
+
* Configures the `fillMode` of the DateInput.
|
|
55
|
+
*
|
|
56
|
+
* The available options are:
|
|
57
|
+
* - solid
|
|
58
|
+
* - outline
|
|
59
|
+
* - flat
|
|
60
|
+
* - link
|
|
61
|
+
* - null—Does not set a fillMode `class`.
|
|
62
|
+
*
|
|
63
|
+
* @default `solid`
|
|
64
|
+
*/
|
|
65
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the `tabIndex` property of the DateInput.
|
|
68
|
+
*/
|
|
69
|
+
tabIndex?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the title of the `input` element of the DateInput.
|
|
72
|
+
*/
|
|
73
|
+
title?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the aria-label of the DateInput.
|
|
76
|
+
*/
|
|
77
|
+
ariaLabel?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the aria role of the DateInput.
|
|
80
|
+
*/
|
|
81
|
+
ariaRole?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the aria-controls of the DateInput.
|
|
84
|
+
*/
|
|
85
|
+
ariaControls?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the aria-haspopup of the DateInput.
|
|
88
|
+
*/
|
|
89
|
+
ariaHasPopup?: String;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the aria-expanded of the DateInput.
|
|
92
|
+
*/
|
|
93
|
+
ariaExpanded?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies the incremental steps of the DateInput ([see example]({% slug incrementalsteps_dateinput %}).
|
|
96
|
+
*
|
|
97
|
+
* The available options are:
|
|
98
|
+
* - `year: Number`—Controls the incremental step of the year value.
|
|
99
|
+
* - `month: Number`—Controls the incremental step of the month value.
|
|
100
|
+
* - `day: Number`—Controls the incremental step of the day value.
|
|
101
|
+
* - `hour: Number`—Controls the incremental step of the hour value.
|
|
102
|
+
* - `minute: Number`—Controls the incremental step of the minute value.
|
|
103
|
+
* - `second: Number`—Controls the incremental step of the second value.
|
|
104
|
+
*/
|
|
105
|
+
steps?: DateInputIncrementalSteps;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the smallest date that is valid ([see example]({% slug dateranges_dateinput %}).
|
|
108
|
+
*/
|
|
109
|
+
min?: Date;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the greatest date that is valid ([see example]({% slug dateranges_dateinput %}).
|
|
112
|
+
*/
|
|
113
|
+
max?: Date;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies the smallest time that is valid ([see example]({% slug dateranges_dateinput %}#toc-limiting-the-time-range).
|
|
116
|
+
*/
|
|
117
|
+
minTime?: Date;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the greatest time that is valid ([see example]({% slug dateranges_dateinput %}#toc-limiting-the-time-range).
|
|
120
|
+
*/
|
|
121
|
+
maxTime?: Date;
|
|
122
|
+
/**
|
|
123
|
+
* Determines whether the DateInput is disabled ([see example]({% slug disabled_dateinput %})).
|
|
124
|
+
*/
|
|
125
|
+
disabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies whether the **Up** and **Down** spin buttons will be rendered ([see example]({% slug spinbuttons_dateinput %})).
|
|
128
|
+
*/
|
|
129
|
+
spinners?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Specifies the name property of the input DOM element.
|
|
132
|
+
*/
|
|
133
|
+
name?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Represents the `dir` HTML attribute.
|
|
136
|
+
*/
|
|
137
|
+
dir?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Renders a floating label for the DateInput.
|
|
140
|
+
*/
|
|
141
|
+
label?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Sets the `id` of the `input` DOM element.
|
|
144
|
+
*/
|
|
145
|
+
id?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
148
|
+
* For example these elements could contain error or hint message.
|
|
149
|
+
*/
|
|
150
|
+
ariaDescribedBy?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Identifies the element(s) which will label the component.
|
|
153
|
+
*/
|
|
154
|
+
ariaLabelledBy?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
157
|
+
* Attributes which are essential for certain component functionalities cannot be changed.
|
|
158
|
+
*/
|
|
159
|
+
inputAttributes?: Object;
|
|
160
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The interface which defines a custom-format placeholder structure in the DateInput.
|
|
10
|
+
*/
|
|
11
|
+
export interface DateInputCustomFormatPlaceholder {
|
|
12
|
+
/**
|
|
13
|
+
* Defines the description for the `year` format section.
|
|
14
|
+
*/
|
|
15
|
+
year?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the description for the `month` format section.
|
|
18
|
+
*/
|
|
19
|
+
month?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the description for the `day` format section.
|
|
22
|
+
*/
|
|
23
|
+
day?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the description for the `hour` format section.
|
|
26
|
+
*/
|
|
27
|
+
hour?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the description for the `minute` format section.
|
|
30
|
+
*/
|
|
31
|
+
minute?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the description for the `second` format section.
|
|
34
|
+
*/
|
|
35
|
+
second?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The union type which defines all possible format options of the DateInput placeholder.
|
|
39
|
+
*
|
|
40
|
+
* The available options are:
|
|
41
|
+
* * `'wide'`—Displays the full description of the format section. For example, turns `MM` into `month`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
42
|
+
* * `'narrow'`—Displays the narrow description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
43
|
+
* * `'short'`—Displays the short description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
44
|
+
* * `'formatPattern'`—Directly displays the format section. For example, turns `MM` into `MM`.
|
|
45
|
+
*/
|
|
46
|
+
export type DateInputFormatPlaceholder = 'wide' | 'narrow' | 'short' | 'formatPattern' | DateInputCustomFormatPlaceholder;
|