@progress/kendo-vue-scheduler 3.1.2 → 3.1.3-dev.202203311441

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.
Files changed (78) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/Scheduler.js +4 -1
  3. package/dist/es/components/SchedulerActionButtons.d.ts +42 -0
  4. package/dist/es/components/SchedulerActionButtons.js +89 -0
  5. package/dist/es/components/SchedulerForm.js +62 -49
  6. package/dist/es/components/header/view-selector/ViewSelectorItem.js +1 -1
  7. package/dist/es/components/header/view-selector/ViewSelectorList.js +3 -3
  8. package/dist/es/editors/SchedulerFormEditor.js +331 -130
  9. package/dist/es/editors/ZonedDateTime.d.ts +2 -4
  10. package/dist/es/editors/ZonedDateTime.js +32 -15
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/recurrence/RecurrenceEditor.d.ts +3 -0
  13. package/dist/es/recurrence/RecurrenceEditor.js +307 -457
  14. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +38 -12
  15. package/dist/es/slots/SchedulerEditSlot.js +10 -7
  16. package/dist/es/slots/SchedulerSlot.js +1 -0
  17. package/dist/es/slots/SchedulerViewSlot.js +6 -2
  18. package/dist/es/views/agenda/AgendaView.d.ts +1 -1
  19. package/dist/es/views/agenda/AgendaView.js +39 -9
  20. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  21. package/dist/es/views/agenda/AgendaViewBody.js +2 -1
  22. package/dist/es/views/common/VerticalResourceIterator.js +12 -6
  23. package/dist/es/views/day/DayView.js +10 -1
  24. package/dist/es/views/day/DayViewMiddleRow.d.ts +12 -0
  25. package/dist/es/views/day/DayViewMiddleRow.js +1 -0
  26. package/dist/es/views/day/DayViewVerticalRow.d.ts +1 -0
  27. package/dist/es/views/day/DayViewVerticalRow.js +5 -2
  28. package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +1 -0
  29. package/dist/es/views/day/DayViewVerticalSlotsRow.js +1 -0
  30. package/dist/es/views/day/MultiDayView.js +48 -24
  31. package/dist/es/views/month/MonthView.js +10 -4
  32. package/dist/es/views/month/MonthViewBody.d.ts +1 -0
  33. package/dist/es/views/month/MonthViewBody.js +1 -0
  34. package/dist/es/views/time/MultiDayTimelineView.js +12 -4
  35. package/dist/es/views/time/TimelineView.js +15 -3
  36. package/dist/es/views/time/TimelineViewBody.d.ts +1 -0
  37. package/dist/es/views/time/TimelineViewBody.js +1 -0
  38. package/dist/es/views/week/WeekView.js +10 -1
  39. package/dist/es/views/week/WorkWeekView.js +10 -1
  40. package/dist/npm/Scheduler.js +4 -1
  41. package/dist/npm/components/SchedulerActionButtons.d.ts +42 -0
  42. package/dist/npm/components/SchedulerActionButtons.js +100 -0
  43. package/dist/npm/components/SchedulerForm.js +61 -48
  44. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +1 -1
  45. package/dist/npm/components/header/view-selector/ViewSelectorList.js +3 -3
  46. package/dist/npm/editors/SchedulerFormEditor.js +336 -129
  47. package/dist/npm/editors/ZonedDateTime.d.ts +2 -4
  48. package/dist/npm/editors/ZonedDateTime.js +32 -15
  49. package/dist/npm/package-metadata.js +1 -1
  50. package/dist/npm/recurrence/RecurrenceEditor.d.ts +3 -0
  51. package/dist/npm/recurrence/RecurrenceEditor.js +307 -457
  52. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +38 -12
  53. package/dist/npm/slots/SchedulerEditSlot.js +10 -7
  54. package/dist/npm/slots/SchedulerSlot.js +1 -0
  55. package/dist/npm/slots/SchedulerViewSlot.js +6 -2
  56. package/dist/npm/views/agenda/AgendaView.d.ts +1 -1
  57. package/dist/npm/views/agenda/AgendaView.js +39 -9
  58. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  59. package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
  60. package/dist/npm/views/common/VerticalResourceIterator.js +12 -6
  61. package/dist/npm/views/day/DayView.js +10 -1
  62. package/dist/npm/views/day/DayViewMiddleRow.d.ts +12 -0
  63. package/dist/npm/views/day/DayViewMiddleRow.js +1 -0
  64. package/dist/npm/views/day/DayViewVerticalRow.d.ts +1 -0
  65. package/dist/npm/views/day/DayViewVerticalRow.js +5 -2
  66. package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +1 -0
  67. package/dist/npm/views/day/DayViewVerticalSlotsRow.js +1 -0
  68. package/dist/npm/views/day/MultiDayView.js +48 -24
  69. package/dist/npm/views/month/MonthView.js +10 -4
  70. package/dist/npm/views/month/MonthViewBody.d.ts +1 -0
  71. package/dist/npm/views/month/MonthViewBody.js +1 -0
  72. package/dist/npm/views/time/MultiDayTimelineView.js +12 -4
  73. package/dist/npm/views/time/TimelineView.js +15 -3
  74. package/dist/npm/views/time/TimelineViewBody.d.ts +1 -0
  75. package/dist/npm/views/time/TimelineViewBody.js +1 -0
  76. package/dist/npm/views/week/WeekView.js +10 -1
  77. package/dist/npm/views/week/WorkWeekView.js +10 -1
  78. package/package.json +12 -12
@@ -17,10 +17,17 @@ 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 { Label } from '@progress/kendo-vue-labels';
20
+ import { Error, Label } from '@progress/kendo-vue-labels';
21
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
21
22
  import { Field } from '@progress/kendo-vue-form';
23
+ import { Input, Checkbox, TextArea } from '@progress/kendo-vue-inputs';
22
24
  import { DatePicker, DateTimePicker } from '@progress/kendo-vue-dateinputs';
23
- import { messages, editorEventTitle, editorEventStart, editorEventEnd, editorEventDescription, editorEventAllDay, editorEventTimeZone, editorEventSeparateTimeZones, editorEventStartTimeZone, editorEventEndTimeZone, editorValidationRequired } from '../messages'; // tslint:enable:max-line-length
25
+ import { messages, editorEventTitle, editorEventStart, editorEventEnd, editorEventDescription, editorEventAllDay, editorEventTimeZone, editorEventSeparateTimeZones, editorEventStartTimeZone, editorEventEndTimeZone, editorValidationRequired } from '../messages'; // import { useSchedulerPropsContext, useSchedulerFieldsContext } from '../context';
26
+
27
+ import { FilterableComboBox } from './FilterableComboBox';
28
+ import { RecurrenceEditor as KendoRecurrenceEditor } from '../recurrence/RecurrenceEditor';
29
+ import { ResourceEditor as KendoResourceEditor } from './ResourceEditor';
30
+ import { ZonedDateTime } from './ZonedDateTime'; // tslint:enable:max-line-length
24
31
 
25
32
  var SchedulerFormEditorVue2 = {
26
33
  name: 'KendoSchedulerFormEditor',
@@ -28,34 +35,174 @@ var SchedulerFormEditorVue2 = {
28
35
  as: [String, Function, Object],
29
36
  id: String,
30
37
  tabIndex: Number,
31
- titleLabel: [String, Function, Object],
32
- titleError: [String, Function, Object],
33
- titleEditor: [String, Function, Object],
34
- startLabel: [String, Function, Object],
35
- startError: [String, Function, Object],
36
- startEditor: [String, Function, Object],
37
- startTimezoneLabel: [String, Function, Object],
38
- startTimezoneError: [String, Function, Object],
39
- startTimezoneEditor: [String, Function, Object],
40
- startTimezoneCheckedLabel: [String, Function, Object],
41
- startTimezoneCheckedEditor: [String, Function, Object],
42
- endLabel: [String, Function, Object],
43
- endError: [String, Function, Object],
44
- endEditor: [String, Function, Object],
45
- endTimezoneLabel: [String, Function, Object],
46
- endTimezoneError: [String, Function, Object],
47
- endTimezoneEditor: [String, Function, Object],
48
- endTimezoneCheckedLabel: [String, Function, Object],
49
- endTimezoneCheckedEditor: [String, Function, Object],
50
- allDayLabel: [String, Function, Object],
51
- allDayEditor: [String, Function, Object],
52
- recurrenceEditor: [String, Function, Object],
53
- descriptionLabel: [String, Function, Object],
54
- descriptionError: [String, Function, Object],
55
- descriptionEditor: [String, Function, Object],
56
- resourceLabel: [String, Function, Object],
57
- resourcesError: [String, Function, Object],
58
- resourceEditor: [String, Function, Object],
38
+ titleLabel: {
39
+ type: [String, Function, Object],
40
+ default: function _default() {
41
+ return Label;
42
+ }
43
+ },
44
+ titleError: {
45
+ type: [String, Function, Object],
46
+ default: function _default() {
47
+ return Error;
48
+ }
49
+ },
50
+ titleEditor: {
51
+ type: [String, Function, Object],
52
+ default: function _default() {
53
+ return Input;
54
+ }
55
+ },
56
+ startLabel: {
57
+ type: [String, Function, Object],
58
+ default: function _default() {
59
+ return Label;
60
+ }
61
+ },
62
+ startError: {
63
+ type: [String, Function, Object],
64
+ default: function _default() {
65
+ return Error;
66
+ }
67
+ },
68
+ startEditor: {
69
+ type: [String, Function, Object],
70
+ default: function _default() {
71
+ return ZonedDateTime;
72
+ }
73
+ },
74
+ startTimezoneLabel: {
75
+ type: [String, Function, Object],
76
+ default: function _default() {
77
+ return Label;
78
+ }
79
+ },
80
+ startTimezoneError: {
81
+ type: [String, Function, Object],
82
+ default: function _default() {
83
+ return Error;
84
+ }
85
+ },
86
+ startTimezoneEditor: {
87
+ type: [String, Function, Object],
88
+ default: function _default() {
89
+ return FilterableComboBox;
90
+ }
91
+ },
92
+ startTimezoneCheckedLabel: {
93
+ type: [String, Function, Object],
94
+ default: function _default() {
95
+ return Label;
96
+ }
97
+ },
98
+ startTimezoneCheckedEditor: {
99
+ type: [String, Function, Object],
100
+ default: function _default() {
101
+ return Checkbox;
102
+ }
103
+ },
104
+ endLabel: {
105
+ type: [String, Function, Object],
106
+ default: function _default() {
107
+ return Label;
108
+ }
109
+ },
110
+ endError: {
111
+ type: [String, Function, Object],
112
+ default: function _default() {
113
+ return Error;
114
+ }
115
+ },
116
+ endEditor: {
117
+ type: [String, Function, Object],
118
+ default: function _default() {
119
+ return ZonedDateTime;
120
+ }
121
+ },
122
+ endTimezoneLabel: {
123
+ type: [String, Function, Object],
124
+ default: function _default() {
125
+ return Label;
126
+ }
127
+ },
128
+ endTimezoneError: {
129
+ type: [String, Function, Object],
130
+ default: function _default() {
131
+ return Error;
132
+ }
133
+ },
134
+ endTimezoneEditor: {
135
+ type: [String, Function, Object],
136
+ default: function _default() {
137
+ return FilterableComboBox;
138
+ }
139
+ },
140
+ endTimezoneCheckedLabel: {
141
+ type: [String, Function, Object],
142
+ default: function _default() {
143
+ return Label;
144
+ }
145
+ },
146
+ endTimezoneCheckedEditor: {
147
+ type: [String, Function, Object],
148
+ default: function _default() {
149
+ return Checkbox;
150
+ }
151
+ },
152
+ allDayLabel: {
153
+ type: [String, Function, Object],
154
+ default: function _default() {
155
+ return Label;
156
+ }
157
+ },
158
+ allDayEditor: {
159
+ type: [String, Function, Object],
160
+ default: function _default() {
161
+ return Checkbox;
162
+ }
163
+ },
164
+ recurrenceEditor: {
165
+ type: [String, Function, Object],
166
+ default: function _default() {
167
+ return KendoRecurrenceEditor;
168
+ }
169
+ },
170
+ descriptionLabel: {
171
+ type: [String, Function, Object],
172
+ default: function _default() {
173
+ return Label;
174
+ }
175
+ },
176
+ descriptionError: {
177
+ type: [String, Function, Object],
178
+ default: function _default() {
179
+ return Error;
180
+ }
181
+ },
182
+ descriptionEditor: {
183
+ type: [String, Function, Object],
184
+ default: function _default() {
185
+ return TextArea;
186
+ }
187
+ },
188
+ resourceLabel: {
189
+ type: [String, Function, Object],
190
+ default: function _default() {
191
+ return Label;
192
+ }
193
+ },
194
+ resourcesError: {
195
+ type: [String, Function, Object],
196
+ default: function _default() {
197
+ return Label;
198
+ }
199
+ },
200
+ resourceEditor: {
201
+ type: [String, Function, Object],
202
+ default: function _default() {
203
+ return KendoResourceEditor;
204
+ }
205
+ },
59
206
  errors: Object,
60
207
  valid: Boolean,
61
208
  touched: Boolean,
@@ -72,14 +219,17 @@ var SchedulerFormEditorVue2 = {
72
219
  ks: {
73
220
  default: null
74
221
  },
222
+ kendoForm: {
223
+ default: {}
224
+ },
75
225
  kendoLocalizationService: {
76
226
  default: null
77
227
  }
78
228
  },
79
229
  data: function data() {
80
230
  return {
81
- startZoneChecked: Boolean(this.$props.valueGetter(this.fields.startTimezone)),
82
- endZoneChecked: Boolean(this.$props.valueGetter(this.fields.endTimezone))
231
+ startZoneChecked: Boolean(this.kendoForm.valueGetter(this.ks.fields.startTimezone)),
232
+ endZoneChecked: Boolean(this.kendoForm.valueGetter(this.ks.fields.endTimezone))
83
233
  };
84
234
  },
85
235
  // @ts-ignore
@@ -91,9 +241,11 @@ var SchedulerFormEditorVue2 = {
91
241
  },
92
242
  // @ts-ignore
93
243
  render: function render(createElement) {
244
+ var _this = this;
245
+
94
246
  var h = gh || createElement;
95
247
  var timezones = timezoneNames();
96
- var localization = this.provideLocalizationService(this); // const fields = useSchedulerFieldsContext();
248
+ var localization = provideLocalizationService(this); // const fields = useSchedulerFieldsContext();
97
249
  // const { resources, timezone } = useSchedulerPropsContext();
98
250
 
99
251
  var _a = this.$props,
@@ -128,56 +280,66 @@ var SchedulerFormEditorVue2 = {
128
280
  DescriptionError = _b.descriptionError,
129
281
  ResourceLabel = _b.resourceLabel,
130
282
  ResourceEditor = _b.resourceEditor;
131
- var start = this.$props.valueGetter(this.fields.start) || new Date();
132
- var startTimezone = this.$props.valueGetter(this.fields.startTimezone) || this.ks.timezone || '';
133
- var endTimezone = this.$props.valueGetter(this.fields.endTimezone) || this.ks.timezone || '';
283
+ var start = this.kendoForm.valueGetter(this.ks.fields.start) || new Date();
284
+ var startTimezone = this.kendoForm.valueGetter(this.ks.fields.startTimezone) || this.ks.timezone || '';
285
+ var endTimezone = this.kendoForm.valueGetter(this.ks.fields.endTimezone) || this.ks.timezone || '';
134
286
  this.requiredValidationMessage = localization.toLanguageString(editorValidationRequired, messages[editorValidationRequired]);
287
+ var title = this.ks.fields.title;
135
288
  return h("div", {
136
289
  // {...other}
137
290
  "class": 'k-scheduler-edit-form'
138
291
  }, [h("div", {
139
292
  "class": "k-form-field"
140
- }, [h(Field, {
141
- name: this.fields.title,
293
+ }, [// @ts-ignore function children
294
+ h(Field, {
295
+ name: title,
142
296
  attrs: this.v3 ? undefined : {
143
- name: this.fields.title,
297
+ name: title,
144
298
  component: TitleLabel,
145
299
  editorId: 'k-scheduler-editor-title'
146
300
  },
147
301
  component: TitleLabel,
148
302
  editorId: 'k-scheduler-editor-title'
149
- }, [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])]), h("div", {
303
+ }, this.v3 ? function () {
304
+ return [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])];
305
+ } : [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])]), h("div", {
150
306
  "class": "k-form-field-wrap"
151
307
  }, [h(Field, {
152
308
  id: "k-scheduler-editor-title",
153
309
  attrs: this.v3 ? undefined : {
154
310
  id: "k-scheduler-editor-title",
155
- name: this.fields.title,
156
- field: this.fields.title,
311
+ name: title,
312
+ field: title,
157
313
  component: TitleEditor
158
314
  },
159
- name: this.fields.title,
160
- field: this.fields.title,
315
+ name: title,
316
+ field: title,
161
317
  component: TitleEditor
162
- }), this.$props.errors[this.fields.title] && h(Field, {
163
- name: this.fields.title,
318
+ }), this.kendoForm.errors[title] && // @ts-ignore function children
319
+ h(Field, {
320
+ name: title,
164
321
  attrs: this.v3 ? undefined : {
165
- name: this.fields.title,
322
+ name: title,
166
323
  component: TitleError
167
324
  },
168
325
  component: TitleError
169
- }, [this.$props.errors[this.fields.title]])])]), h("div", {
326
+ }, this.v3 ? function () {
327
+ return [_this.kendoForm.errors[title]];
328
+ } : [_this.kendoForm.errors[title]])])]), h("div", {
170
329
  "class": "k-form-field"
171
- }, [h(Field, {
172
- name: this.fields.start,
330
+ }, [// @ts-ignore function children
331
+ h(Field, {
332
+ name: this.ks.fields.start,
173
333
  attrs: this.v3 ? undefined : {
174
- name: this.fields.start,
334
+ name: this.ks.fields.start,
175
335
  component: StartLabel,
176
336
  editorId: "k-scheduler-editor-start"
177
337
  },
178
338
  component: StartLabel,
179
339
  editorId: "k-scheduler-editor-start"
180
- }, [localization.toLanguageString(editorEventStart, messages[editorEventStart])]), h("div", {
340
+ }, this.v3 ? function () {
341
+ return [localization.toLanguageString(editorEventStart, messages[editorEventStart])];
342
+ } : [localization.toLanguageString(editorEventStart, messages[editorEventStart])]), h("div", {
181
343
  "class": "k-form-field-wrap",
182
344
  style: {
183
345
  display: 'flex'
@@ -186,25 +348,28 @@ var SchedulerFormEditorVue2 = {
186
348
  id: "k-scheduler-editor-start",
187
349
  attrs: this.v3 ? undefined : {
188
350
  id: "k-scheduler-editor-start",
189
- name: this.fields.start,
351
+ name: this.ks.fields.start,
190
352
  width: "auto",
191
353
  component: StartEditor,
192
- as: this.$props.valueGetter(this.fields.isAllDay) ? DatePicker : DateTimePicker,
354
+ as: this.kendoForm.valueGetter(this.ks.fields.isAllDay) ? DatePicker : DateTimePicker,
193
355
  timezone: this.ks.timezone
194
356
  },
195
- name: this.fields.start,
357
+ name: this.ks.fields.start,
196
358
  width: "auto",
197
359
  component: StartEditor,
198
- as: this.$props.valueGetter(this.fields.isAllDay) ? DatePicker : DateTimePicker,
360
+ as: this.kendoForm.valueGetter(this.ks.fields.isAllDay) ? DatePicker : DateTimePicker,
199
361
  timezone: this.ks.timezone
200
- }), this.$props.errors[this.fields.start] && h(Field, {
201
- name: this.fields.start,
362
+ }), this.kendoForm.errors[this.ks.fields.start] && // @ts-ignore function children
363
+ h(Field, {
364
+ name: this.ks.fields.start,
202
365
  attrs: this.v3 ? undefined : {
203
- name: this.fields.start,
366
+ name: this.ks.fields.start,
204
367
  component: StartError
205
368
  },
206
369
  component: StartError
207
- }, [this.$props.errors[this.fields.start]])]), "\xA0", h("div", [h(StartTimezoneCheckedEditor, {
370
+ }, this.v3 ? function () {
371
+ return [_this.kendoForm.errors[_this.ks.fields.start]];
372
+ } : [_this.kendoForm.errors[_this.ks.fields.start]])]), "\xA0", h("div", [h(StartTimezoneCheckedEditor, {
208
373
  id: 'k-scheduler-editor-set-start-timezone',
209
374
  attrs: this.v3 ? undefined : {
210
375
  id: 'k-scheduler-editor-set-start-timezone',
@@ -215,7 +380,8 @@ var SchedulerFormEditorVue2 = {
215
380
  "change": this.handleStartZoneCheckboxChange
216
381
  },
217
382
  value: this.startZoneChecked
218
- }), "\xA0", h(StartTimezoneCheckedLabel, {
383
+ }), "\xA0", // @ts-ignore function children
384
+ h(StartTimezoneCheckedLabel, {
219
385
  "class": 'k-checkbox-label',
220
386
  editorId: 'k-scheduler-editor-set-start-timezone',
221
387
  attrs: this.v3 ? undefined : {
@@ -224,16 +390,21 @@ var SchedulerFormEditorVue2 = {
224
390
  style: {
225
391
  display: 'inline-flex'
226
392
  }
227
- }, [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])])])])]), this.startZoneChecked && h("div", {
393
+ }, this.v3 ? function () {
394
+ return [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])];
395
+ } : [localization.toLanguageString(editorEventTimeZone, messages[editorEventTimeZone])])])])]), this.startZoneChecked && h("div", {
228
396
  "class": "k-form-field"
229
- }, [h(Field, {
230
- name: this.fields.start,
397
+ }, [// @ts-ignore function children
398
+ h(Field, {
399
+ name: this.ks.fields.start,
231
400
  attrs: this.v3 ? undefined : {
232
- name: this.fields.start,
401
+ name: this.ks.fields.start,
233
402
  component: StartTimezoneLabel
234
403
  },
235
404
  component: StartTimezoneLabel
236
- }, [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])]), h("div", {
405
+ }, this.v3 ? function () {
406
+ return [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])];
407
+ } : [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])]), h("div", {
237
408
  "class": "k-form-field-wrap"
238
409
  }, [h(Field, {
239
410
  component: StartTimezoneEditor,
@@ -241,32 +412,38 @@ var SchedulerFormEditorVue2 = {
241
412
  component: StartTimezoneEditor,
242
413
  value: startTimezone,
243
414
  validator: this.startTimezoneValidator,
244
- data: timezones,
245
- name: this.fields.startTimezone
415
+ dataItems: timezones,
416
+ name: this.ks.fields.startTimezone
246
417
  },
247
418
  value: startTimezone,
248
419
  validator: this.startTimezoneValidator,
249
- data: timezones,
250
- name: this.fields.startTimezone
251
- }), this.$props.errors[this.fields.startTimezone] && h(Field, {
252
- name: this.fields.startTimezone,
420
+ dataItems: timezones,
421
+ name: this.ks.fields.startTimezone
422
+ }), this.kendoForm.errors[this.ks.fields.startTimezone] && // @ts-ignore function children
423
+ h(Field, {
424
+ name: this.ks.fields.startTimezone,
253
425
  attrs: this.v3 ? undefined : {
254
- name: this.fields.startTimezone,
426
+ name: this.ks.fields.startTimezone,
255
427
  component: StartTimezoneError
256
428
  },
257
429
  component: StartTimezoneError
258
- }, [this.$props.errors[this.fields.startTimezone]])])]), h("div", {
430
+ }, this.v3 ? function () {
431
+ return [_this.kendoForm.errors[_this.ks.fields.startTimezone]];
432
+ } : [_this.kendoForm.errors[_this.ks.fields.startTimezone]])])]), h("div", {
259
433
  "class": "k-form-field"
260
- }, [h(Field, {
261
- name: this.fields.end,
434
+ }, [// @ts-ignore function children
435
+ h(Field, {
436
+ name: this.ks.fields.end,
262
437
  attrs: this.v3 ? undefined : {
263
- name: this.fields.end,
438
+ name: this.ks.fields.end,
264
439
  component: EndLabel,
265
440
  editorId: "k-scheduler-editor-end"
266
441
  },
267
442
  component: EndLabel,
268
443
  editorId: "k-scheduler-editor-end"
269
- }, [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])]), h("div", {
444
+ }, this.v3 ? function () {
445
+ return [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])];
446
+ } : [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])]), h("div", {
270
447
  "class": "k-form-field-wrap",
271
448
  style: {
272
449
  display: 'flex'
@@ -275,25 +452,28 @@ var SchedulerFormEditorVue2 = {
275
452
  id: "k-scheduler-editor-end",
276
453
  attrs: this.v3 ? undefined : {
277
454
  id: "k-scheduler-editor-end",
278
- name: this.fields.end,
455
+ name: this.ks.fields.end,
279
456
  width: "auto",
280
457
  component: EndEditor,
281
- as: this.$props.valueGetter(this.fields.isAllDay) ? DatePicker : DateTimePicker,
458
+ as: this.kendoForm.valueGetter(this.ks.fields.isAllDay) ? DatePicker : DateTimePicker,
282
459
  timezone: this.ks.timezone
283
460
  },
284
- name: this.fields.end,
461
+ name: this.ks.fields.end,
285
462
  width: "auto",
286
463
  component: EndEditor,
287
- as: this.$props.valueGetter(this.fields.isAllDay) ? DatePicker : DateTimePicker,
464
+ as: this.kendoForm.valueGetter(this.ks.fields.isAllDay) ? DatePicker : DateTimePicker,
288
465
  timezone: this.ks.timezone
289
- }), this.$props.errors[this.fields.end] && h(Field, {
290
- name: this.fields.end,
466
+ }), this.kendoForm.errors[this.ks.fields.end] && // @ts-ignore function children
467
+ h(Field, {
468
+ name: this.ks.fields.end,
291
469
  attrs: this.v3 ? undefined : {
292
- name: this.fields.end,
470
+ name: this.ks.fields.end,
293
471
  component: EndError
294
472
  },
295
473
  component: EndError
296
- }, [this.$props.errors[this.fields.end]])]), "\xA0", h("div", [this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
474
+ }, this.v3 ? function () {
475
+ return [_this.kendoForm.errors[_this.ks.fields.end]];
476
+ } : [_this.kendoForm.errors[_this.ks.fields.end]])]), "\xA0", h("div", [this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
297
477
  id: 'k-scheduler-editor-set-end-timezone',
298
478
  attrs: this.v3 ? undefined : {
299
479
  id: 'k-scheduler-editor-set-end-timezone',
@@ -304,7 +484,8 @@ var SchedulerFormEditorVue2 = {
304
484
  "change": this.handleEndZoneCheckboxChange
305
485
  },
306
486
  value: this.endZoneChecked
307
- }), h(EndTimezoneCheckedLabel, {
487
+ }), // @ts-ignore function children
488
+ h(EndTimezoneCheckedLabel, {
308
489
  "class": 'k-checkbox-label',
309
490
  editorId: 'k-scheduler-editor-set-end-timezone',
310
491
  attrs: this.v3 ? undefined : {
@@ -313,43 +494,51 @@ var SchedulerFormEditorVue2 = {
313
494
  style: {
314
495
  display: 'inline-flex'
315
496
  }
316
- }, [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])])]])])]), this.endZoneChecked && h("div", {
497
+ }, this.v3 ? function () {
498
+ return [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])];
499
+ } : [localization.toLanguageString(editorEventSeparateTimeZones, messages[editorEventSeparateTimeZones])])]])])]), this.endZoneChecked && h("div", {
317
500
  "class": "k-form-field"
318
- }, [h(Field, {
319
- name: this.fields.endTimezone,
501
+ }, [// @ts-ignore function children
502
+ h(Field, {
503
+ name: this.ks.fields.endTimezone,
320
504
  attrs: this.v3 ? undefined : {
321
- name: this.fields.endTimezone,
505
+ name: this.ks.fields.endTimezone,
322
506
  component: EndTimezoneLabel
323
507
  },
324
508
  component: EndTimezoneLabel
325
- }, [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])]), h("div", {
509
+ }, this.v3 ? function () {
510
+ return [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])];
511
+ } : [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])]), h("div", {
326
512
  "class": "k-form-field-wrap"
327
513
  }, [h(Field, {
328
514
  value: endTimezone,
329
515
  attrs: this.v3 ? undefined : {
330
516
  value: endTimezone,
331
- data: timezones,
517
+ dataItems: timezones,
332
518
  validator: this.endTimezoneValidator,
333
519
  component: EndTimezoneEditor,
334
- name: this.fields.endTimezone
520
+ name: this.ks.fields.endTimezone
335
521
  },
336
- data: timezones,
522
+ dataItems: timezones,
337
523
  validator: this.endTimezoneValidator,
338
524
  component: EndTimezoneEditor,
339
- name: this.fields.endTimezone
340
- }), this.$props.errors[this.fields.endTimezone] && h(Field, {
341
- name: this.fields.endTimezone,
525
+ name: this.ks.fields.endTimezone
526
+ }), this.kendoForm.errors[this.ks.fields.endTimezone] && // @ts-ignore function children
527
+ h(Field, {
528
+ name: this.ks.fields.endTimezone,
342
529
  attrs: this.v3 ? undefined : {
343
- name: this.fields.endTimezone,
530
+ name: this.ks.fields.endTimezone,
344
531
  component: EndTimezoneError
345
532
  },
346
533
  component: EndTimezoneError
347
- }, [this.$props.errors[this.fields.endTimezone]])])]), h("div", {
534
+ }, this.v3 ? function () {
535
+ return [_this.kendoForm.errors[_this.ks.fields.endTimezone]];
536
+ } : [_this.kendoForm.errors[_this.ks.fields.endTimezone]])])]), h("div", {
348
537
  "class": "k-form-field"
349
538
  }, [h(Field, {
350
- name: this.fields.isAllDay,
539
+ name: this.ks.fields.isAllDay,
351
540
  attrs: this.v3 ? undefined : {
352
- name: this.fields.isAllDay,
541
+ name: this.ks.fields.isAllDay,
353
542
  component: Label
354
543
  },
355
544
  component: Label
@@ -359,67 +548,76 @@ var SchedulerFormEditorVue2 = {
359
548
  id: 'k-is-allday-checkbox',
360
549
  attrs: this.v3 ? undefined : {
361
550
  id: 'k-is-allday-checkbox',
362
- name: this.fields.isAllDay,
551
+ name: this.ks.fields.isAllDay,
363
552
  component: AllDayEditor
364
553
  },
365
- name: this.fields.isAllDay,
554
+ name: this.ks.fields.isAllDay,
366
555
  component: AllDayEditor
367
- }), "\xA0", h(Field, {
368
- name: this.fields.isAllDay,
556
+ }), "\xA0", // @ts-ignore function children
557
+ h(Field, {
558
+ name: this.ks.fields.isAllDay,
369
559
  attrs: this.v3 ? undefined : {
370
- name: this.fields.isAllDay,
371
- field: this.fields.isAllDay,
560
+ name: this.ks.fields.isAllDay,
561
+ field: this.ks.fields.isAllDay,
372
562
  editorId: 'k-is-allday-checkbox',
373
563
  component: AllDayLabel
374
564
  },
375
- field: this.fields.isAllDay,
565
+ field: this.ks.fields.isAllDay,
376
566
  editorId: 'k-is-allday-checkbox',
377
567
  "class": 'k-checkbox-label',
378
568
  component: AllDayLabel
379
- }, [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
569
+ }, this.v3 ? function () {
570
+ return [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])];
571
+ } : [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
380
572
  component: RecurrenceEditor,
381
573
  attrs: this.v3 ? undefined : {
382
574
  component: RecurrenceEditor,
383
- field: this.fields.recurrenceRule,
384
- name: this.fields.recurrenceRule,
575
+ field: this.ks.fields.recurrenceRule,
576
+ name: this.ks.fields.recurrenceRule,
385
577
  start: start
386
578
  },
387
- field: this.fields.recurrenceRule,
388
- name: this.fields.recurrenceRule,
579
+ field: this.ks.fields.recurrenceRule,
580
+ name: this.ks.fields.recurrenceRule,
389
581
  start: start
390
582
  }), h("div", {
391
583
  "class": "k-form-field"
392
- }, [h(Field, {
393
- name: this.fields.description,
584
+ }, [// @ts-ignore function children
585
+ h(Field, {
586
+ name: this.ks.fields.description,
394
587
  attrs: this.v3 ? undefined : {
395
- name: this.fields.description,
588
+ name: this.ks.fields.description,
396
589
  component: DescriptionLabel
397
590
  },
398
591
  component: DescriptionLabel
399
- }, [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])]), h("div", {
592
+ }, this.v3 ? function () {
593
+ return [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])];
594
+ } : [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])]), h("div", {
400
595
  "class": "k-form-field-wrap"
401
596
  }, [h(Field, {
402
597
  component: DescriptionEditor,
403
598
  attrs: this.v3 ? undefined : {
404
599
  component: DescriptionEditor,
405
- name: this.fields.description,
600
+ name: this.ks.fields.description,
406
601
  rows: 1,
407
602
  id: 'k-event-description'
408
603
  },
409
- name: this.fields.description,
604
+ name: this.ks.fields.description,
410
605
  rows: 1,
411
606
  id: 'k-event-description',
412
607
  style: {
413
608
  width: '100%'
414
609
  }
415
- }), this.$props.errors[this.fields.description] && h(Field, {
416
- name: this.fields.description,
610
+ }), this.kendoForm.errors[this.ks.fields.description] && // @ts-ignore function children
611
+ h(Field, {
612
+ name: this.ks.fields.description,
417
613
  attrs: this.v3 ? undefined : {
418
- name: this.fields.description,
614
+ name: this.ks.fields.description,
419
615
  component: DescriptionError
420
616
  },
421
617
  component: DescriptionError
422
- }, [this.$props.errors[this.fields.description]])])]), (this.resources || []).map(function (resource) {
618
+ }, this.v3 ? function () {
619
+ return [_this.kendoForm.errors[_this.ks.fields.description]];
620
+ } : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (this.ks.resources || []).map(function (resource) {
423
621
  return h("div", {
424
622
  key: resource.field
425
623
  }, [h("div", {
@@ -431,7 +629,10 @@ var SchedulerFormEditorVue2 = {
431
629
  component: ResourceLabel
432
630
  },
433
631
  component: ResourceLabel
434
- }), h(Label, [resource.name]), h(Field, {
632
+ }), // @ts-ignore function children
633
+ h(Label, this.v3 ? function () {
634
+ return [resource.name];
635
+ } : [resource.name]), h(Field, {
435
636
  name: resource.field,
436
637
  attrs: this.v3 ? undefined : {
437
638
  name: resource.field,
@@ -456,10 +657,10 @@ var SchedulerFormEditorVue2 = {
456
657
  methods: {
457
658
  handleStartZoneCheckboxChange: function handleStartZoneCheckboxChange(e) {
458
659
  if (!e.value) {
459
- this.$emit('change', this.fields.startTimezone, {
660
+ this.$emit('change', this.ks.fields.startTimezone, {
460
661
  value: null
461
662
  });
462
- this.$emit('change', this.fields.endTimezone, {
663
+ this.$emit('change', this.ks.fields.endTimezone, {
463
664
  value: null
464
665
  });
465
666
  this.endZoneChecked = e.value;
@@ -469,7 +670,7 @@ var SchedulerFormEditorVue2 = {
469
670
  },
470
671
  handleEndZoneCheckboxChange: function handleEndZoneCheckboxChange(e) {
471
672
  if (!e.value) {
472
- this.$emit('change', this.fields.endTimezone, {
673
+ this.$emit('change', this.ks.fields.endTimezone, {
473
674
  value: null
474
675
  });
475
676
  }
@@ -480,10 +681,10 @@ var SchedulerFormEditorVue2 = {
480
681
  return value ? undefined : this.requiredValidationMessage;
481
682
  },
482
683
  startTimezoneValidator: function startTimezoneValidator(_dataItem, formValueGetter) {
483
- return this.startZoneChecked ? this.requiredValidator(formValueGetter(this.fields.startTimezone)) : undefined;
684
+ return this.startZoneChecked ? this.requiredValidator(formValueGetter(this.ks.fields.startTimezone)) : undefined;
484
685
  },
485
686
  endTimezoneValidator: function endTimezoneValidator(_dataItem, formValueGetter) {
486
- return this.startZoneChecked && this.endZoneChecked ? this.requiredValidator(formValueGetter(this.fields.endTimezone)) || this.requiredValidator(formValueGetter(this.fields.startTimezone)) : undefined;
687
+ return this.startZoneChecked && this.endZoneChecked ? this.requiredValidator(formValueGetter(this.ks.fields.endTimezone)) || this.requiredValidator(formValueGetter(this.ks.fields.startTimezone)) : undefined;
487
688
  }
488
689
  }
489
690
  };