@progress/kendo-react-dateinputs 7.0.3-develop.2 → 7.0.3-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.
- package/datetimepicker/DateTimeSelector.d.ts +8 -3
- package/dist/cdn/js/kendo-react-dateinputs.js +4 -4
- package/index.js +4 -4
- package/index.mjs +577 -557
- package/package.json +8 -8
package/index.mjs
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
"use client";
|
|
6
|
-
import * as
|
|
6
|
+
import * as r from "react";
|
|
7
7
|
import n from "prop-types";
|
|
8
|
-
import { classNames as P, canUseDOM as J, createPropsContext as
|
|
9
|
-
import { getDate as C, cloneDate as v, addDecades as it, addCenturies as qt, firstDecadeOfCentury as
|
|
8
|
+
import { classNames as P, canUseDOM as J, createPropsContext as kt, withIdHOC as yt, withPropsContext as St, Keys as k, validatePackage as Pt, setScrollbarWidth as fs, getActiveElement as lt, AsyncFocusBlur as we, kendoThemeMaps as mt, noop as Rs, IconWrap as ei } from "@progress/kendo-react-common";
|
|
9
|
+
import { getDate as C, cloneDate as v, addDecades as it, addCenturies as qt, firstDecadeOfCentury as re, lastDecadeOfCentury as He, firstYearOfDecade as st, durationInCenturies as se, addYears as nt, lastYearOfDecade as Be, durationInDecades as ie, addDays as Wt, addWeeks as gs, addMonths as $, firstDayOfMonth as fe, lastDayOfMonth as Ot, dayOfWeek as si, durationInMonths as ne, firstMonthOfYear as Ns, lastMonthOfYear as _s, createDate as le, durationInYears as ae, weekInYear as ii, isEqualDate as wt, isEqual as ht } from "@progress/kendo-date-math";
|
|
10
10
|
import { registerForIntl as ft, provideIntlService as ct, registerForLocalization as at, provideLocalizationService as q } from "@progress/kendo-react-intl";
|
|
11
11
|
import { Button as N, ButtonGroup as ni } from "@progress/kendo-react-buttons";
|
|
12
|
-
import { caretAltUpIcon as ai, caretAltDownIcon as
|
|
12
|
+
import { caretAltUpIcon as ai, caretAltDownIcon as oi, xIcon as ri, calendarIcon as Fs, clockIcon as li, chevronRightIcon as vs, chevronLeftIcon as ws, arrowsSwapIcon as hi } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { FloatingLabel as Ls } from "@progress/kendo-react-labels";
|
|
14
14
|
import { Popup as be } from "@progress/kendo-react-popup";
|
|
15
|
-
import { ActionSheet as ci, ActionSheetHeader as ui, ActionSheetFooter as di, ActionSheetContent as
|
|
15
|
+
import { ActionSheet as ci, ActionSheetHeader as ui, ActionSheetFooter as di, ActionSheetContent as De } from "@progress/kendo-react-layout";
|
|
16
16
|
const Rt = {
|
|
17
17
|
name: "@progress/kendo-react-dateinputs",
|
|
18
18
|
productName: "KendoReact",
|
|
19
19
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
20
|
-
publishDate:
|
|
20
|
+
publishDate: 1703227647,
|
|
21
21
|
version: "",
|
|
22
22
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
23
23
|
}, pi = (s, t, e) => [
|
|
@@ -28,7 +28,7 @@ class mi {
|
|
|
28
28
|
constructor(t = 0, e, i) {
|
|
29
29
|
this.total = t, this.rowHeight = e, this.detailRowHeight = i, this.offsets = [], this.heights = [];
|
|
30
30
|
let a = 0;
|
|
31
|
-
for (let
|
|
31
|
+
for (let o = 0; o < t; o++)
|
|
32
32
|
this.offsets.push(a), a += e, this.heights.push(e);
|
|
33
33
|
}
|
|
34
34
|
height(t) {
|
|
@@ -59,7 +59,7 @@ class mi {
|
|
|
59
59
|
this.heights[t] += e, this.offsets = pi(this.offsets, t, e);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const oe = (s) => Math.max(s, 0);
|
|
63
63
|
class Me {
|
|
64
64
|
constructor(t) {
|
|
65
65
|
this.offset = t;
|
|
@@ -74,21 +74,21 @@ class fi {
|
|
|
74
74
|
constructor(t, e) {
|
|
75
75
|
this.onScrollAction = t, this.onPageAction = e, this.direction = "vertical", this.firstLoaded = 0, this.lastLoaded = 0, this.lastScrollTop = 0, this.take = 0, this.total = 0, this.rowHeightService = null, this.bottomOffset = 0, this.topOffset = 0;
|
|
76
76
|
}
|
|
77
|
-
create(t, e, i, a,
|
|
78
|
-
this.rowHeightService = t, this.firstLoaded = e, this.lastLoaded = e + i, this.take = i, this.total = a, this.lastScrollTop = 0, this.topOffset =
|
|
79
|
-
const h = this.rowsForHeight(
|
|
77
|
+
create(t, e, i, a, o = 0, l = 0, c = "vertical") {
|
|
78
|
+
this.rowHeightService = t, this.firstLoaded = e, this.lastLoaded = e + i, this.take = i, this.total = a, this.lastScrollTop = 0, this.topOffset = o, this.bottomOffset = l, this.direction = c;
|
|
79
|
+
const h = this.rowsForHeight(o), u = oe(e - h);
|
|
80
80
|
this.onScrollAction(new Me(this.rowOffset(u))), this.onPageAction(new Te(u));
|
|
81
81
|
}
|
|
82
82
|
onScroll({ scrollLeft: t, scrollTop: e, offsetHeight: i, offsetWidth: a }) {
|
|
83
|
-
const
|
|
84
|
-
if (this.lastScrollTop ===
|
|
83
|
+
const o = this.direction === "vertical" ? e : t, l = this.direction === "vertical" ? i : a;
|
|
84
|
+
if (this.lastScrollTop === o || !this.rowHeightService)
|
|
85
85
|
return;
|
|
86
|
-
const c = this.lastScrollTop >=
|
|
87
|
-
this.lastScrollTop =
|
|
88
|
-
const h = this.rowHeightService.index(
|
|
86
|
+
const c = this.lastScrollTop >= o;
|
|
87
|
+
this.lastScrollTop = o;
|
|
88
|
+
const h = this.rowHeightService.index(oe(o - this.topOffset)), u = this.rowHeightService.index(oe(o + l - this.bottomOffset));
|
|
89
89
|
if (!c && u >= this.lastLoaded && this.lastLoaded < this.total && (this.firstLoaded = h, this.onScrollAction(new Me(this.rowOffset(h))), this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total), this.onPageAction(new Te(this.firstLoaded))), c && h <= this.firstLoaded) {
|
|
90
90
|
const d = Math.floor(this.take * 0.3);
|
|
91
|
-
this.firstLoaded =
|
|
91
|
+
this.firstLoaded = oe(h - d), this.onScrollAction(new Me(this.rowOffset(this.firstLoaded))), this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total), this.onPageAction(new Te(this.firstLoaded));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
rowOffset(t) {
|
|
@@ -107,7 +107,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
107
107
|
0
|
|
108
108
|
/* Backward */
|
|
109
109
|
]: (s) => (t) => t - s
|
|
110
|
-
},
|
|
110
|
+
}, Di = {
|
|
111
111
|
[
|
|
112
112
|
1
|
|
113
113
|
/* Forward */
|
|
@@ -116,7 +116,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
116
116
|
0
|
|
117
117
|
/* Backward */
|
|
118
118
|
]: (s) => (t) => Math.max(t, s)
|
|
119
|
-
},
|
|
119
|
+
}, ki = {
|
|
120
120
|
[
|
|
121
121
|
1
|
|
122
122
|
/* Forward */
|
|
@@ -125,7 +125,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
125
125
|
0
|
|
126
126
|
/* Backward */
|
|
127
127
|
]: (s) => (t) => t > s
|
|
128
|
-
}, he = class extends
|
|
128
|
+
}, he = class extends r.Component {
|
|
129
129
|
constructor(s) {
|
|
130
130
|
super(s), this.rowHeightService = null, this.scrollContainer = null, this.lastDirection = null, this.lastTotal = 0, this.lastTake = 0, this.animationInProgress = !1, this.restrictScroll = !1, this.scrollTo = (t) => {
|
|
131
131
|
const e = this.direction === "vertical" ? "scrollTop" : "scrollLeft";
|
|
@@ -140,10 +140,10 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
140
140
|
return;
|
|
141
141
|
window.cancelAnimationFrame(this.cancelAnimation);
|
|
142
142
|
const e = this.rowHeightService.offset(t), i = this.getContainerScrollDirection(e);
|
|
143
|
-
let { start: a, end:
|
|
144
|
-
if (a ===
|
|
143
|
+
let { start: a, end: o } = this.scrollRange(e, i);
|
|
144
|
+
if (a === o)
|
|
145
145
|
return;
|
|
146
|
-
const l = this.scrollStep(a,
|
|
146
|
+
const l = this.scrollStep(a, o), c = bi[i](l), h = Di[i](o), u = ki[i](c(o)), d = (p) => {
|
|
147
147
|
this.animationInProgress = !0;
|
|
148
148
|
const m = c(p);
|
|
149
149
|
this.scrollTo(h(m)), u(m) ? this.cancelAnimation = window.requestAnimationFrame(() => {
|
|
@@ -162,8 +162,8 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
162
162
|
const i = this.containerScrollPosition;
|
|
163
163
|
if (parseInt(`${t}`, 10) === parseInt(`${i}`, 10))
|
|
164
164
|
return { start: t, end: t };
|
|
165
|
-
const a = this.containerMaxScroll(),
|
|
166
|
-
return { start: Math.min(Math.max(c +
|
|
165
|
+
const a = this.containerMaxScroll(), o = e === 0 ? 1 : -1, l = gi(i, t, this.props.maxScrollDifference || 0), c = Math.min(t, a);
|
|
166
|
+
return { start: Math.min(Math.max(c + o * l, 0), a), end: c };
|
|
167
167
|
}, this.containerMaxScroll = () => this.containerScrollSize - this.containerOffsetSize, this.getContainerScrollDirection = (t) => t < this.containerScrollPosition ? 0 : 1, this.initServices = (t = this.props) => {
|
|
168
168
|
const e = this.direction === "vertical" ? t.itemHeight : t.itemWidth;
|
|
169
169
|
e !== void 0 && (this.rowHeightService = new mi(t.total, e, 0), this.scrollerService.create(
|
|
@@ -185,14 +185,14 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
185
185
|
offsetHeight: e.offsetHeight,
|
|
186
186
|
offsetWidth: e.offsetWidth
|
|
187
187
|
});
|
|
188
|
-
const i = this.rowHeightService.index(this.containerScrollPosition - this.props.topOffset), { onScrollAction: a } = this.props,
|
|
188
|
+
const i = this.rowHeightService.index(this.containerScrollPosition - this.props.topOffset), { onScrollAction: a } = this.props, o = {
|
|
189
189
|
index: i,
|
|
190
190
|
target: e,
|
|
191
191
|
scrollAction: this.scrollAction,
|
|
192
192
|
pageAction: this.pageAction,
|
|
193
193
|
animationInProgress: this.animationInProgress
|
|
194
194
|
};
|
|
195
|
-
this.props.onScroll && this.props.onScroll.call(void 0, t), a && a.call(void 0,
|
|
195
|
+
this.props.onScroll && this.props.onScroll.call(void 0, t), a && a.call(void 0, o), this.scrollAction = void 0, this.pageAction = void 0;
|
|
196
196
|
}, this.handleScrollAction = (t) => {
|
|
197
197
|
this.scrollAction = t;
|
|
198
198
|
}, this.handlePageAction = (t) => {
|
|
@@ -200,7 +200,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
200
200
|
}, this.scrollerService = new fi(
|
|
201
201
|
this.handleScrollAction,
|
|
202
202
|
this.handlePageAction
|
|
203
|
-
), this.restrictScroll = Number.parseFloat(
|
|
203
|
+
), this.restrictScroll = Number.parseFloat(r.version) > 17;
|
|
204
204
|
}
|
|
205
205
|
get element() {
|
|
206
206
|
return this.scrollContainer;
|
|
@@ -256,7 +256,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
256
256
|
"k-scrollable-horizontal-placeholder": this.direction === "horizontal"
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
|
-
return /* @__PURE__ */
|
|
259
|
+
return /* @__PURE__ */ r.createElement(
|
|
260
260
|
"div",
|
|
261
261
|
{
|
|
262
262
|
ref: (a) => {
|
|
@@ -268,7 +268,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
|
|
|
268
268
|
role: this.props.role
|
|
269
269
|
},
|
|
270
270
|
this.props.children,
|
|
271
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ r.createElement(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
274
|
style: t,
|
|
@@ -310,13 +310,13 @@ const yi = (s, t) => {
|
|
|
310
310
|
if (e.length !== i.length)
|
|
311
311
|
return !1;
|
|
312
312
|
for (let a = 0; a < e.length; a++) {
|
|
313
|
-
const
|
|
314
|
-
if (s[
|
|
313
|
+
const o = e[a];
|
|
314
|
+
if (s[o] !== t[o])
|
|
315
315
|
return !1;
|
|
316
316
|
}
|
|
317
317
|
return !0;
|
|
318
318
|
};
|
|
319
|
-
class Si extends
|
|
319
|
+
class Si extends r.Component {
|
|
320
320
|
constructor() {
|
|
321
321
|
super(...arguments), this.handleClick = (t) => {
|
|
322
322
|
const { onClick: e, value: i } = this.props;
|
|
@@ -337,8 +337,8 @@ class Si extends o.Component {
|
|
|
337
337
|
* @hidden
|
|
338
338
|
*/
|
|
339
339
|
shouldComponentUpdate(t) {
|
|
340
|
-
const { value: e, ...i } = this.props, { value: a, ...
|
|
341
|
-
return !((!(e && a) || e.getTime() === a.getTime()) && yi(i,
|
|
340
|
+
const { value: e, ...i } = this.props, { value: a, ...o } = t;
|
|
341
|
+
return !((!(e && a) || e.getTime() === a.getTime()) && yi(i, o));
|
|
342
342
|
}
|
|
343
343
|
/* eslint-disable max-len */
|
|
344
344
|
/**
|
|
@@ -351,7 +351,7 @@ class Si extends o.Component {
|
|
|
351
351
|
formattedValue: e,
|
|
352
352
|
isWeekend: i,
|
|
353
353
|
isFocused: a,
|
|
354
|
-
isInRange:
|
|
354
|
+
isInRange: o,
|
|
355
355
|
isSelected: l,
|
|
356
356
|
isRangeStart: c,
|
|
357
357
|
isRangeMid: h,
|
|
@@ -380,7 +380,7 @@ class Si extends o.Component {
|
|
|
380
380
|
},
|
|
381
381
|
t
|
|
382
382
|
);
|
|
383
|
-
return /* @__PURE__ */
|
|
383
|
+
return /* @__PURE__ */ r.createElement(
|
|
384
384
|
"td",
|
|
385
385
|
{
|
|
386
386
|
...M,
|
|
@@ -389,24 +389,24 @@ class Si extends o.Component {
|
|
|
389
389
|
onMouseEnter: this.handleMouseEnter,
|
|
390
390
|
onMouseLeave: this.handleMouseLeave
|
|
391
391
|
},
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ r.createElement("span", { className: "k-link" }, this.props.children)
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
class xi extends
|
|
396
|
+
class xi extends r.Component {
|
|
397
397
|
/**
|
|
398
398
|
* @return
|
|
399
399
|
* Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child.
|
|
400
400
|
*/
|
|
401
401
|
render() {
|
|
402
402
|
const { className: t, firstDate: e, ...i } = this.props;
|
|
403
|
-
return /* @__PURE__ */
|
|
403
|
+
return /* @__PURE__ */ r.createElement("td", { className: P("k-calendar-td", t), ...i }, this.props.children);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
var b = /* @__PURE__ */ ((s) => (s[s.Left = 0] = "Left", s[s.Right = 1] = "Right", s[s.Up = 2] = "Up", s[s.Down = 3] = "Down", s[s.PrevView = 4] = "PrevView", s[s.NextView = 5] = "NextView", s[s.FirstInView = 6] = "FirstInView", s[s.LastInView = 7] = "LastInView", s[s.LowerView = 8] = "LowerView", s[s.UpperView = 9] = "UpperView", s))(b || {}),
|
|
406
|
+
var b = /* @__PURE__ */ ((s) => (s[s.Left = 0] = "Left", s[s.Right = 1] = "Right", s[s.Up = 2] = "Up", s[s.Down = 3] = "Down", s[s.PrevView = 4] = "PrevView", s[s.NextView = 5] = "NextView", s[s.FirstInView = 6] = "FirstInView", s[s.LastInView = 7] = "LastInView", s[s.LowerView = 8] = "LowerView", s[s.UpperView = 9] = "UpperView", s))(b || {}), y = /* @__PURE__ */ ((s) => (s[s.month = 0] = "month", s[s.year = 1] = "year", s[s.decade = 2] = "decade", s[s.century = 3] = "century", s))(y || {});
|
|
407
407
|
const z = { start: null, end: null };
|
|
408
|
-
function
|
|
409
|
-
const t = (i, a,
|
|
408
|
+
function ot(s) {
|
|
409
|
+
const t = (i, a, o, ...l) => a[o] === null ? null : (i ? s.isRequired : s)(a, o, ...l), e = t.bind(null, !1);
|
|
410
410
|
return e.isRequired = t.bind(null, !0), e;
|
|
411
411
|
}
|
|
412
412
|
const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s < t ? t : e, L = new Date(1980, 0, 1), ut = new Date(1900, 0, 1), dt = new Date(2099, 11, 31), Nt = new Date(1980, 0, 1), xt = new Date(1980, 0, 1, 23, 59, 59), W = (s, t) => {
|
|
@@ -417,7 +417,7 @@ const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s
|
|
|
417
417
|
t.getSeconds(),
|
|
418
418
|
t.getMilliseconds()
|
|
419
419
|
), e;
|
|
420
|
-
}, U = () => C(/* @__PURE__ */ new Date()), F = (s, t, e) => !s || !(t && t > s || e && e < s), Hs = (s, t, e) => s === null || !(t && C(t) > C(s) || e && C(e) < C(s)),
|
|
420
|
+
}, U = () => C(/* @__PURE__ */ new Date()), F = (s, t, e) => !s || !(t && t > s || e && e < s), Hs = (s, t, e) => s === null || !(t && C(t) > C(s) || e && C(e) < C(s)), ke = (s, t) => {
|
|
421
421
|
const { start: e, end: i } = t || z;
|
|
422
422
|
return !e || !i ? !1 : e < s && s < i;
|
|
423
423
|
}, Q = (s, t, e = 1) => {
|
|
@@ -425,14 +425,14 @@ const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s
|
|
|
425
425
|
for (let a = s; a < t; a = a + e)
|
|
426
426
|
i.push(a);
|
|
427
427
|
return i;
|
|
428
|
-
},
|
|
428
|
+
}, Bs = (s, t, e) => t.getTime() <= s.getTime() && s.getTime() <= e.getTime(), As = (s, t) => s.slice(t).concat(s.slice(0, t)), K = (s, t, e) => s && (t && s < t ? v(t) : e && s > e ? v(e) : s), Y = (s) => (t, e = "", i = {}) => {
|
|
429
429
|
const a = document.createElement(s);
|
|
430
|
-
return a.className = e, Object.keys(i).map((
|
|
430
|
+
return a.className = e, Object.keys(i).map((o) => a.style[o] = i[o]), typeof t == "string" ? a.innerHTML = t || "" : (t || []).forEach((o) => o && a.appendChild(o)), a;
|
|
431
431
|
};
|
|
432
432
|
function Ci(s, t, e = {}) {
|
|
433
433
|
let i, a;
|
|
434
434
|
e.maxWait;
|
|
435
|
-
let
|
|
435
|
+
let o, l, c;
|
|
436
436
|
const h = window;
|
|
437
437
|
let u = !1, d = !1;
|
|
438
438
|
const p = !t && t !== 0 && typeof h.requestAnimationFrame == "function";
|
|
@@ -441,7 +441,7 @@ function Ci(s, t, e = {}) {
|
|
|
441
441
|
t = +t || 0;
|
|
442
442
|
function m(x) {
|
|
443
443
|
const O = i, tt = a;
|
|
444
|
-
return i = a = void 0,
|
|
444
|
+
return i = a = void 0, o = s.apply(tt, O), o;
|
|
445
445
|
}
|
|
446
446
|
function f(x, O) {
|
|
447
447
|
return p ? (h.cancelAnimationFrame(l), h.requestAnimationFrame(x)) : setTimeout(x, O);
|
|
@@ -452,7 +452,7 @@ function Ci(s, t, e = {}) {
|
|
|
452
452
|
clearTimeout(x);
|
|
453
453
|
}
|
|
454
454
|
function I(x) {
|
|
455
|
-
return l = f(E, t), u ? m() :
|
|
455
|
+
return l = f(E, t), u ? m() : o;
|
|
456
456
|
}
|
|
457
457
|
function M(x) {
|
|
458
458
|
const O = x - c;
|
|
@@ -469,22 +469,22 @@ function Ci(s, t, e = {}) {
|
|
|
469
469
|
l = f(E, M(x));
|
|
470
470
|
}
|
|
471
471
|
function g(x) {
|
|
472
|
-
return l = void 0, i ? m() : (i = a = void 0,
|
|
472
|
+
return l = void 0, i ? m() : (i = a = void 0, o);
|
|
473
473
|
}
|
|
474
474
|
function H() {
|
|
475
475
|
l !== void 0 && S(l), i = c = a = l = void 0;
|
|
476
476
|
}
|
|
477
477
|
function V() {
|
|
478
|
-
return l === void 0 ?
|
|
478
|
+
return l === void 0 ? o : g();
|
|
479
479
|
}
|
|
480
480
|
function R() {
|
|
481
481
|
return l !== void 0;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function B(...x) {
|
|
484
484
|
const O = Date.now(), tt = w(O);
|
|
485
|
-
return i = x, a = this, c = O, tt && l === void 0 ? I() : (l === void 0 && (l = f(E, t)),
|
|
485
|
+
return i = x, a = this, c = O, tt && l === void 0 ? I() : (l === void 0 && (l = f(E, t)), o);
|
|
486
486
|
}
|
|
487
|
-
return
|
|
487
|
+
return B.cancel = H, B.flush = V, B.pending = R, B;
|
|
488
488
|
}
|
|
489
489
|
const Ii = [[]], Ee = 4, Mi = 3, Ti = {
|
|
490
490
|
[b.Left]: (s) => it(s, -1),
|
|
@@ -493,7 +493,7 @@ const Ii = [[]], Ee = 4, Mi = 3, Ti = {
|
|
|
493
493
|
[b.Down]: (s) => it(s, 5),
|
|
494
494
|
[b.PrevView]: (s) => qt(s, -1),
|
|
495
495
|
[b.NextView]: (s) => qt(s, 1),
|
|
496
|
-
[b.FirstInView]: (s) =>
|
|
496
|
+
[b.FirstInView]: (s) => re(s),
|
|
497
497
|
[b.LastInView]: (s) => He(s)
|
|
498
498
|
};
|
|
499
499
|
class Ei {
|
|
@@ -508,7 +508,7 @@ class Ei {
|
|
|
508
508
|
cellUID: e,
|
|
509
509
|
focusedDate: i,
|
|
510
510
|
isActiveView: a,
|
|
511
|
-
max:
|
|
511
|
+
max: o,
|
|
512
512
|
min: l,
|
|
513
513
|
selectedDate: c,
|
|
514
514
|
selectionRange: h = z,
|
|
@@ -516,18 +516,18 @@ class Ei {
|
|
|
516
516
|
} = t;
|
|
517
517
|
if (!u)
|
|
518
518
|
return Ii;
|
|
519
|
-
const d = Q(0, Ee), p =
|
|
519
|
+
const d = Q(0, Ee), p = re(u), m = He(u), f = U();
|
|
520
520
|
return Q(0, Mi).map((S) => {
|
|
521
521
|
const I = it(p, S * Ee);
|
|
522
522
|
return d.map((M) => {
|
|
523
|
-
const w = this.normalize(it(I, M), l,
|
|
524
|
-
return
|
|
523
|
+
const w = this.normalize(it(I, M), l, o), E = this.isEqual(w, h.start), g = this.isEqual(w, h.end), V = !E && !g && ke(w, h), R = a && (Array.isArray(c) ? this.isSelectedFromArray(w, c, l, o) : F(c, l, o) && this.isEqual(w, c));
|
|
524
|
+
return Bs(w, p, m) ? {
|
|
525
525
|
formattedValue: this.value(w),
|
|
526
526
|
id: `${e}${w.getTime()}`,
|
|
527
527
|
isFocused: this.isEqual(w, i),
|
|
528
528
|
isSelected: R,
|
|
529
529
|
isWeekend: !1,
|
|
530
|
-
isInRange: F(w, l,
|
|
530
|
+
isInRange: F(w, l, o),
|
|
531
531
|
isRangeStart: E,
|
|
532
532
|
isRangeMid: V,
|
|
533
533
|
isRangeEnd: g,
|
|
@@ -541,10 +541,10 @@ class Ei {
|
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
isSelectedFromArray(t, e, i, a) {
|
|
544
|
-
let
|
|
544
|
+
let o = !1;
|
|
545
545
|
return e.forEach((l) => {
|
|
546
|
-
F(t, i, a) && this.isEqual(t, l) && (
|
|
547
|
-
}),
|
|
546
|
+
F(t, i, a) && this.isEqual(t, l) && (o = !0);
|
|
547
|
+
}), o;
|
|
548
548
|
}
|
|
549
549
|
isEqual(t, e) {
|
|
550
550
|
return !t || !e ? !1 : st(t).getFullYear() === st(e).getFullYear();
|
|
@@ -556,8 +556,8 @@ class Ei {
|
|
|
556
556
|
return e[0].getFullYear() <= i && i <= e[e.length - 1].getFullYear() + 99;
|
|
557
557
|
}
|
|
558
558
|
isInRange(t, e, i) {
|
|
559
|
-
const a = st(t).getFullYear(),
|
|
560
|
-
return
|
|
559
|
+
const a = st(t).getFullYear(), o = !e || st(e).getFullYear() <= a, l = !i || a <= st(i).getFullYear();
|
|
560
|
+
return o && l;
|
|
561
561
|
}
|
|
562
562
|
isInSameView(t, e) {
|
|
563
563
|
return se(t, e) === 0;
|
|
@@ -573,10 +573,10 @@ class Ei {
|
|
|
573
573
|
return st(t).getFullYear().toString();
|
|
574
574
|
}
|
|
575
575
|
navigationTitle(t) {
|
|
576
|
-
return t ?
|
|
576
|
+
return t ? re(t).getFullYear().toString() : "";
|
|
577
577
|
}
|
|
578
578
|
title(t) {
|
|
579
|
-
return t ? `${
|
|
579
|
+
return t ? `${re(t).getFullYear()} - ${He(t).getFullYear()}` : "";
|
|
580
580
|
}
|
|
581
581
|
rowLength(t) {
|
|
582
582
|
return Ee;
|
|
@@ -605,7 +605,7 @@ const Vi = [[]], Ve = 4, Oi = 3, Pi = {
|
|
|
605
605
|
[b.PrevView]: (s) => it(s, -1),
|
|
606
606
|
[b.NextView]: (s) => it(s, 1),
|
|
607
607
|
[b.FirstInView]: (s) => st(s),
|
|
608
|
-
[b.LastInView]: (s) =>
|
|
608
|
+
[b.LastInView]: (s) => Be(s)
|
|
609
609
|
};
|
|
610
610
|
class Ri {
|
|
611
611
|
addToDate(t, e) {
|
|
@@ -619,7 +619,7 @@ class Ri {
|
|
|
619
619
|
cellUID: e,
|
|
620
620
|
focusedDate: i,
|
|
621
621
|
isActiveView: a,
|
|
622
|
-
max:
|
|
622
|
+
max: o,
|
|
623
623
|
min: l,
|
|
624
624
|
selectedDate: c,
|
|
625
625
|
selectionRange: h = z,
|
|
@@ -627,18 +627,18 @@ class Ri {
|
|
|
627
627
|
} = t;
|
|
628
628
|
if (!u)
|
|
629
629
|
return Vi;
|
|
630
|
-
const d = Q(0, Ve), p = st(u), m =
|
|
630
|
+
const d = Q(0, Ve), p = st(u), m = Be(u), f = U();
|
|
631
631
|
return Q(0, Oi).map((S) => {
|
|
632
632
|
const I = nt(p, S * Ve);
|
|
633
633
|
return d.map((M) => {
|
|
634
|
-
const w = this.normalize(nt(I, M), l,
|
|
635
|
-
return
|
|
634
|
+
const w = this.normalize(nt(I, M), l, o), E = this.isEqual(w, h.start), g = this.isEqual(w, h.end), V = !E && !g && ke(w, h), R = a && (Array.isArray(c) ? this.isSelectedFromArray(w, c, l, o) : F(c, l, o) && this.isEqual(w, c));
|
|
635
|
+
return Bs(w, p, m) ? {
|
|
636
636
|
formattedValue: this.value(w),
|
|
637
637
|
id: `${e}${w.getTime()}`,
|
|
638
638
|
isFocused: this.isEqual(w, i),
|
|
639
639
|
isSelected: R,
|
|
640
640
|
isWeekend: !1,
|
|
641
|
-
isInRange: F(w, l,
|
|
641
|
+
isInRange: F(w, l, o),
|
|
642
642
|
isRangeStart: E,
|
|
643
643
|
isRangeMid: V,
|
|
644
644
|
isRangeEnd: g,
|
|
@@ -652,10 +652,10 @@ class Ri {
|
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
isSelectedFromArray(t, e, i, a) {
|
|
655
|
-
let
|
|
655
|
+
let o = !1;
|
|
656
656
|
return e.forEach((l) => {
|
|
657
|
-
F(t, i, a) && this.isEqual(t, l) && (
|
|
658
|
-
}),
|
|
657
|
+
F(t, i, a) && this.isEqual(t, l) && (o = !0);
|
|
658
|
+
}), o;
|
|
659
659
|
}
|
|
660
660
|
isEqual(t, e) {
|
|
661
661
|
return !t || !e ? !1 : t.getFullYear() === e.getFullYear();
|
|
@@ -667,8 +667,8 @@ class Ri {
|
|
|
667
667
|
return e[0].getFullYear() <= i && i <= e[e.length - 1].getFullYear() + 9;
|
|
668
668
|
}
|
|
669
669
|
isInRange(t, e, i) {
|
|
670
|
-
const a = t.getFullYear(),
|
|
671
|
-
return
|
|
670
|
+
const a = t.getFullYear(), o = !e || e.getFullYear() <= a, l = !i || a <= i.getFullYear();
|
|
671
|
+
return o && l;
|
|
672
672
|
}
|
|
673
673
|
isRangeStart(t) {
|
|
674
674
|
return t.getFullYear() % 100 === 0;
|
|
@@ -687,7 +687,7 @@ class Ri {
|
|
|
687
687
|
return t ? st(t).getFullYear().toString() : "";
|
|
688
688
|
}
|
|
689
689
|
title(t) {
|
|
690
|
-
return t ? `${st(t).getFullYear()} - ${
|
|
690
|
+
return t ? `${st(t).getFullYear()} - ${Be(t).getFullYear()}` : "";
|
|
691
691
|
}
|
|
692
692
|
rowLength(t) {
|
|
693
693
|
return Ve;
|
|
@@ -718,7 +718,7 @@ const Ni = [[]], Oe = 7, _i = 6, Fi = 6, Li = 0, Hi = {
|
|
|
718
718
|
[b.FirstInView]: (s) => fe(s),
|
|
719
719
|
[b.LastInView]: (s) => Ot(s)
|
|
720
720
|
};
|
|
721
|
-
class
|
|
721
|
+
class Bi {
|
|
722
722
|
constructor(t) {
|
|
723
723
|
this.intl = t;
|
|
724
724
|
}
|
|
@@ -733,7 +733,7 @@ class Ai {
|
|
|
733
733
|
cellUID: e,
|
|
734
734
|
focusedDate: i,
|
|
735
735
|
isActiveView: a,
|
|
736
|
-
max:
|
|
736
|
+
max: o,
|
|
737
737
|
min: l,
|
|
738
738
|
selectedDate: c,
|
|
739
739
|
selectionRange: h = z,
|
|
@@ -745,16 +745,16 @@ class Ai {
|
|
|
745
745
|
return Q(0, _i).map((M) => {
|
|
746
746
|
const w = Wt(f, M * Oe);
|
|
747
747
|
return S.map((E) => {
|
|
748
|
-
const g = this.normalize(Wt(w, E), l,
|
|
748
|
+
const g = this.normalize(Wt(w, E), l, o);
|
|
749
749
|
if (g < d || g > p)
|
|
750
750
|
return null;
|
|
751
|
-
const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), x = !V && !R &&
|
|
751
|
+
const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), x = !V && !R && ke(g, h), O = a && (Array.isArray(c) ? this.isSelectedFromArray(g, c, l, o) : F(c, l, o) && this.isEqual(g, c));
|
|
752
752
|
return {
|
|
753
753
|
formattedValue: this.value(g),
|
|
754
754
|
id: `${e}${g.getTime()}`,
|
|
755
755
|
isFocused: this.isEqual(g, i),
|
|
756
756
|
isSelected: O,
|
|
757
|
-
isInRange: F(g, l,
|
|
757
|
+
isInRange: F(g, l, o),
|
|
758
758
|
isWeekend: this.isWeekend(g),
|
|
759
759
|
isRangeStart: V,
|
|
760
760
|
isRangeMid: x,
|
|
@@ -772,17 +772,17 @@ class Ai {
|
|
|
772
772
|
return !t || !e ? !1 : C(t).getTime() === C(e).getTime();
|
|
773
773
|
}
|
|
774
774
|
isSelectedFromArray(t, e, i, a) {
|
|
775
|
-
let
|
|
775
|
+
let o = !1;
|
|
776
776
|
return e.forEach((l) => {
|
|
777
|
-
F(t, i, a) && this.isEqual(t, l) && (
|
|
778
|
-
}),
|
|
777
|
+
F(t, i, a) && this.isEqual(t, l) && (o = !0);
|
|
778
|
+
}), o;
|
|
779
779
|
}
|
|
780
780
|
isInArray(t, e) {
|
|
781
781
|
return !!e.length && fe(e[0]) <= t && t <= Ot(e[e.length - 1]);
|
|
782
782
|
}
|
|
783
783
|
isInRange(t, e, i) {
|
|
784
|
-
const a = C(t),
|
|
785
|
-
return
|
|
784
|
+
const a = C(t), o = !e || C(e) <= a, l = !i || a <= C(i);
|
|
785
|
+
return o && l;
|
|
786
786
|
}
|
|
787
787
|
isInSameView(t, e) {
|
|
788
788
|
return ne(t, e) === 0;
|
|
@@ -832,7 +832,7 @@ class Ai {
|
|
|
832
832
|
return this.intl.dateFormatNames({ nameType: "wide", type: "months", standAlone: !0 });
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
const
|
|
835
|
+
const Ai = [[]], Pe = 4, zi = 3, qi = (s) => s > 4 ? -5 : s < 2 ? -2 : -7, Wi = (s) => s < 7 ? 5 : s < 10 ? 7 : 2, Ui = {
|
|
836
836
|
[b.Left]: (s) => $(s, -1),
|
|
837
837
|
[b.Up]: (s) => $(s, qi(s.getMonth())),
|
|
838
838
|
[b.Right]: (s) => $(s, 1),
|
|
@@ -857,28 +857,28 @@ class $i {
|
|
|
857
857
|
cellUID: e,
|
|
858
858
|
focusedDate: i,
|
|
859
859
|
isActiveView: a,
|
|
860
|
-
max:
|
|
860
|
+
max: o,
|
|
861
861
|
min: l,
|
|
862
862
|
selectedDate: c,
|
|
863
863
|
selectionRange: h = z,
|
|
864
864
|
viewDate: u
|
|
865
865
|
} = t;
|
|
866
866
|
if (!u)
|
|
867
|
-
return
|
|
867
|
+
return Ai;
|
|
868
868
|
const d = this.abbrMonthNames(), p = Ns(u), m = _s(u), f = p.getFullYear(), S = Q(0, Pe), I = U();
|
|
869
869
|
return Q(0, zi).map((M) => {
|
|
870
870
|
const w = $(p, M * Pe);
|
|
871
871
|
return S.map((E) => {
|
|
872
|
-
const g = this.normalize($(w, E), l,
|
|
872
|
+
const g = this.normalize($(w, E), l, o);
|
|
873
873
|
if (f < g.getFullYear())
|
|
874
874
|
return null;
|
|
875
|
-
const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), x = !V && !R &&
|
|
875
|
+
const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), x = !V && !R && ke(g, h), O = a && (Array.isArray(c) ? this.isSelectedFromArray(g, c, l, o) : F(c, l, o) && this.isEqual(g, c));
|
|
876
876
|
return {
|
|
877
877
|
formattedValue: d[g.getMonth()],
|
|
878
878
|
id: `${e}${g.getTime()}`,
|
|
879
879
|
isFocused: this.isEqual(g, i),
|
|
880
880
|
isSelected: O,
|
|
881
|
-
isInRange: F(g, l,
|
|
881
|
+
isInRange: F(g, l, o),
|
|
882
882
|
isWeekend: !1,
|
|
883
883
|
isRangeStart: V,
|
|
884
884
|
isRangeMid: x,
|
|
@@ -893,10 +893,10 @@ class $i {
|
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
895
|
isSelectedFromArray(t, e, i, a) {
|
|
896
|
-
let
|
|
896
|
+
let o = !1;
|
|
897
897
|
return e.forEach((l) => {
|
|
898
|
-
F(t, i, a) && this.isEqual(t, l) && (
|
|
899
|
-
}),
|
|
898
|
+
F(t, i, a) && this.isEqual(t, l) && (o = !0);
|
|
899
|
+
}), o;
|
|
900
900
|
}
|
|
901
901
|
isEqual(t, e) {
|
|
902
902
|
return !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
|
|
@@ -908,8 +908,8 @@ class $i {
|
|
|
908
908
|
return e[0].getFullYear() <= i && i <= e[e.length - 1].getFullYear();
|
|
909
909
|
}
|
|
910
910
|
isInRange(t, e, i) {
|
|
911
|
-
const a = le(t.getFullYear(), t.getMonth(), 1),
|
|
912
|
-
return
|
|
911
|
+
const a = le(t.getFullYear(), t.getMonth(), 1), o = !e || le(e.getFullYear(), e.getMonth(), 1) <= a, l = !i || a <= le(i.getFullYear(), i.getMonth(), 1);
|
|
912
|
+
return o && l;
|
|
913
913
|
}
|
|
914
914
|
isInSameView(t, e) {
|
|
915
915
|
return ae(t, e) === 0;
|
|
@@ -953,17 +953,17 @@ class $i {
|
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
const Yi = {
|
|
956
|
-
[
|
|
957
|
-
[
|
|
958
|
-
[
|
|
959
|
-
[
|
|
956
|
+
[y.month]: Bi,
|
|
957
|
+
[y.year]: $i,
|
|
958
|
+
[y.decade]: Ri,
|
|
959
|
+
[y.century]: Ei
|
|
960
960
|
}, Ki = (s, t) => {
|
|
961
|
-
const e =
|
|
961
|
+
const e = y[y[s + t]];
|
|
962
962
|
return e !== void 0 ? e : s;
|
|
963
963
|
};
|
|
964
964
|
class zs {
|
|
965
965
|
constructor(t) {
|
|
966
|
-
this.bottom =
|
|
966
|
+
this.bottom = y.month, this.top = y.century, this.onViewChanged = t;
|
|
967
967
|
}
|
|
968
968
|
configure(t, e) {
|
|
969
969
|
this.bottom = t, this.top = e;
|
|
@@ -1004,7 +1004,7 @@ let ji = class {
|
|
|
1004
1004
|
calculateHeights(t) {
|
|
1005
1005
|
if (!J)
|
|
1006
1006
|
return;
|
|
1007
|
-
const e = Y("div"), i = Y("ul"), a = Y("li"),
|
|
1007
|
+
const e = Y("div"), i = Y("ul"), a = Y("li"), o = Y("td"), l = Y("th"), c = Y("tr"), h = Y("tbody"), u = Y("thead"), d = Y("table"), p = () => e(
|
|
1008
1008
|
`
|
|
1009
1009
|
<span class="k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title">
|
|
1010
1010
|
<span className="k-button-text">March 2017</span>
|
|
@@ -1020,62 +1020,62 @@ let ji = class {
|
|
|
1020
1020
|
], "k-calendar-thead")
|
|
1021
1021
|
],
|
|
1022
1022
|
"k-calendar-table k-calendar-weekdays"
|
|
1023
|
-
), f = (
|
|
1023
|
+
), f = (D, _) => new Array(D).fill("1").map(_), S = (D, _ = 1) => d([
|
|
1024
1024
|
h(
|
|
1025
1025
|
[c(
|
|
1026
|
-
[
|
|
1026
|
+
[o("1", "k-calendar-td k-alt")]
|
|
1027
1027
|
)].concat(
|
|
1028
1028
|
f(
|
|
1029
|
-
|
|
1030
|
-
() => c(f(_, (Mt) =>
|
|
1029
|
+
D,
|
|
1030
|
+
() => c(f(_, (Mt) => o(`<span class="k-link">${Mt}</span>`, "k-calendar-td")), "k-calendar-tr")
|
|
1031
1031
|
)
|
|
1032
1032
|
),
|
|
1033
1033
|
"k-calendar-tbody"
|
|
1034
1034
|
)
|
|
1035
|
-
], "k-calendar-table"), I = (
|
|
1035
|
+
], "k-calendar-table"), I = (D) => e(D, "k-content k-scrollable"), M = (D, _, Mt) => e(
|
|
1036
1036
|
Mt ? [
|
|
1037
1037
|
p(),
|
|
1038
1038
|
m(),
|
|
1039
|
-
I([
|
|
1039
|
+
I([D, D])
|
|
1040
1040
|
] : [
|
|
1041
1041
|
p(),
|
|
1042
|
-
I([
|
|
1042
|
+
I([D, D])
|
|
1043
1043
|
],
|
|
1044
1044
|
_,
|
|
1045
1045
|
{ left: "-10000px", position: "absolute" }
|
|
1046
1046
|
), w = (() => {
|
|
1047
|
-
let
|
|
1048
|
-
return () => J ? (
|
|
1047
|
+
let D;
|
|
1048
|
+
return () => J ? (D || (D = e(
|
|
1049
1049
|
[I([i([a("<span>FEB</span>")])])],
|
|
1050
1050
|
"k-calendar-navigation",
|
|
1051
1051
|
{ left: "0px", position: "absolute" }
|
|
1052
|
-
)),
|
|
1053
|
-
})(), E = ({ cells:
|
|
1052
|
+
)), D) : null;
|
|
1053
|
+
})(), E = ({ cells: D, rows: _ }, Mt, ti) => {
|
|
1054
1054
|
let Ie;
|
|
1055
|
-
return () => J ? (Ie || (Ie = M(S(_,
|
|
1056
|
-
}, g = (
|
|
1057
|
-
const _ = g(
|
|
1058
|
-
return _.className = `${_.className} k-scrollable-horizontal`,
|
|
1059
|
-
}, V = E({ cells: 7, rows: 6 }, "k-calendar-view k-calendar-monthview k-vstack", !0), R = E({ cells: 5, rows: 3 }, "k-calendar-view k-calendar-yearview", !1),
|
|
1060
|
-
const _ = window.getComputedStyle(
|
|
1061
|
-
return parseFloat(_.width) + parseFloat(_.paddingLeft) + parseFloat(_.paddingRight) ||
|
|
1062
|
-
}, It = (
|
|
1063
|
-
this.didCalculate = !0, t && (this.hostContainer = t), this.batch(V(), (
|
|
1064
|
-
const _ = It(
|
|
1065
|
-
this.calendarHeight = j(
|
|
1066
|
-
}), this.batch(x(), (
|
|
1067
|
-
const _ = It(
|
|
1068
|
-
this.calendarWidth = gt(
|
|
1069
|
-
}), this.batch(R(), (
|
|
1070
|
-
this.yearViewHeight = j(It(
|
|
1071
|
-
}), this.batch(O(), (
|
|
1072
|
-
this.yearViewWidth = gt(It(
|
|
1073
|
-
}), this.batch(
|
|
1074
|
-
this.decadeViewHeight = j(It(
|
|
1075
|
-
}), this.batch(tt(), (
|
|
1076
|
-
this.decadeViewWidth = gt(It(
|
|
1077
|
-
}), this.batch(w(), (
|
|
1078
|
-
this.navigationItemHeight = j(
|
|
1055
|
+
return () => J ? (Ie || (Ie = M(S(_, D), Mt, ti)), Ie) : null;
|
|
1056
|
+
}, g = (D) => D.querySelector(".k-scrollable"), H = (D) => {
|
|
1057
|
+
const _ = g(D);
|
|
1058
|
+
return _.className = `${_.className} k-scrollable-horizontal`, D;
|
|
1059
|
+
}, V = E({ cells: 7, rows: 6 }, "k-calendar-view k-calendar-monthview k-vstack", !0), R = E({ cells: 5, rows: 3 }, "k-calendar-view k-calendar-yearview", !1), B = E({ cells: 5, rows: 2 }, "k-calendar-view k-calendar-decadeview", !1), x = () => H(V()), O = () => H(R()), tt = () => H(B()), j = (D) => parseFloat(window.getComputedStyle(D).height) || D.offsetHeight, gt = (D) => {
|
|
1060
|
+
const _ = window.getComputedStyle(D);
|
|
1061
|
+
return parseFloat(_.width) + parseFloat(_.paddingLeft) + parseFloat(_.paddingRight) || D.offsetWidth;
|
|
1062
|
+
}, It = (D) => D.querySelector("tbody");
|
|
1063
|
+
this.didCalculate = !0, t && (this.hostContainer = t), this.batch(V(), (D) => {
|
|
1064
|
+
const _ = It(D);
|
|
1065
|
+
this.calendarHeight = j(D), this.monthViewHeight = j(_), this.headerHeight = j(_.children[0]), this.scrollableContentHeight = j(g(D));
|
|
1066
|
+
}), this.batch(x(), (D) => {
|
|
1067
|
+
const _ = It(D);
|
|
1068
|
+
this.calendarWidth = gt(D), this.monthViewWidth = gt(_), this.scrollableContentWidth = gt(g(D));
|
|
1069
|
+
}), this.batch(R(), (D) => {
|
|
1070
|
+
this.yearViewHeight = j(It(D)), this.scrollableYearContentHeight = j(g(D));
|
|
1071
|
+
}), this.batch(O(), (D) => {
|
|
1072
|
+
this.yearViewWidth = gt(It(D));
|
|
1073
|
+
}), this.batch(B(), (D) => {
|
|
1074
|
+
this.decadeViewHeight = j(It(D)), this.centuryViewHeight = this.decadeViewHeight;
|
|
1075
|
+
}), this.batch(tt(), (D) => {
|
|
1076
|
+
this.decadeViewWidth = gt(It(D)), this.centuryViewWidth = this.decadeViewWidth;
|
|
1077
|
+
}), this.batch(w(), (D) => {
|
|
1078
|
+
this.navigationItemHeight = j(D.querySelector("li"));
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
viewHeight(t) {
|
|
@@ -1087,13 +1087,13 @@ let ji = class {
|
|
|
1087
1087
|
viewDimension(t, e) {
|
|
1088
1088
|
const i = e === "height" ? "ViewHeight" : "ViewWidth";
|
|
1089
1089
|
switch (t) {
|
|
1090
|
-
case
|
|
1090
|
+
case y.month:
|
|
1091
1091
|
return this[`month${i}`];
|
|
1092
|
-
case
|
|
1092
|
+
case y.year:
|
|
1093
1093
|
return this[`year${i}`];
|
|
1094
|
-
case
|
|
1094
|
+
case y.decade:
|
|
1095
1095
|
return this[`decade${i}`];
|
|
1096
|
-
case
|
|
1096
|
+
case y.century:
|
|
1097
1097
|
return this[`century${i}`];
|
|
1098
1098
|
default:
|
|
1099
1099
|
return 1;
|
|
@@ -1124,8 +1124,8 @@ class qs {
|
|
|
1124
1124
|
const e = `${t.ctrlKey || t.metaKey ? "meta+" : ""}${t.keyCode}`;
|
|
1125
1125
|
return Zi[e];
|
|
1126
1126
|
}
|
|
1127
|
-
move(t, e, i, a,
|
|
1128
|
-
return a ? e === b.UpperView && this.bus.canMoveUp(i) ? (this.bus.moveUp(i,
|
|
1127
|
+
move(t, e, i, a, o) {
|
|
1128
|
+
return a ? e === b.UpperView && this.bus.canMoveUp(i) ? (this.bus.moveUp(i, o), t) : e === b.LowerView && this.bus.canMoveDown(i) ? (this.bus.moveDown(i, o), t) : a.move(t, e) : t;
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
const Gi = (s) => (t) => Math.floor(t / s), Xi = (s) => (t) => t * s;
|
|
@@ -1172,28 +1172,28 @@ class Qi {
|
|
|
1172
1172
|
this.intl = t;
|
|
1173
1173
|
}
|
|
1174
1174
|
getWeekNames(t = !1) {
|
|
1175
|
-
const e =
|
|
1175
|
+
const e = As(
|
|
1176
1176
|
this.intl.dateFormatNames({ nameType: "short", type: "days" }),
|
|
1177
1177
|
this.intl.firstDay()
|
|
1178
1178
|
);
|
|
1179
1179
|
return t ? [""].concat(e) : e;
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
const bs = (s) => /* @__PURE__ */
|
|
1182
|
+
const bs = (s) => /* @__PURE__ */ r.createElement("td", { key: s, className: "k-calendar-td" }, " "), Ws = class extends r.Component {
|
|
1183
1183
|
constructor() {
|
|
1184
1184
|
super(...arguments), this.intl = null, this.weekService = null, this.buildWeekNumber = (s, t) => {
|
|
1185
1185
|
if (!this.firstDate(s))
|
|
1186
1186
|
return bs(`week-cell-${t}`);
|
|
1187
|
-
const i = this.firstDate(s), a = this.getWeekNumber(i),
|
|
1187
|
+
const i = this.firstDate(s), a = this.getWeekNumber(i), o = `kendo-react-calendar-week-cell-${a}`, l = {
|
|
1188
1188
|
className: "k-alt",
|
|
1189
1189
|
value: a,
|
|
1190
1190
|
firstDate: i
|
|
1191
1191
|
};
|
|
1192
|
-
return this.props.weekCell ? /* @__PURE__ */
|
|
1192
|
+
return this.props.weekCell ? /* @__PURE__ */ r.createElement(this.props.weekCell, { ...l, key: o }, a) : /* @__PURE__ */ r.createElement(xi, { ...l, key: o }, a);
|
|
1193
1193
|
}, this.buildRow = (s) => s.map((t, e) => {
|
|
1194
1194
|
if (!t)
|
|
1195
1195
|
return bs(e);
|
|
1196
|
-
const i = { "aria-selected": t.isSelected }, a = `kendo-react-calendar-cell-${t.value.getTime()}`,
|
|
1196
|
+
const i = { "aria-selected": t.isSelected }, a = `kendo-react-calendar-cell-${t.value.getTime()}`, o = {
|
|
1197
1197
|
...i,
|
|
1198
1198
|
...t,
|
|
1199
1199
|
isDisabled: !t.isInRange,
|
|
@@ -1202,7 +1202,7 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
|
|
|
1202
1202
|
onMouseEnter: this.handleMouseEnter,
|
|
1203
1203
|
onMouseLeave: this.handleMouseLeave
|
|
1204
1204
|
};
|
|
1205
|
-
return this.props.cell ? /* @__PURE__ */
|
|
1205
|
+
return this.props.cell ? /* @__PURE__ */ r.createElement(this.props.cell, { ...o, key: a }, t.formattedValue) : /* @__PURE__ */ r.createElement(Si, { ...o, key: a }, t.formattedValue);
|
|
1206
1206
|
}), this.firstDate = (s) => {
|
|
1207
1207
|
const t = this.firstWeekDateContext(s);
|
|
1208
1208
|
return t ? t.value : null;
|
|
@@ -1242,17 +1242,17 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
|
|
|
1242
1242
|
return this.props.direction === "horizontal";
|
|
1243
1243
|
}
|
|
1244
1244
|
get isMonthView() {
|
|
1245
|
-
return this.props.activeView ===
|
|
1245
|
+
return this.props.activeView === y.month;
|
|
1246
1246
|
}
|
|
1247
1247
|
get weekNumber() {
|
|
1248
|
-
return !!(this.props.showWeekNumbers && this.props.activeView ===
|
|
1248
|
+
return !!(this.props.showWeekNumbers && this.props.activeView === y.month);
|
|
1249
1249
|
}
|
|
1250
1250
|
get selectedDate() {
|
|
1251
1251
|
return this.props.selectedDate !== void 0 ? this.props.selectedDate : Ws.defaultProps.selectedDate;
|
|
1252
1252
|
}
|
|
1253
1253
|
render() {
|
|
1254
1254
|
this.intl = ct(this), this.weekService = new Qi(this.intl);
|
|
1255
|
-
const s = this.weekService.getWeekNames(this.weekNumber), t = this.props.service.rowLength(this.weekNumber), e = this.props.service.title(this.props.viewDate), i = U(), a = W(this.props.viewDate, i),
|
|
1255
|
+
const s = this.weekService.getWeekNames(this.weekNumber), t = this.props.service.rowLength(this.weekNumber), e = this.props.service.title(this.props.viewDate), i = U(), a = W(this.props.viewDate, i), o = this.props.service.data({
|
|
1256
1256
|
cellUID: this.props.cellUID,
|
|
1257
1257
|
min: this.min,
|
|
1258
1258
|
max: this.max,
|
|
@@ -1262,20 +1262,20 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
|
|
|
1262
1262
|
selectionRange: this.props.selectionRange,
|
|
1263
1263
|
viewDate: a
|
|
1264
1264
|
});
|
|
1265
|
-
return /* @__PURE__ */
|
|
1265
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, this.isMonthView && this.isHorizontal && /* @__PURE__ */ r.createElement(
|
|
1266
1266
|
"thead",
|
|
1267
1267
|
{
|
|
1268
1268
|
role: "rowgroup",
|
|
1269
1269
|
className: "k-calendar-thead"
|
|
1270
1270
|
},
|
|
1271
|
-
/* @__PURE__ */
|
|
1272
|
-
), /* @__PURE__ */
|
|
1271
|
+
/* @__PURE__ */ r.createElement("tr", { role: "row", className: "k-calendar-tr" }, s.map((l, c) => /* @__PURE__ */ r.createElement("th", { key: c, className: "k-calendar-th" }, l)))
|
|
1272
|
+
), /* @__PURE__ */ r.createElement(
|
|
1273
1273
|
"tbody",
|
|
1274
1274
|
{
|
|
1275
1275
|
role: "rowgroup",
|
|
1276
1276
|
className: "k-calendar-tbody"
|
|
1277
1277
|
},
|
|
1278
|
-
!this.isHorizontal && /* @__PURE__ */
|
|
1278
|
+
!this.isHorizontal && /* @__PURE__ */ r.createElement("tr", { role: "presentation", className: "k-calendar-tr" }, /* @__PURE__ */ r.createElement(
|
|
1279
1279
|
"th",
|
|
1280
1280
|
{
|
|
1281
1281
|
scope: "col",
|
|
@@ -1284,7 +1284,7 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
|
|
|
1284
1284
|
},
|
|
1285
1285
|
e
|
|
1286
1286
|
)),
|
|
1287
|
-
|
|
1287
|
+
o.map((l, c) => /* @__PURE__ */ r.createElement("tr", { role: "row", className: "k-calendar-tr", key: c }, this.weekNumber && this.buildWeekNumber(l, c), this.buildRow(l)))
|
|
1288
1288
|
));
|
|
1289
1289
|
}
|
|
1290
1290
|
getWeekNumber(s) {
|
|
@@ -1313,17 +1313,17 @@ jt.defaultProps = {
|
|
|
1313
1313
|
showWeekNumbers: !1
|
|
1314
1314
|
};
|
|
1315
1315
|
ft(jt);
|
|
1316
|
-
class tn extends
|
|
1316
|
+
class tn extends r.PureComponent {
|
|
1317
1317
|
/**
|
|
1318
1318
|
* @return
|
|
1319
1319
|
* Returns a `<span />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child.
|
|
1320
1320
|
*/
|
|
1321
1321
|
render() {
|
|
1322
1322
|
const { view: t, ...e } = this.props;
|
|
1323
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ r.createElement(N, { type: "button", fillMode: "flat", ...e }, this.props.children);
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
|
-
const ce = class extends
|
|
1326
|
+
const ce = class extends r.Component {
|
|
1327
1327
|
constructor() {
|
|
1328
1328
|
super(...arguments), this.getTitle = () => {
|
|
1329
1329
|
if (!this.props.currentDate)
|
|
@@ -1356,8 +1356,8 @@ const ce = class extends o.Component {
|
|
|
1356
1356
|
className: t,
|
|
1357
1357
|
onClick: this.handleTitleClick,
|
|
1358
1358
|
disabled: !this.canMoveUp
|
|
1359
|
-
}, i = this.props.headerTitle ? /* @__PURE__ */
|
|
1360
|
-
return /* @__PURE__ */
|
|
1359
|
+
}, i = this.props.headerTitle ? /* @__PURE__ */ r.createElement(this.props.headerTitle, { ...e }, s) : /* @__PURE__ */ r.createElement(tn, { ...e }, s);
|
|
1360
|
+
return /* @__PURE__ */ r.createElement(
|
|
1361
1361
|
"div",
|
|
1362
1362
|
{
|
|
1363
1363
|
className: P("k-calendar-header", {
|
|
@@ -1366,8 +1366,8 @@ const ce = class extends o.Component {
|
|
|
1366
1366
|
})
|
|
1367
1367
|
},
|
|
1368
1368
|
i,
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1369
|
+
/* @__PURE__ */ r.createElement("span", { className: "k-spacer" }),
|
|
1370
|
+
/* @__PURE__ */ r.createElement("span", { className: "k-calendar-nav k-hstack" }, this.props.commands)
|
|
1371
1371
|
);
|
|
1372
1372
|
}
|
|
1373
1373
|
};
|
|
@@ -1385,7 +1385,7 @@ Zt.defaultProps = {
|
|
|
1385
1385
|
max: dt
|
|
1386
1386
|
};
|
|
1387
1387
|
at(Zt);
|
|
1388
|
-
const
|
|
1388
|
+
const Ae = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft = "dateinput.increment", Lt = "dateinput.decrement", qe = "calendar.today", We = "datepicker.toggleCalendar", Ht = "daterangepicker.swapStartEnd", Ue = "daterangepicker.start", $e = "daterangepicker.end", Ye = "daterangepicker.separator", Bt = "datetimepicker.toggleDateTimeSelector", Ke = "timepicker.now", je = "timepicker.selectNow", ve = "timepicker.cancel", Ut = "timepicker.set", Ze = "timepicker.toggleTimeSelector", ue = "timepicker.toggleClock", Ge = "datetimepicker.date", Xe = "datetimepicker.time", $t = "datetimepicker.cancel", Yt = "datetimepicker.set", Je = "daterangepicker.cancel", Qe = "daterangepicker.set", T = {
|
|
1389
1389
|
[qe]: "TODAY",
|
|
1390
1390
|
[Ke]: "NOW",
|
|
1391
1391
|
[Ut]: "Set",
|
|
@@ -1405,11 +1405,11 @@ const Be = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft =
|
|
|
1405
1405
|
[Ft]: "Increase value",
|
|
1406
1406
|
[Lt]: "Decrease value",
|
|
1407
1407
|
[We]: "Toggle calendar",
|
|
1408
|
-
[
|
|
1408
|
+
[Ae]: "Navigate to previous view",
|
|
1409
1409
|
[ze]: "Navigate to next view",
|
|
1410
1410
|
[Ht]: "Swap start and end values",
|
|
1411
|
-
[
|
|
1412
|
-
}, ts = class extends
|
|
1411
|
+
[Bt]: "Toggle date-time selector"
|
|
1412
|
+
}, ts = class extends r.Component {
|
|
1413
1413
|
constructor() {
|
|
1414
1414
|
super(...arguments), this.localization = null, this.handleClick = (s) => {
|
|
1415
1415
|
if (this.todayIsInRange && this.props.onClick) {
|
|
@@ -1441,7 +1441,7 @@ const Be = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft =
|
|
|
1441
1441
|
"k-disabled": this.props.disabled
|
|
1442
1442
|
}
|
|
1443
1443
|
);
|
|
1444
|
-
return /* @__PURE__ */
|
|
1444
|
+
return /* @__PURE__ */ r.createElement(
|
|
1445
1445
|
N,
|
|
1446
1446
|
{
|
|
1447
1447
|
className: t,
|
|
@@ -1465,7 +1465,7 @@ Gt.defaultProps = {
|
|
|
1465
1465
|
max: dt
|
|
1466
1466
|
};
|
|
1467
1467
|
at(Gt);
|
|
1468
|
-
const en = 5, Us = class extends
|
|
1468
|
+
const en = 5, Us = class extends r.Component {
|
|
1469
1469
|
constructor(s) {
|
|
1470
1470
|
super(s), this.virtualization = null, this.calendarView = null, this.table = null, this.intl = null, this.bottomOffset = 0, this.viewOffset = 0, this.viewHeight = 0, this._element = null, this.isActive = !1, this.animateToIndex = !0, this.shouldScroll = !1, this.focusActiveDate = () => {
|
|
1471
1471
|
if (!this._element)
|
|
@@ -1483,7 +1483,7 @@ const en = 5, Us = class extends o.Component {
|
|
|
1483
1483
|
const e = K(this.props.focusedDate, this.props.min, this.props.max), i = this.props.service.skip(e, this.props.min);
|
|
1484
1484
|
this.virtualization.scrollToIndex(i);
|
|
1485
1485
|
}
|
|
1486
|
-
}, this.buildMonthView = (t, e) => /* @__PURE__ */
|
|
1486
|
+
}, this.buildMonthView = (t, e) => /* @__PURE__ */ r.createElement(
|
|
1487
1487
|
"table",
|
|
1488
1488
|
{
|
|
1489
1489
|
key: "calendar-view-list-weekdays",
|
|
@@ -1491,11 +1491,11 @@ const en = 5, Us = class extends o.Component {
|
|
|
1491
1491
|
role: "grid",
|
|
1492
1492
|
tabIndex: this.props.tabIndex
|
|
1493
1493
|
},
|
|
1494
|
-
/* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1494
|
+
/* @__PURE__ */ r.createElement("colgroup", null, t.map((i, a) => /* @__PURE__ */ r.createElement("col", { key: a }))),
|
|
1495
|
+
/* @__PURE__ */ r.createElement("thead", { className: "k-calendar-thead" }, /* @__PURE__ */ r.createElement("tr", { className: "k-calendar-tr" }, e.map((i, a) => /* @__PURE__ */ r.createElement("th", { key: a, className: "k-calendar-th" }, i))))
|
|
1496
1496
|
), this.buildDates = (t, e) => {
|
|
1497
1497
|
const i = this.props.cellUID;
|
|
1498
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ r.createElement(
|
|
1499
1499
|
"table",
|
|
1500
1500
|
{
|
|
1501
1501
|
className: "k-calendar-table",
|
|
@@ -1504,12 +1504,12 @@ const en = 5, Us = class extends o.Component {
|
|
|
1504
1504
|
tabIndex: this.props.tabIndex,
|
|
1505
1505
|
"aria-activedescendant": i + this.props.focusedDate.getTime()
|
|
1506
1506
|
},
|
|
1507
|
-
/* @__PURE__ */
|
|
1508
|
-
e.map((a) => /* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ r.createElement("colgroup", null, t.map((a, o) => /* @__PURE__ */ r.createElement("col", { key: o }))),
|
|
1508
|
+
e.map((a) => /* @__PURE__ */ r.createElement(
|
|
1509
1509
|
jt,
|
|
1510
1510
|
{
|
|
1511
|
-
ref: (
|
|
1512
|
-
this.calendarView || (this.calendarView =
|
|
1511
|
+
ref: (o) => {
|
|
1512
|
+
this.calendarView || (this.calendarView = o);
|
|
1513
1513
|
},
|
|
1514
1514
|
key: a.getTime(),
|
|
1515
1515
|
activeView: this.props.activeView,
|
|
@@ -1531,13 +1531,13 @@ const en = 5, Us = class extends o.Component {
|
|
|
1531
1531
|
}, this.calculateHeights = () => {
|
|
1532
1532
|
if (!this.props.dom)
|
|
1533
1533
|
return;
|
|
1534
|
-
const t = this.props.activeView ===
|
|
1534
|
+
const t = this.props.activeView === y.month ? this.props.dom.scrollableContentHeight : this.props.dom.scrollableYearContentHeight;
|
|
1535
1535
|
this.bottomOffset = t - this.props.dom.viewHeight(this.props.activeView), this.viewOffset = -1 * this.props.dom.headerHeight, this.viewHeight = this.props.dom.viewHeight(this.props.activeView) || 1;
|
|
1536
1536
|
}, this.getTake = (t, e) => Math.min(e - t, this.take), this.handleScrollAction = ({ index: t, scrollAction: e, pageAction: i }) => {
|
|
1537
1537
|
const a = i ? i.skip : this.state.skip;
|
|
1538
1538
|
if ((this.state.index !== t || this.state.skip !== a) && this.setState({ index: t, skip: a }), this.table && e) {
|
|
1539
|
-
const
|
|
1540
|
-
this.table.style.transform =
|
|
1539
|
+
const o = `translateY(${e.offset}px)`;
|
|
1540
|
+
this.table.style.transform = o;
|
|
1541
1541
|
}
|
|
1542
1542
|
}, this.handleTodayClick = (t) => {
|
|
1543
1543
|
this.shouldScroll = !0, this.handleDateChange.call(void 0, t, !0);
|
|
@@ -1563,14 +1563,14 @@ const en = 5, Us = class extends o.Component {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
get weekNames() {
|
|
1565
1565
|
this.intl = ct(this);
|
|
1566
|
-
const s =
|
|
1566
|
+
const s = As(
|
|
1567
1567
|
this.intl.dateFormatNames({ nameType: "short", type: "days" }),
|
|
1568
1568
|
this.intl.firstDay()
|
|
1569
1569
|
);
|
|
1570
1570
|
return this.weekNumber ? [""].concat(s) : s;
|
|
1571
1571
|
}
|
|
1572
1572
|
get weekNumber() {
|
|
1573
|
-
return !!(this.props.showWeekNumbers && this.props.activeView ===
|
|
1573
|
+
return !!(this.props.showWeekNumbers && this.props.activeView === y.month);
|
|
1574
1574
|
}
|
|
1575
1575
|
get take() {
|
|
1576
1576
|
return this.props.take !== void 0 ? this.props.take : Us.defaultProps.take;
|
|
@@ -1586,17 +1586,17 @@ const en = 5, Us = class extends o.Component {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
render() {
|
|
1588
1588
|
this.calculateHeights();
|
|
1589
|
-
const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i),
|
|
1589
|
+
const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i), o = this.props.service.addToDate(this.props.min, e), l = this.props.service.addToDate(this.props.min, this.state.index), c = new Array(this.props.service.rowLength(this.weekNumber)).fill(""), h = this.props.activeView !== this.lastView;
|
|
1590
1590
|
this.animateToIndex = !h, (h || !wt(this.lastFocus, t) || this.shouldScroll || !this.props.shouldScroll || this.props.shouldScroll()) && (this.indexToScroll = this.props.service.skip(t, this.props.min)), this.lastFocus = t;
|
|
1591
1591
|
const u = P(
|
|
1592
1592
|
"k-calendar-view k-vstack",
|
|
1593
1593
|
{
|
|
1594
|
-
"k-calendar-monthview": this.props.activeView ===
|
|
1595
|
-
"k-calendar-yearview": this.props.activeView ===
|
|
1596
|
-
"k-calendar-decadeview": this.props.activeView ===
|
|
1597
|
-
"k-calendar-centuryview": this.props.activeView ===
|
|
1594
|
+
"k-calendar-monthview": this.props.activeView === y.month,
|
|
1595
|
+
"k-calendar-yearview": this.props.activeView === y.year,
|
|
1596
|
+
"k-calendar-decadeview": this.props.activeView === y.decade,
|
|
1597
|
+
"k-calendar-centuryview": this.props.activeView === y.century
|
|
1598
1598
|
}
|
|
1599
|
-
), d = this.buildDates(c, this.props.service.datesList(
|
|
1599
|
+
), d = this.buildDates(c, this.props.service.datesList(o, a)), p = /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
1600
1600
|
Zt,
|
|
1601
1601
|
{
|
|
1602
1602
|
key: "calendar-view-list-header",
|
|
@@ -1607,7 +1607,7 @@ const en = 5, Us = class extends o.Component {
|
|
|
1607
1607
|
bus: this.props.bus,
|
|
1608
1608
|
service: this.props.service,
|
|
1609
1609
|
headerTitle: this.props.headerTitle,
|
|
1610
|
-
commands: /* @__PURE__ */
|
|
1610
|
+
commands: /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
1611
1611
|
Gt,
|
|
1612
1612
|
{
|
|
1613
1613
|
min: this.props.min,
|
|
@@ -1618,7 +1618,7 @@ const en = 5, Us = class extends o.Component {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
))
|
|
1620
1620
|
}
|
|
1621
|
-
), this.props.activeView ===
|
|
1621
|
+
), this.props.activeView === y.month && this.buildMonthView(c, this.weekNames), /* @__PURE__ */ r.createElement(
|
|
1622
1622
|
Kt,
|
|
1623
1623
|
{
|
|
1624
1624
|
key: "calendar-view-list-content",
|
|
@@ -1637,7 +1637,7 @@ const en = 5, Us = class extends o.Component {
|
|
|
1637
1637
|
tabIndex: this.props.tabIndex
|
|
1638
1638
|
}
|
|
1639
1639
|
));
|
|
1640
|
-
return /* @__PURE__ */
|
|
1640
|
+
return /* @__PURE__ */ r.createElement(
|
|
1641
1641
|
"div",
|
|
1642
1642
|
{
|
|
1643
1643
|
ref: (m) => {
|
|
@@ -1672,7 +1672,7 @@ ye.defaultProps = {
|
|
|
1672
1672
|
smoothScroll: !0
|
|
1673
1673
|
};
|
|
1674
1674
|
ft(ye);
|
|
1675
|
-
class sn extends
|
|
1675
|
+
class sn extends r.Component {
|
|
1676
1676
|
constructor() {
|
|
1677
1677
|
super(...arguments), this.handleClick = (t) => {
|
|
1678
1678
|
const { onClick: e, value: i } = this.props;
|
|
@@ -1685,43 +1685,43 @@ class sn extends o.Component {
|
|
|
1685
1685
|
*/
|
|
1686
1686
|
render() {
|
|
1687
1687
|
const { isRangeStart: t, value: e, text: i, ...a } = this.props;
|
|
1688
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ r.createElement("li", { ...a, onClick: this.handleClick }, /* @__PURE__ */ r.createElement("span", { className: P({ "k-calendar-navigation-marker": t }) }, this.props.children));
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
const nn = 30, $s = class extends
|
|
1691
|
+
const nn = 30, $s = class extends r.Component {
|
|
1692
1692
|
constructor(s) {
|
|
1693
1693
|
super(s), this.virtualization = null, this.list = null, this.itemHeight = 0, this.topOffset = 0, this.maxViewHeight = 0, this.bottomOffset = 0, this.handleVirtualizationMount = (i) => {
|
|
1694
1694
|
if (this.virtualization = i, this.virtualization && this.list) {
|
|
1695
1695
|
this.list.style.transform = `translateY(${this.topOffset}px)`;
|
|
1696
|
-
const a = K(this.props.focusedDate, this.props.min, this.props.max),
|
|
1697
|
-
this.virtualization.scrollToIndex(
|
|
1696
|
+
const a = K(this.props.focusedDate, this.props.min, this.props.max), o = this.props.service.skip(a, this.props.min);
|
|
1697
|
+
this.virtualization.scrollToIndex(o);
|
|
1698
1698
|
}
|
|
1699
1699
|
}, this.buildNavigationItem = (i) => {
|
|
1700
|
-
const a = this.props.service.navigationTitle(i),
|
|
1700
|
+
const a = this.props.service.navigationTitle(i), o = this.props.service.isRangeStart(i), l = `kendo-react-calendar-nav-item-${i.getTime()}`, c = {
|
|
1701
1701
|
text: a,
|
|
1702
1702
|
value: i,
|
|
1703
|
-
isRangeStart:
|
|
1703
|
+
isRangeStart: o,
|
|
1704
1704
|
view: this.props.activeView,
|
|
1705
1705
|
onClick: this.handleDateChange
|
|
1706
1706
|
};
|
|
1707
|
-
return this.props.navigationItem ? /* @__PURE__ */
|
|
1707
|
+
return this.props.navigationItem ? /* @__PURE__ */ r.createElement(this.props.navigationItem, { ...c, key: l }, a) : /* @__PURE__ */ r.createElement(sn, { ...c, key: l }, a);
|
|
1708
1708
|
}, this.calculateHeights = () => {
|
|
1709
1709
|
const i = this.props.dom.calendarHeight;
|
|
1710
1710
|
this.itemHeight = this.props.dom.navigationItemHeight || 1, this.maxViewHeight = this.props.dom.monthViewHeight, this.topOffset = (i - this.itemHeight) / 2, this.bottomOffset = i - this.itemHeight;
|
|
1711
1711
|
}, this.handleDateChange = (i, a) => {
|
|
1712
|
-
const { onChange:
|
|
1713
|
-
if (
|
|
1712
|
+
const { onChange: o } = this.props;
|
|
1713
|
+
if (o && a) {
|
|
1714
1714
|
const l = {
|
|
1715
1715
|
value: v(i),
|
|
1716
1716
|
target: this,
|
|
1717
1717
|
nativeEvent: a && a.nativeEvent,
|
|
1718
1718
|
syntheticEvent: a
|
|
1719
1719
|
};
|
|
1720
|
-
|
|
1720
|
+
o.call(void 0, l);
|
|
1721
1721
|
}
|
|
1722
1722
|
}, this.handleScrollAction = ({ scrollAction: i, pageAction: a }) => {
|
|
1723
|
-
const
|
|
1724
|
-
if (this.state.skip !==
|
|
1723
|
+
const o = a ? a.skip : this.state.skip;
|
|
1724
|
+
if (this.state.skip !== o && this.setState({ skip: o }), this.list && i) {
|
|
1725
1725
|
const l = `translateY(${i.offset}px)`;
|
|
1726
1726
|
this.list.style.transform = l;
|
|
1727
1727
|
}
|
|
@@ -1742,9 +1742,9 @@ const nn = 30, $s = class extends o.Component {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
render() {
|
|
1744
1744
|
this.calculateHeights();
|
|
1745
|
-
const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i),
|
|
1745
|
+
const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i), o = this.props.service.addToDate(this.props.min, e), l = this.props.service.datesList(o, a);
|
|
1746
1746
|
(this.props.activeView !== this.lastView || !ht(t, this.lastFocus)) && (this.indexToScroll = this.props.service.skip(t, this.props.min));
|
|
1747
|
-
const c = /* @__PURE__ */
|
|
1747
|
+
const c = /* @__PURE__ */ r.createElement(
|
|
1748
1748
|
Kt,
|
|
1749
1749
|
{
|
|
1750
1750
|
skip: e,
|
|
@@ -1759,16 +1759,16 @@ const nn = 30, $s = class extends o.Component {
|
|
|
1759
1759
|
onMount: this.handleVirtualizationMount,
|
|
1760
1760
|
tabIndex: this.props.tabIndex
|
|
1761
1761
|
},
|
|
1762
|
-
/* @__PURE__ */
|
|
1762
|
+
/* @__PURE__ */ r.createElement("ul", { ref: (h) => {
|
|
1763
1763
|
this.list = h;
|
|
1764
1764
|
}, className: "k-reset" }, l.map((h) => this.buildNavigationItem(h)))
|
|
1765
1765
|
);
|
|
1766
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ r.createElement(
|
|
1767
1767
|
"div",
|
|
1768
1768
|
{
|
|
1769
1769
|
className: "k-calendar-navigation"
|
|
1770
1770
|
},
|
|
1771
|
-
/* @__PURE__ */
|
|
1771
|
+
/* @__PURE__ */ r.createElement("span", { className: "k-calendar-navigation-highlight" }),
|
|
1772
1772
|
this.props.dom.didCalculate ? c : null
|
|
1773
1773
|
);
|
|
1774
1774
|
}
|
|
@@ -1789,7 +1789,7 @@ ns.propTypes = {
|
|
|
1789
1789
|
ns.defaultProps = {
|
|
1790
1790
|
take: nn
|
|
1791
1791
|
};
|
|
1792
|
-
const Re = (s) => s ? s.virtualization : null,
|
|
1792
|
+
const Re = (s) => s ? s.virtualization : null, Ds = (s = bt.defaultProps.min, t = bt.defaultProps.max, e, i) => i !== void 0 ? i !== null && F(C(i), s, t) ? i : null : e !== null && F(C(e), s, t) ? e : null, pt = class extends r.Component {
|
|
1793
1793
|
constructor(s) {
|
|
1794
1794
|
super(s), this.scrollSyncService = null, this.focusedDate = null, this.Navigation = null, this.calendarViewList = null, this._element = null, this.intl = null, this.service = null, this.isActive = !1, this.didNavigationChange = !1, this.focus = () => {
|
|
1795
1795
|
this._element && this._element.focus();
|
|
@@ -1808,10 +1808,10 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1808
1808
|
}, this.handleViewChange = ({ view: e }) => {
|
|
1809
1809
|
this.scrollSyncService && this.scrollSyncService.configure(e), this.setState({ activeView: e });
|
|
1810
1810
|
}, this.handleDateChange = (e) => {
|
|
1811
|
-
const i = v(e.value), a = v(e.value),
|
|
1811
|
+
const i = v(e.value), a = v(e.value), o = this.bus.canMoveDown(this.state.activeView);
|
|
1812
1812
|
if (this.props.disabled)
|
|
1813
1813
|
return;
|
|
1814
|
-
if (
|
|
1814
|
+
if (o)
|
|
1815
1815
|
if (e.isTodayClick)
|
|
1816
1816
|
this.bus.moveToBottom(this.state.activeView);
|
|
1817
1817
|
else {
|
|
@@ -1845,10 +1845,10 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1845
1845
|
}, this.handleKeyDown = (e) => {
|
|
1846
1846
|
const { keyCode: i } = e;
|
|
1847
1847
|
if (!(!this.focusedDate || !this.service)) {
|
|
1848
|
-
if (i ===
|
|
1848
|
+
if (i === k.enter) {
|
|
1849
1849
|
if (this.value !== null && wt(this.focusedDate, this.value)) {
|
|
1850
|
-
const
|
|
1851
|
-
Re(this.calendarViewList).scrollToIndex(this.service.skip(
|
|
1850
|
+
const o = K(this.focusedDate, this.min, this.max);
|
|
1851
|
+
Re(this.calendarViewList).scrollToIndex(this.service.skip(o, this.min));
|
|
1852
1852
|
}
|
|
1853
1853
|
const a = {
|
|
1854
1854
|
syntheticEvent: e,
|
|
@@ -1880,7 +1880,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1880
1880
|
}, this.handleClick = (e) => {
|
|
1881
1881
|
this._element && this._element.focus({ preventScroll: !0 });
|
|
1882
1882
|
}, Pt(Rt);
|
|
1883
|
-
const t =
|
|
1883
|
+
const t = Ds(
|
|
1884
1884
|
this.min,
|
|
1885
1885
|
this.max,
|
|
1886
1886
|
this.props.defaultValue || pt.defaultProps.defaultValue,
|
|
@@ -1889,7 +1889,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1889
1889
|
this.state = {
|
|
1890
1890
|
value: t,
|
|
1891
1891
|
activeView: ge(
|
|
1892
|
-
|
|
1892
|
+
y[s.defaultActiveView],
|
|
1893
1893
|
this.bottomView,
|
|
1894
1894
|
this.topView
|
|
1895
1895
|
),
|
|
@@ -1925,10 +1925,10 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1925
1925
|
return C(this.props.max !== void 0 ? this.props.max : pt.defaultProps.max);
|
|
1926
1926
|
}
|
|
1927
1927
|
get bottomView() {
|
|
1928
|
-
return
|
|
1928
|
+
return y[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView];
|
|
1929
1929
|
}
|
|
1930
1930
|
get topView() {
|
|
1931
|
-
return
|
|
1931
|
+
return y[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView];
|
|
1932
1932
|
}
|
|
1933
1933
|
/**
|
|
1934
1934
|
* @hidden
|
|
@@ -1951,15 +1951,15 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1951
1951
|
this.props._ref && this.props._ref(this);
|
|
1952
1952
|
const s = this.value !== null && this.oldValue !== null ? !wt(this.value, this.oldValue) : this.value !== this.oldValue, t = ge(
|
|
1953
1953
|
this.state.activeView,
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
), e =
|
|
1954
|
+
y[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView],
|
|
1955
|
+
y[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView]
|
|
1956
|
+
), e = Ds(this.min, this.max, this.value, this.value), i = e ? C(e) : null;
|
|
1957
1957
|
this.focusedDate = C(K(
|
|
1958
1958
|
s && e !== null ? e : this.state.focusedDate,
|
|
1959
1959
|
this.min,
|
|
1960
1960
|
this.max
|
|
1961
1961
|
)), this.intl = ct(this), this.bus.configure(this.bottomView, this.topView), this.service = this.bus.service(t, this.intl);
|
|
1962
|
-
const { smoothScroll: a = Number.parseFloat(
|
|
1962
|
+
const { smoothScroll: a = Number.parseFloat(r.version) < 18 } = this.props, o = P(
|
|
1963
1963
|
"k-widget k-calendar k-calendar-infinite",
|
|
1964
1964
|
{
|
|
1965
1965
|
"k-disabled": this.props.disabled,
|
|
@@ -1967,7 +1967,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1967
1967
|
"k-calendar-lg": this.props.mobileMode
|
|
1968
1968
|
},
|
|
1969
1969
|
this.props.className
|
|
1970
|
-
), l = [this.props.navigation && /* @__PURE__ */
|
|
1970
|
+
), l = [this.props.navigation && /* @__PURE__ */ r.createElement(
|
|
1971
1971
|
ns,
|
|
1972
1972
|
{
|
|
1973
1973
|
key: 0,
|
|
@@ -1985,7 +1985,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
1985
1985
|
navigationItem: this.props.navigationItem,
|
|
1986
1986
|
tabIndex: this.props.tabIndex
|
|
1987
1987
|
}
|
|
1988
|
-
), /* @__PURE__ */
|
|
1988
|
+
), /* @__PURE__ */ r.createElement(
|
|
1989
1989
|
ye,
|
|
1990
1990
|
{
|
|
1991
1991
|
key: 1,
|
|
@@ -2012,13 +2012,13 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
|
|
|
2012
2012
|
tabIndex: this.props.tabIndex
|
|
2013
2013
|
}
|
|
2014
2014
|
)];
|
|
2015
|
-
return /* @__PURE__ */
|
|
2015
|
+
return /* @__PURE__ */ r.createElement(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
2018
|
ref: (c) => {
|
|
2019
2019
|
this._element = c;
|
|
2020
2020
|
},
|
|
2021
|
-
className:
|
|
2021
|
+
className: o,
|
|
2022
2022
|
id: this.props.id || this.id,
|
|
2023
2023
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
2024
2024
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
@@ -2057,7 +2057,7 @@ bt.propTypes = {
|
|
|
2057
2057
|
weekNumber: n.bool,
|
|
2058
2058
|
topView: (s, t, e) => {
|
|
2059
2059
|
const i = s[t], a = s.bottomView;
|
|
2060
|
-
return i && a &&
|
|
2060
|
+
return i && a && y[i] < y[a] ? new Error(
|
|
2061
2061
|
`Invalid prop + ${t} suplied to ${e}.
|
|
2062
2062
|
${t} can not be smaller than bottomView.
|
|
2063
2063
|
`
|
|
@@ -2065,7 +2065,7 @@ bt.propTypes = {
|
|
|
2065
2065
|
},
|
|
2066
2066
|
bottomView: (s, t, e) => {
|
|
2067
2067
|
const i = s[t], a = s.topView;
|
|
2068
|
-
return i && a &&
|
|
2068
|
+
return i && a && y[i] > y[a] ? new Error(
|
|
2069
2069
|
`Invalid prop + ${t} suplied to ${e}.
|
|
2070
2070
|
${t} can not be bigger than topView.
|
|
2071
2071
|
`
|
|
@@ -2082,28 +2082,28 @@ bt.defaultProps = {
|
|
|
2082
2082
|
topView: "century",
|
|
2083
2083
|
bottomView: "month"
|
|
2084
2084
|
};
|
|
2085
|
-
const an =
|
|
2085
|
+
const an = kt(), as = yt(St(an, bt));
|
|
2086
2086
|
as.displayName = "KendoReactCalendar";
|
|
2087
2087
|
ft(bt);
|
|
2088
|
-
class
|
|
2088
|
+
class on {
|
|
2089
2089
|
constructor() {
|
|
2090
2090
|
this.symbols = "", this.partMap = [];
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
const
|
|
2094
|
-
const a = s[i + s.length - e.length],
|
|
2095
|
-
if (
|
|
2093
|
+
const rn = "d", ln = "wide", hn = (s, t, e, i) => {
|
|
2094
|
+
const a = s[i + s.length - e.length], o = s.substring(0, i + s.length - e.length), l = e.substring(0, i), c = [];
|
|
2095
|
+
if (o === l && i > 0)
|
|
2096
2096
|
return c.push([t[i - 1], l[i - 1]]), c;
|
|
2097
|
-
if (
|
|
2097
|
+
if (o.indexOf(l) === 0 && (l.length === 0 || t[l.length - 1] !== t[l.length])) {
|
|
2098
2098
|
let h = "";
|
|
2099
2099
|
l.length === 1 && c.push([t[0], l[0]]);
|
|
2100
|
-
for (let u = l.length; u <
|
|
2100
|
+
for (let u = l.length; u < o.length; u++)
|
|
2101
2101
|
t[u] !== h && t[u] !== "_" && (h = t[u], c.push([h, ""]));
|
|
2102
2102
|
return c;
|
|
2103
2103
|
}
|
|
2104
|
-
if (l.indexOf(
|
|
2104
|
+
if (l.indexOf(o) === 0 || t[i - 1] === "_") {
|
|
2105
2105
|
let h = t[0];
|
|
2106
|
-
for (let u = Math.max(0,
|
|
2106
|
+
for (let u = Math.max(0, o.length - 1); u < t.length; u++)
|
|
2107
2107
|
if (t[u] !== "_") {
|
|
2108
2108
|
h = t[u];
|
|
2109
2109
|
break;
|
|
@@ -2235,10 +2235,10 @@ class pn {
|
|
|
2235
2235
|
parsePart(t, e) {
|
|
2236
2236
|
if (this.resetLeadingZero(), !e)
|
|
2237
2237
|
return this.setExisting(t, !1), { value: null };
|
|
2238
|
-
const i = this.intl.formatDate(this.value, this.format), a = this.dateFormatString(this.value, this.format),
|
|
2238
|
+
const i = this.intl.formatDate(this.value, this.format), a = this.dateFormatString(this.value, this.format), o = a.symbols;
|
|
2239
2239
|
let l = !1, c = "", h = "", u = "";
|
|
2240
2240
|
for (let m = 0; m < i.length; m++)
|
|
2241
|
-
|
|
2241
|
+
o[m] === t ? (h += this.getExisting(t) ? i[m] : "0", l = !0) : l ? u += i[m] : c += i[m];
|
|
2242
2242
|
let d = null;
|
|
2243
2243
|
const p = this.matchMonth(e);
|
|
2244
2244
|
for (; h.length > 0 && h.charAt(0) === "0"; )
|
|
@@ -2303,26 +2303,26 @@ class pn {
|
|
|
2303
2303
|
return [];
|
|
2304
2304
|
}
|
|
2305
2305
|
dateFormatString(t, e) {
|
|
2306
|
-
const i = this.intl.splitDateFormat(e), a = [],
|
|
2306
|
+
const i = this.intl.splitDateFormat(e), a = [], o = [];
|
|
2307
2307
|
for (let c = 0; c < i.length; c++) {
|
|
2308
2308
|
let h = this.intl.formatDate(t, { pattern: i[c].pattern }).length;
|
|
2309
2309
|
for (; h > 0; )
|
|
2310
|
-
a.push(this.symbols[i[c].pattern[0]] || "_"),
|
|
2310
|
+
a.push(this.symbols[i[c].pattern[0]] || "_"), o.push(i[c]), h--;
|
|
2311
2311
|
}
|
|
2312
|
-
const l = new
|
|
2313
|
-
return l.symbols = a.join(""), l.partMap =
|
|
2312
|
+
const l = new on();
|
|
2313
|
+
return l.symbols = a.join(""), l.partMap = o, l;
|
|
2314
2314
|
}
|
|
2315
2315
|
merge(t, e) {
|
|
2316
|
-
let i = "", a = "",
|
|
2317
|
-
for (let l =
|
|
2318
|
-
if (this.knownParts.indexOf(
|
|
2319
|
-
i = t[l] + i, a =
|
|
2316
|
+
let i = "", a = "", o = e.symbols;
|
|
2317
|
+
for (let l = o.length - 1; l >= 0; l--)
|
|
2318
|
+
if (this.knownParts.indexOf(o[l]) === -1 || this.getExisting(o[l]))
|
|
2319
|
+
i = t[l] + i, a = o[l] + a;
|
|
2320
2320
|
else {
|
|
2321
|
-
const c =
|
|
2322
|
-
for (; l >= 0 && c ===
|
|
2321
|
+
const c = o[l];
|
|
2322
|
+
for (; l >= 0 && c === o[l]; )
|
|
2323
2323
|
l--;
|
|
2324
2324
|
for (l++, this.leadingZero && this.leadingZero[c] ? i = "0" + i : i = this.dateFieldName(e.partMap[l]) + i; a.length < i.length; )
|
|
2325
|
-
a =
|
|
2325
|
+
a = o[l] + a;
|
|
2326
2326
|
}
|
|
2327
2327
|
return { text: i, format: a };
|
|
2328
2328
|
}
|
|
@@ -2337,7 +2337,7 @@ const X = {
|
|
|
2337
2337
|
millisecond: "millisecond",
|
|
2338
2338
|
minute: "minute",
|
|
2339
2339
|
second: "second"
|
|
2340
|
-
},
|
|
2340
|
+
}, os = (s) => (t, e) => {
|
|
2341
2341
|
const i = v(t);
|
|
2342
2342
|
return i[s](e), i;
|
|
2343
2343
|
}, Ys = [
|
|
@@ -2346,15 +2346,15 @@ const X = {
|
|
|
2346
2346
|
{ type: X.second, getter: (s) => s.getSeconds() },
|
|
2347
2347
|
{ type: X.millisecond, getter: (s) => s.getMilliseconds() }
|
|
2348
2348
|
], mn = (s) => (t, e) => s(t), fn = (s) => (t, e) => s(e), gn = (s) => s.reduce((t, e) => (t[e.type] = e.type, t), {}), vn = (s) => (t) => s[t.type] ? fn(t.getter) : mn(t.getter), wn = (s) => (t) => s.map(vn(gn(t))), bn = (s, t, e, i) => (a) => {
|
|
2349
|
-
const
|
|
2350
|
-
return i === "hour" ?
|
|
2351
|
-
},
|
|
2349
|
+
const o = s(a), l = s(e);
|
|
2350
|
+
return i === "hour" ? o - (o - l) % t : a.getTime() <= e.getTime() && o !== 0 && o <= l ? Math.ceil(o / t) * t : o - o % t;
|
|
2351
|
+
}, Dn = (s) => (t, e) => s.map((i) => {
|
|
2352
2352
|
const a = Math.floor(t[i.type]);
|
|
2353
2353
|
return a ? bn(i.getter, a, e, i.type) : i.getter;
|
|
2354
|
-
}),
|
|
2354
|
+
}), kn = wn(Ys), ks = Dn(Ys), yn = (s) => (t, e) => (t.setHours(...s.map((i) => i(t, e))), t), ys = (s) => (t) => {
|
|
2355
2355
|
const e = v(t);
|
|
2356
2356
|
return e.setHours(...s.map((i) => i(e))), e;
|
|
2357
|
-
}, de =
|
|
2357
|
+
}, de = os("setHours"), pe = os("setMinutes"), me = os("setSeconds"), Vt = () => /* @__PURE__ */ new Date(), rs = (s, t, e = 1) => {
|
|
2358
2358
|
const i = [];
|
|
2359
2359
|
for (let a = s; a < t; a = a + e)
|
|
2360
2360
|
i.push(a);
|
|
@@ -2369,27 +2369,27 @@ const X = {
|
|
|
2369
2369
|
const {
|
|
2370
2370
|
candidateValue: i,
|
|
2371
2371
|
minValue: a,
|
|
2372
|
-
maxValue:
|
|
2372
|
+
maxValue: o
|
|
2373
2373
|
} = ls(s, t, e);
|
|
2374
|
-
return i < a ? W(s, t) : i >
|
|
2374
|
+
return i < a ? W(s, t) : i > o ? W(s, e) : s;
|
|
2375
2375
|
}, hs = (s, t, e) => {
|
|
2376
2376
|
if (!s || !t || !e)
|
|
2377
2377
|
return !0;
|
|
2378
2378
|
const {
|
|
2379
2379
|
candidateValue: i,
|
|
2380
2380
|
minValue: a,
|
|
2381
|
-
maxValue:
|
|
2381
|
+
maxValue: o
|
|
2382
2382
|
} = ls(s, t, e);
|
|
2383
|
-
return a <= i && i <=
|
|
2383
|
+
return a <= i && i <= o;
|
|
2384
2384
|
}, xn = (s, t, e) => {
|
|
2385
2385
|
if (s === null)
|
|
2386
2386
|
return !0;
|
|
2387
2387
|
const {
|
|
2388
2388
|
candidateValue: i,
|
|
2389
2389
|
minValue: a,
|
|
2390
|
-
maxValue:
|
|
2390
|
+
maxValue: o
|
|
2391
2391
|
} = ls(s, t, e);
|
|
2392
|
-
return a <= i && i <=
|
|
2392
|
+
return a <= i && i <= o;
|
|
2393
2393
|
}, Cn = (s, t) => {
|
|
2394
2394
|
if (s === null || t === null)
|
|
2395
2395
|
return !1;
|
|
@@ -2400,7 +2400,7 @@ const X = {
|
|
|
2400
2400
|
return !1;
|
|
2401
2401
|
const e = W(L, s);
|
|
2402
2402
|
return W(L, t).getTime() < e.getHours();
|
|
2403
|
-
}, Mn = "Please enter a valid value!", Z = class extends
|
|
2403
|
+
}, Mn = "Please enter a valid value!", Z = class extends r.Component {
|
|
2404
2404
|
constructor(s) {
|
|
2405
2405
|
super(s), this.kendoDate = null, this.currentFormat = "", this.paste = !1, this._element = null, this._wrapper = null, this._lastSelectedSymbol = "", this.focus = () => {
|
|
2406
2406
|
this._element && this._element.focus();
|
|
@@ -2428,16 +2428,16 @@ const X = {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
const { text: e, format: i } = this.kendoDate.getTextAndFormat();
|
|
2430
2430
|
this.currentFormat = i;
|
|
2431
|
-
const a = this.value,
|
|
2431
|
+
const a = this.value, o = hn(
|
|
2432
2432
|
e,
|
|
2433
2433
|
this.currentFormat,
|
|
2434
2434
|
this.element.value,
|
|
2435
2435
|
this.selection.start
|
|
2436
|
-
), l =
|
|
2436
|
+
), l = o.length === 1 && o[0][1] === "_";
|
|
2437
2437
|
if (!l)
|
|
2438
|
-
for (let c = 0; c <
|
|
2439
|
-
this.kendoDate.parsePart(
|
|
2440
|
-
|
|
2438
|
+
for (let c = 0; c < o.length; c++)
|
|
2439
|
+
this.kendoDate.parsePart(o[c][0], o[c][1]);
|
|
2440
|
+
o.length && o[0][0] !== "_" && this.setSelection(this.selectionBySymbol(o[0][0])), l && this.switchDateSegment(1), this.triggerChange(t, a);
|
|
2441
2441
|
}, this.elementClick = (t) => {
|
|
2442
2442
|
this.setSelection(this.selectionByIndex(this.selection.start));
|
|
2443
2443
|
}, this.nativeWheel = (t) => {
|
|
@@ -2507,10 +2507,10 @@ const X = {
|
|
|
2507
2507
|
rounded: e = Z.defaultProps.rounded
|
|
2508
2508
|
} = this.props;
|
|
2509
2509
|
this.props._ref && (this.props._ref.current = this);
|
|
2510
|
-
const i = q(this), a = { ...Z.defaultProps, ...this.props }, { name:
|
|
2510
|
+
const i = q(this), a = { ...Z.defaultProps, ...this.props }, { name: o, label: l, id: c } = a, h = this.text, u = h === this.props.placeholder ? "" : h, d = h === this.props.placeholder ? h : void 0, p = c || this._inputId, m = !this.validityStyles || this.validity.valid;
|
|
2511
2511
|
let f = [...dn];
|
|
2512
2512
|
this.props.className && f.push(this.props.className);
|
|
2513
|
-
const S = /* @__PURE__ */
|
|
2513
|
+
const S = /* @__PURE__ */ r.createElement(we, { onFocus: this.elementOnFocus, onBlur: this.elementOnBlur }, ({ onFocus: I, onBlur: M }) => /* @__PURE__ */ r.createElement(
|
|
2514
2514
|
"span",
|
|
2515
2515
|
{
|
|
2516
2516
|
ref: (w) => {
|
|
@@ -2534,7 +2534,7 @@ const X = {
|
|
|
2534
2534
|
onFocus: I,
|
|
2535
2535
|
onBlur: M
|
|
2536
2536
|
},
|
|
2537
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ r.createElement(
|
|
2538
2538
|
"input",
|
|
2539
2539
|
{
|
|
2540
2540
|
role: this.props.ariaRole || "textbox",
|
|
@@ -2563,12 +2563,12 @@ const X = {
|
|
|
2563
2563
|
onChange: Rs,
|
|
2564
2564
|
value: u,
|
|
2565
2565
|
placeholder: d,
|
|
2566
|
-
name:
|
|
2566
|
+
name: o,
|
|
2567
2567
|
ref: (w) => this._element = w
|
|
2568
2568
|
}
|
|
2569
2569
|
),
|
|
2570
2570
|
this.props.children,
|
|
2571
|
-
this.props.spinners && /* @__PURE__ */
|
|
2571
|
+
this.props.spinners && /* @__PURE__ */ r.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: this.spinnersMouseDown }, /* @__PURE__ */ r.createElement(
|
|
2572
2572
|
N,
|
|
2573
2573
|
{
|
|
2574
2574
|
tabIndex: -1,
|
|
@@ -2581,7 +2581,7 @@ const X = {
|
|
|
2581
2581
|
title: i.toLanguageString(Ft, T[Ft]),
|
|
2582
2582
|
onClick: this.increasePart
|
|
2583
2583
|
}
|
|
2584
|
-
), /* @__PURE__ */
|
|
2584
|
+
), /* @__PURE__ */ r.createElement(
|
|
2585
2585
|
N,
|
|
2586
2586
|
{
|
|
2587
2587
|
tabIndex: -1,
|
|
@@ -2589,14 +2589,14 @@ const X = {
|
|
|
2589
2589
|
rounded: null,
|
|
2590
2590
|
className: "k-spinner-decrease",
|
|
2591
2591
|
icon: "caret-alt-down",
|
|
2592
|
-
svgIcon:
|
|
2592
|
+
svgIcon: oi,
|
|
2593
2593
|
"aria-label": i.toLanguageString(Lt, T[Lt]),
|
|
2594
2594
|
title: i.toLanguageString(Lt, T[Lt]),
|
|
2595
2595
|
onClick: this.decreasePart
|
|
2596
2596
|
}
|
|
2597
2597
|
))
|
|
2598
2598
|
));
|
|
2599
|
-
return l ? /* @__PURE__ */
|
|
2599
|
+
return l ? /* @__PURE__ */ r.createElement(
|
|
2600
2600
|
Ls,
|
|
2601
2601
|
{
|
|
2602
2602
|
label: l,
|
|
@@ -2632,15 +2632,15 @@ const X = {
|
|
|
2632
2632
|
* @hidden
|
|
2633
2633
|
*/
|
|
2634
2634
|
get text() {
|
|
2635
|
-
const s = { ...
|
|
2635
|
+
const s = { ...Dt.defaultProps, ...this.props }, {
|
|
2636
2636
|
formatPlaceholder: t = Z.defaultProps.formatPlaceholder,
|
|
2637
2637
|
format: e = Z.defaultProps.format,
|
|
2638
2638
|
value: i,
|
|
2639
2639
|
defaultValue: a
|
|
2640
2640
|
} = s;
|
|
2641
2641
|
this.kendoDate === null ? (this.kendoDate = new pn(this.intl.bind(this), t, e), this.kendoDate.setValue(i || a || null)) : (this.kendoDate.format = e, this.kendoDate.formatPlaceholder = t), i !== void 0 && this.value !== i && this.kendoDate.setValue(i);
|
|
2642
|
-
const { text:
|
|
2643
|
-
return this.currentFormat = l, s.placeholder !== null && s.placeholder !== void 0 && !this.state.focused && !this.kendoDate.hasValue() ? s.placeholder :
|
|
2642
|
+
const { text: o, format: l } = this.kendoDate.getTextAndFormat();
|
|
2643
|
+
return this.currentFormat = l, s.placeholder !== null && s.placeholder !== void 0 && !this.state.focused && !this.kendoDate.hasValue() ? s.placeholder : o;
|
|
2644
2644
|
}
|
|
2645
2645
|
/**
|
|
2646
2646
|
* Represents the validity state into which the DateInput is set.
|
|
@@ -2765,16 +2765,16 @@ const X = {
|
|
|
2765
2765
|
a += s;
|
|
2766
2766
|
if (this.currentFormat[a] === "_")
|
|
2767
2767
|
return;
|
|
2768
|
-
let
|
|
2769
|
-
for (;
|
|
2770
|
-
|
|
2771
|
-
a >
|
|
2768
|
+
let o = a;
|
|
2769
|
+
for (; o >= 0 && o < this.currentFormat.length && this.currentFormat[o] === this.currentFormat[a]; )
|
|
2770
|
+
o += s;
|
|
2771
|
+
a > o && (o + 1 !== t || a + 1 !== e) ? this.setSelection({ start: o + 1, end: a + 1 }) : a < o && (a !== t || o !== e) && this.setSelection({ start: a, end: o });
|
|
2772
2772
|
}
|
|
2773
2773
|
modifyDateSegmentValue(s, t) {
|
|
2774
2774
|
if (!this.kendoDate)
|
|
2775
2775
|
return;
|
|
2776
|
-
const e = this.value, i = this.currentFormat[this.selection.start], a = this.kendoDate.symbolMap(i),
|
|
2777
|
-
this.kendoDate.modifyPart(i,
|
|
2776
|
+
const e = this.value, i = this.currentFormat[this.selection.start], a = this.kendoDate.symbolMap(i), o = ((this.props.steps || {})[a] || 1) * s;
|
|
2777
|
+
this.kendoDate.modifyPart(i, o), this.triggerChange(t, e);
|
|
2778
2778
|
}
|
|
2779
2779
|
};
|
|
2780
2780
|
let Ct = Z;
|
|
@@ -2855,7 +2855,7 @@ Ct.propTypes = {
|
|
|
2855
2855
|
fillMode: n.oneOf([null, "solid", "flat", "outline"])
|
|
2856
2856
|
};
|
|
2857
2857
|
Ct.defaultProps = {
|
|
2858
|
-
format:
|
|
2858
|
+
format: rn,
|
|
2859
2859
|
size: "medium",
|
|
2860
2860
|
rounded: "medium",
|
|
2861
2861
|
fillMode: "solid",
|
|
@@ -2874,18 +2874,18 @@ Ct.defaultProps = {
|
|
|
2874
2874
|
// the rest of the properties are undefined by default
|
|
2875
2875
|
ariaHasPopup: "grid"
|
|
2876
2876
|
};
|
|
2877
|
-
const Tn =
|
|
2878
|
-
|
|
2877
|
+
const Tn = kt(), Dt = yt(St(Tn, Ct));
|
|
2878
|
+
Dt.displayName = "KendoReactDateInput";
|
|
2879
2879
|
ft(Ct);
|
|
2880
2880
|
at(Ct);
|
|
2881
|
-
const En = N, Vn =
|
|
2882
|
-
const { _ref: e } = s, i =
|
|
2883
|
-
|
|
2884
|
-
const a =
|
|
2881
|
+
const En = N, Vn = r.forwardRef((s, t) => {
|
|
2882
|
+
const { _ref: e } = s, i = r.useRef(null);
|
|
2883
|
+
r.useImperativeHandle(t, () => i.current), r.useImperativeHandle(e, () => i.current);
|
|
2884
|
+
const a = r.useMemo(
|
|
2885
2885
|
() => P(s.className, "k-picker-wrap"),
|
|
2886
2886
|
[s.className]
|
|
2887
2887
|
);
|
|
2888
|
-
return /* @__PURE__ */
|
|
2888
|
+
return /* @__PURE__ */ r.createElement(
|
|
2889
2889
|
"span",
|
|
2890
2890
|
{
|
|
2891
2891
|
ref: i,
|
|
@@ -2897,15 +2897,15 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
2897
2897
|
s.children
|
|
2898
2898
|
);
|
|
2899
2899
|
}), On = (s) => {
|
|
2900
|
-
const [t, e] =
|
|
2900
|
+
const [t, e] = r.useState(!1), i = () => {
|
|
2901
2901
|
s.current && e(!!s.current.text);
|
|
2902
2902
|
};
|
|
2903
|
-
return
|
|
2903
|
+
return r.useEffect(i), {
|
|
2904
2904
|
editorValue: t
|
|
2905
2905
|
};
|
|
2906
2906
|
}, cs = (s) => {
|
|
2907
2907
|
const t = On(s.dateInput);
|
|
2908
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ r.createElement(
|
|
2909
2909
|
Ls,
|
|
2910
2910
|
{
|
|
2911
2911
|
...s,
|
|
@@ -2918,7 +2918,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
2918
2918
|
children: e,
|
|
2919
2919
|
windowWidth: i = 0,
|
|
2920
2920
|
navigatable: a,
|
|
2921
|
-
navigatableElements:
|
|
2921
|
+
navigatableElements: o,
|
|
2922
2922
|
expand: l,
|
|
2923
2923
|
animation: c,
|
|
2924
2924
|
onClose: h,
|
|
@@ -2926,14 +2926,14 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
2926
2926
|
mobileFilter: d
|
|
2927
2927
|
} = s, p = {
|
|
2928
2928
|
navigatable: a || !1,
|
|
2929
|
-
navigatableElements:
|
|
2929
|
+
navigatableElements: o || [],
|
|
2930
2930
|
expand: l,
|
|
2931
2931
|
animation: c !== !1,
|
|
2932
2932
|
onClose: h,
|
|
2933
2933
|
animationStyles: i <= Ss ? { top: 0, width: "100%", height: "100%" } : void 0,
|
|
2934
2934
|
className: i <= Ss ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
|
|
2935
2935
|
};
|
|
2936
|
-
return /* @__PURE__ */
|
|
2936
|
+
return /* @__PURE__ */ r.createElement(ci, { ...p }, /* @__PURE__ */ r.createElement(ui, { className: "k-text-center" }, /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ r.createElement("div", null, u)), /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ r.createElement(
|
|
2937
2937
|
N,
|
|
2938
2938
|
{
|
|
2939
2939
|
tabIndex: 0,
|
|
@@ -2942,10 +2942,10 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
2942
2942
|
type: "button",
|
|
2943
2943
|
fillMode: "flat",
|
|
2944
2944
|
icon: "x",
|
|
2945
|
-
svgIcon:
|
|
2945
|
+
svgIcon: ri,
|
|
2946
2946
|
onClick: h
|
|
2947
2947
|
}
|
|
2948
|
-
))), d && /* @__PURE__ */
|
|
2948
|
+
))), d && /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, d)), e, t && /* @__PURE__ */ r.createElement(di, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ r.createElement(
|
|
2949
2949
|
N,
|
|
2950
2950
|
{
|
|
2951
2951
|
size: "large",
|
|
@@ -2956,7 +2956,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
2956
2956
|
onClick: t.onCancel
|
|
2957
2957
|
},
|
|
2958
2958
|
t.cancelText
|
|
2959
|
-
), /* @__PURE__ */
|
|
2959
|
+
), /* @__PURE__ */ r.createElement(
|
|
2960
2960
|
N,
|
|
2961
2961
|
{
|
|
2962
2962
|
tabIndex: 0,
|
|
@@ -2969,14 +2969,14 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
2969
2969
|
},
|
|
2970
2970
|
t.applyText
|
|
2971
2971
|
)));
|
|
2972
|
-
}, xe = 768,
|
|
2972
|
+
}, xe = 768, A = class extends r.Component {
|
|
2973
2973
|
constructor(s) {
|
|
2974
|
-
super(s), this._element = null, this._dateInput =
|
|
2974
|
+
super(s), this._element = null, this._dateInput = r.createRef(), this._calendar = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
|
|
2975
2975
|
this.dateInput && this.dateInput.focus();
|
|
2976
2976
|
}, this.setCalendarRef = (t) => {
|
|
2977
2977
|
this._calendar = t;
|
|
2978
2978
|
}, this.nextValue = (t, e) => t.value !== void 0 ? t.value : e.value, this.nextShow = (t, e) => t.show !== void 0 ? t.show : e.show, this.renderPopup = () => {
|
|
2979
|
-
const { disabled: t, min: e, max: i, weekNumber: a, focusedDate:
|
|
2979
|
+
const { disabled: t, min: e, max: i, weekNumber: a, focusedDate: o } = this.props, { popupClass: l, ...c } = this.props.popupSettings, h = this.show, u = this.value, d = u && C(u), p = P(
|
|
2980
2980
|
"k-calendar-container k-group k-reset",
|
|
2981
2981
|
l
|
|
2982
2982
|
), m = {
|
|
@@ -3000,12 +3000,12 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3000
3000
|
min: e,
|
|
3001
3001
|
max: i,
|
|
3002
3002
|
weekNumber: a,
|
|
3003
|
-
focusedDate:
|
|
3003
|
+
focusedDate: o,
|
|
3004
3004
|
className: this.mobileMode ? "k-calendar-lg" : "",
|
|
3005
3005
|
navigation: !this.mobileMode,
|
|
3006
3006
|
onChange: this.handleCalendarValueChange
|
|
3007
3007
|
};
|
|
3008
|
-
return this.mobileMode ? /* @__PURE__ */
|
|
3008
|
+
return this.mobileMode ? /* @__PURE__ */ r.createElement(this.calendarComp, { _ref: this.setCalendarRef, ...f }) : /* @__PURE__ */ r.createElement(this.popupComp, { ...m }, /* @__PURE__ */ r.createElement(this.calendarComp, { _ref: this.setCalendarRef, ...f }));
|
|
3009
3009
|
}, this.renderAdaptivePopup = () => {
|
|
3010
3010
|
const { windowWidth: t = 0 } = this.state, e = {
|
|
3011
3011
|
expand: this.show,
|
|
@@ -3013,7 +3013,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3013
3013
|
adaptiveTitle: this.props.adaptiveTitle,
|
|
3014
3014
|
windowWidth: t
|
|
3015
3015
|
};
|
|
3016
|
-
return /* @__PURE__ */
|
|
3016
|
+
return /* @__PURE__ */ r.createElement(Se, { ...e }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, this.renderPopup()));
|
|
3017
3017
|
}, this.handleInputValueChange = (t) => {
|
|
3018
3018
|
this.handleValueChange(t.value, t);
|
|
3019
3019
|
}, this.handleCalendarValueChange = (t) => {
|
|
@@ -3041,14 +3041,14 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3041
3041
|
t.preventDefault();
|
|
3042
3042
|
}, this.handleKeyDown = (t) => {
|
|
3043
3043
|
const { altKey: e, keyCode: i } = t;
|
|
3044
|
-
if (i ===
|
|
3044
|
+
if (i === k.esc) {
|
|
3045
3045
|
this.shouldFocusDateInput = !0, this.setShow(!1);
|
|
3046
3046
|
return;
|
|
3047
3047
|
}
|
|
3048
|
-
e && (i ===
|
|
3048
|
+
e && (i === k.up || i === k.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === k.up, this.setShow(i === k.down));
|
|
3049
3049
|
}, Pt(Rt), this.state = {
|
|
3050
|
-
value: this.props.defaultValue ||
|
|
3051
|
-
show: this.props.defaultShow ||
|
|
3050
|
+
value: this.props.defaultValue || A.defaultProps.defaultValue,
|
|
3051
|
+
show: this.props.defaultShow || A.defaultProps.defaultShow,
|
|
3052
3052
|
focused: !1
|
|
3053
3053
|
};
|
|
3054
3054
|
}
|
|
@@ -3103,25 +3103,25 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3103
3103
|
return this.props.name;
|
|
3104
3104
|
}
|
|
3105
3105
|
get min() {
|
|
3106
|
-
return this.props.min !== void 0 ? this.props.min :
|
|
3106
|
+
return this.props.min !== void 0 ? this.props.min : A.defaultProps.min;
|
|
3107
3107
|
}
|
|
3108
3108
|
get max() {
|
|
3109
|
-
return this.props.max !== void 0 ? this.props.max :
|
|
3109
|
+
return this.props.max !== void 0 ? this.props.max : A.defaultProps.max;
|
|
3110
3110
|
}
|
|
3111
3111
|
get dateInputComp() {
|
|
3112
|
-
return this.props.dateInput ||
|
|
3112
|
+
return this.props.dateInput || A.defaultProps.dateInput;
|
|
3113
3113
|
}
|
|
3114
3114
|
get toggleButtonComp() {
|
|
3115
|
-
return this.props.toggleButton ||
|
|
3115
|
+
return this.props.toggleButton || A.defaultProps.toggleButton;
|
|
3116
3116
|
}
|
|
3117
3117
|
get calendarComp() {
|
|
3118
|
-
return this.props.calendar ||
|
|
3118
|
+
return this.props.calendar || A.defaultProps.calendar;
|
|
3119
3119
|
}
|
|
3120
3120
|
get popupComp() {
|
|
3121
|
-
return this.props.popup ||
|
|
3121
|
+
return this.props.popup || A.defaultProps.popup;
|
|
3122
3122
|
}
|
|
3123
3123
|
get pickerWrapComp() {
|
|
3124
|
-
return this.props.pickerWrap ||
|
|
3124
|
+
return this.props.pickerWrap || A.defaultProps.pickerWrap;
|
|
3125
3125
|
}
|
|
3126
3126
|
/**
|
|
3127
3127
|
* Represents the validity state into which the DatePicker is set.
|
|
@@ -3140,13 +3140,13 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3140
3140
|
* @hidden
|
|
3141
3141
|
*/
|
|
3142
3142
|
get validityStyles() {
|
|
3143
|
-
return this.props.validityStyles !== void 0 ? this.props.validityStyles :
|
|
3143
|
+
return this.props.validityStyles !== void 0 ? this.props.validityStyles : A.defaultProps.validityStyles;
|
|
3144
3144
|
}
|
|
3145
3145
|
/**
|
|
3146
3146
|
* @hidden
|
|
3147
3147
|
*/
|
|
3148
3148
|
get required() {
|
|
3149
|
-
return this.props.required !== void 0 ? this.props.required :
|
|
3149
|
+
return this.props.required !== void 0 ? this.props.required : A.defaultProps.required;
|
|
3150
3150
|
}
|
|
3151
3151
|
/**
|
|
3152
3152
|
* @hidden
|
|
@@ -3173,12 +3173,12 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3173
3173
|
*/
|
|
3174
3174
|
render() {
|
|
3175
3175
|
const {
|
|
3176
|
-
size: s =
|
|
3177
|
-
rounded: t =
|
|
3178
|
-
fillMode: e =
|
|
3176
|
+
size: s = A.defaultProps.size,
|
|
3177
|
+
rounded: t = A.defaultProps.rounded,
|
|
3178
|
+
fillMode: e = A.defaultProps.fillMode,
|
|
3179
3179
|
disabled: i,
|
|
3180
3180
|
tabIndex: a,
|
|
3181
|
-
title:
|
|
3181
|
+
title: o,
|
|
3182
3182
|
id: l,
|
|
3183
3183
|
format: c,
|
|
3184
3184
|
formatPlaceholder: h,
|
|
@@ -3193,7 +3193,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3193
3193
|
ariaLabelledBy: w,
|
|
3194
3194
|
ariaDescribedBy: E,
|
|
3195
3195
|
ariaLabel: g
|
|
3196
|
-
} = this.props, H = this.show, V = this.value, R = !this.validityStyles || this.validity.valid,
|
|
3196
|
+
} = this.props, H = this.show, V = this.value, R = !this.validityStyles || this.validity.valid, B = {
|
|
3197
3197
|
disabled: i,
|
|
3198
3198
|
format: c,
|
|
3199
3199
|
formatPlaceholder: h,
|
|
@@ -3207,7 +3207,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3207
3207
|
onChange: this.handleInputValueChange,
|
|
3208
3208
|
required: I,
|
|
3209
3209
|
tabIndex: H ? -1 : a,
|
|
3210
|
-
title:
|
|
3210
|
+
title: o,
|
|
3211
3211
|
valid: this.validity.valid,
|
|
3212
3212
|
validationMessage: S,
|
|
3213
3213
|
validityStyles: M,
|
|
@@ -3218,7 +3218,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3218
3218
|
size: null,
|
|
3219
3219
|
fillMode: null,
|
|
3220
3220
|
rounded: null
|
|
3221
|
-
}, x = q(this).toLanguageString(We, T[We]), O = /* @__PURE__ */
|
|
3221
|
+
}, x = q(this).toLanguageString(We, T[We]), O = /* @__PURE__ */ r.createElement(
|
|
3222
3222
|
we,
|
|
3223
3223
|
{
|
|
3224
3224
|
onFocus: this.handleFocus,
|
|
@@ -3226,7 +3226,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3226
3226
|
onSyncBlur: this.props.onBlur,
|
|
3227
3227
|
onSyncFocus: this.props.onFocus
|
|
3228
3228
|
},
|
|
3229
|
-
({ onFocus: tt, onBlur: j }) => /* @__PURE__ */
|
|
3229
|
+
({ onFocus: tt, onBlur: j }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
3230
3230
|
"span",
|
|
3231
3231
|
{
|
|
3232
3232
|
ref: (gt) => {
|
|
@@ -3251,7 +3251,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3251
3251
|
onBlur: j,
|
|
3252
3252
|
onClick: this.mobileMode ? this.handleIconClick : void 0
|
|
3253
3253
|
},
|
|
3254
|
-
/* @__PURE__ */
|
|
3254
|
+
/* @__PURE__ */ r.createElement(
|
|
3255
3255
|
this.dateInputComp,
|
|
3256
3256
|
{
|
|
3257
3257
|
_ref: this._dateInput,
|
|
@@ -3259,10 +3259,10 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3259
3259
|
readonly: this.mobileMode,
|
|
3260
3260
|
ariaExpanded: this.show,
|
|
3261
3261
|
ariaControls: this._popupId,
|
|
3262
|
-
...
|
|
3262
|
+
...B
|
|
3263
3263
|
}
|
|
3264
3264
|
),
|
|
3265
|
-
/* @__PURE__ */
|
|
3265
|
+
/* @__PURE__ */ r.createElement(
|
|
3266
3266
|
this.toggleButtonComp,
|
|
3267
3267
|
{
|
|
3268
3268
|
type: "button",
|
|
@@ -3279,7 +3279,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3279
3279
|
!this.mobileMode && this.renderPopup()
|
|
3280
3280
|
), this.mobileMode && this.renderAdaptivePopup())
|
|
3281
3281
|
);
|
|
3282
|
-
return this.props.label ? /* @__PURE__ */
|
|
3282
|
+
return this.props.label ? /* @__PURE__ */ r.createElement(
|
|
3283
3283
|
cs,
|
|
3284
3284
|
{
|
|
3285
3285
|
dateInput: this._dateInput,
|
|
@@ -3311,7 +3311,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
|
|
|
3311
3311
|
this.setState({ windowWidth: t.target.clientWidth });
|
|
3312
3312
|
}
|
|
3313
3313
|
};
|
|
3314
|
-
let Xt =
|
|
3314
|
+
let Xt = A;
|
|
3315
3315
|
Xt.displayName = "DatePicker";
|
|
3316
3316
|
Xt.propTypes = {
|
|
3317
3317
|
className: n.string,
|
|
@@ -3381,7 +3381,7 @@ Xt.propTypes = {
|
|
|
3381
3381
|
Xt.defaultProps = {
|
|
3382
3382
|
defaultShow: !1,
|
|
3383
3383
|
defaultValue: null,
|
|
3384
|
-
dateInput:
|
|
3384
|
+
dateInput: Dt,
|
|
3385
3385
|
calendar: as,
|
|
3386
3386
|
toggleButton: En,
|
|
3387
3387
|
popup: be,
|
|
@@ -3399,7 +3399,7 @@ Xt.defaultProps = {
|
|
|
3399
3399
|
rounded: "medium",
|
|
3400
3400
|
fillMode: "solid"
|
|
3401
3401
|
};
|
|
3402
|
-
const Pn =
|
|
3402
|
+
const Pn = kt(), Rn = yt(St(Pn, Xt));
|
|
3403
3403
|
Rn.displayName = "KendoReactDatePicker";
|
|
3404
3404
|
at(Xt);
|
|
3405
3405
|
const Ne = (s, t) => {
|
|
@@ -3414,10 +3414,10 @@ class Ln {
|
|
|
3414
3414
|
* @hidden
|
|
3415
3415
|
*/
|
|
3416
3416
|
apply(t, e) {
|
|
3417
|
-
const i = t.getHours(), a = _e(i),
|
|
3418
|
-
if (a &&
|
|
3417
|
+
const i = t.getHours(), a = _e(i), o = _e(e.getHours());
|
|
3418
|
+
if (a && o || !a && !o)
|
|
3419
3419
|
return t;
|
|
3420
|
-
const [l, c = 24] = this.normalizedRange(), h = i + (
|
|
3420
|
+
const [l, c = 24] = this.normalizedRange(), h = i + (o ? -12 : 12);
|
|
3421
3421
|
return Ne(t, Math.min(Math.max(l, h), c || 24));
|
|
3422
3422
|
}
|
|
3423
3423
|
/**
|
|
@@ -3434,8 +3434,8 @@ class Ln {
|
|
|
3434
3434
|
const e = this.part && this.part.names;
|
|
3435
3435
|
if (!e || !this.min)
|
|
3436
3436
|
return [];
|
|
3437
|
-
const i = [], [a,
|
|
3438
|
-
return _e(a) && i.push({ text: l.am, value: Ne(this.min, a) }), Nn(
|
|
3437
|
+
const i = [], [a, o] = this.normalizedRange(), l = this.intl.dateFormatNames(e);
|
|
3438
|
+
return _e(a) && i.push({ text: l.am, value: Ne(this.min, a) }), Nn(o) && i.push({ text: l.pm, value: Ne(this.min, Math.max(12, o)) }), this.min.getHours() !== a ? i.reverse() : i;
|
|
3439
3439
|
}
|
|
3440
3440
|
/**
|
|
3441
3441
|
* @hidden
|
|
@@ -3489,7 +3489,7 @@ class Hn {
|
|
|
3489
3489
|
calculateHeights(t) {
|
|
3490
3490
|
if (!J)
|
|
3491
3491
|
return;
|
|
3492
|
-
const e = Y("div"), i = Y("span"), a = Y("ul"),
|
|
3492
|
+
const e = Y("div"), i = Y("span"), a = Y("ul"), o = Y("li"), l = () => o("<span>02</span>", "k-item"), c = () => a([l()], "k-reset"), h = () => e([c()], "k-content k-scrollable k-time-container"), d = (() => e(
|
|
3493
3493
|
[
|
|
3494
3494
|
i("minute", "k-title"),
|
|
3495
3495
|
e([h()], "k-time-list")
|
|
@@ -3500,7 +3500,7 @@ class Hn {
|
|
|
3500
3500
|
this.timeListHeight = f.querySelector(".k-scrollable").offsetHeight, this.itemHeight = f.querySelector("li").offsetHeight, m.removeChild(f), this.didCalculate = !0;
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
const us = 24,
|
|
3503
|
+
const us = 24, Bn = (s) => (t) => t % s, Ks = Bn(us), An = (s, t) => (e) => Ks(s + e * t), xs = (s, t) => Ks(us + s - t), js = (s) => (t, e) => !e || C(t).getTime() === C(e).getTime() ? t : de(t, s), zn = js(0), qn = js(us - 1);
|
|
3504
3504
|
class Wn {
|
|
3505
3505
|
constructor(t) {
|
|
3506
3506
|
this.intl = t, this.boundRange = !1, this.insertUndividedMax = !1, this.min = null, this.max = null, this.step = 0, this.toListItem = null;
|
|
@@ -3513,7 +3513,7 @@ class Wn {
|
|
|
3513
3513
|
boundRange: e = this.boundRange,
|
|
3514
3514
|
insertUndividedMax: i = this.insertUndividedMax,
|
|
3515
3515
|
min: a = this.min,
|
|
3516
|
-
max:
|
|
3516
|
+
max: o = this.max,
|
|
3517
3517
|
part: l,
|
|
3518
3518
|
step: c = this.step
|
|
3519
3519
|
} = t;
|
|
@@ -3523,11 +3523,11 @@ class Wn {
|
|
|
3523
3523
|
text: this.intl.formatDate(u, l.pattern),
|
|
3524
3524
|
value: u
|
|
3525
3525
|
};
|
|
3526
|
-
}, this.min = a, this.max =
|
|
3526
|
+
}, this.min = a, this.max = o, this.step = c;
|
|
3527
3527
|
}
|
|
3528
3528
|
data(t) {
|
|
3529
|
-
const [e] = this.range(t), i =
|
|
3530
|
-
return this.addLast(
|
|
3529
|
+
const [e] = this.range(t), i = An(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), o = rs(0, this.countFromMin(t)).map(a);
|
|
3530
|
+
return this.addLast(o), t && this.addMissing(o, t), o;
|
|
3531
3531
|
}
|
|
3532
3532
|
isRangeChanged(t, e) {
|
|
3533
3533
|
return !this.min || !this.max ? !1 : !ht(this.min, t) || !ht(this.max, e);
|
|
@@ -3591,20 +3591,20 @@ class jn {
|
|
|
3591
3591
|
insertUndividedMax: e = this.insertUndividedMax,
|
|
3592
3592
|
min: i = this.min,
|
|
3593
3593
|
max: a = this.max,
|
|
3594
|
-
part:
|
|
3594
|
+
part: o,
|
|
3595
3595
|
step: l = this.step
|
|
3596
3596
|
} = t;
|
|
3597
3597
|
this.insertUndividedMax = e, this.toListItem = (c) => {
|
|
3598
3598
|
const h = pe(L, c);
|
|
3599
3599
|
return {
|
|
3600
|
-
text: this.intl.formatDate(h,
|
|
3600
|
+
text: this.intl.formatDate(h, o.pattern),
|
|
3601
3601
|
value: h
|
|
3602
3602
|
};
|
|
3603
3603
|
}, this.min = i, this.max = a, this.step = l;
|
|
3604
3604
|
}
|
|
3605
3605
|
data(t) {
|
|
3606
|
-
const [e] = this.range(t), i = $n(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)),
|
|
3607
|
-
return this.addLast(
|
|
3606
|
+
const [e] = this.range(t), i = $n(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), o = rs(0, this.countFromMin(t)).map(a);
|
|
3607
|
+
return this.addLast(o), t && this.addMissing(o, t), o;
|
|
3608
3608
|
}
|
|
3609
3609
|
isRangeChanged(t, e) {
|
|
3610
3610
|
return this.min !== null && this.max !== null && (!ht(this.min, t) || !ht(this.max, e));
|
|
@@ -3668,20 +3668,20 @@ class Qn {
|
|
|
3668
3668
|
insertUndividedMax: e = this.insertUndividedMax,
|
|
3669
3669
|
min: i = this.min,
|
|
3670
3670
|
max: a = this.max,
|
|
3671
|
-
part:
|
|
3671
|
+
part: o,
|
|
3672
3672
|
step: l = this.step
|
|
3673
3673
|
} = t;
|
|
3674
3674
|
this.insertUndividedMax = e, this.toListItem = (c) => {
|
|
3675
3675
|
const h = me(L, c);
|
|
3676
3676
|
return {
|
|
3677
|
-
text: this.intl.formatDate(h,
|
|
3677
|
+
text: this.intl.formatDate(h, o.pattern),
|
|
3678
3678
|
value: h
|
|
3679
3679
|
};
|
|
3680
3680
|
}, this.min = i, this.max = a, this.step = l;
|
|
3681
3681
|
}
|
|
3682
3682
|
data(t) {
|
|
3683
|
-
const [e] = this.range(t), i = Gn(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)),
|
|
3684
|
-
return this.addLast(
|
|
3683
|
+
const [e] = this.range(t), i = Gn(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), o = rs(0, this.countFromMin(t)).map(a);
|
|
3684
|
+
return this.addLast(o), t && this.addMissing(o, t), o;
|
|
3685
3685
|
}
|
|
3686
3686
|
isRangeChanged(t, e) {
|
|
3687
3687
|
return this.min !== null && this.max !== null && (!ht(this.min, t) || !ht(this.max, e));
|
|
@@ -3733,16 +3733,16 @@ class Qn {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
3735
3735
|
const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
|
|
3736
|
-
[
|
|
3737
|
-
[
|
|
3738
|
-
[
|
|
3739
|
-
[
|
|
3736
|
+
[k.end]: (s, t) => s[s.length - 1],
|
|
3737
|
+
[k.home]: (s, t) => s[0],
|
|
3738
|
+
[k.up]: (s, t) => s[t - 1],
|
|
3739
|
+
[k.down]: (s, t) => s[t + 1]
|
|
3740
3740
|
}, es = {
|
|
3741
3741
|
[X.dayperiod]: Ln,
|
|
3742
3742
|
[X.hour]: Wn,
|
|
3743
3743
|
[X.minute]: jn,
|
|
3744
3744
|
[X.second]: Qn
|
|
3745
|
-
}, Tt = class extends
|
|
3745
|
+
}, Tt = class extends r.Component {
|
|
3746
3746
|
constructor(s) {
|
|
3747
3747
|
super(s), this.intl = null, this._element = null, this.service = null, this.virtualization = null, this.topOffset = 0, this.bottomOffset = 0, this.itemHeight = 0, this.listHeight = 0, this.topThreshold = 0, this.bottomThreshold = 0, this.animateToIndex = !1, this.focus = (t) => {
|
|
3748
3748
|
Promise.resolve().then(() => {
|
|
@@ -3751,17 +3751,17 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
|
|
|
3751
3751
|
}, this.itemOffset = (t) => {
|
|
3752
3752
|
if (!this.virtualization || !this.service)
|
|
3753
3753
|
return -1;
|
|
3754
|
-
const e = this.service.selectedIndex(this.props.value), i = this.virtualization.activeIndex(), a = this.virtualization.itemOffset(i),
|
|
3755
|
-
if (e === i &&
|
|
3754
|
+
const e = this.service.selectedIndex(this.props.value), i = this.virtualization.activeIndex(), a = this.virtualization.itemOffset(i), o = Math.abs(Math.ceil(t) - a);
|
|
3755
|
+
if (e === i && o < ta)
|
|
3756
3756
|
return a;
|
|
3757
3757
|
const l = e > i;
|
|
3758
|
-
return l &&
|
|
3758
|
+
return l && o >= this.bottomThreshold || !l && o > this.topThreshold ? this.virtualization.itemOffset(i + 1) : a;
|
|
3759
3759
|
}, this.calculateHeights = () => {
|
|
3760
3760
|
this.dom.didCalculate && (this.itemHeight = this.dom.itemHeight, this.listHeight = this.dom.timeListHeight, this.topOffset = (this.listHeight - this.itemHeight) / 2, this.bottomOffset = this.listHeight - this.itemHeight, this.props.mobileMode && (this.topOffset += Ts, this.bottomOffset += Ts * 2), this.topThreshold = this.itemHeight * Ms, this.bottomThreshold = this.itemHeight * (1 - Ms));
|
|
3761
3761
|
}, this.configureServices = ({ min: t, max: e, value: i } = this.props) => {
|
|
3762
3762
|
if (this.service) {
|
|
3763
|
-
const [a,
|
|
3764
|
-
this.service.configure(this.serviceSettings({ min: a, max:
|
|
3763
|
+
const [a, o] = this.service.limitRange(t || this.min, e || this.max, i || this.props.value);
|
|
3764
|
+
this.service.configure(this.serviceSettings({ min: a, max: o }));
|
|
3765
3765
|
}
|
|
3766
3766
|
}, this.serviceSettings = (t) => {
|
|
3767
3767
|
const e = {
|
|
@@ -3794,7 +3794,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
|
|
|
3794
3794
|
if (!this.service)
|
|
3795
3795
|
return;
|
|
3796
3796
|
const { keyCode: e } = t;
|
|
3797
|
-
(e ===
|
|
3797
|
+
(e === k.down || e === k.up || e === k.end || e === k.home) && t.preventDefault();
|
|
3798
3798
|
const a = (ia[t.keyCode] || Rs)(
|
|
3799
3799
|
this.service.data(this.props.value),
|
|
3800
3800
|
this.service.selectedIndex(this.props.value)
|
|
@@ -3849,25 +3849,25 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
|
|
|
3849
3849
|
if (!this.props.part.type || !es[this.props.part.type])
|
|
3850
3850
|
return;
|
|
3851
3851
|
this.calculateHeights(), this.intl = ct(this), this.service = new es[this.props.part.type](this.intl), this.configureServices();
|
|
3852
|
-
const s = this.service.data(this.props.value), t = "translateY(" + this.topOffset + "px)", e = this.service.total(this.props.value), i = /* @__PURE__ */
|
|
3852
|
+
const s = this.service.data(this.props.value), t = "translateY(" + this.topOffset + "px)", e = this.service.total(this.props.value), i = /* @__PURE__ */ r.createElement(
|
|
3853
3853
|
"ul",
|
|
3854
3854
|
{
|
|
3855
3855
|
style: { transform: t, msTransform: t },
|
|
3856
3856
|
className: "k-reset"
|
|
3857
3857
|
},
|
|
3858
|
-
s.map((a,
|
|
3858
|
+
s.map((a, o) => /* @__PURE__ */ r.createElement(
|
|
3859
3859
|
"li",
|
|
3860
3860
|
{
|
|
3861
|
-
key:
|
|
3861
|
+
key: o,
|
|
3862
3862
|
className: "k-item",
|
|
3863
3863
|
onClick: () => {
|
|
3864
3864
|
this.handleChange(a);
|
|
3865
3865
|
}
|
|
3866
3866
|
},
|
|
3867
|
-
/* @__PURE__ */
|
|
3867
|
+
/* @__PURE__ */ r.createElement("span", null, a.text)
|
|
3868
3868
|
))
|
|
3869
3869
|
);
|
|
3870
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ r.createElement(
|
|
3871
3871
|
"div",
|
|
3872
3872
|
{
|
|
3873
3873
|
className: "k-time-list",
|
|
@@ -3881,7 +3881,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
|
|
|
3881
3881
|
onBlur: this.handleBlur,
|
|
3882
3882
|
onMouseOver: this.handleMouseOver
|
|
3883
3883
|
},
|
|
3884
|
-
this.dom.didCalculate ? /* @__PURE__ */
|
|
3884
|
+
this.dom.didCalculate ? /* @__PURE__ */ r.createElement(
|
|
3885
3885
|
Kt,
|
|
3886
3886
|
{
|
|
3887
3887
|
bottomOffset: this.bottomOffset,
|
|
@@ -3900,7 +3900,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
|
|
|
3900
3900
|
topOffset: this.topOffset,
|
|
3901
3901
|
total: e
|
|
3902
3902
|
}
|
|
3903
|
-
) : /* @__PURE__ */
|
|
3903
|
+
) : /* @__PURE__ */ r.createElement("div", { className: "k-time-container" }, i)
|
|
3904
3904
|
);
|
|
3905
3905
|
}
|
|
3906
3906
|
};
|
|
@@ -3939,7 +3939,7 @@ Ce.defaultProps = {
|
|
|
3939
3939
|
smoothScroll: !0
|
|
3940
3940
|
};
|
|
3941
3941
|
ft(Ce);
|
|
3942
|
-
const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`), vt = class extends
|
|
3942
|
+
const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`), vt = class extends r.Component {
|
|
3943
3943
|
constructor(s) {
|
|
3944
3944
|
super(s), this._element = null, this._nowButton = null, this.dateFormatParts = [], this.timeLists = [], this.focus = (t, e) => {
|
|
3945
3945
|
Promise.resolve().then(() => {
|
|
@@ -3958,13 +3958,13 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
|
|
|
3958
3958
|
}], this.showNowButton = () => !this.hasSteps() && this.props.nowButton && hs(Vt(), this.min, this.max), this.handleKeyDown = (t) => {
|
|
3959
3959
|
const { keyCode: e } = t;
|
|
3960
3960
|
switch (e) {
|
|
3961
|
-
case
|
|
3961
|
+
case k.left:
|
|
3962
3962
|
t.preventDefault(), this.focusList(
|
|
3963
3963
|
0
|
|
3964
3964
|
/* Left */
|
|
3965
3965
|
);
|
|
3966
3966
|
return;
|
|
3967
|
-
case
|
|
3967
|
+
case k.right:
|
|
3968
3968
|
t.preventDefault(), this.focusList(
|
|
3969
3969
|
1
|
|
3970
3970
|
/* Right */
|
|
@@ -3985,7 +3985,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
|
|
|
3985
3985
|
const { onChange: e } = this.props;
|
|
3986
3986
|
e && e.call(void 0, t);
|
|
3987
3987
|
}, this.snapTime = ys(
|
|
3988
|
-
|
|
3988
|
+
ks(this.props.steps, this.props.min || vt.defaultProps.min)
|
|
3989
3989
|
), this.state = {
|
|
3990
3990
|
activeListIndex: -1
|
|
3991
3991
|
}, this.hasActiveButton = this.hasActiveButton.bind(this);
|
|
@@ -4038,21 +4038,21 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
|
|
|
4038
4038
|
onNowClick: e,
|
|
4039
4039
|
className: i,
|
|
4040
4040
|
disabled: a,
|
|
4041
|
-
mobileMode:
|
|
4041
|
+
mobileMode: o,
|
|
4042
4042
|
show: l,
|
|
4043
4043
|
onNowKeyDown: c
|
|
4044
4044
|
} = this.props;
|
|
4045
|
-
this.snapTime = ys(
|
|
4045
|
+
this.snapTime = ys(ks(this.steps, this.min)), this.dateFormatParts = this.intl.splitDateFormat(s || vt.defaultProps.format).filter(this.timeFormatFilter);
|
|
4046
4046
|
const h = P(
|
|
4047
4047
|
{
|
|
4048
4048
|
"k-disabled": a,
|
|
4049
|
-
"k-time-part":
|
|
4049
|
+
"k-time-part": o
|
|
4050
4050
|
},
|
|
4051
4051
|
i
|
|
4052
4052
|
);
|
|
4053
4053
|
this.timeLists = [];
|
|
4054
4054
|
const u = q(this), d = u.toLanguageString(je, T[je]);
|
|
4055
|
-
return /* @__PURE__ */
|
|
4055
|
+
return /* @__PURE__ */ r.createElement("div", { className: h }, /* @__PURE__ */ r.createElement("div", { className: "k-time-header" }, /* @__PURE__ */ r.createElement("span", { className: "k-title" }, this.intl.formatDate(this.value, this.dateFormatParts.reduce(this.timeFormatReducer, ""))), this.showNowButton() && /* @__PURE__ */ r.createElement(
|
|
4056
4056
|
N,
|
|
4057
4057
|
{
|
|
4058
4058
|
type: "button",
|
|
@@ -4069,14 +4069,14 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
|
|
|
4069
4069
|
tabIndex: a ? -1 : 0
|
|
4070
4070
|
},
|
|
4071
4071
|
u.toLanguageString(Ke, T[Ke])
|
|
4072
|
-
)), /* @__PURE__ */
|
|
4072
|
+
)), /* @__PURE__ */ r.createElement(
|
|
4073
4073
|
"div",
|
|
4074
4074
|
{
|
|
4075
4075
|
className: "k-time-list-container",
|
|
4076
4076
|
onKeyDown: this.handleKeyDown
|
|
4077
4077
|
},
|
|
4078
|
-
/* @__PURE__ */
|
|
4079
|
-
this.dateFormatParts.map((p, m) => p.type !== "literal" ? /* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ r.createElement("span", { className: "k-time-highlight" }),
|
|
4079
|
+
this.dateFormatParts.map((p, m) => p.type !== "literal" ? /* @__PURE__ */ r.createElement(
|
|
4080
4080
|
"div",
|
|
4081
4081
|
{
|
|
4082
4082
|
key: m,
|
|
@@ -4086,10 +4086,10 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
|
|
|
4086
4086
|
role: "presentation",
|
|
4087
4087
|
tabIndex: -1
|
|
4088
4088
|
},
|
|
4089
|
-
/* @__PURE__ */
|
|
4089
|
+
/* @__PURE__ */ r.createElement("span", { className: "k-title", onMouseDown: (f) => {
|
|
4090
4090
|
f.preventDefault();
|
|
4091
4091
|
} }, this.intl.dateFieldName(p)),
|
|
4092
|
-
/* @__PURE__ */
|
|
4092
|
+
/* @__PURE__ */ r.createElement(
|
|
4093
4093
|
Ce,
|
|
4094
4094
|
{
|
|
4095
4095
|
min: this.min,
|
|
@@ -4110,10 +4110,10 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
|
|
|
4110
4110
|
value: this.value,
|
|
4111
4111
|
disabled: a,
|
|
4112
4112
|
show: l,
|
|
4113
|
-
mobileMode:
|
|
4113
|
+
mobileMode: o
|
|
4114
4114
|
}
|
|
4115
4115
|
)
|
|
4116
|
-
) : /* @__PURE__ */
|
|
4116
|
+
) : /* @__PURE__ */ r.createElement(
|
|
4117
4117
|
"div",
|
|
4118
4118
|
{
|
|
4119
4119
|
key: m,
|
|
@@ -4185,14 +4185,14 @@ _t.defaultProps = {
|
|
|
4185
4185
|
};
|
|
4186
4186
|
ft(_t);
|
|
4187
4187
|
at(_t);
|
|
4188
|
-
const ss = class extends
|
|
4188
|
+
const ss = class extends r.Component {
|
|
4189
4189
|
constructor(s) {
|
|
4190
4190
|
super(s), this._element = null, this._cancelButton = null, this._acceptButton = null, this.timePart = null, this.focusActiveList = () => {
|
|
4191
4191
|
this.timePart && this.timePart.focus({ preventScroll: !0 });
|
|
4192
4192
|
}, this.handleKeyDown = (t) => {
|
|
4193
4193
|
const { keyCode: e } = t;
|
|
4194
4194
|
switch (e) {
|
|
4195
|
-
case
|
|
4195
|
+
case k.enter:
|
|
4196
4196
|
this.hasActiveButton() || this.handleAccept(t);
|
|
4197
4197
|
return;
|
|
4198
4198
|
default:
|
|
@@ -4200,11 +4200,11 @@ const ss = class extends o.Component {
|
|
|
4200
4200
|
}
|
|
4201
4201
|
}, this.revertToNowButton = (t) => {
|
|
4202
4202
|
const { keyCode: e, shiftKey: i } = t;
|
|
4203
|
-
!i && e ===
|
|
4203
|
+
!i && e === k.tab && (t.preventDefault(), this.props.nowButton !== !1 ? this.timePart && this.timePart.focus({ preventScroll: !0 }, !0) : this.timePart && this.timePart.focus({ preventScroll: !0 }));
|
|
4204
4204
|
}, this.handleNowKeyDown = (t) => {
|
|
4205
4205
|
var a;
|
|
4206
4206
|
const { keyCode: e, shiftKey: i } = t;
|
|
4207
|
-
i && e ===
|
|
4207
|
+
i && e === k.tab ? (t.preventDefault(), this._acceptButton && ((a = this._acceptButton.element) == null || a.focus({ preventScroll: !0 }))) : e === k.enter && (t.stopPropagation(), this.handleNowClick(t));
|
|
4208
4208
|
}, this.handleAccept = (t) => {
|
|
4209
4209
|
const e = this.mergeValue(
|
|
4210
4210
|
v(this.value || Vt()),
|
|
@@ -4244,7 +4244,7 @@ const ss = class extends o.Component {
|
|
|
4244
4244
|
e && e.call(void 0, {
|
|
4245
4245
|
time: t
|
|
4246
4246
|
});
|
|
4247
|
-
}, this.dateFormatParts = this.intl.splitDateFormat(this.props.format || ss.defaultProps.format), this.mergeValue = yn(
|
|
4247
|
+
}, this.dateFormatParts = this.intl.splitDateFormat(this.props.format || ss.defaultProps.format), this.mergeValue = yn(kn(this.dateFormatParts)), this.hasActiveButton = this.hasActiveButton.bind(this), this.state = {
|
|
4248
4248
|
current: this.props.value || L,
|
|
4249
4249
|
value: this.props.value || ss.defaultProps.value
|
|
4250
4250
|
};
|
|
@@ -4281,7 +4281,7 @@ const ss = class extends o.Component {
|
|
|
4281
4281
|
disabled: e,
|
|
4282
4282
|
tabIndex: i,
|
|
4283
4283
|
className: a,
|
|
4284
|
-
smoothScroll:
|
|
4284
|
+
smoothScroll: o,
|
|
4285
4285
|
min: l,
|
|
4286
4286
|
max: c,
|
|
4287
4287
|
boundRange: h,
|
|
@@ -4290,7 +4290,7 @@ const ss = class extends o.Component {
|
|
|
4290
4290
|
show: p,
|
|
4291
4291
|
mobileMode: m
|
|
4292
4292
|
} = this.props, f = q(this), S = f.toLanguageString(ve, T[ve]), I = f.toLanguageString(Ut, T[Ut]);
|
|
4293
|
-
return /* @__PURE__ */
|
|
4293
|
+
return /* @__PURE__ */ r.createElement(
|
|
4294
4294
|
"div",
|
|
4295
4295
|
{
|
|
4296
4296
|
ref: (M) => {
|
|
@@ -4302,7 +4302,7 @@ const ss = class extends o.Component {
|
|
|
4302
4302
|
}),
|
|
4303
4303
|
onKeyDown: this.handleKeyDown
|
|
4304
4304
|
},
|
|
4305
|
-
/* @__PURE__ */
|
|
4305
|
+
/* @__PURE__ */ r.createElement(
|
|
4306
4306
|
_t,
|
|
4307
4307
|
{
|
|
4308
4308
|
ref: (M) => {
|
|
@@ -4312,7 +4312,7 @@ const ss = class extends o.Component {
|
|
|
4312
4312
|
onChange: this.handleChange,
|
|
4313
4313
|
onNowClick: this.handleNowClick,
|
|
4314
4314
|
format: s,
|
|
4315
|
-
smoothScroll:
|
|
4315
|
+
smoothScroll: o,
|
|
4316
4316
|
min: l,
|
|
4317
4317
|
max: c,
|
|
4318
4318
|
boundRange: h,
|
|
@@ -4324,7 +4324,7 @@ const ss = class extends o.Component {
|
|
|
4324
4324
|
onNowKeyDown: this.handleNowKeyDown
|
|
4325
4325
|
}
|
|
4326
4326
|
),
|
|
4327
|
-
this.props.footer && /* @__PURE__ */
|
|
4327
|
+
this.props.footer && /* @__PURE__ */ r.createElement("div", { className: "k-time-footer k-actions k-actions-stretched" }, t && /* @__PURE__ */ r.createElement(
|
|
4328
4328
|
N,
|
|
4329
4329
|
{
|
|
4330
4330
|
type: "button",
|
|
@@ -4337,7 +4337,7 @@ const ss = class extends o.Component {
|
|
|
4337
4337
|
"aria-label": S
|
|
4338
4338
|
},
|
|
4339
4339
|
S
|
|
4340
|
-
), /* @__PURE__ */
|
|
4340
|
+
), /* @__PURE__ */ r.createElement(
|
|
4341
4341
|
N,
|
|
4342
4342
|
{
|
|
4343
4343
|
type: "button",
|
|
@@ -4415,13 +4415,13 @@ Jt.defaultProps = {
|
|
|
4415
4415
|
};
|
|
4416
4416
|
ft(Jt);
|
|
4417
4417
|
at(Jt);
|
|
4418
|
-
const G = class extends
|
|
4418
|
+
const G = class extends r.Component {
|
|
4419
4419
|
constructor(s) {
|
|
4420
|
-
super(s), this._element = null, this._dateInput =
|
|
4420
|
+
super(s), this._element = null, this._dateInput = r.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
|
|
4421
4421
|
this.dateInput && this.dateInput.focus();
|
|
4422
4422
|
}, this.renderTimeSelector = () => {
|
|
4423
|
-
const { smoothScroll: t, cancelButton: e, nowButton: i, disabled: a, format:
|
|
4424
|
-
return /* @__PURE__ */
|
|
4423
|
+
const { smoothScroll: t, cancelButton: e, nowButton: i, disabled: a, format: o, steps: l } = this.props;
|
|
4424
|
+
return /* @__PURE__ */ r.createElement(
|
|
4425
4425
|
Jt,
|
|
4426
4426
|
{
|
|
4427
4427
|
ref: this.setTimeSelectorRef,
|
|
@@ -4431,7 +4431,7 @@ const G = class extends o.Component {
|
|
|
4431
4431
|
cancelButton: e,
|
|
4432
4432
|
disabled: a,
|
|
4433
4433
|
nowButton: i,
|
|
4434
|
-
format:
|
|
4434
|
+
format: o,
|
|
4435
4435
|
min: this.min,
|
|
4436
4436
|
max: this.max,
|
|
4437
4437
|
steps: l,
|
|
@@ -4464,7 +4464,7 @@ const G = class extends o.Component {
|
|
|
4464
4464
|
},
|
|
4465
4465
|
...e
|
|
4466
4466
|
};
|
|
4467
|
-
return this.props.popup ? /* @__PURE__ */
|
|
4467
|
+
return this.props.popup ? /* @__PURE__ */ r.createElement(this.props.popup, { ...a }, this.renderTimeSelector()) : /* @__PURE__ */ r.createElement(be, { ...a }, this.renderTimeSelector());
|
|
4468
4468
|
}, this.renderAdaptivePopup = () => {
|
|
4469
4469
|
const { windowWidth: t = 0 } = this.state, e = {
|
|
4470
4470
|
expand: this.show,
|
|
@@ -4478,7 +4478,7 @@ const G = class extends o.Component {
|
|
|
4478
4478
|
onApply: (i) => this.handleValueChange(i)
|
|
4479
4479
|
}
|
|
4480
4480
|
};
|
|
4481
|
-
return /* @__PURE__ */
|
|
4481
|
+
return /* @__PURE__ */ r.createElement(Se, { ...e }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, this.renderTimeSelector()));
|
|
4482
4482
|
}, this.setTimeSelectorRef = (t) => {
|
|
4483
4483
|
this._timeSelector = t;
|
|
4484
4484
|
}, this.nextValue = (t, e) => t.value !== void 0 ? t.value : e.value, this.nextShow = (t, e) => t.show !== void 0 ? t.show : e.show, this.handleInputValueChange = (t) => {
|
|
@@ -4510,11 +4510,11 @@ const G = class extends o.Component {
|
|
|
4510
4510
|
t.preventDefault();
|
|
4511
4511
|
}, this.handleKeyDown = (t) => {
|
|
4512
4512
|
const { altKey: e, keyCode: i } = t;
|
|
4513
|
-
if (i ===
|
|
4513
|
+
if (i === k.esc) {
|
|
4514
4514
|
this.shouldFocusDateInput = !0, this.setShow(!1);
|
|
4515
4515
|
return;
|
|
4516
4516
|
}
|
|
4517
|
-
e && (i ===
|
|
4517
|
+
e && (i === k.up || i === k.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === k.up, this.setShow(i === k.down));
|
|
4518
4518
|
}, Pt(Rt), this.state = {
|
|
4519
4519
|
value: this.props.defaultValue || G.defaultProps.defaultValue,
|
|
4520
4520
|
show: this.props.defaultShow || G.defaultProps.defaultShow,
|
|
@@ -4570,7 +4570,7 @@ const G = class extends o.Component {
|
|
|
4570
4570
|
* Represents the validity state into which the TimePicker is set.
|
|
4571
4571
|
*/
|
|
4572
4572
|
get validity() {
|
|
4573
|
-
const s = this.value && this.normalizeTime(this.value), t = this.normalizeTime(this.min), e = this.normalizeTime(this.max), i = xn(s, t, e), a = this.props.validationMessage !== void 0,
|
|
4573
|
+
const s = this.value && this.normalizeTime(this.value), t = this.normalizeTime(this.min), e = this.normalizeTime(this.max), i = xn(s, t, e), a = this.props.validationMessage !== void 0, o = (!this.required || this.value !== null) && i, l = this.props.valid !== void 0 ? this.props.valid : o;
|
|
4574
4574
|
return {
|
|
4575
4575
|
customError: a,
|
|
4576
4576
|
rangeOverflow: In(s, e),
|
|
@@ -4642,7 +4642,7 @@ const G = class extends o.Component {
|
|
|
4642
4642
|
fillMode: e = G.defaultProps.fillMode,
|
|
4643
4643
|
disabled: i,
|
|
4644
4644
|
tabIndex: a,
|
|
4645
|
-
title:
|
|
4645
|
+
title: o,
|
|
4646
4646
|
id: l,
|
|
4647
4647
|
className: c,
|
|
4648
4648
|
format: h,
|
|
@@ -4669,7 +4669,7 @@ const G = class extends o.Component {
|
|
|
4669
4669
|
required: S,
|
|
4670
4670
|
steps: m,
|
|
4671
4671
|
tabIndex: this.show ? -1 : a,
|
|
4672
|
-
title:
|
|
4672
|
+
title: o,
|
|
4673
4673
|
valid: this.validity.valid,
|
|
4674
4674
|
validationMessage: f,
|
|
4675
4675
|
validityStyles: I,
|
|
@@ -4682,7 +4682,7 @@ const G = class extends o.Component {
|
|
|
4682
4682
|
fillMode: null,
|
|
4683
4683
|
rounded: null,
|
|
4684
4684
|
readonly: this.mobileMode
|
|
4685
|
-
}, H = this.localizationService.toLanguageString(ue, T[ue]), V = this.localizationService.toLanguageString(Ze, T[Ze]), R = /* @__PURE__ */
|
|
4685
|
+
}, H = this.localizationService.toLanguageString(ue, T[ue]), V = this.localizationService.toLanguageString(Ze, T[Ze]), R = /* @__PURE__ */ r.createElement(
|
|
4686
4686
|
we,
|
|
4687
4687
|
{
|
|
4688
4688
|
onFocus: this.handleFocus,
|
|
@@ -4690,7 +4690,7 @@ const G = class extends o.Component {
|
|
|
4690
4690
|
onSyncBlur: this.props.onBlur,
|
|
4691
4691
|
onSyncFocus: this.props.onFocus
|
|
4692
4692
|
},
|
|
4693
|
-
({ onFocus:
|
|
4693
|
+
({ onFocus: B, onBlur: x }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
4694
4694
|
"div",
|
|
4695
4695
|
{
|
|
4696
4696
|
id: this.props.id,
|
|
@@ -4712,11 +4712,11 @@ const G = class extends o.Component {
|
|
|
4712
4712
|
),
|
|
4713
4713
|
onKeyDown: this.handleKeyDown,
|
|
4714
4714
|
style: { width: d },
|
|
4715
|
-
onFocus:
|
|
4715
|
+
onFocus: B,
|
|
4716
4716
|
onBlur: x,
|
|
4717
4717
|
onClick: this.mobileMode ? this.handleIconClick : void 0
|
|
4718
4718
|
},
|
|
4719
|
-
/* @__PURE__ */
|
|
4719
|
+
/* @__PURE__ */ r.createElement(
|
|
4720
4720
|
this.dateInputComp,
|
|
4721
4721
|
{
|
|
4722
4722
|
_ref: this._dateInput,
|
|
@@ -4725,7 +4725,7 @@ const G = class extends o.Component {
|
|
|
4725
4725
|
...g
|
|
4726
4726
|
}
|
|
4727
4727
|
),
|
|
4728
|
-
/* @__PURE__ */
|
|
4728
|
+
/* @__PURE__ */ r.createElement(
|
|
4729
4729
|
N,
|
|
4730
4730
|
{
|
|
4731
4731
|
tabIndex: -1,
|
|
@@ -4743,7 +4743,7 @@ const G = class extends o.Component {
|
|
|
4743
4743
|
!this.mobileMode && this.renderPopup()
|
|
4744
4744
|
), this.mobileMode && this.renderAdaptivePopup())
|
|
4745
4745
|
);
|
|
4746
|
-
return this.props.label ? /* @__PURE__ */
|
|
4746
|
+
return this.props.label ? /* @__PURE__ */ r.createElement(
|
|
4747
4747
|
cs,
|
|
4748
4748
|
{
|
|
4749
4749
|
dateInput: this._dateInput,
|
|
@@ -4857,15 +4857,15 @@ Qt.defaultProps = {
|
|
|
4857
4857
|
steps: {},
|
|
4858
4858
|
required: !1,
|
|
4859
4859
|
validityStyles: !0,
|
|
4860
|
-
dateInput:
|
|
4860
|
+
dateInput: Dt,
|
|
4861
4861
|
size: "medium",
|
|
4862
4862
|
rounded: "medium",
|
|
4863
4863
|
fillMode: "solid"
|
|
4864
4864
|
};
|
|
4865
|
-
const na =
|
|
4865
|
+
const na = kt(), aa = yt(St(na, Qt));
|
|
4866
4866
|
aa.displayName = "KendoReactTimePicker";
|
|
4867
4867
|
at(Qt);
|
|
4868
|
-
const Es = 2, is = class extends
|
|
4868
|
+
const Es = 2, is = class extends r.Component {
|
|
4869
4869
|
constructor(s) {
|
|
4870
4870
|
super(s), this._element = null, this.isActive = !1, this.focusActiveDate = () => {
|
|
4871
4871
|
if (!this._element)
|
|
@@ -4903,7 +4903,7 @@ const Es = 2, is = class extends o.Component {
|
|
|
4903
4903
|
return this._element;
|
|
4904
4904
|
}
|
|
4905
4905
|
get weekNumber() {
|
|
4906
|
-
return !!(this.props.showWeekNumbers && this.props.activeView ===
|
|
4906
|
+
return !!(this.props.showWeekNumbers && this.props.activeView === y.month);
|
|
4907
4907
|
}
|
|
4908
4908
|
get min() {
|
|
4909
4909
|
return this.props.min !== void 0 ? this.props.min : is.defaultProps.min;
|
|
@@ -4920,13 +4920,13 @@ const Es = 2, is = class extends o.Component {
|
|
|
4920
4920
|
{
|
|
4921
4921
|
"k-vstack": this.props.verticalView,
|
|
4922
4922
|
"k-hstack": !this.props.verticalView,
|
|
4923
|
-
"k-calendar-monthview": this.props.activeView ===
|
|
4924
|
-
"k-calendar-yearview": this.props.activeView ===
|
|
4925
|
-
"k-calendar-decadeview": this.props.activeView ===
|
|
4926
|
-
"k-calendar-centuryview": this.props.activeView ===
|
|
4923
|
+
"k-calendar-monthview": this.props.activeView === y.month,
|
|
4924
|
+
"k-calendar-yearview": this.props.activeView === y.year,
|
|
4925
|
+
"k-calendar-decadeview": this.props.activeView === y.decade,
|
|
4926
|
+
"k-calendar-centuryview": this.props.activeView === y.century
|
|
4927
4927
|
}
|
|
4928
4928
|
);
|
|
4929
|
-
return /* @__PURE__ */
|
|
4929
|
+
return /* @__PURE__ */ r.createElement(
|
|
4930
4930
|
"div",
|
|
4931
4931
|
{
|
|
4932
4932
|
ref: (e) => {
|
|
@@ -4934,7 +4934,7 @@ const Es = 2, is = class extends o.Component {
|
|
|
4934
4934
|
},
|
|
4935
4935
|
className: t
|
|
4936
4936
|
},
|
|
4937
|
-
this.props.dates.map((e) => /* @__PURE__ */
|
|
4937
|
+
this.props.dates.map((e) => /* @__PURE__ */ r.createElement("table", { className: "k-calendar-table k-content", key: e.getTime(), role: "grid" }, /* @__PURE__ */ r.createElement(
|
|
4938
4938
|
jt,
|
|
4939
4939
|
{
|
|
4940
4940
|
bus: this.props.bus,
|
|
@@ -4959,8 +4959,8 @@ const Es = 2, is = class extends o.Component {
|
|
|
4959
4959
|
);
|
|
4960
4960
|
}
|
|
4961
4961
|
};
|
|
4962
|
-
let
|
|
4963
|
-
|
|
4962
|
+
let At = is;
|
|
4963
|
+
At.defaultProps = {
|
|
4964
4964
|
showWeekNumbers: !1,
|
|
4965
4965
|
views: Es,
|
|
4966
4966
|
take: Es,
|
|
@@ -4968,7 +4968,7 @@ Bt.defaultProps = {
|
|
|
4968
4968
|
min: ut,
|
|
4969
4969
|
max: dt
|
|
4970
4970
|
};
|
|
4971
|
-
const Le = (s =
|
|
4971
|
+
const Le = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => e instanceof Date && !Array.isArray(e) && F(C(e), s, t) ? C(e) : null, Vs = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => Array.isArray(e) ? e.filter((i) => F(i, s, t)).map((i) => C(i)) : null, Os = (s) => typeof s == "object" && !(s instanceof Date) && s !== null && !Array.isArray(s) ? s : z, Ps = (s, t, e) => s || t && t[0] || e && e.start, oa = (s, t) => s.start === null && t === null ? "start" : s.end === null ? "end" : "start", Et = class extends r.Component {
|
|
4972
4972
|
constructor(s) {
|
|
4973
4973
|
super(s), this.dates = [], this.selectedDate = null, this.selectedMultiple = null, this.selectedRange = z, this._focusedDate = /* @__PURE__ */ new Date(), this.cellUID = this.props.id + "-cell-uid", this.activeRangeEnd = "start", this._element = null, this.intl = null, this.localization = null, this.service = null, this.calendarViewList = null, this.isActive = !1, this.calculateFocusFromValue = !0, this.focus = () => {
|
|
4974
4974
|
this._element && this._element.focus();
|
|
@@ -5025,7 +5025,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5025
5025
|
this.navigate(b.NextView, this.focusedDate);
|
|
5026
5026
|
}, this.handleKeyDown = (h) => {
|
|
5027
5027
|
const { keyCode: u } = h;
|
|
5028
|
-
if (u ===
|
|
5028
|
+
if (u === k.enter) {
|
|
5029
5029
|
const d = {
|
|
5030
5030
|
syntheticEvent: h,
|
|
5031
5031
|
nativeEvent: h.nativeEvent,
|
|
@@ -5099,12 +5099,12 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5099
5099
|
}
|
|
5100
5100
|
this.valueDuringOnChange = void 0;
|
|
5101
5101
|
};
|
|
5102
|
-
const t = s.value !== void 0 ? s.value : s.defaultValue || Et.defaultProps.defaultValue, e = Le(this.min, this.max, t), i = Vs(this.min, this.max, t), a = Os(t),
|
|
5103
|
-
|
|
5102
|
+
const t = s.value !== void 0 ? s.value : s.defaultValue || Et.defaultProps.defaultValue, e = Le(this.min, this.max, t), i = Vs(this.min, this.max, t), a = Os(t), o = Ps(e, i, a), l = ge(
|
|
5103
|
+
y[s.defaultActiveView],
|
|
5104
5104
|
this.bottomView,
|
|
5105
5105
|
this.topView
|
|
5106
5106
|
), c = K(
|
|
5107
|
-
s.focusedDate ||
|
|
5107
|
+
s.focusedDate || o || U(),
|
|
5108
5108
|
this.min,
|
|
5109
5109
|
this.max
|
|
5110
5110
|
);
|
|
@@ -5113,7 +5113,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5113
5113
|
activeView: l,
|
|
5114
5114
|
focusedDate: c,
|
|
5115
5115
|
navigateDate: c
|
|
5116
|
-
}, this.activeRangeEnd =
|
|
5116
|
+
}, this.activeRangeEnd = oa(a, e), this.bus = new zs(this.handleViewChange), this.navigation = new qs(this.bus), this.calculateFocusFromValue = !1, this.lastView = l, this.lastViewsCount = this.props.views || At.defaultProps.views;
|
|
5117
5117
|
}
|
|
5118
5118
|
get wrapperID() {
|
|
5119
5119
|
return this.props.id + "-wrapper-id";
|
|
@@ -5146,10 +5146,10 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5146
5146
|
return C(this.props.max !== void 0 ? this.props.max : Et.defaultProps.max);
|
|
5147
5147
|
}
|
|
5148
5148
|
get bottomView() {
|
|
5149
|
-
return
|
|
5149
|
+
return y[this.props.bottomView !== void 0 ? this.props.bottomView : Et.defaultProps.bottomView];
|
|
5150
5150
|
}
|
|
5151
5151
|
get topView() {
|
|
5152
|
-
return
|
|
5152
|
+
return y[this.props.topView !== void 0 ? this.props.topView : Et.defaultProps.topView];
|
|
5153
5153
|
}
|
|
5154
5154
|
get activeRange() {
|
|
5155
5155
|
return this.props.activeRangeEnd !== void 0 ? this.props.activeRangeEnd : this.activeRangeEnd;
|
|
@@ -5169,7 +5169,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5169
5169
|
componentDidUpdate() {
|
|
5170
5170
|
this.calendarViewList && (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)();
|
|
5171
5171
|
const s = Le(this.min, this.max, this.value);
|
|
5172
|
-
this.calculateFocusFromValue = !!(this.selectedDate && s && this.selectedDate.getTime() && s.getTime()), this.lastView = this.state.activeView, this.lastViewsCount = this.props.views ||
|
|
5172
|
+
this.calculateFocusFromValue = !!(this.selectedDate && s && this.selectedDate.getTime() && s.getTime()), this.lastView = this.state.activeView, this.lastViewsCount = this.props.views || At.defaultProps.views;
|
|
5173
5173
|
}
|
|
5174
5174
|
/**
|
|
5175
5175
|
* @hidden
|
|
@@ -5190,13 +5190,13 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5190
5190
|
"k-disabled": this.props.disabled
|
|
5191
5191
|
},
|
|
5192
5192
|
this.props.className
|
|
5193
|
-
), i = this.rangeWithFocused(this.selectedRange, this.focusedDate), a = this.localization.toLanguageString(
|
|
5193
|
+
), i = this.rangeWithFocused(this.selectedRange, this.focusedDate), a = this.localization.toLanguageString(Ae, T[Ae]), o = this.localization.toLanguageString(ze, T[ze]), l = !this.canNavigate(b.PrevView), c = !this.canNavigate(b.NextView), h = { "aria-disabled": l }, u = { "aria-disabled": c }, d = this.lastView !== s, p = this.dates && this.isInMonth(this.state.navigateDate, this.dates[0]), m = this.lastViewsCount !== this.props.views;
|
|
5194
5194
|
(!p || d || m) && (this.dates = this.service.datesList(
|
|
5195
5195
|
this.state.navigateDate,
|
|
5196
|
-
this.props.views ||
|
|
5196
|
+
this.props.views || At.defaultProps.views
|
|
5197
5197
|
));
|
|
5198
5198
|
const f = v(this.dates && this.dates[0] ? this.dates[0] : U());
|
|
5199
|
-
return /* @__PURE__ */
|
|
5199
|
+
return /* @__PURE__ */ r.createElement(
|
|
5200
5200
|
"div",
|
|
5201
5201
|
{
|
|
5202
5202
|
ref: (S) => {
|
|
@@ -5215,7 +5215,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5215
5215
|
"aria-disabled": this.props.disabled,
|
|
5216
5216
|
dir: this.props.dir
|
|
5217
5217
|
},
|
|
5218
|
-
/* @__PURE__ */
|
|
5218
|
+
/* @__PURE__ */ r.createElement(
|
|
5219
5219
|
Zt,
|
|
5220
5220
|
{
|
|
5221
5221
|
key: `.kendo.calendar.header.${f.getTime()}`,
|
|
@@ -5228,7 +5228,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5228
5228
|
service: this.service,
|
|
5229
5229
|
headerTitle: this.props.headerTitle,
|
|
5230
5230
|
verticalView: this.props.mobileMode,
|
|
5231
|
-
commands: /* @__PURE__ */
|
|
5231
|
+
commands: /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
5232
5232
|
N,
|
|
5233
5233
|
{
|
|
5234
5234
|
type: "button",
|
|
@@ -5241,7 +5241,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5241
5241
|
onClick: this.handlePrevButtonClick,
|
|
5242
5242
|
...h
|
|
5243
5243
|
}
|
|
5244
|
-
), /* @__PURE__ */
|
|
5244
|
+
), /* @__PURE__ */ r.createElement(
|
|
5245
5245
|
Gt,
|
|
5246
5246
|
{
|
|
5247
5247
|
min: this.min,
|
|
@@ -5249,7 +5249,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5249
5249
|
onClick: this.handleTodayClick,
|
|
5250
5250
|
disabled: !this.todayIsInRange
|
|
5251
5251
|
}
|
|
5252
|
-
), /* @__PURE__ */
|
|
5252
|
+
), /* @__PURE__ */ r.createElement(
|
|
5253
5253
|
N,
|
|
5254
5254
|
{
|
|
5255
5255
|
type: "button",
|
|
@@ -5257,7 +5257,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5257
5257
|
icon: this.isRtl ? "chevron-left" : "chevron-right",
|
|
5258
5258
|
svgIcon: this.isRtl ? ws : vs,
|
|
5259
5259
|
fillMode: "flat",
|
|
5260
|
-
title:
|
|
5260
|
+
title: o,
|
|
5261
5261
|
disabled: c,
|
|
5262
5262
|
onClick: this.handleNextButtonClick,
|
|
5263
5263
|
...u
|
|
@@ -5265,8 +5265,8 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5265
5265
|
))
|
|
5266
5266
|
}
|
|
5267
5267
|
),
|
|
5268
|
-
/* @__PURE__ */
|
|
5269
|
-
|
|
5268
|
+
/* @__PURE__ */ r.createElement(
|
|
5269
|
+
At,
|
|
5270
5270
|
{
|
|
5271
5271
|
ref: (S) => {
|
|
5272
5272
|
this.calendarViewList = S;
|
|
@@ -5301,20 +5301,20 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
|
|
|
5301
5301
|
return !!t && fe(t) <= s && s <= Ot(t);
|
|
5302
5302
|
}
|
|
5303
5303
|
};
|
|
5304
|
-
let
|
|
5305
|
-
|
|
5306
|
-
|
|
5304
|
+
let rt = Et;
|
|
5305
|
+
rt.displayName = "MultiViewCalendar";
|
|
5306
|
+
rt.propTypes = {
|
|
5307
5307
|
activeRangeEnd: n.oneOf(["start", "end"]),
|
|
5308
5308
|
allowReverse: n.bool,
|
|
5309
5309
|
bottomView: n.oneOf(["month", "year", "decade", "century"]),
|
|
5310
5310
|
className: n.string,
|
|
5311
5311
|
defaultActiveView: n.oneOf(["month", "year", "decade", "century"]),
|
|
5312
5312
|
defaultValue: n.oneOfType([
|
|
5313
|
-
|
|
5313
|
+
ot(n.instanceOf(Date)),
|
|
5314
5314
|
n.arrayOf(n.instanceOf(Date)),
|
|
5315
5315
|
n.shape({
|
|
5316
|
-
start:
|
|
5317
|
-
end:
|
|
5316
|
+
start: ot(n.instanceOf(Date)),
|
|
5317
|
+
end: ot(n.instanceOf(Date))
|
|
5318
5318
|
})
|
|
5319
5319
|
]),
|
|
5320
5320
|
disabled: n.bool,
|
|
@@ -5331,11 +5331,11 @@ ot.propTypes = {
|
|
|
5331
5331
|
tabIndex: n.number,
|
|
5332
5332
|
topView: n.oneOf(["month", "year", "decade", "century"]),
|
|
5333
5333
|
value: n.oneOfType([
|
|
5334
|
-
|
|
5334
|
+
ot(n.instanceOf(Date)),
|
|
5335
5335
|
n.arrayOf(n.instanceOf(Date)),
|
|
5336
5336
|
n.shape({
|
|
5337
|
-
start:
|
|
5338
|
-
end:
|
|
5337
|
+
start: ot(n.instanceOf(Date).isRequired),
|
|
5338
|
+
end: ot(n.instanceOf(Date).isRequired)
|
|
5339
5339
|
})
|
|
5340
5340
|
]),
|
|
5341
5341
|
views: (s, t, e) => {
|
|
@@ -5347,7 +5347,7 @@ ot.propTypes = {
|
|
|
5347
5347
|
weekNumber: n.bool,
|
|
5348
5348
|
dir: n.string
|
|
5349
5349
|
};
|
|
5350
|
-
|
|
5350
|
+
rt.defaultProps = {
|
|
5351
5351
|
disabled: !1,
|
|
5352
5352
|
min: ut,
|
|
5353
5353
|
max: dt,
|
|
@@ -5360,13 +5360,13 @@ ot.defaultProps = {
|
|
|
5360
5360
|
views: 2,
|
|
5361
5361
|
allowReverse: !1
|
|
5362
5362
|
};
|
|
5363
|
-
const
|
|
5363
|
+
const ra = kt(), Qs = yt(St(ra, rt));
|
|
5364
5364
|
Qs.displayName = "KendoReactMultiViewCalendar";
|
|
5365
|
-
ft(
|
|
5366
|
-
at(
|
|
5367
|
-
const zt = class extends
|
|
5365
|
+
ft(rt);
|
|
5366
|
+
at(rt);
|
|
5367
|
+
const zt = class extends r.Component {
|
|
5368
5368
|
constructor(s) {
|
|
5369
|
-
super(s), this._element = null, this._calendar = null, this._startDateInput =
|
|
5369
|
+
super(s), this._element = null, this._calendar = null, this._startDateInput = r.createRef(), this._endDateInput = r.createRef(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.focus = () => {
|
|
5370
5370
|
this.startDateInput && this.startDateInput.focus();
|
|
5371
5371
|
}, this.setCalendarRef = (t) => {
|
|
5372
5372
|
this._calendar = t;
|
|
@@ -5387,7 +5387,7 @@ const zt = class extends o.Component {
|
|
|
5387
5387
|
dir: this.props.dir,
|
|
5388
5388
|
onChange: this.handleCalendarChange
|
|
5389
5389
|
};
|
|
5390
|
-
return this.props.calendar ? /* @__PURE__ */
|
|
5390
|
+
return this.props.calendar ? /* @__PURE__ */ r.createElement(this.props.calendar, { ...e }) : /* @__PURE__ */ r.createElement(Qs, { ...e, ref: this.setCalendarRef });
|
|
5391
5391
|
}, this.renderPopup = () => {
|
|
5392
5392
|
const t = {
|
|
5393
5393
|
popupClass: "k-daterangepicker-popup",
|
|
@@ -5405,7 +5405,7 @@ const zt = class extends o.Component {
|
|
|
5405
5405
|
...this.props.popupSettings,
|
|
5406
5406
|
show: this.show
|
|
5407
5407
|
};
|
|
5408
|
-
return this.props.popup ? /* @__PURE__ */
|
|
5408
|
+
return this.props.popup ? /* @__PURE__ */ r.createElement(this.props.popup, { ...t }, this.renderCalendar()) : /* @__PURE__ */ r.createElement(be, { ...t }, this.renderCalendar());
|
|
5409
5409
|
}, this.renderAdaptivePopup = () => {
|
|
5410
5410
|
const { windowWidth: t = 0 } = this.state, e = {
|
|
5411
5411
|
expand: this.show,
|
|
@@ -5419,7 +5419,7 @@ const zt = class extends o.Component {
|
|
|
5419
5419
|
onApply: this.handleBlur
|
|
5420
5420
|
}
|
|
5421
5421
|
};
|
|
5422
|
-
return /* @__PURE__ */
|
|
5422
|
+
return /* @__PURE__ */ r.createElement(Se, { ...e }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, /* @__PURE__ */ r.createElement("div", { className: "k-scrollable-wrap" }, this.renderCalendar())));
|
|
5423
5423
|
}, this.handleReverseClick = (t) => {
|
|
5424
5424
|
const e = {
|
|
5425
5425
|
start: this.value.end,
|
|
@@ -5474,7 +5474,7 @@ const zt = class extends o.Component {
|
|
|
5474
5474
|
this.handleChange(e, t);
|
|
5475
5475
|
}, this.handleKeyDown = (t) => {
|
|
5476
5476
|
const { keyCode: e, altKey: i } = t;
|
|
5477
|
-
e ===
|
|
5477
|
+
e === k.esc ? (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1)) : i && e === k.down ? (t.preventDefault(), this.shouldFocusCalendar = !0, this.setShow(!0), this.focusCalendarElement()) : i && e === k.up && (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1));
|
|
5478
5478
|
}, this.handleChange = (t, e) => {
|
|
5479
5479
|
this.setState({ value: t }), this.valueDuringOnChange = t;
|
|
5480
5480
|
const { onChange: i } = this.props;
|
|
@@ -5589,9 +5589,9 @@ const zt = class extends o.Component {
|
|
|
5589
5589
|
"k-disabled": this.props.disabled
|
|
5590
5590
|
},
|
|
5591
5591
|
this.props.className
|
|
5592
|
-
),
|
|
5592
|
+
), o = this.localizationService.toLanguageString(Ue, T[Ue]), l = this.localizationService.toLanguageString($e, T[$e]), c = this.localizationService.toLanguageString(Ye, T[Ye]), h = {
|
|
5593
5593
|
disableSelection: this.mobileMode && !0,
|
|
5594
|
-
label:
|
|
5594
|
+
label: o,
|
|
5595
5595
|
format: this.props.format,
|
|
5596
5596
|
min: this.min,
|
|
5597
5597
|
max: this.max,
|
|
@@ -5617,7 +5617,7 @@ const zt = class extends o.Component {
|
|
|
5617
5617
|
...this.props.endDateInputSettings,
|
|
5618
5618
|
value: t.end,
|
|
5619
5619
|
onChange: this.handleEndChange
|
|
5620
|
-
}, d = /* @__PURE__ */
|
|
5620
|
+
}, d = /* @__PURE__ */ r.createElement(
|
|
5621
5621
|
N,
|
|
5622
5622
|
{
|
|
5623
5623
|
type: "button",
|
|
@@ -5629,9 +5629,9 @@ const zt = class extends o.Component {
|
|
|
5629
5629
|
"aria-controls": e + " " + i,
|
|
5630
5630
|
"aria-label": q(this).toLanguageString(Ht, T[Ht])
|
|
5631
5631
|
},
|
|
5632
|
-
/* @__PURE__ */
|
|
5632
|
+
/* @__PURE__ */ r.createElement(ei, { style: { transform: "rotate(90deg)" }, name: "arrows-swap", icon: hi })
|
|
5633
5633
|
);
|
|
5634
|
-
return /* @__PURE__ */
|
|
5634
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
5635
5635
|
"span",
|
|
5636
5636
|
{
|
|
5637
5637
|
ref: (p) => {
|
|
@@ -5649,8 +5649,8 @@ const zt = class extends o.Component {
|
|
|
5649
5649
|
onBlur: this.mobileMode ? void 0 : this.handleBlur,
|
|
5650
5650
|
dir: this.props.dir
|
|
5651
5651
|
},
|
|
5652
|
-
this.props.startDateInput ? /* @__PURE__ */
|
|
5653
|
-
|
|
5652
|
+
this.props.startDateInput ? /* @__PURE__ */ r.createElement(this.props.startDateInput, { ...h }) : /* @__PURE__ */ r.createElement(
|
|
5653
|
+
Dt,
|
|
5654
5654
|
{
|
|
5655
5655
|
...h,
|
|
5656
5656
|
ref: this._startDateInput,
|
|
@@ -5660,8 +5660,8 @@ const zt = class extends o.Component {
|
|
|
5660
5660
|
}
|
|
5661
5661
|
),
|
|
5662
5662
|
(this.props.allowReverse || this.props.calendarSettings && this.props.calendarSettings.allowReverse) && this.props.swapButton ? d : c,
|
|
5663
|
-
this.props.endDateInput ? /* @__PURE__ */
|
|
5664
|
-
|
|
5663
|
+
this.props.endDateInput ? /* @__PURE__ */ r.createElement(this.props.endDateInput, { ...u }) : /* @__PURE__ */ r.createElement(
|
|
5664
|
+
Dt,
|
|
5665
5665
|
{
|
|
5666
5666
|
...u,
|
|
5667
5667
|
ref: this._endDateInput,
|
|
@@ -5703,8 +5703,8 @@ te.propTypes = {
|
|
|
5703
5703
|
className: n.string,
|
|
5704
5704
|
defaultShow: n.bool,
|
|
5705
5705
|
defaultValue: n.shape({
|
|
5706
|
-
start:
|
|
5707
|
-
end:
|
|
5706
|
+
start: ot(n.instanceOf(Date).isRequired),
|
|
5707
|
+
end: ot(n.instanceOf(Date).isRequired)
|
|
5708
5708
|
}),
|
|
5709
5709
|
disabled: n.bool,
|
|
5710
5710
|
endDateInputSettings: n.shape(Ct.propTypes),
|
|
@@ -5745,8 +5745,8 @@ te.propTypes = {
|
|
|
5745
5745
|
tabIndex: n.number,
|
|
5746
5746
|
dir: n.string,
|
|
5747
5747
|
value: n.shape({
|
|
5748
|
-
start:
|
|
5749
|
-
end:
|
|
5748
|
+
start: ot(n.instanceOf(Date).isRequired),
|
|
5749
|
+
end: ot(n.instanceOf(Date).isRequired)
|
|
5750
5750
|
})
|
|
5751
5751
|
};
|
|
5752
5752
|
te.defaultProps = {
|
|
@@ -5759,12 +5759,12 @@ te.defaultProps = {
|
|
|
5759
5759
|
min: ut,
|
|
5760
5760
|
swapButton: !1
|
|
5761
5761
|
};
|
|
5762
|
-
const la =
|
|
5762
|
+
const la = kt(), ha = yt(St(la, te));
|
|
5763
5763
|
ha.displayName = "KendoReactDateRangePicker";
|
|
5764
5764
|
at(te);
|
|
5765
|
-
class ms extends
|
|
5765
|
+
class ms extends r.Component {
|
|
5766
5766
|
constructor(t) {
|
|
5767
|
-
super(t), this._calendar = null, this._timePart = null, this._cancelButton = null, this._acceptButton = null, this._calendarWrap = null, this.shouldFocusPart = !1, this.focus = (e) => {
|
|
5767
|
+
super(t), this._calendar = null, this._timePart = null, this._cancelButton = null, this._acceptButton = null, this._dateButtonRef = null, this._calendarWrap = null, this.shouldFocusPart = !1, this.focus = (e) => {
|
|
5768
5768
|
Promise.resolve().then(() => {
|
|
5769
5769
|
this.state.tab === "time" && this._timePart && this._timePart.focus(e);
|
|
5770
5770
|
const i = this.calendarElement();
|
|
@@ -5777,30 +5777,32 @@ class ms extends o.Component {
|
|
|
5777
5777
|
this.shouldFocusPart = !0, this.setState({ tab: i });
|
|
5778
5778
|
}, this.dateTimeFooter = () => {
|
|
5779
5779
|
const { cancelButton: e } = this.props, i = this.localizationService.toLanguageString($t, T[$t]), a = this.localizationService.toLanguageString(Yt, T[Yt]);
|
|
5780
|
-
return /* @__PURE__ */
|
|
5780
|
+
return /* @__PURE__ */ r.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched" }, e && /* @__PURE__ */ r.createElement(
|
|
5781
5781
|
N,
|
|
5782
5782
|
{
|
|
5783
5783
|
type: "button",
|
|
5784
|
-
ref: (
|
|
5785
|
-
this._cancelButton =
|
|
5784
|
+
ref: (o) => {
|
|
5785
|
+
this._cancelButton = o;
|
|
5786
5786
|
},
|
|
5787
5787
|
className: "k-time-cancel",
|
|
5788
5788
|
onClick: this.handleReject,
|
|
5789
|
+
onKeyDown: this.handleCancelKeyDown,
|
|
5789
5790
|
title: i,
|
|
5790
5791
|
"aria-label": i
|
|
5791
5792
|
},
|
|
5792
5793
|
i
|
|
5793
|
-
), /* @__PURE__ */
|
|
5794
|
+
), /* @__PURE__ */ r.createElement(
|
|
5794
5795
|
N,
|
|
5795
5796
|
{
|
|
5796
5797
|
type: "button",
|
|
5797
5798
|
themeColor: "primary",
|
|
5798
|
-
ref: (
|
|
5799
|
-
this._acceptButton =
|
|
5799
|
+
ref: (o) => {
|
|
5800
|
+
this._acceptButton = o;
|
|
5800
5801
|
},
|
|
5801
5802
|
className: "k-time-accept",
|
|
5802
5803
|
disabled: !this.hasDateValue,
|
|
5803
5804
|
onClick: this.handleAccept,
|
|
5805
|
+
onKeyDown: this.handleSetKeyDown,
|
|
5804
5806
|
title: a,
|
|
5805
5807
|
"aria-label": a
|
|
5806
5808
|
},
|
|
@@ -5840,23 +5842,37 @@ class ms extends o.Component {
|
|
|
5840
5842
|
e.stopPropagation(), this.move("right");
|
|
5841
5843
|
}, this.handleKeyDown = (e) => {
|
|
5842
5844
|
const { keyCode: i, altKey: a } = e;
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
case y.left:
|
|
5848
|
-
if (!a)
|
|
5845
|
+
if (!this.props.disabled)
|
|
5846
|
+
switch (i) {
|
|
5847
|
+
case k.enter:
|
|
5848
|
+
!this.hasActiveButton() && this.hasDateValue && this.handleAccept(e);
|
|
5849
5849
|
return;
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5850
|
+
case k.left:
|
|
5851
|
+
if (!a)
|
|
5852
|
+
return;
|
|
5853
|
+
this.move("left");
|
|
5854
5854
|
return;
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5855
|
+
case k.right:
|
|
5856
|
+
if (!a)
|
|
5857
|
+
return;
|
|
5858
|
+
this.move("right");
|
|
5859
|
+
return;
|
|
5860
|
+
default:
|
|
5861
|
+
return;
|
|
5862
|
+
}
|
|
5863
|
+
}, this.handleCancelKeyDown = (e) => {
|
|
5864
|
+
const { keyCode: i } = e;
|
|
5865
|
+
i === k.tab && this._dateButtonRef && this._dateButtonRef.element && !this.hasDateValue && (e.preventDefault(), this._dateButtonRef.element.focus());
|
|
5866
|
+
}, this.handleSetKeyDown = (e) => {
|
|
5867
|
+
const { keyCode: i } = e;
|
|
5868
|
+
i === k.tab && this._dateButtonRef && this._dateButtonRef.element && (e.preventDefault(), this._dateButtonRef.element.focus());
|
|
5869
|
+
}, this.handleDateKeyDown = (e) => {
|
|
5870
|
+
var o, l, c, h;
|
|
5871
|
+
const { keyCode: i, shiftKey: a } = e;
|
|
5872
|
+
a && i === k.tab && (e.stopPropagation(), this.hasDateValue ? (h = (c = this._acceptButton) == null ? void 0 : c.element) == null || h.focus() : (l = (o = this._cancelButton) == null ? void 0 : o.element) == null || l.focus()), i === k.enter && (e.stopPropagation(), this.move("left"));
|
|
5873
|
+
}, this.handleTimeKeyDown = (e) => {
|
|
5874
|
+
const { keyCode: i } = e;
|
|
5875
|
+
i === k.enter && (e.stopPropagation(), this.move("right"));
|
|
5860
5876
|
}, this.handleTimePartMount = (e) => {
|
|
5861
5877
|
this.setState({ timeValue: e });
|
|
5862
5878
|
}, this.state = {
|
|
@@ -5886,7 +5902,7 @@ class ms extends o.Component {
|
|
|
5886
5902
|
min: e,
|
|
5887
5903
|
max: i,
|
|
5888
5904
|
weekNumber: a,
|
|
5889
|
-
focusedDate:
|
|
5905
|
+
focusedDate: o,
|
|
5890
5906
|
format: l,
|
|
5891
5907
|
mobileMode: c,
|
|
5892
5908
|
footerActions: h
|
|
@@ -5901,40 +5917,44 @@ class ms extends o.Component {
|
|
|
5901
5917
|
min: e,
|
|
5902
5918
|
max: i,
|
|
5903
5919
|
weekNumber: a,
|
|
5904
|
-
focusedDate:
|
|
5920
|
+
focusedDate: o,
|
|
5905
5921
|
disabled: t || this.state.tab !== "date",
|
|
5906
5922
|
value: this.state.dateValue,
|
|
5907
5923
|
onChange: this.handleCalendarValueChange,
|
|
5908
5924
|
navigation: !1,
|
|
5925
|
+
tabIndex: t || this.state.tab !== "date" ? -1 : void 0,
|
|
5909
5926
|
mobileMode: c
|
|
5910
5927
|
};
|
|
5911
|
-
return /* @__PURE__ */
|
|
5928
|
+
return /* @__PURE__ */ r.createElement(
|
|
5912
5929
|
"div",
|
|
5913
5930
|
{
|
|
5914
5931
|
onKeyDown: this.handleKeyDown,
|
|
5915
5932
|
className: u,
|
|
5916
5933
|
tabIndex: -1
|
|
5917
5934
|
},
|
|
5918
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ r.createElement("div", { className: "k-datetime-buttongroup" }, /* @__PURE__ */ r.createElement(ni, { width: "100%" }, /* @__PURE__ */ r.createElement(
|
|
5919
5936
|
N,
|
|
5920
5937
|
{
|
|
5938
|
+
ref: (f) => this._dateButtonRef = f,
|
|
5921
5939
|
type: "button",
|
|
5922
5940
|
selected: this.state.tab === "date",
|
|
5923
5941
|
togglable: !0,
|
|
5924
|
-
onClick: this.handleDateClick
|
|
5942
|
+
onClick: this.handleDateClick,
|
|
5943
|
+
onKeyDown: this.handleDateKeyDown
|
|
5925
5944
|
},
|
|
5926
5945
|
d
|
|
5927
|
-
), /* @__PURE__ */
|
|
5946
|
+
), /* @__PURE__ */ r.createElement(
|
|
5928
5947
|
N,
|
|
5929
5948
|
{
|
|
5930
5949
|
type: "button",
|
|
5931
5950
|
selected: this.state.tab === "time",
|
|
5932
5951
|
togglable: !0,
|
|
5933
|
-
onClick: this.handleTimeClick
|
|
5952
|
+
onClick: this.handleTimeClick,
|
|
5953
|
+
onKeyDown: this.handleTimeKeyDown
|
|
5934
5954
|
},
|
|
5935
5955
|
p
|
|
5936
5956
|
))),
|
|
5937
|
-
/* @__PURE__ */
|
|
5957
|
+
/* @__PURE__ */ r.createElement("div", { className: "k-datetime-selector" }, /* @__PURE__ */ r.createElement("div", { className: "k-datetime-calendar-wrap", ref: (f) => this._calendarWrap = f }, this.props.calendar ? /* @__PURE__ */ r.createElement(this.props.calendar, { ...m }) : /* @__PURE__ */ r.createElement(
|
|
5938
5958
|
as,
|
|
5939
5959
|
{
|
|
5940
5960
|
ref: (f) => {
|
|
@@ -5942,7 +5962,7 @@ class ms extends o.Component {
|
|
|
5942
5962
|
},
|
|
5943
5963
|
...m
|
|
5944
5964
|
}
|
|
5945
|
-
)), /* @__PURE__ */
|
|
5965
|
+
)), /* @__PURE__ */ r.createElement("div", { className: "k-datetime-time-wrap" }, /* @__PURE__ */ r.createElement("div", { className: c ? "k-reset k-timeselector-lg k-timeselector" : "" }, /* @__PURE__ */ r.createElement(
|
|
5946
5966
|
_t,
|
|
5947
5967
|
{
|
|
5948
5968
|
key: 1,
|
|
@@ -5990,9 +6010,9 @@ ms.defaultProps = {
|
|
|
5990
6010
|
footerActions: !0
|
|
5991
6011
|
};
|
|
5992
6012
|
at(ms);
|
|
5993
|
-
const et = class extends
|
|
6013
|
+
const et = class extends r.Component {
|
|
5994
6014
|
constructor(s) {
|
|
5995
|
-
super(s), this._element = null, this._dateInput =
|
|
6015
|
+
super(s), this._element = null, this._dateInput = r.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
|
|
5996
6016
|
const t = this.dateInputElement();
|
|
5997
6017
|
t && t.focus();
|
|
5998
6018
|
}, this.renderPicker = () => {
|
|
@@ -6001,12 +6021,12 @@ const et = class extends o.Component {
|
|
|
6001
6021
|
minTime: e,
|
|
6002
6022
|
maxTime: i,
|
|
6003
6023
|
format: a,
|
|
6004
|
-
calendar:
|
|
6024
|
+
calendar: o,
|
|
6005
6025
|
cancelButton: l,
|
|
6006
6026
|
weekNumber: c,
|
|
6007
6027
|
focusedDate: h
|
|
6008
6028
|
} = this.props;
|
|
6009
|
-
return /* @__PURE__ */
|
|
6029
|
+
return /* @__PURE__ */ r.createElement(
|
|
6010
6030
|
ms,
|
|
6011
6031
|
{
|
|
6012
6032
|
ref: (u) => {
|
|
@@ -6025,7 +6045,7 @@ const et = class extends o.Component {
|
|
|
6025
6045
|
maxTime: i,
|
|
6026
6046
|
focusedDate: h,
|
|
6027
6047
|
format: a,
|
|
6028
|
-
calendar:
|
|
6048
|
+
calendar: o,
|
|
6029
6049
|
mobileMode: this.mobileMode,
|
|
6030
6050
|
footerActions: !this.mobileMode
|
|
6031
6051
|
}
|
|
@@ -6038,18 +6058,18 @@ const et = class extends o.Component {
|
|
|
6038
6058
|
windowWidth: t,
|
|
6039
6059
|
footer: {
|
|
6040
6060
|
cancelText: e,
|
|
6041
|
-
onCancel: (
|
|
6061
|
+
onCancel: (o) => {
|
|
6042
6062
|
var l;
|
|
6043
|
-
return (l = this._dateTimeSelector) == null ? void 0 : l.handleReject(
|
|
6063
|
+
return (l = this._dateTimeSelector) == null ? void 0 : l.handleReject(o);
|
|
6044
6064
|
},
|
|
6045
6065
|
applyText: i,
|
|
6046
|
-
onApply: (
|
|
6066
|
+
onApply: (o) => {
|
|
6047
6067
|
var l;
|
|
6048
|
-
return (l = this._dateTimeSelector) == null ? void 0 : l.handleAccept(
|
|
6068
|
+
return (l = this._dateTimeSelector) == null ? void 0 : l.handleAccept(o);
|
|
6049
6069
|
}
|
|
6050
6070
|
}
|
|
6051
6071
|
};
|
|
6052
|
-
return /* @__PURE__ */
|
|
6072
|
+
return /* @__PURE__ */ r.createElement(Se, { ...a }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, this.renderPicker()));
|
|
6053
6073
|
}, this.handleReject = () => {
|
|
6054
6074
|
this.shouldFocusDateInput = !0, this.setShow(!1);
|
|
6055
6075
|
}, this.handleValueChange = (t) => {
|
|
@@ -6074,11 +6094,11 @@ const et = class extends o.Component {
|
|
|
6074
6094
|
t.preventDefault();
|
|
6075
6095
|
}, this.handleKeyDown = (t) => {
|
|
6076
6096
|
const { altKey: e, keyCode: i } = t;
|
|
6077
|
-
if (i ===
|
|
6097
|
+
if (i === k.esc) {
|
|
6078
6098
|
this.shouldFocusDateInput = !0, this.setShow(!1);
|
|
6079
6099
|
return;
|
|
6080
6100
|
}
|
|
6081
|
-
e && (i ===
|
|
6101
|
+
e && (i === k.up || i === k.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === k.up, this.setShow(i === k.down));
|
|
6082
6102
|
}, this.dateInputElement = () => this.dateInput && this.dateInput.element || this.element && this.element.querySelector(".k-dateinput > input.k-input-inner"), Pt(Rt), this.state = {
|
|
6083
6103
|
value: this.props.defaultValue || et.defaultProps.defaultValue,
|
|
6084
6104
|
show: this.props.defaultShow || et.defaultProps.defaultShow,
|
|
@@ -6197,7 +6217,7 @@ const et = class extends o.Component {
|
|
|
6197
6217
|
fillMode: e = et.defaultProps.fillMode,
|
|
6198
6218
|
disabled: i,
|
|
6199
6219
|
tabIndex: a,
|
|
6200
|
-
title:
|
|
6220
|
+
title: o,
|
|
6201
6221
|
id: l,
|
|
6202
6222
|
format: c,
|
|
6203
6223
|
formatPlaceholder: h,
|
|
@@ -6214,14 +6234,14 @@ const et = class extends o.Component {
|
|
|
6214
6234
|
ariaLabelledBy: g,
|
|
6215
6235
|
ariaDescribedBy: H,
|
|
6216
6236
|
popup: V = be
|
|
6217
|
-
} = this.props, R = !this.validityStyles || this.validity.valid,
|
|
6237
|
+
} = this.props, R = !this.validityStyles || this.validity.valid, B = {
|
|
6218
6238
|
id: l,
|
|
6219
6239
|
ariaLabelledBy: g,
|
|
6220
6240
|
ariaDescribedBy: H,
|
|
6221
6241
|
format: c,
|
|
6222
6242
|
formatPlaceholder: h,
|
|
6223
6243
|
disabled: i,
|
|
6224
|
-
title:
|
|
6244
|
+
title: o,
|
|
6225
6245
|
validityStyles: M,
|
|
6226
6246
|
validationMessage: S,
|
|
6227
6247
|
required: I,
|
|
@@ -6241,7 +6261,7 @@ const et = class extends o.Component {
|
|
|
6241
6261
|
size: null,
|
|
6242
6262
|
fillMode: null,
|
|
6243
6263
|
rounded: null
|
|
6244
|
-
}, x = /* @__PURE__ */
|
|
6264
|
+
}, x = /* @__PURE__ */ r.createElement(
|
|
6245
6265
|
we,
|
|
6246
6266
|
{
|
|
6247
6267
|
onFocus: this.handleFocus,
|
|
@@ -6249,7 +6269,7 @@ const et = class extends o.Component {
|
|
|
6249
6269
|
onSyncFocus: this.props.onFocus,
|
|
6250
6270
|
onSyncBlur: this.props.onBlur
|
|
6251
6271
|
},
|
|
6252
|
-
({ onFocus: O, onBlur: tt }) => /* @__PURE__ */
|
|
6272
|
+
({ onFocus: O, onBlur: tt }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
6253
6273
|
"div",
|
|
6254
6274
|
{
|
|
6255
6275
|
ref: (j) => {
|
|
@@ -6262,9 +6282,9 @@ const et = class extends o.Component {
|
|
|
6262
6282
|
[`k-input-${mt.sizeMap[s] || s}`]: s,
|
|
6263
6283
|
[`k-rounded-${mt.roundedMap[t] || t}`]: t,
|
|
6264
6284
|
[`k-input-${e}`]: e,
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6285
|
+
"k-invalid": !R,
|
|
6286
|
+
"k-required": this.required,
|
|
6287
|
+
"k-disabled": this.props.disabled
|
|
6268
6288
|
},
|
|
6269
6289
|
p
|
|
6270
6290
|
),
|
|
@@ -6274,17 +6294,17 @@ const et = class extends o.Component {
|
|
|
6274
6294
|
onBlur: tt,
|
|
6275
6295
|
onClick: this.mobileMode ? this.handleDateIconClick : void 0
|
|
6276
6296
|
},
|
|
6277
|
-
/* @__PURE__ */
|
|
6297
|
+
/* @__PURE__ */ r.createElement(
|
|
6278
6298
|
this.dateInputComp,
|
|
6279
6299
|
{
|
|
6280
6300
|
_ref: this._dateInput,
|
|
6281
6301
|
ariaRole: "combobox",
|
|
6282
6302
|
ariaControls: this._popupId,
|
|
6283
6303
|
readonly: this.mobileMode,
|
|
6284
|
-
...
|
|
6304
|
+
...B
|
|
6285
6305
|
}
|
|
6286
6306
|
),
|
|
6287
|
-
/* @__PURE__ */
|
|
6307
|
+
/* @__PURE__ */ r.createElement(
|
|
6288
6308
|
N,
|
|
6289
6309
|
{
|
|
6290
6310
|
tabIndex: -1,
|
|
@@ -6293,13 +6313,13 @@ const et = class extends o.Component {
|
|
|
6293
6313
|
svgIcon: Fs,
|
|
6294
6314
|
onMouseDown: this.handleIconMouseDown,
|
|
6295
6315
|
onClick: this.mobileMode ? void 0 : this.handleDateIconClick,
|
|
6296
|
-
title: q(this).toLanguageString(
|
|
6316
|
+
title: q(this).toLanguageString(Bt, T[Bt]),
|
|
6297
6317
|
className: "k-input-button",
|
|
6298
6318
|
rounded: null,
|
|
6299
|
-
"aria-label": q(this).toLanguageString(
|
|
6319
|
+
"aria-label": q(this).toLanguageString(Bt, T[Bt])
|
|
6300
6320
|
}
|
|
6301
6321
|
),
|
|
6302
|
-
/* @__PURE__ */
|
|
6322
|
+
/* @__PURE__ */ r.createElement(
|
|
6303
6323
|
V,
|
|
6304
6324
|
{
|
|
6305
6325
|
show: this.show,
|
|
@@ -6320,7 +6340,7 @@ const et = class extends o.Component {
|
|
|
6320
6340
|
)
|
|
6321
6341
|
), this.mobileMode && this.renderAdaptivePopup())
|
|
6322
6342
|
);
|
|
6323
|
-
return this.props.label ? /* @__PURE__ */
|
|
6343
|
+
return this.props.label ? /* @__PURE__ */ r.createElement(
|
|
6324
6344
|
cs,
|
|
6325
6345
|
{
|
|
6326
6346
|
dateInput: this._dateInput,
|
|
@@ -6345,7 +6365,7 @@ const et = class extends o.Component {
|
|
|
6345
6365
|
clearTimeout(this.nextTickId), this.nextTickId = window.setTimeout(() => s());
|
|
6346
6366
|
}
|
|
6347
6367
|
calculateMedia(s) {
|
|
6348
|
-
for (
|
|
6368
|
+
for (const t of s)
|
|
6349
6369
|
this.setState({ windowWidth: t.target.clientWidth });
|
|
6350
6370
|
}
|
|
6351
6371
|
};
|
|
@@ -6428,12 +6448,12 @@ ee.defaultProps = {
|
|
|
6428
6448
|
required: !1,
|
|
6429
6449
|
validityStyles: !0,
|
|
6430
6450
|
cancelButton: !0,
|
|
6431
|
-
dateInput:
|
|
6451
|
+
dateInput: Dt,
|
|
6432
6452
|
size: "medium",
|
|
6433
6453
|
rounded: "medium",
|
|
6434
6454
|
fillMode: "solid"
|
|
6435
6455
|
};
|
|
6436
|
-
const ca =
|
|
6456
|
+
const ca = kt(), ua = yt(St(ca, ee));
|
|
6437
6457
|
ua.displayName = "KendoReactDateTimePicker";
|
|
6438
6458
|
at(ee);
|
|
6439
6459
|
export {
|
|
@@ -6444,12 +6464,12 @@ export {
|
|
|
6444
6464
|
tn as CalendarHeaderTitle,
|
|
6445
6465
|
sn as CalendarNavigationItem,
|
|
6446
6466
|
an as CalendarPropsContext,
|
|
6447
|
-
|
|
6467
|
+
y as CalendarViewEnum,
|
|
6448
6468
|
xi as CalendarWeekCell,
|
|
6449
6469
|
bt as CalendarWithoutContext,
|
|
6450
6470
|
Ei as CenturyViewService,
|
|
6451
6471
|
ji as DOMService,
|
|
6452
|
-
|
|
6472
|
+
Dt as DateInput,
|
|
6453
6473
|
Tn as DateInputPropsContext,
|
|
6454
6474
|
Ct as DateInputWithoutContext,
|
|
6455
6475
|
Rn as DatePicker,
|
|
@@ -6465,17 +6485,17 @@ export {
|
|
|
6465
6485
|
Ri as DecadeViewService,
|
|
6466
6486
|
z as EMPTY_SELECTIONRANGE,
|
|
6467
6487
|
Zt as Header,
|
|
6468
|
-
|
|
6488
|
+
At as HorizontalViewList,
|
|
6469
6489
|
Wn as HoursService,
|
|
6470
6490
|
dt as MAX_DATE,
|
|
6471
6491
|
xt as MAX_TIME,
|
|
6472
6492
|
ut as MIN_DATE,
|
|
6473
6493
|
Nt as MIN_TIME,
|
|
6474
6494
|
jn as MinutesService,
|
|
6475
|
-
|
|
6495
|
+
Bi as MonthViewService,
|
|
6476
6496
|
Qs as MultiViewCalendar,
|
|
6477
|
-
|
|
6478
|
-
|
|
6497
|
+
ra as MultiViewCalendarPropsContext,
|
|
6498
|
+
rt as MultiViewCalendarWithoutContext,
|
|
6479
6499
|
qs as NavigationService,
|
|
6480
6500
|
Vn as PickerWrap,
|
|
6481
6501
|
Ji as ScrollSyncService,
|
|
@@ -6503,5 +6523,5 @@ export {
|
|
|
6503
6523
|
Ht as swapStartEnd,
|
|
6504
6524
|
qe as today,
|
|
6505
6525
|
We as toggleCalendar,
|
|
6506
|
-
|
|
6526
|
+
Bt as toggleDateTimeSelector
|
|
6507
6527
|
};
|