@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
package/dist/es/Scheduler.js
CHANGED
|
@@ -40,8 +40,7 @@ import { SchedulerFooter } from './components/footer/SchedulerFooter';
|
|
|
40
40
|
import { ToolbarSpacer } from '@progress/kendo-vue-buttons';
|
|
41
41
|
import { NavigationDatePicker } from './components/header/navigation/NavigationDatePicker';
|
|
42
42
|
import { BusinessHours } from './components/footer/bussiness-hours/BusinessHours';
|
|
43
|
-
import { DayView } from './views/day/DayView';
|
|
44
|
-
|
|
43
|
+
import { DayView } from './views/day/DayView';
|
|
45
44
|
import { validatePackage } from '@progress/kendo-vue-common';
|
|
46
45
|
import { packageMetadata } from './package-metadata';
|
|
47
46
|
import { AgendaView, MonthView, WeekView, WorkWeekView } from './main';
|
|
@@ -136,7 +135,6 @@ var SchedulerVue2 = {
|
|
|
136
135
|
'k-rtl': this.$props.rtl !== undefined ? this.$props.rtl : this.dir === 'rtl',
|
|
137
136
|
'k-widget': true,
|
|
138
137
|
'k-scheduler': true,
|
|
139
|
-
'k-scheduler-flex': true,
|
|
140
138
|
'k-floatwrap': true
|
|
141
139
|
};
|
|
142
140
|
},
|
|
@@ -3,8 +3,7 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { useCellSync, dispatchFocusedItems, dispatchFocusedSlots } from '../hooks/main';
|
|
7
|
-
|
|
6
|
+
import { useCellSync, dispatchFocusedItems, dispatchFocusedSlots } from '../hooks/main';
|
|
8
7
|
import { ITEMS_SELECT_ACTION, dispatchSelectedItems } from '../hooks/use-items-selection';
|
|
9
8
|
import { dispatchSelectedSlots, SLOTS_SELECT_ACTION } from '../hooks/use-slots-selection';
|
|
10
9
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
@@ -3,8 +3,7 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { cloneDate } from '@progress/kendo-date-math';
|
|
7
|
-
|
|
6
|
+
import { cloneDate } from '@progress/kendo-date-math';
|
|
8
7
|
import { first, isInTimeRange, intersects } from '../utils/main';
|
|
9
8
|
import { getRect } from '../views/common/utils';
|
|
10
9
|
|
|
@@ -4,8 +4,7 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
7
|
-
import { classNames } from '@progress/kendo-vue-common';
|
|
8
|
-
|
|
7
|
+
import { classNames } from '@progress/kendo-vue-common';
|
|
9
8
|
import { first, isInTimeRange, intersects } from '../utils/main';
|
|
10
9
|
import { getRect } from '../views/common/utils';
|
|
11
10
|
|
|
@@ -24,8 +24,7 @@ import { SchedulerActionButtons } from './SchedulerActionButtons';
|
|
|
24
24
|
import { Form } from '@progress/kendo-vue-form';
|
|
25
25
|
import { Dialog as KendoDialog } from '@progress/kendo-vue-dialogs';
|
|
26
26
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
27
|
-
import { SchedulerFormEditor } from '../editors/SchedulerFormEditor';
|
|
28
|
-
|
|
27
|
+
import { SchedulerFormEditor } from '../editors/SchedulerFormEditor';
|
|
29
28
|
import { messages, editorValidationRequired, editorValidationStart, editorValidationEnd, editorSave, editorCancel, editorTitle } from '../messages/main';
|
|
30
29
|
import { getTemplate, guid } from '@progress/kendo-vue-common';
|
|
31
30
|
/**
|
|
@@ -52,35 +52,31 @@ var BusinessHoursVue2 = {
|
|
|
52
52
|
h(Button, {
|
|
53
53
|
tabIndex: -1,
|
|
54
54
|
attrs: _this.v3 ? undefined : {
|
|
55
|
-
tabIndex: -1
|
|
55
|
+
tabIndex: -1,
|
|
56
|
+
icon: 'clock'
|
|
56
57
|
},
|
|
58
|
+
icon: 'clock',
|
|
57
59
|
onClick: _this.handleShowWorkHoursClick,
|
|
58
60
|
on: _this.v3 ? undefined : {
|
|
59
61
|
"click": _this.handleShowWorkHoursClick
|
|
60
62
|
}
|
|
61
63
|
}, _this.v3 ? function () {
|
|
62
|
-
return [
|
|
63
|
-
|
|
64
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
65
|
-
} : [h("span", {
|
|
66
|
-
"class": "k-icon k-i-clock"
|
|
67
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])])];
|
|
64
|
+
return [_this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
65
|
+
} : [_this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])])];
|
|
68
66
|
} : [defaultSlot ? defaultSlot : h(Button, {
|
|
69
67
|
tabIndex: -1,
|
|
70
68
|
attrs: _this.v3 ? undefined : {
|
|
71
|
-
tabIndex: -1
|
|
69
|
+
tabIndex: -1,
|
|
70
|
+
icon: 'clock'
|
|
72
71
|
},
|
|
72
|
+
icon: 'clock',
|
|
73
73
|
onClick: _this.handleShowWorkHoursClick,
|
|
74
74
|
on: _this.v3 ? undefined : {
|
|
75
75
|
"click": _this.handleShowWorkHoursClick
|
|
76
76
|
}
|
|
77
77
|
}, _this.v3 ? function () {
|
|
78
|
-
return [
|
|
79
|
-
|
|
80
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
81
|
-
} : [h("span", {
|
|
82
|
-
"class": "k-icon k-i-clock"
|
|
83
|
-
}), _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])])]) : null;
|
|
78
|
+
return [_this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
79
|
+
} : [_this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])])]) : null;
|
|
84
80
|
},
|
|
85
81
|
methods: {
|
|
86
82
|
handleShowWorkHoursClick: function handleShowWorkHoursClick(e) {
|
|
@@ -19,16 +19,14 @@ 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
|
-
import {
|
|
23
|
-
import { DatePickerToggleButton } from './DatePickerToggleButton'; // import {
|
|
24
|
-
// useSchedulerDateFormatContext,
|
|
25
|
-
// useSchedulerDateRangeContext,
|
|
26
|
-
// useSchedulerDateContext,
|
|
27
|
-
// useSchedulerPropsContext
|
|
28
|
-
// } from '../../../context/SchedulerContext';
|
|
29
|
-
|
|
22
|
+
import { Calendar } from '@progress/kendo-vue-dateinputs';
|
|
30
23
|
import { ZonedDate, getDate } from '@progress/kendo-date-math';
|
|
24
|
+
import { Popup } from '@progress/kendo-vue-popup';
|
|
25
|
+
import { provideIntlService } from '@progress/kendo-vue-intl';
|
|
26
|
+
import { MS_PER_DAY } from '../../../constants/main';
|
|
27
|
+
import { Button } from '@progress/kendo-vue-buttons';
|
|
31
28
|
import { toUTCDateTime } from '../../../utils/main';
|
|
29
|
+
import { canUseDOM, guid, Keys } from '@progress/kendo-vue-common';
|
|
32
30
|
|
|
33
31
|
var EMPTY_DATE_INPUT = function EMPTY_DATE_INPUT() {
|
|
34
32
|
return null;
|
|
@@ -40,14 +38,52 @@ var EMPTY_DATE_INPUT = function EMPTY_DATE_INPUT() {
|
|
|
40
38
|
|
|
41
39
|
var NavigationDatePickerVue2 = {
|
|
42
40
|
name: 'KendoNavigationDatePicker',
|
|
43
|
-
props:
|
|
41
|
+
props: {
|
|
44
42
|
value: [Date, Object]
|
|
45
|
-
}
|
|
43
|
+
},
|
|
46
44
|
inject: {
|
|
45
|
+
kendoIntlService: {
|
|
46
|
+
default: null
|
|
47
|
+
},
|
|
47
48
|
ks: {
|
|
48
49
|
default: null
|
|
49
50
|
}
|
|
50
51
|
},
|
|
52
|
+
created: function created() {
|
|
53
|
+
this.buttonId = guid();
|
|
54
|
+
this._popupId = 'popup' + guid();
|
|
55
|
+
},
|
|
56
|
+
data: function data() {
|
|
57
|
+
return {
|
|
58
|
+
show: false,
|
|
59
|
+
focused: false,
|
|
60
|
+
media: 'desktop'
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
mounted: function mounted() {
|
|
64
|
+
this.buttonRef = this.$refs.button;
|
|
65
|
+
this.calculateMedia();
|
|
66
|
+
this.observer = new window.ResizeObserver(this.calculateMedia);
|
|
67
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
68
|
+
},
|
|
69
|
+
destroyed: !!isV3 ? undefined : function () {
|
|
70
|
+
if (this.observer) {
|
|
71
|
+
this.observer.disconnect();
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
unmounted: function unmounted() {
|
|
76
|
+
if (this.observer) {
|
|
77
|
+
this.observer.disconnect();
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
updated: function updated() {
|
|
81
|
+
if (this.show && this.focused) {
|
|
82
|
+
if (this.$refs.calendar) {
|
|
83
|
+
this.$refs.calendar.focus();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
51
87
|
// @ts-ignore
|
|
52
88
|
setup: !isV3 ? undefined : function () {
|
|
53
89
|
var v3 = !!isV3;
|
|
@@ -57,27 +93,120 @@ var NavigationDatePickerVue2 = {
|
|
|
57
93
|
},
|
|
58
94
|
// @ts-ignore
|
|
59
95
|
render: function render(createElement) {
|
|
96
|
+
var _this2 = this;
|
|
97
|
+
|
|
60
98
|
var h = gh || createElement;
|
|
61
99
|
var normalized = ZonedDate.fromLocalDate(this.$props.value || this.ks.currentDate, this.ks.timezone);
|
|
62
100
|
var value = getDate(normalized);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
101
|
+
var show = this.show;
|
|
102
|
+
var isMonthView = this.ks.dateRange.end.getTime() - this.ks.dateRange.start.getTime() > MS_PER_DAY * 27;
|
|
103
|
+
var intl = provideIntlService(this);
|
|
104
|
+
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));
|
|
105
|
+
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));
|
|
106
|
+
return (// @ts-ignore function children
|
|
107
|
+
h(Button, {
|
|
108
|
+
ref: 'button',
|
|
109
|
+
id: this.buttonId,
|
|
69
110
|
attrs: this.v3 ? undefined : {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
111
|
+
id: this.buttonId,
|
|
112
|
+
fillMode: 'flat',
|
|
113
|
+
tabIndex: -1,
|
|
114
|
+
icon: "calendar"
|
|
73
115
|
},
|
|
74
|
-
|
|
75
|
-
value: value,
|
|
76
|
-
onChange: this.handleChange,
|
|
116
|
+
onFocus: this.onFocus,
|
|
77
117
|
on: this.v3 ? undefined : {
|
|
78
|
-
"
|
|
118
|
+
"focus": this.onFocus,
|
|
119
|
+
"blur": this.onBlur,
|
|
120
|
+
"click": this.handleClick
|
|
121
|
+
},
|
|
122
|
+
onBlur: this.onBlur,
|
|
123
|
+
fillMode: 'flat',
|
|
124
|
+
"class": 'k-nav-current',
|
|
125
|
+
tabIndex: -1,
|
|
126
|
+
icon: "calendar",
|
|
127
|
+
onClick: this.handleClick
|
|
128
|
+
}, this.v3 ? function () {
|
|
129
|
+
return [_this2.media === 'desktop' ? text : shortText, // @ts-ignore function children
|
|
130
|
+
h(Popup, {
|
|
131
|
+
id: _this2._popupId,
|
|
132
|
+
attrs: _this2.v3 ? undefined : {
|
|
133
|
+
id: _this2._popupId,
|
|
134
|
+
anchor: _this2.buttonId,
|
|
135
|
+
show: show
|
|
136
|
+
},
|
|
137
|
+
anchor: _this2.buttonId,
|
|
138
|
+
show: show
|
|
139
|
+
}, _this2.v3 ? function () {
|
|
140
|
+
return [h(Calendar, {
|
|
141
|
+
ref: 'calendar',
|
|
142
|
+
onBlur: _this2.onCalendarBlur,
|
|
143
|
+
on: _this2.v3 ? undefined : {
|
|
144
|
+
"blur": _this2.onCalendarBlur,
|
|
145
|
+
"change": _this2.handleChange,
|
|
146
|
+
"keydown": _this2.calendarKeydown
|
|
147
|
+
},
|
|
148
|
+
onChange: _this2.handleChange,
|
|
149
|
+
onKeydown: _this2.calendarKeydown,
|
|
150
|
+
value: value,
|
|
151
|
+
attrs: _this2.v3 ? undefined : {
|
|
152
|
+
value: value
|
|
153
|
+
}
|
|
154
|
+
})];
|
|
155
|
+
} : [h(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
|
+
} : [_this2.media === 'desktop' ? text : shortText, h(Popup, {
|
|
171
|
+
id: _this2._popupId,
|
|
172
|
+
attrs: _this2.v3 ? undefined : {
|
|
173
|
+
id: _this2._popupId,
|
|
174
|
+
anchor: _this2.buttonId,
|
|
175
|
+
show: show
|
|
176
|
+
},
|
|
177
|
+
anchor: _this2.buttonId,
|
|
178
|
+
show: show
|
|
179
|
+
}, _this2.v3 ? function () {
|
|
180
|
+
return [h(Calendar, {
|
|
181
|
+
ref: 'calendar',
|
|
182
|
+
onBlur: _this2.onCalendarBlur,
|
|
183
|
+
on: _this2.v3 ? undefined : {
|
|
184
|
+
"blur": _this2.onCalendarBlur,
|
|
185
|
+
"change": _this2.handleChange,
|
|
186
|
+
"keydown": _this2.calendarKeydown
|
|
187
|
+
},
|
|
188
|
+
onChange: _this2.handleChange,
|
|
189
|
+
onKeydown: _this2.calendarKeydown,
|
|
190
|
+
value: value,
|
|
191
|
+
attrs: _this2.v3 ? undefined : {
|
|
192
|
+
value: value
|
|
193
|
+
}
|
|
194
|
+
})];
|
|
195
|
+
} : [h(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
|
|
79
208
|
}
|
|
80
|
-
})
|
|
209
|
+
})])])
|
|
81
210
|
);
|
|
82
211
|
},
|
|
83
212
|
methods: {
|
|
@@ -86,6 +215,47 @@ var NavigationDatePickerVue2 = {
|
|
|
86
215
|
this.$emit('change', __assign(__assign({}, event), {
|
|
87
216
|
value: normalizedValue
|
|
88
217
|
}));
|
|
218
|
+
this.hideAndFocusButton();
|
|
219
|
+
},
|
|
220
|
+
handleClick: function handleClick() {
|
|
221
|
+
this.show = !this.show;
|
|
222
|
+
},
|
|
223
|
+
onFocus: function onFocus() {
|
|
224
|
+
clearTimeout(this._blurTimeout);
|
|
225
|
+
this.focused = true;
|
|
226
|
+
},
|
|
227
|
+
onBlur: function onBlur() {
|
|
228
|
+
this.focused = false;
|
|
229
|
+
},
|
|
230
|
+
onCalendarBlur: function onCalendarBlur() {
|
|
231
|
+
clearTimeout(this._blurTimeout);
|
|
232
|
+
this.createBlurTimeout();
|
|
233
|
+
},
|
|
234
|
+
createBlurTimeout: function createBlurTimeout() {
|
|
235
|
+
var _this = this;
|
|
236
|
+
|
|
237
|
+
var that = this;
|
|
238
|
+
this._blurTimeout = setTimeout(function () {
|
|
239
|
+
_this.focused = false;
|
|
240
|
+
var isInPopup = document.activeElement && document.activeElement.closest("#".concat(that._popupId));
|
|
241
|
+
var isButtonActive = canUseDOM && document.activeElement !== that.$refs.button.$el;
|
|
242
|
+
|
|
243
|
+
if (isButtonActive && !isInPopup) {
|
|
244
|
+
that.show = false;
|
|
245
|
+
}
|
|
246
|
+
}, 200);
|
|
247
|
+
},
|
|
248
|
+
calendarKeydown: function calendarKeydown(e) {
|
|
249
|
+
if (e.keyCode === Keys.esc) {
|
|
250
|
+
this.hideAndFocusButton();
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
hideAndFocusButton: function hideAndFocusButton() {
|
|
254
|
+
this.show = false;
|
|
255
|
+
this.$refs.button.focus();
|
|
256
|
+
},
|
|
257
|
+
calculateMedia: function calculateMedia() {
|
|
258
|
+
this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
|
|
89
259
|
}
|
|
90
260
|
}
|
|
91
261
|
};
|
|
@@ -85,12 +85,12 @@ var SchedulerNavigationVue2 = {
|
|
|
85
85
|
return [h("span", {
|
|
86
86
|
"class": "k-button-text"
|
|
87
87
|
}, [h("span", {
|
|
88
|
-
"class": "k-icon k-i-
|
|
88
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
89
89
|
})])];
|
|
90
90
|
} : [h("span", {
|
|
91
91
|
"class": "k-button-text"
|
|
92
92
|
}, [h("span", {
|
|
93
|
-
"class": "k-icon k-i-
|
|
93
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
94
94
|
})])]), // @ts-ignore function children
|
|
95
95
|
h(Button, {
|
|
96
96
|
role: "button",
|
|
@@ -112,12 +112,12 @@ var SchedulerNavigationVue2 = {
|
|
|
112
112
|
return [h("span", {
|
|
113
113
|
"class": "k-button-text"
|
|
114
114
|
}, [h("span", {
|
|
115
|
-
"class": "k-icon k-i-
|
|
115
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
116
116
|
})])];
|
|
117
117
|
} : [h("span", {
|
|
118
118
|
"class": "k-button-text"
|
|
119
119
|
}, [h("span", {
|
|
120
|
-
"class": "k-icon k-i-
|
|
120
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
121
121
|
})])])];
|
|
122
122
|
} : [h(Button, {
|
|
123
123
|
role: "button",
|
|
@@ -156,12 +156,12 @@ var SchedulerNavigationVue2 = {
|
|
|
156
156
|
return [h("span", {
|
|
157
157
|
"class": "k-button-text"
|
|
158
158
|
}, [h("span", {
|
|
159
|
-
"class": "k-icon k-i-
|
|
159
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
160
160
|
})])];
|
|
161
161
|
} : [h("span", {
|
|
162
162
|
"class": "k-button-text"
|
|
163
163
|
}, [h("span", {
|
|
164
|
-
"class": "k-icon k-i-
|
|
164
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
165
165
|
})])]), h(Button, {
|
|
166
166
|
role: "button",
|
|
167
167
|
attrs: _this.v3 ? undefined : {
|
|
@@ -182,12 +182,12 @@ var SchedulerNavigationVue2 = {
|
|
|
182
182
|
return [h("span", {
|
|
183
183
|
"class": "k-button-text"
|
|
184
184
|
}, [h("span", {
|
|
185
|
-
"class": "k-icon k-i-
|
|
185
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
186
186
|
})])];
|
|
187
187
|
} : [h("span", {
|
|
188
188
|
"class": "k-button-text"
|
|
189
189
|
}, [h("span", {
|
|
190
|
-
"class": "k-icon k-i-
|
|
190
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
191
191
|
})])])])];
|
|
192
192
|
} : [h(ButtonGroup, {
|
|
193
193
|
"class": "k-scheduler-navigation"
|
|
@@ -229,12 +229,12 @@ var SchedulerNavigationVue2 = {
|
|
|
229
229
|
return [h("span", {
|
|
230
230
|
"class": "k-button-text"
|
|
231
231
|
}, [h("span", {
|
|
232
|
-
"class": "k-icon k-i-
|
|
232
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
233
233
|
})])];
|
|
234
234
|
} : [h("span", {
|
|
235
235
|
"class": "k-button-text"
|
|
236
236
|
}, [h("span", {
|
|
237
|
-
"class": "k-icon k-i-
|
|
237
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
238
238
|
})])]), h(Button, {
|
|
239
239
|
role: "button",
|
|
240
240
|
attrs: _this.v3 ? undefined : {
|
|
@@ -255,12 +255,12 @@ var SchedulerNavigationVue2 = {
|
|
|
255
255
|
return [h("span", {
|
|
256
256
|
"class": "k-button-text"
|
|
257
257
|
}, [h("span", {
|
|
258
|
-
"class": "k-icon k-i-
|
|
258
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
259
259
|
})])];
|
|
260
260
|
} : [h("span", {
|
|
261
261
|
"class": "k-button-text"
|
|
262
262
|
}, [h("span", {
|
|
263
|
-
"class": "k-icon k-i-
|
|
263
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
264
264
|
})])])];
|
|
265
265
|
} : [h(Button, {
|
|
266
266
|
role: "button",
|
|
@@ -299,12 +299,12 @@ var SchedulerNavigationVue2 = {
|
|
|
299
299
|
return [h("span", {
|
|
300
300
|
"class": "k-button-text"
|
|
301
301
|
}, [h("span", {
|
|
302
|
-
"class": "k-icon k-i-
|
|
302
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
303
303
|
})])];
|
|
304
304
|
} : [h("span", {
|
|
305
305
|
"class": "k-button-text"
|
|
306
306
|
}, [h("span", {
|
|
307
|
-
"class": "k-icon k-i-
|
|
307
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
308
308
|
})])]), h(Button, {
|
|
309
309
|
role: "button",
|
|
310
310
|
attrs: _this.v3 ? undefined : {
|
|
@@ -325,12 +325,12 @@ var SchedulerNavigationVue2 = {
|
|
|
325
325
|
return [h("span", {
|
|
326
326
|
"class": "k-button-text"
|
|
327
327
|
}, [h("span", {
|
|
328
|
-
"class": "k-icon k-i-
|
|
328
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
329
329
|
})])];
|
|
330
330
|
} : [h("span", {
|
|
331
331
|
"class": "k-button-text"
|
|
332
332
|
}, [h("span", {
|
|
333
|
-
"class": "k-icon k-i-
|
|
333
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
334
334
|
})])])])])
|
|
335
335
|
);
|
|
336
336
|
},
|
|
@@ -18,10 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
22
|
-
// import { useSchedulerActiveViewContext } from '../../../context';
|
|
23
|
-
// import { useLocalization } from '@progress/kendo-vue-intl';
|
|
24
|
-
|
|
21
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
25
22
|
import { DropDownButton, ButtonGroup } from '@progress/kendo-vue-buttons';
|
|
26
23
|
import { ViewSelectorItem } from './ViewSelectorItem';
|
|
27
24
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
@@ -128,10 +125,10 @@ var ViewSelectorListVue2 = {
|
|
|
128
125
|
text: activeView.title || activeName
|
|
129
126
|
}, this.v3 ? function () {
|
|
130
127
|
return [h("span", {
|
|
131
|
-
"class": "k-icon k-i-
|
|
128
|
+
"class": "k-icon k-i-caret-alt-down"
|
|
132
129
|
})];
|
|
133
130
|
} : [h("span", {
|
|
134
|
-
"class": "k-icon k-i-
|
|
131
|
+
"class": "k-icon k-i-caret-alt-down"
|
|
135
132
|
})]), this.media === 'desktop' && // @ts-ignore function children
|
|
136
133
|
h(ButtonGroup, {
|
|
137
134
|
"class": "k-scheduler-views"
|
|
@@ -23,8 +23,7 @@ import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
|
23
23
|
import { Field, FormElement } from '@progress/kendo-vue-form';
|
|
24
24
|
import { Input as KInput, Checkbox, TextArea } from '@progress/kendo-vue-inputs';
|
|
25
25
|
import { getListeners, templateRendering } from '@progress/kendo-vue-common';
|
|
26
|
-
import { messages, editorEventTitle, editorEventStart, editorEventEnd, editorEventDescription, editorEventAllDay, editorEventTimeZone, editorEventSeparateTimeZones, editorEventStartTimeZone, editorEventEndTimeZone, editorValidationRequired } from '../messages/main';
|
|
27
|
-
|
|
26
|
+
import { messages, editorEventTitle, editorEventStart, editorEventEnd, editorEventDescription, editorEventAllDay, editorEventTimeZone, editorEventSeparateTimeZones, editorEventStartTimeZone, editorEventEndTimeZone, editorValidationRequired } from '../messages/main';
|
|
28
27
|
import { FilterableComboBox } from './FilterableComboBox';
|
|
29
28
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
30
29
|
import { RecurrenceEditor as KendoRecurrenceEditor } from '../recurrence/RecurrenceEditor';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getPadding, setRect, getRect } from '../views/common/utils';
|
|
2
2
|
import { BORDER_WIDTH } from '../constants/main';
|
|
3
|
-
import { isObject } from '@progress/kendo-vue-common';
|
|
4
|
-
|
|
3
|
+
import { isObject } from '@progress/kendo-vue-common';
|
|
5
4
|
/** @hidden */
|
|
6
5
|
|
|
7
6
|
export var useSlotExpand = function useSlotExpand(slot, _scheduler, config) {
|
|
@@ -308,11 +308,11 @@ var SchedulerItemVue2 = {
|
|
|
308
308
|
}, [!_this2.$props.resizeHint && h("span", {
|
|
309
309
|
"class": "k-event-actions"
|
|
310
310
|
}, [_this2.$props.tail && h("span", {
|
|
311
|
-
"class": "k-icon k-i-
|
|
311
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
312
312
|
}), _this2.$props.isRecurring && !_this2.$props.isException && h("span", {
|
|
313
|
-
"class": "k-icon k-i-
|
|
313
|
+
"class": "k-icon k-i-arrow-rotate-cw"
|
|
314
314
|
}), !_this2.$props.isRecurring && _this2.$props.isException && h("span", {
|
|
315
|
-
"class": "k-icon k-i-
|
|
315
|
+
"class": "k-icon k-i-arrows-no-repeat"
|
|
316
316
|
})]), _this2.formItem && !_this2.showOccurrenceDialog && _this2.currentEditable.edit && h(SchedulerForm, {
|
|
317
317
|
dataItem: _this2.formItem,
|
|
318
318
|
attrs: _this2.v3 ? undefined : {
|
|
@@ -375,7 +375,7 @@ var SchedulerItemVue2 = {
|
|
|
375
375
|
}, [h("span", {
|
|
376
376
|
"class": "k-icon k-i-close"
|
|
377
377
|
})]), _this2.$props.head && h("span", {
|
|
378
|
-
"class": "k-icon k-i-
|
|
378
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
379
379
|
})]), _this2.currentEditable.resize && _this2.$props.vertical && [// @ts-ignore function children
|
|
380
380
|
h(Draggable, {
|
|
381
381
|
onPress: _this2.handleResizePress,
|
|
@@ -501,11 +501,11 @@ var SchedulerItemVue2 = {
|
|
|
501
501
|
}, [!_this2.$props.resizeHint && h("span", {
|
|
502
502
|
"class": "k-event-actions"
|
|
503
503
|
}, [_this2.$props.tail && h("span", {
|
|
504
|
-
"class": "k-icon k-i-
|
|
504
|
+
"class": "k-icon k-i-caret-alt-left"
|
|
505
505
|
}), _this2.$props.isRecurring && !_this2.$props.isException && h("span", {
|
|
506
|
-
"class": "k-icon k-i-
|
|
506
|
+
"class": "k-icon k-i-arrow-rotate-cw"
|
|
507
507
|
}), !_this2.$props.isRecurring && _this2.$props.isException && h("span", {
|
|
508
|
-
"class": "k-icon k-i-
|
|
508
|
+
"class": "k-icon k-i-arrows-no-repeat"
|
|
509
509
|
})]), _this2.formItem && !_this2.showOccurrenceDialog && _this2.currentEditable.edit && h(SchedulerForm, {
|
|
510
510
|
dataItem: _this2.formItem,
|
|
511
511
|
attrs: _this2.v3 ? undefined : {
|
|
@@ -568,7 +568,7 @@ var SchedulerItemVue2 = {
|
|
|
568
568
|
}, [h("span", {
|
|
569
569
|
"class": "k-icon k-i-close"
|
|
570
570
|
})]), _this2.$props.head && h("span", {
|
|
571
|
-
"class": "k-icon k-i-
|
|
571
|
+
"class": "k-icon k-i-caret-alt-right"
|
|
572
572
|
})]), _this2.currentEditable.resize && _this2.$props.vertical && [h(Draggable, {
|
|
573
573
|
onPress: _this2.handleResizePress,
|
|
574
574
|
on: _this2.v3 ? undefined : {
|
|
@@ -8,10 +8,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
8
8
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
import { clone } from '@progress/kendo-vue-common';
|
|
12
|
-
// useSchedulerViewSelectedItemsContext } from '../../context';
|
|
13
|
-
// import { useControlledState } from '../../hooks/useControlledState';
|
|
14
|
-
|
|
11
|
+
import { clone } from '@progress/kendo-vue-common';
|
|
15
12
|
import { DATA_ACTION } from '../../main';
|
|
16
13
|
import { getField, setField, slotDive } from '../../utils/main';
|
|
17
14
|
/**
|
|
@@ -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';
|
|
24
23
|
import { VerticalResourceIterator } from '../common/VerticalResourceIterator';
|
|
25
24
|
import { useCellSync } from '../../hooks/main';
|
|
@@ -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, {
|