@progress/kendo-vue-scheduler 3.7.4-dev.202211041243 → 3.7.4-dev.202211280833
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 -1
- package/dist/es/components/header/navigation/NavigationDatePicker.js +6 -4
- package/dist/es/items/SchedulerViewItem.js +9 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerSlot.js +9 -1
- package/dist/es/slots/SchedulerViewSlot.js +5 -3
- package/dist/es/views/agenda/AgendaViewBody.js +10 -6
- package/dist/es/views/common/HorizontalResourceIterator.js +3 -3
- package/dist/es/views/common/VerticalResourceIterator.js +3 -2
- package/dist/es/views/common/utils.js +7 -0
- package/dist/es/views/day/DayViewAllDaySlots.js +5 -5
- package/dist/es/views/day/MultiDayView.js +10 -6
- package/dist/es/views/month/MonthView.js +6 -6
- package/dist/es/views/time/MultiDayTimelineView.js +4 -5
- package/dist/esm/Scheduler.js +1 -1
- package/dist/esm/components/header/navigation/NavigationDatePicker.js +6 -4
- package/dist/esm/items/SchedulerViewItem.js +9 -5
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/slots/SchedulerSlot.js +9 -1
- package/dist/esm/slots/SchedulerViewSlot.js +5 -3
- package/dist/esm/views/agenda/AgendaViewBody.js +10 -6
- package/dist/esm/views/common/HorizontalResourceIterator.js +3 -3
- package/dist/esm/views/common/VerticalResourceIterator.js +3 -2
- package/dist/esm/views/common/utils.js +7 -0
- package/dist/esm/views/day/DayViewAllDaySlots.js +5 -5
- package/dist/esm/views/day/MultiDayView.js +10 -6
- package/dist/esm/views/month/MonthView.js +6 -6
- package/dist/esm/views/time/MultiDayTimelineView.js +4 -5
- package/dist/npm/Scheduler.js +1 -1
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +6 -4
- package/dist/npm/items/SchedulerViewItem.js +8 -4
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerSlot.js +9 -1
- package/dist/npm/slots/SchedulerViewSlot.js +4 -2
- package/dist/npm/views/agenda/AgendaViewBody.js +10 -6
- package/dist/npm/views/common/HorizontalResourceIterator.js +3 -3
- package/dist/npm/views/common/VerticalResourceIterator.js +3 -2
- package/dist/npm/views/common/utils.js +7 -0
- package/dist/npm/views/day/DayViewAllDaySlots.js +5 -5
- package/dist/npm/views/day/MultiDayView.js +10 -6
- package/dist/npm/views/month/MonthView.js +6 -6
- package/dist/npm/views/time/MultiDayTimelineView.js +4 -5
- package/package.json +12 -12
package/dist/es/Scheduler.js
CHANGED
|
@@ -369,7 +369,7 @@ var SchedulerVue2 = {
|
|
|
369
369
|
"focusout": this.handleBlur
|
|
370
370
|
},
|
|
371
371
|
onFocusout: this.handleBlur
|
|
372
|
-
}, [headerRender,
|
|
372
|
+
}, [headerRender, h(viewComponent, __assign({
|
|
373
373
|
key: this.ks.view.name,
|
|
374
374
|
onDataaction: this.handleDataAction,
|
|
375
375
|
on: this.v3 ? undefined : {
|
|
@@ -48,6 +48,7 @@ var NavigationDatePickerVue2 = {
|
|
|
48
48
|
},
|
|
49
49
|
data: function data() {
|
|
50
50
|
return {
|
|
51
|
+
hasMounted: false,
|
|
51
52
|
show: false,
|
|
52
53
|
focused: false,
|
|
53
54
|
media: 'desktop'
|
|
@@ -58,6 +59,7 @@ var NavigationDatePickerVue2 = {
|
|
|
58
59
|
this.calculateMedia();
|
|
59
60
|
this.observer = new window.ResizeObserver(this.calculateMedia);
|
|
60
61
|
this.observer.observe(this.ks.scheduler.$el);
|
|
62
|
+
this.hasMounted = true;
|
|
61
63
|
},
|
|
62
64
|
destroyed: !!isV3 ? undefined : function () {
|
|
63
65
|
if (this.observer) {
|
|
@@ -131,7 +133,7 @@ var NavigationDatePickerVue2 = {
|
|
|
131
133
|
anchor: _this2.buttonId,
|
|
132
134
|
show: show
|
|
133
135
|
}, _this2.v3 ? function () {
|
|
134
|
-
return [h(Calendar, {
|
|
136
|
+
return [_this2.hasMounted && h(Calendar, {
|
|
135
137
|
ref: 'calendar',
|
|
136
138
|
onBlur: _this2.onCalendarBlur,
|
|
137
139
|
on: _this2.v3 ? undefined : {
|
|
@@ -146,7 +148,7 @@ var NavigationDatePickerVue2 = {
|
|
|
146
148
|
value: value
|
|
147
149
|
}
|
|
148
150
|
})];
|
|
149
|
-
} : [h(Calendar, {
|
|
151
|
+
} : [_this2.hasMounted && h(Calendar, {
|
|
150
152
|
ref: 'calendar',
|
|
151
153
|
onBlur: _this2.onCalendarBlur,
|
|
152
154
|
on: _this2.v3 ? undefined : {
|
|
@@ -171,7 +173,7 @@ var NavigationDatePickerVue2 = {
|
|
|
171
173
|
anchor: _this2.buttonId,
|
|
172
174
|
show: show
|
|
173
175
|
}, _this2.v3 ? function () {
|
|
174
|
-
return [h(Calendar, {
|
|
176
|
+
return [_this2.hasMounted && h(Calendar, {
|
|
175
177
|
ref: 'calendar',
|
|
176
178
|
onBlur: _this2.onCalendarBlur,
|
|
177
179
|
on: _this2.v3 ? undefined : {
|
|
@@ -186,7 +188,7 @@ var NavigationDatePickerVue2 = {
|
|
|
186
188
|
value: value
|
|
187
189
|
}
|
|
188
190
|
})];
|
|
189
|
-
} : [h(Calendar, {
|
|
191
|
+
} : [_this2.hasMounted && h(Calendar, {
|
|
190
192
|
ref: 'calendar',
|
|
191
193
|
onBlur: _this2.onCalendarBlur,
|
|
192
194
|
on: _this2.v3 ? undefined : {
|
|
@@ -22,7 +22,7 @@ import { getRect, setRect } from '../views/common/utils';
|
|
|
22
22
|
import { BORDER_WIDTH } from '../constants/main';
|
|
23
23
|
import { provideIntlService } from '@progress/kendo-vue-intl';
|
|
24
24
|
import { SchedulerItemContent } from './SchedulerItemContent';
|
|
25
|
-
import { getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
25
|
+
import { canUseDOM, getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
26
26
|
/** @hidden */
|
|
27
27
|
var ITEMS_SPACING = 1;
|
|
28
28
|
/**
|
|
@@ -114,8 +114,10 @@ var SchedulerViewItemVue2 = {
|
|
|
114
114
|
if (!this.ks.scheduler || !this.ks.scheduler.$el) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
if (canUseDOM) {
|
|
118
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
119
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
120
|
+
}
|
|
119
121
|
},
|
|
120
122
|
updated: function updated() {
|
|
121
123
|
var that = this;
|
|
@@ -126,8 +128,10 @@ var SchedulerViewItemVue2 = {
|
|
|
126
128
|
if (!this.ks.scheduler || !this.ks.scheduler.$el || this.observer) {
|
|
127
129
|
return;
|
|
128
130
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
if (canUseDOM) {
|
|
132
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
133
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
134
|
+
}
|
|
131
135
|
},
|
|
132
136
|
destroyed: !!isV3 ? undefined : function () {
|
|
133
137
|
if (this.observer) {
|
|
@@ -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: 1669624090,
|
|
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
|
};
|
|
@@ -119,6 +119,14 @@ var SchedulerSlotVue2 = {
|
|
|
119
119
|
item: this
|
|
120
120
|
});
|
|
121
121
|
},
|
|
122
|
+
data: function data() {
|
|
123
|
+
return {
|
|
124
|
+
hasMounted: false
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
mounted: function mounted() {
|
|
128
|
+
this.hasMounted = true;
|
|
129
|
+
},
|
|
122
130
|
destroyed: !!isV3 ? undefined : function () {
|
|
123
131
|
this.setSlots({
|
|
124
132
|
type: COLLECTION_ACTION.remove,
|
|
@@ -208,7 +216,7 @@ var SchedulerSlotVue2 = {
|
|
|
208
216
|
"data-slot-index": this.$props.index
|
|
209
217
|
}, [this.navDay && h("span", {
|
|
210
218
|
"class": "k-link k-nav-day"
|
|
211
|
-
}, [this.intl.formatDate(new Date(this.end.getTime() - (this.end.getTime() - this.start.getTime()) / 2), DAY_FORMAT)]), this.itemsPerSlot < this.items.length && h(ShowMoreItemsButton, {
|
|
219
|
+
}, [this.intl.formatDate(new Date(this.end.getTime() - (this.end.getTime() - this.start.getTime()) / 2), DAY_FORMAT)]), this.hasMounted && this.itemsPerSlot < this.items.length && h(ShowMoreItemsButton, {
|
|
212
220
|
onClick: this.handleShowMoreItemsClick,
|
|
213
221
|
on: this.v3 ? undefined : {
|
|
214
222
|
"click": this.handleShowMoreItemsClick
|
|
@@ -6,7 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { SchedulerSlot } from './SchedulerSlot';
|
|
8
8
|
import { useSlotExpand } from '../hooks/main';
|
|
9
|
-
import { getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
9
|
+
import { canUseDOM, getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -84,8 +84,10 @@ var SchedulerViewSlotVue2 = {
|
|
|
84
84
|
if (!this.ks.scheduler || !this.ks.scheduler.$el) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
if (canUseDOM) {
|
|
88
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
89
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
90
|
+
}
|
|
89
91
|
},
|
|
90
92
|
// @ts-ignore
|
|
91
93
|
setup: !isV3 ? undefined : function () {
|
|
@@ -3,14 +3,10 @@ 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
|
-
var inject = allVue.inject;
|
|
7
6
|
import { SchedulerEditSlot } from '../../slots/SchedulerEditSlot';
|
|
8
7
|
import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
9
8
|
import { SchedulerEditTask } from '../../tasks/SchedulerEditTask';
|
|
10
9
|
import { messages, noEvents, allDay } from '../../messages/main';
|
|
11
|
-
var DAY_FORMAT = {
|
|
12
|
-
skeleton: 'dd'
|
|
13
|
-
};
|
|
14
10
|
/**
|
|
15
11
|
* @hidden
|
|
16
12
|
*/
|
|
@@ -38,6 +34,14 @@ var AgendaViewBodyVue2 = {
|
|
|
38
34
|
default: null
|
|
39
35
|
}
|
|
40
36
|
},
|
|
37
|
+
data: function data() {
|
|
38
|
+
return {
|
|
39
|
+
hasMounted: false
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
mounted: function mounted() {
|
|
43
|
+
this.hasMounted = true;
|
|
44
|
+
},
|
|
41
45
|
// @ts-ignore
|
|
42
46
|
setup: !isV3 ? undefined : function () {
|
|
43
47
|
var v3 = !!isV3;
|
|
@@ -55,7 +59,7 @@ var AgendaViewBodyVue2 = {
|
|
|
55
59
|
var localization = provideLocalizationService(this);
|
|
56
60
|
return h("div", {
|
|
57
61
|
"class": "k-scheduler-body"
|
|
58
|
-
}, [
|
|
62
|
+
}, [this.items.length && this.agendaSlots.filter(function (slot) {
|
|
59
63
|
return slot.group.index === (_this.ri.groupIndex || 0);
|
|
60
64
|
}).map(function (slot, slotIndex, filtered) {
|
|
61
65
|
var _this2 = this;
|
|
@@ -114,7 +118,7 @@ var AgendaViewBodyVue2 = {
|
|
|
114
118
|
"class": "k-scheduler-agendadate"
|
|
115
119
|
}, [_this2.intl.formatDate(slot.zonedStart, 'y')])])]), h("div", {
|
|
116
120
|
"class": "k-scheduler-cell k-group-content"
|
|
117
|
-
}, [slot.items.length ? slot.items.map(function (item, itemIndex) {
|
|
121
|
+
}, [this.hasMounted && slot.items.length ? slot.items.map(function (item, itemIndex) {
|
|
118
122
|
return h("div", {
|
|
119
123
|
"class": "k-scheduler-row",
|
|
120
124
|
key: itemIndex
|
|
@@ -36,6 +36,7 @@ var HorizontalResourceIteratorVue2 = {
|
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
render: function render(createElement) {
|
|
38
38
|
var h = gh || createElement;
|
|
39
|
+
var that = this;
|
|
39
40
|
var _a = this.$props,
|
|
40
41
|
nested = _a.nested,
|
|
41
42
|
rowContentProps = _a.rowContentProps;
|
|
@@ -45,7 +46,6 @@ var HorizontalResourceIteratorVue2 = {
|
|
|
45
46
|
var defaultSlot = getDefaultSlots(this);
|
|
46
47
|
var groupIndex = 0;
|
|
47
48
|
var renderResources = function renderResources(args) {
|
|
48
|
-
var children = args.children;
|
|
49
49
|
var deepestResources = expandResources(args.resources, args.resources.length - 1);
|
|
50
50
|
var ChildRowContent = args.childRowContent;
|
|
51
51
|
var hasGroups = args.resources.length > 0;
|
|
@@ -76,8 +76,8 @@ var HorizontalResourceIteratorVue2 = {
|
|
|
76
76
|
},
|
|
77
77
|
groupIndex: hasGroups ? cGroupIndex : 0
|
|
78
78
|
}, this.v3 ? function () {
|
|
79
|
-
return [
|
|
80
|
-
} : [
|
|
79
|
+
return [getDefaultSlots(that)];
|
|
80
|
+
} : [getDefaultSlots(that)])
|
|
81
81
|
);
|
|
82
82
|
}, this)]);
|
|
83
83
|
};
|
|
@@ -33,6 +33,7 @@ var VerticalResourceIteratorVue2 = {
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
render: function render(createElement) {
|
|
35
35
|
var h = gh || createElement;
|
|
36
|
+
var that = this;
|
|
36
37
|
var defaultSlot = getDefaultSlots(this);
|
|
37
38
|
var _a = this.$props,
|
|
38
39
|
nested = _a.nested,
|
|
@@ -169,8 +170,8 @@ var VerticalResourceIteratorVue2 = {
|
|
|
169
170
|
resource: args.resources[args.depth],
|
|
170
171
|
groupIndex: hasGroups ? args.groupIndex : 0
|
|
171
172
|
}, this.v3 ? function () {
|
|
172
|
-
return [
|
|
173
|
-
} : [
|
|
173
|
+
return [getDefaultSlots(that)];
|
|
174
|
+
} : [getDefaultSlots(that)]), renderMore.call(this, args.resources[args.depth], hasGroups ? args.groupIndex : 0)];
|
|
174
175
|
}
|
|
175
176
|
var dataLength = args.resources[args.depth].data.length;
|
|
176
177
|
return args.resources[args.depth].data.map(function (dataItem, dataIndex) {
|
|
@@ -18,6 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
+
import { canUseDOM } from '@progress/kendo-vue-common';
|
|
21
22
|
/** @hidden */
|
|
22
23
|
export var last = function (arr) { return arr[arr.length - 1]; };
|
|
23
24
|
/** @hidden */
|
|
@@ -156,12 +157,18 @@ export var getRect = function (el) {
|
|
|
156
157
|
/** @hidden */
|
|
157
158
|
export var getPadding = function (el, horizontal) {
|
|
158
159
|
if (horizontal === void 0) { horizontal = false; }
|
|
160
|
+
if (!canUseDOM) {
|
|
161
|
+
return 0;
|
|
162
|
+
}
|
|
159
163
|
return parseFloat(window.getComputedStyle(el)[horizontal ? 'paddingLeft' : 'paddingTop'] || '0')
|
|
160
164
|
+ parseFloat(window.getComputedStyle(el)[horizontal ? 'paddingRight' : 'paddingBottom'] || '0');
|
|
161
165
|
};
|
|
162
166
|
/** @hidden */
|
|
163
167
|
export var getBorders = function (el, horizontal) {
|
|
164
168
|
if (horizontal === void 0) { horizontal = false; }
|
|
169
|
+
if (!canUseDOM) {
|
|
170
|
+
return 0;
|
|
171
|
+
}
|
|
165
172
|
return parseFloat(window.getComputedStyle(el)[horizontal ? 'borderLeftWidth' : 'borderTopWidth'] || '0')
|
|
166
173
|
+ parseFloat(window.getComputedStyle(el)[horizontal ? 'borderRightWidth' : 'borderBottomWidth'] || '0');
|
|
167
174
|
};
|
|
@@ -43,13 +43,13 @@ var DayViewAllDaySlotsVue2 = {
|
|
|
43
43
|
numberOfDays = _a.numberOfDays,
|
|
44
44
|
workWeekStart = _a.workWeekStart,
|
|
45
45
|
workWeekEnd = _a.workWeekEnd;
|
|
46
|
+
var groupIndex = this.ri.groupIndex;
|
|
46
47
|
return h("div", {
|
|
47
|
-
key:
|
|
48
|
+
key: groupIndex,
|
|
48
49
|
"class": "k-scheduler-row"
|
|
49
50
|
}, [this.dayRanges.map(function (_, rangeIndex) {
|
|
50
|
-
var _this = this;
|
|
51
51
|
return this.daySlots.filter(function (s) {
|
|
52
|
-
return s.group.index ===
|
|
52
|
+
return s.group.index === groupIndex && s.range.index === rangeIndex;
|
|
53
53
|
}).map(function (slot, slotIndex, filtered) {
|
|
54
54
|
return h(SchedulerEditSlot, {
|
|
55
55
|
index: slot.index,
|
|
@@ -67,7 +67,7 @@ var DayViewAllDaySlotsVue2 = {
|
|
|
67
67
|
slotRender: this.$props.slotRender,
|
|
68
68
|
viewSlot: this.$props.viewSlot,
|
|
69
69
|
row: 0,
|
|
70
|
-
col: this.ks.orientation === 'horizontal' ? filtered.length * (
|
|
70
|
+
col: this.ks.orientation === 'horizontal' ? filtered.length * (groupIndex || 0) + slotIndex : slotIndex,
|
|
71
71
|
isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart),
|
|
72
72
|
expandable: true,
|
|
73
73
|
editable: this.$props.editable
|
|
@@ -89,7 +89,7 @@ var DayViewAllDaySlotsVue2 = {
|
|
|
89
89
|
viewSlot: this.$props.viewSlot,
|
|
90
90
|
key: "".concat(slot.start.getTime(), ":").concat(slot.group.index),
|
|
91
91
|
row: 0,
|
|
92
|
-
col: this.ks.orientation === 'horizontal' ? filtered.length * (
|
|
92
|
+
col: this.ks.orientation === 'horizontal' ? filtered.length * (groupIndex || 0) + slotIndex : slotIndex,
|
|
93
93
|
isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart),
|
|
94
94
|
expandable: true,
|
|
95
95
|
editable: this.$props.editable
|
|
@@ -265,10 +265,14 @@ var MultiDayViewVue2 = {
|
|
|
265
265
|
},
|
|
266
266
|
data: function data() {
|
|
267
267
|
return {
|
|
268
|
+
hasMounted: false,
|
|
268
269
|
currentDragItem: undefined,
|
|
269
270
|
currentResizeItem: undefined
|
|
270
271
|
};
|
|
271
272
|
},
|
|
273
|
+
mounted: function mounted() {
|
|
274
|
+
this.hasMounted = true;
|
|
275
|
+
},
|
|
272
276
|
created: function created() {
|
|
273
277
|
this.intl = provideIntlService(this);
|
|
274
278
|
},
|
|
@@ -474,7 +478,7 @@ var MultiDayViewVue2 = {
|
|
|
474
478
|
on: _this2.v3 ? undefined : {
|
|
475
479
|
"dataaction": _this2.handleDataAction
|
|
476
480
|
}
|
|
477
|
-
})]), dayItems.map(function (item) {
|
|
481
|
+
})]), _this2.hasMounted && dayItems.map(function (item) {
|
|
478
482
|
return h(EditItem, {
|
|
479
483
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index, ":").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index),
|
|
480
484
|
uid: item.uid,
|
|
@@ -752,7 +756,7 @@ var MultiDayViewVue2 = {
|
|
|
752
756
|
timeSlots: timeSlots,
|
|
753
757
|
dayRanges: _this2.dayRanges,
|
|
754
758
|
editable: _this2.$props.editable
|
|
755
|
-
})]), dayItems.map(function (item) {
|
|
759
|
+
})]), _this2.hasMounted && dayItems.map(function (item) {
|
|
756
760
|
return h(EditItem, {
|
|
757
761
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, " : ").concat(item.range.index, " : ").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, " : ").concat(item.range.index),
|
|
758
762
|
uid: item.uid,
|
|
@@ -826,7 +830,7 @@ var MultiDayViewVue2 = {
|
|
|
826
830
|
editable: this.$props.editable,
|
|
827
831
|
vertical: false
|
|
828
832
|
});
|
|
829
|
-
}, _this2), _this2.compDragItem && _this2.compDragItem.isAllDay && dragItemClue.call(_this2, true), _this2.compResizeItem && _this2.compResizeItem.isAllDay && resizeItemClue.call(_this2, true)], timeItems.map(function (item) {
|
|
833
|
+
}, _this2), _this2.compDragItem && _this2.compDragItem.isAllDay && dragItemClue.call(_this2, true), _this2.compResizeItem && _this2.compResizeItem.isAllDay && resizeItemClue.call(_this2, true)], _this2.hasMounted && timeItems.map(function (item) {
|
|
830
834
|
return h(EditItem, {
|
|
831
835
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index, ":").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index),
|
|
832
836
|
uid: item.uid,
|
|
@@ -993,7 +997,7 @@ var MultiDayViewVue2 = {
|
|
|
993
997
|
on: _this2.v3 ? undefined : {
|
|
994
998
|
"dataaction": _this2.handleDataAction
|
|
995
999
|
}
|
|
996
|
-
})]), dayItems.map(function (item) {
|
|
1000
|
+
})]), _this2.hasMounted && dayItems.map(function (item) {
|
|
997
1001
|
return h(EditItem, {
|
|
998
1002
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index, ":").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index),
|
|
999
1003
|
uid: item.uid,
|
|
@@ -1264,7 +1268,7 @@ var MultiDayViewVue2 = {
|
|
|
1264
1268
|
timeSlots: timeSlots,
|
|
1265
1269
|
dayRanges: _this2.dayRanges,
|
|
1266
1270
|
editable: _this2.$props.editable
|
|
1267
|
-
})]), dayItems.map(function (item) {
|
|
1271
|
+
})]), _this2.hasMounted && dayItems.map(function (item) {
|
|
1268
1272
|
return h(EditItem, {
|
|
1269
1273
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, " : ").concat(item.range.index, " : ").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, " : ").concat(item.range.index),
|
|
1270
1274
|
uid: item.uid,
|
|
@@ -1338,7 +1342,7 @@ var MultiDayViewVue2 = {
|
|
|
1338
1342
|
editable: this.$props.editable,
|
|
1339
1343
|
vertical: false
|
|
1340
1344
|
});
|
|
1341
|
-
}, _this2), _this2.compDragItem && _this2.compDragItem.isAllDay && dragItemClue.call(_this2, true), _this2.compResizeItem && _this2.compResizeItem.isAllDay && resizeItemClue.call(_this2, true)], timeItems.map(function (item) {
|
|
1345
|
+
}, _this2), _this2.compDragItem && _this2.compDragItem.isAllDay && dragItemClue.call(_this2, true), _this2.compResizeItem && _this2.compResizeItem.isAllDay && resizeItemClue.call(_this2, true)], _this2.hasMounted && timeItems.map(function (item) {
|
|
1342
1346
|
return h(EditItem, {
|
|
1343
1347
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index, ":").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index),
|
|
1344
1348
|
uid: item.uid,
|
|
@@ -15,7 +15,6 @@ import * as Vue from 'vue';
|
|
|
15
15
|
var allVue = Vue;
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
var inject = allVue.inject;
|
|
19
18
|
import { BaseView } from '../../components/BaseView';
|
|
20
19
|
import { MS_PER_DAY, firstDayInWeek, firstDayOfMonth, getDate, addDays, lastDayOfMonth, ZonedDate } from '@progress/kendo-date-math';
|
|
21
20
|
import { VerticalResourceIterator } from '../common/VerticalResourceIterator';
|
|
@@ -34,9 +33,6 @@ import { MonthViewBody } from './MonthViewBody';
|
|
|
34
33
|
import { SchedulerEditItem } from '../../items/SchedulerEditItem';
|
|
35
34
|
import { SchedulerResize } from '../common/SchedulerResize';
|
|
36
35
|
import { SchedulerDrag } from '../../views/common/SchedulerDrag';
|
|
37
|
-
var DAY_FORMAT = {
|
|
38
|
-
skeleton: 'dd'
|
|
39
|
-
};
|
|
40
36
|
/** @hidden */
|
|
41
37
|
var MonthViewVue2 = {
|
|
42
38
|
name: 'KendoMonthView',
|
|
@@ -113,8 +109,12 @@ var MonthViewVue2 = {
|
|
|
113
109
|
created: function created() {
|
|
114
110
|
this.intl = provideIntlService(this);
|
|
115
111
|
},
|
|
112
|
+
mounted: function mounted() {
|
|
113
|
+
this.hasMounted = true;
|
|
114
|
+
},
|
|
116
115
|
data: function data() {
|
|
117
116
|
return {
|
|
117
|
+
hasMounted: false,
|
|
118
118
|
currentDragItem: undefined,
|
|
119
119
|
currentResizeItem: undefined
|
|
120
120
|
};
|
|
@@ -396,7 +396,7 @@ var MonthViewVue2 = {
|
|
|
396
396
|
dateHeaderCell: _this2.$props.dateHeaderCell
|
|
397
397
|
})])]), h("div", {
|
|
398
398
|
"class": "k-scheduler-body"
|
|
399
|
-
}, [body, items.filter(function (item) {
|
|
399
|
+
}, [body, _this2.hasMounted && items.filter(function (item) {
|
|
400
400
|
return item.order === null || item.order < itemsPerSlot;
|
|
401
401
|
}).sort(orderSort).map(function (item) {
|
|
402
402
|
return h(EditItem, {
|
|
@@ -530,7 +530,7 @@ var MonthViewVue2 = {
|
|
|
530
530
|
dateHeaderCell: _this2.$props.dateHeaderCell
|
|
531
531
|
})])]), h("div", {
|
|
532
532
|
"class": "k-scheduler-body"
|
|
533
|
-
}, [body, items.filter(function (item) {
|
|
533
|
+
}, [body, _this2.hasMounted && items.filter(function (item) {
|
|
534
534
|
return item.order === null || item.order < itemsPerSlot;
|
|
535
535
|
}).sort(orderSort).map(function (item) {
|
|
536
536
|
return h(EditItem, {
|
|
@@ -24,7 +24,6 @@ import * as Vue from 'vue';
|
|
|
24
24
|
var allVue = Vue;
|
|
25
25
|
var gh = allVue.h;
|
|
26
26
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
27
|
-
var inject = allVue.inject;
|
|
28
27
|
import { BaseView } from '../../components/BaseView';
|
|
29
28
|
import { useCellSync, useRowSync } from '../../hooks/main';
|
|
30
29
|
import { Day, MS_PER_DAY, MS_PER_MINUTE, getDate, ZonedDate, addDays } from '@progress/kendo-date-math';
|
|
@@ -155,6 +154,7 @@ var MultiDayTimelineViewVue2 = {
|
|
|
155
154
|
},
|
|
156
155
|
data: function data() {
|
|
157
156
|
return {
|
|
157
|
+
hasMounted: false,
|
|
158
158
|
currentDragItem: undefined,
|
|
159
159
|
currentResizeItem: undefined
|
|
160
160
|
};
|
|
@@ -229,6 +229,7 @@ var MultiDayTimelineViewVue2 = {
|
|
|
229
229
|
mounted: function mounted() {
|
|
230
230
|
this.timeRef = null;
|
|
231
231
|
this.bodyRef = null;
|
|
232
|
+
this.hasMounted = true;
|
|
232
233
|
useCellSync({
|
|
233
234
|
element: this.$el,
|
|
234
235
|
selector: '.k-resource-cell',
|
|
@@ -270,8 +271,6 @@ var MultiDayTimelineViewVue2 = {
|
|
|
270
271
|
var _this2 = this;
|
|
271
272
|
var h = gh || createElement;
|
|
272
273
|
var intl = provideIntlService(this);
|
|
273
|
-
var showWorkHours = this.$props.showWorkHours;
|
|
274
|
-
var slotDivisions = this.$props.slotDivisions;
|
|
275
274
|
var slotDuration = this.$props.slotDuration;
|
|
276
275
|
var workDayStart = intl.parseDate(this.$props.workDayStart);
|
|
277
276
|
var workDayEnd = intl.parseDate(this.$props.workDayEnd);
|
|
@@ -530,7 +529,7 @@ var MultiDayTimelineViewVue2 = {
|
|
|
530
529
|
viewSlot: _this2.$props.viewSlot,
|
|
531
530
|
currentTimeMarker: _this2.$props.currentTimeMarker
|
|
532
531
|
}
|
|
533
|
-
}), items.sort(orderSort).map(function (item) {
|
|
532
|
+
}), _this2.hasMounted && items.sort(orderSort).map(function (item) {
|
|
534
533
|
return h(SchedulerEditItem, {
|
|
535
534
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index, ":").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index),
|
|
536
535
|
uid: item.uid,
|
|
@@ -730,7 +729,7 @@ var MultiDayTimelineViewVue2 = {
|
|
|
730
729
|
viewSlot: _this2.$props.viewSlot,
|
|
731
730
|
currentTimeMarker: _this2.$props.currentTimeMarker
|
|
732
731
|
}
|
|
733
|
-
}), items.sort(orderSort).map(function (item) {
|
|
732
|
+
}), _this2.hasMounted && items.sort(orderSort).map(function (item) {
|
|
734
733
|
return h(SchedulerEditItem, {
|
|
735
734
|
key: item.isRecurring ? "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index, ":").concat(item.originalStart) : "".concat(item.uid, ":").concat(item.group.index, ":").concat(item.range.index),
|
|
736
735
|
uid: item.uid,
|
package/dist/esm/Scheduler.js
CHANGED
|
@@ -369,7 +369,7 @@ var SchedulerVue2 = {
|
|
|
369
369
|
"focusout": this.handleBlur
|
|
370
370
|
},
|
|
371
371
|
onFocusout: this.handleBlur
|
|
372
|
-
}, [headerRender,
|
|
372
|
+
}, [headerRender, h(viewComponent, __assign({
|
|
373
373
|
key: this.ks.view.name,
|
|
374
374
|
onDataaction: this.handleDataAction,
|
|
375
375
|
on: this.v3 ? undefined : {
|
|
@@ -48,6 +48,7 @@ var NavigationDatePickerVue2 = {
|
|
|
48
48
|
},
|
|
49
49
|
data: function data() {
|
|
50
50
|
return {
|
|
51
|
+
hasMounted: false,
|
|
51
52
|
show: false,
|
|
52
53
|
focused: false,
|
|
53
54
|
media: 'desktop'
|
|
@@ -58,6 +59,7 @@ var NavigationDatePickerVue2 = {
|
|
|
58
59
|
this.calculateMedia();
|
|
59
60
|
this.observer = new window.ResizeObserver(this.calculateMedia);
|
|
60
61
|
this.observer.observe(this.ks.scheduler.$el);
|
|
62
|
+
this.hasMounted = true;
|
|
61
63
|
},
|
|
62
64
|
destroyed: !!isV3 ? undefined : function () {
|
|
63
65
|
if (this.observer) {
|
|
@@ -131,7 +133,7 @@ var NavigationDatePickerVue2 = {
|
|
|
131
133
|
anchor: _this2.buttonId,
|
|
132
134
|
show: show
|
|
133
135
|
}, _this2.v3 ? function () {
|
|
134
|
-
return [h(Calendar, {
|
|
136
|
+
return [_this2.hasMounted && h(Calendar, {
|
|
135
137
|
ref: 'calendar',
|
|
136
138
|
onBlur: _this2.onCalendarBlur,
|
|
137
139
|
on: _this2.v3 ? undefined : {
|
|
@@ -146,7 +148,7 @@ var NavigationDatePickerVue2 = {
|
|
|
146
148
|
value: value
|
|
147
149
|
}
|
|
148
150
|
})];
|
|
149
|
-
} : [h(Calendar, {
|
|
151
|
+
} : [_this2.hasMounted && h(Calendar, {
|
|
150
152
|
ref: 'calendar',
|
|
151
153
|
onBlur: _this2.onCalendarBlur,
|
|
152
154
|
on: _this2.v3 ? undefined : {
|
|
@@ -171,7 +173,7 @@ var NavigationDatePickerVue2 = {
|
|
|
171
173
|
anchor: _this2.buttonId,
|
|
172
174
|
show: show
|
|
173
175
|
}, _this2.v3 ? function () {
|
|
174
|
-
return [h(Calendar, {
|
|
176
|
+
return [_this2.hasMounted && h(Calendar, {
|
|
175
177
|
ref: 'calendar',
|
|
176
178
|
onBlur: _this2.onCalendarBlur,
|
|
177
179
|
on: _this2.v3 ? undefined : {
|
|
@@ -186,7 +188,7 @@ var NavigationDatePickerVue2 = {
|
|
|
186
188
|
value: value
|
|
187
189
|
}
|
|
188
190
|
})];
|
|
189
|
-
} : [h(Calendar, {
|
|
191
|
+
} : [_this2.hasMounted && h(Calendar, {
|
|
190
192
|
ref: 'calendar',
|
|
191
193
|
onBlur: _this2.onCalendarBlur,
|
|
192
194
|
on: _this2.v3 ? undefined : {
|
|
@@ -22,7 +22,7 @@ import { getRect, setRect } from '../views/common/utils.js';
|
|
|
22
22
|
import { BORDER_WIDTH } from '../constants/main.js';
|
|
23
23
|
import { provideIntlService } from '@progress/kendo-vue-intl';
|
|
24
24
|
import { SchedulerItemContent } from './SchedulerItemContent.js';
|
|
25
|
-
import { getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
25
|
+
import { canUseDOM, getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
26
26
|
/** @hidden */
|
|
27
27
|
var ITEMS_SPACING = 1;
|
|
28
28
|
/**
|
|
@@ -114,8 +114,10 @@ var SchedulerViewItemVue2 = {
|
|
|
114
114
|
if (!this.ks.scheduler || !this.ks.scheduler.$el) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
if (canUseDOM) {
|
|
118
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
119
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
120
|
+
}
|
|
119
121
|
},
|
|
120
122
|
updated: function updated() {
|
|
121
123
|
var that = this;
|
|
@@ -126,8 +128,10 @@ var SchedulerViewItemVue2 = {
|
|
|
126
128
|
if (!this.ks.scheduler || !this.ks.scheduler.$el || this.observer) {
|
|
127
129
|
return;
|
|
128
130
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
if (canUseDOM) {
|
|
132
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
133
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
134
|
+
}
|
|
131
135
|
},
|
|
132
136
|
destroyed: !!isV3 ? undefined : function () {
|
|
133
137
|
if (this.observer) {
|
|
@@ -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: 1669624090,
|
|
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
|
};
|
|
@@ -119,6 +119,14 @@ var SchedulerSlotVue2 = {
|
|
|
119
119
|
item: this
|
|
120
120
|
});
|
|
121
121
|
},
|
|
122
|
+
data: function data() {
|
|
123
|
+
return {
|
|
124
|
+
hasMounted: false
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
mounted: function mounted() {
|
|
128
|
+
this.hasMounted = true;
|
|
129
|
+
},
|
|
122
130
|
destroyed: !!isV3 ? undefined : function () {
|
|
123
131
|
this.setSlots({
|
|
124
132
|
type: COLLECTION_ACTION.remove,
|
|
@@ -208,7 +216,7 @@ var SchedulerSlotVue2 = {
|
|
|
208
216
|
"data-slot-index": this.$props.index
|
|
209
217
|
}, [this.navDay && h("span", {
|
|
210
218
|
"class": "k-link k-nav-day"
|
|
211
|
-
}, [this.intl.formatDate(new Date(this.end.getTime() - (this.end.getTime() - this.start.getTime()) / 2), DAY_FORMAT)]), this.itemsPerSlot < this.items.length && h(ShowMoreItemsButton, {
|
|
219
|
+
}, [this.intl.formatDate(new Date(this.end.getTime() - (this.end.getTime() - this.start.getTime()) / 2), DAY_FORMAT)]), this.hasMounted && this.itemsPerSlot < this.items.length && h(ShowMoreItemsButton, {
|
|
212
220
|
onClick: this.handleShowMoreItemsClick,
|
|
213
221
|
on: this.v3 ? undefined : {
|
|
214
222
|
"click": this.handleShowMoreItemsClick
|
|
@@ -6,7 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { SchedulerSlot } from './SchedulerSlot.js';
|
|
8
8
|
import { useSlotExpand } from '../hooks/main.js';
|
|
9
|
-
import { getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
9
|
+
import { canUseDOM, getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -84,8 +84,10 @@ var SchedulerViewSlotVue2 = {
|
|
|
84
84
|
if (!this.ks.scheduler || !this.ks.scheduler.$el) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
if (canUseDOM) {
|
|
88
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
89
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
90
|
+
}
|
|
89
91
|
},
|
|
90
92
|
// @ts-ignore
|
|
91
93
|
setup: !isV3 ? undefined : function () {
|