@progress/kendo-react-dateinputs 5.4.0-dev.202205180853 → 5.4.0-dev.202205271059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/PopupSettings.js +1 -0
- package/dist/es/calendar/components/Calendar.d.ts +8 -8
- package/dist/es/calendar/components/Calendar.js +9 -7
- package/dist/es/calendar/components/CalendarCell.js +7 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
- package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
- package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
- package/dist/es/calendar/components/Header.d.ts +4 -4
- package/dist/es/calendar/components/Header.js +7 -5
- package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/es/calendar/components/HorizontalViewList.js +7 -5
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +11 -11
- package/dist/es/calendar/components/MultiViewCalendar.js +12 -10
- package/dist/es/calendar/components/Navigation.d.ts +1 -1
- package/dist/es/calendar/components/Navigation.js +4 -2
- package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/es/calendar/components/TodayCommand.js +6 -4
- package/dist/es/calendar/components/View.d.ts +7 -7
- package/dist/es/calendar/components/View.js +10 -8
- package/dist/es/calendar/components/ViewList.d.ts +6 -6
- package/dist/es/calendar/components/ViewList.js +9 -7
- package/dist/es/calendar/models/ActiveView.js +1 -0
- package/dist/es/calendar/models/CalendarSettings.js +1 -0
- package/dist/es/calendar/models/CellContext.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
- package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
- package/dist/es/calendar/models/ViewService.js +1 -0
- package/dist/es/calendar/services/MonthViewService.js +1 -1
- package/dist/es/dateinput/DateInput.d.ts +17 -17
- package/dist/es/dateinput/DateInput.js +23 -16
- package/dist/es/dateinput/models/DateInputSettings.js +1 -0
- package/dist/es/dateinput/models/format-placeholder.js +1 -0
- package/dist/es/dateinput/models/incremental-steps.js +1 -0
- package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/es/dateinput/models/kendo-date.js +2 -2
- package/dist/es/dateinput/models/selection.js +1 -0
- package/dist/es/dateinput/utils.d.ts +1 -1
- package/dist/es/datepicker/DatePicker.d.ts +21 -21
- package/dist/es/datepicker/DatePicker.js +24 -20
- package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
- package/dist/es/datepicker/models/index.js +1 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +11 -11
- package/dist/es/daterangepicker/DateRangePicker.js +16 -14
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
- package/dist/es/daterangepicker/models/index.js +1 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +16 -16
- package/dist/es/datetimepicker/DateTimePicker.js +30 -15
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +6 -6
- package/dist/es/datetimepicker/DateTimeSelector.js +12 -7
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
- package/dist/es/datetimepicker/models/index.js +1 -0
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/es/messages/index.d.ts +21 -21
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +5 -5
- package/dist/es/timepicker/TimeList.js +8 -6
- package/dist/es/timepicker/TimePart.d.ts +7 -7
- package/dist/es/timepicker/TimePart.js +10 -8
- package/dist/es/timepicker/TimePicker.d.ts +19 -19
- package/dist/es/timepicker/TimePicker.js +23 -19
- package/dist/es/timepicker/TimeSelector.d.ts +4 -4
- package/dist/es/timepicker/TimeSelector.js +7 -5
- package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
- package/dist/es/timepicker/models/ListItem.js +1 -0
- package/dist/es/timepicker/models/ListService.js +1 -0
- package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
- package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
- package/dist/es/timepicker/utils.d.ts +4 -4
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +6 -1
- package/dist/es/virtualization/Virtualization.d.ts +7 -7
- package/dist/es/virtualization/Virtualization.js +9 -7
- package/dist/es/virtualization/services/RowHeightService.js +6 -1
- package/dist/npm/calendar/components/Calendar.d.ts +8 -8
- package/dist/npm/calendar/components/Calendar.js +10 -7
- package/dist/npm/calendar/components/CalendarCell.js +8 -3
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
- package/dist/npm/calendar/components/CalendarNavigationItem.js +8 -3
- package/dist/npm/calendar/components/CalendarWeekCell.js +8 -3
- package/dist/npm/calendar/components/Header.d.ts +4 -4
- package/dist/npm/calendar/components/Header.js +8 -5
- package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/npm/calendar/components/HorizontalViewList.js +8 -5
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +11 -11
- package/dist/npm/calendar/components/MultiViewCalendar.js +13 -10
- package/dist/npm/calendar/components/Navigation.d.ts +1 -1
- package/dist/npm/calendar/components/Navigation.js +5 -2
- package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/npm/calendar/components/TodayCommand.js +7 -4
- package/dist/npm/calendar/components/View.d.ts +7 -7
- package/dist/npm/calendar/components/View.js +11 -8
- package/dist/npm/calendar/components/ViewList.d.ts +6 -6
- package/dist/npm/calendar/components/ViewList.js +10 -7
- package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
- package/dist/npm/calendar/models/NavigationAction.js +1 -0
- package/dist/npm/calendar/models/SelectionRange.js +1 -0
- package/dist/npm/calendar/models/index.js +4 -3
- package/dist/npm/calendar/services/BusViewService.js +2 -1
- package/dist/npm/calendar/services/CenturyViewService.js +2 -1
- package/dist/npm/calendar/services/DOMService.js +1 -0
- package/dist/npm/calendar/services/DecadeViewService.js +2 -1
- package/dist/npm/calendar/services/MonthViewService.js +3 -2
- package/dist/npm/calendar/services/NavigationService.js +1 -0
- package/dist/npm/calendar/services/ScrollSyncService.js +1 -0
- package/dist/npm/calendar/services/WeekNamesService.js +1 -0
- package/dist/npm/calendar/services/YearViewService.js +2 -1
- package/dist/npm/calendar/services/index.js +10 -9
- package/dist/npm/common/PickerWrap.js +1 -0
- package/dist/npm/dateinput/DateInput.d.ts +17 -17
- package/dist/npm/dateinput/DateInput.js +24 -16
- package/dist/npm/dateinput/models/index.js +3 -2
- package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/npm/dateinput/models/kendo-date.js +3 -2
- package/dist/npm/dateinput/models/mask.js +1 -0
- package/dist/npm/dateinput/utils.d.ts +1 -1
- package/dist/npm/dateinput/utils.js +9 -4
- package/dist/npm/datepicker/DatePicker.d.ts +21 -21
- package/dist/npm/datepicker/DatePicker.js +25 -20
- package/dist/npm/datepicker/ToggleButton.js +1 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +11 -11
- package/dist/npm/daterangepicker/DateRangePicker.js +17 -14
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +16 -16
- package/dist/npm/datetimepicker/DateTimePicker.js +31 -15
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +6 -6
- package/dist/npm/datetimepicker/DateTimeSelector.js +13 -7
- package/dist/npm/defaults.js +1 -0
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/npm/hooks/usePickerFloatingLabel.js +5 -2
- package/dist/npm/main.js +22 -21
- package/dist/npm/messages/index.d.ts +21 -21
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/timepicker/TimeList.d.ts +5 -5
- package/dist/npm/timepicker/TimeList.js +10 -7
- package/dist/npm/timepicker/TimePart.d.ts +7 -7
- package/dist/npm/timepicker/TimePart.js +11 -8
- package/dist/npm/timepicker/TimePicker.d.ts +19 -19
- package/dist/npm/timepicker/TimePicker.js +24 -19
- package/dist/npm/timepicker/TimeSelector.d.ts +4 -4
- package/dist/npm/timepicker/TimeSelector.js +8 -5
- package/dist/npm/timepicker/models/TimePart.js +1 -0
- package/dist/npm/timepicker/models/index.js +2 -1
- package/dist/npm/timepicker/services/DOMService.js +1 -0
- package/dist/npm/timepicker/services/DayPeriodService.js +1 -0
- package/dist/npm/timepicker/services/HoursService.js +1 -0
- package/dist/npm/timepicker/services/MinutesService.js +1 -0
- package/dist/npm/timepicker/services/SecondsService.js +1 -0
- package/dist/npm/timepicker/services/index.js +6 -5
- package/dist/npm/timepicker/utils.d.ts +4 -4
- package/dist/npm/timepicker/utils.js +19 -9
- package/dist/npm/utils.d.ts +1 -1
- package/dist/npm/utils.js +33 -14
- package/dist/npm/virtualization/Virtualization.d.ts +7 -7
- package/dist/npm/virtualization/Virtualization.js +11 -8
- package/dist/npm/virtualization/services/RowHeightService.js +7 -1
- package/dist/npm/virtualization/services/ScrollerService.js +1 -0
- package/dist/npm/virtualization/services/index.js +5 -4
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -41,16 +41,16 @@ export declare const timeInRange: (candidate: Date, min: Date, max: Date) => Dat
|
|
|
41
41
|
/**
|
|
42
42
|
* @hidden
|
|
43
43
|
*/
|
|
44
|
-
export declare const isInTimeRange: (candidate: Date, min?: Date, max?: Date) => boolean;
|
|
44
|
+
export declare const isInTimeRange: (candidate: Date | null, min?: Date, max?: Date) => boolean;
|
|
45
45
|
/**
|
|
46
46
|
* @hidden
|
|
47
47
|
*/
|
|
48
|
-
export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
|
|
48
|
+
export declare const isInRange: (candidate: Date | null, min: Date, max: Date) => boolean;
|
|
49
49
|
/**
|
|
50
50
|
* @hidden
|
|
51
51
|
*/
|
|
52
|
-
export declare const isSmallerThanMin: (val: Date, min: Date) => boolean;
|
|
52
|
+
export declare const isSmallerThanMin: (val: Date | null, min: Date | null) => boolean;
|
|
53
53
|
/**
|
|
54
54
|
* @hidden
|
|
55
55
|
*/
|
|
56
|
-
export declare const isBiggerThanMax: (val: Date, max: Date) => boolean;
|
|
56
|
+
export declare const isBiggerThanMax: (val: Date | null, max: Date | null) => boolean;
|
package/dist/es/utils.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const isInRange: (candidate: Date, min: Date, max: Date) => boole
|
|
|
51
51
|
/**
|
|
52
52
|
* @hidden
|
|
53
53
|
*/
|
|
54
|
-
export declare const isInDateRange: (candidate: Date, min: Date, max: Date) => boolean;
|
|
54
|
+
export declare const isInDateRange: (candidate: Date | null, min: Date, max: Date) => boolean;
|
|
55
55
|
/**
|
|
56
56
|
* @hidden
|
|
57
57
|
*/
|
package/dist/es/utils.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import { cloneDate, isEqual } from '@progress/kendo-date-math';
|
|
2
7
|
import { getDate } from '@progress/kendo-date-math';
|
|
3
8
|
import { EMPTY_SELECTIONRANGE } from './calendar/models/SelectionRange';
|
|
@@ -26,7 +31,7 @@ export function nullable(subRequirement) {
|
|
|
26
31
|
return null;
|
|
27
32
|
}
|
|
28
33
|
var sub = required ? subRequirement.isRequired : subRequirement;
|
|
29
|
-
return sub.apply(void 0, [props, key]
|
|
34
|
+
return sub.apply(void 0, __spreadArray([props, key], rest));
|
|
30
35
|
};
|
|
31
36
|
var fn = check.bind(null, false);
|
|
32
37
|
fn.isRequired = check.bind(null, true);
|
|
@@ -68,7 +68,7 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
68
68
|
role: PropTypes.Requireable<string>;
|
|
69
69
|
};
|
|
70
70
|
static defaultProps: {
|
|
71
|
-
direction:
|
|
71
|
+
direction: Direction;
|
|
72
72
|
forceScroll: boolean;
|
|
73
73
|
scrollOffsetSize: number;
|
|
74
74
|
maxScrollDifference: number;
|
|
@@ -85,12 +85,12 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
85
85
|
private lastTake;
|
|
86
86
|
private animationInProgress;
|
|
87
87
|
private scrollToIndexTimeout;
|
|
88
|
-
|
|
89
|
-
protected
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
protected
|
|
93
|
-
protected
|
|
88
|
+
get element(): HTMLDivElement | null;
|
|
89
|
+
protected get containerOffsetSize(): number;
|
|
90
|
+
get containerScrollSize(): number;
|
|
91
|
+
get containerScrollPosition(): number;
|
|
92
|
+
protected get direction(): Direction;
|
|
93
|
+
protected get scrollOffsetSize(): number;
|
|
94
94
|
constructor(props: VirtualizationProps);
|
|
95
95
|
activeIndex(): number;
|
|
96
96
|
itemIndex(offset: number): number;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -177,35 +179,35 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
177
179
|
get: function () {
|
|
178
180
|
return this.scrollContainer;
|
|
179
181
|
},
|
|
180
|
-
enumerable:
|
|
182
|
+
enumerable: false,
|
|
181
183
|
configurable: true
|
|
182
184
|
});
|
|
183
185
|
Object.defineProperty(Virtualization.prototype, "containerOffsetSize", {
|
|
184
186
|
get: function () {
|
|
185
187
|
return this.getContainerProperty(this.direction === 'vertical' ? 'offsetHeight' : 'offsetWidth');
|
|
186
188
|
},
|
|
187
|
-
enumerable:
|
|
189
|
+
enumerable: false,
|
|
188
190
|
configurable: true
|
|
189
191
|
});
|
|
190
192
|
Object.defineProperty(Virtualization.prototype, "containerScrollSize", {
|
|
191
193
|
get: function () {
|
|
192
194
|
return this.getContainerProperty(this.direction === 'vertical' ? 'scrollHeight' : 'scrollWidth');
|
|
193
195
|
},
|
|
194
|
-
enumerable:
|
|
196
|
+
enumerable: false,
|
|
195
197
|
configurable: true
|
|
196
198
|
});
|
|
197
199
|
Object.defineProperty(Virtualization.prototype, "containerScrollPosition", {
|
|
198
200
|
get: function () {
|
|
199
201
|
return this.getContainerProperty(this.direction === 'vertical' ? 'scrollTop' : 'scrollLeft');
|
|
200
202
|
},
|
|
201
|
-
enumerable:
|
|
203
|
+
enumerable: false,
|
|
202
204
|
configurable: true
|
|
203
205
|
});
|
|
204
206
|
Object.defineProperty(Virtualization.prototype, "direction", {
|
|
205
207
|
get: function () {
|
|
206
208
|
return this.props.direction !== undefined ? this.props.direction : Virtualization.defaultProps.direction;
|
|
207
209
|
},
|
|
208
|
-
enumerable:
|
|
210
|
+
enumerable: false,
|
|
209
211
|
configurable: true
|
|
210
212
|
});
|
|
211
213
|
Object.defineProperty(Virtualization.prototype, "scrollOffsetSize", {
|
|
@@ -213,7 +215,7 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
213
215
|
return this.props.scrollOffsetSize !== undefined
|
|
214
216
|
? this.props.scrollOffsetSize : Virtualization.defaultProps.scrollOffsetSize;
|
|
215
217
|
},
|
|
216
|
-
enumerable:
|
|
218
|
+
enumerable: false,
|
|
217
219
|
configurable: true
|
|
218
220
|
});
|
|
219
221
|
Virtualization.prototype.activeIndex = function () {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
/**
|
|
2
7
|
* @hidden
|
|
3
8
|
*/
|
|
4
|
-
var update = function (arr, idx, value) { return (arr.slice(0, idx + 1)
|
|
9
|
+
var update = function (arr, idx, value) { return (__spreadArray(__spreadArray([], arr.slice(0, idx + 1)), (arr.slice(idx + 1).map(function (x) { return x + value; })))); };
|
|
5
10
|
/**
|
|
6
11
|
* @hidden
|
|
7
12
|
*/
|
|
@@ -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
|
|
@@ -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.Calendar = exports.CalendarPropsContext = exports.CalendarWithoutContext = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -193,7 +196,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
193
196
|
get: function () {
|
|
194
197
|
return this._element;
|
|
195
198
|
},
|
|
196
|
-
enumerable:
|
|
199
|
+
enumerable: false,
|
|
197
200
|
configurable: true
|
|
198
201
|
});
|
|
199
202
|
Object.defineProperty(CalendarWithoutContext.prototype, "value", {
|
|
@@ -207,7 +210,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
207
210
|
? this.props.value
|
|
208
211
|
: this.state.value;
|
|
209
212
|
},
|
|
210
|
-
enumerable:
|
|
213
|
+
enumerable: false,
|
|
211
214
|
configurable: true
|
|
212
215
|
});
|
|
213
216
|
Object.defineProperty(CalendarWithoutContext.prototype, "min", {
|
|
@@ -216,7 +219,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
216
219
|
? this.props.min
|
|
217
220
|
: CalendarWithoutContext.defaultProps.min);
|
|
218
221
|
},
|
|
219
|
-
enumerable:
|
|
222
|
+
enumerable: false,
|
|
220
223
|
configurable: true
|
|
221
224
|
});
|
|
222
225
|
Object.defineProperty(CalendarWithoutContext.prototype, "max", {
|
|
@@ -225,7 +228,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
225
228
|
? this.props.max
|
|
226
229
|
: CalendarWithoutContext.defaultProps.max);
|
|
227
230
|
},
|
|
228
|
-
enumerable:
|
|
231
|
+
enumerable: false,
|
|
229
232
|
configurable: true
|
|
230
233
|
});
|
|
231
234
|
Object.defineProperty(CalendarWithoutContext.prototype, "bottomView", {
|
|
@@ -234,7 +237,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
234
237
|
? this.props.bottomView
|
|
235
238
|
: CalendarWithoutContext.defaultProps.bottomView];
|
|
236
239
|
},
|
|
237
|
-
enumerable:
|
|
240
|
+
enumerable: false,
|
|
238
241
|
configurable: true
|
|
239
242
|
});
|
|
240
243
|
Object.defineProperty(CalendarWithoutContext.prototype, "topView", {
|
|
@@ -243,7 +246,7 @@ var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
|
243
246
|
? this.props.topView
|
|
244
247
|
: CalendarWithoutContext.defaultProps.topView];
|
|
245
248
|
},
|
|
246
|
-
enumerable:
|
|
249
|
+
enumerable: false,
|
|
247
250
|
configurable: true
|
|
248
251
|
});
|
|
249
252
|
/**
|
|
@@ -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.CalendarCell = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
38
43
|
/**
|
|
@@ -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.CalendarHeaderTitle = void 0;
|
|
36
41
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
37
42
|
var React = require("react");
|
|
38
43
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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;
|
|
@@ -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");
|
|
@@ -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,21 +75,21 @@ 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 () {
|
|
@@ -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");
|
|
@@ -82,14 +85,14 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
82
85
|
get: function () {
|
|
83
86
|
return this._element;
|
|
84
87
|
},
|
|
85
|
-
enumerable:
|
|
88
|
+
enumerable: false,
|
|
86
89
|
configurable: true
|
|
87
90
|
});
|
|
88
91
|
Object.defineProperty(HorizontalViewList.prototype, "weekNumber", {
|
|
89
92
|
get: function () {
|
|
90
93
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === models_1.CalendarViewEnum.month);
|
|
91
94
|
},
|
|
92
|
-
enumerable:
|
|
95
|
+
enumerable: false,
|
|
93
96
|
configurable: true
|
|
94
97
|
});
|
|
95
98
|
Object.defineProperty(HorizontalViewList.prototype, "min", {
|
|
@@ -98,7 +101,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
98
101
|
? this.props.min
|
|
99
102
|
: HorizontalViewList.defaultProps.min;
|
|
100
103
|
},
|
|
101
|
-
enumerable:
|
|
104
|
+
enumerable: false,
|
|
102
105
|
configurable: true
|
|
103
106
|
});
|
|
104
107
|
Object.defineProperty(HorizontalViewList.prototype, "max", {
|
|
@@ -107,7 +110,7 @@ var HorizontalViewList = /** @class */ (function (_super) {
|
|
|
107
110
|
? this.props.max
|
|
108
111
|
: HorizontalViewList.defaultProps.max;
|
|
109
112
|
},
|
|
110
|
-
enumerable:
|
|
113
|
+
enumerable: false,
|
|
111
114
|
configurable: true
|
|
112
115
|
});
|
|
113
116
|
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
|