@progress/kendo-react-dateinputs 5.13.0-dev.202304180747 → 5.13.0-dev.202304200917

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.
@@ -91,6 +91,10 @@ export interface DateInputProps<T extends DateInput = any> extends FormComponent
91
91
  * @default `solid`
92
92
  */
93
93
  fillMode?: null | 'solid' | 'flat' | 'outline';
94
+ /**
95
+ * Determines whether the DateInput is in its read-only state.
96
+ */
97
+ readonly?: boolean;
94
98
  }
95
99
  /** @hidden */
96
100
  export declare class DateInputWithoutContext extends React.Component<DateInputProps, {
@@ -278,7 +278,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
278
278
  _b['k-required'] = _this.required,
279
279
  _b['k-disabled'] = _this.props.disabled,
280
280
  _b), _this.props.className), onFocus: onFocus, onBlur: onBlur },
281
- React.createElement("input", { role: _this.props.ariaRole || 'textbox', tabIndex: _this.props.tabIndex, disabled: _this.props.disabled, title: _this.props.title !== undefined ? _this.props.title : currentText, type: "text", spellCheck: false, autoComplete: "off", autoCorrect: "off", className: "k-input-inner", id: inputId, "aria-label": _this.props.ariaLabel, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, "aria-haspopup": _this.props.ariaHasPopup, "aria-disabled": _this.props.disabled, "aria-expanded": _this.props.ariaExpanded, "aria-controls": _this.props.ariaControls, onWheel: _this.wheel, onClick: _this.elementClick, onInput: _this.elementChange, onPaste: _this.handlePaste, onKeyDown: _this.elementKeyDown, onChange: noop, value: text, placeholder: placeholder, name: name, ref: function (input) { return _this._element = input; } }),
281
+ React.createElement("input", { role: _this.props.ariaRole || 'textbox', readOnly: _this.props.readonly, tabIndex: _this.props.tabIndex, disabled: _this.props.disabled, title: _this.props.title !== undefined ? _this.props.title : currentText, type: "text", spellCheck: false, autoComplete: "off", autoCorrect: "off", className: "k-input-inner", id: inputId, "aria-label": _this.props.ariaLabel, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, "aria-haspopup": _this.props.ariaHasPopup, "aria-disabled": _this.props.disabled, "aria-expanded": _this.props.ariaExpanded, "aria-controls": _this.props.ariaControls, onWheel: _this.wheel, onClick: _this.elementClick, onInput: _this.elementChange, onPaste: _this.handlePaste, onKeyDown: _this.elementKeyDown, onChange: noop, value: text, placeholder: placeholder, name: name, ref: function (input) { return _this._element = input; } }),
282
282
  _this.props.children,
283
283
  _this.props.spinners && (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: _this.spinnersMouseDown },
284
284
  React.createElement(Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-increase", icon: 'caret-alt-up', svgIcon: caretAltUpIcon, "aria-label": localizationService.toLanguageString(increaseValue, messages[increaseValue]), title: localizationService.toLanguageString(increaseValue, messages[increaseValue]), onClick: _this.increasePart }),
@@ -107,6 +107,8 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
107
107
  max: max,
108
108
  weekNumber: weekNumber,
109
109
  focusedDate: focusedDate,
110
+ className: _this.mobileMode ? 'k-calendar-lg' : '',
111
+ navigation: _this.mobileMode ? false : true,
110
112
  onChange: _this.handleCalendarValueChange
111
113
  };
112
114
  if (_this.mobileMode) {
@@ -460,7 +462,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
460
462
  };
461
463
  var toggleButtonTitle = provideLocalizationService(this)
462
464
  .toLanguageString(toggleCalendar, messages[toggleCalendar]);
463
- var datepicker = (React.createElement(AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
465
+ var datepicker = (React.createElement(AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.mobileMode ? undefined : this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
464
466
  var _b;
465
467
  var onFocus = _a.onFocus, onBlur = _a.onBlur;
466
468
  return (React.createElement(React.Fragment, null,
@@ -471,8 +473,8 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
471
473
  _b['k-invalid'] = !isValid,
472
474
  _b['k-required'] = _this.required,
473
475
  _b['k-disabled'] = _this.props.disabled,
474
- _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
475
- React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
476
+ _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur, onClick: _this.mobileMode ? _this.handleIconClick : undefined },
477
+ React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', readonly: _this.mobileMode, ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
476
478
  React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", svgIcon: calendarIcon, title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
477
479
  !renderAdaptive && _this.renderPopup()),
478
480
  renderAdaptive && _this.renderAdaptivePopup()));
@@ -122,9 +122,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
122
122
  ariaRole: PropTypes.Requireable<string>;
123
123
  ariaHasPopup: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
124
124
  ariaExpanded: PropTypes.Requireable<NonNullable<boolean | null | undefined>>;
125
- onChange: PropTypes.Requireable<(...args: any[]) => any>; /**
126
- * Gets the wrapping element of the DateRangePicker.
127
- */
125
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
128
126
  validationMessage: PropTypes.Requireable<string>;
129
127
  required: PropTypes.Requireable<boolean>;
130
128
  validate: PropTypes.Requireable<boolean>;
@@ -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: 1681802588,
8
+ publishDate: 1681980799,
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
  };
@@ -91,6 +91,10 @@ export interface DateInputProps<T extends DateInput = any> extends FormComponent
91
91
  * @default `solid`
92
92
  */
93
93
  fillMode?: null | 'solid' | 'flat' | 'outline';
94
+ /**
95
+ * Determines whether the DateInput is in its read-only state.
96
+ */
97
+ readonly?: boolean;
94
98
  }
95
99
  /** @hidden */
96
100
  export declare class DateInputWithoutContext extends React.Component<DateInputProps, {
@@ -281,7 +281,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
281
281
  _b['k-required'] = _this.required,
282
282
  _b['k-disabled'] = _this.props.disabled,
283
283
  _b), _this.props.className), onFocus: onFocus, onBlur: onBlur },
284
- React.createElement("input", { role: _this.props.ariaRole || 'textbox', tabIndex: _this.props.tabIndex, disabled: _this.props.disabled, title: _this.props.title !== undefined ? _this.props.title : currentText, type: "text", spellCheck: false, autoComplete: "off", autoCorrect: "off", className: "k-input-inner", id: inputId, "aria-label": _this.props.ariaLabel, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, "aria-haspopup": _this.props.ariaHasPopup, "aria-disabled": _this.props.disabled, "aria-expanded": _this.props.ariaExpanded, "aria-controls": _this.props.ariaControls, onWheel: _this.wheel, onClick: _this.elementClick, onInput: _this.elementChange, onPaste: _this.handlePaste, onKeyDown: _this.elementKeyDown, onChange: kendo_react_common_1.noop, value: text, placeholder: placeholder, name: name, ref: function (input) { return _this._element = input; } }),
284
+ React.createElement("input", { role: _this.props.ariaRole || 'textbox', readOnly: _this.props.readonly, tabIndex: _this.props.tabIndex, disabled: _this.props.disabled, title: _this.props.title !== undefined ? _this.props.title : currentText, type: "text", spellCheck: false, autoComplete: "off", autoCorrect: "off", className: "k-input-inner", id: inputId, "aria-label": _this.props.ariaLabel, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, "aria-haspopup": _this.props.ariaHasPopup, "aria-disabled": _this.props.disabled, "aria-expanded": _this.props.ariaExpanded, "aria-controls": _this.props.ariaControls, onWheel: _this.wheel, onClick: _this.elementClick, onInput: _this.elementChange, onPaste: _this.handlePaste, onKeyDown: _this.elementKeyDown, onChange: kendo_react_common_1.noop, value: text, placeholder: placeholder, name: name, ref: function (input) { return _this._element = input; } }),
285
285
  _this.props.children,
286
286
  _this.props.spinners && (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: _this.spinnersMouseDown },
287
287
  React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", rounded: null, className: "k-spinner-increase", icon: 'caret-alt-up', svgIcon: kendo_svg_icons_1.caretAltUpIcon, "aria-label": localizationService.toLanguageString(messages_1.increaseValue, messages_1.messages[messages_1.increaseValue]), title: localizationService.toLanguageString(messages_1.increaseValue, messages_1.messages[messages_1.increaseValue]), onClick: _this.increasePart }),
@@ -110,6 +110,8 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
110
110
  max: max,
111
111
  weekNumber: weekNumber,
112
112
  focusedDate: focusedDate,
113
+ className: _this.mobileMode ? 'k-calendar-lg' : '',
114
+ navigation: _this.mobileMode ? false : true,
113
115
  onChange: _this.handleCalendarValueChange
114
116
  };
115
117
  if (_this.mobileMode) {
@@ -463,7 +465,7 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
463
465
  };
464
466
  var toggleButtonTitle = (0, kendo_react_intl_1.provideLocalizationService)(this)
465
467
  .toLanguageString(messages_1.toggleCalendar, messages_1.messages[messages_1.toggleCalendar]);
466
- var datepicker = (React.createElement(kendo_react_common_1.AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
468
+ var datepicker = (React.createElement(kendo_react_common_1.AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.mobileMode ? undefined : this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
467
469
  var _b;
468
470
  var onFocus = _a.onFocus, onBlur = _a.onBlur;
469
471
  return (React.createElement(React.Fragment, null,
@@ -474,8 +476,8 @@ var DatePickerWithoutContext = /** @class */ (function (_super) {
474
476
  _b['k-invalid'] = !isValid,
475
477
  _b['k-required'] = _this.required,
476
478
  _b['k-disabled'] = _this.props.disabled,
477
- _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur },
478
- React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
479
+ _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur, onClick: _this.mobileMode ? _this.handleIconClick : undefined },
480
+ React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', readonly: _this.mobileMode, ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
479
481
  React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", svgIcon: kendo_svg_icons_1.calendarIcon, title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
480
482
  !renderAdaptive && _this.renderPopup()),
481
483
  renderAdaptive && _this.renderAdaptivePopup()));
@@ -122,9 +122,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
122
122
  ariaRole: PropTypes.Requireable<string>;
123
123
  ariaHasPopup: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
124
124
  ariaExpanded: PropTypes.Requireable<NonNullable<boolean | null | undefined>>;
125
- onChange: PropTypes.Requireable<(...args: any[]) => any>; /**
126
- * Gets the wrapping element of the DateRangePicker.
127
- */
125
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
128
126
  validationMessage: PropTypes.Requireable<string>;
129
127
  required: PropTypes.Requireable<boolean>;
130
128
  validate: PropTypes.Requireable<boolean>;
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-dateinputs',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1681802588,
11
+ publishDate: 1681980799,
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
  };