@progress/kendo-react-dateinputs 7.0.0-develop.9 → 7.0.1-develop.1

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/index.mjs CHANGED
@@ -2,11 +2,12 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ "use client";
5
6
  import * as o from "react";
6
7
  import * as n from "prop-types";
7
- import { classNames as P, canUseDOM as J, createPropsContext as yt, withPropsContext as St, guid as at, Keys as C, validatePackage as Pt, setScrollbarWidth as fs, getActiveElement as lt, AsyncFocusBlur as we, kendoThemeMaps as ft, noop as Rs, IconWrap as ei } from "@progress/kendo-react-common";
8
- import { getDate as x, cloneDate as v, addDecades as it, addCenturies as qt, firstDecadeOfCentury as oe, lastDecadeOfCentury as He, firstYearOfDecade as st, durationInCenturies as se, addYears as nt, lastYearOfDecade as Ae, 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 bt, isEqual as ct } from "@progress/kendo-date-math";
9
- import { registerForIntl as gt, provideIntlService as ut, registerForLocalization as rt, provideLocalizationService as q } from "@progress/kendo-react-intl";
8
+ import { classNames as P, canUseDOM as J, createPropsContext as Dt, withIdHOC as yt, withPropsContext as St, Keys as C, validatePackage as Pt, setScrollbarWidth as fs, getActiveElement as ot, AsyncFocusBlur as we, kendoThemeMaps as mt, noop as Rs, IconWrap as ei } from "@progress/kendo-react-common";
9
+ import { getDate as x, cloneDate as v, addDecades as it, addCenturies as qt, firstDecadeOfCentury as oe, lastDecadeOfCentury as He, firstYearOfDecade as st, durationInCenturies as se, addYears as nt, lastYearOfDecade as Ae, 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
+ import { registerForIntl as ft, provideIntlService as ct, registerForLocalization as at, provideLocalizationService as q } from "@progress/kendo-react-intl";
10
11
  import { Button as N, ButtonGroup as ni } from "@progress/kendo-react-buttons";
11
12
  import { caretAltUpIcon as ai, caretAltDownIcon as ri, xIcon as oi, calendarIcon as Fs, clockIcon as li, chevronRightIcon as vs, chevronLeftIcon as ws, arrowsSwapIcon as hi } from "@progress/kendo-svg-icons";
12
13
  import { FloatingLabel as Ls } from "@progress/kendo-react-labels";
@@ -16,7 +17,7 @@ const Rt = {
16
17
  name: "@progress/kendo-react-dateinputs",
17
18
  productName: "KendoReact",
18
19
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
19
- publishDate: 1701354669,
20
+ publishDate: 1702313896,
20
21
  version: "",
21
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"
22
23
  }, pi = (s, t, e) => [
@@ -404,11 +405,11 @@ class xi extends o.Component {
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 || {}), D = /* @__PURE__ */ ((s) => (s[s.month = 0] = "month", s[s.year = 1] = "year", s[s.decade = 2] = "decade", s[s.century = 3] = "century", s))(D || {});
406
407
  const z = { start: null, end: null };
407
- function ot(s) {
408
+ function rt(s) {
408
409
  const t = (i, a, r, ...l) => a[r] === null ? null : (i ? s.isRequired : s)(a, r, ...l), e = t.bind(null, !1);
409
410
  return e.isRequired = t.bind(null, !0), e;
410
411
  }
411
- 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), dt = new Date(1900, 0, 1), pt = new Date(2099, 11, 31), Nt = new Date(1980, 0, 1), xt = new Date(1980, 0, 1, 23, 59, 59), W = (s, t) => {
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) => {
412
413
  const e = v(s);
413
414
  return e.setHours(
414
415
  t.getHours(),
@@ -1055,7 +1056,7 @@ let ji = class {
1055
1056
  }, g = (k) => k.querySelector(".k-scrollable"), H = (k) => {
1056
1057
  const _ = g(k);
1057
1058
  return _.className = `${_.className} k-scrollable-horizontal`, k;
1058
- }, 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), A = E({ cells: 5, rows: 2 }, "k-calendar-view k-calendar-decadeview", !1), S = () => H(V()), O = () => H(R()), tt = () => H(A()), j = (k) => parseFloat(window.getComputedStyle(k).height) || k.offsetHeight, vt = (k) => {
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), A = E({ cells: 5, rows: 2 }, "k-calendar-view k-calendar-decadeview", !1), S = () => H(V()), O = () => H(R()), tt = () => H(A()), j = (k) => parseFloat(window.getComputedStyle(k).height) || k.offsetHeight, gt = (k) => {
1059
1060
  const _ = window.getComputedStyle(k);
1060
1061
  return parseFloat(_.width) + parseFloat(_.paddingLeft) + parseFloat(_.paddingRight) || k.offsetWidth;
1061
1062
  }, It = (k) => k.querySelector("tbody");
@@ -1064,15 +1065,15 @@ let ji = class {
1064
1065
  this.calendarHeight = j(k), this.monthViewHeight = j(_), this.headerHeight = j(_.children[0]), this.scrollableContentHeight = j(g(k));
1065
1066
  }), this.batch(S(), (k) => {
1066
1067
  const _ = It(k);
1067
- this.calendarWidth = vt(k), this.monthViewWidth = vt(_), this.scrollableContentWidth = vt(g(k));
1068
+ this.calendarWidth = gt(k), this.monthViewWidth = gt(_), this.scrollableContentWidth = gt(g(k));
1068
1069
  }), this.batch(R(), (k) => {
1069
1070
  this.yearViewHeight = j(It(k)), this.scrollableYearContentHeight = j(g(k));
1070
1071
  }), this.batch(O(), (k) => {
1071
- this.yearViewWidth = vt(It(k));
1072
+ this.yearViewWidth = gt(It(k));
1072
1073
  }), this.batch(A(), (k) => {
1073
1074
  this.decadeViewHeight = j(It(k)), this.centuryViewHeight = this.decadeViewHeight;
1074
1075
  }), this.batch(tt(), (k) => {
1075
- this.decadeViewWidth = vt(It(k)), this.centuryViewWidth = this.decadeViewWidth;
1076
+ this.decadeViewWidth = gt(It(k)), this.centuryViewWidth = this.decadeViewWidth;
1076
1077
  }), this.batch(w(), (k) => {
1077
1078
  this.navigationItemHeight = j(k.querySelector("li"));
1078
1079
  });
@@ -1250,7 +1251,7 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
1250
1251
  return this.props.selectedDate !== void 0 ? this.props.selectedDate : Ws.defaultProps.selectedDate;
1251
1252
  }
1252
1253
  render() {
1253
- this.intl = ut(this), this.weekService = new Qi(this.intl);
1254
+ this.intl = ct(this), this.weekService = new Qi(this.intl);
1254
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), r = this.props.service.data({
1255
1256
  cellUID: this.props.cellUID,
1256
1257
  min: this.min,
@@ -1311,7 +1312,7 @@ jt.defaultProps = {
1311
1312
  selectedDate: U(),
1312
1313
  showWeekNumbers: !1
1313
1314
  };
1314
- gt(jt);
1315
+ ft(jt);
1315
1316
  class tn extends o.PureComponent {
1316
1317
  /**
1317
1318
  * @return
@@ -1380,10 +1381,10 @@ Zt.propTypes = {
1380
1381
  };
1381
1382
  Zt.defaultProps = {
1382
1383
  rangeLength: 1,
1383
- min: dt,
1384
- max: pt
1384
+ min: ut,
1385
+ max: dt
1385
1386
  };
1386
- rt(Zt);
1387
+ at(Zt);
1387
1388
  const Be = "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", At = "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 = {
1388
1389
  [qe]: "TODAY",
1389
1390
  [Ke]: "NOW",
@@ -1460,10 +1461,10 @@ Gt.propTypes = {
1460
1461
  disabled: n.bool
1461
1462
  };
1462
1463
  Gt.defaultProps = {
1463
- min: dt,
1464
- max: pt
1464
+ min: ut,
1465
+ max: dt
1465
1466
  };
1466
- rt(Gt);
1467
+ at(Gt);
1467
1468
  const en = 5, Us = class extends o.Component {
1468
1469
  constructor(s) {
1469
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 = () => {
@@ -1561,7 +1562,7 @@ const en = 5, Us = class extends o.Component {
1561
1562
  return this._element;
1562
1563
  }
1563
1564
  get weekNames() {
1564
- this.intl = ut(this);
1565
+ this.intl = ct(this);
1565
1566
  const s = Bs(
1566
1567
  this.intl.dateFormatNames({ nameType: "short", type: "days" }),
1567
1568
  this.intl.firstDay()
@@ -1586,7 +1587,7 @@ const en = 5, Us = class extends o.Component {
1586
1587
  render() {
1587
1588
  this.calculateHeights();
1588
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), r = 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;
1589
- this.animateToIndex = !h, (h || !bt(this.lastFocus, t) || this.shouldScroll || !this.props.shouldScroll || this.props.shouldScroll()) && (this.indexToScroll = this.props.service.skip(t, this.props.min)), this.lastFocus = t;
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;
1590
1591
  const u = P(
1591
1592
  "k-calendar-view k-vstack",
1592
1593
  {
@@ -1670,7 +1671,7 @@ ye.defaultProps = {
1670
1671
  showWeekNumbers: !1,
1671
1672
  smoothScroll: !0
1672
1673
  };
1673
- gt(ye);
1674
+ ft(ye);
1674
1675
  class sn extends o.Component {
1675
1676
  constructor() {
1676
1677
  super(...arguments), this.handleClick = (t) => {
@@ -1742,7 +1743,7 @@ const nn = 30, $s = class extends o.Component {
1742
1743
  render() {
1743
1744
  this.calculateHeights();
1744
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), r = this.props.service.addToDate(this.props.min, e), l = this.props.service.datesList(r, a);
1745
- (this.props.activeView !== this.lastView || !ct(t, this.lastFocus)) && (this.indexToScroll = this.props.service.skip(t, this.props.min));
1746
+ (this.props.activeView !== this.lastView || !ht(t, this.lastFocus)) && (this.indexToScroll = this.props.service.skip(t, this.props.min));
1746
1747
  const c = /* @__PURE__ */ o.createElement(
1747
1748
  Kt,
1748
1749
  {
@@ -1788,9 +1789,9 @@ ns.propTypes = {
1788
1789
  ns.defaultProps = {
1789
1790
  take: nn
1790
1791
  };
1791
- const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t = kt.defaultProps.max, e, i) => i !== void 0 ? i !== null && F(x(i), s, t) ? i : null : e !== null && F(x(e), s, t) ? e : null, mt = class extends o.Component {
1792
+ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t = bt.defaultProps.max, e, i) => i !== void 0 ? i !== null && F(x(i), s, t) ? i : null : e !== null && F(x(e), s, t) ? e : null, pt = class extends o.Component {
1792
1793
  constructor(s) {
1793
- super(s), this.scrollSyncService = null, this.focusedDate = null, this.cellUID = at(), this.id = at(), this.Navigation = null, this.calendarViewList = null, this._element = null, this.intl = null, this.service = null, this.isActive = !1, this.didNavigationChange = !1, this.focus = () => {
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 = () => {
1794
1795
  this._element && this._element.focus();
1795
1796
  }, this.shouldScroll = () => this.didNavigationChange, this.handleScroll = (e) => {
1796
1797
  this.scrollSyncService && this.scrollSyncService.sync(
@@ -1845,7 +1846,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
1845
1846
  const { keyCode: i } = e;
1846
1847
  if (!(!this.focusedDate || !this.service)) {
1847
1848
  if (i === C.enter) {
1848
- if (this.value !== null && bt(this.focusedDate, this.value)) {
1849
+ if (this.value !== null && wt(this.focusedDate, this.value)) {
1849
1850
  const r = K(this.focusedDate, this.min, this.max);
1850
1851
  Re(this.calendarViewList).scrollToIndex(this.service.skip(r, this.min));
1851
1852
  }
@@ -1868,7 +1869,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
1868
1869
  this.min,
1869
1870
  this.max
1870
1871
  );
1871
- if (bt(this.focusedDate, a))
1872
+ if (wt(this.focusedDate, a))
1872
1873
  return;
1873
1874
  this.setState({ focusedDate: a });
1874
1875
  }
@@ -1882,7 +1883,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
1882
1883
  const t = ks(
1883
1884
  this.min,
1884
1885
  this.max,
1885
- this.props.defaultValue || mt.defaultProps.defaultValue,
1886
+ this.props.defaultValue || pt.defaultProps.defaultValue,
1886
1887
  this.props.value
1887
1888
  );
1888
1889
  this.state = {
@@ -1899,6 +1900,12 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
1899
1900
  )
1900
1901
  }, this.dom = new ji(), this.bus = new zs(this.handleViewChange), this.navigation = new qs(this.bus), this.oldValue = t;
1901
1902
  }
1903
+ get cellUID() {
1904
+ return this.props.id + "-cell-uid";
1905
+ }
1906
+ get id() {
1907
+ return this.props.id + "-id";
1908
+ }
1902
1909
  /**
1903
1910
  * Gets the wrapping element of the Calendar.
1904
1911
  */
@@ -1912,16 +1919,16 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
1912
1919
  return this.valueDuringOnChange !== void 0 ? this.valueDuringOnChange : this.props.value !== void 0 ? this.props.value : this.state.value;
1913
1920
  }
1914
1921
  get min() {
1915
- return x(this.props.min !== void 0 ? this.props.min : mt.defaultProps.min);
1922
+ return x(this.props.min !== void 0 ? this.props.min : pt.defaultProps.min);
1916
1923
  }
1917
1924
  get max() {
1918
- return x(this.props.max !== void 0 ? this.props.max : mt.defaultProps.max);
1925
+ return x(this.props.max !== void 0 ? this.props.max : pt.defaultProps.max);
1919
1926
  }
1920
1927
  get bottomView() {
1921
- return D[this.props.bottomView !== void 0 ? this.props.bottomView : mt.defaultProps.bottomView];
1928
+ return D[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView];
1922
1929
  }
1923
1930
  get topView() {
1924
- return D[this.props.topView !== void 0 ? this.props.topView : mt.defaultProps.topView];
1931
+ return D[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView];
1925
1932
  }
1926
1933
  /**
1927
1934
  * @hidden
@@ -1942,16 +1949,16 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
1942
1949
  */
1943
1950
  render() {
1944
1951
  this.props._ref && this.props._ref(this);
1945
- const s = this.value !== null && this.oldValue !== null ? !bt(this.value, this.oldValue) : this.value !== this.oldValue, t = ge(
1952
+ const s = this.value !== null && this.oldValue !== null ? !wt(this.value, this.oldValue) : this.value !== this.oldValue, t = ge(
1946
1953
  this.state.activeView,
1947
- D[this.props.bottomView !== void 0 ? this.props.bottomView : mt.defaultProps.bottomView],
1948
- D[this.props.topView !== void 0 ? this.props.topView : mt.defaultProps.topView]
1954
+ D[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView],
1955
+ D[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView]
1949
1956
  ), e = ks(this.min, this.max, this.value, this.value), i = e ? x(e) : null;
1950
1957
  this.focusedDate = x(K(
1951
1958
  s && e !== null ? e : this.state.focusedDate,
1952
1959
  this.min,
1953
1960
  this.max
1954
- )), this.intl = ut(this), this.bus.configure(this.bottomView, this.topView), this.service = this.bus.service(t, this.intl);
1961
+ )), this.intl = ct(this), this.bus.configure(this.bottomView, this.topView), this.service = this.bus.service(t, this.intl);
1955
1962
  const { smoothScroll: a = Number.parseFloat(o.version) < 18 } = this.props, r = P(
1956
1963
  "k-widget k-calendar k-calendar-infinite",
1957
1964
  {
@@ -2027,9 +2034,9 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = kt.defaultProps.min, t
2027
2034
  );
2028
2035
  }
2029
2036
  };
2030
- let kt = mt;
2031
- kt.displayName = "Calendar";
2032
- kt.propTypes = {
2037
+ let bt = pt;
2038
+ bt.displayName = "Calendar";
2039
+ bt.propTypes = {
2033
2040
  className: n.string,
2034
2041
  defaultActiveView: n.oneOf(["month", "year", "decade", "century"]),
2035
2042
  defaultValue: n.instanceOf(Date),
@@ -2065,19 +2072,19 @@ kt.propTypes = {
2065
2072
  ) : null;
2066
2073
  }
2067
2074
  };
2068
- kt.defaultProps = {
2075
+ bt.defaultProps = {
2069
2076
  disabled: !1,
2070
- min: dt,
2071
- max: pt,
2077
+ min: ut,
2078
+ max: dt,
2072
2079
  navigation: !0,
2073
2080
  defaultActiveView: "month",
2074
2081
  defaultValue: null,
2075
2082
  topView: "century",
2076
2083
  bottomView: "month"
2077
2084
  };
2078
- const an = yt(), as = St(an, kt);
2085
+ const an = Dt(), as = yt(St(an, bt));
2079
2086
  as.displayName = "KendoReactCalendar";
2080
- gt(kt);
2087
+ ft(bt);
2081
2088
  class rn {
2082
2089
  constructor() {
2083
2090
  this.symbols = "", this.partMap = [];
@@ -2126,7 +2133,7 @@ class pn {
2126
2133
  return this._value;
2127
2134
  }
2128
2135
  setValue(t) {
2129
- t ? ct(t, this._value) || (this._value = v(t), this.modifyExisting(!0)) : (this._value = x(/* @__PURE__ */ new Date()), this.modifyExisting(!1));
2136
+ t ? ht(t, this._value) || (this._value = v(t), this.modifyExisting(!0)) : (this._value = x(/* @__PURE__ */ new Date()), this.modifyExisting(!1));
2130
2137
  }
2131
2138
  hasValue() {
2132
2139
  const t = (e, i) => e || i.type !== "literal" && i.type !== "dayperiod" && this.getExisting(i.pattern[0]);
@@ -2395,7 +2402,7 @@ const X = {
2395
2402
  return W(L, t).getTime() < e.getHours();
2396
2403
  }, Mn = "Please enter a valid value!", Z = class extends o.Component {
2397
2404
  constructor(s) {
2398
- super(s), this.kendoDate = null, this.currentFormat = "", this.paste = !1, this._element = null, this._wrapper = null, this._inputId = at(), this._lastSelectedSymbol = "", this.focus = () => {
2405
+ super(s), this.kendoDate = null, this.currentFormat = "", this.paste = !1, this._element = null, this._wrapper = null, this._lastSelectedSymbol = "", this.focus = () => {
2399
2406
  this._element && this._element.focus();
2400
2407
  }, this.setValidity = () => {
2401
2408
  this.element && this.element.setCustomValidity && this.element.setCustomValidity(
@@ -2404,11 +2411,11 @@ const X = {
2404
2411
  }, this.updateOnPaste = (t) => {
2405
2412
  if (!this.element || !this.kendoDate)
2406
2413
  return;
2407
- const e = ut(this).parseDate(this.element.value, this.props.format) || this.value, i = this.value;
2414
+ const e = ct(this).parseDate(this.element.value, this.props.format) || this.value, i = this.value;
2408
2415
  this.kendoDate.setValue(e), this.triggerChange(t, i);
2409
2416
  }, this.spinnersMouseDown = (t) => {
2410
2417
  t.preventDefault();
2411
- const e = lt(document);
2418
+ const e = ot(document);
2412
2419
  this.element && e !== this.element && this.element.focus({ preventScroll: !0 });
2413
2420
  }, this.handlePaste = () => {
2414
2421
  this.paste = !0;
@@ -2434,9 +2441,9 @@ const X = {
2434
2441
  }, this.elementClick = (t) => {
2435
2442
  this.setSelection(this.selectionByIndex(this.selection.start));
2436
2443
  }, this.nativeWheel = (t) => {
2437
- lt(document) === this.element && t.preventDefault();
2444
+ ot(document) === this.element && t.preventDefault();
2438
2445
  }, this.wheel = (t) => {
2439
- lt(document) === this.element && (t.nativeEvent.deltaY < 0 && this.increasePart(t), t.nativeEvent.deltaY > 0 && this.decreasePart(t));
2446
+ ot(document) === this.element && (t.nativeEvent.deltaY < 0 && this.increasePart(t), t.nativeEvent.deltaY > 0 && this.decreasePart(t));
2440
2447
  }, this.increasePart = (t) => {
2441
2448
  this.modifyDateSegmentValue(1, t);
2442
2449
  }, this.decreasePart = (t) => {
@@ -2469,6 +2476,9 @@ const X = {
2469
2476
  focused: !1
2470
2477
  };
2471
2478
  }
2479
+ get _inputId() {
2480
+ return this.props.id + "-accessibility-id";
2481
+ }
2472
2482
  /**
2473
2483
  * @hidden
2474
2484
  */
@@ -2512,9 +2522,9 @@ const X = {
2512
2522
  "k-dateinput",
2513
2523
  "k-input",
2514
2524
  {
2515
- [`k-input-${ft.sizeMap[s] || s}`]: s,
2525
+ [`k-input-${mt.sizeMap[s] || s}`]: s,
2516
2526
  [`k-input-${t}`]: t,
2517
- [`k-rounded-${ft.roundedMap[e] || e}`]: e,
2527
+ [`k-rounded-${mt.roundedMap[e] || e}`]: e,
2518
2528
  "k-invalid": !m,
2519
2529
  "k-required": this.required,
2520
2530
  "k-disabled": this.props.disabled
@@ -2622,7 +2632,7 @@ const X = {
2622
2632
  * @hidden
2623
2633
  */
2624
2634
  get text() {
2625
- const s = { ...Dt.defaultProps, ...this.props }, {
2635
+ const s = { ...kt.defaultProps, ...this.props }, {
2626
2636
  formatPlaceholder: t = Z.defaultProps.formatPlaceholder,
2627
2637
  format: e = Z.defaultProps.format,
2628
2638
  value: i,
@@ -2701,7 +2711,7 @@ const X = {
2701
2711
  * @hidden
2702
2712
  */
2703
2713
  intl() {
2704
- return ut(this);
2714
+ return ct(this);
2705
2715
  }
2706
2716
  /* end handlers */
2707
2717
  get selection() {
@@ -2710,12 +2720,12 @@ const X = {
2710
2720
  }
2711
2721
  setSelection(s) {
2712
2722
  this._lastSelectedSymbol = this.currentFormat[s.start], window.requestAnimationFrame(() => {
2713
- const t = lt(document);
2723
+ const t = ot(document);
2714
2724
  this.element && t === this.element && !this.props.disableSelection && this.element.setSelectionRange(s.start, s.end);
2715
2725
  });
2716
2726
  }
2717
2727
  triggerChange(s, t) {
2718
- this.valueDuringOnChange = this.value, this.forceUpdate(), this.props.onChange && !ct(t, this.value) && this.props.onChange.call(void 0, {
2728
+ this.valueDuringOnChange = this.value, this.forceUpdate(), this.props.onChange && !ht(t, this.value) && this.props.onChange.call(void 0, {
2719
2729
  syntheticEvent: s,
2720
2730
  nativeEvent: s.nativeEvent,
2721
2731
  value: this.value,
@@ -2853,8 +2863,8 @@ Ct.defaultProps = {
2853
2863
  // defaultValue: null as Date | null,
2854
2864
  spinners: !1,
2855
2865
  disabled: !1,
2856
- max: v(pt),
2857
- min: v(dt),
2866
+ max: v(dt),
2867
+ min: v(ut),
2858
2868
  minTime: v(Nt),
2859
2869
  maxTime: v(xt),
2860
2870
  required: !1,
@@ -2864,10 +2874,10 @@ Ct.defaultProps = {
2864
2874
  // the rest of the properties are undefined by default
2865
2875
  ariaHasPopup: "grid"
2866
2876
  };
2867
- const Tn = yt(), Dt = St(Tn, Ct);
2868
- Dt.displayName = "KendoReactDateInput";
2869
- gt(Ct);
2870
- rt(Ct);
2877
+ const Tn = Dt(), kt = yt(St(Tn, Ct));
2878
+ kt.displayName = "KendoReactDateInput";
2879
+ ft(Ct);
2880
+ at(Ct);
2871
2881
  const En = N, Vn = o.forwardRef((s, t) => {
2872
2882
  const { _ref: e } = s, i = o.useRef(null);
2873
2883
  o.useImperativeHandle(t, () => i.current), o.useImperativeHandle(e, () => i.current);
@@ -2961,7 +2971,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
2961
2971
  )));
2962
2972
  }, xe = 768, B = class extends o.Component {
2963
2973
  constructor(s) {
2964
- super(s), this._popupId = at(), this._element = null, this._dateInput = o.createRef(), this._calendar = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
2974
+ super(s), this._element = null, this._dateInput = o.createRef(), this._calendar = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
2965
2975
  this.dateInput && this.dateInput.focus();
2966
2976
  }, this.setCalendarRef = (t) => {
2967
2977
  this._calendar = t;
@@ -3042,6 +3052,9 @@ const En = N, Vn = o.forwardRef((s, t) => {
3042
3052
  focused: !1
3043
3053
  };
3044
3054
  }
3055
+ get _popupId() {
3056
+ return this.props.id + "-popup-id";
3057
+ }
3045
3058
  get document() {
3046
3059
  if (J)
3047
3060
  return this.element && this.element.ownerDocument || document;
@@ -3216,15 +3229,15 @@ const En = N, Vn = o.forwardRef((s, t) => {
3216
3229
  ({ onFocus: tt, onBlur: j }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
3217
3230
  "span",
3218
3231
  {
3219
- ref: (vt) => {
3220
- this._element = vt;
3232
+ ref: (gt) => {
3233
+ this._element = gt;
3221
3234
  },
3222
3235
  className: P(
3223
3236
  "k-input",
3224
3237
  "k-datepicker",
3225
3238
  {
3226
- [`k-input-${ft.sizeMap[s] || s}`]: s,
3227
- [`k-rounded-${ft.roundedMap[t] || t}`]: t,
3239
+ [`k-input-${mt.sizeMap[s] || s}`]: s,
3240
+ [`k-rounded-${mt.roundedMap[t] || t}`]: t,
3228
3241
  [`k-input-${e}`]: e,
3229
3242
  ["k-invalid"]: !R,
3230
3243
  ["k-required"]: this.required,
@@ -3368,15 +3381,15 @@ Xt.propTypes = {
3368
3381
  Xt.defaultProps = {
3369
3382
  defaultShow: !1,
3370
3383
  defaultValue: null,
3371
- dateInput: Dt,
3384
+ dateInput: kt,
3372
3385
  calendar: as,
3373
3386
  toggleButton: En,
3374
3387
  popup: be,
3375
3388
  pickerWrap: Vn,
3376
3389
  disabled: !1,
3377
3390
  format: "d",
3378
- max: pt,
3379
- min: dt,
3391
+ max: dt,
3392
+ min: ut,
3380
3393
  popupSettings: {},
3381
3394
  tabIndex: 0,
3382
3395
  weekNumber: !1,
@@ -3386,9 +3399,9 @@ Xt.defaultProps = {
3386
3399
  rounded: "medium",
3387
3400
  fillMode: "solid"
3388
3401
  };
3389
- const Pn = yt(), Rn = St(Pn, Xt);
3402
+ const Pn = Dt(), Rn = yt(St(Pn, Xt));
3390
3403
  Rn.displayName = "KendoReactDatePicker";
3391
- rt(Xt);
3404
+ at(Xt);
3392
3405
  const Ne = (s, t) => {
3393
3406
  const e = v(s);
3394
3407
  return e.setHours(t), e;
@@ -3517,7 +3530,7 @@ class Wn {
3517
3530
  return this.addLast(r), t && this.addMissing(r, t), r;
3518
3531
  }
3519
3532
  isRangeChanged(t, e) {
3520
- return !this.min || !this.max ? !1 : !ct(this.min, t) || !ct(this.max, e);
3533
+ return !this.min || !this.max ? !1 : !ht(this.min, t) || !ht(this.max, e);
3521
3534
  }
3522
3535
  limitRange(t, e, i) {
3523
3536
  return this.boundRange ? [zn(t, i), qn(e, i)] : [t, e];
@@ -3594,7 +3607,7 @@ class jn {
3594
3607
  return this.addLast(r), t && this.addMissing(r, t), r;
3595
3608
  }
3596
3609
  isRangeChanged(t, e) {
3597
- return this.min !== null && this.max !== null && (!ct(this.min, t) || !ct(this.max, e));
3610
+ return this.min !== null && this.max !== null && (!ht(this.min, t) || !ht(this.max, e));
3598
3611
  }
3599
3612
  limitRange(t, e, i) {
3600
3613
  return [Yn(t, i), Kn(e, i)];
@@ -3671,7 +3684,7 @@ class Qn {
3671
3684
  return this.addLast(r), t && this.addMissing(r, t), r;
3672
3685
  }
3673
3686
  isRangeChanged(t, e) {
3674
- return this.min !== null && this.max !== null && (!ct(this.min, t) || !ct(this.max, e));
3687
+ return this.min !== null && this.max !== null && (!ht(this.min, t) || !ht(this.max, e));
3675
3688
  }
3676
3689
  limitRange(t, e, i) {
3677
3690
  return [Xn(t, i), Jn(e, i)];
@@ -3775,7 +3788,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3775
3788
  }, this.handleMouseOver = () => {
3776
3789
  if (!this._element)
3777
3790
  return;
3778
- const t = lt(document);
3791
+ const t = ot(document);
3779
3792
  document && t !== this._element && this.props.show && this._element.focus({ preventScroll: !0 });
3780
3793
  }, this.handleKeyDown = (t) => {
3781
3794
  if (!this.service)
@@ -3835,7 +3848,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3835
3848
  render() {
3836
3849
  if (!this.props.part.type || !es[this.props.part.type])
3837
3850
  return;
3838
- this.calculateHeights(), this.intl = ut(this), this.service = new es[this.props.part.type](this.intl), this.configureServices();
3851
+ this.calculateHeights(), this.intl = ct(this), this.service = new es[this.props.part.type](this.intl), this.configureServices();
3839
3852
  const s = this.service.data(this.props.value), t = "translateY(" + this.topOffset + "px)", e = this.service.total(this.props.value), i = /* @__PURE__ */ o.createElement(
3840
3853
  "ul",
3841
3854
  {
@@ -3925,8 +3938,8 @@ Ce.defaultProps = {
3925
3938
  step: 1,
3926
3939
  smoothScroll: !0
3927
3940
  };
3928
- gt(Ce);
3929
- const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`), wt = class extends o.Component {
3941
+ ft(Ce);
3942
+ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`), vt = class extends o.Component {
3930
3943
  constructor(s) {
3931
3944
  super(s), this._element = null, this._nowButton = null, this.dateFormatParts = [], this.timeLists = [], this.focus = (t) => {
3932
3945
  Promise.resolve().then(() => {
@@ -3971,7 +3984,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
3971
3984
  const { onChange: e } = this.props;
3972
3985
  e && e.call(void 0, t);
3973
3986
  }, this.snapTime = ys(
3974
- Ds(this.props.steps, this.props.min || wt.defaultProps.min)
3987
+ Ds(this.props.steps, this.props.min || vt.defaultProps.min)
3975
3988
  ), this.state = {
3976
3989
  activeListIndex: -1
3977
3990
  }, this.hasActiveButton = this.hasActiveButton.bind(this);
@@ -3990,19 +4003,19 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
3990
4003
  );
3991
4004
  }
3992
4005
  get intl() {
3993
- return ut(this);
4006
+ return ct(this);
3994
4007
  }
3995
4008
  get min() {
3996
- return this.snapTime(this.props.min || wt.defaultProps.min);
4009
+ return this.snapTime(this.props.min || vt.defaultProps.min);
3997
4010
  }
3998
4011
  get max() {
3999
- return this.snapTime(this.props.max || wt.defaultProps.max);
4012
+ return this.snapTime(this.props.max || vt.defaultProps.max);
4000
4013
  }
4001
4014
  get steps() {
4002
- return this.props.steps || wt.defaultProps.steps;
4015
+ return this.props.steps || vt.defaultProps.steps;
4003
4016
  }
4004
4017
  get boundRange() {
4005
- return this.props.boundRange !== void 0 ? this.props.boundRange : wt.defaultProps.boundRange;
4018
+ return this.props.boundRange !== void 0 ? this.props.boundRange : vt.defaultProps.boundRange;
4006
4019
  }
4007
4020
  /**
4008
4021
  * @hidden
@@ -4027,7 +4040,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
4027
4040
  mobileMode: r,
4028
4041
  show: l
4029
4042
  } = this.props;
4030
- this.snapTime = ys(Ds(this.steps, this.min)), this.dateFormatParts = this.intl.splitDateFormat(s || wt.defaultProps.format).filter(this.timeFormatFilter);
4043
+ this.snapTime = ys(Ds(this.steps, this.min)), this.dateFormatParts = this.intl.splitDateFormat(s || vt.defaultProps.format).filter(this.timeFormatFilter);
4031
4044
  const c = P(
4032
4045
  {
4033
4046
  "k-disabled": a,
@@ -4111,7 +4124,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
4111
4124
  clearTimeout(this.nextTickId), this.nextTickId = window.setTimeout(() => s());
4112
4125
  }
4113
4126
  hasActiveButton() {
4114
- const s = lt(document);
4127
+ const s = ot(document);
4115
4128
  return this._nowButton && s === this._nowButton.element;
4116
4129
  }
4117
4130
  hasSteps() {
@@ -4119,7 +4132,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
4119
4132
  return s.length !== s.reduce((t, e) => t + this.steps[e], 0);
4120
4133
  }
4121
4134
  };
4122
- let _t = wt;
4135
+ let _t = vt;
4123
4136
  _t.propTypes = {
4124
4137
  cancelButton: n.bool,
4125
4138
  disabled: n.bool,
@@ -4167,8 +4180,8 @@ _t.defaultProps = {
4167
4180
  steps: {},
4168
4181
  boundRange: !1
4169
4182
  };
4170
- gt(_t);
4171
- rt(_t);
4183
+ ft(_t);
4184
+ at(_t);
4172
4185
  const ss = class extends o.Component {
4173
4186
  constructor(s) {
4174
4187
  super(s), this._element = null, this._cancelButton = null, this._acceptButton = null, this.timePart = null, this.focusActiveList = () => {
@@ -4237,7 +4250,7 @@ const ss = class extends o.Component {
4237
4250
  return s !== null ? v(s) : null;
4238
4251
  }
4239
4252
  get intl() {
4240
- return ut(this);
4253
+ return ct(this);
4241
4254
  }
4242
4255
  get current() {
4243
4256
  return this.state.current !== null ? v(this.state.current) : null;
@@ -4336,7 +4349,7 @@ const ss = class extends o.Component {
4336
4349
  hasActiveButton() {
4337
4350
  if (!this._acceptButton || !this._acceptButton.element)
4338
4351
  return !1;
4339
- const s = lt(document);
4352
+ const s = ot(document);
4340
4353
  return this._acceptButton && s === this._acceptButton.element || this._cancelButton && s === this._cancelButton.element;
4341
4354
  }
4342
4355
  };
@@ -4388,11 +4401,11 @@ Jt.defaultProps = {
4388
4401
  boundRange: !1,
4389
4402
  footer: !0
4390
4403
  };
4391
- gt(Jt);
4392
- rt(Jt);
4404
+ ft(Jt);
4405
+ at(Jt);
4393
4406
  const G = class extends o.Component {
4394
4407
  constructor(s) {
4395
- super(s), this._popupId = at(), this._element = null, this._dateInput = o.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
4408
+ super(s), this._element = null, this._dateInput = o.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
4396
4409
  this.dateInput && this.dateInput.focus();
4397
4410
  }, this.renderTimeSelector = () => {
4398
4411
  const { smoothScroll: t, cancelButton: e, nowButton: i, disabled: a, format: r, steps: l } = this.props;
@@ -4497,6 +4510,9 @@ const G = class extends o.Component {
4497
4510
  candidate: null
4498
4511
  }, this.normalizeTime = this.normalizeTime.bind(this), this.setShow = this.setShow.bind(this), this.mergeTime = this.mergeTime.bind(this);
4499
4512
  }
4513
+ get _popupId() {
4514
+ return this.props.id + "-popup-id";
4515
+ }
4500
4516
  get document() {
4501
4517
  if (J)
4502
4518
  return this.element && this.element.ownerDocument || document;
@@ -4665,6 +4681,7 @@ const G = class extends o.Component {
4665
4681
  ({ onFocus: A, onBlur: S }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
4666
4682
  "div",
4667
4683
  {
4684
+ id: this.props.id,
4668
4685
  ref: (O) => {
4669
4686
  this._element = O;
4670
4687
  },
@@ -4672,8 +4689,8 @@ const G = class extends o.Component {
4672
4689
  "k-input",
4673
4690
  "k-timepicker",
4674
4691
  {
4675
- [`k-input-${ft.sizeMap[s] || s}`]: s,
4676
- [`k-rounded-${ft.roundedMap[t] || t}`]: t,
4692
+ [`k-input-${mt.sizeMap[s] || s}`]: s,
4693
+ [`k-rounded-${mt.roundedMap[t] || t}`]: t,
4677
4694
  [`k-input-${e}`]: e,
4678
4695
  ["k-invalid"]: !E,
4679
4696
  ["k-required"]: this.required,
@@ -4828,14 +4845,14 @@ Qt.defaultProps = {
4828
4845
  steps: {},
4829
4846
  required: !1,
4830
4847
  validityStyles: !0,
4831
- dateInput: Dt,
4848
+ dateInput: kt,
4832
4849
  size: "medium",
4833
4850
  rounded: "medium",
4834
4851
  fillMode: "solid"
4835
4852
  };
4836
- const na = yt(), aa = St(na, Qt);
4853
+ const na = Dt(), aa = yt(St(na, Qt));
4837
4854
  aa.displayName = "KendoReactTimePicker";
4838
- rt(Qt);
4855
+ at(Qt);
4839
4856
  const Es = 2, is = class extends o.Component {
4840
4857
  constructor(s) {
4841
4858
  super(s), this._element = null, this.isActive = !1, this.focusActiveDate = () => {
@@ -4936,12 +4953,12 @@ Bt.defaultProps = {
4936
4953
  views: Es,
4937
4954
  take: Es,
4938
4955
  allowReverse: !0,
4939
- min: dt,
4940
- max: pt
4956
+ min: ut,
4957
+ max: dt
4941
4958
  };
4942
- const Le = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => e instanceof Date && !Array.isArray(e) && F(x(e), s, t) ? x(e) : null, Vs = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => Array.isArray(e) ? e.filter((i) => F(i, s, t)).map((i) => x(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, ra = (s, t) => s.start === null && t === null ? "start" : s.end === null ? "end" : "start", Et = class extends o.Component {
4959
+ const Le = (s = lt.defaultProps.min, t = lt.defaultProps.max, e) => e instanceof Date && !Array.isArray(e) && F(x(e), s, t) ? x(e) : null, Vs = (s = lt.defaultProps.min, t = lt.defaultProps.max, e) => Array.isArray(e) ? e.filter((i) => F(i, s, t)).map((i) => x(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, ra = (s, t) => s.start === null && t === null ? "start" : s.end === null ? "end" : "start", Et = class extends o.Component {
4943
4960
  constructor(s) {
4944
- super(s), this.dates = [], this.selectedDate = null, this.selectedMultiple = null, this.selectedRange = z, this._focusedDate = /* @__PURE__ */ new Date(), this.cellUID = at(), this.activeRangeEnd = "start", this._element = null, this.intl = null, this.localization = null, this.service = null, this.wrapperID = at(), this.calendarViewList = null, this.isActive = !1, this.calculateFocusFromValue = !0, this.focus = () => {
4961
+ 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 = () => {
4945
4962
  this._element && this._element.focus();
4946
4963
  }, this.clampRange = (h) => ({ start: h, end: null }), this.rangeWithFocused = (h, u) => ({
4947
4964
  start: h.start,
@@ -5016,7 +5033,7 @@ const Le = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => e instanceof
5016
5033
  this.min,
5017
5034
  this.max
5018
5035
  );
5019
- if (bt(this.focusedDate, d))
5036
+ if (wt(this.focusedDate, d))
5020
5037
  return;
5021
5038
  this.dates && this.service && !this.service.isInArray(d, this.dates) && this.setState({ navigateDate: d }), this.calculateFocusFromValue = !1, this.setState({ focusedDate: d });
5022
5039
  }
@@ -5044,7 +5061,7 @@ const Le = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => e instanceof
5044
5061
  if (Array.isArray(this.selectedMultiple)) {
5045
5062
  let f = this.selectedMultiple.slice(), y = -1;
5046
5063
  f.forEach((I, M) => {
5047
- bt(I, h.value) && (y = M);
5064
+ wt(I, h.value) && (y = M);
5048
5065
  }), y !== -1 ? f.splice(y, 1) : f.push(v(h.value)), p = f.slice();
5049
5066
  } else
5050
5067
  this.selectedDate ? p = [v(this.selectedDate), v(h.value)] : p = [v(h.value)];
@@ -5086,6 +5103,9 @@ const Le = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => e instanceof
5086
5103
  navigateDate: c
5087
5104
  }, this.activeRangeEnd = ra(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 || Bt.defaultProps.views;
5088
5105
  }
5106
+ get wrapperID() {
5107
+ return this.props.id + "-wrapper-id";
5108
+ }
5089
5109
  get isRtl() {
5090
5110
  return this.props.dir === "rtl";
5091
5111
  }
@@ -5143,7 +5163,7 @@ const Le = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => e instanceof
5143
5163
  * @hidden
5144
5164
  */
5145
5165
  render() {
5146
- this.props._ref && this.props._ref(this), this.intl = ut(this), this.localization = q(this), this.bus.configure(this.bottomView, this.topView);
5166
+ this.props._ref && this.props._ref(this), this.intl = ct(this), this.localization = q(this), this.bus.configure(this.bottomView, this.topView);
5147
5167
  const s = ge(this.state.activeView, this.bottomView, this.topView);
5148
5168
  this.service = this.bus.service(s, this.intl), this.selectedDate = Le(this.min, this.max, this.value), this.selectedMultiple = Vs(this.min, this.max, this.value), this.selectedRange = Os(this.value);
5149
5169
  const t = Ps(this.selectedDate, this.selectedMultiple, this.selectedRange);
@@ -5269,20 +5289,20 @@ const Le = (s = ht.defaultProps.min, t = ht.defaultProps.max, e) => e instanceof
5269
5289
  return !!t && fe(t) <= s && s <= Ot(t);
5270
5290
  }
5271
5291
  };
5272
- let ht = Et;
5273
- ht.displayName = "MultiViewCalendar";
5274
- ht.propTypes = {
5292
+ let lt = Et;
5293
+ lt.displayName = "MultiViewCalendar";
5294
+ lt.propTypes = {
5275
5295
  activeRangeEnd: n.oneOf(["start", "end"]),
5276
5296
  allowReverse: n.bool,
5277
5297
  bottomView: n.oneOf(["month", "year", "decade", "century"]),
5278
5298
  className: n.string,
5279
5299
  defaultActiveView: n.oneOf(["month", "year", "decade", "century"]),
5280
5300
  defaultValue: n.oneOfType([
5281
- ot(n.instanceOf(Date)),
5301
+ rt(n.instanceOf(Date)),
5282
5302
  n.arrayOf(n.instanceOf(Date)),
5283
5303
  n.shape({
5284
- start: ot(n.instanceOf(Date)),
5285
- end: ot(n.instanceOf(Date))
5304
+ start: rt(n.instanceOf(Date)),
5305
+ end: rt(n.instanceOf(Date))
5286
5306
  })
5287
5307
  ]),
5288
5308
  disabled: n.bool,
@@ -5299,11 +5319,11 @@ ht.propTypes = {
5299
5319
  tabIndex: n.number,
5300
5320
  topView: n.oneOf(["month", "year", "decade", "century"]),
5301
5321
  value: n.oneOfType([
5302
- ot(n.instanceOf(Date)),
5322
+ rt(n.instanceOf(Date)),
5303
5323
  n.arrayOf(n.instanceOf(Date)),
5304
5324
  n.shape({
5305
- start: ot(n.instanceOf(Date).isRequired),
5306
- end: ot(n.instanceOf(Date).isRequired)
5325
+ start: rt(n.instanceOf(Date).isRequired),
5326
+ end: rt(n.instanceOf(Date).isRequired)
5307
5327
  })
5308
5328
  ]),
5309
5329
  views: (s, t, e) => {
@@ -5315,10 +5335,10 @@ ht.propTypes = {
5315
5335
  weekNumber: n.bool,
5316
5336
  dir: n.string
5317
5337
  };
5318
- ht.defaultProps = {
5338
+ lt.defaultProps = {
5319
5339
  disabled: !1,
5320
- min: dt,
5321
- max: pt,
5340
+ min: ut,
5341
+ max: dt,
5322
5342
  navigation: !0,
5323
5343
  defaultActiveView: "month",
5324
5344
  defaultValue: null,
@@ -5328,13 +5348,13 @@ ht.defaultProps = {
5328
5348
  views: 2,
5329
5349
  allowReverse: !1
5330
5350
  };
5331
- const oa = yt(), Qs = St(oa, ht);
5351
+ const oa = Dt(), Qs = yt(St(oa, lt));
5332
5352
  Qs.displayName = "KendoReactMultiViewCalendar";
5333
- gt(ht);
5334
- rt(ht);
5353
+ ft(lt);
5354
+ at(lt);
5335
5355
  const zt = class extends o.Component {
5336
5356
  constructor(s) {
5337
- super(s), this._element = null, this._calendar = null, this._startDateInput = o.createRef(), this._endDateInput = o.createRef(), this._popupId = at(), this._startInputId = at(), this._endInputId = at(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.focus = () => {
5357
+ super(s), this._element = null, this._calendar = null, this._startDateInput = o.createRef(), this._endDateInput = o.createRef(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.focus = () => {
5338
5358
  this.startDateInput && this.startDateInput.focus();
5339
5359
  }, this.setCalendarRef = (t) => {
5340
5360
  this._calendar = t;
@@ -5439,7 +5459,7 @@ const zt = class extends o.Component {
5439
5459
  const e = this.extractRangeFromValue(t);
5440
5460
  this.handleChange(e, t);
5441
5461
  }, this.handleKeyDown = (t) => {
5442
- const { keyCode: e, altKey: i } = t, a = lt(document);
5462
+ const { keyCode: e, altKey: i } = t, a = ot(document);
5443
5463
  e === C.esc ? (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1)) : i && e === C.down ? (t.preventDefault(), this.shouldFocusCalendar = !0, this.setShow(!0)) : e === C.tab && this.show && this._calendar && this._calendar.element && this.endDateInput && this.endDateInput.element && document && a === this.endDateInput.element && (t.preventDefault(), this.focusCalendarElement());
5444
5464
  }, this.handleChange = (t, e) => {
5445
5465
  this.setState({ value: t }), this.valueDuringOnChange = t;
@@ -5461,6 +5481,15 @@ const zt = class extends o.Component {
5461
5481
  currentValue: z
5462
5482
  }, this.nextTick = this.nextTick.bind(this), this.setShow = this.setShow.bind(this), this.focusCalendarElement = this.focusCalendarElement.bind(this), this.focusDateInputElement = this.focusDateInputElement.bind(this);
5463
5483
  }
5484
+ get _popupId() {
5485
+ return this.props.id + "-popup-id";
5486
+ }
5487
+ get _startInputId() {
5488
+ return this.props.id + "-start-input-id";
5489
+ }
5490
+ get _endInputId() {
5491
+ return this.props.id + "-end-input-id";
5492
+ }
5464
5493
  /**
5465
5494
  * Gets the wrapping element of the DateRangePicker.
5466
5495
  */
@@ -5606,7 +5635,7 @@ const zt = class extends o.Component {
5606
5635
  dir: this.props.dir
5607
5636
  },
5608
5637
  this.props.startDateInput ? /* @__PURE__ */ o.createElement(this.props.startDateInput, { ...h }) : /* @__PURE__ */ o.createElement(
5609
- Dt,
5638
+ kt,
5610
5639
  {
5611
5640
  ...h,
5612
5641
  ref: this._startDateInput,
@@ -5617,7 +5646,7 @@ const zt = class extends o.Component {
5617
5646
  ),
5618
5647
  (this.props.allowReverse || this.props.calendarSettings && this.props.calendarSettings.allowReverse) && this.props.swapButton ? d : c,
5619
5648
  this.props.endDateInput ? /* @__PURE__ */ o.createElement(this.props.endDateInput, { ...u }) : /* @__PURE__ */ o.createElement(
5620
- Dt,
5649
+ kt,
5621
5650
  {
5622
5651
  ...u,
5623
5652
  ref: this._endDateInput,
@@ -5632,7 +5661,7 @@ const zt = class extends o.Component {
5632
5661
  focusDateInputElement() {
5633
5662
  if (!document || !this.startDateInput || !this.startDateInput.element || !this.endDateInput || !this.endDateInput.element)
5634
5663
  return;
5635
- const s = lt(document);
5664
+ const s = ot(document);
5636
5665
  (this.value.start === null || this.value.end !== null) && s !== this.endDateInput.element ? this.startDateInput.element.focus({ preventScroll: !0 }) : s !== this.startDateInput.element && this.endDateInput.element.focus({ preventScroll: !0 });
5637
5666
  }
5638
5667
  nextTick(s) {
@@ -5659,8 +5688,8 @@ te.propTypes = {
5659
5688
  className: n.string,
5660
5689
  defaultShow: n.bool,
5661
5690
  defaultValue: n.shape({
5662
- start: ot(n.instanceOf(Date).isRequired),
5663
- end: ot(n.instanceOf(Date).isRequired)
5691
+ start: rt(n.instanceOf(Date).isRequired),
5692
+ end: rt(n.instanceOf(Date).isRequired)
5664
5693
  }),
5665
5694
  disabled: n.bool,
5666
5695
  endDateInputSettings: n.shape(Ct.propTypes),
@@ -5701,8 +5730,8 @@ te.propTypes = {
5701
5730
  tabIndex: n.number,
5702
5731
  dir: n.string,
5703
5732
  value: n.shape({
5704
- start: ot(n.instanceOf(Date).isRequired),
5705
- end: ot(n.instanceOf(Date).isRequired)
5733
+ start: rt(n.instanceOf(Date).isRequired),
5734
+ end: rt(n.instanceOf(Date).isRequired)
5706
5735
  })
5707
5736
  };
5708
5737
  te.defaultProps = {
@@ -5711,13 +5740,13 @@ te.defaultProps = {
5711
5740
  defaultValue: z,
5712
5741
  disabled: !1,
5713
5742
  format: "d",
5714
- max: pt,
5715
- min: dt,
5743
+ max: dt,
5744
+ min: ut,
5716
5745
  swapButton: !1
5717
5746
  };
5718
- const la = yt(), ha = St(la, te);
5747
+ const la = Dt(), ha = yt(St(la, te));
5719
5748
  ha.displayName = "KendoReactDateRangePicker";
5720
- rt(te);
5749
+ at(te);
5721
5750
  class ms extends o.Component {
5722
5751
  constructor(t) {
5723
5752
  super(t), this._calendar = null, this._timePart = null, this._cancelButton = null, this._acceptButton = null, this._calendarWrap = null, this.shouldFocusPart = !1, this.focus = (e) => {
@@ -5927,12 +5956,12 @@ class ms extends o.Component {
5927
5956
  return this.props.maxTime !== void 0 ? this.props.maxTime : this.normalizeRange(this.props.max, this.state.dateValue);
5928
5957
  }
5929
5958
  normalizeRange(t, e) {
5930
- return bt(t, e || U()) ? t : null;
5959
+ return wt(t, e || U()) ? t : null;
5931
5960
  }
5932
5961
  hasActiveButton() {
5933
5962
  if (!this._acceptButton)
5934
5963
  return !1;
5935
- const t = lt(document);
5964
+ const t = ot(document);
5936
5965
  return this._acceptButton && t === this._acceptButton.element || this._cancelButton && t === this._cancelButton.element;
5937
5966
  }
5938
5967
  mergeTime(t, e) {
@@ -5945,10 +5974,10 @@ class ms extends o.Component {
5945
5974
  ms.defaultProps = {
5946
5975
  footerActions: !0
5947
5976
  };
5948
- rt(ms);
5977
+ at(ms);
5949
5978
  const et = class extends o.Component {
5950
5979
  constructor(s) {
5951
- super(s), this._popupId = at(), this._element = null, this._dateInput = o.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
5980
+ super(s), this._element = null, this._dateInput = o.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
5952
5981
  const t = this.dateInputElement();
5953
5982
  t && t.focus();
5954
5983
  }, this.renderPicker = () => {
@@ -6041,6 +6070,9 @@ const et = class extends o.Component {
6041
6070
  focused: !1
6042
6071
  };
6043
6072
  }
6073
+ get _popupId() {
6074
+ return this.props.id + "-popup-id";
6075
+ }
6044
6076
  get document() {
6045
6077
  if (J)
6046
6078
  return this.element && this.element.ownerDocument || document;
@@ -6212,8 +6244,8 @@ const et = class extends o.Component {
6212
6244
  "k-input",
6213
6245
  "k-datetimepicker",
6214
6246
  {
6215
- [`k-input-${ft.sizeMap[s] || s}`]: s,
6216
- [`k-rounded-${ft.roundedMap[t] || t}`]: t,
6247
+ [`k-input-${mt.sizeMap[s] || s}`]: s,
6248
+ [`k-rounded-${mt.roundedMap[t] || t}`]: t,
6217
6249
  [`k-input-${e}`]: e,
6218
6250
  ["k-invalid"]: !R,
6219
6251
  ["k-required"]: this.required,
@@ -6373,22 +6405,22 @@ ee.defaultProps = {
6373
6405
  disabled: !1,
6374
6406
  format: "g",
6375
6407
  // general date and time pattern (short time): "M/d/y h:mm a" for en.
6376
- max: pt,
6377
- min: dt,
6408
+ max: dt,
6409
+ min: ut,
6378
6410
  popupSettings: {},
6379
6411
  tabIndex: 0,
6380
6412
  weekNumber: !1,
6381
6413
  required: !1,
6382
6414
  validityStyles: !0,
6383
6415
  cancelButton: !0,
6384
- dateInput: Dt,
6416
+ dateInput: kt,
6385
6417
  size: "medium",
6386
6418
  rounded: "medium",
6387
6419
  fillMode: "solid"
6388
6420
  };
6389
- const ca = yt(), ua = St(ca, ee);
6421
+ const ca = Dt(), ua = yt(St(ca, ee));
6390
6422
  ua.displayName = "KendoReactDateTimePicker";
6391
- rt(ee);
6423
+ at(ee);
6392
6424
  export {
6393
6425
  b as Action,
6394
6426
  zs as BusViewService,
@@ -6399,10 +6431,10 @@ export {
6399
6431
  an as CalendarPropsContext,
6400
6432
  D as CalendarViewEnum,
6401
6433
  xi as CalendarWeekCell,
6402
- kt as CalendarWithoutContext,
6434
+ bt as CalendarWithoutContext,
6403
6435
  Ei as CenturyViewService,
6404
6436
  ji as DOMService,
6405
- Dt as DateInput,
6437
+ kt as DateInput,
6406
6438
  Tn as DateInputPropsContext,
6407
6439
  Ct as DateInputWithoutContext,
6408
6440
  Rn as DatePicker,
@@ -6420,15 +6452,15 @@ export {
6420
6452
  Zt as Header,
6421
6453
  Bt as HorizontalViewList,
6422
6454
  Wn as HoursService,
6423
- pt as MAX_DATE,
6455
+ dt as MAX_DATE,
6424
6456
  xt as MAX_TIME,
6425
- dt as MIN_DATE,
6457
+ ut as MIN_DATE,
6426
6458
  Nt as MIN_TIME,
6427
6459
  jn as MinutesService,
6428
6460
  Ai as MonthViewService,
6429
6461
  Qs as MultiViewCalendar,
6430
6462
  oa as MultiViewCalendarPropsContext,
6431
- ht as MultiViewCalendarWithoutContext,
6463
+ lt as MultiViewCalendarWithoutContext,
6432
6464
  qs as NavigationService,
6433
6465
  Vn as PickerWrap,
6434
6466
  Ji as ScrollSyncService,