@progress/kendo-vue-dateinputs 2.6.5-dev.202112060756 → 2.7.0-dev.202112070927
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/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +2 -6
- package/dist/es/daterangepicker/DateRangePicker.d.ts +13 -5
- package/dist/es/daterangepicker/DateRangePicker.js +30 -13
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +2 -6
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/datepicker/models/DatePickerSettings.d.ts +2 -6
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +13 -5
- package/dist/npm/daterangepicker/DateRangePicker.js +29 -12
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.d.ts +2 -6
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +7 -7
|
@@ -30,10 +30,6 @@ export interface DatePickerSettings {
|
|
|
30
30
|
* ([see example]({% slug custom_rendering_datepicker_native %}#toc-customizing-the-dateinput)).
|
|
31
31
|
*/
|
|
32
32
|
dateInput?: any;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the `className` of the DatePicker.
|
|
35
|
-
*/
|
|
36
|
-
className?: string;
|
|
37
33
|
/**
|
|
38
34
|
* Sets the default state of the DatePicker upon render ([see example]({% slug default_value_datepicker_native %})).
|
|
39
35
|
*/
|
|
@@ -73,11 +69,11 @@ export interface DatePickerSettings {
|
|
|
73
69
|
/**
|
|
74
70
|
* Fires each time any of the DatePicker elements gets blurred.
|
|
75
71
|
*/
|
|
76
|
-
|
|
72
|
+
blur?: (event: any) => void;
|
|
77
73
|
/**
|
|
78
74
|
* Fires each time the user focuses any of the DatePicker elements.
|
|
79
75
|
*/
|
|
80
|
-
|
|
76
|
+
focus?: (event: any) => void;
|
|
81
77
|
/**
|
|
82
78
|
* Configures the popup options of the DatePicker.
|
|
83
79
|
*
|
|
@@ -10,16 +10,17 @@ import { DateRangePickerSettings } from './models';
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export interface ReverseClickEvent {
|
|
13
|
-
|
|
13
|
+
event?: any;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* The arguments for the `onChange` event of the DateRangePicker.
|
|
17
17
|
*/
|
|
18
18
|
export interface DateRangePickerChangeEvent {
|
|
19
|
-
|
|
19
|
+
event?: any;
|
|
20
20
|
value: SelectionRange;
|
|
21
21
|
show?: boolean;
|
|
22
22
|
target: any;
|
|
23
|
+
component?: any;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Represents the props of the [Kendo UI for Vue DateRangePicker component]({% slug overview_daterangepicker %}).
|
|
@@ -36,6 +37,10 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
36
37
|
* Sets the default value of the DateRangePicker ([see example]({% slug default_value_daterangepicker %})).
|
|
37
38
|
*/
|
|
38
39
|
defaultValue?: SelectionRange;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
modelValue?: Date;
|
|
39
44
|
/**
|
|
40
45
|
* Fires each time the user selects a part of a date range ([see example]({% slug controlled_daterangepicker %}#toc-controlling-the-value)).
|
|
41
46
|
*/
|
|
@@ -51,8 +56,11 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
51
56
|
* @hidden
|
|
52
57
|
*/
|
|
53
58
|
export interface DateRangePickerData {
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
currentShow: boolean;
|
|
60
|
+
currentValue: SelectionRange;
|
|
61
|
+
valueDuringOnChange: SelectionRange | undefined;
|
|
62
|
+
shouldFocusDateInput: boolean;
|
|
63
|
+
shouldFocusCalendar: boolean;
|
|
56
64
|
}
|
|
57
65
|
/**
|
|
58
66
|
* @hidden
|
|
@@ -63,7 +71,6 @@ export interface DateRangePickerState {
|
|
|
63
71
|
_calendar: any;
|
|
64
72
|
_startDateInput: any;
|
|
65
73
|
_endDateInput: any;
|
|
66
|
-
valueDuringOnChange?: SelectionRange | null;
|
|
67
74
|
showDuringOnChange?: boolean;
|
|
68
75
|
_popupId: string;
|
|
69
76
|
_startInputId: string;
|
|
@@ -78,6 +85,7 @@ export interface DateRangePickerState {
|
|
|
78
85
|
*/
|
|
79
86
|
export interface DateRangePickerComputed {
|
|
80
87
|
[key: string]: any;
|
|
88
|
+
rootClassName: object;
|
|
81
89
|
computedValue: SelectionRange;
|
|
82
90
|
computedShow: boolean;
|
|
83
91
|
}
|
|
@@ -22,7 +22,7 @@ var ref = allVue.ref;
|
|
|
22
22
|
var inject = allVue.inject;
|
|
23
23
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
24
24
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
25
|
-
import { guid,
|
|
25
|
+
import { guid, Keys, canUseDOM } from '@progress/kendo-vue-common';
|
|
26
26
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
27
27
|
import { validatePackage, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
28
28
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -41,9 +41,14 @@ var DateRangePicker = {
|
|
|
41
41
|
emits: {
|
|
42
42
|
blur: null,
|
|
43
43
|
change: null,
|
|
44
|
+
'changemodel': null,
|
|
45
|
+
'update:modelValue': null,
|
|
44
46
|
focus: null,
|
|
45
47
|
keydown: null
|
|
46
48
|
},
|
|
49
|
+
model: {
|
|
50
|
+
event: 'changemodel'
|
|
51
|
+
},
|
|
47
52
|
props: {
|
|
48
53
|
allowReverse: {
|
|
49
54
|
type: Boolean,
|
|
@@ -60,6 +65,10 @@ var DateRangePicker = {
|
|
|
60
65
|
return EMPTY_SELECTIONRANGE;
|
|
61
66
|
}
|
|
62
67
|
},
|
|
68
|
+
modelValue: {
|
|
69
|
+
type: Object,
|
|
70
|
+
default: undefined
|
|
71
|
+
},
|
|
63
72
|
disabled: {
|
|
64
73
|
type: Boolean,
|
|
65
74
|
default: false
|
|
@@ -169,8 +178,14 @@ var DateRangePicker = {
|
|
|
169
178
|
};
|
|
170
179
|
},
|
|
171
180
|
computed: {
|
|
181
|
+
rootClassName: function rootClassName() {
|
|
182
|
+
return {
|
|
183
|
+
'k-daterangepicker': true,
|
|
184
|
+
'k-state-disabled': this.$props.disabled
|
|
185
|
+
};
|
|
186
|
+
},
|
|
172
187
|
computedValue: function computedValue() {
|
|
173
|
-
var value = this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.currentValue;
|
|
188
|
+
var value = this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
174
189
|
return value || EMPTY_SELECTIONRANGE;
|
|
175
190
|
},
|
|
176
191
|
computedShow: function computedShow() {
|
|
@@ -196,9 +211,6 @@ var DateRangePicker = {
|
|
|
196
211
|
var value = this.computedValue || EMPTY_SELECTIONRANGE;
|
|
197
212
|
var startDateInputId = (this.$props.startDateInputSettings || {}).id || this._startInputId;
|
|
198
213
|
var endDateInputId = (this.$props.endDateInputSettings || {}).id || this._endInputId;
|
|
199
|
-
var rootClassName = classNames('k-daterangepicker', {
|
|
200
|
-
'k-state-disabled': this.$props.disabled
|
|
201
|
-
}, this.$props.className);
|
|
202
214
|
var localizationService = provideLocalizationService(this);
|
|
203
215
|
var startMessage = localizationService.toLanguageString(start, messages[start]);
|
|
204
216
|
var endMessage = localizationService.toLanguageString(end, messages[end]);
|
|
@@ -216,7 +228,7 @@ var DateRangePicker = {
|
|
|
216
228
|
ariaHasPopup: true,
|
|
217
229
|
ariaExpanded: this.computedShow,
|
|
218
230
|
value: value.start
|
|
219
|
-
}, this.$props.
|
|
231
|
+
}, this.$props.startDateInputSettings);
|
|
220
232
|
|
|
221
233
|
var startDateInputDefaultRendering = h(DateInput, __assign(__assign({
|
|
222
234
|
ref: this.v3 ? function (el) {
|
|
@@ -369,7 +381,7 @@ var DateRangePicker = {
|
|
|
369
381
|
"class": "k-icon k-i-arrows-swap"
|
|
370
382
|
})]);
|
|
371
383
|
return h("span", {
|
|
372
|
-
"class": rootClassName,
|
|
384
|
+
"class": this.rootClassName,
|
|
373
385
|
style: this.$props.style,
|
|
374
386
|
id: this.$props.id,
|
|
375
387
|
attrs: this.v3 ? undefined : {
|
|
@@ -433,13 +445,11 @@ var DateRangePicker = {
|
|
|
433
445
|
}
|
|
434
446
|
},
|
|
435
447
|
calculateValue: function calculateValue(props, state) {
|
|
436
|
-
var value = props.value !== undefined ? props.value
|
|
437
|
-
: state.value;
|
|
448
|
+
var value = props.value !== undefined ? props.value : state.currentValue;
|
|
438
449
|
return value || EMPTY_SELECTIONRANGE;
|
|
439
450
|
},
|
|
440
451
|
calculateShow: function calculateShow(nextProps, nextState) {
|
|
441
|
-
return nextProps.show !== undefined ? nextProps.show
|
|
442
|
-
: nextState.show;
|
|
452
|
+
return nextProps.show !== undefined ? nextProps.show : nextState.currentShow;
|
|
443
453
|
},
|
|
444
454
|
setShow: function setShow(show) {
|
|
445
455
|
if (this.currentShow === show) {
|
|
@@ -454,7 +464,7 @@ var DateRangePicker = {
|
|
|
454
464
|
end: this.computedValue.start
|
|
455
465
|
};
|
|
456
466
|
var args = {
|
|
457
|
-
|
|
467
|
+
event: event.event
|
|
458
468
|
};
|
|
459
469
|
this.handleChange(value, args);
|
|
460
470
|
},
|
|
@@ -579,9 +589,16 @@ var DateRangePicker = {
|
|
|
579
589
|
event: event.event,
|
|
580
590
|
value: this.computedValue,
|
|
581
591
|
show: this.computedShow,
|
|
582
|
-
|
|
592
|
+
component: this,
|
|
593
|
+
target: {
|
|
594
|
+
name: this.$props.name,
|
|
595
|
+
value: this.computedValue,
|
|
596
|
+
show: this.computedShow
|
|
597
|
+
}
|
|
583
598
|
};
|
|
584
599
|
this.$emit('change', args);
|
|
600
|
+
this.$emit('changemodel', this.computedValue);
|
|
601
|
+
this.$emit('update:modelValue', this.computedValue);
|
|
585
602
|
this.valueDuringOnChange = undefined;
|
|
586
603
|
}
|
|
587
604
|
}
|
|
@@ -35,10 +35,6 @@ export interface DateRangePickerSettings {
|
|
|
35
35
|
* Represents the additional props that can be passed to the [MultiViewCalendar]({% slug overview_multiviewcalendar %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-the-multiviewcalendar)).
|
|
36
36
|
*/
|
|
37
37
|
calendarSettings?: DateRangePickerCalendarSettings;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the `className` of the DateRangePicker.
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
38
|
/**
|
|
43
39
|
* Sets the default state of the DateRangePicker upon render ([see example]({% slug default_value_daterangepicker %})).
|
|
44
40
|
*/
|
|
@@ -85,11 +81,11 @@ export interface DateRangePickerSettings {
|
|
|
85
81
|
/**
|
|
86
82
|
* Fires each time any of the DateRangePicker elements gets blurred.
|
|
87
83
|
*/
|
|
88
|
-
|
|
84
|
+
blur?: (event: any) => void;
|
|
89
85
|
/**
|
|
90
86
|
* Fires each time the user focuses any of the DateRangePicker elements.
|
|
91
87
|
*/
|
|
92
|
-
|
|
88
|
+
focus?: (event: any) => void;
|
|
93
89
|
/**
|
|
94
90
|
* Represents the additional props that will be passed to the [Popup]({% slug overview_popup %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-the-popup)).
|
|
95
91
|
*/
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dateinputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1638868807,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -30,10 +30,6 @@ export interface DatePickerSettings {
|
|
|
30
30
|
* ([see example]({% slug custom_rendering_datepicker_native %}#toc-customizing-the-dateinput)).
|
|
31
31
|
*/
|
|
32
32
|
dateInput?: any;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the `className` of the DatePicker.
|
|
35
|
-
*/
|
|
36
|
-
className?: string;
|
|
37
33
|
/**
|
|
38
34
|
* Sets the default state of the DatePicker upon render ([see example]({% slug default_value_datepicker_native %})).
|
|
39
35
|
*/
|
|
@@ -73,11 +69,11 @@ export interface DatePickerSettings {
|
|
|
73
69
|
/**
|
|
74
70
|
* Fires each time any of the DatePicker elements gets blurred.
|
|
75
71
|
*/
|
|
76
|
-
|
|
72
|
+
blur?: (event: any) => void;
|
|
77
73
|
/**
|
|
78
74
|
* Fires each time the user focuses any of the DatePicker elements.
|
|
79
75
|
*/
|
|
80
|
-
|
|
76
|
+
focus?: (event: any) => void;
|
|
81
77
|
/**
|
|
82
78
|
* Configures the popup options of the DatePicker.
|
|
83
79
|
*
|
|
@@ -10,16 +10,17 @@ import { DateRangePickerSettings } from './models';
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export interface ReverseClickEvent {
|
|
13
|
-
|
|
13
|
+
event?: any;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* The arguments for the `onChange` event of the DateRangePicker.
|
|
17
17
|
*/
|
|
18
18
|
export interface DateRangePickerChangeEvent {
|
|
19
|
-
|
|
19
|
+
event?: any;
|
|
20
20
|
value: SelectionRange;
|
|
21
21
|
show?: boolean;
|
|
22
22
|
target: any;
|
|
23
|
+
component?: any;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Represents the props of the [Kendo UI for Vue DateRangePicker component]({% slug overview_daterangepicker %}).
|
|
@@ -36,6 +37,10 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
36
37
|
* Sets the default value of the DateRangePicker ([see example]({% slug default_value_daterangepicker %})).
|
|
37
38
|
*/
|
|
38
39
|
defaultValue?: SelectionRange;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
modelValue?: Date;
|
|
39
44
|
/**
|
|
40
45
|
* Fires each time the user selects a part of a date range ([see example]({% slug controlled_daterangepicker %}#toc-controlling-the-value)).
|
|
41
46
|
*/
|
|
@@ -51,8 +56,11 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
51
56
|
* @hidden
|
|
52
57
|
*/
|
|
53
58
|
export interface DateRangePickerData {
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
currentShow: boolean;
|
|
60
|
+
currentValue: SelectionRange;
|
|
61
|
+
valueDuringOnChange: SelectionRange | undefined;
|
|
62
|
+
shouldFocusDateInput: boolean;
|
|
63
|
+
shouldFocusCalendar: boolean;
|
|
56
64
|
}
|
|
57
65
|
/**
|
|
58
66
|
* @hidden
|
|
@@ -63,7 +71,6 @@ export interface DateRangePickerState {
|
|
|
63
71
|
_calendar: any;
|
|
64
72
|
_startDateInput: any;
|
|
65
73
|
_endDateInput: any;
|
|
66
|
-
valueDuringOnChange?: SelectionRange | null;
|
|
67
74
|
showDuringOnChange?: boolean;
|
|
68
75
|
_popupId: string;
|
|
69
76
|
_startInputId: string;
|
|
@@ -78,6 +85,7 @@ export interface DateRangePickerState {
|
|
|
78
85
|
*/
|
|
79
86
|
export interface DateRangePickerComputed {
|
|
80
87
|
[key: string]: any;
|
|
88
|
+
rootClassName: object;
|
|
81
89
|
computedValue: SelectionRange;
|
|
82
90
|
computedShow: boolean;
|
|
83
91
|
}
|
|
@@ -60,9 +60,14 @@ var DateRangePicker = {
|
|
|
60
60
|
emits: {
|
|
61
61
|
blur: null,
|
|
62
62
|
change: null,
|
|
63
|
+
'changemodel': null,
|
|
64
|
+
'update:modelValue': null,
|
|
63
65
|
focus: null,
|
|
64
66
|
keydown: null
|
|
65
67
|
},
|
|
68
|
+
model: {
|
|
69
|
+
event: 'changemodel'
|
|
70
|
+
},
|
|
66
71
|
props: {
|
|
67
72
|
allowReverse: {
|
|
68
73
|
type: Boolean,
|
|
@@ -79,6 +84,10 @@ var DateRangePicker = {
|
|
|
79
84
|
return models_1.EMPTY_SELECTIONRANGE;
|
|
80
85
|
}
|
|
81
86
|
},
|
|
87
|
+
modelValue: {
|
|
88
|
+
type: Object,
|
|
89
|
+
default: undefined
|
|
90
|
+
},
|
|
82
91
|
disabled: {
|
|
83
92
|
type: Boolean,
|
|
84
93
|
default: false
|
|
@@ -188,8 +197,14 @@ var DateRangePicker = {
|
|
|
188
197
|
};
|
|
189
198
|
},
|
|
190
199
|
computed: {
|
|
200
|
+
rootClassName: function rootClassName() {
|
|
201
|
+
return {
|
|
202
|
+
'k-daterangepicker': true,
|
|
203
|
+
'k-state-disabled': this.$props.disabled
|
|
204
|
+
};
|
|
205
|
+
},
|
|
191
206
|
computedValue: function computedValue() {
|
|
192
|
-
var value = this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.currentValue;
|
|
207
|
+
var value = this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
193
208
|
return value || models_1.EMPTY_SELECTIONRANGE;
|
|
194
209
|
},
|
|
195
210
|
computedShow: function computedShow() {
|
|
@@ -215,9 +230,6 @@ var DateRangePicker = {
|
|
|
215
230
|
var value = this.computedValue || models_1.EMPTY_SELECTIONRANGE;
|
|
216
231
|
var startDateInputId = (this.$props.startDateInputSettings || {}).id || this._startInputId;
|
|
217
232
|
var endDateInputId = (this.$props.endDateInputSettings || {}).id || this._endInputId;
|
|
218
|
-
var rootClassName = kendo_vue_common_1.classNames('k-daterangepicker', {
|
|
219
|
-
'k-state-disabled': this.$props.disabled
|
|
220
|
-
}, this.$props.className);
|
|
221
233
|
var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
222
234
|
var startMessage = localizationService.toLanguageString(messages_1.start, messages_1.messages[messages_1.start]);
|
|
223
235
|
var endMessage = localizationService.toLanguageString(messages_1.end, messages_1.messages[messages_1.end]);
|
|
@@ -235,7 +247,7 @@ var DateRangePicker = {
|
|
|
235
247
|
ariaHasPopup: true,
|
|
236
248
|
ariaExpanded: this.computedShow,
|
|
237
249
|
value: value.start
|
|
238
|
-
}, this.$props.
|
|
250
|
+
}, this.$props.startDateInputSettings);
|
|
239
251
|
|
|
240
252
|
var startDateInputDefaultRendering = h(DateInput_1.DateInput, __assign(__assign({
|
|
241
253
|
ref: this.v3 ? function (el) {
|
|
@@ -388,7 +400,7 @@ var DateRangePicker = {
|
|
|
388
400
|
"class": "k-icon k-i-arrows-swap"
|
|
389
401
|
})]);
|
|
390
402
|
return h("span", {
|
|
391
|
-
"class": rootClassName,
|
|
403
|
+
"class": this.rootClassName,
|
|
392
404
|
style: this.$props.style,
|
|
393
405
|
id: this.$props.id,
|
|
394
406
|
attrs: this.v3 ? undefined : {
|
|
@@ -452,13 +464,11 @@ var DateRangePicker = {
|
|
|
452
464
|
}
|
|
453
465
|
},
|
|
454
466
|
calculateValue: function calculateValue(props, state) {
|
|
455
|
-
var value = props.value !== undefined ? props.value
|
|
456
|
-
: state.value;
|
|
467
|
+
var value = props.value !== undefined ? props.value : state.currentValue;
|
|
457
468
|
return value || models_1.EMPTY_SELECTIONRANGE;
|
|
458
469
|
},
|
|
459
470
|
calculateShow: function calculateShow(nextProps, nextState) {
|
|
460
|
-
return nextProps.show !== undefined ? nextProps.show
|
|
461
|
-
: nextState.show;
|
|
471
|
+
return nextProps.show !== undefined ? nextProps.show : nextState.currentShow;
|
|
462
472
|
},
|
|
463
473
|
setShow: function setShow(show) {
|
|
464
474
|
if (this.currentShow === show) {
|
|
@@ -473,7 +483,7 @@ var DateRangePicker = {
|
|
|
473
483
|
end: this.computedValue.start
|
|
474
484
|
};
|
|
475
485
|
var args = {
|
|
476
|
-
|
|
486
|
+
event: event.event
|
|
477
487
|
};
|
|
478
488
|
this.handleChange(value, args);
|
|
479
489
|
},
|
|
@@ -598,9 +608,16 @@ var DateRangePicker = {
|
|
|
598
608
|
event: event.event,
|
|
599
609
|
value: this.computedValue,
|
|
600
610
|
show: this.computedShow,
|
|
601
|
-
|
|
611
|
+
component: this,
|
|
612
|
+
target: {
|
|
613
|
+
name: this.$props.name,
|
|
614
|
+
value: this.computedValue,
|
|
615
|
+
show: this.computedShow
|
|
616
|
+
}
|
|
602
617
|
};
|
|
603
618
|
this.$emit('change', args);
|
|
619
|
+
this.$emit('changemodel', this.computedValue);
|
|
620
|
+
this.$emit('update:modelValue', this.computedValue);
|
|
604
621
|
this.valueDuringOnChange = undefined;
|
|
605
622
|
}
|
|
606
623
|
}
|
|
@@ -35,10 +35,6 @@ export interface DateRangePickerSettings {
|
|
|
35
35
|
* Represents the additional props that can be passed to the [MultiViewCalendar]({% slug overview_multiviewcalendar %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-the-multiviewcalendar)).
|
|
36
36
|
*/
|
|
37
37
|
calendarSettings?: DateRangePickerCalendarSettings;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the `className` of the DateRangePicker.
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
38
|
/**
|
|
43
39
|
* Sets the default state of the DateRangePicker upon render ([see example]({% slug default_value_daterangepicker %})).
|
|
44
40
|
*/
|
|
@@ -85,11 +81,11 @@ export interface DateRangePickerSettings {
|
|
|
85
81
|
/**
|
|
86
82
|
* Fires each time any of the DateRangePicker elements gets blurred.
|
|
87
83
|
*/
|
|
88
|
-
|
|
84
|
+
blur?: (event: any) => void;
|
|
89
85
|
/**
|
|
90
86
|
* Fires each time the user focuses any of the DateRangePicker elements.
|
|
91
87
|
*/
|
|
92
|
-
|
|
88
|
+
focus?: (event: any) => void;
|
|
93
89
|
/**
|
|
94
90
|
* Represents the additional props that will be passed to the [Popup]({% slug overview_popup %}) inside the DateRangePicker ([see example]({% slug child_settings_daterangepicker %}#toc-configuring-the-popup)).
|
|
95
91
|
*/
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-dateinputs',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1638868807,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-dateinputs",
|
|
3
3
|
"description": "Kendo UI for Vue Date Inputs package",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.7.0-dev.202112070927",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@progress/kendo-date-math": "1.5.1",
|
|
49
|
-
"@progress/kendo-vue-buttons": "2.
|
|
50
|
-
"@progress/kendo-vue-common": "2.
|
|
51
|
-
"@progress/kendo-vue-labels": "2.
|
|
52
|
-
"@progress/kendo-vue-popup": "2.
|
|
49
|
+
"@progress/kendo-vue-buttons": "2.7.0-dev.202112070927",
|
|
50
|
+
"@progress/kendo-vue-common": "2.7.0-dev.202112070927",
|
|
51
|
+
"@progress/kendo-vue-labels": "2.7.0-dev.202112070927",
|
|
52
|
+
"@progress/kendo-vue-popup": "2.7.0-dev.202112070927"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@progress/kendo-data-query": "^1.5.4",
|
|
56
56
|
"@progress/kendo-licensing": "^1.1.0",
|
|
57
|
-
"@progress/kendo-vue-dropdowns": "2.
|
|
58
|
-
"@progress/kendo-vue-intl": "2.
|
|
57
|
+
"@progress/kendo-vue-dropdowns": "2.7.0-dev.202112070927",
|
|
58
|
+
"@progress/kendo-vue-intl": "2.7.0-dev.202112070927"
|
|
59
59
|
},
|
|
60
60
|
"author": "Progress",
|
|
61
61
|
"license": "SEE LICENSE IN LICENSE.md",
|