@progress/kendo-react-dateinputs 5.4.0-dev.202205250548 → 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/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 +2 -1
- 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
package/dist/es/PopupSettings.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -80,8 +80,8 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
|
|
|
80
80
|
tabIndex: PropTypes.Requireable<number>;
|
|
81
81
|
value: PropTypes.Requireable<Date>;
|
|
82
82
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
83
|
-
topView: (props: CalendarProps
|
|
84
|
-
bottomView: (props: CalendarProps
|
|
83
|
+
topView: (props: CalendarProps, propName: string, componentName: string) => Error;
|
|
84
|
+
bottomView: (props: CalendarProps, propName: string, componentName: string) => Error;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* @hidden
|
|
@@ -116,15 +116,15 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
|
|
|
116
116
|
/**
|
|
117
117
|
* Gets the wrapping element of the Calendar.
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
get element(): HTMLDivElement | null;
|
|
120
120
|
/**
|
|
121
121
|
* Gets the value of the Calendar.
|
|
122
122
|
*/
|
|
123
|
-
|
|
124
|
-
protected
|
|
125
|
-
protected
|
|
126
|
-
protected
|
|
127
|
-
protected
|
|
123
|
+
get value(): Date | null;
|
|
124
|
+
protected get min(): Date;
|
|
125
|
+
protected get max(): Date;
|
|
126
|
+
protected get bottomView(): CalendarViewEnum;
|
|
127
|
+
protected get topView(): CalendarViewEnum;
|
|
128
128
|
constructor(props: CalendarProps);
|
|
129
129
|
/**
|
|
130
130
|
* @hidden
|
|
@@ -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 __());
|
|
@@ -191,7 +193,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
191
193
|
get: function () {
|
|
192
194
|
return this._element;
|
|
193
195
|
},
|
|
194
|
-
enumerable:
|
|
196
|
+
enumerable: false,
|
|
195
197
|
configurable: true
|
|
196
198
|
});
|
|
197
199
|
Object.defineProperty(CalendarWithoutContext.prototype, "value", {
|
|
@@ -205,7 +207,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
205
207
|
? this.props.value
|
|
206
208
|
: this.state.value;
|
|
207
209
|
},
|
|
208
|
-
enumerable:
|
|
210
|
+
enumerable: false,
|
|
209
211
|
configurable: true
|
|
210
212
|
});
|
|
211
213
|
Object.defineProperty(CalendarWithoutContext.prototype, "min", {
|
|
@@ -214,7 +216,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
214
216
|
? this.props.min
|
|
215
217
|
: CalendarWithoutContext.defaultProps.min);
|
|
216
218
|
},
|
|
217
|
-
enumerable:
|
|
219
|
+
enumerable: false,
|
|
218
220
|
configurable: true
|
|
219
221
|
});
|
|
220
222
|
Object.defineProperty(CalendarWithoutContext.prototype, "max", {
|
|
@@ -223,7 +225,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
223
225
|
? this.props.max
|
|
224
226
|
: CalendarWithoutContext.defaultProps.max);
|
|
225
227
|
},
|
|
226
|
-
enumerable:
|
|
228
|
+
enumerable: false,
|
|
227
229
|
configurable: true
|
|
228
230
|
});
|
|
229
231
|
Object.defineProperty(CalendarWithoutContext.prototype, "bottomView", {
|
|
@@ -232,7 +234,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
232
234
|
? this.props.bottomView
|
|
233
235
|
: CalendarWithoutContext.defaultProps.bottomView];
|
|
234
236
|
},
|
|
235
|
-
enumerable:
|
|
237
|
+
enumerable: false,
|
|
236
238
|
configurable: true
|
|
237
239
|
});
|
|
238
240
|
Object.defineProperty(CalendarWithoutContext.prototype, "topView", {
|
|
@@ -241,7 +243,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
241
243
|
? this.props.topView
|
|
242
244
|
: CalendarWithoutContext.defaultProps.topView];
|
|
243
245
|
},
|
|
244
|
-
enumerable:
|
|
246
|
+
enumerable: false,
|
|
245
247
|
configurable: true
|
|
246
248
|
});
|
|
247
249
|
/**
|
|
@@ -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 __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import * as React from 'react';
|
|
@@ -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 __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import { Button } from '@progress/kendo-react-buttons';
|
|
@@ -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 __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import * as React from 'react';
|
|
@@ -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 __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import * as React from 'react';
|
|
@@ -42,10 +42,10 @@ export declare class Header extends React.Component<HeaderProps> {
|
|
|
42
42
|
min: Date;
|
|
43
43
|
max: Date;
|
|
44
44
|
};
|
|
45
|
-
protected
|
|
46
|
-
protected
|
|
47
|
-
protected
|
|
48
|
-
protected
|
|
45
|
+
protected get min(): Date;
|
|
46
|
+
protected get max(): Date;
|
|
47
|
+
protected get rangeLength(): number;
|
|
48
|
+
protected get canMoveUp(): boolean;
|
|
49
49
|
render(): JSX.Element;
|
|
50
50
|
protected getTitle: () => string;
|
|
51
51
|
private handleTitleClick;
|
|
@@ -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 __());
|
|
@@ -61,7 +63,7 @@ var Header = /** @class */ (function (_super) {
|
|
|
61
63
|
? this.props.min
|
|
62
64
|
: Header.defaultProps.min;
|
|
63
65
|
},
|
|
64
|
-
enumerable:
|
|
66
|
+
enumerable: false,
|
|
65
67
|
configurable: true
|
|
66
68
|
});
|
|
67
69
|
Object.defineProperty(Header.prototype, "max", {
|
|
@@ -70,21 +72,21 @@ var Header = /** @class */ (function (_super) {
|
|
|
70
72
|
? this.props.max
|
|
71
73
|
: Header.defaultProps.max;
|
|
72
74
|
},
|
|
73
|
-
enumerable:
|
|
75
|
+
enumerable: false,
|
|
74
76
|
configurable: true
|
|
75
77
|
});
|
|
76
78
|
Object.defineProperty(Header.prototype, "rangeLength", {
|
|
77
79
|
get: function () {
|
|
78
80
|
return this.props.rangeLength !== undefined ? this.props.rangeLength : Header.defaultProps.rangeLength;
|
|
79
81
|
},
|
|
80
|
-
enumerable:
|
|
82
|
+
enumerable: false,
|
|
81
83
|
configurable: true
|
|
82
84
|
});
|
|
83
85
|
Object.defineProperty(Header.prototype, "canMoveUp", {
|
|
84
86
|
get: function () {
|
|
85
87
|
return this.props.bus.canMoveUp(this.props.activeView);
|
|
86
88
|
},
|
|
87
|
-
enumerable:
|
|
89
|
+
enumerable: false,
|
|
88
90
|
configurable: true
|
|
89
91
|
});
|
|
90
92
|
Header.prototype.render = function () {
|
|
@@ -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;
|
|
@@ -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 __());
|
|
@@ -80,14 +82,14 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
80
82
|
get: function () {
|
|
81
83
|
return this._element;
|
|
82
84
|
},
|
|
83
|
-
enumerable:
|
|
85
|
+
enumerable: false,
|
|
84
86
|
configurable: true
|
|
85
87
|
});
|
|
86
88
|
Object.defineProperty(HorizontalViewList.prototype, "weekNumber", {
|
|
87
89
|
get: function () {
|
|
88
90
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
|
|
89
91
|
},
|
|
90
|
-
enumerable:
|
|
92
|
+
enumerable: false,
|
|
91
93
|
configurable: true
|
|
92
94
|
});
|
|
93
95
|
Object.defineProperty(HorizontalViewList.prototype, "min", {
|
|
@@ -96,7 +98,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
96
98
|
? this.props.min
|
|
97
99
|
: HorizontalViewList.defaultProps.min;
|
|
98
100
|
},
|
|
99
|
-
enumerable:
|
|
101
|
+
enumerable: false,
|
|
100
102
|
configurable: true
|
|
101
103
|
});
|
|
102
104
|
Object.defineProperty(HorizontalViewList.prototype, "max", {
|
|
@@ -105,7 +107,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
105
107
|
? this.props.max
|
|
106
108
|
: HorizontalViewList.defaultProps.max;
|
|
107
109
|
},
|
|
108
|
-
enumerable:
|
|
110
|
+
enumerable: false,
|
|
109
111
|
configurable: true
|
|
110
112
|
});
|
|
111
113
|
HorizontalViewList.prototype.componentDidUpdate = function () {
|
|
@@ -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,7 +62,7 @@ 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<"range" | "multiple" | "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>;
|
|
@@ -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
|
|
@@ -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 __());
|
|
@@ -315,7 +317,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
315
317
|
get: function () {
|
|
316
318
|
return this._element;
|
|
317
319
|
},
|
|
318
|
-
enumerable:
|
|
320
|
+
enumerable: false,
|
|
319
321
|
configurable: true
|
|
320
322
|
});
|
|
321
323
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "value", {
|
|
@@ -329,7 +331,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
329
331
|
? this.props.value
|
|
330
332
|
: this.state.value;
|
|
331
333
|
},
|
|
332
|
-
enumerable:
|
|
334
|
+
enumerable: false,
|
|
333
335
|
configurable: true
|
|
334
336
|
});
|
|
335
337
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "focusedDate", {
|
|
@@ -339,7 +341,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
339
341
|
get: function () {
|
|
340
342
|
return cloneDate(this._focusedDate);
|
|
341
343
|
},
|
|
342
|
-
enumerable:
|
|
344
|
+
enumerable: false,
|
|
343
345
|
configurable: true
|
|
344
346
|
});
|
|
345
347
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "min", {
|
|
@@ -348,7 +350,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
348
350
|
? this.props.min
|
|
349
351
|
: MultiViewCalendarWithoutContext.defaultProps.min);
|
|
350
352
|
},
|
|
351
|
-
enumerable:
|
|
353
|
+
enumerable: false,
|
|
352
354
|
configurable: true
|
|
353
355
|
});
|
|
354
356
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "max", {
|
|
@@ -357,7 +359,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
357
359
|
? this.props.max
|
|
358
360
|
: MultiViewCalendarWithoutContext.defaultProps.max);
|
|
359
361
|
},
|
|
360
|
-
enumerable:
|
|
362
|
+
enumerable: false,
|
|
361
363
|
configurable: true
|
|
362
364
|
});
|
|
363
365
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "bottomView", {
|
|
@@ -366,7 +368,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
366
368
|
? this.props.bottomView
|
|
367
369
|
: MultiViewCalendarWithoutContext.defaultProps.bottomView];
|
|
368
370
|
},
|
|
369
|
-
enumerable:
|
|
371
|
+
enumerable: false,
|
|
370
372
|
configurable: true
|
|
371
373
|
});
|
|
372
374
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "topView", {
|
|
@@ -375,7 +377,7 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
375
377
|
? this.props.topView
|
|
376
378
|
: MultiViewCalendarWithoutContext.defaultProps.topView];
|
|
377
379
|
},
|
|
378
|
-
enumerable:
|
|
380
|
+
enumerable: false,
|
|
379
381
|
configurable: true
|
|
380
382
|
});
|
|
381
383
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "activeRange", {
|
|
@@ -384,14 +386,14 @@ var MultiViewCalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
384
386
|
? this.props.activeRangeEnd
|
|
385
387
|
: this.activeRangeEnd;
|
|
386
388
|
},
|
|
387
|
-
enumerable:
|
|
389
|
+
enumerable: false,
|
|
388
390
|
configurable: true
|
|
389
391
|
});
|
|
390
392
|
Object.defineProperty(MultiViewCalendarWithoutContext.prototype, "todayIsInRange", {
|
|
391
393
|
get: function () {
|
|
392
394
|
return isInRange(getToday(), getDate(this.min), getDate(this.max));
|
|
393
395
|
},
|
|
394
|
-
enumerable:
|
|
396
|
+
enumerable: false,
|
|
395
397
|
configurable: true
|
|
396
398
|
});
|
|
397
399
|
/**
|
|
@@ -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
|
|
@@ -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 __());
|
|
@@ -106,7 +108,7 @@ var Navigation = /** @class */ (function (_super) {
|
|
|
106
108
|
? this.props.take
|
|
107
109
|
: Navigation.defaultProps.take;
|
|
108
110
|
},
|
|
109
|
-
enumerable:
|
|
111
|
+
enumerable: false,
|
|
110
112
|
configurable: true
|
|
111
113
|
});
|
|
112
114
|
/**
|
|
@@ -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 __());
|
|
@@ -45,7 +47,7 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
45
47
|
? this.props.min
|
|
46
48
|
: TodayCommand.defaultProps.min;
|
|
47
49
|
},
|
|
48
|
-
enumerable:
|
|
50
|
+
enumerable: false,
|
|
49
51
|
configurable: true
|
|
50
52
|
});
|
|
51
53
|
Object.defineProperty(TodayCommand.prototype, "max", {
|
|
@@ -54,14 +56,14 @@ var TodayCommand = /** @class */ (function (_super) {
|
|
|
54
56
|
? this.props.max
|
|
55
57
|
: TodayCommand.defaultProps.max;
|
|
56
58
|
},
|
|
57
|
-
enumerable:
|
|
59
|
+
enumerable: false,
|
|
58
60
|
configurable: true
|
|
59
61
|
});
|
|
60
62
|
Object.defineProperty(TodayCommand.prototype, "todayIsInRange", {
|
|
61
63
|
get: function () {
|
|
62
64
|
return isInRange(getToday(), getDate(this.min), getDate(this.max));
|
|
63
65
|
},
|
|
64
|
-
enumerable:
|
|
66
|
+
enumerable: false,
|
|
65
67
|
configurable: true
|
|
66
68
|
});
|
|
67
69
|
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;
|