@progress/kendo-vue-dateinputs 11.0.0 → 11.0.1-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calendar/components/Calendar.d.ts +13 -1
- package/calendar/components/Calendar.mjs +3 -0
- package/calendar/components/CalendarCell.d.ts +16 -2
- package/calendar/components/CalendarCell.mjs +1 -1
- package/calendar/components/CalendarHeaderTitle.d.ts +19 -2
- package/calendar/components/CalendarHeaderTitle.mjs +1 -1
- package/calendar/components/CalendarWeekCell.d.ts +1 -1
- package/calendar/components/CalendarWeekCell.mjs +1 -1
- package/calendar/components/interfaces/CalendarProps.d.ts +15 -9
- package/calendar/models/CalendarSettings.d.ts +34 -19
- package/calendar/models/CellContext.d.ts +45 -0
- package/common/PickerWrap.d.ts +1 -1
- package/dateinput/DateInput.d.ts +10 -1
- package/dateinput/DateInput.mjs +3 -0
- package/dateinput/interfaces/DateInputProps.d.ts +6 -6
- package/dateinput/models/DateInputSettings.d.ts +58 -24
- package/datepicker/DatePicker.d.ts +11 -1
- package/datepicker/DatePicker.mjs +3 -0
- package/datepicker/interfaces/DatePickerProps.d.ts +15 -9
- package/datepicker/models/DatePickerSettings.d.ts +50 -32
- package/daterangepicker/DateRangePicker.d.ts +39 -9
- package/daterangepicker/DateRangePicker.mjs +3 -0
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +1 -1
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +1 -1
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +1 -1
- package/daterangepicker/models/DateRangePickerSettings.d.ts +53 -32
- package/datetimepicker/DateTimePicker.d.ts +37 -8
- package/datetimepicker/DateTimePicker.mjs +3 -0
- package/datetimepicker/models/DateTimePickerSettings.d.ts +82 -44
- package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/timepicker/TimePicker.d.ts +36 -7
- package/timepicker/TimePicker.mjs +3 -0
- package/timepicker/models/TimePickerSettings.d.ts +69 -36
|
@@ -12,7 +12,16 @@ import { NavigationEventArguments, CalendarChangeEvent } from './interfaces/Cale
|
|
|
12
12
|
import { ViewWeekCellEventArguments, ViewWeekNameEventArguments } from './View';
|
|
13
13
|
import { PropType } from 'vue';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Represents the [KendoVue Calendar component](slug:overview_calendar).
|
|
16
|
+
* Use the Calendar to show dates in a month, year, decade, or century view and to let the user select a date.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```vue
|
|
20
|
+
* <Calendar :value="selectedDate" :min="minDate" :max="maxDate" :week-number="true" />
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Supported children components are: {@link CalendarCell}, {@link CalendarHeaderTitle}.
|
|
16
25
|
*/
|
|
17
26
|
declare const Calendar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
18
27
|
activeRangeEnd: {
|
|
@@ -99,6 +108,9 @@ declare const Calendar: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
99
108
|
}, {
|
|
100
109
|
element(): any;
|
|
101
110
|
computedValue(): Date | null;
|
|
111
|
+
/**
|
|
112
|
+
* Moves the focus to the Calendar.
|
|
113
|
+
*/
|
|
102
114
|
focus(): void;
|
|
103
115
|
handleBlur(): void;
|
|
104
116
|
handleFocus(): void;
|
|
@@ -159,6 +159,9 @@ const ue = /* @__PURE__ */ S({
|
|
|
159
159
|
computedValue() {
|
|
160
160
|
return this.$data.valueDuringOnChange !== void 0 ? this.$data.valueDuringOnChange : this.$props.value !== void 0 ? this.$props.value : this.$props.modelValue !== void 0 ? this.$props.modelValue : this.$data.currentValue;
|
|
161
161
|
},
|
|
162
|
+
/**
|
|
163
|
+
* Moves the focus to the Calendar.
|
|
164
|
+
*/
|
|
162
165
|
focus() {
|
|
163
166
|
this.calendarViewList && this.calendarViewList.$el.firstElementChild.focus();
|
|
164
167
|
},
|
|
@@ -8,14 +8,28 @@
|
|
|
8
8
|
import { PropType } from 'vue';
|
|
9
9
|
import { CellContext } from '../models/main';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the props that the custom cell of the [Calendar](slug:api_dateinputs_calendarprops#toc-cell) receives.
|
|
12
12
|
*/
|
|
13
13
|
export interface CalendarCellProps extends CellContext {
|
|
14
|
+
/**
|
|
15
|
+
* When `true`, the cell is disabled.
|
|
16
|
+
*/
|
|
14
17
|
isDisabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The current view of the Calendar. The value is a `CalendarViewEnum` member.
|
|
20
|
+
*/
|
|
15
21
|
view?: number;
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
24
|
+
* Represents the [KendoVue CalendarCell component](slug:custom_rendering_calendar#toc-cells-inside-the-view).
|
|
25
|
+
* Use the CalendarCell inside a custom `cell` template of the Calendar to keep the default cell markup and styles.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```vue
|
|
29
|
+
* <CalendarCell :value="cellProps.value" :is-selected="cellProps.isSelected" :is-today="cellProps.isToday" @click="handleClick">
|
|
30
|
+
* {{ cellProps.formattedValue }}
|
|
31
|
+
* </CalendarCell>
|
|
32
|
+
* ```
|
|
19
33
|
*/
|
|
20
34
|
declare const CalendarCell: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
35
|
isDisabled: PropType<boolean>;
|
|
@@ -45,7 +45,7 @@ const M = /* @__PURE__ */ k({
|
|
|
45
45
|
// tslint:disable:max-line-length
|
|
46
46
|
/**
|
|
47
47
|
* @return
|
|
48
|
-
* Returns a `<td />` element with a `<span class="k-link" />` inside
|
|
48
|
+
* Returns a `<td />` element with a `<span class="k-link" />` inside that applies the styles. The text inside is the [`formattedValue`](slug:api_dateinputs_calendarcellprops#toc-formattedvalue) of the `cell`.
|
|
49
49
|
*/
|
|
50
50
|
render() {
|
|
51
51
|
const e = m(this), {
|
|
@@ -7,15 +7,32 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PropType } from 'vue';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Represents the props that the custom header title of the [Calendar](slug:api_dateinputs_calendarprops#toc-headertitle) receives.
|
|
11
11
|
*/
|
|
12
12
|
export interface CalendarHeaderTitleProps {
|
|
13
|
+
/**
|
|
14
|
+
* The text of the header title.
|
|
15
|
+
*/
|
|
13
16
|
value?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The `id` of the header title element.
|
|
19
|
+
*/
|
|
14
20
|
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The current view of the Calendar. The value is a `CalendarViewEnum` member.
|
|
23
|
+
*/
|
|
15
24
|
view?: number;
|
|
16
25
|
}
|
|
17
26
|
/**
|
|
18
|
-
*
|
|
27
|
+
* Represents the [KendoVue CalendarHeaderTitle component](slug:custom_rendering_calendar#toc-titles-of-current-views).
|
|
28
|
+
* Use the CalendarHeaderTitle inside a custom `headerTitle` template of the Calendar to keep the default title button.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```vue
|
|
32
|
+
* <CalendarHeaderTitle :id="id" :value="value" :view="view" @click="handleClick">
|
|
33
|
+
* {{ value }}
|
|
34
|
+
* </CalendarHeaderTitle>
|
|
35
|
+
* ```
|
|
19
36
|
*/
|
|
20
37
|
declare const CalendarHeaderTitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
38
|
id: PropType<string>;
|
|
@@ -28,7 +28,7 @@ const m = /* @__PURE__ */ e({
|
|
|
28
28
|
},
|
|
29
29
|
/**
|
|
30
30
|
* @return
|
|
31
|
-
* Returns a `<button />` element with the [`value`](
|
|
31
|
+
* Returns a `<button />` element with the [`value`](slug:api_dateinputs_calendarheadertitleprops#toc-value) of the title as a child.
|
|
32
32
|
*/
|
|
33
33
|
render() {
|
|
34
34
|
const t = r(this);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PropType } from 'vue';
|
|
9
9
|
/**
|
|
10
|
-
* The props which will be received by the custom week cell of the [Calendar](
|
|
10
|
+
* The props which will be received by the custom week cell of the [Calendar](slug:api_dateinputs_calendarprops#toc-weekcell).
|
|
11
11
|
*/
|
|
12
12
|
export interface CalendarWeekCellProps {
|
|
13
13
|
id?: string;
|
|
@@ -18,7 +18,7 @@ const n = /* @__PURE__ */ i({
|
|
|
18
18
|
},
|
|
19
19
|
/**
|
|
20
20
|
* @return
|
|
21
|
-
* Returns a `<td />` element with the [`value`](
|
|
21
|
+
* Returns a `<td />` element with the [`value`](slug:api_dateinputs_calendarweekcellprops#toc-value) as a child.
|
|
22
22
|
*/
|
|
23
23
|
render() {
|
|
24
24
|
const e = r(this);
|
|
@@ -9,17 +9,19 @@ import { CalendarSettings, SelectionRangeEnd, SelectionRange, CalendarMode } fro
|
|
|
9
9
|
import { CalendarChangeEvent, CalendarWeekCellClickEvent } from '../../..';
|
|
10
10
|
import { CalendarWeekNameClickEvent } from './CalendarEventArguments';
|
|
11
11
|
/**
|
|
12
|
-
* Represents the props of the [Kendo UI for Vue Calendar component](
|
|
12
|
+
* Represents the props of the [Kendo UI for Vue Calendar component](slug:overview_calendar). The `change` event passes a [`CalendarChangeEvent`](slug:api_dateinputs_calendarchangeevent) object to its handler.
|
|
13
13
|
*/
|
|
14
14
|
export interface CalendarProps extends CalendarSettings {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Sets which end of the selection range the Calendar marks as active.
|
|
17
17
|
*
|
|
18
|
-
* > If
|
|
18
|
+
* > If you do not set a selection range, the Calendar ignores this value.
|
|
19
19
|
*/
|
|
20
20
|
activeRangeEnd?: SelectionRangeEnd;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* When you set it to `true`, the Calendar skips the check that the `from` value comes before the `to` value.
|
|
23
|
+
*
|
|
24
|
+
* @default false
|
|
23
25
|
*/
|
|
24
26
|
allowReverse?: boolean;
|
|
25
27
|
/**
|
|
@@ -27,19 +29,21 @@ export interface CalendarProps extends CalendarSettings {
|
|
|
27
29
|
*/
|
|
28
30
|
modelValue?: Date | Date[] | SelectionRange | null;
|
|
29
31
|
/**
|
|
30
|
-
* Sets the
|
|
32
|
+
* Sets the initial value of the Calendar when you do not set `value`.
|
|
33
|
+
*
|
|
34
|
+
* @default null
|
|
31
35
|
*/
|
|
32
36
|
defaultValue?: Date | Date[] | SelectionRange | null;
|
|
33
37
|
/**
|
|
34
|
-
*
|
|
38
|
+
* Fires after the value of the Calendar changes. The event name is `change`.
|
|
35
39
|
*/
|
|
36
40
|
onChange?: (event: CalendarChangeEvent) => void;
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* Fires when the user clicks a week number cell. The event name is `weekcellclick`.
|
|
39
43
|
*/
|
|
40
44
|
onWeekcellclick?: (event: CalendarWeekCellClickEvent) => void;
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
46
|
+
* Fires when the user clicks a week name cell. The event name is `weeknameclick`.
|
|
43
47
|
*/
|
|
44
48
|
onWeeknameclick?: (event: CalendarWeekNameClickEvent) => void;
|
|
45
49
|
/**
|
|
@@ -47,7 +51,9 @@ export interface CalendarProps extends CalendarSettings {
|
|
|
47
51
|
*/
|
|
48
52
|
value?: Date | Date[] | SelectionRange | null;
|
|
49
53
|
/**
|
|
50
|
-
* Sets the
|
|
54
|
+
* Sets the number of views that the Calendar shows side by side.
|
|
55
|
+
*
|
|
56
|
+
* @default 1
|
|
51
57
|
*/
|
|
52
58
|
views: number;
|
|
53
59
|
/**
|
|
@@ -10,24 +10,30 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export interface CalendarSettings {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the lowest view to which the user can navigate.
|
|
14
|
+
*
|
|
15
|
+
* @default 'month'
|
|
14
16
|
*/
|
|
15
17
|
bottomView?: string;
|
|
16
18
|
/**
|
|
17
|
-
* Sets
|
|
19
|
+
* Sets a CSS class on the Calendar.
|
|
18
20
|
*/
|
|
19
21
|
className?: string;
|
|
20
22
|
/**
|
|
21
|
-
* Sets the
|
|
22
|
-
* If not set, the Calendar
|
|
23
|
+
* Sets the view that the Calendar shows first.
|
|
24
|
+
* If you do not set it, the Calendar shows the month view.
|
|
25
|
+
*
|
|
26
|
+
* @default 'month'
|
|
23
27
|
*/
|
|
24
28
|
defaultActiveView?: string;
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* When you set it to `true`, the Calendar is disabled.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
27
33
|
*/
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/**
|
|
30
|
-
* Sets the
|
|
36
|
+
* Sets the date that the Calendar focuses first.
|
|
31
37
|
*/
|
|
32
38
|
focusedDate?: Date;
|
|
33
39
|
/**
|
|
@@ -35,50 +41,59 @@ export interface CalendarSettings {
|
|
|
35
41
|
*/
|
|
36
42
|
id?: string;
|
|
37
43
|
/**
|
|
38
|
-
* Sets the
|
|
44
|
+
* Sets the latest date that the user can select in the Calendar. Defaults to `2099-12-31`.
|
|
39
45
|
*/
|
|
40
46
|
max?: Date;
|
|
41
47
|
/**
|
|
42
|
-
* Sets the
|
|
48
|
+
* Sets the earliest date that the user can select in the Calendar. Defaults to `1900-1-1`.
|
|
43
49
|
*/
|
|
44
50
|
min?: Date;
|
|
45
51
|
/**
|
|
46
|
-
*
|
|
52
|
+
* When you set it to `true`, the Calendar shows the navigation sidebar.
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
47
55
|
*/
|
|
48
56
|
navigation?: boolean;
|
|
49
57
|
/**
|
|
50
|
-
* Fires each time the Calendar is
|
|
58
|
+
* Fires each time the Calendar loses focus. The event name is `blur`.
|
|
51
59
|
*/
|
|
52
60
|
onBlur?: (event: any) => void;
|
|
53
61
|
/**
|
|
54
|
-
* Fires each time the Calendar is
|
|
62
|
+
* Fires each time the Calendar receives focus. The event name is `focus`.
|
|
55
63
|
*/
|
|
56
64
|
onFocus?: (event: any) => void;
|
|
57
65
|
/**
|
|
58
66
|
* Sets the `tabIndex` property of the Calendar.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* This property is related to accessibility.
|
|
59
70
|
*/
|
|
60
71
|
tabIndex?: number;
|
|
61
72
|
/**
|
|
62
|
-
*
|
|
73
|
+
* Sets the highest view to which the user can navigate.
|
|
74
|
+
*
|
|
75
|
+
* @default 'century'
|
|
63
76
|
*/
|
|
64
77
|
topView?: string;
|
|
65
78
|
/**
|
|
66
|
-
*
|
|
79
|
+
* When you set it to `true`, the Calendar shows a week number column.
|
|
67
80
|
*/
|
|
68
81
|
weekNumber?: boolean;
|
|
69
82
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
83
|
+
* Sets a custom template for the Calendar cells.
|
|
84
|
+
* The template receives the `CalendarCellProps` of each cell
|
|
85
|
+
* ([see example](slug:custom_rendering_calendar#toc-cells-inside-the-view)).
|
|
72
86
|
*/
|
|
73
87
|
cell?: any;
|
|
74
88
|
/**
|
|
75
|
-
*
|
|
76
|
-
* ([see example](
|
|
89
|
+
* Sets a custom template for the week-column cells of the Calendar
|
|
90
|
+
* ([see example](slug:custom_rendering_calendar#toc-cells-inside-the-week-column)).
|
|
77
91
|
*/
|
|
78
92
|
weekCell?: any;
|
|
79
93
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
94
|
+
* Sets a custom template for the header title of the Calendar.
|
|
95
|
+
* The template receives the `CalendarHeaderTitleProps` of the title
|
|
96
|
+
* ([see example](slug:custom_rendering_calendar#toc-titles-of-current-views)).
|
|
82
97
|
*/
|
|
83
98
|
headerTitle?: any;
|
|
84
99
|
}
|
|
@@ -9,18 +9,63 @@
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export interface CellContext {
|
|
12
|
+
/**
|
|
13
|
+
* The formatted text of the cell.
|
|
14
|
+
*/
|
|
12
15
|
formattedValue: string;
|
|
16
|
+
/**
|
|
17
|
+
* The `id` of the cell. The Calendar uses it as the `aria-activedescendant` value when the cell is focused.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* This property is related to accessibility.
|
|
21
|
+
*/
|
|
13
22
|
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* When `true`, the cell date is a Saturday or a Sunday.
|
|
25
|
+
*/
|
|
14
26
|
isWeekend: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When `true`, the cell is focused.
|
|
29
|
+
*/
|
|
15
30
|
isFocused: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* When `true`, the cell is selected.
|
|
33
|
+
*/
|
|
16
34
|
isSelected: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* When `true`, the cell is inside the selected range.
|
|
37
|
+
*/
|
|
17
38
|
isInRange: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* When `true`, the cell is the start of the selected range.
|
|
41
|
+
*/
|
|
18
42
|
isRangeStart: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* When `true`, the cell is the end of the selected range.
|
|
45
|
+
*/
|
|
19
46
|
isRangeEnd: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* When `true`, the cell is between the start and the end of the selected range.
|
|
49
|
+
*/
|
|
20
50
|
isRangeMid: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* When `true`, the cell is the last date of the view and the selected range continues into the next view.
|
|
53
|
+
*/
|
|
21
54
|
isRangeSplitEnd?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* When `true`, the cell is the first date of the view and the selected range continues from the previous view.
|
|
57
|
+
*/
|
|
22
58
|
isRangeSplitStart?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* When `true`, the cell date is today.
|
|
61
|
+
*/
|
|
23
62
|
isToday: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The `title` attribute of the cell.
|
|
65
|
+
*/
|
|
24
66
|
title?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The date of the cell.
|
|
69
|
+
*/
|
|
25
70
|
value: Date;
|
|
26
71
|
}
|
package/common/PickerWrap.d.ts
CHANGED
package/dateinput/DateInput.d.ts
CHANGED
|
@@ -13,7 +13,13 @@ import { DateInputFocusEvent } from './interfaces/DateInputFocusEvent';
|
|
|
13
13
|
import { DateInputBlurEvent } from './interfaces/DateInputBlurEvent';
|
|
14
14
|
import { PropType } from 'vue';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Represents the [KendoVue DateInput component](slug:overview_dateinput).
|
|
17
|
+
* Use the DateInput to let the user type a date and edit each part of it with the keyboard.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```vue
|
|
21
|
+
* <DateInput :value="orderDate" :format="'MM/dd/yyyy'" :min="minDate" :max="maxDate" @change="handleChange" />
|
|
22
|
+
* ```
|
|
17
23
|
*/
|
|
18
24
|
declare const DateInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
25
|
modelValue: PropType<Date>;
|
|
@@ -122,6 +128,9 @@ declare const DateInput: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
122
128
|
}, {
|
|
123
129
|
selection(): Selection;
|
|
124
130
|
element(): HTMLInputElement | null;
|
|
131
|
+
/**
|
|
132
|
+
* Moves the focus to the input element of the DateInput.
|
|
133
|
+
*/
|
|
125
134
|
focus(e: any): void;
|
|
126
135
|
handleFocus(e: FocusEvent): void;
|
|
127
136
|
handleBlur(e: FocusEvent): void;
|
package/dateinput/DateInput.mjs
CHANGED
|
@@ -209,6 +209,9 @@ const se = "Please enter a valid value!", ve = /* @__PURE__ */ M({
|
|
|
209
209
|
element() {
|
|
210
210
|
return this._element;
|
|
211
211
|
},
|
|
212
|
+
/**
|
|
213
|
+
* Moves the focus to the input element of the DateInput.
|
|
214
|
+
*/
|
|
212
215
|
focus(e) {
|
|
213
216
|
this._element && this._element.focus(e);
|
|
214
217
|
},
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
9
9
|
import { DateInputSettings } from '../models/main';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the props of the [Kendo UI for Vue DateInput component](
|
|
11
|
+
* Represents the props of the [Kendo UI for Vue DateInput component](slug:overview_dateinput). The `change` event passes a [`DateInputChangeEvent`](slug:api_dateinputs_dateinputchangeevent) object to its handler.
|
|
12
12
|
*/
|
|
13
13
|
export interface DateInputProps extends FormComponentProps, DateInputSettings {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the placeholder text of the DateInput.
|
|
16
16
|
*/
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
/**
|
|
@@ -20,19 +20,19 @@ export interface DateInputProps extends FormComponentProps, DateInputSettings {
|
|
|
20
20
|
*/
|
|
21
21
|
modelValue?: Date | null;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Sets the value of the DateInput.
|
|
24
24
|
*/
|
|
25
25
|
value?: Date | null;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Sets whether the DateInput validates its value.
|
|
28
28
|
*/
|
|
29
29
|
validate?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the initial value of the DateInput when you do not set `value`.
|
|
32
32
|
*/
|
|
33
33
|
defaultValue?: Date | null;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Fires when the user edits the value. The event name is `change` ([see example](slug:dateranges_dateinput)).
|
|
36
36
|
*/
|
|
37
37
|
onChange?: (event: any) => void;
|
|
38
38
|
}
|
|
@@ -13,15 +13,15 @@ import { DateFormatOptions } from '@progress/kendo-vue-intl';
|
|
|
13
13
|
*/
|
|
14
14
|
export interface DateInputSettings {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Sets the `date` format of the value ([see example](slug:formats_dateinput)). If you do not set it, the DateInput uses the default format.
|
|
17
17
|
*/
|
|
18
18
|
format?: string | DateFormatOptions;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the descriptions of the format sections in the input field ([more information and example](slug:placeholders_dateinput)).
|
|
21
21
|
*/
|
|
22
22
|
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the width of the DateInput.
|
|
25
25
|
*/
|
|
26
26
|
width?: number | string;
|
|
27
27
|
/**
|
|
@@ -65,34 +65,52 @@ export interface DateInputSettings {
|
|
|
65
65
|
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
66
66
|
/**
|
|
67
67
|
* Sets the `tabIndex` property of the DateInput.
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* This property is related to accessibility.
|
|
68
71
|
*/
|
|
69
72
|
tabIndex?: number;
|
|
70
73
|
/**
|
|
71
|
-
* Sets the title of the `input` element of the DateInput.
|
|
74
|
+
* Sets the `title` of the `input` element of the DateInput.
|
|
72
75
|
*/
|
|
73
76
|
title?: string;
|
|
74
77
|
/**
|
|
75
|
-
* Sets the aria-label of the DateInput.
|
|
78
|
+
* Sets the `aria-label` attribute of the DateInput.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* This property is related to accessibility.
|
|
76
82
|
*/
|
|
77
83
|
ariaLabel?: string;
|
|
78
84
|
/**
|
|
79
|
-
* Sets the
|
|
85
|
+
* Sets the ARIA `role` of the DateInput.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* This property is related to accessibility.
|
|
80
89
|
*/
|
|
81
90
|
ariaRole?: string;
|
|
82
91
|
/**
|
|
83
|
-
* Sets the aria-controls of the DateInput.
|
|
92
|
+
* Sets the `aria-controls` attribute of the DateInput.
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* This property is related to accessibility.
|
|
84
96
|
*/
|
|
85
97
|
ariaControls?: string;
|
|
86
98
|
/**
|
|
87
|
-
* Sets the aria-haspopup of the DateInput.
|
|
99
|
+
* Sets the `aria-haspopup` attribute of the DateInput.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* This property is related to accessibility.
|
|
88
103
|
*/
|
|
89
104
|
ariaHasPopup?: String;
|
|
90
105
|
/**
|
|
91
|
-
* Sets the aria-expanded of the DateInput.
|
|
106
|
+
* Sets the `aria-expanded` attribute of the DateInput.
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* This property is related to accessibility.
|
|
92
110
|
*/
|
|
93
111
|
ariaExpanded?: boolean;
|
|
94
112
|
/**
|
|
95
|
-
*
|
|
113
|
+
* Sets the incremental steps of the DateInput ([see example](slug:incrementalsteps_dateinput)).
|
|
96
114
|
*
|
|
97
115
|
* The available options are:
|
|
98
116
|
* - `year: Number`—Controls the incremental step of the year value.
|
|
@@ -104,57 +122,73 @@ export interface DateInputSettings {
|
|
|
104
122
|
*/
|
|
105
123
|
steps?: DateInputIncrementalSteps;
|
|
106
124
|
/**
|
|
107
|
-
*
|
|
125
|
+
* Sets the earliest valid date ([see example](slug:dateranges_dateinput)).
|
|
108
126
|
*/
|
|
109
127
|
min?: Date;
|
|
110
128
|
/**
|
|
111
|
-
*
|
|
129
|
+
* Sets the latest valid date ([see example](slug:dateranges_dateinput)).
|
|
112
130
|
*/
|
|
113
131
|
max?: Date;
|
|
114
132
|
/**
|
|
115
|
-
*
|
|
133
|
+
* Sets the earliest valid time ([see example](slug:dateranges_dateinput#toc-limiting-the-time-range)).
|
|
116
134
|
*/
|
|
117
135
|
minTime?: Date;
|
|
118
136
|
/**
|
|
119
|
-
*
|
|
137
|
+
* Sets the latest valid time ([see example](slug:dateranges_dateinput#toc-limiting-the-time-range)).
|
|
120
138
|
*/
|
|
121
139
|
maxTime?: Date;
|
|
122
140
|
/**
|
|
123
|
-
*
|
|
141
|
+
* When you set it to `true`, the DateInput is disabled ([see example](slug:disabled_dateinput)).
|
|
142
|
+
*
|
|
143
|
+
* @default false
|
|
124
144
|
*/
|
|
125
145
|
disabled?: boolean;
|
|
126
146
|
/**
|
|
127
|
-
*
|
|
147
|
+
* When you set it to `true`, the DateInput shows the **Up** and **Down** spin buttons ([see example](slug:spinbuttons_dateinput)).
|
|
148
|
+
*
|
|
149
|
+
* @default false
|
|
128
150
|
*/
|
|
129
151
|
spinners?: boolean;
|
|
130
152
|
/**
|
|
131
|
-
*
|
|
153
|
+
* Sets the `name` property of the `input` DOM element.
|
|
132
154
|
*/
|
|
133
155
|
name?: string;
|
|
134
156
|
/**
|
|
135
|
-
*
|
|
157
|
+
* Sets the `dir` HTML attribute.
|
|
136
158
|
*/
|
|
137
159
|
dir?: string;
|
|
138
160
|
/**
|
|
139
161
|
* Renders a floating label for the DateInput.
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
* This property is related to accessibility.
|
|
140
165
|
*/
|
|
141
166
|
label?: string;
|
|
142
167
|
/**
|
|
143
|
-
* Sets the `id` of the `input` DOM element.
|
|
168
|
+
* Sets the `id` of the `input` DOM element. The floating label uses it to point to the input.
|
|
169
|
+
*
|
|
170
|
+
* @remarks
|
|
171
|
+
* This property is related to accessibility.
|
|
144
172
|
*/
|
|
145
173
|
id?: string;
|
|
146
174
|
/**
|
|
147
|
-
*
|
|
148
|
-
* For example these elements
|
|
175
|
+
* Sets the `id` values of the elements that describe the DateInput, similar to the [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby).
|
|
176
|
+
* For example, these elements can contain an error or a hint message.
|
|
177
|
+
*
|
|
178
|
+
* @remarks
|
|
179
|
+
* This property is related to accessibility.
|
|
149
180
|
*/
|
|
150
181
|
ariaDescribedBy?: string;
|
|
151
182
|
/**
|
|
152
|
-
*
|
|
183
|
+
* Sets the `id` values of the elements that label the DateInput.
|
|
184
|
+
*
|
|
185
|
+
* @remarks
|
|
186
|
+
* This property is related to accessibility.
|
|
153
187
|
*/
|
|
154
188
|
ariaLabelledBy?: string;
|
|
155
189
|
/**
|
|
156
|
-
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
157
|
-
*
|
|
190
|
+
* Sets the built-in HTML attributes of the inner focusable `input` element.
|
|
191
|
+
* You cannot change the attributes that the component needs to work.
|
|
158
192
|
*/
|
|
159
193
|
inputAttributes?: Object;
|
|
160
194
|
}
|