@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.
Files changed (36) hide show
  1. package/calendar/components/Calendar.d.ts +13 -1
  2. package/calendar/components/Calendar.mjs +3 -0
  3. package/calendar/components/CalendarCell.d.ts +16 -2
  4. package/calendar/components/CalendarCell.mjs +1 -1
  5. package/calendar/components/CalendarHeaderTitle.d.ts +19 -2
  6. package/calendar/components/CalendarHeaderTitle.mjs +1 -1
  7. package/calendar/components/CalendarWeekCell.d.ts +1 -1
  8. package/calendar/components/CalendarWeekCell.mjs +1 -1
  9. package/calendar/components/interfaces/CalendarProps.d.ts +15 -9
  10. package/calendar/models/CalendarSettings.d.ts +34 -19
  11. package/calendar/models/CellContext.d.ts +45 -0
  12. package/common/PickerWrap.d.ts +1 -1
  13. package/dateinput/DateInput.d.ts +10 -1
  14. package/dateinput/DateInput.mjs +3 -0
  15. package/dateinput/interfaces/DateInputProps.d.ts +6 -6
  16. package/dateinput/models/DateInputSettings.d.ts +58 -24
  17. package/datepicker/DatePicker.d.ts +11 -1
  18. package/datepicker/DatePicker.mjs +3 -0
  19. package/datepicker/interfaces/DatePickerProps.d.ts +15 -9
  20. package/datepicker/models/DatePickerSettings.d.ts +50 -32
  21. package/daterangepicker/DateRangePicker.d.ts +39 -9
  22. package/daterangepicker/DateRangePicker.mjs +3 -0
  23. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +1 -1
  24. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +1 -1
  25. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +1 -1
  26. package/daterangepicker/models/DateRangePickerSettings.d.ts +53 -32
  27. package/datetimepicker/DateTimePicker.d.ts +37 -8
  28. package/datetimepicker/DateTimePicker.mjs +3 -0
  29. package/datetimepicker/models/DateTimePickerSettings.d.ts +82 -44
  30. package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
  31. package/package-metadata.js +1 -1
  32. package/package-metadata.mjs +2 -2
  33. package/package.json +9 -9
  34. package/timepicker/TimePicker.d.ts +36 -7
  35. package/timepicker/TimePicker.mjs +3 -0
  36. package/timepicker/models/TimePickerSettings.d.ts +69 -36
@@ -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 `onChange` event of the DateTimePicker.
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]({% slug overview_datetimepicker %}).
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 default value of the DateTimePicker.
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
- * Specifies the value of the DateTimePicker
54
- * ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-date-value)).
73
+ * Sets the value of the DateTimePicker
74
+ * ([see example](slug:controlled_datetimepicker#toc-controlling-the-date-value)).
55
75
  *
56
- * > The `value` has to be a valid
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
- * @hidden
90
+ * Represents the [KendoVue 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
- * Enables the customization or the override of the default Calendar which is rendered by the DateTimePicker
17
- * ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-calendar)).
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
- * Enables the customization or the override of the default Popup which is rendered by the DateTimePicker
22
- * ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-popup)).
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
- * Enables the customization or the override of the default DateInput which is rendered by the DateTimePicker
27
- * ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-dateinput)).
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 if the calendar popup is opened upon initial render.
32
- * For more information, refer to the article on
31
+ * Sets whether the popup is open on the first render.
32
+ *
33
+ * @default false
33
34
  */
34
35
  defaultShow?: boolean;
35
36
  /**
36
- * Determines whether the DateTimePicker is disabled
37
- * ([see example]({% slug disabled_datetimepicker %})).
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
- * Specifies the initial focusedDate of the Calendar inside the DateTimePicker
42
- * ([see example]({% slug dates_datetimepicker %})).
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
- * Specifies the date format that is used to display the input value
47
- * ([see example]({% slug formats_datetimepicker %})).
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
- * Defines the descriptions of the format sections in the input field
52
- * ([more information and examples]({% slug placeholders_datetimepicker %})).
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
- * Specifies the `id` of the DateTimePicker.
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
- * 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/Reference/Attributes/aria-describedby).
61
- * For example these elements could contain error or hint message.
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
- * Identifies the element(s) which will label the component.
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
- * Specifies the greatest valid date
70
- * ([see example]({% slug dateranges_datetimepicker %})).
83
+ * Sets the latest valid date
84
+ * ([see example](slug:dateranges_datetimepicker)).
71
85
  */
72
86
  max?: Date;
73
87
  /**
74
- * Specifies the smallest valid date
75
- * ([see example]({% slug dateranges_datetimepicker %})).
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
- * Specifies the `name` property of the `input` DOM element.
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
- * Specifies the value of the placeholder.
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`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
136
- * - `appendTo:`&mdash; Defines the container to which the Popup will
137
- * be appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
138
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
159
+ * - `appendTo:`&mdash; 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`&mdash;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 elements gets blurred.
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 elements.
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 element is clicked.
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
- * Specifies if the popup will be displayed
155
- * ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
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 will be hidden.
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
- * Determines whether to display a week number column of the Calendar inside the DateTimePicker
174
- * ([see example]({% slug weeksnumbers_calendar %})).
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
- * Specifies the width of the DateTimePicker.
214
+ * Sets the width of the DateTimePicker.
179
215
  */
180
216
  width?: number | string;
181
217
  /**
182
- * Determines whether to display the **Cancel** button in the popup.
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
- * Specifies the validate of the DateTimePicker.
224
+ * Sets whether the DateTimePicker validates its value.
187
225
  */
188
226
  validate?: boolean;
189
227
  /**
190
- * Controls the form error message of the component. If set to an empty string, no error will be thrown.
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
- * Attributes which are essential for certain component functionalities cannot be changed.
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
  }