@progress/kendo-vue-dateinputs 3.3.3 → 3.3.5-dev.202206141337
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/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/dist/es/additionalTypes.ts +11 -0
- package/dist/es/calendar/components/Calendar.d.ts +9 -3
- package/dist/es/calendar/components/Calendar.js +11 -9
- package/dist/es/calendar/components/CalendarCell.d.ts +8 -7
- package/dist/es/calendar/components/CalendarCell.js +8 -6
- package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +8 -7
- package/dist/es/calendar/components/CalendarHeaderTitle.js +8 -6
- package/dist/es/calendar/components/CalendarWeekCell.d.ts +8 -7
- package/dist/es/calendar/components/CalendarWeekCell.js +8 -6
- package/dist/es/calendar/components/Header.d.ts +6 -3
- package/dist/es/calendar/components/Header.js +7 -3
- package/dist/es/calendar/components/View.d.ts +9 -3
- package/dist/es/calendar/components/View.js +12 -4
- package/dist/es/calendar/components/ViewList.d.ts +9 -5
- package/dist/es/calendar/components/ViewList.js +11 -13
- package/dist/es/calendar/components/interfaces/CalendarProps.d.ts +1 -1
- package/dist/es/calendar/models/CalendarSettings.d.ts +4 -8
- package/dist/es/calendar/utils/index.d.ts +18 -0
- package/dist/es/calendar/utils/index.js +20 -1
- package/dist/es/common/PickerWrap.d.ts +8 -5
- package/dist/es/common/PickerWrap.js +8 -4
- package/dist/es/dateinput/DateInput.d.ts +9 -3
- package/dist/es/dateinput/DateInput.js +11 -3
- package/dist/es/dateinput/interfaces/DateInputProps.d.ts +2 -2
- package/dist/es/dateinput/models/DateInputSettings.d.ts +9 -9
- package/dist/es/datepicker/DatePicker.d.ts +9 -3
- package/dist/es/datepicker/DatePicker.js +11 -4
- package/dist/es/datepicker/ToggleButton.d.ts +7 -4
- package/dist/es/datepicker/ToggleButton.js +8 -4
- package/dist/es/datepicker/interfaces/DatePickerProps.d.ts +4 -4
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +14 -14
- package/dist/es/daterangepicker/DateRangePicker.d.ts +9 -3
- package/dist/es/daterangepicker/DateRangePicker.js +11 -4
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +1 -1
- package/dist/es/datetimepicker/DateTimePicker.d.ts +9 -3
- package/dist/es/datetimepicker/DateTimePicker.js +11 -4
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +9 -3
- package/dist/es/datetimepicker/DateTimeSelector.js +11 -4
- package/dist/es/main.d.ts +11 -11
- package/dist/es/main.js +11 -11
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +9 -3
- package/dist/es/timepicker/TimeList.js +11 -3
- package/dist/es/timepicker/TimePart.d.ts +9 -3
- package/dist/es/timepicker/TimePart.js +11 -3
- package/dist/es/timepicker/TimePicker.d.ts +9 -3
- package/dist/es/timepicker/TimePicker.js +11 -3
- package/dist/es/timepicker/TimeSelector.d.ts +9 -3
- package/dist/es/timepicker/TimeSelector.js +11 -3
- package/dist/es/virtualization/Virtualization.d.ts +9 -3
- package/dist/es/virtualization/Virtualization.js +11 -3
- package/dist/npm/additionalTypes.ts +11 -0
- package/dist/npm/calendar/components/Calendar.d.ts +9 -3
- package/dist/npm/calendar/components/Calendar.js +13 -11
- package/dist/npm/calendar/components/CalendarCell.d.ts +8 -7
- package/dist/npm/calendar/components/CalendarCell.js +10 -8
- package/dist/npm/calendar/components/CalendarHeaderTitle.d.ts +8 -7
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +10 -8
- package/dist/npm/calendar/components/CalendarWeekCell.d.ts +8 -7
- package/dist/npm/calendar/components/CalendarWeekCell.js +10 -8
- package/dist/npm/calendar/components/Header.d.ts +6 -3
- package/dist/npm/calendar/components/Header.js +9 -5
- package/dist/npm/calendar/components/View.d.ts +9 -3
- package/dist/npm/calendar/components/View.js +14 -6
- package/dist/npm/calendar/components/ViewList.d.ts +9 -5
- package/dist/npm/calendar/components/ViewList.js +13 -15
- package/dist/npm/calendar/components/interfaces/CalendarProps.d.ts +1 -1
- package/dist/npm/calendar/models/CalendarSettings.d.ts +4 -8
- package/dist/npm/calendar/utils/index.d.ts +18 -0
- package/dist/npm/calendar/utils/index.js +20 -1
- package/dist/npm/common/PickerWrap.d.ts +8 -5
- package/dist/npm/common/PickerWrap.js +10 -6
- package/dist/npm/dateinput/DateInput.d.ts +9 -3
- package/dist/npm/dateinput/DateInput.js +13 -5
- package/dist/npm/dateinput/interfaces/DateInputProps.d.ts +2 -2
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +9 -9
- package/dist/npm/datepicker/DatePicker.d.ts +9 -3
- package/dist/npm/datepicker/DatePicker.js +13 -6
- package/dist/npm/datepicker/ToggleButton.d.ts +7 -4
- package/dist/npm/datepicker/ToggleButton.js +10 -6
- package/dist/npm/datepicker/interfaces/DatePickerProps.d.ts +4 -4
- package/dist/npm/datepicker/models/DatePickerSettings.d.ts +14 -14
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +9 -3
- package/dist/npm/daterangepicker/DateRangePicker.js +13 -6
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.d.ts +1 -1
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +9 -3
- package/dist/npm/datetimepicker/DateTimePicker.js +13 -6
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +9 -3
- package/dist/npm/datetimepicker/DateTimeSelector.js +13 -6
- package/dist/npm/main.d.ts +11 -11
- package/dist/npm/main.js +11 -11
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimeList.d.ts +9 -3
- package/dist/npm/timepicker/TimeList.js +13 -5
- package/dist/npm/timepicker/TimePart.d.ts +9 -3
- package/dist/npm/timepicker/TimePart.js +13 -5
- package/dist/npm/timepicker/TimePicker.d.ts +9 -3
- package/dist/npm/timepicker/TimePicker.js +13 -5
- package/dist/npm/timepicker/TimeSelector.d.ts +9 -3
- package/dist/npm/timepicker/TimeSelector.js +13 -5
- package/dist/npm/virtualization/Virtualization.d.ts +9 -3
- package/dist/npm/virtualization/Virtualization.js +13 -5
- package/package.json +7 -7
|
@@ -2,9 +2,20 @@
|
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
3
|
// @ts-ignore
|
|
4
4
|
import * as Vue from 'vue';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
5
9
|
// @ts-ignore
|
|
6
10
|
type Vue2type = Vue.default;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
7
15
|
// @ts-ignore
|
|
8
16
|
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
9
20
|
// @ts-ignore
|
|
10
21
|
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
|
@@ -13,6 +13,12 @@ import { CalendarProps } from './interfaces/CalendarProps';
|
|
|
13
13
|
*/
|
|
14
14
|
export interface CalendarAll extends Vue2type, CalendarMethods, CalendarComputed, CalendarState, CalendarData {
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare let CalendarVue2: ComponentOptions<CalendarAll, DefaultData<CalendarData>, DefaultMethods<CalendarAll>, CalendarComputed, RecordPropsDefinition<CalendarProps>>;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
declare const Calendar: DefineComponent<CalendarProps, any, CalendarData, CalendarComputed, CalendarMethods, {}, {}, {}, string, CalendarProps, CalendarProps, {}>;
|
|
24
|
+
export { Calendar, CalendarVue2 };
|
|
@@ -14,7 +14,11 @@ import { getToday, dateInRange, viewInRange } from '../../utils';
|
|
|
14
14
|
import { BusViewService, DOMService, NavigationService } from '../services';
|
|
15
15
|
import { Header } from './Header';
|
|
16
16
|
import { calculateValue, extractDateFromValue, extractMultipleFromValue, extractRangeFromValue, extractFocusedDate, extractActiveRange } from '../utils';
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
var CalendarVue2 = {
|
|
18
22
|
name: 'KendoCalendar',
|
|
19
23
|
inject: {
|
|
20
24
|
kendoIntlService: {
|
|
@@ -76,10 +80,6 @@ var Calendar = {
|
|
|
76
80
|
type: Boolean,
|
|
77
81
|
default: true
|
|
78
82
|
},
|
|
79
|
-
smoothScroll: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: true
|
|
82
|
-
},
|
|
83
83
|
tabIndex: Number,
|
|
84
84
|
value: [Date, Array, Object],
|
|
85
85
|
views: {
|
|
@@ -525,7 +525,6 @@ var Calendar = {
|
|
|
525
525
|
dom: this._dom,
|
|
526
526
|
views: this.$props.views,
|
|
527
527
|
selectionRange: visualizedRange,
|
|
528
|
-
smoothScroll: this.$props.smoothScroll,
|
|
529
528
|
showWeekNumbers: this.$props.weekNumber,
|
|
530
529
|
value: this._selectedMultiple || this._selectedDate,
|
|
531
530
|
cellUID: this.$data.cellUID
|
|
@@ -548,7 +547,6 @@ var Calendar = {
|
|
|
548
547
|
dom: this._dom,
|
|
549
548
|
views: this.$props.views,
|
|
550
549
|
selectionRange: visualizedRange,
|
|
551
|
-
smoothScroll: this.$props.smoothScroll,
|
|
552
550
|
showWeekNumbers: this.$props.weekNumber,
|
|
553
551
|
onChange: this.handleDateChange,
|
|
554
552
|
on: this.v3 ? undefined : {
|
|
@@ -588,5 +586,9 @@ var Calendar = {
|
|
|
588
586
|
}, [calendarBody]);
|
|
589
587
|
}
|
|
590
588
|
};
|
|
591
|
-
|
|
592
|
-
|
|
589
|
+
/**
|
|
590
|
+
* @hidden
|
|
591
|
+
*/
|
|
592
|
+
|
|
593
|
+
var Calendar = CalendarVue2;
|
|
594
|
+
export { Calendar, CalendarVue2 };
|
|
@@ -4,7 +4,7 @@ declare type DefaultMethods<V> = {
|
|
|
4
4
|
};
|
|
5
5
|
import { CellContext } from '../models';
|
|
6
6
|
/**
|
|
7
|
-
* The props which will be received by the custom cell of the [Calendar]({% slug
|
|
7
|
+
* The props which will be received by the custom cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-cell).
|
|
8
8
|
*/
|
|
9
9
|
export interface CalendarCellProps extends CellContext {
|
|
10
10
|
isDisabled?: boolean;
|
|
@@ -26,10 +26,11 @@ export interface CalendarCellMethods {
|
|
|
26
26
|
export interface CalendarCellAllMethods extends Vue2type, CalendarCellMethods {
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
declare let CalendarCellVue2: ComponentOptions<CalendarCellAllMethods, {}, DefaultMethods<CalendarCellAllMethods>, {}, RecordPropsDefinition<CalendarCellProps>>;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
32
34
|
*/
|
|
33
|
-
declare
|
|
34
|
-
|
|
35
|
-
export { CalendarCell, CalendarCellVue3 };
|
|
35
|
+
declare const CalendarCell: DefineComponent<CalendarCellProps, any, {}, {}, CalendarCellMethods, {}, {}, {}, string, CalendarCellProps, CalendarCellProps, {}>;
|
|
36
|
+
export { CalendarCell, CalendarCellVue2 };
|
|
@@ -26,13 +26,11 @@ var compareProps = function compareProps(x, y) {
|
|
|
26
26
|
return true;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* * [Customizing the cells inside the Calendar view]({% slug custom_rendering_calendar_native %}#toc-cells-inside-the-view)
|
|
29
|
+
* @hidden
|
|
32
30
|
*/
|
|
33
31
|
|
|
34
32
|
|
|
35
|
-
var
|
|
33
|
+
var CalendarCellVue2 = {
|
|
36
34
|
name: 'KendoCalendarCell',
|
|
37
35
|
// @ts-ignore
|
|
38
36
|
emits: {
|
|
@@ -161,5 +159,9 @@ var CalendarCell = {
|
|
|
161
159
|
}
|
|
162
160
|
}
|
|
163
161
|
};
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
/**
|
|
163
|
+
* @hidden
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
var CalendarCell = CalendarCellVue2;
|
|
167
|
+
export { CalendarCell, CalendarCellVue2 };
|
|
@@ -3,7 +3,7 @@ declare type DefaultMethods<V> = {
|
|
|
3
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* The props which will be received by the custom header title of the [Calendar]({% slug
|
|
6
|
+
* The props which will be received by the custom header title of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle).
|
|
7
7
|
*/
|
|
8
8
|
export interface CalendarHeaderTitleProps {
|
|
9
9
|
value?: string;
|
|
@@ -23,10 +23,11 @@ export interface CalendarHeaderTitleMethods {
|
|
|
23
23
|
export interface CalendarHeaderTitleAllMethods extends Vue2type, CalendarHeaderTitleMethods {
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
declare let CalendarHeaderTitleVue2: ComponentOptions<CalendarHeaderTitleAllMethods, {}, DefaultMethods<CalendarHeaderTitleAllMethods>, {}, RecordPropsDefinition<CalendarHeaderTitleProps>>;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
29
31
|
*/
|
|
30
|
-
declare
|
|
31
|
-
|
|
32
|
-
export { CalendarHeaderTitle, CalendarHeaderTitleVue3 };
|
|
32
|
+
declare const CalendarHeaderTitle: DefineComponent<CalendarHeaderTitleProps, any, {}, {}, CalendarHeaderTitleMethods, {}, {}, {}, string, CalendarHeaderTitleProps, CalendarHeaderTitleProps, {}>;
|
|
33
|
+
export { CalendarHeaderTitle, CalendarHeaderTitleVue2 };
|
|
@@ -5,12 +5,10 @@ var gh = allVue.h;
|
|
|
5
5
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
6
|
import { Button as KButton } from '@progress/kendo-vue-buttons';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* * [Customizing the cells inside the Calendar view]({% slug custom_rendering_calendar_native %}#toc-cells-inside-the-view)
|
|
8
|
+
* @hidden
|
|
11
9
|
*/
|
|
12
10
|
|
|
13
|
-
var
|
|
11
|
+
var CalendarHeaderTitleVue2 = {
|
|
14
12
|
name: 'KendoHeaderTitle',
|
|
15
13
|
// @ts-ignore
|
|
16
14
|
emits: {
|
|
@@ -66,5 +64,9 @@ var CalendarHeaderTitle = {
|
|
|
66
64
|
);
|
|
67
65
|
}
|
|
68
66
|
};
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
var CalendarHeaderTitle = CalendarHeaderTitleVue2;
|
|
72
|
+
export { CalendarHeaderTitle, CalendarHeaderTitleVue2 };
|
|
@@ -3,7 +3,7 @@ declare type DefaultMethods<V> = {
|
|
|
3
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* The props which will be received by the custom week cell of the [Calendar]({% slug
|
|
6
|
+
* The props which will be received by the custom week cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-weekcell).
|
|
7
7
|
*/
|
|
8
8
|
export interface CalendarWeekCellProps {
|
|
9
9
|
id?: string;
|
|
@@ -17,10 +17,11 @@ export interface CalendarWeekCellAllMethods extends Vue2type {
|
|
|
17
17
|
handleClick?: (e: any) => void;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare let CalendarWeekCellVue2: ComponentOptions<CalendarWeekCellAllMethods, {}, DefaultMethods<CalendarWeekCellAllMethods>, {}, RecordPropsDefinition<CalendarWeekCellProps>>;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
23
25
|
*/
|
|
24
|
-
declare
|
|
25
|
-
|
|
26
|
-
export { CalendarWeekCell, CalendarWeekCellVue3 };
|
|
26
|
+
declare const CalendarWeekCell: DefineComponent<CalendarWeekCellProps, any, {}, {}, {}, {}, {}, {}, string, CalendarWeekCellProps, CalendarWeekCellProps, {}>;
|
|
27
|
+
export { CalendarWeekCell, CalendarWeekCellVue2 };
|
|
@@ -4,12 +4,10 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* * [Customizing week-column cells in the Calendar]({% slug custom_rendering_calendar_native %}#toc-cells-inside-the-week-column)
|
|
7
|
+
* @hidden
|
|
10
8
|
*/
|
|
11
9
|
|
|
12
|
-
var
|
|
10
|
+
var CalendarWeekCellVue2 = {
|
|
13
11
|
props: {
|
|
14
12
|
id: String,
|
|
15
13
|
value: Number
|
|
@@ -54,5 +52,9 @@ var CalendarWeekCell = {
|
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
};
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
var CalendarWeekCell = CalendarWeekCellVue2;
|
|
60
|
+
export { CalendarWeekCell, CalendarWeekCellVue2 };
|
|
@@ -65,6 +65,9 @@ export interface HeaderAllMethods extends Vue2type, HeaderMethods, HeaderCompute
|
|
|
65
65
|
/**
|
|
66
66
|
* @hidden
|
|
67
67
|
*/
|
|
68
|
-
declare let
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
declare let HeaderVue2: ComponentOptions<HeaderAllMethods, {}, DefaultMethods<HeaderAllMethods>, {}, RecordPropsDefinition<HeaderProps>>;
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
declare const Header: DefineComponent<HeaderProps, any, {}, HeaderComputed, HeaderMethods, {}, {}, {}, string, HeaderProps, HeaderProps, {}>;
|
|
73
|
+
export { Header, HeaderVue2 };
|
|
@@ -16,7 +16,7 @@ import { classNames, Keys, getTemplate } from '@progress/kendo-vue-common';
|
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var HeaderVue2 = {
|
|
20
20
|
name: 'KendoHeader',
|
|
21
21
|
inheritAttrs: false,
|
|
22
22
|
inject: {
|
|
@@ -272,5 +272,9 @@ var Header = {
|
|
|
272
272
|
})])]);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
/**
|
|
276
|
+
* @hidden
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
var Header = HeaderVue2;
|
|
280
|
+
export { Header, HeaderVue2 };
|
|
@@ -99,6 +99,12 @@ export interface ViewData {
|
|
|
99
99
|
*/
|
|
100
100
|
export interface ViewAllMethods extends Vue2type, ViewMethods, ViewComputed, ViewState {
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
declare let ViewVue2: ComponentOptions<ViewAllMethods, DefaultData<ViewData>, DefaultMethods<ViewAllMethods>, ViewComputed, RecordPropsDefinition<ViewProps>>;
|
|
106
|
+
/**
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
109
|
+
declare const View: DefineComponent<ViewProps, any, ViewData, ViewComputed, ViewMethods, {}, {}, {}, string, ViewProps, ViewProps, {}>;
|
|
110
|
+
export { View, ViewVue2 };
|
|
@@ -11,7 +11,11 @@ import { CalendarWeekCell } from './CalendarWeekCell';
|
|
|
11
11
|
import { CalendarViewEnum } from '../models';
|
|
12
12
|
import { setTime, getToday } from '../../utils';
|
|
13
13
|
import { WeekNamesService } from '../services';
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var ViewVue2 = {
|
|
15
19
|
name: 'KendoView',
|
|
16
20
|
inject: {
|
|
17
21
|
kendoIntlService: {
|
|
@@ -161,7 +165,7 @@ var View = {
|
|
|
161
165
|
var emptyCell = function emptyCell(idx) {
|
|
162
166
|
return h("td", {
|
|
163
167
|
key: idx
|
|
164
|
-
}
|
|
168
|
+
});
|
|
165
169
|
}; // const weekNames = this._weekService.getWeekNames(this.weekNumber);
|
|
166
170
|
// const colSpan = this.$props.service.rowLength(this.weekNumber);
|
|
167
171
|
// const title = this.$props.service.title(this.$props.viewDate);
|
|
@@ -331,5 +335,9 @@ var View = {
|
|
|
331
335
|
}, this)]);
|
|
332
336
|
}
|
|
333
337
|
};
|
|
334
|
-
|
|
335
|
-
|
|
338
|
+
/**
|
|
339
|
+
* @hidden
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
var View = ViewVue2;
|
|
343
|
+
export { View, ViewVue2 };
|
|
@@ -38,7 +38,6 @@ export interface ViewListProps {
|
|
|
38
38
|
selectionRange?: SelectionRange;
|
|
39
39
|
service: ViewService;
|
|
40
40
|
showWeekNumbers?: boolean;
|
|
41
|
-
smoothScroll?: boolean;
|
|
42
41
|
take?: number;
|
|
43
42
|
value: Date | Date[] | SelectionRange | null;
|
|
44
43
|
views: number;
|
|
@@ -59,7 +58,6 @@ export interface ViewListState {
|
|
|
59
58
|
_viewOffset: number;
|
|
60
59
|
_viewHeight: number;
|
|
61
60
|
lastView: CalendarViewEnum;
|
|
62
|
-
animateToIndex: boolean;
|
|
63
61
|
shouldScroll: boolean;
|
|
64
62
|
indexToScroll?: number;
|
|
65
63
|
lastFocus: Date;
|
|
@@ -107,6 +105,12 @@ export interface ViewListData {
|
|
|
107
105
|
*/
|
|
108
106
|
export interface ViewListAll extends Vue2type, ViewListMethods, ViewListComputed, ViewListState, ViewListData {
|
|
109
107
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
declare let ViewListVue2: ComponentOptions<ViewListAll, DefaultData<ViewListData>, DefaultMethods<ViewListAll>, ViewListComputed, RecordPropsDefinition<ViewListProps>>;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*/
|
|
115
|
+
declare const ViewList: DefineComponent<ViewListProps, any, ViewListData, ViewListComputed, ViewListMethods, {}, {}, {}, string, ViewListProps, ViewListProps, {}>;
|
|
116
|
+
export { ViewList, ViewListVue2 };
|
|
@@ -12,7 +12,11 @@ import { shiftWeekNames } from '../../utils';
|
|
|
12
12
|
import { CalendarViewEnum } from '../models';
|
|
13
13
|
import { classNames } from '@progress/kendo-vue-common';
|
|
14
14
|
var VIEWS_COUNT = 5;
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
var ViewListVue2 = {
|
|
16
20
|
name: 'KendoViewList',
|
|
17
21
|
inheritAttrs: false,
|
|
18
22
|
inject: {
|
|
@@ -57,10 +61,6 @@ var ViewList = {
|
|
|
57
61
|
type: Boolean,
|
|
58
62
|
default: false
|
|
59
63
|
},
|
|
60
|
-
smoothScroll: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: true
|
|
63
|
-
},
|
|
64
64
|
take: {
|
|
65
65
|
type: Number,
|
|
66
66
|
default: VIEWS_COUNT
|
|
@@ -100,17 +100,11 @@ var ViewList = {
|
|
|
100
100
|
get: function get() {
|
|
101
101
|
return Boolean(this.$props.showWeekNumbers && this.$props.activeView === CalendarViewEnum.month);
|
|
102
102
|
}
|
|
103
|
-
},
|
|
104
|
-
animate: {
|
|
105
|
-
get: function get() {
|
|
106
|
-
return Boolean(this.$props.smoothScroll && this.animateToIndex);
|
|
107
|
-
}
|
|
108
103
|
}
|
|
109
104
|
},
|
|
110
105
|
created: function created() {
|
|
111
106
|
this.lastView = this.$props.activeView;
|
|
112
107
|
this.lastFocus = this.$props.focusedDate;
|
|
113
|
-
this.animateToIndex = true;
|
|
114
108
|
this.shouldScroll = false; // this.$data.skip = this.$props.service.skip(this.$props.focusedDate, this.$props.min);
|
|
115
109
|
// this.$data.index = this.$props.service.skip(this.$props.focusedDate, this.$props.min);
|
|
116
110
|
},
|
|
@@ -341,5 +335,9 @@ var ViewList = {
|
|
|
341
335
|
}, [buildDates.call(this)]);
|
|
342
336
|
}
|
|
343
337
|
};
|
|
344
|
-
|
|
345
|
-
|
|
338
|
+
/**
|
|
339
|
+
* @hidden
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
var ViewList = ViewListVue2;
|
|
343
|
+
export { ViewList, ViewListVue2 };
|
|
@@ -2,7 +2,7 @@ import { CalendarSettings, SelectionRangeEnd, SelectionRange, CalendarMode } fro
|
|
|
2
2
|
import { CalendarChangeEvent, CalendarWeekCellClickEvent } from '../../../main';
|
|
3
3
|
import { CalendarWeekNameClickEvent } from './CalendarEventArguments';
|
|
4
4
|
/**
|
|
5
|
-
* Represents the props of the [Kendo UI for Vue Calendar component]({% slug
|
|
5
|
+
* Represents the props of the [Kendo UI for Vue Calendar component]({% slug overview_calendar %}). The generic argument is passed to the `change` property and is used as a target in the [`CalendarChangeEvent`]({% slug api_dateinputs_calendarchangeevent %}) interface.
|
|
6
6
|
*/
|
|
7
7
|
export interface CalendarProps extends CalendarSettings {
|
|
8
8
|
/**
|
|
@@ -39,10 +39,6 @@ export interface CalendarSettings {
|
|
|
39
39
|
* Determines if the navigation sidebar will be displayed.
|
|
40
40
|
*/
|
|
41
41
|
navigation?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Toggles the smooth scroll animation on navigation item click. By default, the animation is enabled.
|
|
44
|
-
*/
|
|
45
|
-
smoothScroll?: boolean;
|
|
46
42
|
/**
|
|
47
43
|
* Fires each time the Calendar is blurred.
|
|
48
44
|
*/
|
|
@@ -65,22 +61,22 @@ export interface CalendarSettings {
|
|
|
65
61
|
weekNumber?: boolean;
|
|
66
62
|
/**
|
|
67
63
|
* Enables the customization or the override of the default Calendar cell
|
|
68
|
-
* ([see example]({% slug
|
|
64
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)).
|
|
69
65
|
*/
|
|
70
66
|
cell?: any;
|
|
71
67
|
/**
|
|
72
68
|
* Enables the customization or the override of the default week-column cell in the Calendar
|
|
73
|
-
* ([see example]({% slug
|
|
69
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)).
|
|
74
70
|
*/
|
|
75
71
|
weekCell?: any;
|
|
76
72
|
/**
|
|
77
73
|
* Enables the customization or the override of the default header title in the Calendar
|
|
78
|
-
* ([see example]({% slug
|
|
74
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
79
75
|
*/
|
|
80
76
|
headerTitle?: any;
|
|
81
77
|
/**
|
|
82
78
|
* Enables the customization or the override of the default navigation item in the Calendar
|
|
83
|
-
* ([see example]({% slug
|
|
79
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
|
|
84
80
|
*/
|
|
85
81
|
navigationItem?: any;
|
|
86
82
|
}
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import { SelectionRange, SelectionRangeEnd } from '../models';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
2
5
|
declare const calculateValue: (min: Date, max: Date, stateValue: any, propValue?: any) => Date | null;
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
3
9
|
declare const extractDateFromValue: (min: Date, max: Date, value: Date | Date[] | SelectionRange | null) => Date | null;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
4
13
|
declare const extractMultipleFromValue: (min: Date, max: Date, value: Date | Date[] | SelectionRange | null) => Date[] | null;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
5
17
|
declare const extractRangeFromValue: (value: Date | Date[] | SelectionRange | null) => SelectionRange;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
6
21
|
declare const extractFocusedDate: (single: Date | null, multiple: Date[] | null, range: SelectionRange) => Date | null;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
7
25
|
declare const extractActiveRange: (range: SelectionRange, single: Date | null) => SelectionRangeEnd;
|
|
8
26
|
export { calculateValue, extractDateFromValue, extractMultipleFromValue, extractRangeFromValue, extractFocusedDate, extractActiveRange };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { isInRange } from '../../utils';
|
|
2
2
|
import { EMPTY_SELECTIONRANGE } from '../models';
|
|
3
3
|
import { getDate } from '@progress/kendo-date-math';
|
|
4
|
+
import { isObject } from '@progress/kendo-vue-common';
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
4
8
|
var calculateValue = function (min, max, stateValue, propValue) {
|
|
5
9
|
return propValue !== undefined
|
|
6
10
|
? propValue !== null && isInRange(propValue, min, max)
|
|
@@ -10,24 +14,39 @@ var calculateValue = function (min, max, stateValue, propValue) {
|
|
|
10
14
|
? stateValue
|
|
11
15
|
: null;
|
|
12
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
13
20
|
var extractDateFromValue = function (min, max, value) {
|
|
14
21
|
return value instanceof Date && !Array.isArray(value) && isInRange(getDate(value), min, max)
|
|
15
22
|
? getDate(value)
|
|
16
23
|
: null;
|
|
17
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
18
28
|
var extractMultipleFromValue = function (min, max, value) {
|
|
19
29
|
return Array.isArray(value)
|
|
20
30
|
? value.filter(function (date) { return isInRange(date, min, max); }).map(function (date) { return getDate(date); })
|
|
21
31
|
: null;
|
|
22
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
23
36
|
var extractRangeFromValue = function (value) {
|
|
24
|
-
return
|
|
37
|
+
return isObject(value) && !(value instanceof Date) && value !== null && !Array.isArray(value)
|
|
25
38
|
? value
|
|
26
39
|
: EMPTY_SELECTIONRANGE;
|
|
27
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
28
44
|
var extractFocusedDate = function (single, multiple, range) {
|
|
29
45
|
return single || (multiple && multiple[0]) || (range && range.start);
|
|
30
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
31
50
|
var extractActiveRange = function (range, single) {
|
|
32
51
|
return range.start === null && single === null
|
|
33
52
|
? 'start'
|
|
@@ -5,14 +5,17 @@ declare type DefaultMethods<V> = {
|
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* Represents the props of the Kendo UI for
|
|
8
|
-
* Vue [PickerWrap]({% slug
|
|
8
|
+
* Vue [PickerWrap]({% slug api_dateinputs_pickerwrapprops %}) component.
|
|
9
9
|
*/
|
|
10
10
|
export interface PickerWrapProps {
|
|
11
11
|
id?: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* @hidden
|
|
15
15
|
*/
|
|
16
|
-
declare let
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
declare let PickerWrapVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<Vue2type>, {}, RecordPropsDefinition<PickerWrapProps>>;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
declare const PickerWrap: DefineComponent<PickerWrapProps, any, {}, {}, {}, {}, {}, {}, string, PickerWrapProps, PickerWrapProps, {}>;
|
|
21
|
+
export { PickerWrap, PickerWrapVue2 };
|
|
@@ -4,10 +4,10 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var PickerWrapVue2 = {
|
|
11
11
|
props: {
|
|
12
12
|
id: String
|
|
13
13
|
},
|
|
@@ -31,5 +31,9 @@ var PickerWrap = {
|
|
|
31
31
|
}, [defaultSlot]);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
var PickerWrap = PickerWrapVue2;
|
|
39
|
+
export { PickerWrap, PickerWrapVue2 };
|
|
@@ -13,6 +13,12 @@ declare type DefaultMethods<V> = {
|
|
|
13
13
|
*/
|
|
14
14
|
export interface DateInputAll extends Vue2type, DateInputMethods, DateInputData, DateInputComputed, DateInputState {
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare let DateInputVue2: ComponentOptions<DateInputAll, DefaultData<DateInputData>, DefaultMethods<DateInputAll>, DateInputComputed, RecordPropsDefinition<DateInputProps>>;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
declare const DateInput: DefineComponent<DateInputProps, any, DateInputData, DateInputComputed, DateInputMethods, {}, {}, {}, string, DateInputProps, DateInputProps, {}>;
|
|
24
|
+
export { DateInput, DateInputVue2 };
|
|
@@ -17,7 +17,11 @@ import { isInTimeRange } from '../timepicker/utils';
|
|
|
17
17
|
import { MIN_TIME, MAX_TIME } from '../defaults';
|
|
18
18
|
import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
19
19
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
var DateInputVue2 = {
|
|
21
25
|
name: 'DateInput',
|
|
22
26
|
model: {
|
|
23
27
|
event: 'changemodel'
|
|
@@ -697,5 +701,9 @@ var DateInput = {
|
|
|
697
701
|
} : [dateinput]) : dateinput;
|
|
698
702
|
}
|
|
699
703
|
};
|
|
700
|
-
|
|
701
|
-
|
|
704
|
+
/**
|
|
705
|
+
* @hidden
|
|
706
|
+
*/
|
|
707
|
+
|
|
708
|
+
var DateInput = DateInputVue2;
|
|
709
|
+
export { DateInput, DateInputVue2 };
|