@progress/kendo-react-dateinputs 9.4.0-develop.19 → 9.4.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.txt +51 -40
- package/calendar/components/Calendar.js +1 -1
- package/calendar/components/Calendar.mjs +1 -0
- package/calendar/components/CalendarCell.js +1 -1
- package/calendar/components/CalendarCell.mjs +13 -12
- package/calendar/components/CalendarHeaderTitle.js +1 -1
- package/calendar/components/CalendarHeaderTitle.mjs +4 -3
- package/calendar/components/CalendarNavigationItem.js +1 -1
- package/calendar/components/CalendarNavigationItem.mjs +3 -2
- package/calendar/components/CalendarWeekCell.js +1 -1
- package/calendar/components/CalendarWeekCell.mjs +9 -8
- package/calendar/components/Header.js +1 -1
- package/calendar/components/Header.mjs +1 -0
- package/calendar/components/HorizontalViewList.js +1 -1
- package/calendar/components/HorizontalViewList.mjs +1 -0
- package/calendar/components/MultiViewCalendar.js +1 -1
- package/calendar/components/MultiViewCalendar.mjs +1 -0
- package/calendar/components/Navigation.js +1 -1
- package/calendar/components/Navigation.mjs +1 -0
- package/calendar/components/TodayCommand.js +1 -1
- package/calendar/components/TodayCommand.mjs +1 -0
- package/calendar/components/View.js +1 -1
- package/calendar/components/View.mjs +1 -0
- package/calendar/components/ViewList.js +1 -1
- package/calendar/components/ViewList.mjs +1 -0
- package/calendar/models/CalendarViewEnum.js +1 -1
- package/calendar/models/CalendarViewEnum.mjs +1 -0
- package/calendar/models/NavigationAction.js +1 -1
- package/calendar/models/NavigationAction.mjs +1 -0
- package/calendar/models/SelectionRange.js +1 -1
- package/calendar/models/SelectionRange.mjs +1 -0
- package/calendar/services/BusViewService.js +1 -1
- package/calendar/services/BusViewService.mjs +1 -0
- package/calendar/services/CenturyViewService.js +1 -1
- package/calendar/services/CenturyViewService.mjs +1 -0
- package/calendar/services/DOMService.js +1 -1
- package/calendar/services/DOMService.mjs +1 -0
- package/calendar/services/DecadeViewService.js +1 -1
- package/calendar/services/DecadeViewService.mjs +1 -0
- package/calendar/services/MonthViewService.js +1 -1
- package/calendar/services/MonthViewService.mjs +1 -0
- package/calendar/services/NavigationService.js +1 -1
- package/calendar/services/NavigationService.mjs +19 -18
- package/calendar/services/ScrollSyncService.js +1 -1
- package/calendar/services/ScrollSyncService.mjs +1 -0
- package/calendar/services/WeekNamesService.js +1 -1
- package/calendar/services/WeekNamesService.mjs +6 -5
- package/calendar/services/YearViewService.js +1 -1
- package/calendar/services/YearViewService.mjs +1 -0
- package/common/AdaptiveMode.js +1 -1
- package/common/AdaptiveMode.mjs +8 -7
- package/common/ClearButton.js +1 -1
- package/common/ClearButton.mjs +8 -7
- package/common/PickerWrap.js +1 -1
- package/common/PickerWrap.mjs +4 -3
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +68 -69
- package/dateinput/dateInputIntl.js +1 -1
- package/dateinput/dateInputIntl.mjs +4 -3
- package/dateinput/utils.js +1 -1
- package/dateinput/utils.mjs +5 -4
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +197 -203
- package/datepicker/ToggleButton.js +1 -1
- package/datepicker/ToggleButton.mjs +4 -3
- package/daterangepicker/DateRangePicker.js +1 -1
- package/daterangepicker/DateRangePicker.mjs +1 -0
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +1 -0
- package/datetimepicker/DateTimeSelector.js +1 -1
- package/datetimepicker/DateTimeSelector.mjs +1 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -8
- package/hooks/usePickerFloatingLabel.js +1 -1
- package/hooks/usePickerFloatingLabel.mjs +6 -5
- package/index.js +1 -2
- package/messages/index.js +1 -1
- package/messages/index.mjs +6 -5
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +3 -2
- package/package.json +8 -8
- package/timepicker/TimeList.js +1 -1
- package/timepicker/TimeList.mjs +17 -16
- package/timepicker/TimePart.js +1 -1
- package/timepicker/TimePart.mjs +1 -0
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +1 -0
- package/timepicker/TimeSelector.js +1 -1
- package/timepicker/TimeSelector.mjs +1 -0
- package/timepicker/models/TimePart.js +1 -1
- package/timepicker/models/TimePart.mjs +3 -2
- package/timepicker/services/DOMService.js +1 -1
- package/timepicker/services/DOMService.mjs +1 -0
- package/timepicker/services/DayPeriodService.js +1 -1
- package/timepicker/services/DayPeriodService.mjs +4 -3
- package/timepicker/services/HoursService.js +1 -1
- package/timepicker/services/HoursService.mjs +4 -3
- package/timepicker/services/MinutesService.js +1 -1
- package/timepicker/services/MinutesService.mjs +6 -5
- package/timepicker/services/SecondsService.js +1 -1
- package/timepicker/services/SecondsService.mjs +1 -0
- package/timepicker/utils.js +1 -1
- package/timepicker/utils.mjs +1 -0
- package/utils.js +1 -1
- package/utils.mjs +19 -18
- package/virtualization/Virtualization.js +1 -1
- package/virtualization/Virtualization.mjs +1 -0
- package/virtualization/services/ScrollerService.js +1 -1
- 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
|
|
11
|
-
import { cloneDate as
|
|
12
|
-
import { validatePackage as
|
|
13
|
-
import { calendarIcon as
|
|
14
|
-
import { packageMetadata as
|
|
15
|
-
import { DateInput as
|
|
16
|
-
import { Calendar as
|
|
17
|
-
import { nullable as
|
|
18
|
-
import { toggleCalendar as ie, messages as
|
|
19
|
-
import { useLocalization as
|
|
20
|
-
import { ToggleButton as
|
|
21
|
-
import { PickerWrap as
|
|
22
|
-
import { PickerFloatingLabel as
|
|
23
|
-
import { ActionSheetContent as
|
|
24
|
-
import { AdaptiveMode as
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
defaultShow:
|
|
29
|
-
defaultValue:
|
|
30
|
-
dateInput:
|
|
31
|
-
calendar:
|
|
32
|
-
toggleButton:
|
|
33
|
-
popup:
|
|
34
|
-
pickerWrap:
|
|
35
|
-
disabled: h =
|
|
36
|
-
format:
|
|
37
|
-
max:
|
|
38
|
-
min: I =
|
|
39
|
-
popupSettings: v =
|
|
40
|
-
tabIndex:
|
|
41
|
-
weekNumber:
|
|
42
|
-
validityStyles:
|
|
43
|
-
size: S =
|
|
44
|
-
rounded: E =
|
|
45
|
-
fillMode: x =
|
|
46
|
-
autoFocus:
|
|
47
|
-
show:
|
|
48
|
-
autoSwitchParts:
|
|
49
|
-
autoSwitchKeys:
|
|
50
|
-
twoDigitYearMax:
|
|
51
|
-
ariaLabel:
|
|
52
|
-
adaptive:
|
|
53
|
-
adaptiveTitle:
|
|
54
|
-
inputAttributes:
|
|
55
|
-
validationMessage:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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 :
|
|
70
|
-
return t !== null ?
|
|
71
|
-
}, i = () =>
|
|
72
|
-
const t = 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;
|
|
73
69
|
return {
|
|
74
|
-
customError:
|
|
70
|
+
customError: _,
|
|
75
71
|
rangeOverflow: t && u.getTime() < t.getTime() || !1,
|
|
76
72
|
rangeUnderflow: t && t.getTime() < r.getTime() || !1,
|
|
77
|
-
valid:
|
|
73
|
+
valid: A,
|
|
78
74
|
valueMissing: t === null
|
|
79
75
|
};
|
|
80
|
-
},
|
|
76
|
+
}, xe = (t) => {
|
|
81
77
|
for (const r of t)
|
|
82
|
-
|
|
83
|
-
},
|
|
78
|
+
k({ windowWidth: r.target.clientWidth });
|
|
79
|
+
}, Be = () => {
|
|
84
80
|
c.current && c.current.focus();
|
|
85
|
-
},
|
|
81
|
+
}, H = (t) => {
|
|
86
82
|
y.current = t;
|
|
87
83
|
}, f = (t) => {
|
|
88
|
-
i() !== t && (
|
|
89
|
-
},
|
|
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 ?
|
|
92
|
-
},
|
|
87
|
+
return r && t ? mt(t, r) : t;
|
|
88
|
+
}, _e = (t) => {
|
|
93
89
|
v != null && v.onMouseDownOutside && v.onMouseDownOutside.call(void 0, t);
|
|
94
|
-
},
|
|
95
|
-
|
|
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,
|
|
102
|
-
},
|
|
103
|
-
const r =
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
const { popupClass: t, ...r } = v, u = i(),
|
|
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:
|
|
111
|
-
id:
|
|
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:
|
|
122
|
-
},
|
|
117
|
+
onMouseDownOutside: _e
|
|
118
|
+
}, ee = {
|
|
123
119
|
disabled: h,
|
|
124
|
-
value:
|
|
120
|
+
value: _,
|
|
125
121
|
min: I,
|
|
126
|
-
max:
|
|
127
|
-
weekNumber:
|
|
128
|
-
focusedDate:
|
|
122
|
+
max: P,
|
|
123
|
+
weekNumber: we,
|
|
124
|
+
focusedDate: Me,
|
|
129
125
|
className: s() ? "k-calendar-lg" : "",
|
|
130
126
|
navigation: !s(),
|
|
131
|
-
onChange:
|
|
132
|
-
},
|
|
133
|
-
return s() ? /* @__PURE__ */ o.createElement(
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
},
|
|
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:
|
|
140
|
-
adaptiveTitle:
|
|
135
|
+
onClose: $,
|
|
136
|
+
adaptiveTitle: De,
|
|
141
137
|
windowWidth: t
|
|
142
|
-
}, u =
|
|
143
|
-
return /* @__PURE__ */ o.createElement(
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
},
|
|
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
|
-
},
|
|
146
|
+
}, j = () => {
|
|
151
147
|
h || (m.current = !0, f(!i()));
|
|
152
|
-
},
|
|
148
|
+
}, ze = (t) => {
|
|
153
149
|
t.preventDefault();
|
|
154
|
-
},
|
|
150
|
+
}, We = (t) => {
|
|
155
151
|
const { altKey: r, keyCode: u } = t;
|
|
156
|
-
if (u ===
|
|
152
|
+
if (u === D.esc && i()) {
|
|
157
153
|
m.current = !0, f(!1);
|
|
158
154
|
return;
|
|
159
155
|
}
|
|
160
|
-
r && (u ===
|
|
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:
|
|
186
|
+
togglePopup: Ne,
|
|
191
187
|
// Hidden Methods but still accessible
|
|
192
|
-
focus:
|
|
188
|
+
focus: Be
|
|
193
189
|
})
|
|
194
|
-
), o.useImperativeHandle(
|
|
195
|
-
const C = o.useRef(null),
|
|
196
|
-
value:
|
|
197
|
-
show:
|
|
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
|
-
}), [,
|
|
200
|
-
|
|
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() && !
|
|
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
|
|
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(
|
|
204
|
+
clearTimeout(Le.current), (r = B()) != null && r.body && R.current && R.current.disconnect();
|
|
209
205
|
};
|
|
210
206
|
}, []);
|
|
211
|
-
const
|
|
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:
|
|
209
|
+
format: he,
|
|
214
210
|
formatPlaceholder: n.formatPlaceholder,
|
|
215
|
-
id:
|
|
211
|
+
id: n.id,
|
|
216
212
|
ariaLabelledBy: n.ariaLabelledBy,
|
|
217
213
|
ariaDescribedBy: n.ariaDescribedBy,
|
|
218
|
-
ariaLabel:
|
|
219
|
-
max:
|
|
214
|
+
ariaLabel: ke,
|
|
215
|
+
max: P,
|
|
220
216
|
min: I,
|
|
221
217
|
name: n.name,
|
|
222
|
-
onChange:
|
|
218
|
+
onChange: Ve,
|
|
223
219
|
required: n.required,
|
|
224
220
|
_ref: c,
|
|
225
|
-
tabIndex: i() ? -1 :
|
|
221
|
+
tabIndex: i() ? -1 : ve,
|
|
226
222
|
title: n.title,
|
|
227
223
|
valid: T().valid,
|
|
228
|
-
validationMessage:
|
|
229
|
-
validityStyles:
|
|
230
|
-
value:
|
|
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:
|
|
234
|
+
twoDigitYearMax: Re,
|
|
239
235
|
enableMouseWheel: n.enableMouseWheel,
|
|
240
236
|
autoCorrectParts: n.autoCorrectParts,
|
|
241
|
-
autoSwitchParts:
|
|
242
|
-
autoSwitchKeys:
|
|
237
|
+
autoSwitchParts: ye,
|
|
238
|
+
autoSwitchKeys: Ce,
|
|
243
239
|
allowCaretMode: n.allowCaretMode,
|
|
244
|
-
inputAttributes:
|
|
245
|
-
},
|
|
246
|
-
|
|
240
|
+
inputAttributes: Oe
|
|
241
|
+
}, Q = /* @__PURE__ */ o.createElement(
|
|
242
|
+
rt,
|
|
247
243
|
{
|
|
248
|
-
onFocus:
|
|
249
|
-
onBlur: s() ? void 0 :
|
|
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 ? {} :
|
|
252
|
+
...n.label ? {} : L,
|
|
257
253
|
ref: b,
|
|
258
|
-
className:
|
|
254
|
+
className: re(
|
|
259
255
|
"k-input",
|
|
260
256
|
"k-datepicker",
|
|
261
257
|
{
|
|
262
|
-
[`k-input-${
|
|
263
|
-
[`k-rounded-${
|
|
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": !
|
|
266
|
-
"k-required":
|
|
261
|
+
"k-invalid": !G,
|
|
262
|
+
"k-required": K(),
|
|
267
263
|
"k-disabled": h
|
|
268
264
|
},
|
|
269
265
|
n.className
|
|
270
266
|
),
|
|
271
|
-
onKeyDown:
|
|
267
|
+
onKeyDown: We,
|
|
272
268
|
style: { width: n.width },
|
|
273
269
|
onFocus: t.onFocus,
|
|
274
270
|
onBlur: t.onBlur,
|
|
275
|
-
onClick: s() ?
|
|
271
|
+
onClick: s() ? j : void 0
|
|
276
272
|
},
|
|
277
273
|
/* @__PURE__ */ o.createElement(
|
|
278
|
-
|
|
274
|
+
Ye,
|
|
279
275
|
{
|
|
280
276
|
_ref: c,
|
|
281
277
|
ariaRole: "combobox",
|
|
282
278
|
ariaExpanded: i(),
|
|
283
|
-
ariaControls:
|
|
284
|
-
autoFocus:
|
|
285
|
-
...
|
|
279
|
+
ariaControls: Z,
|
|
280
|
+
autoFocus: be,
|
|
281
|
+
...Ze
|
|
286
282
|
}
|
|
287
283
|
),
|
|
288
284
|
/* @__PURE__ */ o.createElement(
|
|
289
|
-
|
|
285
|
+
je,
|
|
290
286
|
{
|
|
291
287
|
type: "button",
|
|
292
288
|
icon: "calendar",
|
|
293
|
-
svgIcon:
|
|
294
|
-
title:
|
|
289
|
+
svgIcon: it,
|
|
290
|
+
title: J,
|
|
295
291
|
className: "k-input-button",
|
|
296
292
|
rounded: null,
|
|
297
|
-
onClick: s() ? void 0 :
|
|
298
|
-
"aria-label":
|
|
293
|
+
onClick: s() ? void 0 : j,
|
|
294
|
+
"aria-label": J,
|
|
299
295
|
fillMode: x,
|
|
300
|
-
onMouseDown:
|
|
296
|
+
onMouseDown: ze
|
|
301
297
|
}
|
|
302
298
|
),
|
|
303
|
-
!s() &&
|
|
304
|
-
), s() &&
|
|
299
|
+
!s() && Ue
|
|
300
|
+
), s() && Xe)
|
|
305
301
|
);
|
|
306
302
|
return n.label ? /* @__PURE__ */ o.createElement(
|
|
307
|
-
|
|
303
|
+
wt,
|
|
308
304
|
{
|
|
309
305
|
dateInput: c,
|
|
310
306
|
label: n.label,
|
|
311
|
-
editorId:
|
|
312
|
-
editorValid:
|
|
307
|
+
editorId: V,
|
|
308
|
+
editorValid: G,
|
|
313
309
|
editorDisabled: h,
|
|
314
|
-
children:
|
|
310
|
+
children: Q,
|
|
315
311
|
style: { width: n.width },
|
|
316
|
-
...
|
|
312
|
+
...L
|
|
317
313
|
}
|
|
318
|
-
) :
|
|
314
|
+
) : Q;
|
|
319
315
|
});
|
|
320
|
-
|
|
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:
|
|
330
|
-
pattern:
|
|
331
|
-
date:
|
|
332
|
-
time:
|
|
333
|
-
datetime:
|
|
334
|
-
era:
|
|
335
|
-
year:
|
|
336
|
-
month:
|
|
337
|
-
day:
|
|
338
|
-
weekday:
|
|
339
|
-
hour:
|
|
340
|
-
hour12:
|
|
341
|
-
minute:
|
|
342
|
-
second:
|
|
343
|
-
timeZoneName:
|
|
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
|
-
|
|
348
|
-
e.oneOf(["wide", "narrow", "short", "formatPattern"])
|
|
349
|
-
),
|
|
343
|
+
e.oneOf(["wide", "narrow", "short", "formatPattern"]).isRequired,
|
|
350
344
|
e.shape({
|
|
351
|
-
year:
|
|
352
|
-
month:
|
|
353
|
-
day:
|
|
354
|
-
hour:
|
|
355
|
-
minute:
|
|
356
|
-
second:
|
|
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:
|
|
368
|
-
appendTo:
|
|
369
|
-
popupClass:
|
|
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
|
|
382
|
+
const a = {
|
|
389
383
|
defaultShow: !1,
|
|
390
384
|
defaultValue: null,
|
|
391
|
-
dateInput:
|
|
392
|
-
calendar:
|
|
393
|
-
toggleButton:
|
|
394
|
-
popup:
|
|
395
|
-
pickerWrap:
|
|
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:
|
|
399
|
-
min:
|
|
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
|
-
},
|
|
409
|
-
|
|
402
|
+
}, Ct = at();
|
|
403
|
+
le.displayName = "KendoReactDatePicker";
|
|
410
404
|
export {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
|
|
9
|
-
|
|
8
|
+
"use client";
|
|
9
|
+
import { Button as t } from "@progress/kendo-react-buttons";
|
|
10
|
+
const e = t;
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
e as ToggleButton
|
|
12
13
|
};
|