@progress/kendo-react-dateinputs 5.4.0-dev.202205250548 → 5.4.0-dev.202206081230

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 (182) hide show
  1. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  2. package/dist/es/PopupSettings.js +1 -0
  3. package/dist/es/calendar/components/Calendar.d.ts +10 -10
  4. package/dist/es/calendar/components/Calendar.js +26 -12
  5. package/dist/es/calendar/components/CalendarCell.js +7 -3
  6. package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
  7. package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
  8. package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
  9. package/dist/es/calendar/components/Header.d.ts +5 -4
  10. package/dist/es/calendar/components/Header.js +8 -6
  11. package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
  12. package/dist/es/calendar/components/HorizontalViewList.js +8 -5
  13. package/dist/es/calendar/components/MultiViewCalendar.d.ts +13 -13
  14. package/dist/es/calendar/components/MultiViewCalendar.js +24 -15
  15. package/dist/es/calendar/components/Navigation.d.ts +2 -2
  16. package/dist/es/calendar/components/Navigation.js +13 -6
  17. package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
  18. package/dist/es/calendar/components/TodayCommand.js +10 -6
  19. package/dist/es/calendar/components/View.d.ts +11 -11
  20. package/dist/es/calendar/components/View.js +17 -13
  21. package/dist/es/calendar/components/ViewList.d.ts +9 -9
  22. package/dist/es/calendar/components/ViewList.js +19 -9
  23. package/dist/es/calendar/models/ActiveView.js +1 -0
  24. package/dist/es/calendar/models/CalendarSettings.js +1 -0
  25. package/dist/es/calendar/models/CellContext.js +1 -0
  26. package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
  27. package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
  28. package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
  29. package/dist/es/calendar/models/ViewService.js +1 -0
  30. package/dist/es/calendar/services/BusViewService.js +1 -1
  31. package/dist/es/calendar/services/CenturyViewService.js +2 -2
  32. package/dist/es/calendar/services/DOMService.js +24 -6
  33. package/dist/es/calendar/services/DecadeViewService.js +2 -2
  34. package/dist/es/calendar/services/MonthViewService.js +2 -2
  35. package/dist/es/calendar/services/NavigationService.js +1 -1
  36. package/dist/es/calendar/services/ScrollSyncService.js +5 -1
  37. package/dist/es/calendar/services/YearViewService.js +2 -2
  38. package/dist/es/calendar/utils/ScrollSync.d.ts +3 -3
  39. package/dist/es/calendar/utils/ScrollSync.js +2 -0
  40. package/dist/es/dateinput/DateInput.d.ts +24 -20
  41. package/dist/es/dateinput/DateInput.js +32 -19
  42. package/dist/es/dateinput/models/DateInputSettings.js +1 -0
  43. package/dist/es/dateinput/models/format-placeholder.js +1 -0
  44. package/dist/es/dateinput/models/incremental-steps.js +1 -0
  45. package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
  46. package/dist/es/dateinput/models/kendo-date.js +3 -3
  47. package/dist/es/dateinput/models/mask.js +1 -0
  48. package/dist/es/dateinput/models/selection.js +1 -0
  49. package/dist/es/dateinput/utils.d.ts +2 -2
  50. package/dist/es/datepicker/DatePicker.d.ts +25 -25
  51. package/dist/es/datepicker/DatePicker.js +28 -23
  52. package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
  53. package/dist/es/datepicker/models/index.js +1 -0
  54. package/dist/es/daterangepicker/DateRangePicker.d.ts +16 -14
  55. package/dist/es/daterangepicker/DateRangePicker.js +16 -14
  56. package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
  57. package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
  58. package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
  59. package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
  60. package/dist/es/daterangepicker/models/index.js +1 -0
  61. package/dist/es/datetimepicker/DateTimePicker.d.ts +19 -19
  62. package/dist/es/datetimepicker/DateTimePicker.js +33 -18
  63. package/dist/es/datetimepicker/DateTimeSelector.d.ts +7 -7
  64. package/dist/es/datetimepicker/DateTimeSelector.js +17 -7
  65. package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
  66. package/dist/es/datetimepicker/models/index.js +1 -0
  67. package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
  68. package/dist/es/messages/index.d.ts +21 -21
  69. package/dist/es/package-metadata.js +1 -1
  70. package/dist/es/timepicker/TimeList.d.ts +8 -8
  71. package/dist/es/timepicker/TimeList.js +33 -13
  72. package/dist/es/timepicker/TimePart.d.ts +11 -11
  73. package/dist/es/timepicker/TimePart.js +14 -9
  74. package/dist/es/timepicker/TimePicker.d.ts +23 -23
  75. package/dist/es/timepicker/TimePicker.js +27 -22
  76. package/dist/es/timepicker/TimeSelector.d.ts +6 -6
  77. package/dist/es/timepicker/TimeSelector.js +11 -5
  78. package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
  79. package/dist/es/timepicker/models/ListItem.js +1 -0
  80. package/dist/es/timepicker/models/ListService.js +1 -0
  81. package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
  82. package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
  83. package/dist/es/timepicker/services/DOMService.js +2 -0
  84. package/dist/es/timepicker/services/DayPeriodService.js +9 -3
  85. package/dist/es/timepicker/services/HoursService.js +14 -5
  86. package/dist/es/timepicker/services/MinutesService.js +12 -6
  87. package/dist/es/timepicker/services/SecondsService.js +12 -6
  88. package/dist/es/timepicker/utils.d.ts +4 -4
  89. package/dist/es/utils.d.ts +1 -1
  90. package/dist/es/utils.js +10 -1
  91. package/dist/es/virtualization/Virtualization.d.ts +9 -8
  92. package/dist/es/virtualization/Virtualization.js +23 -13
  93. package/dist/es/virtualization/services/RowHeightService.js +10 -1
  94. package/dist/es/virtualization/services/ScrollerService.js +9 -3
  95. package/dist/npm/calendar/components/Calendar.d.ts +10 -10
  96. package/dist/npm/calendar/components/Calendar.js +53 -38
  97. package/dist/npm/calendar/components/CalendarCell.js +9 -4
  98. package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
  99. package/dist/npm/calendar/components/CalendarNavigationItem.js +9 -4
  100. package/dist/npm/calendar/components/CalendarWeekCell.js +9 -4
  101. package/dist/npm/calendar/components/Header.d.ts +5 -4
  102. package/dist/npm/calendar/components/Header.js +11 -8
  103. package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
  104. package/dist/npm/calendar/components/HorizontalViewList.js +11 -7
  105. package/dist/npm/calendar/components/MultiViewCalendar.d.ts +13 -13
  106. package/dist/npm/calendar/components/MultiViewCalendar.js +62 -52
  107. package/dist/npm/calendar/components/Navigation.d.ts +2 -2
  108. package/dist/npm/calendar/components/Navigation.js +18 -10
  109. package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
  110. package/dist/npm/calendar/components/TodayCommand.js +16 -11
  111. package/dist/npm/calendar/components/View.d.ts +11 -11
  112. package/dist/npm/calendar/components/View.js +27 -22
  113. package/dist/npm/calendar/components/ViewList.d.ts +9 -9
  114. package/dist/npm/calendar/components/ViewList.js +29 -18
  115. package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
  116. package/dist/npm/calendar/models/NavigationAction.js +1 -0
  117. package/dist/npm/calendar/models/SelectionRange.js +1 -0
  118. package/dist/npm/calendar/models/index.js +4 -3
  119. package/dist/npm/calendar/services/BusViewService.js +3 -2
  120. package/dist/npm/calendar/services/CenturyViewService.js +40 -39
  121. package/dist/npm/calendar/services/DOMService.js +34 -15
  122. package/dist/npm/calendar/services/DecadeViewService.js +34 -33
  123. package/dist/npm/calendar/services/MonthViewService.js +38 -37
  124. package/dist/npm/calendar/services/NavigationService.js +2 -1
  125. package/dist/npm/calendar/services/ScrollSyncService.js +6 -1
  126. package/dist/npm/calendar/services/WeekNamesService.js +2 -1
  127. package/dist/npm/calendar/services/YearViewService.js +35 -34
  128. package/dist/npm/calendar/services/index.js +10 -9
  129. package/dist/npm/calendar/utils/ScrollSync.d.ts +3 -3
  130. package/dist/npm/calendar/utils/ScrollSync.js +2 -0
  131. package/dist/npm/common/PickerWrap.js +2 -1
  132. package/dist/npm/dateinput/DateInput.d.ts +24 -20
  133. package/dist/npm/dateinput/DateInput.js +51 -37
  134. package/dist/npm/dateinput/models/index.js +3 -2
  135. package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
  136. package/dist/npm/dateinput/models/kendo-date.js +15 -14
  137. package/dist/npm/dateinput/models/mask.js +2 -0
  138. package/dist/npm/dateinput/utils.d.ts +2 -2
  139. package/dist/npm/dateinput/utils.js +9 -4
  140. package/dist/npm/datepicker/DatePicker.d.ts +25 -25
  141. package/dist/npm/datepicker/DatePicker.js +42 -36
  142. package/dist/npm/datepicker/ToggleButton.js +1 -0
  143. package/dist/npm/daterangepicker/DateRangePicker.d.ts +16 -14
  144. package/dist/npm/daterangepicker/DateRangePicker.js +34 -31
  145. package/dist/npm/datetimepicker/DateTimePicker.d.ts +19 -19
  146. package/dist/npm/datetimepicker/DateTimePicker.js +46 -30
  147. package/dist/npm/datetimepicker/DateTimeSelector.d.ts +7 -7
  148. package/dist/npm/datetimepicker/DateTimeSelector.js +26 -15
  149. package/dist/npm/defaults.js +1 -0
  150. package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
  151. package/dist/npm/hooks/usePickerFloatingLabel.js +6 -3
  152. package/dist/npm/main.js +22 -21
  153. package/dist/npm/messages/index.d.ts +21 -21
  154. package/dist/npm/messages/index.js +2 -1
  155. package/dist/npm/package-metadata.js +2 -1
  156. package/dist/npm/timepicker/TimeList.d.ts +8 -8
  157. package/dist/npm/timepicker/TimeList.js +39 -18
  158. package/dist/npm/timepicker/TimePart.d.ts +11 -11
  159. package/dist/npm/timepicker/TimePart.js +25 -19
  160. package/dist/npm/timepicker/TimePicker.d.ts +23 -23
  161. package/dist/npm/timepicker/TimePicker.js +43 -37
  162. package/dist/npm/timepicker/TimeSelector.d.ts +6 -6
  163. package/dist/npm/timepicker/TimeSelector.js +22 -15
  164. package/dist/npm/timepicker/models/TimePart.js +1 -0
  165. package/dist/npm/timepicker/models/index.js +2 -1
  166. package/dist/npm/timepicker/services/DOMService.js +7 -4
  167. package/dist/npm/timepicker/services/DayPeriodService.js +11 -4
  168. package/dist/npm/timepicker/services/HoursService.js +21 -11
  169. package/dist/npm/timepicker/services/MinutesService.js +17 -10
  170. package/dist/npm/timepicker/services/SecondsService.js +17 -10
  171. package/dist/npm/timepicker/services/index.js +6 -5
  172. package/dist/npm/timepicker/utils.d.ts +4 -4
  173. package/dist/npm/timepicker/utils.js +30 -20
  174. package/dist/npm/utils.d.ts +1 -1
  175. package/dist/npm/utils.js +43 -20
  176. package/dist/npm/virtualization/Virtualization.d.ts +9 -8
  177. package/dist/npm/virtualization/Virtualization.js +27 -16
  178. package/dist/npm/virtualization/services/RowHeightService.js +11 -1
  179. package/dist/npm/virtualization/services/ScrollerService.js +10 -3
  180. package/dist/npm/virtualization/services/index.js +5 -4
  181. package/dist/systemjs/kendo-react-dateinputs.js +1 -1
  182. package/package.json +13 -13
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DOMService = void 0;
3
4
  var CalendarViewEnum_1 = require("../models/CalendarViewEnum");
4
5
  var utils_1 = require("../../utils");
5
6
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -8,7 +9,25 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
8
9
  */
9
10
  var DOMService = /** @class */ (function () {
10
11
  function DOMService() {
12
+ // heights
13
+ this.calendarHeight = 0;
14
+ this.headerHeight = 0;
15
+ this.monthViewHeight = 0;
16
+ this.yearViewHeight = 0;
17
+ this.decadeViewHeight = 0;
18
+ this.centuryViewHeight = 0;
19
+ this.navigationItemHeight = 0;
20
+ this.scrollableContentHeight = 0;
21
+ this.scrollableYearContentHeight = 0;
22
+ // widths
23
+ this.calendarWidth = 0;
24
+ this.monthViewWidth = 0;
25
+ this.yearViewWidth = 0;
26
+ this.decadeViewWidth = 0;
27
+ this.centuryViewWidth = 0;
28
+ this.scrollableContentWidth = 0;
11
29
  this.didCalculate = false;
30
+ this.hostContainer = null;
12
31
  }
13
32
  DOMService.prototype.ensureHeights = function () {
14
33
  if (this.calendarHeight !== undefined) {
@@ -21,15 +40,15 @@ var DOMService = /** @class */ (function () {
21
40
  if (!kendo_react_common_1.canUseDOM) {
22
41
  return;
23
42
  }
24
- var div = utils_1.domContainerFactory('div');
25
- var ul = utils_1.domContainerFactory('ul');
26
- var li = utils_1.domContainerFactory('li');
27
- var td = utils_1.domContainerFactory('td');
28
- var th = utils_1.domContainerFactory('th');
29
- var tr = utils_1.domContainerFactory('tr');
30
- var tbody = utils_1.domContainerFactory('tbody');
31
- var thead = utils_1.domContainerFactory('thead');
32
- var table = utils_1.domContainerFactory('table');
43
+ var div = (0, utils_1.domContainerFactory)('div');
44
+ var ul = (0, utils_1.domContainerFactory)('ul');
45
+ var li = (0, utils_1.domContainerFactory)('li');
46
+ var td = (0, utils_1.domContainerFactory)('td');
47
+ var th = (0, utils_1.domContainerFactory)('th');
48
+ var tr = (0, utils_1.domContainerFactory)('tr');
49
+ var tbody = (0, utils_1.domContainerFactory)('tbody');
50
+ var thead = (0, utils_1.domContainerFactory)('thead');
51
+ var table = (0, utils_1.domContainerFactory)('table');
33
52
  var monthHeader = function () { return (div("\n <span class=\"k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title\">\n <span className=\"k-button-text\">March 2017</span>\n </span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\"><span class=\"k-nav-today\">TODAY</span></span>\n ", 'k-calendar-header k-hstack')); };
34
53
  var monthWeekHeader = function () { return (table([
35
54
  thead([
@@ -40,7 +59,7 @@ var DOMService = /** @class */ (function () {
40
59
  var content = function (rows, cells) {
41
60
  if (cells === void 0) { cells = 1; }
42
61
  return (table([
43
- tbody([tr([td('1', 'k-calendar-td k-alt')])].concat(repeat(rows, function () { return tr(repeat(cells, function (c) { return td("<span class=\"k-link\">" + c + "</span>", 'k-calendar-td'); }), 'k-calendar-tr'); })), 'k-calendar-tbody')
62
+ tbody([tr([td('1', 'k-calendar-td k-alt')])].concat(repeat(rows, function () { return tr(repeat(cells, function (c) { return td("<span class=\"k-link\">".concat(c, "</span>"), 'k-calendar-td'); }), 'k-calendar-tr'); })), 'k-calendar-tbody')
44
63
  ], 'k-calendar-table'));
45
64
  };
46
65
  var scrollable = function (children) { return div(children, 'k-content k-calendar-content k-scrollable'); };
@@ -82,7 +101,7 @@ var DOMService = /** @class */ (function () {
82
101
  var getScrollable = function (element) { return element.querySelector('.k-scrollable'); };
83
102
  var horizontal = function (element) {
84
103
  var scrollableElement = getScrollable(element);
85
- scrollableElement.className = scrollableElement.className + " k-scrollable-horizontal";
104
+ scrollableElement.className = "".concat(scrollableElement.className, " k-scrollable-horizontal");
86
105
  return element;
87
106
  };
88
107
  var monthView = viewFactory({ cells: 7, rows: 6 }, 'k-calendar-view k-calendar-monthview k-vstack', true);
@@ -146,13 +165,13 @@ var DOMService = /** @class */ (function () {
146
165
  var viewProp = dimension === 'height' ? 'ViewHeight' : 'ViewWidth';
147
166
  switch (viewType) {
148
167
  case CalendarViewEnum_1.CalendarViewEnum.month:
149
- return this["month" + viewProp];
168
+ return this["month".concat(viewProp)];
150
169
  case CalendarViewEnum_1.CalendarViewEnum.year:
151
- return this["year" + viewProp];
170
+ return this["year".concat(viewProp)];
152
171
  case CalendarViewEnum_1.CalendarViewEnum.decade:
153
- return this["decade" + viewProp];
172
+ return this["decade".concat(viewProp)];
154
173
  case CalendarViewEnum_1.CalendarViewEnum.century:
155
- return this["century" + viewProp];
174
+ return this["century".concat(viewProp)];
156
175
  default:
157
176
  return 1;
158
177
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
2
  var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DecadeViewService = void 0;
4
5
  var kendo_date_math_1 = require("@progress/kendo-date-math");
5
6
  var NavigationAction_1 = require("../models/NavigationAction");
6
7
  var SelectionRange_1 = require("../models/SelectionRange");
@@ -9,14 +10,14 @@ var EMPTY_DATA = [[]];
9
10
  var CELLS_LENGTH = 4;
10
11
  var ROWS_LENGTH = 3;
11
12
  var ACTIONS = (_a = {},
12
- _a[NavigationAction_1.Action.Left] = function (date) { return kendo_date_math_1.addYears(date, -1); },
13
- _a[NavigationAction_1.Action.Up] = function (date) { return kendo_date_math_1.addYears(date, -5); },
14
- _a[NavigationAction_1.Action.Right] = function (date) { return kendo_date_math_1.addYears(date, 1); },
15
- _a[NavigationAction_1.Action.Down] = function (date) { return kendo_date_math_1.addYears(date, 5); },
16
- _a[NavigationAction_1.Action.PrevView] = function (date) { return kendo_date_math_1.addDecades(date, -1); },
17
- _a[NavigationAction_1.Action.NextView] = function (date) { return kendo_date_math_1.addDecades(date, 1); },
18
- _a[NavigationAction_1.Action.FirstInView] = function (date) { return kendo_date_math_1.firstYearOfDecade(date); },
19
- _a[NavigationAction_1.Action.LastInView] = function (date) { return kendo_date_math_1.lastYearOfDecade(date); },
13
+ _a[NavigationAction_1.Action.Left] = function (date) { return (0, kendo_date_math_1.addYears)(date, -1); },
14
+ _a[NavigationAction_1.Action.Up] = function (date) { return (0, kendo_date_math_1.addYears)(date, -5); },
15
+ _a[NavigationAction_1.Action.Right] = function (date) { return (0, kendo_date_math_1.addYears)(date, 1); },
16
+ _a[NavigationAction_1.Action.Down] = function (date) { return (0, kendo_date_math_1.addYears)(date, 5); },
17
+ _a[NavigationAction_1.Action.PrevView] = function (date) { return (0, kendo_date_math_1.addDecades)(date, -1); },
18
+ _a[NavigationAction_1.Action.NextView] = function (date) { return (0, kendo_date_math_1.addDecades)(date, 1); },
19
+ _a[NavigationAction_1.Action.FirstInView] = function (date) { return (0, kendo_date_math_1.firstYearOfDecade)(date); },
20
+ _a[NavigationAction_1.Action.LastInView] = function (date) { return (0, kendo_date_math_1.lastYearOfDecade)(date); },
20
21
  _a);
21
22
  /**
22
23
  * @hidden
@@ -25,10 +26,10 @@ var DecadeViewService = /** @class */ (function () {
25
26
  function DecadeViewService() {
26
27
  }
27
28
  DecadeViewService.prototype.addToDate = function (min, skip) {
28
- return kendo_date_math_1.addDecades(min, skip);
29
+ return (0, kendo_date_math_1.addDecades)(min, skip);
29
30
  };
30
31
  DecadeViewService.prototype.datesList = function (start, count) {
31
- return utils_1.range(0, count).map(function (i) { return kendo_date_math_1.addDecades(start, i); });
32
+ return (0, utils_1.range)(0, count).map(function (i) { return (0, kendo_date_math_1.addDecades)(start, i); });
32
33
  };
33
34
  DecadeViewService.prototype.data = function (options) {
34
35
  var _this = this;
@@ -36,28 +37,28 @@ var DecadeViewService = /** @class */ (function () {
36
37
  if (!viewDate) {
37
38
  return EMPTY_DATA;
38
39
  }
39
- var cells = utils_1.range(0, CELLS_LENGTH);
40
- var firstDate = kendo_date_math_1.firstYearOfDecade(viewDate);
41
- var lastDate = kendo_date_math_1.lastYearOfDecade(viewDate);
42
- var today = utils_1.getToday();
43
- return utils_1.range(0, ROWS_LENGTH).map(function (rowOffset) {
44
- var baseDate = kendo_date_math_1.addYears(firstDate, rowOffset * CELLS_LENGTH);
40
+ var cells = (0, utils_1.range)(0, CELLS_LENGTH);
41
+ var firstDate = (0, kendo_date_math_1.firstYearOfDecade)(viewDate);
42
+ var lastDate = (0, kendo_date_math_1.lastYearOfDecade)(viewDate);
43
+ var today = (0, utils_1.getToday)();
44
+ return (0, utils_1.range)(0, ROWS_LENGTH).map(function (rowOffset) {
45
+ var baseDate = (0, kendo_date_math_1.addYears)(firstDate, rowOffset * CELLS_LENGTH);
45
46
  return cells.map(function (cellOffset) {
46
- var cellDate = _this.normalize(kendo_date_math_1.addYears(baseDate, cellOffset), min, max);
47
+ var cellDate = _this.normalize((0, kendo_date_math_1.addYears)(baseDate, cellOffset), min, max);
47
48
  var isRangeStart = _this.isEqual(cellDate, selectionRange.start);
48
49
  var isRangeEnd = _this.isEqual(cellDate, selectionRange.end);
49
50
  var isInMiddle = !isRangeStart && !isRangeEnd;
50
- var isRangeMid = isInMiddle && utils_1.isInSelectionRange(cellDate, selectionRange);
51
+ var isRangeMid = isInMiddle && (0, utils_1.isInSelectionRange)(cellDate, selectionRange);
51
52
  var isSelected = isActiveView && (!Array.isArray(selectedDate)
52
- ? utils_1.isInRange(selectedDate, min, max) && _this.isEqual(cellDate, selectedDate)
53
+ ? (0, utils_1.isInRange)(selectedDate, min, max) && _this.isEqual(cellDate, selectedDate)
53
54
  : _this.isSelectedFromArray(cellDate, selectedDate, min, max));
54
- return utils_1.intersects(cellDate, firstDate, lastDate) ? ({
55
+ return (0, utils_1.intersects)(cellDate, firstDate, lastDate) ? ({
55
56
  formattedValue: _this.value(cellDate),
56
- id: "" + cellUID + cellDate.getTime(),
57
+ id: "".concat(cellUID).concat(cellDate.getTime()),
57
58
  isFocused: _this.isEqual(cellDate, focusedDate),
58
59
  isSelected: isSelected,
59
60
  isWeekend: false,
60
- isInRange: utils_1.isInRange(cellDate, min, max),
61
+ isInRange: (0, utils_1.isInRange)(cellDate, min, max),
61
62
  isRangeStart: isRangeStart,
62
63
  isRangeMid: isRangeMid,
63
64
  isRangeEnd: isRangeEnd,
@@ -74,7 +75,7 @@ var DecadeViewService = /** @class */ (function () {
74
75
  var _this = this;
75
76
  var result = false;
76
77
  dates.forEach(function (date) {
77
- if (utils_1.isInRange(candidate, min, max) && _this.isEqual(candidate, date)) {
78
+ if ((0, utils_1.isInRange)(candidate, min, max) && _this.isEqual(candidate, date)) {
78
79
  result = true;
79
80
  }
80
81
  });
@@ -103,7 +104,7 @@ var DecadeViewService = /** @class */ (function () {
103
104
  return value.getFullYear() % 100 === 0;
104
105
  };
105
106
  DecadeViewService.prototype.isInSameView = function (candidate, value) {
106
- return kendo_date_math_1.durationInDecades(candidate, value) === 0;
107
+ return (0, kendo_date_math_1.durationInDecades)(candidate, value) === 0;
107
108
  };
108
109
  DecadeViewService.prototype.move = function (value, action) {
109
110
  var modifier = ACTIONS[action];
@@ -116,37 +117,37 @@ var DecadeViewService = /** @class */ (function () {
116
117
  return value.getFullYear().toString();
117
118
  };
118
119
  DecadeViewService.prototype.navigationTitle = function (value) {
119
- return value ? kendo_date_math_1.firstYearOfDecade(value).getFullYear().toString() : '';
120
+ return value ? (0, kendo_date_math_1.firstYearOfDecade)(value).getFullYear().toString() : '';
120
121
  };
121
122
  DecadeViewService.prototype.title = function (value) {
122
123
  if (!value) {
123
124
  return '';
124
125
  }
125
- return kendo_date_math_1.firstYearOfDecade(value).getFullYear() + " - " + kendo_date_math_1.lastYearOfDecade(value).getFullYear();
126
+ return "".concat((0, kendo_date_math_1.firstYearOfDecade)(value).getFullYear(), " - ").concat((0, kendo_date_math_1.lastYearOfDecade)(value).getFullYear());
126
127
  };
127
128
  DecadeViewService.prototype.rowLength = function (_) {
128
129
  return CELLS_LENGTH;
129
130
  };
130
131
  DecadeViewService.prototype.skip = function (value, min) {
131
- return kendo_date_math_1.durationInDecades(min, value);
132
+ return (0, kendo_date_math_1.durationInDecades)(min, value);
132
133
  };
133
134
  DecadeViewService.prototype.total = function (min, max) {
134
- return kendo_date_math_1.durationInDecades(min, max) + 1;
135
+ return (0, kendo_date_math_1.durationInDecades)(min, max) + 1;
135
136
  };
136
137
  DecadeViewService.prototype.value = function (current) {
137
138
  return current ? current.getFullYear().toString() : '';
138
139
  };
139
140
  DecadeViewService.prototype.viewDate = function (date, max, border) {
140
141
  if (border === void 0) { border = 1; }
141
- var renderTwoViews = kendo_date_math_1.durationInDecades(date, max) < border;
142
- return renderTwoViews ? kendo_date_math_1.addDecades(date, -1) : date;
142
+ var renderTwoViews = (0, kendo_date_math_1.durationInDecades)(date, max) < border;
143
+ return renderTwoViews ? (0, kendo_date_math_1.addDecades)(date, -1) : date;
143
144
  };
144
145
  DecadeViewService.prototype.normalize = function (cellDate, min, max) {
145
146
  if (cellDate < min && this.isEqual(cellDate, min)) {
146
- return kendo_date_math_1.cloneDate(min);
147
+ return (0, kendo_date_math_1.cloneDate)(min);
147
148
  }
148
149
  if (cellDate > max && this.isEqual(cellDate, max)) {
149
- return kendo_date_math_1.cloneDate(max);
150
+ return (0, kendo_date_math_1.cloneDate)(max);
150
151
  }
151
152
  return cellDate;
152
153
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
2
  var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MonthViewService = void 0;
4
5
  var kendo_date_math_1 = require("@progress/kendo-date-math");
5
6
  var NavigationAction_1 = require("../models/NavigationAction");
6
7
  var SelectionRange_1 = require("../models/SelectionRange");
@@ -11,14 +12,14 @@ var ROWS_LENGTH = 6;
11
12
  var SATURDAY = 6;
12
13
  var SUNDAY = 0;
13
14
  var ACTIONS = (_a = {},
14
- _a[NavigationAction_1.Action.Left] = function (date) { return kendo_date_math_1.addDays(date, -1); },
15
- _a[NavigationAction_1.Action.Up] = function (date) { return kendo_date_math_1.addWeeks(date, -1); },
16
- _a[NavigationAction_1.Action.Right] = function (date) { return kendo_date_math_1.addDays(date, 1); },
17
- _a[NavigationAction_1.Action.Down] = function (date) { return kendo_date_math_1.addWeeks(date, 1); },
18
- _a[NavigationAction_1.Action.PrevView] = function (date) { return kendo_date_math_1.addMonths(date, -1); },
19
- _a[NavigationAction_1.Action.NextView] = function (date) { return kendo_date_math_1.addMonths(date, 1); },
20
- _a[NavigationAction_1.Action.FirstInView] = function (date) { return kendo_date_math_1.firstDayOfMonth(date); },
21
- _a[NavigationAction_1.Action.LastInView] = function (date) { return kendo_date_math_1.lastDayOfMonth(date); },
15
+ _a[NavigationAction_1.Action.Left] = function (date) { return (0, kendo_date_math_1.addDays)(date, -1); },
16
+ _a[NavigationAction_1.Action.Up] = function (date) { return (0, kendo_date_math_1.addWeeks)(date, -1); },
17
+ _a[NavigationAction_1.Action.Right] = function (date) { return (0, kendo_date_math_1.addDays)(date, 1); },
18
+ _a[NavigationAction_1.Action.Down] = function (date) { return (0, kendo_date_math_1.addWeeks)(date, 1); },
19
+ _a[NavigationAction_1.Action.PrevView] = function (date) { return (0, kendo_date_math_1.addMonths)(date, -1); },
20
+ _a[NavigationAction_1.Action.NextView] = function (date) { return (0, kendo_date_math_1.addMonths)(date, 1); },
21
+ _a[NavigationAction_1.Action.FirstInView] = function (date) { return (0, kendo_date_math_1.firstDayOfMonth)(date); },
22
+ _a[NavigationAction_1.Action.LastInView] = function (date) { return (0, kendo_date_math_1.lastDayOfMonth)(date); },
22
23
  _a);
23
24
  /**
24
25
  * @hidden
@@ -28,10 +29,10 @@ var MonthViewService = /** @class */ (function () {
28
29
  this.intl = intl;
29
30
  }
30
31
  MonthViewService.prototype.addToDate = function (min, skip) {
31
- return kendo_date_math_1.addMonths(min, skip);
32
+ return (0, kendo_date_math_1.addMonths)(min, skip);
32
33
  };
33
34
  MonthViewService.prototype.datesList = function (start, count) {
34
- return utils_1.range(0, count).map(function (i) { return kendo_date_math_1.addMonths(start, i); });
35
+ return (0, utils_1.range)(0, count).map(function (i) { return (0, kendo_date_math_1.addMonths)(start, i); });
35
36
  };
36
37
  MonthViewService.prototype.data = function (options) {
37
38
  var _this = this;
@@ -39,16 +40,16 @@ var MonthViewService = /** @class */ (function () {
39
40
  if (!viewDate) {
40
41
  return EMPTY_DATA;
41
42
  }
42
- var firstMonthDate = kendo_date_math_1.firstDayOfMonth(viewDate);
43
- var lastMonthDate = kendo_date_math_1.lastDayOfMonth(viewDate);
43
+ var firstMonthDate = (0, kendo_date_math_1.firstDayOfMonth)(viewDate);
44
+ var lastMonthDate = (0, kendo_date_math_1.lastDayOfMonth)(viewDate);
44
45
  var backward = -1;
45
- var date = kendo_date_math_1.dayOfWeek(firstMonthDate, this.intl.firstDay(), backward);
46
- var cells = utils_1.range(0, CELLS_LENGTH);
47
- var today = utils_1.getToday();
48
- return utils_1.range(0, ROWS_LENGTH).map(function (rowOffset) {
49
- var baseDate = kendo_date_math_1.addDays(date, rowOffset * CELLS_LENGTH);
46
+ var date = (0, kendo_date_math_1.dayOfWeek)(firstMonthDate, this.intl.firstDay(), backward);
47
+ var cells = (0, utils_1.range)(0, CELLS_LENGTH);
48
+ var today = (0, utils_1.getToday)();
49
+ return (0, utils_1.range)(0, ROWS_LENGTH).map(function (rowOffset) {
50
+ var baseDate = (0, kendo_date_math_1.addDays)(date, rowOffset * CELLS_LENGTH);
50
51
  return cells.map(function (cellOffset) {
51
- var cellDate = _this.normalize(kendo_date_math_1.addDays(baseDate, cellOffset), min, max);
52
+ var cellDate = _this.normalize((0, kendo_date_math_1.addDays)(baseDate, cellOffset), min, max);
52
53
  var otherMonth = cellDate < firstMonthDate || cellDate > lastMonthDate;
53
54
  if (otherMonth) {
54
55
  return null;
@@ -56,16 +57,16 @@ var MonthViewService = /** @class */ (function () {
56
57
  var isRangeStart = _this.isEqual(cellDate, selectionRange.start);
57
58
  var isRangeEnd = _this.isEqual(cellDate, selectionRange.end);
58
59
  var isInMiddle = !isRangeStart && !isRangeEnd;
59
- var isRangeMid = isInMiddle && utils_1.isInSelectionRange(cellDate, selectionRange);
60
+ var isRangeMid = isInMiddle && (0, utils_1.isInSelectionRange)(cellDate, selectionRange);
60
61
  var isSelected = isActiveView && (!Array.isArray(selectedDate)
61
- ? utils_1.isInRange(selectedDate, min, max) && _this.isEqual(cellDate, selectedDate)
62
+ ? (0, utils_1.isInRange)(selectedDate, min, max) && _this.isEqual(cellDate, selectedDate)
62
63
  : _this.isSelectedFromArray(cellDate, selectedDate, min, max));
63
64
  var cell = {
64
65
  formattedValue: _this.value(cellDate),
65
- id: "" + cellUID + cellDate.getTime(),
66
+ id: "".concat(cellUID).concat(cellDate.getTime()),
66
67
  isFocused: _this.isEqual(cellDate, focusedDate),
67
68
  isSelected: isSelected,
68
- isInRange: utils_1.isInRange(cellDate, min, max),
69
+ isInRange: (0, utils_1.isInRange)(cellDate, min, max),
69
70
  isWeekend: _this.isWeekend(cellDate),
70
71
  isRangeStart: isRangeStart,
71
72
  isRangeMid: isRangeMid,
@@ -84,29 +85,29 @@ var MonthViewService = /** @class */ (function () {
84
85
  if (!candidate || !expected) {
85
86
  return false;
86
87
  }
87
- return kendo_date_math_1.getDate(candidate).getTime() === kendo_date_math_1.getDate(expected).getTime();
88
+ return (0, kendo_date_math_1.getDate)(candidate).getTime() === (0, kendo_date_math_1.getDate)(expected).getTime();
88
89
  };
89
90
  MonthViewService.prototype.isSelectedFromArray = function (candidate, dates, min, max) {
90
91
  var _this = this;
91
92
  var result = false;
92
93
  dates.forEach(function (date) {
93
- if (utils_1.isInRange(candidate, min, max) && _this.isEqual(candidate, date)) {
94
+ if ((0, utils_1.isInRange)(candidate, min, max) && _this.isEqual(candidate, date)) {
94
95
  result = true;
95
96
  }
96
97
  });
97
98
  return result;
98
99
  };
99
100
  MonthViewService.prototype.isInArray = function (date, dates) {
100
- return !!dates.length && kendo_date_math_1.firstDayOfMonth(dates[0]) <= date && date <= kendo_date_math_1.lastDayOfMonth(dates[dates.length - 1]);
101
+ return !!dates.length && (0, kendo_date_math_1.firstDayOfMonth)(dates[0]) <= date && date <= (0, kendo_date_math_1.lastDayOfMonth)(dates[dates.length - 1]);
101
102
  };
102
103
  MonthViewService.prototype.isInRange = function (candidate, min, max) {
103
- var value = kendo_date_math_1.getDate(candidate);
104
- var aboveMin = !min || kendo_date_math_1.getDate(min) <= value;
105
- var belowMax = !max || value <= kendo_date_math_1.getDate(max);
104
+ var value = (0, kendo_date_math_1.getDate)(candidate);
105
+ var aboveMin = !min || (0, kendo_date_math_1.getDate)(min) <= value;
106
+ var belowMax = !max || value <= (0, kendo_date_math_1.getDate)(max);
106
107
  return aboveMin && belowMax;
107
108
  };
108
109
  MonthViewService.prototype.isInSameView = function (candidate, value) {
109
- return kendo_date_math_1.durationInMonths(candidate, value) === 0;
110
+ return (0, kendo_date_math_1.durationInMonths)(candidate, value) === 0;
110
111
  };
111
112
  MonthViewService.prototype.isRangeStart = function (value) {
112
113
  return !value.getMonth();
@@ -128,24 +129,24 @@ var MonthViewService = /** @class */ (function () {
128
129
  return this.isRangeStart(value) ? value.getFullYear().toString() : this.abbrMonthNames()[value.getMonth()];
129
130
  };
130
131
  MonthViewService.prototype.title = function (current) {
131
- return this.wideMonthNames()[current.getMonth()] + " " + current.getFullYear();
132
+ return "".concat(this.wideMonthNames()[current.getMonth()], " ").concat(current.getFullYear());
132
133
  };
133
134
  MonthViewService.prototype.rowLength = function (prependCell) {
134
135
  return CELLS_LENGTH + (prependCell ? 1 : 0);
135
136
  };
136
137
  MonthViewService.prototype.skip = function (value, min) {
137
- return kendo_date_math_1.durationInMonths(min, value);
138
+ return (0, kendo_date_math_1.durationInMonths)(min, value);
138
139
  };
139
140
  MonthViewService.prototype.total = function (min, max) {
140
- return kendo_date_math_1.durationInMonths(min, max) + 1;
141
+ return (0, kendo_date_math_1.durationInMonths)(min, max) + 1;
141
142
  };
142
143
  MonthViewService.prototype.value = function (current) {
143
144
  return current ? current.getDate().toString() : '';
144
145
  };
145
146
  MonthViewService.prototype.viewDate = function (date, max, border) {
146
147
  if (border === void 0) { border = 1; }
147
- var renderTwoViews = kendo_date_math_1.durationInMonths(date, max) < border;
148
- return renderTwoViews ? kendo_date_math_1.addMonths(date, -1) : date;
148
+ var renderTwoViews = (0, kendo_date_math_1.durationInMonths)(date, max) < border;
149
+ return renderTwoViews ? (0, kendo_date_math_1.addMonths)(date, -1) : date;
149
150
  };
150
151
  MonthViewService.prototype.isWeekend = function (date) {
151
152
  var day = date.getDay();
@@ -156,10 +157,10 @@ var MonthViewService = /** @class */ (function () {
156
157
  };
157
158
  MonthViewService.prototype.normalize = function (cellDate, min, max) {
158
159
  if (cellDate < min && this.isEqual(cellDate, min)) {
159
- return kendo_date_math_1.getDate(min);
160
+ return (0, kendo_date_math_1.getDate)(min);
160
161
  }
161
162
  if (cellDate > max && this.isEqual(cellDate, max)) {
162
- return kendo_date_math_1.getDate(max);
163
+ return (0, kendo_date_math_1.getDate)(max);
163
164
  }
164
165
  return cellDate;
165
166
  };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NavigationService = void 0;
3
4
  var NavigationAction_1 = require("../models/NavigationAction");
4
5
  var KEY_TO_ACTION = {
5
6
  '33': NavigationAction_1.Action.PrevView,
@@ -21,7 +22,7 @@ var NavigationService = /** @class */ (function () {
21
22
  this.bus = bus;
22
23
  }
23
24
  NavigationService.prototype.action = function (event) {
24
- var action = "" + (event.ctrlKey || event.metaKey ? 'meta+' : '') + event.keyCode;
25
+ var action = "".concat(event.ctrlKey || event.metaKey ? 'meta+' : '').concat(event.keyCode);
25
26
  return KEY_TO_ACTION[action];
26
27
  };
27
28
  NavigationService.prototype.move = function (value, action, activeView, service, event) {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScrollSyncService = void 0;
3
4
  var divideByMagnitude = function (magnitude) { return function (x) { return Math.floor(x / magnitude); }; };
4
5
  var powerByMagnitude = function (magnitude) { return function (x) { return x * magnitude; }; };
5
6
  /**
@@ -8,6 +9,10 @@ var powerByMagnitude = function (magnitude) { return function (x) { return x * m
8
9
  var ScrollSyncService = /** @class */ (function () {
9
10
  function ScrollSyncService(dom) {
10
11
  this.dom = dom;
12
+ this.divideByMagnitude = null;
13
+ this.powerByMagnitude = null;
14
+ this.navigator = null;
15
+ this.view = null;
11
16
  this.monthScrolled = false;
12
17
  this.navScrolled = false;
13
18
  }
@@ -49,7 +54,7 @@ var ScrollSyncService = /** @class */ (function () {
49
54
  };
50
55
  ScrollSyncService.prototype.calculateScroll = function (component, scrollTop) {
51
56
  var modifier = component === this.navigator ? this.divideByMagnitude : this.powerByMagnitude;
52
- return modifier(scrollTop);
57
+ return modifier ? modifier(scrollTop) : 0;
53
58
  };
54
59
  return ScrollSyncService;
55
60
  }());
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeekNamesService = void 0;
3
4
  var utils_1 = require("../../utils");
4
5
  /**
5
6
  * @hidden
@@ -10,7 +11,7 @@ var WeekNamesService = /** @class */ (function () {
10
11
  }
11
12
  WeekNamesService.prototype.getWeekNames = function (includeWeekNumber) {
12
13
  if (includeWeekNumber === void 0) { includeWeekNumber = false; }
13
- var weekNames = utils_1.shiftWeekNames(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
14
+ var weekNames = (0, utils_1.shiftWeekNames)(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
14
15
  return includeWeekNumber ? [''].concat(weekNames) : weekNames;
15
16
  };
16
17
  return WeekNamesService;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
2
  var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.YearViewService = void 0;
4
5
  var kendo_date_math_1 = require("@progress/kendo-date-math");
5
6
  var NavigationAction_1 = require("../models/NavigationAction");
6
7
  var utils_1 = require("../../utils");
@@ -28,14 +29,14 @@ var downStep = function (month) {
28
29
  return 2;
29
30
  };
30
31
  var ACTIONS = (_a = {},
31
- _a[NavigationAction_1.Action.Left] = function (date) { return kendo_date_math_1.addMonths(date, -1); },
32
- _a[NavigationAction_1.Action.Up] = function (date) { return kendo_date_math_1.addMonths(date, upStep(date.getMonth())); },
33
- _a[NavigationAction_1.Action.Right] = function (date) { return kendo_date_math_1.addMonths(date, 1); },
34
- _a[NavigationAction_1.Action.Down] = function (date) { return kendo_date_math_1.addMonths(date, downStep(date.getMonth())); },
35
- _a[NavigationAction_1.Action.PrevView] = function (date) { return kendo_date_math_1.addYears(date, -1); },
36
- _a[NavigationAction_1.Action.NextView] = function (date) { return kendo_date_math_1.addYears(date, 1); },
37
- _a[NavigationAction_1.Action.FirstInView] = function (date) { return kendo_date_math_1.firstMonthOfYear(date); },
38
- _a[NavigationAction_1.Action.LastInView] = function (date) { return kendo_date_math_1.lastMonthOfYear(date); },
32
+ _a[NavigationAction_1.Action.Left] = function (date) { return (0, kendo_date_math_1.addMonths)(date, -1); },
33
+ _a[NavigationAction_1.Action.Up] = function (date) { return (0, kendo_date_math_1.addMonths)(date, upStep(date.getMonth())); },
34
+ _a[NavigationAction_1.Action.Right] = function (date) { return (0, kendo_date_math_1.addMonths)(date, 1); },
35
+ _a[NavigationAction_1.Action.Down] = function (date) { return (0, kendo_date_math_1.addMonths)(date, downStep(date.getMonth())); },
36
+ _a[NavigationAction_1.Action.PrevView] = function (date) { return (0, kendo_date_math_1.addYears)(date, -1); },
37
+ _a[NavigationAction_1.Action.NextView] = function (date) { return (0, kendo_date_math_1.addYears)(date, 1); },
38
+ _a[NavigationAction_1.Action.FirstInView] = function (date) { return (0, kendo_date_math_1.firstMonthOfYear)(date); },
39
+ _a[NavigationAction_1.Action.LastInView] = function (date) { return (0, kendo_date_math_1.lastMonthOfYear)(date); },
39
40
  _a);
40
41
  /**
41
42
  * @hidden
@@ -45,10 +46,10 @@ var YearViewService = /** @class */ (function () {
45
46
  this._intl = intl;
46
47
  }
47
48
  YearViewService.prototype.addToDate = function (min, skip) {
48
- return kendo_date_math_1.addYears(min, skip);
49
+ return (0, kendo_date_math_1.addYears)(min, skip);
49
50
  };
50
51
  YearViewService.prototype.datesList = function (start, count) {
51
- return utils_1.range(0, count).map(function (i) { return kendo_date_math_1.addYears(start, i); });
52
+ return (0, utils_1.range)(0, count).map(function (i) { return (0, kendo_date_math_1.addYears)(start, i); });
52
53
  };
53
54
  YearViewService.prototype.data = function (options) {
54
55
  var _this = this;
@@ -57,15 +58,15 @@ var YearViewService = /** @class */ (function () {
57
58
  return EMPTY_DATA;
58
59
  }
59
60
  var months = this.abbrMonthNames();
60
- var firstDate = kendo_date_math_1.firstMonthOfYear(viewDate);
61
- var lastDate = kendo_date_math_1.lastMonthOfYear(viewDate);
61
+ var firstDate = (0, kendo_date_math_1.firstMonthOfYear)(viewDate);
62
+ var lastDate = (0, kendo_date_math_1.lastMonthOfYear)(viewDate);
62
63
  var currentYear = firstDate.getFullYear();
63
- var cells = utils_1.range(0, CELLS_LENGTH);
64
- var today = utils_1.getToday();
65
- return utils_1.range(0, ROWS_LENGTH).map(function (rowOffset) {
66
- var baseDate = kendo_date_math_1.addMonths(firstDate, rowOffset * CELLS_LENGTH);
64
+ var cells = (0, utils_1.range)(0, CELLS_LENGTH);
65
+ var today = (0, utils_1.getToday)();
66
+ return (0, utils_1.range)(0, ROWS_LENGTH).map(function (rowOffset) {
67
+ var baseDate = (0, kendo_date_math_1.addMonths)(firstDate, rowOffset * CELLS_LENGTH);
67
68
  return cells.map(function (cellOffset) {
68
- var cellDate = _this.normalize(kendo_date_math_1.addMonths(baseDate, cellOffset), min, max);
69
+ var cellDate = _this.normalize((0, kendo_date_math_1.addMonths)(baseDate, cellOffset), min, max);
69
70
  var changedYear = currentYear < cellDate.getFullYear();
70
71
  if (changedYear) {
71
72
  return null;
@@ -73,16 +74,16 @@ var YearViewService = /** @class */ (function () {
73
74
  var isRangeStart = _this.isEqual(cellDate, selectionRange.start);
74
75
  var isRangeEnd = _this.isEqual(cellDate, selectionRange.end);
75
76
  var isInMiddle = !isRangeStart && !isRangeEnd;
76
- var isRangeMid = isInMiddle && utils_1.isInSelectionRange(cellDate, selectionRange);
77
+ var isRangeMid = isInMiddle && (0, utils_1.isInSelectionRange)(cellDate, selectionRange);
77
78
  var isSelected = isActiveView && (!Array.isArray(selectedDate)
78
- ? utils_1.isInRange(selectedDate, min, max) && _this.isEqual(cellDate, selectedDate)
79
+ ? (0, utils_1.isInRange)(selectedDate, min, max) && _this.isEqual(cellDate, selectedDate)
79
80
  : _this.isSelectedFromArray(cellDate, selectedDate, min, max));
80
81
  return {
81
82
  formattedValue: months[cellDate.getMonth()],
82
- id: "" + cellUID + cellDate.getTime(),
83
+ id: "".concat(cellUID).concat(cellDate.getTime()),
83
84
  isFocused: _this.isEqual(cellDate, focusedDate),
84
85
  isSelected: isSelected,
85
- isInRange: utils_1.isInRange(cellDate, min, max),
86
+ isInRange: (0, utils_1.isInRange)(cellDate, min, max),
86
87
  isWeekend: false,
87
88
  isRangeStart: isRangeStart,
88
89
  isRangeMid: isRangeMid,
@@ -100,7 +101,7 @@ var YearViewService = /** @class */ (function () {
100
101
  var _this = this;
101
102
  var result = false;
102
103
  dates.forEach(function (date) {
103
- if (utils_1.isInRange(candidate, min, max) && _this.isEqual(candidate, date)) {
104
+ if ((0, utils_1.isInRange)(candidate, min, max) && _this.isEqual(candidate, date)) {
104
105
  result = true;
105
106
  }
106
107
  });
@@ -121,13 +122,13 @@ var YearViewService = /** @class */ (function () {
121
122
  return dates[0].getFullYear() <= year && year <= dates[dates.length - 1].getFullYear();
122
123
  };
123
124
  YearViewService.prototype.isInRange = function (candidate, min, max) {
124
- var candidateValue = kendo_date_math_1.createDate(candidate.getFullYear(), candidate.getMonth(), 1);
125
- var aboveMin = !min || kendo_date_math_1.createDate(min.getFullYear(), min.getMonth(), 1) <= candidateValue;
126
- var belowMax = !max || candidateValue <= kendo_date_math_1.createDate(max.getFullYear(), max.getMonth(), 1);
125
+ var candidateValue = (0, kendo_date_math_1.createDate)(candidate.getFullYear(), candidate.getMonth(), 1);
126
+ var aboveMin = !min || (0, kendo_date_math_1.createDate)(min.getFullYear(), min.getMonth(), 1) <= candidateValue;
127
+ var belowMax = !max || candidateValue <= (0, kendo_date_math_1.createDate)(max.getFullYear(), max.getMonth(), 1);
127
128
  return aboveMin && belowMax;
128
129
  };
129
130
  YearViewService.prototype.isInSameView = function (candidate, value) {
130
- return kendo_date_math_1.durationInYears(candidate, value) === 0;
131
+ return (0, kendo_date_math_1.durationInYears)(candidate, value) === 0;
131
132
  };
132
133
  YearViewService.prototype.isRangeStart = function (value) {
133
134
  return value.getFullYear() % 10 === 0;
@@ -140,7 +141,7 @@ var YearViewService = /** @class */ (function () {
140
141
  return modifier(value);
141
142
  };
142
143
  YearViewService.prototype.cellTitle = function (value) {
143
- return value.getFullYear() + " " + this.value(value);
144
+ return "".concat(value.getFullYear(), " ").concat(this.value(value));
144
145
  };
145
146
  YearViewService.prototype.navigationTitle = function (value) {
146
147
  return this.title(value);
@@ -152,28 +153,28 @@ var YearViewService = /** @class */ (function () {
152
153
  return CELLS_LENGTH;
153
154
  };
154
155
  YearViewService.prototype.skip = function (value, min) {
155
- return kendo_date_math_1.durationInYears(min, value);
156
+ return (0, kendo_date_math_1.durationInYears)(min, value);
156
157
  };
157
158
  YearViewService.prototype.total = function (min, max) {
158
- return kendo_date_math_1.durationInYears(min, max) + 1;
159
+ return (0, kendo_date_math_1.durationInYears)(min, max) + 1;
159
160
  };
160
161
  YearViewService.prototype.value = function (current) {
161
162
  return current ? this.abbrMonthNames()[current.getMonth()] : '';
162
163
  };
163
164
  YearViewService.prototype.viewDate = function (date, max, border) {
164
165
  if (border === void 0) { border = 1; }
165
- var renderTwoViews = kendo_date_math_1.durationInYears(date, max) < border;
166
- return renderTwoViews ? kendo_date_math_1.addYears(date, -1) : date;
166
+ var renderTwoViews = (0, kendo_date_math_1.durationInYears)(date, max) < border;
167
+ return renderTwoViews ? (0, kendo_date_math_1.addYears)(date, -1) : date;
167
168
  };
168
169
  YearViewService.prototype.abbrMonthNames = function () {
169
170
  return this._intl.dateFormatNames({ nameType: 'abbreviated', type: 'months' });
170
171
  };
171
172
  YearViewService.prototype.normalize = function (cellDate, min, max) {
172
173
  if (cellDate < min && this.isEqual(cellDate, min)) {
173
- return kendo_date_math_2.cloneDate(min);
174
+ return (0, kendo_date_math_2.cloneDate)(min);
174
175
  }
175
176
  if (cellDate > max && this.isEqual(cellDate, max)) {
176
- return kendo_date_math_2.cloneDate(max);
177
+ return (0, kendo_date_math_2.cloneDate)(max);
177
178
  }
178
179
  return cellDate;
179
180
  };