@progress/kendo-react-dateinputs 5.4.0-dev.202205250548 → 5.4.0-dev.202206081230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/PopupSettings.js +1 -0
- package/dist/es/calendar/components/Calendar.d.ts +10 -10
- package/dist/es/calendar/components/Calendar.js +26 -12
- package/dist/es/calendar/components/CalendarCell.js +7 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
- package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
- package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
- package/dist/es/calendar/components/Header.d.ts +5 -4
- package/dist/es/calendar/components/Header.js +8 -6
- package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/es/calendar/components/HorizontalViewList.js +8 -5
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +13 -13
- package/dist/es/calendar/components/MultiViewCalendar.js +24 -15
- package/dist/es/calendar/components/Navigation.d.ts +2 -2
- package/dist/es/calendar/components/Navigation.js +13 -6
- package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/es/calendar/components/TodayCommand.js +10 -6
- package/dist/es/calendar/components/View.d.ts +11 -11
- package/dist/es/calendar/components/View.js +17 -13
- package/dist/es/calendar/components/ViewList.d.ts +9 -9
- package/dist/es/calendar/components/ViewList.js +19 -9
- package/dist/es/calendar/models/ActiveView.js +1 -0
- package/dist/es/calendar/models/CalendarSettings.js +1 -0
- package/dist/es/calendar/models/CellContext.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
- package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
- package/dist/es/calendar/models/ViewService.js +1 -0
- package/dist/es/calendar/services/BusViewService.js +1 -1
- package/dist/es/calendar/services/CenturyViewService.js +2 -2
- package/dist/es/calendar/services/DOMService.js +24 -6
- package/dist/es/calendar/services/DecadeViewService.js +2 -2
- package/dist/es/calendar/services/MonthViewService.js +2 -2
- package/dist/es/calendar/services/NavigationService.js +1 -1
- package/dist/es/calendar/services/ScrollSyncService.js +5 -1
- package/dist/es/calendar/services/YearViewService.js +2 -2
- package/dist/es/calendar/utils/ScrollSync.d.ts +3 -3
- package/dist/es/calendar/utils/ScrollSync.js +2 -0
- package/dist/es/dateinput/DateInput.d.ts +24 -20
- package/dist/es/dateinput/DateInput.js +32 -19
- package/dist/es/dateinput/models/DateInputSettings.js +1 -0
- package/dist/es/dateinput/models/format-placeholder.js +1 -0
- package/dist/es/dateinput/models/incremental-steps.js +1 -0
- package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/es/dateinput/models/kendo-date.js +3 -3
- package/dist/es/dateinput/models/mask.js +1 -0
- package/dist/es/dateinput/models/selection.js +1 -0
- package/dist/es/dateinput/utils.d.ts +2 -2
- package/dist/es/datepicker/DatePicker.d.ts +25 -25
- package/dist/es/datepicker/DatePicker.js +28 -23
- package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
- package/dist/es/datepicker/models/index.js +1 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +16 -14
- package/dist/es/daterangepicker/DateRangePicker.js +16 -14
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
- package/dist/es/daterangepicker/models/index.js +1 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +19 -19
- package/dist/es/datetimepicker/DateTimePicker.js +33 -18
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +7 -7
- package/dist/es/datetimepicker/DateTimeSelector.js +17 -7
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
- package/dist/es/datetimepicker/models/index.js +1 -0
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/es/messages/index.d.ts +21 -21
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +8 -8
- package/dist/es/timepicker/TimeList.js +33 -13
- package/dist/es/timepicker/TimePart.d.ts +11 -11
- package/dist/es/timepicker/TimePart.js +14 -9
- package/dist/es/timepicker/TimePicker.d.ts +23 -23
- package/dist/es/timepicker/TimePicker.js +27 -22
- package/dist/es/timepicker/TimeSelector.d.ts +6 -6
- package/dist/es/timepicker/TimeSelector.js +11 -5
- package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
- package/dist/es/timepicker/models/ListItem.js +1 -0
- package/dist/es/timepicker/models/ListService.js +1 -0
- package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
- package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
- package/dist/es/timepicker/services/DOMService.js +2 -0
- package/dist/es/timepicker/services/DayPeriodService.js +9 -3
- package/dist/es/timepicker/services/HoursService.js +14 -5
- package/dist/es/timepicker/services/MinutesService.js +12 -6
- package/dist/es/timepicker/services/SecondsService.js +12 -6
- package/dist/es/timepicker/utils.d.ts +4 -4
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +10 -1
- package/dist/es/virtualization/Virtualization.d.ts +9 -8
- package/dist/es/virtualization/Virtualization.js +23 -13
- package/dist/es/virtualization/services/RowHeightService.js +10 -1
- package/dist/es/virtualization/services/ScrollerService.js +9 -3
- package/dist/npm/calendar/components/Calendar.d.ts +10 -10
- package/dist/npm/calendar/components/Calendar.js +53 -38
- package/dist/npm/calendar/components/CalendarCell.js +9 -4
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
- package/dist/npm/calendar/components/CalendarNavigationItem.js +9 -4
- package/dist/npm/calendar/components/CalendarWeekCell.js +9 -4
- package/dist/npm/calendar/components/Header.d.ts +5 -4
- package/dist/npm/calendar/components/Header.js +11 -8
- package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/npm/calendar/components/HorizontalViewList.js +11 -7
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +13 -13
- package/dist/npm/calendar/components/MultiViewCalendar.js +62 -52
- package/dist/npm/calendar/components/Navigation.d.ts +2 -2
- package/dist/npm/calendar/components/Navigation.js +18 -10
- package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/npm/calendar/components/TodayCommand.js +16 -11
- package/dist/npm/calendar/components/View.d.ts +11 -11
- package/dist/npm/calendar/components/View.js +27 -22
- package/dist/npm/calendar/components/ViewList.d.ts +9 -9
- package/dist/npm/calendar/components/ViewList.js +29 -18
- package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
- package/dist/npm/calendar/models/NavigationAction.js +1 -0
- package/dist/npm/calendar/models/SelectionRange.js +1 -0
- package/dist/npm/calendar/models/index.js +4 -3
- package/dist/npm/calendar/services/BusViewService.js +3 -2
- package/dist/npm/calendar/services/CenturyViewService.js +40 -39
- package/dist/npm/calendar/services/DOMService.js +34 -15
- package/dist/npm/calendar/services/DecadeViewService.js +34 -33
- package/dist/npm/calendar/services/MonthViewService.js +38 -37
- package/dist/npm/calendar/services/NavigationService.js +2 -1
- package/dist/npm/calendar/services/ScrollSyncService.js +6 -1
- package/dist/npm/calendar/services/WeekNamesService.js +2 -1
- package/dist/npm/calendar/services/YearViewService.js +35 -34
- package/dist/npm/calendar/services/index.js +10 -9
- package/dist/npm/calendar/utils/ScrollSync.d.ts +3 -3
- package/dist/npm/calendar/utils/ScrollSync.js +2 -0
- package/dist/npm/common/PickerWrap.js +2 -1
- package/dist/npm/dateinput/DateInput.d.ts +24 -20
- package/dist/npm/dateinput/DateInput.js +51 -37
- package/dist/npm/dateinput/models/index.js +3 -2
- package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/npm/dateinput/models/kendo-date.js +15 -14
- package/dist/npm/dateinput/models/mask.js +2 -0
- package/dist/npm/dateinput/utils.d.ts +2 -2
- package/dist/npm/dateinput/utils.js +9 -4
- package/dist/npm/datepicker/DatePicker.d.ts +25 -25
- package/dist/npm/datepicker/DatePicker.js +42 -36
- package/dist/npm/datepicker/ToggleButton.js +1 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +16 -14
- package/dist/npm/daterangepicker/DateRangePicker.js +34 -31
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +19 -19
- package/dist/npm/datetimepicker/DateTimePicker.js +46 -30
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +7 -7
- package/dist/npm/datetimepicker/DateTimeSelector.js +26 -15
- package/dist/npm/defaults.js +1 -0
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/npm/hooks/usePickerFloatingLabel.js +6 -3
- package/dist/npm/main.js +22 -21
- package/dist/npm/messages/index.d.ts +21 -21
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/timepicker/TimeList.d.ts +8 -8
- package/dist/npm/timepicker/TimeList.js +39 -18
- package/dist/npm/timepicker/TimePart.d.ts +11 -11
- package/dist/npm/timepicker/TimePart.js +25 -19
- package/dist/npm/timepicker/TimePicker.d.ts +23 -23
- package/dist/npm/timepicker/TimePicker.js +43 -37
- package/dist/npm/timepicker/TimeSelector.d.ts +6 -6
- package/dist/npm/timepicker/TimeSelector.js +22 -15
- package/dist/npm/timepicker/models/TimePart.js +1 -0
- package/dist/npm/timepicker/models/index.js +2 -1
- package/dist/npm/timepicker/services/DOMService.js +7 -4
- package/dist/npm/timepicker/services/DayPeriodService.js +11 -4
- package/dist/npm/timepicker/services/HoursService.js +21 -11
- package/dist/npm/timepicker/services/MinutesService.js +17 -10
- package/dist/npm/timepicker/services/SecondsService.js +17 -10
- package/dist/npm/timepicker/services/index.js +6 -5
- package/dist/npm/timepicker/utils.d.ts +4 -4
- package/dist/npm/timepicker/utils.js +30 -20
- package/dist/npm/utils.d.ts +1 -1
- package/dist/npm/utils.js +43 -20
- package/dist/npm/virtualization/Virtualization.d.ts +9 -8
- package/dist/npm/virtualization/Virtualization.js +27 -16
- package/dist/npm/virtualization/services/RowHeightService.js +11 -1
- package/dist/npm/virtualization/services/ScrollerService.js +10 -3
- package/dist/npm/virtualization/services/index.js +5 -4
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +13 -13
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -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.TimePart = exports.Direction = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
@@ -35,7 +38,7 @@ var utils_1 = require("../utils");
|
|
|
35
38
|
var TimePart_1 = require("./models/TimePart");
|
|
36
39
|
var utils_2 = require("./utils");
|
|
37
40
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
38
|
-
var formatRegExp = new RegExp(TimePart_1.TIME_PART.hour
|
|
41
|
+
var formatRegExp = new RegExp("".concat(TimePart_1.TIME_PART.hour, "|").concat(TimePart_1.TIME_PART.minute, "|").concat(TimePart_1.TIME_PART.second, "|").concat(TimePart_1.TIME_PART.dayperiod, "|literal"));
|
|
39
42
|
/**
|
|
40
43
|
* @hidden
|
|
41
44
|
*/
|
|
@@ -51,6 +54,9 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
51
54
|
__extends(TimePart, _super);
|
|
52
55
|
function TimePart(props) {
|
|
53
56
|
var _this = _super.call(this, props) || this;
|
|
57
|
+
_this._element = null;
|
|
58
|
+
_this._nowButton = null;
|
|
59
|
+
_this.dateFormatParts = [];
|
|
54
60
|
_this.timeLists = [];
|
|
55
61
|
_this.focus = function (args) {
|
|
56
62
|
Promise.resolve().then(function () {
|
|
@@ -92,7 +98,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
92
98
|
}];
|
|
93
99
|
};
|
|
94
100
|
_this.showNowButton = function () {
|
|
95
|
-
return !_this.hasSteps() && _this.props.nowButton && utils_2.isInTimeRange(utils_2.getNow(), _this.min, _this.max);
|
|
101
|
+
return !_this.hasSteps() && _this.props.nowButton && (0, utils_2.isInTimeRange)((0, utils_2.getNow)(), _this.min, _this.max);
|
|
96
102
|
};
|
|
97
103
|
_this.handleKeyDown = function (event) {
|
|
98
104
|
var keyCode = event.keyCode;
|
|
@@ -126,7 +132,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
126
132
|
onChange.call(undefined, candidate);
|
|
127
133
|
}
|
|
128
134
|
};
|
|
129
|
-
_this.snapTime = utils_2.snapTime(utils_2.generateSnappers(_this.props.steps, _this.props.min || TimePart.defaultProps.min));
|
|
135
|
+
_this.snapTime = (0, utils_2.snapTime)((0, utils_2.generateSnappers)(_this.props.steps, _this.props.min || TimePart.defaultProps.min));
|
|
130
136
|
_this.state = {
|
|
131
137
|
activeListIndex: -1
|
|
132
138
|
};
|
|
@@ -140,42 +146,42 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
140
146
|
get: function () {
|
|
141
147
|
return this._element;
|
|
142
148
|
},
|
|
143
|
-
enumerable:
|
|
149
|
+
enumerable: false,
|
|
144
150
|
configurable: true
|
|
145
151
|
});
|
|
146
152
|
Object.defineProperty(TimePart.prototype, "value", {
|
|
147
153
|
get: function () {
|
|
148
|
-
return utils_2.timeInRange(this.snapTime(kendo_date_math_1.cloneDate(this.props.value || utils_1.MIDNIGHT_DATE)), this.min, this.max);
|
|
154
|
+
return (0, utils_2.timeInRange)(this.snapTime((0, kendo_date_math_1.cloneDate)(this.props.value || utils_1.MIDNIGHT_DATE)), this.min, this.max);
|
|
149
155
|
},
|
|
150
|
-
enumerable:
|
|
156
|
+
enumerable: false,
|
|
151
157
|
configurable: true
|
|
152
158
|
});
|
|
153
159
|
Object.defineProperty(TimePart.prototype, "intl", {
|
|
154
160
|
get: function () {
|
|
155
|
-
return kendo_react_intl_1.provideIntlService(this);
|
|
161
|
+
return (0, kendo_react_intl_1.provideIntlService)(this);
|
|
156
162
|
},
|
|
157
|
-
enumerable:
|
|
163
|
+
enumerable: false,
|
|
158
164
|
configurable: true
|
|
159
165
|
});
|
|
160
166
|
Object.defineProperty(TimePart.prototype, "min", {
|
|
161
167
|
get: function () {
|
|
162
168
|
return this.snapTime(this.props.min || TimePart.defaultProps.min);
|
|
163
169
|
},
|
|
164
|
-
enumerable:
|
|
170
|
+
enumerable: false,
|
|
165
171
|
configurable: true
|
|
166
172
|
});
|
|
167
173
|
Object.defineProperty(TimePart.prototype, "max", {
|
|
168
174
|
get: function () {
|
|
169
175
|
return this.snapTime(this.props.max || TimePart.defaultProps.max);
|
|
170
176
|
},
|
|
171
|
-
enumerable:
|
|
177
|
+
enumerable: false,
|
|
172
178
|
configurable: true
|
|
173
179
|
});
|
|
174
180
|
Object.defineProperty(TimePart.prototype, "steps", {
|
|
175
181
|
get: function () {
|
|
176
182
|
return this.props.steps || TimePart.defaultProps.steps;
|
|
177
183
|
},
|
|
178
|
-
enumerable:
|
|
184
|
+
enumerable: false,
|
|
179
185
|
configurable: true
|
|
180
186
|
});
|
|
181
187
|
Object.defineProperty(TimePart.prototype, "boundRange", {
|
|
@@ -184,7 +190,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
184
190
|
? this.props.boundRange
|
|
185
191
|
: TimePart.defaultProps.boundRange;
|
|
186
192
|
},
|
|
187
|
-
enumerable:
|
|
193
|
+
enumerable: false,
|
|
188
194
|
configurable: true
|
|
189
195
|
});
|
|
190
196
|
/**
|
|
@@ -205,15 +211,15 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
205
211
|
TimePart.prototype.render = function () {
|
|
206
212
|
var _this = this;
|
|
207
213
|
var _a = this.props, format = _a.format, smoothScroll = _a.smoothScroll, onNowClick = _a.onNowClick, className = _a.className, disabled = _a.disabled;
|
|
208
|
-
this.snapTime = utils_2.snapTime(utils_2.generateSnappers(this.steps, this.min));
|
|
214
|
+
this.snapTime = (0, utils_2.snapTime)((0, utils_2.generateSnappers)(this.steps, this.min));
|
|
209
215
|
this.dateFormatParts = this.intl
|
|
210
216
|
.splitDateFormat(format || TimePart.defaultProps.format)
|
|
211
217
|
.filter(this.timeFormatFilter);
|
|
212
|
-
var rootClassName = kendo_react_common_1.classNames({
|
|
218
|
+
var rootClassName = (0, kendo_react_common_1.classNames)({
|
|
213
219
|
'k-disabled': disabled
|
|
214
220
|
}, className, 'k-time-part');
|
|
215
221
|
this.timeLists = [];
|
|
216
|
-
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
222
|
+
var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
217
223
|
var selectNowMessage = localizationService.toLanguageString(messages_1.selectNow, messages_1.messages[messages_1.selectNow]);
|
|
218
224
|
return (React.createElement("div", { className: rootClassName },
|
|
219
225
|
React.createElement("div", { className: "k-time-header" },
|
|
@@ -224,7 +230,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
224
230
|
React.createElement("span", { className: "k-time-highlight" }),
|
|
225
231
|
this.dateFormatParts.map(function (part, idx) {
|
|
226
232
|
return (part.type !== 'literal'
|
|
227
|
-
? React.createElement("div", { key: idx, className: kendo_react_common_1.classNames('k-time-list-wrapper', {
|
|
233
|
+
? React.createElement("div", { key: idx, className: (0, kendo_react_common_1.classNames)('k-time-list-wrapper', {
|
|
228
234
|
'k-focus': idx === _this.state.activeListIndex
|
|
229
235
|
}), role: "presentation", tabIndex: -1 },
|
|
230
236
|
React.createElement("span", { className: "k-title", onMouseDown: function (e) { e.preventDefault(); } }, _this.intl.dateFieldName(part)),
|
|
@@ -298,5 +304,5 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
298
304
|
return TimePart;
|
|
299
305
|
}(React.Component));
|
|
300
306
|
exports.TimePart = TimePart;
|
|
301
|
-
kendo_react_intl_1.registerForIntl(TimePart);
|
|
302
|
-
kendo_react_intl_1.registerForLocalization(TimePart);
|
|
307
|
+
(0, kendo_react_intl_1.registerForIntl)(TimePart);
|
|
308
|
+
(0, kendo_react_intl_1.registerForLocalization)(TimePart);
|
|
@@ -111,7 +111,7 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
111
111
|
second: PropTypes.Requireable<string>;
|
|
112
112
|
timeZoneName: PropTypes.Requireable<string>;
|
|
113
113
|
}>>;
|
|
114
|
-
formatPlaceholder: PropTypes.Requireable<"
|
|
114
|
+
formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
115
115
|
year: PropTypes.Requireable<string>;
|
|
116
116
|
month: PropTypes.Requireable<string>;
|
|
117
117
|
day: PropTypes.Requireable<string>;
|
|
@@ -145,16 +145,16 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
145
145
|
required: PropTypes.Requireable<boolean>;
|
|
146
146
|
validate: PropTypes.Requireable<boolean>;
|
|
147
147
|
valid: PropTypes.Requireable<boolean>;
|
|
148
|
-
size: PropTypes.Requireable<"small" | "medium" | "large">;
|
|
149
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "
|
|
150
|
-
fillMode: PropTypes.Requireable<"
|
|
148
|
+
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
149
|
+
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
|
|
150
|
+
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
153
|
* @hidden
|
|
154
154
|
*/
|
|
155
155
|
static defaultProps: {
|
|
156
156
|
defaultShow: boolean;
|
|
157
|
-
defaultValue:
|
|
157
|
+
defaultValue: null;
|
|
158
158
|
disabled: boolean;
|
|
159
159
|
format: string;
|
|
160
160
|
max: Date;
|
|
@@ -165,9 +165,9 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
165
165
|
required: boolean;
|
|
166
166
|
validityStyles: boolean;
|
|
167
167
|
dateInput: React.ComponentType<DateInputProps<any>>;
|
|
168
|
-
size: "small" | "medium" | "large";
|
|
169
|
-
rounded: "small" | "medium" | "
|
|
170
|
-
fillMode: "
|
|
168
|
+
size: "small" | "medium" | "large" | null | undefined;
|
|
169
|
+
rounded: "small" | "medium" | "full" | "large" | null | undefined;
|
|
170
|
+
fillMode: "flat" | "outline" | "solid" | null | undefined;
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
173
173
|
* @hidden
|
|
@@ -185,43 +185,43 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
185
185
|
/**
|
|
186
186
|
* Gets the wrapping element of the TimePicker.
|
|
187
187
|
*/
|
|
188
|
-
|
|
188
|
+
get element(): HTMLSpanElement | null;
|
|
189
189
|
/**
|
|
190
190
|
* Gets the DateInput component inside the TimePicker component.
|
|
191
191
|
*/
|
|
192
|
-
|
|
192
|
+
get dateInput(): DateInput | null;
|
|
193
193
|
/**
|
|
194
194
|
* Gets the TimeSelector component inside the TimePicker component.
|
|
195
195
|
*/
|
|
196
|
-
|
|
196
|
+
get timeSelector(): TimeSelector | null;
|
|
197
197
|
/**
|
|
198
198
|
* Gets the value of the TimePicker.
|
|
199
199
|
*/
|
|
200
|
-
|
|
200
|
+
get value(): Date | null;
|
|
201
201
|
/**
|
|
202
202
|
* Gets the popup state of the TimeSelector.
|
|
203
203
|
*/
|
|
204
|
-
|
|
204
|
+
get show(): boolean;
|
|
205
205
|
/**
|
|
206
206
|
* Gets the `name` property of the TimePicker.
|
|
207
207
|
*/
|
|
208
|
-
|
|
208
|
+
get name(): string | undefined;
|
|
209
209
|
/**
|
|
210
210
|
* Represents the validity state into which the TimePicker is set.
|
|
211
211
|
*/
|
|
212
|
-
|
|
212
|
+
get validity(): FormComponentValidity;
|
|
213
213
|
/**
|
|
214
214
|
* @hidden
|
|
215
215
|
*/
|
|
216
|
-
protected
|
|
216
|
+
protected get validityStyles(): boolean;
|
|
217
217
|
/**
|
|
218
218
|
* @hidden
|
|
219
219
|
*/
|
|
220
|
-
protected
|
|
221
|
-
private
|
|
222
|
-
private
|
|
223
|
-
private
|
|
224
|
-
protected
|
|
220
|
+
protected get required(): boolean;
|
|
221
|
+
private get popupSettings();
|
|
222
|
+
private get min();
|
|
223
|
+
private get max();
|
|
224
|
+
protected get dateInputComp(): React.ComponentType<DateInputProps<any>>;
|
|
225
225
|
/**
|
|
226
226
|
* @hidden
|
|
227
227
|
*/
|
|
@@ -238,8 +238,8 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
238
238
|
* @hidden
|
|
239
239
|
*/
|
|
240
240
|
render(): JSX.Element;
|
|
241
|
-
protected setTimeSelectorRef: (timeSelector:
|
|
242
|
-
protected nextValue: (nextProps: TimePickerProps, nextState: TimePickerState) => Date;
|
|
241
|
+
protected setTimeSelectorRef: (timeSelector: TimeSelector | null) => void;
|
|
242
|
+
protected nextValue: (nextProps: TimePickerProps, nextState: TimePickerState) => Date | null;
|
|
243
243
|
protected nextShow: (nextProps: TimePickerProps, nextState: TimePickerState) => boolean;
|
|
244
244
|
protected normalizeTime(date: Date): Date;
|
|
245
245
|
protected setShow(show: boolean): void;
|
|
@@ -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.TimePicker = exports.TimePickerPropsContext = exports.TimePickerWithoutContext = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var PropTypes = require("prop-types");
|
|
38
43
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
@@ -53,11 +58,12 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
53
58
|
__extends(TimePickerWithoutContext, _super);
|
|
54
59
|
function TimePickerWithoutContext(props) {
|
|
55
60
|
var _this = _super.call(this, props) || this;
|
|
56
|
-
_this._popupId = kendo_react_common_1.guid();
|
|
61
|
+
_this._popupId = (0, kendo_react_common_1.guid)();
|
|
57
62
|
_this._element = null;
|
|
58
63
|
_this._dateInput = React.createRef();
|
|
59
64
|
_this._timeSelector = null;
|
|
60
65
|
_this.shouldFocusDateInput = false;
|
|
66
|
+
_this.prevShow = false;
|
|
61
67
|
/**
|
|
62
68
|
* @hidden
|
|
63
69
|
*/
|
|
@@ -81,11 +87,11 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
81
87
|
};
|
|
82
88
|
_this.handleInputValueChange = function (event) {
|
|
83
89
|
var value = _this.mergeTime(event.value);
|
|
84
|
-
_this.handleValueChange(__assign({}, event, { value: value }));
|
|
90
|
+
_this.handleValueChange(__assign(__assign({}, event), { value: value }));
|
|
85
91
|
};
|
|
86
92
|
_this.handleValueChange = function (event) {
|
|
87
93
|
_this.setState({
|
|
88
|
-
value: kendo_date_math_1.cloneDate(event.value),
|
|
94
|
+
value: (0, kendo_date_math_1.cloneDate)(event.value),
|
|
89
95
|
show: false
|
|
90
96
|
});
|
|
91
97
|
_this.valueDuringOnChange = event.value;
|
|
@@ -138,7 +144,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
138
144
|
_this.setShow(keyCode === kendo_react_common_1.Keys.down);
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
147
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
142
148
|
_this.state = {
|
|
143
149
|
value: _this.props.defaultValue || TimePickerWithoutContext.defaultProps.defaultValue,
|
|
144
150
|
show: _this.props.defaultShow || TimePickerWithoutContext.defaultProps.defaultShow,
|
|
@@ -156,7 +162,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
156
162
|
get: function () {
|
|
157
163
|
return this._element;
|
|
158
164
|
},
|
|
159
|
-
enumerable:
|
|
165
|
+
enumerable: false,
|
|
160
166
|
configurable: true
|
|
161
167
|
});
|
|
162
168
|
Object.defineProperty(TimePickerWithoutContext.prototype, "dateInput", {
|
|
@@ -166,7 +172,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
166
172
|
get: function () {
|
|
167
173
|
return this._dateInput.current;
|
|
168
174
|
},
|
|
169
|
-
enumerable:
|
|
175
|
+
enumerable: false,
|
|
170
176
|
configurable: true
|
|
171
177
|
});
|
|
172
178
|
Object.defineProperty(TimePickerWithoutContext.prototype, "timeSelector", {
|
|
@@ -176,7 +182,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
176
182
|
get: function () {
|
|
177
183
|
return this._timeSelector;
|
|
178
184
|
},
|
|
179
|
-
enumerable:
|
|
185
|
+
enumerable: false,
|
|
180
186
|
configurable: true
|
|
181
187
|
});
|
|
182
188
|
Object.defineProperty(TimePickerWithoutContext.prototype, "value", {
|
|
@@ -189,9 +195,9 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
189
195
|
: this.props.value !== undefined
|
|
190
196
|
? this.props.value
|
|
191
197
|
: this.state.value;
|
|
192
|
-
return (value !== null) ? kendo_date_math_1.cloneDate(value) : null;
|
|
198
|
+
return (value !== null) ? (0, kendo_date_math_1.cloneDate)(value) : null;
|
|
193
199
|
},
|
|
194
|
-
enumerable:
|
|
200
|
+
enumerable: false,
|
|
195
201
|
configurable: true
|
|
196
202
|
});
|
|
197
203
|
Object.defineProperty(TimePickerWithoutContext.prototype, "show", {
|
|
@@ -205,7 +211,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
205
211
|
? this.props.show
|
|
206
212
|
: this.state.show;
|
|
207
213
|
},
|
|
208
|
-
enumerable:
|
|
214
|
+
enumerable: false,
|
|
209
215
|
configurable: true
|
|
210
216
|
});
|
|
211
217
|
Object.defineProperty(TimePickerWithoutContext.prototype, "name", {
|
|
@@ -215,7 +221,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
215
221
|
get: function () {
|
|
216
222
|
return this.props.name;
|
|
217
223
|
},
|
|
218
|
-
enumerable:
|
|
224
|
+
enumerable: false,
|
|
219
225
|
configurable: true
|
|
220
226
|
});
|
|
221
227
|
Object.defineProperty(TimePickerWithoutContext.prototype, "validity", {
|
|
@@ -226,19 +232,19 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
226
232
|
var value = this.value && this.normalizeTime(this.value);
|
|
227
233
|
var min = this.normalizeTime(this.min);
|
|
228
234
|
var max = this.normalizeTime(this.max);
|
|
229
|
-
var inRange = utils_2.isInRange(value, min, max);
|
|
235
|
+
var inRange = (0, utils_2.isInRange)(value, min, max);
|
|
230
236
|
var customError = this.props.validationMessage !== undefined;
|
|
231
237
|
var isValid = (!this.required || this.value !== null) && inRange;
|
|
232
238
|
var valid = this.props.valid !== undefined ? this.props.valid : isValid;
|
|
233
239
|
return {
|
|
234
240
|
customError: customError,
|
|
235
|
-
rangeOverflow: utils_2.isBiggerThanMax(value, max),
|
|
236
|
-
rangeUnderflow: utils_2.isSmallerThanMin(value, min),
|
|
241
|
+
rangeOverflow: (0, utils_2.isBiggerThanMax)(value, max),
|
|
242
|
+
rangeUnderflow: (0, utils_2.isSmallerThanMin)(value, min),
|
|
237
243
|
valid: valid,
|
|
238
244
|
valueMissing: this.value === null
|
|
239
245
|
};
|
|
240
246
|
},
|
|
241
|
-
enumerable:
|
|
247
|
+
enumerable: false,
|
|
242
248
|
configurable: true
|
|
243
249
|
});
|
|
244
250
|
Object.defineProperty(TimePickerWithoutContext.prototype, "validityStyles", {
|
|
@@ -250,7 +256,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
250
256
|
? this.props.validityStyles
|
|
251
257
|
: TimePickerWithoutContext.defaultProps.validityStyles;
|
|
252
258
|
},
|
|
253
|
-
enumerable:
|
|
259
|
+
enumerable: false,
|
|
254
260
|
configurable: true
|
|
255
261
|
});
|
|
256
262
|
Object.defineProperty(TimePickerWithoutContext.prototype, "required", {
|
|
@@ -262,35 +268,35 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
262
268
|
? this.props.required
|
|
263
269
|
: TimePickerWithoutContext.defaultProps.required;
|
|
264
270
|
},
|
|
265
|
-
enumerable:
|
|
271
|
+
enumerable: false,
|
|
266
272
|
configurable: true
|
|
267
273
|
});
|
|
268
274
|
Object.defineProperty(TimePickerWithoutContext.prototype, "popupSettings", {
|
|
269
275
|
get: function () {
|
|
270
276
|
return this.props.popupSettings || TimePickerWithoutContext.defaultProps.popupSettings;
|
|
271
277
|
},
|
|
272
|
-
enumerable:
|
|
278
|
+
enumerable: false,
|
|
273
279
|
configurable: true
|
|
274
280
|
});
|
|
275
281
|
Object.defineProperty(TimePickerWithoutContext.prototype, "min", {
|
|
276
282
|
get: function () {
|
|
277
283
|
return this.props.min !== undefined ? this.props.min : TimePickerWithoutContext.defaultProps.min;
|
|
278
284
|
},
|
|
279
|
-
enumerable:
|
|
285
|
+
enumerable: false,
|
|
280
286
|
configurable: true
|
|
281
287
|
});
|
|
282
288
|
Object.defineProperty(TimePickerWithoutContext.prototype, "max", {
|
|
283
289
|
get: function () {
|
|
284
290
|
return this.props.max !== undefined ? this.props.max : TimePickerWithoutContext.defaultProps.max;
|
|
285
291
|
},
|
|
286
|
-
enumerable:
|
|
292
|
+
enumerable: false,
|
|
287
293
|
configurable: true
|
|
288
294
|
});
|
|
289
295
|
Object.defineProperty(TimePickerWithoutContext.prototype, "dateInputComp", {
|
|
290
296
|
get: function () {
|
|
291
297
|
return this.props.dateInput || TimePickerWithoutContext.defaultProps.dateInput;
|
|
292
298
|
},
|
|
293
|
-
enumerable:
|
|
299
|
+
enumerable: false,
|
|
294
300
|
configurable: true
|
|
295
301
|
});
|
|
296
302
|
/**
|
|
@@ -326,7 +332,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
326
332
|
var _a = this.props, _b = _a.size, size = _b === void 0 ? TimePickerWithoutContext.defaultProps.size : _b, _c = _a.rounded, rounded = _c === void 0 ? TimePickerWithoutContext.defaultProps.rounded : _c, _d = _a.fillMode, fillMode = _d === void 0 ? TimePickerWithoutContext.defaultProps.fillMode : _d, disabled = _a.disabled, tabIndex = _a.tabIndex, title = _a.title, id = _a.id, className = _a.className, format = _a.format, formatPlaceholder = _a.formatPlaceholder, smoothScroll = _a.smoothScroll, width = _a.width, name = _a.name, steps = _a.steps, cancelButton = _a.cancelButton, nowButton = _a.nowButton, validationMessage = _a.validationMessage, required = _a.required, validityStyles = _a.validityStyles, ariaLabelledBy = _a.ariaLabelledBy, ariaDescribedBy = _a.ariaDescribedBy;
|
|
327
333
|
var _e = this.popupSettings, popupClass = _e.popupClass, otherPopupSettings = __rest(_e, ["popupClass"]);
|
|
328
334
|
var isValid = !this.validityStyles || this.validity.valid;
|
|
329
|
-
var popupClassNames = kendo_react_common_1.classNames('k-group k-reset', popupClass);
|
|
335
|
+
var popupClassNames = (0, kendo_react_common_1.classNames)('k-group k-reset', popupClass);
|
|
330
336
|
var dateInputProps = {
|
|
331
337
|
disabled: disabled,
|
|
332
338
|
format: format,
|
|
@@ -362,23 +368,23 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
362
368
|
vertical: 'top'
|
|
363
369
|
} }, otherPopupSettings);
|
|
364
370
|
var timeSelector = (React.createElement(TimeSelector_1.TimeSelector, { ref: this.setTimeSelectorRef, show: this.show, cancelButton: cancelButton, disabled: disabled, nowButton: nowButton, format: format, min: this.min, max: this.max, steps: steps, smoothScroll: smoothScroll, value: this.value, onChange: this.handleValueChange, onReject: this.handleValueReject }));
|
|
365
|
-
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
371
|
+
var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
366
372
|
var toggleClockMessage = localizationService.toLanguageString(messages_1.toggleClock, messages_1.messages[messages_1.toggleClock]);
|
|
367
373
|
var toggleTimeMessage = localizationService
|
|
368
374
|
.toLanguageString(messages_1.toggleTimeSelector, messages_1.messages[messages_1.toggleTimeSelector]);
|
|
369
375
|
var timepicker = (React.createElement(kendo_react_common_1.AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
|
|
370
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
371
376
|
var _b;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
_b["k-
|
|
375
|
-
_b["k-
|
|
377
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
378
|
+
return (React.createElement("div", { ref: function (span) { _this._element = span; }, className: (0, kendo_react_common_1.classNames)('k-input', 'k-timepicker', (_b = {},
|
|
379
|
+
_b["k-input-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
380
|
+
_b["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
381
|
+
_b["k-input-".concat(fillMode)] = fillMode,
|
|
376
382
|
_b['k-invalid'] = !isValid,
|
|
377
383
|
_b['k-required'] = _this.required,
|
|
378
384
|
_b['k-disabled'] = _this.props.disabled,
|
|
379
385
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
380
386
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dateInputProps)),
|
|
381
|
-
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage,
|
|
387
|
+
React.createElement(kendo_react_buttons_1.Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
382
388
|
'aria-controls': _this._popupId,
|
|
383
389
|
'aria-label': toggleClockMessage
|
|
384
390
|
})),
|
|
@@ -391,7 +397,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
391
397
|
: timepicker;
|
|
392
398
|
};
|
|
393
399
|
TimePickerWithoutContext.prototype.normalizeTime = function (date) {
|
|
394
|
-
return utils_1.setTime(utils_1.MIDNIGHT_DATE, date);
|
|
400
|
+
return (0, utils_1.setTime)(utils_1.MIDNIGHT_DATE, date);
|
|
395
401
|
};
|
|
396
402
|
TimePickerWithoutContext.prototype.setShow = function (show) {
|
|
397
403
|
if (this.show === show) {
|
|
@@ -400,7 +406,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
400
406
|
this.setState({ show: show });
|
|
401
407
|
};
|
|
402
408
|
TimePickerWithoutContext.prototype.mergeTime = function (value) {
|
|
403
|
-
return this.value && value ? utils_1.setTime(this.value, value) : value;
|
|
409
|
+
return this.value && value ? (0, utils_1.setTime)(this.value, value) : value;
|
|
404
410
|
};
|
|
405
411
|
/**
|
|
406
412
|
* @hidden
|
|
@@ -506,7 +512,7 @@ exports.TimePickerWithoutContext = TimePickerWithoutContext;
|
|
|
506
512
|
*
|
|
507
513
|
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
508
514
|
*/
|
|
509
|
-
exports.TimePickerPropsContext = kendo_react_common_1.createPropsContext();
|
|
515
|
+
exports.TimePickerPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
510
516
|
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
511
517
|
/**
|
|
512
518
|
* Represents the KendoReact TimePicker Component.
|
|
@@ -514,6 +520,6 @@ exports.TimePickerPropsContext = kendo_react_common_1.createPropsContext();
|
|
|
514
520
|
* Accepts properties of type [TimePicker]({% slug api_dateinputs_timepickerprops %}).
|
|
515
521
|
* Obtaining the `ref` returns an object of type [TimePickerHandle]({% slug api_dateinputs_timepickerhandle %}).
|
|
516
522
|
*/
|
|
517
|
-
exports.TimePicker = kendo_react_common_1.withPropsContext(exports.TimePickerPropsContext, TimePickerWithoutContext);
|
|
523
|
+
exports.TimePicker = (0, kendo_react_common_1.withPropsContext)(exports.TimePickerPropsContext, TimePickerWithoutContext);
|
|
518
524
|
exports.TimePicker.displayName = 'KendoReactTimePicker';
|
|
519
|
-
kendo_react_intl_1.registerForLocalization(TimePickerWithoutContext);
|
|
525
|
+
(0, kendo_react_intl_1.registerForLocalization)(TimePickerWithoutContext);
|
|
@@ -84,7 +84,7 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
84
84
|
show: PropTypes.Requireable<boolean>;
|
|
85
85
|
};
|
|
86
86
|
static defaultProps: {
|
|
87
|
-
value:
|
|
87
|
+
value: null;
|
|
88
88
|
disabled: boolean;
|
|
89
89
|
cancelButton: boolean;
|
|
90
90
|
format: string;
|
|
@@ -105,10 +105,10 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
105
105
|
/**
|
|
106
106
|
* @hidden
|
|
107
107
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
protected
|
|
111
|
-
private
|
|
108
|
+
get element(): HTMLSpanElement | null;
|
|
109
|
+
get value(): Date | null;
|
|
110
|
+
protected get intl(): IntlService;
|
|
111
|
+
private get current();
|
|
112
112
|
/**
|
|
113
113
|
* @hidden
|
|
114
114
|
*/
|
|
@@ -119,7 +119,7 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
119
119
|
render(): JSX.Element;
|
|
120
120
|
focusActiveList: () => void;
|
|
121
121
|
protected nextTick(f: () => any): void;
|
|
122
|
-
protected hasActiveButton(): boolean;
|
|
122
|
+
protected hasActiveButton(): boolean | null;
|
|
123
123
|
private handleKeyDown;
|
|
124
124
|
private handleAccept;
|
|
125
125
|
private handleReject;
|