@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
|
@@ -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 __());
|
|
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
30
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
29
31
|
t[p] = s[p];
|
|
30
32
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
31
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
32
|
-
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
33
37
|
return t;
|
|
34
38
|
};
|
|
35
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.CalendarNavigationItem = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
38
43
|
/**
|
|
@@ -57,7 +62,7 @@ var CalendarNavigationItem = /** @class */ (function (_super) {
|
|
|
57
62
|
CalendarNavigationItem.prototype.render = function () {
|
|
58
63
|
var _a = this.props, isRangeStart = _a.isRangeStart, value = _a.value, text = _a.text, other = __rest(_a, ["isRangeStart", "value", "text"]);
|
|
59
64
|
return (React.createElement("li", __assign({}, other, { onClick: this.handleClick }),
|
|
60
|
-
React.createElement("span", { className: kendo_react_common_1.classNames({ 'k-calendar-navigation-marker': isRangeStart }) }, this.props.children)));
|
|
65
|
+
React.createElement("span", { className: (0, kendo_react_common_1.classNames)({ 'k-calendar-navigation-marker': isRangeStart }) }, this.props.children)));
|
|
61
66
|
};
|
|
62
67
|
return CalendarNavigationItem;
|
|
63
68
|
}(React.Component));
|
|
@@ -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 __());
|
|
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
30
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
29
31
|
t[p] = s[p];
|
|
30
32
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
31
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
32
|
-
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
33
37
|
return t;
|
|
34
38
|
};
|
|
35
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.CalendarWeekCell = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
38
43
|
/**
|
|
@@ -52,7 +57,7 @@ var CalendarWeekCell = /** @class */ (function (_super) {
|
|
|
52
57
|
*/
|
|
53
58
|
CalendarWeekCell.prototype.render = function () {
|
|
54
59
|
var _a = this.props, className = _a.className, firstDate = _a.firstDate, other = __rest(_a, ["className", "firstDate"]);
|
|
55
|
-
return (React.createElement("td", __assign({ className: kendo_react_common_1.classNames('k-calendar-td', className) }, other), this.props.children));
|
|
60
|
+
return (React.createElement("td", __assign({ className: (0, kendo_react_common_1.classNames)('k-calendar-td', className) }, other), this.props.children));
|
|
56
61
|
};
|
|
57
62
|
return CalendarWeekCell;
|
|
58
63
|
}(React.Component));
|
|
@@ -11,6 +11,7 @@ export interface HeaderEventArguments {
|
|
|
11
11
|
nativeEvent?: any;
|
|
12
12
|
value: Date;
|
|
13
13
|
target: Header;
|
|
14
|
+
isTodayClick?: boolean;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* @hidden
|
|
@@ -42,10 +43,10 @@ export declare class Header extends React.Component<HeaderProps> {
|
|
|
42
43
|
min: Date;
|
|
43
44
|
max: Date;
|
|
44
45
|
};
|
|
45
|
-
protected
|
|
46
|
-
protected
|
|
47
|
-
protected
|
|
48
|
-
protected
|
|
46
|
+
protected get min(): Date;
|
|
47
|
+
protected get max(): Date;
|
|
48
|
+
protected get rangeLength(): number;
|
|
49
|
+
protected get canMoveUp(): boolean;
|
|
49
50
|
render(): JSX.Element;
|
|
50
51
|
protected getTitle: () => string;
|
|
51
52
|
private handleTitleClick;
|
|
@@ -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.Header = 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");
|
|
@@ -47,7 +50,7 @@ var Header = /** @class */ (function (_super) {
|
|
|
47
50
|
if (take < 1 || !_this.props.service.isInRange(nextDate, _this.min, _this.max)) {
|
|
48
51
|
return title;
|
|
49
52
|
}
|
|
50
|
-
return title
|
|
53
|
+
return "".concat(title, " - ").concat(_this.props.service.title(nextDate));
|
|
51
54
|
};
|
|
52
55
|
_this.handleTitleClick = function (event) {
|
|
53
56
|
if (!_this.canMoveUp) {
|
|
@@ -63,7 +66,7 @@ var Header = /** @class */ (function (_super) {
|
|
|
63
66
|
? this.props.min
|
|
64
67
|
: Header.defaultProps.min;
|
|
65
68
|
},
|
|
66
|
-
enumerable:
|
|
69
|
+
enumerable: false,
|
|
67
70
|
configurable: true
|
|
68
71
|
});
|
|
69
72
|
Object.defineProperty(Header.prototype, "max", {
|
|
@@ -72,26 +75,26 @@ var Header = /** @class */ (function (_super) {
|
|
|
72
75
|
? this.props.max
|
|
73
76
|
: Header.defaultProps.max;
|
|
74
77
|
},
|
|
75
|
-
enumerable:
|
|
78
|
+
enumerable: false,
|
|
76
79
|
configurable: true
|
|
77
80
|
});
|
|
78
81
|
Object.defineProperty(Header.prototype, "rangeLength", {
|
|
79
82
|
get: function () {
|
|
80
83
|
return this.props.rangeLength !== undefined ? this.props.rangeLength : Header.defaultProps.rangeLength;
|
|
81
84
|
},
|
|
82
|
-
enumerable:
|
|
85
|
+
enumerable: false,
|
|
83
86
|
configurable: true
|
|
84
87
|
});
|
|
85
88
|
Object.defineProperty(Header.prototype, "canMoveUp", {
|
|
86
89
|
get: function () {
|
|
87
90
|
return this.props.bus.canMoveUp(this.props.activeView);
|
|
88
91
|
},
|
|
89
|
-
enumerable:
|
|
92
|
+
enumerable: false,
|
|
90
93
|
configurable: true
|
|
91
94
|
});
|
|
92
95
|
Header.prototype.render = function () {
|
|
93
96
|
var title = this.getTitle();
|
|
94
|
-
var titleClassNames = kendo_react_common_1.classNames('k-calendar-title');
|
|
97
|
+
var titleClassNames = (0, kendo_react_common_1.classNames)('k-calendar-title');
|
|
95
98
|
var headerTitleProps = {
|
|
96
99
|
children: title,
|
|
97
100
|
value: title,
|
|
@@ -123,4 +126,4 @@ var Header = /** @class */ (function (_super) {
|
|
|
123
126
|
return Header;
|
|
124
127
|
}(React.Component));
|
|
125
128
|
exports.Header = Header;
|
|
126
|
-
kendo_react_intl_1.registerForLocalization(Header);
|
|
129
|
+
(0, kendo_react_intl_1.registerForLocalization)(Header);
|
|
@@ -52,10 +52,10 @@ export declare class HorizontalViewList extends React.Component<HorizontalViewLi
|
|
|
52
52
|
};
|
|
53
53
|
private _element;
|
|
54
54
|
private isActive;
|
|
55
|
-
|
|
56
|
-
protected
|
|
57
|
-
protected
|
|
58
|
-
protected
|
|
55
|
+
get element(): HTMLDivElement | null;
|
|
56
|
+
protected get weekNumber(): boolean;
|
|
57
|
+
protected get min(): Date;
|
|
58
|
+
protected get max(): Date;
|
|
59
59
|
constructor(props: HorizontalViewListProps);
|
|
60
60
|
focusActiveDate: () => void;
|
|
61
61
|
blurActiveDate: () => 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.HorizontalViewList = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var View_1 = require("./View");
|
|
18
21
|
var models_1 = require("../models");
|
|
@@ -27,6 +30,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
27
30
|
__extends(HorizontalViewList, _super);
|
|
28
31
|
function HorizontalViewList(props) {
|
|
29
32
|
var _this = _super.call(this, props) || this;
|
|
33
|
+
_this._element = null;
|
|
30
34
|
_this.isActive = false;
|
|
31
35
|
_this.focusActiveDate = function () {
|
|
32
36
|
if (!_this._element) {
|
|
@@ -69,7 +73,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
69
73
|
var args = {
|
|
70
74
|
syntheticEvent: event.syntheticEvent,
|
|
71
75
|
nativeEvent: event.nativeEvent,
|
|
72
|
-
value: kendo_date_math_1.cloneDate(event.value),
|
|
76
|
+
value: (0, kendo_date_math_1.cloneDate)(event.value),
|
|
73
77
|
target: _this,
|
|
74
78
|
isTodayClick: isTodayClick
|
|
75
79
|
};
|
|
@@ -82,14 +86,14 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
82
86
|
get: function () {
|
|
83
87
|
return this._element;
|
|
84
88
|
},
|
|
85
|
-
enumerable:
|
|
89
|
+
enumerable: false,
|
|
86
90
|
configurable: true
|
|
87
91
|
});
|
|
88
92
|
Object.defineProperty(HorizontalViewList.prototype, "weekNumber", {
|
|
89
93
|
get: function () {
|
|
90
94
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === models_1.CalendarViewEnum.month);
|
|
91
95
|
},
|
|
92
|
-
enumerable:
|
|
96
|
+
enumerable: false,
|
|
93
97
|
configurable: true
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(HorizontalViewList.prototype, "min", {
|
|
@@ -98,7 +102,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
98
102
|
? this.props.min
|
|
99
103
|
: HorizontalViewList.defaultProps.min;
|
|
100
104
|
},
|
|
101
|
-
enumerable:
|
|
105
|
+
enumerable: false,
|
|
102
106
|
configurable: true
|
|
103
107
|
});
|
|
104
108
|
Object.defineProperty(HorizontalViewList.prototype, "max", {
|
|
@@ -107,7 +111,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
107
111
|
? this.props.max
|
|
108
112
|
: HorizontalViewList.defaultProps.max;
|
|
109
113
|
},
|
|
110
|
-
enumerable:
|
|
114
|
+
enumerable: false,
|
|
111
115
|
configurable: true
|
|
112
116
|
});
|
|
113
117
|
HorizontalViewList.prototype.componentDidUpdate = function () {
|
|
@@ -120,7 +124,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
120
124
|
var selectionRange = this.props.allowReverse
|
|
121
125
|
? this.rotateSelectionRange(this.props.selectionRange)
|
|
122
126
|
: this.props.selectionRange;
|
|
123
|
-
var rootClassNames = kendo_react_common_1.classNames('k-calendar-view k-hstack k-align-items-start k-justify-content-center', {
|
|
127
|
+
var rootClassNames = (0, kendo_react_common_1.classNames)('k-calendar-view k-hstack k-align-items-start k-justify-content-center', {
|
|
124
128
|
'k-calendar-monthview': this.props.activeView === models_1.CalendarViewEnum.month,
|
|
125
129
|
'k-calendar-yearview': this.props.activeView === models_1.CalendarViewEnum.year,
|
|
126
130
|
'k-calendar-decadeview': this.props.activeView === models_1.CalendarViewEnum.decade,
|
|
@@ -49,7 +49,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
49
49
|
* @hidden
|
|
50
50
|
*/
|
|
51
51
|
static propTypes: {
|
|
52
|
-
activeRangeEnd: PropTypes.Requireable<
|
|
52
|
+
activeRangeEnd: PropTypes.Requireable<"end" | "start">;
|
|
53
53
|
allowReverse: PropTypes.Requireable<boolean>;
|
|
54
54
|
bottomView: PropTypes.Requireable<ActiveView>;
|
|
55
55
|
className: PropTypes.Requireable<string>;
|
|
@@ -62,14 +62,14 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
62
62
|
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
63
63
|
max: PropTypes.Requireable<Date>;
|
|
64
64
|
min: PropTypes.Requireable<Date>;
|
|
65
|
-
mode: PropTypes.Requireable<
|
|
65
|
+
mode: PropTypes.Requireable<"multiple" | "range" | "single">;
|
|
66
66
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
67
67
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
68
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
69
69
|
tabIndex: PropTypes.Requireable<number>;
|
|
70
70
|
topView: PropTypes.Requireable<ActiveView>;
|
|
71
71
|
value: PropTypes.Requireable<any>;
|
|
72
|
-
views: (props:
|
|
72
|
+
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
73
73
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
@@ -81,7 +81,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
81
81
|
max: Date;
|
|
82
82
|
navigation: boolean;
|
|
83
83
|
defaultActiveView: ActiveView;
|
|
84
|
-
defaultValue:
|
|
84
|
+
defaultValue: null;
|
|
85
85
|
topView: ActiveView;
|
|
86
86
|
tabIndex: number;
|
|
87
87
|
bottomView: ActiveView;
|
|
@@ -111,21 +111,21 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
111
111
|
/**
|
|
112
112
|
* Gets the wrapping element of the MultiViewCalendar component.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
get element(): HTMLDivElement | null;
|
|
115
115
|
/**
|
|
116
116
|
* Gets the value of the MultiViewCalendar.
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
get value(): Date | Date[] | SelectionRange | null;
|
|
119
119
|
/**
|
|
120
120
|
* Gets the current focused date of the MultiViewCalendar.
|
|
121
121
|
*/
|
|
122
|
-
|
|
123
|
-
protected
|
|
124
|
-
protected
|
|
125
|
-
protected
|
|
126
|
-
protected
|
|
127
|
-
protected
|
|
128
|
-
protected
|
|
122
|
+
get focusedDate(): Date;
|
|
123
|
+
protected get min(): Date;
|
|
124
|
+
protected get max(): Date;
|
|
125
|
+
protected get bottomView(): CalendarViewEnum;
|
|
126
|
+
protected get topView(): CalendarViewEnum;
|
|
127
|
+
protected get activeRange(): SelectionRangeEnd;
|
|
128
|
+
protected get todayIsInRange(): boolean;
|
|
129
129
|
constructor(props: MultiViewCalendarProps);
|
|
130
130
|
/**
|
|
131
131
|
* @hidden
|