@progress/kendo-vue-scheduler 3.1.1 → 3.1.2-dev.202203221454

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.
@@ -108,16 +108,7 @@ var SchedulerFormVue2 = {
108
108
  })]), // @ts-ignore function children
109
109
  h(DialogActionsBar, _this.v3 ? function () {
110
110
  return [// @ts-ignore function children
111
- h(Button, {
112
- disabled: !_this.renderProps.allowSubmit,
113
- attrs: _this.v3 ? undefined : {
114
- disabled: !_this.renderProps.allowSubmit
115
- },
116
- onClick: _this.renderProps.onSubmit,
117
- on: _this.v3 ? undefined : {
118
- "click": _this.renderProps.onSubmit
119
- }
120
- }, _this.v3 ? function () {
111
+ h(Button, _this.v3 ? function () {
121
112
  return [editSaveMessage];
122
113
  } : [editSaveMessage]), // @ts-ignore function children
123
114
  h(Button, {
@@ -128,16 +119,7 @@ var SchedulerFormVue2 = {
128
119
  }, _this.v3 ? function () {
129
120
  return [editCancelMessage];
130
121
  } : [editCancelMessage])];
131
- } : [h(Button, {
132
- disabled: !_this.renderProps.allowSubmit,
133
- attrs: _this.v3 ? undefined : {
134
- disabled: !_this.renderProps.allowSubmit
135
- },
136
- onClick: _this.renderProps.onSubmit,
137
- on: _this.v3 ? undefined : {
138
- "click": _this.renderProps.onSubmit
139
- }
140
- }, _this.v3 ? function () {
122
+ } : [h(Button, _this.v3 ? function () {
141
123
  return [editSaveMessage];
142
124
  } : [editSaveMessage]), h(Button, {
143
125
  onClick: _this.handleCancel,
@@ -171,16 +153,7 @@ var SchedulerFormVue2 = {
171
153
  as: Editor
172
154
  }
173
155
  })]), h(DialogActionsBar, _this.v3 ? function () {
174
- return [h(Button, {
175
- disabled: !_this.renderProps.allowSubmit,
176
- attrs: _this.v3 ? undefined : {
177
- disabled: !_this.renderProps.allowSubmit
178
- },
179
- onClick: _this.renderProps.onSubmit,
180
- on: _this.v3 ? undefined : {
181
- "click": _this.renderProps.onSubmit
182
- }
183
- }, _this.v3 ? function () {
156
+ return [h(Button, _this.v3 ? function () {
184
157
  return [editSaveMessage];
185
158
  } : [editSaveMessage]), h(Button, {
186
159
  onClick: _this.handleCancel,
@@ -190,16 +163,7 @@ var SchedulerFormVue2 = {
190
163
  }, _this.v3 ? function () {
191
164
  return [editCancelMessage];
192
165
  } : [editCancelMessage])];
193
- } : [h(Button, {
194
- disabled: !_this.renderProps.allowSubmit,
195
- attrs: _this.v3 ? undefined : {
196
- disabled: !_this.renderProps.allowSubmit
197
- },
198
- onClick: _this.renderProps.onSubmit,
199
- on: _this.v3 ? undefined : {
200
- "click": _this.renderProps.onSubmit
201
- }
202
- }, _this.v3 ? function () {
166
+ } : [h(Button, _this.v3 ? function () {
203
167
  return [editSaveMessage];
204
168
  } : [editSaveMessage]), h(Button, {
205
169
  onClick: _this.handleCancel,
@@ -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: 1647354431,
8
+ publishDate: 1647960632,
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
  };
@@ -6,6 +6,7 @@ var inject = allVue.inject;
6
6
  import { getDefaultSlots, Keys } from '@progress/kendo-vue-common';
7
7
  import { DATA_ACTION } from '../Scheduler';
8
8
  import { setField, getField, findFirstItem, isGroupped } from '../utils';
9
+ import { SchedulerForm } from '../components/SchedulerForm';
9
10
  import { SchedulerViewSlot } from './SchedulerViewSlot';
10
11
  import { SLOTS_FOCUS_ACTION, useEditable } from '../hooks';
11
12
  import { SLOTS_SELECT_ACTION } from '../hooks/use-slots-selection'; // tslint:enable:max-line-length
@@ -77,6 +78,8 @@ var SchedulerEditSlotVue2 = {
77
78
  },
78
79
  // @ts-ignore
79
80
  render: function render(createElement) {
81
+ var _this2 = this;
82
+
80
83
  var _this = this;
81
84
 
82
85
  var h = gh || createElement;
@@ -165,15 +168,34 @@ var SchedulerEditSlotVue2 = {
165
168
  onKeydown: this.handleKeyDown,
166
169
  onShowmoreitems: this.handleShowMoreItemsClick
167
170
  }, this.v3 ? function () {
168
- return [defaultSlot];
169
- } : [defaultSlot]) // (this.formItem && <SchedulerForm
170
- // dataItem={this.formItem}
171
- // onSubmit={this.handleEditFormSubmit}
172
- // onClose={this.handleEditFormClose}
173
- // onCancel={this.handleEditFormCancel}
174
- // />
175
- // </SchedulerEditSlotContext>
176
-
171
+ return [defaultSlot, _this2.currentFormItem && h(SchedulerForm, {
172
+ dataItem: _this2.formItem,
173
+ attrs: _this2.v3 ? undefined : {
174
+ dataItem: _this2.formItem
175
+ },
176
+ onSubmit: _this2.handleEditFormSubmit,
177
+ on: _this2.v3 ? undefined : {
178
+ "submit": _this2.handleEditFormSubmit,
179
+ "close": _this2.handleEditFormClose,
180
+ "cancel": _this2.handleEditFormCancel
181
+ },
182
+ onClose: _this2.handleEditFormClose,
183
+ onCancel: _this2.handleEditFormCancel
184
+ })];
185
+ } : [defaultSlot, _this2.currentFormItem && h(SchedulerForm, {
186
+ dataItem: _this2.formItem,
187
+ attrs: _this2.v3 ? undefined : {
188
+ dataItem: _this2.formItem
189
+ },
190
+ onSubmit: _this2.handleEditFormSubmit,
191
+ on: _this2.v3 ? undefined : {
192
+ "submit": _this2.handleEditFormSubmit,
193
+ "close": _this2.handleEditFormClose,
194
+ "cancel": _this2.handleEditFormCancel
195
+ },
196
+ onClose: _this2.handleEditFormClose,
197
+ onCancel: _this2.handleEditFormCancel
198
+ })])
177
199
  );
178
200
  },
179
201
  methods: {
@@ -316,6 +338,10 @@ var SchedulerEditSlotVue2 = {
316
338
  }
317
339
 
318
340
  this.setFormItem(value, event);
341
+ },
342
+ setFormItem: function setFormItem(dataItem, event) {
343
+ this.currentFormItem = dataItem;
344
+ this.$emit('formitemchange', event);
319
345
  }
320
346
  }
321
347
  };
@@ -118,8 +118,10 @@ var SchedulerViewSlotVue2 = {
118
118
  itemsPerSlot: itemsPerSlot,
119
119
  onShowmoreitems: this.handleShowMoreItemsClick,
120
120
  on: this.v3 ? undefined : {
121
- "showmoreitems": this.handleShowMoreItemsClick
122
- }
121
+ "showmoreitems": this.handleShowMoreItemsClick,
122
+ "doubleclick": this.handleDoubleClick
123
+ },
124
+ onDoubleclick: this.handleDoubleClick
123
125
  }, this.v3 ? function () {
124
126
  return [defaultSlot];
125
127
  } : [defaultSlot]);
@@ -137,6 +139,9 @@ var SchedulerViewSlotVue2 = {
137
139
  methods: {
138
140
  handleShowMoreItemsClick: function handleShowMoreItemsClick(event) {
139
141
  this.$emit('showmoreitems', event);
142
+ },
143
+ handleDoubleClick: function handleDoubleClick(args) {
144
+ this.$emit('doubleclick', args);
140
145
  }
141
146
  }
142
147
  };
@@ -84,7 +84,11 @@ var DayViewVue2 = {
84
84
  },
85
85
  timeHeaderCell: String,
86
86
  slotRender: [String, Function, Object],
87
- item: [String, Function, Object]
87
+ item: [String, Function, Object],
88
+ editable: {
89
+ type: [Boolean, Object],
90
+ default: false
91
+ }
88
92
  },
89
93
  inject: {
90
94
  kendoLocalizationService: {
@@ -126,7 +130,8 @@ var DayViewVue2 = {
126
130
  defaultShowWorkHours: this.$props.defaultShowWorkHours,
127
131
  timeHeaderCell: this.$props.timeHeaderCell,
128
132
  slotRender: this.$props.slotRender,
129
- item: this.$props.item
133
+ item: this.$props.item,
134
+ editable: this.$props.editable
130
135
  },
131
136
  dateRange: this.$props.dateRange,
132
137
  step: this.$props.step,
@@ -147,7 +152,8 @@ var DayViewVue2 = {
147
152
  defaultShowWorkHours: this.$props.defaultShowWorkHours,
148
153
  timeHeaderCell: this.$props.timeHeaderCell,
149
154
  slotRender: this.$props.slotRender,
150
- item: this.$props.item
155
+ item: this.$props.item,
156
+ editable: this.$props.editable
151
157
  });
152
158
  }
153
159
  };
@@ -11,6 +11,7 @@ export interface DayViewAllDaySlotsProps {
11
11
  numberOfDays: number;
12
12
  workWeekStart: number;
13
13
  workWeekEnd: number;
14
+ editable?: boolean | object;
14
15
  }
15
16
  /**
16
17
  * @hidden
@@ -13,7 +13,11 @@ var DayViewAllDaySlotsVue2 = {
13
13
  daySlots: Array,
14
14
  numberOfDays: Number,
15
15
  workWeekStart: Number,
16
- workWeekEnd: Number
16
+ workWeekEnd: Number,
17
+ editable: {
18
+ type: [Boolean, Object],
19
+ default: false
20
+ }
17
21
  },
18
22
  inject: {
19
23
  ri: {
@@ -64,7 +68,8 @@ var DayViewAllDaySlotsVue2 = {
64
68
  row: 0,
65
69
  col: this.ks.orientation === 'horizontal' ? filtered.length * (this.ri.groupIndex || 0) + slotIndex : slotIndex,
66
70
  isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart),
67
- expandable: true
71
+ expandable: true,
72
+ editable: this.$props.editable
68
73
  },
69
74
  start: slot.start,
70
75
  end: slot.end,
@@ -85,7 +90,8 @@ var DayViewAllDaySlotsVue2 = {
85
90
  row: 0,
86
91
  col: this.ks.orientation === 'horizontal' ? filtered.length * (this.ri.groupIndex || 0) + slotIndex : slotIndex,
87
92
  isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart),
88
- expandable: true
93
+ expandable: true,
94
+ editable: this.$props.editable
89
95
  });
90
96
  }, this);
91
97
  }, this)]);
@@ -136,7 +136,11 @@ var MultiDayViewVue2 = {
136
136
  },
137
137
  timeHeaderCell: String,
138
138
  slotRender: [String, Function, Object],
139
- item: [String, Function, Object]
139
+ item: [String, Function, Object],
140
+ editable: {
141
+ type: [Boolean, Object],
142
+ default: false
143
+ }
140
144
  },
141
145
  inject: {
142
146
  kendoIntlService: {
@@ -335,8 +339,9 @@ var MultiDayViewVue2 = {
335
339
  childRowContent: DayViewAllDayRowContent
336
340
  }, _this2.v3 ? function () {
337
341
  return [h(DayViewAllDaySlots, {
338
- dayRanges: _this2.dayRanges,
342
+ editable: _this2.$props.editable,
339
343
  attrs: _this2.v3 ? undefined : {
344
+ editable: _this2.$props.editable,
340
345
  dayRanges: _this2.dayRanges,
341
346
  daySlots: daySlots,
342
347
  slotRender: _this2.$props.slotRender,
@@ -344,6 +349,7 @@ var MultiDayViewVue2 = {
344
349
  workWeekStart: workWeekStart,
345
350
  workWeekEnd: workWeekEnd
346
351
  },
352
+ dayRanges: _this2.dayRanges,
347
353
  daySlots: daySlots,
348
354
  slotRender: _this2.$props.slotRender,
349
355
  numberOfDays: numberOfDays,
@@ -355,8 +361,9 @@ var MultiDayViewVue2 = {
355
361
  }
356
362
  })];
357
363
  } : [h(DayViewAllDaySlots, {
358
- dayRanges: _this2.dayRanges,
364
+ editable: _this2.$props.editable,
359
365
  attrs: _this2.v3 ? undefined : {
366
+ editable: _this2.$props.editable,
360
367
  dayRanges: _this2.dayRanges,
361
368
  daySlots: daySlots,
362
369
  slotRender: _this2.$props.slotRender,
@@ -364,6 +371,7 @@ var MultiDayViewVue2 = {
364
371
  workWeekStart: workWeekStart,
365
372
  workWeekEnd: workWeekEnd
366
373
  },
374
+ dayRanges: _this2.dayRanges,
367
375
  daySlots: daySlots,
368
376
  slotRender: _this2.$props.slotRender,
369
377
  numberOfDays: numberOfDays,
@@ -822,8 +830,9 @@ var MultiDayViewVue2 = {
822
830
  childRowContent: DayViewAllDayRowContent
823
831
  }, _this2.v3 ? function () {
824
832
  return [h(DayViewAllDaySlots, {
825
- dayRanges: _this2.dayRanges,
833
+ editable: _this2.$props.editable,
826
834
  attrs: _this2.v3 ? undefined : {
835
+ editable: _this2.$props.editable,
827
836
  dayRanges: _this2.dayRanges,
828
837
  daySlots: daySlots,
829
838
  slotRender: _this2.$props.slotRender,
@@ -831,6 +840,7 @@ var MultiDayViewVue2 = {
831
840
  workWeekStart: workWeekStart,
832
841
  workWeekEnd: workWeekEnd
833
842
  },
843
+ dayRanges: _this2.dayRanges,
834
844
  daySlots: daySlots,
835
845
  slotRender: _this2.$props.slotRender,
836
846
  numberOfDays: numberOfDays,
@@ -842,8 +852,9 @@ var MultiDayViewVue2 = {
842
852
  }
843
853
  })];
844
854
  } : [h(DayViewAllDaySlots, {
845
- dayRanges: _this2.dayRanges,
855
+ editable: _this2.$props.editable,
846
856
  attrs: _this2.v3 ? undefined : {
857
+ editable: _this2.$props.editable,
847
858
  dayRanges: _this2.dayRanges,
848
859
  daySlots: daySlots,
849
860
  slotRender: _this2.$props.slotRender,
@@ -851,6 +862,7 @@ var MultiDayViewVue2 = {
851
862
  workWeekStart: workWeekStart,
852
863
  workWeekEnd: workWeekEnd
853
864
  },
865
+ dayRanges: _this2.dayRanges,
854
866
  daySlots: daySlots,
855
867
  slotRender: _this2.$props.slotRender,
856
868
  numberOfDays: numberOfDays,
@@ -122,16 +122,7 @@ var SchedulerFormVue2 = {
122
122
  })]), // @ts-ignore function children
123
123
  h(kendo_vue_dialogs_1.DialogActionsBar, _this.v3 ? function () {
124
124
  return [// @ts-ignore function children
125
- h(kendo_vue_buttons_1.Button, {
126
- disabled: !_this.renderProps.allowSubmit,
127
- attrs: _this.v3 ? undefined : {
128
- disabled: !_this.renderProps.allowSubmit
129
- },
130
- onClick: _this.renderProps.onSubmit,
131
- on: _this.v3 ? undefined : {
132
- "click": _this.renderProps.onSubmit
133
- }
134
- }, _this.v3 ? function () {
125
+ h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
135
126
  return [editSaveMessage];
136
127
  } : [editSaveMessage]), // @ts-ignore function children
137
128
  h(kendo_vue_buttons_1.Button, {
@@ -142,16 +133,7 @@ var SchedulerFormVue2 = {
142
133
  }, _this.v3 ? function () {
143
134
  return [editCancelMessage];
144
135
  } : [editCancelMessage])];
145
- } : [h(kendo_vue_buttons_1.Button, {
146
- disabled: !_this.renderProps.allowSubmit,
147
- attrs: _this.v3 ? undefined : {
148
- disabled: !_this.renderProps.allowSubmit
149
- },
150
- onClick: _this.renderProps.onSubmit,
151
- on: _this.v3 ? undefined : {
152
- "click": _this.renderProps.onSubmit
153
- }
154
- }, _this.v3 ? function () {
136
+ } : [h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
155
137
  return [editSaveMessage];
156
138
  } : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
157
139
  onClick: _this.handleCancel,
@@ -185,16 +167,7 @@ var SchedulerFormVue2 = {
185
167
  as: Editor
186
168
  }
187
169
  })]), h(kendo_vue_dialogs_1.DialogActionsBar, _this.v3 ? function () {
188
- return [h(kendo_vue_buttons_1.Button, {
189
- disabled: !_this.renderProps.allowSubmit,
190
- attrs: _this.v3 ? undefined : {
191
- disabled: !_this.renderProps.allowSubmit
192
- },
193
- onClick: _this.renderProps.onSubmit,
194
- on: _this.v3 ? undefined : {
195
- "click": _this.renderProps.onSubmit
196
- }
197
- }, _this.v3 ? function () {
170
+ return [h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
198
171
  return [editSaveMessage];
199
172
  } : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
200
173
  onClick: _this.handleCancel,
@@ -204,16 +177,7 @@ var SchedulerFormVue2 = {
204
177
  }, _this.v3 ? function () {
205
178
  return [editCancelMessage];
206
179
  } : [editCancelMessage])];
207
- } : [h(kendo_vue_buttons_1.Button, {
208
- disabled: !_this.renderProps.allowSubmit,
209
- attrs: _this.v3 ? undefined : {
210
- disabled: !_this.renderProps.allowSubmit
211
- },
212
- onClick: _this.renderProps.onSubmit,
213
- on: _this.v3 ? undefined : {
214
- "click": _this.renderProps.onSubmit
215
- }
216
- }, _this.v3 ? function () {
180
+ } : [h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
217
181
  return [editSaveMessage];
218
182
  } : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
219
183
  onClick: _this.handleCancel,
@@ -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: 1647354431,
11
+ publishDate: 1647960632,
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
  };
@@ -17,6 +17,8 @@ var Scheduler_1 = require("../Scheduler");
17
17
 
18
18
  var utils_1 = require("../utils");
19
19
 
20
+ var SchedulerForm_1 = require("../components/SchedulerForm");
21
+
20
22
  var SchedulerViewSlot_1 = require("./SchedulerViewSlot");
21
23
 
22
24
  var hooks_1 = require("../hooks");
@@ -91,6 +93,8 @@ var SchedulerEditSlotVue2 = {
91
93
  },
92
94
  // @ts-ignore
93
95
  render: function render(createElement) {
96
+ var _this2 = this;
97
+
94
98
  var _this = this;
95
99
 
96
100
  var h = gh || createElement;
@@ -179,15 +183,34 @@ var SchedulerEditSlotVue2 = {
179
183
  onKeydown: this.handleKeyDown,
180
184
  onShowmoreitems: this.handleShowMoreItemsClick
181
185
  }, this.v3 ? function () {
182
- return [defaultSlot];
183
- } : [defaultSlot]) // (this.formItem && <SchedulerForm
184
- // dataItem={this.formItem}
185
- // onSubmit={this.handleEditFormSubmit}
186
- // onClose={this.handleEditFormClose}
187
- // onCancel={this.handleEditFormCancel}
188
- // />
189
- // </SchedulerEditSlotContext>
190
-
186
+ return [defaultSlot, _this2.currentFormItem && h(SchedulerForm_1.SchedulerForm, {
187
+ dataItem: _this2.formItem,
188
+ attrs: _this2.v3 ? undefined : {
189
+ dataItem: _this2.formItem
190
+ },
191
+ onSubmit: _this2.handleEditFormSubmit,
192
+ on: _this2.v3 ? undefined : {
193
+ "submit": _this2.handleEditFormSubmit,
194
+ "close": _this2.handleEditFormClose,
195
+ "cancel": _this2.handleEditFormCancel
196
+ },
197
+ onClose: _this2.handleEditFormClose,
198
+ onCancel: _this2.handleEditFormCancel
199
+ })];
200
+ } : [defaultSlot, _this2.currentFormItem && h(SchedulerForm_1.SchedulerForm, {
201
+ dataItem: _this2.formItem,
202
+ attrs: _this2.v3 ? undefined : {
203
+ dataItem: _this2.formItem
204
+ },
205
+ onSubmit: _this2.handleEditFormSubmit,
206
+ on: _this2.v3 ? undefined : {
207
+ "submit": _this2.handleEditFormSubmit,
208
+ "close": _this2.handleEditFormClose,
209
+ "cancel": _this2.handleEditFormCancel
210
+ },
211
+ onClose: _this2.handleEditFormClose,
212
+ onCancel: _this2.handleEditFormCancel
213
+ })])
191
214
  );
192
215
  },
193
216
  methods: {
@@ -330,6 +353,10 @@ var SchedulerEditSlotVue2 = {
330
353
  }
331
354
 
332
355
  this.setFormItem(value, event);
356
+ },
357
+ setFormItem: function setFormItem(dataItem, event) {
358
+ this.currentFormItem = dataItem;
359
+ this.$emit('formitemchange', event);
333
360
  }
334
361
  }
335
362
  };
@@ -129,8 +129,10 @@ var SchedulerViewSlotVue2 = {
129
129
  itemsPerSlot: itemsPerSlot,
130
130
  onShowmoreitems: this.handleShowMoreItemsClick,
131
131
  on: this.v3 ? undefined : {
132
- "showmoreitems": this.handleShowMoreItemsClick
133
- }
132
+ "showmoreitems": this.handleShowMoreItemsClick,
133
+ "doubleclick": this.handleDoubleClick
134
+ },
135
+ onDoubleclick: this.handleDoubleClick
134
136
  }, this.v3 ? function () {
135
137
  return [defaultSlot];
136
138
  } : [defaultSlot]);
@@ -148,6 +150,9 @@ var SchedulerViewSlotVue2 = {
148
150
  methods: {
149
151
  handleShowMoreItemsClick: function handleShowMoreItemsClick(event) {
150
152
  this.$emit('showmoreitems', event);
153
+ },
154
+ handleDoubleClick: function handleDoubleClick(args) {
155
+ this.$emit('doubleclick', args);
151
156
  }
152
157
  }
153
158
  };
@@ -96,7 +96,11 @@ var DayViewVue2 = {
96
96
  },
97
97
  timeHeaderCell: String,
98
98
  slotRender: [String, Function, Object],
99
- item: [String, Function, Object]
99
+ item: [String, Function, Object],
100
+ editable: {
101
+ type: [Boolean, Object],
102
+ default: false
103
+ }
100
104
  },
101
105
  inject: {
102
106
  kendoLocalizationService: {
@@ -138,7 +142,8 @@ var DayViewVue2 = {
138
142
  defaultShowWorkHours: this.$props.defaultShowWorkHours,
139
143
  timeHeaderCell: this.$props.timeHeaderCell,
140
144
  slotRender: this.$props.slotRender,
141
- item: this.$props.item
145
+ item: this.$props.item,
146
+ editable: this.$props.editable
142
147
  },
143
148
  dateRange: this.$props.dateRange,
144
149
  step: this.$props.step,
@@ -159,7 +164,8 @@ var DayViewVue2 = {
159
164
  defaultShowWorkHours: this.$props.defaultShowWorkHours,
160
165
  timeHeaderCell: this.$props.timeHeaderCell,
161
166
  slotRender: this.$props.slotRender,
162
- item: this.$props.item
167
+ item: this.$props.item,
168
+ editable: this.$props.editable
163
169
  });
164
170
  }
165
171
  };
@@ -11,6 +11,7 @@ export interface DayViewAllDaySlotsProps {
11
11
  numberOfDays: number;
12
12
  workWeekStart: number;
13
13
  workWeekEnd: number;
14
+ editable?: boolean | object;
14
15
  }
15
16
  /**
16
17
  * @hidden
@@ -22,7 +22,11 @@ var DayViewAllDaySlotsVue2 = {
22
22
  daySlots: Array,
23
23
  numberOfDays: Number,
24
24
  workWeekStart: Number,
25
- workWeekEnd: Number
25
+ workWeekEnd: Number,
26
+ editable: {
27
+ type: [Boolean, Object],
28
+ default: false
29
+ }
26
30
  },
27
31
  inject: {
28
32
  ri: {
@@ -73,7 +77,8 @@ var DayViewAllDaySlotsVue2 = {
73
77
  row: 0,
74
78
  col: this.ks.orientation === 'horizontal' ? filtered.length * (this.ri.groupIndex || 0) + slotIndex : slotIndex,
75
79
  isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart),
76
- expandable: true
80
+ expandable: true,
81
+ editable: this.$props.editable
77
82
  },
78
83
  start: slot.start,
79
84
  end: slot.end,
@@ -94,7 +99,8 @@ var DayViewAllDaySlotsVue2 = {
94
99
  row: 0,
95
100
  col: this.ks.orientation === 'horizontal' ? filtered.length * (this.ri.groupIndex || 0) + slotIndex : slotIndex,
96
101
  isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart),
97
- expandable: true
102
+ expandable: true,
103
+ editable: this.$props.editable
98
104
  });
99
105
  }, this);
100
106
  }, this)]);
@@ -162,7 +162,11 @@ var MultiDayViewVue2 = {
162
162
  },
163
163
  timeHeaderCell: String,
164
164
  slotRender: [String, Function, Object],
165
- item: [String, Function, Object]
165
+ item: [String, Function, Object],
166
+ editable: {
167
+ type: [Boolean, Object],
168
+ default: false
169
+ }
166
170
  },
167
171
  inject: {
168
172
  kendoIntlService: {
@@ -361,8 +365,9 @@ var MultiDayViewVue2 = {
361
365
  childRowContent: DayViewAllDayRowContent_1.DayViewAllDayRowContent
362
366
  }, _this2.v3 ? function () {
363
367
  return [h(DayViewAllDaySlots_1.DayViewAllDaySlots, {
364
- dayRanges: _this2.dayRanges,
368
+ editable: _this2.$props.editable,
365
369
  attrs: _this2.v3 ? undefined : {
370
+ editable: _this2.$props.editable,
366
371
  dayRanges: _this2.dayRanges,
367
372
  daySlots: daySlots,
368
373
  slotRender: _this2.$props.slotRender,
@@ -370,6 +375,7 @@ var MultiDayViewVue2 = {
370
375
  workWeekStart: workWeekStart,
371
376
  workWeekEnd: workWeekEnd
372
377
  },
378
+ dayRanges: _this2.dayRanges,
373
379
  daySlots: daySlots,
374
380
  slotRender: _this2.$props.slotRender,
375
381
  numberOfDays: numberOfDays,
@@ -381,8 +387,9 @@ var MultiDayViewVue2 = {
381
387
  }
382
388
  })];
383
389
  } : [h(DayViewAllDaySlots_1.DayViewAllDaySlots, {
384
- dayRanges: _this2.dayRanges,
390
+ editable: _this2.$props.editable,
385
391
  attrs: _this2.v3 ? undefined : {
392
+ editable: _this2.$props.editable,
386
393
  dayRanges: _this2.dayRanges,
387
394
  daySlots: daySlots,
388
395
  slotRender: _this2.$props.slotRender,
@@ -390,6 +397,7 @@ var MultiDayViewVue2 = {
390
397
  workWeekStart: workWeekStart,
391
398
  workWeekEnd: workWeekEnd
392
399
  },
400
+ dayRanges: _this2.dayRanges,
393
401
  daySlots: daySlots,
394
402
  slotRender: _this2.$props.slotRender,
395
403
  numberOfDays: numberOfDays,
@@ -848,8 +856,9 @@ var MultiDayViewVue2 = {
848
856
  childRowContent: DayViewAllDayRowContent_1.DayViewAllDayRowContent
849
857
  }, _this2.v3 ? function () {
850
858
  return [h(DayViewAllDaySlots_1.DayViewAllDaySlots, {
851
- dayRanges: _this2.dayRanges,
859
+ editable: _this2.$props.editable,
852
860
  attrs: _this2.v3 ? undefined : {
861
+ editable: _this2.$props.editable,
853
862
  dayRanges: _this2.dayRanges,
854
863
  daySlots: daySlots,
855
864
  slotRender: _this2.$props.slotRender,
@@ -857,6 +866,7 @@ var MultiDayViewVue2 = {
857
866
  workWeekStart: workWeekStart,
858
867
  workWeekEnd: workWeekEnd
859
868
  },
869
+ dayRanges: _this2.dayRanges,
860
870
  daySlots: daySlots,
861
871
  slotRender: _this2.$props.slotRender,
862
872
  numberOfDays: numberOfDays,
@@ -868,8 +878,9 @@ var MultiDayViewVue2 = {
868
878
  }
869
879
  })];
870
880
  } : [h(DayViewAllDaySlots_1.DayViewAllDaySlots, {
871
- dayRanges: _this2.dayRanges,
881
+ editable: _this2.$props.editable,
872
882
  attrs: _this2.v3 ? undefined : {
883
+ editable: _this2.$props.editable,
873
884
  dayRanges: _this2.dayRanges,
874
885
  daySlots: daySlots,
875
886
  slotRender: _this2.$props.slotRender,
@@ -877,6 +888,7 @@ var MultiDayViewVue2 = {
877
888
  workWeekStart: workWeekStart,
878
889
  workWeekEnd: workWeekEnd
879
890
  },
891
+ dayRanges: _this2.dayRanges,
880
892
  daySlots: daySlots,
881
893
  slotRender: _this2.$props.slotRender,
882
894
  numberOfDays: numberOfDays,