@progress/kendo-react-dateinputs 9.0.0-develop.9 → 9.0.0

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
@@ -568,6 +568,34 @@ export declare interface DateInputChangeEvent<T = DateInput> {
568
568
  target: T;
569
569
  }
570
570
 
571
+ /** @hidden */
572
+ declare interface DateInputCommonPackageProps {
573
+ /**
574
+ * Determines whether to autocorrect invalid segments automatically.
575
+ *
576
+ * @default `true`
577
+ */
578
+ autoCorrectParts?: boolean;
579
+ /**
580
+ * Determines whether to automatically move to the next segment after the user completes the current one.
581
+ *
582
+ * @default `true`
583
+ */
584
+ autoSwitchParts?: boolean;
585
+ /**
586
+ * A string array representing custom keys, which will move the focus to the next date format segment.
587
+ *
588
+ * @default `[]`
589
+ */
590
+ autoSwitchKeys?: string[];
591
+ /**
592
+ * Determines if the users should see a blinking caret inside the Date Input when possible.
593
+ *
594
+ * @default `false`
595
+ */
596
+ allowCaretMode?: boolean;
597
+ }
598
+
571
599
  /**
572
600
  * The interface which defines a custom-format placeholder structure in the DateInput.
573
601
  */
@@ -665,7 +693,7 @@ declare class DateInputIntl {
665
693
  /**
666
694
  * Represents the props of the [KendoReact DateInput component]({% slug overview_dateinput %}). The generic argument is passed to the `onChange` property and is used as a target in the [`DateInputChangeEvent`]({% slug api_dateinputs_dateinputchangeevent %}) interface.
667
695
  */
668
- export declare interface DateInputProps<T extends DateInput = any> extends FormComponentProps, DateInputSettings {
696
+ export declare interface DateInputProps<T extends DateInput = any> extends FormComponentProps, DateInputSettings, DateInputCommonPackageProps {
669
697
  /** @hidden */
670
698
  _ref?: React_2.MutableRefObject<DateInput | null>;
671
699
  /**
@@ -690,6 +718,8 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
690
718
  defaultValue?: Date | null;
691
719
  /**
692
720
  * Indicates the availability of interactive popup element that can be triggered by an element. By default the property is set to `grid`.
721
+ *
722
+ * @default `grid`
693
723
  */
694
724
  ariaHasPopup?: boolean | 'grid' | 'dialog';
695
725
  /**
@@ -755,8 +785,29 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
755
785
  clearButton?: boolean;
756
786
  /**
757
787
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateInput. (Defaults to `false`)
788
+ *
789
+ * @default `false`
758
790
  */
759
791
  autoFocus?: boolean;
792
+ /**
793
+ * When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.
794
+ *
795
+ * @default `false`
796
+ */
797
+ autoFill?: boolean;
798
+ /**
799
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example]({% slug formats_dateinput %}#toc-two---digit-year-max)).
800
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
801
+ *
802
+ * @default `68`
803
+ */
804
+ twoDigitYearMax?: number;
805
+ /**
806
+ * Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
807
+ *
808
+ * @default `true`
809
+ */
810
+ enableMouseWheel?: boolean;
760
811
  /**
761
812
  * @hidden
762
813
  */
@@ -1004,6 +1055,11 @@ export declare class DateInputWithoutContext extends React_2.Component<DateInput
1004
1055
  validityStyles: boolean;
1005
1056
  validationMessage: string;
1006
1057
  placeholder: null;
1058
+ enableMouseWheel: boolean;
1059
+ autoCorrectParts: boolean;
1060
+ autoSwitchParts: boolean;
1061
+ allowCaretMode: boolean;
1062
+ twoDigitYearMax: number;
1007
1063
  ariaHasPopup: string;
1008
1064
  autoFocus: boolean;
1009
1065
  };
@@ -1092,14 +1148,15 @@ export declare class DateInputWithoutContext extends React_2.Component<DateInput
1092
1148
  formatPlaceholder: string;
1093
1149
  placeholder: string | null | undefined;
1094
1150
  selectPreviousSegmentOnBackspace: boolean;
1095
- allowCaretMode: boolean;
1096
1151
  value: Date | null;
1097
1152
  intlService: DateInputIntl;
1098
- enableMouseWheel: boolean;
1099
- autoCorrectParts: boolean;
1100
- autoSwitchParts: boolean;
1101
- autoSwitchKeys: never[];
1102
- twoDigitYearMax: number;
1153
+ autoFill: boolean;
1154
+ enableMouseWheel: boolean | undefined;
1155
+ autoCorrectParts: boolean | undefined;
1156
+ autoSwitchParts: boolean | undefined;
1157
+ autoSwitchKeys: string[];
1158
+ twoDigitYearMax: number | undefined;
1159
+ allowCaretMode: boolean | undefined;
1103
1160
  };
1104
1161
  /**
1105
1162
  * @hidden
@@ -1216,7 +1273,7 @@ export declare interface DatePickerOpenEvent {
1216
1273
  /**
1217
1274
  * Represents the props of the [KendoReact DatePicker component]({% slug overview_datepicker %}).
1218
1275
  */
1219
- export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps, Omit<React_2.HTMLAttributes<HTMLElement>, 'defaultValue' | 'onChange' | 'onBlur' | 'onFocus' | 'placeholder'> {
1276
+ export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps, DateInputCommonPackageProps, Omit<React_2.HTMLAttributes<HTMLElement>, 'defaultValue' | 'onChange' | 'onBlur' | 'onFocus' | 'placeholder'> {
1220
1277
  /**
1221
1278
  * Sets the default value of the DatePicker ([see example]({% slug default_value_datepicker %})).
1222
1279
  */
@@ -1300,6 +1357,25 @@ export declare interface DatePickerProps extends DatePickerSettings, FormCompone
1300
1357
  * @hidden
1301
1358
  */
1302
1359
  modified?: boolean;
1360
+ /**
1361
+ * When enabled, the DatePicker will autofill the rest of the date to the current date when the component loses focus.
1362
+ *
1363
+ * @default `false`
1364
+ */
1365
+ autoFill?: boolean;
1366
+ /**
1367
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example]({% slug formats_dateinput %}#toc-two---digit-year-max)).
1368
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
1369
+ *
1370
+ * @default `68`
1371
+ */
1372
+ twoDigitYearMax?: number;
1373
+ /**
1374
+ * Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
1375
+ *
1376
+ * @default `true`
1377
+ */
1378
+ enableMouseWheel?: boolean;
1303
1379
  }
1304
1380
 
1305
1381
  /**
@@ -2208,7 +2284,7 @@ export declare interface DateTimePickerOpenEvent {
2208
2284
  /**
2209
2285
  * Represents the props of the [KendoReact DateTimePicker component]({% slug overview_datetimepicker %}).
2210
2286
  */
2211
- export declare interface DateTimePickerProps extends DateTimePickerSettings, FormComponentProps {
2287
+ export declare interface DateTimePickerProps extends DateTimePickerSettings, FormComponentProps, DateInputCommonPackageProps {
2212
2288
  /**
2213
2289
  * Sets the default value of the DateTimePicker
2214
2290
  * ([see example]({% slug default_value_datetimepicker %})).
@@ -2290,6 +2366,25 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
2290
2366
  * @hidden
2291
2367
  */
2292
2368
  unstyled?: DateInputsClassStructure;
2369
+ /**
2370
+ * When enabled, the DateTimePicker will autofill the rest of the date/time to the current date/time when the component loses focus.
2371
+ *
2372
+ * @default `false`
2373
+ */
2374
+ autoFill?: boolean;
2375
+ /**
2376
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example]({% slug formats_dateinput %}#toc-two---digit-year-max)).
2377
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
2378
+ *
2379
+ * @default `68`
2380
+ */
2381
+ twoDigitYearMax?: number;
2382
+ /**
2383
+ * Indicates whether the mouse scroll can be used to increase/decrease the datetime segments values.
2384
+ *
2385
+ * @default `true`
2386
+ */
2387
+ enableMouseWheel?: boolean;
2293
2388
  }
2294
2389
 
2295
2390
  /**
@@ -3825,7 +3920,7 @@ export declare interface TimePickerOpenEvent {
3825
3920
  /**
3826
3921
  * Represents the props of the [KendoReact TimePicker component]({% slug overview_timepicker %}).
3827
3922
  */
3828
- export declare interface TimePickerProps extends TimePickerSettings, FormComponentProps {
3923
+ export declare interface TimePickerProps extends TimePickerSettings, FormComponentProps, DateInputCommonPackageProps {
3829
3924
  /**
3830
3925
  * Sets the default value of the TimePicker ([see example]({% slug default_value_timepicker %}#toc-setting-the-default-value)).
3831
3926
  */
@@ -3897,6 +3992,12 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
3897
3992
  * @hidden
3898
3993
  */
3899
3994
  unstyled?: DateInputsClassStructure;
3995
+ /**
3996
+ * Indicates whether the mouse scroll can be used to increase/decrease the time segments values.
3997
+ *
3998
+ * @default `true`
3999
+ */
4000
+ enableMouseWheel?: boolean;
3900
4001
  }
3901
4002
 
3902
4003
  /**
package/index.d.ts CHANGED
@@ -568,6 +568,34 @@ export declare interface DateInputChangeEvent<T = DateInput> {
568
568
  target: T;
569
569
  }
570
570
 
571
+ /** @hidden */
572
+ declare interface DateInputCommonPackageProps {
573
+ /**
574
+ * Determines whether to autocorrect invalid segments automatically.
575
+ *
576
+ * @default `true`
577
+ */
578
+ autoCorrectParts?: boolean;
579
+ /**
580
+ * Determines whether to automatically move to the next segment after the user completes the current one.
581
+ *
582
+ * @default `true`
583
+ */
584
+ autoSwitchParts?: boolean;
585
+ /**
586
+ * A string array representing custom keys, which will move the focus to the next date format segment.
587
+ *
588
+ * @default `[]`
589
+ */
590
+ autoSwitchKeys?: string[];
591
+ /**
592
+ * Determines if the users should see a blinking caret inside the Date Input when possible.
593
+ *
594
+ * @default `false`
595
+ */
596
+ allowCaretMode?: boolean;
597
+ }
598
+
571
599
  /**
572
600
  * The interface which defines a custom-format placeholder structure in the DateInput.
573
601
  */
@@ -665,7 +693,7 @@ declare class DateInputIntl {
665
693
  /**
666
694
  * Represents the props of the [KendoReact DateInput component]({% slug overview_dateinput %}). The generic argument is passed to the `onChange` property and is used as a target in the [`DateInputChangeEvent`]({% slug api_dateinputs_dateinputchangeevent %}) interface.
667
695
  */
668
- export declare interface DateInputProps<T extends DateInput = any> extends FormComponentProps, DateInputSettings {
696
+ export declare interface DateInputProps<T extends DateInput = any> extends FormComponentProps, DateInputSettings, DateInputCommonPackageProps {
669
697
  /** @hidden */
670
698
  _ref?: React_2.MutableRefObject<DateInput | null>;
671
699
  /**
@@ -690,6 +718,8 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
690
718
  defaultValue?: Date | null;
691
719
  /**
692
720
  * Indicates the availability of interactive popup element that can be triggered by an element. By default the property is set to `grid`.
721
+ *
722
+ * @default `grid`
693
723
  */
694
724
  ariaHasPopup?: boolean | 'grid' | 'dialog';
695
725
  /**
@@ -755,8 +785,29 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
755
785
  clearButton?: boolean;
756
786
  /**
757
787
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateInput. (Defaults to `false`)
788
+ *
789
+ * @default `false`
758
790
  */
759
791
  autoFocus?: boolean;
792
+ /**
793
+ * When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.
794
+ *
795
+ * @default `false`
796
+ */
797
+ autoFill?: boolean;
798
+ /**
799
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example]({% slug formats_dateinput %}#toc-two---digit-year-max)).
800
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
801
+ *
802
+ * @default `68`
803
+ */
804
+ twoDigitYearMax?: number;
805
+ /**
806
+ * Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
807
+ *
808
+ * @default `true`
809
+ */
810
+ enableMouseWheel?: boolean;
760
811
  /**
761
812
  * @hidden
762
813
  */
@@ -1004,6 +1055,11 @@ export declare class DateInputWithoutContext extends React_2.Component<DateInput
1004
1055
  validityStyles: boolean;
1005
1056
  validationMessage: string;
1006
1057
  placeholder: null;
1058
+ enableMouseWheel: boolean;
1059
+ autoCorrectParts: boolean;
1060
+ autoSwitchParts: boolean;
1061
+ allowCaretMode: boolean;
1062
+ twoDigitYearMax: number;
1007
1063
  ariaHasPopup: string;
1008
1064
  autoFocus: boolean;
1009
1065
  };
@@ -1092,14 +1148,15 @@ export declare class DateInputWithoutContext extends React_2.Component<DateInput
1092
1148
  formatPlaceholder: string;
1093
1149
  placeholder: string | null | undefined;
1094
1150
  selectPreviousSegmentOnBackspace: boolean;
1095
- allowCaretMode: boolean;
1096
1151
  value: Date | null;
1097
1152
  intlService: DateInputIntl;
1098
- enableMouseWheel: boolean;
1099
- autoCorrectParts: boolean;
1100
- autoSwitchParts: boolean;
1101
- autoSwitchKeys: never[];
1102
- twoDigitYearMax: number;
1153
+ autoFill: boolean;
1154
+ enableMouseWheel: boolean | undefined;
1155
+ autoCorrectParts: boolean | undefined;
1156
+ autoSwitchParts: boolean | undefined;
1157
+ autoSwitchKeys: string[];
1158
+ twoDigitYearMax: number | undefined;
1159
+ allowCaretMode: boolean | undefined;
1103
1160
  };
1104
1161
  /**
1105
1162
  * @hidden
@@ -1216,7 +1273,7 @@ export declare interface DatePickerOpenEvent {
1216
1273
  /**
1217
1274
  * Represents the props of the [KendoReact DatePicker component]({% slug overview_datepicker %}).
1218
1275
  */
1219
- export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps, Omit<React_2.HTMLAttributes<HTMLElement>, 'defaultValue' | 'onChange' | 'onBlur' | 'onFocus' | 'placeholder'> {
1276
+ export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps, DateInputCommonPackageProps, Omit<React_2.HTMLAttributes<HTMLElement>, 'defaultValue' | 'onChange' | 'onBlur' | 'onFocus' | 'placeholder'> {
1220
1277
  /**
1221
1278
  * Sets the default value of the DatePicker ([see example]({% slug default_value_datepicker %})).
1222
1279
  */
@@ -1300,6 +1357,25 @@ export declare interface DatePickerProps extends DatePickerSettings, FormCompone
1300
1357
  * @hidden
1301
1358
  */
1302
1359
  modified?: boolean;
1360
+ /**
1361
+ * When enabled, the DatePicker will autofill the rest of the date to the current date when the component loses focus.
1362
+ *
1363
+ * @default `false`
1364
+ */
1365
+ autoFill?: boolean;
1366
+ /**
1367
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example]({% slug formats_dateinput %}#toc-two---digit-year-max)).
1368
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
1369
+ *
1370
+ * @default `68`
1371
+ */
1372
+ twoDigitYearMax?: number;
1373
+ /**
1374
+ * Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
1375
+ *
1376
+ * @default `true`
1377
+ */
1378
+ enableMouseWheel?: boolean;
1303
1379
  }
1304
1380
 
1305
1381
  /**
@@ -2208,7 +2284,7 @@ export declare interface DateTimePickerOpenEvent {
2208
2284
  /**
2209
2285
  * Represents the props of the [KendoReact DateTimePicker component]({% slug overview_datetimepicker %}).
2210
2286
  */
2211
- export declare interface DateTimePickerProps extends DateTimePickerSettings, FormComponentProps {
2287
+ export declare interface DateTimePickerProps extends DateTimePickerSettings, FormComponentProps, DateInputCommonPackageProps {
2212
2288
  /**
2213
2289
  * Sets the default value of the DateTimePicker
2214
2290
  * ([see example]({% slug default_value_datetimepicker %})).
@@ -2290,6 +2366,25 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
2290
2366
  * @hidden
2291
2367
  */
2292
2368
  unstyled?: DateInputsClassStructure;
2369
+ /**
2370
+ * When enabled, the DateTimePicker will autofill the rest of the date/time to the current date/time when the component loses focus.
2371
+ *
2372
+ * @default `false`
2373
+ */
2374
+ autoFill?: boolean;
2375
+ /**
2376
+ * The maximum year to assume to be from the current century when typing two-digit year value ([see example]({% slug formats_dateinput %}#toc-two---digit-year-max)).
2377
+ * The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
2378
+ *
2379
+ * @default `68`
2380
+ */
2381
+ twoDigitYearMax?: number;
2382
+ /**
2383
+ * Indicates whether the mouse scroll can be used to increase/decrease the datetime segments values.
2384
+ *
2385
+ * @default `true`
2386
+ */
2387
+ enableMouseWheel?: boolean;
2293
2388
  }
2294
2389
 
2295
2390
  /**
@@ -3825,7 +3920,7 @@ export declare interface TimePickerOpenEvent {
3825
3920
  /**
3826
3921
  * Represents the props of the [KendoReact TimePicker component]({% slug overview_timepicker %}).
3827
3922
  */
3828
- export declare interface TimePickerProps extends TimePickerSettings, FormComponentProps {
3923
+ export declare interface TimePickerProps extends TimePickerSettings, FormComponentProps, DateInputCommonPackageProps {
3829
3924
  /**
3830
3925
  * Sets the default value of the TimePicker ([see example]({% slug default_value_timepicker %}#toc-setting-the-default-value)).
3831
3926
  */
@@ -3897,6 +3992,12 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
3897
3992
  * @hidden
3898
3993
  */
3899
3994
  unstyled?: DateInputsClassStructure;
3995
+ /**
3996
+ * Indicates whether the mouse scroll can be used to increase/decrease the time segments values.
3997
+ *
3998
+ * @default `true`
3999
+ */
4000
+ enableMouseWheel?: boolean;
3900
4001
  }
3901
4002
 
3902
4003
  /**
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-dateinputs",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1730208312,
13
+ publishDate: 1731417760,
14
14
  version: "",
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dateinputs",
3
- "version": "9.0.0-develop.9",
3
+ "version": "9.0.0",
4
4
  "description": "React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,14 +24,14 @@
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-date-math": "^1.4.0",
26
26
  "@progress/kendo-licensing": "^1.3.4",
27
- "@progress/kendo-dateinputs-common": "0.3.5",
28
- "@progress/kendo-react-buttons": "9.0.0-develop.9",
29
- "@progress/kendo-react-common": "9.0.0-develop.9",
30
- "@progress/kendo-react-intl": "9.0.0-develop.9",
31
- "@progress/kendo-react-labels": "9.0.0-develop.9",
32
- "@progress/kendo-react-layout": "9.0.0-develop.9",
33
- "@progress/kendo-react-popup": "9.0.0-develop.9",
34
- "@progress/kendo-svg-icons": "^3.0.0",
27
+ "@progress/kendo-dateinputs-common": "0.4.0",
28
+ "@progress/kendo-react-buttons": "9.0.0",
29
+ "@progress/kendo-react-common": "9.0.0",
30
+ "@progress/kendo-react-intl": "9.0.0",
31
+ "@progress/kendo-react-labels": "9.0.0",
32
+ "@progress/kendo-react-layout": "9.0.0",
33
+ "@progress/kendo-react-popup": "9.0.0",
34
+ "@progress/kendo-svg-icons": "^4.0.0",
35
35
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
36
36
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
37
37
  },
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),e=require("prop-types"),K=require("@progress/kendo-react-popup"),y=require("@progress/kendo-date-math"),n=require("@progress/kendo-react-common"),j=require("@progress/kendo-svg-icons"),I=require("@progress/kendo-react-intl"),U=require("../package-metadata.js"),l=require("../messages/index.js"),H=require("../dateinput/DateInput.js"),W=require("./TimeSelector.js"),p=require("../utils.js"),f=require("./utils.js"),G=require("../hooks/usePickerFloatingLabel.js"),X=require("@progress/kendo-react-buttons"),Z=require("../common/constants.js"),$=require("../common/AdaptiveMode.js"),J=require("@progress/kendo-react-layout");function Q(c){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const t in c)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(c,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>c[t]})}}return i.default=c,Object.freeze(i)}const r=Q(_),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:o,disabled:u,format:d,steps:h,unstyled:g}=this.props;return r.createElement(W.TimeSelector,{ref:this.setTimeSelectorRef,mobileMode:this.mobileMode,show:this.show,cancelButton:s,disabled:u,nowButton:o,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:o}=this.props,u=o&&o.uTimePicker,d=n.classNames(t),h={popupClass:n.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(K.Popup,{...h},this.renderTimeSelector())},this.renderAdaptivePopup=()=>{const{windowWidth:t=0}=this.state,s={expand:this.show,onClose:this.handleBlur,adaptiveTitle: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:o=>this.handleValueChange(o)}};return r.createElement($.AdaptiveMode,{...s},r.createElement(J.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,o=this.state.candidate||this.value;s&&s.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:o,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:o}=t;if(o===n.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}s&&(o===n.Keys.up||o===n.Keys.down)&&(t.preventDefault(),t.stopPropagation(),this.shouldFocusDateInput=o===n.Keys.up,this.setShow(o===n.Keys.down))},n.validatePackage(U.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(n.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),o=f.isInRange(i,t,s),u=this.props.validationMessage!==void 0,d=(!this.required||this.value!==null)&&o,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(){return!!(this.state.windowWidth&&this.state.windowWidth<=Z.MOBILE_MEDIUM_DEVISE&&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 I.provideLocalizationService(this)}componentDidMount(){var i;this.observerResize=n.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:o,tabIndex:u,title:d,id:h,className:g,format:M,formatPlaceholder:D,width:O,name:P,steps:k,validationMessage:z,required:q,validityStyles:x,ariaLabelledBy:R,ariaDescribedBy:E,unstyled:v}=this.props,w=v&&v.uTimePicker,S=!this.validityStyles||this.validity.valid,B={disabled:o,format:M,formatPlaceholder:D,id:h,ariaLabelledBy:R,ariaDescribedBy:E,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:P,onChange:this.handleInputValueChange,required:q,steps:k,tabIndex:this.show?-1:u,title:d,valid:this.validity.valid,validationMessage:z,validityStyles:x,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,readonly:this.mobileMode},V=this.localizationService.toLanguageString(l.toggleClock,l.messages[l.toggleClock]),F=this.localizationService.toLanguageString(l.toggleTimeSelector,l.messages[l.toggleTimeSelector]),b=r.createElement(n.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.mobileMode?void 0:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},({onFocus:N,onBlur:A})=>r.createElement(r.Fragment,null,r.createElement("span",{id:this.props.id,ref:L=>{this._element=L},className:n.classNames(n.uTimePicker.wrapper({c:w,size:i,rounded:t,fillMode:s,invalid:!S,required:this.required,disabled:o}),g),onKeyDown:this.handleKeyDown,style:{width:O},onFocus:N,onBlur:A,onClick:this.mobileMode?this.handleIconClick:void 0},r.createElement(this.dateInputComp,{_ref:this._dateInput,ariaRole:"combobox",ariaControls:this._popupId,...B}),r.createElement(X.Button,{tabIndex:-1,type:"button",icon:"clock",svgIcon:j.clockIcon,onMouseDown:this.handleIconMouseDown,onClick:this.mobileMode?void 0:this.handleIconClick,title:F,className:n.classNames(n.uTimePicker.inputButton({c:w})),rounded:null,fillMode:s,"aria-label":V}),!this.mobileMode&&this.renderPopup()),this.mobileMode&&this.renderAdaptivePopup()));return this.props.label?r.createElement(G.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:S,editorDisabled:this.props.disabled,children:b,style:{width:this.props.width}}):b}normalizeTime(i){return p.setTime(p.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?p.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"])},a.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:p.MAX_TIME,min:p.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},validityStyles:!0,dateInput:H.DateInput,size:"medium",rounded:"medium",fillMode:"solid"};let m=a;const T=n.createPropsContext(),C=n.withIdHOC(n.withPropsContext(T,n.withUnstyledHOC(m)));C.displayName="KendoReactTimePicker";I.registerForLocalization(m);exports.TimePicker=C;exports.TimePickerPropsContext=T;exports.TimePickerWithoutContext=m;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),e=require("prop-types"),G=require("@progress/kendo-react-popup"),y=require("@progress/kendo-date-math"),n=require("@progress/kendo-react-common"),X=require("@progress/kendo-svg-icons"),I=require("@progress/kendo-react-intl"),Z=require("../package-metadata.js"),l=require("../messages/index.js"),$=require("../dateinput/DateInput.js"),J=require("./TimeSelector.js"),p=require("../utils.js"),f=require("./utils.js"),Q=require("../hooks/usePickerFloatingLabel.js"),Y=require("@progress/kendo-react-buttons"),ee=require("../common/constants.js"),te=require("../common/AdaptiveMode.js"),ie=require("@progress/kendo-react-layout");function se(c){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const t in c)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(c,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>c[t]})}}return i.default=c,Object.freeze(i)}const r=se(W),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:o,disabled:u,format:d,steps:h,unstyled:g}=this.props;return r.createElement(J.TimeSelector,{ref:this.setTimeSelectorRef,mobileMode:this.mobileMode,show:this.show,cancelButton:s,disabled:u,nowButton:o,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:o}=this.props,u=o&&o.uTimePicker,d=n.classNames(t),h={popupClass:n.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(G.Popup,{...h},this.renderTimeSelector())},this.renderAdaptivePopup=()=>{const{windowWidth:t=0}=this.state,s={expand:this.show,onClose:this.handleBlur,adaptiveTitle: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:o=>this.handleValueChange(o)}};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,o=this.state.candidate||this.value;s&&s.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:o,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:o}=t;if(o===n.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}s&&(o===n.Keys.up||o===n.Keys.down)&&(t.preventDefault(),t.stopPropagation(),this.shouldFocusDateInput=o===n.Keys.up,this.setShow(o===n.Keys.down))},n.validatePackage(Z.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(n.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),o=f.isInRange(i,t,s),u=this.props.validationMessage!==void 0,d=(!this.required||this.value!==null)&&o,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(){return!!(this.state.windowWidth&&this.state.windowWidth<=ee.MOBILE_MEDIUM_DEVISE&&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 I.provideLocalizationService(this)}componentDidMount(){var i;this.observerResize=n.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:o,tabIndex:u,title:d,id:h,className:g,format:M,formatPlaceholder:P,width:D,name:O,steps:k,validationMessage:z,required:q,validityStyles:x,ariaLabelledBy:R,ariaDescribedBy:E,unstyled:v,enableMouseWheel:B,autoCorrectParts:V,autoSwitchParts:F,autoSwitchKeys:N,allowCaretMode:A}=this.props,w=v&&v.uTimePicker,S=!this.validityStyles||this.validity.valid,L={disabled:o,format:M,formatPlaceholder:P,id:h,ariaLabelledBy:R,ariaDescribedBy:E,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:O,onChange:this.handleInputValueChange,required:q,steps:k,tabIndex:this.show?-1:u,title:d,valid:this.validity.valid,validationMessage:z,validityStyles:x,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,readonly:this.mobileMode,enableMouseWheel:B,autoCorrectParts:V,autoSwitchParts:F,autoSwitchKeys:N,allowCaretMode:A},_=this.localizationService.toLanguageString(l.toggleClock,l.messages[l.toggleClock]),K=this.localizationService.toLanguageString(l.toggleTimeSelector,l.messages[l.toggleTimeSelector]),b=r.createElement(n.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.mobileMode?void 0:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},({onFocus:j,onBlur:U})=>r.createElement(r.Fragment,null,r.createElement("span",{id:this.props.id,ref:H=>{this._element=H},className:n.classNames(n.uTimePicker.wrapper({c:w,size:i,rounded:t,fillMode:s,invalid:!S,required:this.required,disabled:o}),g),onKeyDown:this.handleKeyDown,style:{width:D},onFocus:j,onBlur:U,onClick:this.mobileMode?this.handleIconClick:void 0},r.createElement(this.dateInputComp,{_ref:this._dateInput,ariaRole:"combobox",ariaControls:this._popupId,...L}),r.createElement(Y.Button,{tabIndex:-1,type:"button",icon:"clock",svgIcon:X.clockIcon,onMouseDown:this.handleIconMouseDown,onClick:this.mobileMode?void 0:this.handleIconClick,title:K,className:n.classNames(n.uTimePicker.inputButton({c:w})),rounded:null,fillMode:s,"aria-label":_}),!this.mobileMode&&this.renderPopup()),this.mobileMode&&this.renderAdaptivePopup()));return this.props.label?r.createElement(Q.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:S,editorDisabled:this.props.disabled,children:b,style:{width:this.props.width}}):b}normalizeTime(i){return p.setTime(p.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?p.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"])},a.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:p.MAX_TIME,min:p.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},validityStyles:!0,dateInput:$.DateInput,size:"medium",rounded:"medium",fillMode:"solid"};let m=a;const T=n.createPropsContext(),C=n.withIdHOC(n.withPropsContext(T,n.withUnstyledHOC(m)));C.displayName="KendoReactTimePicker";I.registerForLocalization(m);exports.TimePicker=C;exports.TimePickerPropsContext=T;exports.TimePickerWithoutContext=m;