@progress/kendo-angular-dateinputs 6.0.0-dev.202201181611 → 6.0.1-dev.202202101118

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.
@@ -510,11 +510,13 @@ var CalendarComponent = /** @class */ (function () {
510
510
  };
511
511
  CalendarComponent.prototype.ngOnDestroy = function () {
512
512
  this.scrollSyncService.destroy();
513
- this.viewChangeSubscription.unsubscribe();
514
513
  this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
515
514
  if (this.pickerService) {
516
515
  this.pickerService.calendar = null;
517
516
  }
517
+ if (this.viewChangeSubscription) {
518
+ this.viewChangeSubscription.unsubscribe();
519
+ }
518
520
  if (this.pageChangeSubscription) {
519
521
  this.pageChangeSubscription.unsubscribe();
520
522
  }
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1642521990,
12
+ publishDate: 1644491740,
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
  };
@@ -45,8 +45,7 @@ var TimePickerDOMService = /** @class */ (function () {
45
45
  var listContainer = container && container.querySelector('.k-time-list-container');
46
46
  var hostContainer = listContainer || document.body;
47
47
  var wrapper = hostContainer.appendChild(TIMELIST_WRAPPER);
48
- this.timeListTitleHeight = wrapper.querySelector('.k-timeselector-title').getBoundingClientRect().height;
49
- this.timeListHeight = wrapper.getBoundingClientRect().height;
48
+ this.timeListHeight = wrapper.querySelector('.k-scrollable').getBoundingClientRect().height;
50
49
  this.itemHeight = wrapper.querySelector('li').getBoundingClientRect().height;
51
50
  hostContainer.removeChild(wrapper);
52
51
  };
@@ -93,9 +93,8 @@ var TimeListComponent = /** @class */ (function () {
93
93
  this.dom.ensureHeights();
94
94
  this.itemHeight = this.dom.itemHeight;
95
95
  this.listHeight = this.dom.timeListHeight;
96
- var titleHeight = this.dom.timeListTitleHeight;
97
- this.topOffset = (this.listHeight - this.itemHeight - titleHeight) / 2;
98
- this.bottomOffset = this.listHeight - this.itemHeight - titleHeight;
96
+ this.topOffset = (this.listHeight - this.itemHeight) / 2;
97
+ this.bottomOffset = this.listHeight - this.itemHeight;
99
98
  this.topThreshold = this.itemHeight * SNAP_THRESHOLD;
100
99
  this.bottomThreshold = this.itemHeight * (1 - SNAP_THRESHOLD);
101
100
  var translate = "translateY(" + this.topOffset + "px)";
@@ -46,10 +46,6 @@ var TimeSelectorComponent = /** @class */ (function () {
46
46
  this.zone = zone;
47
47
  this.renderer = renderer;
48
48
  this.pickerService = pickerService;
49
- /**
50
- * @hidden
51
- */
52
- this.componentClass = true;
53
49
  /**
54
50
  * Specifies the time format used to display the time list columns.
55
51
  */
@@ -192,6 +188,7 @@ var TimeSelectorComponent = /** @class */ (function () {
192
188
  .changes
193
189
  .subscribe(function () { return _this.cdr.markForCheck(); }));
194
190
  }
191
+ this.renderer.addClass(this.element.nativeElement, 'k-timeselector');
195
192
  this.dom.calculateHeights(this.element.nativeElement);
196
193
  this.init();
197
194
  this.bindEvents();
@@ -409,10 +406,6 @@ var TimeSelectorComponent = /** @class */ (function () {
409
406
  ViewChildren('listWrapper'),
410
407
  tslib_1.__metadata("design:type", QueryList)
411
408
  ], TimeSelectorComponent.prototype, "timeListWrappers", void 0);
412
- tslib_1.__decorate([
413
- HostBinding('class.k-timeselector'),
414
- tslib_1.__metadata("design:type", Boolean)
415
- ], TimeSelectorComponent.prototype, "componentClass", void 0);
416
409
  tslib_1.__decorate([
417
410
  HostBinding('class.k-disabled'),
418
411
  tslib_1.__metadata("design:type", Boolean),
@@ -422,11 +422,13 @@ let CalendarComponent = class CalendarComponent {
422
422
  }
423
423
  ngOnDestroy() {
424
424
  this.scrollSyncService.destroy();
425
- this.viewChangeSubscription.unsubscribe();
426
425
  this.domEvents.forEach(unbindCallback => unbindCallback());
427
426
  if (this.pickerService) {
428
427
  this.pickerService.calendar = null;
429
428
  }
429
+ if (this.viewChangeSubscription) {
430
+ this.viewChangeSubscription.unsubscribe();
431
+ }
430
432
  if (this.pageChangeSubscription) {
431
433
  this.pageChangeSubscription.unsubscribe();
432
434
  }