@progress/kendo-vue-dateinputs 3.0.3 → 3.0.5-dev.202202071439

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.
@@ -26,15 +26,15 @@ export interface CalendarProps extends CalendarSettings {
26
26
  /**
27
27
  * An event that is called after the value of the Calendar has changed.
28
28
  */
29
- change?: (event: CalendarChangeEvent) => void;
29
+ onChange?: (event: CalendarChangeEvent) => void;
30
30
  /**
31
31
  * An event called when the week number cell is clicked.
32
32
  */
33
- weekcellclick?: (event: CalendarWeekCellClickEvent) => void;
33
+ onWeekcellclick?: (event: CalendarWeekCellClickEvent) => void;
34
34
  /**
35
35
  * An event called when the week name cell is clicked.
36
36
  */
37
- weeknameclick?: (event: CalendarWeekNameClickEvent) => void;
37
+ onWeeknameclick?: (event: CalendarWeekNameClickEvent) => void;
38
38
  /**
39
39
  * Sets the value of the Calendar.
40
40
  */
@@ -27,5 +27,5 @@ export interface DateInputProps extends FormComponentProps, DateInputSettings {
27
27
  /**
28
28
  * Determines the event handler that will be fired when the user edits the value ([see example]({% slug dateranges_dateinput_native %}).
29
29
  */
30
- change?: (event: any) => void;
30
+ onChange?: (event: any) => void;
31
31
  }
@@ -34,7 +34,8 @@ var DatePicker = {
34
34
  'update:modelValue': null,
35
35
  'iconclick': null,
36
36
  'focus': null,
37
- 'blur': null
37
+ 'blur': null,
38
+ 'keydown': null
38
39
  },
39
40
  props: {
40
41
  defaultShow: {
@@ -360,7 +361,7 @@ var DatePicker = {
360
361
  var altKey = event.altKey,
361
362
  keyCode = event.keyCode;
362
363
 
363
- if (keyCode === Keys.tab && event.target !== this._dateInput._element) {
364
+ if (keyCode === Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
364
365
  event.preventDefault();
365
366
  this.$data.shouldFocusDateInput = true;
366
367
  this.setShow(false);
@@ -379,6 +380,8 @@ var DatePicker = {
379
380
  this.$data.shouldFocusDateInput = keyCode === Keys.up;
380
381
  this.setShow(keyCode === Keys.down);
381
382
  }
383
+
384
+ this.$emit('keydown', event);
382
385
  }
383
386
  },
384
387
  // @ts-ignore
@@ -16,11 +16,11 @@ export interface DatePickerProps extends DatePickerSettings, FormComponentProps
16
16
  /**
17
17
  * Fires each time the user selects a new value ([see example]({% slug controlled_datepicker_native %}#toc-controlling-the-date-value)).
18
18
  */
19
- change?: (event: DatePickerChangeEvent) => void;
19
+ onChange?: (event: DatePickerChangeEvent) => void;
20
20
  /**
21
21
  * Fires when the icon element is clicked.
22
22
  */
23
- iconclick?: (event: any) => void;
23
+ onIconclick?: (event: any) => void;
24
24
  /**
25
25
  * Renders a floating label for the DatePicker.
26
26
  */
@@ -108,11 +108,11 @@ export interface DatePickerSettings {
108
108
  /**
109
109
  * Fires each time any of the DatePicker elements gets blurred.
110
110
  */
111
- blur?: (event: any) => void;
111
+ onBlur?: (event: any) => void;
112
112
  /**
113
113
  * Fires each time the user focuses any of the DatePicker elements.
114
114
  */
115
- focus?: (event: any) => void;
115
+ onFocus?: (event: any) => void;
116
116
  /**
117
117
  * Configures the popup options of the DatePicker.
118
118
  *
@@ -120,11 +120,11 @@ export interface DateRangePickerSettings {
120
120
  /**
121
121
  * Fires each time any of the DateRangePicker elements gets blurred.
122
122
  */
123
- blur?: (event: any) => void;
123
+ onBlur?: (event: any) => void;
124
124
  /**
125
125
  * Fires each time the user focuses any of the DateRangePicker elements.
126
126
  */
127
- focus?: (event: any) => void;
127
+ onFocus?: (event: any) => void;
128
128
  /**
129
129
  * 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)).
130
130
  */
@@ -28,7 +28,8 @@ var DateTimePicker = {
28
28
  'iconclick': null,
29
29
  'change': null,
30
30
  'focus': null,
31
- 'blur': null
31
+ 'blur': null,
32
+ 'keydown': null
32
33
  },
33
34
  props: {
34
35
  modelValue: {
@@ -627,7 +628,7 @@ var DateTimePicker = {
627
628
  var altKey = event.altKey,
628
629
  keyCode = event.keyCode;
629
630
 
630
- if (keyCode === Keys.tab && event.target !== this._dateInput._element) {
631
+ if (keyCode === Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
631
632
  event.preventDefault();
632
633
  this.$data.shouldFocusDateInput = true;
633
634
  this.setShow(false);
@@ -646,6 +647,8 @@ var DateTimePicker = {
646
647
  this.shouldFocusDateInput = keyCode === Keys.up;
647
648
  this.setShow(keyCode === Keys.down);
648
649
  }
650
+
651
+ this.$emit('keydown', event);
649
652
  },
650
653
  dateInputElement: function dateInputElement() {
651
654
  return this._dateInput && this._dateInput.$el || this._wrapper && this._wrapper.querySelector('.k-dateinput-wrap > input.k-input');
@@ -134,15 +134,15 @@ export interface DateTimePickerSettings {
134
134
  /**
135
135
  * Fires each time any of the DateTimePicker elements gets blurred.
136
136
  */
137
- blur?: (event: any) => void;
137
+ onBlur?: (event: any) => void;
138
138
  /**
139
139
  * Fires each time the user focuses any of the DateTimePicker elements.
140
140
  */
141
- focus?: (event: any) => void;
141
+ onFocus?: (event: any) => void;
142
142
  /**
143
143
  * Fires when the icon element is clicked.
144
144
  */
145
- iconclick?: (event: any) => void;
145
+ onIconclick?: (event: any) => void;
146
146
  /**
147
147
  * Specifies if the popup will be displayed
148
148
  * ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
@@ -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: 1643353703,
8
+ publishDate: 1644244488,
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
  };
@@ -41,7 +41,8 @@ var TimePicker = {
41
41
  'iconclick': null,
42
42
  'change': null,
43
43
  'focus': null,
44
- 'blur': null
44
+ 'blur': null,
45
+ 'keydown': null
45
46
  },
46
47
  model: {
47
48
  event: 'changemodel'
@@ -657,6 +658,8 @@ var TimePicker = {
657
658
  this.shouldFocusDateInput = keyCode === Keys.up;
658
659
  this.setShow(keyCode === Keys.down);
659
660
  }
661
+
662
+ this.$emit('keydown', event);
660
663
  }
661
664
  }
662
665
  };
@@ -107,15 +107,15 @@ export interface TimePickerSettings {
107
107
  /**
108
108
  * Fires each time any of the TimePicker elements gets blurred.
109
109
  */
110
- blur?: (event: any) => void;
110
+ onBlur?: (event: any) => void;
111
111
  /**
112
112
  * Fires each time the user focuses any of the TimePicker elements.
113
113
  */
114
- focus?: (event: any) => void;
114
+ onFocus?: (event: any) => void;
115
115
  /**
116
116
  * Fires when the icon element is clicked.
117
117
  */
118
- iconclick?: (event: any) => void;
118
+ onIconclick?: (event: any) => void;
119
119
  /**
120
120
  * Configures the popup options of the TimePicker.
121
121
  *
@@ -26,15 +26,15 @@ export interface CalendarProps extends CalendarSettings {
26
26
  /**
27
27
  * An event that is called after the value of the Calendar has changed.
28
28
  */
29
- change?: (event: CalendarChangeEvent) => void;
29
+ onChange?: (event: CalendarChangeEvent) => void;
30
30
  /**
31
31
  * An event called when the week number cell is clicked.
32
32
  */
33
- weekcellclick?: (event: CalendarWeekCellClickEvent) => void;
33
+ onWeekcellclick?: (event: CalendarWeekCellClickEvent) => void;
34
34
  /**
35
35
  * An event called when the week name cell is clicked.
36
36
  */
37
- weeknameclick?: (event: CalendarWeekNameClickEvent) => void;
37
+ onWeeknameclick?: (event: CalendarWeekNameClickEvent) => void;
38
38
  /**
39
39
  * Sets the value of the Calendar.
40
40
  */
@@ -27,5 +27,5 @@ export interface DateInputProps extends FormComponentProps, DateInputSettings {
27
27
  /**
28
28
  * Determines the event handler that will be fired when the user edits the value ([see example]({% slug dateranges_dateinput_native %}).
29
29
  */
30
- change?: (event: any) => void;
30
+ onChange?: (event: any) => void;
31
31
  }
@@ -54,7 +54,8 @@ var DatePicker = {
54
54
  'update:modelValue': null,
55
55
  'iconclick': null,
56
56
  'focus': null,
57
- 'blur': null
57
+ 'blur': null,
58
+ 'keydown': null
58
59
  },
59
60
  props: {
60
61
  defaultShow: {
@@ -380,7 +381,7 @@ var DatePicker = {
380
381
  var altKey = event.altKey,
381
382
  keyCode = event.keyCode;
382
383
 
383
- if (keyCode === kendo_vue_common_1.Keys.tab && event.target !== this._dateInput._element) {
384
+ if (keyCode === kendo_vue_common_1.Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
384
385
  event.preventDefault();
385
386
  this.$data.shouldFocusDateInput = true;
386
387
  this.setShow(false);
@@ -399,6 +400,8 @@ var DatePicker = {
399
400
  this.$data.shouldFocusDateInput = keyCode === kendo_vue_common_1.Keys.up;
400
401
  this.setShow(keyCode === kendo_vue_common_1.Keys.down);
401
402
  }
403
+
404
+ this.$emit('keydown', event);
402
405
  }
403
406
  },
404
407
  // @ts-ignore
@@ -16,11 +16,11 @@ export interface DatePickerProps extends DatePickerSettings, FormComponentProps
16
16
  /**
17
17
  * Fires each time the user selects a new value ([see example]({% slug controlled_datepicker_native %}#toc-controlling-the-date-value)).
18
18
  */
19
- change?: (event: DatePickerChangeEvent) => void;
19
+ onChange?: (event: DatePickerChangeEvent) => void;
20
20
  /**
21
21
  * Fires when the icon element is clicked.
22
22
  */
23
- iconclick?: (event: any) => void;
23
+ onIconclick?: (event: any) => void;
24
24
  /**
25
25
  * Renders a floating label for the DatePicker.
26
26
  */
@@ -108,11 +108,11 @@ export interface DatePickerSettings {
108
108
  /**
109
109
  * Fires each time any of the DatePicker elements gets blurred.
110
110
  */
111
- blur?: (event: any) => void;
111
+ onBlur?: (event: any) => void;
112
112
  /**
113
113
  * Fires each time the user focuses any of the DatePicker elements.
114
114
  */
115
- focus?: (event: any) => void;
115
+ onFocus?: (event: any) => void;
116
116
  /**
117
117
  * Configures the popup options of the DatePicker.
118
118
  *
@@ -120,11 +120,11 @@ export interface DateRangePickerSettings {
120
120
  /**
121
121
  * Fires each time any of the DateRangePicker elements gets blurred.
122
122
  */
123
- blur?: (event: any) => void;
123
+ onBlur?: (event: any) => void;
124
124
  /**
125
125
  * Fires each time the user focuses any of the DateRangePicker elements.
126
126
  */
127
- focus?: (event: any) => void;
127
+ onFocus?: (event: any) => void;
128
128
  /**
129
129
  * 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)).
130
130
  */
@@ -50,7 +50,8 @@ var DateTimePicker = {
50
50
  'iconclick': null,
51
51
  'change': null,
52
52
  'focus': null,
53
- 'blur': null
53
+ 'blur': null,
54
+ 'keydown': null
54
55
  },
55
56
  props: {
56
57
  modelValue: {
@@ -649,7 +650,7 @@ var DateTimePicker = {
649
650
  var altKey = event.altKey,
650
651
  keyCode = event.keyCode;
651
652
 
652
- if (keyCode === kendo_vue_common_1.Keys.tab && event.target !== this._dateInput._element) {
653
+ if (keyCode === kendo_vue_common_1.Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
653
654
  event.preventDefault();
654
655
  this.$data.shouldFocusDateInput = true;
655
656
  this.setShow(false);
@@ -668,6 +669,8 @@ var DateTimePicker = {
668
669
  this.shouldFocusDateInput = keyCode === kendo_vue_common_1.Keys.up;
669
670
  this.setShow(keyCode === kendo_vue_common_1.Keys.down);
670
671
  }
672
+
673
+ this.$emit('keydown', event);
671
674
  },
672
675
  dateInputElement: function dateInputElement() {
673
676
  return this._dateInput && this._dateInput.$el || this._wrapper && this._wrapper.querySelector('.k-dateinput-wrap > input.k-input');
@@ -134,15 +134,15 @@ export interface DateTimePickerSettings {
134
134
  /**
135
135
  * Fires each time any of the DateTimePicker elements gets blurred.
136
136
  */
137
- blur?: (event: any) => void;
137
+ onBlur?: (event: any) => void;
138
138
  /**
139
139
  * Fires each time the user focuses any of the DateTimePicker elements.
140
140
  */
141
- focus?: (event: any) => void;
141
+ onFocus?: (event: any) => void;
142
142
  /**
143
143
  * Fires when the icon element is clicked.
144
144
  */
145
- iconclick?: (event: any) => void;
145
+ onIconclick?: (event: any) => void;
146
146
  /**
147
147
  * Specifies if the popup will be displayed
148
148
  * ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
@@ -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: 1643353703,
11
+ publishDate: 1644244488,
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
  };
@@ -61,7 +61,8 @@ var TimePicker = {
61
61
  'iconclick': null,
62
62
  'change': null,
63
63
  'focus': null,
64
- 'blur': null
64
+ 'blur': null,
65
+ 'keydown': null
65
66
  },
66
67
  model: {
67
68
  event: 'changemodel'
@@ -677,6 +678,8 @@ var TimePicker = {
677
678
  this.shouldFocusDateInput = keyCode === kendo_vue_common_1.Keys.up;
678
679
  this.setShow(keyCode === kendo_vue_common_1.Keys.down);
679
680
  }
681
+
682
+ this.$emit('keydown', event);
680
683
  }
681
684
  }
682
685
  };
@@ -107,15 +107,15 @@ export interface TimePickerSettings {
107
107
  /**
108
108
  * Fires each time any of the TimePicker elements gets blurred.
109
109
  */
110
- blur?: (event: any) => void;
110
+ onBlur?: (event: any) => void;
111
111
  /**
112
112
  * Fires each time the user focuses any of the TimePicker elements.
113
113
  */
114
- focus?: (event: any) => void;
114
+ onFocus?: (event: any) => void;
115
115
  /**
116
116
  * Fires when the icon element is clicked.
117
117
  */
118
- iconclick?: (event: any) => void;
118
+ onIconclick?: (event: any) => void;
119
119
  /**
120
120
  * Configures the popup options of the TimePicker.
121
121
  *
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": "3.0.3",
4
+ "version": "3.0.5-dev.202202071439",
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": "3.0.3",
50
- "@progress/kendo-vue-common": "3.0.3",
51
- "@progress/kendo-vue-labels": "3.0.3",
52
- "@progress/kendo-vue-popup": "3.0.3"
49
+ "@progress/kendo-vue-buttons": "3.0.5-dev.202202071439",
50
+ "@progress/kendo-vue-common": "3.0.5-dev.202202071439",
51
+ "@progress/kendo-vue-labels": "3.0.5-dev.202202071439",
52
+ "@progress/kendo-vue-popup": "3.0.5-dev.202202071439"
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": "3.0.3",
58
- "@progress/kendo-vue-intl": "3.0.3"
57
+ "@progress/kendo-vue-dropdowns": "3.0.5-dev.202202071439",
58
+ "@progress/kendo-vue-intl": "3.0.5-dev.202202071439"
59
59
  },
60
60
  "author": "Progress",
61
61
  "license": "SEE LICENSE IN LICENSE.md",