@progress/kendo-react-dateinputs 11.0.0-develop.2 → 11.0.0-develop.20
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/codemods/utils.js +9 -0
- package/codemods/v11/dateinput-handle.js +9 -0
- package/codemods/v11/datepicker-handle.js +9 -0
- package/common/AdaptiveMode.js +1 -1
- package/common/AdaptiveMode.mjs +14 -13
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +1 -1
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +166 -159
- package/daterangepicker/DateRangePicker.js +1 -1
- package/daterangepicker/DateRangePicker.mjs +17 -15
- package/datetimepicker/DateTimePicker.js +1 -1
- package/datetimepicker/DateTimePicker.mjs +49 -46
- package/datetimepicker/DateTimeSelector.js +1 -1
- package/datetimepicker/DateTimeSelector.mjs +23 -21
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/index.d.mts +63 -26
- package/index.d.ts +63 -26
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +29 -9
- package/timepicker/TimePicker.js +1 -1
- package/timepicker/TimePicker.mjs +39 -37
- package/timepicker/TimeSelector.js +1 -1
- package/timepicker/TimeSelector.mjs +49 -48
- package/utils.js +1 -1
- package/utils.mjs +3 -1
- package/virtualization/Virtualization.js +1 -1
- package/virtualization/Virtualization.mjs +1 -1
package/index.d.mts
CHANGED
|
@@ -15,6 +15,7 @@ import { DateFormatPart } from '@progress/kendo-react-intl';
|
|
|
15
15
|
import { DateFormatPart as DateFormatPart_2 } from '@progress/kendo-intl';
|
|
16
16
|
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
17
17
|
import { default as default_2 } from 'prop-types';
|
|
18
|
+
import { default as default_3 } from 'react';
|
|
18
19
|
import { FormComponent } from '@progress/kendo-react-common';
|
|
19
20
|
import { FormComponentProps } from '@progress/kendo-react-common';
|
|
20
21
|
import { FormComponentValidity } from '@progress/kendo-react-common';
|
|
@@ -1161,7 +1162,7 @@ export declare interface DateInputSettings {
|
|
|
1161
1162
|
/**
|
|
1162
1163
|
* Renders a floating label for the DateInput.
|
|
1163
1164
|
*/
|
|
1164
|
-
label?:
|
|
1165
|
+
label?: default_3.ReactNode;
|
|
1165
1166
|
/**
|
|
1166
1167
|
* Sets the `id` of the `input` DOM element.
|
|
1167
1168
|
*/
|
|
@@ -1407,12 +1408,21 @@ export declare interface DatePickerProps extends DatePickerSettings, FormCompone
|
|
|
1407
1408
|
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
1408
1409
|
/**
|
|
1409
1410
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
1411
|
+
*
|
|
1412
|
+
* @default `false`
|
|
1410
1413
|
*/
|
|
1411
1414
|
adaptive?: boolean;
|
|
1412
1415
|
/**
|
|
1413
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
1416
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
1417
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1418
|
+
* If not provided, the title will be the same as the label.
|
|
1414
1419
|
*/
|
|
1415
1420
|
adaptiveTitle?: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
1423
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1424
|
+
*/
|
|
1425
|
+
adaptiveSubtitle?: string;
|
|
1416
1426
|
/**
|
|
1417
1427
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DatePicker. (Defaults to `false`)
|
|
1418
1428
|
*/
|
|
@@ -1475,7 +1485,7 @@ export declare interface DatePickerSettings {
|
|
|
1475
1485
|
/**
|
|
1476
1486
|
* @deprecated The `DatePicker` no longer renders a `wrapper` around the DatePicker.
|
|
1477
1487
|
*/
|
|
1478
|
-
pickerWrap?:
|
|
1488
|
+
pickerWrap?: default_3.ComponentType<PickerWrapProps>;
|
|
1479
1489
|
/**
|
|
1480
1490
|
* Enables the customization or the override of the default Toggle button which is rendered by the DatePicker
|
|
1481
1491
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-toggle-button)).
|
|
@@ -1484,7 +1494,7 @@ export declare interface DatePickerSettings {
|
|
|
1484
1494
|
* <DatePicker toggleButton={CustomToggleButton} />
|
|
1485
1495
|
* ```
|
|
1486
1496
|
*/
|
|
1487
|
-
toggleButton?:
|
|
1497
|
+
toggleButton?: default_3.ComponentType<ToggleButtonProps>;
|
|
1488
1498
|
/**
|
|
1489
1499
|
* Enables the customization or the override of the default Calendar which is rendered by the DatePicker
|
|
1490
1500
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-calendar)).
|
|
@@ -1493,7 +1503,7 @@ export declare interface DatePickerSettings {
|
|
|
1493
1503
|
* <DatePicker calendar={CustomCalendar} />
|
|
1494
1504
|
* ```
|
|
1495
1505
|
*/
|
|
1496
|
-
calendar?:
|
|
1506
|
+
calendar?: default_3.ComponentType<CalendarProps<any>> | default_3.ComponentType<MultiViewCalendarProps<any>>;
|
|
1497
1507
|
/**
|
|
1498
1508
|
* Enables the customization or the override of the default Popup which is rendered by the DatePicker
|
|
1499
1509
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-popup)).
|
|
@@ -1502,7 +1512,7 @@ export declare interface DatePickerSettings {
|
|
|
1502
1512
|
* <DatePicker popup={CustomPopup} />
|
|
1503
1513
|
* ```
|
|
1504
1514
|
*/
|
|
1505
|
-
popup?:
|
|
1515
|
+
popup?: default_3.ComponentType<PopupProps>;
|
|
1506
1516
|
/**
|
|
1507
1517
|
* Enables the customization or the override of the default DateInput which is rendered by the DatePicker
|
|
1508
1518
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-dateinput)).
|
|
@@ -1511,7 +1521,7 @@ export declare interface DatePickerSettings {
|
|
|
1511
1521
|
* <DatePicker dateInput={CustomDateInput} />
|
|
1512
1522
|
* ```
|
|
1513
1523
|
*/
|
|
1514
|
-
dateInput?:
|
|
1524
|
+
dateInput?: default_3.ComponentType<DateInputProps<any>>;
|
|
1515
1525
|
/**
|
|
1516
1526
|
* Sets the `className` of the DatePicker.
|
|
1517
1527
|
* Example usage of the `className` property:
|
|
@@ -1624,7 +1634,7 @@ export declare interface DatePickerSettings {
|
|
|
1624
1634
|
* <DatePicker onBlur={(event) => console.log('Blur event:', event)} />
|
|
1625
1635
|
* ```
|
|
1626
1636
|
*/
|
|
1627
|
-
onBlur?: (event:
|
|
1637
|
+
onBlur?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
1628
1638
|
/**
|
|
1629
1639
|
* Fires each time the user focuses any of the DatePicker elements.
|
|
1630
1640
|
* Example usage of the `onFocus` property:
|
|
@@ -1632,7 +1642,7 @@ export declare interface DatePickerSettings {
|
|
|
1632
1642
|
* <DatePicker onFocus={(event) => console.log('Focus event:', event)} />
|
|
1633
1643
|
* ```
|
|
1634
1644
|
*/
|
|
1635
|
-
onFocus?: (event:
|
|
1645
|
+
onFocus?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
1636
1646
|
/**
|
|
1637
1647
|
* Configures the popup options of the DatePicker.
|
|
1638
1648
|
*
|
|
@@ -1693,7 +1703,7 @@ export declare interface DatePickerSettings {
|
|
|
1693
1703
|
* <DatePicker label="Date Picker Label" />
|
|
1694
1704
|
* ```
|
|
1695
1705
|
*/
|
|
1696
|
-
label?:
|
|
1706
|
+
label?: default_3.ReactNode;
|
|
1697
1707
|
/**
|
|
1698
1708
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
1699
1709
|
* For more information, refer to the article on
|
|
@@ -1825,12 +1835,21 @@ export declare interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
1825
1835
|
value?: SelectionRange;
|
|
1826
1836
|
/**
|
|
1827
1837
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
1838
|
+
*
|
|
1839
|
+
* @default `false`
|
|
1828
1840
|
*/
|
|
1829
1841
|
adaptive?: boolean;
|
|
1830
1842
|
/**
|
|
1831
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
1843
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
1844
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1845
|
+
* If not provided, the title will be the same as the label.
|
|
1832
1846
|
*/
|
|
1833
1847
|
adaptiveTitle?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
1850
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1851
|
+
*/
|
|
1852
|
+
adaptiveSubtitle?: string;
|
|
1834
1853
|
/**
|
|
1835
1854
|
* If `clearButton` is set to `true`, the DateRangePicker renders a button next to the start and end date values. Clicking this button resets the value of the date and triggers the `change` event.
|
|
1836
1855
|
*/
|
|
@@ -2286,12 +2305,21 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
|
|
|
2286
2305
|
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
2287
2306
|
/**
|
|
2288
2307
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
2308
|
+
*
|
|
2309
|
+
* @default `false`
|
|
2289
2310
|
*/
|
|
2290
2311
|
adaptive?: boolean;
|
|
2291
2312
|
/**
|
|
2292
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
2313
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
2314
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
2315
|
+
* If not provided, the title will be the same as the label.
|
|
2293
2316
|
*/
|
|
2294
2317
|
adaptiveTitle?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
2320
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
2321
|
+
*/
|
|
2322
|
+
adaptiveSubtitle?: string;
|
|
2295
2323
|
/**
|
|
2296
2324
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateTimePicker. (Defaults to `false`)
|
|
2297
2325
|
*/
|
|
@@ -2347,17 +2375,17 @@ export declare interface DateTimePickerSettings {
|
|
|
2347
2375
|
* Enables the customization or the override of the default Calendar which is rendered by the DateTimePicker
|
|
2348
2376
|
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-calendar)).
|
|
2349
2377
|
*/
|
|
2350
|
-
calendar?:
|
|
2378
|
+
calendar?: default_3.ComponentType<CalendarProps>;
|
|
2351
2379
|
/**
|
|
2352
2380
|
* Enables the customization or the override of the default Popup which is rendered by the DateTimePicker
|
|
2353
2381
|
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-popup)).
|
|
2354
2382
|
*/
|
|
2355
|
-
popup?:
|
|
2383
|
+
popup?: default_3.ComponentType<PopupProps>;
|
|
2356
2384
|
/**
|
|
2357
2385
|
* Enables the customization or the override of the default DateInput which is rendered by the DateTimePicker
|
|
2358
2386
|
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-dateinput)).
|
|
2359
2387
|
*/
|
|
2360
|
-
dateInput?:
|
|
2388
|
+
dateInput?: default_3.ComponentType<DateInputProps>;
|
|
2361
2389
|
/**
|
|
2362
2390
|
* Sets the `className` of the DateTimePicker.
|
|
2363
2391
|
*/
|
|
@@ -2432,11 +2460,11 @@ export declare interface DateTimePickerSettings {
|
|
|
2432
2460
|
/**
|
|
2433
2461
|
* Fires each time any of the DateTimePicker elements gets blurred.
|
|
2434
2462
|
*/
|
|
2435
|
-
onBlur?: (event:
|
|
2463
|
+
onBlur?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
2436
2464
|
/**
|
|
2437
2465
|
* Fires each time the user focuses any of the DateTimePicker elements.
|
|
2438
2466
|
*/
|
|
2439
|
-
onFocus?: (event:
|
|
2467
|
+
onFocus?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
2440
2468
|
/**
|
|
2441
2469
|
* Specifies if the popup will be displayed
|
|
2442
2470
|
* ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
|
|
@@ -2466,7 +2494,7 @@ export declare interface DateTimePickerSettings {
|
|
|
2466
2494
|
/**
|
|
2467
2495
|
* Renders a floating label for the DateTimePicker.
|
|
2468
2496
|
*/
|
|
2469
|
-
label?:
|
|
2497
|
+
label?: default_3.ReactNode;
|
|
2470
2498
|
/**
|
|
2471
2499
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
2472
2500
|
* For more information, refer to the article on
|
|
@@ -2660,7 +2688,7 @@ export declare class DateTimePickerWithoutContext extends React_2.Component<Date
|
|
|
2660
2688
|
private handleValueChange;
|
|
2661
2689
|
private handleFocus;
|
|
2662
2690
|
private handleBlur;
|
|
2663
|
-
private
|
|
2691
|
+
private handleClick;
|
|
2664
2692
|
private handleIconMouseDown;
|
|
2665
2693
|
private handleKeyDown;
|
|
2666
2694
|
private dateInputElement;
|
|
@@ -3928,12 +3956,21 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
|
|
|
3928
3956
|
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
3929
3957
|
/**
|
|
3930
3958
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
3959
|
+
*
|
|
3960
|
+
* @default `false`
|
|
3931
3961
|
*/
|
|
3932
3962
|
adaptive?: boolean;
|
|
3933
3963
|
/**
|
|
3934
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
3964
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
3965
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
3966
|
+
* If not provided, the title will be the same as the label.
|
|
3935
3967
|
*/
|
|
3936
3968
|
adaptiveTitle?: string;
|
|
3969
|
+
/**
|
|
3970
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
3971
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
3972
|
+
*/
|
|
3973
|
+
adaptiveSubtitle?: string;
|
|
3937
3974
|
/**
|
|
3938
3975
|
* @hidden
|
|
3939
3976
|
*/
|
|
@@ -4026,11 +4063,11 @@ export declare interface TimePickerSettings {
|
|
|
4026
4063
|
/**
|
|
4027
4064
|
* Fires each time any of the TimePicker elements gets blurred.
|
|
4028
4065
|
*/
|
|
4029
|
-
onBlur?: (event:
|
|
4066
|
+
onBlur?: (event: default_3.FocusEvent<HTMLDivElement>) => void;
|
|
4030
4067
|
/**
|
|
4031
4068
|
* Fires each time the user focuses any of the TimePicker elements.
|
|
4032
4069
|
*/
|
|
4033
|
-
onFocus?: (event:
|
|
4070
|
+
onFocus?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
4034
4071
|
/**
|
|
4035
4072
|
* Configures the popup options of the TimePicker.
|
|
4036
4073
|
*
|
|
@@ -4070,16 +4107,16 @@ export declare interface TimePickerSettings {
|
|
|
4070
4107
|
* Enables the customization or the override of the default Popup which is rendered by the TimePicker
|
|
4071
4108
|
* ([see example]({% slug custom_rendering_timepicker %}#toc-customizing-the-popup)).
|
|
4072
4109
|
*/
|
|
4073
|
-
popup?:
|
|
4110
|
+
popup?: default_3.ComponentType<PopupProps>;
|
|
4074
4111
|
/**
|
|
4075
4112
|
* Enables the customization or the override of the default DateInput which is rendered by the TimePicker
|
|
4076
4113
|
* ([see example]({% slug custom_rendering_timepicker %}#toc-customizing-the-dateinput)).
|
|
4077
4114
|
*/
|
|
4078
|
-
dateInput?:
|
|
4115
|
+
dateInput?: default_3.ComponentType<DateInputProps>;
|
|
4079
4116
|
/**
|
|
4080
4117
|
* Renders a floating label for the TimePicker.
|
|
4081
4118
|
*/
|
|
4082
|
-
label?:
|
|
4119
|
+
label?: default_3.ReactNode;
|
|
4083
4120
|
/**
|
|
4084
4121
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
4085
4122
|
* For more information, refer to the article on
|
|
@@ -4286,7 +4323,7 @@ export declare class TimePickerWithoutContext extends React_2.Component<TimePick
|
|
|
4286
4323
|
private handleFocus;
|
|
4287
4324
|
private handleBlur;
|
|
4288
4325
|
private handleValueReject;
|
|
4289
|
-
private
|
|
4326
|
+
private handleClick;
|
|
4290
4327
|
private handleIconMouseDown;
|
|
4291
4328
|
private handleKeyDown;
|
|
4292
4329
|
private calculateMedia;
|
package/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { DateFormatPart } from '@progress/kendo-react-intl';
|
|
|
15
15
|
import { DateFormatPart as DateFormatPart_2 } from '@progress/kendo-intl';
|
|
16
16
|
import { DateInputsClassStructure } from '@progress/kendo-react-common';
|
|
17
17
|
import { default as default_2 } from 'prop-types';
|
|
18
|
+
import { default as default_3 } from 'react';
|
|
18
19
|
import { FormComponent } from '@progress/kendo-react-common';
|
|
19
20
|
import { FormComponentProps } from '@progress/kendo-react-common';
|
|
20
21
|
import { FormComponentValidity } from '@progress/kendo-react-common';
|
|
@@ -1161,7 +1162,7 @@ export declare interface DateInputSettings {
|
|
|
1161
1162
|
/**
|
|
1162
1163
|
* Renders a floating label for the DateInput.
|
|
1163
1164
|
*/
|
|
1164
|
-
label?:
|
|
1165
|
+
label?: default_3.ReactNode;
|
|
1165
1166
|
/**
|
|
1166
1167
|
* Sets the `id` of the `input` DOM element.
|
|
1167
1168
|
*/
|
|
@@ -1407,12 +1408,21 @@ export declare interface DatePickerProps extends DatePickerSettings, FormCompone
|
|
|
1407
1408
|
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
1408
1409
|
/**
|
|
1409
1410
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
1411
|
+
*
|
|
1412
|
+
* @default `false`
|
|
1410
1413
|
*/
|
|
1411
1414
|
adaptive?: boolean;
|
|
1412
1415
|
/**
|
|
1413
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
1416
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
1417
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1418
|
+
* If not provided, the title will be the same as the label.
|
|
1414
1419
|
*/
|
|
1415
1420
|
adaptiveTitle?: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
1423
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1424
|
+
*/
|
|
1425
|
+
adaptiveSubtitle?: string;
|
|
1416
1426
|
/**
|
|
1417
1427
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DatePicker. (Defaults to `false`)
|
|
1418
1428
|
*/
|
|
@@ -1475,7 +1485,7 @@ export declare interface DatePickerSettings {
|
|
|
1475
1485
|
/**
|
|
1476
1486
|
* @deprecated The `DatePicker` no longer renders a `wrapper` around the DatePicker.
|
|
1477
1487
|
*/
|
|
1478
|
-
pickerWrap?:
|
|
1488
|
+
pickerWrap?: default_3.ComponentType<PickerWrapProps>;
|
|
1479
1489
|
/**
|
|
1480
1490
|
* Enables the customization or the override of the default Toggle button which is rendered by the DatePicker
|
|
1481
1491
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-toggle-button)).
|
|
@@ -1484,7 +1494,7 @@ export declare interface DatePickerSettings {
|
|
|
1484
1494
|
* <DatePicker toggleButton={CustomToggleButton} />
|
|
1485
1495
|
* ```
|
|
1486
1496
|
*/
|
|
1487
|
-
toggleButton?:
|
|
1497
|
+
toggleButton?: default_3.ComponentType<ToggleButtonProps>;
|
|
1488
1498
|
/**
|
|
1489
1499
|
* Enables the customization or the override of the default Calendar which is rendered by the DatePicker
|
|
1490
1500
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-calendar)).
|
|
@@ -1493,7 +1503,7 @@ export declare interface DatePickerSettings {
|
|
|
1493
1503
|
* <DatePicker calendar={CustomCalendar} />
|
|
1494
1504
|
* ```
|
|
1495
1505
|
*/
|
|
1496
|
-
calendar?:
|
|
1506
|
+
calendar?: default_3.ComponentType<CalendarProps<any>> | default_3.ComponentType<MultiViewCalendarProps<any>>;
|
|
1497
1507
|
/**
|
|
1498
1508
|
* Enables the customization or the override of the default Popup which is rendered by the DatePicker
|
|
1499
1509
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-popup)).
|
|
@@ -1502,7 +1512,7 @@ export declare interface DatePickerSettings {
|
|
|
1502
1512
|
* <DatePicker popup={CustomPopup} />
|
|
1503
1513
|
* ```
|
|
1504
1514
|
*/
|
|
1505
|
-
popup?:
|
|
1515
|
+
popup?: default_3.ComponentType<PopupProps>;
|
|
1506
1516
|
/**
|
|
1507
1517
|
* Enables the customization or the override of the default DateInput which is rendered by the DatePicker
|
|
1508
1518
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-dateinput)).
|
|
@@ -1511,7 +1521,7 @@ export declare interface DatePickerSettings {
|
|
|
1511
1521
|
* <DatePicker dateInput={CustomDateInput} />
|
|
1512
1522
|
* ```
|
|
1513
1523
|
*/
|
|
1514
|
-
dateInput?:
|
|
1524
|
+
dateInput?: default_3.ComponentType<DateInputProps<any>>;
|
|
1515
1525
|
/**
|
|
1516
1526
|
* Sets the `className` of the DatePicker.
|
|
1517
1527
|
* Example usage of the `className` property:
|
|
@@ -1624,7 +1634,7 @@ export declare interface DatePickerSettings {
|
|
|
1624
1634
|
* <DatePicker onBlur={(event) => console.log('Blur event:', event)} />
|
|
1625
1635
|
* ```
|
|
1626
1636
|
*/
|
|
1627
|
-
onBlur?: (event:
|
|
1637
|
+
onBlur?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
1628
1638
|
/**
|
|
1629
1639
|
* Fires each time the user focuses any of the DatePicker elements.
|
|
1630
1640
|
* Example usage of the `onFocus` property:
|
|
@@ -1632,7 +1642,7 @@ export declare interface DatePickerSettings {
|
|
|
1632
1642
|
* <DatePicker onFocus={(event) => console.log('Focus event:', event)} />
|
|
1633
1643
|
* ```
|
|
1634
1644
|
*/
|
|
1635
|
-
onFocus?: (event:
|
|
1645
|
+
onFocus?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
1636
1646
|
/**
|
|
1637
1647
|
* Configures the popup options of the DatePicker.
|
|
1638
1648
|
*
|
|
@@ -1693,7 +1703,7 @@ export declare interface DatePickerSettings {
|
|
|
1693
1703
|
* <DatePicker label="Date Picker Label" />
|
|
1694
1704
|
* ```
|
|
1695
1705
|
*/
|
|
1696
|
-
label?:
|
|
1706
|
+
label?: default_3.ReactNode;
|
|
1697
1707
|
/**
|
|
1698
1708
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
1699
1709
|
* For more information, refer to the article on
|
|
@@ -1825,12 +1835,21 @@ export declare interface DateRangePickerProps extends DateRangePickerSettings {
|
|
|
1825
1835
|
value?: SelectionRange;
|
|
1826
1836
|
/**
|
|
1827
1837
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
1838
|
+
*
|
|
1839
|
+
* @default `false`
|
|
1828
1840
|
*/
|
|
1829
1841
|
adaptive?: boolean;
|
|
1830
1842
|
/**
|
|
1831
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
1843
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
1844
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1845
|
+
* If not provided, the title will be the same as the label.
|
|
1832
1846
|
*/
|
|
1833
1847
|
adaptiveTitle?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
1850
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
1851
|
+
*/
|
|
1852
|
+
adaptiveSubtitle?: string;
|
|
1834
1853
|
/**
|
|
1835
1854
|
* If `clearButton` is set to `true`, the DateRangePicker renders a button next to the start and end date values. Clicking this button resets the value of the date and triggers the `change` event.
|
|
1836
1855
|
*/
|
|
@@ -2286,12 +2305,21 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
|
|
|
2286
2305
|
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
2287
2306
|
/**
|
|
2288
2307
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
2308
|
+
*
|
|
2309
|
+
* @default `false`
|
|
2289
2310
|
*/
|
|
2290
2311
|
adaptive?: boolean;
|
|
2291
2312
|
/**
|
|
2292
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
2313
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
2314
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
2315
|
+
* If not provided, the title will be the same as the label.
|
|
2293
2316
|
*/
|
|
2294
2317
|
adaptiveTitle?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
2320
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
2321
|
+
*/
|
|
2322
|
+
adaptiveSubtitle?: string;
|
|
2295
2323
|
/**
|
|
2296
2324
|
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateTimePicker. (Defaults to `false`)
|
|
2297
2325
|
*/
|
|
@@ -2347,17 +2375,17 @@ export declare interface DateTimePickerSettings {
|
|
|
2347
2375
|
* Enables the customization or the override of the default Calendar which is rendered by the DateTimePicker
|
|
2348
2376
|
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-calendar)).
|
|
2349
2377
|
*/
|
|
2350
|
-
calendar?:
|
|
2378
|
+
calendar?: default_3.ComponentType<CalendarProps>;
|
|
2351
2379
|
/**
|
|
2352
2380
|
* Enables the customization or the override of the default Popup which is rendered by the DateTimePicker
|
|
2353
2381
|
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-popup)).
|
|
2354
2382
|
*/
|
|
2355
|
-
popup?:
|
|
2383
|
+
popup?: default_3.ComponentType<PopupProps>;
|
|
2356
2384
|
/**
|
|
2357
2385
|
* Enables the customization or the override of the default DateInput which is rendered by the DateTimePicker
|
|
2358
2386
|
* ([see example]({% slug custom_rendering_datetimepicker %}#toc-customizing-the-dateinput)).
|
|
2359
2387
|
*/
|
|
2360
|
-
dateInput?:
|
|
2388
|
+
dateInput?: default_3.ComponentType<DateInputProps>;
|
|
2361
2389
|
/**
|
|
2362
2390
|
* Sets the `className` of the DateTimePicker.
|
|
2363
2391
|
*/
|
|
@@ -2432,11 +2460,11 @@ export declare interface DateTimePickerSettings {
|
|
|
2432
2460
|
/**
|
|
2433
2461
|
* Fires each time any of the DateTimePicker elements gets blurred.
|
|
2434
2462
|
*/
|
|
2435
|
-
onBlur?: (event:
|
|
2463
|
+
onBlur?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
2436
2464
|
/**
|
|
2437
2465
|
* Fires each time the user focuses any of the DateTimePicker elements.
|
|
2438
2466
|
*/
|
|
2439
|
-
onFocus?: (event:
|
|
2467
|
+
onFocus?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
2440
2468
|
/**
|
|
2441
2469
|
* Specifies if the popup will be displayed
|
|
2442
2470
|
* ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
|
|
@@ -2466,7 +2494,7 @@ export declare interface DateTimePickerSettings {
|
|
|
2466
2494
|
/**
|
|
2467
2495
|
* Renders a floating label for the DateTimePicker.
|
|
2468
2496
|
*/
|
|
2469
|
-
label?:
|
|
2497
|
+
label?: default_3.ReactNode;
|
|
2470
2498
|
/**
|
|
2471
2499
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
2472
2500
|
* For more information, refer to the article on
|
|
@@ -2660,7 +2688,7 @@ export declare class DateTimePickerWithoutContext extends React_2.Component<Date
|
|
|
2660
2688
|
private handleValueChange;
|
|
2661
2689
|
private handleFocus;
|
|
2662
2690
|
private handleBlur;
|
|
2663
|
-
private
|
|
2691
|
+
private handleClick;
|
|
2664
2692
|
private handleIconMouseDown;
|
|
2665
2693
|
private handleKeyDown;
|
|
2666
2694
|
private dateInputElement;
|
|
@@ -3928,12 +3956,21 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
|
|
|
3928
3956
|
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
3929
3957
|
/**
|
|
3930
3958
|
* Providing different rendering of the popup element based on the screen dimensions.
|
|
3959
|
+
*
|
|
3960
|
+
* @default `false`
|
|
3931
3961
|
*/
|
|
3932
3962
|
adaptive?: boolean;
|
|
3933
3963
|
/**
|
|
3934
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
3964
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
3965
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
3966
|
+
* If not provided, the title will be the same as the label.
|
|
3935
3967
|
*/
|
|
3936
3968
|
adaptiveTitle?: string;
|
|
3969
|
+
/**
|
|
3970
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
3971
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
3972
|
+
*/
|
|
3973
|
+
adaptiveSubtitle?: string;
|
|
3937
3974
|
/**
|
|
3938
3975
|
* @hidden
|
|
3939
3976
|
*/
|
|
@@ -4026,11 +4063,11 @@ export declare interface TimePickerSettings {
|
|
|
4026
4063
|
/**
|
|
4027
4064
|
* Fires each time any of the TimePicker elements gets blurred.
|
|
4028
4065
|
*/
|
|
4029
|
-
onBlur?: (event:
|
|
4066
|
+
onBlur?: (event: default_3.FocusEvent<HTMLDivElement>) => void;
|
|
4030
4067
|
/**
|
|
4031
4068
|
* Fires each time the user focuses any of the TimePicker elements.
|
|
4032
4069
|
*/
|
|
4033
|
-
onFocus?: (event:
|
|
4070
|
+
onFocus?: (event: default_3.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
4034
4071
|
/**
|
|
4035
4072
|
* Configures the popup options of the TimePicker.
|
|
4036
4073
|
*
|
|
@@ -4070,16 +4107,16 @@ export declare interface TimePickerSettings {
|
|
|
4070
4107
|
* Enables the customization or the override of the default Popup which is rendered by the TimePicker
|
|
4071
4108
|
* ([see example]({% slug custom_rendering_timepicker %}#toc-customizing-the-popup)).
|
|
4072
4109
|
*/
|
|
4073
|
-
popup?:
|
|
4110
|
+
popup?: default_3.ComponentType<PopupProps>;
|
|
4074
4111
|
/**
|
|
4075
4112
|
* Enables the customization or the override of the default DateInput which is rendered by the TimePicker
|
|
4076
4113
|
* ([see example]({% slug custom_rendering_timepicker %}#toc-customizing-the-dateinput)).
|
|
4077
4114
|
*/
|
|
4078
|
-
dateInput?:
|
|
4115
|
+
dateInput?: default_3.ComponentType<DateInputProps>;
|
|
4079
4116
|
/**
|
|
4080
4117
|
* Renders a floating label for the TimePicker.
|
|
4081
4118
|
*/
|
|
4082
|
-
label?:
|
|
4119
|
+
label?: default_3.ReactNode;
|
|
4083
4120
|
/**
|
|
4084
4121
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
4085
4122
|
* For more information, refer to the article on
|
|
@@ -4286,7 +4323,7 @@ export declare class TimePickerWithoutContext extends React_2.Component<TimePick
|
|
|
4286
4323
|
private handleFocus;
|
|
4287
4324
|
private handleBlur;
|
|
4288
4325
|
private handleValueReject;
|
|
4289
|
-
private
|
|
4326
|
+
private handleClick;
|
|
4290
4327
|
private handleIconMouseDown;
|
|
4291
4328
|
private handleKeyDown;
|
|
4292
4329
|
private calculateMedia;
|
package/package-metadata.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 e={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1747639970,version:"11.0.0-develop.20",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "KendoReact",
|
|
11
11
|
productCode: "KENDOUIREACT",
|
|
12
12
|
productCodes: ["KENDOUIREACT"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "11.0.0-develop.
|
|
13
|
+
publishDate: 1747639970,
|
|
14
|
+
version: "11.0.0-develop.20",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dateinputs",
|
|
3
|
-
"version": "11.0.0-develop.
|
|
3
|
+
"version": "11.0.0-develop.20",
|
|
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",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-date-math": "^1.4.0",
|
|
29
|
-
"@progress/kendo-licensing": "^1.
|
|
29
|
+
"@progress/kendo-licensing": "^1.6.0",
|
|
30
30
|
"@progress/kendo-dateinputs-common": "^0.4.0",
|
|
31
|
-
"@progress/kendo-react-buttons": "11.0.0-develop.
|
|
32
|
-
"@progress/kendo-react-common": "11.0.0-develop.
|
|
33
|
-
"@progress/kendo-react-intl": "11.0.0-develop.
|
|
34
|
-
"@progress/kendo-react-labels": "11.0.0-develop.
|
|
35
|
-
"@progress/kendo-react-layout": "11.0.0-develop.
|
|
36
|
-
"@progress/kendo-react-popup": "11.0.0-develop.
|
|
31
|
+
"@progress/kendo-react-buttons": "11.0.0-develop.20",
|
|
32
|
+
"@progress/kendo-react-common": "11.0.0-develop.20",
|
|
33
|
+
"@progress/kendo-react-intl": "11.0.0-develop.20",
|
|
34
|
+
"@progress/kendo-react-labels": "11.0.0-develop.20",
|
|
35
|
+
"@progress/kendo-react-layout": "11.0.0-develop.20",
|
|
36
|
+
"@progress/kendo-react-popup": "11.0.0-develop.20",
|
|
37
37
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
38
38
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
39
39
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -66,10 +66,30 @@
|
|
|
66
66
|
"@progress": {
|
|
67
67
|
"friendlyName": "Date Inputs",
|
|
68
68
|
"framework": "KendoReact",
|
|
69
|
+
"migrations": {
|
|
70
|
+
"options": {
|
|
71
|
+
"parser": "tsx",
|
|
72
|
+
"pattern": "*.{js,jsx,ts,tsx}"
|
|
73
|
+
},
|
|
74
|
+
"codemods": {
|
|
75
|
+
"11": [
|
|
76
|
+
{
|
|
77
|
+
"description": "Migrate the DateInput type to the new DateInputHandle type.",
|
|
78
|
+
"file": "codemods/v11/dateinput-handle.js",
|
|
79
|
+
"prompt": true
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"description": "Migrate the DatePicker type to the new DatePickerHandle type.",
|
|
83
|
+
"file": "codemods/v11/datepicker-handle.js",
|
|
84
|
+
"prompt": true
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
69
89
|
"package": {
|
|
70
90
|
"productName": "KendoReact",
|
|
71
91
|
"productCode": "KENDOUIREACT",
|
|
72
|
-
"publishDate":
|
|
92
|
+
"publishDate": 1747639970,
|
|
73
93
|
"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"
|
|
74
94
|
}
|
|
75
95
|
},
|