@progress/kendo-react-dateinputs 13.3.0-develop.9 → 13.4.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/PopupSettings.d.ts +22 -0
- package/calendar/components/Calendar.d.ts +202 -0
- package/calendar/components/Calendar.mjs +7 -7
- package/calendar/components/CalendarCell.d.ts +71 -0
- package/calendar/components/CalendarHeaderTitle.d.ts +38 -0
- package/calendar/components/CalendarNavigationItem.d.ts +39 -0
- package/calendar/components/CalendarWeekCell.d.ts +42 -0
- package/calendar/components/Header.d.ts +65 -0
- package/calendar/components/Header.mjs +3 -3
- package/calendar/components/HorizontalViewList.d.ts +80 -0
- package/calendar/components/HorizontalViewList.mjs +3 -3
- package/calendar/components/MultiViewCalendar.d.ts +226 -0
- package/calendar/components/MultiViewCalendar.js +1 -1
- package/calendar/components/MultiViewCalendar.mjs +17 -17
- package/calendar/components/Navigation.d.ts +85 -0
- package/calendar/components/TodayCommand.d.ts +46 -0
- package/calendar/components/TodayCommand.mjs +3 -3
- package/calendar/components/View.d.ts +101 -0
- package/calendar/components/ViewList.d.ts +128 -0
- package/calendar/models/ActiveView.d.ts +11 -0
- package/calendar/models/CalendarSettings.d.ts +256 -0
- package/calendar/models/CalendarViewEnum.d.ts +16 -0
- package/calendar/models/CellContext.d.ts +72 -0
- package/calendar/models/MultiViewCalendarMode.d.ts +16 -0
- package/calendar/models/MultiViewCalendarSettings.d.ts +129 -0
- package/calendar/models/NavigationAction.d.ts +22 -0
- package/calendar/models/SelectionRange.d.ts +24 -0
- package/calendar/models/SelectionRangeEnd.d.ts +11 -0
- package/calendar/models/ViewService.d.ts +32 -0
- package/calendar/models/WeekDaysFormat.d.ts +11 -0
- package/calendar/models/index.d.ts +18 -0
- package/calendar/services/BusViewService.d.ts +28 -0
- package/calendar/services/CenturyViewService.d.ts +32 -0
- package/calendar/services/CenturyViewService.mjs +4 -4
- package/calendar/services/DOMService.d.ts +36 -0
- package/calendar/services/DecadeViewService.d.ts +34 -0
- package/calendar/services/DecadeViewService.mjs +4 -4
- package/calendar/services/MonthViewService.d.ts +40 -0
- package/calendar/services/MonthViewService.mjs +2 -2
- package/calendar/services/NavigationService.d.ts +21 -0
- package/calendar/services/ScrollSyncService.d.ts +28 -0
- package/calendar/services/WeekNamesService.d.ts +17 -0
- package/calendar/services/YearViewService.d.ts +38 -0
- package/calendar/services/YearViewService.mjs +2 -2
- package/calendar/services/index.d.ts +17 -0
- package/calendar/utils/ScrollSync.d.ts +20 -0
- package/codemods/utils.js +1 -8
- package/codemods/v11/dateinput-handle.js +1 -8
- package/codemods/v11/datepicker-handle.js +1 -8
- package/common/AdaptiveMode.d.ts +22 -0
- package/common/ClearButton.d.ts +20 -0
- package/dateinput/DateInput.d.ts +248 -0
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +63 -65
- package/dateinput/dateInputIntl.d.ts +30 -0
- package/dateinput/models/DateInputSettings.d.ts +107 -0
- package/dateinput/models/common-package-props.d.ts +34 -0
- package/dateinput/models/dateinput-options.d.ts +105 -0
- package/dateinput/models/format-placeholder.d.ts +46 -0
- package/dateinput/models/incremental-steps.d.ts +24 -0
- package/dateinput/models/index.d.ts +15 -0
- package/dateinput/models/kendo-date.d.ts +60 -0
- package/dateinput/models/mask.d.ts +14 -0
- package/dateinput/models/selection.d.ts +14 -0
- package/dateinput/utils.d.ts +31 -0
- package/datepicker/DatePicker.d.ts +279 -0
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +68 -72
- package/datepicker/ToggleButton.d.ts +17 -0
- package/datepicker/models/DatePickerSettings.d.ts +248 -0
- package/datepicker/models/index.d.ts +9 -0
- package/daterangepicker/DateRangePicker.d.ts +357 -0
- package/daterangepicker/DateRangePicker.mjs +13 -13
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
- package/daterangepicker/models/DateRangePickerSettings.d.ts +129 -0
- package/daterangepicker/models/index.d.ts +12 -0
- package/datetimepicker/DateTimePicker.d.ts +420 -0
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +16 -20
- package/datetimepicker/DateTimeSelector.d.ts +111 -0
- package/datetimepicker/DateTimeSelector.mjs +3 -3
- package/datetimepicker/models/DateTimePickerSettings.d.ts +154 -0
- package/datetimepicker/models/index.d.ts +9 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/hooks/usePickerFloatingLabel.d.ts +27 -0
- package/index.d.mts +35 -4952
- package/index.d.ts +35 -4952
- package/messages/index.d.ts +132 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +8 -8
- package/timepicker/TimeList.d.ts +97 -0
- package/timepicker/TimeList.js +5 -5
- package/timepicker/TimeList.mjs +122 -112
- package/timepicker/TimePart.d.ts +146 -0
- package/timepicker/TimePart.mjs +3 -3
- package/timepicker/TimePicker.d.ts +417 -0
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +64 -68
- package/timepicker/TimeSelector.d.ts +149 -0
- package/timepicker/TimeSelector.mjs +3 -3
- package/timepicker/models/IncrementalSteps.d.ts +18 -0
- package/timepicker/models/ListItem.d.ts +14 -0
- package/timepicker/models/ListService.d.ts +22 -0
- package/timepicker/models/ListServiceSettings.d.ts +19 -0
- package/timepicker/models/TimePart.d.ts +17 -0
- package/timepicker/models/TimePickerSettings.d.ts +137 -0
- package/timepicker/models/index.d.ts +14 -0
- package/timepicker/services/DOMService.d.ts +18 -0
- package/timepicker/services/DayPeriodService.d.ts +54 -0
- package/timepicker/services/HoursService.d.ts +40 -0
- package/timepicker/services/MinutesService.d.ts +39 -0
- package/timepicker/services/SecondsService.d.ts +39 -0
- package/timepicker/services/index.d.ts +13 -0
- package/timepicker/utils.d.ts +63 -0
- package/timepicker/utils.mjs +1 -1
- package/utils.d.ts +103 -0
- package/utils.js +1 -1
- package/utils.mjs +46 -46
- package/virtualization/Virtualization.d.ts +125 -0
- package/virtualization/services/ScrollerService.d.ts +56 -0
- package/virtualization/services/index.d.ts +10 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export default class ScrollSync {
|
|
12
|
+
private scrollDetails;
|
|
13
|
+
private scrollNavigation;
|
|
14
|
+
areDetailsSynced: boolean;
|
|
15
|
+
isNavigationSynced: boolean;
|
|
16
|
+
magnitude: number;
|
|
17
|
+
constructor(detailsMonthHeight: number, navigationMonthHeight: number, scrollDetails: (scrollTo: number) => void, scrollNavigation: (scrollTo: number) => void);
|
|
18
|
+
syncDetails(navigationScrollTop: number): void;
|
|
19
|
+
syncNavigation(detailsScrollTop: number): void;
|
|
20
|
+
}
|
package/codemods/utils.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=(e,r,i,o)=>{const s=r.find(e.ImportDeclaration,{source:{value:o}});if(s.size()>0){const t=s.get(0).node.specifiers;t.some(n=>n.type==="ImportSpecifier"&&n.imported.name===i)||t.push(e.importSpecifier(e.identifier(i)))}else{const t=e.importDeclaration([e.importSpecifier(e.identifier(i))],e.literal(o));r.get().node.program.body.unshift(t)}};exports.ensureImportExists=p;
|
|
9
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2RhdGVpbnB1dHMvY29kZW1vZHMvdXRpbHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSlNDb2Rlc2hpZnQgfSBmcm9tICdqc2NvZGVzaGlmdCc7XG5cbmV4cG9ydCBjb25zdCBlbnN1cmVJbXBvcnRFeGlzdHMgPSAoajogSlNDb2Rlc2hpZnQsIHJvb3Q6IGFueSwgaW1wb3J0TmFtZTogc3RyaW5nLCBzb3VyY2U6IHN0cmluZykgPT4ge1xuICAgIGNvbnN0IGltcG9ydERlY2xhcmF0aW9uID0gcm9vdC5maW5kKGouSW1wb3J0RGVjbGFyYXRpb24sIHtcbiAgICAgICAgc291cmNlOiB7IHZhbHVlOiBzb3VyY2UgfVxuICAgIH0pO1xuXG4gICAgaWYgKGltcG9ydERlY2xhcmF0aW9uLnNpemUoKSA+
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2RhdGVpbnB1dHMvY29kZW1vZHMvdXRpbHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSlNDb2Rlc2hpZnQgfSBmcm9tICdqc2NvZGVzaGlmdCc7XG5cbmV4cG9ydCBjb25zdCBlbnN1cmVJbXBvcnRFeGlzdHMgPSAoajogSlNDb2Rlc2hpZnQsIHJvb3Q6IGFueSwgaW1wb3J0TmFtZTogc3RyaW5nLCBzb3VyY2U6IHN0cmluZykgPT4ge1xuICAgIGNvbnN0IGltcG9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zIjoiZ0ZBRU8sTUFBTUEsRUFBcUIsQ0FBQ0MsRUFBZ0JDLEVBQVdDLEVBQW9CQyxJQUFtQixDQUNqRyxNQUFNQyxFQUFvQkgsRUFBSyxLQUFLRCxFQUFFLGtCQUFtQixDQUNyRCxPQUFRLENBQUUsTUFBT0csQ0FBQSxDQUFPLENBQzNCLEVBRUQsR0FBSUMsRUFBa0IsS0FBQSxFQUFTLEVBQUcsQ0FDOUIsTUFBTUMsRUFBYUQsRUFBa0IsSUFBSSxDQUFDLEVBQUUsS0FBSyxXQUN6QkMsRUFBVyxLQUM5QkMsR0FBbUJBLEVBQVUsT0FBUyxtQkFBcUJBLEVBQVUsU0FBUyxPQUFTSixDQUFBLEdBSXhGRyxFQUFXLEtBQUtMLEVBQUUsZ0JBQWdCQSxFQUFFLFdBQVdFLENBQVUsQ0FBQyxDQUFDLENBRW5FLEtBQU8sQ0FDSCxNQUFNSyxFQUFZUCxFQUFFLGtCQUFrQixDQUFDQSxFQUFFLGdCQUFnQkEsRUFBRSxXQUFXRSxDQUFVLENBQUMsQ0FBQyxFQUFHRixFQUFFLFFBQVFHLENBQU0sQ0FBQyxFQUN0R0YsRUFBSyxNQUFNLEtBQUssUUFBUSxLQUFLLFFBQVFNLENBQVMsQ0FDbEQsQ0FDSiJ9
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
1
|
"use strict";const p=require("../utils.js");function a(r,c){const s=c.jscodeshift,t=s(r.source);if(!(r.path.endsWith(".ts")||r.path.endsWith(".tsx")))return t.toSource();let o=!1;const i=e=>{e&&e.type==="Identifier"&&e.name==="DateInput"&&(e.name="DateInputHandle",o=!0)};return t.find(s.TSTypeReference).forEach(e=>{const{typeName:n}=e.node;i(n)}),t.find(s.TSAsExpression).forEach(e=>{const{typeAnnotation:n}=e.node;n&&n.type==="TSTypeReference"&&i(n.typeName)}),o&&p.ensureImportExists(s,t,"DateInputHandle","@progress/kendo-react-dateinputs"),t.toSource()}module.exports=a;
|
|
9
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZWlucHV0LWhhbmRsZS5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZGF0ZWlucHV0cy9jb2RlbW9kcy92MTEvZGF0ZWlucHV0LWhhbmRsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBUEksIEZpbGVJbmZvLCBKU0NvZGVzaGlmdCB9IGZyb20gJ2pzY29kZXNoaWZ0JztcbmltcG9ydCB7IGVuc3VyZUltcG9ydEV4aXN0cyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gKGZpbGVJbmZvOiBGaWxlSW5mbywgYXBpOiBBUEkpIHtcbiAgICBjb25zdCBqOiBKU0NvZGVzaGlmdCA9IGFwaS5qc2NvZGVzaGlmdDtcbiAgICBjb25zdCByb290ID0gaihmaWxlSW5mby5zb3VyY2UpO1xuXG4gICAgLy8gQ2hlY2sgaWYgdGhlIGZpbGUgaXMgVHlwZVNjcmlwdFxuICAgIGNvbnN0IGlzVHlwZVNjcmlwdCA9IGZpbGVJbmZvLnBhdGguZW5kc1dpdGgoJy50cycpIHx8IGZpbGVJbmZvLnBhdGguZW5kc1dpdGgoJy50c3gnKTtcbiAgICBpZiAoIWlzVHlwZVNjcmlwdCkge1xuICAgICAgICByZXR1cm4gcm9vdC50b1NvdXJjZSgpOyAvLyBSZXR1cm4gdGhlIHNvdXJjZSB1bmNoYW5nZWQgaWYgbm90IFR5cGVTY3JpcHRcbiAgICB9XG5cbiAgICBsZXQga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FDLEVBR0dKLEdBQ0FLLEVBQUFBLG1CQUFtQlAsRUFBR0MsRUFBTSxrQkFBbUIsa0NBQWtDLEVBRzlFQSxFQUFLLFNBQUEsQ0FDaEIifQ==
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
1
|
"use strict";const a=require("../utils.js");function p(r,o){const n=o.jscodeshift,t=n(r.source);if(!(r.path.endsWith(".ts")||r.path.endsWith(".tsx")))return t.toSource();let c=!1;const i=e=>{e&&e.type==="Identifier"&&e.name==="DatePicker"&&(e.name="DatePickerHandle",c=!0)};return t.find(n.TSTypeReference).forEach(e=>{const{typeName:s}=e.node;i(s)}),t.find(n.TSAsExpression).forEach(e=>{const{typeAnnotation:s}=e.node;s&&s.type==="TSTypeReference"&&i(s.typeName)}),c&&a.ensureImportExists(n,t,"DatePickerHandle","@progress/kendo-react-dateinputs"),t.toSource()}module.exports=p;
|
|
9
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1oYW5kbGUuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2RhdGVpbnB1dHMvY29kZW1vZHMvdjExL2RhdGVwaWNrZXItaGFuZGxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFQSSwgRmlsZUluZm8sIEpTQ29kZXNoaWZ0IH0gZnJvbSAnanNjb2Rlc2hpZnQnO1xuaW1wb3J0IHsgZW5zdXJlSW1wb3J0RXhpc3RzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiAo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ElBQUlDLEVBQWEsR0FHakIsTUFBTUMsRUFBbUJDLEdBQWtCLENBQ25DQSxHQUFZQSxFQUFTLE9BQVMsY0FBZ0JBLEVBQVMsT0FBUyxlQUNoRUEsRUFBUyxLQUFPLG1CQUNoQkYsRUFBYSxHQUVyQixFQUdBLE9BQUFELEVBQUssS0FBS0QsRUFBRSxlQUFlLEVBQUUsUUFBU0ssR0FBUyxDQUMzQyxLQUFNLENBQUUsU0FBQUQsR0FBYUMsRUFBSyxLQUMxQkYsRUFBZ0JDLENBQVEsQ0FDNUIsQ0FBQyxFQUdESCxFQUFLLEtBQUtELEVBQUUsY0FBYyxFQUFFLFFBQVNLLEdBQVMsQ0FDMUMsS0FBTSxDQUFFLGVBQUFDLEdBQW1CRCxFQUFLLEtBQzVCQyxHQUFrQkEsRUFBZSxPQUFTLG1CQUMxQ0gsRUFBZ0JHLEVBQWUsUUFBUSxDQUUvQyxDQUFDLEVBR0dKLEdBQ0FLLEVBQUFBLG1CQUFtQlAsRUFBR0MsRUFBTSxtQkFBb0Isa0NBQWtDLEVBRy9FQSxFQUFLLFNBQUEsQ0FDaEIifQ==
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ActionSheetProps } from '@progress/kendo-react-layout';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export interface AdaptiveModeProps extends ActionSheetProps {
|
|
12
|
+
windowWidth?: number;
|
|
13
|
+
mobileFilter?: React.ReactNode;
|
|
14
|
+
footer?: {
|
|
15
|
+
cancelText: string;
|
|
16
|
+
onCancel: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
applyText: string;
|
|
18
|
+
onApply: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** @hidden */
|
|
22
|
+
export declare const AdaptiveMode: (props: AdaptiveModeProps) => React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ClearButtonProps {
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
14
|
+
tabindex?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare const ClearButton: (props: ClearButtonProps) => React.JSX.Element;
|
|
20
|
+
export default ClearButton;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DateInputSettings, DateInputFormatPlaceholder, DateInputCommonPackageProps } from './models/index.js';
|
|
9
|
+
import { FormComponentProps, FormComponentValidity, DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
10
|
+
import { DateInputOptions } from './models/dateinput-options.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* The arguments for the `change` event of the DateInput. The generic argument sets the target type of the event. Defaults to `DateInput`.
|
|
14
|
+
*/
|
|
15
|
+
export interface DateInputChangeEvent<T = DateInputHandle> {
|
|
16
|
+
/** The native DOM event. */
|
|
17
|
+
nativeEvent?: any;
|
|
18
|
+
/** The React synthetic event. */
|
|
19
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
20
|
+
/** The new `value`. */
|
|
21
|
+
value: Date | null;
|
|
22
|
+
/** The component instance that fired the event. */
|
|
23
|
+
target: T;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the props of the [KendoReact DateInput component](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput). The generic argument is passed to the `onChange` property and is used as a target in the [`DateInputChangeEvent`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputchangeevent) interface.
|
|
27
|
+
*/
|
|
28
|
+
export interface DateInputProps<T extends DateInputHandle = any> extends FormComponentProps, DateInputSettings, DateInputCommonPackageProps {
|
|
29
|
+
/** @hidden */
|
|
30
|
+
_ref?: React.MutableRefObject<DateInputHandle | null>;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
disableSelection?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set a custom CSS class on the DateInput DOM element.
|
|
41
|
+
*/
|
|
42
|
+
className?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Set the `value` of the DateInput.
|
|
45
|
+
*/
|
|
46
|
+
value?: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* Set the initial `value` when the component is uncontrolled.
|
|
49
|
+
* If `value` is not set, the component uses this as its starting value.
|
|
50
|
+
*/
|
|
51
|
+
defaultValue?: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
* Define the interactive popup type for assistive tech.
|
|
54
|
+
* Use `grid` (default) or `dialog` based on context.
|
|
55
|
+
*
|
|
56
|
+
* @default `grid`
|
|
57
|
+
*/
|
|
58
|
+
ariaHasPopup?: boolean | 'grid' | 'dialog';
|
|
59
|
+
/**
|
|
60
|
+
* Indicate whether the popup content is expanded.
|
|
61
|
+
*/
|
|
62
|
+
ariaExpanded?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Set the ARIA role of the DateInput root element.
|
|
65
|
+
*/
|
|
66
|
+
ariaRole?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Reference the id of the element that the DateInput controls via ARIA.
|
|
69
|
+
*/
|
|
70
|
+
ariaControls?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Fires when the user edits the `value` ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/date-ranges)).
|
|
73
|
+
*/
|
|
74
|
+
onChange?: (event: DateInputChangeEvent<T>) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Control the `size` of the DateInput.
|
|
77
|
+
*
|
|
78
|
+
* The available options are:
|
|
79
|
+
* - small
|
|
80
|
+
* - medium
|
|
81
|
+
* - large
|
|
82
|
+
*
|
|
83
|
+
* @default undefined (theme-controlled)
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <DateInput size="large" />
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
size?: 'small' | 'medium' | 'large';
|
|
91
|
+
/**
|
|
92
|
+
* Control the corner `rounded` style of the DateInput.
|
|
93
|
+
*
|
|
94
|
+
* The available options are:
|
|
95
|
+
* - small
|
|
96
|
+
* - medium
|
|
97
|
+
* - large
|
|
98
|
+
* - full
|
|
99
|
+
*
|
|
100
|
+
* @default undefined (theme-controlled)
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```tsx
|
|
104
|
+
* <DateInput rounded="full" />
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
rounded?: 'small' | 'medium' | 'large' | 'full';
|
|
108
|
+
/**
|
|
109
|
+
* Control the `fillMode` (background) of the DateInput.
|
|
110
|
+
*
|
|
111
|
+
* The available options are:
|
|
112
|
+
* - solid
|
|
113
|
+
* - outline
|
|
114
|
+
* - flat
|
|
115
|
+
*
|
|
116
|
+
* @default undefined (theme-controlled)
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```tsx
|
|
120
|
+
* <DateInput fillMode="outline" />
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
124
|
+
/**
|
|
125
|
+
* Put the component in read-only mode.
|
|
126
|
+
*/
|
|
127
|
+
readonly?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Show a clear button that sets `value` to `null` and fires `onChange`.
|
|
130
|
+
*/
|
|
131
|
+
clearButton?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Apply the `autoFocus` attribute to the internal input.
|
|
134
|
+
*
|
|
135
|
+
* @default `false`
|
|
136
|
+
*/
|
|
137
|
+
autoFocus?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Autofill missing parts with the current date on blur.
|
|
140
|
+
*
|
|
141
|
+
* @default `false`
|
|
142
|
+
*/
|
|
143
|
+
autoFill?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* The maximum year to assume to be from the current century when typing two-digit year value ([see example](https://www.telerik.com/kendo-react-ui/components/dateinputs/dateinput/formats#toc-two---digit-year-max)).
|
|
146
|
+
* 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.
|
|
147
|
+
*
|
|
148
|
+
* @default `68`
|
|
149
|
+
*/
|
|
150
|
+
twoDigitYearMax?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Indicates whether the mouse scroll can be used to increase/decrease the date segments values.
|
|
153
|
+
*
|
|
154
|
+
* @default `true`
|
|
155
|
+
*/
|
|
156
|
+
enableMouseWheel?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
unstyled?: DateInputsClassStructure;
|
|
161
|
+
/**
|
|
162
|
+
* Pass HTML attributes to the internal focusable input.
|
|
163
|
+
* Attributes required for core logic are ignored.
|
|
164
|
+
*/
|
|
165
|
+
inputAttributes?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Represents the KendoReact DateInput Component.
|
|
169
|
+
*
|
|
170
|
+
* Accepts properties of type [DateInputProps](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops).
|
|
171
|
+
* Obtaining the `ref` returns an object of type [DateInputHandle](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputhandle).
|
|
172
|
+
*/
|
|
173
|
+
export declare const DateInput: React.ForwardRefExoticComponent<DateInputProps<any> & React.RefAttributes<DateInputHandle>>;
|
|
174
|
+
/**
|
|
175
|
+
* @hidden
|
|
176
|
+
*/
|
|
177
|
+
export declare const dateInputDefaultProps: {
|
|
178
|
+
format: string;
|
|
179
|
+
size: "small" | "medium" | "large" | undefined;
|
|
180
|
+
rounded: "small" | "medium" | "large" | "full" | undefined;
|
|
181
|
+
fillMode: "flat" | "solid" | "outline" | undefined;
|
|
182
|
+
formatPlaceholder: DateInputFormatPlaceholder;
|
|
183
|
+
spinners: boolean;
|
|
184
|
+
disabled: boolean;
|
|
185
|
+
max: Date;
|
|
186
|
+
min: Date;
|
|
187
|
+
minTime: Date;
|
|
188
|
+
maxTime: Date;
|
|
189
|
+
validityStyles: boolean;
|
|
190
|
+
validationMessage: string;
|
|
191
|
+
placeholder: null;
|
|
192
|
+
enableMouseWheel: boolean;
|
|
193
|
+
autoCorrectParts: boolean;
|
|
194
|
+
autoSwitchParts: boolean;
|
|
195
|
+
allowCaretMode: boolean;
|
|
196
|
+
twoDigitYearMax: number;
|
|
197
|
+
ariaHasPopup: string;
|
|
198
|
+
autoFocus: boolean;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Represents the PropsContext of the `DateInput` component.
|
|
202
|
+
* Used for global configuration of all `DateInput` instances.
|
|
203
|
+
*
|
|
204
|
+
* For more information, refer to the [DateInputs Props Context](https://www.telerik.com/kendo-react-ui/components/dateinputs/props-context) article.
|
|
205
|
+
*/
|
|
206
|
+
export declare const DateInputPropsContext: React.Context<(p: DateInputProps<any>) => DateInputProps<any>>;
|
|
207
|
+
/**
|
|
208
|
+
* Represent the `ref` of the DateInput component.
|
|
209
|
+
*/
|
|
210
|
+
export interface DateInputHandle {
|
|
211
|
+
/**
|
|
212
|
+
* @hidden
|
|
213
|
+
*/
|
|
214
|
+
focus: () => void;
|
|
215
|
+
/**
|
|
216
|
+
* @hidden
|
|
217
|
+
*/
|
|
218
|
+
updateOnPaste: (event: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
219
|
+
/**
|
|
220
|
+
* Get the props object of the component.
|
|
221
|
+
*/
|
|
222
|
+
props: Readonly<DateInputProps>;
|
|
223
|
+
/**
|
|
224
|
+
* Get the formatted text value.
|
|
225
|
+
*/
|
|
226
|
+
text: string;
|
|
227
|
+
/**
|
|
228
|
+
* Get the resolved configuration `options`.
|
|
229
|
+
*/
|
|
230
|
+
options: DateInputOptions;
|
|
231
|
+
/**
|
|
232
|
+
* Get the root input DOM element.
|
|
233
|
+
*/
|
|
234
|
+
element: HTMLInputElement | null;
|
|
235
|
+
/**
|
|
236
|
+
* Get the `name` property.
|
|
237
|
+
*/
|
|
238
|
+
name: string | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* Get the current `value`.
|
|
241
|
+
*/
|
|
242
|
+
value: Date | null;
|
|
243
|
+
/**
|
|
244
|
+
* Get the current validity state.
|
|
245
|
+
*/
|
|
246
|
+
validity: FormComponentValidity;
|
|
247
|
+
}
|
|
248
|
+
export type DateInput = DateInputHandle;
|
package/dateinput/DateInput.js
CHANGED
|
@@ -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 Ve=require("react"),e=require("prop-types"),x=require("@progress/kendo-date-math"),te=require("@progress/kendo-react-buttons"),ne=require("@progress/kendo-svg-icons"),ae=require("@progress/kendo-react-intl"),o=require("@progress/kendo-react-common"),ke=require("@progress/kendo-react-labels"),pe=require("@progress/kendo-dateinputs-common"),_=require("./utils.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("react"),e=require("prop-types"),x=require("@progress/kendo-date-math"),te=require("@progress/kendo-react-buttons"),ne=require("@progress/kendo-svg-icons"),ae=require("@progress/kendo-react-intl"),o=require("@progress/kendo-react-common"),ke=require("@progress/kendo-react-labels"),pe=require("@progress/kendo-dateinputs-common"),_=require("./utils.js"),u=require("../utils.js"),c=require("../messages/index.js"),Ae=require("../timepicker/utils.js"),_e=require("../common/ClearButton.js"),Be=require("./dateInputIntl.js");function Fe(t){const b=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const m in t)if(m!=="default"){const C=Object.getOwnPropertyDescriptor(t,m);Object.defineProperty(b,m,C.get?C:{enumerable:!0,get:()=>t[m]})}}return b.default=t,Object.freeze(b)}const a=Fe(Ve),je="Please enter a valid value!",F=a.forwardRef((t,b)=>{var ee;const m=o.useId(t.id),C=ae.useInternationalization(),E=ae.useLocalization(),re=o.useUnstyled(),j=o.usePropsContext(B,t).unstyled||re,{format:P=i.format,size:le=i.size,rounded:ie=i.rounded,fillMode:ue=i.fillMode,formatPlaceholder:oe=i.formatPlaceholder,spinners:se=i.spinners,disabled:w=i.disabled,min:ce=i.min,max:de=i.max,minTime:fe=i.minTime,maxTime:me=i.maxTime,validityStyles:ge=i.validityStyles,validationMessage:H=i.validationMessage,placeholder:y=i.placeholder,enableMouseWheel:ve=i.enableMouseWheel,autoCorrectParts:be=i.autoCorrectParts,autoSwitchParts:ye=i.autoSwitchParts,allowCaretMode:he=i.allowCaretMode,twoDigitYearMax:Ie=i.twoDigitYearMax,ariaHasPopup:Oe=i.ariaHasPopup,autoFocus:h=i.autoFocus}=o.usePropsContext(B,t),g=()=>S.current!==void 0?S.current:r.current&&r.current.value,z=()=>{const n=r.current&&r.current.currentText||"",l=g();return y!=null&&!qe.focused&&!l?y:n},U=()=>t.required!==void 0?t.required:!1,R=()=>{const n=g()||t.value,l=ce,D=de,k=_.isInRange(n,l,D)&&Ae.isInTimeRange(n,fe,me),p=H!==void 0,A=(!U()||n!=null)&&k,Ne=t.valid!==void 0?t.valid:A;return{customError:p,rangeOverflow:n&&D.getTime()<n.getTime()||!1,rangeUnderflow:n&&n.getTime()<l.getTime()||!1,valid:Ne,valueMissing:n===null}},De=()=>{s.current&&s.current.focus()},W=()=>new Be.DateInputIntl(C),T=()=>{const n=g();return{format:P,steps:t.steps,formatPlaceholder:oe,placeholder:y,selectPreviousSegmentOnBackspace:!0,value:t.value||n,intlService:W(),autoFill:t.autoFill!==void 0?t.autoFill:!1,enableMouseWheel:ve,autoCorrectParts:be,autoSwitchParts:ye,autoSwitchKeys:t.autoSwitchKeys||[],twoDigitYearMax:Ie,allowCaretMode:he}},xe=n=>{d.current&&d.current.classList.add("k-focus"),N({focused:!0}),h&&Z(!0)},Ce=n=>{d.current&&d.current.classList.remove("k-focus"),N({focused:!1})},Ee=(n,l)=>typeof n!=typeof l?!0:typeof n=="string"&&typeof l=="string"?n!==l:typeof n=="object"&&typeof l=="object"?JSON.stringify(n)!==JSON.stringify(l):!1,we=n=>typeof n=="string"?n:{inputFormat:n,displayFormat:n},K=n=>{S.current=g(),Le(),v.current=n,S.current=void 0},J=n=>{t.onChange&&t.onChange(n)},Y=n=>{o.getActiveElement(document)===s.current&&n.preventDefault()},Te=()=>new pe.DateInput(s.current,{...T(),format:we(T().format),events:{focus:xe,blur:Ce,valueChange:K,click:J}}),X=()=>{s.current&&s.current.setCustomValidity&&s.current.setCustomValidity(R().valid?"":H||i.validationMessage)},Z=a.useCallback(n=>{var l;if(s.current&&h&&n){const D=(r==null?void 0:r.current).currentText,k=(r==null?void 0:r.current).currentText.search(/[^a-zA-Z]/),p=D[k],A=D.split(p)[0].length;d.current&&d.current.classList.add("k-focus"),(l=r==null?void 0:r.current)==null||l.selectNearestSegment(A)}},[h]),Me=n=>{!s.current||!r.current||K(n)},Se=n=>{n.preventDefault();const l=o.getActiveElement(document);s.current&&l!==s.current&&s.current.focus({preventScroll:!0})},f=n=>{const l=g();v.current&&t.onChange&&!x.isEqual(v.current.oldValue,l)&&t.onChange.call(void 0,{syntheticEvent:n,nativeEvent:v.current.event,value:v.current.value,target:M.current}),v.current=null},Pe=n=>{var l;(l=r.current)==null||l.modifyDateSegmentValue(1),f(n)},Re=n=>{var l;(l=r.current)==null||l.modifyDateSegmentValue(-1),f(n)},M=a.useRef(null),s=a.useRef(null),d=a.useRef(null);a.useImperativeHandle(M,()=>({props:t,get options(){return T()},get text(){return z()},get element(){return s.current},get name(){return t.name},get value(){return g()},get validity(){return R()},focus:De,updateOnPaste:Me})),a.useImperativeHandle(b,()=>M.current);const r=a.useRef(null),q=a.useRef(null),L=a.useRef(!1),S=a.useRef(null),v=a.useRef(null),I=a.useRef(t),[qe,N]=a.useState({focused:!1}),[,Le]=a.useReducer(n=>n+1,0);a.useLayoutEffect(()=>{L.current||(r.current=Te(),q.current=r.current.dateObject,L.current=!0)},[]),a.useEffect(()=>(X(),L.current||d.current&&d.current.addEventListener("wheel",Y,{passive:!1}),h&&(N({focused:!0}),Z(!0)),()=>{d.current&&d.current.removeEventListener("wheel",Y)}),[]),a.useEffect(()=>{X(),r.current&&((Ee(I.current.format,P)||I.current.readonly!==t.readonly||JSON.stringify(I.current.steps)!==JSON.stringify(t.steps)||W().locale!==r.current.options.intlService.locale)&&r.current.setOptions(T(),!0),I.current.value!==t.value&&(q.current.getValue()!==null||t.value!==null)&&q.current.setValue(t.value),t.ariaExpanded!==void 0&&t.ariaExpanded&&(r.current.options.placeholder=null),t.ariaExpanded!==void 0&&!t.ariaExpanded&&(r.current.options.placeholder=y),r.current.refreshElementValue(),I.current={format:P,readonly:t.readonly,ariaExpanded:t.ariaExpanded,steps:t.steps,value:t.value})});const $=t.id||m+"-accessibility-id",O=j&&j.uDateInput,G=z(),V=!ge||R().valid;a.useImperativeHandle(t._ref,()=>M.current);const Q=a.createElement("span",{ref:n=>{d.current=n},style:t.label?void 0:{width:t.width},dir:t.dir,className:o.classNames(o.uDateInput.wrapper({c:O,size:le,fillMode:ue,rounded:ie,disabled:w,required:U(),invalid:!V}),t.className)},a.createElement("input",{ref:n=>{s.current=n},role:t.ariaRole||"textbox",readOnly:t.readonly,tabIndex:t.tabIndex||0,disabled:w,title:t.title!==void 0?t.title:G,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",autoFocus:h,className:o.classNames(o.uDateInput.inputInner({c:O})),id:$,value:G,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy,"aria-haspopup":Oe,"aria-disabled":w,"aria-expanded":t.ariaExpanded,"aria-controls":t.ariaControls,"aria-required":t.required,"aria-invalid":!V,onKeyDown:f,onChange:f,onWheel:f,onInput:f,onClick:f,name:t.name,...t.inputAttributes}),t.children,t.clearButton&&t.value&&a.createElement(_e,{onClick:J,key:"clearbutton"}),se&&a.createElement("span",{className:o.classNames(o.uDateInput.inputSpinner({c:O})),onMouseDown:Se},a.createElement(te.Button,{tabIndex:-1,type:"button",className:o.classNames(o.uDateInput.spinnerIncrease({c:O})),icon:"caret-alt-up",svgIcon:ne.caretAltUpIcon,"aria-label":E.toLanguageString(c.increaseValue,c.messages[c.increaseValue]),title:E.toLanguageString(c.increaseValue,c.messages[c.increaseValue]),onClick:Pe}),a.createElement(te.Button,{tabIndex:-1,type:"button",className:o.classNames(o.uDateInput.spinnerDecrease({c:O})),icon:"caret-alt-down",svgIcon:ne.caretAltDownIcon,"aria-label":E.toLanguageString(c.decreaseValue,c.messages[c.decreaseValue]),title:E.toLanguageString(c.decreaseValue,c.messages[c.decreaseValue]),onClick:Re})));return t.label?a.createElement(ke.FloatingLabel,{label:t.label,editorId:$,editorValue:(ee=s.current)==null?void 0:ee.value,editorValid:V,editorDisabled:w,children:Q,style:{width:t.width}}):Q});F.propTypes={value:e.instanceOf(Date),format:e.oneOfType([u.nullable(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([u.nullable(e.oneOf(["wide","narrow","short","formatPattern"])),e.shape({year:u.nullable(e.string),month:u.nullable(e.string),day:u.nullable(e.string),hour:u.nullable(e.string),minute:u.nullable(e.string),second:u.nullable(e.string)})]),width:e.oneOfType([e.string,e.number]),tabIndex:e.number,title:e.string,steps:e.shape({year:u.nullable(e.number),month:u.nullable(e.number),day:u.nullable(e.number),hour:u.nullable(e.number),minute:u.nullable(e.number),second:u.nullable(e.number)}),min:e.instanceOf(Date),max:e.instanceOf(Date),disabled:e.bool,spinners:e.bool,name:e.string,dir:e.string,label:e.node,id:e.string,ariaLabelledBy:e.string,ariaDescribedBy:e.string,ariaLabel:e.string,ariaRole:e.string,ariaHasPopup:e.oneOfType([e.bool,e.oneOf(["grid","dialog"])]),ariaExpanded:e.oneOfType([e.bool]),onChange:e.func,validationMessage:e.string,required:e.bool,valid:e.bool,size:e.oneOf(["small","medium","large"]),rounded:e.oneOf(["small","medium","large","full"]),fillMode:e.oneOf(["solid","flat","outline"]),autoFocus:e.bool,inputAttributes:e.object};const i={format:_.DEFAULT_FORMAT,size:void 0,rounded:void 0,fillMode:void 0,formatPlaceholder:_.DEFAULT_FORMAT_PLACEHOLDER,spinners:!1,disabled:!1,max:x.cloneDate(u.MAX_DATE),min:x.cloneDate(u.MIN_DATE),minTime:x.cloneDate(u.MIN_TIME),maxTime:x.cloneDate(u.MAX_TIME),validityStyles:!0,validationMessage:je,placeholder:null,enableMouseWheel:!0,autoCorrectParts:!0,autoSwitchParts:!0,allowCaretMode:!1,twoDigitYearMax:68,ariaHasPopup:"grid",autoFocus:!1},B=o.createPropsContext();F.displayName="KendoReactDateInput";exports.DateInput=F;exports.DateInputPropsContext=B;exports.dateInputDefaultProps=i;
|