@progress/kendo-react-dateinputs 13.3.0 → 13.4.0-develop.2

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.
Files changed (125) hide show
  1. package/PopupSettings.d.ts +22 -0
  2. package/calendar/components/Calendar.d.ts +202 -0
  3. package/calendar/components/Calendar.mjs +7 -7
  4. package/calendar/components/CalendarCell.d.ts +71 -0
  5. package/calendar/components/CalendarHeaderTitle.d.ts +38 -0
  6. package/calendar/components/CalendarNavigationItem.d.ts +39 -0
  7. package/calendar/components/CalendarWeekCell.d.ts +42 -0
  8. package/calendar/components/Header.d.ts +65 -0
  9. package/calendar/components/Header.mjs +3 -3
  10. package/calendar/components/HorizontalViewList.d.ts +80 -0
  11. package/calendar/components/HorizontalViewList.mjs +3 -3
  12. package/calendar/components/MultiViewCalendar.d.ts +226 -0
  13. package/calendar/components/MultiViewCalendar.js +1 -1
  14. package/calendar/components/MultiViewCalendar.mjs +17 -17
  15. package/calendar/components/Navigation.d.ts +85 -0
  16. package/calendar/components/TodayCommand.d.ts +46 -0
  17. package/calendar/components/TodayCommand.mjs +3 -3
  18. package/calendar/components/View.d.ts +101 -0
  19. package/calendar/components/ViewList.d.ts +128 -0
  20. package/calendar/models/ActiveView.d.ts +11 -0
  21. package/calendar/models/CalendarSettings.d.ts +256 -0
  22. package/calendar/models/CalendarViewEnum.d.ts +16 -0
  23. package/calendar/models/CellContext.d.ts +72 -0
  24. package/calendar/models/MultiViewCalendarMode.d.ts +16 -0
  25. package/calendar/models/MultiViewCalendarSettings.d.ts +129 -0
  26. package/calendar/models/NavigationAction.d.ts +22 -0
  27. package/calendar/models/SelectionRange.d.ts +24 -0
  28. package/calendar/models/SelectionRangeEnd.d.ts +11 -0
  29. package/calendar/models/ViewService.d.ts +32 -0
  30. package/calendar/models/WeekDaysFormat.d.ts +11 -0
  31. package/calendar/models/index.d.ts +18 -0
  32. package/calendar/services/BusViewService.d.ts +28 -0
  33. package/calendar/services/CenturyViewService.d.ts +32 -0
  34. package/calendar/services/CenturyViewService.mjs +4 -4
  35. package/calendar/services/DOMService.d.ts +36 -0
  36. package/calendar/services/DecadeViewService.d.ts +34 -0
  37. package/calendar/services/DecadeViewService.mjs +4 -4
  38. package/calendar/services/MonthViewService.d.ts +40 -0
  39. package/calendar/services/MonthViewService.mjs +2 -2
  40. package/calendar/services/NavigationService.d.ts +21 -0
  41. package/calendar/services/ScrollSyncService.d.ts +28 -0
  42. package/calendar/services/WeekNamesService.d.ts +17 -0
  43. package/calendar/services/YearViewService.d.ts +38 -0
  44. package/calendar/services/YearViewService.mjs +2 -2
  45. package/calendar/services/index.d.ts +17 -0
  46. package/calendar/utils/ScrollSync.d.ts +20 -0
  47. package/codemods/utils.js +1 -8
  48. package/codemods/v11/dateinput-handle.js +1 -8
  49. package/codemods/v11/datepicker-handle.js +1 -8
  50. package/common/AdaptiveMode.d.ts +22 -0
  51. package/common/ClearButton.d.ts +20 -0
  52. package/dateinput/DateInput.d.ts +248 -0
  53. package/dateinput/DateInput.js +1 -1
  54. package/dateinput/DateInput.mjs +63 -65
  55. package/dateinput/dateInputIntl.d.ts +30 -0
  56. package/dateinput/models/DateInputSettings.d.ts +107 -0
  57. package/dateinput/models/common-package-props.d.ts +34 -0
  58. package/dateinput/models/dateinput-options.d.ts +105 -0
  59. package/dateinput/models/format-placeholder.d.ts +46 -0
  60. package/dateinput/models/incremental-steps.d.ts +24 -0
  61. package/dateinput/models/index.d.ts +15 -0
  62. package/dateinput/models/kendo-date.d.ts +60 -0
  63. package/dateinput/models/mask.d.ts +14 -0
  64. package/dateinput/models/selection.d.ts +14 -0
  65. package/dateinput/utils.d.ts +31 -0
  66. package/datepicker/DatePicker.d.ts +279 -0
  67. package/datepicker/DatePicker.js +1 -1
  68. package/datepicker/DatePicker.mjs +68 -72
  69. package/datepicker/ToggleButton.d.ts +17 -0
  70. package/datepicker/models/DatePickerSettings.d.ts +248 -0
  71. package/datepicker/models/index.d.ts +9 -0
  72. package/daterangepicker/DateRangePicker.d.ts +357 -0
  73. package/daterangepicker/DateRangePicker.mjs +13 -13
  74. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
  75. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
  76. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
  77. package/daterangepicker/models/DateRangePickerSettings.d.ts +129 -0
  78. package/daterangepicker/models/index.d.ts +12 -0
  79. package/datetimepicker/DateTimePicker.d.ts +420 -0
  80. package/datetimepicker/DateTimePicker.js +1 -1
  81. package/datetimepicker/DateTimePicker.mjs +16 -20
  82. package/datetimepicker/DateTimeSelector.d.ts +111 -0
  83. package/datetimepicker/DateTimeSelector.mjs +3 -3
  84. package/datetimepicker/models/DateTimePickerSettings.d.ts +154 -0
  85. package/datetimepicker/models/index.d.ts +9 -0
  86. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  87. package/hooks/usePickerFloatingLabel.d.ts +27 -0
  88. package/index.d.mts +35 -4952
  89. package/index.d.ts +35 -4952
  90. package/messages/index.d.ts +132 -0
  91. package/package-metadata.d.ts +12 -0
  92. package/package-metadata.js +1 -1
  93. package/package-metadata.mjs +10 -16
  94. package/package.json +8 -8
  95. package/timepicker/TimeList.d.ts +97 -0
  96. package/timepicker/TimeList.js +5 -5
  97. package/timepicker/TimeList.mjs +122 -112
  98. package/timepicker/TimePart.d.ts +146 -0
  99. package/timepicker/TimePart.mjs +3 -3
  100. package/timepicker/TimePicker.d.ts +417 -0
  101. package/timepicker/TimePicker.js +1 -1
  102. package/timepicker/TimePicker.mjs +64 -68
  103. package/timepicker/TimeSelector.d.ts +149 -0
  104. package/timepicker/TimeSelector.mjs +3 -3
  105. package/timepicker/models/IncrementalSteps.d.ts +18 -0
  106. package/timepicker/models/ListItem.d.ts +14 -0
  107. package/timepicker/models/ListService.d.ts +22 -0
  108. package/timepicker/models/ListServiceSettings.d.ts +19 -0
  109. package/timepicker/models/TimePart.d.ts +17 -0
  110. package/timepicker/models/TimePickerSettings.d.ts +137 -0
  111. package/timepicker/models/index.d.ts +14 -0
  112. package/timepicker/services/DOMService.d.ts +18 -0
  113. package/timepicker/services/DayPeriodService.d.ts +54 -0
  114. package/timepicker/services/HoursService.d.ts +40 -0
  115. package/timepicker/services/MinutesService.d.ts +39 -0
  116. package/timepicker/services/SecondsService.d.ts +39 -0
  117. package/timepicker/services/index.d.ts +13 -0
  118. package/timepicker/utils.d.ts +63 -0
  119. package/timepicker/utils.mjs +1 -1
  120. package/utils.d.ts +103 -0
  121. package/utils.js +1 -1
  122. package/utils.mjs +46 -46
  123. package/virtualization/Virtualization.d.ts +125 -0
  124. package/virtualization/services/ScrollerService.d.ts +56 -0
  125. package/virtualization/services/index.d.ts +10 -0
@@ -11,44 +11,44 @@ import { cloneDate as D, isEqual as ke } from "@progress/kendo-date-math";
11
11
  import { Button as $ } from "@progress/kendo-react-buttons";
12
12
  import { caretAltUpIcon as _e, caretAltDownIcon as Fe } from "@progress/kendo-svg-icons";
13
13
  import { useInternationalization as He, useLocalization as Be } from "@progress/kendo-react-intl";
14
- import { useId as qe, useUnstyled as ze, usePropsContext as Q, classNames as h, uDateInput as O, createPropsContext as Ue, getActiveElement as ee } from "@progress/kendo-react-common";
14
+ import { createPropsContext as qe, useId as ze, useUnstyled as Ue, usePropsContext as Q, classNames as h, uDateInput as O, getActiveElement as ee } from "@progress/kendo-react-common";
15
15
  import { FloatingLabel as We } from "@progress/kendo-react-labels";
16
16
  import { DateInput as je } from "@progress/kendo-dateinputs-common";
17
- import { DEFAULT_FORMAT as Ke, DEFAULT_FORMAT_PLACEHOLDER as Je, isInRange as Ye } from "./utils.mjs";
18
- import { nullable as u, MAX_DATE as Xe, MIN_DATE as Ze, MIN_TIME as Ge, MAX_TIME as $e } from "../utils.mjs";
17
+ import { DEFAULT_FORMAT_PLACEHOLDER as Ke, DEFAULT_FORMAT as Je, isInRange as Ye } from "./utils.mjs";
18
+ import { MAX_TIME as Xe, MIN_TIME as Ze, MIN_DATE as Ge, MAX_DATE as $e, nullable as u } from "../utils.mjs";
19
19
  import { increaseValue as T, messages as M, decreaseValue as S } from "../messages/index.mjs";
20
20
  import { isInTimeRange as Qe } from "../timepicker/utils.mjs";
21
21
  import et from "../common/ClearButton.mjs";
22
22
  import { DateInputIntl as tt } from "./dateInputIntl.mjs";
23
23
  const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
24
24
  var G;
25
- const ae = qe(t.id), ie = He(), E = Be(), le = ze(), F = Q(te, t).unstyled || le, {
26
- format: P = l.format,
27
- size: oe = l.size,
28
- rounded: ue = l.rounded,
29
- fillMode: se = l.fillMode,
30
- formatPlaceholder: ce = l.formatPlaceholder,
31
- spinners: de = l.spinners,
32
- disabled: I = l.disabled,
33
- min: me = l.min,
34
- max: fe = l.max,
35
- minTime: ge = l.minTime,
36
- maxTime: ve = l.maxTime,
37
- validityStyles: ye = l.validityStyles,
38
- validationMessage: H = l.validationMessage,
39
- placeholder: f = l.placeholder,
40
- enableMouseWheel: be = l.enableMouseWheel,
41
- autoCorrectParts: he = l.autoCorrectParts,
42
- autoSwitchParts: Oe = l.autoSwitchParts,
43
- allowCaretMode: Ee = l.allowCaretMode,
44
- twoDigitYearMax: Ie = l.twoDigitYearMax,
45
- ariaHasPopup: xe = l.ariaHasPopup,
46
- autoFocus: g = l.autoFocus
25
+ const ae = ze(t.id), ie = He(), E = Be(), oe = Ue(), F = Q(te, t).unstyled || oe, {
26
+ format: P = o.format,
27
+ size: le = o.size,
28
+ rounded: ue = o.rounded,
29
+ fillMode: se = o.fillMode,
30
+ formatPlaceholder: ce = o.formatPlaceholder,
31
+ spinners: de = o.spinners,
32
+ disabled: I = o.disabled,
33
+ min: fe = o.min,
34
+ max: me = o.max,
35
+ minTime: ge = o.minTime,
36
+ maxTime: ve = o.maxTime,
37
+ validityStyles: ye = o.validityStyles,
38
+ validationMessage: H = o.validationMessage,
39
+ placeholder: m = o.placeholder,
40
+ enableMouseWheel: be = o.enableMouseWheel,
41
+ autoCorrectParts: he = o.autoCorrectParts,
42
+ autoSwitchParts: Oe = o.autoSwitchParts,
43
+ allowCaretMode: Ee = o.allowCaretMode,
44
+ twoDigitYearMax: Ie = o.twoDigitYearMax,
45
+ ariaHasPopup: xe = o.ariaHasPopup,
46
+ autoFocus: g = o.autoFocus
47
47
  } = Q(te, t), d = () => w.current !== void 0 ? w.current : a.current && a.current.value, B = () => {
48
48
  const n = a.current && a.current.currentText || "", i = d();
49
- return f != null && !Ae.focused && !i ? f : n;
49
+ return m != null && !Ae.focused && !i ? m : n;
50
50
  }, q = () => t.required !== void 0 ? t.required : !1, R = () => {
51
- const n = d() || t.value, i = me, b = fe, V = Ye(n, i, b) && Qe(n, ge, ve), k = H !== void 0, _ = (!q() || n != null) && V, Ve = t.valid !== void 0 ? t.valid : _;
51
+ const n = d() || t.value, i = fe, b = me, V = Ye(n, i, b) && Qe(n, ge, ve), k = H !== void 0, _ = (!q() || n != null) && V, Ve = t.valid !== void 0 ? t.valid : _;
52
52
  return {
53
53
  customError: k,
54
54
  rangeOverflow: n && b.getTime() < n.getTime() || !1,
@@ -57,14 +57,14 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
57
57
  valueMissing: n === null
58
58
  };
59
59
  }, Ce = () => {
60
- o.current && o.current.focus();
60
+ l.current && l.current.focus();
61
61
  }, z = () => new tt(ie), x = () => {
62
62
  const n = d();
63
63
  return {
64
64
  format: P,
65
65
  steps: t.steps,
66
66
  formatPlaceholder: ce,
67
- placeholder: f,
67
+ placeholder: m,
68
68
  selectPreviousSegmentOnBackspace: !0,
69
69
  value: t.value || n,
70
70
  intlService: z(),
@@ -84,12 +84,12 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
84
84
  inputFormat: n,
85
85
  displayFormat: n
86
86
  }, U = (n) => {
87
- w.current = d(), Ne(), m.current = n, w.current = void 0;
87
+ w.current = d(), Ne(), f.current = n, w.current = void 0;
88
88
  }, W = (n) => {
89
89
  t.onChange && t.onChange(n);
90
90
  }, j = (n) => {
91
- ee(document) === o.current && n.preventDefault();
92
- }, Se = () => new je(o.current, {
91
+ ee(document) === l.current && n.preventDefault();
92
+ }, Se = () => new je(l.current, {
93
93
  ...x(),
94
94
  format: Me(x().format),
95
95
  events: {
@@ -99,39 +99,39 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
99
99
  click: W
100
100
  }
101
101
  }), K = () => {
102
- o.current && o.current.setCustomValidity && o.current.setCustomValidity(
103
- R().valid ? "" : H || l.validationMessage
102
+ l.current && l.current.setCustomValidity && l.current.setCustomValidity(
103
+ R().valid ? "" : H || o.validationMessage
104
104
  );
105
105
  }, J = r.useCallback(
106
106
  (n) => {
107
107
  var i;
108
- if (o.current && g && n) {
108
+ if (l.current && g && n) {
109
109
  const b = (a == null ? void 0 : a.current).currentText, V = (a == null ? void 0 : a.current).currentText.search(/[^a-zA-Z]/), k = b[V], _ = b.split(k)[0].length;
110
110
  s.current && s.current.classList.add("k-focus"), (i = a == null ? void 0 : a.current) == null || i.selectNearestSegment(_);
111
111
  }
112
112
  },
113
113
  [g]
114
114
  ), Pe = (n) => {
115
- !o.current || !a.current || U(n);
115
+ !l.current || !a.current || U(n);
116
116
  }, Re = (n) => {
117
117
  n.preventDefault();
118
118
  const i = ee(document);
119
- o.current && i !== o.current && o.current.focus({ preventScroll: !0 });
119
+ l.current && i !== l.current && l.current.focus({ preventScroll: !0 });
120
120
  }, c = (n) => {
121
121
  const i = d();
122
- m.current && t.onChange && !ke(m.current.oldValue, i) && t.onChange.call(void 0, {
122
+ f.current && t.onChange && !ke(f.current.oldValue, i) && t.onChange.call(void 0, {
123
123
  syntheticEvent: n,
124
- nativeEvent: m.current.event,
125
- value: m.current.value,
124
+ nativeEvent: f.current.event,
125
+ value: f.current.value,
126
126
  target: C.current
127
- }), m.current = null;
127
+ }), f.current = null;
128
128
  }, Le = (n) => {
129
129
  var i;
130
130
  (i = a.current) == null || i.modifyDateSegmentValue(1), c(n);
131
131
  }, pe = (n) => {
132
132
  var i;
133
133
  (i = a.current) == null || i.modifyDateSegmentValue(-1), c(n);
134
- }, C = r.useRef(null), o = r.useRef(null), s = r.useRef(null);
134
+ }, C = r.useRef(null), l = r.useRef(null), s = r.useRef(null);
135
135
  r.useImperativeHandle(
136
136
  C,
137
137
  () => ({
@@ -143,7 +143,7 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
143
143
  return B();
144
144
  },
145
145
  get element() {
146
- return o.current;
146
+ return l.current;
147
147
  },
148
148
  get name() {
149
149
  return t.name;
@@ -159,13 +159,13 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
159
159
  updateOnPaste: Pe
160
160
  })
161
161
  ), r.useImperativeHandle(re, () => C.current);
162
- const a = r.useRef(null), L = r.useRef(null), p = r.useRef(!1), w = r.useRef(null), m = r.useRef(null), v = r.useRef(t), [Ae, A] = r.useState({ focused: !1 }), [, Ne] = r.useReducer((n) => n + 1, 0);
162
+ const a = r.useRef(null), L = r.useRef(null), p = r.useRef(!1), w = r.useRef(null), f = r.useRef(null), v = r.useRef(t), [Ae, A] = r.useState({ focused: !1 }), [, Ne] = r.useReducer((n) => n + 1, 0);
163
163
  r.useLayoutEffect(() => {
164
164
  p.current || (a.current = Se(), L.current = a.current.dateObject, p.current = !0);
165
165
  }, []), r.useEffect(() => (K(), p.current || s.current && s.current.addEventListener("wheel", j, { passive: !1 }), g && (A({ focused: !0 }), J(!0)), () => {
166
166
  s.current && s.current.removeEventListener("wheel", j);
167
167
  }), []), r.useEffect(() => {
168
- K(), a.current && ((Te(v.current.format, P) || v.current.readonly !== t.readonly || JSON.stringify(v.current.steps) !== JSON.stringify(t.steps) || z().locale !== a.current.options.intlService.locale) && a.current.setOptions(x(), !0), v.current.value !== t.value && (L.current.getValue() !== null || t.value !== null) && L.current.setValue(t.value), t.ariaExpanded !== void 0 && t.ariaExpanded && (a.current.options.placeholder = null), t.ariaExpanded !== void 0 && !t.ariaExpanded && (a.current.options.placeholder = f), a.current.refreshElementValue(), v.current = {
168
+ K(), a.current && ((Te(v.current.format, P) || v.current.readonly !== t.readonly || JSON.stringify(v.current.steps) !== JSON.stringify(t.steps) || z().locale !== a.current.options.intlService.locale) && a.current.setOptions(x(), !0), v.current.value !== t.value && (L.current.getValue() !== null || t.value !== null) && L.current.setValue(t.value), t.ariaExpanded !== void 0 && t.ariaExpanded && (a.current.options.placeholder = null), t.ariaExpanded !== void 0 && !t.ariaExpanded && (a.current.options.placeholder = m), a.current.refreshElementValue(), v.current = {
169
169
  format: P,
170
170
  readonly: t.readonly,
171
171
  ariaExpanded: t.ariaExpanded,
@@ -186,7 +186,7 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
186
186
  className: h(
187
187
  O.wrapper({
188
188
  c: y,
189
- size: oe,
189
+ size: le,
190
190
  fillMode: se,
191
191
  rounded: ue,
192
192
  disabled: I,
@@ -200,7 +200,7 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
200
200
  "input",
201
201
  {
202
202
  ref: (n) => {
203
- o.current = n;
203
+ l.current = n;
204
204
  },
205
205
  role: t.ariaRole || "textbox",
206
206
  readOnly: t.readonly,
@@ -240,7 +240,6 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
240
240
  {
241
241
  tabIndex: -1,
242
242
  type: "button",
243
- rounded: null,
244
243
  className: h(O.spinnerIncrease({ c: y })),
245
244
  icon: "caret-alt-up",
246
245
  svgIcon: _e,
@@ -253,7 +252,6 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
253
252
  {
254
253
  tabIndex: -1,
255
254
  type: "button",
256
- rounded: null,
257
255
  className: h(O.spinnerDecrease({ c: y })),
258
256
  icon: "caret-alt-down",
259
257
  svgIcon: Fe,
@@ -268,7 +266,7 @@ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
268
266
  {
269
267
  label: t.label,
270
268
  editorId: Y,
271
- editorValue: (G = o.current) == null ? void 0 : G.value,
269
+ editorValue: (G = l.current) == null ? void 0 : G.value,
272
270
  editorValid: N,
273
271
  editorDisabled: I,
274
272
  children: Z,
@@ -343,24 +341,24 @@ ne.propTypes = {
343
341
  validationMessage: e.string,
344
342
  required: e.bool,
345
343
  valid: e.bool,
346
- size: e.oneOf([null, "small", "medium", "large"]),
347
- rounded: e.oneOf([null, "small", "medium", "large", "full"]),
348
- fillMode: e.oneOf([null, "solid", "flat", "outline"]),
344
+ size: e.oneOf(["small", "medium", "large"]),
345
+ rounded: e.oneOf(["small", "medium", "large", "full"]),
346
+ fillMode: e.oneOf(["solid", "flat", "outline"]),
349
347
  autoFocus: e.bool,
350
348
  inputAttributes: e.object
351
349
  };
352
- const l = {
353
- format: Ke,
354
- size: "medium",
355
- rounded: "medium",
356
- fillMode: "solid",
357
- formatPlaceholder: Je,
350
+ const o = {
351
+ format: Je,
352
+ size: void 0,
353
+ rounded: void 0,
354
+ fillMode: void 0,
355
+ formatPlaceholder: Ke,
358
356
  spinners: !1,
359
357
  disabled: !1,
360
- max: D(Xe),
361
- min: D(Ze),
362
- minTime: D(Ge),
363
- maxTime: D($e),
358
+ max: D($e),
359
+ min: D(Ge),
360
+ minTime: D(Ze),
361
+ maxTime: D(Xe),
364
362
  validityStyles: !0,
365
363
  validationMessage: nt,
366
364
  placeholder: null,
@@ -371,10 +369,10 @@ const l = {
371
369
  twoDigitYearMax: 68,
372
370
  ariaHasPopup: "grid",
373
371
  autoFocus: !1
374
- }, te = Ue();
372
+ }, te = qe();
375
373
  ne.displayName = "KendoReactDateInput";
376
374
  export {
377
375
  ne as DateInput,
378
376
  te as DateInputPropsContext,
379
- l as dateInputDefaultProps
377
+ o as dateInputDefaultProps
380
378
  };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DateFieldNameOptions, DateFormatOptions, DateFormatPart, NumberFormatOptions } from '@progress/kendo-intl';
9
+ import { IntlService } from '@progress/kendo-react-intl';
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare class DateInputIntl {
14
+ private service;
15
+ format: (format: string, ...values: any[]) => string;
16
+ toString: (value: any, format: any, localeId?: string) => string;
17
+ formatDate: (value: Date, format?: string | DateFormatOptions, localeId?: string) => string;
18
+ parseDate: (value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string) => Date;
19
+ parseNumber: (value: string, format?: string | NumberFormatOptions, localeId?: string) => number;
20
+ formatNumber: (value: number, format: string | NumberFormatOptions, localeId?: string) => string;
21
+ splitDateFormat: (format: string | DateFormatOptions, localeId?: string) => DateFormatPart[];
22
+ numberSymbols: (localeId?: string) => void;
23
+ firstDay: (localeId?: string) => number;
24
+ weekendRange: (localeId?: string) => any;
25
+ dateFieldName: (options: DateFieldNameOptions, localeId?: string) => string;
26
+ dateFormatNames: (localeId: any, options: any) => any;
27
+ cldr: any;
28
+ locale: string;
29
+ constructor(service: IntlService);
30
+ }
@@ -0,0 +1,107 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { default as React } from 'react';
9
+ import { DateInputFormatPlaceholder } from './format-placeholder.js';
10
+ import { DateInputIncrementalSteps } from './incremental-steps.js';
11
+ import { DateFormatOptions } from '@progress/kendo-react-intl';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export interface DateInputSettings {
16
+ /**
17
+ * Specifies the `date` format which is used for formatting the value ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/formats)). If not set, the default format will be used.
18
+ */
19
+ format?: string | DateFormatOptions;
20
+ /**
21
+ * Specifies the descriptions of the format sections in the input field ([more information and example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/placeholders)).
22
+ */
23
+ formatPlaceholder?: DateInputFormatPlaceholder;
24
+ /**
25
+ * Specifies the width of the DateInput.
26
+ */
27
+ width?: number | string;
28
+ /**
29
+ * Sets the `tabIndex` property of the DateInput.
30
+ */
31
+ tabIndex?: number;
32
+ /**
33
+ * Sets the title of the `input` element of the DateInput.
34
+ */
35
+ title?: string;
36
+ /**
37
+ * Specifies the incremental steps of the DateInput ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/incremental-steps)).
38
+ *
39
+ * The available options are:
40
+ * - `year: Number`&mdash;Controls the incremental step of the year value.
41
+ * - `month: Number`&mdash;Controls the incremental step of the month value.
42
+ * - `day: Number`&mdash;Controls the incremental step of the day value.
43
+ * - `hour: Number`&mdash;Controls the incremental step of the hour value.
44
+ * - `minute: Number`&mdash;Controls the incremental step of the minute value.
45
+ * - `second: Number`&mdash;Controls the incremental step of the second value.
46
+ */
47
+ steps?: DateInputIncrementalSteps;
48
+ /**
49
+ * Specifies the smallest date that is valid ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/date-ranges)).
50
+ */
51
+ min?: Date;
52
+ /**
53
+ * Specifies the greatest date that is valid ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/date-ranges)).
54
+ */
55
+ max?: Date;
56
+ /**
57
+ * Specifies the smallest time that is valid ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/date-ranges#toc-limiting-the-time-range)).
58
+ */
59
+ minTime?: Date;
60
+ /**
61
+ * Specifies the greatest time that is valid ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/date-ranges#toc-limiting-the-time-range)).
62
+ */
63
+ maxTime?: Date;
64
+ /**
65
+ * Determines whether the DateInput is disabled ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/disabled-state)).
66
+ */
67
+ disabled?: boolean;
68
+ /**
69
+ * Specifies whether the **Up** and **Down** spin buttons will be rendered ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/spin-buttons)).
70
+ */
71
+ spinners?: boolean;
72
+ /**
73
+ * Specifies the name property of the input DOM element.
74
+ */
75
+ name?: string;
76
+ /**
77
+ * Represents the `dir` HTML attribute.
78
+ */
79
+ dir?: string;
80
+ /**
81
+ * Renders a floating label for the DateInput.
82
+ */
83
+ label?: React.ReactNode;
84
+ /**
85
+ * Sets the `id` of the `input` DOM element.
86
+ */
87
+ id?: string;
88
+ /**
89
+ * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
90
+ * For example these elements could contain error or hint message.
91
+ */
92
+ ariaDescribedBy?: string;
93
+ /**
94
+ * Identifies the element(s) which will label the component.
95
+ */
96
+ ariaLabelledBy?: string;
97
+ /**
98
+ * The accessible label of the component.
99
+ */
100
+ ariaLabel?: string;
101
+ /**
102
+ * Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
103
+ * For more information, refer to the article on
104
+ * [placeholders](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/placeholders).
105
+ */
106
+ placeholder?: string | null;
107
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /** @hidden */
9
+ export interface DateInputCommonPackageProps {
10
+ /**
11
+ * Determines whether to autocorrect invalid segments automatically.
12
+ *
13
+ * @default `true`
14
+ */
15
+ autoCorrectParts?: boolean;
16
+ /**
17
+ * Determines whether to automatically move to the next segment after the user completes the current one.
18
+ *
19
+ * @default `true`
20
+ */
21
+ autoSwitchParts?: boolean;
22
+ /**
23
+ * A string array representing custom keys, which will move the focus to the next date format segment.
24
+ *
25
+ * @default `[]`
26
+ */
27
+ autoSwitchKeys?: string[];
28
+ /**
29
+ * Determines if the users should see a blinking caret inside the Date Input when possible.
30
+ *
31
+ * @default `false`
32
+ */
33
+ allowCaretMode?: boolean;
34
+ }
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DateFormatOptions } from '@progress/kendo-intl';
9
+ import { DateInputIncrementalSteps } from './incremental-steps.js';
10
+ import { DateInputIntl } from '../dateInputIntl.js';
11
+ import { DateInputFormatPlaceholder } from './format-placeholder.js';
12
+ /**
13
+ * Represents the options type of the DateInput.
14
+ */
15
+ export interface DateInputOptions {
16
+ /**
17
+ * Specifies the `date` format which is used for formatting the value ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/formats)). If not set, the default format will be used.
18
+ */
19
+ format: string | DateFormatOptions;
20
+ /**
21
+ * Specifies the incremental steps of the DateInput ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/incremental-steps)).
22
+ *
23
+ * The available options are:
24
+ * - `year: Number`&mdash;Controls the incremental step of the year value.
25
+ * - `month: Number`&mdash;Controls the incremental step of the month value.
26
+ * - `day: Number`&mdash;Controls the incremental step of the day value.
27
+ * - `hour: Number`&mdash;Controls the incremental step of the hour value.
28
+ * - `minute: Number`&mdash;Controls the incremental step of the minute value.
29
+ * - `second: Number`&mdash;Controls the incremental step of the second value.
30
+ */
31
+ steps?: DateInputIncrementalSteps;
32
+ /**
33
+ * Specifies the descriptions of the format sections in the input field ([more information and example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/placeholders)).
34
+ */
35
+ formatPlaceholder?: DateInputFormatPlaceholder;
36
+ /**
37
+ * Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
38
+ * For more information, refer to the article on
39
+ * [placeholders](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/placeholders).
40
+ */
41
+ placeholder?: string | null;
42
+ /**
43
+ * Example usage of the `placeholder` property:
44
+ * ```jsx
45
+ * <DateInput placeholder="Enter a date" />
46
+ * ```
47
+ */
48
+ /**
49
+ * Determines wether should select the previous segment on backspace.
50
+ *
51
+ * @default `true`
52
+ */
53
+ selectPreviousSegmentOnBackspace: boolean;
54
+ /**
55
+ * Specifies the value of the DateInput.
56
+ */
57
+ value: Date | null;
58
+ /**
59
+ * The Intl object that provides internationalization support.
60
+ */
61
+ intlService: DateInputIntl;
62
+ /**
63
+ * When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.
64
+ *
65
+ * @default `false`
66
+ */
67
+ autoFill: boolean;
68
+ /**
69
+ * Enables mouse wheel scrolling to increase or decrease date segment values.
70
+ *
71
+ * @default `true`
72
+ */
73
+ enableMouseWheel: boolean;
74
+ /**
75
+ * Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
76
+ *
77
+ * @default `true`
78
+ */
79
+ autoCorrectParts: boolean;
80
+ /**
81
+ * Determines whether to automatically move to the next segment after the user completes the current one.
82
+ *
83
+ * @default `true`
84
+ */
85
+ autoSwitchParts: boolean;
86
+ /**
87
+ * A string array representing custom keys, which will move the focus to the next date format segment.
88
+ *
89
+ * @default `[]`
90
+ */
91
+ autoSwitchKeys: string[];
92
+ /**
93
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/formats#toc-two---digit-year-max)).
94
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
95
+ *
96
+ * @default `68`
97
+ */
98
+ twoDigitYearMax: number;
99
+ /**
100
+ * Determines if the users should see a blinking caret inside the Date Input when possible.
101
+ *
102
+ * @default `false`
103
+ */
104
+ allowCaretMode: boolean;
105
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * The interface which defines a custom-format placeholder structure in the DateInput.
10
+ */
11
+ export interface DateInputCustomFormatPlaceholder {
12
+ /**
13
+ * Defines the description for the `year` format section.
14
+ */
15
+ year?: string;
16
+ /**
17
+ * Defines the description for the `month` format section.
18
+ */
19
+ month?: string;
20
+ /**
21
+ * Defines the description for the `day` format section.
22
+ */
23
+ day?: string;
24
+ /**
25
+ * Defines the description for the `hour` format section.
26
+ */
27
+ hour?: string;
28
+ /**
29
+ * Defines the description for the `minute` format section.
30
+ */
31
+ minute?: string;
32
+ /**
33
+ * Defines the description for the `second` format section.
34
+ */
35
+ second?: string;
36
+ }
37
+ /**
38
+ * The union type which defines all possible format options of the DateInput placeholder.
39
+ *
40
+ * The available options are:
41
+ * * `'wide'`&mdash;Displays the full description of the format section. For example, turns `MM` into `month`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
42
+ * * `'narrow'`&mdash;Displays the narrow description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
43
+ * * `'short'`&mdash;Displays the short description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
44
+ * * `'formatPattern'`&mdash;Directly displays the format section. For example, turns `MM` into `MM`.
45
+ */
46
+ export type DateInputFormatPlaceholder = 'wide' | 'narrow' | 'short' | 'formatPattern' | DateInputCustomFormatPlaceholder;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * The interface which defines all possible incremental steps in the DateInput.
10
+ */
11
+ export interface DateInputIncrementalSteps {
12
+ /** Controls the incremental step of the year value */
13
+ year?: number;
14
+ /** Controls the incremental step of the month value */
15
+ month?: number;
16
+ /** Controls the incremental step of the day value */
17
+ day?: number;
18
+ /** Controls the incremental step of the hour value */
19
+ hour?: number;
20
+ /** Controls the incremental step of the minute value */
21
+ minute?: number;
22
+ /** Controls the incremental step of the second value */
23
+ second?: number;
24
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DateInputFormatPlaceholder, DateInputCustomFormatPlaceholder } from './format-placeholder.js';
9
+ import { DateInputIncrementalSteps } from './incremental-steps.js';
10
+ import { DateInputSettings } from './DateInputSettings.js';
11
+ import { DatePart, KendoDate } from './kendo-date.js';
12
+ import { Mask } from './mask.js';
13
+ import { Selection } from './selection.js';
14
+ import { DateInputCommonPackageProps } from './common-package-props.js';
15
+ export { DateInputFormatPlaceholder, DateInputCustomFormatPlaceholder, DateInputIncrementalSteps, DateInputSettings, DateInputCommonPackageProps, DatePart, KendoDate, Mask, Selection };