@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
|
@@ -13,7 +13,14 @@ import { DatePickerChangeEvent, DatePickerOpenEvent, DatePickerCloseEvent } from
|
|
|
13
13
|
import { DatePickerFocusEvent, DatePickerBlurEvent } from './interfaces/DatePickerFocusBlurEvents';
|
|
14
14
|
import { PropType } from 'vue';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Represents the [KendoVue DatePicker component](slug:overview_datepicker).
|
|
17
|
+
* Use the DatePicker to let the user type a date or select it from a popup Calendar.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```vue
|
|
21
|
+
* <DatePicker :default-value="new Date()" :format="'dd/MM/yyyy'" />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
17
24
|
*/
|
|
18
25
|
declare const DatePicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
26
|
defaultShow: {
|
|
@@ -125,6 +132,9 @@ declare const DatePicker: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
125
132
|
computedValue(): Date | null;
|
|
126
133
|
computedShow(): boolean;
|
|
127
134
|
}, {
|
|
135
|
+
/**
|
|
136
|
+
* Moves the focus to the input element of the DatePicker.
|
|
137
|
+
*/
|
|
128
138
|
focus(): void;
|
|
129
139
|
handleFocus(event: FocusEvent): void;
|
|
130
140
|
handleBlur(event: FocusEvent): void;
|
|
@@ -9,7 +9,7 @@ import { DatePickerChangeEvent } from './DatePickerEventArguments';
|
|
|
9
9
|
import { DatePickerSettings } from '../models/main';
|
|
10
10
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
11
11
|
/**
|
|
12
|
-
* Represents the props of the [Kendo UI for Vue DatePicker component](
|
|
12
|
+
* Represents the props of the [Kendo UI for Vue DatePicker component](slug:overview_datepicker).
|
|
13
13
|
*/
|
|
14
14
|
export interface DatePickerProps extends DatePickerSettings, FormComponentProps {
|
|
15
15
|
/**
|
|
@@ -17,37 +17,43 @@ export interface DatePickerProps extends DatePickerSettings, FormComponentProps
|
|
|
17
17
|
*/
|
|
18
18
|
modelValue?: Date;
|
|
19
19
|
/**
|
|
20
|
-
* Sets the
|
|
20
|
+
* Sets the initial value of the DatePicker when you do not set `value` ([see example](slug:default_value_datepicker)).
|
|
21
21
|
*/
|
|
22
22
|
defaultValue?: Date;
|
|
23
23
|
/**
|
|
24
|
-
* Fires each time the user selects a new value ([see example](
|
|
24
|
+
* Fires each time the user selects a new value. The event name is `change` ([see example](slug:controlled_datepicker#toc-controlling-the-date-value)).
|
|
25
25
|
*/
|
|
26
26
|
onChange?: (event: DatePickerChangeEvent) => void;
|
|
27
27
|
/**
|
|
28
|
-
* Fires when the icon
|
|
28
|
+
* Fires when the user clicks the calendar icon. The event name is `iconclick`.
|
|
29
29
|
*/
|
|
30
30
|
onIconclick?: (event: any) => void;
|
|
31
31
|
/**
|
|
32
32
|
* Renders a floating label for the DatePicker.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* This property is related to accessibility.
|
|
33
36
|
*/
|
|
34
37
|
label?: string;
|
|
35
38
|
/**
|
|
36
|
-
*
|
|
39
|
+
* Sets the placeholder text of the DatePicker.
|
|
37
40
|
*/
|
|
38
41
|
placeholder?: string;
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
43
|
+
* Sets the value of the DatePicker ([see example](slug:controlled_datepicker#toc-controlling-the-date-value)).
|
|
41
44
|
*
|
|
42
|
-
* > The `value`
|
|
45
|
+
* > The `value` must be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
|
|
43
46
|
*/
|
|
44
47
|
value?: Date | null;
|
|
45
48
|
/**
|
|
46
|
-
*
|
|
49
|
+
* Sets whether the DatePicker validates its value.
|
|
47
50
|
*/
|
|
48
51
|
validate?: boolean;
|
|
49
52
|
/**
|
|
50
|
-
*
|
|
53
|
+
* Sets the `aria-label` attribute of the DatePicker input.
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* This property is related to accessibility.
|
|
51
57
|
*/
|
|
52
58
|
ariaLabel?: string;
|
|
53
59
|
}
|
|
@@ -13,40 +13,44 @@ import { DateFormatOptions } from '@progress/kendo-vue-intl';
|
|
|
13
13
|
*/
|
|
14
14
|
export interface DatePickerSettings {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* ([see example](
|
|
16
|
+
* Lets you customize or replace the default wrapper around the DateInput and the ToggleButton of the DatePicker
|
|
17
|
+
* ([see example](slug:custom_rendering_datepicker#toc-customizing-the-toggle-button)).
|
|
18
18
|
*/
|
|
19
19
|
pickerWrap?: any;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* ([see example](
|
|
21
|
+
* Lets you customize or replace the default toggle button of the DatePicker
|
|
22
|
+
* ([see example](slug:custom_rendering_datepicker#toc-customizing-the-toggle-button)).
|
|
23
23
|
*/
|
|
24
24
|
toggleButton?: any;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* ([see example](
|
|
26
|
+
* Lets you customize or replace the default Calendar of the DatePicker
|
|
27
|
+
* ([see example](slug:custom_rendering_datepicker#toc-customizing-the-calendar)).
|
|
28
28
|
*/
|
|
29
29
|
calendar?: any;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* ([see example](
|
|
31
|
+
* Lets you customize or replace the default Popup of the DatePicker
|
|
32
|
+
* ([see example](slug:custom_rendering_datepicker#toc-customizing-the-popup)).
|
|
33
33
|
*/
|
|
34
34
|
popup?: any;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* ([see example](
|
|
36
|
+
* Lets you customize or replace the default DateInput of the DatePicker
|
|
37
|
+
* ([see example](slug:custom_rendering_datepicker#toc-customizing-the-dateinput)).
|
|
38
38
|
*/
|
|
39
39
|
dateInput?: any;
|
|
40
40
|
/**
|
|
41
|
-
* Sets the
|
|
41
|
+
* Sets whether the popup of the DatePicker is open on the first render ([see example](slug:default_value_datepicker)).
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
42
44
|
*/
|
|
43
45
|
defaultShow?: boolean;
|
|
44
46
|
/**
|
|
45
|
-
*
|
|
47
|
+
* When you set it to `true`, the DatePicker is disabled ([see example](slug:disabled_datepicker)).
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
46
50
|
*/
|
|
47
51
|
disabled?: boolean;
|
|
48
52
|
/**
|
|
49
|
-
* Configures the `size` of the
|
|
53
|
+
* Configures the `size` of the DatePicker.
|
|
50
54
|
*
|
|
51
55
|
* The available options are:
|
|
52
56
|
* - small
|
|
@@ -58,7 +62,7 @@ export interface DatePickerSettings {
|
|
|
58
62
|
*/
|
|
59
63
|
size?: null | 'small' | 'medium' | 'large';
|
|
60
64
|
/**
|
|
61
|
-
* Configures the `roundness` of the
|
|
65
|
+
* Configures the `roundness` of the DatePicker.
|
|
62
66
|
*
|
|
63
67
|
* The available options are:
|
|
64
68
|
* - small
|
|
@@ -72,7 +76,7 @@ export interface DatePickerSettings {
|
|
|
72
76
|
*/
|
|
73
77
|
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
74
78
|
/**
|
|
75
|
-
* Configures the `fillMode` of the
|
|
79
|
+
* Configures the `fillMode` of the DatePicker.
|
|
76
80
|
*
|
|
77
81
|
* The available options are:
|
|
78
82
|
* - solid
|
|
@@ -85,39 +89,44 @@ export interface DatePickerSettings {
|
|
|
85
89
|
*/
|
|
86
90
|
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
87
91
|
/**
|
|
88
|
-
*
|
|
92
|
+
* Sets the focused date of the DatePicker ([see example](slug:dates_datepicker)).
|
|
89
93
|
*/
|
|
90
94
|
focusedDate?: Date;
|
|
91
95
|
/**
|
|
92
|
-
*
|
|
96
|
+
* Sets the date format that the DatePicker uses to show the input value ([see example](slug:formats_datepicker)).
|
|
97
|
+
*
|
|
98
|
+
* @default 'd'
|
|
93
99
|
*/
|
|
94
100
|
format?: string | DateFormatOptions;
|
|
95
101
|
/**
|
|
96
|
-
*
|
|
102
|
+
* Sets the descriptions of the format sections in the input field ([more information and examples](slug:placeholders_datepicker)).
|
|
97
103
|
*/
|
|
98
104
|
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
99
105
|
/**
|
|
100
|
-
*
|
|
106
|
+
* Sets the `id` of the `input` element of the DatePicker. The floating label uses it to point to the input.
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* This property is related to accessibility.
|
|
101
110
|
*/
|
|
102
111
|
id?: string;
|
|
103
112
|
/**
|
|
104
|
-
*
|
|
113
|
+
* Sets the latest valid date ([see example](slug:dateranges_datepicker)).
|
|
105
114
|
*/
|
|
106
115
|
max?: Date;
|
|
107
116
|
/**
|
|
108
|
-
*
|
|
117
|
+
* Sets the earliest valid date ([see example](slug:dateranges_datepicker)).
|
|
109
118
|
*/
|
|
110
119
|
min?: Date;
|
|
111
120
|
/**
|
|
112
|
-
*
|
|
121
|
+
* Sets the `name` property of the `input` DOM element.
|
|
113
122
|
*/
|
|
114
123
|
name?: string;
|
|
115
124
|
/**
|
|
116
|
-
* Fires each time any of the DatePicker
|
|
125
|
+
* Fires each time any element of the DatePicker loses focus. The event name is `blur`.
|
|
117
126
|
*/
|
|
118
127
|
onBlur?: (event: any) => void;
|
|
119
128
|
/**
|
|
120
|
-
* Fires each time the user focuses any of the DatePicker
|
|
129
|
+
* Fires each time the user focuses any element of the DatePicker. The event name is `focus`.
|
|
121
130
|
*/
|
|
122
131
|
onFocus?: (event: any) => void;
|
|
123
132
|
/**
|
|
@@ -125,33 +134,42 @@ export interface DatePickerSettings {
|
|
|
125
134
|
*
|
|
126
135
|
* The available options are:
|
|
127
136
|
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
128
|
-
* - `appendTo`: —
|
|
129
|
-
* - `popupClass: String`—
|
|
137
|
+
* - `appendTo`: — Sets the container to which the Popup is appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
|
|
138
|
+
* - `popupClass: String`—Sets a list of CSS classes that style the popup.
|
|
139
|
+
*
|
|
140
|
+
* @default {}
|
|
130
141
|
*/
|
|
131
142
|
popupSettings?: DateInputsPopupSettings;
|
|
132
143
|
/**
|
|
133
|
-
*
|
|
144
|
+
* Sets whether the DatePicker shows the Calendar ([see example](slug:controlled_datepicker#toc-controlling-the-popup-state)).
|
|
134
145
|
*/
|
|
135
146
|
show?: boolean;
|
|
136
147
|
/**
|
|
137
148
|
* Sets the `tabIndex` property of the DatePicker.
|
|
149
|
+
*
|
|
150
|
+
* @default 0
|
|
151
|
+
*
|
|
152
|
+
* @remarks
|
|
153
|
+
* This property is related to accessibility.
|
|
138
154
|
*/
|
|
139
155
|
tabIndex?: number;
|
|
140
156
|
/**
|
|
141
|
-
* Sets the title of the `input` element of the DatePicker.
|
|
157
|
+
* Sets the `title` of the `input` element of the DatePicker.
|
|
158
|
+
*
|
|
159
|
+
* @default ''
|
|
142
160
|
*/
|
|
143
161
|
title?: string;
|
|
144
162
|
/**
|
|
145
|
-
*
|
|
163
|
+
* When you set it to `true`, the Calendar shows a week number column in the `month` view ([see example](slug:weeknumcolumn_datepicker)).
|
|
146
164
|
*/
|
|
147
165
|
weekNumber?: boolean;
|
|
148
166
|
/**
|
|
149
|
-
*
|
|
167
|
+
* Sets the width of the DatePicker.
|
|
150
168
|
*/
|
|
151
169
|
width?: number | string;
|
|
152
170
|
/**
|
|
153
|
-
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
154
|
-
*
|
|
171
|
+
* Sets the built-in HTML attributes of the inner focusable `input` element.
|
|
172
|
+
* You cannot change the attributes that the component needs to work.
|
|
155
173
|
*/
|
|
156
174
|
inputAttributes?: Object;
|
|
157
175
|
}
|
|
@@ -18,38 +18,59 @@ export interface ReverseClickEvent {
|
|
|
18
18
|
event?: any;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* The arguments for the `
|
|
21
|
+
* The arguments for the `change` event of the DateRangePicker.
|
|
22
22
|
*/
|
|
23
23
|
export interface DateRangePickerChangeEvent {
|
|
24
|
+
/**
|
|
25
|
+
* The DOM event that triggers the change.
|
|
26
|
+
*/
|
|
24
27
|
event?: any;
|
|
28
|
+
/**
|
|
29
|
+
* The new date range of the DateRangePicker.
|
|
30
|
+
*/
|
|
25
31
|
value: SelectionRange;
|
|
32
|
+
/**
|
|
33
|
+
* Shows whether the popup of the DateRangePicker is open.
|
|
34
|
+
*/
|
|
26
35
|
show?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The target object with the `name`, `value`, and `show` of the DateRangePicker.
|
|
38
|
+
*/
|
|
27
39
|
target: any;
|
|
40
|
+
/**
|
|
41
|
+
* The DateRangePicker component instance.
|
|
42
|
+
*/
|
|
28
43
|
component?: any;
|
|
29
44
|
}
|
|
30
45
|
/**
|
|
31
46
|
* The arguments for the `open` event of the DateRangePicker.
|
|
32
47
|
*/
|
|
33
48
|
export interface DateRangePickerOpenEvent {
|
|
49
|
+
/**
|
|
50
|
+
* The DateRangePicker component instance.
|
|
51
|
+
*/
|
|
34
52
|
component: any;
|
|
35
53
|
}
|
|
36
54
|
/**
|
|
37
55
|
* The arguments for the `close` event of the DateRangePicker.
|
|
38
56
|
*/
|
|
39
57
|
export interface DateRangePickerCloseEvent {
|
|
58
|
+
/**
|
|
59
|
+
* The DateRangePicker component instance.
|
|
60
|
+
*/
|
|
40
61
|
component: any;
|
|
41
62
|
}
|
|
42
63
|
/**
|
|
43
|
-
* Represents the props of the [Kendo UI for Vue DateRangePicker component](
|
|
64
|
+
* Represents the props of the [Kendo UI for Vue DateRangePicker component](slug:overview_daterangepicker).
|
|
44
65
|
*/
|
|
45
66
|
export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
46
67
|
/**
|
|
47
|
-
* Overrides the validity state of the
|
|
48
|
-
* If `valid
|
|
68
|
+
* Overrides the validity state of the DateRangePicker.
|
|
69
|
+
* If you set `valid`, the DateRangePicker ignores the `required` property.
|
|
49
70
|
*/
|
|
50
71
|
valid?: boolean;
|
|
51
72
|
/**
|
|
52
|
-
* Sets the
|
|
73
|
+
* Sets the initial value of the DateRangePicker when you do not set `value` ([see example](slug:default_value_daterangepicker)).
|
|
53
74
|
*/
|
|
54
75
|
defaultValue?: SelectionRange;
|
|
55
76
|
/**
|
|
@@ -57,13 +78,13 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
57
78
|
*/
|
|
58
79
|
modelValue?: Date;
|
|
59
80
|
/**
|
|
60
|
-
* Fires each time the user selects a part of a date range ([see example](
|
|
81
|
+
* Fires each time the user selects a part of a date range. The event name is `change` ([see example](slug:controlled_daterangepicker#toc-controlling-the-value)).
|
|
61
82
|
*/
|
|
62
83
|
onChange?: (event: DateRangePickerChangeEvent) => void;
|
|
63
84
|
/**
|
|
64
|
-
*
|
|
85
|
+
* Sets the selected date range of the DateRangePicker ([see example](slug:controlled_daterangepicker#toc-controlling-the-value)).
|
|
65
86
|
*
|
|
66
|
-
* > The `value`
|
|
87
|
+
* > The `value` must be an object with `start` and `end` properties. Each one is a valid JavaScript [`Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance or `null`.
|
|
67
88
|
*/
|
|
68
89
|
value?: SelectionRange;
|
|
69
90
|
}
|
|
@@ -87,7 +108,13 @@ export interface DateRangePickerComputed {
|
|
|
87
108
|
computedShow: boolean;
|
|
88
109
|
}
|
|
89
110
|
/**
|
|
90
|
-
*
|
|
111
|
+
* Represents the [KendoVue DateRangePicker component](slug:overview_daterangepicker).
|
|
112
|
+
* Use the DateRangePicker to let the user type or select a start date and an end date.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```vue
|
|
116
|
+
* <DateRangePicker :default-value="{ start: new Date(2026, 0, 5), end: new Date(2026, 0, 12) }" :format="'dd/MM/yyyy'" />
|
|
117
|
+
* ```
|
|
91
118
|
*/
|
|
92
119
|
declare const DateRangePicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
93
120
|
allowReverse: {
|
|
@@ -184,6 +211,9 @@ declare const DateRangePicker: import('vue').DefineComponent<import('vue').Extra
|
|
|
184
211
|
'k-icon-button': boolean;
|
|
185
212
|
};
|
|
186
213
|
}, {
|
|
214
|
+
/**
|
|
215
|
+
* Moves the focus to the start date input of the DateRangePicker.
|
|
216
|
+
*/
|
|
187
217
|
focus(): void;
|
|
188
218
|
focusCalendarElement(): void;
|
|
189
219
|
focusDateInputElement(): void;
|
|
@@ -340,6 +340,9 @@ const It = /* @__PURE__ */ X({
|
|
|
340
340
|
}, [F, (this.$props.allowReverse || this.$props.calendarSettings && this.$props.calendarSettings.allowReverse) && this.$props.swapButton ? G : V, L, U]);
|
|
341
341
|
},
|
|
342
342
|
methods: {
|
|
343
|
+
/**
|
|
344
|
+
* Moves the focus to the start date input of the DateRangePicker.
|
|
345
|
+
*/
|
|
343
346
|
focus() {
|
|
344
347
|
const t = this.getStartInput();
|
|
345
348
|
t && t.focus();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { CalendarSettings } from '../../calendar/models/CalendarSettings';
|
|
9
9
|
/**
|
|
10
|
-
* Represents the settings that can
|
|
10
|
+
* Represents the settings that you can pass to the Calendar inside the DateRangePicker.
|
|
11
11
|
*/
|
|
12
12
|
export interface DateRangePickerCalendarSettings extends CalendarSettings {
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { DateInputSettings } from '../../dateinput/models/DateInputSettings';
|
|
9
9
|
/**
|
|
10
|
-
* Represents the settings that can
|
|
10
|
+
* Represents the settings that you can pass to the DateInput inside the DateRangePicker.
|
|
11
11
|
*/
|
|
12
12
|
export interface DateRangePickerDateInputSettings extends DateInputSettings {
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PopupSettings } from '@progress/kendo-vue-popup';
|
|
9
9
|
/**
|
|
10
|
-
* Represents the settings that can
|
|
10
|
+
* Represents the settings that you can pass to the Popup inside the DateRangePicker.
|
|
11
11
|
*/
|
|
12
12
|
export interface DateRangePickerPopupSettings extends PopupSettings {
|
|
13
13
|
}
|
|
@@ -14,75 +14,89 @@ import { DateFormatOptions } from '@progress/kendo-vue-intl';
|
|
|
14
14
|
*/
|
|
15
15
|
export interface DateRangePickerSettings {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* ([see example](
|
|
17
|
+
* Lets you customize or replace the default start DateInput of the DateRangePicker
|
|
18
|
+
* ([see example](slug:custom_rendering_daterangepicker#toc-customizing-the-date-inputs)).
|
|
19
19
|
*/
|
|
20
20
|
startDateInput?: any;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* ([see example](
|
|
22
|
+
* Lets you customize or replace the default end DateInput of the DateRangePicker
|
|
23
|
+
* ([see example](slug:custom_rendering_daterangepicker#toc-customizing-the-calendar)).
|
|
24
24
|
*/
|
|
25
25
|
endDateInput?: any;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* ([see example](
|
|
27
|
+
* Lets you customize or replace the default Popup of the DateRangePicker
|
|
28
|
+
* ([see example](slug:custom_rendering_daterangepicker#toc-customizing-the-popup)).
|
|
29
29
|
*/
|
|
30
30
|
popup?: any;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Lets you customize or replace the default Calendar of the DateRangePicker.
|
|
33
33
|
*/
|
|
34
34
|
calendar?: any;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* When you set `allowReverse` to `true`, the DateRangePicker does not check whether the start date is after the end date ([see example](slug:reverse_daterangepicker)).
|
|
37
37
|
*
|
|
38
|
-
* > If the [`calendarSettings`](#toc-calendarsettings) property
|
|
38
|
+
* > If you set the [`calendarSettings`](#toc-calendarsettings) property, its `allowReverse` takes precedence.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
39
41
|
*/
|
|
40
42
|
allowReverse?: boolean;
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
44
|
+
* Sets the additional props that the DateRangePicker passes to the [MultiViewCalendar](slug:multipleviews_calendar) inside it ([see example](slug:child_settings_daterangepicker#toc-configuring-the-calendar)).
|
|
43
45
|
*/
|
|
44
46
|
calendarSettings?: DateRangePickerCalendarSettings;
|
|
45
47
|
/**
|
|
46
|
-
* Sets the
|
|
48
|
+
* Sets whether the popup of the DateRangePicker is open on the first render ([see example](slug:default_value_daterangepicker)).
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
47
51
|
*/
|
|
48
52
|
defaultShow?: boolean;
|
|
49
53
|
/**
|
|
50
|
-
*
|
|
54
|
+
* When you set it to `true`, the DateRangePicker is disabled ([see example](slug:disabled_daterangepicker)).
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
51
57
|
*/
|
|
52
58
|
disabled?: boolean;
|
|
53
59
|
/**
|
|
54
|
-
*
|
|
60
|
+
* Sets the additional props that the DateRangePicker passes to the end-date [DateInput](slug:overview_dateinput) ([see example](slug:child_settings_daterangepicker#toc-configuring-dateinputs)).
|
|
55
61
|
*/
|
|
56
62
|
endDateInputSettings?: DateRangePickerDateInputSettings;
|
|
57
63
|
/**
|
|
58
|
-
*
|
|
64
|
+
* Sets the focused date of the DateRangePicker ([see example](slug:focused_daterangepicker)).
|
|
59
65
|
*/
|
|
60
66
|
focusedDate?: Date;
|
|
61
67
|
/**
|
|
62
|
-
*
|
|
68
|
+
* Sets the `date` format of the DateInput values ([see example](slug:formats_dateinput)).
|
|
63
69
|
*
|
|
64
|
-
* > If [`startDateInputSettings`](#toc-startdateinputsettings) or [`endDateInputSettings`](#toc-enddateinputsettings)
|
|
70
|
+
* > If you set [`startDateInputSettings`](#toc-startdateinputsettings) or [`endDateInputSettings`](#toc-enddateinputsettings), their `format` takes precedence.
|
|
71
|
+
*
|
|
72
|
+
* @default 'd'
|
|
65
73
|
*/
|
|
66
74
|
format?: string | DateFormatOptions;
|
|
67
75
|
/**
|
|
68
|
-
*
|
|
76
|
+
* Sets the `id` of the DateRangePicker.
|
|
69
77
|
*/
|
|
70
78
|
id?: string;
|
|
71
79
|
/**
|
|
72
|
-
*
|
|
73
|
-
* For example these elements
|
|
80
|
+
* Sets the `id` values of the elements that describe the DateRangePicker, similar to the [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby).
|
|
81
|
+
* For example, these elements can contain an error or a hint message.
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* This property is related to accessibility.
|
|
74
85
|
*/
|
|
75
86
|
ariaDescribedBy?: string;
|
|
76
87
|
/**
|
|
77
|
-
*
|
|
88
|
+
* Sets the `id` values of the elements that label the DateRangePicker.
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* This property is related to accessibility.
|
|
78
92
|
*/
|
|
79
93
|
ariaLabelledBy?: string;
|
|
80
94
|
/**
|
|
81
|
-
*
|
|
95
|
+
* Sets the latest valid date ([see example](slug:dateranges_daterangepicker)).
|
|
82
96
|
*/
|
|
83
97
|
max?: Date;
|
|
84
98
|
/**
|
|
85
|
-
*
|
|
99
|
+
* Sets the earliest valid date ([see example](slug:dateranges_daterangepicker)).
|
|
86
100
|
*/
|
|
87
101
|
min?: Date;
|
|
88
102
|
/**
|
|
@@ -125,38 +139,45 @@ export interface DateRangePickerSettings {
|
|
|
125
139
|
*/
|
|
126
140
|
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
127
141
|
/**
|
|
128
|
-
* Fires each time any of the DateRangePicker
|
|
142
|
+
* Fires each time any element of the DateRangePicker loses focus. The event name is `blur`.
|
|
129
143
|
*/
|
|
130
144
|
onBlur?: (event: any) => void;
|
|
131
145
|
/**
|
|
132
|
-
* Fires each time the user focuses any of the DateRangePicker
|
|
146
|
+
* Fires each time the user focuses any element of the DateRangePicker. The event name is `focus`.
|
|
133
147
|
*/
|
|
134
148
|
onFocus?: (event: any) => void;
|
|
135
149
|
/**
|
|
136
|
-
*
|
|
150
|
+
* Sets the additional props that the DateRangePicker passes to the [Popup](slug:overview_popup) inside it ([see example](slug:child_settings_daterangepicker#toc-configuring-the-popup)).
|
|
151
|
+
*
|
|
152
|
+
* @default {}
|
|
137
153
|
*/
|
|
138
154
|
popupSettings?: DateRangePickerPopupSettings;
|
|
139
155
|
/**
|
|
140
|
-
*
|
|
156
|
+
* Sets whether the DateRangePicker shows the Calendar ([see example](slug:controlled_daterangepicker#toc-controlling-the-popup-state)).
|
|
141
157
|
*/
|
|
142
158
|
show?: boolean;
|
|
143
159
|
/**
|
|
144
|
-
*
|
|
160
|
+
* Sets the additional props that the DateRangePicker passes to the start-date [DateInput](slug:overview_dateinput) ([see example](slug:child_settings_daterangepicker#toc-configuring-dateinputs)).
|
|
145
161
|
*/
|
|
146
162
|
startDateInputSettings?: DateRangePickerDateInputSettings;
|
|
147
163
|
/**
|
|
148
|
-
*
|
|
164
|
+
* When you set it to `true`, the DateRangePicker shows a **Swap Value** button ([see example](slug:reverse_daterangepicker#toc-swapping-start-and-end-dates-in-ranges)).
|
|
149
165
|
*
|
|
150
|
-
* > The DateRangePicker
|
|
166
|
+
* > The DateRangePicker shows the swap button only if you also set the [`allowReverse`](#toc-allowreverse) property to `true`.
|
|
167
|
+
*
|
|
168
|
+
* @default false
|
|
151
169
|
*/
|
|
152
170
|
swapButton?: boolean;
|
|
153
171
|
/**
|
|
154
|
-
* Sets the `tabIndex` property of the
|
|
172
|
+
* Sets the `tabIndex` property of the DateRangePicker.
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* This property is related to accessibility.
|
|
155
176
|
*/
|
|
156
177
|
tabIndex?: number;
|
|
157
178
|
/**
|
|
158
|
-
* Sets the built-in HTML attributes of the inner focusable input
|
|
159
|
-
*
|
|
179
|
+
* Sets the built-in HTML attributes of the inner focusable `input` elements.
|
|
180
|
+
* You cannot change the attributes that the component needs to work.
|
|
160
181
|
*/
|
|
161
182
|
inputAttributes?: Object;
|
|
162
183
|
}
|