@progress/kendo-vue-dateinputs 2.7.2-dev.202201051440 → 2.8.0-dev.202201111325
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 +7 -1
- package/dist/es/calendar/components/Calendar.d.ts +2 -3
- package/dist/es/calendar/components/CalendarCell.d.ts +2 -3
- package/dist/es/calendar/components/CalendarCell.js +1 -1
- package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +2 -3
- package/dist/es/calendar/components/CalendarHeaderTitle.js +19 -12
- package/dist/es/calendar/components/CalendarWeekCell.d.ts +2 -3
- package/dist/es/calendar/components/Header.d.ts +2 -3
- package/dist/es/calendar/components/Header.js +36 -37
- package/dist/es/calendar/components/View.d.ts +2 -3
- package/dist/es/calendar/components/ViewList.d.ts +2 -3
- package/dist/es/common/PickerWrap.d.ts +2 -3
- package/dist/es/dateinput/DateInput.d.ts +2 -3
- package/dist/es/dateinput/DateInput.js +62 -49
- package/dist/es/dateinput/models/DateInputSettings.d.ts +39 -0
- package/dist/es/dateinput/utils.js +2 -2
- package/dist/es/datepicker/DatePicker.d.ts +2 -3
- package/dist/es/datepicker/DatePicker.js +66 -80
- package/dist/es/datepicker/ToggleButton.d.ts +3 -24
- package/dist/es/datepicker/ToggleButton.js +2 -67
- package/dist/es/datepicker/interfaces/DatePickerComputed.d.ts +0 -1
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +39 -0
- package/dist/es/daterangepicker/DateRangePicker.d.ts +2 -3
- package/dist/es/daterangepicker/DateRangePicker.js +49 -20
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +39 -0
- package/dist/es/datetimepicker/DateTimePicker.d.ts +2 -3
- package/dist/es/datetimepicker/DateTimePicker.js +75 -51
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +2 -3
- package/dist/es/datetimepicker/DateTimeSelector.js +21 -14
- package/dist/es/datetimepicker/models/DateTimePickerSettings.d.ts +39 -0
- package/dist/es/main.d.ts +2 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimeList.d.ts +2 -3
- package/dist/es/timepicker/TimePart.d.ts +2 -3
- package/dist/es/timepicker/TimePart.js +13 -6
- package/dist/es/timepicker/TimePicker.d.ts +2 -3
- package/dist/es/timepicker/TimePicker.js +73 -41
- package/dist/es/timepicker/TimeSelector.d.ts +2 -3
- package/dist/es/timepicker/TimeSelector.js +20 -11
- package/dist/es/timepicker/models/TimePickerSettings.d.ts +39 -0
- package/dist/es/virtualization/Virtualization.d.ts +2 -3
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/calendar/components/Calendar.d.ts +2 -3
- package/dist/npm/calendar/components/CalendarCell.d.ts +2 -3
- package/dist/npm/calendar/components/CalendarCell.js +1 -1
- package/dist/npm/calendar/components/CalendarHeaderTitle.d.ts +2 -3
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +20 -12
- package/dist/npm/calendar/components/CalendarWeekCell.d.ts +2 -3
- package/dist/npm/calendar/components/Header.d.ts +2 -3
- package/dist/npm/calendar/components/Header.js +37 -37
- package/dist/npm/calendar/components/View.d.ts +2 -3
- package/dist/npm/calendar/components/ViewList.d.ts +2 -3
- package/dist/npm/common/PickerWrap.d.ts +2 -3
- package/dist/npm/dateinput/DateInput.d.ts +2 -3
- package/dist/npm/dateinput/DateInput.js +60 -46
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +39 -0
- package/dist/npm/dateinput/utils.js +2 -2
- package/dist/npm/datepicker/DatePicker.d.ts +2 -3
- package/dist/npm/datepicker/DatePicker.js +65 -80
- package/dist/npm/datepicker/ToggleButton.d.ts +3 -24
- package/dist/npm/datepicker/ToggleButton.js +3 -69
- package/dist/npm/datepicker/interfaces/DatePickerComputed.d.ts +0 -1
- package/dist/npm/datepicker/models/DatePickerSettings.d.ts +39 -0
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +2 -3
- package/dist/npm/daterangepicker/DateRangePicker.js +49 -20
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.d.ts +39 -0
- package/dist/npm/datetimepicker/DateTimePicker.d.ts +2 -3
- package/dist/npm/datetimepicker/DateTimePicker.js +75 -50
- package/dist/npm/datetimepicker/DateTimeSelector.d.ts +2 -3
- package/dist/npm/datetimepicker/DateTimeSelector.js +21 -14
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.d.ts +39 -0
- package/dist/npm/main.d.ts +2 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimeList.d.ts +2 -3
- package/dist/npm/timepicker/TimePart.d.ts +2 -3
- package/dist/npm/timepicker/TimePart.js +14 -6
- package/dist/npm/timepicker/TimePicker.d.ts +2 -3
- package/dist/npm/timepicker/TimePicker.js +73 -40
- package/dist/npm/timepicker/TimeSelector.d.ts +2 -3
- package/dist/npm/timepicker/TimeSelector.js +21 -11
- package/dist/npm/timepicker/models/TimePickerSettings.d.ts +39 -0
- package/dist/npm/virtualization/Virtualization.d.ts +2 -3
- package/package.json +7 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -84,7 +83,7 @@ export interface TimeSelectorComputed {
|
|
|
84
83
|
/**
|
|
85
84
|
* @hidden
|
|
86
85
|
*/
|
|
87
|
-
export interface TimeSelectorAll extends
|
|
86
|
+
export interface TimeSelectorAll extends Vue2type, TimeSelectorMethods, TimeSelectorData, TimeSelectorComputed, TimeSelectorState {
|
|
88
87
|
}
|
|
89
88
|
declare let TimeSelector: ComponentOptions<TimeSelectorAll, DefaultData<TimeSelectorData>, DefaultMethods<TimeSelectorAll>, TimeSelectorComputed, RecordPropsDefinition<TimeSelectorProps>>;
|
|
90
89
|
declare const TimeSelectorVue3: DefineComponent<TimeSelectorProps, any, TimeSelectorData, TimeSelectorComputed, TimeSelectorMethods, {}, {}, {}, string, TimeSelectorProps, TimeSelectorProps, {}>;
|
|
@@ -3,6 +3,7 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var inject = allVue.inject;
|
|
6
|
+
import { Button } from '@progress/kendo-vue-buttons';
|
|
6
7
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
7
8
|
import { canUseDOM, classNames, Keys } from '@progress/kendo-vue-common';
|
|
8
9
|
import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
@@ -192,10 +193,11 @@ var TimeSelector = {
|
|
|
192
193
|
nowButton: nowButton,
|
|
193
194
|
steps: steps
|
|
194
195
|
}), h("div", {
|
|
195
|
-
"class": "k-time-footer k-
|
|
196
|
-
}, [cancelButton &&
|
|
196
|
+
"class": "k-time-footer k-actions k-actions-stretched"
|
|
197
|
+
}, [cancelButton && // @ts-ignore function children
|
|
198
|
+
h(Button, {
|
|
197
199
|
ref: 'cancelButton',
|
|
198
|
-
"class": "k-
|
|
200
|
+
"class": "k-time-cancel",
|
|
199
201
|
onClick: this.handleReject,
|
|
200
202
|
on: this.v3 ? undefined : {
|
|
201
203
|
"click": this.handleReject
|
|
@@ -206,20 +208,27 @@ var TimeSelector = {
|
|
|
206
208
|
"aria-label": cancelMessage
|
|
207
209
|
},
|
|
208
210
|
"aria-label": cancelMessage
|
|
209
|
-
},
|
|
211
|
+
}, this.v3 ? function () {
|
|
212
|
+
return [cancelMessage];
|
|
213
|
+
} : [cancelMessage]), // @ts-ignore function children
|
|
214
|
+
h(Button, {
|
|
210
215
|
ref: 'acceptButton',
|
|
211
|
-
|
|
216
|
+
themeColor: 'primary',
|
|
217
|
+
attrs: this.v3 ? undefined : {
|
|
218
|
+
themeColor: 'primary',
|
|
219
|
+
title: setMessage,
|
|
220
|
+
"aria-label": setMessage
|
|
221
|
+
},
|
|
222
|
+
"class": "k-time-accept",
|
|
212
223
|
onClick: this.handleAccept,
|
|
213
224
|
on: this.v3 ? undefined : {
|
|
214
225
|
"click": this.handleAccept
|
|
215
226
|
},
|
|
216
227
|
title: setMessage,
|
|
217
|
-
attrs: this.v3 ? undefined : {
|
|
218
|
-
title: setMessage,
|
|
219
|
-
"aria-label": setMessage
|
|
220
|
-
},
|
|
221
228
|
"aria-label": setMessage
|
|
222
|
-
},
|
|
229
|
+
}, this.v3 ? function () {
|
|
230
|
+
return [setMessage];
|
|
231
|
+
} : [setMessage])])]);
|
|
223
232
|
},
|
|
224
233
|
methods: {
|
|
225
234
|
handleBlur: function handleBlur(event) {
|
|
@@ -242,7 +251,7 @@ var TimeSelector = {
|
|
|
242
251
|
return false;
|
|
243
252
|
}
|
|
244
253
|
|
|
245
|
-
return canUseDOM && (document.activeElement === this._acceptButton || document.activeElement === this._cancelButton);
|
|
254
|
+
return canUseDOM && (document.activeElement === this._acceptButton.$el || document.activeElement === this._cancelButton.$el);
|
|
246
255
|
},
|
|
247
256
|
handleKeyDown: function handleKeyDown(event) {
|
|
248
257
|
var keyCode = event.keyCode;
|
|
@@ -65,6 +65,45 @@ export interface TimePickerSettings {
|
|
|
65
65
|
* Specifies the value of the placeholder.
|
|
66
66
|
*/
|
|
67
67
|
placeholder?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Configures the `size` of the TimeInput.
|
|
70
|
+
*
|
|
71
|
+
* The available options are:
|
|
72
|
+
* - small
|
|
73
|
+
* - medium
|
|
74
|
+
* - large
|
|
75
|
+
* - null—Does not set a size `class`.
|
|
76
|
+
*
|
|
77
|
+
* @default `medium`
|
|
78
|
+
*/
|
|
79
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
80
|
+
/**
|
|
81
|
+
* Configures the `roundness` of the TimeInput.
|
|
82
|
+
*
|
|
83
|
+
* The available options are:
|
|
84
|
+
* - small
|
|
85
|
+
* - medium
|
|
86
|
+
* - large
|
|
87
|
+
* - circle
|
|
88
|
+
* - full
|
|
89
|
+
* - null—Does not set a rounded `class`.
|
|
90
|
+
*
|
|
91
|
+
* @default `medium`
|
|
92
|
+
*/
|
|
93
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
94
|
+
/**
|
|
95
|
+
* Configures the `fillMode` of the TimeInput.
|
|
96
|
+
*
|
|
97
|
+
* The available options are:
|
|
98
|
+
* - solid
|
|
99
|
+
* - outline
|
|
100
|
+
* - flat
|
|
101
|
+
* - link
|
|
102
|
+
* - null—Does not set a fillMode `class`.
|
|
103
|
+
*
|
|
104
|
+
* @default `solid`
|
|
105
|
+
*/
|
|
106
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
68
107
|
/**
|
|
69
108
|
* Fires each time any of the TimePicker elements gets blurred.
|
|
70
109
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -102,7 +101,7 @@ export interface VirtualizationProps {
|
|
|
102
101
|
/**
|
|
103
102
|
* @hidden
|
|
104
103
|
*/
|
|
105
|
-
export interface VirtualizationAll extends
|
|
104
|
+
export interface VirtualizationAll extends Vue2type, VirtualizationMethods, VirtualizationData, VirtualizationComputed, VirtualizationState {
|
|
106
105
|
}
|
|
107
106
|
declare let Virtualization: ComponentOptions<VirtualizationAll, DefaultData<VirtualizationData>, DefaultMethods<VirtualizationAll>, VirtualizationComputed, RecordPropsDefinition<VirtualizationProps>>;
|
|
108
107
|
declare const VirtualizationVue3: DefineComponent<VirtualizationProps, any, VirtualizationData, VirtualizationComputed, VirtualizationMethods, {}, {}, {}, string, VirtualizationProps, VirtualizationProps, {}>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
|
-
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import * as Vue from 'vue';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
type Vue2type = Vue.default;
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
9
|
+
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => CalendarData);
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -12,7 +11,7 @@ import { CalendarProps } from './interfaces/CalendarProps';
|
|
|
12
11
|
/**
|
|
13
12
|
* @hidden
|
|
14
13
|
*/
|
|
15
|
-
export interface CalendarAll extends
|
|
14
|
+
export interface CalendarAll extends Vue2type, CalendarMethods, CalendarComputed, CalendarState, CalendarData {
|
|
16
15
|
}
|
|
17
16
|
declare let Calendar: ComponentOptions<CalendarAll, DefaultData<CalendarData>, DefaultMethods<CalendarAll>, CalendarComputed, RecordPropsDefinition<CalendarProps>>;
|
|
18
17
|
declare const CalendarVue3: DefineComponent<CalendarProps, any, CalendarData, CalendarComputed, CalendarMethods, {}, {}, {}, string, CalendarProps, CalendarProps, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultMethods<V> = {
|
|
4
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
4
|
};
|
|
@@ -24,7 +23,7 @@ export interface CalendarCellMethods {
|
|
|
24
23
|
/**
|
|
25
24
|
* @hidden
|
|
26
25
|
*/
|
|
27
|
-
export interface CalendarCellAllMethods extends
|
|
26
|
+
export interface CalendarCellAllMethods extends Vue2type, CalendarCellMethods {
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* The `CalendarCell` component is internally used for rendering the items in the current view. Also be used as a custom `cell` of the [Calendar]({% slug api_dateinputs_native_calendarprops %}#toc-cell).
|
|
@@ -71,7 +71,7 @@ var CalendarCell = {
|
|
|
71
71
|
// Manually checking if the component needs an update
|
|
72
72
|
// due to date object being compared by instance
|
|
73
73
|
// and new Date object is created
|
|
74
|
-
// every time and fails the shallow compare of the Vue.
|
|
74
|
+
// every time and fails the shallow compare of the Vue.
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* @hidden
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultMethods<V> = {
|
|
4
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
4
|
};
|
|
@@ -21,7 +20,7 @@ export interface CalendarHeaderTitleMethods {
|
|
|
21
20
|
/**
|
|
22
21
|
* @hidden
|
|
23
22
|
*/
|
|
24
|
-
export interface CalendarHeaderTitleAllMethods extends
|
|
23
|
+
export interface CalendarHeaderTitleAllMethods extends Vue2type, CalendarHeaderTitleMethods {
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* The `CalendarCell` component is internally used for rendering the items in the current view. Also be used as a custom `cell` of the [Calendar]({% slug api_dateinputs_native_calendarprops %}#toc-cell).
|
|
@@ -11,6 +11,8 @@ var allVue = Vue;
|
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
|
|
13
13
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
|
+
|
|
15
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
16
|
/**
|
|
15
17
|
* The `CalendarCell` component is internally used for rendering the items in the current view. Also be used as a custom `cell` of the [Calendar]({% slug api_dateinputs_native_calendarprops %}#toc-cell).
|
|
16
18
|
*
|
|
@@ -50,20 +52,26 @@ var CalendarHeaderTitle = {
|
|
|
50
52
|
render: function render(createElement) {
|
|
51
53
|
var h = gh || createElement;
|
|
52
54
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
attrs: this.v3 ? undefined : {
|
|
55
|
+
return (// @ts-ignore function children
|
|
56
|
+
h(kendo_vue_buttons_1.Button, {
|
|
56
57
|
value: this.$props.value,
|
|
58
|
+
attrs: this.v3 ? undefined : {
|
|
59
|
+
value: this.$props.value,
|
|
60
|
+
id: this.$props.id,
|
|
61
|
+
fillMode: 'flat',
|
|
62
|
+
tabIndex: 0
|
|
63
|
+
},
|
|
57
64
|
id: this.$props.id,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
fillMode: 'flat',
|
|
66
|
+
onClick: this.handleClick,
|
|
67
|
+
on: this.v3 ? undefined : {
|
|
68
|
+
"click": this.handleClick
|
|
69
|
+
},
|
|
70
|
+
tabIndex: 0
|
|
71
|
+
}, this.v3 ? function () {
|
|
72
|
+
return [defaultSlot];
|
|
73
|
+
} : [defaultSlot])
|
|
74
|
+
);
|
|
67
75
|
}
|
|
68
76
|
};
|
|
69
77
|
exports.CalendarHeaderTitle = CalendarHeaderTitle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultMethods<V> = {
|
|
4
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
4
|
};
|
|
@@ -14,7 +13,7 @@ export interface CalendarWeekCellProps {
|
|
|
14
13
|
/**
|
|
15
14
|
* @hidden
|
|
16
15
|
*/
|
|
17
|
-
export interface CalendarWeekCellAllMethods extends
|
|
16
|
+
export interface CalendarWeekCellAllMethods extends Vue2type {
|
|
18
17
|
handleClick?: (e: any) => void;
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
import { LocalizationService } from '@progress/kendo-vue-intl';
|
|
4
3
|
import { BusViewService } from '../services';
|
|
5
4
|
import { ViewService, Action } from '../models';
|
|
@@ -61,7 +60,7 @@ export interface HeaderState {
|
|
|
61
60
|
/**
|
|
62
61
|
* @hidden
|
|
63
62
|
*/
|
|
64
|
-
export interface HeaderAllMethods extends
|
|
63
|
+
export interface HeaderAllMethods extends Vue2type, HeaderMethods, HeaderComputed, HeaderState {
|
|
65
64
|
}
|
|
66
65
|
/**
|
|
67
66
|
* @hidden
|
|
@@ -15,6 +15,8 @@ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
|
15
15
|
|
|
16
16
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
17
17
|
|
|
18
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
19
|
+
|
|
18
20
|
var CalendarHeaderTitle_1 = require("./CalendarHeaderTitle");
|
|
19
21
|
|
|
20
22
|
var messages_1 = require("../../messages");
|
|
@@ -192,11 +194,11 @@ var Header = {
|
|
|
192
194
|
|
|
193
195
|
var isPrevDisabled = !this.canNavigate(models_1.Action.PrevView);
|
|
194
196
|
var isNextDisabled = !this.canNavigate(models_1.Action.NextView);
|
|
195
|
-
var titleClassNames = kendo_vue_common_1.classNames('k-calendar-title', 'k-
|
|
196
|
-
'k-
|
|
197
|
+
var titleClassNames = kendo_vue_common_1.classNames('k-calendar-title', 'k-title', {
|
|
198
|
+
'k-disabled': !this.navigate
|
|
197
199
|
});
|
|
198
200
|
var todayClassNames = kendo_vue_common_1.classNames('k-nav-today', {
|
|
199
|
-
'k-
|
|
201
|
+
'k-disabled': !this.todayIsInRange
|
|
200
202
|
});
|
|
201
203
|
var headerTitle;
|
|
202
204
|
var headerTitleDefaultRendering = // @ts-ignore function children
|
|
@@ -226,29 +228,28 @@ var Header = {
|
|
|
226
228
|
"class": 'k-spacer'
|
|
227
229
|
}), h("span", {
|
|
228
230
|
"class": 'k-calendar-nav k-hstack'
|
|
229
|
-
}, [
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
'k-button k-flat k-icon-button': true,
|
|
233
|
-
'k-state-disabled': isPrevDisabled
|
|
234
|
-
},
|
|
235
|
-
tabIndex: this.$props.tabIndex,
|
|
231
|
+
}, [// @ts-ignore
|
|
232
|
+
h(kendo_vue_buttons_1.Button, {
|
|
233
|
+
icon: 'arrow-60-left',
|
|
236
234
|
attrs: this.v3 ? undefined : {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
235
|
+
icon: 'arrow-60-left',
|
|
236
|
+
size: this.$props.size,
|
|
237
|
+
fillMode: 'flat',
|
|
238
|
+
desabled: isPrevDisabled,
|
|
239
|
+
"aria-label": prevViewTitle,
|
|
240
|
+
title: prevViewTitle
|
|
241
241
|
},
|
|
242
|
+
size: this.$props.size,
|
|
243
|
+
fillMode: 'flat',
|
|
244
|
+
"class": "k-prev-view",
|
|
245
|
+
desabled: isPrevDisabled,
|
|
246
|
+
"aria-label": prevViewTitle,
|
|
242
247
|
title: prevViewTitle,
|
|
243
|
-
type: "button",
|
|
244
248
|
onClick: this.handlePrevClick,
|
|
245
249
|
on: this.v3 ? undefined : {
|
|
246
250
|
"click": this.handlePrevClick
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
}, [h("span", {
|
|
250
|
-
"class": "k-button-icon k-icon k-i-arrow-60-left"
|
|
251
|
-
})]), h("span", {
|
|
251
|
+
}
|
|
252
|
+
}), h("span", {
|
|
252
253
|
"class": todayClassNames,
|
|
253
254
|
tabIndex: this.$props.tabIndex,
|
|
254
255
|
attrs: this.v3 ? undefined : {
|
|
@@ -260,29 +261,28 @@ var Header = {
|
|
|
260
261
|
"click": this.handleTodayClick
|
|
261
262
|
},
|
|
262
263
|
onClick: this.handleTodayClick
|
|
263
|
-
}, [todayMessage]),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
'k-button k-flat k-icon-button': true,
|
|
267
|
-
'k-state-disabled': isNextDisabled
|
|
268
|
-
},
|
|
269
|
-
tabIndex: this.$props.tabIndex,
|
|
264
|
+
}, [todayMessage]), // @ts-ignore
|
|
265
|
+
h(kendo_vue_buttons_1.Button, {
|
|
266
|
+
icon: 'arrow-60-right',
|
|
270
267
|
attrs: this.v3 ? undefined : {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
268
|
+
icon: 'arrow-60-right',
|
|
269
|
+
size: this.$props.size,
|
|
270
|
+
fillMode: 'flat',
|
|
271
|
+
desabled: isNextDisabled,
|
|
272
|
+
"aria-label": nextViewTittle,
|
|
273
|
+
title: nextViewTittle
|
|
275
274
|
},
|
|
275
|
+
size: this.$props.size,
|
|
276
|
+
fillMode: 'flat',
|
|
277
|
+
"class": "k-next-view",
|
|
278
|
+
desabled: isNextDisabled,
|
|
279
|
+
"aria-label": nextViewTittle,
|
|
276
280
|
title: nextViewTittle,
|
|
277
|
-
type: "button",
|
|
278
281
|
onClick: this.handleNextClick,
|
|
279
282
|
on: this.v3 ? undefined : {
|
|
280
283
|
"click": this.handleNextClick
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
}, [h("span", {
|
|
284
|
-
"class": "k-button-icon k-icon k-i-arrow-60-right"
|
|
285
|
-
})])])]);
|
|
284
|
+
}
|
|
285
|
+
})])]);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
exports.Header = Header;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultMethods<V> = {
|
|
4
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
4
|
};
|
|
@@ -98,7 +97,7 @@ export interface ViewData {
|
|
|
98
97
|
/**
|
|
99
98
|
* @hidden
|
|
100
99
|
*/
|
|
101
|
-
export interface ViewAllMethods extends
|
|
100
|
+
export interface ViewAllMethods extends Vue2type, ViewMethods, ViewComputed, ViewState {
|
|
102
101
|
}
|
|
103
102
|
declare let View: ComponentOptions<ViewAllMethods, DefaultData<ViewData>, DefaultMethods<ViewAllMethods>, ViewComputed, RecordPropsDefinition<ViewProps>>;
|
|
104
103
|
declare const ViewVue3: DefineComponent<ViewProps, any, ViewData, ViewComputed, ViewMethods, {}, {}, {}, string, ViewProps, ViewProps, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultMethods<V> = {
|
|
4
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
4
|
};
|
|
@@ -106,7 +105,7 @@ export interface ViewListData {
|
|
|
106
105
|
/**
|
|
107
106
|
* @hidden
|
|
108
107
|
*/
|
|
109
|
-
export interface ViewListAll extends
|
|
108
|
+
export interface ViewListAll extends Vue2type, ViewListMethods, ViewListComputed, ViewListState, ViewListData {
|
|
110
109
|
}
|
|
111
110
|
declare let ViewList: ComponentOptions<ViewListAll, DefaultData<ViewListData>, DefaultMethods<ViewListAll>, ViewListComputed, RecordPropsDefinition<ViewListProps>>;
|
|
112
111
|
declare const ViewListVue3: DefineComponent<ViewListProps, any, ViewListData, ViewListComputed, ViewListMethods, {}, {}, {}, string, ViewListProps, ViewListProps, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -14,6 +13,6 @@ export interface PickerWrapProps {
|
|
|
14
13
|
/**
|
|
15
14
|
* Represents the default `pickerWrap` component
|
|
16
15
|
*/
|
|
17
|
-
declare let PickerWrap: ComponentOptions<
|
|
16
|
+
declare let PickerWrap: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<Vue2type>, {}, RecordPropsDefinition<PickerWrapProps>>;
|
|
18
17
|
declare const PickerWrapVue3: DefineComponent<PickerWrapProps, any, {}, {}, {}, {}, {}, {}, string, PickerWrapProps, PickerWrapProps, {}>;
|
|
19
18
|
export { PickerWrap, PickerWrapVue3 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
import { DateInputData } from './interfaces/DateInputData';
|
|
4
3
|
import { DateInputMethods } from './interfaces/DateInputMethods';
|
|
5
4
|
import { DateInputComputed } from './interfaces/DateInputComputed';
|
|
@@ -12,7 +11,7 @@ declare type DefaultMethods<V> = {
|
|
|
12
11
|
/**
|
|
13
12
|
* @hidden
|
|
14
13
|
*/
|
|
15
|
-
export interface DateInputAll extends
|
|
14
|
+
export interface DateInputAll extends Vue2type, DateInputMethods, DateInputData, DateInputComputed, DateInputState {
|
|
16
15
|
}
|
|
17
16
|
declare let DateInput: ComponentOptions<DateInputAll, DefaultData<DateInputData>, DefaultMethods<DateInputAll>, DateInputComputed, RecordPropsDefinition<DateInputProps>>;
|
|
18
17
|
declare const DateInputVue3: DefineComponent<DateInputProps, any, DateInputData, DateInputComputed, DateInputMethods, {}, {}, {}, string, DateInputProps, DateInputProps, {}>;
|