@progress/kendo-vue-dateinputs 3.1.2 → 3.1.3-dev.202203311441

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.
@@ -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: 1647961788,
8
+ publishDate: 1648737360,
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
  };
@@ -286,7 +286,7 @@ var TimePart = {
286
286
  return formatRegExp.test(part.type || '');
287
287
  },
288
288
  hasActiveButton: function hasActiveButton() {
289
- return canUseDOM && document.activeElement === this._nowButton.$el;
289
+ return canUseDOM && this._nowButton && document.activeElement === this._nowButton.$el;
290
290
  },
291
291
  focusList: function focusList(dir) {
292
292
  if (!this.timeLists.length) {
@@ -420,7 +420,10 @@ var TimePicker = {
420
420
  var dateInputRendering = getTemplate.call(this, {
421
421
  h: h,
422
422
  template: dateInput,
423
- defaultRendering: dateInputDefaultRendering
423
+ defaultRendering: dateInputDefaultRendering,
424
+ additionalListeners: {
425
+ change: this.handleInputValueChange
426
+ }
424
427
  });
425
428
  var popup = this.$props.popup ? templateRendering.call(this, this.$props.popup, getListeners.call(this)) : undefined;
426
429
  var popupDefaultRendering = // @ts-ignore function children
@@ -639,7 +642,7 @@ var TimePicker = {
639
642
  var altKey = event.altKey,
640
643
  keyCode = event.keyCode;
641
644
 
642
- if (keyCode === Keys.tab && event.target !== this._dateInput._element) {
645
+ if (keyCode === Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
643
646
  event.preventDefault();
644
647
  this.shouldFocusDateInput = true;
645
648
  this.setShow(false);
@@ -274,7 +274,7 @@ var TimeSelector = {
274
274
  }
275
275
  },
276
276
  handleAccept: function handleAccept(event) {
277
- var value = this.mergeValue(cloneDate(this.computedValue || getNow()), this.timePart ? this.timePart.value : this.current);
277
+ var value = this.mergeValue(cloneDate(this.computedValue || getNow()), this.timePart ? this.timePart.computedValue : this.current);
278
278
  this.currentValue = value;
279
279
  this.valueDuringOnChange = value;
280
280
  this.$emit('change', {
@@ -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: 1647961788,
11
+ publishDate: 1648737360,
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
  };
@@ -303,7 +303,7 @@ var TimePart = {
303
303
  return formatRegExp.test(part.type || '');
304
304
  },
305
305
  hasActiveButton: function hasActiveButton() {
306
- return kendo_vue_common_1.canUseDOM && document.activeElement === this._nowButton.$el;
306
+ return kendo_vue_common_1.canUseDOM && this._nowButton && document.activeElement === this._nowButton.$el;
307
307
  },
308
308
  focusList: function focusList(dir) {
309
309
  if (!this.timeLists.length) {
@@ -440,7 +440,10 @@ var TimePicker = {
440
440
  var dateInputRendering = kendo_vue_common_1.getTemplate.call(this, {
441
441
  h: h,
442
442
  template: dateInput,
443
- defaultRendering: dateInputDefaultRendering
443
+ defaultRendering: dateInputDefaultRendering,
444
+ additionalListeners: {
445
+ change: this.handleInputValueChange
446
+ }
444
447
  });
445
448
  var popup = this.$props.popup ? kendo_vue_common_1.templateRendering.call(this, this.$props.popup, kendo_vue_common_1.getListeners.call(this)) : undefined;
446
449
  var popupDefaultRendering = // @ts-ignore function children
@@ -659,7 +662,7 @@ var TimePicker = {
659
662
  var altKey = event.altKey,
660
663
  keyCode = event.keyCode;
661
664
 
662
- if (keyCode === kendo_vue_common_1.Keys.tab && event.target !== this._dateInput._element) {
665
+ if (keyCode === kendo_vue_common_1.Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
663
666
  event.preventDefault();
664
667
  this.shouldFocusDateInput = true;
665
668
  this.setShow(false);
@@ -290,7 +290,7 @@ var TimeSelector = {
290
290
  }
291
291
  },
292
292
  handleAccept: function handleAccept(event) {
293
- var value = this.mergeValue(kendo_date_math_1.cloneDate(this.computedValue || utils_2.getNow()), this.timePart ? this.timePart.value : this.current);
293
+ var value = this.mergeValue(kendo_date_math_1.cloneDate(this.computedValue || utils_2.getNow()), this.timePart ? this.timePart.computedValue : this.current);
294
294
  this.currentValue = value;
295
295
  this.valueDuringOnChange = value;
296
296
  this.$emit('change', {
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.1.2",
4
+ "version": "3.1.3-dev.202203311441",
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.1.2",
50
- "@progress/kendo-vue-common": "3.1.2",
51
- "@progress/kendo-vue-labels": "3.1.2",
52
- "@progress/kendo-vue-popup": "3.1.2"
49
+ "@progress/kendo-vue-buttons": "3.1.3-dev.202203311441",
50
+ "@progress/kendo-vue-common": "3.1.3-dev.202203311441",
51
+ "@progress/kendo-vue-labels": "3.1.3-dev.202203311441",
52
+ "@progress/kendo-vue-popup": "3.1.3-dev.202203311441"
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.1.2",
58
- "@progress/kendo-vue-intl": "3.1.2"
57
+ "@progress/kendo-vue-dropdowns": "3.1.3-dev.202203311441",
58
+ "@progress/kendo-vue-intl": "3.1.3-dev.202203311441"
59
59
  },
60
60
  "author": "Progress",
61
61
  "license": "SEE LICENSE IN LICENSE.md",