@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
|
@@ -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 __());
|
|
@@ -66,7 +68,7 @@ var View = /** @class */ (function (_super) {
|
|
|
66
68
|
}
|
|
67
69
|
var aria = { 'aria-selected': cell.isSelected };
|
|
68
70
|
var uniqueID = "kendo-react-calendar-cell-" + cell.value.getTime();
|
|
69
|
-
var cellProps = __assign({}, aria, cell, { isDisabled: !cell.isInRange, view: _this.props.activeView, onClick: _this.handleClick, onMouseEnter: _this.handleMouseEnter, onMouseLeave: _this.handleMouseLeave });
|
|
71
|
+
var cellProps = __assign(__assign(__assign({}, aria), cell), { isDisabled: !cell.isInRange, view: _this.props.activeView, onClick: _this.handleClick, onMouseEnter: _this.handleMouseEnter, onMouseLeave: _this.handleMouseLeave });
|
|
70
72
|
return _this.props.cell
|
|
71
73
|
? (React.createElement(_this.props.cell, __assign({}, cellProps, { key: uniqueID }), cell.formattedValue))
|
|
72
74
|
: (React.createElement(CalendarCell, __assign({}, cellProps, { key: uniqueID }), cell.formattedValue));
|
|
@@ -117,42 +119,42 @@ var View = /** @class */ (function (_super) {
|
|
|
117
119
|
get: function () {
|
|
118
120
|
return this.props.min;
|
|
119
121
|
},
|
|
120
|
-
enumerable:
|
|
122
|
+
enumerable: false,
|
|
121
123
|
configurable: true
|
|
122
124
|
});
|
|
123
125
|
Object.defineProperty(View.prototype, "max", {
|
|
124
126
|
get: function () {
|
|
125
127
|
return this.props.max;
|
|
126
128
|
},
|
|
127
|
-
enumerable:
|
|
129
|
+
enumerable: false,
|
|
128
130
|
configurable: true
|
|
129
131
|
});
|
|
130
132
|
Object.defineProperty(View.prototype, "isHorizontal", {
|
|
131
133
|
get: function () {
|
|
132
134
|
return this.props.direction === 'horizontal';
|
|
133
135
|
},
|
|
134
|
-
enumerable:
|
|
136
|
+
enumerable: false,
|
|
135
137
|
configurable: true
|
|
136
138
|
});
|
|
137
139
|
Object.defineProperty(View.prototype, "isMonthView", {
|
|
138
140
|
get: function () {
|
|
139
141
|
return this.props.activeView === CalendarViewEnum.month;
|
|
140
142
|
},
|
|
141
|
-
enumerable:
|
|
143
|
+
enumerable: false,
|
|
142
144
|
configurable: true
|
|
143
145
|
});
|
|
144
146
|
Object.defineProperty(View.prototype, "weekNumber", {
|
|
145
147
|
get: function () {
|
|
146
148
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
|
|
147
149
|
},
|
|
148
|
-
enumerable:
|
|
150
|
+
enumerable: false,
|
|
149
151
|
configurable: true
|
|
150
152
|
});
|
|
151
153
|
Object.defineProperty(View.prototype, "selectedDate", {
|
|
152
154
|
get: function () {
|
|
153
155
|
return this.props.selectedDate !== undefined ? this.props.selectedDate : View.defaultProps.selectedDate;
|
|
154
156
|
},
|
|
155
|
-
enumerable:
|
|
157
|
+
enumerable: false,
|
|
156
158
|
configurable: true
|
|
157
159
|
});
|
|
158
160
|
View.prototype.render = function () {
|
|
@@ -87,12 +87,12 @@ export declare class ViewList extends React.Component<ViewListProps, ViewListSta
|
|
|
87
87
|
private shouldScroll;
|
|
88
88
|
private indexToScroll?;
|
|
89
89
|
private lastFocus;
|
|
90
|
-
|
|
91
|
-
protected
|
|
92
|
-
protected
|
|
93
|
-
protected
|
|
94
|
-
protected
|
|
95
|
-
protected
|
|
90
|
+
get element(): HTMLDivElement | null;
|
|
91
|
+
protected get weekNames(): string[];
|
|
92
|
+
protected get weekNumber(): boolean;
|
|
93
|
+
protected get take(): number;
|
|
94
|
+
protected get animate(): boolean;
|
|
95
|
+
protected get todayIsInRange(): boolean;
|
|
96
96
|
constructor(props: ViewListProps);
|
|
97
97
|
componentDidUpdate(_prevProps: ViewListProps, _prevState: ViewListState): void;
|
|
98
98
|
focusActiveDate: () => void;
|
|
@@ -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 __());
|
|
@@ -135,7 +137,7 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
135
137
|
get: function () {
|
|
136
138
|
return this._element;
|
|
137
139
|
},
|
|
138
|
-
enumerable:
|
|
140
|
+
enumerable: false,
|
|
139
141
|
configurable: true
|
|
140
142
|
});
|
|
141
143
|
Object.defineProperty(ViewList.prototype, "weekNames", {
|
|
@@ -144,35 +146,35 @@ var ViewList = /** @class */ (function (_super) {
|
|
|
144
146
|
var weekNames = shiftWeekNames(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
|
|
145
147
|
return this.weekNumber ? [''].concat(weekNames) : weekNames;
|
|
146
148
|
},
|
|
147
|
-
enumerable:
|
|
149
|
+
enumerable: false,
|
|
148
150
|
configurable: true
|
|
149
151
|
});
|
|
150
152
|
Object.defineProperty(ViewList.prototype, "weekNumber", {
|
|
151
153
|
get: function () {
|
|
152
154
|
return Boolean(this.props.showWeekNumbers && this.props.activeView === CalendarViewEnum.month);
|
|
153
155
|
},
|
|
154
|
-
enumerable:
|
|
156
|
+
enumerable: false,
|
|
155
157
|
configurable: true
|
|
156
158
|
});
|
|
157
159
|
Object.defineProperty(ViewList.prototype, "take", {
|
|
158
160
|
get: function () {
|
|
159
161
|
return this.props.take !== undefined ? this.props.take : ViewList.defaultProps.take;
|
|
160
162
|
},
|
|
161
|
-
enumerable:
|
|
163
|
+
enumerable: false,
|
|
162
164
|
configurable: true
|
|
163
165
|
});
|
|
164
166
|
Object.defineProperty(ViewList.prototype, "animate", {
|
|
165
167
|
get: function () {
|
|
166
168
|
return Boolean(this.props.smoothScroll && this.animateToIndex);
|
|
167
169
|
},
|
|
168
|
-
enumerable:
|
|
170
|
+
enumerable: false,
|
|
169
171
|
configurable: true
|
|
170
172
|
});
|
|
171
173
|
Object.defineProperty(ViewList.prototype, "todayIsInRange", {
|
|
172
174
|
get: function () {
|
|
173
175
|
return isInRange(getToday(), getDate(this.props.min), getDate(this.props.max));
|
|
174
176
|
},
|
|
175
|
-
enumerable:
|
|
177
|
+
enumerable: false,
|
|
176
178
|
configurable: true
|
|
177
179
|
});
|
|
178
180
|
ViewList.prototype.componentDidUpdate = function (_prevProps, _prevState) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -110,7 +110,7 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
110
110
|
second: PropTypes.Requireable<string>;
|
|
111
111
|
timeZoneName: PropTypes.Requireable<string>;
|
|
112
112
|
}>>;
|
|
113
|
-
formatPlaceholder: PropTypes.Requireable<"
|
|
113
|
+
formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
114
114
|
year: PropTypes.Requireable<string>;
|
|
115
115
|
month: PropTypes.Requireable<string>;
|
|
116
116
|
day: PropTypes.Requireable<string>;
|
|
@@ -147,8 +147,8 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
147
147
|
validate: PropTypes.Requireable<boolean>;
|
|
148
148
|
valid: PropTypes.Requireable<boolean>;
|
|
149
149
|
size: PropTypes.Requireable<"small" | "medium" | "large">;
|
|
150
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "
|
|
151
|
-
fillMode: PropTypes.Requireable<"
|
|
150
|
+
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
|
|
151
|
+
fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
154
|
* @hidden
|
|
@@ -156,8 +156,8 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
156
156
|
static defaultProps: {
|
|
157
157
|
format: string;
|
|
158
158
|
size: "small" | "medium" | "large";
|
|
159
|
-
rounded: "small" | "medium" | "
|
|
160
|
-
fillMode: "
|
|
159
|
+
rounded: "small" | "medium" | "full" | "large";
|
|
160
|
+
fillMode: "flat" | "solid" | "outline";
|
|
161
161
|
formatPlaceholder: DateInputFormatPlaceholder;
|
|
162
162
|
spinners: boolean;
|
|
163
163
|
disabled: boolean;
|
|
@@ -198,21 +198,21 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
198
198
|
/**
|
|
199
199
|
* Gets the value of the DateInput.
|
|
200
200
|
*/
|
|
201
|
-
|
|
201
|
+
get value(): Date | null;
|
|
202
202
|
/**
|
|
203
203
|
* Gets the `name` property of the DateInput.
|
|
204
204
|
*/
|
|
205
|
-
|
|
206
|
-
protected
|
|
207
|
-
protected
|
|
205
|
+
get name(): string | undefined;
|
|
206
|
+
protected get min(): Date;
|
|
207
|
+
protected get max(): Date;
|
|
208
208
|
/**
|
|
209
209
|
* @hidden
|
|
210
210
|
*/
|
|
211
|
-
|
|
211
|
+
get text(): string;
|
|
212
212
|
/**
|
|
213
213
|
* Represents the validity state into which the DateInput is set.
|
|
214
214
|
*/
|
|
215
|
-
|
|
215
|
+
get validity(): FormComponentValidity;
|
|
216
216
|
/**
|
|
217
217
|
* Gets the element of the DateInput.
|
|
218
218
|
*
|
|
@@ -244,7 +244,7 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
244
244
|
* );
|
|
245
245
|
* ```
|
|
246
246
|
*/
|
|
247
|
-
|
|
247
|
+
get element(): HTMLInputElement | null;
|
|
248
248
|
/**
|
|
249
249
|
* @hidden
|
|
250
250
|
*/
|
|
@@ -252,15 +252,15 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
252
252
|
/**
|
|
253
253
|
* @hidden
|
|
254
254
|
*/
|
|
255
|
-
protected
|
|
255
|
+
protected get validityStyles(): boolean;
|
|
256
256
|
/**
|
|
257
257
|
* @hidden
|
|
258
258
|
*/
|
|
259
|
-
protected
|
|
259
|
+
protected get required(): boolean;
|
|
260
260
|
/**
|
|
261
261
|
* @hidden
|
|
262
262
|
*/
|
|
263
|
-
protected
|
|
263
|
+
protected get wrapper(): HTMLSpanElement | null;
|
|
264
264
|
/**
|
|
265
265
|
* @hidden
|
|
266
266
|
*/
|
|
@@ -269,7 +269,7 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
269
269
|
* @hidden
|
|
270
270
|
*/
|
|
271
271
|
protected setValidity: () => void;
|
|
272
|
-
protected updateOnPaste: (event: React.SyntheticEvent<HTMLInputElement
|
|
272
|
+
protected updateOnPaste: (event: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
273
273
|
private spinnersMouseDown;
|
|
274
274
|
private handlePaste;
|
|
275
275
|
private elementChange;
|
|
@@ -281,7 +281,7 @@ export declare class DateInputWithoutContext extends React.Component<DateInputPr
|
|
|
281
281
|
private elementKeyDown;
|
|
282
282
|
private elementOnFocus;
|
|
283
283
|
private elementOnBlur;
|
|
284
|
-
private
|
|
284
|
+
private get selection();
|
|
285
285
|
private setSelection;
|
|
286
286
|
private triggerChange;
|
|
287
287
|
private selectionBySymbol;
|
|
@@ -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 __());
|
|
@@ -22,6 +24,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
22
24
|
};
|
|
23
25
|
return __assign.apply(this, arguments);
|
|
24
26
|
};
|
|
27
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
28
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
29
|
+
to[j] = from[i];
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
25
32
|
import * as React from 'react';
|
|
26
33
|
import * as PropTypes from 'prop-types';
|
|
27
34
|
import { isEqual, cloneDate } from '@progress/kendo-date-math';
|
|
@@ -238,7 +245,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
238
245
|
this.props._ref.current = this;
|
|
239
246
|
}
|
|
240
247
|
var localizationService = provideLocalizationService(this);
|
|
241
|
-
var props = __assign({}, DateInputWithoutContext.defaultProps, this.props);
|
|
248
|
+
var props = __assign(__assign({}, DateInputWithoutContext.defaultProps), this.props);
|
|
242
249
|
var min = props.min, max = props.max, name = props.name, label = props.label, id = props.id;
|
|
243
250
|
var currentText = this.text;
|
|
244
251
|
var text = currentText === this.props.placeholder ? '' : currentText;
|
|
@@ -253,13 +260,13 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
253
260
|
if (this.value !== null) {
|
|
254
261
|
ariaProps['aria-valuenow'] = this.value.getTime();
|
|
255
262
|
}
|
|
256
|
-
var wrapperClassesInstance = wrapperClasses
|
|
263
|
+
var wrapperClassesInstance = __spreadArray([], wrapperClasses);
|
|
257
264
|
if (this.props.className) {
|
|
258
265
|
wrapperClassesInstance.push(this.props.className);
|
|
259
266
|
}
|
|
260
267
|
var dateinput = (React.createElement(AsyncFocusBlur, { onFocus: this.elementOnFocus, onBlur: this.elementOnBlur }, function (_a) {
|
|
261
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
262
268
|
var _b;
|
|
269
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
263
270
|
return (React.createElement("span", { ref: function (span) { _this._wrapper = span; }, style: !label
|
|
264
271
|
? { width: _this.props.width }
|
|
265
272
|
: undefined, dir: _this.props.dir, className: classNames('k-dateinput', 'k-input', (_b = {},
|
|
@@ -291,7 +298,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
291
298
|
}
|
|
292
299
|
return this.kendoDate && this.kendoDate.getDateObject();
|
|
293
300
|
},
|
|
294
|
-
enumerable:
|
|
301
|
+
enumerable: false,
|
|
295
302
|
configurable: true
|
|
296
303
|
});
|
|
297
304
|
Object.defineProperty(DateInputWithoutContext.prototype, "name", {
|
|
@@ -301,7 +308,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
301
308
|
get: function () {
|
|
302
309
|
return this.props.name;
|
|
303
310
|
},
|
|
304
|
-
enumerable:
|
|
311
|
+
enumerable: false,
|
|
305
312
|
configurable: true
|
|
306
313
|
});
|
|
307
314
|
Object.defineProperty(DateInputWithoutContext.prototype, "min", {
|
|
@@ -310,7 +317,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
310
317
|
? this.props.min
|
|
311
318
|
: DateInputWithoutContext.defaultProps.min;
|
|
312
319
|
},
|
|
313
|
-
enumerable:
|
|
320
|
+
enumerable: false,
|
|
314
321
|
configurable: true
|
|
315
322
|
});
|
|
316
323
|
Object.defineProperty(DateInputWithoutContext.prototype, "max", {
|
|
@@ -319,7 +326,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
319
326
|
? this.props.max
|
|
320
327
|
: DateInputWithoutContext.defaultProps.max;
|
|
321
328
|
},
|
|
322
|
-
enumerable:
|
|
329
|
+
enumerable: false,
|
|
323
330
|
configurable: true
|
|
324
331
|
});
|
|
325
332
|
Object.defineProperty(DateInputWithoutContext.prototype, "text", {
|
|
@@ -327,7 +334,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
327
334
|
* @hidden
|
|
328
335
|
*/
|
|
329
336
|
get: function () {
|
|
330
|
-
var props = __assign({}, DateInput.defaultProps, this.props);
|
|
337
|
+
var props = __assign(__assign({}, DateInput.defaultProps), this.props);
|
|
331
338
|
var _a = props.formatPlaceholder, formatPlaceholder = _a === void 0 ? DateInputWithoutContext.defaultProps.formatPlaceholder : _a, _b = props.format, format = _b === void 0 ? DateInputWithoutContext.defaultProps.format : _b, value = props.value, defaultValue = props.defaultValue;
|
|
332
339
|
if (this.kendoDate === null) {
|
|
333
340
|
this.kendoDate = new KendoDate(this.intl.bind(this), formatPlaceholder, format);
|
|
@@ -348,7 +355,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
348
355
|
? props.placeholder
|
|
349
356
|
: currentText;
|
|
350
357
|
},
|
|
351
|
-
enumerable:
|
|
358
|
+
enumerable: false,
|
|
352
359
|
configurable: true
|
|
353
360
|
});
|
|
354
361
|
Object.defineProperty(DateInputWithoutContext.prototype, "validity", {
|
|
@@ -369,7 +376,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
369
376
|
valueMissing: this.value === null
|
|
370
377
|
};
|
|
371
378
|
},
|
|
372
|
-
enumerable:
|
|
379
|
+
enumerable: false,
|
|
373
380
|
configurable: true
|
|
374
381
|
});
|
|
375
382
|
Object.defineProperty(DateInputWithoutContext.prototype, "element", {
|
|
@@ -407,7 +414,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
407
414
|
get: function () {
|
|
408
415
|
return this._element;
|
|
409
416
|
},
|
|
410
|
-
enumerable:
|
|
417
|
+
enumerable: false,
|
|
411
418
|
configurable: true
|
|
412
419
|
});
|
|
413
420
|
Object.defineProperty(DateInputWithoutContext.prototype, "validityStyles", {
|
|
@@ -419,7 +426,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
419
426
|
? this.props.validityStyles
|
|
420
427
|
: DateInputWithoutContext.defaultProps.validityStyles;
|
|
421
428
|
},
|
|
422
|
-
enumerable:
|
|
429
|
+
enumerable: false,
|
|
423
430
|
configurable: true
|
|
424
431
|
});
|
|
425
432
|
Object.defineProperty(DateInputWithoutContext.prototype, "required", {
|
|
@@ -431,7 +438,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
431
438
|
? this.props.required
|
|
432
439
|
: DateInputWithoutContext.defaultProps.required;
|
|
433
440
|
},
|
|
434
|
-
enumerable:
|
|
441
|
+
enumerable: false,
|
|
435
442
|
configurable: true
|
|
436
443
|
});
|
|
437
444
|
Object.defineProperty(DateInputWithoutContext.prototype, "wrapper", {
|
|
@@ -441,7 +448,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
441
448
|
get: function () {
|
|
442
449
|
return this._wrapper;
|
|
443
450
|
},
|
|
444
|
-
enumerable:
|
|
451
|
+
enumerable: false,
|
|
445
452
|
configurable: true
|
|
446
453
|
});
|
|
447
454
|
/**
|
|
@@ -459,7 +466,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
|
|
|
459
466
|
}
|
|
460
467
|
return returnValue;
|
|
461
468
|
},
|
|
462
|
-
enumerable:
|
|
469
|
+
enumerable: false,
|
|
463
470
|
configurable: true
|
|
464
471
|
});
|
|
465
472
|
DateInputWithoutContext.prototype.setSelection = function (selection) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -25,9 +25,9 @@ export declare class KendoDate {
|
|
|
25
25
|
private knownParts;
|
|
26
26
|
private symbols;
|
|
27
27
|
private intlProvider;
|
|
28
|
-
|
|
28
|
+
get intl(): IntlService;
|
|
29
29
|
private _value;
|
|
30
|
-
|
|
30
|
+
get value(): Date;
|
|
31
31
|
constructor(intlProvider: () => IntlService, formatPlaceholder: DateInputFormatPlaceholder, format: string | DateFormatOptions);
|
|
32
32
|
setValue(value: Date | null): void;
|
|
33
33
|
hasValue(): boolean;
|
|
@@ -37,14 +37,14 @@ var KendoDate = /** @class */ (function () {
|
|
|
37
37
|
get: function () {
|
|
38
38
|
return this.intlProvider();
|
|
39
39
|
},
|
|
40
|
-
enumerable:
|
|
40
|
+
enumerable: false,
|
|
41
41
|
configurable: true
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(KendoDate.prototype, "value", {
|
|
44
44
|
get: function () {
|
|
45
45
|
return this._value;
|
|
46
46
|
},
|
|
47
|
-
enumerable:
|
|
47
|
+
enumerable: false,
|
|
48
48
|
configurable: true
|
|
49
49
|
});
|
|
50
50
|
KendoDate.prototype.setValue = function (value) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -21,7 +21,7 @@ export declare const dateSymbolMap: (map: any, part: any) => Function;
|
|
|
21
21
|
/**
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
|
-
export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
|
|
24
|
+
export declare const isInRange: (candidate: Date | null, min: Date, max: Date) => boolean;
|
|
25
25
|
/**
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
@@ -113,7 +113,7 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
|
|
|
113
113
|
second: PropTypes.Requireable<string>;
|
|
114
114
|
timeZoneName: PropTypes.Requireable<string>;
|
|
115
115
|
}>>;
|
|
116
|
-
formatPlaceholder: PropTypes.Requireable<"
|
|
116
|
+
formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
117
117
|
year: PropTypes.Requireable<string>;
|
|
118
118
|
month: PropTypes.Requireable<string>;
|
|
119
119
|
day: PropTypes.Requireable<string>;
|
|
@@ -144,8 +144,8 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
|
|
|
144
144
|
validate: PropTypes.Requireable<boolean>;
|
|
145
145
|
valid: PropTypes.Requireable<boolean>;
|
|
146
146
|
size: PropTypes.Requireable<"small" | "medium" | "large">;
|
|
147
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "
|
|
148
|
-
fillMode: PropTypes.Requireable<"
|
|
147
|
+
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
|
|
148
|
+
fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
|
|
149
149
|
};
|
|
150
150
|
/**
|
|
151
151
|
* @hidden
|
|
@@ -168,8 +168,8 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
|
|
|
168
168
|
required: boolean;
|
|
169
169
|
validityStyles: boolean;
|
|
170
170
|
size: "small" | "medium" | "large";
|
|
171
|
-
rounded: "small" | "medium" | "
|
|
172
|
-
fillMode: "
|
|
171
|
+
rounded: "small" | "medium" | "full" | "large";
|
|
172
|
+
fillMode: "flat" | "solid" | "outline";
|
|
173
173
|
};
|
|
174
174
|
/**
|
|
175
175
|
* @hidden
|
|
@@ -188,46 +188,46 @@ export declare class DatePickerWithoutContext extends React.Component<DatePicker
|
|
|
188
188
|
/**
|
|
189
189
|
* Gets the wrapping element of the DatePickerWithoutContext.
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
get element(): HTMLSpanElement | null;
|
|
192
192
|
/**
|
|
193
193
|
* Gets the DateInput component inside the DatePicker component.
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
get dateInput(): DateInput | null;
|
|
196
196
|
/**
|
|
197
197
|
* Gets the Calendar component inside the DatePicker component.
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
get calendar(): Calendar | null;
|
|
200
200
|
/**
|
|
201
201
|
* Gets the value of the DatePickerWithoutContext.
|
|
202
202
|
*/
|
|
203
|
-
|
|
203
|
+
get value(): Date | null;
|
|
204
204
|
/**
|
|
205
205
|
* Gets the popup state of the DatePickerWithoutContext.
|
|
206
206
|
*/
|
|
207
|
-
|
|
207
|
+
get show(): boolean;
|
|
208
208
|
/**
|
|
209
209
|
* Gets the `name` property of the DatePickerWithoutContext.
|
|
210
210
|
*/
|
|
211
|
-
|
|
212
|
-
protected
|
|
213
|
-
protected
|
|
214
|
-
protected
|
|
215
|
-
protected
|
|
216
|
-
protected
|
|
217
|
-
protected
|
|
218
|
-
protected
|
|
211
|
+
get name(): string | undefined;
|
|
212
|
+
protected get min(): Date;
|
|
213
|
+
protected get max(): Date;
|
|
214
|
+
protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
|
|
215
|
+
protected get toggleButtonComp(): React.ComponentType<ToggleButtonProps>;
|
|
216
|
+
protected get calendarComp(): React.ComponentType<CalendarProps<any>>;
|
|
217
|
+
protected get popupComp(): React.ComponentType<PopupProps>;
|
|
218
|
+
protected get pickerWrapComp(): React.ComponentType<PickerWrapProps>;
|
|
219
219
|
/**
|
|
220
220
|
* Represents the validity state into which the DatePicker is set.
|
|
221
221
|
*/
|
|
222
|
-
|
|
222
|
+
get validity(): FormComponentValidity;
|
|
223
223
|
/**
|
|
224
224
|
* @hidden
|
|
225
225
|
*/
|
|
226
|
-
protected
|
|
226
|
+
protected get validityStyles(): boolean;
|
|
227
227
|
/**
|
|
228
228
|
* @hidden
|
|
229
229
|
*/
|
|
230
|
-
protected
|
|
230
|
+
protected get required(): boolean;
|
|
231
231
|
/**
|
|
232
232
|
* @hidden
|
|
233
233
|
*/
|