@progress/kendo-react-dateinputs 9.4.0-develop.24 → 9.4.0-develop.4

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