@progress/kendo-react-dateinputs 7.0.3-develop.8 → 7.1.0-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
@@ -17,7 +17,7 @@ const Rt = {
17
17
  name: "@progress/kendo-react-dateinputs",
18
18
  productName: "KendoReact",
19
19
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
20
- publishDate: 1704449147,
20
+ publishDate: 1705312536,
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) => [
@@ -409,7 +409,7 @@ function ot(s) {
409
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
- const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s < t ? t : e, H = 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), U = (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), U = (s, t) => {
413
413
  const e = v(s);
414
414
  return e.setHours(
415
415
  t.getHours(),
@@ -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
- }, L = () => 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) => {
420
+ }, H = () => 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 || q;
422
422
  return !e || !i ? !1 : e < s && s < i;
423
423
  }, Q = (s, t, e = 1) => {
@@ -516,7 +516,7 @@ class Ei {
516
516
  } = t;
517
517
  if (!u)
518
518
  return Ii;
519
- const d = Q(0, Ee), p = re(u), f = He(u), m = L();
519
+ const d = Q(0, Ee), p = re(u), f = He(u), m = H();
520
520
  return Q(0, Mi).map((S) => {
521
521
  const I = it(p, S * Ee);
522
522
  return d.map((M) => {
@@ -627,7 +627,7 @@ class Ri {
627
627
  } = t;
628
628
  if (!u)
629
629
  return Vi;
630
- const d = Q(0, Ve), p = st(u), f = Be(u), m = L();
630
+ const d = Q(0, Ve), p = st(u), f = Be(u), m = H();
631
631
  return Q(0, Oi).map((S) => {
632
632
  const I = nt(p, S * Ve);
633
633
  return d.map((M) => {
@@ -741,7 +741,7 @@ class Bi {
741
741
  } = t;
742
742
  if (!u)
743
743
  return Ni;
744
- const d = fe(u), p = Ot(u), f = -1, m = si(d, this.intl.firstDay(), f), S = Q(0, Oe), I = L();
744
+ const d = fe(u), p = Ot(u), f = -1, m = si(d, this.intl.firstDay(), f), S = Q(0, Oe), I = H();
745
745
  return Q(0, _i).map((M) => {
746
746
  const w = Wt(m, M * Oe);
747
747
  return S.map((E) => {
@@ -865,7 +865,7 @@ class $i {
865
865
  } = t;
866
866
  if (!u)
867
867
  return Ai;
868
- const d = this.abbrMonthNames(), p = Ns(u), f = _s(u), m = p.getFullYear(), S = Q(0, Pe), I = L();
868
+ const d = this.abbrMonthNames(), p = Ns(u), f = _s(u), m = p.getFullYear(), S = Q(0, Pe), I = H();
869
869
  return Q(0, zi).map((M) => {
870
870
  const w = $(p, M * Pe);
871
871
  return S.map((E) => {
@@ -1252,7 +1252,7 @@ const bs = (s) => /* @__PURE__ */ r.createElement("td", { key: s, className: "k-
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 = L(), a = U(this.props.viewDate, i), o = this.props.service.data({
1255
+ const s = this.weekService.getWeekNames(this.weekNumber), t = this.props.service.rowLength(this.weekNumber), e = this.props.service.title(this.props.viewDate), i = H(), a = U(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,
@@ -1309,7 +1309,7 @@ jt.propTypes = {
1309
1309
  };
1310
1310
  jt.defaultProps = {
1311
1311
  direction: "vertical",
1312
- selectedDate: L(),
1312
+ selectedDate: H(),
1313
1313
  showWeekNumbers: !1
1314
1314
  };
1315
1315
  ft(jt);
@@ -1416,7 +1416,7 @@ const Ae = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft =
1416
1416
  const t = {
1417
1417
  syntheticEvent: s,
1418
1418
  nativeEvent: s.nativeEvent,
1419
- value: K(L(), this.min, this.max),
1419
+ value: K(H(), this.min, this.max),
1420
1420
  target: this,
1421
1421
  isTodayClick: !0
1422
1422
  };
@@ -1431,7 +1431,7 @@ const Ae = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft =
1431
1431
  return this.props.max !== void 0 ? this.props.max : ts.defaultProps.max;
1432
1432
  }
1433
1433
  get todayIsInRange() {
1434
- return F(L(), C(this.min), C(this.max));
1434
+ return F(H(), C(this.min), C(this.max));
1435
1435
  }
1436
1436
  render() {
1437
1437
  this.localization = W(this);
@@ -1579,7 +1579,7 @@ const en = 5, Us = class extends r.Component {
1579
1579
  return !!(this.props.smoothScroll && this.animateToIndex);
1580
1580
  }
1581
1581
  get todayIsInRange() {
1582
- return F(L(), C(this.props.min), C(this.props.max));
1582
+ return F(H(), C(this.props.min), C(this.props.max));
1583
1583
  }
1584
1584
  componentDidUpdate(s, t) {
1585
1585
  this.shouldScroll = !1, this.indexToScroll !== void 0 && this.virtualization && this.virtualization[this.animate ? "animateToIndex" : "scrollToIndex"](this.indexToScroll), this.isActive && this.focusActiveDate(), this.lastView = this.props.activeView, this.indexToScroll = void 0;
@@ -1845,7 +1845,7 @@ const Re = (s) => s ? s.virtualization : null, Ds = (s = bt.defaultProps.min, t
1845
1845
  }, this.handleKeyDown = (e) => {
1846
1846
  const { keyCode: a, ctrlKey: o, metaKey: l } = e;
1847
1847
  if (!(!this.focusedDate || !this.service)) {
1848
- if (a === 84 && this.setState({ focusedDate: L() }), (o || l) && (a === k.left || a === k.right)) {
1848
+ if (a === 84 && this.setState({ focusedDate: H() }), (o || l) && (a === k.left || a === k.right)) {
1849
1849
  if (this.props.disabled)
1850
1850
  return;
1851
1851
  this.didNavigationChange = !0, this.focusedDate.getDate() === 31 && this.focusedDate.setDate(30);
@@ -1901,7 +1901,7 @@ const Re = (s) => s ? s.virtualization : null, Ds = (s = bt.defaultProps.min, t
1901
1901
  this.topView
1902
1902
  ),
1903
1903
  focusedDate: K(
1904
- s.focusedDate || t || L(),
1904
+ s.focusedDate || t || H(),
1905
1905
  this.min,
1906
1906
  this.max
1907
1907
  )
@@ -1949,7 +1949,7 @@ const Re = (s) => s ? s.virtualization : null, Ds = (s = bt.defaultProps.min, t
1949
1949
  * @hidden
1950
1950
  */
1951
1951
  componentDidUpdate(s, t) {
1952
- fs(), t.activeView !== this.state.activeView && this.scrollSyncService && this.scrollSyncService.configure(this.state.activeView), this.calendarViewList && (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)(), this.didNavigationChange = !1, this.oldValue = this.value;
1952
+ fs(), t.activeView !== this.state.activeView && this.scrollSyncService && this.scrollSyncService.configure(this.state.activeView), this.calendarViewList && (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)(), this.didNavigationChange = !1, this.isActive && (this.oldValue = this.value);
1953
1953
  }
1954
1954
  /**
1955
1955
  * @hidden
@@ -2367,9 +2367,9 @@ const X = {
2367
2367
  i.push(a);
2368
2368
  return i;
2369
2369
  }, ls = (s, t, e) => ({
2370
- candidateValue: U(H, s),
2371
- maxValue: Wt(U(H, e), t.getHours() < e.getHours() ? 0 : 1),
2372
- minValue: U(H, t)
2370
+ candidateValue: U(L, s),
2371
+ maxValue: Wt(U(L, e), t.getHours() < e.getHours() ? 0 : 1),
2372
+ minValue: U(L, t)
2373
2373
  }), Sn = (s, t, e) => {
2374
2374
  if (!s || !t || !e)
2375
2375
  return s;
@@ -2400,13 +2400,13 @@ const X = {
2400
2400
  }, Cn = (s, t) => {
2401
2401
  if (s === null || t === null)
2402
2402
  return !1;
2403
- const e = U(H, s), i = U(H, t);
2403
+ const e = U(L, s), i = U(L, t);
2404
2404
  return e.getTime() < i.getHours();
2405
2405
  }, In = (s, t) => {
2406
2406
  if (s === null || t === null)
2407
2407
  return !1;
2408
- const e = U(H, s);
2409
- return U(H, t).getTime() < e.getHours();
2408
+ const e = U(L, s);
2409
+ return U(L, t).getTime() < e.getHours();
2410
2410
  }, Mn = "Please enter a valid value!", Z = class extends r.Component {
2411
2411
  constructor(s) {
2412
2412
  super(s), this.kendoDate = null, this.currentFormat = "", this.paste = !1, this._element = null, this._wrapper = null, this._lastSelectedSymbol = "", this.focus = () => {
@@ -3525,7 +3525,7 @@ class Wn {
3525
3525
  step: c = this.step
3526
3526
  } = t;
3527
3527
  this.boundRange = e, this.insertUndividedMax = i, this.toListItem = (h) => {
3528
- const u = de(H, h);
3528
+ const u = de(L, h);
3529
3529
  return {
3530
3530
  text: this.intl.formatDate(u, l.pattern),
3531
3531
  value: u
@@ -3602,7 +3602,7 @@ class jn {
3602
3602
  step: l = this.step
3603
3603
  } = t;
3604
3604
  this.insertUndividedMax = e, this.toListItem = (c) => {
3605
- const h = pe(H, c);
3605
+ const h = pe(L, c);
3606
3606
  return {
3607
3607
  text: this.intl.formatDate(h, o.pattern),
3608
3608
  value: h
@@ -3679,7 +3679,7 @@ class Qn {
3679
3679
  step: l = this.step
3680
3680
  } = t;
3681
3681
  this.insertUndividedMax = e, this.toListItem = (c) => {
3682
- const h = me(H, c);
3682
+ const h = me(L, c);
3683
3683
  return {
3684
3684
  text: this.intl.formatDate(h, o.pattern),
3685
3685
  value: h
@@ -3941,7 +3941,7 @@ Ce.propTypes = {
3941
3941
  Ce.defaultProps = {
3942
3942
  boundRange: !1,
3943
3943
  max: xt,
3944
- min: H,
3944
+ min: L,
3945
3945
  step: 1,
3946
3946
  smoothScroll: !0
3947
3947
  };
@@ -4005,7 +4005,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
4005
4005
  }
4006
4006
  get value() {
4007
4007
  return Sn(
4008
- this.snapTime(v(this.props.value || H)),
4008
+ this.snapTime(v(this.props.value || L)),
4009
4009
  this.min,
4010
4010
  this.max
4011
4011
  );
@@ -4252,7 +4252,7 @@ const ss = class extends r.Component {
4252
4252
  time: t
4253
4253
  });
4254
4254
  }, 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 = {
4255
- current: this.props.value || H,
4255
+ current: this.props.value || L,
4256
4256
  value: this.props.value || ss.defaultProps.value
4257
4257
  };
4258
4258
  }
@@ -4764,7 +4764,7 @@ const G = class extends r.Component {
4764
4764
  ) : R;
4765
4765
  }
4766
4766
  normalizeTime(s) {
4767
- return U(H, s);
4767
+ return U(L, s);
4768
4768
  }
4769
4769
  setShow(s) {
4770
4770
  const { onOpen: t, onClose: e } = this.props;
@@ -5032,7 +5032,7 @@ const Le = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => e instanceof
5032
5032
  }, this.handleKeyDown = (h) => {
5033
5033
  const { keyCode: d, ctrlKey: p, metaKey: f } = h;
5034
5034
  if (d === 84) {
5035
- const m = L();
5035
+ const m = H();
5036
5036
  this.calculateFocusFromValue = !1, this.setState({ focusedDate: m, navigateDate: m });
5037
5037
  }
5038
5038
  if ((p || f) && (d === k.left && this.handlePrevButtonClick(), d === k.right && this.handleNextButtonClick()), d === k.enter) {
@@ -5115,7 +5115,7 @@ const Le = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => e instanceof
5115
5115
  this.bottomView,
5116
5116
  this.topView
5117
5117
  ), c = K(
5118
- s.focusedDate || o || L(),
5118
+ s.focusedDate || o || H(),
5119
5119
  this.min,
5120
5120
  this.max
5121
5121
  );
@@ -5166,7 +5166,7 @@ const Le = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => e instanceof
5166
5166
  return this.props.activeRangeEnd !== void 0 ? this.props.activeRangeEnd : this.activeRangeEnd;
5167
5167
  }
5168
5168
  get todayIsInRange() {
5169
- return F(L(), C(this.min), C(this.max));
5169
+ return F(H(), C(this.min), C(this.max));
5170
5170
  }
5171
5171
  /**
5172
5172
  * @hidden
@@ -5206,7 +5206,7 @@ const Le = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => e instanceof
5206
5206
  this.state.navigateDate,
5207
5207
  this.props.views || At.defaultProps.views
5208
5208
  ));
5209
- const m = v(this.dates && this.dates[0] ? this.dates[0] : L());
5209
+ const m = v(this.dates && this.dates[0] ? this.dates[0] : H());
5210
5210
  return /* @__PURE__ */ r.createElement(
5211
5211
  "div",
5212
5212
  {
@@ -5820,8 +5820,8 @@ class ms extends r.Component {
5820
5820
  a
5821
5821
  ));
5822
5822
  }, this.handleReject = (e) => {
5823
- this.setState({ dateValue: this.props.value, timeValue: this.props.value || H });
5824
- const i = this.mergeDate(this.props.value, this.props.value || H);
5823
+ this.setState({ dateValue: this.props.value, timeValue: this.props.value || L });
5824
+ const i = this.mergeDate(this.props.value, this.props.value || L);
5825
5825
  if (this.props.onReject) {
5826
5826
  const a = {
5827
5827
  nativeEvent: e.nativeEvent,
@@ -5889,7 +5889,7 @@ class ms extends r.Component {
5889
5889
  }, this.state = {
5890
5890
  tab: "date",
5891
5891
  dateValue: this.props.value,
5892
- timeValue: this.props.value || H
5892
+ timeValue: this.props.value || L
5893
5893
  };
5894
5894
  }
5895
5895
  get calendar() {
@@ -5904,8 +5904,12 @@ class ms extends r.Component {
5904
5904
  get localizationService() {
5905
5905
  return W(this);
5906
5906
  }
5907
- componentDidUpdate() {
5908
- this.shouldFocusPart && this.focus({ preventScroll: !0 }), this.shouldFocusPart = !1;
5907
+ componentDidUpdate(t, e) {
5908
+ var i, a;
5909
+ this.shouldFocusPart && this.focus({ preventScroll: !0 }), (((i = t.value) == null ? void 0 : i.getTime()) !== ((a = this.props.value) == null ? void 0 : a.getTime()) || this.state.tab !== e.tab && this.props.value) && this.setState({
5910
+ dateValue: this.props.value,
5911
+ timeValue: this.props.value || L
5912
+ }), this.shouldFocusPart = !1;
5909
5913
  }
5910
5914
  render() {
5911
5915
  const {
@@ -5965,9 +5969,10 @@ class ms extends r.Component {
5965
5969
  },
5966
5970
  p
5967
5971
  ))),
5968
- /* @__PURE__ */ r.createElement("div", { className: "k-datetime-selector" }, /* @__PURE__ */ r.createElement("div", { className: "k-datetime-calendar-wrap", ref: (m) => this._calendarWrap = m }, this.props.calendar ? /* @__PURE__ */ r.createElement(this.props.calendar, { ...f }) : /* @__PURE__ */ r.createElement(
5972
+ /* @__PURE__ */ r.createElement("div", { className: "k-datetime-selector" }, /* @__PURE__ */ r.createElement("div", { className: "k-datetime-calendar-wrap", ref: (m) => this._calendarWrap = m }, this.props.calendar ? /* @__PURE__ */ r.createElement(this.props.calendar, { key: this.state.tab, ...f }) : /* @__PURE__ */ r.createElement(
5969
5973
  as,
5970
5974
  {
5975
+ key: this.state.tab,
5971
5976
  ref: (m) => {
5972
5977
  this._calendar = m;
5973
5978
  },
@@ -6002,7 +6007,7 @@ class ms extends r.Component {
6002
6007
  return this.props.maxTime !== void 0 ? this.props.maxTime : this.normalizeRange(this.props.max, this.state.dateValue);
6003
6008
  }
6004
6009
  normalizeRange(t, e) {
6005
- return wt(t, e || L()) ? t : null;
6010
+ return wt(t, e || H()) ? t : null;
6006
6011
  }
6007
6012
  hasActiveButton() {
6008
6013
  if (!this._acceptButton)
@@ -6014,7 +6019,7 @@ class ms extends r.Component {
6014
6019
  return t && e ? U(e, t) : e;
6015
6020
  }
6016
6021
  mergeDate(t, e) {
6017
- return t ? U(t || L(), e) : e;
6022
+ return t ? U(t || H(), e) : e;
6018
6023
  }
6019
6024
  }
6020
6025
  ms.defaultProps = {
@@ -6527,7 +6532,7 @@ export {
6527
6532
  Lt as decreaseValue,
6528
6533
  $e as end,
6529
6534
  Vt as getNow,
6530
- L as getToday,
6535
+ H as getToday,
6531
6536
  Ft as increaseValue,
6532
6537
  Ye as separator,
6533
6538
  Ue as start,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dateinputs",
3
- "version": "7.0.3-develop.8",
3
+ "version": "7.1.0-develop.1",
4
4
  "description": "React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,12 +24,12 @@
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-date-math": "^1.4.0",
26
26
  "@progress/kendo-licensing": "^1.3.4",
27
- "@progress/kendo-react-buttons": "7.0.3-develop.8",
28
- "@progress/kendo-react-common": "7.0.3-develop.8",
29
- "@progress/kendo-react-intl": "7.0.3-develop.8",
30
- "@progress/kendo-react-labels": "7.0.3-develop.8",
31
- "@progress/kendo-react-layout": "7.0.3-develop.8",
32
- "@progress/kendo-react-popup": "7.0.3-develop.8",
27
+ "@progress/kendo-react-buttons": "7.1.0-develop.1",
28
+ "@progress/kendo-react-common": "7.1.0-develop.1",
29
+ "@progress/kendo-react-intl": "7.1.0-develop.1",
30
+ "@progress/kendo-react-labels": "7.1.0-develop.1",
31
+ "@progress/kendo-react-layout": "7.1.0-develop.1",
32
+ "@progress/kendo-react-popup": "7.1.0-develop.1",
33
33
  "@progress/kendo-svg-icons": "^2.1.0",
34
34
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
35
35
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"