@progress/kendo-react-dateinputs 9.5.0-develop.6 → 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.
package/index.d.mts CHANGED
@@ -1833,6 +1833,7 @@ export declare class DateRangePickerWithoutContext extends React_2.Component<Dat
1833
1833
  private shouldFocusDateInput;
1834
1834
  private shouldFocusCalendar;
1835
1835
  private observerResize?;
1836
+ private readonly showLicenseWatermark;
1836
1837
  constructor(props: DateRangePickerProps);
1837
1838
  /**
1838
1839
  * Gets the wrapping element of the DateRangePicker.
@@ -3153,6 +3154,7 @@ export declare class MultiViewCalendarWithoutContext extends React_2.Component<M
3153
3154
  protected get topView(): CalendarViewEnum;
3154
3155
  protected get activeRange(): SelectionRangeEnd;
3155
3156
  protected get todayIsInRange(): boolean;
3157
+ private readonly showLicenseWatermark;
3156
3158
  constructor(props: MultiViewCalendarProps);
3157
3159
  /**
3158
3160
  * @hidden
@@ -3965,6 +3967,7 @@ export declare class TimePickerWithoutContext extends React_2.Component<TimePick
3965
3967
  private prevShow;
3966
3968
  private observerResize?;
3967
3969
  private get document();
3970
+ private readonly showLicenseWatermark;
3968
3971
  constructor(props: TimePickerProps);
3969
3972
  /**
3970
3973
  * Gets the wrapping element of the TimePicker.
package/index.d.ts CHANGED
@@ -1833,6 +1833,7 @@ export declare class DateRangePickerWithoutContext extends React_2.Component<Dat
1833
1833
  private shouldFocusDateInput;
1834
1834
  private shouldFocusCalendar;
1835
1835
  private observerResize?;
1836
+ private readonly showLicenseWatermark;
1836
1837
  constructor(props: DateRangePickerProps);
1837
1838
  /**
1838
1839
  * Gets the wrapping element of the DateRangePicker.
@@ -3153,6 +3154,7 @@ export declare class MultiViewCalendarWithoutContext extends React_2.Component<M
3153
3154
  protected get topView(): CalendarViewEnum;
3154
3155
  protected get activeRange(): SelectionRangeEnd;
3155
3156
  protected get todayIsInRange(): boolean;
3157
+ private readonly showLicenseWatermark;
3156
3158
  constructor(props: MultiViewCalendarProps);
3157
3159
  /**
3158
3160
  * @hidden
@@ -3965,6 +3967,7 @@ export declare class TimePickerWithoutContext extends React_2.Component<TimePick
3965
3967
  private prevShow;
3966
3968
  private observerResize?;
3967
3969
  private get document();
3970
+ private readonly showLicenseWatermark;
3968
3971
  constructor(props: TimePickerProps);
3969
3972
  /**
3970
3973
  * Gets the wrapping element of the TimePicker.
@@ -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 e={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1741087638,version:"9.5.0-develop.6",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"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1741180292,version:"10.0.0-develop.1",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"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "KendoReact",
11
11
  productCode: "KENDOUIREACT",
12
12
  productCodes: ["KENDOUIREACT"],
13
- publishDate: 1741087638,
14
- version: "9.5.0-develop.6",
13
+ publishDate: 1741180292,
14
+ version: "10.0.0-develop.1",
15
15
  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"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dateinputs",
3
- "version": "9.5.0-develop.6",
3
+ "version": "10.0.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",
@@ -28,12 +28,12 @@
28
28
  "@progress/kendo-date-math": "^1.4.0",
29
29
  "@progress/kendo-licensing": "^1.5.0",
30
30
  "@progress/kendo-dateinputs-common": "^0.4.0",
31
- "@progress/kendo-react-buttons": "9.5.0-develop.6",
32
- "@progress/kendo-react-common": "9.5.0-develop.6",
33
- "@progress/kendo-react-intl": "9.5.0-develop.6",
34
- "@progress/kendo-react-labels": "9.5.0-develop.6",
35
- "@progress/kendo-react-layout": "9.5.0-develop.6",
36
- "@progress/kendo-react-popup": "9.5.0-develop.6",
31
+ "@progress/kendo-react-buttons": "10.0.0-develop.1",
32
+ "@progress/kendo-react-common": "10.0.0-develop.1",
33
+ "@progress/kendo-react-intl": "10.0.0-develop.1",
34
+ "@progress/kendo-react-labels": "10.0.0-develop.1",
35
+ "@progress/kendo-react-layout": "10.0.0-develop.1",
36
+ "@progress/kendo-react-popup": "10.0.0-develop.1",
37
37
  "@progress/kendo-svg-icons": "^4.0.0",
38
38
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
39
39
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
@@ -65,7 +65,7 @@
65
65
  "package": {
66
66
  "productName": "KendoReact",
67
67
  "productCode": "KENDOUIREACT",
68
- "publishDate": 1741087638,
68
+ "publishDate": 1741180292,
69
69
  "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"
70
70
  }
71
71
  },
@@ -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"),X=require("@progress/kendo-react-popup"),y=require("@progress/kendo-date-math"),o=require("@progress/kendo-react-common"),Z=require("@progress/kendo-svg-icons"),T=require("@progress/kendo-react-intl"),$=require("../package-metadata.js"),l=require("../messages/index.js"),J=require("../dateinput/DateInput.js"),Q=require("./TimeSelector.js"),c=require("../utils.js"),f=require("./utils.js"),Y=require("../hooks/usePickerFloatingLabel.js"),ee=require("@progress/kendo-react-buttons"),te=require("../common/AdaptiveMode.js"),ie=require("@progress/kendo-react-layout");function se(p){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const t in p)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(p,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>p[t]})}}return i.default=p,Object.freeze(i)}const r=se(G),a=class a extends r.Component{constructor(i){super(i),this._element=null,this._dateInput=r.createRef(),this._timeSelector=null,this.shouldFocusDateInput=!1,this.prevShow=!1,this.focus=()=>{this.dateInput&&this.dateInput.focus()},this.renderTimeSelector=()=>{const{smoothScroll:t,cancelButton:s,nowButton:n,disabled:u,format:d,steps:h,unstyled:g}=this.props;return r.createElement(Q.TimeSelector,{ref:this.setTimeSelectorRef,mobileMode:this.mobileMode,show:this.show,cancelButton:s,disabled:u,nowButton:n,format:d,min:this.min,max:this.max,steps:h,smoothScroll:t,value:this.value,footer:!this.mobileMode,handleTimeChange:this.mobileMode&&this.handleTimeChange,onChange:this.handleValueChange,onReject:this.handleValueReject,unstyled:g})},this.renderPopup=()=>{const{popupClass:t,...s}=this.popupSettings,{unstyled:n}=this.props,u=n&&n.uTimePicker,d=o.classNames(t),h={popupClass:o.uTimePicker.popup({c:u}),show:this.show,animate:this.element!==null,anchor:this.element,className:d,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...s};return this.props.popup?r.createElement(this.props.popup,{...h},this.renderTimeSelector()):r.createElement(X.Popup,{...h},this.renderTimeSelector())},this.renderAdaptivePopup=()=>{const{windowWidth:t=0}=this.state,s={expand:this.show,onClose:this.handleBlur,title:this.props.adaptiveTitle,windowWidth:t,footer:{cancelText:this.localizationService.toLanguageString(l.toggleClock,l.messages[l.timePickerCancel]),onCancel:this.handleValueReject,applyText:this.localizationService.toLanguageString(l.timePickerSet,l.messages[l.timePickerSet]),onApply:n=>this.handleValueChange(n)}};return r.createElement(te.AdaptiveMode,{...s},r.createElement(ie.ActionSheetContent,{overflowHidden:!0},this.renderTimeSelector()))},this.setTimeSelectorRef=t=>{this._timeSelector=t},this.nextValue=(t,s)=>t.value!==void 0?t.value:s.value,this.nextShow=(t,s)=>t.show!==void 0?t.show:s.show,this.handleInputValueChange=t=>{const s=this.mergeTime(t.value);this.handleValueChange({...t,value:s})},this.handleTimeChange=t=>{this.setState({candidate:t.time})},this.handleValueChange=t=>{this.setState({value:y.cloneDate(t.value||this.state.candidate)}),this.valueDuringOnChange=t.value,this.showDuringOnChange=!1,this.shouldFocusDateInput=!0;const{onChange:s}=this.props,n=this.state.candidate||this.value;s&&s.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:n,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.handleValueReject=t=>{this.setShow(!1)},this.handleIconClick=t=>{this.props.disabled||(this.shouldFocusDateInput=!0,this.setShow(!this.show))},this.handleIconMouseDown=t=>{t.preventDefault()},this.handleKeyDown=t=>{const{altKey:s,keyCode:n}=t;if(n===o.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}s&&(n===o.Keys.up||n===o.Keys.down)&&(t.preventDefault(),t.stopPropagation(),this.shouldFocusDateInput=n===o.Keys.up,this.setShow(n===o.Keys.down))},o.validatePackage($.packageMetadata),this.state={value:this.props.defaultValue||a.defaultProps.defaultValue,show:this.props.defaultShow||a.defaultProps.defaultShow,focused:!1,candidate:null},this.normalizeTime=this.normalizeTime.bind(this),this.setShow=this.setShow.bind(this),this.mergeTime=this.mergeTime.bind(this)}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 timeSelector(){return this._timeSelector}get value(){const i=this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value;return i!==null?y.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 validity(){const i=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),s=this.normalizeTime(this.max),n=f.isInRange(i,t,s),u=this.props.validationMessage!==void 0,d=(!this.required||this.value!==null)&&n,h=this.props.valid!==void 0?this.props.valid:d;return{customError:u,rangeOverflow:f.isBiggerThanMax(i,s),rangeUnderflow:f.isSmallerThanMin(i,t),valid:h,valueMissing:this.value===null}}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 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 popupSettings(){return this.props.popupSettings||a.defaultProps.popupSettings}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 dateInputComp(){return this.props.dateInput||a.defaultProps.dateInput}get localizationService(){return T.provideLocalizationService(this)}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(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1}componentWillUnmount(){var i;(i=this.document)!=null&&i.body&&this.observerResize&&this.observerResize.disconnect()}render(){const{size:i=a.defaultProps.size,rounded:t=a.defaultProps.rounded,fillMode:s=a.defaultProps.fillMode,disabled:n,tabIndex:u,title:d,id:h,className:g,format:M,formatPlaceholder:P,width:O,name:D,steps:k,validationMessage:z,required:x,validityStyles:q,ariaLabelledBy:R,ariaDescribedBy:E,unstyled:v,enableMouseWheel:B,autoCorrectParts:A,autoSwitchParts:F,autoSwitchKeys:V,allowCaretMode:N,inputAttributes:_}=this.props,w=v&&v.uTimePicker,b=!this.validityStyles||this.validity.valid,L={disabled:n,format:M,formatPlaceholder:P,id:h,ariaLabelledBy:R,ariaDescribedBy:E,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:D,onChange:this.handleInputValueChange,required:x,steps:k,tabIndex:this.show?-1:u,title:d,valid:this.validity.valid,validationMessage:z,validityStyles:q,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:"dialog",ariaExpanded:this.show,size:null,fillMode:null,rounded:null,enableMouseWheel:B,autoCorrectParts:A,autoSwitchParts:F,autoSwitchKeys:V,allowCaretMode:N,inputAttributes:_},K=this.localizationService.toLanguageString(l.toggleClock,l.messages[l.toggleClock]),j=this.localizationService.toLanguageString(l.toggleTimeSelector,l.messages[l.toggleTimeSelector]),S=r.createElement(o.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.mobileMode?void 0:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},({onFocus:U,onBlur:H})=>r.createElement(r.Fragment,null,r.createElement("span",{id:this.props.id,ref:W=>{this._element=W},className:o.classNames(o.uTimePicker.wrapper({c:w,size:i,rounded:t,fillMode:s,invalid:!b,required:this.required,disabled:n}),g),onKeyDown:this.handleKeyDown,style:{width:O},onFocus:U,onBlur:H,onClick:this.mobileMode?this.handleIconClick:void 0},r.createElement(this.dateInputComp,{_ref:this._dateInput,ariaRole:"combobox",ariaControls:this._popupId,...L}),r.createElement(ee.Button,{tabIndex:-1,type:"button",icon:"clock",svgIcon:Z.clockIcon,onMouseDown:this.handleIconMouseDown,onClick:this.mobileMode?void 0:this.handleIconClick,title:j,className:o.classNames(o.uTimePicker.inputButton({c:w})),rounded:null,fillMode:s,"aria-label":K}),!this.mobileMode&&this.renderPopup()),this.mobileMode&&this.renderAdaptivePopup()));return this.props.label?r.createElement(Y.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:b,editorDisabled:this.props.disabled,children:S,style:{width:this.props.width}}):S}normalizeTime(i){return c.setTime(c.MIDNIGHT_DATE,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}))}mergeTime(i){return this.value&&i?c.setTime(this.value,i):i}calculateMedia(i){for(const t of i)this.setState({windowWidth:t.target.clientWidth})}};a.displayName="TimePicker",a.propTypes={className:e.string,cancelButton:e.bool,nowButton:e.bool,defaultShow:e.bool,defaultValue:e.instanceOf(Date),disabled:e.bool,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,steps:e.shape({hour:e.number,minute:e.number,second:e.number}),smoothScroll:e.bool,tabIndex:e.number,title:e.string,value:e.instanceOf(Date),width:e.oneOfType([e.number,e.string]),validationMessage:e.string,required:e.bool,validate:e.bool,valid:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),inputAttributes:e.object},a.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:c.MAX_TIME,min:c.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},validityStyles:!0,dateInput:J.DateInput,size:"medium",rounded:"medium",fillMode:"solid"};let m=a;const I=o.createPropsContext(),C=o.withIdHOC(o.withPropsContext(I,o.withUnstyledHOC(o.withAdaptiveModeContext(m))));C.displayName="KendoReactTimePicker";T.registerForLocalization(m);exports.TimePicker=C;exports.TimePickerPropsContext=I;exports.TimePickerWithoutContext=m;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),e=require("prop-types"),X=require("@progress/kendo-react-popup"),y=require("@progress/kendo-date-math"),o=require("@progress/kendo-react-common"),Z=require("@progress/kendo-svg-icons"),T=require("@progress/kendo-react-intl"),$=require("../package-metadata.js"),l=require("../messages/index.js"),J=require("../dateinput/DateInput.js"),Q=require("./TimeSelector.js"),c=require("../utils.js"),f=require("./utils.js"),Y=require("../hooks/usePickerFloatingLabel.js"),ee=require("@progress/kendo-react-buttons"),te=require("../common/AdaptiveMode.js"),ie=require("@progress/kendo-react-layout");function se(p){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const t in p)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(p,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>p[t]})}}return i.default=p,Object.freeze(i)}const a=se(G),r=class r extends a.Component{constructor(i){super(i),this._element=null,this._dateInput=a.createRef(),this._timeSelector=null,this.shouldFocusDateInput=!1,this.prevShow=!1,this.showLicenseWatermark=!1,this.focus=()=>{this.dateInput&&this.dateInput.focus()},this.renderTimeSelector=()=>{const{smoothScroll:t,cancelButton:s,nowButton:n,disabled:u,format:d,steps:h,unstyled:g}=this.props;return a.createElement(Q.TimeSelector,{ref:this.setTimeSelectorRef,mobileMode:this.mobileMode,show:this.show,cancelButton:s,disabled:u,nowButton:n,format:d,min:this.min,max:this.max,steps:h,smoothScroll:t,value:this.value,footer:!this.mobileMode,handleTimeChange:this.mobileMode&&this.handleTimeChange,onChange:this.handleValueChange,onReject:this.handleValueReject,unstyled:g})},this.renderPopup=()=>{const{popupClass:t,...s}=this.popupSettings,{unstyled:n}=this.props,u=n&&n.uTimePicker,d=o.classNames(t),h={popupClass:o.uTimePicker.popup({c:u}),show:this.show,animate:this.element!==null,anchor:this.element,className:d,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...s};return this.props.popup?a.createElement(this.props.popup,{...h},this.renderTimeSelector()):a.createElement(X.Popup,{...h},this.renderTimeSelector())},this.renderAdaptivePopup=()=>{const{windowWidth:t=0}=this.state,s={expand:this.show,onClose:this.handleBlur,title:this.props.adaptiveTitle,windowWidth:t,footer:{cancelText:this.localizationService.toLanguageString(l.toggleClock,l.messages[l.timePickerCancel]),onCancel:this.handleValueReject,applyText:this.localizationService.toLanguageString(l.timePickerSet,l.messages[l.timePickerSet]),onApply:n=>this.handleValueChange(n)}};return a.createElement(te.AdaptiveMode,{...s},a.createElement(ie.ActionSheetContent,{overflowHidden:!0},this.renderTimeSelector()))},this.setTimeSelectorRef=t=>{this._timeSelector=t},this.nextValue=(t,s)=>t.value!==void 0?t.value:s.value,this.nextShow=(t,s)=>t.show!==void 0?t.show:s.show,this.handleInputValueChange=t=>{const s=this.mergeTime(t.value);this.handleValueChange({...t,value:s})},this.handleTimeChange=t=>{this.setState({candidate:t.time})},this.handleValueChange=t=>{this.setState({value:y.cloneDate(t.value||this.state.candidate)}),this.valueDuringOnChange=t.value,this.showDuringOnChange=!1,this.shouldFocusDateInput=!0;const{onChange:s}=this.props,n=this.state.candidate||this.value;s&&s.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:n,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.handleValueReject=t=>{this.setShow(!1)},this.handleIconClick=t=>{this.props.disabled||(this.shouldFocusDateInput=!0,this.setShow(!this.show))},this.handleIconMouseDown=t=>{t.preventDefault()},this.handleKeyDown=t=>{const{altKey:s,keyCode:n}=t;if(n===o.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}s&&(n===o.Keys.up||n===o.Keys.down)&&(t.preventDefault(),t.stopPropagation(),this.shouldFocusDateInput=n===o.Keys.up,this.setShow(n===o.Keys.down))},this.showLicenseWatermark=!o.validatePackage($.packageMetadata,{component:"TimePicker"}),this.state={value:this.props.defaultValue||r.defaultProps.defaultValue,show:this.props.defaultShow||r.defaultProps.defaultShow,focused:!1,candidate:null},this.normalizeTime=this.normalizeTime.bind(this),this.setShow=this.setShow.bind(this),this.mergeTime=this.mergeTime.bind(this)}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 timeSelector(){return this._timeSelector}get value(){const i=this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value;return i!==null?y.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 validity(){const i=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),s=this.normalizeTime(this.max),n=f.isInRange(i,t,s),u=this.props.validationMessage!==void 0,d=(!this.required||this.value!==null)&&n,h=this.props.valid!==void 0?this.props.valid:d;return{customError:u,rangeOverflow:f.isBiggerThanMax(i,s),rangeUnderflow:f.isSmallerThanMin(i,t),valid:h,valueMissing:this.value===null}}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 validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:r.defaultProps.validityStyles}get required(){return this.props.required!==void 0?this.props.required:!1}get popupSettings(){return this.props.popupSettings||r.defaultProps.popupSettings}get min(){return this.props.min!==void 0?this.props.min:r.defaultProps.min}get max(){return this.props.max!==void 0?this.props.max:r.defaultProps.max}get dateInputComp(){return this.props.dateInput||r.defaultProps.dateInput}get localizationService(){return T.provideLocalizationService(this)}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(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1}componentWillUnmount(){var i;(i=this.document)!=null&&i.body&&this.observerResize&&this.observerResize.disconnect()}render(){const{size:i=r.defaultProps.size,rounded:t=r.defaultProps.rounded,fillMode:s=r.defaultProps.fillMode,disabled:n,tabIndex:u,title:d,id:h,className:g,format:P,formatPlaceholder:M,width:O,name:k,steps:D,validationMessage:z,required:x,validityStyles:q,ariaLabelledBy:R,ariaDescribedBy:E,unstyled:v,enableMouseWheel:B,autoCorrectParts:A,autoSwitchParts:F,autoSwitchKeys:V,allowCaretMode:L,inputAttributes:N}=this.props,w=v&&v.uTimePicker,b=!this.validityStyles||this.validity.valid,_={disabled:n,format:P,formatPlaceholder:M,id:h,ariaLabelledBy:R,ariaDescribedBy:E,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:k,onChange:this.handleInputValueChange,required:x,steps:D,tabIndex:this.show?-1:u,title:d,valid:this.validity.valid,validationMessage:z,validityStyles:q,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:"dialog",ariaExpanded:this.show,size:null,fillMode:null,rounded:null,enableMouseWheel:B,autoCorrectParts:A,autoSwitchParts:F,autoSwitchKeys:V,allowCaretMode:L,inputAttributes:N},K=this.localizationService.toLanguageString(l.toggleClock,l.messages[l.toggleClock]),j=this.localizationService.toLanguageString(l.toggleTimeSelector,l.messages[l.toggleTimeSelector]),S=a.createElement(o.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.mobileMode?void 0:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},({onFocus:W,onBlur:U})=>a.createElement(a.Fragment,null,a.createElement("span",{id:this.props.id,ref:H=>{this._element=H},className:o.classNames(o.uTimePicker.wrapper({c:w,size:i,rounded:t,fillMode:s,invalid:!b,required:this.required,disabled:n}),g),onKeyDown:this.handleKeyDown,style:{width:O},onFocus:W,onBlur:U,onClick:this.mobileMode?this.handleIconClick:void 0},a.createElement(this.dateInputComp,{_ref:this._dateInput,ariaRole:"combobox",ariaControls:this._popupId,..._}),a.createElement(ee.Button,{tabIndex:-1,type:"button",icon:"clock",svgIcon:Z.clockIcon,onMouseDown:this.handleIconMouseDown,onClick:this.mobileMode?void 0:this.handleIconClick,title:j,className:o.classNames(o.uTimePicker.inputButton({c:w})),rounded:null,fillMode:s,"aria-label":K}),!this.mobileMode&&this.renderPopup()),this.mobileMode&&this.renderAdaptivePopup(),this.showLicenseWatermark&&a.createElement(o.WatermarkOverlay,null)));return this.props.label?a.createElement(Y.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:b,editorDisabled:this.props.disabled,children:S,style:{width:this.props.width}}):S}normalizeTime(i){return c.setTime(c.MIDNIGHT_DATE,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}))}mergeTime(i){return this.value&&i?c.setTime(this.value,i):i}calculateMedia(i){for(const t of i)this.setState({windowWidth:t.target.clientWidth})}};r.displayName="TimePicker",r.propTypes={className:e.string,cancelButton:e.bool,nowButton:e.bool,defaultShow:e.bool,defaultValue:e.instanceOf(Date),disabled:e.bool,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,steps:e.shape({hour:e.number,minute:e.number,second:e.number}),smoothScroll:e.bool,tabIndex:e.number,title:e.string,value:e.instanceOf(Date),width:e.oneOfType([e.number,e.string]),validationMessage:e.string,required:e.bool,validate:e.bool,valid:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),inputAttributes:e.object},r.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:c.MAX_TIME,min:c.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},validityStyles:!0,dateInput:J.DateInput,size:"medium",rounded:"medium",fillMode:"solid"};let m=r;const I=o.createPropsContext(),C=o.withIdHOC(o.withPropsContext(I,o.withUnstyledHOC(o.withAdaptiveModeContext(m))));C.displayName="KendoReactTimePicker";T.registerForLocalization(m);exports.TimePicker=C;exports.TimePickerPropsContext=I;exports.TimePickerWithoutContext=m;
@@ -5,31 +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 a from "react";
8
+ import * as n from "react";
9
9
  import e from "prop-types";
10
10
  import { Popup as X } from "@progress/kendo-react-popup";
11
11
  import { cloneDate as y } from "@progress/kendo-date-math";
12
- import { classNames as c, uTimePicker as g, Keys as d, validatePackage as Z, canUseDOM as I, AsyncFocusBlur as J, createPropsContext as Q, withIdHOC as Y, withPropsContext as $, withUnstyledHOC as ee, withAdaptiveModeContext as te } from "@progress/kendo-react-common";
13
- import { clockIcon as ie } from "@progress/kendo-svg-icons";
14
- import { provideLocalizationService as se, registerForLocalization as oe } from "@progress/kendo-react-intl";
15
- import { packageMetadata as ne } from "../package-metadata.mjs";
16
- import { toggleClock as f, messages as u, timePickerCancel as ae, timePickerSet as C, toggleTimeSelector as T } from "../messages/index.mjs";
17
- import { DateInput as re } from "../dateinput/DateInput.mjs";
18
- import { TimeSelector as le } from "./TimeSelector.mjs";
19
- import { MAX_TIME as he, MIN_TIME as de, setTime as M, MIDNIGHT_DATE as ue } from "../utils.mjs";
20
- import { isInRange as pe, isBiggerThanMax as me, isSmallerThanMin as ce } from "./utils.mjs";
21
- import { PickerFloatingLabel as ge } from "../hooks/usePickerFloatingLabel.mjs";
22
- import { Button as fe } from "@progress/kendo-react-buttons";
23
- import { AdaptiveMode as ve } from "../common/AdaptiveMode.mjs";
24
- import { ActionSheetContent as we } from "@progress/kendo-react-layout";
25
- const n = class n extends a.Component {
12
+ import { classNames as c, uTimePicker as g, Keys as d, validatePackage as Z, canUseDOM as I, AsyncFocusBlur as J, WatermarkOverlay as Q, createPropsContext as Y, withIdHOC as $, withPropsContext as ee, withUnstyledHOC as te, withAdaptiveModeContext as ie } from "@progress/kendo-react-common";
13
+ import { clockIcon as se } from "@progress/kendo-svg-icons";
14
+ import { provideLocalizationService as oe, registerForLocalization as ne } from "@progress/kendo-react-intl";
15
+ import { packageMetadata as ae } from "../package-metadata.mjs";
16
+ import { toggleClock as f, messages as u, timePickerCancel as re, timePickerSet as C, toggleTimeSelector as T } from "../messages/index.mjs";
17
+ import { DateInput as le } from "../dateinput/DateInput.mjs";
18
+ import { TimeSelector as he } from "./TimeSelector.mjs";
19
+ import { MAX_TIME as de, MIN_TIME as ue, setTime as M, MIDNIGHT_DATE as pe } from "../utils.mjs";
20
+ import { isInRange as me, isBiggerThanMax as ce, isSmallerThanMin as ge } from "./utils.mjs";
21
+ import { PickerFloatingLabel as fe } from "../hooks/usePickerFloatingLabel.mjs";
22
+ import { Button as ve } from "@progress/kendo-react-buttons";
23
+ import { AdaptiveMode as we } from "../common/AdaptiveMode.mjs";
24
+ import { ActionSheetContent as Se } from "@progress/kendo-react-layout";
25
+ const a = class a extends n.Component {
26
26
  constructor(i) {
27
- super(i), this._element = null, this._dateInput = a.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
27
+ super(i), this._element = null, this._dateInput = n.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.showLicenseWatermark = !1, this.focus = () => {
28
28
  this.dateInput && this.dateInput.focus();
29
29
  }, this.renderTimeSelector = () => {
30
30
  const { smoothScroll: t, cancelButton: s, nowButton: o, disabled: l, format: h, steps: r, unstyled: m } = this.props;
31
- return /* @__PURE__ */ a.createElement(
32
- le,
31
+ return /* @__PURE__ */ n.createElement(
32
+ he,
33
33
  {
34
34
  ref: this.setTimeSelectorRef,
35
35
  mobileMode: this.mobileMode,
@@ -68,7 +68,7 @@ const n = class n extends a.Component {
68
68
  },
69
69
  ...s
70
70
  };
71
- return this.props.popup ? /* @__PURE__ */ a.createElement(this.props.popup, { ...r }, this.renderTimeSelector()) : /* @__PURE__ */ a.createElement(X, { ...r }, this.renderTimeSelector());
71
+ return this.props.popup ? /* @__PURE__ */ n.createElement(this.props.popup, { ...r }, this.renderTimeSelector()) : /* @__PURE__ */ n.createElement(X, { ...r }, this.renderTimeSelector());
72
72
  }, this.renderAdaptivePopup = () => {
73
73
  const { windowWidth: t = 0 } = this.state, s = {
74
74
  expand: this.show,
@@ -76,13 +76,13 @@ const n = class n extends a.Component {
76
76
  title: this.props.adaptiveTitle,
77
77
  windowWidth: t,
78
78
  footer: {
79
- cancelText: this.localizationService.toLanguageString(f, u[ae]),
79
+ cancelText: this.localizationService.toLanguageString(f, u[re]),
80
80
  onCancel: this.handleValueReject,
81
81
  applyText: this.localizationService.toLanguageString(C, u[C]),
82
82
  onApply: (o) => this.handleValueChange(o)
83
83
  }
84
84
  };
85
- return /* @__PURE__ */ a.createElement(ve, { ...s }, /* @__PURE__ */ a.createElement(we, { overflowHidden: !0 }, this.renderTimeSelector()));
85
+ return /* @__PURE__ */ n.createElement(we, { ...s }, /* @__PURE__ */ n.createElement(Se, { overflowHidden: !0 }, this.renderTimeSelector()));
86
86
  }, this.setTimeSelectorRef = (t) => {
87
87
  this._timeSelector = t;
88
88
  }, this.nextValue = (t, s) => t.value !== void 0 ? t.value : s.value, this.nextShow = (t, s) => t.show !== void 0 ? t.show : s.show, this.handleInputValueChange = (t) => {
@@ -119,9 +119,9 @@ const n = class n extends a.Component {
119
119
  return;
120
120
  }
121
121
  s && (o === d.up || o === d.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = o === d.up, this.setShow(o === d.down));
122
- }, Z(ne), this.state = {
123
- value: this.props.defaultValue || n.defaultProps.defaultValue,
124
- show: this.props.defaultShow || n.defaultProps.defaultShow,
122
+ }, this.showLicenseWatermark = !Z(ae, { component: "TimePicker" }), this.state = {
123
+ value: this.props.defaultValue || a.defaultProps.defaultValue,
124
+ show: this.props.defaultShow || a.defaultProps.defaultShow,
125
125
  focused: !1,
126
126
  candidate: null
127
127
  }, this.normalizeTime = this.normalizeTime.bind(this), this.setShow = this.setShow.bind(this), this.mergeTime = this.mergeTime.bind(this);
@@ -174,11 +174,11 @@ const n = class n extends a.Component {
174
174
  * Represents the validity state into which the TimePicker is set.
175
175
  */
176
176
  get validity() {
177
- const i = this.value && this.normalizeTime(this.value), t = this.normalizeTime(this.min), s = this.normalizeTime(this.max), o = pe(i, t, s), l = this.props.validationMessage !== void 0, h = (!this.required || this.value !== null) && o, r = this.props.valid !== void 0 ? this.props.valid : h;
177
+ const i = this.value && this.normalizeTime(this.value), t = this.normalizeTime(this.min), s = this.normalizeTime(this.max), o = me(i, t, s), l = this.props.validationMessage !== void 0, h = (!this.required || this.value !== null) && o, r = this.props.valid !== void 0 ? this.props.valid : h;
178
178
  return {
179
179
  customError: l,
180
- rangeOverflow: me(i, s),
181
- rangeUnderflow: ce(i, t),
180
+ rangeOverflow: ce(i, s),
181
+ rangeUnderflow: ge(i, t),
182
182
  valid: r,
183
183
  valueMissing: this.value === null
184
184
  };
@@ -194,7 +194,7 @@ const n = class n extends a.Component {
194
194
  * @hidden
195
195
  */
196
196
  get validityStyles() {
197
- return this.props.validityStyles !== void 0 ? this.props.validityStyles : n.defaultProps.validityStyles;
197
+ return this.props.validityStyles !== void 0 ? this.props.validityStyles : a.defaultProps.validityStyles;
198
198
  }
199
199
  /**
200
200
  * @hidden
@@ -203,19 +203,19 @@ const n = class n extends a.Component {
203
203
  return this.props.required !== void 0 ? this.props.required : !1;
204
204
  }
205
205
  get popupSettings() {
206
- return this.props.popupSettings || n.defaultProps.popupSettings;
206
+ return this.props.popupSettings || a.defaultProps.popupSettings;
207
207
  }
208
208
  get min() {
209
- return this.props.min !== void 0 ? this.props.min : n.defaultProps.min;
209
+ return this.props.min !== void 0 ? this.props.min : a.defaultProps.min;
210
210
  }
211
211
  get max() {
212
- return this.props.max !== void 0 ? this.props.max : n.defaultProps.max;
212
+ return this.props.max !== void 0 ? this.props.max : a.defaultProps.max;
213
213
  }
214
214
  get dateInputComp() {
215
- return this.props.dateInput || n.defaultProps.dateInput;
215
+ return this.props.dateInput || a.defaultProps.dateInput;
216
216
  }
217
217
  get localizationService() {
218
- return se(this);
218
+ return oe(this);
219
219
  }
220
220
  /**
221
221
  * @hidden
@@ -242,20 +242,20 @@ const n = class n extends a.Component {
242
242
  */
243
243
  render() {
244
244
  const {
245
- size: i = n.defaultProps.size,
246
- rounded: t = n.defaultProps.rounded,
247
- fillMode: s = n.defaultProps.fillMode,
245
+ size: i = a.defaultProps.size,
246
+ rounded: t = a.defaultProps.rounded,
247
+ fillMode: s = a.defaultProps.fillMode,
248
248
  disabled: o,
249
249
  tabIndex: l,
250
250
  title: h,
251
251
  id: r,
252
252
  className: m,
253
- format: D,
254
- formatPlaceholder: O,
253
+ format: O,
254
+ formatPlaceholder: D,
255
255
  width: P,
256
256
  name: z,
257
- steps: x,
258
- validationMessage: k,
257
+ steps: k,
258
+ validationMessage: x,
259
259
  required: E,
260
260
  validityStyles: R,
261
261
  ariaLabelledBy: B,
@@ -263,14 +263,14 @@ const n = class n extends a.Component {
263
263
  unstyled: v,
264
264
  enableMouseWheel: A,
265
265
  autoCorrectParts: F,
266
- autoSwitchParts: N,
267
- autoSwitchKeys: L,
266
+ autoSwitchParts: L,
267
+ autoSwitchKeys: N,
268
268
  allowCaretMode: _,
269
269
  inputAttributes: q
270
270
  } = this.props, w = v && v.uTimePicker, S = !this.validityStyles || this.validity.valid, K = {
271
271
  disabled: o,
272
- format: D,
273
- formatPlaceholder: O,
272
+ format: O,
273
+ formatPlaceholder: D,
274
274
  id: r,
275
275
  ariaLabelledBy: B,
276
276
  ariaDescribedBy: V,
@@ -279,11 +279,11 @@ const n = class n extends a.Component {
279
279
  name: z,
280
280
  onChange: this.handleInputValueChange,
281
281
  required: E,
282
- steps: x,
282
+ steps: k,
283
283
  tabIndex: this.show ? -1 : l,
284
284
  title: h,
285
285
  valid: this.validity.valid,
286
- validationMessage: k,
286
+ validationMessage: x,
287
287
  validityStyles: R,
288
288
  value: this.value && this.normalizeTime(this.value),
289
289
  label: void 0,
@@ -295,14 +295,14 @@ const n = class n extends a.Component {
295
295
  rounded: null,
296
296
  enableMouseWheel: A,
297
297
  autoCorrectParts: F,
298
- autoSwitchParts: N,
299
- autoSwitchKeys: L,
298
+ autoSwitchParts: L,
299
+ autoSwitchKeys: N,
300
300
  allowCaretMode: _,
301
301
  inputAttributes: q
302
- }, U = this.localizationService.toLanguageString(f, u[f]), j = this.localizationService.toLanguageString(
302
+ }, W = this.localizationService.toLanguageString(f, u[f]), U = this.localizationService.toLanguageString(
303
303
  T,
304
304
  u[T]
305
- ), b = /* @__PURE__ */ a.createElement(
305
+ ), b = /* @__PURE__ */ n.createElement(
306
306
  J,
307
307
  {
308
308
  onFocus: this.handleFocus,
@@ -310,7 +310,7 @@ const n = class n extends a.Component {
310
310
  onSyncBlur: this.props.onBlur,
311
311
  onSyncFocus: this.props.onFocus
312
312
  },
313
- ({ onFocus: H, onBlur: W }) => /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
313
+ ({ onFocus: j, onBlur: H }) => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
314
314
  "span",
315
315
  {
316
316
  id: this.props.id,
@@ -331,11 +331,11 @@ const n = class n extends a.Component {
331
331
  ),
332
332
  onKeyDown: this.handleKeyDown,
333
333
  style: { width: P },
334
- onFocus: H,
335
- onBlur: W,
334
+ onFocus: j,
335
+ onBlur: H,
336
336
  onClick: this.mobileMode ? this.handleIconClick : void 0
337
337
  },
338
- /* @__PURE__ */ a.createElement(
338
+ /* @__PURE__ */ n.createElement(
339
339
  this.dateInputComp,
340
340
  {
341
341
  _ref: this._dateInput,
@@ -344,27 +344,27 @@ const n = class n extends a.Component {
344
344
  ...K
345
345
  }
346
346
  ),
347
- /* @__PURE__ */ a.createElement(
348
- fe,
347
+ /* @__PURE__ */ n.createElement(
348
+ ve,
349
349
  {
350
350
  tabIndex: -1,
351
351
  type: "button",
352
352
  icon: "clock",
353
- svgIcon: ie,
353
+ svgIcon: se,
354
354
  onMouseDown: this.handleIconMouseDown,
355
355
  onClick: this.mobileMode ? void 0 : this.handleIconClick,
356
- title: j,
356
+ title: U,
357
357
  className: c(g.inputButton({ c: w })),
358
358
  rounded: null,
359
359
  fillMode: s,
360
- "aria-label": U
360
+ "aria-label": W
361
361
  }
362
362
  ),
363
363
  !this.mobileMode && this.renderPopup()
364
- ), this.mobileMode && this.renderAdaptivePopup())
364
+ ), this.mobileMode && this.renderAdaptivePopup(), this.showLicenseWatermark && /* @__PURE__ */ n.createElement(Q, null))
365
365
  );
366
- return this.props.label ? /* @__PURE__ */ a.createElement(
367
- ge,
366
+ return this.props.label ? /* @__PURE__ */ n.createElement(
367
+ fe,
368
368
  {
369
369
  dateInput: this._dateInput,
370
370
  label: this.props.label,
@@ -377,7 +377,7 @@ const n = class n extends a.Component {
377
377
  ) : b;
378
378
  }
379
379
  normalizeTime(i) {
380
- return M(ue, i);
380
+ return M(pe, i);
381
381
  }
382
382
  setShow(i) {
383
383
  const { onOpen: t, onClose: s } = this.props;
@@ -395,7 +395,7 @@ const n = class n extends a.Component {
395
395
  this.setState({ windowWidth: t.target.clientWidth });
396
396
  }
397
397
  };
398
- n.displayName = "TimePicker", n.propTypes = {
398
+ a.displayName = "TimePicker", a.propTypes = {
399
399
  className: e.string,
400
400
  cancelButton: e.bool,
401
401
  nowButton: e.bool,
@@ -468,33 +468,33 @@ n.displayName = "TimePicker", n.propTypes = {
468
468
  rounded: e.oneOf([null, "small", "medium", "large", "full"]),
469
469
  fillMode: e.oneOf([null, "solid", "flat", "outline"]),
470
470
  inputAttributes: e.object
471
- }, n.defaultProps = {
471
+ }, a.defaultProps = {
472
472
  defaultShow: !1,
473
473
  defaultValue: null,
474
474
  disabled: !1,
475
475
  format: "t",
476
- max: he,
477
- min: de,
476
+ max: de,
477
+ min: ue,
478
478
  popupSettings: {},
479
479
  tabIndex: 0,
480
480
  steps: {},
481
481
  validityStyles: !0,
482
- dateInput: re,
482
+ dateInput: le,
483
483
  size: "medium",
484
484
  rounded: "medium",
485
485
  fillMode: "solid"
486
486
  };
487
- let p = n;
488
- const Se = Q(), be = Y(
489
- $(
490
- Se,
491
- ee(te(p))
487
+ let p = a;
488
+ const be = Y(), ye = $(
489
+ ee(
490
+ be,
491
+ te(ie(p))
492
492
  )
493
493
  );
494
- be.displayName = "KendoReactTimePicker";
495
- oe(p);
494
+ ye.displayName = "KendoReactTimePicker";
495
+ ne(p);
496
496
  export {
497
- be as TimePicker,
498
- Se as TimePickerPropsContext,
497
+ ye as TimePicker,
498
+ be as TimePickerPropsContext,
499
499
  p as TimePickerWithoutContext
500
500
  };