@progress/kendo-react-dateinputs 9.2.0 → 9.3.0-develop.2

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.ts CHANGED
@@ -13,7 +13,6 @@ import { DateFormatOptions } from '@progress/kendo-react-intl';
13
13
  import { DateFormatOptions as DateFormatOptions_2 } from '@progress/kendo-intl';
14
14
  import { DateFormatPart } from '@progress/kendo-react-intl';
15
15
  import { DateFormatPart as DateFormatPart_2 } from '@progress/kendo-intl';
16
- import { DateInputIncrementalSteps as DateInputIncrementalSteps_2 } from './models';
17
16
  import { DateInputsClassStructure } from '@progress/kendo-react-common';
18
17
  import { default as default_2 } from 'prop-types';
19
18
  import { FormComponent } from '@progress/kendo-react-common';
@@ -549,21 +548,18 @@ export declare class CenturyViewService implements ViewService {
549
548
  private normalize;
550
549
  }
551
550
 
552
- /** @hidden */
553
- export declare type DateInput = DateInputHandle;
554
-
555
551
  /**
556
552
  * Represents the KendoReact DateInput Component.
557
553
  *
558
554
  * Accepts properties of type [DateInputProps]({% slug api_dateinputs_dateinputprops %}).
559
555
  * Obtaining the `ref` returns an object of type [DateInputHandle]({% slug api_dateinputs_dateinputhandle %}).
560
556
  */
561
- export declare const DateInput: React_2.ForwardRefExoticComponent<DateInputProps<any> & React_2.RefAttributes<any>>;
557
+ export declare const DateInput: React_2.ForwardRefExoticComponent<DateInputProps<any> & React_2.RefAttributes<DateInputHandle>>;
562
558
 
563
559
  /**
564
560
  * The arguments for the `change` event of the DateInput. The generic argument sets the target type of the event. Defaults to `DateInput`.
565
561
  */
566
- export declare interface DateInputChangeEvent<T = DateInput> {
562
+ export declare interface DateInputChangeEvent<T = DateInputHandle> {
567
563
  nativeEvent?: any;
568
564
  syntheticEvent: React_2.SyntheticEvent<any>;
569
565
  value: Date | null;
@@ -628,6 +624,33 @@ export declare interface DateInputCustomFormatPlaceholder {
628
624
  second?: string;
629
625
  }
630
626
 
627
+ /**
628
+ * @hidden
629
+ */
630
+ export declare const dateInputDefaultProps: {
631
+ format: string;
632
+ size: "small" | "large" | "medium" | null | undefined;
633
+ rounded: "small" | "large" | "medium" | "full" | null | undefined;
634
+ fillMode: "flat" | "solid" | "outline" | null | undefined;
635
+ formatPlaceholder: DateInputFormatPlaceholder;
636
+ spinners: boolean;
637
+ disabled: boolean;
638
+ max: Date;
639
+ min: Date;
640
+ minTime: Date;
641
+ maxTime: Date;
642
+ validityStyles: boolean;
643
+ validationMessage: string;
644
+ placeholder: null;
645
+ enableMouseWheel: boolean;
646
+ autoCorrectParts: boolean;
647
+ autoSwitchParts: boolean;
648
+ allowCaretMode: boolean;
649
+ twoDigitYearMax: number;
650
+ ariaHasPopup: string;
651
+ autoFocus: boolean;
652
+ };
653
+
631
654
  /**
632
655
  * The union type which defines all possible format options of the DateInput placeholder.
633
656
  *
@@ -642,7 +665,27 @@ export declare type DateInputFormatPlaceholder = 'wide' | 'narrow' | 'short' | '
642
665
  /**
643
666
  * Represent the `ref` of the DateInput component.
644
667
  */
645
- export declare interface DateInputHandle extends Pick<DateInputWithoutContext, keyof DateInputWithoutContext> {
668
+ export declare interface DateInputHandle {
669
+ /**
670
+ * @hidden
671
+ */
672
+ focus: () => void;
673
+ /**
674
+ * @hidden
675
+ */
676
+ updateOnPaste: (event: React_2.SyntheticEvent<HTMLInputElement>) => void;
677
+ /**
678
+ * Represents the props of the DateInput component.
679
+ */
680
+ props: Readonly<DateInputProps>;
681
+ /**
682
+ * Represents the text of the DateInput component.
683
+ */
684
+ text: string;
685
+ /**
686
+ * Represents the options of the DateInput component.
687
+ */
688
+ options: DateInputOptions;
646
689
  /**
647
690
  * Returns the HTML element of the DateInput component.
648
691
  */
@@ -695,12 +738,96 @@ declare class DateInputIntl {
695
738
  constructor(service: IntlService);
696
739
  }
697
740
 
741
+ /**
742
+ * Represents the options type of the DateInput.
743
+ */
744
+ declare interface DateInputOptions {
745
+ /**
746
+ * Specifies the `date` format which is used for formatting the value ([see example]({% slug formats_dateinput %})). If not set, the default format will be used.
747
+ */
748
+ format: string | DateFormatOptions_2;
749
+ /**
750
+ * Specifies the incremental steps of the DateInput ([see example]({% slug incrementalsteps_dateinput %})).
751
+ *
752
+ * The available options are:
753
+ * - `year: Number`&mdash;Controls the incremental step of the year value.
754
+ * - `month: Number`&mdash;Controls the incremental step of the month value.
755
+ * - `day: Number`&mdash;Controls the incremental step of the day value.
756
+ * - `hour: Number`&mdash;Controls the incremental step of the hour value.
757
+ * - `minute: Number`&mdash;Controls the incremental step of the minute value.
758
+ * - `second: Number`&mdash;Controls the incremental step of the second value.
759
+ */
760
+ steps?: DateInputIncrementalSteps;
761
+ /**
762
+ * Specifies the descriptions of the format sections in the input field ([more information and example]({% slug placeholders_dateinput %})).
763
+ */
764
+ formatPlaceholder?: DateInputFormatPlaceholder;
765
+ /**
766
+ * Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
767
+ * For more information, refer to the article on
768
+ * [placeholders]({% slug placeholders_dateinput %}).
769
+ */
770
+ placeholder?: string | null;
771
+ /**
772
+ * Determines wether should select the previous segment on backspace.
773
+ *
774
+ * @default `true`
775
+ */
776
+ selectPreviousSegmentOnBackspace: boolean;
777
+ /**
778
+ * Specifies the value of the DateInput.
779
+ */
780
+ value: Date | null;
781
+ /**
782
+ * The Intl object that provides internationalization support.
783
+ */
784
+ intlService: DateInputIntl;
785
+ /**
786
+ * When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.
787
+ *
788
+ * @default `false`
789
+ */
790
+ autoFill: boolean;
791
+ enableMouseWheel: boolean;
792
+ /**
793
+ * Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
794
+ *
795
+ * @default `true`
796
+ */
797
+ autoCorrectParts: boolean;
798
+ /**
799
+ * Determines whether to automatically move to the next segment after the user completes the current one.
800
+ *
801
+ * @default `true`
802
+ */
803
+ autoSwitchParts: boolean;
804
+ /**
805
+ * A string array representing custom keys, which will move the focus to the next date format segment.
806
+ *
807
+ * @default `[]`
808
+ */
809
+ autoSwitchKeys: string[];
810
+ /**
811
+ * 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)).
812
+ * 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.
813
+ *
814
+ * @default `68`
815
+ */
816
+ twoDigitYearMax: number;
817
+ /**
818
+ * Determines if the users should see a blinking caret inside the Date Input when possible.
819
+ *
820
+ * @default `false`
821
+ */
822
+ allowCaretMode: boolean;
823
+ }
824
+
698
825
  /**
699
826
  * 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.
700
827
  */
701
- export declare interface DateInputProps<T extends DateInput = any> extends FormComponentProps, DateInputSettings, DateInputCommonPackageProps {
828
+ export declare interface DateInputProps<T extends DateInputHandle = any> extends FormComponentProps, DateInputSettings, DateInputCommonPackageProps {
702
829
  /** @hidden */
703
- _ref?: React_2.MutableRefObject<DateInput | null>;
830
+ _ref?: React_2.MutableRefObject<DateInputHandle | null>;
704
831
  /**
705
832
  * @hidden
706
833
  */
@@ -974,254 +1101,13 @@ declare interface DateInputsPopupSettings extends PopupProps {
974
1101
  popupClass?: string;
975
1102
  }
976
1103
 
977
- /** @hidden */
978
- export declare class DateInputWithoutContext extends React_2.Component<DateInputProps, {
979
- focused: boolean;
980
- }> implements FormComponent {
981
- /**
982
- * @hidden
983
- */
984
- static displayName: string;
985
- /**
986
- * @hidden
987
- */
988
- static propTypes: {
989
- value: default_2.Requireable<Date>;
990
- format: default_2.Requireable<NonNullable<string | default_2.InferProps<{
991
- skeleton: default_2.Requireable<string>;
992
- pattern: default_2.Requireable<string>;
993
- date: default_2.Requireable<string>;
994
- time: default_2.Requireable<string>;
995
- datetime: default_2.Requireable<string>;
996
- era: default_2.Requireable<string>;
997
- year: default_2.Requireable<string>;
998
- month: default_2.Requireable<string>;
999
- day: default_2.Requireable<string>;
1000
- weekday: default_2.Requireable<string>;
1001
- hour: default_2.Requireable<string>;
1002
- hour12: default_2.Requireable<boolean>;
1003
- minute: default_2.Requireable<string>;
1004
- second: default_2.Requireable<string>;
1005
- timeZoneName: default_2.Requireable<string>;
1006
- }> | null | undefined>>;
1007
- formatPlaceholder: default_2.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | default_2.InferProps<{
1008
- year: default_2.Requireable<string>;
1009
- month: default_2.Requireable<string>;
1010
- day: default_2.Requireable<string>;
1011
- hour: default_2.Requireable<string>;
1012
- minute: default_2.Requireable<string>;
1013
- second: default_2.Requireable<string>;
1014
- }> | null | undefined>>;
1015
- width: default_2.Requireable<NonNullable<string | number | null | undefined>>;
1016
- tabIndex: default_2.Requireable<number>;
1017
- title: default_2.Requireable<string>;
1018
- steps: default_2.Requireable<default_2.InferProps<{
1019
- year: default_2.Requireable<number>;
1020
- month: default_2.Requireable<number>;
1021
- day: default_2.Requireable<number>;
1022
- hour: default_2.Requireable<number>;
1023
- minute: default_2.Requireable<number>;
1024
- second: default_2.Requireable<number>;
1025
- }>>;
1026
- min: default_2.Requireable<Date>;
1027
- max: default_2.Requireable<Date>;
1028
- disabled: default_2.Requireable<boolean>;
1029
- spinners: default_2.Requireable<boolean>;
1030
- name: default_2.Requireable<string>;
1031
- dir: default_2.Requireable<string>;
1032
- label: default_2.Requireable<string>;
1033
- id: default_2.Requireable<string>;
1034
- ariaLabelledBy: default_2.Requireable<string>;
1035
- ariaDescribedBy: default_2.Requireable<string>;
1036
- ariaLabel: default_2.Requireable<string>;
1037
- ariaRole: default_2.Requireable<string>;
1038
- ariaHasPopup: default_2.Requireable<NonNullable<string | boolean | null | undefined>>;
1039
- ariaExpanded: default_2.Requireable<NonNullable<boolean | null | undefined>>;
1040
- onChange: default_2.Requireable<(...args: any[]) => any>;
1041
- validationMessage: default_2.Requireable<string>;
1042
- required: default_2.Requireable<boolean>;
1043
- validate: default_2.Requireable<boolean>;
1044
- valid: default_2.Requireable<boolean>;
1045
- size: default_2.Requireable<"small" | "large" | "medium" | null | undefined>;
1046
- rounded: default_2.Requireable<"small" | "large" | "medium" | "full" | null | undefined>;
1047
- fillMode: default_2.Requireable<"flat" | "solid" | "outline" | null | undefined>;
1048
- autoFocus: default_2.Requireable<boolean>;
1049
- inputAttributes: default_2.Requireable<object>;
1050
- };
1051
- /**
1052
- * @hidden
1053
- */
1054
- static defaultProps: {
1055
- format: string;
1056
- size: "small" | "large" | "medium" | null | undefined;
1057
- rounded: "small" | "large" | "medium" | "full" | null | undefined;
1058
- fillMode: "flat" | "solid" | "outline" | null | undefined;
1059
- formatPlaceholder: DateInputFormatPlaceholder;
1060
- spinners: boolean;
1061
- disabled: boolean;
1062
- max: Date;
1063
- min: Date;
1064
- minTime: Date;
1065
- maxTime: Date;
1066
- validityStyles: boolean;
1067
- validationMessage: string;
1068
- placeholder: null;
1069
- enableMouseWheel: boolean;
1070
- autoCorrectParts: boolean;
1071
- autoSwitchParts: boolean;
1072
- allowCaretMode: boolean;
1073
- twoDigitYearMax: number;
1074
- ariaHasPopup: string;
1075
- autoFocus: boolean;
1076
- };
1077
- private kendoDate;
1078
- private kendoDateObject;
1079
- private mounted;
1080
- private valueDuringOnChange;
1081
- private _element;
1082
- private _wrapper;
1083
- private _nativeEvent;
1084
- private get _inputId();
1085
- private isFormatChanged;
1086
- private mapFormatToCommonFormat;
1087
- constructor(props: DateInputProps);
1088
- /**
1089
- * Gets the value of the DateInput.
1090
- */
1091
- get value(): Date | null;
1092
- /**
1093
- * Gets the `name` property of the DateInput.
1094
- */
1095
- get name(): string | undefined;
1096
- protected get min(): Date;
1097
- protected get max(): Date;
1098
- protected get isInSegmentSelection(): Date;
1099
- /**
1100
- * @hidden
1101
- */
1102
- get text(): string;
1103
- /**
1104
- * Represents the validity state into which the DateInput is set.
1105
- */
1106
- get validity(): FormComponentValidity;
1107
- /**
1108
- * Gets the element of the DateInput.
1109
- *
1110
- * @return - An `HTMLInputElement`.
1111
- *
1112
- * @example
1113
- * ```jsx
1114
- * class App extends React.Component {
1115
- * constructor(props) {
1116
- * super(props);
1117
- * }
1118
- * element = null;
1119
- * render() {
1120
- * return (
1121
- * <div>
1122
- * <DateInput
1123
- * ref={(dateInput) =>
1124
- * this.element = dateInput ? dateInput.element : null}
1125
- * />
1126
- * <button onClick={() => console.log(this.element)}>console.log the element</button>
1127
- * </div>
1128
- * );
1129
- * }
1130
- * }
1131
- *
1132
- * ReactDOM.render(
1133
- * <App />,
1134
- * document.getElementsByTagName('my-app')[0]
1135
- * );
1136
- * ```
1137
- */
1138
- get element(): HTMLInputElement | null;
1139
- /**
1140
- * @hidden
1141
- */
1142
- focus: () => void;
1143
- /**
1144
- * @hidden
1145
- */
1146
- protected get validityStyles(): boolean;
1147
- /**
1148
- * @hidden
1149
- */
1150
- protected get required(): boolean;
1151
- /**
1152
- * @hidden
1153
- */
1154
- protected get wrapper(): HTMLSpanElement | null;
1155
- /**
1156
- * @hidden
1157
- */
1158
- get options(): {
1159
- format: string | DateFormatOptions | undefined;
1160
- steps: DateInputIncrementalSteps_2 | undefined;
1161
- formatPlaceholder: DateInputFormatPlaceholder | undefined;
1162
- placeholder: string | null | undefined;
1163
- selectPreviousSegmentOnBackspace: boolean;
1164
- value: Date | null;
1165
- intlService: DateInputIntl;
1166
- autoFill: boolean;
1167
- enableMouseWheel: boolean | undefined;
1168
- autoCorrectParts: boolean | undefined;
1169
- autoSwitchParts: boolean | undefined;
1170
- autoSwitchKeys: string[];
1171
- twoDigitYearMax: number | undefined;
1172
- allowCaretMode: boolean | undefined;
1173
- };
1174
- /**
1175
- * @hidden
1176
- */
1177
- componentDidMount(): void;
1178
- /**
1179
- * @hidden
1180
- */
1181
- componentDidUpdate(prevProps: DateInputProps): void;
1182
- /**
1183
- * @hidden
1184
- */
1185
- componentWillUnmount(): void;
1186
- /**
1187
- * @hidden
1188
- */
1189
- render(): any;
1190
- /**
1191
- * @hidden
1192
- */
1193
- intl(): IntlService;
1194
- /**
1195
- * @hidden
1196
- */
1197
- protected get intlCommon(): DateInputIntl;
1198
- /**
1199
- * @hidden
1200
- */
1201
- protected setValidity: () => void;
1202
- protected updateOnPaste: (event: React_2.SyntheticEvent<HTMLInputElement>) => void;
1203
- private spinnersMouseDown;
1204
- private handleClick;
1205
- private nativeWheel;
1206
- private increasePart;
1207
- private decreasePart;
1208
- private elementOnFocus;
1209
- private elementOnBlur;
1210
- private triggerChange;
1211
- private onChange;
1212
- private initKendoDate;
1213
- }
1214
-
1215
- /** @hidden */
1216
- export declare type DatePicker = DatePickerHandle;
1217
-
1218
1104
  /**
1219
1105
  * Represents the KendoReact DatePicker Component.
1220
1106
  *
1221
1107
  * Accepts properties of type [DatePickerProps]({% slug api_dateinputs_datepickerprops %}).
1222
1108
  * Obtaining the `ref` returns an object of type [DatePickerHandle]({% slug api_dateinputs_datepickerhandle %}).
1223
1109
  */
1224
- export declare const DatePicker: React_2.ForwardRefExoticComponent<DatePickerProps & React_2.RefAttributes<any>>;
1110
+ export declare const DatePicker: React_2.ForwardRefExoticComponent<DatePickerProps & React_2.RefAttributes<DatePickerHandle>>;
1225
1111
 
1226
1112
  /**
1227
1113
  * The arguments for the `onChange` event of the DatePicker.
@@ -1231,20 +1117,61 @@ export declare interface DatePickerChangeEvent {
1231
1117
  syntheticEvent: React_2.SyntheticEvent<any>;
1232
1118
  value: Date | null;
1233
1119
  show: boolean;
1234
- target: DatePicker;
1120
+ target: DatePickerHandle;
1235
1121
  }
1236
1122
 
1237
1123
  /**
1238
1124
  * The arguments for the `onClose` event of the DatePicker.
1239
1125
  */
1240
1126
  export declare interface DatePickerCloseEvent {
1241
- target: DatePicker;
1127
+ target: DatePickerHandle;
1242
1128
  }
1243
1129
 
1130
+ /**
1131
+ * @hidden
1132
+ */
1133
+ export declare const datePickerDefaultProps: {
1134
+ defaultShow: boolean;
1135
+ defaultValue: null;
1136
+ dateInput: React_2.ComponentType<DateInputProps<any>>;
1137
+ calendar: React_2.ComponentType<CalendarProps<any>>;
1138
+ toggleButton: React_2.ComponentType<ToggleButtonProps>;
1139
+ popup: React_2.ComponentType<PopupProps>;
1140
+ pickerWrap: React_2.ComponentType<PickerWrapProps>;
1141
+ disabled: boolean;
1142
+ format: string;
1143
+ max: Date;
1144
+ min: Date;
1145
+ popupSettings: any;
1146
+ tabIndex: number;
1147
+ weekNumber: boolean;
1148
+ validityStyles: boolean;
1149
+ size: "small" | "large" | "medium" | null | undefined;
1150
+ rounded: "small" | "large" | "medium" | "full" | null | undefined;
1151
+ fillMode: "flat" | "solid" | "outline" | null | undefined;
1152
+ autoFocus: boolean;
1153
+ };
1154
+
1244
1155
  /**
1245
1156
  * Represent the `ref` of the DatePicker component.
1246
1157
  */
1247
- export declare interface DatePickerHandle extends Pick<DatePickerWithoutContext, keyof DatePickerWithoutContext> {
1158
+ export declare interface DatePickerHandle {
1159
+ /**
1160
+ * @hidden
1161
+ */
1162
+ focus: () => void;
1163
+ /**
1164
+ * Toggles the popup of the DatePicker.
1165
+ */
1166
+ togglePopup: () => void;
1167
+ /**
1168
+ * Returns the props of the DatePicker component.
1169
+ */
1170
+ props: DatePickerProps;
1171
+ /**
1172
+ * Returns a boolean value indicating whether the DatePicker is in mobile mode.
1173
+ */
1174
+ mobileMode: boolean;
1248
1175
  /**
1249
1176
  * Returns the HTML element of the DatePicker component.
1250
1177
  */
@@ -1256,7 +1183,7 @@ export declare interface DatePickerHandle extends Pick<DatePickerWithoutContext,
1256
1183
  /**
1257
1184
  * Gets the DateInput component inside the DatePicker component.
1258
1185
  */
1259
- dateInput: DateInput | null;
1186
+ dateInput: DateInputHandle | null;
1260
1187
  /**
1261
1188
  * Gets the `name` property of the DatePicker.
1262
1189
  */
@@ -1279,7 +1206,7 @@ export declare interface DatePickerHandle extends Pick<DatePickerWithoutContext,
1279
1206
  * The arguments for the `onOpen` event of the DatePicker.
1280
1207
  */
1281
1208
  export declare interface DatePickerOpenEvent {
1282
- target: DatePicker;
1209
+ target: DatePickerHandle;
1283
1210
  }
1284
1211
 
1285
1212
  /**
@@ -1538,214 +1465,6 @@ export declare interface DatePickerSettings {
1538
1465
  placeholder?: string | null;
1539
1466
  }
1540
1467
 
1541
- /**
1542
- * @hidden
1543
- */
1544
- declare interface DatePickerState {
1545
- value: Date | null;
1546
- show: boolean;
1547
- focused: boolean;
1548
- windowWidth?: number;
1549
- }
1550
-
1551
- /** @hidden */
1552
- export declare class DatePickerWithoutContext extends React_2.Component<DatePickerProps, DatePickerState> implements FormComponent {
1553
- /**
1554
- * @hidden
1555
- */
1556
- static displayName: string;
1557
- /**
1558
- * @hidden
1559
- */
1560
- static propTypes: {
1561
- className: default_2.Requireable<string>;
1562
- defaultShow: default_2.Requireable<boolean>;
1563
- defaultValue: default_2.Requireable<Date>;
1564
- disabled: default_2.Requireable<boolean>;
1565
- focusedDate: default_2.Requireable<Date>;
1566
- format: default_2.Requireable<NonNullable<string | default_2.InferProps<{
1567
- skeleton: default_2.Requireable<string>;
1568
- pattern: default_2.Requireable<string>;
1569
- date: default_2.Requireable<string>;
1570
- time: default_2.Requireable<string>;
1571
- datetime: default_2.Requireable<string>;
1572
- era: default_2.Requireable<string>;
1573
- year: default_2.Requireable<string>;
1574
- month: default_2.Requireable<string>;
1575
- day: default_2.Requireable<string>;
1576
- weekday: default_2.Requireable<string>;
1577
- hour: default_2.Requireable<string>;
1578
- hour12: default_2.Requireable<boolean>;
1579
- minute: default_2.Requireable<string>;
1580
- second: default_2.Requireable<string>;
1581
- timeZoneName: default_2.Requireable<string>;
1582
- }> | null | undefined>>;
1583
- formatPlaceholder: default_2.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | default_2.InferProps<{
1584
- year: default_2.Requireable<string>;
1585
- month: default_2.Requireable<string>;
1586
- day: default_2.Requireable<string>;
1587
- hour: default_2.Requireable<string>;
1588
- minute: default_2.Requireable<string>;
1589
- second: default_2.Requireable<string>;
1590
- }> | null | undefined>>;
1591
- id: default_2.Requireable<string>;
1592
- ariaLabelledBy: default_2.Requireable<string>;
1593
- ariaDescribedBy: default_2.Requireable<string>;
1594
- ariaLabel: default_2.Requireable<string>;
1595
- min: default_2.Requireable<Date>;
1596
- max: default_2.Requireable<Date>;
1597
- name: default_2.Requireable<string>;
1598
- popupSettings: default_2.Requireable<default_2.InferProps<{
1599
- animate: default_2.Requireable<boolean>;
1600
- appendTo: default_2.Requireable<any>;
1601
- popupClass: default_2.Requireable<string>;
1602
- }>>;
1603
- show: default_2.Requireable<boolean>;
1604
- tabIndex: default_2.Requireable<number>;
1605
- title: default_2.Requireable<string>;
1606
- value: default_2.Requireable<Date>;
1607
- weekNumber: default_2.Requireable<boolean>;
1608
- width: default_2.Requireable<NonNullable<string | number | null | undefined>>;
1609
- validationMessage: default_2.Requireable<string>;
1610
- required: default_2.Requireable<boolean>;
1611
- validate: default_2.Requireable<boolean>;
1612
- valid: default_2.Requireable<boolean>;
1613
- size: default_2.Requireable<"small" | "large" | "medium" | null | undefined>;
1614
- rounded: default_2.Requireable<"small" | "large" | "medium" | "full" | null | undefined>;
1615
- fillMode: default_2.Requireable<"flat" | "solid" | "outline" | null | undefined>;
1616
- adaptive: default_2.Requireable<boolean>;
1617
- adaptiveTitle: default_2.Requireable<string>;
1618
- autoFocus: default_2.Requireable<boolean>;
1619
- inputAttributes: default_2.Requireable<object>;
1620
- };
1621
- /**
1622
- * @hidden
1623
- */
1624
- static defaultProps: {
1625
- defaultShow: boolean;
1626
- defaultValue: null;
1627
- dateInput: React_2.ComponentType<DateInputProps<any>>;
1628
- calendar: React_2.ComponentType<CalendarProps<any>>;
1629
- toggleButton: React_2.ComponentType<ToggleButtonProps>;
1630
- popup: React_2.ComponentType<PopupProps>;
1631
- pickerWrap: React_2.ComponentType<PickerWrapProps>;
1632
- disabled: boolean;
1633
- format: string;
1634
- max: Date;
1635
- min: Date;
1636
- popupSettings: {};
1637
- tabIndex: number;
1638
- weekNumber: boolean;
1639
- validityStyles: boolean;
1640
- size: "small" | "large" | "medium" | null | undefined;
1641
- rounded: "small" | "large" | "medium" | "full" | null | undefined;
1642
- fillMode: "flat" | "solid" | "outline" | null | undefined;
1643
- autoFocus: boolean;
1644
- };
1645
- /**
1646
- * @hidden
1647
- */
1648
- readonly state: DatePickerState;
1649
- private get _popupId();
1650
- private _element;
1651
- private _dateInput;
1652
- private _calendar;
1653
- private valueDuringOnChange?;
1654
- private showDuringOnChange?;
1655
- private nextTickId;
1656
- private shouldFocusDateInput;
1657
- private prevShow;
1658
- private observerResize?;
1659
- private get document();
1660
- constructor(props: DatePickerProps);
1661
- /**
1662
- * Gets the wrapping element of the DatePickerWithoutContext.
1663
- */
1664
- get element(): HTMLSpanElement | null;
1665
- /**
1666
- * The mobile mode of the DatePicker.
1667
- */
1668
- get mobileMode(): boolean;
1669
- /**
1670
- * Gets the DateInput component inside the DatePicker component.
1671
- */
1672
- get dateInput(): DateInput | null;
1673
- /**
1674
- * Gets the Calendar component inside the DatePicker component.
1675
- */
1676
- get calendar(): Calendar | null;
1677
- /**
1678
- * Gets the value of the DatePickerWithoutContext.
1679
- */
1680
- get value(): Date | null;
1681
- /**
1682
- * Gets the popup state of the DatePickerWithoutContext.
1683
- */
1684
- get show(): boolean;
1685
- /**
1686
- * Gets the `name` property of the DatePickerWithoutContext.
1687
- */
1688
- get name(): string | undefined;
1689
- protected get min(): Date;
1690
- protected get max(): Date;
1691
- protected get dateInputComp(): React_2.ComponentType<DateInputProps<any>>;
1692
- protected get toggleButtonComp(): React_2.ComponentType<ToggleButtonProps>;
1693
- protected get calendarComp(): React_2.ComponentType<CalendarProps<any>>;
1694
- protected get popupComp(): React_2.ComponentType<PopupProps>;
1695
- protected get pickerWrapComp(): React_2.ComponentType<PickerWrapProps>;
1696
- /**
1697
- * Represents the validity state into which the DatePicker is set.
1698
- */
1699
- get validity(): FormComponentValidity;
1700
- /**
1701
- * @hidden
1702
- */
1703
- protected get validityStyles(): boolean;
1704
- /**
1705
- * @hidden
1706
- */
1707
- protected get required(): boolean;
1708
- /**
1709
- * @hidden
1710
- */
1711
- componentDidMount(): void;
1712
- /**
1713
- * @hidden
1714
- */
1715
- componentDidUpdate(): void;
1716
- /**
1717
- * @hidden
1718
- */
1719
- componentWillUnmount(): void;
1720
- /**
1721
- * @hidden
1722
- */
1723
- focus: () => void;
1724
- /**
1725
- * @hidden
1726
- */
1727
- render(): JSX_2.Element;
1728
- protected setCalendarRef: (calendar: any) => void;
1729
- protected nextValue: (nextProps: DatePickerProps, nextState: DatePickerState) => Date | null;
1730
- protected nextShow: (nextProps: DatePickerProps, nextState: DatePickerState) => boolean;
1731
- protected setShow(show: boolean): void;
1732
- protected mergeTime(value: Date | null): Date | null;
1733
- protected nextTick(f: () => any): void;
1734
- private renderPopup;
1735
- private renderAdaptivePopup;
1736
- private handleInputValueChange;
1737
- private handleCalendarValueChange;
1738
- private handleValueChange;
1739
- private handleFocus;
1740
- private handleBlur;
1741
- togglePopup: () => void;
1742
- private handleMouseDownOutside;
1743
- private handleIconClick;
1744
- private handleIconMouseDown;
1745
- private handleKeyDown;
1746
- private calculateMedia;
1747
- }
1748
-
1749
1468
  /** @hidden */
1750
1469
  export declare type DateRangePicker = DateRangePickerHandle;
1751
1470
 
@@ -1802,11 +1521,11 @@ export declare interface DateRangePickerHandle extends Pick<DateRangePickerWitho
1802
1521
  /**
1803
1522
  * Gets the end DateInput component inside the DateRangePicker component.
1804
1523
  */
1805
- endDateInput: DateInput | null;
1524
+ endDateInput: DateInputHandle | null;
1806
1525
  /**
1807
1526
  * Gets the start DateInput component inside the DateRangePicker component.
1808
1527
  */
1809
- startDateInput: DateInput | null;
1528
+ startDateInput: DateInputHandle | null;
1810
1529
  /**
1811
1530
  * Gets the value of the DateRangePicker.
1812
1531
  */
@@ -2045,69 +1764,7 @@ export declare class DateRangePickerWithoutContext extends React_2.Component<Dat
2045
1764
  defaultShow: default_2.Requireable<boolean>;
2046
1765
  defaultValue: default_2.Validator<SelectionRange>;
2047
1766
  disabled: default_2.Requireable<boolean>;
2048
- endDateInputSettings: default_2.Requireable<default_2.InferProps<{
2049
- value: default_2.Requireable<Date>;
2050
- format: default_2.Requireable<NonNullable<string | default_2.InferProps<{
2051
- skeleton: default_2.Requireable<string>;
2052
- pattern: default_2.Requireable<string>;
2053
- date: default_2.Requireable<string>;
2054
- time: default_2.Requireable<string>;
2055
- datetime: default_2.Requireable<string>;
2056
- era: default_2.Requireable<string>;
2057
- year: default_2.Requireable<string>;
2058
- month: default_2.Requireable<string>;
2059
- day: default_2.Requireable<string>;
2060
- weekday: default_2.Requireable<string>;
2061
- hour: default_2.Requireable<string>;
2062
- hour12: default_2.Requireable<boolean>;
2063
- minute: default_2.Requireable<string>;
2064
- second: default_2.Requireable<string>;
2065
- timeZoneName: default_2.Requireable<string>;
2066
- }> | null | undefined>>;
2067
- formatPlaceholder: default_2.Requireable<NonNullable<"short" | "narrow" | "wide" | "formatPattern" | default_2.InferProps<{
2068
- year: default_2.Requireable<string>;
2069
- month: default_2.Requireable<string>;
2070
- day: default_2.Requireable<string>;
2071
- hour: default_2.Requireable<string>;
2072
- minute: default_2.Requireable<string>;
2073
- second: default_2.Requireable<string>;
2074
- }> | null | undefined>>;
2075
- width: default_2.Requireable<NonNullable<string | number | null | undefined>>;
2076
- tabIndex: default_2.Requireable<number>;
2077
- title: default_2.Requireable<string>;
2078
- steps: default_2.Requireable<default_2.InferProps<{
2079
- year: default_2.Requireable<number>;
2080
- month: default_2.Requireable<number>;
2081
- day: default_2.Requireable<number>;
2082
- hour: default_2.Requireable<number>;
2083
- minute: default_2.Requireable<number>;
2084
- second: default_2.Requireable<number>;
2085
- }>>;
2086
- min: default_2.Requireable<Date>;
2087
- max: default_2.Requireable<Date>;
2088
- disabled: default_2.Requireable<boolean>;
2089
- spinners: default_2.Requireable<boolean>;
2090
- name: default_2.Requireable<string>;
2091
- dir: default_2.Requireable<string>;
2092
- label: default_2.Requireable<string>;
2093
- id: default_2.Requireable<string>;
2094
- ariaLabelledBy: default_2.Requireable<string>;
2095
- ariaDescribedBy: default_2.Requireable<string>;
2096
- ariaLabel: default_2.Requireable<string>;
2097
- ariaRole: default_2.Requireable<string>;
2098
- ariaHasPopup: default_2.Requireable<NonNullable<string | boolean | null | undefined>>;
2099
- ariaExpanded: default_2.Requireable<NonNullable<boolean | null | undefined>>;
2100
- onChange: default_2.Requireable<(...args: any[]) => any>;
2101
- validationMessage: default_2.Requireable<string>;
2102
- required: default_2.Requireable<boolean>;
2103
- validate: default_2.Requireable<boolean>;
2104
- valid: default_2.Requireable<boolean>;
2105
- size: default_2.Requireable<"small" | "large" | "medium" | null | undefined>;
2106
- rounded: default_2.Requireable<"small" | "large" | "medium" | "full" | null | undefined>;
2107
- fillMode: default_2.Requireable<"flat" | "solid" | "outline" | null | undefined>;
2108
- autoFocus: default_2.Requireable<boolean>;
2109
- inputAttributes: default_2.Requireable<object>;
2110
- }>>;
1767
+ endDateInputSettings: default_2.Requireable<default_2.InferProps<default_2.ValidationMap<DateInputProps<any>>>>;
2111
1768
  focusedDate: default_2.Requireable<Date>;
2112
1769
  format: default_2.Requireable<NonNullable<string | default_2.InferProps<{
2113
1770
  skeleton: default_2.Requireable<string>;
@@ -2180,11 +1837,11 @@ export declare class DateRangePickerWithoutContext extends React_2.Component<Dat
2180
1837
  /**
2181
1838
  * Gets the start DateInput component inside the DatePicker component.
2182
1839
  */
2183
- get startDateInput(): DateInput | null;
1840
+ get startDateInput(): DateInputHandle | null;
2184
1841
  /**
2185
1842
  * Gets the end DateInput component inside the DatePicker component.
2186
1843
  */
2187
- get endDateInput(): DateInput | null;
1844
+ get endDateInput(): DateInputHandle | null;
2188
1845
  /**
2189
1846
  * Gets the MultiVieCalendar inside the DateRangePicker.
2190
1847
  */
@@ -2286,7 +1943,7 @@ export declare interface DateTimePickerHandle extends Pick<DateTimePickerWithout
2286
1943
  /**
2287
1944
  * Gets the DateInput component inside the DateTimePicker component.
2288
1945
  */
2289
- dateInput: DateInput | null;
1946
+ dateInput: DateInputHandle | null;
2290
1947
  /**
2291
1948
  * Returns the HTML element of the DateTimePicker component.
2292
1949
  */
@@ -2698,7 +2355,7 @@ export declare class DateTimePickerWithoutContext extends React_2.Component<Date
2698
2355
  /**
2699
2356
  * Gets the DateInput component inside the DateTimePicker component.
2700
2357
  */
2701
- get dateInput(): DateInput | null;
2358
+ get dateInput(): DateInputHandle | null;
2702
2359
  /**
2703
2360
  * Gets the value of the DateTimePicker.
2704
2361
  */
@@ -3920,7 +3577,7 @@ export declare interface TimePickerHandle extends Pick<TimePickerWithoutContext,
3920
3577
  /**
3921
3578
  * Gets the DateInput component inside the TimePicker component.
3922
3579
  */
3923
- dateInput: DateInput | null;
3580
+ dateInput: DateInputHandle | null;
3924
3581
  /**
3925
3582
  * Returns the HTML element of the TimePicker component.
3926
3583
  */
@@ -4312,7 +3969,7 @@ export declare class TimePickerWithoutContext extends React_2.Component<TimePick
4312
3969
  /**
4313
3970
  * Gets the DateInput component inside the TimePicker component.
4314
3971
  */
4315
- get dateInput(): DateInput | null;
3972
+ get dateInput(): DateInputHandle | null;
4316
3973
  /**
4317
3974
  * Gets the TimeSelector component inside the TimePicker component.
4318
3975
  */