@progress/kendo-angular-dateinputs 5.2.3-dev.202109021221 → 5.2.4-dev.202110261444

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.
Files changed (32) hide show
  1. package/dist/cdn/js/kendo-angular-dateinputs.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/calendar/calendar.component.js +4 -0
  4. package/dist/es/calendar/header.component.js +3 -4
  5. package/dist/es/calendar/horizontal-view-list.component.js +3 -1
  6. package/dist/es/calendar/multiview-calendar.component.js +1 -1
  7. package/dist/es/daterange/date-range-input.js +3 -3
  8. package/dist/es/daterange/date-range-popup.component.js +2 -2
  9. package/dist/es/daterange/date-range-selection.directive.js +1 -1
  10. package/dist/es/package-metadata.js +1 -1
  11. package/dist/es2015/calendar/calendar.component.d.ts +1 -0
  12. package/dist/es2015/calendar/calendar.component.js +4 -0
  13. package/dist/es2015/calendar/header.component.js +3 -4
  14. package/dist/es2015/calendar/horizontal-view-list.component.js +3 -1
  15. package/dist/es2015/calendar/multiview-calendar.component.js +1 -1
  16. package/dist/es2015/daterange/date-range-input.js +3 -3
  17. package/dist/es2015/daterange/date-range-popup.component.js +2 -2
  18. package/dist/es2015/daterange/date-range-selection.directive.js +1 -1
  19. package/dist/es2015/index.metadata.json +1 -1
  20. package/dist/es2015/package-metadata.js +1 -1
  21. package/dist/fesm2015/index.js +18 -13
  22. package/dist/fesm5/index.js +18 -13
  23. package/dist/npm/calendar/calendar.component.js +4 -0
  24. package/dist/npm/calendar/header.component.js +3 -4
  25. package/dist/npm/calendar/horizontal-view-list.component.js +3 -1
  26. package/dist/npm/calendar/multiview-calendar.component.js +1 -1
  27. package/dist/npm/daterange/date-range-input.js +3 -3
  28. package/dist/npm/daterange/date-range-popup.component.js +2 -2
  29. package/dist/npm/daterange/date-range-selection.directive.js +1 -1
  30. package/dist/npm/package-metadata.js +1 -1
  31. package/dist/systemjs/kendo-angular-dateinputs.js +1 -1
  32. package/package.json +5 -5
@@ -292,12 +292,16 @@ var CalendarComponent = /** @class */ (function () {
292
292
  configurable: true
293
293
  });
294
294
  Object.defineProperty(CalendarComponent.prototype, "disabledDates", {
295
+ get: function () {
296
+ return this._disabledDates;
297
+ },
295
298
  /**
296
299
  * Sets the dates of the Calendar that will be disabled
297
300
  * ([see example]({% slug disabled_dates_calendar %})).
298
301
  */
299
302
  set: function (value) {
300
303
  this.disabledDatesService.initialize(value);
304
+ this._disabledDates = value;
301
305
  },
302
306
  enumerable: true,
303
307
  configurable: true
@@ -38,10 +38,9 @@ var HeaderComponent = /** @class */ (function () {
38
38
  this.subscriptions = new Subscription();
39
39
  }
40
40
  HeaderComponent.prototype.ngOnInit = function () {
41
- this.subscriptions
42
- .add(this.intl.changes.subscribe(this.intlChange.bind(this)))
43
- .add(this.localization.changes.subscribe(this.l10nChange.bind(this)))
44
- .add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)));
41
+ this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this)));
42
+ this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this)));
43
+ this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)));
45
44
  };
46
45
  HeaderComponent.prototype.ngOnChanges = function (_) {
47
46
  var service = this.bus.service(this.activeView);
@@ -320,7 +320,9 @@ var HorizontalViewListComponent = /** @class */ (function () {
320
320
  ], HorizontalViewListComponent.prototype, "activeDateChange", void 0);
321
321
  tslib_1.__decorate([
322
322
  HostBinding("class.k-calendar-view"),
323
- HostBinding("class.k-justify-align-start"),
323
+ HostBinding("class.k-hstack"),
324
+ HostBinding("class.k-align-items-start"),
325
+ HostBinding("class.k-justify-content-center"),
324
326
  tslib_1.__metadata("design:type", Boolean)
325
327
  ], HorizontalViewListComponent.prototype, "getComponentClass", void 0);
326
328
  tslib_1.__decorate([
@@ -190,7 +190,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
190
190
  this.minValidateFn = noop;
191
191
  this.maxValidateFn = noop;
192
192
  this.disabledDatesRangeValidateFn = noop;
193
- this.subscriptions = new Subscription(function () { });
193
+ this.subscriptions = new Subscription();
194
194
  this.setClasses(element.nativeElement);
195
195
  }
196
196
  Object.defineProperty(MultiViewCalendarComponent.prototype, "focusedDate", {
@@ -19,8 +19,8 @@ var DateRangeInput = /** @class */ (function () {
19
19
  this.renderer = renderer;
20
20
  this.zone = zone;
21
21
  this.navigateCalendarOnFocus = false;
22
- this.popupSubscriptions = new Subscription(function () { });
23
- this.subscriptions = new Subscription(function () { });
22
+ this.popupSubscriptions = new Subscription();
23
+ this.subscriptions = new Subscription();
24
24
  }
25
25
  Object.defineProperty(DateRangeInput.prototype, "isActiveEnd", {
26
26
  get: function () {
@@ -79,7 +79,7 @@ var DateRangeInput = /** @class */ (function () {
79
79
  };
80
80
  DateRangeInput.prototype.unsubscribePopup = function () {
81
81
  this.popupSubscriptions.unsubscribe();
82
- this.popupSubscriptions = new Subscription(function () { });
82
+ this.popupSubscriptions = new Subscription();
83
83
  };
84
84
  DateRangeInput.prototype.activate = function () {
85
85
  this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd);
@@ -84,8 +84,8 @@ var DateRangePopupComponent = /** @class */ (function () {
84
84
  * @hidden
85
85
  */
86
86
  this.popupUID = guid();
87
- this.calendarSubscriptions = new Subscription(function () { });
88
- this.popupSubscriptions = new Subscription(function () { });
87
+ this.calendarSubscriptions = new Subscription();
88
+ this.popupSubscriptions = new Subscription();
89
89
  this.resolvedPromise = Promise.resolve();
90
90
  }
91
91
  Object.defineProperty(DateRangePopupComponent.prototype, "calendar", {
@@ -38,7 +38,7 @@ var DateRangeSelectionDirective = /** @class */ (function () {
38
38
  * the section on [events]({% slug overview_multiviewcalendar %}#toc-events).
39
39
  */
40
40
  this.selectionRangeChange = new EventEmitter();
41
- this.calendarSubscriptions = new Subscription(function () { });
41
+ this.calendarSubscriptions = new Subscription();
42
42
  this.dateRangeService = this.dateRangeService || new DateRangeService();
43
43
  renderer.setAttribute(element.nativeElement, 'aria-multiselectable', 'true');
44
44
  }
@@ -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: 1630585137,
12
+ publishDate: 1635259300,
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
  };
@@ -269,6 +269,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
269
269
  cellUID: string;
270
270
  selectedDates: Date[];
271
271
  rangePivot: Date;
272
+ private _disabledDates;
272
273
  private _min;
273
274
  private _max;
274
275
  private _focusedDate;
@@ -277,6 +277,10 @@ let CalendarComponent = class CalendarComponent {
277
277
  */
278
278
  set disabledDates(value) {
279
279
  this.disabledDatesService.initialize(value);
280
+ this._disabledDates = value;
281
+ }
282
+ get disabledDates() {
283
+ return this._disabledDates;
280
284
  }
281
285
  /**
282
286
  * Specifies the Calendar type.
@@ -38,10 +38,9 @@ let HeaderComponent = class HeaderComponent {
38
38
  this.subscriptions = new Subscription();
39
39
  }
40
40
  ngOnInit() {
41
- this.subscriptions
42
- .add(this.intl.changes.subscribe(this.intlChange.bind(this)))
43
- .add(this.localization.changes.subscribe(this.l10nChange.bind(this)))
44
- .add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)));
41
+ this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this)));
42
+ this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this)));
43
+ this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)));
45
44
  }
46
45
  ngOnChanges(_) {
47
46
  const service = this.bus.service(this.activeView);
@@ -300,7 +300,9 @@ tslib_1.__decorate([
300
300
  ], HorizontalViewListComponent.prototype, "activeDateChange", void 0);
301
301
  tslib_1.__decorate([
302
302
  HostBinding("class.k-calendar-view"),
303
- HostBinding("class.k-justify-align-start"),
303
+ HostBinding("class.k-hstack"),
304
+ HostBinding("class.k-align-items-start"),
305
+ HostBinding("class.k-justify-content-center"),
304
306
  tslib_1.__metadata("design:type", Boolean)
305
307
  ], HorizontalViewListComponent.prototype, "getComponentClass", void 0);
306
308
  tslib_1.__decorate([
@@ -190,7 +190,7 @@ let MultiViewCalendarComponent = class MultiViewCalendarComponent {
190
190
  this.minValidateFn = noop;
191
191
  this.maxValidateFn = noop;
192
192
  this.disabledDatesRangeValidateFn = noop;
193
- this.subscriptions = new Subscription(() => { });
193
+ this.subscriptions = new Subscription();
194
194
  this.setClasses(element.nativeElement);
195
195
  }
196
196
  /**
@@ -19,8 +19,8 @@ export class DateRangeInput {
19
19
  this.renderer = renderer;
20
20
  this.zone = zone;
21
21
  this.navigateCalendarOnFocus = false;
22
- this.popupSubscriptions = new Subscription(() => { });
23
- this.subscriptions = new Subscription(() => { });
22
+ this.popupSubscriptions = new Subscription();
23
+ this.subscriptions = new Subscription();
24
24
  }
25
25
  get isActiveEnd() {
26
26
  return this.dateRangeService.activeRangeEnd === this.activeRangeEnd;
@@ -69,7 +69,7 @@ export class DateRangeInput {
69
69
  }
70
70
  unsubscribePopup() {
71
71
  this.popupSubscriptions.unsubscribe();
72
- this.popupSubscriptions = new Subscription(() => { });
72
+ this.popupSubscriptions = new Subscription();
73
73
  }
74
74
  activate() {
75
75
  this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd);
@@ -84,8 +84,8 @@ let DateRangePopupComponent = class DateRangePopupComponent {
84
84
  * @hidden
85
85
  */
86
86
  this.popupUID = guid();
87
- this.calendarSubscriptions = new Subscription(() => { });
88
- this.popupSubscriptions = new Subscription(() => { });
87
+ this.calendarSubscriptions = new Subscription();
88
+ this.popupSubscriptions = new Subscription();
89
89
  this.resolvedPromise = Promise.resolve();
90
90
  }
91
91
  /**
@@ -38,7 +38,7 @@ let DateRangeSelectionDirective = class DateRangeSelectionDirective {
38
38
  * the section on [events]({% slug overview_multiviewcalendar %}#toc-events).
39
39
  */
40
40
  this.selectionRangeChange = new EventEmitter();
41
- this.calendarSubscriptions = new Subscription(() => { });
41
+ this.calendarSubscriptions = new Subscription();
42
42
  this.dateRangeService = this.dateRangeService || new DateRangeService();
43
43
  renderer.setAttribute(element.nativeElement, 'aria-multiselectable', 'true');
44
44
  }