@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
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1795100372,version:"11.1.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "11.0.
|
|
13
|
+
publishDate: 1795100372,
|
|
14
|
+
version: "11.1.0-develop.1",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-dateinputs",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.1.0-develop.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@progress/kendo-date-math": "^1.4.0",
|
|
28
|
-
"@progress/kendo-licensing": "^1.13.
|
|
29
|
-
"@progress/kendo-vue-buttons": "11.0.
|
|
30
|
-
"@progress/kendo-vue-common": "11.0.
|
|
31
|
-
"@progress/kendo-vue-intl": "11.0.
|
|
32
|
-
"@progress/kendo-vue-labels": "11.0.
|
|
33
|
-
"@progress/kendo-vue-layout": "11.0.
|
|
34
|
-
"@progress/kendo-vue-popup": "11.0.
|
|
28
|
+
"@progress/kendo-licensing": "^1.13.1",
|
|
29
|
+
"@progress/kendo-vue-buttons": "11.1.0-develop.1",
|
|
30
|
+
"@progress/kendo-vue-common": "11.1.0-develop.1",
|
|
31
|
+
"@progress/kendo-vue-intl": "11.1.0-develop.1",
|
|
32
|
+
"@progress/kendo-vue-labels": "11.1.0-develop.1",
|
|
33
|
+
"@progress/kendo-vue-layout": "11.1.0-develop.1",
|
|
34
|
+
"@progress/kendo-vue-popup": "11.1.0-develop.1",
|
|
35
35
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
36
36
|
"vue": "^3.0.2"
|
|
37
37
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"package": {
|
|
82
82
|
"productName": "Kendo UI for Vue",
|
|
83
83
|
"productCode": "KENDOUIVUE",
|
|
84
|
-
"publishDate":
|
|
84
|
+
"publishDate": 1795100372,
|
|
85
85
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
@@ -14,28 +14,46 @@ import { DateInputFormatPlaceholder } from '../dateinput/models/main';
|
|
|
14
14
|
import { PropType } from 'vue';
|
|
15
15
|
import { TimePickerFocusEvent, TimePickerBlurEvent } from './interfaces/TimePickerFocusBlurEvents';
|
|
16
16
|
/**
|
|
17
|
-
* The arguments for the `
|
|
17
|
+
* The arguments for the `change` event of the TimePicker.
|
|
18
18
|
*/
|
|
19
19
|
export interface TimePickerChangeEvent {
|
|
20
|
+
/**
|
|
21
|
+
* The DOM event that triggers the change.
|
|
22
|
+
*/
|
|
20
23
|
event?: any;
|
|
24
|
+
/**
|
|
25
|
+
* The new value of the TimePicker.
|
|
26
|
+
*/
|
|
21
27
|
value: Date | null;
|
|
28
|
+
/**
|
|
29
|
+
* Shows whether the popup of the TimePicker is open.
|
|
30
|
+
*/
|
|
22
31
|
show: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The target object with the `name`, `value`, and `valueAsDate` of the TimePicker.
|
|
34
|
+
*/
|
|
23
35
|
target: any;
|
|
24
36
|
}
|
|
25
37
|
/**
|
|
26
38
|
* The arguments for the `open` event of the TimePicker.
|
|
27
39
|
*/
|
|
28
40
|
export interface TimePickerOpenEvent {
|
|
41
|
+
/**
|
|
42
|
+
* The TimePicker component instance.
|
|
43
|
+
*/
|
|
29
44
|
component: any;
|
|
30
45
|
}
|
|
31
46
|
/**
|
|
32
47
|
* The arguments for the `close` event of the TimePicker.
|
|
33
48
|
*/
|
|
34
49
|
export interface TimePickerCloseEvent {
|
|
50
|
+
/**
|
|
51
|
+
* The TimePicker component instance.
|
|
52
|
+
*/
|
|
35
53
|
component: any;
|
|
36
54
|
}
|
|
37
55
|
/**
|
|
38
|
-
* Represents the props of the [Kendo UI for Vue TimePicker component](
|
|
56
|
+
* Represents the props of the [Kendo UI for Vue TimePicker component](slug:overview_timepicker).
|
|
39
57
|
*/
|
|
40
58
|
export interface TimePickerProps extends TimePickerSettings, FormComponentProps {
|
|
41
59
|
/**
|
|
@@ -43,17 +61,19 @@ export interface TimePickerProps extends TimePickerSettings, FormComponentProps
|
|
|
43
61
|
*/
|
|
44
62
|
modelValue?: Date;
|
|
45
63
|
/**
|
|
46
|
-
* Sets the
|
|
64
|
+
* Sets the initial value of the TimePicker when you do not set `value` ([see example](slug:default_value_timepicker#toc-setting-the-default-value)).
|
|
65
|
+
*
|
|
66
|
+
* @default null
|
|
47
67
|
*/
|
|
48
68
|
defaultValue?: Date;
|
|
49
69
|
/**
|
|
50
|
-
* Fires each time the user selects a new value ([see example](
|
|
70
|
+
* Fires each time the user selects a new value. The event name is `change` ([see example](slug:controlled_timepicker#toc-controlling-the-date-value)).
|
|
51
71
|
*/
|
|
52
72
|
onChange?: (event: TimePickerChangeEvent) => void;
|
|
53
73
|
/**
|
|
54
|
-
*
|
|
74
|
+
* Sets the value of the TimePicker ([see example](slug:controlled_timepicker#toc-controlling-the-date-value)).
|
|
55
75
|
*
|
|
56
|
-
* > The `value`
|
|
76
|
+
* > The `value` must be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
|
|
57
77
|
*/
|
|
58
78
|
value?: Date | null;
|
|
59
79
|
}
|
|
@@ -67,7 +87,13 @@ export interface TimePickerComputed {
|
|
|
67
87
|
computedShow: boolean;
|
|
68
88
|
}
|
|
69
89
|
/**
|
|
70
|
-
*
|
|
90
|
+
* Represents the [Kendo UI for Vue TimePicker component](slug:overview_timepicker).
|
|
91
|
+
* Use the TimePicker to let the user type a time or select it from a popup list.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```vue
|
|
95
|
+
* <TimePicker :default-value="new Date()" :format="'HH:mm'" :steps="{ minute: 15 }" />
|
|
96
|
+
* ```
|
|
71
97
|
*/
|
|
72
98
|
declare const TimePicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
73
99
|
cancelButton: {
|
|
@@ -196,6 +222,9 @@ declare const TimePicker: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
196
222
|
}, {
|
|
197
223
|
validity(): FormComponentValidity;
|
|
198
224
|
getDateInputText(): any;
|
|
225
|
+
/**
|
|
226
|
+
* Moves the focus to the input element of the TimePicker.
|
|
227
|
+
*/
|
|
199
228
|
focus(): void;
|
|
200
229
|
normalizeTime(date: Date): Date;
|
|
201
230
|
setShow(show: boolean): void;
|
|
@@ -399,6 +399,9 @@ const ze = /* @__PURE__ */ Z({
|
|
|
399
399
|
getDateInputText() {
|
|
400
400
|
return this.computedValue ? !0 : this._dateInput ? this._dateInput._element.value : "";
|
|
401
401
|
},
|
|
402
|
+
/**
|
|
403
|
+
* Moves the focus to the input element of the TimePicker.
|
|
404
|
+
*/
|
|
402
405
|
focus() {
|
|
403
406
|
this._dateInput && this._dateInput.focus();
|
|
404
407
|
},
|
|
@@ -14,66 +14,86 @@ import { DateFormatOptions } from '@progress/kendo-vue-intl';
|
|
|
14
14
|
*/
|
|
15
15
|
export interface TimePickerSettings {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* For example these elements
|
|
17
|
+
* Sets the `id` values of the elements that describe the TimePicker, similar to the [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby).
|
|
18
|
+
* For example, these elements can contain an error or a hint message.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* This property is related to accessibility.
|
|
19
22
|
*/
|
|
20
23
|
ariaDescribedBy?: string;
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Sets the `id` values of the elements that label the TimePicker.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This property is related to accessibility.
|
|
23
29
|
*/
|
|
24
30
|
ariaLabelledBy?: string;
|
|
25
31
|
/**
|
|
26
|
-
*
|
|
32
|
+
* When you set it to `true`, the popup shows the **Cancel** button.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
27
35
|
*/
|
|
28
36
|
cancelButton?: boolean;
|
|
29
37
|
/**
|
|
30
|
-
*
|
|
38
|
+
* When you set it to `true`, the popup shows the **Now** button.
|
|
31
39
|
*
|
|
32
|
-
* > If the current time is out of range or the incremental step is greater than `1`, the **Now** button
|
|
40
|
+
* > If the current time is out of range or the incremental step is greater than `1`, the TimePicker hides the **Now** button.
|
|
33
41
|
*/
|
|
34
42
|
nowButton?: boolean;
|
|
35
43
|
/**
|
|
36
|
-
* Sets the
|
|
44
|
+
* Sets whether the popup is open on the first render ([see example](slug:default_value_timepicker#toc-setting-the-default-popup-state)).
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
37
47
|
*/
|
|
38
48
|
defaultShow?: boolean;
|
|
39
49
|
/**
|
|
40
|
-
*
|
|
50
|
+
* When you set it to `true`, the TimePicker is disabled ([see example](slug:disabled_timepicker)).
|
|
51
|
+
*
|
|
52
|
+
* @default false
|
|
41
53
|
*/
|
|
42
54
|
disabled?: boolean;
|
|
43
55
|
/**
|
|
44
|
-
*
|
|
56
|
+
* Sets the date format that the TimePicker uses to show the input value ([see example](slug:formats_timepicker)).
|
|
57
|
+
*
|
|
58
|
+
* @default 't'
|
|
45
59
|
*/
|
|
46
60
|
format?: string | DateFormatOptions;
|
|
47
61
|
/**
|
|
48
|
-
*
|
|
62
|
+
* Sets the descriptions of the format sections in the input field ([see example](slug:placeholders_timepicker)).
|
|
49
63
|
*/
|
|
50
64
|
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
51
65
|
/**
|
|
52
|
-
*
|
|
66
|
+
* Sets the `id` of the `input` element of the TimePicker. The floating label uses it to point to the input.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* This property is related to accessibility.
|
|
53
70
|
*/
|
|
54
71
|
id?: string;
|
|
55
72
|
/**
|
|
56
|
-
*
|
|
73
|
+
* Sets the latest valid time ([see example](slug:timeranges_timepicker)).
|
|
57
74
|
*/
|
|
58
75
|
max?: Date;
|
|
59
76
|
/**
|
|
60
|
-
*
|
|
77
|
+
* Sets the earliest valid time ([see example](slug:timeranges_timepicker)).
|
|
61
78
|
*/
|
|
62
79
|
min?: Date;
|
|
63
80
|
/**
|
|
64
|
-
*
|
|
81
|
+
* Sets the `name` property of the `input` DOM element.
|
|
65
82
|
*/
|
|
66
83
|
name?: string;
|
|
67
84
|
/**
|
|
68
85
|
* Renders a floating label for the TimePicker.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* This property is related to accessibility.
|
|
69
89
|
*/
|
|
70
90
|
label?: string;
|
|
71
91
|
/**
|
|
72
|
-
*
|
|
92
|
+
* Sets the placeholder text of the TimePicker.
|
|
73
93
|
*/
|
|
74
94
|
placeholder?: string;
|
|
75
95
|
/**
|
|
76
|
-
* Configures the `size` of the
|
|
96
|
+
* Configures the `size` of the TimePicker.
|
|
77
97
|
*
|
|
78
98
|
* The available options are:
|
|
79
99
|
* - small
|
|
@@ -85,7 +105,7 @@ export interface TimePickerSettings {
|
|
|
85
105
|
*/
|
|
86
106
|
size?: null | 'small' | 'medium' | 'large';
|
|
87
107
|
/**
|
|
88
|
-
* Configures the `roundness` of the
|
|
108
|
+
* Configures the `roundness` of the TimePicker.
|
|
89
109
|
*
|
|
90
110
|
* The available options are:
|
|
91
111
|
* - small
|
|
@@ -99,7 +119,7 @@ export interface TimePickerSettings {
|
|
|
99
119
|
*/
|
|
100
120
|
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
101
121
|
/**
|
|
102
|
-
* Configures the `fillMode` of the
|
|
122
|
+
* Configures the `fillMode` of the TimePicker.
|
|
103
123
|
*
|
|
104
124
|
* The available options are:
|
|
105
125
|
* - solid
|
|
@@ -112,15 +132,15 @@ export interface TimePickerSettings {
|
|
|
112
132
|
*/
|
|
113
133
|
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
114
134
|
/**
|
|
115
|
-
* Fires each time any of the TimePicker
|
|
135
|
+
* Fires each time any element of the TimePicker loses focus. The event name is `blur`.
|
|
116
136
|
*/
|
|
117
137
|
onBlur?: (event: any) => void;
|
|
118
138
|
/**
|
|
119
|
-
* Fires each time the user focuses any of the TimePicker
|
|
139
|
+
* Fires each time the user focuses any element of the TimePicker. The event name is `focus`.
|
|
120
140
|
*/
|
|
121
141
|
onFocus?: (event: any) => void;
|
|
122
142
|
/**
|
|
123
|
-
* Fires when the icon
|
|
143
|
+
* Fires when the user clicks the clock icon. The event name is `iconclick`.
|
|
124
144
|
*/
|
|
125
145
|
onIconclick?: (event: any) => void;
|
|
126
146
|
/**
|
|
@@ -128,53 +148,66 @@ export interface TimePickerSettings {
|
|
|
128
148
|
*
|
|
129
149
|
* The available options are:
|
|
130
150
|
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
131
|
-
* - `appendTo:`—
|
|
132
|
-
* - `popupClass: String`—
|
|
151
|
+
* - `appendTo:`— Sets the container to which the Popup is appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
|
|
152
|
+
* - `popupClass: String`—Sets a list of CSS classes that style the popup.
|
|
153
|
+
*
|
|
154
|
+
* @default {}
|
|
133
155
|
*/
|
|
134
156
|
popupSettings?: DateInputsPopupSettings;
|
|
135
157
|
/**
|
|
136
|
-
*
|
|
158
|
+
* Sets whether the TimePicker shows the time selector ([see example](slug:controlled_timepicker#toc-controlling-the-popup-state)).
|
|
137
159
|
*/
|
|
138
160
|
show?: boolean;
|
|
139
161
|
/**
|
|
140
|
-
* Configures the incremental steps of the TimePicker ([see example](
|
|
162
|
+
* Configures the incremental steps of the TimePicker ([see example](slug:incrementalsteps_timepicker)).
|
|
141
163
|
*
|
|
142
|
-
* > If the incremental step is greater than `1`, the **Now** button
|
|
164
|
+
* > If the incremental step is greater than `1`, the TimePicker hides the **Now** button.
|
|
165
|
+
*
|
|
166
|
+
* @default {}
|
|
143
167
|
*/
|
|
144
168
|
steps?: TimePickerIncrementalSteps;
|
|
145
169
|
/**
|
|
146
|
-
*
|
|
170
|
+
* Turns the smooth scroll animation on or off when the user clicks a time. By default, the animation is on.
|
|
171
|
+
*
|
|
172
|
+
* @default true
|
|
147
173
|
*/
|
|
148
174
|
smoothScroll?: boolean;
|
|
149
175
|
/**
|
|
150
176
|
* Sets the `tabIndex` property of the TimePicker.
|
|
177
|
+
*
|
|
178
|
+
* @default 0
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
* This property is related to accessibility.
|
|
151
182
|
*/
|
|
152
183
|
tabIndex?: number;
|
|
153
184
|
/**
|
|
154
|
-
* Sets the title of the `input` element of the TimePicker.
|
|
185
|
+
* Sets the `title` of the `input` element of the TimePicker.
|
|
186
|
+
*
|
|
187
|
+
* @default ''
|
|
155
188
|
*/
|
|
156
189
|
title?: string;
|
|
157
190
|
/**
|
|
158
|
-
*
|
|
191
|
+
* Sets the width of the TimePicker.
|
|
159
192
|
*/
|
|
160
193
|
width?: number | string;
|
|
161
194
|
/**
|
|
162
|
-
*
|
|
163
|
-
* ([see example](
|
|
195
|
+
* Lets you customize or replace the default Popup of the TimePicker
|
|
196
|
+
* ([see example](slug:custom_rendering_timepicker#toc-customizing-the-popup)).
|
|
164
197
|
*/
|
|
165
198
|
popup?: any;
|
|
166
199
|
/**
|
|
167
|
-
*
|
|
168
|
-
* ([see example](
|
|
200
|
+
* Lets you customize or replace the default DateInput of the TimePicker
|
|
201
|
+
* ([see example](slug:custom_rendering_timepicker#toc-customizing-the-dateinput)).
|
|
169
202
|
*/
|
|
170
203
|
dateInput?: any;
|
|
171
204
|
/**
|
|
172
|
-
*
|
|
205
|
+
* Sets whether the TimePicker validates its value.
|
|
173
206
|
*/
|
|
174
207
|
validate?: boolean;
|
|
175
208
|
/**
|
|
176
|
-
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
177
|
-
*
|
|
209
|
+
* Sets the built-in HTML attributes of the inner focusable `input` element.
|
|
210
|
+
* You cannot change the attributes that the component needs to work.
|
|
178
211
|
*/
|
|
179
212
|
inputAttributes?: Object;
|
|
180
213
|
}
|