@progress/kendo-react-dateinputs 14.5.0-develop.14 → 14.5.0-develop.15

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.
@@ -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 it=require("react"),t=require("prop-types"),st=require("@progress/kendo-react-popup"),j=require("@progress/kendo-date-math"),u=require("@progress/kendo-react-common"),ct=require("@progress/kendo-svg-icons"),dt=require("../dateinput/DateInput.js"),ft=require("../calendar/components/Calendar.js"),r=require("../utils.js"),U=require("../messages/index.js"),mt=require("@progress/kendo-react-intl"),gt=require("./ToggleButton.js"),pt=require("../hooks/usePickerFloatingLabel.js"),bt=require("@progress/kendo-react-layout"),ht=require("../common/AdaptiveMode.js");function vt(n){const D=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const f in n)if(f!=="default"){const S=Object.getOwnPropertyDescriptor(n,f);Object.defineProperty(D,f,S.get?S:{enumerable:!0,get:()=>n[f]})}}return D.default=n,Object.freeze(D)}const o=vt(it),H=o.forwardRef((n,D)=>{const f=u.useId(n.id),S=mt.useLocalization(),C=u.useAdaptiveModeContext(),{defaultShow:me=l.defaultShow,defaultValue:ge=l.defaultValue,dateInput:pe=l.dateInput,calendar:be=l.calendar,toggleButton:he=l.toggleButton,popup:ve=l.popup,disabled:p=l.disabled,format:we=l.format,max:k=l.max,min:P=l.min,popupSettings:O=l.popupSettings,tabIndex:ye=l.tabIndex,weekNumber:De=l.weekNumber,validityStyles:Y=l.validityStyles,size:B=l.size,rounded:E=l.rounded,fillMode:x=l.fillMode,autoFocus:Ce=l.autoFocus,show:$,autoSwitchParts:ke,autoSwitchKeys:Pe,twoDigitYearMax:Oe,ariaLabel:Me,adaptive:wt,adaptiveTitle:Re=n.label||void 0,adaptiveSubtitle:Se,formatPlaceholder:Ie,inputAttributes:_e,validationMessage:X,visited:yt,value:q,touched:Dt,modified:Ct,_adaptiveMode:kt=C,valid:Z,focusedDate:Te,id:Be,ariaLabelledBy:Ee,ariaDescribedBy:xe,placeholder:qe,onChange:G,onOpen:J,onClose:Q,...ee}=u.usePropsContext(fe,n),N=()=>{if(u.canUseDOM)return m.current&&m.current.ownerDocument||window.document},c=()=>!!(y.windowWidth&&C&&y.windowWidth<=(C==null?void 0:C.medium)&&n.adaptive),b=()=>{const e=I.current!==void 0?I.current:q!==void 0?q:y.value;return e!==null?j.cloneDate(e):null},i=()=>_.current!==void 0?_.current:$!==void 0?$:y.show,Ne=()=>pe||l.dateInput,Ae=()=>he||l.toggleButton,Fe=()=>be||l.calendar,ze=()=>ve||l.popup,te=()=>n.required!==void 0?n.required:!1,A=()=>{const e=b()||q||null,a=P,s=k,T=r.isInDateRange(e,a,s),L=X!==void 0,V=(!te()||e!=null)&&T,W=Z!==void 0?Z:V;return{customError:L,rangeOverflow:e&&s.getTime()<e.getTime()||!1,rangeUnderflow:e&&e.getTime()<a.getTime()||!1,valid:W,valueMissing:e===null}},Ke=e=>{for(const a of e)R({windowWidth:a.target.clientWidth})},Le=()=>{d.current&&d.current.focus()},ne=e=>{g.current=e},h=e=>{i()!==e&&(R({show:e}),e&&J&&J({target:v.current}),!e&&Q&&Q({target:v.current}))},Ve=e=>{const a=b();return a&&e?r.setTime(e,a):e},We=e=>{O!=null&&O.onMouseDownOutside&&O.onMouseDownOutside(e)},F=(e,a)=>{R({value:j.cloneDate(e||void 0)}),I.current=e,_.current=!1,c()||(w.current=!0),G&&G({syntheticEvent:a.syntheticEvent,nativeEvent:a.nativeEvent,value:b(),show:i(),target:v.current}),I.current=void 0,_.current=void 0,h(!1)},je=e=>{const a=Ve(e.value);F(a,e)},ae=()=>{const{popupClass:e,...a}=O,s=i(),T=b(),L=T&&j.getDate(T),V=u.classNames(e),W={popupClass:"k-datepicker-popup",show:s,anchor:m.current,className:V,id:le,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...a,onMouseDownOutside:We},ce={disabled:p,value:L,min:P,max:k,weekNumber:De,focusedDate:Te,className:c()?"k-calendar-lg":"",navigation:!c(),onChange:je},de=Fe(),ut=ze();return c()?o.createElement(de,{_ref:ne,...ce}):o.createElement(ut,{...W},o.createElement(de,{_ref:ne,...ce}))},oe=()=>{R({focused:!1}),h(!1)},Ue=()=>{const{windowWidth:e=0}=y,a={expand:i(),onClose:oe,title:Re,subTitle:Se,windowWidth:e};return o.createElement(ht.AdaptiveMode,{...a},o.createElement(bt.ActionSheetContent,null,ae()))},He=e=>{F(e.value,e)},Ye=()=>{R({focused:!0})},$e=()=>{h(!i())},z=()=>{p||(w.current=!0,h(!i()))},Xe=e=>{e.preventDefault()},Ze=e=>{const{altKey:a,keyCode:s}=e;if(s===u.Keys.esc&&i()){w.current=!0,h(!1);return}a&&(s===u.Keys.up||s===u.Keys.down)&&(e.preventDefault(),e.stopPropagation(),w.current=s===u.Keys.up,h(s===u.Keys.down))},v=o.useRef(null),m=o.useRef(null),d=o.useRef(null),g=o.useRef(null);o.useImperativeHandle(v,()=>({props:n,get element(){return m.current},get calendar(){return g.current},get dateInput(){return d.current},get name(){return n.name},get show(){return i()},get validity(){return A()},get value(){return b()},get mobileMode(){return c()},togglePopup:$e,focus:Le})),o.useImperativeHandle(D,()=>v.current),u.useWebMcpRegister("datepicker",v,n,n.webMcp);const I=o.useRef(void 0),_=o.useRef(void 0),Ge=o.useRef(null),w=o.useRef(!1),K=o.useRef(!1),M=o.useRef(null),[y,Je]=o.useState({value:ge,show:me,focused:!1}),[,Qe]=o.useReducer(e=>e,!0),re=n.name||f||void 0,et=o.useCallback(e=>{if(p)return;let a=null;if(e!=null){if(e instanceof Date)a=e;else if(typeof e=="string"||typeof e=="number"){const s=new Date(e);isNaN(s.getTime())||(a=s)}}if(a&&r.isInDateRange(a,P,k)){const s={target:m.current,currentTarget:m.current};F(a,{syntheticEvent:s})}},[p,P,k]);u.useKendoPaste(m,{fieldName:re,onValueChange:et,enabled:!!re});const R=e=>{Je(a=>({...a,...e}))};o.useEffect(()=>{g.current&&g.current.element&&i()&&!K.current&&g.current.element.focus({preventScroll:!0}),c()&&i()&&!K.current&&setTimeout(()=>{g.current&&g.current.element&&g.current.element.focus({preventScroll:!0})},300),d.current&&d.current.element&&!i()&&w.current&&d.current.element.focus({preventScroll:!0}),K.current=i(),w.current=!1}),o.useEffect(()=>{var e;return M.current=u.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(a=>Ke(a)),i()&&Qe(),(e=N())!=null&&e.body&&M.current&&M.current.observe(N().body),()=>{var a;clearTimeout(Ge.current),(a=N())!=null&&a.body&&M.current&&M.current.disconnect()}},[]);const le=f+"-popup-id",tt=ae(),nt=Ne(),at=b(),ot=Ae(),rt=Ue(),ue=!Y||A().valid,ie=S.toLanguageString(U.toggleCalendar,U.messages[U.toggleCalendar]),lt={disabled:p,format:we,formatPlaceholder:Ie,id:Be,ariaLabelledBy:Ee,ariaDescribedBy:xe,ariaLabel:Me,max:k,min:P,name:n.name,onChange:He,required:n.required,_ref:d,tabIndex:i()?-1:ye,title:n.title,valid:A().valid,validationMessage:X,validityStyles:Y,value:at,label:void 0,placeholder:y.focused?null:qe,ariaExpanded:i(),autoFill:n.autoFill,twoDigitYearMax:Oe,enableMouseWheel:n.enableMouseWheel,autoCorrectParts:n.autoCorrectParts,autoSwitchParts:ke,autoSwitchKeys:Pe,allowCaretMode:n.allowCaretMode,inputAttributes:_e},se=o.createElement(u.AsyncFocusBlur,{onFocus:Ye,onBlur:c()?void 0:oe,onSyncBlur:n.onBlur,onSyncFocus:n.onFocus},e=>o.createElement(o.Fragment,null,o.createElement("span",{...n.label?{}:ee,ref:m,className:u.classNames("k-input","k-datepicker",{[`k-input-${u.kendoThemeMaps.sizeMap[B]||B}`]:B,[`k-rounded-${u.kendoThemeMaps.roundedMap[E]||E}`]:E,[`k-input-${x}`]:x,"k-invalid":!ue,"k-required":te(),"k-disabled":p},n.className),onKeyDown:Ze,style:{width:n.width},onFocus:c()?z:e.onFocus,onBlur:e.onBlur,onClick:c()?z:void 0},o.createElement(nt,{_ref:d,ariaRole:"combobox",ariaExpanded:i(),ariaControls:i()?le:void 0,autoFocus:Ce,...lt}),o.createElement(ot,{type:"button",icon:"calendar",svgIcon:ct.calendarIcon,title:ie,className:"k-input-button",onClick:c()?void 0:z,"aria-label":ie,fillMode:x,onMouseDown:Xe}),!c()&&tt),c()&&rt));return n.label?o.createElement(pt.PickerFloatingLabel,{dateInput:d,label:n.label,editorId:f,editorValid:ue,editorDisabled:p,children:se,style:{width:n.width},...ee}):se});H.propTypes={className:t.string,defaultShow:t.bool,defaultValue:t.instanceOf(Date),disabled:t.bool,focusedDate:t.instanceOf(Date),format:t.oneOfType([t.string,t.shape({skeleton:r.nullable(t.string),pattern:r.nullable(t.string),date:r.nullable(t.oneOf(["short","medium","long","full"])),time:r.nullable(t.oneOf(["short","medium","long","full"])),datetime:r.nullable(t.oneOf(["short","medium","long","full"])),era:r.nullable(t.oneOf(["narrow","short","long"])),year:r.nullable(t.oneOf(["numeric","2-digit"])),month:r.nullable(t.oneOf(["numeric","2-digit","narrow","short","long"])),day:r.nullable(t.oneOf(["numeric","2-digit"])),weekday:r.nullable(t.oneOf(["narrow","short","long"])),hour:r.nullable(t.oneOf(["numeric","2-digit"])),hour12:r.nullable(t.bool),minute:r.nullable(t.oneOf(["numeric","2-digit"])),second:r.nullable(t.oneOf(["numeric","2-digit"])),timeZoneName:r.nullable(t.oneOf(["short","long"]))})]),formatPlaceholder:t.oneOfType([r.nullable(t.oneOf(["wide","narrow","short","formatPattern"])),t.shape({year:r.nullable(t.string),month:r.nullable(t.string),day:r.nullable(t.string),hour:r.nullable(t.string),minute:r.nullable(t.string),second:r.nullable(t.string)})]),id:t.string,ariaLabelledBy:t.string,ariaDescribedBy:t.string,ariaLabel:t.string,min:t.instanceOf(Date),max:t.instanceOf(Date),name:t.string,popupSettings:t.shape({animate:r.nullable(t.bool),appendTo:r.nullable(t.any),popupClass:r.nullable(t.string)}),show:t.bool,tabIndex:t.number,title:t.string,value:t.instanceOf(Date),weekNumber:t.bool,width:t.oneOfType([t.number,t.string]),validationMessage:t.string,required:t.bool,valid:t.bool,size:t.oneOf(["small","medium","large"]),rounded:t.oneOf(["small","medium","large","full","none"]),fillMode:t.oneOf(["solid","flat","outline"]),adaptive:t.bool,adaptiveTitle:t.string,adaptiveSubtitle:t.string,autoFocus:t.bool,inputAttributes:t.object};const l={defaultShow:!1,defaultValue:null,dateInput:dt.DateInput,calendar:ft.Calendar,toggleButton:gt.ToggleButton,popup:st.Popup,disabled:!1,format:"d",max:r.MAX_DATE,min:r.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,size:void 0,rounded:void 0,fillMode:void 0,autoFocus:!1},fe=u.createPropsContext();H.displayName="KendoReactDatePicker";exports.DatePicker=H;exports.DatePickerPropsContext=fe;exports.datePickerDefaultProps=l;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const st=require("react"),t=require("prop-types"),ct=require("@progress/kendo-react-popup"),H=require("@progress/kendo-date-math"),u=require("@progress/kendo-react-common"),dt=require("@progress/kendo-svg-icons"),ft=require("../dateinput/DateInput.js"),mt=require("../calendar/components/Calendar.js"),r=require("../utils.js"),D=require("../messages/index.js"),gt=require("@progress/kendo-react-intl"),pt=require("./ToggleButton.js"),bt=require("../hooks/usePickerFloatingLabel.js"),ht=require("@progress/kendo-react-layout"),vt=require("../common/AdaptiveMode.js");function wt(n){const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const f in n)if(f!=="default"){const C=Object.getOwnPropertyDescriptor(n,f);Object.defineProperty(k,f,C.get?C:{enumerable:!0,get:()=>n[f]})}}return k.default=n,Object.freeze(k)}const o=wt(st),U=o.forwardRef((n,k)=>{const f=u.useId(n.id),C=gt.useLocalization(),P=u.useAdaptiveModeContext(),{defaultShow:me=l.defaultShow,defaultValue:ge=l.defaultValue,dateInput:pe=l.dateInput,calendar:be=l.calendar,toggleButton:he=l.toggleButton,popup:ve=l.popup,disabled:p=l.disabled,format:we=l.format,max:O=l.max,min:M=l.min,popupSettings:R=l.popupSettings,tabIndex:ye=l.tabIndex,weekNumber:De=l.weekNumber,validityStyles:Y=l.validityStyles,size:E=l.size,rounded:x=l.rounded,fillMode:q=l.fillMode,autoFocus:ke=l.autoFocus,show:$,autoSwitchParts:Ce,autoSwitchKeys:Pe,twoDigitYearMax:Oe,ariaLabel:Me,adaptive:yt,adaptiveTitle:Re=n.label||void 0,adaptiveSubtitle:Se,formatPlaceholder:Ie,inputAttributes:_e,validationMessage:X,visited:Dt,value:N,touched:kt,modified:Ct,_adaptiveMode:Pt=P,valid:Z,focusedDate:Te,id:Be,ariaLabelledBy:Ee,ariaDescribedBy:xe,placeholder:qe,onChange:G,onOpen:J,onClose:Q,...ee}=u.usePropsContext(fe,n),A=()=>{if(u.canUseDOM)return m.current&&m.current.ownerDocument||window.document},c=()=>!!(b.windowWidth&&P&&b.windowWidth<=(P==null?void 0:P.medium)&&n.adaptive),h=()=>{const e=_.current!==void 0?_.current:N!==void 0?N:b.value;return e!==null?H.cloneDate(e):null},i=()=>T.current!==void 0?T.current:$!==void 0?$:b.show,Ne=()=>pe||l.dateInput,Ae=()=>he||l.toggleButton,Fe=()=>be||l.calendar,Le=()=>ve||l.popup,te=()=>n.required!==void 0?n.required:!1,F=()=>{const e=h()||N||null,a=M,s=O,B=r.isInDateRange(e,a,s),V=X!==void 0,W=(!te()||e!=null)&&B,j=Z!==void 0?Z:W;return{customError:V,rangeOverflow:e&&s.getTime()<e.getTime()||!1,rangeUnderflow:e&&e.getTime()<a.getTime()||!1,valid:j,valueMissing:e===null}},ze=e=>{for(const a of e)I({windowWidth:a.target.clientWidth})},Ke=()=>{d.current&&d.current.focus()},ne=e=>{g.current=e},v=e=>{i()!==e&&(I({show:e}),e&&J&&J({target:w.current}),!e&&Q&&Q({target:w.current}))},Ve=e=>{const a=h();return a&&e?r.setTime(e,a):e},We=e=>{R!=null&&R.onMouseDownOutside&&R.onMouseDownOutside(e)},L=(e,a)=>{I({value:H.cloneDate(e||void 0)}),_.current=e,T.current=!1,c()||(y.current=!0),G&&G({syntheticEvent:a.syntheticEvent,nativeEvent:a.nativeEvent,value:h(),show:i(),target:w.current}),_.current=void 0,T.current=void 0,v(!1)},je=e=>{const a=Ve(e.value);L(a,e)},ae=()=>{const{popupClass:e,...a}=R,s=i(),B=h(),V=B&&H.getDate(B),W=u.classNames(e),j={popupClass:"k-datepicker-popup",show:s,anchor:m.current,className:W,id:le,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...a,onMouseDownOutside:We},ce={disabled:p,value:V,min:M,max:O,weekNumber:De,focusedDate:Te,className:c()?"k-calendar-lg":"",navigation:!c(),onChange:je},de=Fe(),it=Le();return c()?o.createElement(de,{_ref:ne,...ce}):o.createElement(it,{...j},o.createElement(de,{_ref:ne,...ce}))},oe=()=>{I({focused:!1}),v(!1)},He=()=>{const{windowWidth:e=0}=b,a={expand:i(),onClose:oe,title:Re,subTitle:Se,windowWidth:e};return o.createElement(vt.AdaptiveMode,{...a},o.createElement(ht.ActionSheetContent,null,ae()))},Ue=e=>{L(e.value,e)},Ye=()=>{I({focused:!0})},$e=()=>{v(!i())},z=()=>{p||(y.current=!0,v(!i()))},Xe=e=>{e.preventDefault()},Ze=e=>{const{altKey:a,keyCode:s}=e;if(s===u.Keys.esc&&i()){y.current=!0,v(!1);return}a&&(s===u.Keys.up||s===u.Keys.down)&&(e.preventDefault(),e.stopPropagation(),y.current=s===u.Keys.up,v(s===u.Keys.down))},w=o.useRef(null),m=o.useRef(null),d=o.useRef(null),g=o.useRef(null);o.useImperativeHandle(w,()=>({props:n,get element(){return m.current},get calendar(){return g.current},get dateInput(){return d.current},get name(){return n.name},get show(){return i()},get validity(){return F()},get value(){return h()},get mobileMode(){return c()},togglePopup:$e,focus:Ke})),o.useImperativeHandle(k,()=>w.current),u.useWebMcpRegister("datepicker",w,n,n.webMcp);const _=o.useRef(void 0),T=o.useRef(void 0),Ge=o.useRef(null),y=o.useRef(!1),K=o.useRef(!1),S=o.useRef(null),[b,Je]=o.useState({value:ge,show:me,focused:!1}),[,Qe]=o.useReducer(e=>e,!0),re=n.name||f||void 0,et=o.useCallback(e=>{if(p)return;let a=null;if(e!=null){if(e instanceof Date)a=e;else if(typeof e=="string"||typeof e=="number"){const s=new Date(e);isNaN(s.getTime())||(a=s)}}if(a&&r.isInDateRange(a,M,O)){const s={target:m.current,currentTarget:m.current};L(a,{syntheticEvent:s})}},[p,M,O]);u.useKendoPaste(m,{fieldName:re,onValueChange:et,enabled:!!re});const I=e=>{Je(a=>({...a,...e}))};o.useEffect(()=>{g.current&&g.current.element&&i()&&!K.current&&g.current.element.focus({preventScroll:!0}),c()&&i()&&!K.current&&setTimeout(()=>{g.current&&g.current.element&&g.current.element.focus({preventScroll:!0})},300),d.current&&d.current.element&&!i()&&y.current&&d.current.element.focus({preventScroll:!0}),K.current=i(),y.current=!1}),o.useEffect(()=>{var e;return S.current=u.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(a=>ze(a)),i()&&Qe(),(e=A())!=null&&e.body&&S.current&&S.current.observe(A().body),()=>{var a;clearTimeout(Ge.current),(a=A())!=null&&a.body&&S.current&&S.current.disconnect()}},[]);const le=f+"-popup-id",tt=ae(),nt=Ne(),at=h(),ot=Ae(),rt=He(),ue=!Y||F().valid,ie=C.toLanguageString(D.toggleCalendar,D.messages[D.toggleCalendar]),lt=Me||C.toLanguageString(D.selectDate,D.messages[D.selectDate]),ut={disabled:p,format:we,formatPlaceholder:Ie,id:Be,ariaLabelledBy:Ee,ariaDescribedBy:xe,ariaLabel:lt,max:O,min:M,name:n.name,onChange:Ue,required:n.required,_ref:d,tabIndex:i()?-1:ye,title:n.title,valid:F().valid,validationMessage:X,validityStyles:Y,value:at,label:void 0,placeholder:b.focused?null:qe,ariaExpanded:i(),autoFill:n.autoFill,twoDigitYearMax:Oe,enableMouseWheel:n.enableMouseWheel,autoCorrectParts:n.autoCorrectParts,autoSwitchParts:Ce,autoSwitchKeys:Pe,allowCaretMode:n.allowCaretMode,inputAttributes:_e},se=o.createElement(u.AsyncFocusBlur,{onFocus:Ye,onBlur:c()?void 0:oe,onSyncBlur:n.onBlur,onSyncFocus:n.onFocus},e=>o.createElement(o.Fragment,null,o.createElement("span",{...n.label?{}:ee,ref:m,className:u.classNames("k-input","k-datepicker",{[`k-input-${u.kendoThemeMaps.sizeMap[E]||E}`]:E,[`k-rounded-${u.kendoThemeMaps.roundedMap[x]||x}`]:x,[`k-input-${q}`]:q,"k-invalid":!ue,"k-required":te(),"k-disabled":p,"k-focus":b.focused},n.className),onKeyDown:Ze,style:{width:n.width},onFocus:c()?z:e.onFocus,onBlur:e.onBlur,onClick:c()?z:void 0},o.createElement(nt,{_ref:d,ariaRole:"combobox",ariaHasPopup:"grid",ariaExpanded:i(),ariaControls:i()?le:void 0,autoFocus:ke,...ut}),o.createElement(ot,{type:"button",icon:"calendar",svgIcon:dt.calendarIcon,title:ie,className:"k-input-button",onClick:c()?void 0:z,"aria-label":ie,fillMode:q,onMouseDown:Xe}),!c()&&tt),c()&&rt));return n.label?o.createElement(bt.PickerFloatingLabel,{dateInput:d,label:n.label,editorId:f,editorValid:ue,editorDisabled:p,children:se,style:{width:n.width},...ee}):se});U.propTypes={className:t.string,defaultShow:t.bool,defaultValue:t.instanceOf(Date),disabled:t.bool,focusedDate:t.instanceOf(Date),format:t.oneOfType([t.string,t.shape({skeleton:r.nullable(t.string),pattern:r.nullable(t.string),date:r.nullable(t.oneOf(["short","medium","long","full"])),time:r.nullable(t.oneOf(["short","medium","long","full"])),datetime:r.nullable(t.oneOf(["short","medium","long","full"])),era:r.nullable(t.oneOf(["narrow","short","long"])),year:r.nullable(t.oneOf(["numeric","2-digit"])),month:r.nullable(t.oneOf(["numeric","2-digit","narrow","short","long"])),day:r.nullable(t.oneOf(["numeric","2-digit"])),weekday:r.nullable(t.oneOf(["narrow","short","long"])),hour:r.nullable(t.oneOf(["numeric","2-digit"])),hour12:r.nullable(t.bool),minute:r.nullable(t.oneOf(["numeric","2-digit"])),second:r.nullable(t.oneOf(["numeric","2-digit"])),timeZoneName:r.nullable(t.oneOf(["short","long"]))})]),formatPlaceholder:t.oneOfType([r.nullable(t.oneOf(["wide","narrow","short","formatPattern"])),t.shape({year:r.nullable(t.string),month:r.nullable(t.string),day:r.nullable(t.string),hour:r.nullable(t.string),minute:r.nullable(t.string),second:r.nullable(t.string)})]),id:t.string,ariaLabelledBy:t.string,ariaDescribedBy:t.string,ariaLabel:t.string,min:t.instanceOf(Date),max:t.instanceOf(Date),name:t.string,popupSettings:t.shape({animate:r.nullable(t.bool),appendTo:r.nullable(t.any),popupClass:r.nullable(t.string)}),show:t.bool,tabIndex:t.number,title:t.string,value:t.instanceOf(Date),weekNumber:t.bool,width:t.oneOfType([t.number,t.string]),validationMessage:t.string,required:t.bool,valid:t.bool,size:t.oneOf(["small","medium","large"]),rounded:t.oneOf(["small","medium","large","full","none"]),fillMode:t.oneOf(["solid","flat","outline"]),adaptive:t.bool,adaptiveTitle:t.string,adaptiveSubtitle:t.string,autoFocus:t.bool,inputAttributes:t.object};const l={defaultShow:!1,defaultValue:null,dateInput:ft.DateInputInner,calendar:mt.Calendar,toggleButton:pt.ToggleButton,popup:ct.Popup,disabled:!1,format:"d",max:r.MAX_DATE,min:r.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,size:void 0,rounded:void 0,fillMode:void 0,autoFocus:!1},fe=u.createPropsContext();U.displayName="KendoReactDatePicker";exports.DatePicker=U;exports.DatePickerPropsContext=fe;exports.datePickerDefaultProps=l;
@@ -7,112 +7,112 @@
7
7
  */
8
8
  import * as o from "react";
9
9
  import t from "prop-types";
10
- import { Popup as dt } from "@progress/kendo-react-popup";
11
- import { cloneDate as le, getDate as ft } from "@progress/kendo-date-math";
12
- import { useId as mt, useAdaptiveModeContext as pt, usePropsContext as gt, useWebMcpRegister as ht, useKendoPaste as vt, canUseDOM as ue, AsyncFocusBlur as bt, classNames as se, kendoThemeMaps as ce, createPropsContext as wt, Keys as k } from "@progress/kendo-react-common";
13
- import { calendarIcon as yt } from "@progress/kendo-svg-icons";
14
- import { DateInput as Ct } from "../dateinput/DateInput.mjs";
15
- import { Calendar as Dt } from "../calendar/components/Calendar.mjs";
16
- import { MIN_DATE as Ot, MAX_DATE as Pt, isInDateRange as de, setTime as kt, nullable as a } from "../utils.mjs";
17
- import { toggleCalendar as fe, messages as Mt } from "../messages/index.mjs";
18
- import { useLocalization as Rt } from "@progress/kendo-react-intl";
19
- import { ToggleButton as St } from "./ToggleButton.mjs";
20
- import { PickerFloatingLabel as _t } from "../hooks/usePickerFloatingLabel.mjs";
21
- import { ActionSheetContent as It } from "@progress/kendo-react-layout";
22
- import { AdaptiveMode as Et } from "../common/AdaptiveMode.mjs";
23
- const me = o.forwardRef((r, pe) => {
24
- const _ = mt(r.id), ge = Rt(), w = pt(), {
25
- defaultShow: he = i.defaultShow,
26
- defaultValue: ve = i.defaultValue,
27
- dateInput: be = i.dateInput,
28
- calendar: we = i.calendar,
29
- toggleButton: ye = i.toggleButton,
30
- popup: Ce = i.popup,
10
+ import { Popup as pt } from "@progress/kendo-react-popup";
11
+ import { cloneDate as ue, getDate as gt } from "@progress/kendo-date-math";
12
+ import { useId as ht, useAdaptiveModeContext as vt, usePropsContext as bt, useWebMcpRegister as wt, useKendoPaste as yt, canUseDOM as se, AsyncFocusBlur as Ct, classNames as ce, kendoThemeMaps as de, createPropsContext as Dt, Keys as O } from "@progress/kendo-react-common";
13
+ import { calendarIcon as Pt } from "@progress/kendo-svg-icons";
14
+ import { DateInputInner as kt } from "../dateinput/DateInput.mjs";
15
+ import { Calendar as Ot } from "../calendar/components/Calendar.mjs";
16
+ import { MIN_DATE as Mt, MAX_DATE as Rt, isInDateRange as fe, setTime as It, nullable as a } from "../utils.mjs";
17
+ import { toggleCalendar as me, messages as pe, selectDate as ge } from "../messages/index.mjs";
18
+ import { useLocalization as St } from "@progress/kendo-react-intl";
19
+ import { ToggleButton as _t } from "./ToggleButton.mjs";
20
+ import { PickerFloatingLabel as Et } from "../hooks/usePickerFloatingLabel.mjs";
21
+ import { ActionSheetContent as Bt } from "@progress/kendo-react-layout";
22
+ import { AdaptiveMode as Tt } from "../common/AdaptiveMode.mjs";
23
+ const he = o.forwardRef((r, ve) => {
24
+ const S = ht(r.id), W = St(), w = vt(), {
25
+ defaultShow: be = i.defaultShow,
26
+ defaultValue: we = i.defaultValue,
27
+ dateInput: ye = i.dateInput,
28
+ calendar: Ce = i.calendar,
29
+ toggleButton: De = i.toggleButton,
30
+ popup: Pe = i.popup,
31
31
  disabled: m = i.disabled,
32
- format: De = i.format,
32
+ format: ke = i.format,
33
33
  max: y = i.max,
34
34
  min: C = i.min,
35
35
  popupSettings: D = i.popupSettings,
36
36
  tabIndex: Oe = i.tabIndex,
37
- weekNumber: Pe = i.weekNumber,
38
- validityStyles: W = i.validityStyles,
39
- size: I = i.size,
37
+ weekNumber: Me = i.weekNumber,
38
+ validityStyles: q = i.validityStyles,
39
+ size: _ = i.size,
40
40
  rounded: E = i.rounded,
41
41
  fillMode: B = i.fillMode,
42
- autoFocus: ke = i.autoFocus,
43
- show: q,
44
- autoSwitchParts: Me,
45
- autoSwitchKeys: Re,
46
- twoDigitYearMax: Se,
47
- ariaLabel: _e,
48
- adaptive: Tt,
49
- adaptiveTitle: Ie = r.label || void 0,
50
- adaptiveSubtitle: Ee,
51
- formatPlaceholder: Be,
52
- inputAttributes: Te,
53
- validationMessage: H,
54
- visited: xt,
42
+ autoFocus: Re = i.autoFocus,
43
+ show: H,
44
+ autoSwitchParts: Ie,
45
+ autoSwitchKeys: Se,
46
+ twoDigitYearMax: _e,
47
+ ariaLabel: Ee,
48
+ adaptive: Nt,
49
+ adaptiveTitle: Be = r.label || void 0,
50
+ adaptiveSubtitle: Te,
51
+ formatPlaceholder: xe,
52
+ inputAttributes: Ne,
53
+ validationMessage: U,
54
+ visited: At,
55
55
  value: T,
56
- touched: Nt,
57
- modified: At,
58
- _adaptiveMode: Ft = w,
59
- valid: U,
60
- focusedDate: xe,
61
- id: Ne,
62
- ariaLabelledBy: Ae,
63
- ariaDescribedBy: Fe,
64
- placeholder: Ve,
65
- onChange: Y,
66
- onOpen: $,
67
- onClose: j,
68
- ...X
69
- } = gt(Bt, r), x = () => {
70
- if (ue)
56
+ touched: Ft,
57
+ modified: Lt,
58
+ _adaptiveMode: Vt = w,
59
+ valid: Y,
60
+ focusedDate: Ae,
61
+ id: Fe,
62
+ ariaLabelledBy: Le,
63
+ ariaDescribedBy: Ve,
64
+ placeholder: ze,
65
+ onChange: $,
66
+ onOpen: j,
67
+ onClose: X,
68
+ ...Z
69
+ } = bt(xt, r), x = () => {
70
+ if (se)
71
71
  return d.current && d.current.ownerDocument || window.document;
72
- }, s = () => !!(b.windowWidth && w && b.windowWidth <= (w == null ? void 0 : w.medium) && r.adaptive), p = () => {
73
- const e = M.current !== void 0 ? M.current : T !== void 0 ? T : b.value;
74
- return e !== null ? le(e) : null;
75
- }, l = () => R.current !== void 0 ? R.current : q !== void 0 ? q : b.show, ze = () => be || i.dateInput, Le = () => ye || i.toggleButton, Ke = () => we || i.calendar, We = () => Ce || i.popup, Z = () => r.required !== void 0 ? r.required : !1, N = () => {
76
- const e = p() || T || null, n = C, u = y, S = de(e, n, u), z = H !== void 0, L = (!Z() || e != null) && S, K = U !== void 0 ? U : L;
72
+ }, s = () => !!(p.windowWidth && w && p.windowWidth <= (w == null ? void 0 : w.medium) && r.adaptive), g = () => {
73
+ const e = M.current !== void 0 ? M.current : T !== void 0 ? T : p.value;
74
+ return e !== null ? ue(e) : null;
75
+ }, l = () => R.current !== void 0 ? R.current : H !== void 0 ? H : p.show, Ke = () => ye || i.dateInput, We = () => De || i.toggleButton, qe = () => Ce || i.calendar, He = () => Pe || i.popup, G = () => r.required !== void 0 ? r.required : !1, N = () => {
76
+ const e = g() || T || null, n = C, u = y, I = fe(e, n, u), V = U !== void 0, z = (!G() || e != null) && I, K = Y !== void 0 ? Y : z;
77
77
  return {
78
- customError: z,
78
+ customError: V,
79
79
  rangeOverflow: e && u.getTime() < e.getTime() || !1,
80
80
  rangeUnderflow: e && e.getTime() < n.getTime() || !1,
81
81
  valid: K,
82
82
  valueMissing: e === null
83
83
  };
84
- }, qe = (e) => {
84
+ }, Ue = (e) => {
85
85
  for (const n of e)
86
- P({ windowWidth: n.target.clientWidth });
87
- }, He = () => {
86
+ k({ windowWidth: n.target.clientWidth });
87
+ }, Ye = () => {
88
88
  c.current && c.current.focus();
89
- }, G = (e) => {
89
+ }, J = (e) => {
90
90
  f.current = e;
91
- }, g = (e) => {
92
- l() !== e && (P({ show: e }), e && $ && $({ target: h.current }), !e && j && j({ target: h.current }));
93
- }, Ue = (e) => {
94
- const n = p();
95
- return n && e ? kt(e, n) : e;
96
- }, Ye = (e) => {
91
+ }, h = (e) => {
92
+ l() !== e && (k({ show: e }), e && j && j({ target: v.current }), !e && X && X({ target: v.current }));
93
+ }, $e = (e) => {
94
+ const n = g();
95
+ return n && e ? It(e, n) : e;
96
+ }, je = (e) => {
97
97
  D != null && D.onMouseDownOutside && D.onMouseDownOutside(e);
98
98
  }, A = (e, n) => {
99
- P({ value: le(e || void 0) }), M.current = e, R.current = !1, s() || (v.current = !0), Y && Y({
99
+ k({ value: ue(e || void 0) }), M.current = e, R.current = !1, s() || (b.current = !0), $ && $({
100
100
  syntheticEvent: n.syntheticEvent,
101
101
  nativeEvent: n.nativeEvent,
102
- value: p(),
102
+ value: g(),
103
103
  show: l(),
104
- target: h.current
105
- }), M.current = void 0, R.current = void 0, g(!1);
106
- }, $e = (e) => {
107
- const n = Ue(e.value);
104
+ target: v.current
105
+ }), M.current = void 0, R.current = void 0, h(!1);
106
+ }, Xe = (e) => {
107
+ const n = $e(e.value);
108
108
  A(n, e);
109
- }, J = () => {
110
- const { popupClass: e, ...n } = D, u = l(), S = p(), z = S && ft(S), L = se(e), K = {
109
+ }, Q = () => {
110
+ const { popupClass: e, ...n } = D, u = l(), I = g(), V = I && gt(I), z = ce(e), K = {
111
111
  popupClass: "k-datepicker-popup",
112
112
  show: u,
113
113
  anchor: d.current,
114
- className: L,
115
- id: te,
114
+ className: z,
115
+ id: ne,
116
116
  anchorAlign: {
117
117
  horizontal: "left",
118
118
  vertical: "bottom"
@@ -122,50 +122,50 @@ const me = o.forwardRef((r, pe) => {
122
122
  vertical: "top"
123
123
  },
124
124
  ...n,
125
- onMouseDownOutside: Ye
126
- }, ae = {
125
+ onMouseDownOutside: je
126
+ }, ie = {
127
127
  disabled: m,
128
- value: z,
128
+ value: V,
129
129
  min: C,
130
130
  max: y,
131
- weekNumber: Pe,
132
- focusedDate: xe,
131
+ weekNumber: Me,
132
+ focusedDate: Ae,
133
133
  className: s() ? "k-calendar-lg" : "",
134
134
  navigation: !s(),
135
- onChange: $e
136
- }, ie = Ke(), ct = We();
137
- return s() ? /* @__PURE__ */ o.createElement(ie, { _ref: G, ...ae }) : /* @__PURE__ */ o.createElement(ct, { ...K }, /* @__PURE__ */ o.createElement(ie, { _ref: G, ...ae }));
138
- }, Q = () => {
139
- P({ focused: !1 }), g(!1);
140
- }, je = () => {
141
- const { windowWidth: e = 0 } = b, n = {
135
+ onChange: Xe
136
+ }, le = qe(), mt = He();
137
+ return s() ? /* @__PURE__ */ o.createElement(le, { _ref: J, ...ie }) : /* @__PURE__ */ o.createElement(mt, { ...K }, /* @__PURE__ */ o.createElement(le, { _ref: J, ...ie }));
138
+ }, ee = () => {
139
+ k({ focused: !1 }), h(!1);
140
+ }, Ze = () => {
141
+ const { windowWidth: e = 0 } = p, n = {
142
142
  expand: l(),
143
- onClose: Q,
144
- title: Ie,
145
- subTitle: Ee,
143
+ onClose: ee,
144
+ title: Be,
145
+ subTitle: Te,
146
146
  windowWidth: e
147
147
  };
148
- return /* @__PURE__ */ o.createElement(Et, { ...n }, /* @__PURE__ */ o.createElement(It, null, J()));
149
- }, Xe = (e) => {
148
+ return /* @__PURE__ */ o.createElement(Tt, { ...n }, /* @__PURE__ */ o.createElement(Bt, null, Q()));
149
+ }, Ge = (e) => {
150
150
  A(e.value, e);
151
- }, Ze = () => {
152
- P({ focused: !0 });
153
- }, Ge = () => {
154
- g(!l());
151
+ }, Je = () => {
152
+ k({ focused: !0 });
153
+ }, Qe = () => {
154
+ h(!l());
155
155
  }, F = () => {
156
- m || (v.current = !0, g(!l()));
157
- }, Je = (e) => {
156
+ m || (b.current = !0, h(!l()));
157
+ }, et = (e) => {
158
158
  e.preventDefault();
159
- }, Qe = (e) => {
159
+ }, tt = (e) => {
160
160
  const { altKey: n, keyCode: u } = e;
161
- if (u === k.esc && l()) {
162
- v.current = !0, g(!1);
161
+ if (u === O.esc && l()) {
162
+ b.current = !0, h(!1);
163
163
  return;
164
164
  }
165
- n && (u === k.up || u === k.down) && (e.preventDefault(), e.stopPropagation(), v.current = u === k.up, g(u === k.down));
166
- }, h = o.useRef(null), d = o.useRef(null), c = o.useRef(null), f = o.useRef(null);
165
+ n && (u === O.up || u === O.down) && (e.preventDefault(), e.stopPropagation(), b.current = u === O.up, h(u === O.down));
166
+ }, v = o.useRef(null), d = o.useRef(null), c = o.useRef(null), f = o.useRef(null);
167
167
  o.useImperativeHandle(
168
- h,
168
+ v,
169
169
  () => ({
170
170
  props: r,
171
171
  get element() {
@@ -187,21 +187,21 @@ const me = o.forwardRef((r, pe) => {
187
187
  return N();
188
188
  },
189
189
  get value() {
190
- return p();
190
+ return g();
191
191
  },
192
192
  get mobileMode() {
193
193
  return s();
194
194
  },
195
- togglePopup: Ge,
195
+ togglePopup: Qe,
196
196
  // Hidden Methods but still accessible
197
- focus: He
197
+ focus: Ye
198
198
  })
199
- ), o.useImperativeHandle(pe, () => h.current), ht("datepicker", h, r, r.webMcp);
200
- const M = o.useRef(void 0), R = o.useRef(void 0), et = o.useRef(null), v = o.useRef(!1), V = o.useRef(!1), O = o.useRef(null), [b, tt] = o.useState({
201
- value: ve,
202
- show: he,
199
+ ), o.useImperativeHandle(ve, () => v.current), wt("datepicker", v, r, r.webMcp);
200
+ const M = o.useRef(void 0), R = o.useRef(void 0), nt = o.useRef(null), b = o.useRef(!1), L = o.useRef(!1), P = o.useRef(null), [p, ot] = o.useState({
201
+ value: we,
202
+ show: be,
203
203
  focused: !1
204
- }), [, nt] = o.useReducer((e) => e, !0), ee = r.name || _ || void 0, ot = o.useCallback(
204
+ }), [, rt] = o.useReducer((e) => e, !0), te = r.name || S || void 0, at = o.useCallback(
205
205
  (e) => {
206
206
  if (m)
207
207
  return;
@@ -214,7 +214,7 @@ const me = o.forwardRef((r, pe) => {
214
214
  isNaN(u.getTime()) || (n = u);
215
215
  }
216
216
  }
217
- if (n && de(n, C, y)) {
217
+ if (n && fe(n, C, y)) {
218
218
  const u = {
219
219
  target: d.current,
220
220
  currentTarget: d.current
@@ -224,131 +224,133 @@ const me = o.forwardRef((r, pe) => {
224
224
  },
225
225
  [m, C, y]
226
226
  );
227
- vt(d, {
228
- fieldName: ee,
229
- onValueChange: ot,
230
- enabled: !!ee
227
+ yt(d, {
228
+ fieldName: te,
229
+ onValueChange: at,
230
+ enabled: !!te
231
231
  });
232
- const P = (e) => {
233
- tt((n) => ({ ...n, ...e }));
232
+ const k = (e) => {
233
+ ot((n) => ({ ...n, ...e }));
234
234
  };
235
235
  o.useEffect(() => {
236
- f.current && f.current.element && l() && !V.current && f.current.element.focus({ preventScroll: !0 }), s() && l() && !V.current && setTimeout(() => {
236
+ f.current && f.current.element && l() && !L.current && f.current.element.focus({ preventScroll: !0 }), s() && l() && !L.current && setTimeout(() => {
237
237
  f.current && f.current.element && f.current.element.focus({ preventScroll: !0 });
238
- }, 300), c.current && c.current.element && !l() && v.current && c.current.element.focus({ preventScroll: !0 }), V.current = l(), v.current = !1;
238
+ }, 300), c.current && c.current.element && !l() && b.current && c.current.element.focus({ preventScroll: !0 }), L.current = l(), b.current = !1;
239
239
  }), o.useEffect(() => {
240
240
  var e;
241
- return O.current = ue && window.ResizeObserver && new window.ResizeObserver((n) => qe(n)), l() && nt(), (e = x()) != null && e.body && O.current && O.current.observe(x().body), () => {
241
+ return P.current = se && window.ResizeObserver && new window.ResizeObserver((n) => Ue(n)), l() && rt(), (e = x()) != null && e.body && P.current && P.current.observe(x().body), () => {
242
242
  var n;
243
- clearTimeout(et.current), (n = x()) != null && n.body && O.current && O.current.disconnect();
243
+ clearTimeout(nt.current), (n = x()) != null && n.body && P.current && P.current.disconnect();
244
244
  };
245
245
  }, []);
246
- const te = _ + "-popup-id", rt = J(), at = ze(), it = p(), lt = Le(), ut = je(), ne = !W || N().valid, oe = ge.toLanguageString(fe, Mt[fe]), st = {
246
+ const ne = S + "-popup-id", it = Q(), lt = Ke(), ut = g(), st = We(), ct = Ze(), oe = !q || N().valid, re = W.toLanguageString(me, pe[me]), dt = Ee || W.toLanguageString(ge, pe[ge]), ft = {
247
247
  disabled: m,
248
- format: De,
249
- formatPlaceholder: Be,
250
- id: Ne,
251
- ariaLabelledBy: Ae,
252
- ariaDescribedBy: Fe,
253
- ariaLabel: _e,
248
+ format: ke,
249
+ formatPlaceholder: xe,
250
+ id: Fe,
251
+ ariaLabelledBy: Le,
252
+ ariaDescribedBy: Ve,
253
+ ariaLabel: dt,
254
254
  max: y,
255
255
  min: C,
256
256
  name: r.name,
257
- onChange: Xe,
257
+ onChange: Ge,
258
258
  required: r.required,
259
259
  _ref: c,
260
260
  tabIndex: l() ? -1 : Oe,
261
261
  title: r.title,
262
262
  valid: N().valid,
263
- validationMessage: H,
264
- validityStyles: W,
265
- value: it,
263
+ validationMessage: U,
264
+ validityStyles: q,
265
+ value: ut,
266
266
  label: void 0,
267
- placeholder: b.focused ? null : Ve,
267
+ placeholder: p.focused ? null : ze,
268
268
  ariaExpanded: l(),
269
269
  autoFill: r.autoFill,
270
- twoDigitYearMax: Se,
270
+ twoDigitYearMax: _e,
271
271
  enableMouseWheel: r.enableMouseWheel,
272
272
  autoCorrectParts: r.autoCorrectParts,
273
- autoSwitchParts: Me,
274
- autoSwitchKeys: Re,
273
+ autoSwitchParts: Ie,
274
+ autoSwitchKeys: Se,
275
275
  allowCaretMode: r.allowCaretMode,
276
- inputAttributes: Te
277
- }, re = /* @__PURE__ */ o.createElement(
278
- bt,
276
+ inputAttributes: Ne
277
+ }, ae = /* @__PURE__ */ o.createElement(
278
+ Ct,
279
279
  {
280
- onFocus: Ze,
281
- onBlur: s() ? void 0 : Q,
280
+ onFocus: Je,
281
+ onBlur: s() ? void 0 : ee,
282
282
  onSyncBlur: r.onBlur,
283
283
  onSyncFocus: r.onFocus
284
284
  },
285
285
  (e) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
286
286
  "span",
287
287
  {
288
- ...r.label ? {} : X,
288
+ ...r.label ? {} : Z,
289
289
  ref: d,
290
- className: se(
290
+ className: ce(
291
291
  "k-input",
292
292
  "k-datepicker",
293
293
  {
294
- [`k-input-${ce.sizeMap[I] || I}`]: I,
295
- [`k-rounded-${ce.roundedMap[E] || E}`]: E,
294
+ [`k-input-${de.sizeMap[_] || _}`]: _,
295
+ [`k-rounded-${de.roundedMap[E] || E}`]: E,
296
296
  [`k-input-${B}`]: B,
297
- "k-invalid": !ne,
298
- "k-required": Z(),
299
- "k-disabled": m
297
+ "k-invalid": !oe,
298
+ "k-required": G(),
299
+ "k-disabled": m,
300
+ "k-focus": p.focused
300
301
  },
301
302
  r.className
302
303
  ),
303
- onKeyDown: Qe,
304
+ onKeyDown: tt,
304
305
  style: { width: r.width },
305
306
  onFocus: s() ? F : e.onFocus,
306
307
  onBlur: e.onBlur,
307
308
  onClick: s() ? F : void 0
308
309
  },
309
310
  /* @__PURE__ */ o.createElement(
310
- at,
311
+ lt,
311
312
  {
312
313
  _ref: c,
313
314
  ariaRole: "combobox",
315
+ ariaHasPopup: "grid",
314
316
  ariaExpanded: l(),
315
- ariaControls: l() ? te : void 0,
316
- autoFocus: ke,
317
- ...st
317
+ ariaControls: l() ? ne : void 0,
318
+ autoFocus: Re,
319
+ ...ft
318
320
  }
319
321
  ),
320
322
  /* @__PURE__ */ o.createElement(
321
- lt,
323
+ st,
322
324
  {
323
325
  type: "button",
324
326
  icon: "calendar",
325
- svgIcon: yt,
326
- title: oe,
327
+ svgIcon: Pt,
328
+ title: re,
327
329
  className: "k-input-button",
328
330
  onClick: s() ? void 0 : F,
329
- "aria-label": oe,
331
+ "aria-label": re,
330
332
  fillMode: B,
331
- onMouseDown: Je
333
+ onMouseDown: et
332
334
  }
333
335
  ),
334
- !s() && rt
335
- ), s() && ut)
336
+ !s() && it
337
+ ), s() && ct)
336
338
  );
337
339
  return r.label ? /* @__PURE__ */ o.createElement(
338
- _t,
340
+ Et,
339
341
  {
340
342
  dateInput: c,
341
343
  label: r.label,
342
- editorId: _,
343
- editorValid: ne,
344
+ editorId: S,
345
+ editorValid: oe,
344
346
  editorDisabled: m,
345
- children: re,
347
+ children: ae,
346
348
  style: { width: r.width },
347
- ...X
349
+ ...Z
348
350
  }
349
- ) : re;
351
+ ) : ae;
350
352
  });
351
- me.propTypes = {
353
+ he.propTypes = {
352
354
  className: t.string,
353
355
  defaultShow: t.bool,
354
356
  defaultValue: t.instanceOf(Date),
@@ -420,14 +422,14 @@ me.propTypes = {
420
422
  const i = {
421
423
  defaultShow: !1,
422
424
  defaultValue: null,
423
- dateInput: Ct,
424
- calendar: Dt,
425
- toggleButton: St,
426
- popup: dt,
425
+ dateInput: kt,
426
+ calendar: Ot,
427
+ toggleButton: _t,
428
+ popup: pt,
427
429
  disabled: !1,
428
430
  format: "d",
429
- max: Pt,
430
- min: Ot,
431
+ max: Rt,
432
+ min: Mt,
431
433
  popupSettings: {},
432
434
  tabIndex: 0,
433
435
  weekNumber: !1,
@@ -436,10 +438,10 @@ const i = {
436
438
  rounded: void 0,
437
439
  fillMode: void 0,
438
440
  autoFocus: !1
439
- }, Bt = wt();
440
- me.displayName = "KendoReactDatePicker";
441
+ }, xt = Dt();
442
+ he.displayName = "KendoReactDatePicker";
441
443
  export {
442
- me as DatePicker,
443
- Bt as DatePickerPropsContext,
444
+ he as DatePicker,
445
+ xt as DatePickerPropsContext,
444
446
  i as datePickerDefaultProps
445
447
  };