@progress/kendo-vue-scheduler 3.3.1-dev.202205110620 → 3.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.
- package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
- package/dist/es/Scheduler.d.ts +2 -0
- package/dist/es/Scheduler.js +3 -0
- package/dist/es/components/BaseView.d.ts +1 -1
- package/dist/es/components/BaseView.js +2 -2
- package/dist/es/items/SchedulerItem.js +281 -260
- package/dist/es/models/SchedulerView.d.ts +8 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/views/agenda/AgendaView.js +19 -3
- package/dist/es/views/day/DayView.js +5 -2
- package/dist/es/views/day/MultiDayView.d.ts +4 -0
- package/dist/es/views/day/MultiDayView.js +3 -2
- package/dist/es/views/month/MonthView.d.ts +4 -0
- package/dist/es/views/month/MonthView.js +115 -12
- package/dist/es/views/time/MultiDayTimelineView.d.ts +4 -0
- package/dist/es/views/time/MultiDayTimelineView.js +134 -9
- package/dist/es/views/time/TimelineView.js +19 -0
- package/dist/es/views/week/WeekView.js +3 -0
- package/dist/es/views/week/WorkWeekView.js +3 -0
- package/dist/npm/Scheduler.d.ts +2 -0
- package/dist/npm/Scheduler.js +3 -0
- package/dist/npm/components/BaseView.d.ts +1 -1
- package/dist/npm/components/BaseView.js +2 -2
- package/dist/npm/items/SchedulerItem.js +279 -258
- package/dist/npm/models/SchedulerView.d.ts +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/views/agenda/AgendaView.js +18 -2
- package/dist/npm/views/day/DayView.js +5 -2
- package/dist/npm/views/day/MultiDayView.d.ts +4 -0
- package/dist/npm/views/day/MultiDayView.js +3 -2
- package/dist/npm/views/month/MonthView.d.ts +4 -0
- package/dist/npm/views/month/MonthView.js +117 -12
- package/dist/npm/views/time/MultiDayTimelineView.d.ts +4 -0
- package/dist/npm/views/time/MultiDayTimelineView.js +136 -9
- package/dist/npm/views/time/TimelineView.js +19 -0
- package/dist/npm/views/week/WeekView.js +3 -0
- package/dist/npm/views/week/WorkWeekView.js +3 -0
- package/package.json +12 -12
|
@@ -19,8 +19,8 @@ import * as Vue from 'vue';
|
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
21
|
var inject = allVue.inject;
|
|
22
|
-
import { COLLECTION_ACTION } from '../utils';
|
|
23
|
-
import { Draggable, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
22
|
+
import { COLLECTION_ACTION, toSchedulerGroups } from '../utils';
|
|
23
|
+
import { Draggable, getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
24
24
|
import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
25
25
|
import { messages, deleteTitle } from '../messages';
|
|
26
26
|
import { useEditable } from '../hooks';
|
|
@@ -107,6 +107,12 @@ var SchedulerItemVue2 = {
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
inject: {
|
|
110
|
+
ks: {
|
|
111
|
+
default: null
|
|
112
|
+
},
|
|
113
|
+
bv: {
|
|
114
|
+
default: null
|
|
115
|
+
},
|
|
110
116
|
kendoLocalizationService: {
|
|
111
117
|
default: null
|
|
112
118
|
},
|
|
@@ -143,9 +149,15 @@ var SchedulerItemVue2 = {
|
|
|
143
149
|
return useEditable(this.$props.editable);
|
|
144
150
|
},
|
|
145
151
|
resource: function resource() {
|
|
146
|
-
|
|
152
|
+
var _this = this;
|
|
153
|
+
|
|
154
|
+
var groupedWithColor = this.$props.group.resources.find(function (r) {
|
|
147
155
|
return Boolean(r.colorField && r[r.colorField] !== '' && r[r.colorField] !== undefined);
|
|
148
156
|
});
|
|
157
|
+
var nonGroupedWithColor = toSchedulerGroups(undefined, this.ks.props.resources)[0].resources.find(function (r) {
|
|
158
|
+
return Boolean(r.colorField && r[r.colorField] !== '' && r[r.colorField] !== undefined && _this.dataItem[r.field] === r.value);
|
|
159
|
+
});
|
|
160
|
+
return groupedWithColor || nonGroupedWithColor;
|
|
149
161
|
},
|
|
150
162
|
color: function color() {
|
|
151
163
|
return this.resource && this.resource.colorField && this.resource[this.resource.colorField];
|
|
@@ -212,13 +224,22 @@ var SchedulerItemVue2 = {
|
|
|
212
224
|
},
|
|
213
225
|
// @ts-ignore
|
|
214
226
|
render: function render(createElement) {
|
|
215
|
-
var
|
|
227
|
+
var _this2 = this;
|
|
216
228
|
|
|
217
229
|
var h = gh || createElement;
|
|
218
230
|
var defaultSlot = getDefaultSlots(this);
|
|
219
231
|
this.intl = provideIntlService(this);
|
|
220
232
|
var localization = provideLocalizationService(this);
|
|
221
233
|
var deleteMessage = localization.toLanguageString(deleteTitle, messages[deleteTitle]);
|
|
234
|
+
var resizeHint = getTemplate.call(this, {
|
|
235
|
+
h: h,
|
|
236
|
+
template: this.bv.viewProps.resizeHint,
|
|
237
|
+
additionalProps: {
|
|
238
|
+
dataItem: this.dataItem,
|
|
239
|
+
color: this.color,
|
|
240
|
+
itemClassName: this.itemClassName
|
|
241
|
+
}
|
|
242
|
+
});
|
|
222
243
|
return (// @ts-ignore function children
|
|
223
244
|
h(Draggable, {
|
|
224
245
|
onPress: this.handlePress,
|
|
@@ -232,108 +253,108 @@ var SchedulerItemVue2 = {
|
|
|
232
253
|
ref: 'draggable'
|
|
233
254
|
}, this.v3 ? function () {
|
|
234
255
|
return [h("div", {
|
|
235
|
-
id:
|
|
236
|
-
attrs:
|
|
237
|
-
id:
|
|
238
|
-
tabIndex:
|
|
256
|
+
id: _this2.$props.id,
|
|
257
|
+
attrs: _this2.v3 ? undefined : {
|
|
258
|
+
id: _this2.$props.id,
|
|
259
|
+
tabIndex: _this2.currentTabIndex,
|
|
239
260
|
// Aria
|
|
240
|
-
"aria-label":
|
|
241
|
-
"aria-selected":
|
|
261
|
+
"aria-label": _this2.eventLabel,
|
|
262
|
+
"aria-selected": _this2.$props.selected // Focus
|
|
242
263
|
,
|
|
243
|
-
"data-group-index":
|
|
244
|
-
"data-range-index":
|
|
264
|
+
"data-group-index": _this2.$props.group.index,
|
|
265
|
+
"data-range-index": _this2.$props.range.index
|
|
245
266
|
},
|
|
246
|
-
style:
|
|
247
|
-
tabIndex:
|
|
248
|
-
"class":
|
|
249
|
-
"aria-label":
|
|
250
|
-
"aria-selected":
|
|
251
|
-
onFocusin:
|
|
252
|
-
on:
|
|
253
|
-
"focusin":
|
|
254
|
-
"blur":
|
|
255
|
-
"mouseup":
|
|
256
|
-
"mousedown":
|
|
257
|
-
"click":
|
|
258
|
-
"mouseover":
|
|
259
|
-
"mouseout":
|
|
260
|
-
"mouseenter":
|
|
261
|
-
"mouseleave":
|
|
262
|
-
"dblclick":
|
|
263
|
-
"keydown":
|
|
264
|
-
"keypress":
|
|
265
|
-
"keyup":
|
|
267
|
+
style: _this2.computedStyle,
|
|
268
|
+
tabIndex: _this2.currentTabIndex,
|
|
269
|
+
"class": _this2.itemClassName,
|
|
270
|
+
"aria-label": _this2.eventLabel,
|
|
271
|
+
"aria-selected": _this2.$props.selected,
|
|
272
|
+
onFocusin: _this2.handleFocus,
|
|
273
|
+
on: _this2.v3 ? undefined : {
|
|
274
|
+
"focusin": _this2.handleFocus,
|
|
275
|
+
"blur": _this2.handleBlur,
|
|
276
|
+
"mouseup": _this2.handleMouseUp,
|
|
277
|
+
"mousedown": _this2.handleMouseDown,
|
|
278
|
+
"click": _this2.handleClick,
|
|
279
|
+
"mouseover": _this2.handleMouseOver,
|
|
280
|
+
"mouseout": _this2.handleMouseOut,
|
|
281
|
+
"mouseenter": _this2.handleMouseEnter,
|
|
282
|
+
"mouseleave": _this2.handleMouseLeave,
|
|
283
|
+
"dblclick": _this2.handleDoubleClick,
|
|
284
|
+
"keydown": _this2.handleKeyDown,
|
|
285
|
+
"keypress": _this2.handleKeyPress,
|
|
286
|
+
"keyup": _this2.handleKeyUp
|
|
266
287
|
},
|
|
267
|
-
onBlur:
|
|
288
|
+
onBlur: _this2.handleBlur // Mouse
|
|
268
289
|
,
|
|
269
|
-
onMouseup:
|
|
270
|
-
onMousedown:
|
|
271
|
-
onClick:
|
|
272
|
-
onMouseover:
|
|
273
|
-
onMouseout:
|
|
274
|
-
onMouseenter:
|
|
275
|
-
onMouseleave:
|
|
276
|
-
onDblclick:
|
|
290
|
+
onMouseup: _this2.handleMouseUp,
|
|
291
|
+
onMousedown: _this2.handleMouseDown,
|
|
292
|
+
onClick: _this2.handleClick,
|
|
293
|
+
onMouseover: _this2.handleMouseOver,
|
|
294
|
+
onMouseout: _this2.handleMouseOut,
|
|
295
|
+
onMouseenter: _this2.handleMouseEnter,
|
|
296
|
+
onMouseleave: _this2.handleMouseLeave,
|
|
297
|
+
onDblclick: _this2.handleDoubleClick // Keyboard
|
|
277
298
|
,
|
|
278
|
-
onKeydown:
|
|
279
|
-
onKeypress:
|
|
280
|
-
onKeyup:
|
|
281
|
-
"data-group-index":
|
|
282
|
-
"data-range-index":
|
|
283
|
-
}, [!
|
|
299
|
+
onKeydown: _this2.handleKeyDown,
|
|
300
|
+
onKeypress: _this2.handleKeyPress,
|
|
301
|
+
onKeyup: _this2.handleKeyUp,
|
|
302
|
+
"data-group-index": _this2.$props.group.index,
|
|
303
|
+
"data-range-index": _this2.$props.range.index
|
|
304
|
+
}, [!_this2.$props.resizeHint && h("span", {
|
|
284
305
|
"class": "k-event-actions"
|
|
285
|
-
}, [
|
|
306
|
+
}, [_this2.$props.tail && h("span", {
|
|
286
307
|
"class": "k-icon k-i-arrow-60-left"
|
|
287
|
-
}),
|
|
308
|
+
}), _this2.$props.isRecurring && !_this2.$props.isException && h("span", {
|
|
288
309
|
"class": "k-icon k-i-reload"
|
|
289
|
-
}), !
|
|
310
|
+
}), !_this2.$props.isRecurring && _this2.$props.isException && h("span", {
|
|
290
311
|
"class": "k-icon k-i-non-recurrence"
|
|
291
|
-
})]),
|
|
292
|
-
dataItem:
|
|
293
|
-
attrs:
|
|
294
|
-
dataItem:
|
|
312
|
+
})]), _this2.formItem && !_this2.showOccurrenceDialog && _this2.currentEditable.edit && h(SchedulerForm, {
|
|
313
|
+
dataItem: _this2.formItem,
|
|
314
|
+
attrs: _this2.v3 ? undefined : {
|
|
315
|
+
dataItem: _this2.formItem
|
|
295
316
|
},
|
|
296
|
-
onSubmit:
|
|
297
|
-
on:
|
|
298
|
-
"submit":
|
|
299
|
-
"close":
|
|
300
|
-
"cancel":
|
|
317
|
+
onSubmit: _this2.ksFormSubmit,
|
|
318
|
+
on: _this2.v3 ? undefined : {
|
|
319
|
+
"submit": _this2.ksFormSubmit,
|
|
320
|
+
"close": _this2.ksCancel,
|
|
321
|
+
"cancel": _this2.ksCancel
|
|
301
322
|
},
|
|
302
|
-
onClose:
|
|
303
|
-
onCancel:
|
|
304
|
-
}),
|
|
305
|
-
dataItem:
|
|
306
|
-
attrs:
|
|
307
|
-
dataItem:
|
|
308
|
-
isRemove: !!
|
|
323
|
+
onClose: _this2.ksCancel,
|
|
324
|
+
onCancel: _this2.ksCancel
|
|
325
|
+
}), _this2.showOccurrenceDialog && h(SchedulerOccurrenceDialog, {
|
|
326
|
+
dataItem: _this2.formItem || _this2.dragItem || _this2.resizeItem || _this2.removeItem,
|
|
327
|
+
attrs: _this2.v3 ? undefined : {
|
|
328
|
+
dataItem: _this2.formItem || _this2.dragItem || _this2.resizeItem || _this2.removeItem,
|
|
329
|
+
isRemove: !!_this2.removeItem
|
|
309
330
|
},
|
|
310
|
-
isRemove: !!
|
|
311
|
-
onClose:
|
|
312
|
-
on:
|
|
313
|
-
"close":
|
|
314
|
-
"occurrenceclose":
|
|
315
|
-
"seriesclose":
|
|
331
|
+
isRemove: !!_this2.removeItem,
|
|
332
|
+
onClose: _this2.ksCancel,
|
|
333
|
+
on: _this2.v3 ? undefined : {
|
|
334
|
+
"close": _this2.ksCancel,
|
|
335
|
+
"occurrenceclose": _this2.ksOccurrenceClick,
|
|
336
|
+
"seriesclose": _this2.ksSeriesClick
|
|
316
337
|
},
|
|
317
|
-
onOccurrenceclose:
|
|
318
|
-
onSeriesclose:
|
|
319
|
-
}),
|
|
320
|
-
dataItem:
|
|
321
|
-
attrs:
|
|
322
|
-
dataItem:
|
|
338
|
+
onOccurrenceclose: _this2.ksOccurrenceClick,
|
|
339
|
+
onSeriesclose: _this2.ksSeriesClick
|
|
340
|
+
}), _this2.showRemoveDialog && _this2.removeItem && _this2.currentEditable.remove && h(SchedulerRemoveDialog, {
|
|
341
|
+
dataItem: _this2.removeItem,
|
|
342
|
+
attrs: _this2.v3 ? undefined : {
|
|
343
|
+
dataItem: _this2.removeItem
|
|
323
344
|
},
|
|
324
|
-
onClose:
|
|
325
|
-
on:
|
|
326
|
-
"close":
|
|
327
|
-
"cancel":
|
|
328
|
-
"confirm":
|
|
345
|
+
onClose: _this2.ksCancel,
|
|
346
|
+
on: _this2.v3 ? undefined : {
|
|
347
|
+
"close": _this2.ksCancel,
|
|
348
|
+
"cancel": _this2.ksCancel,
|
|
349
|
+
"confirm": _this2.ksRemoveConfirm
|
|
329
350
|
},
|
|
330
|
-
onCancel:
|
|
331
|
-
onConfirm:
|
|
332
|
-
}), defaultSlot, !
|
|
351
|
+
onCancel: _this2.ksCancel,
|
|
352
|
+
onConfirm: _this2.ksRemoveConfirm
|
|
353
|
+
}), defaultSlot, !_this2.$props.resizeHint && h("span", {
|
|
333
354
|
"class": "k-event-actions"
|
|
334
|
-
}, [
|
|
355
|
+
}, [_this2.currentEditable.remove && h("a", {
|
|
335
356
|
tabIndex: -1,
|
|
336
|
-
attrs:
|
|
357
|
+
attrs: _this2.v3 ? undefined : {
|
|
337
358
|
tabIndex: -1,
|
|
338
359
|
"aria-hidden": "true",
|
|
339
360
|
title: deleteMessage,
|
|
@@ -343,25 +364,25 @@ var SchedulerItemVue2 = {
|
|
|
343
364
|
"class": "k-link k-event-delete",
|
|
344
365
|
title: deleteMessage,
|
|
345
366
|
"aria-label": deleteMessage,
|
|
346
|
-
onClick:
|
|
347
|
-
on:
|
|
348
|
-
"click":
|
|
367
|
+
onClick: _this2.handleRemoveClick,
|
|
368
|
+
on: _this2.v3 ? undefined : {
|
|
369
|
+
"click": _this2.handleRemoveClick
|
|
349
370
|
}
|
|
350
371
|
}, [h("span", {
|
|
351
372
|
"class": "k-icon k-i-close"
|
|
352
|
-
})]),
|
|
373
|
+
})]), _this2.$props.head && h("span", {
|
|
353
374
|
"class": "k-icon k-i-arrow-60-right"
|
|
354
|
-
})]),
|
|
375
|
+
})]), _this2.currentEditable.resize && _this2.$props.vertical && [// @ts-ignore function children
|
|
355
376
|
h(Draggable, {
|
|
356
|
-
onPress:
|
|
357
|
-
on:
|
|
358
|
-
"press":
|
|
359
|
-
"drag":
|
|
360
|
-
"release":
|
|
377
|
+
onPress: _this2.handleResizePress,
|
|
378
|
+
on: _this2.v3 ? undefined : {
|
|
379
|
+
"press": _this2.handleResizePress,
|
|
380
|
+
"drag": _this2.handleResizeStartDrag,
|
|
381
|
+
"release": _this2.handleResizeRelease
|
|
361
382
|
},
|
|
362
|
-
onDrag:
|
|
363
|
-
onRelease:
|
|
364
|
-
},
|
|
383
|
+
onDrag: _this2.handleResizeStartDrag,
|
|
384
|
+
onRelease: _this2.handleResizeRelease
|
|
385
|
+
}, _this2.v3 ? function () {
|
|
365
386
|
return [h("span", {
|
|
366
387
|
"class": "k-resize-handle k-resize-n"
|
|
367
388
|
})];
|
|
@@ -369,31 +390,31 @@ var SchedulerItemVue2 = {
|
|
|
369
390
|
"class": "k-resize-handle k-resize-n"
|
|
370
391
|
})]), // @ts-ignore function children
|
|
371
392
|
h(Draggable, {
|
|
372
|
-
onPress:
|
|
373
|
-
on:
|
|
374
|
-
"press":
|
|
375
|
-
"drag":
|
|
376
|
-
"release":
|
|
393
|
+
onPress: _this2.handleResizePress,
|
|
394
|
+
on: _this2.v3 ? undefined : {
|
|
395
|
+
"press": _this2.handleResizePress,
|
|
396
|
+
"drag": _this2.handleResizeEndDrag,
|
|
397
|
+
"release": _this2.handleResizeRelease
|
|
377
398
|
},
|
|
378
|
-
onDrag:
|
|
379
|
-
onRelease:
|
|
380
|
-
},
|
|
399
|
+
onDrag: _this2.handleResizeEndDrag,
|
|
400
|
+
onRelease: _this2.handleResizeRelease
|
|
401
|
+
}, _this2.v3 ? function () {
|
|
381
402
|
return [h("span", {
|
|
382
403
|
"class": "k-resize-handle k-resize-s"
|
|
383
404
|
})];
|
|
384
405
|
} : [h("span", {
|
|
385
406
|
"class": "k-resize-handle k-resize-s"
|
|
386
|
-
})])],
|
|
407
|
+
})])], _this2.currentEditable.resize && !_this2.$props.vertical && [// @ts-ignore function children
|
|
387
408
|
h(Draggable, {
|
|
388
|
-
onPress:
|
|
389
|
-
on:
|
|
390
|
-
"press":
|
|
391
|
-
"drag":
|
|
392
|
-
"release":
|
|
409
|
+
onPress: _this2.handleResizePress,
|
|
410
|
+
on: _this2.v3 ? undefined : {
|
|
411
|
+
"press": _this2.handleResizePress,
|
|
412
|
+
"drag": _this2.handleResizeStartDrag,
|
|
413
|
+
"release": _this2.handleResizeRelease
|
|
393
414
|
},
|
|
394
|
-
onDrag:
|
|
395
|
-
onRelease:
|
|
396
|
-
},
|
|
415
|
+
onDrag: _this2.handleResizeStartDrag,
|
|
416
|
+
onRelease: _this2.handleResizeRelease
|
|
417
|
+
}, _this2.v3 ? function () {
|
|
397
418
|
return [h("span", {
|
|
398
419
|
"class": "k-resize-handle k-resize-w"
|
|
399
420
|
})];
|
|
@@ -401,132 +422,132 @@ var SchedulerItemVue2 = {
|
|
|
401
422
|
"class": "k-resize-handle k-resize-w"
|
|
402
423
|
})]), // @ts-ignore function children
|
|
403
424
|
h(Draggable, {
|
|
404
|
-
onPress:
|
|
405
|
-
on:
|
|
406
|
-
"press":
|
|
407
|
-
"drag":
|
|
408
|
-
"release":
|
|
425
|
+
onPress: _this2.handleResizePress,
|
|
426
|
+
on: _this2.v3 ? undefined : {
|
|
427
|
+
"press": _this2.handleResizePress,
|
|
428
|
+
"drag": _this2.handleResizeEndDrag,
|
|
429
|
+
"release": _this2.handleResizeRelease
|
|
409
430
|
},
|
|
410
|
-
onDrag:
|
|
411
|
-
onRelease:
|
|
412
|
-
},
|
|
431
|
+
onDrag: _this2.handleResizeEndDrag,
|
|
432
|
+
onRelease: _this2.handleResizeRelease
|
|
433
|
+
}, _this2.v3 ? function () {
|
|
413
434
|
return [h("span", {
|
|
414
435
|
"class": "k-resize-handle k-resize-e"
|
|
415
436
|
})];
|
|
416
437
|
} : [h("span", {
|
|
417
438
|
"class": "k-resize-handle k-resize-e"
|
|
418
|
-
})])],
|
|
439
|
+
})])], _this2.$props.resizeHint && _this2.bv.viewProps.resizeHint ? resizeHint : [h("div", {
|
|
419
440
|
"class": "k-marquee-color",
|
|
420
441
|
style: {
|
|
421
|
-
borderColor:
|
|
422
|
-
backgroundColor:
|
|
442
|
+
borderColor: _this2.color,
|
|
443
|
+
backgroundColor: _this2.color
|
|
423
444
|
}
|
|
424
445
|
}), h("div", {
|
|
425
446
|
"class": "k-marquee-text"
|
|
426
|
-
}, [!
|
|
447
|
+
}, [!_this2.$props.tail && h("div", {
|
|
427
448
|
"class": "k-label-top"
|
|
428
|
-
}, [
|
|
449
|
+
}, [_this2.intl.formatDate(_this2.$props.zonedStart, _this2.$props.format)]), !_this2.$props.head && h("div", {
|
|
429
450
|
"class": "k-label-bottom"
|
|
430
|
-
}, [
|
|
451
|
+
}, [_this2.intl.formatDate(_this2.$props.zonedEnd, _this2.$props.format)])])]])];
|
|
431
452
|
} : [h("div", {
|
|
432
|
-
id:
|
|
433
|
-
attrs:
|
|
434
|
-
id:
|
|
435
|
-
tabIndex:
|
|
436
|
-
"aria-label":
|
|
437
|
-
"aria-selected":
|
|
438
|
-
"data-group-index":
|
|
439
|
-
"data-range-index":
|
|
453
|
+
id: _this2.$props.id,
|
|
454
|
+
attrs: _this2.v3 ? undefined : {
|
|
455
|
+
id: _this2.$props.id,
|
|
456
|
+
tabIndex: _this2.currentTabIndex,
|
|
457
|
+
"aria-label": _this2.eventLabel,
|
|
458
|
+
"aria-selected": _this2.$props.selected,
|
|
459
|
+
"data-group-index": _this2.$props.group.index,
|
|
460
|
+
"data-range-index": _this2.$props.range.index
|
|
440
461
|
},
|
|
441
|
-
style:
|
|
442
|
-
tabIndex:
|
|
443
|
-
"class":
|
|
444
|
-
"aria-label":
|
|
445
|
-
"aria-selected":
|
|
446
|
-
onFocusin:
|
|
447
|
-
on:
|
|
448
|
-
"focusin":
|
|
449
|
-
"blur":
|
|
450
|
-
"mouseup":
|
|
451
|
-
"mousedown":
|
|
452
|
-
"click":
|
|
453
|
-
"mouseover":
|
|
454
|
-
"mouseout":
|
|
455
|
-
"mouseenter":
|
|
456
|
-
"mouseleave":
|
|
457
|
-
"dblclick":
|
|
458
|
-
"keydown":
|
|
459
|
-
"keypress":
|
|
460
|
-
"keyup":
|
|
462
|
+
style: _this2.computedStyle,
|
|
463
|
+
tabIndex: _this2.currentTabIndex,
|
|
464
|
+
"class": _this2.itemClassName,
|
|
465
|
+
"aria-label": _this2.eventLabel,
|
|
466
|
+
"aria-selected": _this2.$props.selected,
|
|
467
|
+
onFocusin: _this2.handleFocus,
|
|
468
|
+
on: _this2.v3 ? undefined : {
|
|
469
|
+
"focusin": _this2.handleFocus,
|
|
470
|
+
"blur": _this2.handleBlur,
|
|
471
|
+
"mouseup": _this2.handleMouseUp,
|
|
472
|
+
"mousedown": _this2.handleMouseDown,
|
|
473
|
+
"click": _this2.handleClick,
|
|
474
|
+
"mouseover": _this2.handleMouseOver,
|
|
475
|
+
"mouseout": _this2.handleMouseOut,
|
|
476
|
+
"mouseenter": _this2.handleMouseEnter,
|
|
477
|
+
"mouseleave": _this2.handleMouseLeave,
|
|
478
|
+
"dblclick": _this2.handleDoubleClick,
|
|
479
|
+
"keydown": _this2.handleKeyDown,
|
|
480
|
+
"keypress": _this2.handleKeyPress,
|
|
481
|
+
"keyup": _this2.handleKeyUp
|
|
461
482
|
},
|
|
462
|
-
onBlur:
|
|
463
|
-
onMouseup:
|
|
464
|
-
onMousedown:
|
|
465
|
-
onClick:
|
|
466
|
-
onMouseover:
|
|
467
|
-
onMouseout:
|
|
468
|
-
onMouseenter:
|
|
469
|
-
onMouseleave:
|
|
470
|
-
onDblclick:
|
|
471
|
-
onKeydown:
|
|
472
|
-
onKeypress:
|
|
473
|
-
onKeyup:
|
|
474
|
-
"data-group-index":
|
|
475
|
-
"data-range-index":
|
|
476
|
-
}, [!
|
|
483
|
+
onBlur: _this2.handleBlur,
|
|
484
|
+
onMouseup: _this2.handleMouseUp,
|
|
485
|
+
onMousedown: _this2.handleMouseDown,
|
|
486
|
+
onClick: _this2.handleClick,
|
|
487
|
+
onMouseover: _this2.handleMouseOver,
|
|
488
|
+
onMouseout: _this2.handleMouseOut,
|
|
489
|
+
onMouseenter: _this2.handleMouseEnter,
|
|
490
|
+
onMouseleave: _this2.handleMouseLeave,
|
|
491
|
+
onDblclick: _this2.handleDoubleClick,
|
|
492
|
+
onKeydown: _this2.handleKeyDown,
|
|
493
|
+
onKeypress: _this2.handleKeyPress,
|
|
494
|
+
onKeyup: _this2.handleKeyUp,
|
|
495
|
+
"data-group-index": _this2.$props.group.index,
|
|
496
|
+
"data-range-index": _this2.$props.range.index
|
|
497
|
+
}, [!_this2.$props.resizeHint && h("span", {
|
|
477
498
|
"class": "k-event-actions"
|
|
478
|
-
}, [
|
|
499
|
+
}, [_this2.$props.tail && h("span", {
|
|
479
500
|
"class": "k-icon k-i-arrow-60-left"
|
|
480
|
-
}),
|
|
501
|
+
}), _this2.$props.isRecurring && !_this2.$props.isException && h("span", {
|
|
481
502
|
"class": "k-icon k-i-reload"
|
|
482
|
-
}), !
|
|
503
|
+
}), !_this2.$props.isRecurring && _this2.$props.isException && h("span", {
|
|
483
504
|
"class": "k-icon k-i-non-recurrence"
|
|
484
|
-
})]),
|
|
485
|
-
dataItem:
|
|
486
|
-
attrs:
|
|
487
|
-
dataItem:
|
|
505
|
+
})]), _this2.formItem && !_this2.showOccurrenceDialog && _this2.currentEditable.edit && h(SchedulerForm, {
|
|
506
|
+
dataItem: _this2.formItem,
|
|
507
|
+
attrs: _this2.v3 ? undefined : {
|
|
508
|
+
dataItem: _this2.formItem
|
|
488
509
|
},
|
|
489
|
-
onSubmit:
|
|
490
|
-
on:
|
|
491
|
-
"submit":
|
|
492
|
-
"close":
|
|
493
|
-
"cancel":
|
|
510
|
+
onSubmit: _this2.ksFormSubmit,
|
|
511
|
+
on: _this2.v3 ? undefined : {
|
|
512
|
+
"submit": _this2.ksFormSubmit,
|
|
513
|
+
"close": _this2.ksCancel,
|
|
514
|
+
"cancel": _this2.ksCancel
|
|
494
515
|
},
|
|
495
|
-
onClose:
|
|
496
|
-
onCancel:
|
|
497
|
-
}),
|
|
498
|
-
dataItem:
|
|
499
|
-
attrs:
|
|
500
|
-
dataItem:
|
|
501
|
-
isRemove: !!
|
|
516
|
+
onClose: _this2.ksCancel,
|
|
517
|
+
onCancel: _this2.ksCancel
|
|
518
|
+
}), _this2.showOccurrenceDialog && h(SchedulerOccurrenceDialog, {
|
|
519
|
+
dataItem: _this2.formItem || _this2.dragItem || _this2.resizeItem || _this2.removeItem,
|
|
520
|
+
attrs: _this2.v3 ? undefined : {
|
|
521
|
+
dataItem: _this2.formItem || _this2.dragItem || _this2.resizeItem || _this2.removeItem,
|
|
522
|
+
isRemove: !!_this2.removeItem
|
|
502
523
|
},
|
|
503
|
-
isRemove: !!
|
|
504
|
-
onClose:
|
|
505
|
-
on:
|
|
506
|
-
"close":
|
|
507
|
-
"occurrenceclose":
|
|
508
|
-
"seriesclose":
|
|
524
|
+
isRemove: !!_this2.removeItem,
|
|
525
|
+
onClose: _this2.ksCancel,
|
|
526
|
+
on: _this2.v3 ? undefined : {
|
|
527
|
+
"close": _this2.ksCancel,
|
|
528
|
+
"occurrenceclose": _this2.ksOccurrenceClick,
|
|
529
|
+
"seriesclose": _this2.ksSeriesClick
|
|
509
530
|
},
|
|
510
|
-
onOccurrenceclose:
|
|
511
|
-
onSeriesclose:
|
|
512
|
-
}),
|
|
513
|
-
dataItem:
|
|
514
|
-
attrs:
|
|
515
|
-
dataItem:
|
|
531
|
+
onOccurrenceclose: _this2.ksOccurrenceClick,
|
|
532
|
+
onSeriesclose: _this2.ksSeriesClick
|
|
533
|
+
}), _this2.showRemoveDialog && _this2.removeItem && _this2.currentEditable.remove && h(SchedulerRemoveDialog, {
|
|
534
|
+
dataItem: _this2.removeItem,
|
|
535
|
+
attrs: _this2.v3 ? undefined : {
|
|
536
|
+
dataItem: _this2.removeItem
|
|
516
537
|
},
|
|
517
|
-
onClose:
|
|
518
|
-
on:
|
|
519
|
-
"close":
|
|
520
|
-
"cancel":
|
|
521
|
-
"confirm":
|
|
538
|
+
onClose: _this2.ksCancel,
|
|
539
|
+
on: _this2.v3 ? undefined : {
|
|
540
|
+
"close": _this2.ksCancel,
|
|
541
|
+
"cancel": _this2.ksCancel,
|
|
542
|
+
"confirm": _this2.ksRemoveConfirm
|
|
522
543
|
},
|
|
523
|
-
onCancel:
|
|
524
|
-
onConfirm:
|
|
525
|
-
}), defaultSlot, !
|
|
544
|
+
onCancel: _this2.ksCancel,
|
|
545
|
+
onConfirm: _this2.ksRemoveConfirm
|
|
546
|
+
}), defaultSlot, !_this2.$props.resizeHint && h("span", {
|
|
526
547
|
"class": "k-event-actions"
|
|
527
|
-
}, [
|
|
548
|
+
}, [_this2.currentEditable.remove && h("a", {
|
|
528
549
|
tabIndex: -1,
|
|
529
|
-
attrs:
|
|
550
|
+
attrs: _this2.v3 ? undefined : {
|
|
530
551
|
tabIndex: -1,
|
|
531
552
|
"aria-hidden": "true",
|
|
532
553
|
title: deleteMessage,
|
|
@@ -536,87 +557,87 @@ var SchedulerItemVue2 = {
|
|
|
536
557
|
"class": "k-link k-event-delete",
|
|
537
558
|
title: deleteMessage,
|
|
538
559
|
"aria-label": deleteMessage,
|
|
539
|
-
onClick:
|
|
540
|
-
on:
|
|
541
|
-
"click":
|
|
560
|
+
onClick: _this2.handleRemoveClick,
|
|
561
|
+
on: _this2.v3 ? undefined : {
|
|
562
|
+
"click": _this2.handleRemoveClick
|
|
542
563
|
}
|
|
543
564
|
}, [h("span", {
|
|
544
565
|
"class": "k-icon k-i-close"
|
|
545
|
-
})]),
|
|
566
|
+
})]), _this2.$props.head && h("span", {
|
|
546
567
|
"class": "k-icon k-i-arrow-60-right"
|
|
547
|
-
})]),
|
|
548
|
-
onPress:
|
|
549
|
-
on:
|
|
550
|
-
"press":
|
|
551
|
-
"drag":
|
|
552
|
-
"release":
|
|
568
|
+
})]), _this2.currentEditable.resize && _this2.$props.vertical && [h(Draggable, {
|
|
569
|
+
onPress: _this2.handleResizePress,
|
|
570
|
+
on: _this2.v3 ? undefined : {
|
|
571
|
+
"press": _this2.handleResizePress,
|
|
572
|
+
"drag": _this2.handleResizeStartDrag,
|
|
573
|
+
"release": _this2.handleResizeRelease
|
|
553
574
|
},
|
|
554
|
-
onDrag:
|
|
555
|
-
onRelease:
|
|
556
|
-
},
|
|
575
|
+
onDrag: _this2.handleResizeStartDrag,
|
|
576
|
+
onRelease: _this2.handleResizeRelease
|
|
577
|
+
}, _this2.v3 ? function () {
|
|
557
578
|
return [h("span", {
|
|
558
579
|
"class": "k-resize-handle k-resize-n"
|
|
559
580
|
})];
|
|
560
581
|
} : [h("span", {
|
|
561
582
|
"class": "k-resize-handle k-resize-n"
|
|
562
583
|
})]), h(Draggable, {
|
|
563
|
-
onPress:
|
|
564
|
-
on:
|
|
565
|
-
"press":
|
|
566
|
-
"drag":
|
|
567
|
-
"release":
|
|
584
|
+
onPress: _this2.handleResizePress,
|
|
585
|
+
on: _this2.v3 ? undefined : {
|
|
586
|
+
"press": _this2.handleResizePress,
|
|
587
|
+
"drag": _this2.handleResizeEndDrag,
|
|
588
|
+
"release": _this2.handleResizeRelease
|
|
568
589
|
},
|
|
569
|
-
onDrag:
|
|
570
|
-
onRelease:
|
|
571
|
-
},
|
|
590
|
+
onDrag: _this2.handleResizeEndDrag,
|
|
591
|
+
onRelease: _this2.handleResizeRelease
|
|
592
|
+
}, _this2.v3 ? function () {
|
|
572
593
|
return [h("span", {
|
|
573
594
|
"class": "k-resize-handle k-resize-s"
|
|
574
595
|
})];
|
|
575
596
|
} : [h("span", {
|
|
576
597
|
"class": "k-resize-handle k-resize-s"
|
|
577
|
-
})])],
|
|
578
|
-
onPress:
|
|
579
|
-
on:
|
|
580
|
-
"press":
|
|
581
|
-
"drag":
|
|
582
|
-
"release":
|
|
598
|
+
})])], _this2.currentEditable.resize && !_this2.$props.vertical && [h(Draggable, {
|
|
599
|
+
onPress: _this2.handleResizePress,
|
|
600
|
+
on: _this2.v3 ? undefined : {
|
|
601
|
+
"press": _this2.handleResizePress,
|
|
602
|
+
"drag": _this2.handleResizeStartDrag,
|
|
603
|
+
"release": _this2.handleResizeRelease
|
|
583
604
|
},
|
|
584
|
-
onDrag:
|
|
585
|
-
onRelease:
|
|
586
|
-
},
|
|
605
|
+
onDrag: _this2.handleResizeStartDrag,
|
|
606
|
+
onRelease: _this2.handleResizeRelease
|
|
607
|
+
}, _this2.v3 ? function () {
|
|
587
608
|
return [h("span", {
|
|
588
609
|
"class": "k-resize-handle k-resize-w"
|
|
589
610
|
})];
|
|
590
611
|
} : [h("span", {
|
|
591
612
|
"class": "k-resize-handle k-resize-w"
|
|
592
613
|
})]), h(Draggable, {
|
|
593
|
-
onPress:
|
|
594
|
-
on:
|
|
595
|
-
"press":
|
|
596
|
-
"drag":
|
|
597
|
-
"release":
|
|
614
|
+
onPress: _this2.handleResizePress,
|
|
615
|
+
on: _this2.v3 ? undefined : {
|
|
616
|
+
"press": _this2.handleResizePress,
|
|
617
|
+
"drag": _this2.handleResizeEndDrag,
|
|
618
|
+
"release": _this2.handleResizeRelease
|
|
598
619
|
},
|
|
599
|
-
onDrag:
|
|
600
|
-
onRelease:
|
|
601
|
-
},
|
|
620
|
+
onDrag: _this2.handleResizeEndDrag,
|
|
621
|
+
onRelease: _this2.handleResizeRelease
|
|
622
|
+
}, _this2.v3 ? function () {
|
|
602
623
|
return [h("span", {
|
|
603
624
|
"class": "k-resize-handle k-resize-e"
|
|
604
625
|
})];
|
|
605
626
|
} : [h("span", {
|
|
606
627
|
"class": "k-resize-handle k-resize-e"
|
|
607
|
-
})])],
|
|
628
|
+
})])], _this2.$props.resizeHint && _this2.bv.viewProps.resizeHint ? resizeHint : [h("div", {
|
|
608
629
|
"class": "k-marquee-color",
|
|
609
630
|
style: {
|
|
610
|
-
borderColor:
|
|
611
|
-
backgroundColor:
|
|
631
|
+
borderColor: _this2.color,
|
|
632
|
+
backgroundColor: _this2.color
|
|
612
633
|
}
|
|
613
634
|
}), h("div", {
|
|
614
635
|
"class": "k-marquee-text"
|
|
615
|
-
}, [!
|
|
636
|
+
}, [!_this2.$props.tail && h("div", {
|
|
616
637
|
"class": "k-label-top"
|
|
617
|
-
}, [
|
|
638
|
+
}, [_this2.intl.formatDate(_this2.$props.zonedStart, _this2.$props.format)]), !_this2.$props.head && h("div", {
|
|
618
639
|
"class": "k-label-bottom"
|
|
619
|
-
}, [
|
|
640
|
+
}, [_this2.intl.formatDate(_this2.$props.zonedEnd, _this2.$props.format)])])]])])
|
|
620
641
|
);
|
|
621
642
|
},
|
|
622
643
|
methods: {
|