@progress/kendo-react-dateinputs 4.13.0-dev.202111300702 → 4.13.0
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/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +2 -0
- package/dist/es/timepicker/TimeList.js +3 -2
- package/dist/es/timepicker/TimePart.d.ts +2 -0
- package/dist/es/timepicker/TimePart.js +3 -2
- package/dist/es/timepicker/TimePicker.js +1 -1
- package/dist/es/timepicker/TimeSelector.d.ts +2 -0
- package/dist/es/timepicker/TimeSelector.js +3 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimeList.d.ts +2 -0
- package/dist/npm/timepicker/TimeList.js +3 -2
- package/dist/npm/timepicker/TimePart.d.ts +2 -0
- package/dist/npm/timepicker/TimePart.js +3 -2
- package/dist/npm/timepicker/TimePicker.js +1 -1
- package/dist/npm/timepicker/TimeSelector.d.ts +2 -0
- package/dist/npm/timepicker/TimeSelector.js +3 -2
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -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: 1638880201,
|
|
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
|
};
|
|
@@ -19,6 +19,7 @@ export interface TimeListProps {
|
|
|
19
19
|
smoothScroll?: boolean;
|
|
20
20
|
boundRange?: boolean;
|
|
21
21
|
disabled?: boolean;
|
|
22
|
+
show?: boolean;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* @hidden
|
|
@@ -32,6 +33,7 @@ export declare class TimeList extends React.Component<TimeListProps, {}> {
|
|
|
32
33
|
step: (props: TimeListProps, propName: string, componentName: string) => any;
|
|
33
34
|
value: PropTypes.Requireable<Date>;
|
|
34
35
|
smoothScroll: PropTypes.Requireable<boolean>;
|
|
36
|
+
show: PropTypes.Requireable<boolean>;
|
|
35
37
|
};
|
|
36
38
|
static defaultProps: {
|
|
37
39
|
boundRange: boolean;
|
|
@@ -124,7 +124,7 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
124
124
|
if (!_this._element) {
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
if (document && document.activeElement !== _this._element) {
|
|
127
|
+
if (document && document.activeElement !== _this._element && _this.props.show) {
|
|
128
128
|
_this._element.focus({ preventScroll: true });
|
|
129
129
|
}
|
|
130
130
|
};
|
|
@@ -262,7 +262,8 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
262
262
|
return null;
|
|
263
263
|
},
|
|
264
264
|
value: PropTypes.instanceOf(Date),
|
|
265
|
-
smoothScroll: PropTypes.bool
|
|
265
|
+
smoothScroll: PropTypes.bool,
|
|
266
|
+
show: PropTypes.bool
|
|
266
267
|
};
|
|
267
268
|
TimeList.defaultProps = {
|
|
268
269
|
boundRange: false,
|
|
@@ -36,6 +36,7 @@ export interface TimePartProps {
|
|
|
36
36
|
onNowClick?: any;
|
|
37
37
|
className?: string;
|
|
38
38
|
onMount?: (value: Date) => void;
|
|
39
|
+
show?: boolean;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* @hidden
|
|
@@ -78,6 +79,7 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
78
79
|
smoothScroll: PropTypes.Requireable<boolean>;
|
|
79
80
|
tabIndex: PropTypes.Requireable<number>;
|
|
80
81
|
value: PropTypes.Requireable<Date>;
|
|
82
|
+
show: PropTypes.Requireable<boolean>;
|
|
81
83
|
};
|
|
82
84
|
static defaultProps: {
|
|
83
85
|
value: any;
|
|
@@ -228,7 +228,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
228
228
|
React.createElement("span", { className: "k-title", onMouseDown: function (e) { e.preventDefault(); } }, _this.intl.dateFieldName(part)),
|
|
229
229
|
React.createElement(TimeList, { min: _this.min, max: _this.max, boundRange: _this.boundRange, part: part, step: part.type ? _this.steps[part.type] : 1, smoothScroll: smoothScroll, ref: function (el) { if (!el) {
|
|
230
230
|
return;
|
|
231
|
-
} _this.timeLists.push(el); }, id: idx, onFocus: function () { _this.handleListFocus(idx); }, onBlur: _this.handleListBlur, onChange: _this.handleChange, value: _this.value, disabled: disabled }))
|
|
231
|
+
} _this.timeLists.push(el); }, id: idx, onFocus: function () { _this.handleListFocus(idx); }, onBlur: _this.handleListBlur, onChange: _this.handleChange, value: _this.value, disabled: disabled, show: _this.props.show }))
|
|
232
232
|
: React.createElement("div", { key: idx, className: "k-time-separator" }, part.pattern));
|
|
233
233
|
}))));
|
|
234
234
|
};
|
|
@@ -279,7 +279,8 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
279
279
|
}),
|
|
280
280
|
smoothScroll: PropTypes.bool,
|
|
281
281
|
tabIndex: PropTypes.number,
|
|
282
|
-
value: PropTypes.instanceOf(Date)
|
|
282
|
+
value: PropTypes.instanceOf(Date),
|
|
283
|
+
show: PropTypes.bool
|
|
283
284
|
};
|
|
284
285
|
TimePart.defaultProps = {
|
|
285
286
|
value: null,
|
|
@@ -369,7 +369,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
369
369
|
horizontal: 'left',
|
|
370
370
|
vertical: 'top'
|
|
371
371
|
} }, otherPopupSettings);
|
|
372
|
-
var timeSelector = (React.createElement(TimeSelector, { ref: this.setTimeSelectorRef, cancelButton: cancelButton, disabled: disabled, nowButton: nowButton, format: format, min: this.min, max: this.max, steps: steps, smoothScroll: smoothScroll, value: this.value, onChange: this.handleValueChange, onReject: this.handleValueReject }));
|
|
372
|
+
var timeSelector = (React.createElement(TimeSelector, { ref: this.setTimeSelectorRef, show: this.show, cancelButton: cancelButton, disabled: disabled, nowButton: nowButton, format: format, min: this.min, max: this.max, steps: steps, smoothScroll: smoothScroll, value: this.value, onChange: this.handleValueChange, onReject: this.handleValueReject }));
|
|
373
373
|
var localizationService = provideLocalizationService(this);
|
|
374
374
|
var toggleClockMessage = localizationService.toLanguageString(toggleClock, messages[toggleClock]);
|
|
375
375
|
var toggleTimeMessage = localizationService
|
|
@@ -36,6 +36,7 @@ export interface TimeSelectorProps {
|
|
|
36
36
|
tabIndex?: number;
|
|
37
37
|
value?: Date | null;
|
|
38
38
|
boundRange?: boolean;
|
|
39
|
+
show?: boolean;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* @hidden
|
|
@@ -80,6 +81,7 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
80
81
|
smoothScroll: PropTypes.Requireable<boolean>;
|
|
81
82
|
tabIndex: PropTypes.Requireable<number>;
|
|
82
83
|
value: PropTypes.Requireable<Date>;
|
|
84
|
+
show: PropTypes.Requireable<boolean>;
|
|
83
85
|
};
|
|
84
86
|
static defaultProps: {
|
|
85
87
|
value: any;
|
|
@@ -175,7 +175,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
175
175
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: classNames('k-timeselector k-reset', className, {
|
|
176
176
|
'k-state-disabled': disabled
|
|
177
177
|
}), onKeyDown: this.handleKeyDown },
|
|
178
|
-
React.createElement(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 }),
|
|
178
|
+
React.createElement(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 }),
|
|
179
179
|
React.createElement("div", { className: "k-time-footer k-actions k-hstack k-justify-content-stretch" },
|
|
180
180
|
cancelButton &&
|
|
181
181
|
React.createElement(Button, __assign({ type: "button", ref: function (btn) { _this._cancelButton = btn; }, className: "k-time-cancel", onClick: this.handleReject, title: cancelMessage }, { 'aria-label': cancelMessage }), cancelMessage),
|
|
@@ -228,7 +228,8 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
228
228
|
}),
|
|
229
229
|
smoothScroll: PropTypes.bool,
|
|
230
230
|
tabIndex: PropTypes.number,
|
|
231
|
-
value: PropTypes.instanceOf(Date)
|
|
231
|
+
value: PropTypes.instanceOf(Date),
|
|
232
|
+
show: PropTypes.bool
|
|
232
233
|
};
|
|
233
234
|
TimeSelector.defaultProps = {
|
|
234
235
|
value: null,
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-dateinputs',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1638880201,
|
|
11
11
|
version: '',
|
|
12
12
|
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
13
|
};
|
|
@@ -19,6 +19,7 @@ export interface TimeListProps {
|
|
|
19
19
|
smoothScroll?: boolean;
|
|
20
20
|
boundRange?: boolean;
|
|
21
21
|
disabled?: boolean;
|
|
22
|
+
show?: boolean;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* @hidden
|
|
@@ -32,6 +33,7 @@ export declare class TimeList extends React.Component<TimeListProps, {}> {
|
|
|
32
33
|
step: (props: TimeListProps, propName: string, componentName: string) => any;
|
|
33
34
|
value: PropTypes.Requireable<Date>;
|
|
34
35
|
smoothScroll: PropTypes.Requireable<boolean>;
|
|
36
|
+
show: PropTypes.Requireable<boolean>;
|
|
35
37
|
};
|
|
36
38
|
static defaultProps: {
|
|
37
39
|
boundRange: boolean;
|
|
@@ -126,7 +126,7 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
126
126
|
if (!_this._element) {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
if (document && document.activeElement !== _this._element) {
|
|
129
|
+
if (document && document.activeElement !== _this._element && _this.props.show) {
|
|
130
130
|
_this._element.focus({ preventScroll: true });
|
|
131
131
|
}
|
|
132
132
|
};
|
|
@@ -264,7 +264,8 @@ var TimeList = /** @class */ (function (_super) {
|
|
|
264
264
|
return null;
|
|
265
265
|
},
|
|
266
266
|
value: PropTypes.instanceOf(Date),
|
|
267
|
-
smoothScroll: PropTypes.bool
|
|
267
|
+
smoothScroll: PropTypes.bool,
|
|
268
|
+
show: PropTypes.bool
|
|
268
269
|
};
|
|
269
270
|
TimeList.defaultProps = {
|
|
270
271
|
boundRange: false,
|
|
@@ -36,6 +36,7 @@ export interface TimePartProps {
|
|
|
36
36
|
onNowClick?: any;
|
|
37
37
|
className?: string;
|
|
38
38
|
onMount?: (value: Date) => void;
|
|
39
|
+
show?: boolean;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* @hidden
|
|
@@ -78,6 +79,7 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
78
79
|
smoothScroll: PropTypes.Requireable<boolean>;
|
|
79
80
|
tabIndex: PropTypes.Requireable<number>;
|
|
80
81
|
value: PropTypes.Requireable<Date>;
|
|
82
|
+
show: PropTypes.Requireable<boolean>;
|
|
81
83
|
};
|
|
82
84
|
static defaultProps: {
|
|
83
85
|
value: any;
|
|
@@ -230,7 +230,7 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
230
230
|
React.createElement("span", { className: "k-title", onMouseDown: function (e) { e.preventDefault(); } }, _this.intl.dateFieldName(part)),
|
|
231
231
|
React.createElement(TimeList_1.TimeList, { min: _this.min, max: _this.max, boundRange: _this.boundRange, part: part, step: part.type ? _this.steps[part.type] : 1, smoothScroll: smoothScroll, ref: function (el) { if (!el) {
|
|
232
232
|
return;
|
|
233
|
-
} _this.timeLists.push(el); }, id: idx, onFocus: function () { _this.handleListFocus(idx); }, onBlur: _this.handleListBlur, onChange: _this.handleChange, value: _this.value, disabled: disabled }))
|
|
233
|
+
} _this.timeLists.push(el); }, id: idx, onFocus: function () { _this.handleListFocus(idx); }, onBlur: _this.handleListBlur, onChange: _this.handleChange, value: _this.value, disabled: disabled, show: _this.props.show }))
|
|
234
234
|
: React.createElement("div", { key: idx, className: "k-time-separator" }, part.pattern));
|
|
235
235
|
}))));
|
|
236
236
|
};
|
|
@@ -281,7 +281,8 @@ var TimePart = /** @class */ (function (_super) {
|
|
|
281
281
|
}),
|
|
282
282
|
smoothScroll: PropTypes.bool,
|
|
283
283
|
tabIndex: PropTypes.number,
|
|
284
|
-
value: PropTypes.instanceOf(Date)
|
|
284
|
+
value: PropTypes.instanceOf(Date),
|
|
285
|
+
show: PropTypes.bool
|
|
285
286
|
};
|
|
286
287
|
TimePart.defaultProps = {
|
|
287
288
|
value: null,
|
|
@@ -371,7 +371,7 @@ var TimePickerWithoutContext = /** @class */ (function (_super) {
|
|
|
371
371
|
horizontal: 'left',
|
|
372
372
|
vertical: 'top'
|
|
373
373
|
} }, otherPopupSettings);
|
|
374
|
-
var timeSelector = (React.createElement(TimeSelector_1.TimeSelector, { ref: this.setTimeSelectorRef, cancelButton: cancelButton, disabled: disabled, nowButton: nowButton, format: format, min: this.min, max: this.max, steps: steps, smoothScroll: smoothScroll, value: this.value, onChange: this.handleValueChange, onReject: this.handleValueReject }));
|
|
374
|
+
var timeSelector = (React.createElement(TimeSelector_1.TimeSelector, { ref: this.setTimeSelectorRef, show: this.show, cancelButton: cancelButton, disabled: disabled, nowButton: nowButton, format: format, min: this.min, max: this.max, steps: steps, smoothScroll: smoothScroll, value: this.value, onChange: this.handleValueChange, onReject: this.handleValueReject }));
|
|
375
375
|
var localizationService = kendo_react_intl_1.provideLocalizationService(this);
|
|
376
376
|
var toggleClockMessage = localizationService.toLanguageString(messages_1.toggleClock, messages_1.messages[messages_1.toggleClock]);
|
|
377
377
|
var toggleTimeMessage = localizationService
|
|
@@ -36,6 +36,7 @@ export interface TimeSelectorProps {
|
|
|
36
36
|
tabIndex?: number;
|
|
37
37
|
value?: Date | null;
|
|
38
38
|
boundRange?: boolean;
|
|
39
|
+
show?: boolean;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* @hidden
|
|
@@ -80,6 +81,7 @@ export declare class TimeSelector extends React.Component<TimeSelectorProps, Tim
|
|
|
80
81
|
smoothScroll: PropTypes.Requireable<boolean>;
|
|
81
82
|
tabIndex: PropTypes.Requireable<number>;
|
|
82
83
|
value: PropTypes.Requireable<Date>;
|
|
84
|
+
show: PropTypes.Requireable<boolean>;
|
|
83
85
|
};
|
|
84
86
|
static defaultProps: {
|
|
85
87
|
value: any;
|
|
@@ -177,7 +177,7 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
177
177
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, tabIndex: !disabled ? tabIndex || 0 : undefined, className: kendo_react_common_1.classNames('k-timeselector k-reset', className, {
|
|
178
178
|
'k-state-disabled': disabled
|
|
179
179
|
}), onKeyDown: this.handleKeyDown },
|
|
180
|
-
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 }),
|
|
180
|
+
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 }),
|
|
181
181
|
React.createElement("div", { className: "k-time-footer k-actions k-hstack k-justify-content-stretch" },
|
|
182
182
|
cancelButton &&
|
|
183
183
|
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),
|
|
@@ -230,7 +230,8 @@ var TimeSelector = /** @class */ (function (_super) {
|
|
|
230
230
|
}),
|
|
231
231
|
smoothScroll: PropTypes.bool,
|
|
232
232
|
tabIndex: PropTypes.number,
|
|
233
|
-
value: PropTypes.instanceOf(Date)
|
|
233
|
+
value: PropTypes.instanceOf(Date),
|
|
234
|
+
show: PropTypes.bool
|
|
234
235
|
};
|
|
235
236
|
TimeSelector.defaultProps = {
|
|
236
237
|
value: null,
|