@progress/kendo-vue-dateinputs 2.5.1-dev.202110051346 → 2.5.2-dev.202110150637

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.
@@ -33,6 +33,7 @@ var DatePicker = {
33
33
  'change': null,
34
34
  'changemodel': null,
35
35
  'update:modelValue': null,
36
+ 'iconclick': null,
36
37
  'focus': null,
37
38
  'blur': null
38
39
  },
@@ -233,7 +234,6 @@ var DatePicker = {
233
234
  get: function get() {
234
235
  var disabled = this.$props.disabled;
235
236
  return {
236
- 'k-state-default': !disabled,
237
237
  'k-state-disabled': disabled,
238
238
  'k-state-focused': this.$data.isFocused
239
239
  };
@@ -354,6 +354,7 @@ var DatePicker = {
354
354
 
355
355
  this.$data.shouldFocusDateInput = true;
356
356
  this.setShow(!this.computedShow);
357
+ this.$emit('iconclick', event);
357
358
  },
358
359
  handleIconMouseDown: function handleIconMouseDown(event) {
359
360
  event.stopPropagation();
@@ -17,6 +17,10 @@ export interface DatePickerProps extends DatePickerSettings, FormComponentProps
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
19
  change?: (event: DatePickerChangeEvent) => void;
20
+ /**
21
+ * Fires when the icon element is clicked.
22
+ */
23
+ iconclick?: (event: any) => void;
20
24
  /**
21
25
  * Renders a floating label for the DatePicker.
22
26
  */
@@ -20,6 +20,15 @@ import { defaultFormatPlaceholder } from '../dateinput/utils'; // tslint:enable:
20
20
 
21
21
  var DateTimePicker = {
22
22
  name: 'KendoDateTimePicker',
23
+ // @ts-ignore
24
+ emits: {
25
+ 'changemodel': null,
26
+ 'update:modelValue': null,
27
+ 'iconclick': null,
28
+ 'change': null,
29
+ 'focus': null,
30
+ 'blur': null
31
+ },
23
32
  props: {
24
33
  modelValue: {
25
34
  type: Date,
@@ -202,7 +211,7 @@ var DateTimePicker = {
202
211
 
203
212
  var dateInputElement = this.dateInputElement();
204
213
  this._dateTimeSelector = this.$refs.dateTimeSelector;
205
- this._wrapper = this.$refs[this._anchor];
214
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
206
215
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
207
216
 
208
217
  if (dateInputElement) {
@@ -213,7 +222,7 @@ var DateTimePicker = {
213
222
  updated: function updated() {
214
223
  var dateInputElement = this.dateInputElement();
215
224
  this._dateTimeSelector = this.$refs.dateTimeSelector;
216
- this._wrapper = this.$refs[this._anchor];
225
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
217
226
 
218
227
  if (dateInputElement) {
219
228
  dateInputElement.setAttribute('aria-expanded', "" + this.computedShow);
@@ -281,7 +290,6 @@ var DateTimePicker = {
281
290
  'k-state-invalid': !isValid
282
291
  });
283
292
  var wrapperClassNames = classNames('k-picker-wrap', {
284
- 'k-state-default': !disabled,
285
293
  'k-state-disabled': disabled,
286
294
  'k-state-focused': this.isFocused
287
295
  });
@@ -573,13 +581,14 @@ var DateTimePicker = {
573
581
  }
574
582
  }, 200);
575
583
  },
576
- handleDateIconClick: function handleDateIconClick() {
584
+ handleDateIconClick: function handleDateIconClick(event) {
577
585
  if (this.$props.disabled) {
578
586
  return;
579
587
  }
580
588
 
581
589
  this.shouldFocusDateInput = true;
582
590
  this.setShow(!this.computedShow);
591
+ this.$emit('iconclick', event);
583
592
  },
584
593
  handleIconMouseDown: function handleIconMouseDown(event) {
585
594
  event.preventDefault();
@@ -100,6 +100,10 @@ export interface DateTimePickerSettings {
100
100
  * Fires each time the user focuses any of the DateTimePicker elements.
101
101
  */
102
102
  focus?: (event: any) => void;
103
+ /**
104
+ * Fires when the icon element is clicked.
105
+ */
106
+ iconclick?: (event: any) => void;
103
107
  /**
104
108
  * Specifies if the popup will be displayed
105
109
  * ([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: 1633441296,
8
+ publishDate: 1634279548,
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
  };
@@ -37,6 +37,7 @@ var TimePicker = {
37
37
  emits: {
38
38
  'changemodel': null,
39
39
  'update:modelValue': null,
40
+ 'iconclick': null,
40
41
  'change': null,
41
42
  'focus': null,
42
43
  'blur': null
@@ -218,7 +219,7 @@ var TimePicker = {
218
219
 
219
220
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
220
221
  this._timeSelector = this.$refs.timeSelector;
221
- this._wrapper = this.$refs[this._anchor];
222
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
222
223
 
223
224
  if (this._dateInput && this._dateInput.element()) {
224
225
  this._dateInput.element().setAttribute('aria-haspopup', 'true');
@@ -229,7 +230,7 @@ var TimePicker = {
229
230
  updated: function updated() {
230
231
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
231
232
  this._timeSelector = this.$refs.timeSelector;
232
- this._wrapper = this.$refs[this._anchor];
233
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
233
234
 
234
235
  if (this._dateInput && this._dateInput.element()) {
235
236
  this._dateInput.element().setAttribute('aria-expanded', "" + this.computedShow);
@@ -287,7 +288,6 @@ var TimePicker = {
287
288
  var isValid = !this.$props.validityStyles || this.validity().valid;
288
289
  var rootClassName = classNames('k-widget k-timepicker');
289
290
  var wrapperClassNames = classNames('k-picker-wrap', {
290
- 'k-state-default': !disabled && isValid,
291
291
  'k-state-invalid': !isValid,
292
292
  'k-state-disabled': disabled,
293
293
  'k-state-focused': this.isFocused
@@ -586,13 +586,14 @@ var TimePicker = {
586
586
  handleValueReject: function handleValueReject(_) {
587
587
  this.setShow(false);
588
588
  },
589
- handleIconClick: function handleIconClick(_) {
589
+ handleIconClick: function handleIconClick(event) {
590
590
  if (this.$props.disabled) {
591
591
  return;
592
592
  }
593
593
 
594
594
  this.shouldFocusDateInput = true;
595
595
  this.setShow(!this.computedShow);
596
+ this.$emit('iconclick', event);
596
597
  },
597
598
  handleIconMouseDown: function handleIconMouseDown(event) {
598
599
  event.preventDefault();
@@ -68,11 +68,15 @@ export interface TimePickerSettings {
68
68
  /**
69
69
  * Fires each time any of the TimePicker elements gets blurred.
70
70
  */
71
- onBlur?: (event: any) => void;
71
+ blur?: (event: any) => void;
72
72
  /**
73
73
  * Fires each time the user focuses any of the TimePicker elements.
74
74
  */
75
- onFocus?: (event: any) => void;
75
+ focus?: (event: any) => void;
76
+ /**
77
+ * Fires when the icon element is clicked.
78
+ */
79
+ iconclick?: (event: any) => void;
76
80
  /**
77
81
  * Configures the popup options of the TimePicker.
78
82
  *
@@ -54,6 +54,7 @@ var DatePicker = {
54
54
  'change': null,
55
55
  'changemodel': null,
56
56
  'update:modelValue': null,
57
+ 'iconclick': null,
57
58
  'focus': null,
58
59
  'blur': null
59
60
  },
@@ -254,7 +255,6 @@ var DatePicker = {
254
255
  get: function get() {
255
256
  var disabled = this.$props.disabled;
256
257
  return {
257
- 'k-state-default': !disabled,
258
258
  'k-state-disabled': disabled,
259
259
  'k-state-focused': this.$data.isFocused
260
260
  };
@@ -375,6 +375,7 @@ var DatePicker = {
375
375
 
376
376
  this.$data.shouldFocusDateInput = true;
377
377
  this.setShow(!this.computedShow);
378
+ this.$emit('iconclick', event);
378
379
  },
379
380
  handleIconMouseDown: function handleIconMouseDown(event) {
380
381
  event.stopPropagation();
@@ -17,6 +17,10 @@ export interface DatePickerProps extends DatePickerSettings, FormComponentProps
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
19
  change?: (event: DatePickerChangeEvent) => void;
20
+ /**
21
+ * Fires when the icon element is clicked.
22
+ */
23
+ iconclick?: (event: any) => void;
20
24
  /**
21
25
  * Renders a floating label for the DatePicker.
22
26
  */
@@ -41,6 +41,15 @@ var utils_3 = require("../dateinput/utils"); // tslint:enable:max-line-length
41
41
 
42
42
  var DateTimePicker = {
43
43
  name: 'KendoDateTimePicker',
44
+ // @ts-ignore
45
+ emits: {
46
+ 'changemodel': null,
47
+ 'update:modelValue': null,
48
+ 'iconclick': null,
49
+ 'change': null,
50
+ 'focus': null,
51
+ 'blur': null
52
+ },
44
53
  props: {
45
54
  modelValue: {
46
55
  type: Date,
@@ -223,7 +232,7 @@ var DateTimePicker = {
223
232
 
224
233
  var dateInputElement = this.dateInputElement();
225
234
  this._dateTimeSelector = this.$refs.dateTimeSelector;
226
- this._wrapper = this.$refs[this._anchor];
235
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
227
236
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
228
237
 
229
238
  if (dateInputElement) {
@@ -234,7 +243,7 @@ var DateTimePicker = {
234
243
  updated: function updated() {
235
244
  var dateInputElement = this.dateInputElement();
236
245
  this._dateTimeSelector = this.$refs.dateTimeSelector;
237
- this._wrapper = this.$refs[this._anchor];
246
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
238
247
 
239
248
  if (dateInputElement) {
240
249
  dateInputElement.setAttribute('aria-expanded', "" + this.computedShow);
@@ -302,7 +311,6 @@ var DateTimePicker = {
302
311
  'k-state-invalid': !isValid
303
312
  });
304
313
  var wrapperClassNames = kendo_vue_common_1.classNames('k-picker-wrap', {
305
- 'k-state-default': !disabled,
306
314
  'k-state-disabled': disabled,
307
315
  'k-state-focused': this.isFocused
308
316
  });
@@ -594,13 +602,14 @@ var DateTimePicker = {
594
602
  }
595
603
  }, 200);
596
604
  },
597
- handleDateIconClick: function handleDateIconClick() {
605
+ handleDateIconClick: function handleDateIconClick(event) {
598
606
  if (this.$props.disabled) {
599
607
  return;
600
608
  }
601
609
 
602
610
  this.shouldFocusDateInput = true;
603
611
  this.setShow(!this.computedShow);
612
+ this.$emit('iconclick', event);
604
613
  },
605
614
  handleIconMouseDown: function handleIconMouseDown(event) {
606
615
  event.preventDefault();
@@ -100,6 +100,10 @@ export interface DateTimePickerSettings {
100
100
  * Fires each time the user focuses any of the DateTimePicker elements.
101
101
  */
102
102
  focus?: (event: any) => void;
103
+ /**
104
+ * Fires when the icon element is clicked.
105
+ */
106
+ iconclick?: (event: any) => void;
103
107
  /**
104
108
  * Specifies if the popup will be displayed
105
109
  * ([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: 1633441296,
11
+ publishDate: 1634279548,
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
  };
@@ -56,6 +56,7 @@ var TimePicker = {
56
56
  emits: {
57
57
  'changemodel': null,
58
58
  'update:modelValue': null,
59
+ 'iconclick': null,
59
60
  'change': null,
60
61
  'focus': null,
61
62
  'blur': null
@@ -237,7 +238,7 @@ var TimePicker = {
237
238
 
238
239
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
239
240
  this._timeSelector = this.$refs.timeSelector;
240
- this._wrapper = this.$refs[this._anchor];
241
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
241
242
 
242
243
  if (this._dateInput && this._dateInput.element()) {
243
244
  this._dateInput.element().setAttribute('aria-haspopup', 'true');
@@ -248,7 +249,7 @@ var TimePicker = {
248
249
  updated: function updated() {
249
250
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
250
251
  this._timeSelector = this.$refs.timeSelector;
251
- this._wrapper = this.$refs[this._anchor];
252
+ this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
252
253
 
253
254
  if (this._dateInput && this._dateInput.element()) {
254
255
  this._dateInput.element().setAttribute('aria-expanded', "" + this.computedShow);
@@ -306,7 +307,6 @@ var TimePicker = {
306
307
  var isValid = !this.$props.validityStyles || this.validity().valid;
307
308
  var rootClassName = kendo_vue_common_1.classNames('k-widget k-timepicker');
308
309
  var wrapperClassNames = kendo_vue_common_1.classNames('k-picker-wrap', {
309
- 'k-state-default': !disabled && isValid,
310
310
  'k-state-invalid': !isValid,
311
311
  'k-state-disabled': disabled,
312
312
  'k-state-focused': this.isFocused
@@ -605,13 +605,14 @@ var TimePicker = {
605
605
  handleValueReject: function handleValueReject(_) {
606
606
  this.setShow(false);
607
607
  },
608
- handleIconClick: function handleIconClick(_) {
608
+ handleIconClick: function handleIconClick(event) {
609
609
  if (this.$props.disabled) {
610
610
  return;
611
611
  }
612
612
 
613
613
  this.shouldFocusDateInput = true;
614
614
  this.setShow(!this.computedShow);
615
+ this.$emit('iconclick', event);
615
616
  },
616
617
  handleIconMouseDown: function handleIconMouseDown(event) {
617
618
  event.preventDefault();
@@ -68,11 +68,15 @@ export interface TimePickerSettings {
68
68
  /**
69
69
  * Fires each time any of the TimePicker elements gets blurred.
70
70
  */
71
- onBlur?: (event: any) => void;
71
+ blur?: (event: any) => void;
72
72
  /**
73
73
  * Fires each time the user focuses any of the TimePicker elements.
74
74
  */
75
- onFocus?: (event: any) => void;
75
+ focus?: (event: any) => void;
76
+ /**
77
+ * Fires when the icon element is clicked.
78
+ */
79
+ iconclick?: (event: any) => void;
76
80
  /**
77
81
  * Configures the popup options of the TimePicker.
78
82
  *
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.5.1-dev.202110051346",
4
+ "version": "2.5.2-dev.202110150637",
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.5.1-dev.202110051346",
50
- "@progress/kendo-vue-common": "2.5.1-dev.202110051346",
51
- "@progress/kendo-vue-labels": "2.5.1-dev.202110051346",
52
- "@progress/kendo-vue-popup": "2.5.1-dev.202110051346"
49
+ "@progress/kendo-vue-buttons": "2.5.2-dev.202110150637",
50
+ "@progress/kendo-vue-common": "2.5.2-dev.202110150637",
51
+ "@progress/kendo-vue-labels": "2.5.2-dev.202110150637",
52
+ "@progress/kendo-vue-popup": "2.5.2-dev.202110150637"
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.5.1-dev.202110051346",
58
- "@progress/kendo-vue-intl": "2.5.1-dev.202110051346"
57
+ "@progress/kendo-vue-dropdowns": "2.5.2-dev.202110150637",
58
+ "@progress/kendo-vue-intl": "2.5.2-dev.202110150637"
59
59
  },
60
60
  "author": "Progress",
61
61
  "license": "SEE LICENSE IN LICENSE.md",