@progress/kendo-vue-scheduler 3.0.9-dev.202203011321 → 3.1.0

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.
@@ -126,7 +126,13 @@ var SchedulerVue2 = {
126
126
  return {
127
127
  ks: this.ks,
128
128
  setActiveViewName: this.handleActiveViewNameChange,
129
- setActiveDate: this.handleDateChange
129
+ setActiveDate: this.handleDateChange,
130
+ itemDoubleClick: this.handleItemDoubleClick,
131
+ itemClick: this.handleItemClick,
132
+ slotDoubleClick: this.handleSlotDoubleClick,
133
+ slotClick: this.handleSlotClick,
134
+ taskDoubleClick: this.handleTaskDoubleClick,
135
+ taskClick: this.handleTaskClick
130
136
  };
131
137
  },
132
138
  data: function data() {
@@ -173,6 +179,10 @@ var SchedulerVue2 = {
173
179
  watch: {
174
180
  view: function view(newName) {
175
181
  this.updatePassedState(newName);
182
+ },
183
+ timezone: function timezone(newName) {
184
+ this.ks.timezone = newName;
185
+ this.updatePassedState();
176
186
  }
177
187
  },
178
188
  // @ts-ignore
@@ -1135,6 +1145,24 @@ var SchedulerVue2 = {
1135
1145
  this.$el.style.boxShadow = '';
1136
1146
  }
1137
1147
  },
1148
+ handleItemClick: function handleItemClick(args) {
1149
+ this.$emit('itemclick', args);
1150
+ },
1151
+ handleItemDoubleClick: function handleItemDoubleClick(args) {
1152
+ this.$emit('itemdoubleclick', args);
1153
+ },
1154
+ handleSlotClick: function handleSlotClick(args) {
1155
+ this.$emit('slotclick', args);
1156
+ },
1157
+ handleSlotDoubleClick: function handleSlotDoubleClick(args) {
1158
+ this.$emit('slotdoubleclick', args);
1159
+ },
1160
+ handleTaskClick: function handleTaskClick(args) {
1161
+ this.$emit('taskclick', args);
1162
+ },
1163
+ handleTaskDoubleClick: function handleTaskDoubleClick(args) {
1164
+ this.$emit('taskdoubleclick', args);
1165
+ },
1138
1166
  setDate: function setDate(newDate, event) {
1139
1167
  this.ks.currentDate = newDate;
1140
1168
  this.updatePassedState();
@@ -78,7 +78,8 @@ var ViewSelectorListVue2 = {
78
78
 
79
79
  return h("div", {
80
80
  "class": "k-scheduler-views-wrapper"
81
- }, [activeView && this.media === 'mobile' && h(DropDownButton, {
81
+ }, [activeView && this.media === 'mobile' && // @ts-ignore function children
82
+ h(DropDownButton, {
82
83
  "class": "k-views-dropdown",
83
84
  onItemclick: this.handleItemClick,
84
85
  on: this.v3 ? undefined : {
@@ -113,7 +114,13 @@ var ViewSelectorListVue2 = {
113
114
  });
114
115
  }, this),
115
116
  text: activeView.title || activeView.name
116
- }), this.media === 'desktop' && // @ts-ignore function children
117
+ }, this.v3 ? function () {
118
+ return [h("span", {
119
+ "class": "k-icon k-i-arrow-60-down"
120
+ })];
121
+ } : [h("span", {
122
+ "class": "k-icon k-i-arrow-60-down"
123
+ })]), this.media === 'desktop' && // @ts-ignore function children
117
124
  h(ButtonGroup, {
118
125
  "class": "k-scheduler-views"
119
126
  }, this.v3 ? function () {
@@ -5,6 +5,7 @@ declare type DefaultMethods<V> = {
5
5
  };
6
6
  /** @hidden */
7
7
  export interface SchedulerResourceIteratorContextProps {
8
+ noWrap: boolean;
8
9
  resource: any;
9
10
  groupIndex: number;
10
11
  }
@@ -8,6 +8,7 @@ var SchedulerResourceIteratorContextVue2 = {
8
8
  name: 'KendoSchedulerResourceIteratorContext',
9
9
  inheritAttrs: false,
10
10
  props: {
11
+ noWrap: Boolean,
11
12
  resource: {
12
13
  type: Object,
13
14
  default: function _default() {
@@ -43,7 +44,7 @@ var SchedulerResourceIteratorContextVue2 = {
43
44
  render: function render(createElement) {
44
45
  var h = gh || createElement;
45
46
  var defaultSlot = getDefaultSlots(this);
46
- return h("div", {
47
+ return this.$props.noWrap ? defaultSlot[0] : h("div", {
47
48
  "class": "k-scheduler-cell k-group-cell"
48
49
  }, [defaultSlot]);
49
50
  }
@@ -457,14 +457,13 @@ var SchedulerEditItemVue2 = {
457
457
  this.$emit('click', event);
458
458
  },
459
459
  handleDoubleClick: function handleDoubleClick(event) {
460
- if (this.onDoubleClickAction) {
461
- var actions = this.onDoubleClickAction(event, this.props, this.currentState);
462
-
463
- if (actions) {// Array.isArray(actions)
464
- // ? actions.filter(Boolean).map((action) => action &&
465
- // this.actionsReducerMap[action.type]({...action, item: this.item}, event))
466
- // : this.actionsReducerMap[actions.type]({...actions, item: this.item});
467
- }
460
+ if (this.onDoubleClickAction) {// const actions = this.onDoubleClickAction(event, this.props, this.currentState);
461
+ // if (actions) {
462
+ // Array.isArray(actions)
463
+ // ? actions.filter(Boolean).map((action) => action &&
464
+ // this.actionsReducerMap[action.type]({...action, item: this.item}, event))
465
+ // : this.actionsReducerMap[actions.type]({...actions, item: this.item});
466
+ // }
468
467
  }
469
468
 
470
469
  this.$emit('doubleclick', event);
@@ -106,6 +106,12 @@ var SchedulerItemVue2 = {
106
106
  },
107
107
  setItems: {
108
108
  default: null
109
+ },
110
+ itemClick: {
111
+ default: null
112
+ },
113
+ itemDoubleClick: {
114
+ default: null
109
115
  }
110
116
  },
111
117
  computed: {
@@ -238,7 +244,7 @@ var SchedulerItemVue2 = {
238
244
  "mouseout": this.handleMouseOut,
239
245
  "mouseenter": this.handleMouseEnter,
240
246
  "mouseleave": this.handleMouseLeave,
241
- "doubleclick": this.handleDoubleClick,
247
+ "dblclick": this.handleDoubleClick,
242
248
  "keydown": this.handleKeyDown,
243
249
  "keypress": this.handleKeyPress,
244
250
  "keyup": this.handleKeyUp
@@ -252,7 +258,7 @@ var SchedulerItemVue2 = {
252
258
  onMouseout: this.handleMouseOut,
253
259
  onMouseenter: this.handleMouseEnter,
254
260
  onMouseleave: this.handleMouseLeave,
255
- onDoubleclick: this.handleDoubleClick // Keyboard
261
+ onDblclick: this.handleDoubleClick // Keyboard
256
262
  ,
257
263
  onKeydown: this.handleKeyDown,
258
264
  onKeypress: this.handleKeyPress,
@@ -312,130 +318,197 @@ var SchedulerItemVue2 = {
312
318
  handleFocus: function handleFocus(event) {
313
319
  this.$emit('focus', {
314
320
  event: event,
315
- target: this.item
321
+ target: {
322
+ props: __assign({}, this.$props),
323
+ element: this.$el
324
+ }
316
325
  });
317
326
  },
318
327
  handleBlur: function handleBlur(event) {
319
328
  this.$emit('blur', {
320
329
  event: event,
321
- target: this.item
330
+ target: {
331
+ props: __assign({}, this.$props),
332
+ element: this.$el
333
+ }
322
334
  });
323
335
  },
324
336
  // Mouse Handlers
325
337
  handleMouseDown: function handleMouseDown(event) {
326
338
  this.$emit('mousedown', {
327
339
  event: event,
328
- target: this.item
340
+ target: {
341
+ props: __assign({}, this.$props),
342
+ element: this.$el
343
+ }
329
344
  });
330
345
  },
331
346
  handleClick: function handleClick(event) {
332
- this.$emit('click', {
347
+ var args = {
333
348
  event: event,
334
- target: this.item
335
- });
349
+ target: {
350
+ props: __assign({}, this.$props),
351
+ element: this.$el
352
+ }
353
+ };
354
+ this.$emit('click', args);
355
+ this.itemClick(args);
336
356
  },
337
357
  handleMouseUp: function handleMouseUp(event) {
338
358
  this.$emit('mouseup', {
339
359
  event: event,
340
- target: this.item
360
+ target: {
361
+ props: __assign({}, this.$props),
362
+ element: this.$el
363
+ }
341
364
  });
342
365
  },
343
366
  handleMouseOver: function handleMouseOver(event) {
344
367
  this.$emit('mouseover', {
345
368
  event: event,
346
- target: this.item
369
+ target: {
370
+ props: __assign({}, this.$props),
371
+ element: this.$el
372
+ }
347
373
  });
348
374
  },
349
375
  handleMouseOut: function handleMouseOut(event) {
350
376
  this.$emit('mouseout', {
351
377
  event: event,
352
- target: this.item
378
+ target: {
379
+ props: __assign({}, this.$props),
380
+ element: this.$el
381
+ }
353
382
  });
354
383
  },
355
384
  handleMouseEnter: function handleMouseEnter(event) {
356
385
  this.$emit('mouseenter', {
357
386
  event: event,
358
- target: this.item
387
+ target: {
388
+ props: __assign({}, this.$props),
389
+ element: this.$el
390
+ }
359
391
  });
360
392
  },
361
393
  handleMouseLeave: function handleMouseLeave(event) {
362
394
  this.$emit('mouseleave', {
363
395
  event: event,
364
- target: this.item
396
+ target: {
397
+ props: __assign({}, this.$props),
398
+ element: this.$el
399
+ }
365
400
  });
366
401
  },
367
402
  handleDoubleClick: function handleDoubleClick(event) {
368
- this.$emit('doubleclick', {
403
+ var args = {
369
404
  event: event,
370
- target: this.item
371
- });
405
+ target: {
406
+ props: __assign({}, this.$props),
407
+ element: this.$el
408
+ }
409
+ };
410
+ this.$emit('doubleclick', args);
411
+ this.itemDoubleClick(args);
372
412
  },
373
413
  handleRemoveClick: function handleRemoveClick(event) {
374
414
  this.$emit('removeclick', {
375
415
  event: event,
376
- target: this.item
416
+ target: {
417
+ props: __assign({}, this.$props),
418
+ element: this.$el
419
+ }
377
420
  });
378
421
  },
379
422
  // Keyboard Handlers
380
423
  handleKeyDown: function handleKeyDown(event) {
381
424
  this.$emit('keydown', {
382
425
  event: event,
383
- target: this.item
426
+ target: {
427
+ props: __assign({}, this.$props),
428
+ element: this.$el
429
+ }
384
430
  });
385
431
  },
386
432
  handleKeyPress: function handleKeyPress(event) {
387
433
  this.$emit('keypress', {
388
434
  event: event,
389
- target: this.item
435
+ target: {
436
+ props: __assign({}, this.$props),
437
+ element: this.$el
438
+ }
390
439
  });
391
440
  },
392
441
  handleKeyUp: function handleKeyUp(event) {
393
442
  this.$emit('keyup', {
394
443
  event: event,
395
- target: this.item
444
+ target: {
445
+ props: __assign({}, this.$props),
446
+ element: this.$el
447
+ }
396
448
  });
397
449
  },
398
450
  // Drag Handlers
399
451
  handlePress: function handlePress(dragEvent) {
400
452
  this.$emit('press', {
401
453
  dragEvent: dragEvent,
402
- target: this.item
454
+ target: {
455
+ props: __assign({}, this.$props),
456
+ element: this.$el
457
+ }
403
458
  });
404
459
  },
405
460
  handleDrag: function handleDrag(dragEvent) {
406
461
  this.$emit('drag', {
407
462
  dragEvent: dragEvent,
408
- target: this.item
463
+ target: {
464
+ props: __assign({}, this.$props),
465
+ element: this.$el
466
+ }
409
467
  });
410
468
  },
411
469
  handleRelease: function handleRelease(dragEvent) {
412
470
  this.$emit('release', {
413
471
  dragEvent: dragEvent,
414
- target: this.item
472
+ target: {
473
+ props: __assign({}, this.$props),
474
+ element: this.$el
475
+ }
415
476
  });
416
477
  },
417
478
  handleResizePress: function handleResizePress(dragEvent) {
418
479
  this.$emit('resizepress', {
419
480
  dragEvent: dragEvent,
420
- target: this.item
481
+ target: {
482
+ props: __assign({}, this.$props),
483
+ element: this.$el
484
+ }
421
485
  });
422
486
  },
423
487
  handleResizeStartDrag: function handleResizeStartDrag(dragEvent) {
424
488
  this.$emit('resizestartdrag', {
425
489
  dragEvent: dragEvent,
426
- target: this.item
490
+ target: {
491
+ props: __assign({}, this.$props),
492
+ element: this.$e
493
+ }
427
494
  });
428
495
  },
429
496
  handleResizeEndDrag: function handleResizeEndDrag(dragEvent) {
430
497
  this.$emit('resizeenddrag', {
431
498
  dragEvent: dragEvent,
432
- target: this.item
499
+ target: {
500
+ props: __assign({}, this.$props),
501
+ element: this.$el
502
+ }
433
503
  });
434
504
  },
435
505
  handleResizeRelease: function handleResizeRelease(dragEvent) {
436
506
  this.$emit('resizerelease', {
437
507
  dragEvent: dragEvent,
438
- target: this.item
508
+ target: {
509
+ props: __assign({}, this.$props),
510
+ element: this.$e
511
+ }
439
512
  });
440
513
  }
441
514
  }
@@ -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: 1646140644,
8
+ publishDate: 1646205551,
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
  };
@@ -1,4 +1,20 @@
1
- // @ts-ignore
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
2
18
  import * as Vue from 'vue';
3
19
  var allVue = Vue;
4
20
  var gh = allVue.h;
@@ -53,6 +69,12 @@ var SchedulerSlotVue2 = {
53
69
  },
54
70
  setSlots: {
55
71
  default: null
72
+ },
73
+ slotClick: {
74
+ default: null
75
+ },
76
+ slotDoubleClick: {
77
+ default: null
56
78
  }
57
79
  },
58
80
  created: function created() {
@@ -119,7 +141,7 @@ var SchedulerSlotVue2 = {
119
141
  "mouseleave": this.handleMouseLeave,
120
142
  "mouseover": this.handleMouseOver,
121
143
  "mouseout": this.handleMouseOut,
122
- "doubleclick": this.handleDoubleClick,
144
+ "dblclick": this.handleDoubleClick,
123
145
  "keydown": this.handleKeyDown,
124
146
  "keypress": this.handleKeyPress,
125
147
  "keyup": this.handleKeyUp
@@ -131,7 +153,7 @@ var SchedulerSlotVue2 = {
131
153
  onMouseleave: this.handleMouseLeave,
132
154
  onMouseover: this.handleMouseOver,
133
155
  onMouseout: this.handleMouseOut,
134
- onDoubleclick: this.handleDoubleClick // Keyboard
156
+ onDblclick: this.handleDoubleClick // Keyboard
135
157
  ,
136
158
  onKeydown: this.handleKeyDown,
137
159
  onKeypress: this.handleKeyPress,
@@ -149,67 +171,104 @@ var SchedulerSlotVue2 = {
149
171
  handleFocus: function handleFocus(event) {
150
172
  this.$emit('focus', {
151
173
  event: event,
152
- target: this.slot
174
+ target: {
175
+ props: __assign({}, this.$props),
176
+ element: this.$el
177
+ }
153
178
  });
154
179
  },
155
180
  handleBlur: function handleBlur(event) {
156
181
  this.$emit('blur', {
157
182
  event: event,
158
- target: this.slot
183
+ target: {
184
+ props: __assign({}, this.$props),
185
+ element: this.$el
186
+ }
159
187
  });
160
188
  },
161
189
  handleClick: function handleClick(event) {
162
- this.$emit('click', {
190
+ var args = {
163
191
  event: event,
164
- target: this.slot
165
- });
192
+ target: {
193
+ props: __assign({}, this.$props),
194
+ element: this.$el
195
+ }
196
+ };
197
+ this.$emit('click', args);
198
+ this.slotClick(args);
166
199
  },
167
200
  handleMouseOver: function handleMouseOver(event) {
168
201
  this.$emit('mouseover', {
169
202
  event: event,
170
- target: this.slot
203
+ target: {
204
+ props: __assign({}, this.$props),
205
+ element: this.$el
206
+ }
171
207
  });
172
208
  },
173
209
  handleMouseOut: function handleMouseOut(event) {
174
210
  this.$emit('mouseout', {
175
211
  event: event,
176
- target: this.slot
212
+ target: {
213
+ props: __assign({}, this.$props),
214
+ element: this.$el
215
+ }
177
216
  });
178
217
  },
179
218
  handleMouseEnter: function handleMouseEnter(event) {
180
219
  this.$emit('mouseenter', {
181
220
  event: event,
182
- target: this.slot
221
+ target: {
222
+ props: __assign({}, this.$props),
223
+ element: this.$el
224
+ }
183
225
  });
184
226
  },
185
227
  handleMouseLeave: function handleMouseLeave(event) {
186
228
  this.$emit('mouseleave', {
187
229
  event: event,
188
- target: this.slot
230
+ target: {
231
+ props: __assign({}, this.$props),
232
+ element: this.$el
233
+ }
189
234
  });
190
235
  },
191
236
  handleDoubleClick: function handleDoubleClick(event) {
192
- this.$emit('doubleclick', {
237
+ var args = {
193
238
  event: event,
194
- target: this.slot
195
- });
239
+ target: {
240
+ props: __assign({}, this.$props),
241
+ element: this.$el
242
+ }
243
+ };
244
+ this.$emit('doubleclick', args);
245
+ this.slotDoubleClick(args);
196
246
  },
197
247
  handleKeyDown: function handleKeyDown(event) {
198
248
  this.$emit('keydown', {
199
249
  event: event,
200
- target: this.slot
250
+ target: {
251
+ props: __assign({}, this.$props),
252
+ element: this.$el
253
+ }
201
254
  });
202
255
  },
203
256
  handleKeyPress: function handleKeyPress(event) {
204
257
  this.$emit('keydown', {
205
258
  event: event,
206
- target: this.slot
259
+ target: {
260
+ props: __assign({}, this.$props),
261
+ element: this.$el
262
+ }
207
263
  });
208
264
  },
209
265
  handleKeyUp: function handleKeyUp(event) {
210
266
  this.$emit('keyup', {
211
267
  event: event,
212
- target: this.slot
268
+ target: {
269
+ props: __assign({}, this.$props),
270
+ element: this.$el
271
+ }
213
272
  });
214
273
  }
215
274
  }
@@ -1,4 +1,20 @@
1
- // @ts-ignore
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
2
18
  import * as Vue from 'vue';
3
19
  var allVue = Vue;
4
20
  var gh = allVue.h;
@@ -41,6 +57,12 @@ var SchedulerTaskVue2 = {
41
57
  inject: {
42
58
  kendoLocalizationService: {
43
59
  default: null
60
+ },
61
+ taskClick: {
62
+ default: null
63
+ },
64
+ taskDoubleClick: {
65
+ default: null
44
66
  }
45
67
  },
46
68
  created: function created() {
@@ -67,10 +89,17 @@ var SchedulerTaskVue2 = {
67
89
  id: this.$props.id,
68
90
  attrs: this.v3 ? undefined : {
69
91
  id: this.$props.id,
70
- tabIndex: this.$props.tabIndex || undefined
92
+ tabIndex: this.$props.tabIndex || undefined // Mouse
93
+
71
94
  },
72
95
  "class": 'k-task',
73
- tabIndex: this.$props.tabIndex || undefined
96
+ tabIndex: this.$props.tabIndex || undefined,
97
+ onClick: this.handleClick,
98
+ on: this.v3 ? undefined : {
99
+ "click": this.handleClick,
100
+ "dblclick": this.handleDoubleClick
101
+ },
102
+ onDblclick: this.handleDoubleClick
74
103
  }, [color && h("span", {
75
104
  "class": "k-scheduler-mark",
76
105
  style: {
@@ -103,6 +132,28 @@ var SchedulerTaskVue2 = {
103
132
  event: event,
104
133
  target: this.task
105
134
  });
135
+ },
136
+ handleClick: function handleClick(event) {
137
+ var args = {
138
+ event: event,
139
+ target: {
140
+ props: __assign({}, this.$props),
141
+ element: this.$el
142
+ }
143
+ };
144
+ this.$emit('click', args);
145
+ this.taskClick(args);
146
+ },
147
+ handleDoubleClick: function handleDoubleClick(event) {
148
+ var args = {
149
+ event: event,
150
+ target: {
151
+ props: __assign({}, this.$props),
152
+ element: this.$el
153
+ }
154
+ };
155
+ this.$emit('doubleclick', args);
156
+ this.taskDoubleClick(args);
106
157
  }
107
158
  }
108
159
  };