@progress/kendo-react-dateinputs 14.5.0-develop.12 → 14.5.0-develop.14

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.
@@ -9,19 +9,19 @@ import * as o from "react";
9
9
  import t from "prop-types";
10
10
  import { Popup as dt } from "@progress/kendo-react-popup";
11
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(), {
12
+ import { useId as mt, useAdaptiveModeContext as pt, usePropsContext as gt, useWebMcpRegister as ht, useKendoPaste as vt, canUseDOM as ue, AsyncFocusBlur as bt, classNames as se, kendoThemeMaps as ce, createPropsContext as wt, Keys as k } from "@progress/kendo-react-common";
13
+ import { calendarIcon as yt } from "@progress/kendo-svg-icons";
14
+ import { DateInput as Ct } from "../dateinput/DateInput.mjs";
15
+ import { Calendar as Dt } from "../calendar/components/Calendar.mjs";
16
+ import { MIN_DATE as Ot, MAX_DATE as Pt, isInDateRange as de, setTime as kt, nullable as a } from "../utils.mjs";
17
+ import { toggleCalendar as fe, messages as Mt } from "../messages/index.mjs";
18
+ import { useLocalization as Rt } from "@progress/kendo-react-intl";
19
+ import { ToggleButton as St } from "./ToggleButton.mjs";
20
+ import { PickerFloatingLabel as _t } from "../hooks/usePickerFloatingLabel.mjs";
21
+ import { ActionSheetContent as It } from "@progress/kendo-react-layout";
22
+ import { AdaptiveMode as Et } from "../common/AdaptiveMode.mjs";
23
+ const me = o.forwardRef((r, pe) => {
24
+ const _ = mt(r.id), ge = Rt(), w = pt(), {
25
25
  defaultShow: he = i.defaultShow,
26
26
  defaultValue: ve = i.defaultValue,
27
27
  dateInput: be = i.dateInput,
@@ -30,32 +30,32 @@ const me = o.forwardRef((a, pe) => {
30
30
  popup: Ce = i.popup,
31
31
  disabled: m = i.disabled,
32
32
  format: De = i.format,
33
- max: w = i.max,
34
- min: y = i.min,
35
- popupSettings: C = i.popupSettings,
33
+ max: y = i.max,
34
+ min: C = i.min,
35
+ popupSettings: D = i.popupSettings,
36
36
  tabIndex: Oe = i.tabIndex,
37
37
  weekNumber: Pe = i.weekNumber,
38
- validityStyles: q = i.validityStyles,
38
+ validityStyles: W = i.validityStyles,
39
39
  size: I = i.size,
40
40
  rounded: E = i.rounded,
41
41
  fillMode: B = i.fillMode,
42
42
  autoFocus: ke = i.autoFocus,
43
- show: W,
43
+ show: q,
44
44
  autoSwitchParts: Me,
45
45
  autoSwitchKeys: Re,
46
46
  twoDigitYearMax: Se,
47
47
  ariaLabel: _e,
48
- adaptive: Bt,
49
- adaptiveTitle: Ie = a.label || void 0,
48
+ adaptive: Tt,
49
+ adaptiveTitle: Ie = r.label || void 0,
50
50
  adaptiveSubtitle: Ee,
51
51
  formatPlaceholder: Be,
52
52
  inputAttributes: Te,
53
53
  validationMessage: H,
54
- visited: Tt,
54
+ visited: xt,
55
55
  value: T,
56
- touched: xt,
57
- modified: Nt,
58
- _adaptiveMode: At = b,
56
+ touched: Nt,
57
+ modified: At,
58
+ _adaptiveMode: Ft = w,
59
59
  valid: U,
60
60
  focusedDate: xe,
61
61
  id: Ne,
@@ -66,14 +66,14 @@ const me = o.forwardRef((a, pe) => {
66
66
  onOpen: $,
67
67
  onClose: j,
68
68
  ...X
69
- } = gt(Et, a), x = () => {
69
+ } = gt(Bt, r), x = () => {
70
70
  if (ue)
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;
72
+ }, s = () => !!(b.windowWidth && w && b.windowWidth <= (w == null ? void 0 : w.medium) && r.adaptive), p = () => {
73
+ const e = M.current !== void 0 ? M.current : T !== void 0 ? T : b.value;
74
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;
75
+ }, l = () => R.current !== void 0 ? R.current : q !== void 0 ? q : b.show, ze = () => be || i.dateInput, Le = () => ye || i.toggleButton, Ke = () => we || i.calendar, We = () => Ce || i.popup, Z = () => r.required !== void 0 ? r.required : !1, N = () => {
76
+ const e = p() || T || null, n = C, u = y, S = de(e, n, u), z = H !== void 0, L = (!Z() || e != null) && S, K = U !== void 0 ? U : L;
77
77
  return {
78
78
  customError: z,
79
79
  rangeOverflow: e && u.getTime() < e.getTime() || !1,
@@ -81,7 +81,7 @@ const me = o.forwardRef((a, pe) => {
81
81
  valid: K,
82
82
  valueMissing: e === null
83
83
  };
84
- }, We = (e) => {
84
+ }, qe = (e) => {
85
85
  for (const n of e)
86
86
  P({ windowWidth: n.target.clientWidth });
87
87
  }, He = () => {
@@ -89,25 +89,25 @@ const me = o.forwardRef((a, pe) => {
89
89
  }, G = (e) => {
90
90
  f.current = e;
91
91
  }, g = (e) => {
92
- l() !== e && (P({ show: e }), e && $ && $({ target: D.current }), !e && j && j({ target: D.current }));
92
+ l() !== e && (P({ show: e }), e && $ && $({ target: h.current }), !e && j && j({ target: h.current }));
93
93
  }, Ue = (e) => {
94
94
  const n = p();
95
- return n && e ? Pt(e, n) : e;
95
+ return n && e ? kt(e, n) : e;
96
96
  }, Ye = (e) => {
97
- C != null && C.onMouseDownOutside && C.onMouseDownOutside(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
+ P({ value: le(e || void 0) }), M.current = e, R.current = !1, s() || (v.current = !0), Y && Y({
100
100
  syntheticEvent: n.syntheticEvent,
101
101
  nativeEvent: n.nativeEvent,
102
102
  value: p(),
103
103
  show: l(),
104
- target: D.current
104
+ target: h.current
105
105
  }), M.current = void 0, R.current = void 0, g(!1);
106
106
  }, $e = (e) => {
107
107
  const n = Ue(e.value);
108
108
  A(n, e);
109
109
  }, J = () => {
110
- const { popupClass: e, ...n } = C, u = l(), S = p(), z = S && ft(S), L = se(e), K = {
110
+ const { popupClass: e, ...n } = D, u = l(), S = p(), z = S && ft(S), L = se(e), K = {
111
111
  popupClass: "k-datepicker-popup",
112
112
  show: u,
113
113
  anchor: d.current,
@@ -126,26 +126,26 @@ const me = o.forwardRef((a, pe) => {
126
126
  }, ae = {
127
127
  disabled: m,
128
128
  value: z,
129
- min: y,
130
- max: w,
129
+ min: C,
130
+ max: y,
131
131
  weekNumber: Pe,
132
132
  focusedDate: xe,
133
133
  className: s() ? "k-calendar-lg" : "",
134
134
  navigation: !s(),
135
135
  onChange: $e
136
- }, ie = Ke(), ct = qe();
136
+ }, ie = Ke(), ct = We();
137
137
  return s() ? /* @__PURE__ */ o.createElement(ie, { _ref: G, ...ae }) : /* @__PURE__ */ o.createElement(ct, { ...K }, /* @__PURE__ */ o.createElement(ie, { _ref: G, ...ae }));
138
138
  }, Q = () => {
139
139
  P({ focused: !1 }), g(!1);
140
140
  }, je = () => {
141
- const { windowWidth: e = 0 } = v, n = {
141
+ const { windowWidth: e = 0 } = b, n = {
142
142
  expand: l(),
143
143
  onClose: Q,
144
144
  title: Ie,
145
145
  subTitle: Ee,
146
146
  windowWidth: e
147
147
  };
148
- return /* @__PURE__ */ o.createElement(It, { ...n }, /* @__PURE__ */ o.createElement(_t, null, J()));
148
+ return /* @__PURE__ */ o.createElement(Et, { ...n }, /* @__PURE__ */ o.createElement(It, null, J()));
149
149
  }, Xe = (e) => {
150
150
  A(e.value, e);
151
151
  }, Ze = () => {
@@ -153,21 +153,21 @@ const me = o.forwardRef((a, pe) => {
153
153
  }, Ge = () => {
154
154
  g(!l());
155
155
  }, F = () => {
156
- m || (h.current = !0, g(!l()));
156
+ m || (v.current = !0, g(!l()));
157
157
  }, Je = (e) => {
158
158
  e.preventDefault();
159
159
  }, Qe = (e) => {
160
160
  const { altKey: n, keyCode: u } = e;
161
161
  if (u === k.esc && l()) {
162
- h.current = !0, g(!1);
162
+ v.current = !0, g(!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 === k.up || u === k.down) && (e.preventDefault(), e.stopPropagation(), v.current = u === k.up, g(u === k.down));
166
+ }, h = o.useRef(null), d = o.useRef(null), c = o.useRef(null), f = o.useRef(null);
167
167
  o.useImperativeHandle(
168
- D,
168
+ h,
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();
@@ -196,12 +196,12 @@ const me = o.forwardRef((a, pe) => {
196
196
  // Hidden Methods but still accessible
197
197
  focus: He
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({
199
+ ), o.useImperativeHandle(pe, () => h.current), ht("datepicker", h, r, r.webMcp);
200
+ const M = o.useRef(void 0), R = o.useRef(void 0), et = o.useRef(null), v = o.useRef(!1), V = o.useRef(!1), O = o.useRef(null), [b, tt] = o.useState({
201
201
  value: ve,
202
202
  show: he,
203
203
  focused: !1
204
- }), [, nt] = o.useReducer((e) => e, !0), ee = a.name || _ || void 0, ot = o.useCallback(
204
+ }), [, nt] = o.useReducer((e) => e, !0), ee = r.name || _ || void 0, ot = 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 && de(n, C, y)) {
218
218
  const u = {
219
219
  target: d.current,
220
220
  currentTarget: d.current
@@ -222,9 +222,9 @@ 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, {
227
+ vt(d, {
228
228
  fieldName: ee,
229
229
  onValueChange: ot,
230
230
  enabled: !!ee
@@ -235,15 +235,15 @@ const me = o.forwardRef((a, pe) => {
235
235
  o.useEffect(() => {
236
236
  f.current && f.current.element && l() && !V.current && f.current.element.focus({ preventScroll: !0 }), s() && l() && !V.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() && v.current && c.current.element.focus({ preventScroll: !0 }), V.current = l(), v.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 O.current = ue && window.ResizeObserver && new window.ResizeObserver((n) => qe(n)), l() && nt(), (e = x()) != null && e.body && O.current && O.current.observe(x().body), () => {
242
242
  var n;
243
243
  clearTimeout(et.current), (n = x()) != null && n.body && O.current && O.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 te = _ + "-popup-id", rt = J(), at = ze(), it = p(), lt = Le(), ut = je(), ne = !W || N().valid, oe = ge.toLanguageString(fe, Mt[fe]), st = {
247
247
  disabled: m,
248
248
  format: De,
249
249
  formatPlaceholder: Be,
@@ -251,41 +251,41 @@ const me = o.forwardRef((a, pe) => {
251
251
  ariaLabelledBy: Ae,
252
252
  ariaDescribedBy: Fe,
253
253
  ariaLabel: _e,
254
- max: w,
255
- min: y,
256
- name: a.name,
254
+ max: y,
255
+ min: C,
256
+ name: r.name,
257
257
  onChange: Xe,
258
- required: a.required,
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
263
  validationMessage: H,
264
- validityStyles: q,
264
+ validityStyles: W,
265
265
  value: it,
266
266
  label: void 0,
267
- placeholder: v.focused ? null : Ve,
267
+ placeholder: b.focused ? null : Ve,
268
268
  ariaExpanded: l(),
269
- autoFill: a.autoFill,
269
+ autoFill: r.autoFill,
270
270
  twoDigitYearMax: Se,
271
- enableMouseWheel: a.enableMouseWheel,
272
- autoCorrectParts: a.autoCorrectParts,
271
+ enableMouseWheel: r.enableMouseWheel,
272
+ autoCorrectParts: r.autoCorrectParts,
273
273
  autoSwitchParts: Me,
274
274
  autoSwitchKeys: Re,
275
- allowCaretMode: a.allowCaretMode,
275
+ allowCaretMode: r.allowCaretMode,
276
276
  inputAttributes: Te
277
277
  }, re = /* @__PURE__ */ o.createElement(
278
- vt,
278
+ bt,
279
279
  {
280
280
  onFocus: Ze,
281
281
  onBlur: s() ? void 0 : Q,
282
- onSyncBlur: a.onBlur,
283
- onSyncFocus: a.onFocus
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 ? {} : X,
289
289
  ref: d,
290
290
  className: se(
291
291
  "k-input",
@@ -298,10 +298,10 @@ const me = o.forwardRef((a, pe) => {
298
298
  "k-required": Z(),
299
299
  "k-disabled": m
300
300
  },
301
- a.className
301
+ r.className
302
302
  ),
303
303
  onKeyDown: Qe,
304
- style: { width: a.width },
304
+ style: { width: r.width },
305
305
  onFocus: s() ? F : e.onFocus,
306
306
  onBlur: e.onBlur,
307
307
  onClick: s() ? F : void 0
@@ -322,7 +322,7 @@ const me = o.forwardRef((a, pe) => {
322
322
  {
323
323
  type: "button",
324
324
  icon: "calendar",
325
- svgIcon: wt,
325
+ svgIcon: yt,
326
326
  title: oe,
327
327
  className: "k-input-button",
328
328
  onClick: s() ? void 0 : F,
@@ -334,16 +334,16 @@ const me = o.forwardRef((a, pe) => {
334
334
  !s() && rt
335
335
  ), s() && ut)
336
336
  );
337
- return a.label ? /* @__PURE__ */ o.createElement(
338
- St,
337
+ return r.label ? /* @__PURE__ */ o.createElement(
338
+ _t,
339
339
  {
340
340
  dateInput: c,
341
- label: a.label,
341
+ label: r.label,
342
342
  editorId: _,
343
343
  editorValid: ne,
344
344
  editorDisabled: m,
345
345
  children: re,
346
- style: { width: a.width },
346
+ style: { width: r.width },
347
347
  ...X
348
348
  }
349
349
  ) : re;
@@ -357,34 +357,34 @@ me.propTypes = {
357
357
  format: t.oneOfType([
358
358
  t.string,
359
359
  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"]))
360
+ skeleton: a(t.string),
361
+ pattern: a(t.string),
362
+ date: a(t.oneOf(["short", "medium", "long", "full"])),
363
+ time: a(t.oneOf(["short", "medium", "long", "full"])),
364
+ datetime: a(t.oneOf(["short", "medium", "long", "full"])),
365
+ era: a(t.oneOf(["narrow", "short", "long"])),
366
+ year: a(t.oneOf(["numeric", "2-digit"])),
367
+ month: a(t.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
368
+ day: a(t.oneOf(["numeric", "2-digit"])),
369
+ weekday: a(t.oneOf(["narrow", "short", "long"])),
370
+ hour: a(t.oneOf(["numeric", "2-digit"])),
371
+ hour12: a(t.bool),
372
+ minute: a(t.oneOf(["numeric", "2-digit"])),
373
+ second: a(t.oneOf(["numeric", "2-digit"])),
374
+ timeZoneName: a(t.oneOf(["short", "long"]))
375
375
  })
376
376
  ]),
377
377
  formatPlaceholder: t.oneOfType([
378
- r(
378
+ a(
379
379
  t.oneOf(["wide", "narrow", "short", "formatPattern"])
380
380
  ),
381
381
  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)
382
+ year: a(t.string),
383
+ month: a(t.string),
384
+ day: a(t.string),
385
+ hour: a(t.string),
386
+ minute: a(t.string),
387
+ second: a(t.string)
388
388
  })
389
389
  ]),
390
390
  id: t.string,
@@ -395,9 +395,9 @@ me.propTypes = {
395
395
  max: t.instanceOf(Date),
396
396
  name: t.string,
397
397
  popupSettings: t.shape({
398
- animate: r(t.bool),
399
- appendTo: r(t.any),
400
- popupClass: r(t.string)
398
+ animate: a(t.bool),
399
+ appendTo: a(t.any),
400
+ popupClass: a(t.string)
401
401
  }),
402
402
  show: t.bool,
403
403
  tabIndex: t.number,
@@ -420,14 +420,14 @@ me.propTypes = {
420
420
  const i = {
421
421
  defaultShow: !1,
422
422
  defaultValue: null,
423
- dateInput: yt,
424
- calendar: Ct,
425
- toggleButton: Rt,
423
+ dateInput: Ct,
424
+ calendar: Dt,
425
+ toggleButton: St,
426
426
  popup: dt,
427
427
  disabled: !1,
428
428
  format: "d",
429
- max: Ot,
430
- min: Dt,
429
+ max: Pt,
430
+ min: Ot,
431
431
  popupSettings: {},
432
432
  tabIndex: 0,
433
433
  weekNumber: !1,
@@ -436,10 +436,10 @@ const i = {
436
436
  rounded: void 0,
437
437
  fillMode: void 0,
438
438
  autoFocus: !1
439
- }, Et = bt();
439
+ }, Bt = wt();
440
440
  me.displayName = "KendoReactDatePicker";
441
441
  export {
442
442
  me as DatePicker,
443
- Et as DatePickerPropsContext,
443
+ Bt as DatePickerPropsContext,
444
444
  i as datePickerDefaultProps
445
445
  };
@@ -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
@@ -9,7 +9,7 @@ import * as i from "react";
9
9
  import e from "prop-types";
10
10
  import { Popup as A } from "@progress/kendo-react-popup";
11
11
  import { cloneDate as w } from "@progress/kendo-date-math";
12
- import { withIdHOC as F, withPropsContext as P, withAdaptiveModeContext as z, createPropsContext as B, classNames as b, Keys as c, validatePackage as L, getLicenseMessage as N, canUseDOM as D, IconWrap as V, WatermarkOverlay as W, getActiveElement as K } from "@progress/kendo-react-common";
12
+ import { createPropsContext as F, classNames as b, Keys as c, validatePackage as P, getLicenseMessage as z, canUseDOM as D, IconWrap as B, WatermarkOverlay as L, getActiveElement as N, withIdHOC as V, withPropsContext as W, withAdaptiveModeContext as K } from "@progress/kendo-react-common";
13
13
  import { provideLocalizationService as m, registerForLocalization as U } from "@progress/kendo-react-intl";
14
14
  import { arrowsSwapIcon as q } from "@progress/kendo-svg-icons";
15
15
  import { packageMetadata as I } from "../package-metadata.mjs";
@@ -150,7 +150,7 @@ const o = class o extends i.Component {
150
150
  n.call(void 0, u);
151
151
  }
152
152
  this.valueDuringOnChange = void 0;
153
- }, this.showLicenseWatermark = !L(I, { component: "DateRangePicker" }), this.licenseMessage = N(I), this.state = {
153
+ }, this.showLicenseWatermark = !P(I, { component: "DateRangePicker" }), this.licenseMessage = z(I), this.state = {
154
154
  show: this.props.show || this.props.defaultShow || o.defaultProps.defaultShow,
155
155
  value: this.props.value || this.props.defaultValue || o.defaultProps.defaultValue,
156
156
  currentValue: r
@@ -303,7 +303,7 @@ const o = class o extends i.Component {
303
303
  l[p]
304
304
  )
305
305
  },
306
- /* @__PURE__ */ i.createElement(V, { style: { transform: "rotate(90deg)" }, name: "arrows-swap", icon: q })
306
+ /* @__PURE__ */ i.createElement(B, { style: { transform: "rotate(90deg)" }, name: "arrows-swap", icon: q })
307
307
  );
308
308
  return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(
309
309
  "span",
@@ -344,12 +344,12 @@ const o = class o extends i.Component {
344
344
  }
345
345
  ),
346
346
  !this.mobileMode && this.renderPopup()
347
- ), this.mobileMode && this.renderAdaptivePopup(), this.showLicenseWatermark && /* @__PURE__ */ i.createElement(W, { message: this.licenseMessage }));
347
+ ), this.mobileMode && this.renderAdaptivePopup(), this.showLicenseWatermark && /* @__PURE__ */ i.createElement(L, { message: this.licenseMessage }));
348
348
  }
349
349
  focusDateInputElement() {
350
350
  if (!document || !this.startDateInput || !this.startDateInput.element || !this.endDateInput || !this.endDateInput.element)
351
351
  return;
352
- const a = K(document);
352
+ const a = N(document);
353
353
  (this.value.start === null || this.value.end !== null) && a !== this.endDateInput.element ? this.startDateInput.element.focus({ preventScroll: !0 }) : a !== this.startDateInput.element && this.endDateInput.element.focus({ preventScroll: !0 });
354
354
  }
355
355
  nextTick(a) {
@@ -433,10 +433,10 @@ o.displayName = "DateRangePicker", o.propTypes = {
433
433
  autoFocus: !1
434
434
  };
435
435
  let d = o;
436
- const J = B(), Q = F(
437
- P(
436
+ const J = F(), Q = V(
437
+ W(
438
438
  J,
439
- z(d)
439
+ K(d)
440
440
  )
441
441
  );
442
442
  Q.displayName = "KendoReactDateRangePicker";
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { default as PropTypes } from 'prop-types';
9
- import { FormComponent, FormComponentProps, FormComponentValidity, DateInputsClassStructure, AdaptiveModeContextType } from '@progress/kendo-react-common';
9
+ import { FormComponent, FormComponentProps, FormComponentValidity, DateInputsClassStructure, AdaptiveModeContextType, WebMcpProps } from '@progress/kendo-react-common';
10
10
  import { DateInputHandle, DateInputProps } from '../dateinput/DateInput.js';
11
11
  import { DateTimePickerSettings } from './models/index.js';
12
12
  import { DateInputCommonPackageProps } from '../dateinput/models/common-package-props';
@@ -181,6 +181,11 @@ export interface DateTimePickerProps extends DateTimePickerSettings, FormCompone
181
181
  * This prop is provided by the withAdaptiveModeContext HOC to subscribe to AdaptiveModeContext.
182
182
  */
183
183
  _adaptiveMode?: AdaptiveModeContextType;
184
+ /**
185
+ * Enables Web MCP tool registration for this component.
186
+ * Requires a parent `WebMcpProvider` from `@progress/kendo-react-webmcp`.
187
+ */
188
+ webMcp?: boolean | WebMcpProps;
184
189
  }
185
190
  /**
186
191
  * @hidden
@@ -9,7 +9,7 @@ import * as n from "react";
9
9
  import e from "prop-types";
10
10
  import { Popup as ee } from "@progress/kendo-react-popup";
11
11
  import { cloneDate as P } from "@progress/kendo-date-math";
12
- import { withIdHOC as te, withPropsContext as ie, withUnstyledHOC as se, withAdaptiveModeContext as oe, createPropsContext as ae, Keys as d, canUseDOM as C, subscribeToKendoPaste as ne, AsyncFocusBlur as re, classNames as S, uDateTimePicker as D } from "@progress/kendo-react-common";
12
+ import { createPropsContext as te, Keys as d, canUseDOM as C, subscribeToKendoPaste as ie, AsyncFocusBlur as se, classNames as S, uDateTimePicker as D, withIdHOC as oe, withPropsContext as ae, withUnstyledHOC as ne, withAdaptiveModeContext as re } from "@progress/kendo-react-common";
13
13
  import { calendarIcon as le } from "@progress/kendo-svg-icons";
14
14
  import { DateInput as he } from "../dateinput/DateInput.mjs";
15
15
  import { Button as de } from "@progress/kendo-react-buttons";
@@ -227,7 +227,7 @@ const a = class a extends n.Component {
227
227
  var t;
228
228
  this.observerResize = C && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this)), this.show && this.forceUpdate(), (t = this.document) != null && t.body && this.observerResize && this.observerResize.observe(this.document.body);
229
229
  const i = this.props.name || this.props.id;
230
- this.KendoPasteSubscription = ne(this._element, {
230
+ this.KendoPasteSubscription = ie(this._element, {
231
231
  fieldName: i,
232
232
  onValueChange: (s) => {
233
233
  this.handleSmartPasteValue(s);
@@ -320,7 +320,7 @@ const a = class a extends n.Component {
320
320
  autoSwitchKeys: Y,
321
321
  allowCaretMode: Z
322
322
  }, I = /* @__PURE__ */ n.createElement(
323
- re,
323
+ se,
324
324
  {
325
325
  onFocus: this.handleFocus,
326
326
  onBlur: this.handleBlur,
@@ -523,11 +523,11 @@ a.displayName = "DateTimePicker", a.propTypes = {
523
523
  autoFocus: !1
524
524
  };
525
525
  let f = a;
526
- const Se = ae(), De = te(
527
- ie(
526
+ const Se = te(), De = oe(
527
+ ae(
528
528
  Se,
529
- se(
530
- oe(f)
529
+ ne(
530
+ re(f)
531
531
  )
532
532
  )
533
533
  );