@progress/kendo-react-dateinputs 5.4.0-dev.202205180853 → 5.4.0-dev.202205271059
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 +8 -8
- package/dist/es/calendar/components/Calendar.js +9 -7
- 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 +4 -4
- package/dist/es/calendar/components/Header.js +7 -5
- package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/es/calendar/components/HorizontalViewList.js +7 -5
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +11 -11
- package/dist/es/calendar/components/MultiViewCalendar.js +12 -10
- package/dist/es/calendar/components/Navigation.d.ts +1 -1
- package/dist/es/calendar/components/Navigation.js +4 -2
- package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/es/calendar/components/TodayCommand.js +6 -4
- package/dist/es/calendar/components/View.d.ts +7 -7
- package/dist/es/calendar/components/View.js +10 -8
- package/dist/es/calendar/components/ViewList.d.ts +6 -6
- package/dist/es/calendar/components/ViewList.js +9 -7
- 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/MonthViewService.js +1 -1
- package/dist/es/dateinput/DateInput.d.ts +17 -17
- package/dist/es/dateinput/DateInput.js +23 -16
- 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 +2 -2
- package/dist/es/dateinput/models/selection.js +1 -0
- package/dist/es/dateinput/utils.d.ts +1 -1
- package/dist/es/datepicker/DatePicker.d.ts +21 -21
- package/dist/es/datepicker/DatePicker.js +24 -20
- 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 +11 -11
- 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 +16 -16
- package/dist/es/datetimepicker/DateTimePicker.js +30 -15
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +6 -6
- package/dist/es/datetimepicker/DateTimeSelector.js +12 -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 +5 -5
- package/dist/es/timepicker/TimeList.js +8 -6
- package/dist/es/timepicker/TimePart.d.ts +7 -7
- package/dist/es/timepicker/TimePart.js +10 -8
- package/dist/es/timepicker/TimePicker.d.ts +19 -19
- package/dist/es/timepicker/TimePicker.js +23 -19
- package/dist/es/timepicker/TimeSelector.d.ts +4 -4
- package/dist/es/timepicker/TimeSelector.js +7 -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/utils.d.ts +4 -4
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +6 -1
- package/dist/es/virtualization/Virtualization.d.ts +7 -7
- package/dist/es/virtualization/Virtualization.js +9 -7
- package/dist/es/virtualization/services/RowHeightService.js +6 -1
- package/dist/npm/calendar/components/Calendar.d.ts +8 -8
- package/dist/npm/calendar/components/Calendar.js +10 -7
- package/dist/npm/calendar/components/CalendarCell.js +8 -3
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
- package/dist/npm/calendar/components/CalendarNavigationItem.js +8 -3
- package/dist/npm/calendar/components/CalendarWeekCell.js +8 -3
- package/dist/npm/calendar/components/Header.d.ts +4 -4
- package/dist/npm/calendar/components/Header.js +8 -5
- package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/npm/calendar/components/HorizontalViewList.js +8 -5
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +11 -11
- package/dist/npm/calendar/components/MultiViewCalendar.js +13 -10
- package/dist/npm/calendar/components/Navigation.d.ts +1 -1
- package/dist/npm/calendar/components/Navigation.js +5 -2
- package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/npm/calendar/components/TodayCommand.js +7 -4
- package/dist/npm/calendar/components/View.d.ts +7 -7
- package/dist/npm/calendar/components/View.js +11 -8
- package/dist/npm/calendar/components/ViewList.d.ts +6 -6
- package/dist/npm/calendar/components/ViewList.js +10 -7
- 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 +2 -1
- package/dist/npm/calendar/services/CenturyViewService.js +2 -1
- package/dist/npm/calendar/services/DOMService.js +1 -0
- package/dist/npm/calendar/services/DecadeViewService.js +2 -1
- package/dist/npm/calendar/services/MonthViewService.js +3 -2
- package/dist/npm/calendar/services/NavigationService.js +1 -0
- package/dist/npm/calendar/services/ScrollSyncService.js +1 -0
- package/dist/npm/calendar/services/WeekNamesService.js +1 -0
- package/dist/npm/calendar/services/YearViewService.js +2 -1
- package/dist/npm/calendar/services/index.js +10 -9
- package/dist/npm/common/PickerWrap.js +1 -0
- package/dist/npm/dateinput/DateInput.d.ts +17 -17
- package/dist/npm/dateinput/DateInput.js +24 -16
- 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 +3 -2
- package/dist/npm/dateinput/models/mask.js +1 -0
- package/dist/npm/dateinput/utils.d.ts +1 -1
- package/dist/npm/dateinput/utils.js +9 -4
- package/dist/npm/datepicker/DatePicker.d.ts +21 -21
- package/dist/npm/datepicker/DatePicker.js +25 -20
- package/dist/npm/datepicker/ToggleButton.js +1 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +11 -11
- package/dist/npm/daterangepicker/DateRangePicker.js +17 -14
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +16 -16
- package/dist/npm/datetimepicker/DateTimePicker.js +31 -15
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +6 -6
- package/dist/npm/datetimepicker/DateTimeSelector.js +13 -7
- package/dist/npm/defaults.js +1 -0
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/npm/hooks/usePickerFloatingLabel.js +5 -2
- 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 +5 -5
- package/dist/npm/timepicker/TimeList.js +10 -7
- package/dist/npm/timepicker/TimePart.d.ts +7 -7
- package/dist/npm/timepicker/TimePart.js +11 -8
- package/dist/npm/timepicker/TimePicker.d.ts +19 -19
- package/dist/npm/timepicker/TimePicker.js +24 -19
- package/dist/npm/timepicker/TimeSelector.d.ts +4 -4
- package/dist/npm/timepicker/TimeSelector.js +8 -5
- 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 +1 -0
- package/dist/npm/timepicker/services/DayPeriodService.js +1 -0
- package/dist/npm/timepicker/services/HoursService.js +1 -0
- package/dist/npm/timepicker/services/MinutesService.js +1 -0
- package/dist/npm/timepicker/services/SecondsService.js +1 -0
- package/dist/npm/timepicker/services/index.js +6 -5
- package/dist/npm/timepicker/utils.d.ts +4 -4
- package/dist/npm/timepicker/utils.js +19 -9
- package/dist/npm/utils.d.ts +1 -1
- package/dist/npm/utils.js +33 -14
- package/dist/npm/virtualization/Virtualization.d.ts +7 -7
- package/dist/npm/virtualization/Virtualization.js +11 -8
- package/dist/npm/virtualization/services/RowHeightService.js +7 -1
- package/dist/npm/virtualization/services/ScrollerService.js +1 -0
- package/dist/npm/virtualization/services/index.js +5 -4
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MultiViewCalendar = exports.MultiViewCalendarPropsContext = exports.MultiViewCalendarWithoutContext = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
@@ -317,7 +320,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
317
320
|
get: function () {
|
|
318
321
|
return this._element;
|
|
319
322
|
},
|
|
320
|
-
enumerable:
|
|
323
|
+
enumerable: false,
|
|
321
324
|
configurable: true
|
|
322
325
|
});
|
|
323
326
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "value", {
|
|
@@ -331,7 +334,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
331
334
|
? this.props.value
|
|
332
335
|
: this.state.value;
|
|
333
336
|
},
|
|
334
|
-
enumerable:
|
|
337
|
+
enumerable: false,
|
|
335
338
|
configurable: true
|
|
336
339
|
});
|
|
337
340
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "focusedDate", {
|
|
@@ -341,7 +344,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
341
344
|
get: function () {
|
|
342
345
|
return kendo_date_math_1.cloneDate(this._focusedDate);
|
|
343
346
|
},
|
|
344
|
-
enumerable:
|
|
347
|
+
enumerable: false,
|
|
345
348
|
configurable: true
|
|
346
349
|
});
|
|
347
350
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "min", {
|
|
@@ -350,7 +353,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
350
353
|
? this.props.min
|
|
351
354
|
: MultiViewCalendarWithoutContext.defaultProps.min);
|
|
352
355
|
},
|
|
353
|
-
enumerable:
|
|
356
|
+
enumerable: false,
|
|
354
357
|
configurable: true
|
|
355
358
|
});
|
|
356
359
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "max", {
|
|
@@ -359,7 +362,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
359
362
|
? this.props.max
|
|
360
363
|
: MultiViewCalendarWithoutContext.defaultProps.max);
|
|
361
364
|
},
|
|
362
|
-
enumerable:
|
|
365
|
+
enumerable: false,
|
|
363
366
|
configurable: true
|
|
364
367
|
});
|
|
365
368
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "bottomView", {
|
|
@@ -368,7 +371,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
368
371
|
? this.props.bottomView
|
|
369
372
|
: MultiViewCalendarWithoutContext.defaultProps.bottomView];
|
|
370
373
|
},
|
|
371
|
-
enumerable:
|
|
374
|
+
enumerable: false,
|
|
372
375
|
configurable: true
|
|
373
376
|
});
|
|
374
377
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "topView", {
|
|
@@ -377,7 +380,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
377
380
|
? this.props.topView
|
|
378
381
|
: MultiViewCalendarWithoutContext.defaultProps.topView];
|
|
379
382
|
},
|
|
380
|
-
enumerable:
|
|
383
|
+
enumerable: false,
|
|
381
384
|
configurable: true
|
|
382
385
|
});
|
|
383
386
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "activeRange", {
|
|
@@ -386,14 +389,14 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
386
389
|
? this.props.activeRangeEnd
|
|
387
390
|
: this.activeRangeEnd;
|
|
388
391
|
},
|
|
389
|
-
enumerable:
|
|
392
|
+
enumerable: false,
|
|
390
393
|
configurable: true
|
|
391
394
|
});
|
|
392
395
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "todayIsInRange", {
|
|
393
396
|
get: function () {
|
|
394
397
|
return utils_1.isInRange(utils_1.getToday(), kendo_date_math_1.getDate(this.min), kendo_date_math_1.getDate(this.max));
|
|
395
398
|
},
|
|
396
|
-
enumerable:
|
|
399
|
+
enumerable: false,
|
|
397
400
|
configurable: true
|
|
398
401
|
});
|
|
399
402
|
/**
|
|
@@ -58,7 +58,7 @@ 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
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Navigation = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
@@ -108,7 +111,7 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
108
111
|
? this.props.take
|
|
109
112
|
: Navigation.defaultProps.take;
|
|
110
113
|
},
|
|
111
|
-
enumerable:
|
|
114
|
+
enumerable: false,
|
|
112
115
|
configurable: true
|
|
113
116
|
});
|
|
114
117
|
/**
|
|
@@ -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
|
}
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TodayCommand = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
@@ -47,7 +50,7 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
47
50
|
? this.props.min
|
|
48
51
|
: TodayCommand.defaultProps.min;
|
|
49
52
|
},
|
|
50
|
-
enumerable:
|
|
53
|
+
enumerable: false,
|
|
51
54
|
configurable: true
|
|
52
55
|
});
|
|
53
56
|
Object.defineProperty(TodayCommand.prototype, "max", {
|
|
@@ -56,14 +59,14 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
56
59
|
? this.props.max
|
|
57
60
|
: TodayCommand.defaultProps.max;
|
|
58
61
|
},
|
|
59
|
-
enumerable:
|
|
62
|
+
enumerable: false,
|
|
60
63
|
configurable: true
|
|
61
64
|
});
|
|
62
65
|
Object.defineProperty(TodayCommand.prototype, "todayIsInRange", {
|
|
63
66
|
get: function () {
|
|
64
67
|
return utils_1.isInRange(utils_1.getToday(), kendo_date_math_1.getDate(this.min), kendo_date_math_1.getDate(this.max));
|
|
65
68
|
},
|
|
66
|
-
enumerable:
|
|
69
|
+
enumerable: false,
|
|
67
70
|
configurable: true
|
|
68
71
|
});
|
|
69
72
|
TodayCommand.prototype.render = function () {
|
|
@@ -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
80
|
protected firstDate: (row: any) => Date;
|
|
81
|
-
protected firstWeekDateContext: (rowCtx: CellContext[]) => CellContext;
|
|
81
|
+
protected firstWeekDateContext: (rowCtx: CellContext[]) => CellContext | null;
|
|
82
82
|
private handleClick;
|
|
83
83
|
private handleMouseEnter;
|
|
84
84
|
private handleMouseLeave;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.View = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
@@ -68,7 +71,7 @@ var View = /** @class */ (function (_super) {
|
|
|
68
71
|
}
|
|
69
72
|
var aria = { 'aria-selected': cell.isSelected };
|
|
70
73
|
var uniqueID = "kendo-react-calendar-cell-" + cell.value.getTime();
|
|
71
|
-
var cellProps = __assign({}, aria, cell, { isDisabled: !cell.isInRange, view: _this.props.activeView, onClick: _this.handleClick, onMouseEnter: _this.handleMouseEnter, onMouseLeave: _this.handleMouseLeave });
|
|
74
|
+
var cellProps = __assign(__assign(__assign({}, aria), cell), { isDisabled: !cell.isInRange, view: _this.props.activeView, onClick: _this.handleClick, onMouseEnter: _this.handleMouseEnter, onMouseLeave: _this.handleMouseLeave });
|
|
72
75
|
return _this.props.cell
|
|
73
76
|
? (React.createElement(_this.props.cell, __assign({}, cellProps, { key: uniqueID }), cell.formattedValue))
|
|
74
77
|
: (React.createElement(CalendarCell_1.CalendarCell, __assign({}, cellProps, { key: uniqueID }), cell.formattedValue));
|
|
@@ -119,42 +122,42 @@ var View = /** @class */ (function (_super) {
|
|
|
119
122
|
get: function () {
|
|
120
123
|
return this.props.min;
|
|
121
124
|
},
|
|
122
|
-
enumerable:
|
|
125
|
+
enumerable: false,
|
|
123
126
|
configurable: true
|
|
124
127
|
});
|
|
125
128
|
Object.defineProperty(View.prototype, "max", {
|
|
126
129
|
get: function () {
|
|
127
130
|
return this.props.max;
|
|
128
131
|
},
|
|
129
|
-
enumerable:
|
|
132
|
+
enumerable: false,
|
|
130
133
|
configurable: true
|
|
131
134
|
});
|
|
132
135
|
Object.defineProperty(View.prototype, "isHorizontal", {
|
|
133
136
|
get: function () {
|
|
134
137
|
return this.props.direction === 'horizontal';
|
|
135
138
|
},
|
|
136
|
-
enumerable:
|
|
139
|
+
enumerable: false,
|
|
137
140
|
configurable: true
|
|
138
141
|
});
|
|
139
142
|
Object.defineProperty(View.prototype, "isMonthView", {
|
|
140
143
|
get: function () {
|
|
141
144
|
return this.props.activeView === models_1.CalendarViewEnum.month;
|
|
142
145
|
},
|
|
143
|
-
enumerable:
|
|
146
|
+
enumerable: false,
|
|
144
147
|
configurable: true
|
|
145
148
|
});
|
|
146
149
|
Object.defineProperty(View.prototype, "weekNumber", {
|
|
147
150
|
get: function () {
|
|
148
151
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === models_1.CalendarViewEnum.month);
|
|
149
152
|
},
|
|
150
|
-
enumerable:
|
|
153
|
+
enumerable: false,
|
|
151
154
|
configurable: true
|
|
152
155
|
});
|
|
153
156
|
Object.defineProperty(View.prototype, "selectedDate", {
|
|
154
157
|
get: function () {
|
|
155
158
|
return this.props.selectedDate !== undefined ? this.props.selectedDate : View.defaultProps.selectedDate;
|
|
156
159
|
},
|
|
157
|
-
enumerable:
|
|
160
|
+
enumerable: false,
|
|
158
161
|
configurable: true
|
|
159
162
|
});
|
|
160
163
|
View.prototype.render = function () {
|
|
@@ -87,12 +87,12 @@ 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;
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ViewList = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -137,7 +140,7 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
137
140
|
get: function () {
|
|
138
141
|
return this._element;
|
|
139
142
|
},
|
|
140
|
-
enumerable:
|
|
143
|
+
enumerable: false,
|
|
141
144
|
configurable: true
|
|
142
145
|
});
|
|
143
146
|
Object.defineProperty(ViewList.prototype, "weekNames", {
|
|
@@ -146,35 +149,35 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
146
149
|
var weekNames = utils_1.shiftWeekNames(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
|
|
147
150
|
return this.weekNumber ? [''].concat(weekNames) : weekNames;
|
|
148
151
|
},
|
|
149
|
-
enumerable:
|
|
152
|
+
enumerable: false,
|
|
150
153
|
configurable: true
|
|
151
154
|
});
|
|
152
155
|
Object.defineProperty(ViewList.prototype, "weekNumber", {
|
|
153
156
|
get: function () {
|
|
154
157
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === models_1.CalendarViewEnum.month);
|
|
155
158
|
},
|
|
156
|
-
enumerable:
|
|
159
|
+
enumerable: false,
|
|
157
160
|
configurable: true
|
|
158
161
|
});
|
|
159
162
|
Object.defineProperty(ViewList.prototype, "take", {
|
|
160
163
|
get: function () {
|
|
161
164
|
return this.props.take !== undefined ? this.props.take : ViewList.defaultProps.take;
|
|
162
165
|
},
|
|
163
|
-
enumerable:
|
|
166
|
+
enumerable: false,
|
|
164
167
|
configurable: true
|
|
165
168
|
});
|
|
166
169
|
Object.defineProperty(ViewList.prototype, "animate", {
|
|
167
170
|
get: function () {
|
|
168
171
|
return Boolean(this.props.smoothScroll && this.animateToIndex);
|
|
169
172
|
},
|
|
170
|
-
enumerable:
|
|
173
|
+
enumerable: false,
|
|
171
174
|
configurable: true
|
|
172
175
|
});
|
|
173
176
|
Object.defineProperty(ViewList.prototype, "todayIsInRange", {
|
|
174
177
|
get: function () {
|
|
175
178
|
return utils_1.isInRange(utils_1.getToday(), kendo_date_math_1.getDate(this.props.min), kendo_date_math_1.getDate(this.props.max));
|
|
176
179
|
},
|
|
177
|
-
enumerable:
|
|
180
|
+
enumerable: false,
|
|
178
181
|
configurable: true
|
|
179
182
|
});
|
|
180
183
|
ViewList.prototype.componentDidUpdate = function (_prevProps, _prevState) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPTY_SELECTIONRANGE = exports.CalendarViewEnum = exports.Action = void 0;
|
|
3
4
|
var NavigationAction_1 = require("./NavigationAction");
|
|
4
|
-
exports
|
|
5
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return NavigationAction_1.Action; } });
|
|
5
6
|
var CalendarViewEnum_1 = require("./CalendarViewEnum");
|
|
6
|
-
exports
|
|
7
|
+
Object.defineProperty(exports, "CalendarViewEnum", { enumerable: true, get: function () { return CalendarViewEnum_1.CalendarViewEnum; } });
|
|
7
8
|
var SelectionRange_1 = require("./SelectionRange");
|
|
8
|
-
exports
|
|
9
|
+
Object.defineProperty(exports, "EMPTY_SELECTIONRANGE", { enumerable: true, get: function () { return SelectionRange_1.EMPTY_SELECTIONRANGE; } });
|
|
@@ -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.BusViewService = void 0;
|
|
4
5
|
var CenturyViewService_1 = require("./CenturyViewService");
|
|
5
6
|
var DecadeViewService_1 = require("./DecadeViewService");
|
|
6
7
|
var MonthViewService_1 = require("./MonthViewService");
|
|
@@ -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.CenturyViewService = void 0;
|
|
4
5
|
/* tslint:disable:object-literal-sort-keys */
|
|
5
6
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
6
7
|
var models_1 = require("../models");
|
|
@@ -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");
|
|
@@ -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");
|
|
@@ -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");
|
|
@@ -164,7 +165,7 @@ var MonthViewService = /** @class */ (function () {
|
|
|
164
165
|
return cellDate;
|
|
165
166
|
};
|
|
166
167
|
MonthViewService.prototype.wideMonthNames = function () {
|
|
167
|
-
return this.intl.dateFormatNames({ nameType: 'wide', type: 'months' });
|
|
168
|
+
return this.intl.dateFormatNames({ nameType: 'wide', type: 'months', standAlone: true });
|
|
168
169
|
};
|
|
169
170
|
return MonthViewService;
|
|
170
171
|
}());
|
|
@@ -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
|
/**
|
|
@@ -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");
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.YearViewService = exports.WeekNamesService = exports.ScrollSyncService = exports.NavigationService = exports.MonthViewService = exports.DOMService = exports.DecadeViewService = exports.CenturyViewService = exports.BusViewService = void 0;
|
|
3
4
|
var BusViewService_1 = require("./BusViewService");
|
|
4
|
-
exports
|
|
5
|
+
Object.defineProperty(exports, "BusViewService", { enumerable: true, get: function () { return BusViewService_1.BusViewService; } });
|
|
5
6
|
var CenturyViewService_1 = require("./CenturyViewService");
|
|
6
|
-
exports
|
|
7
|
+
Object.defineProperty(exports, "CenturyViewService", { enumerable: true, get: function () { return CenturyViewService_1.CenturyViewService; } });
|
|
7
8
|
var DecadeViewService_1 = require("./DecadeViewService");
|
|
8
|
-
exports
|
|
9
|
+
Object.defineProperty(exports, "DecadeViewService", { enumerable: true, get: function () { return DecadeViewService_1.DecadeViewService; } });
|
|
9
10
|
var DOMService_1 = require("./DOMService");
|
|
10
|
-
exports
|
|
11
|
+
Object.defineProperty(exports, "DOMService", { enumerable: true, get: function () { return DOMService_1.DOMService; } });
|
|
11
12
|
var MonthViewService_1 = require("./MonthViewService");
|
|
12
|
-
exports
|
|
13
|
+
Object.defineProperty(exports, "MonthViewService", { enumerable: true, get: function () { return MonthViewService_1.MonthViewService; } });
|
|
13
14
|
var NavigationService_1 = require("./NavigationService");
|
|
14
|
-
exports
|
|
15
|
+
Object.defineProperty(exports, "NavigationService", { enumerable: true, get: function () { return NavigationService_1.NavigationService; } });
|
|
15
16
|
var ScrollSyncService_1 = require("./ScrollSyncService");
|
|
16
|
-
exports
|
|
17
|
+
Object.defineProperty(exports, "ScrollSyncService", { enumerable: true, get: function () { return ScrollSyncService_1.ScrollSyncService; } });
|
|
17
18
|
var WeekNamesService_1 = require("./WeekNamesService");
|
|
18
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "WeekNamesService", { enumerable: true, get: function () { return WeekNamesService_1.WeekNamesService; } });
|
|
19
20
|
var YearViewService_1 = require("./YearViewService");
|
|
20
|
-
exports
|
|
21
|
+
Object.defineProperty(exports, "YearViewService", { enumerable: true, get: function () { return YearViewService_1.YearViewService; } });
|