@progress/kendo-react-dateinputs 14.5.0-develop.9 → 15.0.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 (41) hide show
  1. package/CalendarMcpWrapper.d.ts +16 -0
  2. package/CalendarMcpWrapper.js +8 -0
  3. package/CalendarMcpWrapper.mjs +18 -0
  4. package/DateRangePickerMcpWrapper.d.ts +16 -0
  5. package/DateRangePickerMcpWrapper.js +8 -0
  6. package/DateRangePickerMcpWrapper.mjs +18 -0
  7. package/DateTimePickerMcpWrapper.d.ts +16 -0
  8. package/DateTimePickerMcpWrapper.js +8 -0
  9. package/DateTimePickerMcpWrapper.mjs +18 -0
  10. package/README.md +4 -4
  11. package/TimePickerMcpWrapper.d.ts +16 -0
  12. package/TimePickerMcpWrapper.js +8 -0
  13. package/TimePickerMcpWrapper.mjs +18 -0
  14. package/calendar/components/Calendar.d.ts +6 -1
  15. package/calendar/components/Calendar.mjs +5 -5
  16. package/dateinput/DateInput.d.ts +11 -1
  17. package/dateinput/DateInput.js +1 -1
  18. package/dateinput/DateInput.mjs +202 -194
  19. package/datepicker/DatePicker.d.ts +6 -1
  20. package/datepicker/DatePicker.js +1 -1
  21. package/datepicker/DatePicker.mjs +233 -231
  22. package/daterangepicker/DateRangePicker.d.ts +6 -1
  23. package/daterangepicker/DateRangePicker.js +1 -1
  24. package/daterangepicker/DateRangePicker.mjs +65 -61
  25. package/datetimepicker/DateTimePicker.d.ts +7 -1
  26. package/datetimepicker/DateTimePicker.js +1 -1
  27. package/datetimepicker/DateTimePicker.mjs +106 -100
  28. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  29. package/index.d.mts +12 -4
  30. package/index.d.ts +12 -4
  31. package/index.js +1 -1
  32. package/index.mjs +110 -105
  33. package/messages/index.d.ts +25 -0
  34. package/messages/index.js +1 -1
  35. package/messages/index.mjs +46 -36
  36. package/package-metadata.js +1 -1
  37. package/package-metadata.mjs +2 -2
  38. package/package.json +8 -8
  39. package/timepicker/TimePicker.d.ts +7 -1
  40. package/timepicker/TimePicker.js +1 -1
  41. package/timepicker/TimePicker.mjs +90 -87
@@ -7,112 +7,112 @@
7
7
  */
8
8
  import * as o from "react";
9
9
  import t from "prop-types";
10
- import { Popup as dt } from "@progress/kendo-react-popup";
11
- import { cloneDate as le, getDate as ft } from "@progress/kendo-date-math";
12
- import { useId as mt, useAdaptiveModeContext as pt, usePropsContext as gt, useKendoPaste as ht, canUseDOM as ue, AsyncFocusBlur as vt, classNames as se, kendoThemeMaps as ce, createPropsContext as bt, Keys as k } from "@progress/kendo-react-common";
13
- import { calendarIcon as wt } from "@progress/kendo-svg-icons";
14
- import { DateInput as yt } from "../dateinput/DateInput.mjs";
15
- import { Calendar as Ct } from "../calendar/components/Calendar.mjs";
16
- import { MIN_DATE as Dt, MAX_DATE as Ot, isInDateRange as de, setTime as Pt, nullable as r } from "../utils.mjs";
17
- import { toggleCalendar as fe, messages as kt } from "../messages/index.mjs";
18
- import { useLocalization as Mt } from "@progress/kendo-react-intl";
19
- import { ToggleButton as Rt } from "./ToggleButton.mjs";
20
- import { PickerFloatingLabel as St } from "../hooks/usePickerFloatingLabel.mjs";
21
- import { ActionSheetContent as _t } from "@progress/kendo-react-layout";
22
- import { AdaptiveMode as It } from "../common/AdaptiveMode.mjs";
23
- const me = o.forwardRef((a, pe) => {
24
- const _ = mt(a.id), ge = Mt(), b = pt(), {
25
- defaultShow: he = i.defaultShow,
26
- defaultValue: ve = i.defaultValue,
27
- dateInput: be = i.dateInput,
28
- calendar: we = i.calendar,
29
- toggleButton: ye = i.toggleButton,
30
- popup: Ce = i.popup,
10
+ import { Popup as pt } from "@progress/kendo-react-popup";
11
+ import { cloneDate as ue, getDate as gt } from "@progress/kendo-date-math";
12
+ import { useId as ht, useAdaptiveModeContext as vt, usePropsContext as bt, useWebMcpRegister as wt, useKendoPaste as yt, canUseDOM as se, AsyncFocusBlur as Ct, classNames as ce, kendoThemeMaps as de, createPropsContext as Dt, Keys as O } from "@progress/kendo-react-common";
13
+ import { calendarIcon as Pt } from "@progress/kendo-svg-icons";
14
+ import { DateInputInner as kt } from "../dateinput/DateInput.mjs";
15
+ import { Calendar as Ot } from "../calendar/components/Calendar.mjs";
16
+ import { MIN_DATE as Mt, MAX_DATE as Rt, isInDateRange as fe, setTime as It, nullable as a } from "../utils.mjs";
17
+ import { toggleCalendar as me, messages as pe, selectDate as ge } from "../messages/index.mjs";
18
+ import { useLocalization as St } from "@progress/kendo-react-intl";
19
+ import { ToggleButton as _t } from "./ToggleButton.mjs";
20
+ import { PickerFloatingLabel as Et } from "../hooks/usePickerFloatingLabel.mjs";
21
+ import { ActionSheetContent as Bt } from "@progress/kendo-react-layout";
22
+ import { AdaptiveMode as Tt } from "../common/AdaptiveMode.mjs";
23
+ const he = o.forwardRef((r, ve) => {
24
+ const S = ht(r.id), W = St(), w = vt(), {
25
+ defaultShow: be = i.defaultShow,
26
+ defaultValue: we = i.defaultValue,
27
+ dateInput: ye = i.dateInput,
28
+ calendar: Ce = i.calendar,
29
+ toggleButton: De = i.toggleButton,
30
+ popup: Pe = i.popup,
31
31
  disabled: m = i.disabled,
32
- format: De = i.format,
33
- max: w = i.max,
34
- min: y = i.min,
35
- popupSettings: C = i.popupSettings,
32
+ format: ke = i.format,
33
+ max: y = i.max,
34
+ min: C = i.min,
35
+ popupSettings: D = i.popupSettings,
36
36
  tabIndex: Oe = i.tabIndex,
37
- weekNumber: Pe = i.weekNumber,
37
+ weekNumber: Me = i.weekNumber,
38
38
  validityStyles: q = i.validityStyles,
39
- size: I = i.size,
39
+ size: _ = i.size,
40
40
  rounded: E = i.rounded,
41
41
  fillMode: B = i.fillMode,
42
- autoFocus: ke = i.autoFocus,
43
- show: W,
44
- autoSwitchParts: Me,
45
- autoSwitchKeys: Re,
46
- twoDigitYearMax: Se,
47
- ariaLabel: _e,
48
- adaptive: Bt,
49
- adaptiveTitle: Ie = a.label || void 0,
50
- adaptiveSubtitle: Ee,
51
- formatPlaceholder: Be,
52
- inputAttributes: Te,
53
- validationMessage: H,
54
- visited: Tt,
42
+ autoFocus: Re = i.autoFocus,
43
+ show: H,
44
+ autoSwitchParts: Ie,
45
+ autoSwitchKeys: Se,
46
+ twoDigitYearMax: _e,
47
+ ariaLabel: Ee,
48
+ adaptive: Nt,
49
+ adaptiveTitle: Be = r.label || void 0,
50
+ adaptiveSubtitle: Te,
51
+ formatPlaceholder: xe,
52
+ inputAttributes: Ne,
53
+ validationMessage: U,
54
+ visited: At,
55
55
  value: T,
56
- touched: xt,
57
- modified: Nt,
58
- _adaptiveMode: At = b,
59
- valid: U,
60
- focusedDate: xe,
61
- id: Ne,
62
- ariaLabelledBy: Ae,
63
- ariaDescribedBy: Fe,
64
- placeholder: Ve,
65
- onChange: Y,
66
- onOpen: $,
67
- onClose: j,
68
- ...X
69
- } = gt(Et, a), x = () => {
70
- if (ue)
56
+ touched: Ft,
57
+ modified: Lt,
58
+ _adaptiveMode: Vt = w,
59
+ valid: Y,
60
+ focusedDate: Ae,
61
+ id: Fe,
62
+ ariaLabelledBy: Le,
63
+ ariaDescribedBy: Ve,
64
+ placeholder: ze,
65
+ onChange: $,
66
+ onOpen: j,
67
+ onClose: X,
68
+ ...Z
69
+ } = bt(xt, r), x = () => {
70
+ if (se)
71
71
  return d.current && d.current.ownerDocument || window.document;
72
- }, s = () => !!(v.windowWidth && b && v.windowWidth <= (b == null ? void 0 : b.medium) && a.adaptive), p = () => {
73
- const e = M.current !== void 0 ? M.current : T !== void 0 ? T : v.value;
74
- return e !== null ? le(e) : null;
75
- }, l = () => R.current !== void 0 ? R.current : W !== void 0 ? W : v.show, ze = () => be || i.dateInput, Le = () => ye || i.toggleButton, Ke = () => we || i.calendar, qe = () => Ce || i.popup, Z = () => a.required !== void 0 ? a.required : !1, N = () => {
76
- const e = p() || T || null, n = y, u = w, S = de(e, n, u), z = H !== void 0, L = (!Z() || e != null) && S, K = U !== void 0 ? U : L;
72
+ }, s = () => !!(p.windowWidth && w && p.windowWidth <= (w == null ? void 0 : w.medium) && r.adaptive), g = () => {
73
+ const e = M.current !== void 0 ? M.current : T !== void 0 ? T : p.value;
74
+ return e !== null ? ue(e) : null;
75
+ }, l = () => R.current !== void 0 ? R.current : H !== void 0 ? H : p.show, Ke = () => ye || i.dateInput, We = () => De || i.toggleButton, qe = () => Ce || i.calendar, He = () => Pe || i.popup, G = () => r.required !== void 0 ? r.required : !1, N = () => {
76
+ const e = g() || T || null, n = C, u = y, I = fe(e, n, u), V = U !== void 0, z = (!G() || e != null) && I, K = Y !== void 0 ? Y : z;
77
77
  return {
78
- customError: z,
78
+ customError: V,
79
79
  rangeOverflow: e && u.getTime() < e.getTime() || !1,
80
80
  rangeUnderflow: e && e.getTime() < n.getTime() || !1,
81
81
  valid: K,
82
82
  valueMissing: e === null
83
83
  };
84
- }, We = (e) => {
84
+ }, Ue = (e) => {
85
85
  for (const n of e)
86
- P({ windowWidth: n.target.clientWidth });
87
- }, He = () => {
86
+ k({ windowWidth: n.target.clientWidth });
87
+ }, Ye = () => {
88
88
  c.current && c.current.focus();
89
- }, G = (e) => {
89
+ }, J = (e) => {
90
90
  f.current = e;
91
- }, g = (e) => {
92
- l() !== e && (P({ show: e }), e && $ && $({ target: D.current }), !e && j && j({ target: D.current }));
93
- }, Ue = (e) => {
94
- const n = p();
95
- return n && e ? Pt(e, n) : e;
96
- }, Ye = (e) => {
97
- C != null && C.onMouseDownOutside && C.onMouseDownOutside(e);
91
+ }, h = (e) => {
92
+ l() !== e && (k({ show: e }), e && j && j({ target: v.current }), !e && X && X({ target: v.current }));
93
+ }, $e = (e) => {
94
+ const n = g();
95
+ return n && e ? It(e, n) : e;
96
+ }, je = (e) => {
97
+ D != null && D.onMouseDownOutside && D.onMouseDownOutside(e);
98
98
  }, A = (e, n) => {
99
- P({ value: le(e || void 0) }), M.current = e, R.current = !1, s() || (h.current = !0), Y && Y({
99
+ k({ value: ue(e || void 0) }), M.current = e, R.current = !1, s() || (b.current = !0), $ && $({
100
100
  syntheticEvent: n.syntheticEvent,
101
101
  nativeEvent: n.nativeEvent,
102
- value: p(),
102
+ value: g(),
103
103
  show: l(),
104
- target: D.current
105
- }), M.current = void 0, R.current = void 0, g(!1);
106
- }, $e = (e) => {
107
- const n = Ue(e.value);
104
+ target: v.current
105
+ }), M.current = void 0, R.current = void 0, h(!1);
106
+ }, Xe = (e) => {
107
+ const n = $e(e.value);
108
108
  A(n, e);
109
- }, J = () => {
110
- const { popupClass: e, ...n } = C, u = l(), S = p(), z = S && ft(S), L = se(e), K = {
109
+ }, Q = () => {
110
+ const { popupClass: e, ...n } = D, u = l(), I = g(), V = I && gt(I), z = ce(e), K = {
111
111
  popupClass: "k-datepicker-popup",
112
112
  show: u,
113
113
  anchor: d.current,
114
- className: L,
115
- id: te,
114
+ className: z,
115
+ id: ne,
116
116
  anchorAlign: {
117
117
  horizontal: "left",
118
118
  vertical: "bottom"
@@ -122,52 +122,52 @@ const me = o.forwardRef((a, pe) => {
122
122
  vertical: "top"
123
123
  },
124
124
  ...n,
125
- onMouseDownOutside: Ye
126
- }, ae = {
125
+ onMouseDownOutside: je
126
+ }, ie = {
127
127
  disabled: m,
128
- value: z,
129
- min: y,
130
- max: w,
131
- weekNumber: Pe,
132
- focusedDate: xe,
128
+ value: V,
129
+ min: C,
130
+ max: y,
131
+ weekNumber: Me,
132
+ focusedDate: Ae,
133
133
  className: s() ? "k-calendar-lg" : "",
134
134
  navigation: !s(),
135
- onChange: $e
136
- }, ie = Ke(), ct = qe();
137
- return s() ? /* @__PURE__ */ o.createElement(ie, { _ref: G, ...ae }) : /* @__PURE__ */ o.createElement(ct, { ...K }, /* @__PURE__ */ o.createElement(ie, { _ref: G, ...ae }));
138
- }, Q = () => {
139
- P({ focused: !1 }), g(!1);
140
- }, je = () => {
141
- const { windowWidth: e = 0 } = v, n = {
135
+ onChange: Xe
136
+ }, le = qe(), mt = He();
137
+ return s() ? /* @__PURE__ */ o.createElement(le, { _ref: J, ...ie }) : /* @__PURE__ */ o.createElement(mt, { ...K }, /* @__PURE__ */ o.createElement(le, { _ref: J, ...ie }));
138
+ }, ee = () => {
139
+ k({ focused: !1 }), h(!1);
140
+ }, Ze = () => {
141
+ const { windowWidth: e = 0 } = p, n = {
142
142
  expand: l(),
143
- onClose: Q,
144
- title: Ie,
145
- subTitle: Ee,
143
+ onClose: ee,
144
+ title: Be,
145
+ subTitle: Te,
146
146
  windowWidth: e
147
147
  };
148
- return /* @__PURE__ */ o.createElement(It, { ...n }, /* @__PURE__ */ o.createElement(_t, null, J()));
149
- }, Xe = (e) => {
148
+ return /* @__PURE__ */ o.createElement(Tt, { ...n }, /* @__PURE__ */ o.createElement(Bt, null, Q()));
149
+ }, Ge = (e) => {
150
150
  A(e.value, e);
151
- }, Ze = () => {
152
- P({ focused: !0 });
153
- }, Ge = () => {
154
- g(!l());
151
+ }, Je = () => {
152
+ k({ focused: !0 });
153
+ }, Qe = () => {
154
+ h(!l());
155
155
  }, F = () => {
156
- m || (h.current = !0, g(!l()));
157
- }, Je = (e) => {
156
+ m || (b.current = !0, h(!l()));
157
+ }, et = (e) => {
158
158
  e.preventDefault();
159
- }, Qe = (e) => {
159
+ }, tt = (e) => {
160
160
  const { altKey: n, keyCode: u } = e;
161
- if (u === k.esc && l()) {
162
- h.current = !0, g(!1);
161
+ if (u === O.esc && l()) {
162
+ b.current = !0, h(!1);
163
163
  return;
164
164
  }
165
- n && (u === k.up || u === k.down) && (e.preventDefault(), e.stopPropagation(), h.current = u === k.up, g(u === k.down));
166
- }, D = o.useRef(null), d = o.useRef(null), c = o.useRef(null), f = o.useRef(null);
165
+ n && (u === O.up || u === O.down) && (e.preventDefault(), e.stopPropagation(), b.current = u === O.up, h(u === O.down));
166
+ }, v = o.useRef(null), d = o.useRef(null), c = o.useRef(null), f = o.useRef(null);
167
167
  o.useImperativeHandle(
168
- D,
168
+ v,
169
169
  () => ({
170
- props: a,
170
+ props: r,
171
171
  get element() {
172
172
  return d.current;
173
173
  },
@@ -178,7 +178,7 @@ const me = o.forwardRef((a, pe) => {
178
178
  return c.current;
179
179
  },
180
180
  get name() {
181
- return a.name;
181
+ return r.name;
182
182
  },
183
183
  get show() {
184
184
  return l();
@@ -187,21 +187,21 @@ const me = o.forwardRef((a, pe) => {
187
187
  return N();
188
188
  },
189
189
  get value() {
190
- return p();
190
+ return g();
191
191
  },
192
192
  get mobileMode() {
193
193
  return s();
194
194
  },
195
- togglePopup: Ge,
195
+ togglePopup: Qe,
196
196
  // Hidden Methods but still accessible
197
- focus: He
197
+ focus: Ye
198
198
  })
199
- ), o.useImperativeHandle(pe, () => D.current);
200
- const M = o.useRef(void 0), R = o.useRef(void 0), et = o.useRef(null), h = o.useRef(!1), V = o.useRef(!1), O = o.useRef(null), [v, tt] = o.useState({
201
- value: ve,
202
- show: he,
199
+ ), o.useImperativeHandle(ve, () => v.current), wt("datepicker", v, r, r.webMcp);
200
+ const M = o.useRef(void 0), R = o.useRef(void 0), nt = o.useRef(null), b = o.useRef(!1), L = o.useRef(!1), P = o.useRef(null), [p, ot] = o.useState({
201
+ value: we,
202
+ show: be,
203
203
  focused: !1
204
- }), [, nt] = o.useReducer((e) => e, !0), ee = a.name || _ || void 0, ot = o.useCallback(
204
+ }), [, rt] = o.useReducer((e) => e, !0), te = r.name || S || void 0, at = o.useCallback(
205
205
  (e) => {
206
206
  if (m)
207
207
  return;
@@ -214,7 +214,7 @@ const me = o.forwardRef((a, pe) => {
214
214
  isNaN(u.getTime()) || (n = u);
215
215
  }
216
216
  }
217
- if (n && de(n, y, w)) {
217
+ if (n && fe(n, C, y)) {
218
218
  const u = {
219
219
  target: d.current,
220
220
  currentTarget: d.current
@@ -222,133 +222,135 @@ const me = o.forwardRef((a, pe) => {
222
222
  A(n, { syntheticEvent: u });
223
223
  }
224
224
  },
225
- [m, y, w]
225
+ [m, C, y]
226
226
  );
227
- ht(d, {
228
- fieldName: ee,
229
- onValueChange: ot,
230
- enabled: !!ee
227
+ yt(d, {
228
+ fieldName: te,
229
+ onValueChange: at,
230
+ enabled: !!te
231
231
  });
232
- const P = (e) => {
233
- tt((n) => ({ ...n, ...e }));
232
+ const k = (e) => {
233
+ ot((n) => ({ ...n, ...e }));
234
234
  };
235
235
  o.useEffect(() => {
236
- f.current && f.current.element && l() && !V.current && f.current.element.focus({ preventScroll: !0 }), s() && l() && !V.current && setTimeout(() => {
236
+ f.current && f.current.element && l() && !L.current && f.current.element.focus({ preventScroll: !0 }), s() && l() && !L.current && setTimeout(() => {
237
237
  f.current && f.current.element && f.current.element.focus({ preventScroll: !0 });
238
- }, 300), c.current && c.current.element && !l() && h.current && c.current.element.focus({ preventScroll: !0 }), V.current = l(), h.current = !1;
238
+ }, 300), c.current && c.current.element && !l() && b.current && c.current.element.focus({ preventScroll: !0 }), L.current = l(), b.current = !1;
239
239
  }), o.useEffect(() => {
240
240
  var e;
241
- return O.current = ue && window.ResizeObserver && new window.ResizeObserver((n) => We(n)), l() && nt(), (e = x()) != null && e.body && O.current && O.current.observe(x().body), () => {
241
+ return P.current = se && window.ResizeObserver && new window.ResizeObserver((n) => Ue(n)), l() && rt(), (e = x()) != null && e.body && P.current && P.current.observe(x().body), () => {
242
242
  var n;
243
- clearTimeout(et.current), (n = x()) != null && n.body && O.current && O.current.disconnect();
243
+ clearTimeout(nt.current), (n = x()) != null && n.body && P.current && P.current.disconnect();
244
244
  };
245
245
  }, []);
246
- const te = _ + "-popup-id", rt = J(), at = ze(), it = p(), lt = Le(), ut = je(), ne = !q || N().valid, oe = ge.toLanguageString(fe, kt[fe]), st = {
246
+ const ne = S + "-popup-id", it = Q(), lt = Ke(), ut = g(), st = We(), ct = Ze(), oe = !q || N().valid, re = W.toLanguageString(me, pe[me]), dt = Ee || W.toLanguageString(ge, pe[ge]), ft = {
247
247
  disabled: m,
248
- format: De,
249
- formatPlaceholder: Be,
250
- id: Ne,
251
- ariaLabelledBy: Ae,
252
- ariaDescribedBy: Fe,
253
- ariaLabel: _e,
254
- max: w,
255
- min: y,
256
- name: a.name,
257
- onChange: Xe,
258
- required: a.required,
248
+ format: ke,
249
+ formatPlaceholder: xe,
250
+ id: Fe,
251
+ ariaLabelledBy: Le,
252
+ ariaDescribedBy: Ve,
253
+ ariaLabel: dt,
254
+ max: y,
255
+ min: C,
256
+ name: r.name,
257
+ onChange: Ge,
258
+ required: r.required,
259
259
  _ref: c,
260
260
  tabIndex: l() ? -1 : Oe,
261
- title: a.title,
261
+ title: r.title,
262
262
  valid: N().valid,
263
- validationMessage: H,
263
+ validationMessage: U,
264
264
  validityStyles: q,
265
- value: it,
265
+ value: ut,
266
266
  label: void 0,
267
- placeholder: v.focused ? null : Ve,
267
+ placeholder: p.focused ? null : ze,
268
268
  ariaExpanded: l(),
269
- autoFill: a.autoFill,
270
- twoDigitYearMax: Se,
271
- enableMouseWheel: a.enableMouseWheel,
272
- autoCorrectParts: a.autoCorrectParts,
273
- autoSwitchParts: Me,
274
- autoSwitchKeys: Re,
275
- allowCaretMode: a.allowCaretMode,
276
- inputAttributes: Te
277
- }, re = /* @__PURE__ */ o.createElement(
278
- vt,
269
+ autoFill: r.autoFill,
270
+ twoDigitYearMax: _e,
271
+ enableMouseWheel: r.enableMouseWheel,
272
+ autoCorrectParts: r.autoCorrectParts,
273
+ autoSwitchParts: Ie,
274
+ autoSwitchKeys: Se,
275
+ allowCaretMode: r.allowCaretMode,
276
+ inputAttributes: Ne
277
+ }, ae = /* @__PURE__ */ o.createElement(
278
+ Ct,
279
279
  {
280
- onFocus: Ze,
281
- onBlur: s() ? void 0 : Q,
282
- onSyncBlur: a.onBlur,
283
- onSyncFocus: a.onFocus
280
+ onFocus: Je,
281
+ onBlur: s() ? void 0 : ee,
282
+ onSyncBlur: r.onBlur,
283
+ onSyncFocus: r.onFocus
284
284
  },
285
285
  (e) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
286
286
  "span",
287
287
  {
288
- ...a.label ? {} : X,
288
+ ...r.label ? {} : Z,
289
289
  ref: d,
290
- className: se(
290
+ className: ce(
291
291
  "k-input",
292
292
  "k-datepicker",
293
293
  {
294
- [`k-input-${ce.sizeMap[I] || I}`]: I,
295
- [`k-rounded-${ce.roundedMap[E] || E}`]: E,
294
+ [`k-input-${de.sizeMap[_] || _}`]: _,
295
+ [`k-rounded-${de.roundedMap[E] || E}`]: E,
296
296
  [`k-input-${B}`]: B,
297
- "k-invalid": !ne,
298
- "k-required": Z(),
299
- "k-disabled": m
297
+ "k-invalid": !oe,
298
+ "k-required": G(),
299
+ "k-disabled": m,
300
+ "k-focus": p.focused
300
301
  },
301
- a.className
302
+ r.className
302
303
  ),
303
- onKeyDown: Qe,
304
- style: { width: a.width },
304
+ onKeyDown: tt,
305
+ style: { width: r.width },
305
306
  onFocus: s() ? F : e.onFocus,
306
307
  onBlur: e.onBlur,
307
308
  onClick: s() ? F : void 0
308
309
  },
309
310
  /* @__PURE__ */ o.createElement(
310
- at,
311
+ lt,
311
312
  {
312
313
  _ref: c,
313
314
  ariaRole: "combobox",
315
+ ariaHasPopup: "grid",
314
316
  ariaExpanded: l(),
315
- ariaControls: l() ? te : void 0,
316
- autoFocus: ke,
317
- ...st
317
+ ariaControls: l() ? ne : void 0,
318
+ autoFocus: Re,
319
+ ...ft
318
320
  }
319
321
  ),
320
322
  /* @__PURE__ */ o.createElement(
321
- lt,
323
+ st,
322
324
  {
323
325
  type: "button",
324
326
  icon: "calendar",
325
- svgIcon: wt,
326
- title: oe,
327
+ svgIcon: Pt,
328
+ title: re,
327
329
  className: "k-input-button",
328
330
  onClick: s() ? void 0 : F,
329
- "aria-label": oe,
331
+ "aria-label": re,
330
332
  fillMode: B,
331
- onMouseDown: Je
333
+ onMouseDown: et
332
334
  }
333
335
  ),
334
- !s() && rt
335
- ), s() && ut)
336
+ !s() && it
337
+ ), s() && ct)
336
338
  );
337
- return a.label ? /* @__PURE__ */ o.createElement(
338
- St,
339
+ return r.label ? /* @__PURE__ */ o.createElement(
340
+ Et,
339
341
  {
340
342
  dateInput: c,
341
- label: a.label,
342
- editorId: _,
343
- editorValid: ne,
343
+ label: r.label,
344
+ editorId: S,
345
+ editorValid: oe,
344
346
  editorDisabled: m,
345
- children: re,
346
- style: { width: a.width },
347
- ...X
347
+ children: ae,
348
+ style: { width: r.width },
349
+ ...Z
348
350
  }
349
- ) : re;
351
+ ) : ae;
350
352
  });
351
- me.propTypes = {
353
+ he.propTypes = {
352
354
  className: t.string,
353
355
  defaultShow: t.bool,
354
356
  defaultValue: t.instanceOf(Date),
@@ -357,34 +359,34 @@ me.propTypes = {
357
359
  format: t.oneOfType([
358
360
  t.string,
359
361
  t.shape({
360
- skeleton: r(t.string),
361
- pattern: r(t.string),
362
- date: r(t.oneOf(["short", "medium", "long", "full"])),
363
- time: r(t.oneOf(["short", "medium", "long", "full"])),
364
- datetime: r(t.oneOf(["short", "medium", "long", "full"])),
365
- era: r(t.oneOf(["narrow", "short", "long"])),
366
- year: r(t.oneOf(["numeric", "2-digit"])),
367
- month: r(t.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
368
- day: r(t.oneOf(["numeric", "2-digit"])),
369
- weekday: r(t.oneOf(["narrow", "short", "long"])),
370
- hour: r(t.oneOf(["numeric", "2-digit"])),
371
- hour12: r(t.bool),
372
- minute: r(t.oneOf(["numeric", "2-digit"])),
373
- second: r(t.oneOf(["numeric", "2-digit"])),
374
- timeZoneName: r(t.oneOf(["short", "long"]))
362
+ skeleton: a(t.string),
363
+ pattern: a(t.string),
364
+ date: a(t.oneOf(["short", "medium", "long", "full"])),
365
+ time: a(t.oneOf(["short", "medium", "long", "full"])),
366
+ datetime: a(t.oneOf(["short", "medium", "long", "full"])),
367
+ era: a(t.oneOf(["narrow", "short", "long"])),
368
+ year: a(t.oneOf(["numeric", "2-digit"])),
369
+ month: a(t.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
370
+ day: a(t.oneOf(["numeric", "2-digit"])),
371
+ weekday: a(t.oneOf(["narrow", "short", "long"])),
372
+ hour: a(t.oneOf(["numeric", "2-digit"])),
373
+ hour12: a(t.bool),
374
+ minute: a(t.oneOf(["numeric", "2-digit"])),
375
+ second: a(t.oneOf(["numeric", "2-digit"])),
376
+ timeZoneName: a(t.oneOf(["short", "long"]))
375
377
  })
376
378
  ]),
377
379
  formatPlaceholder: t.oneOfType([
378
- r(
380
+ a(
379
381
  t.oneOf(["wide", "narrow", "short", "formatPattern"])
380
382
  ),
381
383
  t.shape({
382
- year: r(t.string),
383
- month: r(t.string),
384
- day: r(t.string),
385
- hour: r(t.string),
386
- minute: r(t.string),
387
- second: r(t.string)
384
+ year: a(t.string),
385
+ month: a(t.string),
386
+ day: a(t.string),
387
+ hour: a(t.string),
388
+ minute: a(t.string),
389
+ second: a(t.string)
388
390
  })
389
391
  ]),
390
392
  id: t.string,
@@ -395,9 +397,9 @@ me.propTypes = {
395
397
  max: t.instanceOf(Date),
396
398
  name: t.string,
397
399
  popupSettings: t.shape({
398
- animate: r(t.bool),
399
- appendTo: r(t.any),
400
- popupClass: r(t.string)
400
+ animate: a(t.bool),
401
+ appendTo: a(t.any),
402
+ popupClass: a(t.string)
401
403
  }),
402
404
  show: t.bool,
403
405
  tabIndex: t.number,
@@ -420,14 +422,14 @@ me.propTypes = {
420
422
  const i = {
421
423
  defaultShow: !1,
422
424
  defaultValue: null,
423
- dateInput: yt,
424
- calendar: Ct,
425
- toggleButton: Rt,
426
- popup: dt,
425
+ dateInput: kt,
426
+ calendar: Ot,
427
+ toggleButton: _t,
428
+ popup: pt,
427
429
  disabled: !1,
428
430
  format: "d",
429
- max: Ot,
430
- min: Dt,
431
+ max: Rt,
432
+ min: Mt,
431
433
  popupSettings: {},
432
434
  tabIndex: 0,
433
435
  weekNumber: !1,
@@ -436,10 +438,10 @@ const i = {
436
438
  rounded: void 0,
437
439
  fillMode: void 0,
438
440
  autoFocus: !1
439
- }, Et = bt();
440
- me.displayName = "KendoReactDatePicker";
441
+ }, xt = Dt();
442
+ he.displayName = "KendoReactDatePicker";
441
443
  export {
442
- me as DatePicker,
443
- Et as DatePickerPropsContext,
444
+ he as DatePicker,
445
+ xt as DatePickerPropsContext,
444
446
  i as datePickerDefaultProps
445
447
  };
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { default as PropTypes } from 'prop-types';
9
- import { AdaptiveModeContextType } from '@progress/kendo-react-common';
9
+ import { AdaptiveModeContextType, WebMcpProps } from '@progress/kendo-react-common';
10
10
  import { DateInputHandle, DateInputProps } from '../dateinput/DateInput.js';
11
11
  import { MultiViewCalendar, MultiViewCalendarHandle } from '../calendar/components/MultiViewCalendar.js';
12
12
  import { SelectionRange } from '../calendar/models/index.js';
@@ -135,6 +135,11 @@ export interface DateRangePickerProps extends DateRangePickerSettings {
135
135
  * This prop is provided by the withAdaptiveModeContext HOC to subscribe to AdaptiveModeContext.
136
136
  */
137
137
  _adaptiveMode?: AdaptiveModeContextType;
138
+ /**
139
+ * Enables Web MCP tool registration for this component.
140
+ * Requires a parent `WebMcpProvider` from `@progress/kendo-react-webmcp`.
141
+ */
142
+ webMcp?: boolean | WebMcpProps;
138
143
  }
139
144
  /**
140
145
  * @hidden