@progress/kendo-vue-scheduler 4.3.2-dev.202403261314 → 4.3.2

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.
Files changed (44) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
  2. package/dist/es/components/CurrentTimeMarker.js +5 -2
  3. package/dist/es/components/CurrentTimeMarkerArrow.js +5 -3
  4. package/dist/es/components/SchedulerForm.js +4 -2
  5. package/dist/es/components/header/navigation/NavigationDatePicker.js +7 -3
  6. package/dist/es/components/header/view-selector/ViewSelectorList.js +9 -4
  7. package/dist/es/items/SchedulerViewItem.js +1 -1
  8. package/dist/es/package-metadata.js +1 -1
  9. package/dist/es/slots/SchedulerEditSlot.js +6 -5
  10. package/dist/es/slots/SchedulerSlot.d.ts +2 -0
  11. package/dist/es/slots/SchedulerSlot.js +4 -2
  12. package/dist/es/slots/SchedulerViewSlot.js +8 -4
  13. package/dist/es/views/agenda/AgendaView.js +79 -73
  14. package/dist/es/views/agenda/AgendaViewBody.js +3 -2
  15. package/dist/es/views/day/DayViewVerticalRow.js +2 -1
  16. package/dist/esm/components/CurrentTimeMarker.js +5 -2
  17. package/dist/esm/components/CurrentTimeMarkerArrow.js +5 -3
  18. package/dist/esm/components/SchedulerForm.js +4 -2
  19. package/dist/esm/components/header/navigation/NavigationDatePicker.js +7 -3
  20. package/dist/esm/components/header/view-selector/ViewSelectorList.js +9 -4
  21. package/dist/esm/items/SchedulerViewItem.js +1 -1
  22. package/dist/esm/package-metadata.js +1 -1
  23. package/dist/esm/slots/SchedulerEditSlot.js +6 -5
  24. package/dist/esm/slots/SchedulerSlot.d.ts +2 -0
  25. package/dist/esm/slots/SchedulerSlot.js +4 -2
  26. package/dist/esm/slots/SchedulerViewSlot.js +8 -4
  27. package/dist/esm/views/agenda/AgendaView.js +79 -73
  28. package/dist/esm/views/agenda/AgendaViewBody.js +3 -2
  29. package/dist/esm/views/day/DayViewVerticalRow.js +2 -1
  30. package/dist/npm/components/CurrentTimeMarker.js +5 -2
  31. package/dist/npm/components/CurrentTimeMarkerArrow.js +4 -2
  32. package/dist/npm/components/SchedulerForm.js +3 -1
  33. package/dist/npm/components/header/navigation/NavigationDatePicker.js +7 -3
  34. package/dist/npm/components/header/view-selector/ViewSelectorList.js +9 -4
  35. package/dist/npm/items/SchedulerViewItem.js +1 -1
  36. package/dist/npm/package-metadata.js +1 -1
  37. package/dist/npm/slots/SchedulerEditSlot.js +6 -5
  38. package/dist/npm/slots/SchedulerSlot.d.ts +2 -0
  39. package/dist/npm/slots/SchedulerSlot.js +4 -2
  40. package/dist/npm/slots/SchedulerViewSlot.js +8 -4
  41. package/dist/npm/views/agenda/AgendaView.js +79 -73
  42. package/dist/npm/views/agenda/AgendaViewBody.js +3 -2
  43. package/dist/npm/views/day/DayViewVerticalRow.js +2 -1
  44. package/package.json +12 -12
@@ -7,6 +7,7 @@ import { ButtonGroup } from '@progress/kendo-vue-buttons';
7
7
  import { ViewSelectorItem } from './ViewSelectorItem.js';
8
8
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
9
  import { messages, dropdownlistSelectViewAriaLabel } from '../../../messages/main.js';
10
+ import { canUseDOM } from '@progress/kendo-vue-common';
10
11
  /**
11
12
  * @hidden
12
13
  */
@@ -25,9 +26,11 @@ var ViewSelectorListVue2 = {
25
26
  },
26
27
  mounted: function mounted() {
27
28
  this.calculateMedia();
28
- this.observer = new window.ResizeObserver(this.calculateMedia);
29
- if (this.ks.scheduler) {
30
- this.observer.observe(this.ks.scheduler.$el);
29
+ if (canUseDOM && window.ResizeObserver) {
30
+ this.observer = new window.ResizeObserver(this.calculateMedia);
31
+ if (this.ks.scheduler) {
32
+ this.observer.observe(this.ks.scheduler.$el);
33
+ }
31
34
  }
32
35
  },
33
36
  destroyed: !!isV3 ? undefined : function () {
@@ -120,7 +123,9 @@ var ViewSelectorListVue2 = {
120
123
  this.setActiveViewName(event.target.value);
121
124
  },
122
125
  calculateMedia: function calculateMedia() {
123
- this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
126
+ if (canUseDOM && window.matchMedia) {
127
+ this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
128
+ }
124
129
  }
125
130
  }
126
131
  };
@@ -129,7 +129,7 @@ var SchedulerViewItemVue2 = {
129
129
  if (!this.ks.scheduler || !this.ks.scheduler.$el || this.observer) {
130
130
  return;
131
131
  }
132
- if (canUseDOM) {
132
+ if (canUseDOM && window.ResizeObserver) {
133
133
  this.observer = new window.ResizeObserver(this.handleResize);
134
134
  this.observer.observe(this.ks.scheduler.$el);
135
135
  }
@@ -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: 1711458705,
8
+ publishDate: 1711527619,
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
  };
@@ -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 { getDefaultSlots, getTemplate, Keys } from '@progress/kendo-vue-common';
20
19
  import { DATA_ACTION } from '../Scheduler.js';
21
20
  import { setField, getField, findFirstItem, isGroupped, compareSlots, findCurrentItem, getSortedSlots } from '../utils/main.js';
@@ -34,6 +33,7 @@ var SchedulerEditSlotVue2 = {
34
33
  type: Number,
35
34
  default: undefined
36
35
  },
36
+ className: String,
37
37
  form: Object,
38
38
  formItem: Object,
39
39
  refTo: [Function, Object],
@@ -131,11 +131,9 @@ var SchedulerEditSlotVue2 = {
131
131
  var h = gh || createElement;
132
132
  var defaultSlot = getDefaultSlots(this);
133
133
  var _a = this.$props,
134
- refTo = _a.refTo,
135
134
  propViewSlot = _a.viewSlot,
136
135
  propForm = _a.form,
137
136
  propFormItem = _a.formItem,
138
- onFormItemChange = _a.onFormItemChange,
139
137
  items = _a.items,
140
138
  row = _a.row,
141
139
  group = _a.group,
@@ -149,7 +147,8 @@ var SchedulerEditSlotVue2 = {
149
147
  zonedStart = _a.zonedStart,
150
148
  zonedEnd = _a.zonedEnd,
151
149
  navDay = _a.navDay,
152
- itemsPerSlot = _a.itemsPerSlot;
150
+ itemsPerSlot = _a.itemsPerSlot,
151
+ className = _a.className;
153
152
  var selected = this.bv.selectedSlots.some(function (s) {
154
153
  return compareSlots(s.cSlot, _this.cSlot);
155
154
  });
@@ -157,8 +156,9 @@ var SchedulerEditSlotVue2 = {
157
156
  var editSlotRenderDefaultRendering =
158
157
  // @ts-ignore function children
159
158
  h(SchedulerViewSlot, {
160
- slotRender: this.$props.slotRender,
159
+ className: className,
161
160
  attrs: this.v3 ? undefined : {
161
+ className: className,
162
162
  slotRender: this.$props.slotRender,
163
163
  isAllDay: this.isAllDay,
164
164
  expandable: this.expandable,
@@ -182,6 +182,7 @@ var SchedulerEditSlotVue2 = {
182
182
  formItem: this.compFormItem
183
183
  // Focus
184
184
  },
185
+ slotRender: this.$props.slotRender,
185
186
  isAllDay: this.isAllDay,
186
187
  expandable: this.expandable,
187
188
  editable: this.editable,
@@ -20,6 +20,8 @@ export interface SchedulerSlotProps extends Slot {
20
20
  viewSlot?: any;
21
21
  /** @hidden */
22
22
  slotStyle?: any;
23
+ /** @hidden */
24
+ className?: string;
23
25
  /**
24
26
  * Specifies the `id` of the wrapping element of the SchedulerSlot.
25
27
  */
@@ -54,6 +54,7 @@ var SchedulerSlotVue2 = {
54
54
  row: Number,
55
55
  group: Object,
56
56
  range: Object,
57
+ className: String,
57
58
  isWorkDay: {
58
59
  type: Boolean,
59
60
  default: true
@@ -90,11 +91,12 @@ var SchedulerSlotVue2 = {
90
91
  return this.$props.tabIndex !== undefined ? this.$props.tabIndex === null ? undefined : this.$props.tabIndex : this.$props.selected ? 0 : -1;
91
92
  },
92
93
  slotClass: function slotClass() {
93
- return {
94
+ var _a;
95
+ return _a = {
94
96
  'k-scheduler-cell k-slot-cell': true,
95
97
  'k-nonwork-hour': !this.$props.isWorkHour || !this.$props.isWorkDay,
96
98
  'k-selected': this.$props.selected
97
- };
99
+ }, _a[this.$props.className] = this.$props.className, _a;
98
100
  },
99
101
  slotLabel: function slotLabel() {
100
102
  return "".concat(formatEventTime(this.intl, this.$props.zonedStart, this.$props.zonedEnd, this.$props.isAllDay || false));
@@ -22,6 +22,7 @@ var SchedulerViewSlotVue2 = {
22
22
  },
23
23
  props: {
24
24
  refTo: [Function, Object],
25
+ className: String,
25
26
  items: Array,
26
27
  row: Number,
27
28
  group: Object,
@@ -93,7 +94,7 @@ var SchedulerViewSlotVue2 = {
93
94
  if (!this.ks.scheduler || !this.ks.scheduler.$el) {
94
95
  return;
95
96
  }
96
- if (canUseDOM) {
97
+ if (canUseDOM && window.ResizeObserver) {
97
98
  this.observer = new window.ResizeObserver(this.handleResize);
98
99
  this.observer.observe(this.ks.scheduler.$el);
99
100
  }
@@ -125,7 +126,8 @@ var SchedulerViewSlotVue2 = {
125
126
  zonedEnd = _a.zonedEnd,
126
127
  navDay = _a.navDay,
127
128
  itemsPerSlot = _a.itemsPerSlot,
128
- editable = _a.editable;
129
+ editable = _a.editable,
130
+ className = _a.className;
129
131
  var slotRender;
130
132
  var slotRenderDefaultRendering =
131
133
  // @ts-ignore function children
@@ -151,7 +153,8 @@ var SchedulerViewSlotVue2 = {
151
153
  editable: editable,
152
154
  formItem: this.formItem,
153
155
  selected: this.selected,
154
- slotStyle: this.$props.slotStyle
156
+ slotStyle: this.$props.slotStyle,
157
+ className: className
155
158
  },
156
159
  isAllDay: this.isAllDay,
157
160
  items: items,
@@ -181,7 +184,8 @@ var SchedulerViewSlotVue2 = {
181
184
  onKeydown: this.handleKeyDown,
182
185
  onFocus: this.handleFocus,
183
186
  selected: this.selected,
184
- slotStyle: this.$props.slotStyle
187
+ slotStyle: this.$props.slotStyle,
188
+ className: className
185
189
  }, this.v3 ? function () {
186
190
  return [defaultSlot];
187
191
  } : [defaultSlot]);
@@ -93,27 +93,33 @@ var AgendaViewVue2 = {
93
93
  this.intl = provideIntlService(this);
94
94
  },
95
95
  mounted: function mounted() {
96
+ var _this = this;
96
97
  useCellSync({
97
98
  element: this.$el,
98
99
  selector: '.k-scheduler-datecolumn',
99
100
  explicitDepth: false
100
101
  });
101
- useCellSync({
102
- element: this.$el,
103
- selector: '.k-scheduler-timecolumn',
104
- explicitDepth: false
102
+ setTimeout(function () {
103
+ return useCellSync({
104
+ element: _this.$el,
105
+ selector: '.k-scheduler-timecolumn',
106
+ explicitDepth: false
107
+ });
105
108
  });
106
109
  },
107
110
  updated: function updated() {
111
+ var _this = this;
108
112
  useCellSync({
109
113
  element: this.$el,
110
114
  selector: '.k-scheduler-datecolumn',
111
115
  explicitDepth: false
112
116
  });
113
- useCellSync({
114
- element: this.$el,
115
- selector: '.k-scheduler-timecolumn',
116
- explicitDepth: false
117
+ setTimeout(function () {
118
+ return useCellSync({
119
+ element: _this.$el,
120
+ selector: '.k-scheduler-timecolumn',
121
+ explicitDepth: false
122
+ });
117
123
  });
118
124
  },
119
125
  computed: {
@@ -159,7 +165,7 @@ var AgendaViewVue2 = {
159
165
  },
160
166
  // @ts-ignore
161
167
  render: function render(createElement) {
162
- var _this = this;
168
+ var _this2 = this;
163
169
  var h = gh || createElement;
164
170
  var EditTask = this.$props.editTask || SchedulerEditTask;
165
171
  var EditSlot = this.$props.editSlot || SchedulerEditSlot;
@@ -188,111 +194,111 @@ var AgendaViewVue2 = {
188
194
  }, [
189
195
  // @ts-ignore function children
190
196
  h(VerticalResourceIterator, {
191
- resources: _this.ks.props.resources,
192
- attrs: _this.v3 ? undefined : {
193
- resources: _this.ks.props.resources,
194
- group: _this.ks.props.group
197
+ resources: _this2.ks.props.resources,
198
+ attrs: _this2.v3 ? undefined : {
199
+ resources: _this2.ks.props.resources,
200
+ group: _this2.ks.props.group
195
201
  },
196
- group: _this.ks.props.group
197
- }, _this.v3 ? function () {
202
+ group: _this2.ks.props.group
203
+ }, _this2.v3 ? function () {
198
204
  return [
199
205
  // @ts-ignore
200
206
  h(AgendaViewHead)];
201
207
  } : [h(AgendaViewHead)])]),
202
208
  // @ts-ignore function children
203
209
  h(VerticalResourceIterator, {
204
- resources: _this.ks.props.resources,
205
- attrs: _this.v3 ? undefined : {
206
- resources: _this.ks.props.resources,
207
- group: _this.ks.props.group,
210
+ resources: _this2.ks.props.resources,
211
+ attrs: _this2.v3 ? undefined : {
212
+ resources: _this2.ks.props.resources,
213
+ group: _this2.ks.props.group,
208
214
  nested: true
209
215
  },
210
- group: _this.ks.props.group,
216
+ group: _this2.ks.props.group,
211
217
  nested: true
212
- }, _this.v3 ? function () {
218
+ }, _this2.v3 ? function () {
213
219
  return [h(AgendaViewBody, {
214
- items: _this.items,
215
- attrs: _this.v3 ? undefined : {
216
- items: _this.items,
220
+ items: _this2.items,
221
+ attrs: _this2.v3 ? undefined : {
222
+ items: _this2.items,
217
223
  agendaSlots: agendaSlots,
218
- task: _this.$props.task,
219
- editable: _this.$props.editable
224
+ task: _this2.$props.task,
225
+ editable: _this2.$props.editable
220
226
  },
221
227
  agendaSlots: agendaSlots,
222
- task: _this.$props.task,
223
- editable: _this.$props.editable,
224
- onDataaction: _this.handleDataAction,
225
- on: _this.v3 ? undefined : {
226
- "dataaction": _this.handleDataAction
228
+ task: _this2.$props.task,
229
+ editable: _this2.$props.editable,
230
+ onDataaction: _this2.handleDataAction,
231
+ on: _this2.v3 ? undefined : {
232
+ "dataaction": _this2.handleDataAction
227
233
  }
228
234
  })];
229
235
  } : [h(AgendaViewBody, {
230
- items: _this.items,
231
- attrs: _this.v3 ? undefined : {
232
- items: _this.items,
236
+ items: _this2.items,
237
+ attrs: _this2.v3 ? undefined : {
238
+ items: _this2.items,
233
239
  agendaSlots: agendaSlots,
234
- task: _this.$props.task,
235
- editable: _this.$props.editable
240
+ task: _this2.$props.task,
241
+ editable: _this2.$props.editable
236
242
  },
237
243
  agendaSlots: agendaSlots,
238
- task: _this.$props.task,
239
- editable: _this.$props.editable,
240
- onDataaction: _this.handleDataAction,
241
- on: _this.v3 ? undefined : {
242
- "dataaction": _this.handleDataAction
244
+ task: _this2.$props.task,
245
+ editable: _this2.$props.editable,
246
+ onDataaction: _this2.handleDataAction,
247
+ on: _this2.v3 ? undefined : {
248
+ "dataaction": _this2.handleDataAction
243
249
  }
244
250
  })])];
245
251
  } : [h("div", {
246
252
  "class": "k-scheduler-head"
247
253
  }, [h(VerticalResourceIterator, {
248
- resources: _this.ks.props.resources,
249
- attrs: _this.v3 ? undefined : {
250
- resources: _this.ks.props.resources,
251
- group: _this.ks.props.group
254
+ resources: _this2.ks.props.resources,
255
+ attrs: _this2.v3 ? undefined : {
256
+ resources: _this2.ks.props.resources,
257
+ group: _this2.ks.props.group
252
258
  },
253
- group: _this.ks.props.group
254
- }, _this.v3 ? function () {
259
+ group: _this2.ks.props.group
260
+ }, _this2.v3 ? function () {
255
261
  return [h(AgendaViewHead)];
256
262
  } : [h(AgendaViewHead)])]), h(VerticalResourceIterator, {
257
- resources: _this.ks.props.resources,
258
- attrs: _this.v3 ? undefined : {
259
- resources: _this.ks.props.resources,
260
- group: _this.ks.props.group,
263
+ resources: _this2.ks.props.resources,
264
+ attrs: _this2.v3 ? undefined : {
265
+ resources: _this2.ks.props.resources,
266
+ group: _this2.ks.props.group,
261
267
  nested: true
262
268
  },
263
- group: _this.ks.props.group,
269
+ group: _this2.ks.props.group,
264
270
  nested: true
265
- }, _this.v3 ? function () {
271
+ }, _this2.v3 ? function () {
266
272
  return [h(AgendaViewBody, {
267
- items: _this.items,
268
- attrs: _this.v3 ? undefined : {
269
- items: _this.items,
273
+ items: _this2.items,
274
+ attrs: _this2.v3 ? undefined : {
275
+ items: _this2.items,
270
276
  agendaSlots: agendaSlots,
271
- task: _this.$props.task,
272
- editable: _this.$props.editable
277
+ task: _this2.$props.task,
278
+ editable: _this2.$props.editable
273
279
  },
274
280
  agendaSlots: agendaSlots,
275
- task: _this.$props.task,
276
- editable: _this.$props.editable,
277
- onDataaction: _this.handleDataAction,
278
- on: _this.v3 ? undefined : {
279
- "dataaction": _this.handleDataAction
281
+ task: _this2.$props.task,
282
+ editable: _this2.$props.editable,
283
+ onDataaction: _this2.handleDataAction,
284
+ on: _this2.v3 ? undefined : {
285
+ "dataaction": _this2.handleDataAction
280
286
  }
281
287
  })];
282
288
  } : [h(AgendaViewBody, {
283
- items: _this.items,
284
- attrs: _this.v3 ? undefined : {
285
- items: _this.items,
289
+ items: _this2.items,
290
+ attrs: _this2.v3 ? undefined : {
291
+ items: _this2.items,
286
292
  agendaSlots: agendaSlots,
287
- task: _this.$props.task,
288
- editable: _this.$props.editable
293
+ task: _this2.$props.task,
294
+ editable: _this2.$props.editable
289
295
  },
290
296
  agendaSlots: agendaSlots,
291
- task: _this.$props.task,
292
- editable: _this.$props.editable,
293
- onDataaction: _this.handleDataAction,
294
- on: _this.v3 ? undefined : {
295
- "dataaction": _this.handleDataAction
297
+ task: _this2.$props.task,
298
+ editable: _this2.$props.editable,
299
+ onDataaction: _this2.handleDataAction,
300
+ on: _this2.v3 ? undefined : {
301
+ "dataaction": _this2.handleDataAction
296
302
  }
297
303
  })])])
298
304
  );
@@ -101,7 +101,8 @@ var AgendaViewBodyVue2 = {
101
101
  editable: this.$props.editable,
102
102
  row: filtered.length * (this.ri.groupIndex || 0) + slotIndex,
103
103
  col: 0,
104
- viewSlot: this.$props.viewSlot
104
+ viewSlot: this.$props.viewSlot,
105
+ className: "k-scheduler-datecolumn k-group-cell"
105
106
  },
106
107
  editable: this.$props.editable,
107
108
  row: filtered.length * (this.ri.groupIndex || 0) + slotIndex,
@@ -111,7 +112,7 @@ var AgendaViewBodyVue2 = {
111
112
  on: this.v3 ? undefined : {
112
113
  "dataaction": this.handleDataAction
113
114
  },
114
- "class": "k-scheduler-datecolumn k-group-cell"
115
+ className: "k-scheduler-datecolumn k-group-cell"
115
116
  }, this.v3 ? function () {
116
117
  return [h("div", [h("strong", {
117
118
  "class": "k-scheduler-agendaday"
@@ -81,6 +81,7 @@ var DayViewVerticalRowVue2 = {
81
81
  viewSlot: this.$props.viewSlot,
82
82
  form: this.$props.form,
83
83
  index: slotIndex,
84
+ className: 'k-scheduler-alldays-slot',
84
85
  row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
85
86
  col: slotIndex,
86
87
  expandable: true,
@@ -93,7 +94,7 @@ var DayViewVerticalRowVue2 = {
93
94
  on: this.v3 ? undefined : {
94
95
  "dataaction": this.handleDataAction
95
96
  },
96
- "class": 'k-scheduler-alldays-slot',
97
+ className: 'k-scheduler-alldays-slot',
97
98
  row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
98
99
  col: slotIndex,
99
100
  expandable: true,
@@ -12,6 +12,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
12
12
  var kendo_date_math_1 = require("@progress/kendo-date-math");
13
13
  var main_1 = require("../utils/main");
14
14
  var utils_1 = require("../views/common/utils");
15
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
16
  var combineWidths = function combineWidths(slots) {
16
17
  var result = 0;
17
18
  slots.forEach(function (slot) {
@@ -81,8 +82,10 @@ var CurrentTimeMarkerVue2 = {
81
82
  }
82
83
  clearInterval(this.interval);
83
84
  this.interval = window.setInterval(this.position, this.updateInterval);
84
- this.observer = new window.ResizeObserver(this.position);
85
- this.observer.observe(this.ks.scheduler.$el);
85
+ if (kendo_vue_common_1.canUseDOM && window.ResizeObserver) {
86
+ this.observer = new window.ResizeObserver(this.position);
87
+ this.observer.observe(this.ks.scheduler.$el);
88
+ }
86
89
  },
87
90
  destroyed: !!isV3 ? undefined : function () {
88
91
  if (this.observer) {
@@ -55,8 +55,10 @@ var CurrentTimeMarkerArrowVue2 = {
55
55
  }
56
56
  clearInterval(this.interval);
57
57
  this.interval = window.setInterval(this.position, this.updateInterval);
58
- this.observer = new window.ResizeObserver(this.position);
59
- this.observer.observe(this.ks.scheduler.$el);
58
+ if (kendo_vue_common_1.canUseDOM && window.ResizeObserver) {
59
+ this.observer = new window.ResizeObserver(this.position);
60
+ this.observer.observe(this.ks.scheduler.$el);
61
+ }
60
62
  },
61
63
  destroyed: !!isV3 ? undefined : function () {
62
64
  if (this.observer) {
@@ -176,7 +176,9 @@ var SchedulerFormVue2 = {
176
176
  },
177
177
  methods: {
178
178
  calculateMedia: function calculateMedia() {
179
- this.media = window.matchMedia('(min-width: 600px)').matches ? 'desktop' : 'mobile';
179
+ if (kendo_vue_common_1.canUseDOM && window.matchMedia) {
180
+ this.media = window.matchMedia('(min-width: 600px)').matches ? 'desktop' : 'mobile';
181
+ }
180
182
  },
181
183
  handleCancel: function handleCancel(event) {
182
184
  this.$emit('cancel', {
@@ -64,8 +64,10 @@ var NavigationDatePickerVue2 = {
64
64
  mounted: function mounted() {
65
65
  this.buttonRef = this.$refs.button;
66
66
  this.calculateMedia();
67
- this.observer = new window.ResizeObserver(this.calculateMedia);
68
- this.observer.observe(this.ks.scheduler.$el);
67
+ if (kendo_vue_common_1.canUseDOM && window.ResizeObserver) {
68
+ this.observer = new window.ResizeObserver(this.calculateMedia);
69
+ this.observer.observe(this.ks.scheduler.$el);
70
+ }
69
71
  this.hasMounted = true;
70
72
  },
71
73
  destroyed: !!isV3 ? undefined : function () {
@@ -260,7 +262,9 @@ var NavigationDatePickerVue2 = {
260
262
  this.$refs.button.focus();
261
263
  },
262
264
  calculateMedia: function calculateMedia() {
263
- this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
265
+ if (kendo_vue_common_1.canUseDOM && window.matchMedia) {
266
+ this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
267
+ }
264
268
  }
265
269
  }
266
270
  };
@@ -13,6 +13,7 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
13
13
  var ViewSelectorItem_1 = require("./ViewSelectorItem");
14
14
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
15
15
  var main_1 = require("../../../messages/main");
16
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
16
17
  /**
17
18
  * @hidden
18
19
  */
@@ -31,9 +32,11 @@ var ViewSelectorListVue2 = {
31
32
  },
32
33
  mounted: function mounted() {
33
34
  this.calculateMedia();
34
- this.observer = new window.ResizeObserver(this.calculateMedia);
35
- if (this.ks.scheduler) {
36
- this.observer.observe(this.ks.scheduler.$el);
35
+ if (kendo_vue_common_1.canUseDOM && window.ResizeObserver) {
36
+ this.observer = new window.ResizeObserver(this.calculateMedia);
37
+ if (this.ks.scheduler) {
38
+ this.observer.observe(this.ks.scheduler.$el);
39
+ }
37
40
  }
38
41
  },
39
42
  destroyed: !!isV3 ? undefined : function () {
@@ -126,7 +129,9 @@ var ViewSelectorListVue2 = {
126
129
  this.setActiveViewName(event.target.value);
127
130
  },
128
131
  calculateMedia: function calculateMedia() {
129
- this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
132
+ if (kendo_vue_common_1.canUseDOM && window.matchMedia) {
133
+ this.media = window.matchMedia('(min-width: 1024px)').matches ? 'desktop' : 'mobile';
134
+ }
130
135
  }
131
136
  }
132
137
  };
@@ -135,7 +135,7 @@ var SchedulerViewItemVue2 = {
135
135
  if (!this.ks.scheduler || !this.ks.scheduler.$el || this.observer) {
136
136
  return;
137
137
  }
138
- if (kendo_vue_common_1.canUseDOM) {
138
+ if (kendo_vue_common_1.canUseDOM && window.ResizeObserver) {
139
139
  this.observer = new window.ResizeObserver(this.handleResize);
140
140
  this.observer.observe(this.ks.scheduler.$el);
141
141
  }
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-scheduler',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1711458705,
11
+ publishDate: 1711527619,
12
12
  version: '',
13
13
  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'
14
14
  };
@@ -21,7 +21,6 @@ var Vue = require("vue");
21
21
  var allVue = Vue;
22
22
  var gh = allVue.h;
23
23
  var isV3 = allVue.version && allVue.version[0] === '3';
24
- var inject = allVue.inject;
25
24
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
26
25
  var Scheduler_1 = require("../Scheduler");
27
26
  var main_1 = require("../utils/main");
@@ -40,6 +39,7 @@ var SchedulerEditSlotVue2 = {
40
39
  type: Number,
41
40
  default: undefined
42
41
  },
42
+ className: String,
43
43
  form: Object,
44
44
  formItem: Object,
45
45
  refTo: [Function, Object],
@@ -137,11 +137,9 @@ var SchedulerEditSlotVue2 = {
137
137
  var h = gh || createElement;
138
138
  var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
139
139
  var _a = this.$props,
140
- refTo = _a.refTo,
141
140
  propViewSlot = _a.viewSlot,
142
141
  propForm = _a.form,
143
142
  propFormItem = _a.formItem,
144
- onFormItemChange = _a.onFormItemChange,
145
143
  items = _a.items,
146
144
  row = _a.row,
147
145
  group = _a.group,
@@ -155,7 +153,8 @@ var SchedulerEditSlotVue2 = {
155
153
  zonedStart = _a.zonedStart,
156
154
  zonedEnd = _a.zonedEnd,
157
155
  navDay = _a.navDay,
158
- itemsPerSlot = _a.itemsPerSlot;
156
+ itemsPerSlot = _a.itemsPerSlot,
157
+ className = _a.className;
159
158
  var selected = this.bv.selectedSlots.some(function (s) {
160
159
  return (0, main_1.compareSlots)(s.cSlot, _this.cSlot);
161
160
  });
@@ -163,8 +162,9 @@ var SchedulerEditSlotVue2 = {
163
162
  var editSlotRenderDefaultRendering =
164
163
  // @ts-ignore function children
165
164
  h(SchedulerViewSlot_1.SchedulerViewSlot, {
166
- slotRender: this.$props.slotRender,
165
+ className: className,
167
166
  attrs: this.v3 ? undefined : {
167
+ className: className,
168
168
  slotRender: this.$props.slotRender,
169
169
  isAllDay: this.isAllDay,
170
170
  expandable: this.expandable,
@@ -188,6 +188,7 @@ var SchedulerEditSlotVue2 = {
188
188
  formItem: this.compFormItem
189
189
  // Focus
190
190
  },
191
+ slotRender: this.$props.slotRender,
191
192
  isAllDay: this.isAllDay,
192
193
  expandable: this.expandable,
193
194
  editable: this.editable,
@@ -20,6 +20,8 @@ export interface SchedulerSlotProps extends Slot {
20
20
  viewSlot?: any;
21
21
  /** @hidden */
22
22
  slotStyle?: any;
23
+ /** @hidden */
24
+ className?: string;
23
25
  /**
24
26
  * Specifies the `id` of the wrapping element of the SchedulerSlot.
25
27
  */