@progress/kendo-angular-dateinputs 5.3.1-dev.202112201533 → 5.3.1-dev.202201070925

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1640014125,
12
+ publishDate: 1641547209,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __metadata, __param } from 'tslib';
6
- import { Injectable, EventEmitter, Injector, Input, TemplateRef, Output, HostBinding, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Renderer2, isDevMode, Directive, forwardRef, ContentChild, ViewChild, HostListener, NgZone, InjectionToken, Inject, Optional, ViewContainerRef, ViewChildren, QueryList, ContentChildren, IterableDiffers, NgModule } from '@angular/core';
6
+ import { Injectable, EventEmitter, Injector, Input, TemplateRef, Output, HostBinding, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Renderer2, isDevMode, Directive, forwardRef, ContentChild, ViewChild, HostListener, Optional, NgZone, InjectionToken, Inject, ViewContainerRef, ViewChildren, QueryList, ContentChildren, IterableDiffers, NgModule } from '@angular/core';
7
7
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
8
8
  import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progress/kendo-angular-l10n';
9
9
  import { getDate, isEqual, cloneDate, addDays, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
@@ -23,7 +23,7 @@ const packageMetadata = {
23
23
  name: '@progress/kendo-angular-dateinputs',
24
24
  productName: 'Kendo UI for Angular',
25
25
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
26
- publishDate: 1640014125,
26
+ publishDate: 1641547209,
27
27
  version: '',
28
28
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
29
29
  };
@@ -2310,6 +2310,18 @@ const disabledDatesRangeValidator = (isDateDisabled) => {
2310
2310
  };
2311
2311
  };
2312
2312
 
2313
+ /**
2314
+ * @hidden
2315
+ */
2316
+ class PickerService {
2317
+ constructor() {
2318
+ this.onFocus = new EventEmitter();
2319
+ this.onBlur = new EventEmitter();
2320
+ this.sameDateSelected = new EventEmitter();
2321
+ this.dateCompletenessChange = new EventEmitter();
2322
+ }
2323
+ }
2324
+
2313
2325
  const BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
2314
2326
  const TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
2315
2327
  const MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
@@ -2346,7 +2358,7 @@ const RANGE_CALENDAR_RANGE_VALIDATORS = {
2346
2358
  * ```
2347
2359
  */
2348
2360
  let MultiViewCalendarComponent = class MultiViewCalendarComponent {
2349
- constructor(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService) {
2361
+ constructor(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService, pickerService) {
2350
2362
  this.bus = bus;
2351
2363
  this.element = element;
2352
2364
  this.navigator = navigator;
@@ -2355,6 +2367,7 @@ let MultiViewCalendarComponent = class MultiViewCalendarComponent {
2355
2367
  this.zone = zone;
2356
2368
  this.disabledDatesService = disabledDatesService;
2357
2369
  this.selectionService = selectionService;
2370
+ this.pickerService = pickerService;
2358
2371
  /**
2359
2372
  * @hidden
2360
2373
  */
@@ -2693,6 +2706,9 @@ let MultiViewCalendarComponent = class MultiViewCalendarComponent {
2693
2706
  return;
2694
2707
  }
2695
2708
  if (event.keyCode === Keys.Enter) {
2709
+ if (isPresent(this.pickerService)) {
2710
+ event.preventDefault(); // Don't submit form from Datepicker popup
2711
+ }
2696
2712
  this.performSelection(this.focusedDate, event);
2697
2713
  }
2698
2714
  const candidate = dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
@@ -3305,6 +3321,7 @@ MultiViewCalendarComponent = __decorate([
3305
3321
  </kendo-calendar-horizontal>
3306
3322
  `
3307
3323
  }),
3324
+ __param(8, Optional()),
3308
3325
  __metadata("design:paramtypes", [BusViewService,
3309
3326
  ElementRef,
3310
3327
  NavigationService,
@@ -3312,7 +3329,8 @@ MultiViewCalendarComponent = __decorate([
3312
3329
  ChangeDetectorRef,
3313
3330
  NgZone,
3314
3331
  DisabledDatesService,
3315
- SelectionService])
3332
+ SelectionService,
3333
+ PickerService])
3316
3334
  ], MultiViewCalendarComponent);
3317
3335
 
3318
3336
  const div = domContainerFactory('div');
@@ -4579,18 +4597,6 @@ NavigationItemTemplateDirective = __decorate([
4579
4597
  __metadata("design:paramtypes", [TemplateRef])
4580
4598
  ], NavigationItemTemplateDirective);
4581
4599
 
4582
- /**
4583
- * @hidden
4584
- */
4585
- class PickerService {
4586
- constructor() {
4587
- this.onFocus = new EventEmitter();
4588
- this.onBlur = new EventEmitter();
4589
- this.sameDateSelected = new EventEmitter();
4590
- this.dateCompletenessChange = new EventEmitter();
4591
- }
4592
- }
4593
-
4594
4600
  const BOTTOM_VIEW_DOC_LINK$1 = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
4595
4601
  const TOP_VIEW_DOC_LINK$1 = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
4596
4602
  const MIN_DOC_LINK$1 = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
@@ -7836,6 +7842,9 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent {
7836
7842
  this.show = false;
7837
7843
  }
7838
7844
  }
7845
+ if (keyCode === Keys.Enter && target.classList.contains('k-calendar')) {
7846
+ e.preventDefault(); // Don't submit form on date selection in popup
7847
+ }
7839
7848
  if (keyCode === Keys.Tab && this.show && this.calendar.isActive && isTabExitingCalendar(this.calendarType, target, shiftKey)) {
7840
7849
  this.input.focus();
7841
7850
  this.show = false;
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __metadata, __param, __extends } from 'tslib';
6
- import { Injectable, Injector, EventEmitter, Input, TemplateRef, Output, HostBinding, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Renderer2, isDevMode, Directive, forwardRef, ContentChild, ViewChild, HostListener, NgZone, InjectionToken, Inject, Optional, ViewContainerRef, ViewChildren, QueryList, ContentChildren, IterableDiffers, NgModule } from '@angular/core';
6
+ import { Injectable, Injector, EventEmitter, Input, TemplateRef, Output, HostBinding, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Renderer2, isDevMode, Directive, forwardRef, ContentChild, ViewChild, HostListener, Optional, NgZone, InjectionToken, Inject, ViewContainerRef, ViewChildren, QueryList, ContentChildren, IterableDiffers, NgModule } from '@angular/core';
7
7
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
8
8
  import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progress/kendo-angular-l10n';
9
9
  import { getDate, isEqual, cloneDate, addDays, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
@@ -23,7 +23,7 @@ var packageMetadata = {
23
23
  name: '@progress/kendo-angular-dateinputs',
24
24
  productName: 'Kendo UI for Angular',
25
25
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
26
- publishDate: 1640014125,
26
+ publishDate: 1641547209,
27
27
  version: '',
28
28
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
29
29
  };
@@ -2243,6 +2243,19 @@ var disabledDatesRangeValidator = function (isDateDisabled) {
2243
2243
  };
2244
2244
  };
2245
2245
 
2246
+ /**
2247
+ * @hidden
2248
+ */
2249
+ var PickerService = /** @class */ (function () {
2250
+ function PickerService() {
2251
+ this.onFocus = new EventEmitter();
2252
+ this.onBlur = new EventEmitter();
2253
+ this.sameDateSelected = new EventEmitter();
2254
+ this.dateCompletenessChange = new EventEmitter();
2255
+ }
2256
+ return PickerService;
2257
+ }());
2258
+
2246
2259
  var BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
2247
2260
  var TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
2248
2261
  var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
@@ -2279,7 +2292,7 @@ var RANGE_CALENDAR_RANGE_VALIDATORS = {
2279
2292
  * ```
2280
2293
  */
2281
2294
  var MultiViewCalendarComponent = /** @class */ (function () {
2282
- function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService) {
2295
+ function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService, pickerService) {
2283
2296
  this.bus = bus;
2284
2297
  this.element = element;
2285
2298
  this.navigator = navigator;
@@ -2288,6 +2301,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
2288
2301
  this.zone = zone;
2289
2302
  this.disabledDatesService = disabledDatesService;
2290
2303
  this.selectionService = selectionService;
2304
+ this.pickerService = pickerService;
2291
2305
  /**
2292
2306
  * @hidden
2293
2307
  */
@@ -2710,6 +2724,9 @@ var MultiViewCalendarComponent = /** @class */ (function () {
2710
2724
  return;
2711
2725
  }
2712
2726
  if (event.keyCode === Keys.Enter) {
2727
+ if (isPresent(this.pickerService)) {
2728
+ event.preventDefault(); // Don't submit form from Datepicker popup
2729
+ }
2713
2730
  this.performSelection(this.focusedDate, event);
2714
2731
  }
2715
2732
  var candidate = dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
@@ -3272,6 +3289,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
3272
3289
  selector: 'kendo-multiviewcalendar',
3273
3290
  template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplate?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleHeaderFocus\n }\"\n [scope]=\"this\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
3274
3291
  }),
3292
+ __param(8, Optional()),
3275
3293
  __metadata("design:paramtypes", [BusViewService,
3276
3294
  ElementRef,
3277
3295
  NavigationService,
@@ -3279,7 +3297,8 @@ var MultiViewCalendarComponent = /** @class */ (function () {
3279
3297
  ChangeDetectorRef,
3280
3298
  NgZone,
3281
3299
  DisabledDatesService,
3282
- SelectionService])
3300
+ SelectionService,
3301
+ PickerService])
3283
3302
  ], MultiViewCalendarComponent);
3284
3303
  return MultiViewCalendarComponent;
3285
3304
  }());
@@ -4526,19 +4545,6 @@ var NavigationItemTemplateDirective = /** @class */ (function () {
4526
4545
  return NavigationItemTemplateDirective;
4527
4546
  }());
4528
4547
 
4529
- /**
4530
- * @hidden
4531
- */
4532
- var PickerService = /** @class */ (function () {
4533
- function PickerService() {
4534
- this.onFocus = new EventEmitter();
4535
- this.onBlur = new EventEmitter();
4536
- this.sameDateSelected = new EventEmitter();
4537
- this.dateCompletenessChange = new EventEmitter();
4538
- }
4539
- return PickerService;
4540
- }());
4541
-
4542
4548
  var BOTTOM_VIEW_DOC_LINK$1 = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
4543
4549
  var TOP_VIEW_DOC_LINK$1 = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
4544
4550
  var MIN_DOC_LINK$1 = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
@@ -7871,6 +7877,9 @@ var DatePickerComponent = /** @class */ (function () {
7871
7877
  this.show = false;
7872
7878
  }
7873
7879
  }
7880
+ if (keyCode === Keys.Enter && target.classList.contains('k-calendar')) {
7881
+ e.preventDefault(); // Don't submit form on date selection in popup
7882
+ }
7874
7883
  if (keyCode === Keys.Tab && this.show && this.calendar.isActive && isTabExitingCalendar(this.calendarType, target, shiftKey)) {
7875
7884
  this.input.focus();
7876
7885
  this.show = false;
@@ -32,6 +32,7 @@ var defaults_1 = require("../defaults");
32
32
  var util_1 = require("../util");
33
33
  var rxjs_1 = require("rxjs");
34
34
  var utils_1 = require("../common/utils");
35
+ var picker_service_1 = require("../common/picker.service");
35
36
  var BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
36
37
  var TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
37
38
  var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
@@ -68,7 +69,7 @@ exports.RANGE_CALENDAR_RANGE_VALIDATORS = {
68
69
  * ```
69
70
  */
70
71
  var MultiViewCalendarComponent = /** @class */ (function () {
71
- function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService) {
72
+ function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService, pickerService) {
72
73
  this.bus = bus;
73
74
  this.element = element;
74
75
  this.navigator = navigator;
@@ -77,6 +78,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
77
78
  this.zone = zone;
78
79
  this.disabledDatesService = disabledDatesService;
79
80
  this.selectionService = selectionService;
81
+ this.pickerService = pickerService;
80
82
  /**
81
83
  * @hidden
82
84
  */
@@ -499,6 +501,9 @@ var MultiViewCalendarComponent = /** @class */ (function () {
499
501
  return;
500
502
  }
501
503
  if (event.keyCode === kendo_angular_common_1.Keys.Enter) {
504
+ if (utils_1.isPresent(this.pickerService)) {
505
+ event.preventDefault(); // Don't submit form from Datepicker popup
506
+ }
502
507
  this.performSelection(this.focusedDate, event);
503
508
  }
504
509
  var candidate = util_1.dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
@@ -1061,6 +1066,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
1061
1066
  selector: 'kendo-multiviewcalendar',
1062
1067
  template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplate?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleHeaderFocus\n }\"\n [scope]=\"this\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
1063
1068
  }),
1069
+ tslib_1.__param(8, core_1.Optional()),
1064
1070
  tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
1065
1071
  core_1.ElementRef,
1066
1072
  navigation_service_1.NavigationService,
@@ -1068,7 +1074,8 @@ var MultiViewCalendarComponent = /** @class */ (function () {
1068
1074
  core_1.ChangeDetectorRef,
1069
1075
  core_1.NgZone,
1070
1076
  disabled_dates_service_1.DisabledDatesService,
1071
- selection_service_1.SelectionService])
1077
+ selection_service_1.SelectionService,
1078
+ picker_service_1.PickerService])
1072
1079
  ], MultiViewCalendarComponent);
1073
1080
  return MultiViewCalendarComponent;
1074
1081
  }());
@@ -732,6 +732,9 @@ var DatePickerComponent = /** @class */ (function () {
732
732
  this.show = false;
733
733
  }
734
734
  }
735
+ if (keyCode === kendo_angular_common_1.Keys.Enter && target.classList.contains('k-calendar')) {
736
+ e.preventDefault(); // Don't submit form on date selection in popup
737
+ }
735
738
  if (keyCode === kendo_angular_common_1.Keys.Tab && this.show && this.calendar.isActive && util_1.isTabExitingCalendar(this.calendarType, target, shiftKey)) {
736
739
  this.input.focus();
737
740
  this.show = false;
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-dateinputs',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1640014125,
14
+ publishDate: 1641547209,
15
15
  version: '',
16
16
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
17
17
  };