@progress/kendo-react-dateinputs 9.4.0-develop.2 → 9.4.0-develop.20

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 (108) hide show
  1. package/NOTICE.txt +40 -51
  2. package/calendar/components/Calendar.js +1 -1
  3. package/calendar/components/Calendar.mjs +0 -1
  4. package/calendar/components/CalendarCell.js +1 -1
  5. package/calendar/components/CalendarCell.mjs +12 -13
  6. package/calendar/components/CalendarHeaderTitle.js +1 -1
  7. package/calendar/components/CalendarHeaderTitle.mjs +3 -4
  8. package/calendar/components/CalendarNavigationItem.js +1 -1
  9. package/calendar/components/CalendarNavigationItem.mjs +2 -3
  10. package/calendar/components/CalendarWeekCell.js +1 -1
  11. package/calendar/components/CalendarWeekCell.mjs +8 -9
  12. package/calendar/components/Header.js +1 -1
  13. package/calendar/components/Header.mjs +0 -1
  14. package/calendar/components/HorizontalViewList.js +1 -1
  15. package/calendar/components/HorizontalViewList.mjs +0 -1
  16. package/calendar/components/MultiViewCalendar.js +1 -1
  17. package/calendar/components/MultiViewCalendar.mjs +0 -1
  18. package/calendar/components/Navigation.js +1 -1
  19. package/calendar/components/Navigation.mjs +0 -1
  20. package/calendar/components/TodayCommand.js +1 -1
  21. package/calendar/components/TodayCommand.mjs +0 -1
  22. package/calendar/components/View.js +1 -1
  23. package/calendar/components/View.mjs +0 -1
  24. package/calendar/components/ViewList.js +1 -1
  25. package/calendar/components/ViewList.mjs +0 -1
  26. package/calendar/models/CalendarViewEnum.js +1 -1
  27. package/calendar/models/CalendarViewEnum.mjs +0 -1
  28. package/calendar/models/NavigationAction.js +1 -1
  29. package/calendar/models/NavigationAction.mjs +0 -1
  30. package/calendar/models/SelectionRange.js +1 -1
  31. package/calendar/models/SelectionRange.mjs +0 -1
  32. package/calendar/services/BusViewService.js +1 -1
  33. package/calendar/services/BusViewService.mjs +0 -1
  34. package/calendar/services/CenturyViewService.js +1 -1
  35. package/calendar/services/CenturyViewService.mjs +0 -1
  36. package/calendar/services/DOMService.js +1 -1
  37. package/calendar/services/DOMService.mjs +0 -1
  38. package/calendar/services/DecadeViewService.js +1 -1
  39. package/calendar/services/DecadeViewService.mjs +0 -1
  40. package/calendar/services/MonthViewService.js +1 -1
  41. package/calendar/services/MonthViewService.mjs +0 -1
  42. package/calendar/services/NavigationService.js +1 -1
  43. package/calendar/services/NavigationService.mjs +18 -19
  44. package/calendar/services/ScrollSyncService.js +1 -1
  45. package/calendar/services/ScrollSyncService.mjs +0 -1
  46. package/calendar/services/WeekNamesService.js +1 -1
  47. package/calendar/services/WeekNamesService.mjs +5 -6
  48. package/calendar/services/YearViewService.js +1 -1
  49. package/calendar/services/YearViewService.mjs +0 -1
  50. package/common/AdaptiveMode.js +1 -1
  51. package/common/AdaptiveMode.mjs +7 -8
  52. package/common/ClearButton.js +1 -1
  53. package/common/ClearButton.mjs +7 -8
  54. package/common/PickerWrap.js +1 -1
  55. package/common/PickerWrap.mjs +3 -4
  56. package/dateinput/DateInput.js +1 -1
  57. package/dateinput/DateInput.mjs +69 -68
  58. package/dateinput/dateInputIntl.js +1 -1
  59. package/dateinput/dateInputIntl.mjs +3 -4
  60. package/dateinput/utils.js +1 -1
  61. package/dateinput/utils.mjs +4 -5
  62. package/datepicker/DatePicker.js +1 -1
  63. package/datepicker/DatePicker.mjs +203 -197
  64. package/datepicker/ToggleButton.js +1 -1
  65. package/datepicker/ToggleButton.mjs +3 -4
  66. package/daterangepicker/DateRangePicker.js +1 -1
  67. package/daterangepicker/DateRangePicker.mjs +0 -1
  68. package/datetimepicker/DateTimePicker.js +1 -1
  69. package/datetimepicker/DateTimePicker.mjs +0 -1
  70. package/datetimepicker/DateTimeSelector.js +1 -1
  71. package/datetimepicker/DateTimeSelector.mjs +0 -1
  72. package/dist/cdn/js/kendo-react-dateinputs.js +8 -1
  73. package/hooks/usePickerFloatingLabel.js +1 -1
  74. package/hooks/usePickerFloatingLabel.mjs +5 -6
  75. package/index.js +2 -1
  76. package/messages/index.js +1 -1
  77. package/messages/index.mjs +5 -6
  78. package/package-metadata.js +1 -1
  79. package/package-metadata.mjs +2 -3
  80. package/package.json +8 -8
  81. package/timepicker/TimeList.js +1 -1
  82. package/timepicker/TimeList.mjs +16 -17
  83. package/timepicker/TimePart.js +1 -1
  84. package/timepicker/TimePart.mjs +0 -1
  85. package/timepicker/TimePicker.js +1 -1
  86. package/timepicker/TimePicker.mjs +0 -1
  87. package/timepicker/TimeSelector.js +1 -1
  88. package/timepicker/TimeSelector.mjs +0 -1
  89. package/timepicker/models/TimePart.js +1 -1
  90. package/timepicker/models/TimePart.mjs +2 -3
  91. package/timepicker/services/DOMService.js +1 -1
  92. package/timepicker/services/DOMService.mjs +0 -1
  93. package/timepicker/services/DayPeriodService.js +1 -1
  94. package/timepicker/services/DayPeriodService.mjs +3 -4
  95. package/timepicker/services/HoursService.js +1 -1
  96. package/timepicker/services/HoursService.mjs +3 -4
  97. package/timepicker/services/MinutesService.js +1 -1
  98. package/timepicker/services/MinutesService.mjs +5 -6
  99. package/timepicker/services/SecondsService.js +1 -1
  100. package/timepicker/services/SecondsService.mjs +0 -1
  101. package/timepicker/utils.js +1 -1
  102. package/timepicker/utils.mjs +0 -1
  103. package/utils.js +1 -1
  104. package/utils.mjs +18 -19
  105. package/virtualization/Virtualization.js +1 -1
  106. package/virtualization/Virtualization.mjs +0 -1
  107. package/virtualization/services/ScrollerService.js +1 -1
  108. package/virtualization/services/ScrollerService.mjs +0 -1
@@ -5,106 +5,110 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as o from "react";
10
9
  import e from "prop-types";
11
- import { Popup as Je } from "@progress/kendo-react-popup";
12
- import { cloneDate as ne, getDate as Qe } from "@progress/kendo-date-math";
13
- import { validatePackage as et, useId as tt, useAdaptiveModeContext as nt, usePropsContext as ot, canUseDOM as oe, AsyncFocusBlur as rt, classNames as re, kendoThemeMaps as ae, createPropsContext as at, Keys as D } from "@progress/kendo-react-common";
14
- import { calendarIcon as it } from "@progress/kendo-svg-icons";
15
- import { packageMetadata as lt } from "../package-metadata.mjs";
16
- import { DateInput as ut } from "../dateinput/DateInput.mjs";
17
- import { Calendar as st } from "../calendar/components/Calendar.mjs";
18
- import { nullable as l, MAX_DATE as ct, MIN_DATE as dt, isInDateRange as ft, setTime as mt } from "../utils.mjs";
19
- import { toggleCalendar as ie, messages as pt } from "../messages/index.mjs";
20
- import { useLocalization as gt } from "@progress/kendo-react-intl";
21
- import { ToggleButton as ht } from "./ToggleButton.mjs";
22
- import { PickerWrap as vt } from "../common/PickerWrap.mjs";
23
- import { PickerFloatingLabel as wt } from "../hooks/usePickerFloatingLabel.mjs";
24
- import { ActionSheetContent as bt } from "@progress/kendo-react-layout";
25
- import { AdaptiveMode as yt } from "../common/AdaptiveMode.mjs";
26
- const le = o.forwardRef((n, ue) => {
27
- et(lt);
28
- const V = tt(n.id), se = gt(), g = nt(), {
29
- defaultShow: ce = a.defaultShow,
30
- defaultValue: de = a.defaultValue,
31
- dateInput: fe = a.dateInput,
32
- calendar: me = a.calendar,
33
- toggleButton: pe = a.toggleButton,
34
- popup: ge = a.popup,
35
- pickerWrap: Rt = a.pickerWrap,
36
- disabled: h = a.disabled,
37
- format: he = a.format,
38
- max: P = a.max,
39
- min: I = a.min,
40
- popupSettings: v = a.popupSettings,
41
- tabIndex: ve = a.tabIndex,
42
- weekNumber: we = a.weekNumber,
43
- validityStyles: F = a.validityStyles,
44
- size: S = a.size,
45
- rounded: E = a.rounded,
46
- fillMode: x = a.fillMode,
47
- autoFocus: be = a.autoFocus,
48
- show: N,
49
- autoSwitchParts: ye,
50
- autoSwitchKeys: Ce,
51
- twoDigitYearMax: Re,
52
- ariaLabel: ke,
53
- adaptive: kt,
54
- adaptiveTitle: De,
55
- inputAttributes: Oe,
56
- validationMessage: z,
57
- _adaptiveMode: Dt = g,
58
- valid: W,
59
- focusedDate: Me,
60
- ...L
61
- } = ot(Ct, n), B = () => {
62
- if (oe)
10
+ import { Popup as et } from "@progress/kendo-react-popup";
11
+ import { cloneDate as oe, getDate as tt } from "@progress/kendo-date-math";
12
+ import { validatePackage as nt, useId as ot, useAdaptiveModeContext as rt, usePropsContext as at, canUseDOM as re, AsyncFocusBlur as lt, classNames as ae, kendoThemeMaps as le, createPropsContext as it, Keys as O } from "@progress/kendo-react-common";
13
+ import { calendarIcon as ut } from "@progress/kendo-svg-icons";
14
+ import { packageMetadata as st } from "../package-metadata.mjs";
15
+ import { DateInput as ct } from "../dateinput/DateInput.mjs";
16
+ import { Calendar as dt } from "../calendar/components/Calendar.mjs";
17
+ import { nullable as a, MAX_DATE as ft, MIN_DATE as mt, isInDateRange as pt, setTime as gt } from "../utils.mjs";
18
+ import { toggleCalendar as ie, messages as ht } from "../messages/index.mjs";
19
+ import { useLocalization as vt } from "@progress/kendo-react-intl";
20
+ import { ToggleButton as wt } from "./ToggleButton.mjs";
21
+ import { PickerWrap as bt } from "../common/PickerWrap.mjs";
22
+ import { PickerFloatingLabel as yt } from "../hooks/usePickerFloatingLabel.mjs";
23
+ import { ActionSheetContent as Ct } from "@progress/kendo-react-layout";
24
+ import { AdaptiveMode as kt } from "../common/AdaptiveMode.mjs";
25
+ const ue = o.forwardRef((n, se) => {
26
+ nt(st);
27
+ const N = ot(n.id), ce = vt(), g = rt(), {
28
+ defaultShow: de = l.defaultShow,
29
+ defaultValue: fe = l.defaultValue,
30
+ dateInput: me = l.dateInput,
31
+ calendar: pe = l.calendar,
32
+ toggleButton: ge = l.toggleButton,
33
+ popup: he = l.popup,
34
+ pickerWrap: Ot = l.pickerWrap,
35
+ disabled: h = l.disabled,
36
+ format: ve = l.format,
37
+ max: R = l.max,
38
+ min: I = l.min,
39
+ popupSettings: v = l.popupSettings,
40
+ tabIndex: we = l.tabIndex,
41
+ weekNumber: be = l.weekNumber,
42
+ validityStyles: z = l.validityStyles,
43
+ size: S = l.size,
44
+ rounded: E = l.rounded,
45
+ fillMode: x = l.fillMode,
46
+ autoFocus: ye = l.autoFocus,
47
+ show: W,
48
+ autoSwitchParts: Ce,
49
+ autoSwitchKeys: ke,
50
+ twoDigitYearMax: De,
51
+ ariaLabel: Oe,
52
+ adaptive: Mt,
53
+ adaptiveTitle: Me,
54
+ inputAttributes: Pe,
55
+ validationMessage: L,
56
+ visited: Pt,
57
+ value: _,
58
+ touched: Rt,
59
+ modified: It,
60
+ _adaptiveMode: St = g,
61
+ valid: K,
62
+ focusedDate: Re,
63
+ id: Ie,
64
+ ...q
65
+ } = at(Dt, n), B = () => {
66
+ if (re)
63
67
  return b.current && b.current.ownerDocument || window.document;
64
68
  }, s = () => !!(p.windowWidth && g && p.windowWidth <= (g == null ? void 0 : g.medium) && n.adaptive), d = () => {
65
- const t = C.current !== void 0 && C.current !== null ? C.current : n.value !== void 0 ? n.value : p.value;
66
- return t !== null ? ne(t) : null;
67
- }, i = () => O.current !== void 0 ? O.current : N !== void 0 ? N : p.show, Pe = () => fe || a.dateInput, Ie = () => pe || a.toggleButton, Se = () => me || a.calendar, Ee = () => ge || a.popup, K = () => n.required !== void 0 ? n.required : !1, T = () => {
68
- const t = d() || n.value || null, r = I, u = P, M = ft(t, r, u), _ = z !== void 0, q = (!K() || t != null) && M, A = W !== void 0 ? W : q;
69
+ const t = C.current !== void 0 && C.current !== null ? C.current : _ !== void 0 ? _ : p.value;
70
+ return t !== null ? oe(t) : null;
71
+ }, i = () => M.current !== void 0 ? M.current : W !== void 0 ? W : p.show, Se = () => me || l.dateInput, Ee = () => ge || l.toggleButton, xe = () => pe || l.calendar, _e = () => he || l.popup, H = () => n.required !== void 0 ? n.required : !1, T = () => {
72
+ const t = d() || _ || null, r = I, u = R, P = pt(t, r, u), A = L !== void 0, V = (!H() || t != null) && P, F = K !== void 0 ? K : V;
69
73
  return {
70
- customError: _,
74
+ customError: A,
71
75
  rangeOverflow: t && u.getTime() < t.getTime() || !1,
72
76
  rangeUnderflow: t && t.getTime() < r.getTime() || !1,
73
- valid: A,
77
+ valid: F,
74
78
  valueMissing: t === null
75
79
  };
76
- }, xe = (t) => {
80
+ }, Be = (t) => {
77
81
  for (const r of t)
78
- k({ windowWidth: r.target.clientWidth });
79
- }, Be = () => {
82
+ D({ windowWidth: r.target.clientWidth });
83
+ }, Te = () => {
80
84
  c.current && c.current.focus();
81
- }, H = (t) => {
85
+ }, U = (t) => {
82
86
  y.current = t;
83
87
  }, f = (t) => {
84
- i() !== t && (k({ show: t }), t && n.onOpen && n.onOpen.call(void 0, { target: w.current }), !t && n.onClose && n.onClose.call(void 0, { target: w.current }));
85
- }, Te = (t) => {
88
+ i() !== t && (D({ show: t }), t && n.onOpen && n.onOpen.call(void 0, { target: w.current }), !t && n.onClose && n.onClose.call(void 0, { target: w.current }));
89
+ }, Ae = (t) => {
86
90
  const r = d();
87
- return r && t ? mt(t, r) : t;
88
- }, _e = (t) => {
91
+ return r && t ? gt(t, r) : t;
92
+ }, Ve = (t) => {
89
93
  v != null && v.onMouseDownOutside && v.onMouseDownOutside.call(void 0, t);
90
- }, U = (t, r) => {
91
- k({ value: ne(t || void 0) }), C.current = t, O.current = !1, s() || (m.current = !0), n.onChange && n.onChange.call(void 0, {
94
+ }, Y = (t, r) => {
95
+ D({ value: oe(t || void 0) }), C.current = t, M.current = !1, s() || (m.current = !0), n.onChange && n.onChange.call(void 0, {
92
96
  syntheticEvent: r.syntheticEvent,
93
97
  nativeEvent: r.nativeEvent,
94
98
  value: d(),
95
99
  show: i(),
96
100
  target: w.current
97
- }), C.current = void 0, O.current = void 0, f(!1);
98
- }, qe = (t) => {
99
- const r = Te(t.value);
100
- U(r, t);
101
- }, Y = () => {
102
- const { popupClass: t, ...r } = v, u = i(), M = d(), _ = M && Qe(M), q = re(t), A = {
101
+ }), C.current = void 0, M.current = void 0, f(!1);
102
+ }, Fe = (t) => {
103
+ const r = Ae(t.value);
104
+ Y(r, t);
105
+ }, $ = () => {
106
+ const { popupClass: t, ...r } = v, u = i(), P = d(), A = P && tt(P), V = ae(t), F = {
103
107
  popupClass: "k-datepicker-popup",
104
108
  show: u,
105
109
  anchor: b.current,
106
- className: q,
107
- id: Z,
110
+ className: V,
111
+ id: G,
108
112
  anchorAlign: {
109
113
  horizontal: "left",
110
114
  vertical: "bottom"
@@ -114,46 +118,46 @@ const le = o.forwardRef((n, ue) => {
114
118
  vertical: "top"
115
119
  },
116
120
  ...r,
117
- onMouseDownOutside: _e
118
- }, ee = {
121
+ onMouseDownOutside: Ve
122
+ }, te = {
119
123
  disabled: h,
120
- value: _,
124
+ value: A,
121
125
  min: I,
122
- max: P,
123
- weekNumber: we,
124
- focusedDate: Me,
126
+ max: R,
127
+ weekNumber: be,
128
+ focusedDate: Re,
125
129
  className: s() ? "k-calendar-lg" : "",
126
130
  navigation: !s(),
127
- onChange: qe
128
- }, te = Se(), Ge = Ee();
129
- return s() ? /* @__PURE__ */ o.createElement(te, { _ref: H, ...ee }) : /* @__PURE__ */ o.createElement(Ge, { ...A }, /* @__PURE__ */ o.createElement(te, { _ref: H, ...ee }));
130
- }, $ = () => {
131
- k({ focused: !1 }), f(!1);
132
- }, Ae = () => {
131
+ onChange: Fe
132
+ }, ne = xe(), Qe = _e();
133
+ return s() ? /* @__PURE__ */ o.createElement(ne, { _ref: U, ...te }) : /* @__PURE__ */ o.createElement(Qe, { ...F }, /* @__PURE__ */ o.createElement(ne, { _ref: U, ...te }));
134
+ }, j = () => {
135
+ D({ focused: !1 }), f(!1);
136
+ }, Ne = () => {
133
137
  const { windowWidth: t = 0 } = p, r = {
134
138
  expand: i(),
135
- onClose: $,
136
- adaptiveTitle: De,
139
+ onClose: j,
140
+ adaptiveTitle: Me,
137
141
  windowWidth: t
138
- }, u = Y();
139
- return /* @__PURE__ */ o.createElement(yt, { ...r }, /* @__PURE__ */ o.createElement(bt, { overflowHidden: !0 }, u));
140
- }, Ve = (t) => {
141
- U(t.value, t);
142
- }, Fe = () => {
143
- k({ focused: !0 });
144
- }, Ne = () => {
142
+ }, u = $();
143
+ return /* @__PURE__ */ o.createElement(kt, { ...r }, /* @__PURE__ */ o.createElement(Ct, { overflowHidden: !0 }, u));
144
+ }, ze = (t) => {
145
+ Y(t.value, t);
146
+ }, We = () => {
147
+ D({ focused: !0 });
148
+ }, Le = () => {
145
149
  f(!i());
146
- }, j = () => {
150
+ }, X = () => {
147
151
  h || (m.current = !0, f(!i()));
148
- }, ze = (t) => {
152
+ }, Ke = (t) => {
149
153
  t.preventDefault();
150
- }, We = (t) => {
154
+ }, qe = (t) => {
151
155
  const { altKey: r, keyCode: u } = t;
152
- if (u === D.esc && i()) {
156
+ if (u === O.esc && i()) {
153
157
  m.current = !0, f(!1);
154
158
  return;
155
159
  }
156
- r && (u === D.up || u === D.down) && (t.preventDefault(), t.stopPropagation(), m.current = u === D.up, f(u === D.down));
160
+ r && (u === O.up || u === O.down) && (t.preventDefault(), t.stopPropagation(), m.current = u === O.up, f(u === O.down));
157
161
  }, w = o.useRef(null), b = o.useRef(null), c = o.useRef(null), y = o.useRef(null);
158
162
  o.useImperativeHandle(
159
163
  w,
@@ -183,47 +187,47 @@ const le = o.forwardRef((n, ue) => {
183
187
  get mobileMode() {
184
188
  return s();
185
189
  },
186
- togglePopup: Ne,
190
+ togglePopup: Le,
187
191
  // Hidden Methods but still accessible
188
- focus: Be
192
+ focus: Te
189
193
  })
190
- ), o.useImperativeHandle(ue, () => w.current);
191
- const C = o.useRef(null), O = o.useRef(void 0), Le = o.useRef(null), m = o.useRef(!1), X = o.useRef(!1), R = o.useRef(null), [p, Ke] = o.useState({
192
- value: de,
193
- show: ce,
194
+ ), o.useImperativeHandle(se, () => w.current);
195
+ const C = o.useRef(null), M = o.useRef(void 0), He = o.useRef(null), m = o.useRef(!1), Z = o.useRef(!1), k = o.useRef(null), [p, Ue] = o.useState({
196
+ value: fe,
197
+ show: de,
194
198
  focused: !1
195
- }), [, He] = o.useReducer((t) => t, !0), k = (t) => {
196
- Ke((r) => ({ ...r, ...t }));
199
+ }), [, Ye] = o.useReducer((t) => t, !0), D = (t) => {
200
+ Ue((r) => ({ ...r, ...t }));
197
201
  };
198
202
  o.useEffect(() => {
199
- y.current && y.current.element && i() && !X.current && y.current.element.focus({ preventScroll: !0 }), c.current && c.current.element && !i() && m.current && c.current.element.focus({ preventScroll: !0 }), X.current = i(), m.current = !1;
203
+ y.current && y.current.element && i() && !Z.current && y.current.element.focus({ preventScroll: !0 }), c.current && c.current.element && !i() && m.current && c.current.element.focus({ preventScroll: !0 }), Z.current = i(), m.current = !1;
200
204
  }), o.useEffect(() => {
201
205
  var t;
202
- return R.current = oe && window.ResizeObserver && new window.ResizeObserver((r) => xe(r)), i() && He(), (t = B()) != null && t.body && R.current && R.current.observe(B().body), () => {
206
+ return k.current = re && window.ResizeObserver && new window.ResizeObserver((r) => Be(r)), i() && Ye(), (t = B()) != null && t.body && k.current && k.current.observe(B().body), () => {
203
207
  var r;
204
- clearTimeout(Le.current), (r = B()) != null && r.body && R.current && R.current.disconnect();
208
+ clearTimeout(He.current), (r = B()) != null && r.body && k.current && k.current.disconnect();
205
209
  };
206
210
  }, []);
207
- const Z = V + "-popup-id", Ue = Y(), Ye = Pe(), $e = d(), je = Ie(), Xe = Ae(), G = !F || T().valid, J = se.toLanguageString(ie, pt[ie]), Ze = {
211
+ const G = N + "-popup-id", $e = $(), je = Se(), Xe = d(), Ze = Ee(), Ge = Ne(), J = !z || T().valid, Q = ce.toLanguageString(ie, ht[ie]), Je = {
208
212
  disabled: h,
209
- format: he,
213
+ format: ve,
210
214
  formatPlaceholder: n.formatPlaceholder,
211
- id: n.id,
215
+ id: Ie,
212
216
  ariaLabelledBy: n.ariaLabelledBy,
213
217
  ariaDescribedBy: n.ariaDescribedBy,
214
- ariaLabel: ke,
215
- max: P,
218
+ ariaLabel: Oe,
219
+ max: R,
216
220
  min: I,
217
221
  name: n.name,
218
- onChange: Ve,
222
+ onChange: ze,
219
223
  required: n.required,
220
224
  _ref: c,
221
- tabIndex: i() ? -1 : ve,
225
+ tabIndex: i() ? -1 : we,
222
226
  title: n.title,
223
227
  valid: T().valid,
224
- validationMessage: z,
225
- validityStyles: F,
226
- value: $e,
228
+ validationMessage: L,
229
+ validityStyles: z,
230
+ value: Xe,
227
231
  label: void 0,
228
232
  placeholder: p.focused ? null : n.placeholder,
229
233
  ariaExpanded: i(),
@@ -231,89 +235,89 @@ const le = o.forwardRef((n, ue) => {
231
235
  fillMode: null,
232
236
  rounded: null,
233
237
  autoFill: n.autoFill,
234
- twoDigitYearMax: Re,
238
+ twoDigitYearMax: De,
235
239
  enableMouseWheel: n.enableMouseWheel,
236
240
  autoCorrectParts: n.autoCorrectParts,
237
- autoSwitchParts: ye,
238
- autoSwitchKeys: Ce,
241
+ autoSwitchParts: Ce,
242
+ autoSwitchKeys: ke,
239
243
  allowCaretMode: n.allowCaretMode,
240
- inputAttributes: Oe
241
- }, Q = /* @__PURE__ */ o.createElement(
242
- rt,
244
+ inputAttributes: Pe
245
+ }, ee = /* @__PURE__ */ o.createElement(
246
+ lt,
243
247
  {
244
- onFocus: Fe,
245
- onBlur: s() ? void 0 : $,
248
+ onFocus: We,
249
+ onBlur: s() ? void 0 : j,
246
250
  onSyncBlur: n.onBlur,
247
251
  onSyncFocus: n.onFocus
248
252
  },
249
253
  (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
250
254
  "span",
251
255
  {
252
- ...n.label ? {} : L,
256
+ ...n.label ? {} : q,
253
257
  ref: b,
254
- className: re(
258
+ className: ae(
255
259
  "k-input",
256
260
  "k-datepicker",
257
261
  {
258
- [`k-input-${ae.sizeMap[S] || S}`]: S,
259
- [`k-rounded-${ae.roundedMap[E] || E}`]: E,
262
+ [`k-input-${le.sizeMap[S] || S}`]: S,
263
+ [`k-rounded-${le.roundedMap[E] || E}`]: E,
260
264
  [`k-input-${x}`]: x,
261
- "k-invalid": !G,
262
- "k-required": K(),
265
+ "k-invalid": !J,
266
+ "k-required": H(),
263
267
  "k-disabled": h
264
268
  },
265
269
  n.className
266
270
  ),
267
- onKeyDown: We,
271
+ onKeyDown: qe,
268
272
  style: { width: n.width },
269
273
  onFocus: t.onFocus,
270
274
  onBlur: t.onBlur,
271
- onClick: s() ? j : void 0
275
+ onClick: s() ? X : void 0
272
276
  },
273
277
  /* @__PURE__ */ o.createElement(
274
- Ye,
278
+ je,
275
279
  {
276
280
  _ref: c,
277
281
  ariaRole: "combobox",
278
282
  ariaExpanded: i(),
279
- ariaControls: Z,
280
- autoFocus: be,
281
- ...Ze
283
+ ariaControls: G,
284
+ autoFocus: ye,
285
+ ...Je
282
286
  }
283
287
  ),
284
288
  /* @__PURE__ */ o.createElement(
285
- je,
289
+ Ze,
286
290
  {
287
291
  type: "button",
288
292
  icon: "calendar",
289
- svgIcon: it,
290
- title: J,
293
+ svgIcon: ut,
294
+ title: Q,
291
295
  className: "k-input-button",
292
296
  rounded: null,
293
- onClick: s() ? void 0 : j,
294
- "aria-label": J,
297
+ onClick: s() ? void 0 : X,
298
+ "aria-label": Q,
295
299
  fillMode: x,
296
- onMouseDown: ze
300
+ onMouseDown: Ke
297
301
  }
298
302
  ),
299
- !s() && Ue
300
- ), s() && Xe)
303
+ !s() && $e
304
+ ), s() && Ge)
301
305
  );
302
306
  return n.label ? /* @__PURE__ */ o.createElement(
303
- wt,
307
+ yt,
304
308
  {
305
309
  dateInput: c,
306
310
  label: n.label,
307
- editorId: V,
308
- editorValid: G,
311
+ editorId: N,
312
+ editorValid: J,
309
313
  editorDisabled: h,
310
- children: Q,
314
+ children: ee,
311
315
  style: { width: n.width },
312
- ...L
316
+ ...q
313
317
  }
314
- ) : Q;
318
+ ) : ee;
315
319
  });
316
- le.propTypes = {
320
+ ue.propTypes = {
317
321
  className: e.string,
318
322
  defaultShow: e.bool,
319
323
  defaultValue: e.instanceOf(Date),
@@ -322,32 +326,34 @@ le.propTypes = {
322
326
  format: e.oneOfType([
323
327
  e.string,
324
328
  e.shape({
325
- skeleton: l(e.string),
326
- pattern: l(e.string),
327
- date: l(e.oneOf(["short", "medium", "long", "full"])),
328
- time: l(e.oneOf(["short", "medium", "long", "full"])),
329
- datetime: l(e.oneOf(["short", "medium", "long", "full"])),
330
- era: l(e.oneOf(["narrow", "short", "long"])),
331
- year: l(e.oneOf(["numeric", "2-digit"])),
332
- month: l(e.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
333
- day: l(e.oneOf(["numeric", "2-digit"])),
334
- weekday: l(e.oneOf(["narrow", "short", "long"])),
335
- hour: l(e.oneOf(["numeric", "2-digit"])),
336
- hour12: l(e.bool),
337
- minute: l(e.oneOf(["numeric", "2-digit"])),
338
- second: l(e.oneOf(["numeric", "2-digit"])),
339
- timeZoneName: l(e.oneOf(["short", "long"]))
329
+ skeleton: a(e.string),
330
+ pattern: a(e.string),
331
+ date: a(e.oneOf(["short", "medium", "long", "full"])),
332
+ time: a(e.oneOf(["short", "medium", "long", "full"])),
333
+ datetime: a(e.oneOf(["short", "medium", "long", "full"])),
334
+ era: a(e.oneOf(["narrow", "short", "long"])),
335
+ year: a(e.oneOf(["numeric", "2-digit"])),
336
+ month: a(e.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
337
+ day: a(e.oneOf(["numeric", "2-digit"])),
338
+ weekday: a(e.oneOf(["narrow", "short", "long"])),
339
+ hour: a(e.oneOf(["numeric", "2-digit"])),
340
+ hour12: a(e.bool),
341
+ minute: a(e.oneOf(["numeric", "2-digit"])),
342
+ second: a(e.oneOf(["numeric", "2-digit"])),
343
+ timeZoneName: a(e.oneOf(["short", "long"]))
340
344
  })
341
345
  ]),
342
346
  formatPlaceholder: e.oneOfType([
343
- e.oneOf(["wide", "narrow", "short", "formatPattern"]).isRequired,
347
+ a(
348
+ e.oneOf(["wide", "narrow", "short", "formatPattern"])
349
+ ),
344
350
  e.shape({
345
- year: e.string.isRequired,
346
- month: e.string.isRequired,
347
- day: e.string.isRequired,
348
- hour: e.string.isRequired,
349
- minute: e.string.isRequired,
350
- second: e.string.isRequired
351
+ year: a(e.string),
352
+ month: a(e.string),
353
+ day: a(e.string),
354
+ hour: a(e.string),
355
+ minute: a(e.string),
356
+ second: a(e.string)
351
357
  })
352
358
  ]),
353
359
  id: e.string,
@@ -358,9 +364,9 @@ le.propTypes = {
358
364
  max: e.instanceOf(Date),
359
365
  name: e.string,
360
366
  popupSettings: e.shape({
361
- animate: e.bool.isRequired,
362
- appendTo: e.any.isRequired,
363
- popupClass: e.string.isRequired
367
+ animate: a(e.bool),
368
+ appendTo: a(e.any),
369
+ popupClass: a(e.string)
364
370
  }),
365
371
  show: e.bool,
366
372
  tabIndex: e.number,
@@ -379,18 +385,18 @@ le.propTypes = {
379
385
  autoFocus: e.bool,
380
386
  inputAttributes: e.object
381
387
  };
382
- const a = {
388
+ const l = {
383
389
  defaultShow: !1,
384
390
  defaultValue: null,
385
- dateInput: ut,
386
- calendar: st,
387
- toggleButton: ht,
388
- popup: Je,
389
- pickerWrap: vt,
391
+ dateInput: ct,
392
+ calendar: dt,
393
+ toggleButton: wt,
394
+ popup: et,
395
+ pickerWrap: bt,
390
396
  disabled: !1,
391
397
  format: "d",
392
- max: ct,
393
- min: dt,
398
+ max: ft,
399
+ min: mt,
394
400
  popupSettings: {},
395
401
  tabIndex: 0,
396
402
  weekNumber: !1,
@@ -399,10 +405,10 @@ const a = {
399
405
  rounded: "medium",
400
406
  fillMode: "solid",
401
407
  autoFocus: !1
402
- }, Ct = at();
403
- le.displayName = "KendoReactDatePicker";
408
+ }, Dt = it();
409
+ ue.displayName = "KendoReactDatePicker";
404
410
  export {
405
- le as DatePicker,
406
- Ct as DatePickerPropsContext,
407
- a as datePickerDefaultProps
411
+ ue as DatePicker,
412
+ Dt as DatePickerPropsContext,
413
+ l as datePickerDefaultProps
408
414
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@progress/kendo-react-buttons"),e=t.Button;exports.ToggleButton=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@progress/kendo-react-buttons"),e=t.Button;exports.ToggleButton=e;
@@ -5,9 +5,8 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
- import { Button as t } from "@progress/kendo-react-buttons";
10
- const e = t;
8
+ import { Button as o } from "@progress/kendo-react-buttons";
9
+ const n = o;
11
10
  export {
12
- e as ToggleButton
11
+ n as ToggleButton
13
12
  };