@progress/kendo-vue-scheduler 3.2.5 → 3.2.6-dev.202204251505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/dist/es/components/SchedulerForm.js +1 -1
- package/dist/es/editors/SchedulerFormEditor.js +25 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerEditSlot.js +15 -32
- package/dist/es/slots/SchedulerSlot.d.ts +2 -0
- package/dist/es/slots/SchedulerSlot.js +26 -2
- package/dist/es/slots/SchedulerViewSlot.js +5 -2
- package/dist/es/tasks/SchedulerEditTask.js +14 -64
- package/dist/es/tasks/SchedulerTask.d.ts +12 -2
- package/dist/es/tasks/SchedulerTask.js +54 -3
- package/dist/es/tasks/SchedulerViewTask.js +21 -3
- package/dist/npm/components/SchedulerForm.js +1 -1
- package/dist/npm/editors/SchedulerFormEditor.js +25 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerEditSlot.js +15 -33
- package/dist/npm/slots/SchedulerSlot.d.ts +2 -0
- package/dist/npm/slots/SchedulerSlot.js +27 -2
- package/dist/npm/slots/SchedulerViewSlot.js +5 -2
- package/dist/npm/tasks/SchedulerEditTask.js +14 -66
- package/dist/npm/tasks/SchedulerTask.d.ts +12 -2
- package/dist/npm/tasks/SchedulerTask.js +56 -3
- package/dist/npm/tasks/SchedulerViewTask.js +21 -3
- package/package.json +12 -12
|
@@ -295,7 +295,7 @@ var SchedulerFormVue2 = {
|
|
|
295
295
|
result[this.ks.fields.end] = [this.requiredValidator(formValueGetter(this.ks.fields.start)), this.endAfterStartValidator(formValueGetter(this.ks.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
|
|
296
296
|
return current || acc;
|
|
297
297
|
}, '');
|
|
298
|
-
var additionalValidator = this.ksValidator(
|
|
298
|
+
var additionalValidator = this.ksValidator(formValueGetter);
|
|
299
299
|
return __assign(__assign({}, result), additionalValidator);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
@@ -621,6 +621,8 @@ var SchedulerFormEditorVue2 = {
|
|
|
621
621
|
}, _this.v3 ? function () {
|
|
622
622
|
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
623
623
|
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
624
|
+
var _this2 = this;
|
|
625
|
+
|
|
624
626
|
return h("div", {
|
|
625
627
|
key: resource.field
|
|
626
628
|
}, [h("div", {
|
|
@@ -654,7 +656,17 @@ var SchedulerFormEditorVue2 = {
|
|
|
654
656
|
textField: resource.textField,
|
|
655
657
|
valueField: resource.valueField,
|
|
656
658
|
colorField: resource.colorField
|
|
657
|
-
})]
|
|
659
|
+
}), this.kendoForm.errors[resource.field] && // @ts-ignore function children
|
|
660
|
+
h(Field, {
|
|
661
|
+
name: resource.field,
|
|
662
|
+
attrs: this.v3 ? undefined : {
|
|
663
|
+
name: resource.field,
|
|
664
|
+
component: Error
|
|
665
|
+
},
|
|
666
|
+
component: Error
|
|
667
|
+
}, this.v3 ? function () {
|
|
668
|
+
return [_this2.kendoForm.errors[resource.field]];
|
|
669
|
+
} : [_this2.kendoForm.errors[resource.field]])])]);
|
|
658
670
|
}, _this), defaultSlots];
|
|
659
671
|
} : [h("div", {
|
|
660
672
|
"class": "k-form-field"
|
|
@@ -973,6 +985,8 @@ var SchedulerFormEditorVue2 = {
|
|
|
973
985
|
}, _this.v3 ? function () {
|
|
974
986
|
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
975
987
|
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
988
|
+
var _this2 = this;
|
|
989
|
+
|
|
976
990
|
return h("div", {
|
|
977
991
|
key: resource.field
|
|
978
992
|
}, [h("div", {
|
|
@@ -1005,7 +1019,16 @@ var SchedulerFormEditorVue2 = {
|
|
|
1005
1019
|
textField: resource.textField,
|
|
1006
1020
|
valueField: resource.valueField,
|
|
1007
1021
|
colorField: resource.colorField
|
|
1008
|
-
})]
|
|
1022
|
+
}), this.kendoForm.errors[resource.field] && h(Field, {
|
|
1023
|
+
name: resource.field,
|
|
1024
|
+
attrs: this.v3 ? undefined : {
|
|
1025
|
+
name: resource.field,
|
|
1026
|
+
component: Error
|
|
1027
|
+
},
|
|
1028
|
+
component: Error
|
|
1029
|
+
}, this.v3 ? function () {
|
|
1030
|
+
return [_this2.kendoForm.errors[resource.field]];
|
|
1031
|
+
} : [_this2.kendoForm.errors[resource.field]])])]);
|
|
1009
1032
|
}, _this), defaultSlots])
|
|
1010
1033
|
);
|
|
1011
1034
|
},
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-scheduler',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1650898844,
|
|
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,7 +6,6 @@ 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';
|
|
10
9
|
import { SchedulerViewSlot } from './SchedulerViewSlot';
|
|
11
10
|
import { SLOTS_FOCUS_ACTION, useEditable } from '../hooks';
|
|
12
11
|
import { SLOTS_SELECT_ACTION } from '../hooks/use-slots-selection'; // tslint:enable:max-line-length
|
|
@@ -48,6 +47,13 @@ var SchedulerEditSlotVue2 = {
|
|
|
48
47
|
this.slot = null;
|
|
49
48
|
this.editableSlot = null;
|
|
50
49
|
},
|
|
50
|
+
provide: function provide() {
|
|
51
|
+
return {
|
|
52
|
+
ksEditFormSubmit: this.handleEditFormSubmit,
|
|
53
|
+
ksEditFormCancel: this.handleEditFormCancel,
|
|
54
|
+
ksEditFormClose: this.handleEditFormClose
|
|
55
|
+
};
|
|
56
|
+
},
|
|
51
57
|
inject: {
|
|
52
58
|
bv: {
|
|
53
59
|
default: null
|
|
@@ -68,6 +74,9 @@ var SchedulerEditSlotVue2 = {
|
|
|
68
74
|
},
|
|
69
75
|
computedEditable: function computedEditable() {
|
|
70
76
|
return useEditable(this.$props.editable);
|
|
77
|
+
},
|
|
78
|
+
compFormItem: function compFormItem() {
|
|
79
|
+
return this.formItem !== undefined ? this.formItem : this.currentFormItem;
|
|
71
80
|
}
|
|
72
81
|
},
|
|
73
82
|
// @ts-ignore
|
|
@@ -79,8 +88,6 @@ var SchedulerEditSlotVue2 = {
|
|
|
79
88
|
},
|
|
80
89
|
// @ts-ignore
|
|
81
90
|
render: function render(createElement) {
|
|
82
|
-
var _this2 = this;
|
|
83
|
-
|
|
84
91
|
var _this = this;
|
|
85
92
|
|
|
86
93
|
var h = gh || createElement;
|
|
@@ -136,7 +143,8 @@ var SchedulerEditSlotVue2 = {
|
|
|
136
143
|
selected: selected,
|
|
137
144
|
navDay: navDay,
|
|
138
145
|
itemsPerSlot: itemsPerSlot,
|
|
139
|
-
tabIndex: this.currentTabIndex
|
|
146
|
+
tabIndex: this.currentTabIndex,
|
|
147
|
+
formItem: this.compFormItem // Focus
|
|
140
148
|
|
|
141
149
|
},
|
|
142
150
|
isAllDay: this.isAllDay,
|
|
@@ -158,6 +166,7 @@ var SchedulerEditSlotVue2 = {
|
|
|
158
166
|
navDay: navDay,
|
|
159
167
|
itemsPerSlot: itemsPerSlot,
|
|
160
168
|
tabIndex: this.currentTabIndex,
|
|
169
|
+
formItem: this.compFormItem,
|
|
161
170
|
onFocus: this.handleFocus // Mouse
|
|
162
171
|
,
|
|
163
172
|
on: this.v3 ? undefined : {
|
|
@@ -171,34 +180,8 @@ var SchedulerEditSlotVue2 = {
|
|
|
171
180
|
onKeydown: this.handleKeyDown,
|
|
172
181
|
onShowmoreitems: this.handleShowMoreItemsClick
|
|
173
182
|
}, this.v3 ? function () {
|
|
174
|
-
return [defaultSlot
|
|
175
|
-
|
|
176
|
-
attrs: _this2.v3 ? undefined : {
|
|
177
|
-
dataItem: _this2.currentFormItem
|
|
178
|
-
},
|
|
179
|
-
onSubmit: _this2.handleEditFormSubmit,
|
|
180
|
-
on: _this2.v3 ? undefined : {
|
|
181
|
-
"submit": _this2.handleEditFormSubmit,
|
|
182
|
-
"close": _this2.handleEditFormClose,
|
|
183
|
-
"cancel": _this2.handleEditFormCancel
|
|
184
|
-
},
|
|
185
|
-
onClose: _this2.handleEditFormClose,
|
|
186
|
-
onCancel: _this2.handleEditFormCancel
|
|
187
|
-
})];
|
|
188
|
-
} : [defaultSlot, _this2.currentFormItem && h(SchedulerForm, {
|
|
189
|
-
dataItem: _this2.currentFormItem,
|
|
190
|
-
attrs: _this2.v3 ? undefined : {
|
|
191
|
-
dataItem: _this2.currentFormItem
|
|
192
|
-
},
|
|
193
|
-
onSubmit: _this2.handleEditFormSubmit,
|
|
194
|
-
on: _this2.v3 ? undefined : {
|
|
195
|
-
"submit": _this2.handleEditFormSubmit,
|
|
196
|
-
"close": _this2.handleEditFormClose,
|
|
197
|
-
"cancel": _this2.handleEditFormCancel
|
|
198
|
-
},
|
|
199
|
-
onClose: _this2.handleEditFormClose,
|
|
200
|
-
onCancel: _this2.handleEditFormCancel
|
|
201
|
-
})])
|
|
183
|
+
return [defaultSlot];
|
|
184
|
+
} : [defaultSlot])
|
|
202
185
|
);
|
|
203
186
|
},
|
|
204
187
|
methods: {
|
|
@@ -23,6 +23,7 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
|
23
23
|
import { COLLECTION_ACTION, formatEventTime } from '../utils';
|
|
24
24
|
import { provideIntlService } from '@progress/kendo-vue-intl';
|
|
25
25
|
import { ShowMoreItemsButton } from '../components/ShowMoreItemsButton';
|
|
26
|
+
import { SchedulerForm } from '../components/SchedulerForm';
|
|
26
27
|
var DAY_FORMAT = {
|
|
27
28
|
skeleton: 'dd'
|
|
28
29
|
}; // tslint:enable:max-line-length
|
|
@@ -53,7 +54,8 @@ var SchedulerSlotVue2 = {
|
|
|
53
54
|
isAllDay: Boolean,
|
|
54
55
|
navDay: Boolean,
|
|
55
56
|
editable: [Object, Boolean],
|
|
56
|
-
itemsPerSlot: Number
|
|
57
|
+
itemsPerSlot: Number,
|
|
58
|
+
formItem: Object
|
|
57
59
|
},
|
|
58
60
|
computed: {
|
|
59
61
|
currentTabIndex: function currentTabIndex() {
|
|
@@ -82,6 +84,15 @@ var SchedulerSlotVue2 = {
|
|
|
82
84
|
},
|
|
83
85
|
slotDoubleClick: {
|
|
84
86
|
default: null
|
|
87
|
+
},
|
|
88
|
+
ksEditFormSubmit: {
|
|
89
|
+
default: null
|
|
90
|
+
},
|
|
91
|
+
ksEditFormCancel: {
|
|
92
|
+
default: null
|
|
93
|
+
},
|
|
94
|
+
ksEditFormClose: {
|
|
95
|
+
default: null
|
|
85
96
|
}
|
|
86
97
|
},
|
|
87
98
|
created: function created() {
|
|
@@ -179,7 +190,20 @@ var SchedulerSlotVue2 = {
|
|
|
179
190
|
on: this.v3 ? undefined : {
|
|
180
191
|
"click": this.handleShowMoreItemsClick
|
|
181
192
|
}
|
|
182
|
-
}), defaultSlot
|
|
193
|
+
}), defaultSlot, this.formItem && h(SchedulerForm, {
|
|
194
|
+
dataItem: this.formItem,
|
|
195
|
+
attrs: this.v3 ? undefined : {
|
|
196
|
+
dataItem: this.formItem
|
|
197
|
+
},
|
|
198
|
+
onSubmit: this.ksEditFormSubmit,
|
|
199
|
+
on: this.v3 ? undefined : {
|
|
200
|
+
"submit": this.ksEditFormSubmit,
|
|
201
|
+
"close": this.ksEditFormClose,
|
|
202
|
+
"cancel": this.ksEditFormCancel
|
|
203
|
+
},
|
|
204
|
+
onClose: this.ksEditFormClose,
|
|
205
|
+
onCancel: this.ksEditFormCancel
|
|
206
|
+
})]);
|
|
183
207
|
},
|
|
184
208
|
methods: {
|
|
185
209
|
handleShowMoreItemsClick: function handleShowMoreItemsClick(event) {
|
|
@@ -35,7 +35,8 @@ var SchedulerViewSlotVue2 = {
|
|
|
35
35
|
isAllDay: Boolean,
|
|
36
36
|
navDay: Boolean,
|
|
37
37
|
editable: [Object, Boolean],
|
|
38
|
-
itemsPerSlot: Number
|
|
38
|
+
itemsPerSlot: Number,
|
|
39
|
+
formItem: Object
|
|
39
40
|
},
|
|
40
41
|
created: function created() {
|
|
41
42
|
this.viewSlot = null;
|
|
@@ -103,7 +104,8 @@ var SchedulerViewSlotVue2 = {
|
|
|
103
104
|
zonedEnd: zonedEnd,
|
|
104
105
|
navDay: navDay,
|
|
105
106
|
itemsPerSlot: itemsPerSlot,
|
|
106
|
-
editable: editable
|
|
107
|
+
editable: editable,
|
|
108
|
+
formItem: this.formItem
|
|
107
109
|
},
|
|
108
110
|
items: items,
|
|
109
111
|
row: row,
|
|
@@ -120,6 +122,7 @@ var SchedulerViewSlotVue2 = {
|
|
|
120
122
|
navDay: navDay,
|
|
121
123
|
itemsPerSlot: itemsPerSlot,
|
|
122
124
|
editable: editable,
|
|
125
|
+
formItem: this.formItem,
|
|
123
126
|
onShowmoreitems: this.handleShowMoreItemsClick,
|
|
124
127
|
on: this.v3 ? undefined : {
|
|
125
128
|
"showmoreitems": this.handleShowMoreItemsClick,
|
|
@@ -20,8 +20,6 @@ import { SchedulerViewTask } from './SchedulerViewTask';
|
|
|
20
20
|
import { useEditable } from '../hooks';
|
|
21
21
|
import { findMaster } from '../utils';
|
|
22
22
|
import { DATA_ACTION } from '../Scheduler';
|
|
23
|
-
import { SchedulerRemoveDialog } from '../components/SchedulerRemoveDialog';
|
|
24
|
-
import { SchedulerOccurrenceDialog } from '../components/SchedulerOccurrenceDialog';
|
|
25
23
|
import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
|
|
26
24
|
|
|
27
25
|
var SchedulerEditTaskVue2 = {
|
|
@@ -89,7 +87,11 @@ var SchedulerEditTaskVue2 = {
|
|
|
89
87
|
et: this.et,
|
|
90
88
|
removeTask: this.handleRemoveItemChange,
|
|
91
89
|
removeDialog: this.handleRemoveDialogChange,
|
|
92
|
-
occurrenceDialog: this.handleOccurrenceDialogChange
|
|
90
|
+
occurrenceDialog: this.handleOccurrenceDialogChange,
|
|
91
|
+
ksCancel: this.handleCancel,
|
|
92
|
+
ksSeriesClick: this.handleSeriesClick,
|
|
93
|
+
ksOccurrenceClick: this.handleOccurrenceClick,
|
|
94
|
+
ksRemoveConfirm: this.handleRemoveConfirm
|
|
93
95
|
};
|
|
94
96
|
},
|
|
95
97
|
data: function data() {
|
|
@@ -129,8 +131,6 @@ var SchedulerEditTaskVue2 = {
|
|
|
129
131
|
},
|
|
130
132
|
// @ts-ignore
|
|
131
133
|
render: function render(createElement) {
|
|
132
|
-
var _this = this;
|
|
133
|
-
|
|
134
134
|
var h = gh || createElement;
|
|
135
135
|
var defaultSlot = getDefaultSlots(this);
|
|
136
136
|
|
|
@@ -178,8 +178,11 @@ var SchedulerEditTaskVue2 = {
|
|
|
178
178
|
recurrenceRule: this.$props.recurrenceRule,
|
|
179
179
|
recurrenceId: this.$props.recurrenceId,
|
|
180
180
|
dataItem: this.$props.dataItem,
|
|
181
|
+
removeItem: this.compRemoveItem,
|
|
181
182
|
task: this.$props.task,
|
|
182
|
-
editable: this.$props.editable
|
|
183
|
+
editable: this.$props.editable,
|
|
184
|
+
showOccurrenceDialog: this.compShowOccurrenceDialog,
|
|
185
|
+
showRemoveDialog: this.compShowRemoveDialog
|
|
183
186
|
},
|
|
184
187
|
tabIndex: this.$props.tabIndex,
|
|
185
188
|
head: this.$props.head,
|
|
@@ -206,71 +209,18 @@ var SchedulerEditTaskVue2 = {
|
|
|
206
209
|
recurrenceRule: this.$props.recurrenceRule,
|
|
207
210
|
recurrenceId: this.$props.recurrenceId,
|
|
208
211
|
dataItem: this.$props.dataItem,
|
|
212
|
+
removeItem: this.compRemoveItem,
|
|
209
213
|
task: this.$props.task,
|
|
210
214
|
editable: this.$props.editable,
|
|
215
|
+
showOccurrenceDialog: this.compShowOccurrenceDialog,
|
|
216
|
+
showRemoveDialog: this.compShowRemoveDialog,
|
|
211
217
|
onRemoveclick: this.handleRemoveClick,
|
|
212
218
|
on: this.v3 ? undefined : {
|
|
213
219
|
"removeclick": this.handleRemoveClick
|
|
214
220
|
}
|
|
215
221
|
}, this.v3 ? function () {
|
|
216
|
-
return [defaultSlot
|
|
217
|
-
|
|
218
|
-
attrs: _this.v3 ? undefined : {
|
|
219
|
-
dataItem: _this.compRemoveItem,
|
|
220
|
-
isRemove: _this.compRemoveItem !== null
|
|
221
|
-
},
|
|
222
|
-
isRemove: _this.compRemoveItem !== null,
|
|
223
|
-
onClose: _this.handleCancel,
|
|
224
|
-
on: _this.v3 ? undefined : {
|
|
225
|
-
"close": _this.handleCancel,
|
|
226
|
-
"occurrenceclose": _this.handleOccurrenceClick,
|
|
227
|
-
"seriesclose": _this.handleSeriesClick
|
|
228
|
-
},
|
|
229
|
-
onOccurrenceclose: _this.handleOccurrenceClick,
|
|
230
|
-
onSeriesclose: _this.handleSeriesClick
|
|
231
|
-
}), _this.compShowRemoveDialog && h(SchedulerRemoveDialog, {
|
|
232
|
-
dataItem: _this.compRemoveItem,
|
|
233
|
-
attrs: _this.v3 ? undefined : {
|
|
234
|
-
dataItem: _this.compRemoveItem
|
|
235
|
-
},
|
|
236
|
-
onClose: _this.handleCancel,
|
|
237
|
-
on: _this.v3 ? undefined : {
|
|
238
|
-
"close": _this.handleCancel,
|
|
239
|
-
"cancel": _this.handleCancel,
|
|
240
|
-
"confirm": _this.handleRemoveConfirm
|
|
241
|
-
},
|
|
242
|
-
onCancel: _this.handleCancel,
|
|
243
|
-
onConfirm: _this.handleRemoveConfirm
|
|
244
|
-
})];
|
|
245
|
-
} : [defaultSlot, _this.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog, {
|
|
246
|
-
dataItem: _this.compRemoveItem,
|
|
247
|
-
attrs: _this.v3 ? undefined : {
|
|
248
|
-
dataItem: _this.compRemoveItem,
|
|
249
|
-
isRemove: _this.compRemoveItem !== null
|
|
250
|
-
},
|
|
251
|
-
isRemove: _this.compRemoveItem !== null,
|
|
252
|
-
onClose: _this.handleCancel,
|
|
253
|
-
on: _this.v3 ? undefined : {
|
|
254
|
-
"close": _this.handleCancel,
|
|
255
|
-
"occurrenceclose": _this.handleOccurrenceClick,
|
|
256
|
-
"seriesclose": _this.handleSeriesClick
|
|
257
|
-
},
|
|
258
|
-
onOccurrenceclose: _this.handleOccurrenceClick,
|
|
259
|
-
onSeriesclose: _this.handleSeriesClick
|
|
260
|
-
}), _this.compShowRemoveDialog && h(SchedulerRemoveDialog, {
|
|
261
|
-
dataItem: _this.compRemoveItem,
|
|
262
|
-
attrs: _this.v3 ? undefined : {
|
|
263
|
-
dataItem: _this.compRemoveItem
|
|
264
|
-
},
|
|
265
|
-
onClose: _this.handleCancel,
|
|
266
|
-
on: _this.v3 ? undefined : {
|
|
267
|
-
"close": _this.handleCancel,
|
|
268
|
-
"cancel": _this.handleCancel,
|
|
269
|
-
"confirm": _this.handleRemoveConfirm
|
|
270
|
-
},
|
|
271
|
-
onCancel: _this.handleCancel,
|
|
272
|
-
onConfirm: _this.handleRemoveConfirm
|
|
273
|
-
})])
|
|
222
|
+
return [defaultSlot];
|
|
223
|
+
} : [defaultSlot])
|
|
274
224
|
);
|
|
275
225
|
},
|
|
276
226
|
methods: {
|
|
@@ -8,8 +8,6 @@ import { Item, SchedulerTaskMouseEvent, EditableProp } from '../models';
|
|
|
8
8
|
* Represents the props of the Kendo UI for Vue [SchedulerTask]({% slug api_scheduler_schedulertask %}) component.
|
|
9
9
|
*/
|
|
10
10
|
export interface SchedulerTaskProps extends Item {
|
|
11
|
-
/** @hidden */
|
|
12
|
-
refTo: any;
|
|
13
11
|
/**
|
|
14
12
|
* Specifies the `id` of the wrapping element of the SchedulerTask.
|
|
15
13
|
*/
|
|
@@ -35,6 +33,18 @@ export interface SchedulerTaskProps extends Item {
|
|
|
35
33
|
* The `delete` icon is rendered only when `props.editable` or `props.editable.remove` is `true`
|
|
36
34
|
*/
|
|
37
35
|
onRemoveClick?: (event: SchedulerTaskMouseEvent) => void;
|
|
36
|
+
/** @hidden */
|
|
37
|
+
refTo: any;
|
|
38
|
+
/** @hidden */
|
|
39
|
+
removeDialog?: any;
|
|
40
|
+
/** @hidden */
|
|
41
|
+
occurrenceDialog?: any;
|
|
42
|
+
/** @hidden */
|
|
43
|
+
showRemoveDialog?: boolean;
|
|
44
|
+
/** @hidden */
|
|
45
|
+
showOccurrenceDialog?: boolean;
|
|
46
|
+
/** @hidden */
|
|
47
|
+
removeItem?: object;
|
|
38
48
|
}
|
|
39
49
|
/**
|
|
40
50
|
* Represents the props of the Kendo UI for Vue [SchedulerTask]({% slug api_scheduler_schedulertask %}) component.
|
|
@@ -22,7 +22,9 @@ var inject = allVue.inject;
|
|
|
22
22
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
23
23
|
import { deleteTitle, messages } from '../messages';
|
|
24
24
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
25
|
-
import { useEditable } from '../hooks';
|
|
25
|
+
import { useEditable } from '../hooks';
|
|
26
|
+
import { SchedulerOccurrenceDialog } from '../components/SchedulerOccurrenceDialog';
|
|
27
|
+
import { SchedulerRemoveDialog } from '../components/SchedulerRemoveDialog'; // tslint:enable:max-line-length
|
|
26
28
|
|
|
27
29
|
var SchedulerTaskVue2 = {
|
|
28
30
|
name: 'KendoSchedulerTask',
|
|
@@ -54,7 +56,16 @@ var SchedulerTaskVue2 = {
|
|
|
54
56
|
recurrenceRule: String,
|
|
55
57
|
recurrenceId: [String, Number],
|
|
56
58
|
dataItem: Object,
|
|
57
|
-
|
|
59
|
+
removeItem: Object,
|
|
60
|
+
editable: [Object, Boolean],
|
|
61
|
+
showOccurrenceDialog: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: undefined
|
|
64
|
+
},
|
|
65
|
+
showRemoveDialog: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: undefined
|
|
68
|
+
}
|
|
58
69
|
},
|
|
59
70
|
inject: {
|
|
60
71
|
kendoLocalizationService: {
|
|
@@ -65,6 +76,18 @@ var SchedulerTaskVue2 = {
|
|
|
65
76
|
},
|
|
66
77
|
taskDoubleClick: {
|
|
67
78
|
default: null
|
|
79
|
+
},
|
|
80
|
+
ksCancel: {
|
|
81
|
+
default: null
|
|
82
|
+
},
|
|
83
|
+
ksSeriesClick: {
|
|
84
|
+
default: null
|
|
85
|
+
},
|
|
86
|
+
ksOccurrenceClick: {
|
|
87
|
+
default: null
|
|
88
|
+
},
|
|
89
|
+
ksRemoveConfirm: {
|
|
90
|
+
default: null
|
|
68
91
|
}
|
|
69
92
|
},
|
|
70
93
|
created: function created() {
|
|
@@ -127,7 +150,35 @@ var SchedulerTaskVue2 = {
|
|
|
127
150
|
}
|
|
128
151
|
}, [h("span", {
|
|
129
152
|
"class": "k-icon k-i-close"
|
|
130
|
-
})])
|
|
153
|
+
})]), this.showOccurrenceDialog && h(SchedulerOccurrenceDialog, {
|
|
154
|
+
dataItem: this.removeItem,
|
|
155
|
+
attrs: this.v3 ? undefined : {
|
|
156
|
+
dataItem: this.removeItem,
|
|
157
|
+
isRemove: this.removeItem !== null
|
|
158
|
+
},
|
|
159
|
+
isRemove: this.removeItem !== null,
|
|
160
|
+
onClose: this.ksCancel,
|
|
161
|
+
on: this.v3 ? undefined : {
|
|
162
|
+
"close": this.ksCancel,
|
|
163
|
+
"occurrenceclose": this.ksOccurrenceClick,
|
|
164
|
+
"seriesclose": this.ksSeriesClick
|
|
165
|
+
},
|
|
166
|
+
onOccurrenceclose: this.ksOccurrenceClick,
|
|
167
|
+
onSeriesclose: this.ksSeriesClick
|
|
168
|
+
}), this.showRemoveDialog && h(SchedulerRemoveDialog, {
|
|
169
|
+
dataItem: this.removeItem,
|
|
170
|
+
attrs: this.v3 ? undefined : {
|
|
171
|
+
dataItem: this.removeItem
|
|
172
|
+
},
|
|
173
|
+
onClose: this.ksCancel,
|
|
174
|
+
on: this.v3 ? undefined : {
|
|
175
|
+
"close": this.ksCancel,
|
|
176
|
+
"cancel": this.ksCancel,
|
|
177
|
+
"confirm": this.ksRemoveConfirm
|
|
178
|
+
},
|
|
179
|
+
onCancel: this.ksCancel,
|
|
180
|
+
onConfirm: this.ksRemoveConfirm
|
|
181
|
+
})]);
|
|
131
182
|
},
|
|
132
183
|
methods: {
|
|
133
184
|
handleRemoveClick: function handleRemoveClick(event) {
|
|
@@ -36,8 +36,17 @@ var SchedulerViewTaskVue2 = {
|
|
|
36
36
|
recurrenceRule: String,
|
|
37
37
|
recurrenceId: [String, Number],
|
|
38
38
|
dataItem: Object,
|
|
39
|
+
removeItem: Object,
|
|
39
40
|
task: [String, Function, Object],
|
|
40
|
-
editable: [Object, Boolean]
|
|
41
|
+
editable: [Object, Boolean],
|
|
42
|
+
showOccurrenceDialog: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: undefined
|
|
45
|
+
},
|
|
46
|
+
showRemoveDialog: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: undefined
|
|
49
|
+
}
|
|
41
50
|
},
|
|
42
51
|
// @ts-ignore
|
|
43
52
|
setup: !gh ? undefined : function () {
|
|
@@ -81,7 +90,10 @@ var SchedulerViewTaskVue2 = {
|
|
|
81
90
|
recurrenceRule: this.$props.recurrenceRule,
|
|
82
91
|
recurrenceId: this.$props.recurrenceId,
|
|
83
92
|
dataItem: this.$props.dataItem,
|
|
84
|
-
|
|
93
|
+
removeItem: this.removeItem,
|
|
94
|
+
editable: this.$props.editable,
|
|
95
|
+
showOccurrenceDialog: this.showOccurrenceDialog,
|
|
96
|
+
showRemoveDialog: this.showRemoveDialog
|
|
85
97
|
},
|
|
86
98
|
tabIndex: this.$props.tabIndex,
|
|
87
99
|
head: this.$props.head,
|
|
@@ -108,7 +120,10 @@ var SchedulerViewTaskVue2 = {
|
|
|
108
120
|
recurrenceRule: this.$props.recurrenceRule,
|
|
109
121
|
recurrenceId: this.$props.recurrenceId,
|
|
110
122
|
dataItem: this.$props.dataItem,
|
|
123
|
+
removeItem: this.removeItem,
|
|
111
124
|
editable: this.$props.editable,
|
|
125
|
+
showOccurrenceDialog: this.showOccurrenceDialog,
|
|
126
|
+
showRemoveDialog: this.showRemoveDialog,
|
|
112
127
|
onRemoveclick: this.handleRemoveClick,
|
|
113
128
|
on: this.v3 ? undefined : {
|
|
114
129
|
"removeclick": this.handleRemoveClick
|
|
@@ -120,7 +135,10 @@ var SchedulerViewTaskVue2 = {
|
|
|
120
135
|
h: h,
|
|
121
136
|
template: this.$props.task,
|
|
122
137
|
defaultRendering: taskRenderDefaultRendering,
|
|
123
|
-
defaultSlots: defaultSlot
|
|
138
|
+
defaultSlots: defaultSlot,
|
|
139
|
+
additionalListeners: {
|
|
140
|
+
'removeclick': this.handleRemoveClick
|
|
141
|
+
}
|
|
124
142
|
});
|
|
125
143
|
return taskRender;
|
|
126
144
|
},
|
|
@@ -309,7 +309,7 @@ var SchedulerFormVue2 = {
|
|
|
309
309
|
result[this.ks.fields.end] = [this.requiredValidator(formValueGetter(this.ks.fields.start)), this.endAfterStartValidator(formValueGetter(this.ks.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
|
|
310
310
|
return current || acc;
|
|
311
311
|
}, '');
|
|
312
|
-
var additionalValidator = this.ksValidator(
|
|
312
|
+
var additionalValidator = this.ksValidator(formValueGetter);
|
|
313
313
|
return __assign(__assign({}, result), additionalValidator);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
@@ -640,6 +640,8 @@ var SchedulerFormEditorVue2 = {
|
|
|
640
640
|
}, _this.v3 ? function () {
|
|
641
641
|
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
642
642
|
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
643
|
+
var _this2 = this;
|
|
644
|
+
|
|
643
645
|
return h("div", {
|
|
644
646
|
key: resource.field
|
|
645
647
|
}, [h("div", {
|
|
@@ -673,7 +675,17 @@ var SchedulerFormEditorVue2 = {
|
|
|
673
675
|
textField: resource.textField,
|
|
674
676
|
valueField: resource.valueField,
|
|
675
677
|
colorField: resource.colorField
|
|
676
|
-
})]
|
|
678
|
+
}), this.kendoForm.errors[resource.field] && // @ts-ignore function children
|
|
679
|
+
h(kendo_vue_form_1.Field, {
|
|
680
|
+
name: resource.field,
|
|
681
|
+
attrs: this.v3 ? undefined : {
|
|
682
|
+
name: resource.field,
|
|
683
|
+
component: kendo_vue_labels_1.Error
|
|
684
|
+
},
|
|
685
|
+
component: kendo_vue_labels_1.Error
|
|
686
|
+
}, this.v3 ? function () {
|
|
687
|
+
return [_this2.kendoForm.errors[resource.field]];
|
|
688
|
+
} : [_this2.kendoForm.errors[resource.field]])])]);
|
|
677
689
|
}, _this), defaultSlots];
|
|
678
690
|
} : [h("div", {
|
|
679
691
|
"class": "k-form-field"
|
|
@@ -992,6 +1004,8 @@ var SchedulerFormEditorVue2 = {
|
|
|
992
1004
|
}, _this.v3 ? function () {
|
|
993
1005
|
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
994
1006
|
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
1007
|
+
var _this2 = this;
|
|
1008
|
+
|
|
995
1009
|
return h("div", {
|
|
996
1010
|
key: resource.field
|
|
997
1011
|
}, [h("div", {
|
|
@@ -1024,7 +1038,16 @@ var SchedulerFormEditorVue2 = {
|
|
|
1024
1038
|
textField: resource.textField,
|
|
1025
1039
|
valueField: resource.valueField,
|
|
1026
1040
|
colorField: resource.colorField
|
|
1027
|
-
})]
|
|
1041
|
+
}), this.kendoForm.errors[resource.field] && h(kendo_vue_form_1.Field, {
|
|
1042
|
+
name: resource.field,
|
|
1043
|
+
attrs: this.v3 ? undefined : {
|
|
1044
|
+
name: resource.field,
|
|
1045
|
+
component: kendo_vue_labels_1.Error
|
|
1046
|
+
},
|
|
1047
|
+
component: kendo_vue_labels_1.Error
|
|
1048
|
+
}, this.v3 ? function () {
|
|
1049
|
+
return [_this2.kendoForm.errors[resource.field]];
|
|
1050
|
+
} : [_this2.kendoForm.errors[resource.field]])])]);
|
|
1028
1051
|
}, _this), defaultSlots])
|
|
1029
1052
|
);
|
|
1030
1053
|
},
|
|
@@ -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:
|
|
11
|
+
publishDate: 1650898844,
|
|
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
|
};
|