@progress/kendo-react-dateinputs 8.3.0-develop.1 → 8.3.0-develop.10

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.
Files changed (49) hide show
  1. package/calendar/components/Calendar.js +2 -2
  2. package/calendar/components/Calendar.mjs +123 -115
  3. package/calendar/components/CalendarCell.js +1 -1
  4. package/calendar/components/CalendarCell.mjs +37 -39
  5. package/calendar/components/CalendarHeaderTitle.js +1 -1
  6. package/calendar/components/CalendarHeaderTitle.mjs +6 -12
  7. package/calendar/components/CalendarNavigationItem.js +1 -1
  8. package/calendar/components/CalendarNavigationItem.mjs +15 -19
  9. package/calendar/components/CalendarWeekCell.js +1 -1
  10. package/calendar/components/CalendarWeekCell.mjs +10 -15
  11. package/calendar/components/Header.js +1 -1
  12. package/calendar/components/Header.mjs +30 -40
  13. package/calendar/components/Navigation.js +1 -1
  14. package/calendar/components/Navigation.mjs +52 -49
  15. package/calendar/components/TodayCommand.js +1 -1
  16. package/calendar/components/TodayCommand.mjs +21 -25
  17. package/calendar/components/View.js +1 -1
  18. package/calendar/components/View.mjs +48 -42
  19. package/calendar/components/ViewList.js +1 -1
  20. package/calendar/components/ViewList.mjs +99 -94
  21. package/common/ClearButton.js +1 -1
  22. package/common/ClearButton.mjs +25 -31
  23. package/dateinput/DateInput.js +1 -1
  24. package/dateinput/DateInput.mjs +113 -110
  25. package/dateinput/utils.js +1 -1
  26. package/dateinput/utils.mjs +22 -23
  27. package/datepicker/DatePicker.js +1 -1
  28. package/datepicker/DatePicker.mjs +20 -14
  29. package/daterangepicker/DateRangePicker.js +1 -1
  30. package/daterangepicker/DateRangePicker.mjs +5 -5
  31. package/datetimepicker/DateTimePicker.js +1 -1
  32. package/datetimepicker/DateTimePicker.mjs +95 -90
  33. package/datetimepicker/DateTimeSelector.js +1 -1
  34. package/datetimepicker/DateTimeSelector.mjs +83 -81
  35. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  36. package/index.d.mts +41 -29
  37. package/index.d.ts +41 -29
  38. package/package-metadata.mjs +1 -1
  39. package/package.json +7 -7
  40. package/timepicker/TimeList.js +3 -3
  41. package/timepicker/TimeList.mjs +83 -81
  42. package/timepicker/TimePart.js +1 -1
  43. package/timepicker/TimePart.mjs +74 -68
  44. package/timepicker/TimePicker.js +1 -1
  45. package/timepicker/TimePicker.mjs +112 -107
  46. package/timepicker/TimeSelector.js +1 -1
  47. package/timepicker/TimeSelector.mjs +66 -59
  48. package/virtualization/Virtualization.js +1 -1
  49. package/virtualization/Virtualization.mjs +49 -48
package/index.d.mts CHANGED
@@ -9,6 +9,7 @@ import { Button } from '@progress/kendo-react-buttons';
9
9
  import { ButtonProps } from '@progress/kendo-react-buttons';
10
10
  import { DateFormatOptions } from '@progress/kendo-react-intl';
11
11
  import { DateFormatPart } from '@progress/kendo-react-intl';
12
+ import { DateInputsClassStructure } from '@progress/kendo-react-common';
12
13
  import { FormComponent } from '@progress/kendo-react-common';
13
14
  import { FormComponentProps } from '@progress/kendo-react-common';
14
15
  import { FormComponentValidity } from '@progress/kendo-react-common';
@@ -81,10 +82,6 @@ export declare class CalendarCell extends React_2.Component<CalendarCellProps> {
81
82
  * @hidden
82
83
  */
83
84
  shouldComponentUpdate(nextProps: CalendarCellProps): boolean;
84
- /**
85
- * @return
86
- * Returns a `<td />` element with a `<span className="k-link" />` inside to apply the styles. The text inside is the [`formattedValue`]({% slug api_dateinputs_calendarcellprops %}#toc-formattedvalue) of the `cell`.
87
- */
88
85
  render(): JSX_2.Element;
89
86
  private handleClick;
90
87
  private handleMouseEnter;
@@ -104,6 +101,10 @@ export declare interface CalendarCellProps extends CellContext {
104
101
  onMouseEnter?: (value: Date, event?: React_2.MouseEvent<any>) => void;
105
102
  onMouseLeave?: (value: Date, event?: React_2.MouseEvent<any>) => void;
106
103
  [aria: string]: any;
104
+ /**
105
+ * @hidden
106
+ */
107
+ unstyled?: DateInputsClassStructure;
107
108
  }
108
109
 
109
110
  /**
@@ -156,13 +157,7 @@ declare interface CalendarHeaderProps {
156
157
  * * [Customizing the title for the current Calendar view]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)
157
158
  * * [Customizing the title for the current MultiViewCalendar view]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)
158
159
  */
159
- export declare class CalendarHeaderTitle extends React_2.PureComponent<CalendarHeaderTitleProps, {}> {
160
- /**
161
- * @return
162
- * Returns a `<span />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child.
163
- */
164
- render(): JSX_2.Element;
165
- }
160
+ export declare const CalendarHeaderTitle: (props: CalendarHeaderTitleProps) => JSX_2.Element;
166
161
 
167
162
  /**
168
163
  * The props which will be received by the custom header title of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-headertitle).
@@ -179,16 +174,11 @@ export declare interface CalendarHeaderTitleProps {
179
174
  }
180
175
 
181
176
  /**
182
- * The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar. Also used as a custom navigation item for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem) ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
177
+ * The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar.
178
+ * Also used as a custom navigation item for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem)
179
+ * ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
183
180
  */
184
- export declare class CalendarNavigationItem extends React_2.Component<CalendarNavigationItemProps> {
185
- /**
186
- * @return
187
- * Returns a `<li />` element with a `<span />` inside. The text inside represents the [`value`]({% slug api_dateinputs_calendarnavigationitemprops %}#toc-value) of the `navigationItem`.
188
- */
189
- render(): JSX_2.Element;
190
- private handleClick;
191
- }
181
+ export declare const CalendarNavigationItem: (props: CalendarNavigationItemProps) => JSX_2.Element;
192
182
 
193
183
  /**
194
184
  * The props which will be received by the custom navigation item of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem).
@@ -229,6 +219,10 @@ export declare interface CalendarProps<T = any> extends CalendarSettings {
229
219
  * @hidden
230
220
  */
231
221
  mobileMode?: boolean;
222
+ /**
223
+ * @hidden
224
+ */
225
+ unstyled?: DateInputsClassStructure;
232
226
  }
233
227
 
234
228
  /**
@@ -377,14 +371,7 @@ export declare enum CalendarViewEnum {
377
371
  * * [Customizing week-column cells in the Calendar]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)
378
372
  * * [Customizing week-column cells in the MultiViewCalendar]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-week-column)
379
373
  */
380
- export declare class CalendarWeekCell extends React_2.Component<CalendarWeekCellProps> {
381
- /**
382
- * @return
383
- * Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child.
384
- */
385
- private handleClick;
386
- render(): JSX_2.Element;
387
- }
374
+ export declare const CalendarWeekCell: (props: CalendarWeekCellProps) => JSX_2.Element;
388
375
 
389
376
  /**
390
377
  * The props which will be received by the custom week cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-weekcell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-weekcell).
@@ -398,6 +385,10 @@ export declare interface CalendarWeekCellProps {
398
385
  firstDate: Date;
399
386
  weekDays?: Date[];
400
387
  onClick?: (firstDate: Date, value: Date[], event: React_2.MouseEvent<HTMLTableCellElement>) => void;
388
+ /**
389
+ * @hidden
390
+ */
391
+ unstyled?: DateInputsClassStructure;
401
392
  }
402
393
 
403
394
  /** @hidden */
@@ -741,6 +732,10 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
741
732
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateInput. (Defaults to `false`)
742
733
  */
743
734
  autoFocus?: boolean;
735
+ /**
736
+ * @hidden
737
+ */
738
+ unstyled?: DateInputsClassStructure;
744
739
  }
745
740
 
746
741
  /**
@@ -878,7 +873,7 @@ export declare const dateInputsMessages: {
878
873
  "datetimepicker.toggleDateTimeSelector": string;
879
874
  };
880
875
 
881
- declare interface DateInputsPopupSettings {
876
+ declare interface DateInputsPopupSettings extends PopupProps {
882
877
  /**
883
878
  * Controls the popup animation. By default, the open and close animations are enabled.
884
879
  */
@@ -1606,6 +1601,8 @@ export declare class DatePickerWithoutContext extends React_2.Component<DatePick
1606
1601
  private handleValueChange;
1607
1602
  private handleFocus;
1608
1603
  private handleBlur;
1604
+ togglePopup: () => void;
1605
+ private handleMouseDownOutside;
1609
1606
  private handleIconClick;
1610
1607
  private handleIconMouseDown;
1611
1608
  private handleKeyDown;
@@ -2251,6 +2248,10 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
2251
2248
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateTimePicker. (Defaults to `false`)
2252
2249
  */
2253
2250
  autoFocus?: boolean;
2251
+ /**
2252
+ * @hidden
2253
+ */
2254
+ unstyled?: DateInputsClassStructure;
2254
2255
  }
2255
2256
 
2256
2257
  /**
@@ -2789,6 +2790,7 @@ declare interface HeaderProps {
2789
2790
  header?: React_2.ComponentType<CalendarHeaderProps>;
2790
2791
  commands?: React_2.ReactNode;
2791
2792
  verticalView?: boolean;
2793
+ unstyled?: DateInputsClassStructure;
2792
2794
  }
2793
2795
 
2794
2796
  /**
@@ -3580,6 +3582,7 @@ declare interface TimeListProps {
3580
3582
  disabled?: boolean;
3581
3583
  show?: boolean;
3582
3584
  mobileMode?: boolean;
3585
+ unstyled?: DateInputsClassStructure;
3583
3586
  }
3584
3587
 
3585
3588
  /**
@@ -3693,6 +3696,7 @@ declare interface TimePartProps {
3693
3696
  onNowKeyDown?: (event: React_2.KeyboardEvent) => void;
3694
3697
  show?: boolean;
3695
3698
  mobileMode?: boolean;
3699
+ unstyled?: DateInputsClassStructure;
3696
3700
  }
3697
3701
 
3698
3702
  /**
@@ -3852,6 +3856,10 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
3852
3856
  * Specifies the text that is rendered as title in the adaptive popup.
3853
3857
  */
3854
3858
  adaptiveTitle?: string;
3859
+ /**
3860
+ * @hidden
3861
+ */
3862
+ unstyled?: DateInputsClassStructure;
3855
3863
  }
3856
3864
 
3857
3865
  /**
@@ -4296,6 +4304,7 @@ declare interface TimeSelectorProps {
4296
4304
  show?: boolean;
4297
4305
  footer?: boolean;
4298
4306
  mobileMode?: boolean;
4307
+ unstyled?: DateInputsClassStructure;
4299
4308
  }
4300
4309
 
4301
4310
  /**
@@ -4339,6 +4348,7 @@ declare interface TodayCommandProps {
4339
4348
  onClick?: (event: HeaderEventArguments) => void;
4340
4349
  disabled?: boolean;
4341
4350
  tabIndex?: number;
4351
+ unstyled?: DateInputsClassStructure;
4342
4352
  }
4343
4353
 
4344
4354
  /**
@@ -4465,6 +4475,7 @@ declare interface ViewListProps {
4465
4475
  header?: React_2.ComponentType<CalendarHeaderProps>;
4466
4476
  shouldScroll?: () => boolean;
4467
4477
  tabIndex?: number;
4478
+ unstyled?: DateInputsClassStructure;
4468
4479
  }
4469
4480
 
4470
4481
  /**
@@ -4591,6 +4602,7 @@ declare interface VirtualizationProps {
4591
4602
  total: number;
4592
4603
  role?: string;
4593
4604
  children?: React_2.ReactNode;
4605
+ unstyled?: DateInputsClassStructure;
4594
4606
  }
4595
4607
 
4596
4608
  /**
package/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { Button } from '@progress/kendo-react-buttons';
9
9
  import { ButtonProps } from '@progress/kendo-react-buttons';
10
10
  import { DateFormatOptions } from '@progress/kendo-react-intl';
11
11
  import { DateFormatPart } from '@progress/kendo-react-intl';
12
+ import { DateInputsClassStructure } from '@progress/kendo-react-common';
12
13
  import { FormComponent } from '@progress/kendo-react-common';
13
14
  import { FormComponentProps } from '@progress/kendo-react-common';
14
15
  import { FormComponentValidity } from '@progress/kendo-react-common';
@@ -81,10 +82,6 @@ export declare class CalendarCell extends React_2.Component<CalendarCellProps> {
81
82
  * @hidden
82
83
  */
83
84
  shouldComponentUpdate(nextProps: CalendarCellProps): boolean;
84
- /**
85
- * @return
86
- * Returns a `<td />` element with a `<span className="k-link" />` inside to apply the styles. The text inside is the [`formattedValue`]({% slug api_dateinputs_calendarcellprops %}#toc-formattedvalue) of the `cell`.
87
- */
88
85
  render(): JSX_2.Element;
89
86
  private handleClick;
90
87
  private handleMouseEnter;
@@ -104,6 +101,10 @@ export declare interface CalendarCellProps extends CellContext {
104
101
  onMouseEnter?: (value: Date, event?: React_2.MouseEvent<any>) => void;
105
102
  onMouseLeave?: (value: Date, event?: React_2.MouseEvent<any>) => void;
106
103
  [aria: string]: any;
104
+ /**
105
+ * @hidden
106
+ */
107
+ unstyled?: DateInputsClassStructure;
107
108
  }
108
109
 
109
110
  /**
@@ -156,13 +157,7 @@ declare interface CalendarHeaderProps {
156
157
  * * [Customizing the title for the current Calendar view]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)
157
158
  * * [Customizing the title for the current MultiViewCalendar view]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)
158
159
  */
159
- export declare class CalendarHeaderTitle extends React_2.PureComponent<CalendarHeaderTitleProps, {}> {
160
- /**
161
- * @return
162
- * Returns a `<span />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child.
163
- */
164
- render(): JSX_2.Element;
165
- }
160
+ export declare const CalendarHeaderTitle: (props: CalendarHeaderTitleProps) => JSX_2.Element;
166
161
 
167
162
  /**
168
163
  * The props which will be received by the custom header title of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-headertitle).
@@ -179,16 +174,11 @@ export declare interface CalendarHeaderTitleProps {
179
174
  }
180
175
 
181
176
  /**
182
- * The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar. Also used as a custom navigation item for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem) ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
177
+ * The `CalendarNavigationItem` component is internally used for rendering the items in the side navigation of the Calendar.
178
+ * Also used as a custom navigation item for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem)
179
+ * ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
183
180
  */
184
- export declare class CalendarNavigationItem extends React_2.Component<CalendarNavigationItemProps> {
185
- /**
186
- * @return
187
- * Returns a `<li />` element with a `<span />` inside. The text inside represents the [`value`]({% slug api_dateinputs_calendarnavigationitemprops %}#toc-value) of the `navigationItem`.
188
- */
189
- render(): JSX_2.Element;
190
- private handleClick;
191
- }
181
+ export declare const CalendarNavigationItem: (props: CalendarNavigationItemProps) => JSX_2.Element;
192
182
 
193
183
  /**
194
184
  * The props which will be received by the custom navigation item of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-navigationitem).
@@ -229,6 +219,10 @@ export declare interface CalendarProps<T = any> extends CalendarSettings {
229
219
  * @hidden
230
220
  */
231
221
  mobileMode?: boolean;
222
+ /**
223
+ * @hidden
224
+ */
225
+ unstyled?: DateInputsClassStructure;
232
226
  }
233
227
 
234
228
  /**
@@ -377,14 +371,7 @@ export declare enum CalendarViewEnum {
377
371
  * * [Customizing week-column cells in the Calendar]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)
378
372
  * * [Customizing week-column cells in the MultiViewCalendar]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-week-column)
379
373
  */
380
- export declare class CalendarWeekCell extends React_2.Component<CalendarWeekCellProps> {
381
- /**
382
- * @return
383
- * Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child.
384
- */
385
- private handleClick;
386
- render(): JSX_2.Element;
387
- }
374
+ export declare const CalendarWeekCell: (props: CalendarWeekCellProps) => JSX_2.Element;
388
375
 
389
376
  /**
390
377
  * The props which will be received by the custom week cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-weekcell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-weekcell).
@@ -398,6 +385,10 @@ export declare interface CalendarWeekCellProps {
398
385
  firstDate: Date;
399
386
  weekDays?: Date[];
400
387
  onClick?: (firstDate: Date, value: Date[], event: React_2.MouseEvent<HTMLTableCellElement>) => void;
388
+ /**
389
+ * @hidden
390
+ */
391
+ unstyled?: DateInputsClassStructure;
401
392
  }
402
393
 
403
394
  /** @hidden */
@@ -741,6 +732,10 @@ export declare interface DateInputProps<T extends DateInput = any> extends FormC
741
732
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateInput. (Defaults to `false`)
742
733
  */
743
734
  autoFocus?: boolean;
735
+ /**
736
+ * @hidden
737
+ */
738
+ unstyled?: DateInputsClassStructure;
744
739
  }
745
740
 
746
741
  /**
@@ -878,7 +873,7 @@ export declare const dateInputsMessages: {
878
873
  "datetimepicker.toggleDateTimeSelector": string;
879
874
  };
880
875
 
881
- declare interface DateInputsPopupSettings {
876
+ declare interface DateInputsPopupSettings extends PopupProps {
882
877
  /**
883
878
  * Controls the popup animation. By default, the open and close animations are enabled.
884
879
  */
@@ -1606,6 +1601,8 @@ export declare class DatePickerWithoutContext extends React_2.Component<DatePick
1606
1601
  private handleValueChange;
1607
1602
  private handleFocus;
1608
1603
  private handleBlur;
1604
+ togglePopup: () => void;
1605
+ private handleMouseDownOutside;
1609
1606
  private handleIconClick;
1610
1607
  private handleIconMouseDown;
1611
1608
  private handleKeyDown;
@@ -2251,6 +2248,10 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
2251
2248
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the DateTimePicker. (Defaults to `false`)
2252
2249
  */
2253
2250
  autoFocus?: boolean;
2251
+ /**
2252
+ * @hidden
2253
+ */
2254
+ unstyled?: DateInputsClassStructure;
2254
2255
  }
2255
2256
 
2256
2257
  /**
@@ -2789,6 +2790,7 @@ declare interface HeaderProps {
2789
2790
  header?: React_2.ComponentType<CalendarHeaderProps>;
2790
2791
  commands?: React_2.ReactNode;
2791
2792
  verticalView?: boolean;
2793
+ unstyled?: DateInputsClassStructure;
2792
2794
  }
2793
2795
 
2794
2796
  /**
@@ -3580,6 +3582,7 @@ declare interface TimeListProps {
3580
3582
  disabled?: boolean;
3581
3583
  show?: boolean;
3582
3584
  mobileMode?: boolean;
3585
+ unstyled?: DateInputsClassStructure;
3583
3586
  }
3584
3587
 
3585
3588
  /**
@@ -3693,6 +3696,7 @@ declare interface TimePartProps {
3693
3696
  onNowKeyDown?: (event: React_2.KeyboardEvent) => void;
3694
3697
  show?: boolean;
3695
3698
  mobileMode?: boolean;
3699
+ unstyled?: DateInputsClassStructure;
3696
3700
  }
3697
3701
 
3698
3702
  /**
@@ -3852,6 +3856,10 @@ export declare interface TimePickerProps extends TimePickerSettings, FormCompone
3852
3856
  * Specifies the text that is rendered as title in the adaptive popup.
3853
3857
  */
3854
3858
  adaptiveTitle?: string;
3859
+ /**
3860
+ * @hidden
3861
+ */
3862
+ unstyled?: DateInputsClassStructure;
3855
3863
  }
3856
3864
 
3857
3865
  /**
@@ -4296,6 +4304,7 @@ declare interface TimeSelectorProps {
4296
4304
  show?: boolean;
4297
4305
  footer?: boolean;
4298
4306
  mobileMode?: boolean;
4307
+ unstyled?: DateInputsClassStructure;
4299
4308
  }
4300
4309
 
4301
4310
  /**
@@ -4339,6 +4348,7 @@ declare interface TodayCommandProps {
4339
4348
  onClick?: (event: HeaderEventArguments) => void;
4340
4349
  disabled?: boolean;
4341
4350
  tabIndex?: number;
4351
+ unstyled?: DateInputsClassStructure;
4342
4352
  }
4343
4353
 
4344
4354
  /**
@@ -4465,6 +4475,7 @@ declare interface ViewListProps {
4465
4475
  header?: React_2.ComponentType<CalendarHeaderProps>;
4466
4476
  shouldScroll?: () => boolean;
4467
4477
  tabIndex?: number;
4478
+ unstyled?: DateInputsClassStructure;
4468
4479
  }
4469
4480
 
4470
4481
  /**
@@ -4591,6 +4602,7 @@ declare interface VirtualizationProps {
4591
4602
  total: number;
4592
4603
  role?: string;
4593
4604
  children?: React_2.ReactNode;
4605
+ unstyled?: DateInputsClassStructure;
4594
4606
  }
4595
4607
 
4596
4608
  /**
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-dateinputs",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1723203555,
13
+ publishDate: 1724427570,
14
14
  version: "",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dateinputs",
3
- "version": "8.3.0-develop.1",
3
+ "version": "8.3.0-develop.10",
4
4
  "description": "React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,12 +24,12 @@
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-date-math": "^1.4.0",
26
26
  "@progress/kendo-licensing": "^1.3.4",
27
- "@progress/kendo-react-buttons": "8.3.0-develop.1",
28
- "@progress/kendo-react-common": "8.3.0-develop.1",
29
- "@progress/kendo-react-intl": "8.3.0-develop.1",
30
- "@progress/kendo-react-labels": "8.3.0-develop.1",
31
- "@progress/kendo-react-layout": "8.3.0-develop.1",
32
- "@progress/kendo-react-popup": "8.3.0-develop.1",
27
+ "@progress/kendo-react-buttons": "8.3.0-develop.10",
28
+ "@progress/kendo-react-common": "8.3.0-develop.10",
29
+ "@progress/kendo-react-intl": "8.3.0-develop.10",
30
+ "@progress/kendo-react-labels": "8.3.0-develop.10",
31
+ "@progress/kendo-react-layout": "8.3.0-develop.10",
32
+ "@progress/kendo-react-popup": "8.3.0-develop.10",
33
33
  "@progress/kendo-svg-icons": "^3.0.0",
34
34
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
35
35
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
@@ -5,10 +5,10 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),c=require("prop-types"),v=require("@progress/kendo-date-math"),a=require("@progress/kendo-react-common"),S=require("@progress/kendo-react-intl"),b=require("../virtualization/Virtualization.js"),u=require("./models/TimePart.js"),x=require("./services/DayPeriodService.js"),y=require("./services/DOMService.js"),I=require("./services/HoursService.js"),M=require("./services/MinutesService.js"),H=require("./services/SecondsService.js"),d=require("../utils.js");function D(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(s,e,t.get?t:{enumerable:!0,get:()=>o[e]})}}return s.default=o,Object.freeze(s)}const r=D(T),E=2,g=.05,P=100,R=0,O=9,k={[a.Keys.end]:(o,s)=>o[o.length-1],[a.Keys.home]:(o,s)=>o[0],[a.Keys.up]:(o,s)=>o[s-1],[a.Keys.down]:(o,s)=>o[s+1]},m={[u.TIME_PART.dayperiod]:x.DayPeriodService,[u.TIME_PART.hour]:I.HoursService,[u.TIME_PART.minute]:M.MinutesService,[u.TIME_PART.second]:H.SecondsService},h=class h extends r.Component{constructor(s){super(s),this.intl=null,this._element=null,this.service=null,this.virtualization=null,this.topOffset=0,this.bottomOffset=0,this.itemHeight=0,this.listHeight=0,this.topThreshold=0,this.bottomThreshold=0,this.animateToIndex=!1,this.focus=e=>{Promise.resolve().then(()=>{this.element&&this.element.focus(e)})},this.itemOffset=e=>{if(!this.virtualization||!this.service)return-1;const t=this.service.selectedIndex(this.props.value),i=this.virtualization.activeIndex(),n=this.virtualization.itemOffset(i),l=Math.abs(Math.ceil(e)-n);if(t===i&&l<E)return n;const f=t>i;return f&&l>=this.bottomThreshold||!f&&l>this.topThreshold?this.virtualization.itemOffset(i+1):n},this.calculateHeights=()=>{this.dom.didCalculate&&(this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.props.mobileMode&&(this.topOffset+=O,this.bottomOffset+=O*2),this.topThreshold=this.itemHeight*g,this.bottomThreshold=this.itemHeight*(1-g))},this.configureServices=({min:e,max:t,value:i}=this.props)=>{if(this.service){const[n,l]=this.service.limitRange(e||this.min,t||this.max,i||this.props.value);this.service.configure(this.serviceSettings({min:n,max:l}))}},this.serviceSettings=e=>{const t={boundRange:this.props.boundRange||h.defaultProps.boundRange,insertUndividedMax:!1,min:v.cloneDate(this.min),max:v.cloneDate(this.max),part:this.props.part,step:this.step},i=Object.assign({},t,e);return i.boundRange=i.part.type!=="hour"||this.props.boundRange||h.defaultProps.boundRange,i},this.handleScrollAction=({target:e,animationInProgress:t})=>{if(!(!this.virtualization||!this.service)&&e&&!t){this.animateToIndex=!1;const i=this.virtualization.itemIndex(this.itemOffset(e.scrollTop)),n=this.service.data(this.props.value)[i];this.handleChange(n)}},this.handleFocus=e=>{const{onFocus:t}=this.props;t&&t.call(void 0,e)},this.handleBlur=e=>{const{onBlur:t}=this.props;t&&t.call(void 0,e)},this.handleMouseOver=()=>{if(!this._element)return;const e=a.getActiveElement(document);document&&e!==this._element&&this.props.show&&this._element.focus({preventScroll:!0})},this.handleKeyDown=e=>{if(!this.service)return;const{keyCode:t}=e;(t===a.Keys.down||t===a.Keys.up||t===a.Keys.end||t===a.Keys.home)&&e.preventDefault();const n=(k[e.keyCode]||a.noop)(this.service.data(this.props.value),this.service.selectedIndex(this.props.value));n&&this.handleChange(n)},this.handleChange=d.debounce(e=>{if(!this.service)return;const t=this.service.apply(this.props.value,e.value);if(this.props.value.getTime()===t.getTime())return;const{onChange:i}=this.props;i&&i.call(void 0,t)},P),this.dom=new y.DOMService}get element(){return this._element}get animate(){return!!(this.props.smoothScroll&&this.animateToIndex)}get min(){return this.props.min||h.defaultProps.min}get max(){return this.props.max||h.defaultProps.max}get step(){return this.props.step!==void 0&&this.props.step!==0?Math.floor(this.props.step):h.defaultProps.step}componentDidMount(){Promise.resolve().then(()=>{this._element&&(this.dom.calculateHeights(this._element),this.forceUpdate())})}componentDidUpdate(){if(!this.virtualization||!this.service)return;const s=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](s),this.animateToIndex=!0}render(){if(!this.props.part.type||!m[this.props.part.type])return;this.calculateHeights(),this.intl=S.provideIntlService(this),this.service=new m[this.props.part.type](this.intl),this.configureServices();const s=this.service.data(this.props.value),e="translateY("+this.topOffset+"px)",t=this.service.total(this.props.value),i=r.createElement(r.Fragment,null,r.createElement("ul",{style:{transform:e,msTransform:e},className:"k-reset"},s.map((n,l)=>r.createElement("li",{key:l,className:"k-item",onClick:()=>{this.handleChange(n)}},r.createElement("span",null,n.text)))),r.createElement("div",{className:"k-scrollable-placeholder"}));return r.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:n=>{this._element=n},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?r.createElement(b.Virtualization,{bottomOffset:this.bottomOffset,children:i,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:n=>{this.virtualization=n},role:"presentation",skip:R,tabIndex:-1,take:t,topOffset:this.topOffset,total:t}):r.createElement("div",{className:"k-time-container k-content k-scrollable"},i))}};h.propTypes={id:c.number,max:c.instanceOf(Date),min:c.instanceOf(Date),part:function(s,e,t){const i=s[e];if(!i||!m[i.type])throw new Error(`
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),u=require("prop-types"),T=require("@progress/kendo-date-math"),i=require("@progress/kendo-react-common"),b=require("@progress/kendo-react-intl"),I=require("../virtualization/Virtualization.js"),p=require("./models/TimePart.js"),M=require("./services/DayPeriodService.js"),H=require("./services/DOMService.js"),D=require("./services/HoursService.js"),E=require("./services/MinutesService.js"),P=require("./services/SecondsService.js"),v=require("../utils.js");function R(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const a=R(y),_=2,O=.05,w=100,C=0,S=9,N={[i.Keys.end]:(o,n)=>o[o.length-1],[i.Keys.home]:(o,n)=>o[0],[i.Keys.up]:(o,n)=>o[n-1],[i.Keys.down]:(o,n)=>o[n+1]},g={[p.TIME_PART.dayperiod]:M.DayPeriodService,[p.TIME_PART.hour]:D.HoursService,[p.TIME_PART.minute]:E.MinutesService,[p.TIME_PART.second]:P.SecondsService},l=class l extends a.Component{constructor(n){super(n),this.intl=null,this._element=null,this.service=null,this.virtualization=null,this.topOffset=0,this.bottomOffset=0,this.itemHeight=0,this.listHeight=0,this.topThreshold=0,this.bottomThreshold=0,this.animateToIndex=!1,this.focus=e=>{Promise.resolve().then(()=>{this.element&&this.element.focus(e)})},this.itemOffset=e=>{if(!this.virtualization||!this.service)return-1;const t=this.service.selectedIndex(this.props.value),s=this.virtualization.activeIndex(),r=this.virtualization.itemOffset(s),h=Math.abs(Math.ceil(e)-r);if(t===s&&h<_)return r;const d=t>s;return d&&h>=this.bottomThreshold||!d&&h>this.topThreshold?this.virtualization.itemOffset(s+1):r},this.calculateHeights=()=>{this.dom.didCalculate&&(this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.props.mobileMode&&(this.topOffset+=S,this.bottomOffset+=S*2),this.topThreshold=this.itemHeight*O,this.bottomThreshold=this.itemHeight*(1-O))},this.configureServices=({min:e,max:t,value:s}=this.props)=>{if(this.service){const[r,h]=this.service.limitRange(e||this.min,t||this.max,s||this.props.value);this.service.configure(this.serviceSettings({min:r,max:h}))}},this.serviceSettings=e=>{const t={boundRange:this.props.boundRange||l.defaultProps.boundRange,insertUndividedMax:!1,min:T.cloneDate(this.min),max:T.cloneDate(this.max),part:this.props.part,step:this.step},s=Object.assign({},t,e);return s.boundRange=s.part.type!=="hour"||this.props.boundRange||l.defaultProps.boundRange,s},this.handleScrollAction=({target:e,animationInProgress:t})=>{if(!(!this.virtualization||!this.service)&&e&&!t){this.animateToIndex=!1;const s=this.virtualization.itemIndex(this.itemOffset(e.scrollTop)),r=this.service.data(this.props.value)[s];this.handleChange(r)}},this.handleFocus=e=>{const{onFocus:t}=this.props;t&&t.call(void 0,e)},this.handleBlur=e=>{const{onBlur:t}=this.props;t&&t.call(void 0,e)},this.handleMouseOver=()=>{if(!this._element)return;const e=i.getActiveElement(document);document&&e!==this._element&&this.props.show&&this._element.focus({preventScroll:!0})},this.handleKeyDown=e=>{if(!this.service)return;const{keyCode:t}=e;(t===i.Keys.down||t===i.Keys.up||t===i.Keys.end||t===i.Keys.home)&&e.preventDefault();const r=(N[e.keyCode]||i.noop)(this.service.data(this.props.value),this.service.selectedIndex(this.props.value));r&&this.handleChange(r)},this.handleChange=v.debounce(e=>{if(!this.service)return;const t=this.service.apply(this.props.value,e.value);if(this.props.value.getTime()===t.getTime())return;const{onChange:s}=this.props;s&&s.call(void 0,t)},w),this.dom=new H.DOMService}get element(){return this._element}get animate(){return!!(this.props.smoothScroll&&this.animateToIndex)}get min(){return this.props.min||l.defaultProps.min}get max(){return this.props.max||l.defaultProps.max}get step(){return this.props.step!==void 0&&this.props.step!==0?Math.floor(this.props.step):l.defaultProps.step}componentDidMount(){Promise.resolve().then(()=>{this._element&&(this.dom.calculateHeights(this._element),this.forceUpdate())})}componentDidUpdate(){if(!this.virtualization||!this.service)return;const n=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](n),this.animateToIndex=!0}render(){const{part:n,value:e,unstyled:t}=this.props;if(!n.type||!g[n.type])return;const s=t&&t.uTime;this.calculateHeights(),this.intl=b.provideIntlService(this),this.service=new g[n.type](this.intl),this.configureServices();const r=this.service.data(e),h="translateY("+this.topOffset+"px)",d=this.service.total(e),f=a.createElement(a.Fragment,null,a.createElement("ul",{style:{transform:h,msTransform:h},className:i.classNames(i.uTime.ul({c:s}))},r.map((c,x)=>a.createElement("li",{key:x,className:i.classNames(i.uTime.li({c:s})),onClick:()=>{this.handleChange(c)}},a.createElement("span",null,c.text)))),a.createElement("div",{className:i.classNames(i.uTime.scrollablePlaceholder({c:s}))}));return a.createElement("div",{className:i.classNames(i.uTime.list({c:s})),id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:c=>{this._element=c},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?a.createElement(I.Virtualization,{bottomOffset:this.bottomOffset,children:f,className:i.classNames(i.uTime.container({c:s})),itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:c=>{this.virtualization=c},role:"presentation",skip:C,tabIndex:-1,take:d,topOffset:this.topOffset,total:d}):a.createElement("div",{className:i.classNames(i.uTime.container({c:s,content:!0,scrollable:!0}))},f))}};l.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(n,e,t){const s=n[e];if(!s||!g[s.type])throw new Error(`
9
9
  Invalid prop '${e}' supplied to ${t}.
10
10
  Supported part types are hour|minute|second|dayperiod.
11
- `);return null},step:function(s,e,t){const i=s[e];if(i!==void 0&&i<=0)throw new Error(`
11
+ `);return null},step:function(n,e,t){const s=n[e];if(s!==void 0&&s<=0)throw new Error(`
12
12
  Invalid prop '${e}' supplied to ${t}.
13
13
  ${e} cannot be less than 1.
14
- `);return null},value:c.instanceOf(Date),smoothScroll:c.bool,show:c.bool},h.defaultProps={boundRange:!1,max:d.MAX_TIME,min:d.MIDNIGHT_DATE,step:1,smoothScroll:!0};let p=h;S.registerForIntl(p);exports.TimeList=p;
14
+ `);return null},value:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},l.defaultProps={boundRange:!1,max:v.MAX_TIME,min:v.MIDNIGHT_DATE,step:1,smoothScroll:!0};let m=l;b.registerForIntl(m);exports.TimeList=m;