@progress/kendo-angular-dateinputs 5.2.2-dev.202108200743 → 5.2.4-dev.202110060847

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.
@@ -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
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, TemplateRef, ViewChild } from '@angular/core';
7
- import { cloneDate, isEqual } from '@progress/kendo-date-math';
7
+ import { cloneDate } from '@progress/kendo-date-math';
8
8
  import { IntlService } from '@progress/kendo-angular-intl';
9
9
  import { VirtualizationComponent } from '../virtualization/virtualization.component';
10
10
  import { BusViewService } from './services/bus-view.service';
@@ -154,9 +154,6 @@ var ViewListComponent = /** @class */ (function () {
154
154
  };
155
155
  ViewListComponent.prototype.setActiveDate = function (index) {
156
156
  var candidate = this.service.addToDate(this.min, index);
157
- if (isEqual(this.activeDate, candidate)) {
158
- return;
159
- }
160
157
  this.activeDate = candidate;
161
158
  this.activeDateChange.emit(candidate);
162
159
  this.cdr.detectChanges();
@@ -59,7 +59,7 @@ var DatePickerComponent = /** @class */ (function () {
59
59
  this.focusableId = "k-" + guid();
60
60
  /**
61
61
  * Defines the active view that the Calendar initially renders
62
- * ([see example]({% slug activeview_datepicker %})).
62
+ * ([see example]({% slug calendar_type_datepicker %}#toc-active-view)).
63
63
  * By default, the active view is `month`.
64
64
  *
65
65
  * > You have to set `activeView` within the `topView`-`bottomView` range.
@@ -67,12 +67,12 @@ var DatePickerComponent = /** @class */ (function () {
67
67
  this.activeView = CalendarViewEnum[CalendarViewEnum.month];
68
68
  /**
69
69
  * Defines the bottommost Calendar view to which the user can navigate
70
- * ([see example]({% slug dates_datepicker %}#toc-partial-dates)).
70
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
71
71
  */
72
72
  this.bottomView = CalendarViewEnum[CalendarViewEnum.month];
73
73
  /**
74
74
  * Defines the topmost Calendar view to which the user can navigate
75
- * ([see example]({% slug dates_datepicker %}#toc-partial-dates)).
75
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
76
76
  */
77
77
  this.topView = CalendarViewEnum[CalendarViewEnum.century];
78
78
  /**
@@ -133,7 +133,7 @@ var DatePickerComponent = /** @class */ (function () {
133
133
  this.incompleteDateValidation = false;
134
134
  /**
135
135
  * Specifies the focused date of the Calendar component
136
- * ([see example]({% slug dates_datepicker %})).
136
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
137
137
  */
138
138
  this.focusedDate = null;
139
139
  /**
@@ -189,7 +189,7 @@ var DatePickerComponent = /** @class */ (function () {
189
189
  this.disabledDatesValidation = true;
190
190
  /**
191
191
  * Determines whether to display a week number column in the `month` view of the Calendar
192
- * ([see example]({% slug weeknumcolumn_datepicker %})).
192
+ * ([see example]({% slug calendar_type_datepicker %}#toc-week-number-column)).
193
193
  */
194
194
  this.weekNumber = false;
195
195
  /**
@@ -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: 1629445219,
12
+ publishDate: 1633509845,
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.
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, TemplateRef, ViewChild } from '@angular/core';
7
- import { cloneDate, isEqual } from '@progress/kendo-date-math';
7
+ import { cloneDate } from '@progress/kendo-date-math';
8
8
  import { IntlService } from '@progress/kendo-angular-intl';
9
9
  import { VirtualizationComponent } from '../virtualization/virtualization.component';
10
10
  import { BusViewService } from './services/bus-view.service';
@@ -132,9 +132,6 @@ let ViewListComponent = class ViewListComponent {
132
132
  }
133
133
  setActiveDate(index) {
134
134
  const candidate = this.service.addToDate(this.min, index);
135
- if (isEqual(this.activeDate, candidate)) {
136
- return;
137
- }
138
135
  this.activeDate = candidate;
139
136
  this.activeDateChange.emit(candidate);
140
137
  this.cdr.detectChanges();
@@ -111,7 +111,7 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
111
111
  focusableId: string;
112
112
  /**
113
113
  * Defines the active view that the Calendar initially renders
114
- * ([see example]({% slug activeview_datepicker %})).
114
+ * ([see example]({% slug calendar_type_datepicker %}#toc-active-view)).
115
115
  * By default, the active view is `month`.
116
116
  *
117
117
  * > You have to set `activeView` within the `topView`-`bottomView` range.
@@ -119,12 +119,12 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
119
119
  activeView: CalendarView;
120
120
  /**
121
121
  * Defines the bottommost Calendar view to which the user can navigate
122
- * ([see example]({% slug dates_datepicker %}#toc-partial-dates)).
122
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
123
123
  */
124
124
  bottomView: CalendarView;
125
125
  /**
126
126
  * Defines the topmost Calendar view to which the user can navigate
127
- * ([see example]({% slug dates_datepicker %}#toc-partial-dates)).
127
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
128
128
  */
129
129
  topView: CalendarView;
130
130
  /**
@@ -194,7 +194,7 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
194
194
  incompleteDateValidation: boolean;
195
195
  /**
196
196
  * Specifies the focused date of the Calendar component
197
- * ([see example]({% slug dates_datepicker %})).
197
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
198
198
  */
199
199
  focusedDate: Date;
200
200
  /**
@@ -309,7 +309,7 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
309
309
  disabledDatesValidation: boolean;
310
310
  /**
311
311
  * Determines whether to display a week number column in the `month` view of the Calendar
312
- * ([see example]({% slug weeknumcolumn_datepicker %})).
312
+ * ([see example]({% slug calendar_type_datepicker %}#toc-week-number-column)).
313
313
  */
314
314
  weekNumber: boolean;
315
315
  /**
@@ -60,7 +60,7 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent {
60
60
  this.focusableId = `k-${guid()}`;
61
61
  /**
62
62
  * Defines the active view that the Calendar initially renders
63
- * ([see example]({% slug activeview_datepicker %})).
63
+ * ([see example]({% slug calendar_type_datepicker %}#toc-active-view)).
64
64
  * By default, the active view is `month`.
65
65
  *
66
66
  * > You have to set `activeView` within the `topView`-`bottomView` range.
@@ -68,12 +68,12 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent {
68
68
  this.activeView = CalendarViewEnum[CalendarViewEnum.month];
69
69
  /**
70
70
  * Defines the bottommost Calendar view to which the user can navigate
71
- * ([see example]({% slug dates_datepicker %}#toc-partial-dates)).
71
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
72
72
  */
73
73
  this.bottomView = CalendarViewEnum[CalendarViewEnum.month];
74
74
  /**
75
75
  * Defines the topmost Calendar view to which the user can navigate
76
- * ([see example]({% slug dates_datepicker %}#toc-partial-dates)).
76
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
77
77
  */
78
78
  this.topView = CalendarViewEnum[CalendarViewEnum.century];
79
79
  /**
@@ -134,7 +134,7 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent {
134
134
  this.incompleteDateValidation = false;
135
135
  /**
136
136
  * Specifies the focused date of the Calendar component
137
- * ([see example]({% slug dates_datepicker %})).
137
+ * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
138
138
  */
139
139
  this.focusedDate = null;
140
140
  /**
@@ -190,7 +190,7 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent {
190
190
  this.disabledDatesValidation = true;
191
191
  /**
192
192
  * Determines whether to display a week number column in the `month` view of the Calendar
193
- * ([see example]({% slug weeknumcolumn_datepicker %})).
193
+ * ([see example]({% slug calendar_type_datepicker %}#toc-week-number-column)).
194
194
  */
195
195
  this.weekNumber = false;
196
196
  /**