@progress/kendo-react-dateinputs 5.6.0-dev.202208291054 → 5.6.0-next.202208310638
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/calendar/components/HorizontalViewList.js +1 -1
- package/dist/es/calendar/components/MultiViewCalendar.js +2 -2
- package/dist/es/calendar/components/TodayCommand.js +1 -1
- package/dist/es/calendar/components/View.d.ts +1 -1
- package/dist/es/calendar/components/View.js +1 -1
- package/dist/es/calendar/services/DOMService.js +1 -1
- package/dist/es/dateinput/DateInput.d.ts +6 -6
- package/dist/es/dateinput/DateInput.js +2 -2
- package/dist/es/datepicker/DatePicker.d.ts +5 -5
- package/dist/es/daterangepicker/DateRangePicker.d.ts +8 -8
- package/dist/es/daterangepicker/DateRangePicker.js +0 -12
- package/dist/es/datetimepicker/DateTimePicker.d.ts +5 -5
- package/dist/es/datetimepicker/DateTimePicker.js +1 -1
- package/dist/es/datetimepicker/DateTimeSelector.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePart.d.ts +2 -2
- package/dist/es/timepicker/TimePicker.d.ts +5 -5
- package/dist/es/timepicker/TimeSelector.d.ts +2 -2
- package/dist/es/timepicker/TimeSelector.js +2 -2
- package/dist/npm/calendar/components/HorizontalViewList.js +1 -1
- package/dist/npm/calendar/components/MultiViewCalendar.js +2 -2
- package/dist/npm/calendar/components/TodayCommand.js +1 -1
- package/dist/npm/calendar/components/View.d.ts +1 -1
- package/dist/npm/calendar/components/View.js +1 -1
- package/dist/npm/calendar/services/DOMService.js +1 -1
- package/dist/npm/dateinput/DateInput.d.ts +6 -6
- package/dist/npm/dateinput/DateInput.js +2 -2
- package/dist/npm/datepicker/DatePicker.d.ts +5 -5
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +8 -8
- package/dist/npm/daterangepicker/DateRangePicker.js +0 -12
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +5 -5
- package/dist/npm/datetimepicker/DateTimePicker.js +1 -1
- package/dist/npm/datetimepicker/DateTimeSelector.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePart.d.ts +2 -2
- package/dist/npm/timepicker/TimePicker.d.ts +5 -5
- package/dist/npm/timepicker/TimeSelector.d.ts +2 -2
- package/dist/npm/timepicker/TimeSelector.js +2 -2
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -72,7 +72,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
72
72
|
disabled: PropTypes.Requireable<boolean>;
|
|
73
73
|
endDateInputSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
74
74
|
value: PropTypes.Requireable<Date>;
|
|
75
|
-
format: PropTypes.Requireable<
|
|
75
|
+
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
76
76
|
skeleton: PropTypes.Requireable<string>;
|
|
77
77
|
pattern: PropTypes.Requireable<string>;
|
|
78
78
|
date: PropTypes.Requireable<string>;
|
|
@@ -88,16 +88,16 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
88
88
|
minute: PropTypes.Requireable<string>;
|
|
89
89
|
second: PropTypes.Requireable<string>;
|
|
90
90
|
timeZoneName: PropTypes.Requireable<string>;
|
|
91
|
-
}
|
|
92
|
-
formatPlaceholder: PropTypes.Requireable<
|
|
91
|
+
}>>;
|
|
92
|
+
formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
93
93
|
year: PropTypes.Requireable<string>;
|
|
94
94
|
month: PropTypes.Requireable<string>;
|
|
95
95
|
day: PropTypes.Requireable<string>;
|
|
96
96
|
hour: PropTypes.Requireable<string>;
|
|
97
97
|
minute: PropTypes.Requireable<string>;
|
|
98
98
|
second: PropTypes.Requireable<string>;
|
|
99
|
-
}
|
|
100
|
-
width: PropTypes.Requireable<
|
|
99
|
+
}>>;
|
|
100
|
+
width: PropTypes.Requireable<string | number>;
|
|
101
101
|
tabIndex: PropTypes.Requireable<number>;
|
|
102
102
|
title: PropTypes.Requireable<string>;
|
|
103
103
|
steps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -120,7 +120,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
120
120
|
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
121
121
|
ariaLabel: PropTypes.Requireable<string>;
|
|
122
122
|
ariaRole: PropTypes.Requireable<string>;
|
|
123
|
-
ariaExpanded: PropTypes.Requireable<
|
|
123
|
+
ariaExpanded: PropTypes.Requireable<boolean>;
|
|
124
124
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
125
125
|
validationMessage: PropTypes.Requireable<string>;
|
|
126
126
|
required: PropTypes.Requireable<boolean>;
|
|
@@ -133,7 +133,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
133
133
|
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
|
|
134
134
|
}>>;
|
|
135
135
|
focusedDate: PropTypes.Requireable<Date>;
|
|
136
|
-
format: PropTypes.Requireable<
|
|
136
|
+
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
137
137
|
skeleton: PropTypes.Requireable<string>;
|
|
138
138
|
pattern: PropTypes.Requireable<string>;
|
|
139
139
|
date: PropTypes.Requireable<string>;
|
|
@@ -149,7 +149,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
149
149
|
minute: PropTypes.Requireable<string>;
|
|
150
150
|
second: PropTypes.Requireable<string>;
|
|
151
151
|
timeZoneName: PropTypes.Requireable<string>;
|
|
152
|
-
}
|
|
152
|
+
}>>;
|
|
153
153
|
id: PropTypes.Requireable<string>;
|
|
154
154
|
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
155
155
|
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
@@ -102,12 +102,6 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
102
102
|
if (!_this.shouldFocusDateInput) {
|
|
103
103
|
_this.setShow(true);
|
|
104
104
|
}
|
|
105
|
-
if (_this.startDateInput && _this.startDateInput.element) {
|
|
106
|
-
_this.startDateInput.element.classList.add('k-focus');
|
|
107
|
-
}
|
|
108
|
-
if (_this.endDateInput && _this.endDateInput.element) {
|
|
109
|
-
_this.endDateInput.element.classList.add('k-focus');
|
|
110
|
-
}
|
|
111
105
|
var onFocus = _this.props.onFocus;
|
|
112
106
|
if (onFocus) {
|
|
113
107
|
onFocus.call(undefined, event);
|
|
@@ -115,12 +109,6 @@ var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
115
109
|
};
|
|
116
110
|
_this.handleBlur = function (event) {
|
|
117
111
|
_this.nextTick(function () {
|
|
118
|
-
if (_this.startDateInput && _this.startDateInput.element) {
|
|
119
|
-
_this.startDateInput.element.classList.remove('k-focus');
|
|
120
|
-
}
|
|
121
|
-
if (_this.endDateInput && _this.endDateInput.element) {
|
|
122
|
-
_this.endDateInput.element.classList.remove('k-focus');
|
|
123
|
-
}
|
|
124
112
|
_this.setShow(false);
|
|
125
113
|
});
|
|
126
114
|
var onBlur = _this.props.onBlur;
|
|
@@ -98,7 +98,7 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
|
|
|
98
98
|
defaultValue: PropTypes.Requireable<Date>;
|
|
99
99
|
disabled: PropTypes.Requireable<boolean>;
|
|
100
100
|
focusedDate: PropTypes.Requireable<Date>;
|
|
101
|
-
format: PropTypes.Requireable<
|
|
101
|
+
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
102
102
|
skeleton: PropTypes.Requireable<string>;
|
|
103
103
|
pattern: PropTypes.Requireable<string>;
|
|
104
104
|
date: PropTypes.Requireable<string>;
|
|
@@ -114,15 +114,15 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
|
|
|
114
114
|
minute: PropTypes.Requireable<string>;
|
|
115
115
|
second: PropTypes.Requireable<string>;
|
|
116
116
|
timeZoneName: PropTypes.Requireable<string>;
|
|
117
|
-
}
|
|
118
|
-
formatPlaceholder: PropTypes.Requireable<
|
|
117
|
+
}>>;
|
|
118
|
+
formatPlaceholder: PropTypes.Requireable<"short" | "narrow" | "wide" | "formatPattern" | PropTypes.InferProps<{
|
|
119
119
|
year: PropTypes.Requireable<string>;
|
|
120
120
|
month: PropTypes.Requireable<string>;
|
|
121
121
|
day: PropTypes.Requireable<string>;
|
|
122
122
|
hour: PropTypes.Requireable<string>;
|
|
123
123
|
minute: PropTypes.Requireable<string>;
|
|
124
124
|
second: PropTypes.Requireable<string>;
|
|
125
|
-
}
|
|
125
|
+
}>>;
|
|
126
126
|
id: PropTypes.Requireable<string>;
|
|
127
127
|
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
128
128
|
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
@@ -139,7 +139,7 @@ export declare class DateTimePickerWithoutContext extends React.Component<DateTi
|
|
|
139
139
|
title: PropTypes.Requireable<string>;
|
|
140
140
|
value: PropTypes.Requireable<Date>;
|
|
141
141
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
142
|
-
width: PropTypes.Requireable<
|
|
142
|
+
width: PropTypes.Requireable<string | number>;
|
|
143
143
|
validationMessage: PropTypes.Requireable<string>;
|
|
144
144
|
required: PropTypes.Requireable<boolean>;
|
|
145
145
|
validate: PropTypes.Requireable<boolean>;
|
|
@@ -349,7 +349,7 @@ var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
349
349
|
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(_this)
|
|
350
350
|
.toLanguageString(messages_1.toggleDateTimeSelector, messages_1.messages[messages_1.toggleDateTimeSelector])
|
|
351
351
|
})),
|
|
352
|
-
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element,
|
|
352
|
+
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element, popupClass: "k-datetime-container k-reset", id: _this._popupId, anchorAlign: {
|
|
353
353
|
horizontal: 'left',
|
|
354
354
|
vertical: 'bottom'
|
|
355
355
|
}, popupAlign: {
|
|
@@ -217,7 +217,7 @@ var DateTimeSelector = /** @class */ (function (_super) {
|
|
|
217
217
|
React.createElement(this.props.calendar, __assign({}, calendarProps)) :
|
|
218
218
|
React.createElement(Calendar_1.Calendar, __assign({ ref: function (calendar) { _this._calendar = calendar; } }, calendarProps))),
|
|
219
219
|
React.createElement("div", { className: "k-datetime-time-wrap" }, React.createElement(TimePart_1.TimePart, { key: 1, onNowClick: this.handleNowClick, disabled: disabled || this.state.tab !== 'time', ref: function (timePart) { _this._timePart = timePart; }, min: this.minTime || utils_1.MIN_TIME, max: this.maxTime || utils_1.MAX_TIME, steps: this.props.steps, value: this.state.timeValue, format: format, onChange: this.handleTimeListContainerChange, onMount: this.handleTimePartMount }))),
|
|
220
|
-
React.createElement("div", { className: "k-datetime-footer k-actions k-
|
|
220
|
+
React.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched " },
|
|
221
221
|
cancelButton && React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
|
|
222
222
|
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", themeColor: "primary", ref: function (btn) { _this._acceptButton = btn; }, className: "k-time-accept", disabled: !this.hasDateValue, onClick: this.handleAccept, title: setMessage }, { 'aria-label': setMessage }), setMessage))));
|
|
223
223
|
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-dateinputs',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1661926735,
|
|
12
12
|
version: '',
|
|
13
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'
|
|
14
14
|
};
|
|
@@ -51,7 +51,7 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
51
51
|
static propTypes: {
|
|
52
52
|
cancelButton: PropTypes.Requireable<boolean>;
|
|
53
53
|
disabled: PropTypes.Requireable<boolean>;
|
|
54
|
-
format: PropTypes.Requireable<
|
|
54
|
+
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
55
55
|
skeleton: PropTypes.Requireable<string>;
|
|
56
56
|
pattern: PropTypes.Requireable<string>;
|
|
57
57
|
date: PropTypes.Requireable<string>;
|
|
@@ -67,7 +67,7 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
67
67
|
minute: PropTypes.Requireable<string>;
|
|
68
68
|
second: PropTypes.Requireable<string>;
|
|
69
69
|
timeZoneName: PropTypes.Requireable<string>;
|
|
70
|
-
}
|
|
70
|
+
}>>;
|
|
71
71
|
max: PropTypes.Requireable<Date>;
|
|
72
72
|
min: PropTypes.Requireable<Date>;
|
|
73
73
|
nowButton: PropTypes.Requireable<boolean>;
|
|
@@ -94,7 +94,7 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
94
94
|
defaultShow: PropTypes.Requireable<boolean>;
|
|
95
95
|
defaultValue: PropTypes.Requireable<Date>;
|
|
96
96
|
disabled: PropTypes.Requireable<boolean>;
|
|
97
|
-
format: PropTypes.Requireable<
|
|
97
|
+
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
98
98
|
skeleton: PropTypes.Requireable<string>;
|
|
99
99
|
pattern: PropTypes.Requireable<string>;
|
|
100
100
|
date: PropTypes.Requireable<string>;
|
|
@@ -110,15 +110,15 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
110
110
|
minute: PropTypes.Requireable<string>;
|
|
111
111
|
second: PropTypes.Requireable<string>;
|
|
112
112
|
timeZoneName: PropTypes.Requireable<string>;
|
|
113
|
-
}
|
|
114
|
-
formatPlaceholder: PropTypes.Requireable<
|
|
113
|
+
}>>;
|
|
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>;
|
|
118
118
|
hour: PropTypes.Requireable<string>;
|
|
119
119
|
minute: PropTypes.Requireable<string>;
|
|
120
120
|
second: PropTypes.Requireable<string>;
|
|
121
|
-
}
|
|
121
|
+
}>>;
|
|
122
122
|
id: PropTypes.Requireable<string>;
|
|
123
123
|
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
124
124
|
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
@@ -140,7 +140,7 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
140
140
|
tabIndex: PropTypes.Requireable<number>;
|
|
141
141
|
title: PropTypes.Requireable<string>;
|
|
142
142
|
value: PropTypes.Requireable<Date>;
|
|
143
|
-
width: PropTypes.Requireable<
|
|
143
|
+
width: PropTypes.Requireable<string | number>;
|
|
144
144
|
validationMessage: PropTypes.Requireable<string>;
|
|
145
145
|
required: PropTypes.Requireable<boolean>;
|
|
146
146
|
validate: PropTypes.Requireable<boolean>;
|
|
@@ -53,7 +53,7 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
53
53
|
cancelButton: PropTypes.Requireable<boolean>;
|
|
54
54
|
className: PropTypes.Requireable<string>;
|
|
55
55
|
disabled: PropTypes.Requireable<boolean>;
|
|
56
|
-
format: PropTypes.Requireable<
|
|
56
|
+
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
57
57
|
skeleton: PropTypes.Requireable<string>;
|
|
58
58
|
pattern: PropTypes.Requireable<string>;
|
|
59
59
|
date: PropTypes.Requireable<string>;
|
|
@@ -69,7 +69,7 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
69
69
|
minute: PropTypes.Requireable<string>;
|
|
70
70
|
second: PropTypes.Requireable<string>;
|
|
71
71
|
timeZoneName: PropTypes.Requireable<string>;
|
|
72
|
-
}
|
|
72
|
+
}>>;
|
|
73
73
|
max: PropTypes.Requireable<Date>;
|
|
74
74
|
min: PropTypes.Requireable<Date>;
|
|
75
75
|
nowButton: PropTypes.Requireable<boolean>;
|
|
@@ -181,11 +181,11 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
181
181
|
var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
182
182
|
var cancelMessage = localizationService.toLanguageString(messages_1.timePickerCancel, messages_1.messages[messages_1.timePickerCancel]);
|
|
183
183
|
var setMessage = localizationService.toLanguageString(messages_1.timePickerSet, messages_1.messages[messages_1.timePickerSet]);
|
|
184
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: (0, kendo_react_common_1.classNames)('k-timeselector
|
|
184
|
+
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: (0, kendo_react_common_1.classNames)('k-timeselector', className, {
|
|
185
185
|
'k-disabled': disabled
|
|
186
186
|
}), onKeyDown: this.handleKeyDown },
|
|
187
187
|
React.createElement(TimePart_1.TimePart, { ref: function (el) { _this.timePart = el; }, value: this.current, onChange: this.handleChange, onNowClick: this.handleNowClick, format: format, smoothScroll: smoothScroll, min: min, max: max, boundRange: boundRange, disabled: disabled, nowButton: nowButton, steps: steps, show: this.props.show }),
|
|
188
|
-
React.createElement("div", { className: "k-time-footer k-actions k-
|
|
188
|
+
React.createElement("div", { className: "k-time-footer k-actions k-actions-stretched" },
|
|
189
189
|
cancelButton &&
|
|
190
190
|
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
|
|
191
191
|
React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", ref: function (btn) { _this._acceptButton = btn; }, className: "k-time-accept", themeColor: 'primary', onClick: this.handleAccept, title: setMessage }, { 'aria-label': setMessage }), setMessage))));
|