@progress/kendo-vue-dateinputs 2.6.5-dev.202112060756 → 2.6.5-dev.202112061409
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/daterangepicker/DateRangePicker.d.ts +4 -2
- package/dist/es/daterangepicker/DateRangePicker.js +16 -8
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +0 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +4 -2
- package/dist/npm/daterangepicker/DateRangePicker.js +15 -7
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.d.ts +0 -4
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +7 -7
|
@@ -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 %}).
|
|
@@ -78,6 +79,7 @@ export interface DateRangePickerState {
|
|
|
78
79
|
*/
|
|
79
80
|
export interface DateRangePickerComputed {
|
|
80
81
|
[key: string]: any;
|
|
82
|
+
rootClassName: object;
|
|
81
83
|
computedValue: SelectionRange;
|
|
82
84
|
computedShow: boolean;
|
|
83
85
|
}
|
|
@@ -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';
|
|
@@ -169,6 +169,12 @@ var DateRangePicker = {
|
|
|
169
169
|
};
|
|
170
170
|
},
|
|
171
171
|
computed: {
|
|
172
|
+
rootClassName: function rootClassName() {
|
|
173
|
+
return {
|
|
174
|
+
'k-daterangepicker': true,
|
|
175
|
+
'k-state-disabled': this.$props.disabled
|
|
176
|
+
};
|
|
177
|
+
},
|
|
172
178
|
computedValue: function computedValue() {
|
|
173
179
|
var value = this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.currentValue;
|
|
174
180
|
return value || EMPTY_SELECTIONRANGE;
|
|
@@ -196,9 +202,6 @@ var DateRangePicker = {
|
|
|
196
202
|
var value = this.computedValue || EMPTY_SELECTIONRANGE;
|
|
197
203
|
var startDateInputId = (this.$props.startDateInputSettings || {}).id || this._startInputId;
|
|
198
204
|
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
205
|
var localizationService = provideLocalizationService(this);
|
|
203
206
|
var startMessage = localizationService.toLanguageString(start, messages[start]);
|
|
204
207
|
var endMessage = localizationService.toLanguageString(end, messages[end]);
|
|
@@ -216,7 +219,7 @@ var DateRangePicker = {
|
|
|
216
219
|
ariaHasPopup: true,
|
|
217
220
|
ariaExpanded: this.computedShow,
|
|
218
221
|
value: value.start
|
|
219
|
-
}, this.$props.
|
|
222
|
+
}, this.$props.startDateInputSettings);
|
|
220
223
|
|
|
221
224
|
var startDateInputDefaultRendering = h(DateInput, __assign(__assign({
|
|
222
225
|
ref: this.v3 ? function (el) {
|
|
@@ -369,7 +372,7 @@ var DateRangePicker = {
|
|
|
369
372
|
"class": "k-icon k-i-arrows-swap"
|
|
370
373
|
})]);
|
|
371
374
|
return h("span", {
|
|
372
|
-
"class": rootClassName,
|
|
375
|
+
"class": this.rootClassName,
|
|
373
376
|
style: this.$props.style,
|
|
374
377
|
id: this.$props.id,
|
|
375
378
|
attrs: this.v3 ? undefined : {
|
|
@@ -454,7 +457,7 @@ var DateRangePicker = {
|
|
|
454
457
|
end: this.computedValue.start
|
|
455
458
|
};
|
|
456
459
|
var args = {
|
|
457
|
-
|
|
460
|
+
event: event.event
|
|
458
461
|
};
|
|
459
462
|
this.handleChange(value, args);
|
|
460
463
|
},
|
|
@@ -579,7 +582,12 @@ var DateRangePicker = {
|
|
|
579
582
|
event: event.event,
|
|
580
583
|
value: this.computedValue,
|
|
581
584
|
show: this.computedShow,
|
|
582
|
-
|
|
585
|
+
component: this,
|
|
586
|
+
target: {
|
|
587
|
+
name: this.$props.name,
|
|
588
|
+
value: this.computedValue,
|
|
589
|
+
show: this.computedShow
|
|
590
|
+
}
|
|
583
591
|
};
|
|
584
592
|
this.$emit('change', args);
|
|
585
593
|
this.valueDuringOnChange = undefined;
|
|
@@ -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
|
*/
|
|
@@ -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: 1638799209,
|
|
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
|
};
|
|
@@ -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 %}).
|
|
@@ -78,6 +79,7 @@ export interface DateRangePickerState {
|
|
|
78
79
|
*/
|
|
79
80
|
export interface DateRangePickerComputed {
|
|
80
81
|
[key: string]: any;
|
|
82
|
+
rootClassName: object;
|
|
81
83
|
computedValue: SelectionRange;
|
|
82
84
|
computedShow: boolean;
|
|
83
85
|
}
|
|
@@ -188,6 +188,12 @@ var DateRangePicker = {
|
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
190
|
computed: {
|
|
191
|
+
rootClassName: function rootClassName() {
|
|
192
|
+
return {
|
|
193
|
+
'k-daterangepicker': true,
|
|
194
|
+
'k-state-disabled': this.$props.disabled
|
|
195
|
+
};
|
|
196
|
+
},
|
|
191
197
|
computedValue: function computedValue() {
|
|
192
198
|
var value = this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.currentValue;
|
|
193
199
|
return value || models_1.EMPTY_SELECTIONRANGE;
|
|
@@ -215,9 +221,6 @@ var DateRangePicker = {
|
|
|
215
221
|
var value = this.computedValue || models_1.EMPTY_SELECTIONRANGE;
|
|
216
222
|
var startDateInputId = (this.$props.startDateInputSettings || {}).id || this._startInputId;
|
|
217
223
|
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
224
|
var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
222
225
|
var startMessage = localizationService.toLanguageString(messages_1.start, messages_1.messages[messages_1.start]);
|
|
223
226
|
var endMessage = localizationService.toLanguageString(messages_1.end, messages_1.messages[messages_1.end]);
|
|
@@ -235,7 +238,7 @@ var DateRangePicker = {
|
|
|
235
238
|
ariaHasPopup: true,
|
|
236
239
|
ariaExpanded: this.computedShow,
|
|
237
240
|
value: value.start
|
|
238
|
-
}, this.$props.
|
|
241
|
+
}, this.$props.startDateInputSettings);
|
|
239
242
|
|
|
240
243
|
var startDateInputDefaultRendering = h(DateInput_1.DateInput, __assign(__assign({
|
|
241
244
|
ref: this.v3 ? function (el) {
|
|
@@ -388,7 +391,7 @@ var DateRangePicker = {
|
|
|
388
391
|
"class": "k-icon k-i-arrows-swap"
|
|
389
392
|
})]);
|
|
390
393
|
return h("span", {
|
|
391
|
-
"class": rootClassName,
|
|
394
|
+
"class": this.rootClassName,
|
|
392
395
|
style: this.$props.style,
|
|
393
396
|
id: this.$props.id,
|
|
394
397
|
attrs: this.v3 ? undefined : {
|
|
@@ -473,7 +476,7 @@ var DateRangePicker = {
|
|
|
473
476
|
end: this.computedValue.start
|
|
474
477
|
};
|
|
475
478
|
var args = {
|
|
476
|
-
|
|
479
|
+
event: event.event
|
|
477
480
|
};
|
|
478
481
|
this.handleChange(value, args);
|
|
479
482
|
},
|
|
@@ -598,7 +601,12 @@ var DateRangePicker = {
|
|
|
598
601
|
event: event.event,
|
|
599
602
|
value: this.computedValue,
|
|
600
603
|
show: this.computedShow,
|
|
601
|
-
|
|
604
|
+
component: this,
|
|
605
|
+
target: {
|
|
606
|
+
name: this.$props.name,
|
|
607
|
+
value: this.computedValue,
|
|
608
|
+
show: this.computedShow
|
|
609
|
+
}
|
|
602
610
|
};
|
|
603
611
|
this.$emit('change', args);
|
|
604
612
|
this.valueDuringOnChange = undefined;
|
|
@@ -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
|
*/
|
|
@@ -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: 1638799209,
|
|
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.6.5-dev.
|
|
4
|
+
"version": "2.6.5-dev.202112061409",
|
|
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.6.5-dev.
|
|
50
|
-
"@progress/kendo-vue-common": "2.6.5-dev.
|
|
51
|
-
"@progress/kendo-vue-labels": "2.6.5-dev.
|
|
52
|
-
"@progress/kendo-vue-popup": "2.6.5-dev.
|
|
49
|
+
"@progress/kendo-vue-buttons": "2.6.5-dev.202112061409",
|
|
50
|
+
"@progress/kendo-vue-common": "2.6.5-dev.202112061409",
|
|
51
|
+
"@progress/kendo-vue-labels": "2.6.5-dev.202112061409",
|
|
52
|
+
"@progress/kendo-vue-popup": "2.6.5-dev.202112061409"
|
|
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.6.5-dev.
|
|
58
|
-
"@progress/kendo-vue-intl": "2.6.5-dev.
|
|
57
|
+
"@progress/kendo-vue-dropdowns": "2.6.5-dev.202112061409",
|
|
58
|
+
"@progress/kendo-vue-intl": "2.6.5-dev.202112061409"
|
|
59
59
|
},
|
|
60
60
|
"author": "Progress",
|
|
61
61
|
"license": "SEE LICENSE IN LICENSE.md",
|