@progress/kendo-vue-dateinputs 8.0.3-develop.2 → 8.0.3-develop.3

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 (120) hide show
  1. package/PopupSettings.d.ts +21 -0
  2. package/calendar/components/Calendar.d.ts +206 -0
  3. package/calendar/components/CalendarCell.d.ts +70 -0
  4. package/calendar/components/CalendarHeaderTitle.d.ts +35 -0
  5. package/calendar/components/CalendarWeekCell.d.ts +35 -0
  6. package/calendar/components/Header.d.ts +175 -0
  7. package/calendar/components/View.d.ts +204 -0
  8. package/calendar/components/ViewList.d.ts +226 -0
  9. package/calendar/components/interfaces/CalendarComputed.d.ts +17 -0
  10. package/calendar/components/interfaces/CalendarData.d.ts +17 -0
  11. package/calendar/components/interfaces/CalendarEventArguments.d.ts +63 -0
  12. package/calendar/components/interfaces/CalendarMethods.d.ts +40 -0
  13. package/calendar/components/interfaces/CalendarProps.d.ts +66 -0
  14. package/calendar/components/interfaces/CalendarState.d.ts +32 -0
  15. package/calendar/models/ActiveView.d.ts +11 -0
  16. package/calendar/models/CalendarMode.d.ts +16 -0
  17. package/calendar/models/CalendarSettings.d.ts +84 -0
  18. package/calendar/models/CalendarViewEnum.d.ts +16 -0
  19. package/calendar/models/CellContext.d.ts +26 -0
  20. package/calendar/models/NavigationAction.d.ts +22 -0
  21. package/calendar/models/SelectionRange.d.ts +24 -0
  22. package/calendar/models/SelectionRangeEnd.d.ts +11 -0
  23. package/calendar/models/ViewService.d.ts +32 -0
  24. package/calendar/models/main.d.ts +17 -0
  25. package/calendar/services/BusViewService.d.ts +28 -0
  26. package/calendar/services/CenturyViewService.d.ts +32 -0
  27. package/calendar/services/DOMService.d.ts +36 -0
  28. package/calendar/services/DecadeViewService.d.ts +34 -0
  29. package/calendar/services/MonthViewService.d.ts +40 -0
  30. package/calendar/services/NavigationService.d.ts +20 -0
  31. package/calendar/services/WeekNamesService.d.ts +16 -0
  32. package/calendar/services/YearViewService.d.ts +38 -0
  33. package/calendar/services/main.d.ts +16 -0
  34. package/calendar/utils/main.d.ts +33 -0
  35. package/common/PickerWrap.d.ts +23 -0
  36. package/dateinput/DateInput.d.ts +260 -0
  37. package/dateinput/DateInput.mjs +3 -3
  38. package/dateinput/interfaces/DateInputBlurEvent.d.ts +16 -0
  39. package/dateinput/interfaces/DateInputComputed.d.ts +15 -0
  40. package/dateinput/interfaces/DateInputData.d.ts +18 -0
  41. package/dateinput/interfaces/DateInputEventArguments.d.ts +17 -0
  42. package/dateinput/interfaces/DateInputFocusEvent.d.ts +16 -0
  43. package/dateinput/interfaces/DateInputMethods.d.ts +37 -0
  44. package/dateinput/interfaces/DateInputProps.d.ts +38 -0
  45. package/dateinput/interfaces/DateInputState.d.ts +16 -0
  46. package/dateinput/models/DateInputSettings.d.ts +160 -0
  47. package/dateinput/models/format-placeholder.d.ts +46 -0
  48. package/dateinput/models/incremental-steps.d.ts +18 -0
  49. package/dateinput/models/kendo-date.d.ts +60 -0
  50. package/dateinput/models/main.d.ts +14 -0
  51. package/dateinput/models/mask.d.ts +14 -0
  52. package/dateinput/models/selection.d.ts +14 -0
  53. package/dateinput/utils.d.ts +37 -0
  54. package/datepicker/DatePicker.d.ts +280 -0
  55. package/datepicker/DatePicker.js +1 -1
  56. package/datepicker/DatePicker.mjs +11 -10
  57. package/datepicker/ToggleButton.d.ts +151 -0
  58. package/datepicker/interfaces/DatePickerComputed.d.ts +15 -0
  59. package/datepicker/interfaces/DatePickerData.d.ts +15 -0
  60. package/datepicker/interfaces/DatePickerEventArguments.d.ts +29 -0
  61. package/datepicker/interfaces/DatePickerFocusBlurEvents.d.ts +25 -0
  62. package/datepicker/interfaces/DatePickerMethods.d.ts +34 -0
  63. package/datepicker/interfaces/DatePickerProps.d.ts +53 -0
  64. package/datepicker/interfaces/DatePickerState.d.ts +23 -0
  65. package/datepicker/models/DatePickerSettings.d.ts +157 -0
  66. package/datepicker/models/main.d.ts +9 -0
  67. package/daterangepicker/DateRangePicker.d.ts +315 -0
  68. package/daterangepicker/interfaces/DateRangePickerFocusBlurEvents.d.ts +25 -0
  69. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +13 -0
  70. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +13 -0
  71. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +13 -0
  72. package/daterangepicker/models/DateRangePickerSettings.d.ts +162 -0
  73. package/daterangepicker/models/main.d.ts +12 -0
  74. package/datetimepicker/DateTimePicker.d.ts +380 -0
  75. package/datetimepicker/DateTimePicker.js +1 -1
  76. package/datetimepicker/DateTimePicker.mjs +17 -16
  77. package/datetimepicker/DateTimeSelector.d.ts +188 -0
  78. package/datetimepicker/interfaces/DateTimePickerFocusBlurEvents.d.ts +25 -0
  79. package/datetimepicker/models/DateTimePickerSettings.d.ts +199 -0
  80. package/datetimepicker/models/main.d.ts +9 -0
  81. package/defaults.d.ts +27 -0
  82. package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
  83. package/index.d.mts +30 -3477
  84. package/index.d.ts +30 -3477
  85. package/messages/main.d.ts +117 -0
  86. package/package-metadata.d.ts +12 -0
  87. package/package-metadata.js +1 -1
  88. package/package-metadata.mjs +2 -2
  89. package/package.json +16 -10
  90. package/timepicker/TimeList.d.ts +129 -0
  91. package/timepicker/TimePart.d.ts +177 -0
  92. package/timepicker/TimePart.js +1 -1
  93. package/timepicker/TimePart.mjs +2 -2
  94. package/timepicker/TimePicker.d.ts +369 -0
  95. package/timepicker/TimePicker.js +1 -1
  96. package/timepicker/TimePicker.mjs +1 -0
  97. package/timepicker/TimeSelector.d.ts +185 -0
  98. package/timepicker/interfaces/TimePickerFocusBlurEvents.d.ts +25 -0
  99. package/timepicker/models/IncrementalSteps.d.ts +15 -0
  100. package/timepicker/models/ListItem.d.ts +14 -0
  101. package/timepicker/models/ListService.d.ts +22 -0
  102. package/timepicker/models/ListServiceSettings.d.ts +19 -0
  103. package/timepicker/models/TimePart.d.ts +17 -0
  104. package/timepicker/models/TimePickerSettings.d.ts +180 -0
  105. package/timepicker/models/main.d.ts +14 -0
  106. package/timepicker/services/DOMService.d.ts +17 -0
  107. package/timepicker/services/DayPeriodService.d.ts +54 -0
  108. package/timepicker/services/HoursService.d.ts +40 -0
  109. package/timepicker/services/MinutesService.d.ts +39 -0
  110. package/timepicker/services/SecondsService.d.ts +39 -0
  111. package/timepicker/services/main.d.ts +13 -0
  112. package/timepicker/utils.d.ts +63 -0
  113. package/utils.d.ts +77 -0
  114. package/utils.mjs +1 -1
  115. package/virtualization/Virtualization.d.ts +186 -0
  116. package/virtualization/Virtualization.js +1 -1
  117. package/virtualization/Virtualization.mjs +2 -2
  118. package/virtualization/services/RowHeightService.d.ts +25 -0
  119. package/virtualization/services/ScrollerService.d.ts +56 -0
  120. package/virtualization/services/main.d.ts +10 -0
@@ -0,0 +1,117 @@
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 declare const prevView = "calendar.prevView";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare const nextView = "calendar.nextView";
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare const increaseValue = "dateinput.increment";
20
+ /**
21
+ * @hidden
22
+ */
23
+ export declare const decreaseValue = "dateinput.decrement";
24
+ /**
25
+ * @hidden
26
+ */
27
+ export declare const today = "calendar.today";
28
+ /**
29
+ * @hidden
30
+ */
31
+ export declare const toggleCalendar = "datepicker.toggleCalendar";
32
+ /**
33
+ * @hidden
34
+ */
35
+ export declare const swapStartEnd = "daterangepicker.swapStartEnd";
36
+ /**
37
+ * @hidden
38
+ */
39
+ export declare const start = "daterangepicker.start";
40
+ /**
41
+ * @hidden
42
+ */
43
+ export declare const end = "daterangepicker.end";
44
+ /**
45
+ * @hidden
46
+ */
47
+ export declare const separator = "daterangepicker.separator";
48
+ /**
49
+ * @hidden
50
+ */
51
+ export declare const toggleDateTimeSelector = "datetimepicker.toggleDateTimeSelector";
52
+ /**
53
+ * @hidden
54
+ */
55
+ export declare const now = "timepicker.now";
56
+ /**
57
+ * @hidden
58
+ */
59
+ export declare const selectNow = "timepicker.selectNow";
60
+ /**
61
+ * @hidden
62
+ */
63
+ export declare const timePickerCancel = "timepicker.cancel";
64
+ /**
65
+ * @hidden
66
+ */
67
+ export declare const timePickerSet = "timepicker.set";
68
+ /**
69
+ * @hidden
70
+ */
71
+ export declare const toggleTimeSelector = "timepicker.toggleTimeSelector";
72
+ /**
73
+ * @hidden
74
+ */
75
+ export declare const toggleClock = "timepicker.toggleClock";
76
+ /**
77
+ * @hidden
78
+ */
79
+ export declare const date = "datetimepicker.date";
80
+ /**
81
+ * @hidden
82
+ */
83
+ export declare const time = "datetimepicker.time";
84
+ /**
85
+ * @hidden
86
+ */
87
+ export declare const dateTimePickerCancel = "datetimepicker.cancel";
88
+ /**
89
+ * @hidden
90
+ */
91
+ export declare const dateTimePickerSet = "datetimepicker.set";
92
+ /**
93
+ * @hidden
94
+ */
95
+ export declare const messages: {
96
+ "calendar.today": string;
97
+ "timepicker.now": string;
98
+ "timepicker.set": string;
99
+ "timepicker.cancel": string;
100
+ "datetimepicker.date": string;
101
+ "datetimepicker.time": string;
102
+ "datetimepicker.cancel": string;
103
+ "datetimepicker.set": string;
104
+ "daterangepicker.start": string;
105
+ "daterangepicker.end": string;
106
+ "daterangepicker.separator": string;
107
+ "timepicker.selectNow": string;
108
+ "timepicker.toggleTimeSelector": string;
109
+ "timepicker.toggleClock": string;
110
+ "dateinput.increment": string;
111
+ "dateinput.decrement": string;
112
+ "datepicker.toggleCalendar": string;
113
+ "calendar.prevView": string;
114
+ "calendar.nextView": string;
115
+ "daterangepicker.swapStartEnd": string;
116
+ "datetimepicker.toggleDateTimeSelector": string;
117
+ };
@@ -0,0 +1,12 @@
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 { PackageMetadata } from '@progress/kendo-licensing';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const packageMetadata: PackageMetadata;
@@ -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-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1773130073,version:"8.0.3-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1773401481,version:"8.0.3-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1773130073,
14
- version: "8.0.3-develop.2",
13
+ publishDate: 1773401481,
14
+ version: "8.0.3-develop.3",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-dateinputs",
3
- "version": "8.0.3-develop.2",
3
+ "version": "8.0.3-develop.3",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -9,8 +9,14 @@
9
9
  "types": "./index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "import": "./index.mjs",
13
- "require": "./index.js"
12
+ "import": {
13
+ "types": "./index.d.mts",
14
+ "default": "./index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ }
14
20
  },
15
21
  "./package.json": {
16
22
  "default": "./package.json"
@@ -20,12 +26,12 @@
20
26
  "peerDependencies": {
21
27
  "@progress/kendo-date-math": "^1.4.0",
22
28
  "@progress/kendo-licensing": "^1.7.2",
23
- "@progress/kendo-vue-buttons": "8.0.3-develop.2",
24
- "@progress/kendo-vue-common": "8.0.3-develop.2",
25
- "@progress/kendo-vue-intl": "8.0.3-develop.2",
26
- "@progress/kendo-vue-labels": "8.0.3-develop.2",
27
- "@progress/kendo-vue-layout": "8.0.3-develop.2",
28
- "@progress/kendo-vue-popup": "8.0.3-develop.2",
29
+ "@progress/kendo-vue-buttons": "8.0.3-develop.3",
30
+ "@progress/kendo-vue-common": "8.0.3-develop.3",
31
+ "@progress/kendo-vue-intl": "8.0.3-develop.3",
32
+ "@progress/kendo-vue-labels": "8.0.3-develop.3",
33
+ "@progress/kendo-vue-layout": "8.0.3-develop.3",
34
+ "@progress/kendo-vue-popup": "8.0.3-develop.3",
29
35
  "@progress/kendo-svg-icons": "^4.4.0",
30
36
  "vue": "^3.0.2"
31
37
  },
@@ -46,7 +52,7 @@
46
52
  "package": {
47
53
  "productName": "Kendo UI for Vue",
48
54
  "productCode": "KENDOUIVUE",
49
- "publishDate": 1773130073,
55
+ "publishDate": 1773401481,
50
56
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
51
57
  }
52
58
  },
@@ -0,0 +1,129 @@
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 { DateFormatPart } from '@progress/kendo-vue-intl';
9
+ import { ScrollActionArguments } from '../virtualization/Virtualization';
10
+ import { ListItem, ListServiceSettings } from './models/main';
11
+ import { PropType } from 'vue';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export interface TimeListProps {
16
+ id?: number;
17
+ max?: Date;
18
+ min?: Date;
19
+ onBlur?: any;
20
+ onChange?: any;
21
+ onFocus?: any;
22
+ part: DateFormatPart;
23
+ step?: number;
24
+ value: Date;
25
+ smoothScroll?: boolean;
26
+ boundRange?: boolean;
27
+ disabled?: boolean;
28
+ }
29
+ /**
30
+ * @hidden
31
+ */
32
+ export interface TimeListComputed {
33
+ [key: string]: any;
34
+ animate: boolean;
35
+ }
36
+ /**
37
+ * @hidden
38
+ */
39
+ declare const TimeList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
40
+ id: PropType<number>;
41
+ boundRange: {
42
+ type: PropType<boolean>;
43
+ default: boolean;
44
+ };
45
+ max: {
46
+ type: PropType<Date>;
47
+ default: () => Date;
48
+ };
49
+ min: {
50
+ type: PropType<Date>;
51
+ default: () => Date;
52
+ };
53
+ part: PropType<DateFormatPart>;
54
+ step: {
55
+ type: PropType<number>;
56
+ default: number;
57
+ };
58
+ value: PropType<Date>;
59
+ smoothScroll: {
60
+ type: PropType<boolean>;
61
+ default: boolean;
62
+ };
63
+ disabled: {
64
+ type: PropType<boolean>;
65
+ default: boolean;
66
+ };
67
+ }>, {
68
+ kendoIntlService: {};
69
+ }, {
70
+ animateToIndex: boolean;
71
+ }, {
72
+ animate(): boolean;
73
+ }, {
74
+ focus(args?: any): void;
75
+ itemOffset(scrollTop: number): number;
76
+ calculateHeights(): void;
77
+ configureServices(props: TimeListProps): void;
78
+ serviceSettings(settings?: any): ListServiceSettings;
79
+ handleScrollAction({ target, animationInProgress }: ScrollActionArguments): void;
80
+ handleFocus(event: any): void;
81
+ handleBlur(event: any): void;
82
+ handleMouseOver(): void;
83
+ handleKeyDown(event: any): void;
84
+ handleChange(dataItem: ListItem): void;
85
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
86
+ change: (value: Date) => true;
87
+ focus: (event: FocusEvent) => true;
88
+ blur: (event: FocusEvent) => true;
89
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
90
+ id: PropType<number>;
91
+ boundRange: {
92
+ type: PropType<boolean>;
93
+ default: boolean;
94
+ };
95
+ max: {
96
+ type: PropType<Date>;
97
+ default: () => Date;
98
+ };
99
+ min: {
100
+ type: PropType<Date>;
101
+ default: () => Date;
102
+ };
103
+ part: PropType<DateFormatPart>;
104
+ step: {
105
+ type: PropType<number>;
106
+ default: number;
107
+ };
108
+ value: PropType<Date>;
109
+ smoothScroll: {
110
+ type: PropType<boolean>;
111
+ default: boolean;
112
+ };
113
+ disabled: {
114
+ type: PropType<boolean>;
115
+ default: boolean;
116
+ };
117
+ }>> & Readonly<{
118
+ onBlur?: (event: FocusEvent) => any;
119
+ onChange?: (value: Date) => any;
120
+ onFocus?: (event: FocusEvent) => any;
121
+ }>, {
122
+ disabled: boolean;
123
+ max: Date;
124
+ min: Date;
125
+ boundRange: boolean;
126
+ step: number;
127
+ smoothScroll: boolean;
128
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
129
+ export { TimeList };
@@ -0,0 +1,177 @@
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 { DateFormatPart, IntlService, DateFormatOptions } from '@progress/kendo-vue-intl';
9
+ import { TimePickerIncrementalSteps } from './models/IncrementalSteps';
10
+ import { PropType } from 'vue';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare enum Direction {
15
+ Left = 0,
16
+ Right = 1
17
+ }
18
+ /**
19
+ * @hidden
20
+ */
21
+ export interface TimePartChangeEvent {
22
+ event: any;
23
+ value: Date;
24
+ target: any;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface TimePartProps {
30
+ disabled?: boolean;
31
+ format?: string | DateFormatOptions;
32
+ max?: Date;
33
+ min?: Date;
34
+ cancelButton?: boolean;
35
+ nowButton?: boolean;
36
+ onChange?: any;
37
+ steps?: TimePickerIncrementalSteps;
38
+ smoothScroll?: boolean;
39
+ tabIndex?: number;
40
+ value?: Date | null;
41
+ boundRange?: boolean;
42
+ }
43
+ /**
44
+ * @hidden
45
+ */
46
+ declare const TimePart: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
47
+ cancelButton: {
48
+ type: PropType<boolean>;
49
+ default: boolean;
50
+ };
51
+ disabled: {
52
+ type: PropType<boolean>;
53
+ default: boolean;
54
+ };
55
+ format: {
56
+ type: PropType<string | DateFormatOptions>;
57
+ default: () => string;
58
+ };
59
+ max: {
60
+ type: PropType<Date>;
61
+ default: () => Date;
62
+ };
63
+ min: {
64
+ type: PropType<Date>;
65
+ default: () => Date;
66
+ };
67
+ nowButton: {
68
+ type: PropType<boolean>;
69
+ default: boolean;
70
+ };
71
+ steps: {
72
+ type: PropType<TimePickerIncrementalSteps>;
73
+ default: () => {};
74
+ };
75
+ smoothScroll: {
76
+ type: PropType<boolean>;
77
+ default: boolean;
78
+ };
79
+ tabIndex: PropType<number>;
80
+ value: {
81
+ type: PropType<Date>;
82
+ default: () => any;
83
+ };
84
+ boundRange: {
85
+ type: PropType<boolean>;
86
+ default: boolean;
87
+ };
88
+ }>, {
89
+ kendoIntlService: {};
90
+ kendoLocalizationService: {};
91
+ }, {
92
+ activeListIndex: any;
93
+ }, {
94
+ element(): HTMLSpanElement | null;
95
+ computedValue(): Date;
96
+ intl(): IntlService;
97
+ computedMin(): Date;
98
+ computedMax(): Date;
99
+ }, {
100
+ onNowClick(event: any): void;
101
+ focus(args?: any): void;
102
+ timeFormatReducer(acc: string, current: DateFormatPart): string;
103
+ timeFormatFilter(part: DateFormatPart, index: number, all: DateFormatPart[]): boolean;
104
+ hasActiveButton(): boolean;
105
+ focusList(dir: Direction): void;
106
+ listReducer(state: any, list: any, idx: number, all: any): any;
107
+ showNowButton(): boolean;
108
+ hasSteps(): boolean;
109
+ handleKeyDown(event: any): void;
110
+ handleListBlur(event: any): void;
111
+ handleListFocus(event: any, idx: number): void;
112
+ handleChange(candidate: Date): void;
113
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
114
+ change: (value: Date) => true;
115
+ focus: (event: FocusEvent) => true;
116
+ blur: (event: FocusEvent) => true;
117
+ nowclick: (event: Event) => true;
118
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
119
+ cancelButton: {
120
+ type: PropType<boolean>;
121
+ default: boolean;
122
+ };
123
+ disabled: {
124
+ type: PropType<boolean>;
125
+ default: boolean;
126
+ };
127
+ format: {
128
+ type: PropType<string | DateFormatOptions>;
129
+ default: () => string;
130
+ };
131
+ max: {
132
+ type: PropType<Date>;
133
+ default: () => Date;
134
+ };
135
+ min: {
136
+ type: PropType<Date>;
137
+ default: () => Date;
138
+ };
139
+ nowButton: {
140
+ type: PropType<boolean>;
141
+ default: boolean;
142
+ };
143
+ steps: {
144
+ type: PropType<TimePickerIncrementalSteps>;
145
+ default: () => {};
146
+ };
147
+ smoothScroll: {
148
+ type: PropType<boolean>;
149
+ default: boolean;
150
+ };
151
+ tabIndex: PropType<number>;
152
+ value: {
153
+ type: PropType<Date>;
154
+ default: () => any;
155
+ };
156
+ boundRange: {
157
+ type: PropType<boolean>;
158
+ default: boolean;
159
+ };
160
+ }>> & Readonly<{
161
+ onBlur?: (event: FocusEvent) => any;
162
+ onChange?: (value: Date) => any;
163
+ onFocus?: (event: FocusEvent) => any;
164
+ onNowclick?: (event: Event) => any;
165
+ }>, {
166
+ value: Date;
167
+ disabled: boolean;
168
+ format: string;
169
+ max: Date;
170
+ min: Date;
171
+ steps: TimePickerIncrementalSteps;
172
+ boundRange: boolean;
173
+ smoothScroll: boolean;
174
+ cancelButton: boolean;
175
+ nowButton: boolean;
176
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
177
+ export { TimePart };
@@ -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 s=require("vue"),k=require("@progress/kendo-vue-buttons"),L=require("@progress/kendo-date-math"),l=require("@progress/kendo-vue-common"),g=require("@progress/kendo-vue-intl"),u=require("../messages/main.js"),$=require("./TimeList.js"),p=require("../utils.js"),c=require("./models/TimePart.js"),o=require("./utils.js");function w(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const m=new RegExp(`${c.TIME_PART.hour}|${c.TIME_PART.minute}|${c.TIME_PART.second}|${c.TIME_PART.dayperiod}|literal`);let h=function(e){return e[e.Left=0]="Left",e[e.Right=1]="Right",e}({});const T=s.defineComponent({name:"KendoTimePart",props:{cancelButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},format:{type:[String,Object],default:function(){return"hh:mm a"}},max:{type:Date,default:function(){return p.MAX_TIME}},min:{type:Date,default:function(){return p.MIN_TIME}},nowButton:{type:Boolean,default:!0},steps:{type:Object,default:function(){return{}}},smoothScroll:{type:Boolean,default:!0},tabIndex:Number,value:{type:Date,default:function(){return null}},boundRange:{type:Boolean,default:!1}},emits:{change:e=>!0,focus:e=>!0,blur:e=>!0,nowclick:e=>!0},created(){this.timeLists=[],this.snapTime=o.snapTime(o.generateSnappers(this.$props.steps,this.$props.min)),this.activeListIndex=-1,this.hasActiveButton=this.hasActiveButton.bind(this)},inject:{kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data(){return{activeListIndex:null}},computed:{element(){return this._element},computedValue(){return o.timeInRange(this.snapTime(L.cloneDate(this.$props.value||p.MIDNIGHT_DATE)),this.computedMin,this.computedMax)},intl(){return g.provideIntlService(this)},computedMin(){return this.snapTime(this.$props.min)},computedMax(){return this.snapTime(this.$props.max)}},mounted(){this._nowButton=this.$refs.nowButton,this.dateFormatParts.forEach((e,t)=>{e.type!=="literal"&&this.timeLists.push(this.$refs["timeList"+t])})},setup(){const e=s.inject("kendoIntlService",{}),t=s.inject("kendoLocalizationService",{});return{kendoIntlService:e,kendoLocalizationService:t}},render(){let e;const{format:t,smoothScroll:n,disabled:i}=this.$props;this.snapTime=o.snapTime(o.generateSnappers(this.$props.steps,this.computedMin)),this.dateFormatParts=this.intl.splitDateFormat(t).filter(this.timeFormatFilter);const y=l.classNames({"k-disabled":i},"k-time-part"),f=g.provideLocalizationService(this),v=f.toLanguageString(u.selectNow,u.messages[u.selectNow]);return s.createVNode("div",{class:y},[s.createVNode("div",{class:"k-time-header"},[s.createVNode("span",{class:"k-title"},[this.intl.formatDate(this.computedValue,this.dateFormatParts.reduce(this.timeFormatReducer,""))]),this.showNowButton()&&s.createVNode(k.Button,{type:"button",ref:"nowButton",fillMode:"flat",class:"k-time-now",title:v,"aria-label":v,onClick:this.onNowClick,tabIndex:i?-1:0},w(e=f.toLanguageString(u.now,u.messages[u.now]))?e:{default:()=>[e]})]),s.createVNode("div",{class:"k-time-list-container",onKeydown:this.handleKeyDown},[s.createVNode("span",{class:"k-time-highlight"},null),this.dateFormatParts.map(function(r,a){return r.type!=="literal"?s.createVNode("div",{key:a,class:l.classNames("k-time-list-wrapper",{"k-focus":a===this.activeListIndex}),role:"presentation",tabindex:-1},[s.createVNode("span",{class:"k-title",onMousedown:d=>{d.preventDefault()}},[this.intl.dateFieldName(r)]),s.createVNode($.TimeList,{min:this.computedMin,max:this.computedMax,boundRange:this.$props.boundRange,part:r,step:r.type?this.$props.steps[r.type]:1,smoothScroll:n,ref:"timeList"+a,id:a,onFocus:d=>{this.handleListFocus(d,a)},onBlur:this.handleListBlur,onChange:this.handleChange,value:this.computedValue,disabled:i},null)]):s.createVNode("div",{key:a,class:"k-time-separator"},[r.pattern])},this)])])},methods:{onNowClick(e){this.$emit("nowclick",e)},focus(e){this.$nextTick(()=>{const t=this.timeLists[0];!this.hasActiveButton()&&t&&t.$el&&t.focus(e)})},timeFormatReducer(e,t){return e+t.pattern},timeFormatFilter(e,t,n){const i=t>=1&&n[t-1];return i&&i&&e.type==="literal"?m.test(i.type||""):m.test(e.type||"")},hasActiveButton(){return l.canUseDOM&&this._nowButton&&document.activeElement===this._nowButton.$el},focusList(e){this.timeLists.length&&this.timeLists.reduce(this.listReducer,[]).map(t=>e===h.Right?t.next:t.prev).map(t=>t&&t.$el&&t.$el.focus({preventScroll:!0}))},listReducer(e,t,n,i){return e.length||t.$props.id!==this.activeListIndex?e:[{next:i[n+1]||t,prev:i[n-1]||t}]},showNowButton(){return!this.hasSteps()&&this.$props.nowButton&&o.isInTimeRange(o.getNow(),this.computedMin,this.computedMax)},hasSteps(){const e=Object.keys(this.$props.steps);return e.length!==e.reduce((t,n)=>t+this.$props.steps[n],0)},handleKeyDown(e){const{keyCode:t}=e;switch(t){case l.Keys.left:e.preventDefault(),this.focusList(h.Left);return;case l.Keys.right:e.preventDefault(),this.focusList(h.Right);return;default:return}},handleListBlur(e){this.$emit("blur",e)},handleListFocus(e,t){this.$emit("focus",e),this.activeListIndex=t},handleChange(e){this.$emit("change",e)}}});exports.Direction=h;exports.TimePart=T;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),k=require("@progress/kendo-vue-buttons"),L=require("@progress/kendo-date-math"),l=require("@progress/kendo-vue-common"),g=require("@progress/kendo-vue-intl"),u=require("../messages/main.js"),$=require("./TimeList.js"),p=require("../utils.js"),c=require("./models/TimePart.js"),o=require("./utils.js");function w(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const m=new RegExp(`${c.TIME_PART.hour}|${c.TIME_PART.minute}|${c.TIME_PART.second}|${c.TIME_PART.dayperiod}|literal`);let h=(function(e){return e[e.Left=0]="Left",e[e.Right=1]="Right",e})({});const T=s.defineComponent({name:"KendoTimePart",props:{cancelButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},format:{type:[String,Object],default:function(){return"hh:mm a"}},max:{type:Date,default:function(){return p.MAX_TIME}},min:{type:Date,default:function(){return p.MIN_TIME}},nowButton:{type:Boolean,default:!0},steps:{type:Object,default:function(){return{}}},smoothScroll:{type:Boolean,default:!0},tabIndex:Number,value:{type:Date,default:function(){return null}},boundRange:{type:Boolean,default:!1}},emits:{change:e=>!0,focus:e=>!0,blur:e=>!0,nowclick:e=>!0},created(){this.timeLists=[],this.snapTime=o.snapTime(o.generateSnappers(this.$props.steps,this.$props.min)),this.activeListIndex=-1,this.hasActiveButton=this.hasActiveButton.bind(this)},inject:{kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data(){return{activeListIndex:null}},computed:{element(){return this._element},computedValue(){return o.timeInRange(this.snapTime(L.cloneDate(this.$props.value||p.MIDNIGHT_DATE)),this.computedMin,this.computedMax)},intl(){return g.provideIntlService(this)},computedMin(){return this.snapTime(this.$props.min)},computedMax(){return this.snapTime(this.$props.max)}},mounted(){this._nowButton=this.$refs.nowButton,this.dateFormatParts.forEach((e,t)=>{e.type!=="literal"&&this.timeLists.push(this.$refs["timeList"+t])})},setup(){const e=s.inject("kendoIntlService",{}),t=s.inject("kendoLocalizationService",{});return{kendoIntlService:e,kendoLocalizationService:t}},render(){let e;const{format:t,smoothScroll:n,disabled:i}=this.$props;this.snapTime=o.snapTime(o.generateSnappers(this.$props.steps,this.computedMin)),this.dateFormatParts=this.intl.splitDateFormat(t).filter(this.timeFormatFilter);const y=l.classNames({"k-disabled":i},"k-time-part"),f=g.provideLocalizationService(this),v=f.toLanguageString(u.selectNow,u.messages[u.selectNow]);return s.createVNode("div",{class:y},[s.createVNode("div",{class:"k-time-header"},[s.createVNode("span",{class:"k-title"},[this.intl.formatDate(this.computedValue,this.dateFormatParts.reduce(this.timeFormatReducer,""))]),this.showNowButton()&&s.createVNode(k.Button,{type:"button",ref:"nowButton",fillMode:"flat",class:"k-time-now",title:v,"aria-label":v,onClick:this.onNowClick,tabIndex:i?-1:0},w(e=f.toLanguageString(u.now,u.messages[u.now]))?e:{default:()=>[e]})]),s.createVNode("div",{class:"k-time-list-container",onKeydown:this.handleKeyDown},[s.createVNode("span",{class:"k-time-highlight"},null),this.dateFormatParts.map(function(r,a){return r.type!=="literal"?s.createVNode("div",{key:a,class:l.classNames("k-time-list-wrapper",{"k-focus":a===this.activeListIndex}),role:"presentation",tabindex:-1},[s.createVNode("span",{class:"k-title",onMousedown:d=>{d.preventDefault()}},[this.intl.dateFieldName(r)]),s.createVNode($.TimeList,{min:this.computedMin,max:this.computedMax,boundRange:this.$props.boundRange,part:r,step:r.type?this.$props.steps[r.type]:1,smoothScroll:n,ref:"timeList"+a,id:a,onFocus:d=>{this.handleListFocus(d,a)},onBlur:this.handleListBlur,onChange:this.handleChange,value:this.computedValue,disabled:i},null)]):s.createVNode("div",{key:a,class:"k-time-separator"},[r.pattern])},this)])])},methods:{onNowClick(e){this.$emit("nowclick",e)},focus(e){this.$nextTick(()=>{const t=this.timeLists[0];!this.hasActiveButton()&&t&&t.$el&&t.focus(e)})},timeFormatReducer(e,t){return e+t.pattern},timeFormatFilter(e,t,n){const i=t>=1&&n[t-1];return i&&i&&e.type==="literal"?m.test(i.type||""):m.test(e.type||"")},hasActiveButton(){return l.canUseDOM&&this._nowButton&&document.activeElement===this._nowButton.$el},focusList(e){this.timeLists.length&&this.timeLists.reduce(this.listReducer,[]).map(t=>e===h.Right?t.next:t.prev).map(t=>t&&t.$el&&t.$el.focus({preventScroll:!0}))},listReducer(e,t,n,i){return e.length||t.$props.id!==this.activeListIndex?e:[{next:i[n+1]||t,prev:i[n-1]||t}]},showNowButton(){return!this.hasSteps()&&this.$props.nowButton&&o.isInTimeRange(o.getNow(),this.computedMin,this.computedMax)},hasSteps(){const e=Object.keys(this.$props.steps);return e.length!==e.reduce((t,n)=>t+this.$props.steps[n],0)},handleKeyDown(e){const{keyCode:t}=e;switch(t){case l.Keys.left:e.preventDefault(),this.focusList(h.Left);return;case l.Keys.right:e.preventDefault(),this.focusList(h.Right);return;default:return}},handleListBlur(e){this.$emit("blur",e)},handleListFocus(e,t){this.$emit("focus",e),this.activeListIndex=t},handleChange(e){this.$emit("change",e)}}});exports.Direction=h;exports.TimePart=T;
@@ -19,9 +19,9 @@ function j(t) {
19
19
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !B(t);
20
20
  }
21
21
  const l = new RegExp(`${a.hour}|${a.minute}|${a.second}|${a.dayperiod}|literal`);
22
- let c = /* @__PURE__ */ function(t) {
22
+ let c = /* @__PURE__ */ (function(t) {
23
23
  return t[t.Left = 0] = "Left", t[t.Right = 1] = "Right", t;
24
- }({});
24
+ })({});
25
25
  const X = /* @__PURE__ */ w({
26
26
  name: "KendoTimePart",
27
27
  props: {