@progress/kendo-react-dateinputs 5.4.0-dev.202205180853 → 5.4.0-dev.202205271059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/dist/es/PopupSettings.js +1 -0
- package/dist/es/calendar/components/Calendar.d.ts +8 -8
- package/dist/es/calendar/components/Calendar.js +9 -7
- package/dist/es/calendar/components/CalendarCell.js +7 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +7 -3
- package/dist/es/calendar/components/CalendarNavigationItem.js +7 -3
- package/dist/es/calendar/components/CalendarWeekCell.js +7 -3
- package/dist/es/calendar/components/Header.d.ts +4 -4
- package/dist/es/calendar/components/Header.js +7 -5
- package/dist/es/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/es/calendar/components/HorizontalViewList.js +7 -5
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +11 -11
- package/dist/es/calendar/components/MultiViewCalendar.js +12 -10
- package/dist/es/calendar/components/Navigation.d.ts +1 -1
- package/dist/es/calendar/components/Navigation.js +4 -2
- package/dist/es/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/es/calendar/components/TodayCommand.js +6 -4
- package/dist/es/calendar/components/View.d.ts +7 -7
- package/dist/es/calendar/components/View.js +10 -8
- package/dist/es/calendar/components/ViewList.d.ts +6 -6
- package/dist/es/calendar/components/ViewList.js +9 -7
- package/dist/es/calendar/models/ActiveView.js +1 -0
- package/dist/es/calendar/models/CalendarSettings.js +1 -0
- package/dist/es/calendar/models/CellContext.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarMode.js +1 -0
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +1 -0
- package/dist/es/calendar/models/SelectionRangeEnd.js +1 -0
- package/dist/es/calendar/models/ViewService.js +1 -0
- package/dist/es/calendar/services/MonthViewService.js +1 -1
- package/dist/es/dateinput/DateInput.d.ts +17 -17
- package/dist/es/dateinput/DateInput.js +23 -16
- package/dist/es/dateinput/models/DateInputSettings.js +1 -0
- package/dist/es/dateinput/models/format-placeholder.js +1 -0
- package/dist/es/dateinput/models/incremental-steps.js +1 -0
- package/dist/es/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/es/dateinput/models/kendo-date.js +2 -2
- package/dist/es/dateinput/models/selection.js +1 -0
- package/dist/es/dateinput/utils.d.ts +1 -1
- package/dist/es/datepicker/DatePicker.d.ts +21 -21
- package/dist/es/datepicker/DatePicker.js +24 -20
- package/dist/es/datepicker/models/DatePickerSettings.js +1 -0
- package/dist/es/datepicker/models/index.js +1 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +11 -11
- package/dist/es/daterangepicker/DateRangePicker.js +16 -14
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +1 -0
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +1 -0
- package/dist/es/daterangepicker/models/index.js +1 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +16 -16
- package/dist/es/datetimepicker/DateTimePicker.js +30 -15
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +6 -6
- package/dist/es/datetimepicker/DateTimeSelector.js +12 -7
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +1 -0
- package/dist/es/datetimepicker/models/index.js +1 -0
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/es/messages/index.d.ts +21 -21
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +5 -5
- package/dist/es/timepicker/TimeList.js +8 -6
- package/dist/es/timepicker/TimePart.d.ts +7 -7
- package/dist/es/timepicker/TimePart.js +10 -8
- package/dist/es/timepicker/TimePicker.d.ts +19 -19
- package/dist/es/timepicker/TimePicker.js +23 -19
- package/dist/es/timepicker/TimeSelector.d.ts +4 -4
- package/dist/es/timepicker/TimeSelector.js +7 -5
- package/dist/es/timepicker/models/IncrementalSteps.js +1 -0
- package/dist/es/timepicker/models/ListItem.js +1 -0
- package/dist/es/timepicker/models/ListService.js +1 -0
- package/dist/es/timepicker/models/ListServiceSettings.js +1 -0
- package/dist/es/timepicker/models/TimePickerSettings.js +1 -0
- package/dist/es/timepicker/utils.d.ts +4 -4
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +6 -1
- package/dist/es/virtualization/Virtualization.d.ts +7 -7
- package/dist/es/virtualization/Virtualization.js +9 -7
- package/dist/es/virtualization/services/RowHeightService.js +6 -1
- package/dist/npm/calendar/components/Calendar.d.ts +8 -8
- package/dist/npm/calendar/components/Calendar.js +10 -7
- package/dist/npm/calendar/components/CalendarCell.js +8 -3
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +8 -3
- package/dist/npm/calendar/components/CalendarNavigationItem.js +8 -3
- package/dist/npm/calendar/components/CalendarWeekCell.js +8 -3
- package/dist/npm/calendar/components/Header.d.ts +4 -4
- package/dist/npm/calendar/components/Header.js +8 -5
- package/dist/npm/calendar/components/HorizontalViewList.d.ts +4 -4
- package/dist/npm/calendar/components/HorizontalViewList.js +8 -5
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +11 -11
- package/dist/npm/calendar/components/MultiViewCalendar.js +13 -10
- package/dist/npm/calendar/components/Navigation.d.ts +1 -1
- package/dist/npm/calendar/components/Navigation.js +5 -2
- package/dist/npm/calendar/components/TodayCommand.d.ts +3 -3
- package/dist/npm/calendar/components/TodayCommand.js +7 -4
- package/dist/npm/calendar/components/View.d.ts +7 -7
- package/dist/npm/calendar/components/View.js +11 -8
- package/dist/npm/calendar/components/ViewList.d.ts +6 -6
- package/dist/npm/calendar/components/ViewList.js +10 -7
- package/dist/npm/calendar/models/CalendarViewEnum.js +1 -0
- package/dist/npm/calendar/models/NavigationAction.js +1 -0
- package/dist/npm/calendar/models/SelectionRange.js +1 -0
- package/dist/npm/calendar/models/index.js +4 -3
- package/dist/npm/calendar/services/BusViewService.js +2 -1
- package/dist/npm/calendar/services/CenturyViewService.js +2 -1
- package/dist/npm/calendar/services/DOMService.js +1 -0
- package/dist/npm/calendar/services/DecadeViewService.js +2 -1
- package/dist/npm/calendar/services/MonthViewService.js +3 -2
- package/dist/npm/calendar/services/NavigationService.js +1 -0
- package/dist/npm/calendar/services/ScrollSyncService.js +1 -0
- package/dist/npm/calendar/services/WeekNamesService.js +1 -0
- package/dist/npm/calendar/services/YearViewService.js +2 -1
- package/dist/npm/calendar/services/index.js +10 -9
- package/dist/npm/common/PickerWrap.js +1 -0
- package/dist/npm/dateinput/DateInput.d.ts +17 -17
- package/dist/npm/dateinput/DateInput.js +24 -16
- package/dist/npm/dateinput/models/index.js +3 -2
- package/dist/npm/dateinput/models/kendo-date.d.ts +2 -2
- package/dist/npm/dateinput/models/kendo-date.js +3 -2
- package/dist/npm/dateinput/models/mask.js +1 -0
- package/dist/npm/dateinput/utils.d.ts +1 -1
- package/dist/npm/dateinput/utils.js +9 -4
- package/dist/npm/datepicker/DatePicker.d.ts +21 -21
- package/dist/npm/datepicker/DatePicker.js +25 -20
- package/dist/npm/datepicker/ToggleButton.js +1 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +11 -11
- package/dist/npm/daterangepicker/DateRangePicker.js +17 -14
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +16 -16
- package/dist/npm/datetimepicker/DateTimePicker.js +31 -15
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +6 -6
- package/dist/npm/datetimepicker/DateTimeSelector.js +13 -7
- package/dist/npm/defaults.js +1 -0
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
- package/dist/npm/hooks/usePickerFloatingLabel.js +5 -2
- package/dist/npm/main.js +22 -21
- package/dist/npm/messages/index.d.ts +21 -21
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/timepicker/TimeList.d.ts +5 -5
- package/dist/npm/timepicker/TimeList.js +10 -7
- package/dist/npm/timepicker/TimePart.d.ts +7 -7
- package/dist/npm/timepicker/TimePart.js +11 -8
- package/dist/npm/timepicker/TimePicker.d.ts +19 -19
- package/dist/npm/timepicker/TimePicker.js +24 -19
- package/dist/npm/timepicker/TimeSelector.d.ts +4 -4
- package/dist/npm/timepicker/TimeSelector.js +8 -5
- package/dist/npm/timepicker/models/TimePart.js +1 -0
- package/dist/npm/timepicker/models/index.js +2 -1
- package/dist/npm/timepicker/services/DOMService.js +1 -0
- package/dist/npm/timepicker/services/DayPeriodService.js +1 -0
- package/dist/npm/timepicker/services/HoursService.js +1 -0
- package/dist/npm/timepicker/services/MinutesService.js +1 -0
- package/dist/npm/timepicker/services/SecondsService.js +1 -0
- package/dist/npm/timepicker/services/index.js +6 -5
- package/dist/npm/timepicker/utils.d.ts +4 -4
- package/dist/npm/timepicker/utils.js +19 -9
- package/dist/npm/utils.d.ts +1 -1
- package/dist/npm/utils.js +33 -14
- package/dist/npm/virtualization/Virtualization.d.ts +7 -7
- package/dist/npm/virtualization/Virtualization.js +11 -8
- package/dist/npm/virtualization/services/RowHeightService.js +7 -1
- package/dist/npm/virtualization/services/ScrollerService.js +1 -0
- package/dist/npm/virtualization/services/index.js +5 -4
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -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
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.messages = exports.dateTimePickerSet = exports.dateTimePickerCancel = exports.time = exports.date = exports.toggleClock = exports.toggleTimeSelector = exports.timePickerSet = exports.timePickerCancel = exports.selectNow = exports.now = exports.toggleDateTimeSelector = exports.separator = exports.end = exports.start = exports.swapStartEnd = exports.toggleCalendar = exports.today = exports.decreaseValue = exports.increaseValue = exports.nextView = exports.prevView = void 0;
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
6
7
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageMetadata = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ exports.packageMetadata = {
|
|
|
7
8
|
name: '@progress/kendo-react-dateinputs',
|
|
8
9
|
productName: 'KendoReact',
|
|
9
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
11
|
+
publishDate: 1653648109,
|
|
11
12
|
version: '',
|
|
12
13
|
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'
|
|
13
14
|
};
|
|
@@ -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
|
*/
|
|
@@ -3,17 +3,20 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
17
|
var _a, _b;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.TimeList = void 0;
|
|
17
20
|
var React = require("react");
|
|
18
21
|
var PropTypes = require("prop-types");
|
|
19
22
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
@@ -164,28 +167,28 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
164
167
|
get: function () {
|
|
165
168
|
return this._element;
|
|
166
169
|
},
|
|
167
|
-
enumerable:
|
|
170
|
+
enumerable: false,
|
|
168
171
|
configurable: true
|
|
169
172
|
});
|
|
170
173
|
Object.defineProperty(TimeList.prototype, "animate", {
|
|
171
174
|
get: function () {
|
|
172
175
|
return Boolean(this.props.smoothScroll && this.animateToIndex);
|
|
173
176
|
},
|
|
174
|
-
enumerable:
|
|
177
|
+
enumerable: false,
|
|
175
178
|
configurable: true
|
|
176
179
|
});
|
|
177
180
|
Object.defineProperty(TimeList.prototype, "min", {
|
|
178
181
|
get: function () {
|
|
179
182
|
return this.props.min || TimeList.defaultProps.min;
|
|
180
183
|
},
|
|
181
|
-
enumerable:
|
|
184
|
+
enumerable: false,
|
|
182
185
|
configurable: true
|
|
183
186
|
});
|
|
184
187
|
Object.defineProperty(TimeList.prototype, "max", {
|
|
185
188
|
get: function () {
|
|
186
189
|
return this.props.max || TimeList.defaultProps.max;
|
|
187
190
|
},
|
|
188
|
-
enumerable:
|
|
191
|
+
enumerable: false,
|
|
189
192
|
configurable: true
|
|
190
193
|
});
|
|
191
194
|
Object.defineProperty(TimeList.prototype, "step", {
|
|
@@ -194,7 +197,7 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
194
197
|
? Math.floor(this.props.step)
|
|
195
198
|
: TimeList.defaultProps.step;
|
|
196
199
|
},
|
|
197
|
-
enumerable:
|
|
200
|
+
enumerable: false,
|
|
198
201
|
configurable: true
|
|
199
202
|
});
|
|
200
203
|
/**
|
|
@@ -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
|
*/
|
|
@@ -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");
|
|
@@ -140,42 +143,42 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
140
143
|
get: function () {
|
|
141
144
|
return this._element;
|
|
142
145
|
},
|
|
143
|
-
enumerable:
|
|
146
|
+
enumerable: false,
|
|
144
147
|
configurable: true
|
|
145
148
|
});
|
|
146
149
|
Object.defineProperty(TimePart.prototype, "value", {
|
|
147
150
|
get: function () {
|
|
148
151
|
return utils_2.timeInRange(this.snapTime(kendo_date_math_1.cloneDate(this.props.value || utils_1.MIDNIGHT_DATE)), this.min, this.max);
|
|
149
152
|
},
|
|
150
|
-
enumerable:
|
|
153
|
+
enumerable: false,
|
|
151
154
|
configurable: true
|
|
152
155
|
});
|
|
153
156
|
Object.defineProperty(TimePart.prototype, "intl", {
|
|
154
157
|
get: function () {
|
|
155
158
|
return kendo_react_intl_1.provideIntlService(this);
|
|
156
159
|
},
|
|
157
|
-
enumerable:
|
|
160
|
+
enumerable: false,
|
|
158
161
|
configurable: true
|
|
159
162
|
});
|
|
160
163
|
Object.defineProperty(TimePart.prototype, "min", {
|
|
161
164
|
get: function () {
|
|
162
165
|
return this.snapTime(this.props.min || TimePart.defaultProps.min);
|
|
163
166
|
},
|
|
164
|
-
enumerable:
|
|
167
|
+
enumerable: false,
|
|
165
168
|
configurable: true
|
|
166
169
|
});
|
|
167
170
|
Object.defineProperty(TimePart.prototype, "max", {
|
|
168
171
|
get: function () {
|
|
169
172
|
return this.snapTime(this.props.max || TimePart.defaultProps.max);
|
|
170
173
|
},
|
|
171
|
-
enumerable:
|
|
174
|
+
enumerable: false,
|
|
172
175
|
configurable: true
|
|
173
176
|
});
|
|
174
177
|
Object.defineProperty(TimePart.prototype, "steps", {
|
|
175
178
|
get: function () {
|
|
176
179
|
return this.props.steps || TimePart.defaultProps.steps;
|
|
177
180
|
},
|
|
178
|
-
enumerable:
|
|
181
|
+
enumerable: false,
|
|
179
182
|
configurable: true
|
|
180
183
|
});
|
|
181
184
|
Object.defineProperty(TimePart.prototype, "boundRange", {
|
|
@@ -184,7 +187,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
184
187
|
? this.props.boundRange
|
|
185
188
|
: TimePart.defaultProps.boundRange;
|
|
186
189
|
},
|
|
187
|
-
enumerable:
|
|
190
|
+
enumerable: false,
|
|
188
191
|
configurable: true
|
|
189
192
|
});
|
|
190
193
|
/**
|
|
@@ -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;
|
|
@@ -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");
|
|
@@ -81,7 +86,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
81
86
|
};
|
|
82
87
|
_this.handleInputValueChange = function (event) {
|
|
83
88
|
var value = _this.mergeTime(event.value);
|
|
84
|
-
_this.handleValueChange(__assign({}, event, { value: value }));
|
|
89
|
+
_this.handleValueChange(__assign(__assign({}, event), { value: value }));
|
|
85
90
|
};
|
|
86
91
|
_this.handleValueChange = function (event) {
|
|
87
92
|
_this.setState({
|
|
@@ -156,7 +161,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
156
161
|
get: function () {
|
|
157
162
|
return this._element;
|
|
158
163
|
},
|
|
159
|
-
enumerable:
|
|
164
|
+
enumerable: false,
|
|
160
165
|
configurable: true
|
|
161
166
|
});
|
|
162
167
|
Object.defineProperty(TimePickerWithoutContext.prototype, "dateInput", {
|
|
@@ -166,7 +171,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
166
171
|
get: function () {
|
|
167
172
|
return this._dateInput.current;
|
|
168
173
|
},
|
|
169
|
-
enumerable:
|
|
174
|
+
enumerable: false,
|
|
170
175
|
configurable: true
|
|
171
176
|
});
|
|
172
177
|
Object.defineProperty(TimePickerWithoutContext.prototype, "timeSelector", {
|
|
@@ -176,7 +181,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
176
181
|
get: function () {
|
|
177
182
|
return this._timeSelector;
|
|
178
183
|
},
|
|
179
|
-
enumerable:
|
|
184
|
+
enumerable: false,
|
|
180
185
|
configurable: true
|
|
181
186
|
});
|
|
182
187
|
Object.defineProperty(TimePickerWithoutContext.prototype, "value", {
|
|
@@ -191,7 +196,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
191
196
|
: this.state.value;
|
|
192
197
|
return (value !== null) ? kendo_date_math_1.cloneDate(value) : null;
|
|
193
198
|
},
|
|
194
|
-
enumerable:
|
|
199
|
+
enumerable: false,
|
|
195
200
|
configurable: true
|
|
196
201
|
});
|
|
197
202
|
Object.defineProperty(TimePickerWithoutContext.prototype, "show", {
|
|
@@ -205,7 +210,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
205
210
|
? this.props.show
|
|
206
211
|
: this.state.show;
|
|
207
212
|
},
|
|
208
|
-
enumerable:
|
|
213
|
+
enumerable: false,
|
|
209
214
|
configurable: true
|
|
210
215
|
});
|
|
211
216
|
Object.defineProperty(TimePickerWithoutContext.prototype, "name", {
|
|
@@ -215,7 +220,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
215
220
|
get: function () {
|
|
216
221
|
return this.props.name;
|
|
217
222
|
},
|
|
218
|
-
enumerable:
|
|
223
|
+
enumerable: false,
|
|
219
224
|
configurable: true
|
|
220
225
|
});
|
|
221
226
|
Object.defineProperty(TimePickerWithoutContext.prototype, "validity", {
|
|
@@ -238,7 +243,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
238
243
|
valueMissing: this.value === null
|
|
239
244
|
};
|
|
240
245
|
},
|
|
241
|
-
enumerable:
|
|
246
|
+
enumerable: false,
|
|
242
247
|
configurable: true
|
|
243
248
|
});
|
|
244
249
|
Object.defineProperty(TimePickerWithoutContext.prototype, "validityStyles", {
|
|
@@ -250,7 +255,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
250
255
|
? this.props.validityStyles
|
|
251
256
|
: TimePickerWithoutContext.defaultProps.validityStyles;
|
|
252
257
|
},
|
|
253
|
-
enumerable:
|
|
258
|
+
enumerable: false,
|
|
254
259
|
configurable: true
|
|
255
260
|
});
|
|
256
261
|
Object.defineProperty(TimePickerWithoutContext.prototype, "required", {
|
|
@@ -262,35 +267,35 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
262
267
|
? this.props.required
|
|
263
268
|
: TimePickerWithoutContext.defaultProps.required;
|
|
264
269
|
},
|
|
265
|
-
enumerable:
|
|
270
|
+
enumerable: false,
|
|
266
271
|
configurable: true
|
|
267
272
|
});
|
|
268
273
|
Object.defineProperty(TimePickerWithoutContext.prototype, "popupSettings", {
|
|
269
274
|
get: function () {
|
|
270
275
|
return this.props.popupSettings || TimePickerWithoutContext.defaultProps.popupSettings;
|
|
271
276
|
},
|
|
272
|
-
enumerable:
|
|
277
|
+
enumerable: false,
|
|
273
278
|
configurable: true
|
|
274
279
|
});
|
|
275
280
|
Object.defineProperty(TimePickerWithoutContext.prototype, "min", {
|
|
276
281
|
get: function () {
|
|
277
282
|
return this.props.min !== undefined ? this.props.min : TimePickerWithoutContext.defaultProps.min;
|
|
278
283
|
},
|
|
279
|
-
enumerable:
|
|
284
|
+
enumerable: false,
|
|
280
285
|
configurable: true
|
|
281
286
|
});
|
|
282
287
|
Object.defineProperty(TimePickerWithoutContext.prototype, "max", {
|
|
283
288
|
get: function () {
|
|
284
289
|
return this.props.max !== undefined ? this.props.max : TimePickerWithoutContext.defaultProps.max;
|
|
285
290
|
},
|
|
286
|
-
enumerable:
|
|
291
|
+
enumerable: false,
|
|
287
292
|
configurable: true
|
|
288
293
|
});
|
|
289
294
|
Object.defineProperty(TimePickerWithoutContext.prototype, "dateInputComp", {
|
|
290
295
|
get: function () {
|
|
291
296
|
return this.props.dateInput || TimePickerWithoutContext.defaultProps.dateInput;
|
|
292
297
|
},
|
|
293
|
-
enumerable:
|
|
298
|
+
enumerable: false,
|
|
294
299
|
configurable: true
|
|
295
300
|
});
|
|
296
301
|
/**
|
|
@@ -367,8 +372,8 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
367
372
|
var toggleTimeMessage = localizationService
|
|
368
373
|
.toLanguageString(messages_1.toggleTimeSelector, messages_1.messages[messages_1.toggleTimeSelector]);
|
|
369
374
|
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
375
|
var _b;
|
|
376
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
372
377
|
return (React.createElement("div", { ref: function (span) { _this._element = span; }, className: kendo_react_common_1.classNames('k-input', 'k-timepicker', (_b = {},
|
|
373
378
|
_b["k-input-" + (kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
374
379
|
_b["k-rounded-" + (kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
@@ -378,7 +383,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
378
383
|
_b['k-disabled'] = _this.props.disabled,
|
|
379
384
|
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
|
|
380
385
|
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,
|
|
386
|
+
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
387
|
'aria-controls': _this._popupId,
|
|
383
388
|
'aria-label': toggleClockMessage
|
|
384
389
|
})),
|
|
@@ -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
|
*/
|
|
@@ -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.TimeSelector = 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");
|
|
@@ -126,7 +129,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
126
129
|
get: function () {
|
|
127
130
|
return this._element;
|
|
128
131
|
},
|
|
129
|
-
enumerable:
|
|
132
|
+
enumerable: false,
|
|
130
133
|
configurable: true
|
|
131
134
|
});
|
|
132
135
|
Object.defineProperty(TimeSelector.prototype, "value", {
|
|
@@ -140,14 +143,14 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
140
143
|
? kendo_date_math_1.cloneDate(value)
|
|
141
144
|
: null;
|
|
142
145
|
},
|
|
143
|
-
enumerable:
|
|
146
|
+
enumerable: false,
|
|
144
147
|
configurable: true
|
|
145
148
|
});
|
|
146
149
|
Object.defineProperty(TimeSelector.prototype, "intl", {
|
|
147
150
|
get: function () {
|
|
148
151
|
return kendo_react_intl_1.provideIntlService(this);
|
|
149
152
|
},
|
|
150
|
-
enumerable:
|
|
153
|
+
enumerable: false,
|
|
151
154
|
configurable: true
|
|
152
155
|
});
|
|
153
156
|
Object.defineProperty(TimeSelector.prototype, "current", {
|
|
@@ -156,7 +159,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
156
159
|
? kendo_date_math_1.cloneDate(this.state.current)
|
|
157
160
|
: null;
|
|
158
161
|
},
|
|
159
|
-
enumerable:
|
|
162
|
+
enumerable: false,
|
|
160
163
|
configurable: true
|
|
161
164
|
});
|
|
162
165
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIME_PART = void 0;
|
|
3
4
|
var TimePart_1 = require("./TimePart");
|
|
4
|
-
exports
|
|
5
|
+
Object.defineProperty(exports, "TIME_PART", { enumerable: true, get: function () { return TimePart_1.TIME_PART; } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DayPeriodService = void 0;
|
|
3
4
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
4
5
|
var setHours = function (date, hours) {
|
|
5
6
|
var clone = kendo_date_math_1.cloneDate(date);
|