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