@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.
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/PopupSettings.js +1 -0
- package/dist/es/calendar/components/Calendar.d.ts +10 -10
- package/dist/es/calendar/components/Calendar.js +26 -12
- package/dist/es/calendar/components/CalendarCell.js +7 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
- package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
- package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
- package/dist/es/calendar/components/Header.d.ts +5 -4
- package/dist/es/calendar/components/Header.js +8 -6
- package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/es/calendar/components/HorizontalViewList.js +8 -5
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +13 -13
- package/dist/es/calendar/components/MultiViewCalendar.js +24 -15
- package/dist/es/calendar/components/Navigation.d.ts +2 -2
- package/dist/es/calendar/components/Navigation.js +13 -6
- package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/es/calendar/components/TodayCommand.js +10 -6
- package/dist/es/calendar/components/View.d.ts +11 -11
- package/dist/es/calendar/components/View.js +17 -13
- package/dist/es/calendar/components/ViewList.d.ts +9 -9
- package/dist/es/calendar/components/ViewList.js +19 -9
- package/dist/es/calendar/models/ActiveView.js +1 -0
- package/dist/es/calendar/models/CalendarSettings.js +1 -0
- package/dist/es/calendar/models/CellContext.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
- package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
- package/dist/es/calendar/models/ViewService.js +1 -0
- package/dist/es/calendar/services/BusViewService.js +1 -1
- package/dist/es/calendar/services/CenturyViewService.js +2 -2
- package/dist/es/calendar/services/DOMService.js +24 -6
- package/dist/es/calendar/services/DecadeViewService.js +2 -2
- package/dist/es/calendar/services/MonthViewService.js +2 -2
- package/dist/es/calendar/services/NavigationService.js +1 -1
- package/dist/es/calendar/services/ScrollSyncService.js +5 -1
- package/dist/es/calendar/services/YearViewService.js +2 -2
- package/dist/es/calendar/utils/ScrollSync.d.ts +3 -3
- package/dist/es/calendar/utils/ScrollSync.js +2 -0
- package/dist/es/dateinput/DateInput.d.ts +24 -20
- package/dist/es/dateinput/DateInput.js +32 -19
- package/dist/es/dateinput/models/DateInputSettings.js +1 -0
- package/dist/es/dateinput/models/format-placeholder.js +1 -0
- package/dist/es/dateinput/models/incremental-steps.js +1 -0
- package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/es/dateinput/models/kendo-date.js +3 -3
- package/dist/es/dateinput/models/mask.js +1 -0
- package/dist/es/dateinput/models/selection.js +1 -0
- package/dist/es/dateinput/utils.d.ts +2 -2
- package/dist/es/datepicker/DatePicker.d.ts +25 -25
- package/dist/es/datepicker/DatePicker.js +28 -23
- package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
- package/dist/es/datepicker/models/index.js +1 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +16 -14
- package/dist/es/daterangepicker/DateRangePicker.js +16 -14
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
- package/dist/es/daterangepicker/models/index.js +1 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +19 -19
- package/dist/es/datetimepicker/DateTimePicker.js +33 -18
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +7 -7
- package/dist/es/datetimepicker/DateTimeSelector.js +17 -7
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
- package/dist/es/datetimepicker/models/index.js +1 -0
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/es/messages/index.d.ts +21 -21
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +8 -8
- package/dist/es/timepicker/TimeList.js +33 -13
- package/dist/es/timepicker/TimePart.d.ts +11 -11
- package/dist/es/timepicker/TimePart.js +14 -9
- package/dist/es/timepicker/TimePicker.d.ts +23 -23
- package/dist/es/timepicker/TimePicker.js +27 -22
- package/dist/es/timepicker/TimeSelector.d.ts +6 -6
- package/dist/es/timepicker/TimeSelector.js +11 -5
- package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
- package/dist/es/timepicker/models/ListItem.js +1 -0
- package/dist/es/timepicker/models/ListService.js +1 -0
- package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
- package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
- package/dist/es/timepicker/services/DOMService.js +2 -0
- package/dist/es/timepicker/services/DayPeriodService.js +9 -3
- package/dist/es/timepicker/services/HoursService.js +14 -5
- package/dist/es/timepicker/services/MinutesService.js +12 -6
- package/dist/es/timepicker/services/SecondsService.js +12 -6
- package/dist/es/timepicker/utils.d.ts +4 -4
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +10 -1
- package/dist/es/virtualization/Virtualization.d.ts +9 -8
- package/dist/es/virtualization/Virtualization.js +23 -13
- package/dist/es/virtualization/services/RowHeightService.js +10 -1
- package/dist/es/virtualization/services/ScrollerService.js +9 -3
- package/dist/npm/calendar/components/Calendar.d.ts +10 -10
- package/dist/npm/calendar/components/Calendar.js +53 -38
- package/dist/npm/calendar/components/CalendarCell.js +9 -4
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
- package/dist/npm/calendar/components/CalendarNavigationItem.js +9 -4
- package/dist/npm/calendar/components/CalendarWeekCell.js +9 -4
- package/dist/npm/calendar/components/Header.d.ts +5 -4
- package/dist/npm/calendar/components/Header.js +11 -8
- package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/npm/calendar/components/HorizontalViewList.js +11 -7
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +13 -13
- package/dist/npm/calendar/components/MultiViewCalendar.js +62 -52
- package/dist/npm/calendar/components/Navigation.d.ts +2 -2
- package/dist/npm/calendar/components/Navigation.js +18 -10
- package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/npm/calendar/components/TodayCommand.js +16 -11
- package/dist/npm/calendar/components/View.d.ts +11 -11
- package/dist/npm/calendar/components/View.js +27 -22
- package/dist/npm/calendar/components/ViewList.d.ts +9 -9
- package/dist/npm/calendar/components/ViewList.js +29 -18
- package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
- package/dist/npm/calendar/models/NavigationAction.js +1 -0
- package/dist/npm/calendar/models/SelectionRange.js +1 -0
- package/dist/npm/calendar/models/index.js +4 -3
- package/dist/npm/calendar/services/BusViewService.js +3 -2
- package/dist/npm/calendar/services/CenturyViewService.js +40 -39
- package/dist/npm/calendar/services/DOMService.js +34 -15
- package/dist/npm/calendar/services/DecadeViewService.js +34 -33
- package/dist/npm/calendar/services/MonthViewService.js +38 -37
- package/dist/npm/calendar/services/NavigationService.js +2 -1
- package/dist/npm/calendar/services/ScrollSyncService.js +6 -1
- package/dist/npm/calendar/services/WeekNamesService.js +2 -1
- package/dist/npm/calendar/services/YearViewService.js +35 -34
- package/dist/npm/calendar/services/index.js +10 -9
- package/dist/npm/calendar/utils/ScrollSync.d.ts +3 -3
- package/dist/npm/calendar/utils/ScrollSync.js +2 -0
- package/dist/npm/common/PickerWrap.js +2 -1
- package/dist/npm/dateinput/DateInput.d.ts +24 -20
- package/dist/npm/dateinput/DateInput.js +51 -37
- package/dist/npm/dateinput/models/index.js +3 -2
- package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/npm/dateinput/models/kendo-date.js +15 -14
- package/dist/npm/dateinput/models/mask.js +2 -0
- package/dist/npm/dateinput/utils.d.ts +2 -2
- package/dist/npm/dateinput/utils.js +9 -4
- package/dist/npm/datepicker/DatePicker.d.ts +25 -25
- package/dist/npm/datepicker/DatePicker.js +42 -36
- package/dist/npm/datepicker/ToggleButton.js +1 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +16 -14
- package/dist/npm/daterangepicker/DateRangePicker.js +34 -31
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +19 -19
- package/dist/npm/datetimepicker/DateTimePicker.js +46 -30
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +7 -7
- package/dist/npm/datetimepicker/DateTimeSelector.js +26 -15
- package/dist/npm/defaults.js +1 -0
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/npm/hooks/usePickerFloatingLabel.js +6 -3
- package/dist/npm/main.js +22 -21
- package/dist/npm/messages/index.d.ts +21 -21
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/timepicker/TimeList.d.ts +8 -8
- package/dist/npm/timepicker/TimeList.js +39 -18
- package/dist/npm/timepicker/TimePart.d.ts +11 -11
- package/dist/npm/timepicker/TimePart.js +25 -19
- package/dist/npm/timepicker/TimePicker.d.ts +23 -23
- package/dist/npm/timepicker/TimePicker.js +43 -37
- package/dist/npm/timepicker/TimeSelector.d.ts +6 -6
- package/dist/npm/timepicker/TimeSelector.js +22 -15
- package/dist/npm/timepicker/models/TimePart.js +1 -0
- package/dist/npm/timepicker/models/index.js +2 -1
- package/dist/npm/timepicker/services/DOMService.js +7 -4
- package/dist/npm/timepicker/services/DayPeriodService.js +11 -4
- package/dist/npm/timepicker/services/HoursService.js +21 -11
- package/dist/npm/timepicker/services/MinutesService.js +17 -10
- package/dist/npm/timepicker/services/SecondsService.js +17 -10
- package/dist/npm/timepicker/services/index.js +6 -5
- package/dist/npm/timepicker/utils.d.ts +4 -4
- package/dist/npm/timepicker/utils.js +30 -20
- package/dist/npm/utils.d.ts +1 -1
- package/dist/npm/utils.js +43 -20
- package/dist/npm/virtualization/Virtualization.d.ts +9 -8
- package/dist/npm/virtualization/Virtualization.js +27 -16
- package/dist/npm/virtualization/services/RowHeightService.js +11 -1
- package/dist/npm/virtualization/services/ScrollerService.js +10 -3
- package/dist/npm/virtualization/services/index.js +5 -4
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -70,12 +72,19 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
70
72
|
__extends(MultiViewCalendarWithoutContext, _super);
|
|
71
73
|
function MultiViewCalendarWithoutContext(props) {
|
|
72
74
|
var _this = _super.call(this, props) || this;
|
|
75
|
+
_this.dates = [];
|
|
73
76
|
_this.selectedDate = null;
|
|
74
77
|
_this.selectedMultiple = null;
|
|
75
78
|
_this.selectedRange = EMPTY_SELECTIONRANGE;
|
|
79
|
+
_this._focusedDate = new Date();
|
|
76
80
|
_this.cellUID = guid();
|
|
77
81
|
_this.activeRangeEnd = 'start';
|
|
82
|
+
_this._element = null;
|
|
83
|
+
_this.intl = null;
|
|
84
|
+
_this.localization = null;
|
|
85
|
+
_this.service = null;
|
|
78
86
|
_this.wrapperID = guid();
|
|
87
|
+
_this.calendarViewList = null;
|
|
79
88
|
_this.isActive = false;
|
|
80
89
|
_this.calculateFocusFromValue = true;
|
|
81
90
|
/**
|
|
@@ -179,7 +188,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
179
188
|
if (!_this.todayIsInRange) {
|
|
180
189
|
return;
|
|
181
190
|
}
|
|
182
|
-
_this.handleDateChange
|
|
191
|
+
_this.handleDateChange(event);
|
|
183
192
|
};
|
|
184
193
|
_this.handlePrevButtonClick = function () {
|
|
185
194
|
_this.navigate(Action.PrevView);
|
|
@@ -196,7 +205,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
196
205
|
value: _this.focusedDate,
|
|
197
206
|
target: _this
|
|
198
207
|
};
|
|
199
|
-
_this.handleDateChange
|
|
208
|
+
_this.handleDateChange(args);
|
|
200
209
|
}
|
|
201
210
|
else {
|
|
202
211
|
var candidate = dateInRange(_this.navigation.move(_this.focusedDate, _this.navigation.action(event), _this.state.activeView, _this.service, event), _this.min, _this.max);
|
|
@@ -315,7 +324,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
315
324
|
get: function () {
|
|
316
325
|
return this._element;
|
|
317
326
|
},
|
|
318
|
-
enumerable:
|
|
327
|
+
enumerable: false,
|
|
319
328
|
configurable: true
|
|
320
329
|
});
|
|
321
330
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "value", {
|
|
@@ -329,7 +338,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
329
338
|
? this.props.value
|
|
330
339
|
: this.state.value;
|
|
331
340
|
},
|
|
332
|
-
enumerable:
|
|
341
|
+
enumerable: false,
|
|
333
342
|
configurable: true
|
|
334
343
|
});
|
|
335
344
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "focusedDate", {
|
|
@@ -339,7 +348,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
339
348
|
get: function () {
|
|
340
349
|
return cloneDate(this._focusedDate);
|
|
341
350
|
},
|
|
342
|
-
enumerable:
|
|
351
|
+
enumerable: false,
|
|
343
352
|
configurable: true
|
|
344
353
|
});
|
|
345
354
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "min", {
|
|
@@ -348,7 +357,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
348
357
|
? this.props.min
|
|
349
358
|
: MultiViewCalendarWithoutContext.defaultProps.min);
|
|
350
359
|
},
|
|
351
|
-
enumerable:
|
|
360
|
+
enumerable: false,
|
|
352
361
|
configurable: true
|
|
353
362
|
});
|
|
354
363
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "max", {
|
|
@@ -357,7 +366,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
357
366
|
? this.props.max
|
|
358
367
|
: MultiViewCalendarWithoutContext.defaultProps.max);
|
|
359
368
|
},
|
|
360
|
-
enumerable:
|
|
369
|
+
enumerable: false,
|
|
361
370
|
configurable: true
|
|
362
371
|
});
|
|
363
372
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "bottomView", {
|
|
@@ -366,7 +375,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
366
375
|
? this.props.bottomView
|
|
367
376
|
: MultiViewCalendarWithoutContext.defaultProps.bottomView];
|
|
368
377
|
},
|
|
369
|
-
enumerable:
|
|
378
|
+
enumerable: false,
|
|
370
379
|
configurable: true
|
|
371
380
|
});
|
|
372
381
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "topView", {
|
|
@@ -375,7 +384,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
375
384
|
? this.props.topView
|
|
376
385
|
: MultiViewCalendarWithoutContext.defaultProps.topView];
|
|
377
386
|
},
|
|
378
|
-
enumerable:
|
|
387
|
+
enumerable: false,
|
|
379
388
|
configurable: true
|
|
380
389
|
});
|
|
381
390
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "activeRange", {
|
|
@@ -384,14 +393,14 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
384
393
|
? this.props.activeRangeEnd
|
|
385
394
|
: this.activeRangeEnd;
|
|
386
395
|
},
|
|
387
|
-
enumerable:
|
|
396
|
+
enumerable: false,
|
|
388
397
|
configurable: true
|
|
389
398
|
});
|
|
390
399
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "todayIsInRange", {
|
|
391
400
|
get: function () {
|
|
392
401
|
return isInRange(getToday(), getDate(this.min), getDate(this.max));
|
|
393
402
|
},
|
|
394
|
-
enumerable:
|
|
403
|
+
enumerable: false,
|
|
395
404
|
configurable: true
|
|
396
405
|
});
|
|
397
406
|
/**
|
|
@@ -456,7 +465,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
456
465
|
}
|
|
457
466
|
var activeDate = cloneDate(this.dates && this.dates[0] ? this.dates[0] : getToday());
|
|
458
467
|
return (React.createElement("div", __assign({ ref: function (el) { _this._element = el; }, className: wrapperClassName, id: this.props.id || this.wrapperID, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, role: 'grid', tabIndex: !this.props.disabled ? this.props.tabIndex : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, wrapperAria),
|
|
459
|
-
React.createElement(Header, { key: ".kendo.calendar.header."
|
|
468
|
+
React.createElement(Header, { key: ".kendo.calendar.header.".concat(activeDate.getTime()), activeView: activeView, currentDate: activeDate, min: this.min, max: this.max, rangeLength: this.props.views, bus: this.bus, service: this.service, headerTitle: this.props.headerTitle, commands: (React.createElement(React.Fragment, null,
|
|
460
469
|
React.createElement(Button, __assign({ type: "button", className: "k-nav-prev", icon: "arrow-chevron-left", fillMode: "flat", title: prevViewTitle, disabled: isPrevDisabled, onClick: this.handlePrevButtonClick }, prevBtnAria)),
|
|
461
470
|
React.createElement(TodayCommand, { min: this.min, max: this.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange }),
|
|
462
471
|
React.createElement(Button, __assign({ type: "button", className: "k-nav-next", icon: "arrow-chevron-right", fillMode: "flat", title: nextViewTittle, disabled: isNextDisabled, onClick: this.handleNextButtonClick }, nextBtnAria)))) }),
|
|
@@ -507,8 +516,8 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
507
516
|
views: function (props, propName, componentName) {
|
|
508
517
|
var views = props[propName];
|
|
509
518
|
if (views !== undefined && views < 1) {
|
|
510
|
-
return new Error("Invalid prop '"
|
|
511
|
-
|
|
519
|
+
return new Error("Invalid prop '".concat(propName, "' supplied to") +
|
|
520
|
+
"'".concat(componentName, "'. The '").concat(propName, "' property cannot be less than 1'"));
|
|
512
521
|
}
|
|
513
522
|
return null;
|
|
514
523
|
},
|
|
@@ -58,14 +58,14 @@ export declare class Navigation extends React.Component<NavigationProps, Navigat
|
|
|
58
58
|
private lastView;
|
|
59
59
|
private indexToScroll?;
|
|
60
60
|
private lastFocus;
|
|
61
|
-
protected
|
|
61
|
+
protected get take(): number;
|
|
62
62
|
constructor(props: NavigationProps);
|
|
63
63
|
/**
|
|
64
64
|
* @hidden
|
|
65
65
|
*/
|
|
66
66
|
componentDidUpdate(_prevProps: NavigationProps, _prevState: NavigationState): void;
|
|
67
67
|
render(): JSX.Element;
|
|
68
|
-
protected handleVirtualizationMount: (virtualization:
|
|
68
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
69
69
|
protected buildNavigationItem: (date: Date) => React.ReactNode;
|
|
70
70
|
protected calculateHeights: () => void;
|
|
71
71
|
protected getTake(skip: number, total: number): number;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -36,11 +38,16 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
36
38
|
__extends(Navigation, _super);
|
|
37
39
|
function Navigation(props) {
|
|
38
40
|
var _this = _super.call(this, props) || this;
|
|
41
|
+
_this.virtualization = null;
|
|
42
|
+
_this.list = null;
|
|
43
|
+
_this.itemHeight = 0;
|
|
39
44
|
_this.topOffset = 0;
|
|
45
|
+
_this.maxViewHeight = 0;
|
|
46
|
+
_this.bottomOffset = 0;
|
|
40
47
|
_this.handleVirtualizationMount = function (virtualization) {
|
|
41
48
|
_this.virtualization = virtualization;
|
|
42
49
|
if (_this.virtualization && _this.list) {
|
|
43
|
-
_this.list.style.transform = "translateY("
|
|
50
|
+
_this.list.style.transform = "translateY(".concat(_this.topOffset, "px)");
|
|
44
51
|
var viewDate = dateInRange(_this.props.focusedDate, _this.props.min, _this.props.max);
|
|
45
52
|
var indexToScroll = _this.props.service.skip(viewDate, _this.props.min);
|
|
46
53
|
_this.virtualization.scrollToIndex(indexToScroll);
|
|
@@ -49,7 +56,7 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
49
56
|
_this.buildNavigationItem = function (date) {
|
|
50
57
|
var text = _this.props.service.navigationTitle(date);
|
|
51
58
|
var isRangeStart = _this.props.service.isRangeStart(date);
|
|
52
|
-
var uniqueID = "kendo-react-calendar-nav-item-"
|
|
59
|
+
var uniqueID = "kendo-react-calendar-nav-item-".concat(date.getTime());
|
|
53
60
|
var navigationItemProps = {
|
|
54
61
|
text: text,
|
|
55
62
|
value: date,
|
|
@@ -70,7 +77,7 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
70
77
|
};
|
|
71
78
|
_this.handleDateChange = function (value, event) {
|
|
72
79
|
var onChange = _this.props.onChange;
|
|
73
|
-
if (onChange) {
|
|
80
|
+
if (onChange && event) {
|
|
74
81
|
var args = {
|
|
75
82
|
value: cloneDate(value),
|
|
76
83
|
target: _this,
|
|
@@ -87,7 +94,7 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
87
94
|
_this.setState({ skip: skip });
|
|
88
95
|
}
|
|
89
96
|
if (_this.list && scrollAction) {
|
|
90
|
-
var translate = "translateY("
|
|
97
|
+
var translate = "translateY(".concat(scrollAction.offset, "px)");
|
|
91
98
|
_this.list.style.transform = translate;
|
|
92
99
|
}
|
|
93
100
|
};
|
|
@@ -106,7 +113,7 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
106
113
|
? this.props.take
|
|
107
114
|
: Navigation.defaultProps.take;
|
|
108
115
|
},
|
|
109
|
-
enumerable:
|
|
116
|
+
enumerable: false,
|
|
110
117
|
configurable: true
|
|
111
118
|
});
|
|
112
119
|
/**
|
|
@@ -21,10 +21,10 @@ export declare class TodayCommand extends React.Component<TodayCommandProps> {
|
|
|
21
21
|
min: Date;
|
|
22
22
|
max: Date;
|
|
23
23
|
};
|
|
24
|
-
protected
|
|
25
|
-
protected
|
|
24
|
+
protected get min(): Date;
|
|
25
|
+
protected get max(): Date;
|
|
26
26
|
private localization;
|
|
27
|
-
protected
|
|
27
|
+
protected get todayIsInRange(): boolean;
|
|
28
28
|
private handleClick;
|
|
29
29
|
render(): JSX.Element;
|
|
30
30
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -23,18 +25,20 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
23
25
|
__extends(TodayCommand, _super);
|
|
24
26
|
function TodayCommand() {
|
|
25
27
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
_this.localization = null;
|
|
26
29
|
_this.handleClick = function (syntheticEvent) {
|
|
27
30
|
if (!_this.todayIsInRange) {
|
|
28
31
|
return;
|
|
29
32
|
}
|
|
30
33
|
if (_this.props.onClick) {
|
|
31
|
-
|
|
34
|
+
var event_1 = {
|
|
32
35
|
syntheticEvent: syntheticEvent,
|
|
33
36
|
nativeEvent: syntheticEvent.nativeEvent,
|
|
34
37
|
value: dateInRange(getToday(), _this.min, _this.max),
|
|
35
38
|
target: _this,
|
|
36
39
|
isTodayClick: true
|
|
37
|
-
}
|
|
40
|
+
};
|
|
41
|
+
_this.props.onClick.call(undefined, event_1);
|
|
38
42
|
}
|
|
39
43
|
};
|
|
40
44
|
return _this;
|
|
@@ -45,7 +49,7 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
45
49
|
? this.props.min
|
|
46
50
|
: TodayCommand.defaultProps.min;
|
|
47
51
|
},
|
|
48
|
-
enumerable:
|
|
52
|
+
enumerable: false,
|
|
49
53
|
configurable: true
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(TodayCommand.prototype, "max", {
|
|
@@ -54,14 +58,14 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
54
58
|
? this.props.max
|
|
55
59
|
: TodayCommand.defaultProps.max;
|
|
56
60
|
},
|
|
57
|
-
enumerable:
|
|
61
|
+
enumerable: false,
|
|
58
62
|
configurable: true
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(TodayCommand.prototype, "todayIsInRange", {
|
|
61
65
|
get: function () {
|
|
62
66
|
return isInRange(getToday(), getDate(this.min), getDate(this.max));
|
|
63
67
|
},
|
|
64
|
-
enumerable:
|
|
68
|
+
enumerable: false,
|
|
65
69
|
configurable: true
|
|
66
70
|
});
|
|
67
71
|
TodayCommand.prototype.render = function () {
|
|
@@ -34,7 +34,7 @@ export interface ViewProps {
|
|
|
34
34
|
max: Date;
|
|
35
35
|
min: Date;
|
|
36
36
|
cell?: React.ComponentType<CalendarCellProps>;
|
|
37
|
-
onCellEnter?: (date: Date
|
|
37
|
+
onCellEnter?: (date: Date) => void;
|
|
38
38
|
onCellLeave?: (date: Date | null) => void;
|
|
39
39
|
onChange?: (event: ViewEventArguments) => void;
|
|
40
40
|
selectedDate: Date | Date[] | null;
|
|
@@ -48,7 +48,7 @@ export interface ViewProps {
|
|
|
48
48
|
*/
|
|
49
49
|
export declare class View extends React.Component<ViewProps, {}> {
|
|
50
50
|
static propTypes: {
|
|
51
|
-
activeRangeEnd: PropTypes.Requireable<string>;
|
|
51
|
+
activeRangeEnd: PropTypes.Requireable<string | null>;
|
|
52
52
|
activeView: PropTypes.Validator<number>;
|
|
53
53
|
cellUID: PropTypes.Validator<string>;
|
|
54
54
|
direction: PropTypes.Requireable<string>;
|
|
@@ -56,7 +56,7 @@ export declare class View extends React.Component<ViewProps, {}> {
|
|
|
56
56
|
max: PropTypes.Validator<Date>;
|
|
57
57
|
min: PropTypes.Validator<Date>;
|
|
58
58
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
selectedDate: PropTypes.Requireable<Date | Date[]>;
|
|
59
|
+
selectedDate: PropTypes.Requireable<Date | (Date | null | undefined)[]>;
|
|
60
60
|
showWeekNumbers: PropTypes.Requireable<boolean>;
|
|
61
61
|
viewDate: PropTypes.Validator<Date>;
|
|
62
62
|
};
|
|
@@ -67,18 +67,18 @@ export declare class View extends React.Component<ViewProps, {}> {
|
|
|
67
67
|
};
|
|
68
68
|
private intl;
|
|
69
69
|
private weekService;
|
|
70
|
-
protected
|
|
71
|
-
protected
|
|
72
|
-
protected
|
|
73
|
-
protected
|
|
74
|
-
protected
|
|
75
|
-
protected
|
|
70
|
+
protected get min(): Date;
|
|
71
|
+
protected get max(): Date;
|
|
72
|
+
protected get isHorizontal(): boolean;
|
|
73
|
+
protected get isMonthView(): boolean;
|
|
74
|
+
protected get weekNumber(): boolean;
|
|
75
|
+
protected get selectedDate(): Date | Date[] | null;
|
|
76
76
|
render(): JSX.Element;
|
|
77
77
|
protected buildWeekNumber: (row: any, idx: number) => JSX.Element;
|
|
78
78
|
protected buildRow: (row: any) => any;
|
|
79
79
|
protected getWeekNumber(date: Date): number | null;
|
|
80
|
-
protected firstDate: (row: any) => Date;
|
|
81
|
-
protected firstWeekDateContext: (rowCtx: CellContext[]) => CellContext;
|
|
80
|
+
protected firstDate: (row: any) => Date | null;
|
|
81
|
+
protected firstWeekDateContext: (rowCtx: CellContext[]) => CellContext | null;
|
|
82
82
|
private handleClick;
|
|
83
83
|
private handleMouseEnter;
|
|
84
84
|
private handleMouseLeave;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -42,14 +44,16 @@ var View = /** @class */ (function (_super) {
|
|
|
42
44
|
__extends(View, _super);
|
|
43
45
|
function View() {
|
|
44
46
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
_this.intl = null;
|
|
48
|
+
_this.weekService = null;
|
|
45
49
|
_this.buildWeekNumber = function (row, idx) {
|
|
46
50
|
var firstDayOfWeek = _this.firstDate(row);
|
|
47
51
|
if (!firstDayOfWeek) {
|
|
48
|
-
return emptyCell("week-cell-"
|
|
52
|
+
return emptyCell("week-cell-".concat(idx));
|
|
49
53
|
}
|
|
50
54
|
var firstDate = _this.firstDate(row);
|
|
51
55
|
var weekCellValue = _this.getWeekNumber(firstDate);
|
|
52
|
-
var uniqueID = "kendo-react-calendar-week-cell-"
|
|
56
|
+
var uniqueID = "kendo-react-calendar-week-cell-".concat(weekCellValue);
|
|
53
57
|
var cellProps = {
|
|
54
58
|
className: 'k-alt',
|
|
55
59
|
value: weekCellValue,
|
|
@@ -65,8 +69,8 @@ var View = /** @class */ (function (_super) {
|
|
|
65
69
|
return emptyCell(idx);
|
|
66
70
|
}
|
|
67
71
|
var aria = { 'aria-selected': cell.isSelected };
|
|
68
|
-
var uniqueID = "kendo-react-calendar-cell-"
|
|
69
|
-
var cellProps = __assign({}, aria, cell, { isDisabled: !cell.isInRange, view: _this.props.activeView, onClick: _this.handleClick, onMouseEnter: _this.handleMouseEnter, onMouseLeave: _this.handleMouseLeave });
|
|
72
|
+
var uniqueID = "kendo-react-calendar-cell-".concat(cell.value.getTime());
|
|
73
|
+
var cellProps = __assign(__assign(__assign({}, aria), cell), { isDisabled: !cell.isInRange, view: _this.props.activeView, onClick: _this.handleClick, onMouseEnter: _this.handleMouseEnter, onMouseLeave: _this.handleMouseLeave });
|
|
70
74
|
return _this.props.cell
|
|
71
75
|
? (React.createElement(_this.props.cell, __assign({}, cellProps, { key: uniqueID }), cell.formattedValue))
|
|
72
76
|
: (React.createElement(CalendarCell, __assign({}, cellProps, { key: uniqueID }), cell.formattedValue));
|
|
@@ -89,7 +93,7 @@ var View = /** @class */ (function (_super) {
|
|
|
89
93
|
};
|
|
90
94
|
_this.handleClick = function (value, event) {
|
|
91
95
|
var onChange = _this.props.onChange;
|
|
92
|
-
if (onChange) {
|
|
96
|
+
if (onChange && event) {
|
|
93
97
|
var args = {
|
|
94
98
|
value: cloneDate(value),
|
|
95
99
|
target: _this,
|
|
@@ -117,42 +121,42 @@ var View = /** @class */ (function (_super) {
|
|
|
117
121
|
get: function () {
|
|
118
122
|
return this.props.min;
|
|
119
123
|
},
|
|
120
|
-
enumerable:
|
|
124
|
+
enumerable: false,
|
|
121
125
|
configurable: true
|
|
122
126
|
});
|
|
123
127
|
Object.defineProperty(View.prototype, "max", {
|
|
124
128
|
get: function () {
|
|
125
129
|
return this.props.max;
|
|
126
130
|
},
|
|
127
|
-
enumerable:
|
|
131
|
+
enumerable: false,
|
|
128
132
|
configurable: true
|
|
129
133
|
});
|
|
130
134
|
Object.defineProperty(View.prototype, "isHorizontal", {
|
|
131
135
|
get: function () {
|
|
132
136
|
return this.props.direction === 'horizontal';
|
|
133
137
|
},
|
|
134
|
-
enumerable:
|
|
138
|
+
enumerable: false,
|
|
135
139
|
configurable: true
|
|
136
140
|
});
|
|
137
141
|
Object.defineProperty(View.prototype, "isMonthView", {
|
|
138
142
|
get: function () {
|
|
139
143
|
return this.props.activeView === CalendarViewEnum.month;
|
|
140
144
|
},
|
|
141
|
-
enumerable:
|
|
145
|
+
enumerable: false,
|
|
142
146
|
configurable: true
|
|
143
147
|
});
|
|
144
148
|
Object.defineProperty(View.prototype, "weekNumber", {
|
|
145
149
|
get: function () {
|
|
146
150
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
|
|
147
151
|
},
|
|
148
|
-
enumerable:
|
|
152
|
+
enumerable: false,
|
|
149
153
|
configurable: true
|
|
150
154
|
});
|
|
151
155
|
Object.defineProperty(View.prototype, "selectedDate", {
|
|
152
156
|
get: function () {
|
|
153
157
|
return this.props.selectedDate !== undefined ? this.props.selectedDate : View.defaultProps.selectedDate;
|
|
154
158
|
},
|
|
155
|
-
enumerable:
|
|
159
|
+
enumerable: false,
|
|
156
160
|
configurable: true
|
|
157
161
|
});
|
|
158
162
|
View.prototype.render = function () {
|
|
@@ -187,7 +191,7 @@ var View = /** @class */ (function (_super) {
|
|
|
187
191
|
}))));
|
|
188
192
|
};
|
|
189
193
|
View.prototype.getWeekNumber = function (date) {
|
|
190
|
-
if (!this.weekNumber) {
|
|
194
|
+
if (!this.weekNumber || !this.intl) {
|
|
191
195
|
return null;
|
|
192
196
|
}
|
|
193
197
|
return weekInYear(date, this.intl.firstDay());
|
|
@@ -87,20 +87,20 @@ export declare class ViewList extends React.Component<ViewListProps, ViewListSta
|
|
|
87
87
|
private shouldScroll;
|
|
88
88
|
private indexToScroll?;
|
|
89
89
|
private lastFocus;
|
|
90
|
-
|
|
91
|
-
protected
|
|
92
|
-
protected
|
|
93
|
-
protected
|
|
94
|
-
protected
|
|
95
|
-
protected
|
|
90
|
+
get element(): HTMLDivElement | null;
|
|
91
|
+
protected get weekNames(): string[];
|
|
92
|
+
protected get weekNumber(): boolean;
|
|
93
|
+
protected get take(): number;
|
|
94
|
+
protected get animate(): boolean;
|
|
95
|
+
protected get todayIsInRange(): boolean;
|
|
96
96
|
constructor(props: ViewListProps);
|
|
97
97
|
componentDidUpdate(_prevProps: ViewListProps, _prevState: ViewListState): void;
|
|
98
98
|
focusActiveDate: () => void;
|
|
99
99
|
blurActiveDate: () => void;
|
|
100
100
|
render(): JSX.Element;
|
|
101
|
-
protected handleVirtualizationMount: (virtualization:
|
|
102
|
-
protected buildMonthView: (cols: any, weekNames: any) => JSX.Element;
|
|
103
|
-
protected buildDates: (cols: any, dates: Date[]) => JSX.Element;
|
|
101
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
102
|
+
protected buildMonthView: (cols: any[], weekNames: any[]) => JSX.Element;
|
|
103
|
+
protected buildDates: (cols: any[], dates: Date[]) => JSX.Element;
|
|
104
104
|
protected calculateHeights: () => void;
|
|
105
105
|
protected getTake: (skip: number, total: number) => number;
|
|
106
106
|
private handleScrollAction;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -30,6 +32,14 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
30
32
|
__extends(ViewList, _super);
|
|
31
33
|
function ViewList(props) {
|
|
32
34
|
var _this = _super.call(this, props) || this;
|
|
35
|
+
_this.virtualization = null;
|
|
36
|
+
_this.calendarView = null;
|
|
37
|
+
_this.table = null;
|
|
38
|
+
_this.intl = null;
|
|
39
|
+
_this.bottomOffset = 0;
|
|
40
|
+
_this.viewOffset = 0;
|
|
41
|
+
_this.viewHeight = 0;
|
|
42
|
+
_this._element = null;
|
|
33
43
|
_this.isActive = false;
|
|
34
44
|
_this.animateToIndex = true;
|
|
35
45
|
_this.shouldScroll = false;
|
|
@@ -60,7 +70,7 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
60
70
|
_this.handleVirtualizationMount = function (virtualization) {
|
|
61
71
|
_this.virtualization = virtualization;
|
|
62
72
|
if (_this.virtualization && _this.table) {
|
|
63
|
-
_this.table.style.transform = "translateY("
|
|
73
|
+
_this.table.style.transform = "translateY(".concat(_this.viewOffset, "px)");
|
|
64
74
|
var viewDate = dateInRange(_this.props.focusedDate, _this.props.min, _this.props.max);
|
|
65
75
|
var indexToScroll = _this.props.service.skip(viewDate, _this.props.min);
|
|
66
76
|
_this.virtualization.scrollToIndex(indexToScroll);
|
|
@@ -101,7 +111,7 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
101
111
|
_this.setState({ index: index, skip: skip });
|
|
102
112
|
}
|
|
103
113
|
if (_this.table && scrollAction) {
|
|
104
|
-
var translate = "translateY("
|
|
114
|
+
var translate = "translateY(".concat(scrollAction.offset, "px)");
|
|
105
115
|
_this.table.style.transform = translate;
|
|
106
116
|
}
|
|
107
117
|
};
|
|
@@ -135,7 +145,7 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
135
145
|
get: function () {
|
|
136
146
|
return this._element;
|
|
137
147
|
},
|
|
138
|
-
enumerable:
|
|
148
|
+
enumerable: false,
|
|
139
149
|
configurable: true
|
|
140
150
|
});
|
|
141
151
|
Object.defineProperty(ViewList.prototype, "weekNames", {
|
|
@@ -144,35 +154,35 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
144
154
|
var weekNames = shiftWeekNames(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
|
|
145
155
|
return this.weekNumber ? [''].concat(weekNames) : weekNames;
|
|
146
156
|
},
|
|
147
|
-
enumerable:
|
|
157
|
+
enumerable: false,
|
|
148
158
|
configurable: true
|
|
149
159
|
});
|
|
150
160
|
Object.defineProperty(ViewList.prototype, "weekNumber", {
|
|
151
161
|
get: function () {
|
|
152
162
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
|
|
153
163
|
},
|
|
154
|
-
enumerable:
|
|
164
|
+
enumerable: false,
|
|
155
165
|
configurable: true
|
|
156
166
|
});
|
|
157
167
|
Object.defineProperty(ViewList.prototype, "take", {
|
|
158
168
|
get: function () {
|
|
159
169
|
return this.props.take !== undefined ? this.props.take : ViewList.defaultProps.take;
|
|
160
170
|
},
|
|
161
|
-
enumerable:
|
|
171
|
+
enumerable: false,
|
|
162
172
|
configurable: true
|
|
163
173
|
});
|
|
164
174
|
Object.defineProperty(ViewList.prototype, "animate", {
|
|
165
175
|
get: function () {
|
|
166
176
|
return Boolean(this.props.smoothScroll && this.animateToIndex);
|
|
167
177
|
},
|
|
168
|
-
enumerable:
|
|
178
|
+
enumerable: false,
|
|
169
179
|
configurable: true
|
|
170
180
|
});
|
|
171
181
|
Object.defineProperty(ViewList.prototype, "todayIsInRange", {
|
|
172
182
|
get: function () {
|
|
173
183
|
return isInRange(getToday(), getDate(this.props.min), getDate(this.props.max));
|
|
174
184
|
},
|
|
175
|
-
enumerable:
|
|
185
|
+
enumerable: false,
|
|
176
186
|
configurable: true
|
|
177
187
|
});
|
|
178
188
|
ViewList.prototype.componentDidUpdate = function (_prevProps, _prevState) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -28,7 +28,7 @@ var BusViewService = /** @class */ (function () {
|
|
|
28
28
|
this.top = top;
|
|
29
29
|
};
|
|
30
30
|
BusViewService.prototype.service = function (view, intl) {
|
|
31
|
-
return new services[""
|
|
31
|
+
return new services["".concat(view)](intl);
|
|
32
32
|
};
|
|
33
33
|
BusViewService.prototype.moveDown = function (view, event) {
|
|
34
34
|
this.move(view, -1, event);
|
|
@@ -51,7 +51,7 @@ var CenturyViewService = /** @class */ (function () {
|
|
|
51
51
|
: _this.isSelectedFromArray(cellDate, selectedDate, min, max));
|
|
52
52
|
return intersects(cellDate, firstDate, lastDate) ? ({
|
|
53
53
|
formattedValue: _this.value(cellDate),
|
|
54
|
-
id: ""
|
|
54
|
+
id: "".concat(cellUID).concat(cellDate.getTime()),
|
|
55
55
|
isFocused: _this.isEqual(cellDate, focusedDate),
|
|
56
56
|
isSelected: isSelected,
|
|
57
57
|
isWeekend: false,
|
|
@@ -121,7 +121,7 @@ var CenturyViewService = /** @class */ (function () {
|
|
|
121
121
|
if (!value) {
|
|
122
122
|
return '';
|
|
123
123
|
}
|
|
124
|
-
return firstDecadeOfCentury(value).getFullYear()
|
|
124
|
+
return "".concat(firstDecadeOfCentury(value).getFullYear(), " - ").concat(lastDecadeOfCentury(value).getFullYear());
|
|
125
125
|
};
|
|
126
126
|
CenturyViewService.prototype.rowLength = function (_) {
|
|
127
127
|
return CELLS_LENGTH;
|