@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 __());
|
|
@@ -151,21 +153,21 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
151
153
|
get: function () {
|
|
152
154
|
return this._calendar;
|
|
153
155
|
},
|
|
154
|
-
enumerable:
|
|
156
|
+
enumerable: false,
|
|
155
157
|
configurable: true
|
|
156
158
|
});
|
|
157
159
|
Object.defineProperty(DateTimeSelector.prototype, "timePart", {
|
|
158
160
|
get: function () {
|
|
159
161
|
return this._timePart;
|
|
160
162
|
},
|
|
161
|
-
enumerable:
|
|
163
|
+
enumerable: false,
|
|
162
164
|
configurable: true
|
|
163
165
|
});
|
|
164
166
|
Object.defineProperty(DateTimeSelector.prototype, "hasDateValue", {
|
|
165
167
|
get: function () {
|
|
166
168
|
return this.state.dateValue !== null;
|
|
167
169
|
},
|
|
168
|
-
enumerable:
|
|
170
|
+
enumerable: false,
|
|
169
171
|
configurable: true
|
|
170
172
|
});
|
|
171
173
|
DateTimeSelector.prototype.componentDidUpdate = function () {
|
|
@@ -188,7 +190,10 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
188
190
|
var cancelMessage = localizationService.toLanguageString(cancel, messages[cancel]);
|
|
189
191
|
var setMessage = localizationService.toLanguageString(set, messages[set]);
|
|
190
192
|
var calendarProps = {
|
|
191
|
-
min: min,
|
|
193
|
+
min: min,
|
|
194
|
+
max: max,
|
|
195
|
+
weekNumber: weekNumber,
|
|
196
|
+
focusedDate: focusedDate,
|
|
192
197
|
disabled: disabled || this.state.tab !== 'date',
|
|
193
198
|
value: this.state.dateValue,
|
|
194
199
|
onChange: this.handleCalendarValueChange,
|
|
@@ -214,7 +219,7 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
214
219
|
? this.props.minTime
|
|
215
220
|
: this.normalizeRange(this.props.min, this.state.dateValue);
|
|
216
221
|
},
|
|
217
|
-
enumerable:
|
|
222
|
+
enumerable: false,
|
|
218
223
|
configurable: true
|
|
219
224
|
});
|
|
220
225
|
Object.defineProperty(DateTimeSelector.prototype, "maxTime", {
|
|
@@ -223,7 +228,7 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
223
228
|
? this.props.maxTime
|
|
224
229
|
: this.normalizeRange(this.props.max, this.state.dateValue);
|
|
225
230
|
},
|
|
226
|
-
enumerable:
|
|
231
|
+
enumerable: false,
|
|
227
232
|
configurable: true
|
|
228
233
|
});
|
|
229
234
|
DateTimeSelector.prototype.normalizeRange = function (candidate, value) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,7 +11,7 @@ export declare type PickerFloatingLabelProps = FloatingLabelProps & {
|
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
|
-
export declare const usePickerFloatingLabel: (dateInput: React.RefObject<
|
|
14
|
+
export declare const usePickerFloatingLabel: (dateInput: React.RefObject<DateInput>) => {
|
|
15
15
|
editorValue: boolean;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
@@ -86,25 +86,25 @@ export declare const dateTimePickerSet = "datetimepicker.set";
|
|
|
86
86
|
* @hidden
|
|
87
87
|
*/
|
|
88
88
|
export declare const messages: {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
89
|
+
"calendar.today": string;
|
|
90
|
+
"timepicker.now": string;
|
|
91
|
+
"timepicker.set": string;
|
|
92
|
+
"timepicker.cancel": string;
|
|
93
|
+
"datetimepicker.date": string;
|
|
94
|
+
"datetimepicker.time": string;
|
|
95
|
+
"datetimepicker.cancel": string;
|
|
96
|
+
"datetimepicker.set": string;
|
|
97
|
+
"daterangepicker.start": string;
|
|
98
|
+
"daterangepicker.end": string;
|
|
99
|
+
"daterangepicker.separator": string;
|
|
100
|
+
"timepicker.selectNow": string;
|
|
101
|
+
"timepicker.toggleTimeSelector": string;
|
|
102
|
+
"timepicker.toggleClock": string;
|
|
103
|
+
"dateinput.increment": string;
|
|
104
|
+
"dateinput.decrement": string;
|
|
105
|
+
"datepicker.toggleCalendar": string;
|
|
106
|
+
"multiviewcalendar.prevView": string;
|
|
107
|
+
"multiviewcalendar.nextView": string;
|
|
108
|
+
"daterangepicker.swapStartEnd": string;
|
|
109
|
+
"datetimepicker.toggleDateTimeSelector": string;
|
|
110
110
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-dateinputs',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1653648109,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -55,11 +55,11 @@ export declare class TimeList extends React.Component<TimeListProps, {}> {
|
|
|
55
55
|
private bottomThreshold;
|
|
56
56
|
private animateToIndex;
|
|
57
57
|
constructor(props: TimeListProps);
|
|
58
|
-
|
|
59
|
-
protected
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
58
|
+
get element(): HTMLDivElement | null;
|
|
59
|
+
protected get animate(): boolean;
|
|
60
|
+
private get min();
|
|
61
|
+
private get max();
|
|
62
|
+
private get step();
|
|
63
63
|
/**
|
|
64
64
|
* @hidden
|
|
65
65
|
*/
|
|
@@ -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 __());
|
|
@@ -162,28 +164,28 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
162
164
|
get: function () {
|
|
163
165
|
return this._element;
|
|
164
166
|
},
|
|
165
|
-
enumerable:
|
|
167
|
+
enumerable: false,
|
|
166
168
|
configurable: true
|
|
167
169
|
});
|
|
168
170
|
Object.defineProperty(TimeList.prototype, "animate", {
|
|
169
171
|
get: function () {
|
|
170
172
|
return Boolean(this.props.smoothScroll && this.animateToIndex);
|
|
171
173
|
},
|
|
172
|
-
enumerable:
|
|
174
|
+
enumerable: false,
|
|
173
175
|
configurable: true
|
|
174
176
|
});
|
|
175
177
|
Object.defineProperty(TimeList.prototype, "min", {
|
|
176
178
|
get: function () {
|
|
177
179
|
return this.props.min || TimeList.defaultProps.min;
|
|
178
180
|
},
|
|
179
|
-
enumerable:
|
|
181
|
+
enumerable: false,
|
|
180
182
|
configurable: true
|
|
181
183
|
});
|
|
182
184
|
Object.defineProperty(TimeList.prototype, "max", {
|
|
183
185
|
get: function () {
|
|
184
186
|
return this.props.max || TimeList.defaultProps.max;
|
|
185
187
|
},
|
|
186
|
-
enumerable:
|
|
188
|
+
enumerable: false,
|
|
187
189
|
configurable: true
|
|
188
190
|
});
|
|
189
191
|
Object.defineProperty(TimeList.prototype, "step", {
|
|
@@ -192,7 +194,7 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
192
194
|
? Math.floor(this.props.step)
|
|
193
195
|
: TimeList.defaultProps.step;
|
|
194
196
|
},
|
|
195
|
-
enumerable:
|
|
197
|
+
enumerable: false,
|
|
196
198
|
configurable: true
|
|
197
199
|
});
|
|
198
200
|
/**
|
|
@@ -103,13 +103,13 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
103
103
|
/**
|
|
104
104
|
* @hidden
|
|
105
105
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
protected
|
|
109
|
-
private
|
|
110
|
-
private
|
|
111
|
-
private
|
|
112
|
-
protected
|
|
106
|
+
get element(): HTMLSpanElement | null;
|
|
107
|
+
get value(): Date;
|
|
108
|
+
protected get intl(): IntlService;
|
|
109
|
+
private get min();
|
|
110
|
+
private get max();
|
|
111
|
+
private get steps();
|
|
112
|
+
protected get boundRange(): boolean;
|
|
113
113
|
/**
|
|
114
114
|
* @hidden
|
|
115
115
|
*/
|
|
@@ -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 __());
|
|
@@ -138,42 +140,42 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
138
140
|
get: function () {
|
|
139
141
|
return this._element;
|
|
140
142
|
},
|
|
141
|
-
enumerable:
|
|
143
|
+
enumerable: false,
|
|
142
144
|
configurable: true
|
|
143
145
|
});
|
|
144
146
|
Object.defineProperty(TimePart.prototype, "value", {
|
|
145
147
|
get: function () {
|
|
146
148
|
return timeInRange(this.snapTime(cloneDate(this.props.value || MIDNIGHT_DATE)), this.min, this.max);
|
|
147
149
|
},
|
|
148
|
-
enumerable:
|
|
150
|
+
enumerable: false,
|
|
149
151
|
configurable: true
|
|
150
152
|
});
|
|
151
153
|
Object.defineProperty(TimePart.prototype, "intl", {
|
|
152
154
|
get: function () {
|
|
153
155
|
return provideIntlService(this);
|
|
154
156
|
},
|
|
155
|
-
enumerable:
|
|
157
|
+
enumerable: false,
|
|
156
158
|
configurable: true
|
|
157
159
|
});
|
|
158
160
|
Object.defineProperty(TimePart.prototype, "min", {
|
|
159
161
|
get: function () {
|
|
160
162
|
return this.snapTime(this.props.min || TimePart.defaultProps.min);
|
|
161
163
|
},
|
|
162
|
-
enumerable:
|
|
164
|
+
enumerable: false,
|
|
163
165
|
configurable: true
|
|
164
166
|
});
|
|
165
167
|
Object.defineProperty(TimePart.prototype, "max", {
|
|
166
168
|
get: function () {
|
|
167
169
|
return this.snapTime(this.props.max || TimePart.defaultProps.max);
|
|
168
170
|
},
|
|
169
|
-
enumerable:
|
|
171
|
+
enumerable: false,
|
|
170
172
|
configurable: true
|
|
171
173
|
});
|
|
172
174
|
Object.defineProperty(TimePart.prototype, "steps", {
|
|
173
175
|
get: function () {
|
|
174
176
|
return this.props.steps || TimePart.defaultProps.steps;
|
|
175
177
|
},
|
|
176
|
-
enumerable:
|
|
178
|
+
enumerable: false,
|
|
177
179
|
configurable: true
|
|
178
180
|
});
|
|
179
181
|
Object.defineProperty(TimePart.prototype, "boundRange", {
|
|
@@ -182,7 +184,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
182
184
|
? this.props.boundRange
|
|
183
185
|
: TimePart.defaultProps.boundRange;
|
|
184
186
|
},
|
|
185
|
-
enumerable:
|
|
187
|
+
enumerable: false,
|
|
186
188
|
configurable: true
|
|
187
189
|
});
|
|
188
190
|
/**
|
|
@@ -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>;
|
|
@@ -146,8 +146,8 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
146
146
|
validate: PropTypes.Requireable<boolean>;
|
|
147
147
|
valid: PropTypes.Requireable<boolean>;
|
|
148
148
|
size: PropTypes.Requireable<"small" | "medium" | "large">;
|
|
149
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "
|
|
150
|
-
fillMode: PropTypes.Requireable<"
|
|
149
|
+
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
|
|
150
|
+
fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
153
|
* @hidden
|
|
@@ -166,8 +166,8 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
166
166
|
validityStyles: boolean;
|
|
167
167
|
dateInput: React.ComponentType<DateInputProps<any>>;
|
|
168
168
|
size: "small" | "medium" | "large";
|
|
169
|
-
rounded: "small" | "medium" | "
|
|
170
|
-
fillMode: "
|
|
169
|
+
rounded: "small" | "medium" | "full" | "large";
|
|
170
|
+
fillMode: "flat" | "solid" | "outline";
|
|
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
|
*/
|
|
@@ -239,7 +239,7 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
239
239
|
*/
|
|
240
240
|
render(): JSX.Element;
|
|
241
241
|
protected setTimeSelectorRef: (timeSelector: any) => void;
|
|
242
|
-
protected nextValue: (nextProps: TimePickerProps, nextState: TimePickerState) => Date;
|
|
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;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import * as React from 'react';
|
|
@@ -79,7 +83,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
79
83
|
};
|
|
80
84
|
_this.handleInputValueChange = function (event) {
|
|
81
85
|
var value = _this.mergeTime(event.value);
|
|
82
|
-
_this.handleValueChange(__assign({}, event, { value: value }));
|
|
86
|
+
_this.handleValueChange(__assign(__assign({}, event), { value: value }));
|
|
83
87
|
};
|
|
84
88
|
_this.handleValueChange = function (event) {
|
|
85
89
|
_this.setState({
|
|
@@ -154,7 +158,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
154
158
|
get: function () {
|
|
155
159
|
return this._element;
|
|
156
160
|
},
|
|
157
|
-
enumerable:
|
|
161
|
+
enumerable: false,
|
|
158
162
|
configurable: true
|
|
159
163
|
});
|
|
160
164
|
Object.defineProperty(TimePickerWithoutContext.prototype, "dateInput", {
|
|
@@ -164,7 +168,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
164
168
|
get: function () {
|
|
165
169
|
return this._dateInput.current;
|
|
166
170
|
},
|
|
167
|
-
enumerable:
|
|
171
|
+
enumerable: false,
|
|
168
172
|
configurable: true
|
|
169
173
|
});
|
|
170
174
|
Object.defineProperty(TimePickerWithoutContext.prototype, "timeSelector", {
|
|
@@ -174,7 +178,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
174
178
|
get: function () {
|
|
175
179
|
return this._timeSelector;
|
|
176
180
|
},
|
|
177
|
-
enumerable:
|
|
181
|
+
enumerable: false,
|
|
178
182
|
configurable: true
|
|
179
183
|
});
|
|
180
184
|
Object.defineProperty(TimePickerWithoutContext.prototype, "value", {
|
|
@@ -189,7 +193,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
189
193
|
: this.state.value;
|
|
190
194
|
return (value !== null) ? cloneDate(value) : null;
|
|
191
195
|
},
|
|
192
|
-
enumerable:
|
|
196
|
+
enumerable: false,
|
|
193
197
|
configurable: true
|
|
194
198
|
});
|
|
195
199
|
Object.defineProperty(TimePickerWithoutContext.prototype, "show", {
|
|
@@ -203,7 +207,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
203
207
|
? this.props.show
|
|
204
208
|
: this.state.show;
|
|
205
209
|
},
|
|
206
|
-
enumerable:
|
|
210
|
+
enumerable: false,
|
|
207
211
|
configurable: true
|
|
208
212
|
});
|
|
209
213
|
Object.defineProperty(TimePickerWithoutContext.prototype, "name", {
|
|
@@ -213,7 +217,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
213
217
|
get: function () {
|
|
214
218
|
return this.props.name;
|
|
215
219
|
},
|
|
216
|
-
enumerable:
|
|
220
|
+
enumerable: false,
|
|
217
221
|
configurable: true
|
|
218
222
|
});
|
|
219
223
|
Object.defineProperty(TimePickerWithoutContext.prototype, "validity", {
|
|
@@ -236,7 +240,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
236
240
|
valueMissing: this.value === null
|
|
237
241
|
};
|
|
238
242
|
},
|
|
239
|
-
enumerable:
|
|
243
|
+
enumerable: false,
|
|
240
244
|
configurable: true
|
|
241
245
|
});
|
|
242
246
|
Object.defineProperty(TimePickerWithoutContext.prototype, "validityStyles", {
|
|
@@ -248,7 +252,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
248
252
|
? this.props.validityStyles
|
|
249
253
|
: TimePickerWithoutContext.defaultProps.validityStyles;
|
|
250
254
|
},
|
|
251
|
-
enumerable:
|
|
255
|
+
enumerable: false,
|
|
252
256
|
configurable: true
|
|
253
257
|
});
|
|
254
258
|
Object.defineProperty(TimePickerWithoutContext.prototype, "required", {
|
|
@@ -260,35 +264,35 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
260
264
|
? this.props.required
|
|
261
265
|
: TimePickerWithoutContext.defaultProps.required;
|
|
262
266
|
},
|
|
263
|
-
enumerable:
|
|
267
|
+
enumerable: false,
|
|
264
268
|
configurable: true
|
|
265
269
|
});
|
|
266
270
|
Object.defineProperty(TimePickerWithoutContext.prototype, "popupSettings", {
|
|
267
271
|
get: function () {
|
|
268
272
|
return this.props.popupSettings || TimePickerWithoutContext.defaultProps.popupSettings;
|
|
269
273
|
},
|
|
270
|
-
enumerable:
|
|
274
|
+
enumerable: false,
|
|
271
275
|
configurable: true
|
|
272
276
|
});
|
|
273
277
|
Object.defineProperty(TimePickerWithoutContext.prototype, "min", {
|
|
274
278
|
get: function () {
|
|
275
279
|
return this.props.min !== undefined ? this.props.min : TimePickerWithoutContext.defaultProps.min;
|
|
276
280
|
},
|
|
277
|
-
enumerable:
|
|
281
|
+
enumerable: false,
|
|
278
282
|
configurable: true
|
|
279
283
|
});
|
|
280
284
|
Object.defineProperty(TimePickerWithoutContext.prototype, "max", {
|
|
281
285
|
get: function () {
|
|
282
286
|
return this.props.max !== undefined ? this.props.max : TimePickerWithoutContext.defaultProps.max;
|
|
283
287
|
},
|
|
284
|
-
enumerable:
|
|
288
|
+
enumerable: false,
|
|
285
289
|
configurable: true
|
|
286
290
|
});
|
|
287
291
|
Object.defineProperty(TimePickerWithoutContext.prototype, "dateInputComp", {
|
|
288
292
|
get: function () {
|
|
289
293
|
return this.props.dateInput || TimePickerWithoutContext.defaultProps.dateInput;
|
|
290
294
|
},
|
|
291
|
-
enumerable:
|
|
295
|
+
enumerable: false,
|
|
292
296
|
configurable: true
|
|
293
297
|
});
|
|
294
298
|
/**
|
|
@@ -365,8 +369,8 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
365
369
|
var toggleTimeMessage = localizationService
|
|
366
370
|
.toLanguageString(toggleTimeSelector, messages[toggleTimeSelector]);
|
|
367
371
|
var timepicker = (React.createElement(AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
|
|
368
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
369
372
|
var _b;
|
|
373
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
370
374
|
return (React.createElement("div", { ref: function (span) { _this._element = span; }, className: classNames('k-input', 'k-timepicker', (_b = {},
|
|
371
375
|
_b["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
372
376
|
_b["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
@@ -376,7 +380,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
376
380
|
_b['k-disabled'] = _this.props.disabled,
|
|
377
381
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
378
382
|
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput }, dateInputProps)),
|
|
379
|
-
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage,
|
|
383
|
+
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'clock', onMouseDown: _this.handleIconMouseDown, onClick: _this.handleIconClick, title: toggleTimeMessage, className: "k-input-button", rounded: null }, {
|
|
380
384
|
'aria-controls': _this._popupId,
|
|
381
385
|
'aria-label': toggleClockMessage
|
|
382
386
|
})),
|
|
@@ -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
|
*/
|
|
@@ -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 __());
|
|
@@ -124,7 +126,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
124
126
|
get: function () {
|
|
125
127
|
return this._element;
|
|
126
128
|
},
|
|
127
|
-
enumerable:
|
|
129
|
+
enumerable: false,
|
|
128
130
|
configurable: true
|
|
129
131
|
});
|
|
130
132
|
Object.defineProperty(TimeSelector.prototype, "value", {
|
|
@@ -138,14 +140,14 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
138
140
|
? cloneDate(value)
|
|
139
141
|
: null;
|
|
140
142
|
},
|
|
141
|
-
enumerable:
|
|
143
|
+
enumerable: false,
|
|
142
144
|
configurable: true
|
|
143
145
|
});
|
|
144
146
|
Object.defineProperty(TimeSelector.prototype, "intl", {
|
|
145
147
|
get: function () {
|
|
146
148
|
return provideIntlService(this);
|
|
147
149
|
},
|
|
148
|
-
enumerable:
|
|
150
|
+
enumerable: false,
|
|
149
151
|
configurable: true
|
|
150
152
|
});
|
|
151
153
|
Object.defineProperty(TimeSelector.prototype, "current", {
|
|
@@ -154,7 +156,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
154
156
|
? cloneDate(this.state.current)
|
|
155
157
|
: null;
|
|
156
158
|
},
|
|
157
|
-
enumerable:
|
|
159
|
+
enumerable: false,
|
|
158
160
|
configurable: true
|
|
159
161
|
});
|
|
160
162
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|