@progress/kendo-vue-scheduler 3.1.4 → 3.2.0-dev.202204120815
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/components/SchedulerActionButtons.js +7 -1
- package/dist/es/components/SchedulerForm.js +68 -9
- package/dist/es/components/SchedulerOccurrenceDialog.js +52 -7
- package/dist/es/components/SchedulerRemoveDialog.js +52 -7
- package/dist/es/editors/ResourceEditor.js +13 -11
- package/dist/es/editors/SchedulerFormEditor.js +689 -334
- package/dist/es/editors/ZonedDateTime.d.ts +1 -0
- package/dist/es/editors/ZonedDateTime.js +5 -2
- package/dist/es/items/SchedulerEditItem.js +401 -211
- package/dist/es/items/SchedulerItem.js +104 -95
- package/dist/es/items/SchedulerViewItem.js +8 -2
- package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
- package/dist/es/items/hooks/use-drag-item.js +228 -153
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
- package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
- package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
- package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
- package/dist/es/messages/index.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
- package/dist/es/recurrence/RecurrenceEditor.js +5 -0
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
- package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
- package/dist/es/tasks/SchedulerEditTask.js +118 -35
- package/dist/es/tasks/SchedulerTask.js +3 -2
- package/dist/es/tasks/SchedulerViewTask.js +15 -3
- package/dist/es/views/agenda/AgendaView.js +21 -9
- package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/es/views/agenda/AgendaViewBody.js +6 -1
- package/dist/es/views/common/SchedulerDrag.js +62 -11
- package/dist/es/views/day/DayView.js +4 -0
- package/dist/es/views/month/MonthView.js +9 -13
- package/dist/es/views/time/MultiDayTimelineView.js +28 -9
- package/dist/es/views/time/TimelineView.js +4 -0
- package/dist/es/views/week/WeekView.js +12 -2
- package/dist/es/views/week/WorkWeekView.js +12 -2
- package/dist/npm/components/SchedulerActionButtons.js +7 -1
- package/dist/npm/components/SchedulerForm.js +68 -9
- package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
- package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
- package/dist/npm/editors/ResourceEditor.js +12 -10
- package/dist/npm/editors/SchedulerFormEditor.js +674 -319
- package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
- package/dist/npm/editors/ZonedDateTime.js +4 -1
- package/dist/npm/items/SchedulerEditItem.js +400 -207
- package/dist/npm/items/SchedulerItem.js +104 -95
- package/dist/npm/items/SchedulerViewItem.js +8 -2
- package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
- package/dist/npm/items/hooks/use-drag-item.js +231 -153
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
- package/dist/npm/messages/index.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
- package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
- package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
- package/dist/npm/tasks/SchedulerEditTask.js +120 -35
- package/dist/npm/tasks/SchedulerTask.js +3 -2
- package/dist/npm/tasks/SchedulerViewTask.js +15 -3
- package/dist/npm/views/agenda/AgendaView.js +21 -9
- package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
- package/dist/npm/views/common/SchedulerDrag.js +62 -11
- package/dist/npm/views/day/DayView.js +4 -0
- package/dist/npm/views/month/MonthView.js +9 -13
- package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
- package/dist/npm/views/time/TimelineView.js +4 -0
- package/dist/npm/views/week/WeekView.js +12 -2
- package/dist/npm/views/week/WorkWeekView.js +12 -2
- package/package.json +12 -12
|
@@ -17,14 +17,14 @@ var allVue = Vue;
|
|
|
17
17
|
var gh = allVue.h;
|
|
18
18
|
var inject = allVue.inject;
|
|
19
19
|
import { timezoneNames } from '@progress/kendo-date-math';
|
|
20
|
-
import { Error, Label } from '@progress/kendo-vue-labels';
|
|
20
|
+
import { Error, Label as KLabel } from '@progress/kendo-vue-labels';
|
|
21
21
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
22
|
-
import { Field } from '@progress/kendo-vue-form';
|
|
23
|
-
import { Input, Checkbox, TextArea } from '@progress/kendo-vue-inputs';
|
|
24
|
-
import { DatePicker, DateTimePicker } from '@progress/kendo-vue-dateinputs';
|
|
22
|
+
import { Field, FormElement } from '@progress/kendo-vue-form';
|
|
23
|
+
import { Input as KInput, Checkbox, TextArea } from '@progress/kendo-vue-inputs';
|
|
25
24
|
import { messages, editorEventTitle, editorEventStart, editorEventEnd, editorEventDescription, editorEventAllDay, editorEventTimeZone, editorEventSeparateTimeZones, editorEventStartTimeZone, editorEventEndTimeZone, editorValidationRequired } from '../messages'; // import { useSchedulerPropsContext, useSchedulerFieldsContext } from '../context';
|
|
26
25
|
|
|
27
26
|
import { FilterableComboBox } from './FilterableComboBox';
|
|
27
|
+
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
28
28
|
import { RecurrenceEditor as KendoRecurrenceEditor } from '../recurrence/RecurrenceEditor';
|
|
29
29
|
import { ResourceEditor as KendoResourceEditor } from './ResourceEditor';
|
|
30
30
|
import { ZonedDateTime } from './ZonedDateTime'; // tslint:enable:max-line-length
|
|
@@ -38,7 +38,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
38
38
|
titleLabel: {
|
|
39
39
|
type: [String, Function, Object],
|
|
40
40
|
default: function _default() {
|
|
41
|
-
return
|
|
41
|
+
return KLabel;
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
titleError: {
|
|
@@ -50,13 +50,13 @@ var SchedulerFormEditorVue2 = {
|
|
|
50
50
|
titleEditor: {
|
|
51
51
|
type: [String, Function, Object],
|
|
52
52
|
default: function _default() {
|
|
53
|
-
return
|
|
53
|
+
return KInput;
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
startLabel: {
|
|
57
57
|
type: [String, Function, Object],
|
|
58
58
|
default: function _default() {
|
|
59
|
-
return
|
|
59
|
+
return KLabel;
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
startError: {
|
|
@@ -74,7 +74,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
74
74
|
startTimezoneLabel: {
|
|
75
75
|
type: [String, Function, Object],
|
|
76
76
|
default: function _default() {
|
|
77
|
-
return
|
|
77
|
+
return KLabel;
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
startTimezoneError: {
|
|
@@ -92,7 +92,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
92
92
|
startTimezoneCheckedLabel: {
|
|
93
93
|
type: [String, Function, Object],
|
|
94
94
|
default: function _default() {
|
|
95
|
-
return
|
|
95
|
+
return KLabel;
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
startTimezoneCheckedEditor: {
|
|
@@ -104,7 +104,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
104
104
|
endLabel: {
|
|
105
105
|
type: [String, Function, Object],
|
|
106
106
|
default: function _default() {
|
|
107
|
-
return
|
|
107
|
+
return KLabel;
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
endError: {
|
|
@@ -122,7 +122,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
122
122
|
endTimezoneLabel: {
|
|
123
123
|
type: [String, Function, Object],
|
|
124
124
|
default: function _default() {
|
|
125
|
-
return
|
|
125
|
+
return KLabel;
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
endTimezoneError: {
|
|
@@ -140,7 +140,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
140
140
|
endTimezoneCheckedLabel: {
|
|
141
141
|
type: [String, Function, Object],
|
|
142
142
|
default: function _default() {
|
|
143
|
-
return
|
|
143
|
+
return KLabel;
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
endTimezoneCheckedEditor: {
|
|
@@ -152,7 +152,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
152
152
|
allDayLabel: {
|
|
153
153
|
type: [String, Function, Object],
|
|
154
154
|
default: function _default() {
|
|
155
|
-
return
|
|
155
|
+
return KLabel;
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
allDayEditor: {
|
|
@@ -170,7 +170,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
170
170
|
descriptionLabel: {
|
|
171
171
|
type: [String, Function, Object],
|
|
172
172
|
default: function _default() {
|
|
173
|
-
return
|
|
173
|
+
return KLabel;
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
descriptionError: {
|
|
@@ -188,13 +188,13 @@ var SchedulerFormEditorVue2 = {
|
|
|
188
188
|
resourceLabel: {
|
|
189
189
|
type: [String, Function, Object],
|
|
190
190
|
default: function _default() {
|
|
191
|
-
return
|
|
191
|
+
return KLabel;
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
resourcesError: {
|
|
195
195
|
type: [String, Function, Object],
|
|
196
196
|
default: function _default() {
|
|
197
|
-
return
|
|
197
|
+
return KLabel;
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
resourceEditor: {
|
|
@@ -244,9 +244,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
244
244
|
var _this = this;
|
|
245
245
|
|
|
246
246
|
var h = gh || createElement;
|
|
247
|
+
var defaultSlots = getDefaultSlots(this);
|
|
247
248
|
var timezones = timezoneNames();
|
|
248
|
-
var localization = provideLocalizationService(this);
|
|
249
|
-
// const { resources, timezone } = useSchedulerPropsContext();
|
|
249
|
+
var localization = provideLocalizationService(this);
|
|
250
250
|
|
|
251
251
|
var _a = this.$props,
|
|
252
252
|
Component = _a.as,
|
|
@@ -285,374 +285,729 @@ var SchedulerFormEditorVue2 = {
|
|
|
285
285
|
var endTimezone = this.kendoForm.valueGetter(this.ks.fields.endTimezone) || this.ks.timezone || '';
|
|
286
286
|
this.requiredValidationMessage = localization.toLanguageString(editorValidationRequired, messages[editorValidationRequired]);
|
|
287
287
|
var title = this.ks.fields.title;
|
|
288
|
-
return
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
288
|
+
return (// @ts-ignore function children
|
|
289
|
+
h(FormElement, {
|
|
290
|
+
"class": 'k-scheduler-edit-form'
|
|
291
|
+
}, this.v3 ? function () {
|
|
292
|
+
return [h("div", {
|
|
293
|
+
"class": "k-form-field"
|
|
294
|
+
}, [// @ts-ignore function children
|
|
295
|
+
h(Field, {
|
|
296
|
+
name: title,
|
|
297
|
+
attrs: _this.v3 ? undefined : {
|
|
298
|
+
name: title,
|
|
299
|
+
component: TitleLabel,
|
|
300
|
+
editorId: 'k-scheduler-editor-title'
|
|
301
|
+
},
|
|
302
|
+
component: TitleLabel,
|
|
303
|
+
editorId: 'k-scheduler-editor-title'
|
|
304
|
+
}, _this.v3 ? function () {
|
|
305
|
+
return [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])];
|
|
306
|
+
} : [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])]), h("div", {
|
|
307
|
+
"class": "k-form-field-wrap"
|
|
308
|
+
}, [h(Field, {
|
|
309
|
+
id: "k-scheduler-editor-title",
|
|
310
|
+
attrs: _this.v3 ? undefined : {
|
|
311
|
+
id: "k-scheduler-editor-title",
|
|
312
|
+
name: title,
|
|
313
|
+
field: title,
|
|
314
|
+
component: TitleEditor
|
|
315
|
+
},
|
|
316
|
+
name: title,
|
|
317
|
+
field: title,
|
|
318
|
+
component: TitleEditor
|
|
319
|
+
}), _this.kendoForm.errors[title] && // @ts-ignore function children
|
|
320
|
+
h(Field, {
|
|
321
|
+
name: title,
|
|
322
|
+
attrs: _this.v3 ? undefined : {
|
|
323
|
+
name: title,
|
|
324
|
+
component: TitleError
|
|
325
|
+
},
|
|
326
|
+
component: TitleError
|
|
327
|
+
}, _this.v3 ? function () {
|
|
328
|
+
return [_this.kendoForm.errors[title]];
|
|
329
|
+
} : [_this.kendoForm.errors[title]])])]), h("div", {
|
|
330
|
+
"class": "k-form-field"
|
|
331
|
+
}, [// @ts-ignore function children
|
|
332
|
+
h(Field, {
|
|
333
|
+
name: _this.ks.fields.start,
|
|
334
|
+
attrs: _this.v3 ? undefined : {
|
|
335
|
+
name: _this.ks.fields.start,
|
|
336
|
+
component: StartLabel,
|
|
337
|
+
editorId: "k-scheduler-editor-start"
|
|
338
|
+
},
|
|
339
|
+
component: StartLabel,
|
|
340
|
+
editorId: "k-scheduler-editor-start"
|
|
341
|
+
}, _this.v3 ? function () {
|
|
342
|
+
return [localization.toLanguageString(editorEventStart, messages[editorEventStart])];
|
|
343
|
+
} : [localization.toLanguageString(editorEventStart, messages[editorEventStart])]), h("div", {
|
|
344
|
+
"class": "k-form-field-wrap",
|
|
345
|
+
style: {
|
|
346
|
+
display: 'flex'
|
|
347
|
+
}
|
|
348
|
+
}, [h("div", [h(Field, {
|
|
349
|
+
id: "k-scheduler-editor-start",
|
|
350
|
+
attrs: _this.v3 ? undefined : {
|
|
351
|
+
id: "k-scheduler-editor-start",
|
|
352
|
+
name: _this.ks.fields.start,
|
|
353
|
+
width: "auto",
|
|
354
|
+
component: StartEditor,
|
|
355
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
356
|
+
timezone: _this.ks.timezone
|
|
357
|
+
},
|
|
358
|
+
name: _this.ks.fields.start,
|
|
359
|
+
width: "auto",
|
|
360
|
+
component: StartEditor,
|
|
361
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
362
|
+
timezone: _this.ks.timezone
|
|
363
|
+
}), _this.kendoForm.errors[_this.ks.fields.start] && // @ts-ignore function children
|
|
364
|
+
h(Field, {
|
|
365
|
+
name: _this.ks.fields.start,
|
|
366
|
+
attrs: _this.v3 ? undefined : {
|
|
367
|
+
name: _this.ks.fields.start,
|
|
368
|
+
component: StartError
|
|
369
|
+
},
|
|
370
|
+
component: StartError
|
|
371
|
+
}, _this.v3 ? function () {
|
|
372
|
+
return [_this.kendoForm.errors[_this.ks.fields.start]];
|
|
373
|
+
} : [_this.kendoForm.errors[_this.ks.fields.start]])]), "\xA0", timezones.length > 0 && h("div", [h(StartTimezoneCheckedEditor, {
|
|
374
|
+
id: 'k-scheduler-editor-set-start-timezone',
|
|
375
|
+
attrs: _this.v3 ? undefined : {
|
|
376
|
+
id: 'k-scheduler-editor-set-start-timezone',
|
|
377
|
+
value: _this.startZoneChecked
|
|
378
|
+
},
|
|
379
|
+
onChange: _this.handleStartZoneCheckboxChange,
|
|
380
|
+
on: _this.v3 ? undefined : {
|
|
381
|
+
"change": _this.handleStartZoneCheckboxChange
|
|
382
|
+
},
|
|
383
|
+
value: _this.startZoneChecked
|
|
384
|
+
}), "\xA0", // @ts-ignore function children
|
|
385
|
+
h(StartTimezoneCheckedLabel, {
|
|
386
|
+
"class": 'k-checkbox-label',
|
|
387
|
+
editorId: 'k-scheduler-editor-set-start-timezone',
|
|
388
|
+
attrs: _this.v3 ? undefined : {
|
|
389
|
+
editorId: 'k-scheduler-editor-set-start-timezone'
|
|
390
|
+
},
|
|
391
|
+
style: {
|
|
392
|
+
display: 'inline-flex'
|
|
393
|
+
}
|
|
394
|
+
}, _this.v3 ? function () {
|
|
395
|
+
return [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])];
|
|
396
|
+
} : [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])])])])]), _this.startZoneChecked && h("div", {
|
|
397
|
+
"class": "k-form-field"
|
|
398
|
+
}, [// @ts-ignore function children
|
|
399
|
+
h(Field, {
|
|
400
|
+
name: _this.ks.fields.start,
|
|
401
|
+
attrs: _this.v3 ? undefined : {
|
|
402
|
+
name: _this.ks.fields.start,
|
|
403
|
+
component: StartTimezoneLabel
|
|
404
|
+
},
|
|
405
|
+
component: StartTimezoneLabel
|
|
406
|
+
}, _this.v3 ? function () {
|
|
407
|
+
return [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])];
|
|
408
|
+
} : [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])]), h("div", {
|
|
409
|
+
"class": "k-form-field-wrap"
|
|
410
|
+
}, [h(Field, {
|
|
411
|
+
component: StartTimezoneEditor,
|
|
412
|
+
attrs: _this.v3 ? undefined : {
|
|
413
|
+
component: StartTimezoneEditor,
|
|
414
|
+
value: startTimezone,
|
|
415
|
+
validator: _this.startTimezoneValidator,
|
|
416
|
+
dataItems: timezones,
|
|
417
|
+
name: _this.ks.fields.startTimezone
|
|
418
|
+
},
|
|
419
|
+
value: startTimezone,
|
|
420
|
+
validator: _this.startTimezoneValidator,
|
|
421
|
+
dataItems: timezones,
|
|
422
|
+
name: _this.ks.fields.startTimezone
|
|
423
|
+
}), _this.kendoForm.errors[_this.ks.fields.startTimezone] && // @ts-ignore function children
|
|
424
|
+
h(Field, {
|
|
425
|
+
name: _this.ks.fields.startTimezone,
|
|
426
|
+
attrs: _this.v3 ? undefined : {
|
|
427
|
+
name: _this.ks.fields.startTimezone,
|
|
428
|
+
component: StartTimezoneError
|
|
429
|
+
},
|
|
430
|
+
component: StartTimezoneError
|
|
431
|
+
}, _this.v3 ? function () {
|
|
432
|
+
return [_this.kendoForm.errors[_this.ks.fields.startTimezone]];
|
|
433
|
+
} : [_this.kendoForm.errors[_this.ks.fields.startTimezone]])])]), h("div", {
|
|
434
|
+
"class": "k-form-field"
|
|
435
|
+
}, [// @ts-ignore function children
|
|
436
|
+
h(Field, {
|
|
437
|
+
name: _this.ks.fields.end,
|
|
438
|
+
attrs: _this.v3 ? undefined : {
|
|
439
|
+
name: _this.ks.fields.end,
|
|
440
|
+
component: EndLabel,
|
|
441
|
+
editorId: "k-scheduler-editor-end"
|
|
442
|
+
},
|
|
443
|
+
component: EndLabel,
|
|
444
|
+
editorId: "k-scheduler-editor-end"
|
|
445
|
+
}, _this.v3 ? function () {
|
|
446
|
+
return [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])];
|
|
447
|
+
} : [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])]), h("div", {
|
|
448
|
+
"class": "k-form-field-wrap",
|
|
449
|
+
style: {
|
|
450
|
+
display: 'flex'
|
|
451
|
+
}
|
|
452
|
+
}, [h("div", [h(Field, {
|
|
453
|
+
id: "k-scheduler-editor-end",
|
|
454
|
+
attrs: _this.v3 ? undefined : {
|
|
455
|
+
id: "k-scheduler-editor-end",
|
|
456
|
+
name: _this.ks.fields.end,
|
|
457
|
+
width: "auto",
|
|
458
|
+
component: EndEditor,
|
|
459
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
460
|
+
timezone: _this.ks.timezone
|
|
461
|
+
},
|
|
462
|
+
name: _this.ks.fields.end,
|
|
463
|
+
width: "auto",
|
|
464
|
+
component: EndEditor,
|
|
465
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
466
|
+
timezone: _this.ks.timezone
|
|
467
|
+
}), _this.kendoForm.errors[_this.ks.fields.end] && // @ts-ignore function children
|
|
468
|
+
h(Field, {
|
|
469
|
+
name: _this.ks.fields.end,
|
|
470
|
+
attrs: _this.v3 ? undefined : {
|
|
471
|
+
name: _this.ks.fields.end,
|
|
472
|
+
component: EndError
|
|
473
|
+
},
|
|
474
|
+
component: EndError
|
|
475
|
+
}, _this.v3 ? function () {
|
|
476
|
+
return [_this.kendoForm.errors[_this.ks.fields.end]];
|
|
477
|
+
} : [_this.kendoForm.errors[_this.ks.fields.end]])]), "\xA0", h("div", [_this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
|
|
478
|
+
id: 'k-scheduler-editor-set-end-timezone',
|
|
479
|
+
attrs: _this.v3 ? undefined : {
|
|
480
|
+
id: 'k-scheduler-editor-set-end-timezone',
|
|
481
|
+
value: _this.endZoneChecked
|
|
482
|
+
},
|
|
483
|
+
onChange: _this.handleEndZoneCheckboxChange,
|
|
484
|
+
on: _this.v3 ? undefined : {
|
|
485
|
+
"change": _this.handleEndZoneCheckboxChange
|
|
486
|
+
},
|
|
487
|
+
value: _this.endZoneChecked
|
|
488
|
+
}), // @ts-ignore function children
|
|
489
|
+
h(EndTimezoneCheckedLabel, {
|
|
490
|
+
"class": 'k-checkbox-label',
|
|
491
|
+
editorId: 'k-scheduler-editor-set-end-timezone',
|
|
492
|
+
attrs: _this.v3 ? undefined : {
|
|
493
|
+
editorId: 'k-scheduler-editor-set-end-timezone'
|
|
494
|
+
},
|
|
495
|
+
style: {
|
|
496
|
+
display: 'inline-flex'
|
|
497
|
+
}
|
|
498
|
+
}, _this.v3 ? function () {
|
|
499
|
+
return [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])];
|
|
500
|
+
} : [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])])]])])]), _this.endZoneChecked && h("div", {
|
|
501
|
+
"class": "k-form-field"
|
|
502
|
+
}, [// @ts-ignore function children
|
|
503
|
+
h(Field, {
|
|
504
|
+
name: _this.ks.fields.endTimezone,
|
|
505
|
+
attrs: _this.v3 ? undefined : {
|
|
506
|
+
name: _this.ks.fields.endTimezone,
|
|
507
|
+
component: EndTimezoneLabel
|
|
508
|
+
},
|
|
509
|
+
component: EndTimezoneLabel
|
|
510
|
+
}, _this.v3 ? function () {
|
|
511
|
+
return [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])];
|
|
512
|
+
} : [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])]), h("div", {
|
|
513
|
+
"class": "k-form-field-wrap"
|
|
514
|
+
}, [h(Field, {
|
|
515
|
+
value: endTimezone,
|
|
516
|
+
attrs: _this.v3 ? undefined : {
|
|
517
|
+
value: endTimezone,
|
|
518
|
+
dataItems: timezones,
|
|
519
|
+
validator: _this.endTimezoneValidator,
|
|
520
|
+
component: EndTimezoneEditor,
|
|
521
|
+
name: _this.ks.fields.endTimezone
|
|
522
|
+
},
|
|
523
|
+
dataItems: timezones,
|
|
524
|
+
validator: _this.endTimezoneValidator,
|
|
525
|
+
component: EndTimezoneEditor,
|
|
526
|
+
name: _this.ks.fields.endTimezone
|
|
527
|
+
}), _this.kendoForm.errors[_this.ks.fields.endTimezone] && // @ts-ignore function children
|
|
528
|
+
h(Field, {
|
|
529
|
+
name: _this.ks.fields.endTimezone,
|
|
530
|
+
attrs: _this.v3 ? undefined : {
|
|
531
|
+
name: _this.ks.fields.endTimezone,
|
|
532
|
+
component: EndTimezoneError
|
|
533
|
+
},
|
|
534
|
+
component: EndTimezoneError
|
|
535
|
+
}, _this.v3 ? function () {
|
|
536
|
+
return [_this.kendoForm.errors[_this.ks.fields.endTimezone]];
|
|
537
|
+
} : [_this.kendoForm.errors[_this.ks.fields.endTimezone]])])]), h("div", {
|
|
538
|
+
"class": "k-form-field"
|
|
539
|
+
}, [h(Field, {
|
|
540
|
+
name: _this.ks.fields.isAllDay,
|
|
541
|
+
attrs: _this.v3 ? undefined : {
|
|
542
|
+
name: _this.ks.fields.isAllDay,
|
|
543
|
+
component: KLabel
|
|
544
|
+
},
|
|
545
|
+
component: KLabel
|
|
546
|
+
}), h("div", {
|
|
547
|
+
"class": "k-form-field-wrap"
|
|
548
|
+
}, [h(Field, {
|
|
549
|
+
id: 'k-is-allday-checkbox',
|
|
550
|
+
attrs: _this.v3 ? undefined : {
|
|
551
|
+
id: 'k-is-allday-checkbox',
|
|
552
|
+
name: _this.ks.fields.isAllDay,
|
|
553
|
+
component: AllDayEditor
|
|
554
|
+
},
|
|
555
|
+
name: _this.ks.fields.isAllDay,
|
|
556
|
+
component: AllDayEditor
|
|
557
|
+
}), "\xA0", // @ts-ignore function children
|
|
558
|
+
h(Field, {
|
|
559
|
+
name: _this.ks.fields.isAllDay,
|
|
560
|
+
attrs: _this.v3 ? undefined : {
|
|
561
|
+
name: _this.ks.fields.isAllDay,
|
|
562
|
+
field: _this.ks.fields.isAllDay,
|
|
563
|
+
editorId: 'k-is-allday-checkbox',
|
|
564
|
+
component: AllDayLabel
|
|
565
|
+
},
|
|
566
|
+
field: _this.ks.fields.isAllDay,
|
|
567
|
+
editorId: 'k-is-allday-checkbox',
|
|
568
|
+
"class": 'k-checkbox-label',
|
|
569
|
+
component: AllDayLabel
|
|
570
|
+
}, _this.v3 ? function () {
|
|
571
|
+
return [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])];
|
|
572
|
+
} : [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
|
|
573
|
+
component: RecurrenceEditor,
|
|
574
|
+
attrs: _this.v3 ? undefined : {
|
|
575
|
+
component: RecurrenceEditor,
|
|
576
|
+
changeOnInput: false,
|
|
577
|
+
field: _this.ks.fields.recurrenceRule,
|
|
578
|
+
name: _this.ks.fields.recurrenceRule,
|
|
579
|
+
start: start
|
|
580
|
+
},
|
|
581
|
+
changeOnInput: false,
|
|
582
|
+
field: _this.ks.fields.recurrenceRule,
|
|
583
|
+
name: _this.ks.fields.recurrenceRule,
|
|
584
|
+
start: start
|
|
585
|
+
}), h("div", {
|
|
586
|
+
"class": "k-form-field"
|
|
587
|
+
}, [// @ts-ignore function children
|
|
588
|
+
h(Field, {
|
|
589
|
+
name: _this.ks.fields.description,
|
|
590
|
+
attrs: _this.v3 ? undefined : {
|
|
591
|
+
name: _this.ks.fields.description,
|
|
592
|
+
component: DescriptionLabel
|
|
593
|
+
},
|
|
594
|
+
component: DescriptionLabel
|
|
595
|
+
}, _this.v3 ? function () {
|
|
596
|
+
return [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])];
|
|
597
|
+
} : [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])]), h("div", {
|
|
598
|
+
"class": "k-form-field-wrap"
|
|
599
|
+
}, [h(Field, {
|
|
600
|
+
component: DescriptionEditor,
|
|
601
|
+
attrs: _this.v3 ? undefined : {
|
|
602
|
+
component: DescriptionEditor,
|
|
603
|
+
name: _this.ks.fields.description,
|
|
604
|
+
rows: 1,
|
|
605
|
+
id: 'k-event-description'
|
|
606
|
+
},
|
|
607
|
+
name: _this.ks.fields.description,
|
|
608
|
+
rows: 1,
|
|
609
|
+
id: 'k-event-description',
|
|
610
|
+
style: {
|
|
611
|
+
width: '100%'
|
|
612
|
+
}
|
|
613
|
+
}), _this.kendoForm.errors[_this.ks.fields.description] && // @ts-ignore function children
|
|
614
|
+
h(Field, {
|
|
615
|
+
name: _this.ks.fields.description,
|
|
616
|
+
attrs: _this.v3 ? undefined : {
|
|
617
|
+
name: _this.ks.fields.description,
|
|
618
|
+
component: DescriptionError
|
|
619
|
+
},
|
|
620
|
+
component: DescriptionError
|
|
621
|
+
}, _this.v3 ? function () {
|
|
622
|
+
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
623
|
+
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
624
|
+
return h("div", {
|
|
625
|
+
key: resource.field
|
|
626
|
+
}, [h("div", {
|
|
627
|
+
"class": "k-form-field"
|
|
628
|
+
}, [h(Field, {
|
|
629
|
+
name: resource.field,
|
|
630
|
+
attrs: this.v3 ? undefined : {
|
|
631
|
+
name: resource.field,
|
|
632
|
+
component: ResourceLabel
|
|
633
|
+
},
|
|
634
|
+
component: ResourceLabel
|
|
635
|
+
}), // @ts-ignore function children
|
|
636
|
+
h(Label, this.v3 ? function () {
|
|
637
|
+
return [resource.name];
|
|
638
|
+
} : [resource.name]), h(Field, {
|
|
639
|
+
name: resource.field,
|
|
640
|
+
attrs: this.v3 ? undefined : {
|
|
641
|
+
name: resource.field,
|
|
642
|
+
component: ResourceEditor,
|
|
643
|
+
resource: resource,
|
|
644
|
+
multiple: resource.multiple,
|
|
645
|
+
dataItems: resource.data,
|
|
646
|
+
textField: resource.textField,
|
|
647
|
+
valueField: resource.valueField,
|
|
648
|
+
colorField: resource.colorField
|
|
649
|
+
},
|
|
650
|
+
component: ResourceEditor,
|
|
651
|
+
resource: resource,
|
|
652
|
+
multiple: resource.multiple,
|
|
653
|
+
dataItems: resource.data,
|
|
654
|
+
textField: resource.textField,
|
|
655
|
+
valueField: resource.valueField,
|
|
656
|
+
colorField: resource.colorField
|
|
657
|
+
})])]);
|
|
658
|
+
}, _this), defaultSlots];
|
|
659
|
+
} : [h("div", {
|
|
660
|
+
"class": "k-form-field"
|
|
661
|
+
}, [h(Field, {
|
|
297
662
|
name: title,
|
|
663
|
+
attrs: _this.v3 ? undefined : {
|
|
664
|
+
name: title,
|
|
665
|
+
component: TitleLabel,
|
|
666
|
+
editorId: 'k-scheduler-editor-title'
|
|
667
|
+
},
|
|
298
668
|
component: TitleLabel,
|
|
299
669
|
editorId: 'k-scheduler-editor-title'
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
} : [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])]), h("div", {
|
|
306
|
-
"class": "k-form-field-wrap"
|
|
307
|
-
}, [h(Field, {
|
|
308
|
-
id: "k-scheduler-editor-title",
|
|
309
|
-
attrs: this.v3 ? undefined : {
|
|
670
|
+
}, _this.v3 ? function () {
|
|
671
|
+
return [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])];
|
|
672
|
+
} : [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])]), h("div", {
|
|
673
|
+
"class": "k-form-field-wrap"
|
|
674
|
+
}, [h(Field, {
|
|
310
675
|
id: "k-scheduler-editor-title",
|
|
676
|
+
attrs: _this.v3 ? undefined : {
|
|
677
|
+
id: "k-scheduler-editor-title",
|
|
678
|
+
name: title,
|
|
679
|
+
field: title,
|
|
680
|
+
component: TitleEditor
|
|
681
|
+
},
|
|
311
682
|
name: title,
|
|
312
683
|
field: title,
|
|
313
684
|
component: TitleEditor
|
|
314
|
-
},
|
|
315
|
-
name: title,
|
|
316
|
-
field: title,
|
|
317
|
-
component: TitleEditor
|
|
318
|
-
}), this.kendoForm.errors[title] && // @ts-ignore function children
|
|
319
|
-
h(Field, {
|
|
320
|
-
name: title,
|
|
321
|
-
attrs: this.v3 ? undefined : {
|
|
685
|
+
}), _this.kendoForm.errors[title] && h(Field, {
|
|
322
686
|
name: title,
|
|
687
|
+
attrs: _this.v3 ? undefined : {
|
|
688
|
+
name: title,
|
|
689
|
+
component: TitleError
|
|
690
|
+
},
|
|
323
691
|
component: TitleError
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
692
|
+
}, _this.v3 ? function () {
|
|
693
|
+
return [_this.kendoForm.errors[title]];
|
|
694
|
+
} : [_this.kendoForm.errors[title]])])]), h("div", {
|
|
695
|
+
"class": "k-form-field"
|
|
696
|
+
}, [h(Field, {
|
|
697
|
+
name: _this.ks.fields.start,
|
|
698
|
+
attrs: _this.v3 ? undefined : {
|
|
699
|
+
name: _this.ks.fields.start,
|
|
700
|
+
component: StartLabel,
|
|
701
|
+
editorId: "k-scheduler-editor-start"
|
|
702
|
+
},
|
|
335
703
|
component: StartLabel,
|
|
336
704
|
editorId: "k-scheduler-editor-start"
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
display: 'flex'
|
|
346
|
-
}
|
|
347
|
-
}, [h("div", [h(Field, {
|
|
348
|
-
id: "k-scheduler-editor-start",
|
|
349
|
-
attrs: this.v3 ? undefined : {
|
|
705
|
+
}, _this.v3 ? function () {
|
|
706
|
+
return [localization.toLanguageString(editorEventStart, messages[editorEventStart])];
|
|
707
|
+
} : [localization.toLanguageString(editorEventStart, messages[editorEventStart])]), h("div", {
|
|
708
|
+
"class": "k-form-field-wrap",
|
|
709
|
+
style: {
|
|
710
|
+
display: 'flex'
|
|
711
|
+
}
|
|
712
|
+
}, [h("div", [h(Field, {
|
|
350
713
|
id: "k-scheduler-editor-start",
|
|
351
|
-
|
|
714
|
+
attrs: _this.v3 ? undefined : {
|
|
715
|
+
id: "k-scheduler-editor-start",
|
|
716
|
+
name: _this.ks.fields.start,
|
|
717
|
+
width: "auto",
|
|
718
|
+
component: StartEditor,
|
|
719
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
720
|
+
timezone: _this.ks.timezone
|
|
721
|
+
},
|
|
722
|
+
name: _this.ks.fields.start,
|
|
352
723
|
width: "auto",
|
|
353
724
|
component: StartEditor,
|
|
354
|
-
|
|
355
|
-
timezone:
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}), this.kendoForm.errors[this.ks.fields.start] && // @ts-ignore function children
|
|
363
|
-
h(Field, {
|
|
364
|
-
name: this.ks.fields.start,
|
|
365
|
-
attrs: this.v3 ? undefined : {
|
|
366
|
-
name: this.ks.fields.start,
|
|
725
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
726
|
+
timezone: _this.ks.timezone
|
|
727
|
+
}), _this.kendoForm.errors[_this.ks.fields.start] && h(Field, {
|
|
728
|
+
name: _this.ks.fields.start,
|
|
729
|
+
attrs: _this.v3 ? undefined : {
|
|
730
|
+
name: _this.ks.fields.start,
|
|
731
|
+
component: StartError
|
|
732
|
+
},
|
|
367
733
|
component: StartError
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
return [_this.kendoForm.errors[_this.ks.fields.start]];
|
|
372
|
-
} : [_this.kendoForm.errors[_this.ks.fields.start]])]), "\xA0", h("div", [h(StartTimezoneCheckedEditor, {
|
|
373
|
-
id: 'k-scheduler-editor-set-start-timezone',
|
|
374
|
-
attrs: this.v3 ? undefined : {
|
|
734
|
+
}, _this.v3 ? function () {
|
|
735
|
+
return [_this.kendoForm.errors[_this.ks.fields.start]];
|
|
736
|
+
} : [_this.kendoForm.errors[_this.ks.fields.start]])]), "\xA0", timezones.length > 0 && h("div", [h(StartTimezoneCheckedEditor, {
|
|
375
737
|
id: 'k-scheduler-editor-set-start-timezone',
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
738
|
+
attrs: _this.v3 ? undefined : {
|
|
739
|
+
id: 'k-scheduler-editor-set-start-timezone',
|
|
740
|
+
value: _this.startZoneChecked
|
|
741
|
+
},
|
|
742
|
+
onChange: _this.handleStartZoneCheckboxChange,
|
|
743
|
+
on: _this.v3 ? undefined : {
|
|
744
|
+
"change": _this.handleStartZoneCheckboxChange
|
|
745
|
+
},
|
|
746
|
+
value: _this.startZoneChecked
|
|
747
|
+
}), "\xA0", h(StartTimezoneCheckedLabel, {
|
|
748
|
+
"class": 'k-checkbox-label',
|
|
749
|
+
editorId: 'k-scheduler-editor-set-start-timezone',
|
|
750
|
+
attrs: _this.v3 ? undefined : {
|
|
751
|
+
editorId: 'k-scheduler-editor-set-start-timezone'
|
|
752
|
+
},
|
|
753
|
+
style: {
|
|
754
|
+
display: 'inline-flex'
|
|
755
|
+
}
|
|
756
|
+
}, _this.v3 ? function () {
|
|
757
|
+
return [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])];
|
|
758
|
+
} : [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])])])])]), _this.startZoneChecked && h("div", {
|
|
759
|
+
"class": "k-form-field"
|
|
760
|
+
}, [h(Field, {
|
|
761
|
+
name: _this.ks.fields.start,
|
|
762
|
+
attrs: _this.v3 ? undefined : {
|
|
763
|
+
name: _this.ks.fields.start,
|
|
764
|
+
component: StartTimezoneLabel
|
|
765
|
+
},
|
|
402
766
|
component: StartTimezoneLabel
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
"class": "k-form-field-wrap"
|
|
409
|
-
}, [h(Field, {
|
|
410
|
-
component: StartTimezoneEditor,
|
|
411
|
-
attrs: this.v3 ? undefined : {
|
|
767
|
+
}, _this.v3 ? function () {
|
|
768
|
+
return [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])];
|
|
769
|
+
} : [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])]), h("div", {
|
|
770
|
+
"class": "k-form-field-wrap"
|
|
771
|
+
}, [h(Field, {
|
|
412
772
|
component: StartTimezoneEditor,
|
|
773
|
+
attrs: _this.v3 ? undefined : {
|
|
774
|
+
component: StartTimezoneEditor,
|
|
775
|
+
value: startTimezone,
|
|
776
|
+
validator: _this.startTimezoneValidator,
|
|
777
|
+
dataItems: timezones,
|
|
778
|
+
name: _this.ks.fields.startTimezone
|
|
779
|
+
},
|
|
413
780
|
value: startTimezone,
|
|
414
|
-
validator:
|
|
781
|
+
validator: _this.startTimezoneValidator,
|
|
415
782
|
dataItems: timezones,
|
|
416
|
-
name:
|
|
417
|
-
},
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
h(Field, {
|
|
424
|
-
name: this.ks.fields.startTimezone,
|
|
425
|
-
attrs: this.v3 ? undefined : {
|
|
426
|
-
name: this.ks.fields.startTimezone,
|
|
783
|
+
name: _this.ks.fields.startTimezone
|
|
784
|
+
}), _this.kendoForm.errors[_this.ks.fields.startTimezone] && h(Field, {
|
|
785
|
+
name: _this.ks.fields.startTimezone,
|
|
786
|
+
attrs: _this.v3 ? undefined : {
|
|
787
|
+
name: _this.ks.fields.startTimezone,
|
|
788
|
+
component: StartTimezoneError
|
|
789
|
+
},
|
|
427
790
|
component: StartTimezoneError
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
791
|
+
}, _this.v3 ? function () {
|
|
792
|
+
return [_this.kendoForm.errors[_this.ks.fields.startTimezone]];
|
|
793
|
+
} : [_this.kendoForm.errors[_this.ks.fields.startTimezone]])])]), h("div", {
|
|
794
|
+
"class": "k-form-field"
|
|
795
|
+
}, [h(Field, {
|
|
796
|
+
name: _this.ks.fields.end,
|
|
797
|
+
attrs: _this.v3 ? undefined : {
|
|
798
|
+
name: _this.ks.fields.end,
|
|
799
|
+
component: EndLabel,
|
|
800
|
+
editorId: "k-scheduler-editor-end"
|
|
801
|
+
},
|
|
439
802
|
component: EndLabel,
|
|
440
803
|
editorId: "k-scheduler-editor-end"
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
display: 'flex'
|
|
450
|
-
}
|
|
451
|
-
}, [h("div", [h(Field, {
|
|
452
|
-
id: "k-scheduler-editor-end",
|
|
453
|
-
attrs: this.v3 ? undefined : {
|
|
804
|
+
}, _this.v3 ? function () {
|
|
805
|
+
return [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])];
|
|
806
|
+
} : [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])]), h("div", {
|
|
807
|
+
"class": "k-form-field-wrap",
|
|
808
|
+
style: {
|
|
809
|
+
display: 'flex'
|
|
810
|
+
}
|
|
811
|
+
}, [h("div", [h(Field, {
|
|
454
812
|
id: "k-scheduler-editor-end",
|
|
455
|
-
|
|
813
|
+
attrs: _this.v3 ? undefined : {
|
|
814
|
+
id: "k-scheduler-editor-end",
|
|
815
|
+
name: _this.ks.fields.end,
|
|
816
|
+
width: "auto",
|
|
817
|
+
component: EndEditor,
|
|
818
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
819
|
+
timezone: _this.ks.timezone
|
|
820
|
+
},
|
|
821
|
+
name: _this.ks.fields.end,
|
|
456
822
|
width: "auto",
|
|
457
823
|
component: EndEditor,
|
|
458
|
-
|
|
459
|
-
timezone:
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}), this.kendoForm.errors[this.ks.fields.end] && // @ts-ignore function children
|
|
467
|
-
h(Field, {
|
|
468
|
-
name: this.ks.fields.end,
|
|
469
|
-
attrs: this.v3 ? undefined : {
|
|
470
|
-
name: this.ks.fields.end,
|
|
824
|
+
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
825
|
+
timezone: _this.ks.timezone
|
|
826
|
+
}), _this.kendoForm.errors[_this.ks.fields.end] && h(Field, {
|
|
827
|
+
name: _this.ks.fields.end,
|
|
828
|
+
attrs: _this.v3 ? undefined : {
|
|
829
|
+
name: _this.ks.fields.end,
|
|
830
|
+
component: EndError
|
|
831
|
+
},
|
|
471
832
|
component: EndError
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
return [_this.kendoForm.errors[_this.ks.fields.end]];
|
|
476
|
-
} : [_this.kendoForm.errors[_this.ks.fields.end]])]), "\xA0", h("div", [this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
|
|
477
|
-
id: 'k-scheduler-editor-set-end-timezone',
|
|
478
|
-
attrs: this.v3 ? undefined : {
|
|
833
|
+
}, _this.v3 ? function () {
|
|
834
|
+
return [_this.kendoForm.errors[_this.ks.fields.end]];
|
|
835
|
+
} : [_this.kendoForm.errors[_this.ks.fields.end]])]), "\xA0", h("div", [_this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
|
|
479
836
|
id: 'k-scheduler-editor-set-end-timezone',
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
837
|
+
attrs: _this.v3 ? undefined : {
|
|
838
|
+
id: 'k-scheduler-editor-set-end-timezone',
|
|
839
|
+
value: _this.endZoneChecked
|
|
840
|
+
},
|
|
841
|
+
onChange: _this.handleEndZoneCheckboxChange,
|
|
842
|
+
on: _this.v3 ? undefined : {
|
|
843
|
+
"change": _this.handleEndZoneCheckboxChange
|
|
844
|
+
},
|
|
845
|
+
value: _this.endZoneChecked
|
|
846
|
+
}), h(EndTimezoneCheckedLabel, {
|
|
847
|
+
"class": 'k-checkbox-label',
|
|
848
|
+
editorId: 'k-scheduler-editor-set-end-timezone',
|
|
849
|
+
attrs: _this.v3 ? undefined : {
|
|
850
|
+
editorId: 'k-scheduler-editor-set-end-timezone'
|
|
851
|
+
},
|
|
852
|
+
style: {
|
|
853
|
+
display: 'inline-flex'
|
|
854
|
+
}
|
|
855
|
+
}, _this.v3 ? function () {
|
|
856
|
+
return [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])];
|
|
857
|
+
} : [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])])]])])]), _this.endZoneChecked && h("div", {
|
|
858
|
+
"class": "k-form-field"
|
|
859
|
+
}, [h(Field, {
|
|
860
|
+
name: _this.ks.fields.endTimezone,
|
|
861
|
+
attrs: _this.v3 ? undefined : {
|
|
862
|
+
name: _this.ks.fields.endTimezone,
|
|
863
|
+
component: EndTimezoneLabel
|
|
864
|
+
},
|
|
506
865
|
component: EndTimezoneLabel
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
"class": "k-form-field-wrap"
|
|
513
|
-
}, [h(Field, {
|
|
514
|
-
value: endTimezone,
|
|
515
|
-
attrs: this.v3 ? undefined : {
|
|
866
|
+
}, _this.v3 ? function () {
|
|
867
|
+
return [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])];
|
|
868
|
+
} : [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])]), h("div", {
|
|
869
|
+
"class": "k-form-field-wrap"
|
|
870
|
+
}, [h(Field, {
|
|
516
871
|
value: endTimezone,
|
|
872
|
+
attrs: _this.v3 ? undefined : {
|
|
873
|
+
value: endTimezone,
|
|
874
|
+
dataItems: timezones,
|
|
875
|
+
validator: _this.endTimezoneValidator,
|
|
876
|
+
component: EndTimezoneEditor,
|
|
877
|
+
name: _this.ks.fields.endTimezone
|
|
878
|
+
},
|
|
517
879
|
dataItems: timezones,
|
|
518
|
-
validator:
|
|
880
|
+
validator: _this.endTimezoneValidator,
|
|
519
881
|
component: EndTimezoneEditor,
|
|
520
|
-
name:
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
h(Field, {
|
|
528
|
-
name: this.ks.fields.endTimezone,
|
|
529
|
-
attrs: this.v3 ? undefined : {
|
|
530
|
-
name: this.ks.fields.endTimezone,
|
|
882
|
+
name: _this.ks.fields.endTimezone
|
|
883
|
+
}), _this.kendoForm.errors[_this.ks.fields.endTimezone] && h(Field, {
|
|
884
|
+
name: _this.ks.fields.endTimezone,
|
|
885
|
+
attrs: _this.v3 ? undefined : {
|
|
886
|
+
name: _this.ks.fields.endTimezone,
|
|
887
|
+
component: EndTimezoneError
|
|
888
|
+
},
|
|
531
889
|
component: EndTimezoneError
|
|
532
|
-
},
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
component:
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
"class": "k-form-field-wrap"
|
|
547
|
-
}, [h(Field, {
|
|
548
|
-
id: 'k-is-allday-checkbox',
|
|
549
|
-
attrs: this.v3 ? undefined : {
|
|
890
|
+
}, _this.v3 ? function () {
|
|
891
|
+
return [_this.kendoForm.errors[_this.ks.fields.endTimezone]];
|
|
892
|
+
} : [_this.kendoForm.errors[_this.ks.fields.endTimezone]])])]), h("div", {
|
|
893
|
+
"class": "k-form-field"
|
|
894
|
+
}, [h(Field, {
|
|
895
|
+
name: _this.ks.fields.isAllDay,
|
|
896
|
+
attrs: _this.v3 ? undefined : {
|
|
897
|
+
name: _this.ks.fields.isAllDay,
|
|
898
|
+
component: KLabel
|
|
899
|
+
},
|
|
900
|
+
component: KLabel
|
|
901
|
+
}), h("div", {
|
|
902
|
+
"class": "k-form-field-wrap"
|
|
903
|
+
}, [h(Field, {
|
|
550
904
|
id: 'k-is-allday-checkbox',
|
|
551
|
-
|
|
905
|
+
attrs: _this.v3 ? undefined : {
|
|
906
|
+
id: 'k-is-allday-checkbox',
|
|
907
|
+
name: _this.ks.fields.isAllDay,
|
|
908
|
+
component: AllDayEditor
|
|
909
|
+
},
|
|
910
|
+
name: _this.ks.fields.isAllDay,
|
|
552
911
|
component: AllDayEditor
|
|
553
|
-
},
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
field:
|
|
912
|
+
}), "\xA0", h(Field, {
|
|
913
|
+
name: _this.ks.fields.isAllDay,
|
|
914
|
+
attrs: _this.v3 ? undefined : {
|
|
915
|
+
name: _this.ks.fields.isAllDay,
|
|
916
|
+
field: _this.ks.fields.isAllDay,
|
|
917
|
+
editorId: 'k-is-allday-checkbox',
|
|
918
|
+
component: AllDayLabel
|
|
919
|
+
},
|
|
920
|
+
field: _this.ks.fields.isAllDay,
|
|
562
921
|
editorId: 'k-is-allday-checkbox',
|
|
922
|
+
"class": 'k-checkbox-label',
|
|
563
923
|
component: AllDayLabel
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
"class": 'k-checkbox-label',
|
|
568
|
-
component: AllDayLabel
|
|
569
|
-
}, this.v3 ? function () {
|
|
570
|
-
return [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])];
|
|
571
|
-
} : [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
|
|
572
|
-
component: RecurrenceEditor,
|
|
573
|
-
attrs: this.v3 ? undefined : {
|
|
924
|
+
}, _this.v3 ? function () {
|
|
925
|
+
return [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])];
|
|
926
|
+
} : [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
|
|
574
927
|
component: RecurrenceEditor,
|
|
575
|
-
|
|
576
|
-
|
|
928
|
+
attrs: _this.v3 ? undefined : {
|
|
929
|
+
component: RecurrenceEditor,
|
|
930
|
+
changeOnInput: false,
|
|
931
|
+
field: _this.ks.fields.recurrenceRule,
|
|
932
|
+
name: _this.ks.fields.recurrenceRule,
|
|
933
|
+
start: start
|
|
934
|
+
},
|
|
935
|
+
changeOnInput: false,
|
|
936
|
+
field: _this.ks.fields.recurrenceRule,
|
|
937
|
+
name: _this.ks.fields.recurrenceRule,
|
|
577
938
|
start: start
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
name: this.ks.fields.description,
|
|
587
|
-
attrs: this.v3 ? undefined : {
|
|
588
|
-
name: this.ks.fields.description,
|
|
939
|
+
}), h("div", {
|
|
940
|
+
"class": "k-form-field"
|
|
941
|
+
}, [h(Field, {
|
|
942
|
+
name: _this.ks.fields.description,
|
|
943
|
+
attrs: _this.v3 ? undefined : {
|
|
944
|
+
name: _this.ks.fields.description,
|
|
945
|
+
component: DescriptionLabel
|
|
946
|
+
},
|
|
589
947
|
component: DescriptionLabel
|
|
590
|
-
},
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
"class": "k-form-field-wrap"
|
|
596
|
-
}, [h(Field, {
|
|
597
|
-
component: DescriptionEditor,
|
|
598
|
-
attrs: this.v3 ? undefined : {
|
|
948
|
+
}, _this.v3 ? function () {
|
|
949
|
+
return [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])];
|
|
950
|
+
} : [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])]), h("div", {
|
|
951
|
+
"class": "k-form-field-wrap"
|
|
952
|
+
}, [h(Field, {
|
|
599
953
|
component: DescriptionEditor,
|
|
600
|
-
|
|
954
|
+
attrs: _this.v3 ? undefined : {
|
|
955
|
+
component: DescriptionEditor,
|
|
956
|
+
name: _this.ks.fields.description,
|
|
957
|
+
rows: 1,
|
|
958
|
+
id: 'k-event-description'
|
|
959
|
+
},
|
|
960
|
+
name: _this.ks.fields.description,
|
|
601
961
|
rows: 1,
|
|
602
|
-
id: 'k-event-description'
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
name: this.ks.fields.description,
|
|
613
|
-
attrs: this.v3 ? undefined : {
|
|
614
|
-
name: this.ks.fields.description,
|
|
962
|
+
id: 'k-event-description',
|
|
963
|
+
style: {
|
|
964
|
+
width: '100%'
|
|
965
|
+
}
|
|
966
|
+
}), _this.kendoForm.errors[_this.ks.fields.description] && h(Field, {
|
|
967
|
+
name: _this.ks.fields.description,
|
|
968
|
+
attrs: _this.v3 ? undefined : {
|
|
969
|
+
name: _this.ks.fields.description,
|
|
970
|
+
component: DescriptionError
|
|
971
|
+
},
|
|
615
972
|
component: DescriptionError
|
|
616
|
-
},
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
"class": "k-form-field"
|
|
625
|
-
}, [h(Field, {
|
|
626
|
-
name: resource.field,
|
|
627
|
-
attrs: this.v3 ? undefined : {
|
|
973
|
+
}, _this.v3 ? function () {
|
|
974
|
+
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
975
|
+
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
976
|
+
return h("div", {
|
|
977
|
+
key: resource.field
|
|
978
|
+
}, [h("div", {
|
|
979
|
+
"class": "k-form-field"
|
|
980
|
+
}, [h(Field, {
|
|
628
981
|
name: resource.field,
|
|
982
|
+
attrs: this.v3 ? undefined : {
|
|
983
|
+
name: resource.field,
|
|
984
|
+
component: ResourceLabel
|
|
985
|
+
},
|
|
629
986
|
component: ResourceLabel
|
|
630
|
-
},
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
h(Label, this.v3 ? function () {
|
|
634
|
-
return [resource.name];
|
|
635
|
-
} : [resource.name]), h(Field, {
|
|
636
|
-
name: resource.field,
|
|
637
|
-
attrs: this.v3 ? undefined : {
|
|
987
|
+
}), h(Label, this.v3 ? function () {
|
|
988
|
+
return [resource.name];
|
|
989
|
+
} : [resource.name]), h(Field, {
|
|
638
990
|
name: resource.field,
|
|
991
|
+
attrs: this.v3 ? undefined : {
|
|
992
|
+
name: resource.field,
|
|
993
|
+
component: ResourceEditor,
|
|
994
|
+
resource: resource,
|
|
995
|
+
multiple: resource.multiple,
|
|
996
|
+
dataItems: resource.data,
|
|
997
|
+
textField: resource.textField,
|
|
998
|
+
valueField: resource.valueField,
|
|
999
|
+
colorField: resource.colorField
|
|
1000
|
+
},
|
|
639
1001
|
component: ResourceEditor,
|
|
640
1002
|
resource: resource,
|
|
641
1003
|
multiple: resource.multiple,
|
|
642
|
-
|
|
1004
|
+
dataItems: resource.data,
|
|
643
1005
|
textField: resource.textField,
|
|
644
1006
|
valueField: resource.valueField,
|
|
645
1007
|
colorField: resource.colorField
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
multiple: resource.multiple,
|
|
650
|
-
data: resource.data,
|
|
651
|
-
textField: resource.textField,
|
|
652
|
-
valueField: resource.valueField,
|
|
653
|
-
colorField: resource.colorField
|
|
654
|
-
})])]);
|
|
655
|
-
})]);
|
|
1008
|
+
})])]);
|
|
1009
|
+
}, _this), defaultSlots])
|
|
1010
|
+
);
|
|
656
1011
|
},
|
|
657
1012
|
methods: {
|
|
658
1013
|
handleStartZoneCheckboxChange: function handleStartZoneCheckboxChange(e) {
|