@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
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: keyof CalendarProps<any>, componentName: string) => Error | null;
|
|
84
|
+
bottomView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* @hidden
|
|
@@ -92,13 +92,13 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
|
|
|
92
92
|
max: Date;
|
|
93
93
|
navigation: boolean;
|
|
94
94
|
defaultActiveView: ActiveView;
|
|
95
|
-
defaultValue:
|
|
95
|
+
defaultValue: null;
|
|
96
96
|
smoothScroll: boolean;
|
|
97
97
|
topView: ActiveView;
|
|
98
98
|
bottomView: ActiveView;
|
|
99
99
|
};
|
|
100
100
|
protected dom: DOMService;
|
|
101
|
-
protected scrollSyncService: ScrollSyncService;
|
|
101
|
+
protected scrollSyncService: ScrollSyncService | null;
|
|
102
102
|
private valueDuringOnChange?;
|
|
103
103
|
private focusedDate;
|
|
104
104
|
private cellUID;
|
|
@@ -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 __());
|
|
@@ -51,8 +53,15 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
51
53
|
__extends(CalendarWithoutContext, _super);
|
|
52
54
|
function CalendarWithoutContext(props) {
|
|
53
55
|
var _this = _super.call(this, props) || this;
|
|
56
|
+
_this.scrollSyncService = null;
|
|
57
|
+
_this.focusedDate = null;
|
|
54
58
|
_this.cellUID = guid();
|
|
55
59
|
_this.id = guid();
|
|
60
|
+
_this.Navigation = null;
|
|
61
|
+
_this.calendarViewList = null;
|
|
62
|
+
_this._element = null;
|
|
63
|
+
_this.intl = null;
|
|
64
|
+
_this.service = null;
|
|
56
65
|
_this.isActive = false;
|
|
57
66
|
_this.didNavigationChange = false;
|
|
58
67
|
/**
|
|
@@ -80,7 +89,9 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
80
89
|
};
|
|
81
90
|
_this.handleViewChange = function (_a) {
|
|
82
91
|
var view = _a.view;
|
|
83
|
-
_this.scrollSyncService
|
|
92
|
+
if (_this.scrollSyncService) {
|
|
93
|
+
_this.scrollSyncService.configure(view);
|
|
94
|
+
}
|
|
84
95
|
_this.setState({ activeView: view });
|
|
85
96
|
};
|
|
86
97
|
_this.handleDateChange = function (event) {
|
|
@@ -138,6 +149,9 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
138
149
|
};
|
|
139
150
|
_this.handleKeyDown = function (event) {
|
|
140
151
|
var keyCode = event.keyCode;
|
|
152
|
+
if (!_this.focusedDate || !_this.service) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
141
155
|
if (keyCode === Keys.enter) {
|
|
142
156
|
if (_this.value !== null
|
|
143
157
|
&& isEqualDate(_this.focusedDate, _this.value)) {
|
|
@@ -150,7 +164,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
150
164
|
value: _this.focusedDate,
|
|
151
165
|
target: _this
|
|
152
166
|
};
|
|
153
|
-
_this.handleDateChange
|
|
167
|
+
_this.handleDateChange(args);
|
|
154
168
|
}
|
|
155
169
|
else {
|
|
156
170
|
var candidate = dateInRange(_this.navigation.move(_this.focusedDate, _this.navigation.action(event), _this.state.activeView, _this.service, event), _this.min, _this.max);
|
|
@@ -191,7 +205,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
191
205
|
get: function () {
|
|
192
206
|
return this._element;
|
|
193
207
|
},
|
|
194
|
-
enumerable:
|
|
208
|
+
enumerable: false,
|
|
195
209
|
configurable: true
|
|
196
210
|
});
|
|
197
211
|
Object.defineProperty(CalendarWithoutContext.prototype, "value", {
|
|
@@ -205,7 +219,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
205
219
|
? this.props.value
|
|
206
220
|
: this.state.value;
|
|
207
221
|
},
|
|
208
|
-
enumerable:
|
|
222
|
+
enumerable: false,
|
|
209
223
|
configurable: true
|
|
210
224
|
});
|
|
211
225
|
Object.defineProperty(CalendarWithoutContext.prototype, "min", {
|
|
@@ -214,7 +228,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
214
228
|
? this.props.min
|
|
215
229
|
: CalendarWithoutContext.defaultProps.min);
|
|
216
230
|
},
|
|
217
|
-
enumerable:
|
|
231
|
+
enumerable: false,
|
|
218
232
|
configurable: true
|
|
219
233
|
});
|
|
220
234
|
Object.defineProperty(CalendarWithoutContext.prototype, "max", {
|
|
@@ -223,7 +237,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
223
237
|
? this.props.max
|
|
224
238
|
: CalendarWithoutContext.defaultProps.max);
|
|
225
239
|
},
|
|
226
|
-
enumerable:
|
|
240
|
+
enumerable: false,
|
|
227
241
|
configurable: true
|
|
228
242
|
});
|
|
229
243
|
Object.defineProperty(CalendarWithoutContext.prototype, "bottomView", {
|
|
@@ -232,7 +246,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
232
246
|
? this.props.bottomView
|
|
233
247
|
: CalendarWithoutContext.defaultProps.bottomView];
|
|
234
248
|
},
|
|
235
|
-
enumerable:
|
|
249
|
+
enumerable: false,
|
|
236
250
|
configurable: true
|
|
237
251
|
});
|
|
238
252
|
Object.defineProperty(CalendarWithoutContext.prototype, "topView", {
|
|
@@ -241,7 +255,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
241
255
|
? this.props.topView
|
|
242
256
|
: CalendarWithoutContext.defaultProps.topView];
|
|
243
257
|
},
|
|
244
|
-
enumerable:
|
|
258
|
+
enumerable: false,
|
|
245
259
|
configurable: true
|
|
246
260
|
});
|
|
247
261
|
/**
|
|
@@ -264,7 +278,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
264
278
|
* @hidden
|
|
265
279
|
*/
|
|
266
280
|
CalendarWithoutContext.prototype.componentDidUpdate = function (_, prevState) {
|
|
267
|
-
if (prevState.activeView !== this.state.activeView) {
|
|
281
|
+
if (prevState.activeView !== this.state.activeView && this.scrollSyncService) {
|
|
268
282
|
this.scrollSyncService.configure(this.state.activeView);
|
|
269
283
|
}
|
|
270
284
|
if (this.calendarViewList) {
|
|
@@ -338,7 +352,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
338
352
|
var prop = props[propName];
|
|
339
353
|
var bottomView = props.bottomView;
|
|
340
354
|
if (prop && bottomView && CalendarViewEnum[prop] < CalendarViewEnum[bottomView]) {
|
|
341
|
-
return new Error("Invalid prop + "
|
|
355
|
+
return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be smaller than bottomView.\n "));
|
|
342
356
|
}
|
|
343
357
|
return null;
|
|
344
358
|
},
|
|
@@ -346,7 +360,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
346
360
|
var prop = props[propName];
|
|
347
361
|
var topView = props.topView;
|
|
348
362
|
if (prop && topView && CalendarViewEnum[prop] > CalendarViewEnum[topView]) {
|
|
349
|
-
return new Error("Invalid prop + "
|
|
363
|
+
return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be bigger than topView.\n "));
|
|
350
364
|
}
|
|
351
365
|
return null;
|
|
352
366
|
}
|
|
@@ -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';
|
|
@@ -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;
|
|
@@ -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 Header = /** @class */ (function (_super) {
|
|
|
45
47
|
if (take < 1 || !_this.props.service.isInRange(nextDate, _this.min, _this.max)) {
|
|
46
48
|
return title;
|
|
47
49
|
}
|
|
48
|
-
return title
|
|
50
|
+
return "".concat(title, " - ").concat(_this.props.service.title(nextDate));
|
|
49
51
|
};
|
|
50
52
|
_this.handleTitleClick = function (event) {
|
|
51
53
|
if (!_this.canMoveUp) {
|
|
@@ -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 __());
|
|
@@ -25,6 +27,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
25
27
|
__extends(HorizontalViewList, _super);
|
|
26
28
|
function HorizontalViewList(props) {
|
|
27
29
|
var _this = _super.call(this, props) || this;
|
|
30
|
+
_this._element = null;
|
|
28
31
|
_this.isActive = false;
|
|
29
32
|
_this.focusActiveDate = function () {
|
|
30
33
|
if (!_this._element) {
|
|
@@ -80,14 +83,14 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
80
83
|
get: function () {
|
|
81
84
|
return this._element;
|
|
82
85
|
},
|
|
83
|
-
enumerable:
|
|
86
|
+
enumerable: false,
|
|
84
87
|
configurable: true
|
|
85
88
|
});
|
|
86
89
|
Object.defineProperty(HorizontalViewList.prototype, "weekNumber", {
|
|
87
90
|
get: function () {
|
|
88
91
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
|
|
89
92
|
},
|
|
90
|
-
enumerable:
|
|
93
|
+
enumerable: false,
|
|
91
94
|
configurable: true
|
|
92
95
|
});
|
|
93
96
|
Object.defineProperty(HorizontalViewList.prototype, "min", {
|
|
@@ -96,7 +99,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
96
99
|
? this.props.min
|
|
97
100
|
: HorizontalViewList.defaultProps.min;
|
|
98
101
|
},
|
|
99
|
-
enumerable:
|
|
102
|
+
enumerable: false,
|
|
100
103
|
configurable: true
|
|
101
104
|
});
|
|
102
105
|
Object.defineProperty(HorizontalViewList.prototype, "max", {
|
|
@@ -105,7 +108,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
105
108
|
? this.props.max
|
|
106
109
|
: HorizontalViewList.defaultProps.max;
|
|
107
110
|
},
|
|
108
|
-
enumerable:
|
|
111
|
+
enumerable: false,
|
|
109
112
|
configurable: true
|
|
110
113
|
});
|
|
111
114
|
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,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
|