@progress/kendo-vue-dateinputs 11.0.0 → 11.1.0-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 +10 -1
- package/calendar/components/CalendarWeekCell.mjs +1 -1
- package/calendar/components/interfaces/CalendarProps.d.ts +15 -9
- package/calendar/models/CalendarSettings.d.ts +40 -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/DateInputEventArguments.d.ts +12 -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/DatePickerEventArguments.d.ts +21 -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
|
@@ -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
|
}
|
|
@@ -13,28 +13,46 @@ import { DateInputFormatPlaceholder } from '../dateinput/models/main';
|
|
|
13
13
|
import { PropType } from 'vue';
|
|
14
14
|
import { DateTimePickerFocusEvent, DateTimePickerBlurEvent } from './interfaces/DateTimePickerFocusBlurEvents';
|
|
15
15
|
/**
|
|
16
|
-
* The arguments for the `
|
|
16
|
+
* The arguments for the `change` event of the DateTimePicker.
|
|
17
17
|
*/
|
|
18
18
|
export interface DateTimePickerChangeEvent {
|
|
19
|
+
/**
|
|
20
|
+
* The DOM event that triggers the change.
|
|
21
|
+
*/
|
|
19
22
|
event: any;
|
|
23
|
+
/**
|
|
24
|
+
* The new value of the DateTimePicker.
|
|
25
|
+
*/
|
|
20
26
|
value: Date | null;
|
|
27
|
+
/**
|
|
28
|
+
* Shows whether the popup of the DateTimePicker is open.
|
|
29
|
+
*/
|
|
21
30
|
show: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The target object with the `name`, `value`, and `valueAsDate` of the DateTimePicker.
|
|
33
|
+
*/
|
|
22
34
|
target: any;
|
|
23
35
|
}
|
|
24
36
|
/**
|
|
25
37
|
* The arguments for the `open` event of the DateTimePicker.
|
|
26
38
|
*/
|
|
27
39
|
export interface DateTimePickerOpenEvent {
|
|
40
|
+
/**
|
|
41
|
+
* The DateTimePicker component instance.
|
|
42
|
+
*/
|
|
28
43
|
component: any;
|
|
29
44
|
}
|
|
30
45
|
/**
|
|
31
46
|
* The arguments for the `close` event of the DateTimePicker.
|
|
32
47
|
*/
|
|
33
48
|
export interface DateTimePickerCloseEvent {
|
|
49
|
+
/**
|
|
50
|
+
* The DateTimePicker component instance.
|
|
51
|
+
*/
|
|
34
52
|
component: any;
|
|
35
53
|
}
|
|
36
54
|
/**
|
|
37
|
-
* Represents the props of the [Kendo UI for Vue DateTimePicker component](
|
|
55
|
+
* Represents the props of the [Kendo UI for Vue DateTimePicker component](slug:overview_datetimepicker).
|
|
38
56
|
*/
|
|
39
57
|
export interface DateTimePickerProps extends DateTimePickerSettings, FormComponentProps {
|
|
40
58
|
/**
|
|
@@ -42,18 +60,20 @@ export interface DateTimePickerProps extends DateTimePickerSettings, FormCompone
|
|
|
42
60
|
*/
|
|
43
61
|
modelValue?: Date;
|
|
44
62
|
/**
|
|
45
|
-
* Sets the
|
|
63
|
+
* Sets the initial value of the DateTimePicker when you do not set `value`.
|
|
64
|
+
*
|
|
65
|
+
* @default null
|
|
46
66
|
*/
|
|
47
67
|
defaultValue?: Date;
|
|
48
68
|
/**
|
|
49
|
-
* Fires each time the user selects a new value
|
|
69
|
+
* Fires each time the user selects a new value. The event name is `change`.
|
|
50
70
|
*/
|
|
51
71
|
onChange?: (event: DateTimePickerChangeEvent) => void;
|
|
52
72
|
/**
|
|
53
|
-
*
|
|
54
|
-
* ([see example](
|
|
73
|
+
* Sets the value of the DateTimePicker
|
|
74
|
+
* ([see example](slug:controlled_datetimepicker#toc-controlling-the-date-value)).
|
|
55
75
|
*
|
|
56
|
-
* > The `value`
|
|
76
|
+
* > The `value` must be a valid
|
|
57
77
|
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
|
|
58
78
|
*/
|
|
59
79
|
value?: Date | null;
|
|
@@ -67,7 +87,13 @@ export interface DateTimePickerComputed {
|
|
|
67
87
|
computedShow: boolean;
|
|
68
88
|
}
|
|
69
89
|
/**
|
|
70
|
-
*
|
|
90
|
+
* Represents the [Kendo UI for Vue DateTimePicker component](slug:overview_datetimepicker).
|
|
91
|
+
* Use the DateTimePicker to let the user type a date and time or select them from a popup.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```vue
|
|
95
|
+
* <DateTimePicker :default-value="new Date()" :format="'dd/MM/yyyy HH:mm'" />
|
|
96
|
+
* ```
|
|
71
97
|
*/
|
|
72
98
|
declare const DateTimePicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
73
99
|
modelValue: {
|
|
@@ -202,6 +228,9 @@ declare const DateTimePicker: import('vue').DefineComponent<import('vue').Extrac
|
|
|
202
228
|
}, {
|
|
203
229
|
validity(): FormComponentValidity;
|
|
204
230
|
getDateInputText(): any;
|
|
231
|
+
/**
|
|
232
|
+
* Moves the focus to the input element of the DateTimePicker.
|
|
233
|
+
*/
|
|
205
234
|
focus(): void;
|
|
206
235
|
setShow(show: boolean): void;
|
|
207
236
|
handleReject(): void;
|
|
@@ -410,6 +410,9 @@ const Pe = /* @__PURE__ */ ie({
|
|
|
410
410
|
getDateInputText() {
|
|
411
411
|
return this.computedValue ? !0 : this._dateInput ? this._dateInput._element.value : "";
|
|
412
412
|
},
|
|
413
|
+
/**
|
|
414
|
+
* Moves the focus to the input element of the DateTimePicker.
|
|
415
|
+
*/
|
|
413
416
|
focus() {
|
|
414
417
|
const e = this.dateInputElement();
|
|
415
418
|
e && e.focus();
|
|
@@ -13,69 +13,89 @@ import { TimePickerIncrementalSteps } from '../../timepicker/models/main';
|
|
|
13
13
|
*/
|
|
14
14
|
export interface DateTimePickerSettings {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* ([see example](
|
|
16
|
+
* Lets you customize or replace the default Calendar of the DateTimePicker
|
|
17
|
+
* ([see example](slug:custom_rendering_datetimepicker#toc-customizing-the-calendar)).
|
|
18
18
|
*/
|
|
19
19
|
calendar?: any;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* ([see example](
|
|
21
|
+
* Lets you customize or replace the default Popup of the DateTimePicker
|
|
22
|
+
* ([see example](slug:custom_rendering_datetimepicker#toc-customizing-the-popup)).
|
|
23
23
|
*/
|
|
24
24
|
popup?: any;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* ([see example](
|
|
26
|
+
* Lets you customize or replace the default DateInput of the DateTimePicker
|
|
27
|
+
* ([see example](slug:custom_rendering_datetimepicker#toc-customizing-the-dateinput)).
|
|
28
28
|
*/
|
|
29
29
|
dateInput?: any;
|
|
30
30
|
/**
|
|
31
|
-
* Sets
|
|
32
|
-
*
|
|
31
|
+
* Sets whether the popup is open on the first render.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
33
34
|
*/
|
|
34
35
|
defaultShow?: boolean;
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
-
* ([see example](
|
|
37
|
+
* When you set it to `true`, the DateTimePicker is disabled
|
|
38
|
+
* ([see example](slug:disabled_datetimepicker)).
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
38
41
|
*/
|
|
39
42
|
disabled?: boolean;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
* ([see example](
|
|
44
|
+
* Sets the initial focused date of the Calendar inside the DateTimePicker
|
|
45
|
+
* ([see example](slug:dates_datetimepicker)).
|
|
43
46
|
*/
|
|
44
47
|
focusedDate?: Date;
|
|
45
48
|
/**
|
|
46
|
-
*
|
|
47
|
-
* ([see example](
|
|
49
|
+
* Sets the date format that the DateTimePicker uses to show the input value
|
|
50
|
+
* ([see example](slug:formats_datetimepicker)).
|
|
51
|
+
*
|
|
52
|
+
* @default 'g'
|
|
48
53
|
*/
|
|
49
54
|
format?: string | DateFormatOptions;
|
|
50
55
|
/**
|
|
51
|
-
*
|
|
52
|
-
* ([more information and examples](
|
|
56
|
+
* Sets the descriptions of the format sections in the input field
|
|
57
|
+
* ([more information and examples](slug:placeholders_datetimepicker)).
|
|
53
58
|
*/
|
|
54
59
|
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
55
60
|
/**
|
|
56
|
-
*
|
|
61
|
+
* Sets the `id` of the `input` element of the DateTimePicker. The floating label uses it to point to the input.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This property is related to accessibility.
|
|
57
65
|
*/
|
|
58
66
|
id?: string;
|
|
59
67
|
/**
|
|
60
|
-
*
|
|
61
|
-
* For example these elements
|
|
68
|
+
* Sets the `id` values of the elements that describe the DateTimePicker, similar to the [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby).
|
|
69
|
+
* For example, these elements can contain an error or a hint message.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* This property is related to accessibility.
|
|
62
73
|
*/
|
|
63
74
|
ariaDescribedBy?: string;
|
|
64
75
|
/**
|
|
65
|
-
*
|
|
76
|
+
* Sets the `id` values of the elements that label the DateTimePicker.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* This property is related to accessibility.
|
|
66
80
|
*/
|
|
67
81
|
ariaLabelledBy?: string;
|
|
68
82
|
/**
|
|
69
|
-
*
|
|
70
|
-
* ([see example](
|
|
83
|
+
* Sets the latest valid date
|
|
84
|
+
* ([see example](slug:dateranges_datetimepicker)).
|
|
71
85
|
*/
|
|
72
86
|
max?: Date;
|
|
73
87
|
/**
|
|
74
|
-
*
|
|
75
|
-
* ([see example](
|
|
88
|
+
* Sets the earliest valid date
|
|
89
|
+
* ([see example](slug:dateranges_datetimepicker)).
|
|
76
90
|
*/
|
|
77
91
|
min?: Date;
|
|
92
|
+
/**
|
|
93
|
+
* Sets the earliest valid time.
|
|
94
|
+
*/
|
|
78
95
|
minTime?: Date;
|
|
96
|
+
/**
|
|
97
|
+
* Sets the latest valid time.
|
|
98
|
+
*/
|
|
79
99
|
maxTime?: Date;
|
|
80
100
|
/**
|
|
81
101
|
* Configures the `size` of the DateTimePicker.
|
|
@@ -117,15 +137,18 @@ export interface DateTimePickerSettings {
|
|
|
117
137
|
*/
|
|
118
138
|
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
119
139
|
/**
|
|
120
|
-
*
|
|
140
|
+
* Sets the `name` property of the `input` DOM element.
|
|
121
141
|
*/
|
|
122
142
|
name?: string;
|
|
123
143
|
/**
|
|
124
144
|
* Renders a floating label for the DateTimePicker.
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* This property is related to accessibility.
|
|
125
148
|
*/
|
|
126
149
|
label?: string;
|
|
127
150
|
/**
|
|
128
|
-
*
|
|
151
|
+
* Sets the placeholder text of the DateTimePicker.
|
|
129
152
|
*/
|
|
130
153
|
placeholder?: string;
|
|
131
154
|
/**
|
|
@@ -133,67 +156,82 @@ export interface DateTimePickerSettings {
|
|
|
133
156
|
*
|
|
134
157
|
* The available options are:
|
|
135
158
|
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
136
|
-
* - `appendTo:`—
|
|
137
|
-
*
|
|
138
|
-
* - `popupClass: String`—
|
|
159
|
+
* - `appendTo:`— Sets the container to which the Popup
|
|
160
|
+
* is appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
|
|
161
|
+
* - `popupClass: String`—Sets a list of CSS classes that style the popup.
|
|
162
|
+
*
|
|
163
|
+
* @default {}
|
|
139
164
|
*/
|
|
140
165
|
popupSettings?: object;
|
|
141
166
|
/**
|
|
142
|
-
* Fires each time any of the DateTimePicker
|
|
167
|
+
* Fires each time any element of the DateTimePicker loses focus. The event name is `blur`.
|
|
143
168
|
*/
|
|
144
169
|
onBlur?: (event: any) => void;
|
|
145
170
|
/**
|
|
146
|
-
* Fires each time the user focuses any of the DateTimePicker
|
|
171
|
+
* Fires each time the user focuses any element of the DateTimePicker. The event name is `focus`.
|
|
147
172
|
*/
|
|
148
173
|
onFocus?: (event: any) => void;
|
|
149
174
|
/**
|
|
150
|
-
* Fires when the icon
|
|
175
|
+
* Fires when the user clicks the calendar icon. The event name is `iconclick`.
|
|
151
176
|
*/
|
|
152
177
|
onIconclick?: (event: any) => void;
|
|
153
178
|
/**
|
|
154
|
-
*
|
|
155
|
-
* ([see example](
|
|
179
|
+
* Sets whether the DateTimePicker shows the popup
|
|
180
|
+
* ([see example](slug:controlled_datetimepicker#toc-controlling-the-popup-state)).
|
|
156
181
|
*/
|
|
157
182
|
show?: boolean;
|
|
158
183
|
/**
|
|
159
184
|
* Sets the `tabIndex` property of the DateTimePicker.
|
|
185
|
+
*
|
|
186
|
+
* @default 0
|
|
187
|
+
*
|
|
188
|
+
* @remarks
|
|
189
|
+
* This property is related to accessibility.
|
|
160
190
|
*/
|
|
161
191
|
tabIndex?: number;
|
|
162
192
|
/**
|
|
163
|
-
* Sets the title of the `input` element of the DateTimePicker.
|
|
193
|
+
* Sets the `title` of the `input` element of the DateTimePicker.
|
|
194
|
+
*
|
|
195
|
+
* @default ''
|
|
164
196
|
*/
|
|
165
197
|
title?: string;
|
|
166
198
|
/**
|
|
167
199
|
* Configures the incremental steps of the DateTimePicker.
|
|
168
200
|
*
|
|
169
|
-
* > If the incremental step is greater than `1`, the **Now** button
|
|
201
|
+
* > If the incremental step is greater than `1`, the DateTimePicker hides the **Now** button.
|
|
202
|
+
*
|
|
203
|
+
* @default {}
|
|
170
204
|
*/
|
|
171
205
|
steps?: TimePickerIncrementalSteps;
|
|
172
206
|
/**
|
|
173
|
-
*
|
|
174
|
-
* ([see example](
|
|
207
|
+
* When you set it to `true`, the Calendar inside the DateTimePicker shows a week number column
|
|
208
|
+
* ([see example](slug:weeksnumbers_calendar)).
|
|
209
|
+
*
|
|
210
|
+
* @default false
|
|
175
211
|
*/
|
|
176
212
|
weekNumber?: boolean;
|
|
177
213
|
/**
|
|
178
|
-
*
|
|
214
|
+
* Sets the width of the DateTimePicker.
|
|
179
215
|
*/
|
|
180
216
|
width?: number | string;
|
|
181
217
|
/**
|
|
182
|
-
*
|
|
218
|
+
* When you set it to `true`, the popup shows the **Cancel** button.
|
|
219
|
+
*
|
|
220
|
+
* @default true
|
|
183
221
|
*/
|
|
184
222
|
cancelButton?: boolean;
|
|
185
223
|
/**
|
|
186
|
-
*
|
|
224
|
+
* Sets whether the DateTimePicker validates its value.
|
|
187
225
|
*/
|
|
188
226
|
validate?: boolean;
|
|
189
227
|
/**
|
|
190
|
-
*
|
|
228
|
+
* Sets the form error message of the DateTimePicker. If you set it to an empty string, the DateTimePicker shows no error.
|
|
191
229
|
*
|
|
192
230
|
*/
|
|
193
231
|
validationMessage?: string;
|
|
194
232
|
/**
|
|
195
|
-
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
196
|
-
*
|
|
233
|
+
* Sets the built-in HTML attributes of the inner focusable `input` element.
|
|
234
|
+
* You cannot change the attributes that the component needs to work.
|
|
197
235
|
*/
|
|
198
236
|
inputAttributes?: Object;
|
|
199
237
|
}
|