@progress/kendo-react-dateinputs 9.5.0 → 10.0.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.
@@ -9,21 +9,21 @@ import * as i from "react";
9
9
  import e from "prop-types";
10
10
  import { Popup as _ } from "@progress/kendo-react-popup";
11
11
  import { cloneDate as w } from "@progress/kendo-date-math";
12
- import { classNames as D, Keys as c, validatePackage as F, canUseDOM as b, IconWrap as P, getActiveElement as z, createPropsContext as B, withIdHOC as N, withPropsContext as L, withAdaptiveModeContext as V } from "@progress/kendo-react-common";
12
+ import { classNames as D, Keys as c, validatePackage as F, canUseDOM as b, IconWrap as P, WatermarkOverlay as z, getActiveElement as B, createPropsContext as L, withIdHOC as N, withPropsContext as V, withAdaptiveModeContext as W } from "@progress/kendo-react-common";
13
13
  import { provideLocalizationService as m, registerForLocalization as K } from "@progress/kendo-react-intl";
14
14
  import { arrowsSwapIcon as U } from "@progress/kendo-svg-icons";
15
- import { packageMetadata as W } from "../package-metadata.mjs";
15
+ import { packageMetadata as q } from "../package-metadata.mjs";
16
16
  import { DateInput as f } from "../dateinput/DateInput.mjs";
17
- import { MultiViewCalendar as q } from "../calendar/components/MultiViewCalendar.mjs";
17
+ import { MultiViewCalendar as H } from "../calendar/components/MultiViewCalendar.mjs";
18
18
  import { EMPTY_SELECTIONRANGE as r } from "../calendar/models/SelectionRange.mjs";
19
- import { nullable as h, MAX_DATE as H, MIN_DATE as j } from "../utils.mjs";
19
+ import { nullable as h, MAX_DATE as j, MIN_DATE as G } from "../utils.mjs";
20
20
  import { dateRangePickerCancel as I, messages as l, dateRangePickerSet as C, start as S, end as y, separator as E, swapStartEnd as p } from "../messages/index.mjs";
21
- import { Button as G } from "@progress/kendo-react-buttons";
22
- import { AdaptiveMode as X } from "../common/AdaptiveMode.mjs";
23
- import { ActionSheetContent as Y } from "@progress/kendo-react-layout";
21
+ import { Button as X } from "@progress/kendo-react-buttons";
22
+ import { AdaptiveMode as Y } from "../common/AdaptiveMode.mjs";
23
+ import { ActionSheetContent as Z } from "@progress/kendo-react-layout";
24
24
  const o = class o extends i.Component {
25
25
  constructor(a) {
26
- super(a), this._element = null, this._calendar = null, this._startDateInput = i.createRef(), this._endDateInput = i.createRef(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.focus = () => {
26
+ super(a), this._element = null, this._calendar = null, this._startDateInput = i.createRef(), this._endDateInput = i.createRef(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.showLicenseWatermark = !1, this.focus = () => {
27
27
  this.startDateInput && this.startDateInput.focus();
28
28
  }, this.setCalendarRef = (t) => {
29
29
  this._calendar = t;
@@ -44,7 +44,7 @@ const o = class o extends i.Component {
44
44
  dir: this.props.dir,
45
45
  onChange: this.handleCalendarChange
46
46
  };
47
- return this.props.calendar ? /* @__PURE__ */ i.createElement(this.props.calendar, { ...s }) : /* @__PURE__ */ i.createElement(q, { ...s, ref: this.setCalendarRef });
47
+ return this.props.calendar ? /* @__PURE__ */ i.createElement(this.props.calendar, { ...s }) : /* @__PURE__ */ i.createElement(H, { ...s, ref: this.setCalendarRef });
48
48
  }, this.renderPopup = () => {
49
49
  const t = {
50
50
  popupClass: D("k-calendar-container", "k-daterangepicker-popup"),
@@ -79,7 +79,7 @@ const o = class o extends i.Component {
79
79
  onApply: this.handleBlur
80
80
  }
81
81
  };
82
- return /* @__PURE__ */ i.createElement(X, { ...s }, /* @__PURE__ */ i.createElement(Y, { overflowHidden: !0 }, /* @__PURE__ */ i.createElement("div", { className: "k-scrollable-wrap" }, this.renderCalendar())));
82
+ return /* @__PURE__ */ i.createElement(Y, { ...s }, /* @__PURE__ */ i.createElement(Z, { overflowHidden: !0 }, /* @__PURE__ */ i.createElement("div", { className: "k-scrollable-wrap" }, this.renderCalendar())));
83
83
  }, this.handleReverseClick = (t) => {
84
84
  const s = {
85
85
  start: this.value.end,
@@ -149,7 +149,7 @@ const o = class o extends i.Component {
149
149
  n.call(void 0, d);
150
150
  }
151
151
  this.valueDuringOnChange = void 0;
152
- }, F(W), this.state = {
152
+ }, this.showLicenseWatermark = !F(q, { component: "DateRangePicker" }), this.state = {
153
153
  show: this.props.show || this.props.defaultShow || o.defaultProps.defaultShow,
154
154
  value: this.props.value || this.props.defaultValue || o.defaultProps.defaultValue,
155
155
  currentValue: r
@@ -244,15 +244,15 @@ const o = class o extends i.Component {
244
244
  * @hidden
245
245
  */
246
246
  render() {
247
- const { autoFocus: a, inputAttributes: t } = this.props, s = this.value || r, n = this.mobileMode && this.show ? this.state.currentValue : s, d = (this.props.startDateInputSettings || {}).id || this._startInputId, x = (this.props.endDateInputSettings || {}).id || this._endInputId, O = D(
247
+ const { autoFocus: a, inputAttributes: t } = this.props, s = this.value || r, n = this.mobileMode && this.show ? this.state.currentValue : s, d = (this.props.startDateInputSettings || {}).id || this._startInputId, x = (this.props.endDateInputSettings || {}).id || this._endInputId, k = D(
248
248
  "k-daterangepicker",
249
249
  {
250
250
  "k-disabled": this.props.disabled
251
251
  },
252
252
  this.props.className
253
- ), R = this.localizationService.toLanguageString(S, l[S]), k = this.localizationService.toLanguageString(y, l[y]), M = this.localizationService.toLanguageString(E, l[E]), g = {
253
+ ), O = this.localizationService.toLanguageString(S, l[S]), R = this.localizationService.toLanguageString(y, l[y]), M = this.localizationService.toLanguageString(E, l[E]), g = {
254
254
  disableSelection: this.mobileMode && !0,
255
- label: R,
255
+ label: O,
256
256
  format: this.props.format,
257
257
  min: this.min,
258
258
  max: this.max,
@@ -268,7 +268,7 @@ const o = class o extends i.Component {
268
268
  inputAttributes: this.props.inputAttributes
269
269
  }, v = {
270
270
  disableSelection: this.mobileMode && !0,
271
- label: k,
271
+ label: R,
272
272
  format: this.props.format,
273
273
  min: this.min,
274
274
  max: this.max,
@@ -283,7 +283,7 @@ const o = class o extends i.Component {
283
283
  onChange: this.handleEndChange,
284
284
  inputAttributes: this.props.inputAttributes
285
285
  }, A = /* @__PURE__ */ i.createElement(
286
- G,
286
+ X,
287
287
  {
288
288
  type: "button",
289
289
  className: "k-select",
@@ -305,7 +305,7 @@ const o = class o extends i.Component {
305
305
  ref: (T) => {
306
306
  this._element = T;
307
307
  },
308
- className: O,
308
+ className: k,
309
309
  style: this.props.style,
310
310
  id: this.props.id,
311
311
  "aria-labelledby": this.props.ariaLabelledBy,
@@ -338,12 +338,12 @@ const o = class o extends i.Component {
338
338
  }
339
339
  ),
340
340
  !this.mobileMode && this.renderPopup()
341
- ), this.mobileMode && this.renderAdaptivePopup());
341
+ ), this.mobileMode && this.renderAdaptivePopup(), this.showLicenseWatermark && /* @__PURE__ */ i.createElement(z, null));
342
342
  }
343
343
  focusDateInputElement() {
344
344
  if (!document || !this.startDateInput || !this.startDateInput.element || !this.endDateInput || !this.endDateInput.element)
345
345
  return;
346
- const a = z(document);
346
+ const a = B(document);
347
347
  (this.value.start === null || this.value.end !== null) && a !== this.endDateInput.element ? this.startDateInput.element.focus({ preventScroll: !0 }) : a !== this.startDateInput.element && this.endDateInput.element.focus({ preventScroll: !0 });
348
348
  }
349
349
  nextTick(a) {
@@ -421,22 +421,22 @@ o.displayName = "DateRangePicker", o.propTypes = {
421
421
  defaultValue: r,
422
422
  disabled: !1,
423
423
  format: "d",
424
- max: H,
425
- min: j,
424
+ max: j,
425
+ min: G,
426
426
  swapButton: !1,
427
427
  autoFocus: !1
428
428
  };
429
429
  let u = o;
430
- const Z = B(), J = N(
431
- L(
432
- Z,
433
- V(u)
430
+ const J = L(), Q = N(
431
+ V(
432
+ J,
433
+ W(u)
434
434
  )
435
435
  );
436
- J.displayName = "KendoReactDateRangePicker";
436
+ Q.displayName = "KendoReactDateRangePicker";
437
437
  K(u);
438
438
  export {
439
- J as DateRangePicker,
440
- Z as DateRangePickerPropsContext,
439
+ Q as DateRangePicker,
440
+ J as DateRangePickerPropsContext,
441
441
  u as DateRangePickerWithoutContext
442
442
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),e=require("prop-types"),J=require("@progress/kendo-react-popup"),T=require("@progress/kendo-date-math"),s=require("@progress/kendo-react-common"),Q=require("@progress/kendo-svg-icons"),ee=require("../dateinput/DateInput.js"),te=require("@progress/kendo-react-buttons"),ie=require("../package-metadata.js"),p=require("../utils.js"),l=require("../messages/index.js"),m=require("@progress/kendo-react-intl"),se=require("./DateTimeSelector.js"),oe=require("../timepicker/utils.js"),ae=require("../hooks/usePickerFloatingLabel.js"),ne=require("../common/AdaptiveMode.js"),re=require("@progress/kendo-react-layout");function le(h){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(i,t,o.get?o:{enumerable:!0,get:()=>h[t]})}}return i.default=h,Object.freeze(i)}const r=le(G),a=class a extends r.Component{constructor(i){super(i),this._element=null,this._dateInput=r.createRef(),this._dateTimeSelector=null,this.shouldFocusDateInput=!1,this.prevShow=!1,this.focus=()=>{const t=this.dateInputElement();t&&t.focus()},this.renderPicker=()=>{const{disabled:t,minTime:o,maxTime:n,format:c,calendar:d,cancelButton:u,weekNumber:v,focusedDate:f,unstyled:w}=this.props;return r.createElement(se.DateTimeSelector,{ref:b=>{this._dateTimeSelector=b},cancelButton:u,steps:this.props.steps,value:this.value,onChange:this.handleValueChange,onReject:this.handleReject,disabled:t,weekNumber:v,min:this.min,max:this.max,minTime:o,maxTime:n,focusedDate:f,format:c,calendar:d,mobileMode:this.mobileMode,footerActions:!this.mobileMode,unstyled:w})},this.renderAdaptivePopup=()=>{const{windowWidth:t=0}=this.state,o=m.provideLocalizationService(this).toLanguageString(l.dateTimePickerCancel,l.messages[l.dateTimePickerCancel]),n=m.provideLocalizationService(this).toLanguageString(l.dateTimePickerSet,l.messages[l.dateTimePickerSet]),c={expand:this.show,onClose:this.handleBlur,title:this.props.adaptiveTitle,windowWidth:t,footer:{cancelText:o,onCancel:d=>{var u;return(u=this._dateTimeSelector)==null?void 0:u.handleReject(d)},applyText:n,onApply:d=>{var u;return(u=this._dateTimeSelector)==null?void 0:u.handleAccept(d)}}};return r.createElement(ne.AdaptiveMode,{...c},r.createElement(re.ActionSheetContent,{overflowHidden:!0},this.renderPicker()))},this.handleReject=()=>{this.shouldFocusDateInput=!0,this.setShow(!1)},this.handleValueChange=t=>{this.setState({value:T.cloneDate(t.value||void 0)}),this.valueDuringOnChange=t.value,this.showDuringOnChange=!1,this.mobileMode||(this.shouldFocusDateInput=!0);const{onChange:o}=this.props;o&&o.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:this.value,show:this.show,target:this}),this.valueDuringOnChange=void 0,this.showDuringOnChange=void 0,this.setShow(!1)},this.handleFocus=()=>{this.setState({focused:!0})},this.handleBlur=()=>{this.setState({focused:!1}),this.setShow(!1)},this.handleDateIconClick=()=>{this.props.disabled||(this.shouldFocusDateInput=!0,this.setShow(!this.show))},this.handleIconMouseDown=t=>{t.preventDefault()},this.handleKeyDown=t=>{const{altKey:o,keyCode:n}=t;if(n===s.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}o&&(n===s.Keys.up||n===s.Keys.down)&&(t.preventDefault(),t.stopPropagation(),this.shouldFocusDateInput=n===s.Keys.up,this.setShow(n===s.Keys.down))},this.dateInputElement=()=>this.dateInput&&this.dateInput.element||this.element&&this.element.querySelector(".k-dateinput > input.k-input-inner"),s.validatePackage(ie.packageMetadata),this.state={value:this.props.defaultValue||a.defaultProps.defaultValue,show:this.props.defaultShow||a.defaultProps.defaultShow,focused:!1}}get _popupId(){return this.props.id+"-popup-id"}get document(){if(s.canUseDOM)return this.element&&this.element.ownerDocument||document}get element(){return this._element}get dateInput(){return this._dateInput.current}get value(){const i=this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value;return i!==null?T.cloneDate(i):null}get show(){return this.showDuringOnChange!==void 0?this.showDuringOnChange:this.props.show!==void 0?this.props.show:this.state.show}get name(){return this.props.name}get mobileMode(){var t;return!!(this.state.windowWidth&&this.props._adaptiveMode&&this.state.windowWidth<=((t=this.props._adaptiveMode)==null?void 0:t.medium)&&this.props.adaptive)}get min(){return this.props.min!==void 0?this.props.min:a.defaultProps.min}get max(){return this.props.max!==void 0?this.props.max:a.defaultProps.max}get validity(){const i=p.isInDateRange(this.value,this.min,this.max)&&oe.isInTimeRange(this.value,this.props.minTime||p.MIN_TIME,this.props.maxTime||p.MAX_TIME),t=this.props.validationMessage!==void 0,o=(!this.required||this.value!==null)&&i,n=this.props.valid!==void 0?this.props.valid:o;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:n,valueMissing:this.value===null}}get validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:a.defaultProps.validityStyles}get required(){return this.props.required!==void 0?this.props.required:!1}get dateInputComp(){return this.props.dateInput||a.defaultProps.dateInput}componentDidMount(){var i;this.observerResize=s.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(this.calculateMedia.bind(this)),this.show&&this.forceUpdate(),(i=this.document)!=null&&i.body&&this.observerResize&&this.observerResize.observe(this.document.body)}componentDidUpdate(){const i=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),i&&!this.show&&this.shouldFocusDateInput&&i.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1}componentWillUnmount(){var i;clearTimeout(this.nextTickId),(i=this.document)!=null&&i.body&&this.observerResize&&this.observerResize.disconnect()}render(){const{size:i=a.defaultProps.size,rounded:t=a.defaultProps.rounded,fillMode:o=a.defaultProps.fillMode,autoFocus:n=a.defaultProps.autoFocus,inputAttributes:c,disabled:d,tabIndex:u,title:v,id:f,format:w,formatPlaceholder:b,min:O,max:k,className:C,width:x,name:q,validationMessage:E,required:F,validityStyles:R,minTime:z,maxTime:A,ariaLabelledBy:B,ariaDescribedBy:N,popup:L=J.Popup,unstyled:y,autoFill:_,twoDigitYearMax:K,enableMouseWheel:j,autoCorrectParts:V,autoSwitchParts:U,autoSwitchKeys:H,allowCaretMode:W}=this.props,D=y&&y.uDateTimePicker,S=!this.validityStyles||this.validity.valid,X={id:f,ariaLabelledBy:B,ariaDescribedBy:N,format:w,formatPlaceholder:b,disabled:d,title:v,validityStyles:R,validationMessage:E,required:F,min:O,max:k,minTime:z,maxTime:A,name:q,tabIndex:this.show?-1:u,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaExpanded:this.show,size:null,fillMode:null,rounded:null,unstyled:y,autoFill:_,twoDigitYearMax:K,enableMouseWheel:j,autoCorrectParts:V,autoSwitchParts:U,autoSwitchKeys:H,allowCaretMode:W},I=r.createElement(s.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},({onFocus:Y,onBlur:Z})=>r.createElement(r.Fragment,null,r.createElement("div",{ref:$=>{this._element=$},className:s.classNames(s.uDateTimePicker.wrapper({c:D,size:i,fillMode:o,rounded:t,disabled:d,required:this.required,invalid:!S}),C),onKeyDown:this.handleKeyDown,style:{width:x},onFocus:this.mobileMode?void 0:Y,onBlur:Z,onClick:this.mobileMode?this.handleDateIconClick:void 0},r.createElement(this.dateInputComp,{_ref:this._dateInput,ariaRole:"combobox",ariaControls:this._popupId,ariaHasPopup:"dialog",autoFocus:n,inputAttributes:c,...X}),r.createElement(te.Button,{tabIndex:-1,type:"button",icon:"calendar",svgIcon:Q.calendarIcon,onMouseDown:this.handleIconMouseDown,onClick:this.mobileMode?void 0:this.handleDateIconClick,title:m.provideLocalizationService(this).toLanguageString(l.toggleDateTimeSelector,l.messages[l.toggleDateTimeSelector]),className:s.classNames(s.uDateTimePicker.inputButton({c:D})),rounded:null,fillMode:o,"aria-label":m.provideLocalizationService(this).toLanguageString(l.toggleDateTimeSelector,l.messages[l.toggleDateTimeSelector])}),r.createElement(L,{show:this.show,animate:this.element!==null,anchor:this.element,popupClass:s.classNames(s.uDateTimePicker.popup({c:D})),id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},!this.mobileMode&&this.renderPicker())),this.mobileMode&&this.renderAdaptivePopup()));return this.props.label?r.createElement(ae.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:f,editorValid:S,editorDisabled:this.props.disabled,children:I,style:{width:this.props.width}}):I}setShow(i){const{onOpen:t,onClose:o}=this.props;this.show!==i&&(this.setState({show:i}),i&&t&&t.call(void 0,{target:this}),!i&&o&&o.call(void 0,{target:this}))}nextTick(i){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(()=>i())}calculateMedia(i){for(const t of i)this.setState({windowWidth:t.target.clientWidth})}};a.displayName="DateTimePicker",a.propTypes={className:e.string,defaultShow:e.bool,defaultValue:e.instanceOf(Date),disabled:e.bool,focusedDate:e.instanceOf(Date),format:e.oneOfType([e.string,e.shape({skeleton:e.string,pattern:e.string,date:e.oneOf(["short","medium","long","full"]),time:e.oneOf(["short","medium","long","full"]),datetime:e.oneOf(["short","medium","long","full"]),era:e.oneOf(["narrow","short","long"]),year:e.oneOf(["numeric","2-digit"]),month:e.oneOf(["numeric","2-digit","narrow","short","long"]),day:e.oneOf(["numeric","2-digit"]),weekday:e.oneOf(["narrow","short","long"]),hour:e.oneOf(["numeric","2-digit"]),hour12:e.bool,minute:e.oneOf(["numeric","2-digit"]),second:e.oneOf(["numeric","2-digit"]),timeZoneName:e.oneOf(["short","long"])})]),formatPlaceholder:e.oneOfType([e.oneOf(["wide","narrow","short","formatPattern"]),e.shape({year:e.string,month:e.string,day:e.string,hour:e.string,minute:e.string,second:e.string})]),id:e.string,ariaLabelledBy:e.string,ariaDescribedBy:e.string,min:e.instanceOf(Date),max:e.instanceOf(Date),name:e.string,popupSettings:e.shape({animate:e.bool,appendTo:e.any,popupClass:e.string}),show:e.bool,tabIndex:e.number,title:e.string,value:e.instanceOf(Date),weekNumber:e.bool,width:e.oneOfType([e.number,e.string]),validationMessage:e.string,required:e.bool,validate:e.bool,valid:e.bool,cancelButton:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),autoFocus:e.bool,inputAttributes:e.object},a.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:p.MAX_DATE,min:p.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,cancelButton:!0,dateInput:ee.DateInput,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1};let g=a;const P=s.createPropsContext(),M=s.withIdHOC(s.withPropsContext(P,s.withUnstyledHOC(s.withAdaptiveModeContext(g))));M.displayName="KendoReactDateTimePicker";m.registerForLocalization(g);exports.DateTimePicker=M;exports.DateTimePickerPropsContext=P;exports.DateTimePickerWithoutContext=g;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),e=require("prop-types"),J=require("@progress/kendo-react-popup"),T=require("@progress/kendo-date-math"),o=require("@progress/kendo-react-common"),Q=require("@progress/kendo-svg-icons"),ee=require("../dateinput/DateInput.js"),te=require("@progress/kendo-react-buttons"),p=require("../utils.js"),l=require("../messages/index.js"),m=require("@progress/kendo-react-intl"),ie=require("./DateTimeSelector.js"),se=require("../timepicker/utils.js"),oe=require("../hooks/usePickerFloatingLabel.js"),ne=require("../common/AdaptiveMode.js"),ae=require("@progress/kendo-react-layout");function re(h){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>h[t]})}}return i.default=h,Object.freeze(i)}const r=re(G),n=class n extends r.Component{constructor(i){super(i),this._element=null,this._dateInput=r.createRef(),this._dateTimeSelector=null,this.shouldFocusDateInput=!1,this.prevShow=!1,this.focus=()=>{const t=this.dateInputElement();t&&t.focus()},this.renderPicker=()=>{const{disabled:t,minTime:s,maxTime:a,format:c,calendar:d,cancelButton:u,weekNumber:v,focusedDate:f,unstyled:w}=this.props;return r.createElement(ie.DateTimeSelector,{ref:b=>{this._dateTimeSelector=b},cancelButton:u,steps:this.props.steps,value:this.value,onChange:this.handleValueChange,onReject:this.handleReject,disabled:t,weekNumber:v,min:this.min,max:this.max,minTime:s,maxTime:a,focusedDate:f,format:c,calendar:d,mobileMode:this.mobileMode,footerActions:!this.mobileMode,unstyled:w})},this.renderAdaptivePopup=()=>{const{windowWidth:t=0}=this.state,s=m.provideLocalizationService(this).toLanguageString(l.dateTimePickerCancel,l.messages[l.dateTimePickerCancel]),a=m.provideLocalizationService(this).toLanguageString(l.dateTimePickerSet,l.messages[l.dateTimePickerSet]),c={expand:this.show,onClose:this.handleBlur,title:this.props.adaptiveTitle,windowWidth:t,footer:{cancelText:s,onCancel:d=>{var u;return(u=this._dateTimeSelector)==null?void 0:u.handleReject(d)},applyText:a,onApply:d=>{var u;return(u=this._dateTimeSelector)==null?void 0:u.handleAccept(d)}}};return r.createElement(ne.AdaptiveMode,{...c},r.createElement(ae.ActionSheetContent,{overflowHidden:!0},this.renderPicker()))},this.handleReject=()=>{this.shouldFocusDateInput=!0,this.setShow(!1)},this.handleValueChange=t=>{this.setState({value:T.cloneDate(t.value||void 0)}),this.valueDuringOnChange=t.value,this.showDuringOnChange=!1,this.mobileMode||(this.shouldFocusDateInput=!0);const{onChange:s}=this.props;s&&s.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:this.value,show:this.show,target:this}),this.valueDuringOnChange=void 0,this.showDuringOnChange=void 0,this.setShow(!1)},this.handleFocus=()=>{this.setState({focused:!0})},this.handleBlur=()=>{this.setState({focused:!1}),this.setShow(!1)},this.handleDateIconClick=()=>{this.props.disabled||(this.shouldFocusDateInput=!0,this.setShow(!this.show))},this.handleIconMouseDown=t=>{t.preventDefault()},this.handleKeyDown=t=>{const{altKey:s,keyCode:a}=t;if(a===o.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}s&&(a===o.Keys.up||a===o.Keys.down)&&(t.preventDefault(),t.stopPropagation(),this.shouldFocusDateInput=a===o.Keys.up,this.setShow(a===o.Keys.down))},this.dateInputElement=()=>this.dateInput&&this.dateInput.element||this.element&&this.element.querySelector(".k-dateinput > input.k-input-inner"),this.state={value:this.props.defaultValue||n.defaultProps.defaultValue,show:this.props.defaultShow||n.defaultProps.defaultShow,focused:!1}}get _popupId(){return this.props.id+"-popup-id"}get document(){if(o.canUseDOM)return this.element&&this.element.ownerDocument||document}get element(){return this._element}get dateInput(){return this._dateInput.current}get value(){const i=this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value;return i!==null?T.cloneDate(i):null}get show(){return this.showDuringOnChange!==void 0?this.showDuringOnChange:this.props.show!==void 0?this.props.show:this.state.show}get name(){return this.props.name}get mobileMode(){var t;return!!(this.state.windowWidth&&this.props._adaptiveMode&&this.state.windowWidth<=((t=this.props._adaptiveMode)==null?void 0:t.medium)&&this.props.adaptive)}get min(){return this.props.min!==void 0?this.props.min:n.defaultProps.min}get max(){return this.props.max!==void 0?this.props.max:n.defaultProps.max}get validity(){const i=p.isInDateRange(this.value,this.min,this.max)&&se.isInTimeRange(this.value,this.props.minTime||p.MIN_TIME,this.props.maxTime||p.MAX_TIME),t=this.props.validationMessage!==void 0,s=(!this.required||this.value!==null)&&i,a=this.props.valid!==void 0?this.props.valid:s;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:this.value===null}}get validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:n.defaultProps.validityStyles}get required(){return this.props.required!==void 0?this.props.required:!1}get dateInputComp(){return this.props.dateInput||n.defaultProps.dateInput}componentDidMount(){var i;this.observerResize=o.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(this.calculateMedia.bind(this)),this.show&&this.forceUpdate(),(i=this.document)!=null&&i.body&&this.observerResize&&this.observerResize.observe(this.document.body)}componentDidUpdate(){const i=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),i&&!this.show&&this.shouldFocusDateInput&&i.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1}componentWillUnmount(){var i;clearTimeout(this.nextTickId),(i=this.document)!=null&&i.body&&this.observerResize&&this.observerResize.disconnect()}render(){const{size:i=n.defaultProps.size,rounded:t=n.defaultProps.rounded,fillMode:s=n.defaultProps.fillMode,autoFocus:a=n.defaultProps.autoFocus,inputAttributes:c,disabled:d,tabIndex:u,title:v,id:f,format:w,formatPlaceholder:b,min:M,max:k,className:C,width:x,name:q,validationMessage:E,required:F,validityStyles:R,minTime:z,maxTime:A,ariaLabelledBy:B,ariaDescribedBy:N,popup:L=J.Popup,unstyled:y,autoFill:_,twoDigitYearMax:K,enableMouseWheel:j,autoCorrectParts:V,autoSwitchParts:U,autoSwitchKeys:H,allowCaretMode:W}=this.props,D=y&&y.uDateTimePicker,S=!this.validityStyles||this.validity.valid,X={id:f,ariaLabelledBy:B,ariaDescribedBy:N,format:w,formatPlaceholder:b,disabled:d,title:v,validityStyles:R,validationMessage:E,required:F,min:M,max:k,minTime:z,maxTime:A,name:q,tabIndex:this.show?-1:u,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaExpanded:this.show,size:null,fillMode:null,rounded:null,unstyled:y,autoFill:_,twoDigitYearMax:K,enableMouseWheel:j,autoCorrectParts:V,autoSwitchParts:U,autoSwitchKeys:H,allowCaretMode:W},I=r.createElement(o.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},({onFocus:Y,onBlur:Z})=>r.createElement(r.Fragment,null,r.createElement("div",{ref:$=>{this._element=$},className:o.classNames(o.uDateTimePicker.wrapper({c:D,size:i,fillMode:s,rounded:t,disabled:d,required:this.required,invalid:!S}),C),onKeyDown:this.handleKeyDown,style:{width:x},onFocus:this.mobileMode?void 0:Y,onBlur:Z,onClick:this.mobileMode?this.handleDateIconClick:void 0},r.createElement(this.dateInputComp,{_ref:this._dateInput,ariaRole:"combobox",ariaControls:this._popupId,ariaHasPopup:"dialog",autoFocus:a,inputAttributes:c,...X}),r.createElement(te.Button,{tabIndex:-1,type:"button",icon:"calendar",svgIcon:Q.calendarIcon,onMouseDown:this.handleIconMouseDown,onClick:this.mobileMode?void 0:this.handleDateIconClick,title:m.provideLocalizationService(this).toLanguageString(l.toggleDateTimeSelector,l.messages[l.toggleDateTimeSelector]),className:o.classNames(o.uDateTimePicker.inputButton({c:D})),rounded:null,fillMode:s,"aria-label":m.provideLocalizationService(this).toLanguageString(l.toggleDateTimeSelector,l.messages[l.toggleDateTimeSelector])}),r.createElement(L,{show:this.show,animate:this.element!==null,anchor:this.element,popupClass:o.classNames(o.uDateTimePicker.popup({c:D})),id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},!this.mobileMode&&this.renderPicker())),this.mobileMode&&this.renderAdaptivePopup()));return this.props.label?r.createElement(oe.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:f,editorValid:S,editorDisabled:this.props.disabled,children:I,style:{width:this.props.width}}):I}setShow(i){const{onOpen:t,onClose:s}=this.props;this.show!==i&&(this.setState({show:i}),i&&t&&t.call(void 0,{target:this}),!i&&s&&s.call(void 0,{target:this}))}nextTick(i){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(()=>i())}calculateMedia(i){for(const t of i)this.setState({windowWidth:t.target.clientWidth})}};n.displayName="DateTimePicker",n.propTypes={className:e.string,defaultShow:e.bool,defaultValue:e.instanceOf(Date),disabled:e.bool,focusedDate:e.instanceOf(Date),format:e.oneOfType([e.string,e.shape({skeleton:e.string,pattern:e.string,date:e.oneOf(["short","medium","long","full"]),time:e.oneOf(["short","medium","long","full"]),datetime:e.oneOf(["short","medium","long","full"]),era:e.oneOf(["narrow","short","long"]),year:e.oneOf(["numeric","2-digit"]),month:e.oneOf(["numeric","2-digit","narrow","short","long"]),day:e.oneOf(["numeric","2-digit"]),weekday:e.oneOf(["narrow","short","long"]),hour:e.oneOf(["numeric","2-digit"]),hour12:e.bool,minute:e.oneOf(["numeric","2-digit"]),second:e.oneOf(["numeric","2-digit"]),timeZoneName:e.oneOf(["short","long"])})]),formatPlaceholder:e.oneOfType([e.oneOf(["wide","narrow","short","formatPattern"]),e.shape({year:e.string,month:e.string,day:e.string,hour:e.string,minute:e.string,second:e.string})]),id:e.string,ariaLabelledBy:e.string,ariaDescribedBy:e.string,min:e.instanceOf(Date),max:e.instanceOf(Date),name:e.string,popupSettings:e.shape({animate:e.bool,appendTo:e.any,popupClass:e.string}),show:e.bool,tabIndex:e.number,title:e.string,value:e.instanceOf(Date),weekNumber:e.bool,width:e.oneOfType([e.number,e.string]),validationMessage:e.string,required:e.bool,validate:e.bool,valid:e.bool,cancelButton:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),autoFocus:e.bool,inputAttributes:e.object},n.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:p.MAX_DATE,min:p.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,cancelButton:!0,dateInput:ee.DateInput,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1};let g=n;const P=o.createPropsContext(),O=o.withIdHOC(o.withPropsContext(P,o.withUnstyledHOC(o.withAdaptiveModeContext(g))));O.displayName="KendoReactDateTimePicker";m.registerForLocalization(g);exports.DateTimePicker=O;exports.DateTimePickerPropsContext=P;exports.DateTimePickerWithoutContext=g;
@@ -5,32 +5,31 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as n from "react";
8
+ import * as a from "react";
9
9
  import e from "prop-types";
10
10
  import { Popup as $ } from "@progress/kendo-react-popup";
11
11
  import { cloneDate as M } from "@progress/kendo-date-math";
12
- import { Keys as d, validatePackage as ee, canUseDOM as O, AsyncFocusBlur as te, classNames as I, uDateTimePicker as D, createPropsContext as ie, withIdHOC as se, withPropsContext as oe, withUnstyledHOC as ae, withAdaptiveModeContext as ne } from "@progress/kendo-react-common";
13
- import { calendarIcon as re } from "@progress/kendo-svg-icons";
14
- import { DateInput as le } from "../dateinput/DateInput.mjs";
15
- import { Button as he } from "@progress/kendo-react-buttons";
16
- import { packageMetadata as de } from "../package-metadata.mjs";
17
- import { MAX_DATE as ue, MIN_DATE as pe, isInDateRange as ce, MAX_TIME as me, MIN_TIME as fe } from "../utils.mjs";
18
- import { dateTimePickerCancel as P, messages as p, dateTimePickerSet as C, toggleDateTimeSelector as c } from "../messages/index.mjs";
19
- import { provideLocalizationService as m, registerForLocalization as ge } from "@progress/kendo-react-intl";
20
- import { DateTimeSelector as ve } from "./DateTimeSelector.mjs";
21
- import { isInTimeRange as we } from "../timepicker/utils.mjs";
22
- import { PickerFloatingLabel as be } from "../hooks/usePickerFloatingLabel.mjs";
23
- import { AdaptiveMode as ye } from "../common/AdaptiveMode.mjs";
24
- import { ActionSheetContent as Ie } from "@progress/kendo-react-layout";
25
- const o = class o extends n.Component {
12
+ import { Keys as d, canUseDOM as O, AsyncFocusBlur as ee, classNames as I, uDateTimePicker as D, createPropsContext as te, withIdHOC as ie, withPropsContext as se, withUnstyledHOC as oe, withAdaptiveModeContext as ne } from "@progress/kendo-react-common";
13
+ import { calendarIcon as ae } from "@progress/kendo-svg-icons";
14
+ import { DateInput as re } from "../dateinput/DateInput.mjs";
15
+ import { Button as le } from "@progress/kendo-react-buttons";
16
+ import { MAX_DATE as he, MIN_DATE as de, isInDateRange as ue, MAX_TIME as pe, MIN_TIME as ce } from "../utils.mjs";
17
+ import { dateTimePickerCancel as C, messages as p, dateTimePickerSet as P, toggleDateTimeSelector as c } from "../messages/index.mjs";
18
+ import { provideLocalizationService as m, registerForLocalization as me } from "@progress/kendo-react-intl";
19
+ import { DateTimeSelector as fe } from "./DateTimeSelector.mjs";
20
+ import { isInTimeRange as ge } from "../timepicker/utils.mjs";
21
+ import { PickerFloatingLabel as ve } from "../hooks/usePickerFloatingLabel.mjs";
22
+ import { AdaptiveMode as we } from "../common/AdaptiveMode.mjs";
23
+ import { ActionSheetContent as be } from "@progress/kendo-react-layout";
24
+ const o = class o extends a.Component {
26
25
  constructor(i) {
27
- super(i), this._element = null, this._dateInput = n.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
26
+ super(i), this._element = null, this._dateInput = a.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
28
27
  const t = this.dateInputElement();
29
28
  t && t.focus();
30
29
  }, this.renderPicker = () => {
31
- const { disabled: t, minTime: s, maxTime: a, format: h, calendar: l, cancelButton: r, weekNumber: g, focusedDate: u, unstyled: v } = this.props;
32
- return /* @__PURE__ */ n.createElement(
33
- ve,
30
+ const { disabled: t, minTime: s, maxTime: n, format: h, calendar: l, cancelButton: r, weekNumber: g, focusedDate: u, unstyled: v } = this.props;
31
+ return /* @__PURE__ */ a.createElement(
32
+ fe,
34
33
  {
35
34
  ref: (w) => {
36
35
  this._dateTimeSelector = w;
@@ -45,7 +44,7 @@ const o = class o extends n.Component {
45
44
  min: this.min,
46
45
  max: this.max,
47
46
  minTime: s,
48
- maxTime: a,
47
+ maxTime: n,
49
48
  focusedDate: u,
50
49
  format: h,
51
50
  calendar: l,
@@ -56,11 +55,11 @@ const o = class o extends n.Component {
56
55
  );
57
56
  }, this.renderAdaptivePopup = () => {
58
57
  const { windowWidth: t = 0 } = this.state, s = m(this).toLanguageString(
59
- P,
60
- p[P]
61
- ), a = m(this).toLanguageString(
62
58
  C,
63
59
  p[C]
60
+ ), n = m(this).toLanguageString(
61
+ P,
62
+ p[P]
64
63
  ), h = {
65
64
  expand: this.show,
66
65
  onClose: this.handleBlur,
@@ -72,14 +71,14 @@ const o = class o extends n.Component {
72
71
  var r;
73
72
  return (r = this._dateTimeSelector) == null ? void 0 : r.handleReject(l);
74
73
  },
75
- applyText: a,
74
+ applyText: n,
76
75
  onApply: (l) => {
77
76
  var r;
78
77
  return (r = this._dateTimeSelector) == null ? void 0 : r.handleAccept(l);
79
78
  }
80
79
  }
81
80
  };
82
- return /* @__PURE__ */ n.createElement(ye, { ...h }, /* @__PURE__ */ n.createElement(Ie, { overflowHidden: !0 }, this.renderPicker()));
81
+ return /* @__PURE__ */ a.createElement(we, { ...h }, /* @__PURE__ */ a.createElement(be, { overflowHidden: !0 }, this.renderPicker()));
83
82
  }, this.handleReject = () => {
84
83
  this.shouldFocusDateInput = !0, this.setShow(!1);
85
84
  }, this.handleValueChange = (t) => {
@@ -103,13 +102,13 @@ const o = class o extends n.Component {
103
102
  }, this.handleIconMouseDown = (t) => {
104
103
  t.preventDefault();
105
104
  }, this.handleKeyDown = (t) => {
106
- const { altKey: s, keyCode: a } = t;
107
- if (a === d.esc) {
105
+ const { altKey: s, keyCode: n } = t;
106
+ if (n === d.esc) {
108
107
  this.shouldFocusDateInput = !0, this.setShow(!1);
109
108
  return;
110
109
  }
111
- s && (a === d.up || a === d.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = a === d.up, this.setShow(a === d.down));
112
- }, this.dateInputElement = () => this.dateInput && this.dateInput.element || this.element && this.element.querySelector(".k-dateinput > input.k-input-inner"), ee(de), this.state = {
110
+ s && (n === d.up || n === d.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = n === d.up, this.setShow(n === d.down));
111
+ }, this.dateInputElement = () => this.dateInput && this.dateInput.element || this.element && this.element.querySelector(".k-dateinput > input.k-input-inner"), this.state = {
113
112
  value: this.props.defaultValue || o.defaultProps.defaultValue,
114
113
  show: this.props.defaultShow || o.defaultProps.defaultShow,
115
114
  focused: !1
@@ -170,12 +169,12 @@ const o = class o extends n.Component {
170
169
  * Represents the validity state into which the DateTimePicker is set.
171
170
  */
172
171
  get validity() {
173
- const i = ce(this.value, this.min, this.max) && we(this.value, this.props.minTime || fe, this.props.maxTime || me), t = this.props.validationMessage !== void 0, s = (!this.required || this.value !== null) && i, a = this.props.valid !== void 0 ? this.props.valid : s;
172
+ const i = ue(this.value, this.min, this.max) && ge(this.value, this.props.minTime || ce, this.props.maxTime || pe), t = this.props.validationMessage !== void 0, s = (!this.required || this.value !== null) && i, n = this.props.valid !== void 0 ? this.props.valid : s;
174
173
  return {
175
174
  customError: t,
176
175
  rangeOverflow: this.value && this.max.getTime() < this.value.getTime() || !1,
177
176
  rangeUnderflow: this.value && this.value.getTime() < this.min.getTime() || !1,
178
- valid: a,
177
+ valid: n,
179
178
  valueMissing: this.value === null
180
179
  };
181
180
  }
@@ -226,7 +225,7 @@ const o = class o extends n.Component {
226
225
  size: i = o.defaultProps.size,
227
226
  rounded: t = o.defaultProps.rounded,
228
227
  fillMode: s = o.defaultProps.fillMode,
229
- autoFocus: a = o.defaultProps.autoFocus,
228
+ autoFocus: n = o.defaultProps.autoFocus,
230
229
  inputAttributes: h,
231
230
  disabled: l,
232
231
  tabIndex: r,
@@ -290,15 +289,15 @@ const o = class o extends n.Component {
290
289
  autoSwitchParts: W,
291
290
  autoSwitchKeys: X,
292
291
  allowCaretMode: Y
293
- }, T = /* @__PURE__ */ n.createElement(
294
- te,
292
+ }, T = /* @__PURE__ */ a.createElement(
293
+ ee,
295
294
  {
296
295
  onFocus: this.handleFocus,
297
296
  onBlur: this.handleBlur,
298
297
  onSyncFocus: this.props.onFocus,
299
298
  onSyncBlur: this.props.onBlur
300
299
  },
301
- ({ onFocus: G, onBlur: J }) => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
300
+ ({ onFocus: G, onBlur: J }) => /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
302
301
  "div",
303
302
  {
304
303
  ref: (Q) => {
@@ -322,25 +321,25 @@ const o = class o extends n.Component {
322
321
  onBlur: J,
323
322
  onClick: this.mobileMode ? this.handleDateIconClick : void 0
324
323
  },
325
- /* @__PURE__ */ n.createElement(
324
+ /* @__PURE__ */ a.createElement(
326
325
  this.dateInputComp,
327
326
  {
328
327
  _ref: this._dateInput,
329
328
  ariaRole: "combobox",
330
329
  ariaControls: this._popupId,
331
330
  ariaHasPopup: "dialog",
332
- autoFocus: a,
331
+ autoFocus: n,
333
332
  inputAttributes: h,
334
333
  ...Z
335
334
  }
336
335
  ),
337
- /* @__PURE__ */ n.createElement(
338
- he,
336
+ /* @__PURE__ */ a.createElement(
337
+ le,
339
338
  {
340
339
  tabIndex: -1,
341
340
  type: "button",
342
341
  icon: "calendar",
343
- svgIcon: re,
342
+ svgIcon: ae,
344
343
  onMouseDown: this.handleIconMouseDown,
345
344
  onClick: this.mobileMode ? void 0 : this.handleDateIconClick,
346
345
  title: m(this).toLanguageString(
@@ -356,7 +355,7 @@ const o = class o extends n.Component {
356
355
  )
357
356
  }
358
357
  ),
359
- /* @__PURE__ */ n.createElement(
358
+ /* @__PURE__ */ a.createElement(
360
359
  L,
361
360
  {
362
361
  show: this.show,
@@ -377,8 +376,8 @@ const o = class o extends n.Component {
377
376
  )
378
377
  ), this.mobileMode && this.renderAdaptivePopup())
379
378
  );
380
- return this.props.label ? /* @__PURE__ */ n.createElement(
381
- be,
379
+ return this.props.label ? /* @__PURE__ */ a.createElement(
380
+ ve,
382
381
  {
383
382
  dateInput: this._dateInput,
384
383
  label: this.props.label,
@@ -481,32 +480,32 @@ o.displayName = "DateTimePicker", o.propTypes = {
481
480
  disabled: !1,
482
481
  format: "g",
483
482
  // general date and time pattern (short time): "M/d/y h:mm a" for en.
484
- max: ue,
485
- min: pe,
483
+ max: he,
484
+ min: de,
486
485
  popupSettings: {},
487
486
  tabIndex: 0,
488
487
  weekNumber: !1,
489
488
  validityStyles: !0,
490
489
  cancelButton: !0,
491
- dateInput: le,
490
+ dateInput: re,
492
491
  size: "medium",
493
492
  rounded: "medium",
494
493
  fillMode: "solid",
495
494
  autoFocus: !1
496
495
  };
497
496
  let f = o;
498
- const De = ie(), Se = se(
499
- oe(
500
- De,
501
- ae(
497
+ const ye = te(), Ie = ie(
498
+ se(
499
+ ye,
500
+ oe(
502
501
  ne(f)
503
502
  )
504
503
  )
505
504
  );
506
- Se.displayName = "KendoReactDateTimePicker";
507
- ge(f);
505
+ Ie.displayName = "KendoReactDateTimePicker";
506
+ me(f);
508
507
  export {
509
- Se as DateTimePicker,
510
- De as DateTimePickerPropsContext,
508
+ Ie as DateTimePicker,
509
+ ye as DateTimePickerPropsContext,
511
510
  f as DateTimePickerWithoutContext
512
511
  };