@progress/kendo-react-dateinputs 11.0.0-develop.2 → 11.0.0-develop.21

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.
@@ -5,133 +5,142 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as a from "react";
8
+ import * as r from "react";
9
9
  import e from "prop-types";
10
- import { cloneDate as x, isEqual as Ve } from "@progress/kendo-date-math";
11
- import { Button as J } from "@progress/kendo-react-buttons";
12
- import { caretAltUpIcon as Ne, caretAltDownIcon as _e } from "@progress/kendo-svg-icons";
13
- import { useInternationalization as Fe, useLocalization as He } from "@progress/kendo-react-intl";
14
- import { useId as Be, useUnstyled as qe, usePropsContext as Y, classNames as y, uDateInput as b, createPropsContext as ze, getActiveElement as X } from "@progress/kendo-react-common";
15
- import { FloatingLabel as Ue } from "@progress/kendo-react-labels";
16
- import { DateInput as We } from "@progress/kendo-dateinputs-common";
17
- import { DEFAULT_FORMAT as je, DEFAULT_FORMAT_PLACEHOLDER as Ke, isInRange as Je } from "./utils.mjs";
18
- import { nullable as u, MAX_DATE as Ye, MIN_DATE as Xe, MIN_TIME as Ge, MAX_TIME as Ze } from "../utils.mjs";
19
- import { increaseValue as C, messages as w, decreaseValue as M } from "../messages/index.mjs";
20
- import { isInTimeRange as $e } from "../timepicker/utils.mjs";
21
- import Qe from "../common/ClearButton.mjs";
22
- import { DateInputIntl as et } from "./dateInputIntl.mjs";
23
- const tt = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
24
- var j;
25
- const Q = Be(t.id), ee = Fe(), h = He(), te = qe(), k = Y(G, t).unstyled || te, {
26
- format: T = r.format,
27
- size: ne = r.size,
28
- rounded: ae = r.rounded,
29
- fillMode: re = r.fillMode,
30
- formatPlaceholder: ie = r.formatPlaceholder,
31
- spinners: le = r.spinners,
32
- disabled: O = r.disabled,
33
- min: oe = r.min,
34
- max: ue = r.max,
35
- minTime: se = r.minTime,
36
- maxTime: ce = r.maxTime,
37
- validityStyles: de = r.validityStyles,
38
- validationMessage: p = r.validationMessage,
39
- placeholder: f = r.placeholder,
40
- enableMouseWheel: me = r.enableMouseWheel,
41
- autoCorrectParts: fe = r.autoCorrectParts,
42
- autoSwitchParts: ge = r.autoSwitchParts,
43
- allowCaretMode: ve = r.allowCaretMode,
44
- twoDigitYearMax: ye = r.twoDigitYearMax,
45
- ariaHasPopup: be = r.ariaHasPopup,
46
- autoFocus: he = r.autoFocus
47
- } = Y(G, t), d = () => D.current !== void 0 ? D.current : l.current && l.current.value, A = () => {
48
- const n = l.current && l.current.currentText || "", i = d();
49
- return f != null && !Pe.focused && !i ? f : n;
50
- }, V = () => t.required !== void 0 ? t.required : !1, R = () => {
51
- const n = d() || t.value, i = oe, K = ue, Le = Je(n, i, K) && $e(n, se, ce), ke = p !== void 0, pe = (!V() || n != null) && Le, Ae = t.valid !== void 0 ? t.valid : pe;
10
+ import { cloneDate as D, isEqual as ke } from "@progress/kendo-date-math";
11
+ import { Button as $ } from "@progress/kendo-react-buttons";
12
+ import { caretAltUpIcon as _e, caretAltDownIcon as Fe } from "@progress/kendo-svg-icons";
13
+ import { useInternationalization as He, useLocalization as Be } from "@progress/kendo-react-intl";
14
+ import { useId as qe, useUnstyled as ze, usePropsContext as Q, classNames as h, uDateInput as O, createPropsContext as Ue, getActiveElement as ee } from "@progress/kendo-react-common";
15
+ import { FloatingLabel as We } from "@progress/kendo-react-labels";
16
+ import { DateInput as je } from "@progress/kendo-dateinputs-common";
17
+ import { DEFAULT_FORMAT as Ke, DEFAULT_FORMAT_PLACEHOLDER as Je, isInRange as Ye } from "./utils.mjs";
18
+ import { nullable as u, MAX_DATE as Xe, MIN_DATE as Ze, MIN_TIME as Ge, MAX_TIME as $e } from "../utils.mjs";
19
+ import { increaseValue as T, messages as M, decreaseValue as S } from "../messages/index.mjs";
20
+ import { isInTimeRange as Qe } from "../timepicker/utils.mjs";
21
+ import et from "../common/ClearButton.mjs";
22
+ import { DateInputIntl as tt } from "./dateInputIntl.mjs";
23
+ const nt = "Please enter a valid value!", ne = r.forwardRef((t, re) => {
24
+ var G;
25
+ const ae = qe(t.id), ie = He(), E = Be(), le = ze(), F = Q(te, t).unstyled || le, {
26
+ format: P = l.format,
27
+ size: oe = l.size,
28
+ rounded: ue = l.rounded,
29
+ fillMode: se = l.fillMode,
30
+ formatPlaceholder: ce = l.formatPlaceholder,
31
+ spinners: de = l.spinners,
32
+ disabled: I = l.disabled,
33
+ min: me = l.min,
34
+ max: fe = l.max,
35
+ minTime: ge = l.minTime,
36
+ maxTime: ve = l.maxTime,
37
+ validityStyles: ye = l.validityStyles,
38
+ validationMessage: H = l.validationMessage,
39
+ placeholder: f = l.placeholder,
40
+ enableMouseWheel: be = l.enableMouseWheel,
41
+ autoCorrectParts: he = l.autoCorrectParts,
42
+ autoSwitchParts: Oe = l.autoSwitchParts,
43
+ allowCaretMode: Ee = l.allowCaretMode,
44
+ twoDigitYearMax: Ie = l.twoDigitYearMax,
45
+ ariaHasPopup: xe = l.ariaHasPopup,
46
+ autoFocus: g = l.autoFocus
47
+ } = Q(te, t), d = () => w.current !== void 0 ? w.current : a.current && a.current.value, B = () => {
48
+ const n = a.current && a.current.currentText || "", i = d();
49
+ return f != null && !Ae.focused && !i ? f : n;
50
+ }, q = () => t.required !== void 0 ? t.required : !1, R = () => {
51
+ const n = d() || t.value, i = me, b = fe, V = Ye(n, i, b) && Qe(n, ge, ve), k = H !== void 0, _ = (!q() || n != null) && V, Ve = t.valid !== void 0 ? t.valid : _;
52
52
  return {
53
- customError: ke,
54
- rangeOverflow: n && K.getTime() < n.getTime() || !1,
53
+ customError: k,
54
+ rangeOverflow: n && b.getTime() < n.getTime() || !1,
55
55
  rangeUnderflow: n && n.getTime() < i.getTime() || !1,
56
- valid: Ae,
56
+ valid: Ve,
57
57
  valueMissing: n === null
58
58
  };
59
- }, Oe = () => {
59
+ }, Ce = () => {
60
60
  o.current && o.current.focus();
61
- }, N = () => new et(ee), E = () => {
61
+ }, z = () => new tt(ie), x = () => {
62
62
  const n = d();
63
63
  return {
64
- format: T,
64
+ format: P,
65
65
  steps: t.steps,
66
- formatPlaceholder: ie,
66
+ formatPlaceholder: ce,
67
67
  placeholder: f,
68
68
  selectPreviousSegmentOnBackspace: !0,
69
69
  value: t.value || n,
70
- intlService: N(),
70
+ intlService: z(),
71
71
  autoFill: t.autoFill !== void 0 ? t.autoFill : !1,
72
- enableMouseWheel: me,
73
- autoCorrectParts: fe,
74
- autoSwitchParts: ge,
72
+ enableMouseWheel: be,
73
+ autoCorrectParts: he,
74
+ autoSwitchParts: Oe,
75
75
  autoSwitchKeys: t.autoSwitchKeys || [],
76
- twoDigitYearMax: ye,
77
- allowCaretMode: ve
76
+ twoDigitYearMax: Ie,
77
+ allowCaretMode: Ee
78
78
  };
79
- }, Ee = (n) => {
80
- s.current && s.current.classList.add("k-focus"), q({ focused: !0 });
81
- }, Ie = (n) => {
82
- s.current && s.current.classList.remove("k-focus"), q({ focused: !1 });
83
- }, De = (n, i) => typeof n != typeof i ? !0 : typeof n == "string" && typeof i == "string" ? n !== i : typeof n == "object" && typeof i == "object" ? JSON.stringify(n) !== JSON.stringify(i) : !1, xe = (n) => typeof n == "string" ? n : {
79
+ }, we = (n) => {
80
+ s.current && s.current.classList.add("k-focus"), A({ focused: !0 }), g && J(!0);
81
+ }, De = (n) => {
82
+ s.current && s.current.classList.remove("k-focus"), A({ focused: !1 });
83
+ }, Te = (n, i) => typeof n != typeof i ? !0 : typeof n == "string" && typeof i == "string" ? n !== i : typeof n == "object" && typeof i == "object" ? JSON.stringify(n) !== JSON.stringify(i) : !1, Me = (n) => typeof n == "string" ? n : {
84
84
  inputFormat: n,
85
85
  displayFormat: n
86
- }, _ = (n) => {
87
- D.current = d(), Se(), m.current = n, D.current = void 0;
88
- }, F = (n) => {
86
+ }, U = (n) => {
87
+ w.current = d(), Ne(), m.current = n, w.current = void 0;
88
+ }, W = (n) => {
89
89
  t.onChange && t.onChange(n);
90
- }, H = (n) => {
91
- X(document) === o.current && n.preventDefault();
92
- }, Ce = () => new We(o.current, {
93
- ...E(),
94
- format: xe(E().format),
90
+ }, j = (n) => {
91
+ ee(document) === o.current && n.preventDefault();
92
+ }, Se = () => new je(o.current, {
93
+ ...x(),
94
+ format: Me(x().format),
95
95
  events: {
96
- focus: Ee,
97
- blur: Ie,
98
- valueChange: _,
99
- click: F
96
+ focus: we,
97
+ blur: De,
98
+ valueChange: U,
99
+ click: W
100
100
  }
101
- }), B = () => {
101
+ }), K = () => {
102
102
  o.current && o.current.setCustomValidity && o.current.setCustomValidity(
103
- R().valid ? "" : p || r.validationMessage
103
+ R().valid ? "" : H || l.validationMessage
104
104
  );
105
- }, we = (n) => {
106
- !o.current || !l.current || _(n);
107
- }, Me = (n) => {
105
+ }, J = r.useCallback(
106
+ (n) => {
107
+ var i;
108
+ if (o.current && g && n) {
109
+ const b = (a == null ? void 0 : a.current).currentText, V = (a == null ? void 0 : a.current).currentText.search(/[^a-zA-Z]/), k = b[V], _ = b.split(k)[0].length;
110
+ s.current && s.current.classList.add("k-focus"), (i = a == null ? void 0 : a.current) == null || i.selectNearestSegment(_);
111
+ }
112
+ },
113
+ [g]
114
+ ), Pe = (n) => {
115
+ !o.current || !a.current || U(n);
116
+ }, Re = (n) => {
108
117
  n.preventDefault();
109
- const i = X(document);
118
+ const i = ee(document);
110
119
  o.current && i !== o.current && o.current.focus({ preventScroll: !0 });
111
120
  }, c = (n) => {
112
121
  const i = d();
113
- m.current && t.onChange && !Ve(m.current.oldValue, i) && t.onChange.call(void 0, {
122
+ m.current && t.onChange && !ke(m.current.oldValue, i) && t.onChange.call(void 0, {
114
123
  syntheticEvent: n,
115
124
  nativeEvent: m.current.event,
116
125
  value: m.current.value,
117
- target: I.current
126
+ target: C.current
118
127
  }), m.current = null;
119
- }, Te = (n) => {
128
+ }, Le = (n) => {
120
129
  var i;
121
- (i = l.current) == null || i.modifyDateSegmentValue(1), c(n);
122
- }, Re = (n) => {
130
+ (i = a.current) == null || i.modifyDateSegmentValue(1), c(n);
131
+ }, pe = (n) => {
123
132
  var i;
124
- (i = l.current) == null || i.modifyDateSegmentValue(-1), c(n);
125
- }, I = a.useRef(null), o = a.useRef(null), s = a.useRef(null);
126
- a.useImperativeHandle(
127
- I,
133
+ (i = a.current) == null || i.modifyDateSegmentValue(-1), c(n);
134
+ }, C = r.useRef(null), o = r.useRef(null), s = r.useRef(null);
135
+ r.useImperativeHandle(
136
+ C,
128
137
  () => ({
129
138
  props: t,
130
139
  get options() {
131
- return E();
140
+ return x();
132
141
  },
133
142
  get text() {
134
- return A();
143
+ return B();
135
144
  },
136
145
  get element() {
137
146
  return o.current;
@@ -146,27 +155,27 @@ const tt = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
146
155
  return R();
147
156
  },
148
157
  // hidden methods
149
- focus: Oe,
150
- updateOnPaste: we
158
+ focus: Ce,
159
+ updateOnPaste: Pe
151
160
  })
152
- ), a.useImperativeHandle($, () => I.current);
153
- const l = a.useRef(null), P = a.useRef(null), S = a.useRef(!1), D = a.useRef(null), m = a.useRef(null), g = a.useRef(t), [Pe, q] = a.useState({ focused: !1 }), [, Se] = a.useReducer((n) => n + 1, 0);
154
- a.useLayoutEffect(() => {
155
- S.current || (l.current = Ce(), P.current = l.current.dateObject, S.current = !0);
156
- }, []), a.useEffect(() => (B(), S.current || s.current && s.current.addEventListener("wheel", H, { passive: !1 }), () => {
157
- s.current && s.current.removeEventListener("wheel", H);
158
- }), []), a.useEffect(() => {
159
- B(), l.current && ((De(g.current.format, T) || g.current.readonly !== t.readonly || JSON.stringify(g.current.steps) !== JSON.stringify(t.steps) || N().locale !== l.current.options.intlService.locale) && l.current.setOptions(E(), !0), g.current.value !== t.value && (P.current.getValue() !== null || t.value !== null) && P.current.setValue(t.value), t.ariaExpanded !== void 0 && t.ariaExpanded && (l.current.options.placeholder = null), t.ariaExpanded !== void 0 && !t.ariaExpanded && (l.current.options.placeholder = f), l.current.refreshElementValue(), g.current = {
160
- format: T,
161
+ ), r.useImperativeHandle(re, () => C.current);
162
+ const a = r.useRef(null), L = r.useRef(null), p = r.useRef(!1), w = r.useRef(null), m = r.useRef(null), v = r.useRef(t), [Ae, A] = r.useState({ focused: !1 }), [, Ne] = r.useReducer((n) => n + 1, 0);
163
+ r.useLayoutEffect(() => {
164
+ p.current || (a.current = Se(), L.current = a.current.dateObject, p.current = !0);
165
+ }, []), r.useEffect(() => (K(), p.current || s.current && s.current.addEventListener("wheel", j, { passive: !1 }), g && (A({ focused: !0 }), J(!0)), () => {
166
+ s.current && s.current.removeEventListener("wheel", j);
167
+ }), []), r.useEffect(() => {
168
+ K(), a.current && ((Te(v.current.format, P) || v.current.readonly !== t.readonly || JSON.stringify(v.current.steps) !== JSON.stringify(t.steps) || z().locale !== a.current.options.intlService.locale) && a.current.setOptions(x(), !0), v.current.value !== t.value && (L.current.getValue() !== null || t.value !== null) && L.current.setValue(t.value), t.ariaExpanded !== void 0 && t.ariaExpanded && (a.current.options.placeholder = null), t.ariaExpanded !== void 0 && !t.ariaExpanded && (a.current.options.placeholder = f), a.current.refreshElementValue(), v.current = {
169
+ format: P,
161
170
  readonly: t.readonly,
162
171
  ariaExpanded: t.ariaExpanded,
163
172
  steps: t.steps,
164
173
  value: t.value
165
174
  });
166
175
  });
167
- const z = t.id || Q + "-accessibility-id", v = k && k.uDateInput, U = A(), L = !de || R().valid;
168
- a.useImperativeHandle(t._ref, () => I.current);
169
- const W = /* @__PURE__ */ a.createElement(
176
+ const Y = t.id || ae + "-accessibility-id", y = F && F.uDateInput, X = B(), N = !ye || R().valid;
177
+ r.useImperativeHandle(t._ref, () => C.current);
178
+ const Z = /* @__PURE__ */ r.createElement(
170
179
  "span",
171
180
  {
172
181
  ref: (n) => {
@@ -174,20 +183,20 @@ const tt = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
174
183
  },
175
184
  style: t.label ? void 0 : { width: t.width },
176
185
  dir: t.dir,
177
- className: y(
178
- b.wrapper({
179
- c: v,
180
- size: ne,
181
- fillMode: re,
182
- rounded: ae,
183
- disabled: O,
184
- required: V(),
185
- invalid: !L
186
+ className: h(
187
+ O.wrapper({
188
+ c: y,
189
+ size: oe,
190
+ fillMode: se,
191
+ rounded: ue,
192
+ disabled: I,
193
+ required: q(),
194
+ invalid: !N
186
195
  }),
187
196
  t.className
188
197
  )
189
198
  },
190
- /* @__PURE__ */ a.createElement(
199
+ /* @__PURE__ */ r.createElement(
191
200
  "input",
192
201
  {
193
202
  ref: (n) => {
@@ -196,25 +205,25 @@ const tt = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
196
205
  role: t.ariaRole || "textbox",
197
206
  readOnly: t.readonly,
198
207
  tabIndex: t.tabIndex || 0,
199
- disabled: O,
200
- title: t.title !== void 0 ? t.title : U,
208
+ disabled: I,
209
+ title: t.title !== void 0 ? t.title : X,
201
210
  type: "text",
202
211
  spellCheck: !1,
203
212
  autoComplete: "off",
204
213
  autoCorrect: "off",
205
- autoFocus: he,
206
- className: y(b.inputInner({ c: v })),
207
- id: z,
208
- value: U,
214
+ autoFocus: g,
215
+ className: h(O.inputInner({ c: y })),
216
+ id: Y,
217
+ value: X,
209
218
  "aria-label": t.ariaLabel,
210
219
  "aria-labelledby": t.ariaLabelledBy,
211
220
  "aria-describedby": t.ariaDescribedBy,
212
- "aria-haspopup": be,
213
- "aria-disabled": O,
221
+ "aria-haspopup": xe,
222
+ "aria-disabled": I,
214
223
  "aria-expanded": t.ariaExpanded,
215
224
  "aria-controls": t.ariaControls,
216
225
  "aria-required": t.required,
217
- "aria-invalid": !L,
226
+ "aria-invalid": !N,
218
227
  onKeyDown: c,
219
228
  onChange: c,
220
229
  onWheel: c,
@@ -225,49 +234,49 @@ const tt = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
225
234
  }
226
235
  ),
227
236
  t.children,
228
- t.clearButton && t.value && /* @__PURE__ */ a.createElement(Qe, { onClick: F, key: "clearbutton" }),
229
- le && /* @__PURE__ */ a.createElement("span", { className: y(b.inputSpinner({ c: v })), onMouseDown: Me }, /* @__PURE__ */ a.createElement(
230
- J,
237
+ t.clearButton && t.value && /* @__PURE__ */ r.createElement(et, { onClick: W, key: "clearbutton" }),
238
+ de && /* @__PURE__ */ r.createElement("span", { className: h(O.inputSpinner({ c: y })), onMouseDown: Re }, /* @__PURE__ */ r.createElement(
239
+ $,
231
240
  {
232
241
  tabIndex: -1,
233
242
  type: "button",
234
243
  rounded: null,
235
- className: y(b.spinnerIncrease({ c: v })),
244
+ className: h(O.spinnerIncrease({ c: y })),
236
245
  icon: "caret-alt-up",
237
- svgIcon: Ne,
238
- "aria-label": h.toLanguageString(C, w[C]),
239
- title: h.toLanguageString(C, w[C]),
240
- onClick: Te
246
+ svgIcon: _e,
247
+ "aria-label": E.toLanguageString(T, M[T]),
248
+ title: E.toLanguageString(T, M[T]),
249
+ onClick: Le
241
250
  }
242
- ), /* @__PURE__ */ a.createElement(
243
- J,
251
+ ), /* @__PURE__ */ r.createElement(
252
+ $,
244
253
  {
245
254
  tabIndex: -1,
246
255
  type: "button",
247
256
  rounded: null,
248
- className: y(b.spinnerDecrease({ c: v })),
257
+ className: h(O.spinnerDecrease({ c: y })),
249
258
  icon: "caret-alt-down",
250
- svgIcon: _e,
251
- "aria-label": h.toLanguageString(M, w[M]),
252
- title: h.toLanguageString(M, w[M]),
253
- onClick: Re
259
+ svgIcon: Fe,
260
+ "aria-label": E.toLanguageString(S, M[S]),
261
+ title: E.toLanguageString(S, M[S]),
262
+ onClick: pe
254
263
  }
255
264
  ))
256
265
  );
257
- return t.label ? /* @__PURE__ */ a.createElement(
258
- Ue,
266
+ return t.label ? /* @__PURE__ */ r.createElement(
267
+ We,
259
268
  {
260
269
  label: t.label,
261
- editorId: z,
262
- editorValue: (j = o.current) == null ? void 0 : j.value,
263
- editorValid: L,
264
- editorDisabled: O,
265
- children: W,
270
+ editorId: Y,
271
+ editorValue: (G = o.current) == null ? void 0 : G.value,
272
+ editorValid: N,
273
+ editorDisabled: I,
274
+ children: Z,
266
275
  style: { width: t.width }
267
276
  }
268
- ) : W;
277
+ ) : Z;
269
278
  });
270
- Z.propTypes = {
279
+ ne.propTypes = {
271
280
  value: e.instanceOf(Date),
272
281
  format: e.oneOfType([
273
282
  u(e.string),
@@ -319,7 +328,7 @@ Z.propTypes = {
319
328
  spinners: e.bool,
320
329
  name: e.string,
321
330
  dir: e.string,
322
- label: e.string,
331
+ label: e.node,
323
332
  id: e.string,
324
333
  ariaLabelledBy: e.string,
325
334
  ariaDescribedBy: e.string,
@@ -340,20 +349,20 @@ Z.propTypes = {
340
349
  autoFocus: e.bool,
341
350
  inputAttributes: e.object
342
351
  };
343
- const r = {
344
- format: je,
352
+ const l = {
353
+ format: Ke,
345
354
  size: "medium",
346
355
  rounded: "medium",
347
356
  fillMode: "solid",
348
- formatPlaceholder: Ke,
357
+ formatPlaceholder: Je,
349
358
  spinners: !1,
350
359
  disabled: !1,
351
- max: x(Ye),
352
- min: x(Xe),
353
- minTime: x(Ge),
354
- maxTime: x(Ze),
360
+ max: D(Xe),
361
+ min: D(Ze),
362
+ minTime: D(Ge),
363
+ maxTime: D($e),
355
364
  validityStyles: !0,
356
- validationMessage: tt,
365
+ validationMessage: nt,
357
366
  placeholder: null,
358
367
  enableMouseWheel: !0,
359
368
  autoCorrectParts: !0,
@@ -362,10 +371,10 @@ const r = {
362
371
  twoDigitYearMax: 68,
363
372
  ariaHasPopup: "grid",
364
373
  autoFocus: !1
365
- }, G = ze();
366
- Z.displayName = "KendoReactDateInput";
374
+ }, te = Ue();
375
+ ne.displayName = "KendoReactDateInput";
367
376
  export {
368
- Z as DateInput,
369
- G as DateInputPropsContext,
370
- r as dateInputDefaultProps
377
+ ne as DateInput,
378
+ te as DateInputPropsContext,
379
+ l as dateInputDefaultProps
371
380
  };
@@ -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 et=require("react"),e=require("prop-types"),tt=require("@progress/kendo-react-popup"),L=require("@progress/kendo-date-math"),u=require("@progress/kendo-react-common"),nt=require("@progress/kendo-svg-icons"),at=require("../dateinput/DateInput.js"),ot=require("../calendar/components/Calendar.js"),o=require("../utils.js"),K=require("../messages/index.js"),rt=require("@progress/kendo-react-intl"),lt=require("./ToggleButton.js"),ut=require("../common/PickerWrap.js"),it=require("../hooks/usePickerFloatingLabel.js"),st=require("@progress/kendo-react-layout"),ct=require("../common/AdaptiveMode.js");function dt(n){const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const f in n)if(f!=="default"){const M=Object.getOwnPropertyDescriptor(n,f);Object.defineProperty(h,f,M.get?M:{enumerable:!0,get:()=>n[f]})}}return h.default=n,Object.freeze(h)}const a=dt(et),W=a.forwardRef((n,h)=>{const f=u.useId(n.id),M=rt.useLocalization(),v=u.useAdaptiveModeContext(),{defaultShow:se=l.defaultShow,defaultValue:ce=l.defaultValue,dateInput:de=l.dateInput,calendar:fe=l.calendar,toggleButton:me=l.toggleButton,popup:ge=l.popup,pickerWrap:ft=l.pickerWrap,disabled:w=l.disabled,format:pe=l.format,max:_=l.max,min:E=l.min,popupSettings:y=l.popupSettings,tabIndex:be=l.tabIndex,weekNumber:he=l.weekNumber,validityStyles:j=l.validityStyles,size:T=l.size,rounded:x=l.rounded,fillMode:B=l.fillMode,autoFocus:ve=l.autoFocus,show:U,autoSwitchParts:we,autoSwitchKeys:ye,twoDigitYearMax:ke,ariaLabel:De,adaptive:mt,formatPlaceholder:Ce,adaptiveTitle:Pe,inputAttributes:Oe,validationMessage:H,visited:gt,value:q,touched:pt,modified:bt,_adaptiveMode:ht=v,valid:Y,focusedDate:Me,id:Re,ariaLabelledBy:Ie,...$}=u.usePropsContext(ie,n),A=()=>{if(u.canUseDOM)return D.current&&D.current.ownerDocument||window.document},c=()=>!!(b.windowWidth&&v&&b.windowWidth<=(v==null?void 0:v.medium)&&n.adaptive),m=()=>{const t=R.current!==void 0?R.current:q!==void 0?q:b.value;return t!==null?L.cloneDate(t):null},i=()=>I.current!==void 0?I.current:U!==void 0?U:b.show,Se=()=>de||l.dateInput,_e=()=>me||l.toggleButton,Ee=()=>fe||l.calendar,Te=()=>ge||l.popup,X=()=>n.required!==void 0?n.required:!1,N=()=>{const t=m()||q||null,r=E,s=_,S=o.isInDateRange(t,r,s),F=H!==void 0,V=(!X()||t!=null)&&S,z=Y!==void 0?Y:V;return{customError:F,rangeOverflow:t&&s.getTime()<t.getTime()||!1,rangeUnderflow:t&&t.getTime()<r.getTime()||!1,valid:z,valueMissing:t===null}},xe=t=>{for(const r of t)O({windowWidth:r.target.clientWidth})},Be=()=>{d.current&&d.current.focus()},Z=t=>{C.current=t},g=t=>{i()!==t&&(O({show:t}),t&&n.onOpen&&n.onOpen.call(void 0,{target:k.current}),!t&&n.onClose&&n.onClose.call(void 0,{target:k.current}))},qe=t=>{const r=m();return r&&t?o.setTime(t,r):t},Ae=t=>{y!=null&&y.onMouseDownOutside&&y.onMouseDownOutside.call(void 0,t)},G=(t,r)=>{O({value:L.cloneDate(t||void 0)}),R.current=t,I.current=!1,c()||(p.current=!0),n.onChange&&n.onChange.call(void 0,{syntheticEvent:r.syntheticEvent,nativeEvent:r.nativeEvent,value:m(),show:i(),target:k.current}),R.current=void 0,I.current=void 0,g(!1)},Ne=t=>{const r=qe(t.value);G(r,t)},J=()=>{const{popupClass:t,...r}=y,s=i(),S=m(),F=S&&L.getDate(S),V=u.classNames(t),z={popupClass:"k-datepicker-popup",show:s,anchor:D.current,className:V,id:ne,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...r,onMouseDownOutside:Ae},le={disabled:w,value:F,min:E,max:_,weekNumber:he,focusedDate:Me,className:c()?"k-calendar-lg":"",navigation:!c(),onChange:Ne},ue=Ee(),Qe=Te();return c()?a.createElement(ue,{_ref:Z,...le}):a.createElement(Qe,{...z},a.createElement(ue,{_ref:Z,...le}))},Q=()=>{O({focused:!1}),g(!1)},Fe=()=>{const{windowWidth:t=0}=b,r={expand:i(),onClose:Q,adaptiveTitle:Pe,windowWidth:t},s=J();return a.createElement(ct.AdaptiveMode,{...r},a.createElement(st.ActionSheetContent,null,s))},Ve=t=>{G(t.value,t)},ze=()=>{O({focused:!0})},Le=()=>{g(!i())},ee=()=>{w||(p.current=!0,g(!i()))},Ke=t=>{t.preventDefault()},We=t=>{const{altKey:r,keyCode:s}=t;if(s===u.Keys.esc&&i()){p.current=!0,g(!1);return}r&&(s===u.Keys.up||s===u.Keys.down)&&(t.preventDefault(),t.stopPropagation(),p.current=s===u.Keys.up,g(s===u.Keys.down))},k=a.useRef(null),D=a.useRef(null),d=a.useRef(null),C=a.useRef(null);a.useImperativeHandle(k,()=>({props:n,get element(){return D.current},get calendar(){return C.current},get dateInput(){return d.current},get name(){return n.name},get show(){return i()},get validity(){return N()},get value(){return m()},get mobileMode(){return c()},togglePopup:Le,focus:Be})),a.useImperativeHandle(h,()=>k.current);const R=a.useRef(void 0),I=a.useRef(void 0),je=a.useRef(null),p=a.useRef(!1),te=a.useRef(!1),P=a.useRef(null),[b,Ue]=a.useState({value:ce,show:se,focused:!1}),[,He]=a.useReducer(t=>t,!0),O=t=>{Ue(r=>({...r,...t}))};a.useEffect(()=>{C.current&&C.current.element&&i()&&!te.current&&C.current.element.focus({preventScroll:!0}),d.current&&d.current.element&&!i()&&p.current&&d.current.element.focus({preventScroll:!0}),te.current=i(),p.current=!1}),a.useEffect(()=>{var t;return P.current=u.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(r=>xe(r)),i()&&He(),(t=A())!=null&&t.body&&P.current&&P.current.observe(A().body),()=>{var r;clearTimeout(je.current),(r=A())!=null&&r.body&&P.current&&P.current.disconnect()}},[]);const ne=f+"-popup-id",Ye=J(),$e=Se(),Xe=m(),Ze=_e(),Ge=Fe(),ae=!j||N().valid,oe=M.toLanguageString(K.toggleCalendar,K.messages[K.toggleCalendar]),Je={disabled:w,format:pe,formatPlaceholder:Ce,id:Re,ariaLabelledBy:Ie,ariaDescribedBy:n.ariaDescribedBy,ariaLabel:De,max:_,min:E,name:n.name,onChange:Ve,required:n.required,_ref:d,tabIndex:i()?-1:be,title:n.title,valid:N().valid,validationMessage:H,validityStyles:j,value:Xe,label:void 0,placeholder:b.focused?null:n.placeholder,ariaExpanded:i(),size:null,fillMode:null,rounded:null,autoFill:n.autoFill,twoDigitYearMax:ke,enableMouseWheel:n.enableMouseWheel,autoCorrectParts:n.autoCorrectParts,autoSwitchParts:we,autoSwitchKeys:ye,allowCaretMode:n.allowCaretMode,inputAttributes:Oe},re=a.createElement(u.AsyncFocusBlur,{onFocus:ze,onBlur:c()?void 0:Q,onSyncBlur:n.onBlur,onSyncFocus:n.onFocus},t=>a.createElement(a.Fragment,null,a.createElement("span",{...n.label?{}:$,ref:D,className:u.classNames("k-input","k-datepicker",{[`k-input-${u.kendoThemeMaps.sizeMap[T]||T}`]:T,[`k-rounded-${u.kendoThemeMaps.roundedMap[x]||x}`]:x,[`k-input-${B}`]:B,"k-invalid":!ae,"k-required":X(),"k-disabled":w},n.className),onKeyDown:We,style:{width:n.width},onFocus:t.onFocus,onBlur:t.onBlur,onClick:c()?ee:void 0},a.createElement($e,{_ref:d,ariaRole:"combobox",ariaExpanded:i(),ariaControls:ne,autoFocus:ve,...Je}),a.createElement(Ze,{type:"button",icon:"calendar",svgIcon:nt.calendarIcon,title:oe,className:"k-input-button",rounded:null,onClick:c()?void 0:ee,"aria-label":oe,fillMode:B,onMouseDown:Ke}),!c()&&Ye),c()&&Ge));return n.label?a.createElement(it.PickerFloatingLabel,{dateInput:d,label:n.label,editorId:f,editorValid:ae,editorDisabled:w,children:re,style:{width:n.width},...$}):re});W.propTypes={className:e.string,defaultShow:e.bool,defaultValue:e.instanceOf(Date),disabled:e.bool,focusedDate:e.instanceOf(Date),format:e.oneOfType([e.string,e.shape({skeleton:o.nullable(e.string),pattern:o.nullable(e.string),date:o.nullable(e.oneOf(["short","medium","long","full"])),time:o.nullable(e.oneOf(["short","medium","long","full"])),datetime:o.nullable(e.oneOf(["short","medium","long","full"])),era:o.nullable(e.oneOf(["narrow","short","long"])),year:o.nullable(e.oneOf(["numeric","2-digit"])),month:o.nullable(e.oneOf(["numeric","2-digit","narrow","short","long"])),day:o.nullable(e.oneOf(["numeric","2-digit"])),weekday:o.nullable(e.oneOf(["narrow","short","long"])),hour:o.nullable(e.oneOf(["numeric","2-digit"])),hour12:o.nullable(e.bool),minute:o.nullable(e.oneOf(["numeric","2-digit"])),second:o.nullable(e.oneOf(["numeric","2-digit"])),timeZoneName:o.nullable(e.oneOf(["short","long"]))})]),formatPlaceholder:e.oneOfType([o.nullable(e.oneOf(["wide","narrow","short","formatPattern"])),e.shape({year:o.nullable(e.string),month:o.nullable(e.string),day:o.nullable(e.string),hour:o.nullable(e.string),minute:o.nullable(e.string),second:o.nullable(e.string)})]),id:e.string,ariaLabelledBy:e.string,ariaDescribedBy:e.string,ariaLabel:e.string,min:e.instanceOf(Date),max:e.instanceOf(Date),name:e.string,popupSettings:e.shape({animate:o.nullable(e.bool),appendTo:o.nullable(e.any),popupClass:o.nullable(e.string)}),show:e.bool,tabIndex:e.number,title:e.string,value:e.instanceOf(Date),weekNumber:e.bool,width:e.oneOfType([e.number,e.string]),validationMessage:e.string,required:e.bool,valid:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),adaptive:e.bool,adaptiveTitle:e.string,autoFocus:e.bool,inputAttributes:e.object};const l={defaultShow:!1,defaultValue:null,dateInput:at.DateInput,calendar:ot.Calendar,toggleButton:lt.ToggleButton,popup:tt.Popup,pickerWrap:ut.PickerWrap,disabled:!1,format:"d",max:o.MAX_DATE,min:o.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1},ie=u.createPropsContext();W.displayName="KendoReactDatePicker";exports.DatePicker=W;exports.DatePickerPropsContext=ie;exports.datePickerDefaultProps=l;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("react"),e=require("prop-types"),ot=require("@progress/kendo-react-popup"),W=require("@progress/kendo-date-math"),i=require("@progress/kendo-react-common"),rt=require("@progress/kendo-svg-icons"),lt=require("../dateinput/DateInput.js"),ut=require("../calendar/components/Calendar.js"),o=require("../utils.js"),j=require("../messages/index.js"),it=require("@progress/kendo-react-intl"),st=require("./ToggleButton.js"),ct=require("../common/PickerWrap.js"),dt=require("../hooks/usePickerFloatingLabel.js"),ft=require("@progress/kendo-react-layout"),mt=require("../common/AdaptiveMode.js");function pt(n){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const m in n)if(m!=="default"){const M=Object.getOwnPropertyDescriptor(n,m);Object.defineProperty(v,m,M.get?M:{enumerable:!0,get:()=>n[m]})}}return v.default=n,Object.freeze(v)}const a=pt(at),U=a.forwardRef((n,v)=>{const m=i.useId(n.id),M=it.useLocalization(),w=i.useAdaptiveModeContext(),{defaultShow:se=l.defaultShow,defaultValue:ce=l.defaultValue,dateInput:de=l.dateInput,calendar:fe=l.calendar,toggleButton:me=l.toggleButton,popup:pe=l.popup,pickerWrap:gt=l.pickerWrap,disabled:y=l.disabled,format:ge=l.format,max:_=l.max,min:T=l.min,popupSettings:k=l.popupSettings,tabIndex:be=l.tabIndex,weekNumber:he=l.weekNumber,validityStyles:H=l.validityStyles,size:B=l.size,rounded:E=l.rounded,fillMode:x=l.fillMode,autoFocus:ve=l.autoFocus,show:Y,autoSwitchParts:we,autoSwitchKeys:ye,twoDigitYearMax:ke,ariaLabel:De,adaptive:bt,adaptiveTitle:Ce=n.label||void 0,adaptiveSubtitle:Pe,formatPlaceholder:Oe,inputAttributes:Me,validationMessage:$,visited:ht,value:q,touched:vt,modified:wt,_adaptiveMode:yt=w,valid:X,focusedDate:Re,id:Se,ariaLabelledBy:Ie,ariaDescribedBy:_e,placeholder:Te,...Z}=i.usePropsContext(ie,n),A=()=>{if(i.canUseDOM)return C.current&&C.current.ownerDocument||window.document},s=()=>!!(h.windowWidth&&w&&h.windowWidth<=(w==null?void 0:w.medium)&&n.adaptive),p=()=>{const t=R.current!==void 0?R.current:q!==void 0?q:h.value;return t!==null?W.cloneDate(t):null},u=()=>S.current!==void 0?S.current:Y!==void 0?Y:h.show,Be=()=>de||l.dateInput,Ee=()=>me||l.toggleButton,xe=()=>fe||l.calendar,qe=()=>pe||l.popup,G=()=>n.required!==void 0?n.required:!1,N=()=>{const t=p()||q||null,r=T,c=_,I=o.isInDateRange(t,r,c),z=$!==void 0,L=(!G()||t!=null)&&I,K=X!==void 0?X:L;return{customError:z,rangeOverflow:t&&c.getTime()<t.getTime()||!1,rangeUnderflow:t&&t.getTime()<r.getTime()||!1,valid:K,valueMissing:t===null}},Ae=t=>{for(const r of t)O({windowWidth:r.target.clientWidth})},Ne=()=>{d.current&&d.current.focus()},J=t=>{f.current=t},g=t=>{u()!==t&&(O({show:t}),t&&n.onOpen&&n.onOpen.call(void 0,{target:D.current}),!t&&n.onClose&&n.onClose.call(void 0,{target:D.current}))},Fe=t=>{const r=p();return r&&t?o.setTime(t,r):t},Ve=t=>{k!=null&&k.onMouseDownOutside&&k.onMouseDownOutside.call(void 0,t)},Q=(t,r)=>{O({value:W.cloneDate(t||void 0)}),R.current=t,S.current=!1,s()||(b.current=!0),n.onChange&&n.onChange.call(void 0,{syntheticEvent:r.syntheticEvent,nativeEvent:r.nativeEvent,value:p(),show:u(),target:D.current}),R.current=void 0,S.current=void 0,g(!1)},ze=t=>{const r=Fe(t.value);Q(r,t)},ee=()=>{const{popupClass:t,...r}=k,c=u(),I=p(),z=I&&W.getDate(I),L=i.classNames(t),K={popupClass:"k-datepicker-popup",show:c,anchor:C.current,className:L,id:ne,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...r,onMouseDownOutside:Ve},le={disabled:y,value:z,min:T,max:_,weekNumber:he,focusedDate:Re,className:s()?"k-calendar-lg":"",navigation:!s(),onChange:ze},ue=xe(),nt=qe();return s()?a.createElement(ue,{_ref:J,...le}):a.createElement(nt,{...K},a.createElement(ue,{_ref:J,...le}))},te=()=>{O({focused:!1}),g(!1)},Le=()=>{const{windowWidth:t=0}=h,r={expand:u(),onClose:te,title:Ce,subTitle:Pe,windowWidth:t};return a.createElement(mt.AdaptiveMode,{...r},a.createElement(ft.ActionSheetContent,null,ee()))},Ke=t=>{Q(t.value,t)},We=()=>{O({focused:!0})},je=()=>{g(!u())},F=()=>{y||(b.current=!0,g(!u()))},Ue=t=>{t.preventDefault()},He=t=>{const{altKey:r,keyCode:c}=t;if(c===i.Keys.esc&&u()){b.current=!0,g(!1);return}r&&(c===i.Keys.up||c===i.Keys.down)&&(t.preventDefault(),t.stopPropagation(),b.current=c===i.Keys.up,g(c===i.Keys.down))},D=a.useRef(null),C=a.useRef(null),d=a.useRef(null),f=a.useRef(null);a.useImperativeHandle(D,()=>({props:n,get element(){return C.current},get calendar(){return f.current},get dateInput(){return d.current},get name(){return n.name},get show(){return u()},get validity(){return N()},get value(){return p()},get mobileMode(){return s()},togglePopup:je,focus:Ne})),a.useImperativeHandle(v,()=>D.current);const R=a.useRef(void 0),S=a.useRef(void 0),Ye=a.useRef(null),b=a.useRef(!1),V=a.useRef(!1),P=a.useRef(null),[h,$e]=a.useState({value:ce,show:se,focused:!1}),[,Xe]=a.useReducer(t=>t,!0),O=t=>{$e(r=>({...r,...t}))};a.useEffect(()=>{f.current&&f.current.element&&u()&&!V.current&&f.current.element.focus({preventScroll:!0}),s()&&u()&&!V.current&&setTimeout(()=>{f.current&&f.current.element&&f.current.element.focus({preventScroll:!0})},300),d.current&&d.current.element&&!u()&&b.current&&d.current.element.focus({preventScroll:!0}),V.current=u(),b.current=!1}),a.useEffect(()=>{var t;return P.current=i.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(r=>Ae(r)),u()&&Xe(),(t=A())!=null&&t.body&&P.current&&P.current.observe(A().body),()=>{var r;clearTimeout(Ye.current),(r=A())!=null&&r.body&&P.current&&P.current.disconnect()}},[]);const ne=m+"-popup-id",Ze=ee(),Ge=Be(),Je=p(),Qe=Ee(),et=Le(),ae=!H||N().valid,oe=M.toLanguageString(j.toggleCalendar,j.messages[j.toggleCalendar]),tt={disabled:y,format:ge,formatPlaceholder:Oe,id:Se,ariaLabelledBy:Ie,ariaDescribedBy:_e,ariaLabel:De,max:_,min:T,name:n.name,onChange:Ke,required:n.required,_ref:d,tabIndex:u()?-1:be,title:n.title,valid:N().valid,validationMessage:$,validityStyles:H,value:Je,label:void 0,placeholder:h.focused?null:Te,ariaExpanded:u(),size:null,fillMode:null,rounded:null,autoFill:n.autoFill,twoDigitYearMax:ke,enableMouseWheel:n.enableMouseWheel,autoCorrectParts:n.autoCorrectParts,autoSwitchParts:we,autoSwitchKeys:ye,allowCaretMode:n.allowCaretMode,inputAttributes:Me},re=a.createElement(i.AsyncFocusBlur,{onFocus:We,onBlur:s()?void 0:te,onSyncBlur:n.onBlur,onSyncFocus:n.onFocus},t=>a.createElement(a.Fragment,null,a.createElement("span",{...n.label?{}:Z,ref:C,className:i.classNames("k-input","k-datepicker",{[`k-input-${i.kendoThemeMaps.sizeMap[B]||B}`]:B,[`k-rounded-${i.kendoThemeMaps.roundedMap[E]||E}`]:E,[`k-input-${x}`]:x,"k-invalid":!ae,"k-required":G(),"k-disabled":y},n.className),onKeyDown:He,style:{width:n.width},onFocus:s()?F:t.onFocus,onBlur:t.onBlur,onClick:s()?F:void 0},a.createElement(Ge,{_ref:d,ariaRole:"combobox",ariaExpanded:u(),ariaControls:ne,autoFocus:ve,...tt}),a.createElement(Qe,{type:"button",icon:"calendar",svgIcon:rt.calendarIcon,title:oe,className:"k-input-button",rounded:null,onClick:s()?void 0:F,"aria-label":oe,fillMode:x,onMouseDown:Ue}),!s()&&Ze),s()&&et));return n.label?a.createElement(dt.PickerFloatingLabel,{dateInput:d,label:n.label,editorId:m,editorValid:ae,editorDisabled:y,children:re,style:{width:n.width},...Z}):re});U.propTypes={className:e.string,defaultShow:e.bool,defaultValue:e.instanceOf(Date),disabled:e.bool,focusedDate:e.instanceOf(Date),format:e.oneOfType([e.string,e.shape({skeleton:o.nullable(e.string),pattern:o.nullable(e.string),date:o.nullable(e.oneOf(["short","medium","long","full"])),time:o.nullable(e.oneOf(["short","medium","long","full"])),datetime:o.nullable(e.oneOf(["short","medium","long","full"])),era:o.nullable(e.oneOf(["narrow","short","long"])),year:o.nullable(e.oneOf(["numeric","2-digit"])),month:o.nullable(e.oneOf(["numeric","2-digit","narrow","short","long"])),day:o.nullable(e.oneOf(["numeric","2-digit"])),weekday:o.nullable(e.oneOf(["narrow","short","long"])),hour:o.nullable(e.oneOf(["numeric","2-digit"])),hour12:o.nullable(e.bool),minute:o.nullable(e.oneOf(["numeric","2-digit"])),second:o.nullable(e.oneOf(["numeric","2-digit"])),timeZoneName:o.nullable(e.oneOf(["short","long"]))})]),formatPlaceholder:e.oneOfType([o.nullable(e.oneOf(["wide","narrow","short","formatPattern"])),e.shape({year:o.nullable(e.string),month:o.nullable(e.string),day:o.nullable(e.string),hour:o.nullable(e.string),minute:o.nullable(e.string),second:o.nullable(e.string)})]),id:e.string,ariaLabelledBy:e.string,ariaDescribedBy:e.string,ariaLabel:e.string,min:e.instanceOf(Date),max:e.instanceOf(Date),name:e.string,popupSettings:e.shape({animate:o.nullable(e.bool),appendTo:o.nullable(e.any),popupClass:o.nullable(e.string)}),show:e.bool,tabIndex:e.number,title:e.string,value:e.instanceOf(Date),weekNumber:e.bool,width:e.oneOfType([e.number,e.string]),validationMessage:e.string,required:e.bool,valid:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),adaptive:e.bool,adaptiveTitle:e.string,adaptiveSubtitle:e.string,autoFocus:e.bool,inputAttributes:e.object};const l={defaultShow:!1,defaultValue:null,dateInput:lt.DateInput,calendar:ut.Calendar,toggleButton:st.ToggleButton,popup:ot.Popup,pickerWrap:ct.PickerWrap,disabled:!1,format:"d",max:o.MAX_DATE,min:o.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1},ie=i.createPropsContext();U.displayName="KendoReactDatePicker";exports.DatePicker=U;exports.DatePickerPropsContext=ie;exports.datePickerDefaultProps=l;