@progress/kendo-vue-scheduler 3.5.2 → 3.5.4-dev.202209071223
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-scheduler.js +1 -1
- package/dist/es/Scheduler.js +1 -3
- package/dist/es/components/BaseView.js +1 -2
- package/dist/es/components/CurrentTimeMarker.js +1 -2
- package/dist/es/components/CurrentTimeMarkerArrow.js +1 -2
- package/dist/es/components/SchedulerForm.js +1 -2
- package/dist/es/components/footer/bussiness-hours/BusinessHours.js +10 -14
- package/dist/es/components/header/navigation/NavigationDatePicker.js +194 -24
- package/dist/es/components/header/navigation/SchedulerNavigation.js +16 -16
- package/dist/es/components/header/view-selector/ViewSelectorList.js +3 -6
- package/dist/es/editors/SchedulerFormEditor.js +1 -2
- package/dist/es/hooks/useSchedulerSlot.js +0 -3
- package/dist/es/hooks/useSlotExpand.js +1 -2
- package/dist/es/items/SchedulerItem.js +8 -8
- package/dist/es/items/hooks/use-drag-item.js +1 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tasks/SchedulerTask.js +2 -2
- package/dist/es/views/agenda/AgendaView.js +0 -1
- package/dist/es/views/agenda/AgendaViewBody.js +2 -2
- package/dist/es/views/common/SchedulerDrag.js +1 -8
- package/dist/es/views/common/SchedulerResize.js +1 -8
- package/dist/es/views/week/WorkWeekView.js +1 -2
- package/dist/esm/Scheduler.js +1 -3
- package/dist/esm/components/BaseView.js +1 -2
- package/dist/esm/components/CurrentTimeMarker.js +1 -2
- package/dist/esm/components/CurrentTimeMarkerArrow.js +1 -2
- package/dist/esm/components/SchedulerForm.js +1 -2
- package/dist/esm/components/footer/bussiness-hours/BusinessHours.js +10 -14
- package/dist/esm/components/header/navigation/NavigationDatePicker.js +194 -24
- package/dist/esm/components/header/navigation/SchedulerNavigation.js +16 -16
- package/dist/esm/components/header/view-selector/ViewSelectorList.js +3 -6
- package/dist/esm/editors/SchedulerFormEditor.js +1 -2
- package/dist/esm/hooks/useSchedulerSlot.js +0 -3
- package/dist/esm/hooks/useSlotExpand.js +1 -2
- package/dist/esm/items/SchedulerItem.js +8 -8
- package/dist/esm/items/hooks/use-drag-item.js +1 -4
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/tasks/SchedulerTask.js +2 -2
- package/dist/esm/views/agenda/AgendaView.js +0 -1
- package/dist/esm/views/agenda/AgendaViewBody.js +2 -2
- package/dist/esm/views/common/SchedulerDrag.js +1 -8
- package/dist/esm/views/common/SchedulerResize.js +1 -8
- package/dist/esm/views/week/WorkWeekView.js +1 -2
- package/dist/npm/Scheduler.js +1 -3
- package/dist/npm/components/BaseView.js +1 -2
- package/dist/npm/components/CurrentTimeMarker.js +1 -2
- package/dist/npm/components/CurrentTimeMarkerArrow.js +1 -2
- package/dist/npm/components/SchedulerForm.js +1 -2
- package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +10 -14
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +199 -25
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +16 -16
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +3 -5
- package/dist/npm/editors/SchedulerFormEditor.js +1 -2
- package/dist/npm/hooks/useSchedulerSlot.js +1 -3
- package/dist/npm/hooks/useSlotExpand.js +1 -2
- package/dist/npm/items/SchedulerItem.js +8 -8
- package/dist/npm/items/hooks/use-drag-item.js +1 -4
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tasks/SchedulerTask.js +2 -2
- package/dist/npm/views/agenda/AgendaView.js +0 -1
- package/dist/npm/views/agenda/AgendaViewBody.js +2 -2
- package/dist/npm/views/common/SchedulerDrag.js +1 -8
- package/dist/npm/views/common/SchedulerResize.js +1 -8
- package/dist/npm/views/week/WorkWeekView.js +1 -2
- package/package.json +12 -12
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-scheduler',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662553158,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -137,9 +137,9 @@ var SchedulerTaskVue2 = {
|
|
|
137
137
|
backgroundColor: color
|
|
138
138
|
}
|
|
139
139
|
}), this.$props.isRecurring && h("span", {
|
|
140
|
-
"class": "k-icon k-i-
|
|
140
|
+
"class": "k-icon k-i-arrow-rotate-cw"
|
|
141
141
|
}), this.$props.isException && h("span", {
|
|
142
|
-
"class": "k-icon k-i-
|
|
142
|
+
"class": "k-icon k-i-arrows-no-repeat"
|
|
143
143
|
}), this.$props.title, defaultSlot, editable.remove && h("a", {
|
|
144
144
|
"class": "k-link k-event-delete",
|
|
145
145
|
title: deleteMessage,
|
|
@@ -19,7 +19,6 @@ import * as Vue from 'vue';
|
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
21
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
22
|
-
var inject = allVue.inject;
|
|
23
22
|
import { BaseView } from '../../components/BaseView.js';
|
|
24
23
|
import { VerticalResourceIterator } from '../common/VerticalResourceIterator.js';
|
|
25
24
|
import { useCellSync } from '../../hooks/main.js';
|
|
@@ -123,9 +123,9 @@ var AgendaViewBodyVue2 = {
|
|
|
123
123
|
}, [h("div", {
|
|
124
124
|
"class": "k-scheduler-cell k-scheduler-timecolumn"
|
|
125
125
|
}, [h("div", [item.tail && h("span", {
|
|
126
|
-
"class": "k-icon k-i-
|
|
126
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
127
127
|
}), item.isAllDay ? localization.toLanguageString(allDay, messages[allDay]) : getTimeFormat(this.intl, item), item.head && h("span", {
|
|
128
|
-
"class": "k-icon k-i-
|
|
128
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
129
129
|
})])]), h("div", {
|
|
130
130
|
"class": "k-scheduler-cell"
|
|
131
131
|
}, [h(EditTask, {
|
|
@@ -6,14 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { toItems, toOccurrences } from '../../services/main.js';
|
|
8
8
|
import { SchedulerItem } from '../../items/SchedulerItem.js';
|
|
9
|
-
import { SchedulerViewItem } from '../../items/SchedulerViewItem
|
|
10
|
-
// import {
|
|
11
|
-
// useSchedulerPropsContext,
|
|
12
|
-
// useSchedulerGroupsContext,
|
|
13
|
-
// useSchedulerFieldsContext,
|
|
14
|
-
// useSchedulerDateRangeContext
|
|
15
|
-
// } from '../../context/SchedulerContext.js';
|
|
16
|
-
|
|
9
|
+
import { SchedulerViewItem } from '../../items/SchedulerViewItem.js';
|
|
17
10
|
import { mapItemsToSlots } from '../../utils/main.js';
|
|
18
11
|
/** @hidden */
|
|
19
12
|
|
|
@@ -6,14 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { toItems, toOccurrences } from '../../services/main.js';
|
|
8
8
|
import { SchedulerItem } from '../../items/SchedulerItem.js';
|
|
9
|
-
import { SchedulerViewItem } from '../../items/SchedulerViewItem
|
|
10
|
-
// import {
|
|
11
|
-
// useSchedulerPropsContext,
|
|
12
|
-
// useSchedulerGroupsContext,
|
|
13
|
-
// useSchedulerFieldsContext,
|
|
14
|
-
// useSchedulerDateRangeContext
|
|
15
|
-
// } from '../../context/SchedulerContext.js';
|
|
16
|
-
|
|
9
|
+
import { SchedulerViewItem } from '../../items/SchedulerViewItem.js';
|
|
17
10
|
import { mapItemsToSlots } from '../../utils/main.js';
|
|
18
11
|
/** @hidden */
|
|
19
12
|
|
|
@@ -21,8 +21,7 @@ import { Day, getDate, addDays, ZonedDate, MS_PER_DAY } from '@progress/kendo-da
|
|
|
21
21
|
import { DAYS_IN_WEEK_COUNT } from '../../constants/main.js';
|
|
22
22
|
import { MultiDayView } from '../day/MultiDayView.js';
|
|
23
23
|
import { workWeekViewTitle, messages } from '../../messages/main.js';
|
|
24
|
-
import { toUTCDateTime } from '../../utils/main
|
|
25
|
-
|
|
24
|
+
import { toUTCDateTime } from '../../utils/main.js';
|
|
26
25
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
27
26
|
/** @hidden */
|
|
28
27
|
|
package/dist/npm/Scheduler.js
CHANGED
|
@@ -59,8 +59,7 @@ var NavigationDatePicker_1 = require("./components/header/navigation/NavigationD
|
|
|
59
59
|
|
|
60
60
|
var BusinessHours_1 = require("./components/footer/bussiness-hours/BusinessHours");
|
|
61
61
|
|
|
62
|
-
var DayView_1 = require("./views/day/DayView");
|
|
63
|
-
|
|
62
|
+
var DayView_1 = require("./views/day/DayView");
|
|
64
63
|
|
|
65
64
|
var kendo_vue_common_2 = require("@progress/kendo-vue-common");
|
|
66
65
|
|
|
@@ -161,7 +160,6 @@ var SchedulerVue2 = {
|
|
|
161
160
|
'k-rtl': this.$props.rtl !== undefined ? this.$props.rtl : this.dir === 'rtl',
|
|
162
161
|
'k-widget': true,
|
|
163
162
|
'k-scheduler': true,
|
|
164
|
-
'k-scheduler-flex': true,
|
|
165
163
|
'k-floatwrap': true
|
|
166
164
|
};
|
|
167
165
|
},
|
|
@@ -11,8 +11,7 @@ var allVue = Vue;
|
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
13
13
|
|
|
14
|
-
var main_1 = require("../hooks/main");
|
|
15
|
-
|
|
14
|
+
var main_1 = require("../hooks/main");
|
|
16
15
|
|
|
17
16
|
var use_items_selection_1 = require("../hooks/use-items-selection");
|
|
18
17
|
|
|
@@ -11,8 +11,7 @@ var allVue = Vue;
|
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
13
13
|
|
|
14
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
15
|
-
|
|
14
|
+
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
16
15
|
|
|
17
16
|
var main_1 = require("../utils/main");
|
|
18
17
|
|
|
@@ -13,8 +13,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
13
13
|
|
|
14
14
|
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
15
15
|
|
|
16
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
17
|
-
|
|
16
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
18
17
|
|
|
19
18
|
var main_1 = require("../utils/main");
|
|
20
19
|
|
|
@@ -36,8 +36,7 @@ var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
|
|
|
36
36
|
|
|
37
37
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
38
38
|
|
|
39
|
-
var SchedulerFormEditor_1 = require("../editors/SchedulerFormEditor");
|
|
40
|
-
|
|
39
|
+
var SchedulerFormEditor_1 = require("../editors/SchedulerFormEditor");
|
|
41
40
|
|
|
42
41
|
var main_1 = require("../messages/main");
|
|
43
42
|
|
|
@@ -65,35 +65,31 @@ var BusinessHoursVue2 = {
|
|
|
65
65
|
h(kendo_vue_buttons_2.Button, {
|
|
66
66
|
tabIndex: -1,
|
|
67
67
|
attrs: _this.v3 ? undefined : {
|
|
68
|
-
tabIndex: -1
|
|
68
|
+
tabIndex: -1,
|
|
69
|
+
icon: 'clock'
|
|
69
70
|
},
|
|
71
|
+
icon: 'clock',
|
|
70
72
|
onClick: _this.handleShowWorkHoursClick,
|
|
71
73
|
on: _this.v3 ? undefined : {
|
|
72
74
|
"click": _this.handleShowWorkHoursClick
|
|
73
75
|
}
|
|
74
76
|
}, _this.v3 ? function () {
|
|
75
|
-
return [
|
|
76
|
-
|
|
77
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])];
|
|
78
|
-
} : [h("span", {
|
|
79
|
-
"class": "k-icon k-i-clock"
|
|
80
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])])];
|
|
77
|
+
return [_this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])];
|
|
78
|
+
} : [_this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])])];
|
|
81
79
|
} : [defaultSlot ? defaultSlot : h(kendo_vue_buttons_2.Button, {
|
|
82
80
|
tabIndex: -1,
|
|
83
81
|
attrs: _this.v3 ? undefined : {
|
|
84
|
-
tabIndex: -1
|
|
82
|
+
tabIndex: -1,
|
|
83
|
+
icon: 'clock'
|
|
85
84
|
},
|
|
85
|
+
icon: 'clock',
|
|
86
86
|
onClick: _this.handleShowWorkHoursClick,
|
|
87
87
|
on: _this.v3 ? undefined : {
|
|
88
88
|
"click": _this.handleShowWorkHoursClick
|
|
89
89
|
}
|
|
90
90
|
}, _this.v3 ? function () {
|
|
91
|
-
return [
|
|
92
|
-
|
|
93
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])];
|
|
94
|
-
} : [h("span", {
|
|
95
|
-
"class": "k-icon k-i-clock"
|
|
96
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])])]) : null;
|
|
91
|
+
return [_this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])];
|
|
92
|
+
} : [_this.localization.toLanguageString(_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay, main_1.messages[_this.ks.showWorkHours ? main_1.showFullDay : main_1.showWorkDay])])]) : null;
|
|
97
93
|
},
|
|
98
94
|
methods: {
|
|
99
95
|
handleShowWorkHoursClick: function handleShowWorkHoursClick(e) {
|
|
@@ -29,17 +29,19 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
29
29
|
|
|
30
30
|
var kendo_vue_dateinputs_1 = require("@progress/kendo-vue-dateinputs");
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
// useSchedulerDateFormatContext,
|
|
34
|
-
// useSchedulerDateRangeContext,
|
|
35
|
-
// useSchedulerDateContext,
|
|
36
|
-
// useSchedulerPropsContext
|
|
37
|
-
// } from '../../../context/SchedulerContext';
|
|
32
|
+
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
38
33
|
|
|
34
|
+
var kendo_vue_popup_1 = require("@progress/kendo-vue-popup");
|
|
39
35
|
|
|
40
|
-
var
|
|
36
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
37
|
+
|
|
38
|
+
var main_1 = require("../../../constants/main");
|
|
39
|
+
|
|
40
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
41
|
+
|
|
42
|
+
var main_2 = require("../../../utils/main");
|
|
41
43
|
|
|
42
|
-
var
|
|
44
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
43
45
|
|
|
44
46
|
var EMPTY_DATE_INPUT = function EMPTY_DATE_INPUT() {
|
|
45
47
|
return null;
|
|
@@ -51,14 +53,52 @@ var EMPTY_DATE_INPUT = function EMPTY_DATE_INPUT() {
|
|
|
51
53
|
|
|
52
54
|
var NavigationDatePickerVue2 = {
|
|
53
55
|
name: 'KendoNavigationDatePicker',
|
|
54
|
-
props:
|
|
56
|
+
props: {
|
|
55
57
|
value: [Date, Object]
|
|
56
|
-
}
|
|
58
|
+
},
|
|
57
59
|
inject: {
|
|
60
|
+
kendoIntlService: {
|
|
61
|
+
default: null
|
|
62
|
+
},
|
|
58
63
|
ks: {
|
|
59
64
|
default: null
|
|
60
65
|
}
|
|
61
66
|
},
|
|
67
|
+
created: function created() {
|
|
68
|
+
this.buttonId = (0, kendo_vue_common_1.guid)();
|
|
69
|
+
this._popupId = 'popup' + (0, kendo_vue_common_1.guid)();
|
|
70
|
+
},
|
|
71
|
+
data: function data() {
|
|
72
|
+
return {
|
|
73
|
+
show: false,
|
|
74
|
+
focused: false,
|
|
75
|
+
media: 'desktop'
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
mounted: function mounted() {
|
|
79
|
+
this.buttonRef = this.$refs.button;
|
|
80
|
+
this.calculateMedia();
|
|
81
|
+
this.observer = new window.ResizeObserver(this.calculateMedia);
|
|
82
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
83
|
+
},
|
|
84
|
+
destroyed: !!isV3 ? undefined : function () {
|
|
85
|
+
if (this.observer) {
|
|
86
|
+
this.observer.disconnect();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
unmounted: function unmounted() {
|
|
91
|
+
if (this.observer) {
|
|
92
|
+
this.observer.disconnect();
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
updated: function updated() {
|
|
96
|
+
if (this.show && this.focused) {
|
|
97
|
+
if (this.$refs.calendar) {
|
|
98
|
+
this.$refs.calendar.focus();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
62
102
|
// @ts-ignore
|
|
63
103
|
setup: !isV3 ? undefined : function () {
|
|
64
104
|
var v3 = !!isV3;
|
|
@@ -68,35 +108,169 @@ var NavigationDatePickerVue2 = {
|
|
|
68
108
|
},
|
|
69
109
|
// @ts-ignore
|
|
70
110
|
render: function render(createElement) {
|
|
111
|
+
var _this2 = this;
|
|
112
|
+
|
|
71
113
|
var h = gh || createElement;
|
|
72
114
|
var normalized = kendo_date_math_1.ZonedDate.fromLocalDate(this.$props.value || this.ks.currentDate, this.ks.timezone);
|
|
73
115
|
var value = (0, kendo_date_math_1.getDate)(normalized);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
116
|
+
var show = this.show;
|
|
117
|
+
var isMonthView = this.ks.dateRange.end.getTime() - this.ks.dateRange.start.getTime() > main_1.MS_PER_DAY * 27;
|
|
118
|
+
var intl = (0, kendo_vue_intl_1.provideIntlService)(this);
|
|
119
|
+
var text = intl.format(this.ks.dateFormat, isMonthView ? this.ks.currentDate : this.ks.dateRange.zonedStart, isMonthView ? this.ks.currentDate : this.ks.dateRange.zonedEnd.addDays(-1));
|
|
120
|
+
var shortText = intl.format(this.ks.shortDateFormat, isMonthView ? this.ks.currentDate : this.ks.dateRange.zonedStart, isMonthView ? this.ks.currentDate : this.ks.dateRange.zonedEnd.addDays(-1));
|
|
121
|
+
return (// @ts-ignore function children
|
|
122
|
+
h(kendo_vue_buttons_1.Button, {
|
|
123
|
+
ref: 'button',
|
|
124
|
+
id: this.buttonId,
|
|
80
125
|
attrs: this.v3 ? undefined : {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
126
|
+
id: this.buttonId,
|
|
127
|
+
fillMode: 'flat',
|
|
128
|
+
tabIndex: -1,
|
|
129
|
+
icon: "calendar"
|
|
84
130
|
},
|
|
85
|
-
|
|
86
|
-
value: value,
|
|
87
|
-
onChange: this.handleChange,
|
|
131
|
+
onFocus: this.onFocus,
|
|
88
132
|
on: this.v3 ? undefined : {
|
|
89
|
-
"
|
|
133
|
+
"focus": this.onFocus,
|
|
134
|
+
"blur": this.onBlur,
|
|
135
|
+
"click": this.handleClick
|
|
136
|
+
},
|
|
137
|
+
onBlur: this.onBlur,
|
|
138
|
+
fillMode: 'flat',
|
|
139
|
+
"class": 'k-nav-current',
|
|
140
|
+
tabIndex: -1,
|
|
141
|
+
icon: "calendar",
|
|
142
|
+
onClick: this.handleClick
|
|
143
|
+
}, this.v3 ? function () {
|
|
144
|
+
return [_this2.media === 'desktop' ? text : shortText, // @ts-ignore function children
|
|
145
|
+
h(kendo_vue_popup_1.Popup, {
|
|
146
|
+
id: _this2._popupId,
|
|
147
|
+
attrs: _this2.v3 ? undefined : {
|
|
148
|
+
id: _this2._popupId,
|
|
149
|
+
anchor: _this2.buttonId,
|
|
150
|
+
show: show
|
|
151
|
+
},
|
|
152
|
+
anchor: _this2.buttonId,
|
|
153
|
+
show: show
|
|
154
|
+
}, _this2.v3 ? function () {
|
|
155
|
+
return [h(kendo_vue_dateinputs_1.Calendar, {
|
|
156
|
+
ref: 'calendar',
|
|
157
|
+
onBlur: _this2.onCalendarBlur,
|
|
158
|
+
on: _this2.v3 ? undefined : {
|
|
159
|
+
"blur": _this2.onCalendarBlur,
|
|
160
|
+
"change": _this2.handleChange,
|
|
161
|
+
"keydown": _this2.calendarKeydown
|
|
162
|
+
},
|
|
163
|
+
onChange: _this2.handleChange,
|
|
164
|
+
onKeydown: _this2.calendarKeydown,
|
|
165
|
+
value: value,
|
|
166
|
+
attrs: _this2.v3 ? undefined : {
|
|
167
|
+
value: value
|
|
168
|
+
}
|
|
169
|
+
})];
|
|
170
|
+
} : [h(kendo_vue_dateinputs_1.Calendar, {
|
|
171
|
+
ref: 'calendar',
|
|
172
|
+
onBlur: _this2.onCalendarBlur,
|
|
173
|
+
on: _this2.v3 ? undefined : {
|
|
174
|
+
"blur": _this2.onCalendarBlur,
|
|
175
|
+
"change": _this2.handleChange,
|
|
176
|
+
"keydown": _this2.calendarKeydown
|
|
177
|
+
},
|
|
178
|
+
onChange: _this2.handleChange,
|
|
179
|
+
onKeydown: _this2.calendarKeydown,
|
|
180
|
+
value: value,
|
|
181
|
+
attrs: _this2.v3 ? undefined : {
|
|
182
|
+
value: value
|
|
183
|
+
}
|
|
184
|
+
})])];
|
|
185
|
+
} : [_this2.media === 'desktop' ? text : shortText, h(kendo_vue_popup_1.Popup, {
|
|
186
|
+
id: _this2._popupId,
|
|
187
|
+
attrs: _this2.v3 ? undefined : {
|
|
188
|
+
id: _this2._popupId,
|
|
189
|
+
anchor: _this2.buttonId,
|
|
190
|
+
show: show
|
|
191
|
+
},
|
|
192
|
+
anchor: _this2.buttonId,
|
|
193
|
+
show: show
|
|
194
|
+
}, _this2.v3 ? function () {
|
|
195
|
+
return [h(kendo_vue_dateinputs_1.Calendar, {
|
|
196
|
+
ref: 'calendar',
|
|
197
|
+
onBlur: _this2.onCalendarBlur,
|
|
198
|
+
on: _this2.v3 ? undefined : {
|
|
199
|
+
"blur": _this2.onCalendarBlur,
|
|
200
|
+
"change": _this2.handleChange,
|
|
201
|
+
"keydown": _this2.calendarKeydown
|
|
202
|
+
},
|
|
203
|
+
onChange: _this2.handleChange,
|
|
204
|
+
onKeydown: _this2.calendarKeydown,
|
|
205
|
+
value: value,
|
|
206
|
+
attrs: _this2.v3 ? undefined : {
|
|
207
|
+
value: value
|
|
208
|
+
}
|
|
209
|
+
})];
|
|
210
|
+
} : [h(kendo_vue_dateinputs_1.Calendar, {
|
|
211
|
+
ref: 'calendar',
|
|
212
|
+
onBlur: _this2.onCalendarBlur,
|
|
213
|
+
on: _this2.v3 ? undefined : {
|
|
214
|
+
"blur": _this2.onCalendarBlur,
|
|
215
|
+
"change": _this2.handleChange,
|
|
216
|
+
"keydown": _this2.calendarKeydown
|
|
217
|
+
},
|
|
218
|
+
onChange: _this2.handleChange,
|
|
219
|
+
onKeydown: _this2.calendarKeydown,
|
|
220
|
+
value: value,
|
|
221
|
+
attrs: _this2.v3 ? undefined : {
|
|
222
|
+
value: value
|
|
90
223
|
}
|
|
91
|
-
})
|
|
224
|
+
})])])
|
|
92
225
|
);
|
|
93
226
|
},
|
|
94
227
|
methods: {
|
|
95
228
|
handleChange: function handleChange(event) {
|
|
96
|
-
var normalizedValue = kendo_date_math_1.ZonedDate.fromUTCDate((0,
|
|
229
|
+
var normalizedValue = kendo_date_math_1.ZonedDate.fromUTCDate((0, main_2.toUTCDateTime)(event.value), this.ks.timezone);
|
|
97
230
|
this.$emit('change', __assign(__assign({}, event), {
|
|
98
231
|
value: normalizedValue
|
|
99
232
|
}));
|
|
233
|
+
this.hideAndFocusButton();
|
|
234
|
+
},
|
|
235
|
+
handleClick: function handleClick() {
|
|
236
|
+
this.show = !this.show;
|
|
237
|
+
},
|
|
238
|
+
onFocus: function onFocus() {
|
|
239
|
+
clearTimeout(this._blurTimeout);
|
|
240
|
+
this.focused = true;
|
|
241
|
+
},
|
|
242
|
+
onBlur: function onBlur() {
|
|
243
|
+
this.focused = false;
|
|
244
|
+
},
|
|
245
|
+
onCalendarBlur: function onCalendarBlur() {
|
|
246
|
+
clearTimeout(this._blurTimeout);
|
|
247
|
+
this.createBlurTimeout();
|
|
248
|
+
},
|
|
249
|
+
createBlurTimeout: function createBlurTimeout() {
|
|
250
|
+
var _this = this;
|
|
251
|
+
|
|
252
|
+
var that = this;
|
|
253
|
+
this._blurTimeout = setTimeout(function () {
|
|
254
|
+
_this.focused = false;
|
|
255
|
+
var isInPopup = document.activeElement && document.activeElement.closest("#".concat(that._popupId));
|
|
256
|
+
var isButtonActive = kendo_vue_common_1.canUseDOM && document.activeElement !== that.$refs.button.$el;
|
|
257
|
+
|
|
258
|
+
if (isButtonActive && !isInPopup) {
|
|
259
|
+
that.show = false;
|
|
260
|
+
}
|
|
261
|
+
}, 200);
|
|
262
|
+
},
|
|
263
|
+
calendarKeydown: function calendarKeydown(e) {
|
|
264
|
+
if (e.keyCode === kendo_vue_common_1.Keys.esc) {
|
|
265
|
+
this.hideAndFocusButton();
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
hideAndFocusButton: function hideAndFocusButton() {
|
|
269
|
+
this.show = false;
|
|
270
|
+
this.$refs.button.focus();
|
|
271
|
+
},
|
|
272
|
+
calculateMedia: function calculateMedia() {
|
|
273
|
+
this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
|
|
100
274
|
}
|
|
101
275
|
}
|
|
102
276
|
};
|
|
@@ -98,12 +98,12 @@ var SchedulerNavigationVue2 = {
|
|
|
98
98
|
return [h("span", {
|
|
99
99
|
"class": "k-button-text"
|
|
100
100
|
}, [h("span", {
|
|
101
|
-
"class": "k-icon k-i-
|
|
101
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
102
102
|
})])];
|
|
103
103
|
} : [h("span", {
|
|
104
104
|
"class": "k-button-text"
|
|
105
105
|
}, [h("span", {
|
|
106
|
-
"class": "k-icon k-i-
|
|
106
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
107
107
|
})])]), // @ts-ignore function children
|
|
108
108
|
h(kendo_vue_buttons_1.Button, {
|
|
109
109
|
role: "button",
|
|
@@ -125,12 +125,12 @@ var SchedulerNavigationVue2 = {
|
|
|
125
125
|
return [h("span", {
|
|
126
126
|
"class": "k-button-text"
|
|
127
127
|
}, [h("span", {
|
|
128
|
-
"class": "k-icon k-i-
|
|
128
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
129
129
|
})])];
|
|
130
130
|
} : [h("span", {
|
|
131
131
|
"class": "k-button-text"
|
|
132
132
|
}, [h("span", {
|
|
133
|
-
"class": "k-icon k-i-
|
|
133
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
134
134
|
})])])];
|
|
135
135
|
} : [h(kendo_vue_buttons_1.Button, {
|
|
136
136
|
role: "button",
|
|
@@ -169,12 +169,12 @@ var SchedulerNavigationVue2 = {
|
|
|
169
169
|
return [h("span", {
|
|
170
170
|
"class": "k-button-text"
|
|
171
171
|
}, [h("span", {
|
|
172
|
-
"class": "k-icon k-i-
|
|
172
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
173
173
|
})])];
|
|
174
174
|
} : [h("span", {
|
|
175
175
|
"class": "k-button-text"
|
|
176
176
|
}, [h("span", {
|
|
177
|
-
"class": "k-icon k-i-
|
|
177
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
178
178
|
})])]), h(kendo_vue_buttons_1.Button, {
|
|
179
179
|
role: "button",
|
|
180
180
|
attrs: _this.v3 ? undefined : {
|
|
@@ -195,12 +195,12 @@ var SchedulerNavigationVue2 = {
|
|
|
195
195
|
return [h("span", {
|
|
196
196
|
"class": "k-button-text"
|
|
197
197
|
}, [h("span", {
|
|
198
|
-
"class": "k-icon k-i-
|
|
198
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
199
199
|
})])];
|
|
200
200
|
} : [h("span", {
|
|
201
201
|
"class": "k-button-text"
|
|
202
202
|
}, [h("span", {
|
|
203
|
-
"class": "k-icon k-i-
|
|
203
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
204
204
|
})])])])];
|
|
205
205
|
} : [h(kendo_vue_buttons_1.ButtonGroup, {
|
|
206
206
|
"class": "k-scheduler-navigation"
|
|
@@ -242,12 +242,12 @@ var SchedulerNavigationVue2 = {
|
|
|
242
242
|
return [h("span", {
|
|
243
243
|
"class": "k-button-text"
|
|
244
244
|
}, [h("span", {
|
|
245
|
-
"class": "k-icon k-i-
|
|
245
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
246
246
|
})])];
|
|
247
247
|
} : [h("span", {
|
|
248
248
|
"class": "k-button-text"
|
|
249
249
|
}, [h("span", {
|
|
250
|
-
"class": "k-icon k-i-
|
|
250
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
251
251
|
})])]), h(kendo_vue_buttons_1.Button, {
|
|
252
252
|
role: "button",
|
|
253
253
|
attrs: _this.v3 ? undefined : {
|
|
@@ -268,12 +268,12 @@ var SchedulerNavigationVue2 = {
|
|
|
268
268
|
return [h("span", {
|
|
269
269
|
"class": "k-button-text"
|
|
270
270
|
}, [h("span", {
|
|
271
|
-
"class": "k-icon k-i-
|
|
271
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
272
272
|
})])];
|
|
273
273
|
} : [h("span", {
|
|
274
274
|
"class": "k-button-text"
|
|
275
275
|
}, [h("span", {
|
|
276
|
-
"class": "k-icon k-i-
|
|
276
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
277
277
|
})])])];
|
|
278
278
|
} : [h(kendo_vue_buttons_1.Button, {
|
|
279
279
|
role: "button",
|
|
@@ -312,12 +312,12 @@ var SchedulerNavigationVue2 = {
|
|
|
312
312
|
return [h("span", {
|
|
313
313
|
"class": "k-button-text"
|
|
314
314
|
}, [h("span", {
|
|
315
|
-
"class": "k-icon k-i-
|
|
315
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
316
316
|
})])];
|
|
317
317
|
} : [h("span", {
|
|
318
318
|
"class": "k-button-text"
|
|
319
319
|
}, [h("span", {
|
|
320
|
-
"class": "k-icon k-i-
|
|
320
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
321
321
|
})])]), h(kendo_vue_buttons_1.Button, {
|
|
322
322
|
role: "button",
|
|
323
323
|
attrs: _this.v3 ? undefined : {
|
|
@@ -338,12 +338,12 @@ var SchedulerNavigationVue2 = {
|
|
|
338
338
|
return [h("span", {
|
|
339
339
|
"class": "k-button-text"
|
|
340
340
|
}, [h("span", {
|
|
341
|
-
"class": "k-icon k-i-
|
|
341
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
342
342
|
})])];
|
|
343
343
|
} : [h("span", {
|
|
344
344
|
"class": "k-button-text"
|
|
345
345
|
}, [h("span", {
|
|
346
|
-
"class": "k-icon k-i-
|
|
346
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
347
347
|
})])])])])
|
|
348
348
|
);
|
|
349
349
|
},
|
|
@@ -25,9 +25,7 @@ var Vue = require("vue");
|
|
|
25
25
|
|
|
26
26
|
var allVue = Vue;
|
|
27
27
|
var gh = allVue.h;
|
|
28
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
29
|
-
// import { useSchedulerActiveViewContext } from '../../../context';
|
|
30
|
-
// import { useLocalization } from '@progress/kendo-vue-intl';
|
|
28
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
31
29
|
|
|
32
30
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
33
31
|
|
|
@@ -139,10 +137,10 @@ var ViewSelectorListVue2 = {
|
|
|
139
137
|
text: activeView.title || activeName
|
|
140
138
|
}, this.v3 ? function () {
|
|
141
139
|
return [h("span", {
|
|
142
|
-
"class": "k-icon k-i-
|
|
140
|
+
"class": "k-icon k-i-caret-alt-down"
|
|
143
141
|
})];
|
|
144
142
|
} : [h("span", {
|
|
145
|
-
"class": "k-icon k-i-
|
|
143
|
+
"class": "k-icon k-i-caret-alt-down"
|
|
146
144
|
})]), this.media === 'desktop' && // @ts-ignore function children
|
|
147
145
|
h(kendo_vue_buttons_1.ButtonGroup, {
|
|
148
146
|
"class": "k-scheduler-views"
|
|
@@ -37,8 +37,7 @@ var kendo_vue_inputs_1 = require("@progress/kendo-vue-inputs");
|
|
|
37
37
|
|
|
38
38
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
39
39
|
|
|
40
|
-
var main_1 = require("../messages/main");
|
|
41
|
-
|
|
40
|
+
var main_1 = require("../messages/main");
|
|
42
41
|
|
|
43
42
|
var FilterableComboBox_1 = require("./FilterableComboBox");
|
|
44
43
|
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSchedulerSlot = void 0;
|
|
7
|
-
// import { COLLECTION_ACTION } from '@progress/kendo-vue-common';
|
|
8
|
-
|
|
6
|
+
exports.useSchedulerSlot = void 0;
|
|
9
7
|
/** @hidden */
|
|
10
8
|
|
|
11
9
|
var useSchedulerSlot = function useSchedulerSlot(_props) {
|
|
@@ -9,8 +9,7 @@ var utils_1 = require("../views/common/utils");
|
|
|
9
9
|
|
|
10
10
|
var main_1 = require("../constants/main");
|
|
11
11
|
|
|
12
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
13
|
-
|
|
12
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
13
|
/** @hidden */
|
|
15
14
|
|
|
16
15
|
|