@progress/kendo-vue-scheduler 3.1.2 → 3.1.4-dev.202204051326

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 (90) 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/items/SchedulerEditItem.js +130 -33
  12. package/dist/es/items/SchedulerItemContent.js +4 -2
  13. package/dist/es/items/SchedulerViewItem.js +129 -9
  14. package/dist/es/items/hooks/use-series.d.ts +1 -0
  15. package/dist/es/items/hooks/use-series.js +1 -2
  16. package/dist/es/package-metadata.js +1 -1
  17. package/dist/es/recurrence/RecurrenceEditor.d.ts +3 -0
  18. package/dist/es/recurrence/RecurrenceEditor.js +307 -457
  19. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +38 -12
  20. package/dist/es/recurrence/common.js +2 -1
  21. package/dist/es/slots/SchedulerEditSlot.js +10 -7
  22. package/dist/es/slots/SchedulerSlot.js +1 -0
  23. package/dist/es/slots/SchedulerViewSlot.js +6 -2
  24. package/dist/es/views/agenda/AgendaView.d.ts +1 -1
  25. package/dist/es/views/agenda/AgendaView.js +39 -9
  26. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  27. package/dist/es/views/agenda/AgendaViewBody.js +2 -1
  28. package/dist/es/views/common/VerticalResourceIterator.js +12 -6
  29. package/dist/es/views/day/DayView.js +10 -1
  30. package/dist/es/views/day/DayViewMiddleRow.d.ts +12 -0
  31. package/dist/es/views/day/DayViewMiddleRow.js +1 -0
  32. package/dist/es/views/day/DayViewVerticalRow.d.ts +1 -0
  33. package/dist/es/views/day/DayViewVerticalRow.js +5 -2
  34. package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +1 -0
  35. package/dist/es/views/day/DayViewVerticalSlotsRow.js +1 -0
  36. package/dist/es/views/day/MultiDayView.js +48 -24
  37. package/dist/es/views/month/MonthView.js +10 -4
  38. package/dist/es/views/month/MonthViewBody.d.ts +1 -0
  39. package/dist/es/views/month/MonthViewBody.js +1 -0
  40. package/dist/es/views/time/MultiDayTimelineView.js +12 -4
  41. package/dist/es/views/time/TimelineView.js +15 -3
  42. package/dist/es/views/time/TimelineViewBody.d.ts +1 -0
  43. package/dist/es/views/time/TimelineViewBody.js +1 -0
  44. package/dist/es/views/week/WeekView.js +10 -1
  45. package/dist/es/views/week/WorkWeekView.js +10 -1
  46. package/dist/npm/Scheduler.js +4 -1
  47. package/dist/npm/components/SchedulerActionButtons.d.ts +42 -0
  48. package/dist/npm/components/SchedulerActionButtons.js +100 -0
  49. package/dist/npm/components/SchedulerForm.js +61 -48
  50. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +1 -1
  51. package/dist/npm/components/header/view-selector/ViewSelectorList.js +3 -3
  52. package/dist/npm/editors/SchedulerFormEditor.js +336 -129
  53. package/dist/npm/editors/ZonedDateTime.d.ts +2 -4
  54. package/dist/npm/editors/ZonedDateTime.js +32 -15
  55. package/dist/npm/items/SchedulerEditItem.js +130 -30
  56. package/dist/npm/items/SchedulerItemContent.js +4 -2
  57. package/dist/npm/items/SchedulerViewItem.js +129 -9
  58. package/dist/npm/items/hooks/use-series.d.ts +1 -0
  59. package/dist/npm/items/hooks/use-series.js +2 -2
  60. package/dist/npm/package-metadata.js +1 -1
  61. package/dist/npm/recurrence/RecurrenceEditor.d.ts +3 -0
  62. package/dist/npm/recurrence/RecurrenceEditor.js +307 -457
  63. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +38 -12
  64. package/dist/npm/recurrence/common.js +2 -1
  65. package/dist/npm/slots/SchedulerEditSlot.js +10 -7
  66. package/dist/npm/slots/SchedulerSlot.js +1 -0
  67. package/dist/npm/slots/SchedulerViewSlot.js +6 -2
  68. package/dist/npm/views/agenda/AgendaView.d.ts +1 -1
  69. package/dist/npm/views/agenda/AgendaView.js +39 -9
  70. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  71. package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
  72. package/dist/npm/views/common/VerticalResourceIterator.js +12 -6
  73. package/dist/npm/views/day/DayView.js +10 -1
  74. package/dist/npm/views/day/DayViewMiddleRow.d.ts +12 -0
  75. package/dist/npm/views/day/DayViewMiddleRow.js +1 -0
  76. package/dist/npm/views/day/DayViewVerticalRow.d.ts +1 -0
  77. package/dist/npm/views/day/DayViewVerticalRow.js +5 -2
  78. package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +1 -0
  79. package/dist/npm/views/day/DayViewVerticalSlotsRow.js +1 -0
  80. package/dist/npm/views/day/MultiDayView.js +48 -24
  81. package/dist/npm/views/month/MonthView.js +10 -4
  82. package/dist/npm/views/month/MonthViewBody.d.ts +1 -0
  83. package/dist/npm/views/month/MonthViewBody.js +1 -0
  84. package/dist/npm/views/time/MultiDayTimelineView.js +12 -4
  85. package/dist/npm/views/time/TimelineView.js +15 -3
  86. package/dist/npm/views/time/TimelineViewBody.d.ts +1 -0
  87. package/dist/npm/views/time/TimelineViewBody.js +1 -0
  88. package/dist/npm/views/week/WeekView.js +10 -1
  89. package/dist/npm/views/week/WorkWeekView.js +10 -1
  90. package/package.json +12 -12
@@ -102,8 +102,7 @@ var RecurrenceEditorVue2 = {
102
102
  data: function data() {
103
103
  return {
104
104
  defaultCount: 1,
105
- defaultUntil: kendo_date_math_1.ZonedDate.fromUTCDate(this.$props.start),
106
- localizeMessage: ''
105
+ defaultUntil: kendo_date_math_1.ZonedDate.fromUTCDate(this.$props.start)
107
106
  };
108
107
  },
109
108
  // @ts-ignore
@@ -115,26 +114,266 @@ var RecurrenceEditorVue2 = {
115
114
  },
116
115
  // @ts-ignore
117
116
  render: function render(createElement) {
117
+ var _this2 = this;
118
+
118
119
  var h = gh || createElement;
119
- var intl = kendo_vue_intl_1.provideIntlService(this);
120
- var localization = kendo_vue_intl_1.provideLocalizationService(this);
120
+ var that = this;
121
+ this.intl = kendo_vue_intl_1.provideIntlService(this);
122
+ this.localization = kendo_vue_intl_1.provideLocalizationService(this);
121
123
  var timezone = this.ks.timezone;
124
+ var itemStyle = {
125
+ display: 'flex',
126
+ alignItems: 'center',
127
+ minHeight: 30
128
+ };
122
129
 
123
- var RadioGroupListItem = function RadioGroupListItem(props) {
124
- return h("li", {
125
- // {...props}
130
+ var monthlyWeekDay = function monthlyWeekDay() {
131
+ return [h(kendo_vue_dropdowns_1.DropDownList, {
132
+ key: "weekday-offset",
133
+ textField: "text",
134
+ attrs: this.v3 ? undefined : {
135
+ textField: "text",
136
+ dataItemKey: "value",
137
+ disabled: this.repeatOnRule !== 'weekday',
138
+ dataItems: this.offsets,
139
+ value: this.offset
140
+ },
141
+ dataItemKey: "value",
142
+ disabled: this.repeatOnRule !== 'weekday',
143
+ dataItems: this.offsets,
144
+ value: this.offset,
145
+ onChange: this.handleOffsetChange,
146
+ on: this.v3 ? undefined : {
147
+ "change": this.handleOffsetChange
148
+ },
126
149
  style: {
127
- display: 'flex',
128
- alignItems: 'center',
129
- minHeight: 30
150
+ width: 'auto'
151
+ }
152
+ }), h(kendo_vue_dropdowns_1.DropDownList, {
153
+ key: "weekday-value",
154
+ disabled: this.repeatOnRule !== 'weekday',
155
+ attrs: this.v3 ? undefined : {
156
+ disabled: this.repeatOnRule !== 'weekday',
157
+ value: this.weekDay,
158
+ dataItem: this.extendedWeekDays,
159
+ textField: "text",
160
+ dataItemKey: "value"
161
+ },
162
+ value: this.weekDay,
163
+ dataItem: this.extendedWeekDays,
164
+ onChange: this.handleWeekDayChange,
165
+ on: this.v3 ? undefined : {
166
+ "change": this.handleWeekDayChange
167
+ },
168
+ textField: "text",
169
+ dataItemKey: "value",
170
+ style: {
171
+ width: 'auto'
172
+ }
173
+ })];
174
+ };
175
+
176
+ var monthlyMonthDay = function monthlyMonthDay() {
177
+ return h(kendo_vue_inputs_1.NumericTextBox, {
178
+ key: 'weekday-day',
179
+ min: 1,
180
+ attrs: this.v3 ? undefined : {
181
+ min: 1,
182
+ max: 31,
183
+ disabled: this.repeatOnRule !== 'monthday',
184
+ value: this.rrule && this.rrule.byMonthDay && this.rrule.byMonthDay[0],
185
+ width: 'auto'
186
+ },
187
+ max: 31,
188
+ disabled: this.repeatOnRule !== 'monthday',
189
+ value: this.rrule && this.rrule.byMonthDay && this.rrule.byMonthDay[0],
190
+ onChange: this.handleMonthDayChange,
191
+ on: this.v3 ? undefined : {
192
+ "change": this.handleMonthDayChange
193
+ },
194
+ width: 'auto'
195
+ });
196
+ };
197
+
198
+ var yearlyMonthDay = function yearlyMonthDay() {
199
+ return [h(kendo_vue_dropdowns_1.DropDownList, {
200
+ key: "monthday-month",
201
+ disabled: this.repeatOnRule !== 'monthday',
202
+ attrs: this.v3 ? undefined : {
203
+ disabled: this.repeatOnRule !== 'monthday',
204
+ value: this.month,
205
+ dataItems: this.months,
206
+ textField: "text",
207
+ dataItemKey: "value"
208
+ },
209
+ value: this.month,
210
+ dataItems: this.months,
211
+ textField: "text",
212
+ dataItemKey: "value",
213
+ onChange: this.handleMonthChange,
214
+ on: this.v3 ? undefined : {
215
+ "change": this.handleMonthChange
216
+ },
217
+ style: {
218
+ width: 'auto'
219
+ }
220
+ }), h(kendo_vue_inputs_1.NumericTextBox, {
221
+ key: "monthday-day",
222
+ min: 1,
223
+ attrs: this.v3 ? undefined : {
224
+ min: 1,
225
+ max: 31,
226
+ disabled: this.repeatOnRule !== 'monthday',
227
+ value: this.monthDay
228
+ },
229
+ max: 31,
230
+ disabled: this.repeatOnRule !== 'monthday',
231
+ value: this.monthDay,
232
+ onChange: this.handleMonthDayChange,
233
+ on: this.v3 ? undefined : {
234
+ "change": this.handleMonthDayChange
235
+ },
236
+ style: {
237
+ width: 'auto'
130
238
  }
131
- }, [props.children]);
239
+ })];
240
+ };
241
+
242
+ var yearlyWeekDay = function yearlyWeekDay() {
243
+ return [h(kendo_vue_dropdowns_1.DropDownList, {
244
+ key: "yearly-weekday-offset",
245
+ textField: "text",
246
+ attrs: this.v3 ? undefined : {
247
+ textField: "text",
248
+ dataItemKey: "value",
249
+ disabled: this.repeatOnRule !== 'weekday',
250
+ dataItems: this.offsets,
251
+ value: this.offset
252
+ },
253
+ dataItemKey: "value",
254
+ disabled: this.repeatOnRule !== 'weekday',
255
+ dataItems: this.offsets,
256
+ value: this.offset,
257
+ onChange: this.handleOffsetChange,
258
+ on: this.v3 ? undefined : {
259
+ "change": this.handleOffsetChange
260
+ },
261
+ style: {
262
+ width: 'auto'
263
+ }
264
+ }), h(kendo_vue_dropdowns_1.DropDownList, {
265
+ key: "yearly-weekday-day",
266
+ textField: "text",
267
+ attrs: this.v3 ? undefined : {
268
+ textField: "text",
269
+ dataItemKey: "value",
270
+ disabled: this.repeatOnRule !== 'weekday',
271
+ value: this.weekDay,
272
+ dataItems: this.extendedWeekDays
273
+ },
274
+ dataItemKey: "value",
275
+ disabled: this.repeatOnRule !== 'weekday',
276
+ value: this.weekDay,
277
+ dataItems: this.extendedWeekDays,
278
+ onChange: this.handleWeekDayChange,
279
+ on: this.v3 ? undefined : {
280
+ "change": this.handleWeekDayChange
281
+ },
282
+ style: {
283
+ width: 'auto'
284
+ }
285
+ }), h("span", {
286
+ key: "yearly-weekday-of-label"
287
+ }, [this.localizeMessage(messages_1.recurrenceEditorYearlyOf, true), "\xA0"]), h(kendo_vue_dropdowns_1.DropDownList, {
288
+ key: "yearly-weekday-month",
289
+ textField: "text",
290
+ attrs: this.v3 ? undefined : {
291
+ textField: "text",
292
+ dataItemKey: "value",
293
+ disabled: this.repeatOnRule !== 'weekday',
294
+ value: this.month,
295
+ dataItems: this.months
296
+ },
297
+ dataItemKey: "value",
298
+ disabled: this.repeatOnRule !== 'weekday',
299
+ value: this.month,
300
+ dataItems: this.months,
301
+ onChange: this.handleMonthChange,
302
+ on: this.v3 ? undefined : {
303
+ "change": this.handleMonthChange
304
+ },
305
+ style: {
306
+ width: 'auto'
307
+ }
308
+ })];
309
+ };
310
+
311
+ var count = function count() {
312
+ var _this = this;
313
+
314
+ return [h(kendo_vue_inputs_1.NumericTextBox, {
315
+ key: "endrule-after-editor",
316
+ id: "k-endrule-after",
317
+ attrs: this.v3 ? undefined : {
318
+ id: "k-endrule-after",
319
+ min: 1,
320
+ width: '70px',
321
+ value: this.endRule === 'count' ? this.rrule.count : this.defaultCount,
322
+ disabled: this.endRule !== 'count'
323
+ },
324
+ min: 1,
325
+ width: '70px',
326
+ value: this.endRule === 'count' ? this.rrule.count : this.defaultCount,
327
+ onChange: this.handleCountChange,
328
+ on: this.v3 ? undefined : {
329
+ "change": this.handleCountChange
330
+ },
331
+ disabled: this.endRule !== 'count'
332
+ }), // @ts-ignore function children
333
+ h(kendo_vue_labels_1.Label, {
334
+ key: "endrule-after-label",
335
+ "class": 'k-radio-label',
336
+ editorId: 'k-endrule-after',
337
+ attrs: this.v3 ? undefined : {
338
+ editorId: 'k-endrule-after'
339
+ }
340
+ }, this.v3 ? function () {
341
+ return [_this.localizeMessage(messages_1.recurrenceEditorEndOccurrence, true)];
342
+ } : [_this.localizeMessage(messages_1.recurrenceEditorEndOccurrence, true)])];
343
+ };
344
+
345
+ var dpUntil = function dpUntil() {
346
+ return (// @ts-ignore
347
+ h(kendo_vue_dateinputs_1.DatePicker, {
348
+ key: "k-endrule-until-editor",
349
+ id: "k-endrule-until",
350
+ attrs: this.v3 ? undefined : {
351
+ id: "k-endrule-until",
352
+ disabled: that.endRule !== 'until',
353
+ min: that.$props.start,
354
+ value: that.endRule === 'until' ? that.until : kendo_date_math_1.toLocalDate(that.defaultUntil)
355
+ },
356
+ disabled: that.endRule !== 'until',
357
+ min: that.$props.start,
358
+ value: that.endRule === 'until' ? that.until : kendo_date_math_1.toLocalDate(that.defaultUntil),
359
+ onChange: that.handleUntilChange,
360
+ on: this.v3 ? undefined : {
361
+ "change": that.handleUntilChange
362
+ },
363
+ style: {
364
+ width: 'auto'
365
+ }
366
+ })
367
+ );
132
368
  };
133
369
 
134
370
  return (// fragment
135
371
  h("div", [h("div", {
136
372
  "class": "k-form-field"
137
- }, [h(kendo_vue_labels_1.Label, [localization.toLanguageString(messages_1.recurrenceEditorRepeat, messages_1.messages[messages_1.recurrenceEditorRepeat])]), h("div", {
373
+ }, [// @ts-ignore function children
374
+ h(kendo_vue_labels_1.Label, this.v3 ? function () {
375
+ return [_this2.localization.toLanguageString(messages_1.recurrenceEditorRepeat, messages_1.messages[messages_1.recurrenceEditorRepeat])];
376
+ } : [_this2.localization.toLanguageString(messages_1.recurrenceEditorRepeat, messages_1.messages[messages_1.recurrenceEditorRepeat])]), h("div", {
138
377
  "class": "k-form-field-wrap"
139
378
  }, [h(RecurrenceFrequencyEditor_1.RecurrenceFrequencyEditor, {
140
379
  value: this.frequency,
@@ -149,12 +388,15 @@ var RecurrenceEditorVue2 = {
149
388
  }
150
389
  })])]), this.frequency !== 'never' && h("div", {
151
390
  "class": 'k-form-field'
152
- }, [h(kendo_vue_labels_1.Label, {
391
+ }, [// @ts-ignore function children
392
+ h(kendo_vue_labels_1.Label, {
153
393
  editorId: "interval-editor",
154
394
  attrs: this.v3 ? undefined : {
155
395
  editorId: "interval-editor"
156
396
  }
157
- }, [this.localizeMessage(common_1.capitalize(this.frequency) + 'RepeatEvery')]), h("div", {
397
+ }, this.v3 ? function () {
398
+ return [_this2.localizeMessage(common_1.capitalize(_this2.frequency) + 'RepeatEvery')];
399
+ } : [_this2.localizeMessage(common_1.capitalize(_this2.frequency) + 'RepeatEvery')]), h("div", {
158
400
  "class": "k-form-field-wrap"
159
401
  }, [h("div", {
160
402
  style: {
@@ -178,14 +420,20 @@ var RecurrenceEditorVue2 = {
178
420
  "change": this.handleIntervalChange
179
421
  },
180
422
  id: "interval-editor"
181
- }), "\xA0", h(kendo_vue_labels_1.Label, {
423
+ }), "\xA0", // @ts-ignore function children
424
+ h(kendo_vue_labels_1.Label, {
182
425
  editorId: "interval-editor",
183
426
  attrs: this.v3 ? undefined : {
184
427
  editorId: "interval-editor"
185
428
  }
186
- }, [this.localizeMessage(common_1.capitalize(this.frequency) + 'Interval')])])])]), this.frequency === 'weekly' && h("div", {
429
+ }, this.v3 ? function () {
430
+ return [_this2.localizeMessage(common_1.capitalize(_this2.frequency) + 'Interval')];
431
+ } : [_this2.localizeMessage(common_1.capitalize(_this2.frequency) + 'Interval')])])])]), this.frequency === 'weekly' && h("div", {
187
432
  "class": "k-form-field"
188
- }, [h(kendo_vue_labels_1.Label, [this.localizeMessage(messages_1.recurrenceEditorWeeklyRepeatOn, true)]), h("div", {
433
+ }, [// @ts-ignore function children
434
+ h(kendo_vue_labels_1.Label, this.v3 ? function () {
435
+ return [_this2.localizeMessage(messages_1.recurrenceEditorWeeklyRepeatOn, true)];
436
+ } : [_this2.localizeMessage(messages_1.recurrenceEditorWeeklyRepeatOn, true)]), h("div", {
189
437
  "class": "k-form-field-wrap"
190
438
  }, [h(RecurrenceRepeatOnWeekEditor_1.RecurrenceRepeatOnWeekEditor, {
191
439
  dataItems: this.weekDays,
@@ -206,284 +454,68 @@ var RecurrenceEditorVue2 = {
206
454
  }
207
455
  })])]), this.frequency === 'monthly' && h("div", {
208
456
  "class": "k-form-field"
209
- }, [h(kendo_vue_labels_1.Label, {
457
+ }, [// @ts-ignore function children
458
+ h(kendo_vue_labels_1.Label, {
210
459
  key: "recurrence-repeat-on-monthly-label"
211
- }, [this.localizeMessage(messages_1.recurrenceEditorMonthlyRepeatOn, true)]), h("div", {
460
+ }, this.v3 ? function () {
461
+ return [_this2.localizeMessage(messages_1.recurrenceEditorMonthlyRepeatOn, true)];
462
+ } : [_this2.localizeMessage(messages_1.recurrenceEditorMonthlyRepeatOn, true)]), h("div", {
212
463
  "class": "k-form-field-wrap"
213
464
  }, [h(kendo_vue_inputs_1.RadioGroup, {
214
465
  value: this.repeatOnRule,
215
466
  attrs: this.v3 ? undefined : {
216
467
  value: this.repeatOnRule,
217
- item: RadioGroupListItem,
218
468
  dataItems: [{
219
469
  value: 'monthday',
470
+ style: itemStyle,
220
471
  label: this.localizeMessage(messages_1.recurrenceEditorMonthlyDay, true),
221
- children: [' ', h(kendo_vue_inputs_1.NumericTextBox, {
222
- key: 'weekday-day',
223
- min: 1,
224
- attrs: this.v3 ? undefined : {
225
- min: 1,
226
- max: 31,
227
- disabled: this.repeatOnRule !== 'monthday',
228
- value: this.rrule && this.rrule.byMonthDay && this.rrule.byMonthDay[0],
229
- width: 'auto'
230
- },
231
- max: 31,
232
- disabled: this.repeatOnRule !== 'monthday',
233
- value: this.rrule && this.rrule.byMonthDay && this.rrule.byMonthDay[0],
234
- onChange: this.handleMonthDayChange,
235
- on: this.v3 ? undefined : {
236
- "change": this.handleMonthDayChange
237
- },
238
- width: 'auto'
239
- })]
472
+ content: monthlyMonthDay.call(this)
240
473
  }, {
241
474
  value: 'weekday',
475
+ style: itemStyle,
242
476
  label: ' ',
243
- children: [h(kendo_vue_dropdowns_1.DropDownList, {
244
- key: "weekday-offset",
245
- textField: "text",
246
- attrs: this.v3 ? undefined : {
247
- textField: "text",
248
- dataItemKey: "value",
249
- disabled: this.repeatOnRule !== 'weekday',
250
- dataItems: this.offsets,
251
- value: this.offset
252
- },
253
- dataItemKey: "value",
254
- disabled: this.repeatOnRule !== 'weekday',
255
- dataItems: this.offsets,
256
- value: this.offset,
257
- onChange: this.handleOffsetChange,
258
- on: this.v3 ? undefined : {
259
- "change": this.handleOffsetChange
260
- },
261
- style: {
262
- width: 'auto'
263
- }
264
- }), ' ', h(kendo_vue_dropdowns_1.DropDownList, {
265
- key: "weekday-value",
266
- disabled: this.repeatOnRule !== 'weekday',
267
- attrs: this.v3 ? undefined : {
268
- disabled: this.repeatOnRule !== 'weekday',
269
- value: this.weekDay,
270
- dataItem: this.extendedWeekDays,
271
- textField: "text",
272
- dataItemKey: "value"
273
- },
274
- value: this.weekDay,
275
- dataItem: this.extendedWeekDays,
276
- onChange: this.handleWeekDayChange,
277
- on: this.v3 ? undefined : {
278
- "change": this.handleWeekDayChange
279
- },
280
- textField: "text",
281
- dataItemKey: "value",
282
- style: {
283
- width: 'auto'
284
- }
285
- })]
477
+ content: monthlyWeekDay.call(this)
286
478
  }]
287
479
  },
288
480
  onChange: this.handleRepeatOnRuleChange,
289
481
  on: this.v3 ? undefined : {
290
482
  "change": this.handleRepeatOnRuleChange
291
483
  },
292
- item: RadioGroupListItem,
293
484
  "class": "k-reset",
294
485
  dataItems: [{
295
486
  value: 'monthday',
487
+ style: itemStyle,
296
488
  label: this.localizeMessage(messages_1.recurrenceEditorMonthlyDay, true),
297
- children: [' ', h(kendo_vue_inputs_1.NumericTextBox, {
298
- key: 'weekday-day',
299
- min: 1,
300
- attrs: this.v3 ? undefined : {
301
- min: 1,
302
- max: 31,
303
- disabled: this.repeatOnRule !== 'monthday',
304
- value: this.rrule && this.rrule.byMonthDay && this.rrule.byMonthDay[0],
305
- width: 'auto'
306
- },
307
- max: 31,
308
- disabled: this.repeatOnRule !== 'monthday',
309
- value: this.rrule && this.rrule.byMonthDay && this.rrule.byMonthDay[0],
310
- onChange: this.handleMonthDayChange,
311
- on: this.v3 ? undefined : {
312
- "change": this.handleMonthDayChange
313
- },
314
- width: 'auto'
315
- })]
489
+ content: monthlyMonthDay.call(this)
316
490
  }, {
317
491
  value: 'weekday',
492
+ style: itemStyle,
318
493
  label: ' ',
319
- children: [h(kendo_vue_dropdowns_1.DropDownList, {
320
- key: "weekday-offset",
321
- textField: "text",
322
- attrs: this.v3 ? undefined : {
323
- textField: "text",
324
- dataItemKey: "value",
325
- disabled: this.repeatOnRule !== 'weekday',
326
- dataItems: this.offsets,
327
- value: this.offset
328
- },
329
- dataItemKey: "value",
330
- disabled: this.repeatOnRule !== 'weekday',
331
- dataItems: this.offsets,
332
- value: this.offset,
333
- onChange: this.handleOffsetChange,
334
- on: this.v3 ? undefined : {
335
- "change": this.handleOffsetChange
336
- },
337
- style: {
338
- width: 'auto'
339
- }
340
- }), ' ', h(kendo_vue_dropdowns_1.DropDownList, {
341
- key: "weekday-value",
342
- disabled: this.repeatOnRule !== 'weekday',
343
- attrs: this.v3 ? undefined : {
344
- disabled: this.repeatOnRule !== 'weekday',
345
- value: this.weekDay,
346
- dataItem: this.extendedWeekDays,
347
- textField: "text",
348
- dataItemKey: "value"
349
- },
350
- value: this.weekDay,
351
- dataItem: this.extendedWeekDays,
352
- onChange: this.handleWeekDayChange,
353
- on: this.v3 ? undefined : {
354
- "change": this.handleWeekDayChange
355
- },
356
- textField: "text",
357
- dataItemKey: "value",
358
- style: {
359
- width: 'auto'
360
- }
361
- })]
494
+ content: monthlyWeekDay.call(this)
362
495
  }]
363
496
  })])]), this.frequency === 'yearly' && h("div", {
364
497
  "class": "k-form-field"
365
- }, [h(kendo_vue_labels_1.Label, [this.localizeMessage(messages_1.recurrenceEditorYearlyRepeatOn, true)]), h("div", {
498
+ }, [// @ts-ignore function children
499
+ h(kendo_vue_labels_1.Label, this.v3 ? function () {
500
+ return [_this2.localizeMessage(messages_1.recurrenceEditorYearlyRepeatOn, true)];
501
+ } : [_this2.localizeMessage(messages_1.recurrenceEditorYearlyRepeatOn, true)]), h("div", {
366
502
  "class": "k-form-field-wrap"
367
503
  }, [h(kendo_vue_inputs_1.RadioGroup, {
368
504
  value: this.repeatOnRule,
369
505
  attrs: this.v3 ? undefined : {
370
506
  value: this.repeatOnRule,
371
- item: RadioGroupListItem,
372
507
  dataItems: [{
373
508
  value: 'monthday',
374
509
  label: ' ',
375
- children: [h(kendo_vue_dropdowns_1.DropDownList, {
376
- key: "monthday-month",
377
- disabled: this.repeatOnRule !== 'monthday',
378
- attrs: this.v3 ? undefined : {
379
- disabled: this.repeatOnRule !== 'monthday',
380
- value: this.month,
381
- dataItems: this.months,
382
- textField: "text",
383
- dataItemKey: "value"
384
- },
385
- value: this.month,
386
- dataItems: this.months,
387
- textField: "text",
388
- dataItemKey: "value",
389
- onChange: this.handleMonthChange,
390
- on: this.v3 ? undefined : {
391
- "change": this.handleMonthChange
392
- },
393
- style: {
394
- width: 'auto'
395
- }
396
- }), ' ', h(kendo_vue_inputs_1.NumericTextBox, {
397
- key: "monthday-day",
398
- min: 1,
399
- attrs: this.v3 ? undefined : {
400
- min: 1,
401
- max: 31,
402
- disabled: this.repeatOnRule !== 'monthday',
403
- value: this.monthDay,
404
- width: 'auto'
405
- },
406
- max: 31,
407
- disabled: this.repeatOnRule !== 'monthday',
408
- value: this.monthDay,
409
- onChange: this.handleMonthDayChange,
410
- on: this.v3 ? undefined : {
411
- "change": this.handleMonthDayChange
412
- },
413
- width: 'auto'
414
- })]
510
+ style: itemStyle,
511
+ content: yearlyMonthDay.call(this)
415
512
  }, {
416
513
  value: 'weekday',
417
514
  label: ' ',
418
- children: [h(kendo_vue_dropdowns_1.DropDownList, {
419
- key: "yearly-weekday-offset",
420
- textField: "text",
421
- attrs: this.v3 ? undefined : {
422
- textField: "text",
423
- dataItemKey: "value",
424
- disabled: this.repeatOnRule !== 'weekday',
425
- dataItems: this.offsets,
426
- value: this.offset
427
- },
428
- dataItemKey: "value",
429
- disabled: this.repeatOnRule !== 'weekday',
430
- dataItems: this.offsets,
431
- value: this.offset,
432
- onChange: this.handleOffsetChange,
433
- on: this.v3 ? undefined : {
434
- "change": this.handleOffsetChange
435
- },
436
- style: {
437
- width: 'auto'
438
- }
439
- }), ' ', h(kendo_vue_dropdowns_1.DropDownList, {
440
- key: "yearly-weekday-day",
441
- textField: "text",
442
- attrs: this.v3 ? undefined : {
443
- textField: "text",
444
- dataItemKey: "value",
445
- disabled: this.repeatOnRule !== 'weekday',
446
- value: this.weekDay,
447
- dataItems: this.extendedWeekDays
448
- },
449
- dataItemKey: "value",
450
- disabled: this.repeatOnRule !== 'weekday',
451
- value: this.weekDay,
452
- dataItems: this.extendedWeekDays,
453
- onChange: this.handleWeekDayChange,
454
- on: this.v3 ? undefined : {
455
- "change": this.handleWeekDayChange
456
- },
457
- style: {
458
- width: 'auto'
459
- }
460
- }), ' ', h("span", {
461
- key: "yearly-weekday-of-label"
462
- }, [this.localizeMessage(messages_1.recurrenceEditorYearlyOf, true), "\xA0"]), ' ', h(kendo_vue_dropdowns_1.DropDownList, {
463
- key: "yearly-weekday-month",
464
- textField: "text",
465
- attrs: this.v3 ? undefined : {
466
- textField: "text",
467
- dataItemKey: "value",
468
- disabled: this.repeatOnRule !== 'weekday',
469
- value: this.month,
470
- dataItems: this.months
471
- },
472
- dataItemKey: "value",
473
- disabled: this.repeatOnRule !== 'weekday',
474
- value: this.month,
475
- dataItems: this.months,
476
- onChange: this.handleMonthChange,
477
- on: this.v3 ? undefined : {
478
- "change": this.handleMonthChange
479
- },
480
- style: {
481
- width: 'auto'
482
- }
483
- })]
515
+ style: itemStyle,
516
+ content: yearlyWeekDay.call(this)
484
517
  }]
485
518
  },
486
- item: RadioGroupListItem,
487
519
  onChange: this.handleRepeatOnRuleChange,
488
520
  on: this.v3 ? undefined : {
489
521
  "change": this.handleRepeatOnRuleChange
@@ -492,241 +524,59 @@ var RecurrenceEditorVue2 = {
492
524
  dataItems: [{
493
525
  value: 'monthday',
494
526
  label: ' ',
495
- children: [h(kendo_vue_dropdowns_1.DropDownList, {
496
- key: "monthday-month",
497
- disabled: this.repeatOnRule !== 'monthday',
498
- attrs: this.v3 ? undefined : {
499
- disabled: this.repeatOnRule !== 'monthday',
500
- value: this.month,
501
- dataItems: this.months,
502
- textField: "text",
503
- dataItemKey: "value"
504
- },
505
- value: this.month,
506
- dataItems: this.months,
507
- textField: "text",
508
- dataItemKey: "value",
509
- onChange: this.handleMonthChange,
510
- on: this.v3 ? undefined : {
511
- "change": this.handleMonthChange
512
- },
513
- style: {
514
- width: 'auto'
515
- }
516
- }), ' ', h(kendo_vue_inputs_1.NumericTextBox, {
517
- key: "monthday-day",
518
- min: 1,
519
- attrs: this.v3 ? undefined : {
520
- min: 1,
521
- max: 31,
522
- disabled: this.repeatOnRule !== 'monthday',
523
- value: this.monthDay,
524
- width: 'auto'
525
- },
526
- max: 31,
527
- disabled: this.repeatOnRule !== 'monthday',
528
- value: this.monthDay,
529
- onChange: this.handleMonthDayChange,
530
- on: this.v3 ? undefined : {
531
- "change": this.handleMonthDayChange
532
- },
533
- width: 'auto'
534
- })]
527
+ style: itemStyle,
528
+ content: yearlyMonthDay.call(this)
535
529
  }, {
536
530
  value: 'weekday',
537
531
  label: ' ',
538
- children: [h(kendo_vue_dropdowns_1.DropDownList, {
539
- key: "yearly-weekday-offset",
540
- textField: "text",
541
- attrs: this.v3 ? undefined : {
542
- textField: "text",
543
- dataItemKey: "value",
544
- disabled: this.repeatOnRule !== 'weekday',
545
- dataItems: this.offsets,
546
- value: this.offset
547
- },
548
- dataItemKey: "value",
549
- disabled: this.repeatOnRule !== 'weekday',
550
- dataItems: this.offsets,
551
- value: this.offset,
552
- onChange: this.handleOffsetChange,
553
- on: this.v3 ? undefined : {
554
- "change": this.handleOffsetChange
555
- },
556
- style: {
557
- width: 'auto'
558
- }
559
- }), ' ', h(kendo_vue_dropdowns_1.DropDownList, {
560
- key: "yearly-weekday-day",
561
- textField: "text",
562
- attrs: this.v3 ? undefined : {
563
- textField: "text",
564
- dataItemKey: "value",
565
- disabled: this.repeatOnRule !== 'weekday',
566
- value: this.weekDay,
567
- dataItems: this.extendedWeekDays
568
- },
569
- dataItemKey: "value",
570
- disabled: this.repeatOnRule !== 'weekday',
571
- value: this.weekDay,
572
- dataItems: this.extendedWeekDays,
573
- onChange: this.handleWeekDayChange,
574
- on: this.v3 ? undefined : {
575
- "change": this.handleWeekDayChange
576
- },
577
- style: {
578
- width: 'auto'
579
- }
580
- }), ' ', h("span", {
581
- key: "yearly-weekday-of-label"
582
- }, [this.localizeMessage(messages_1.recurrenceEditorYearlyOf, true), "\xA0"]), ' ', h(kendo_vue_dropdowns_1.DropDownList, {
583
- key: "yearly-weekday-month",
584
- textField: "text",
585
- attrs: this.v3 ? undefined : {
586
- textField: "text",
587
- dataItemKey: "value",
588
- disabled: this.repeatOnRule !== 'weekday',
589
- value: this.month,
590
- dataItems: this.months
591
- },
592
- dataItemKey: "value",
593
- disabled: this.repeatOnRule !== 'weekday',
594
- value: this.month,
595
- dataItems: this.months,
596
- onChange: this.handleMonthChange,
597
- on: this.v3 ? undefined : {
598
- "change": this.handleMonthChange
599
- },
600
- style: {
601
- width: 'auto'
602
- }
603
- })]
532
+ style: itemStyle,
533
+ content: yearlyWeekDay.call(this)
604
534
  }]
605
535
  })])]), this.frequency !== 'never' && h("div", {
606
536
  "class": "k-form-field"
607
- }, [h(kendo_vue_labels_1.Label, [this.localizeMessage(messages_1.recurrenceEditorEndLabel, true)]), h("div", {
537
+ }, [// @ts-ignore function children
538
+ h(kendo_vue_labels_1.Label, this.v3 ? function () {
539
+ return [_this2.localizeMessage(messages_1.recurrenceEditorEndLabel, true)];
540
+ } : [_this2.localizeMessage(messages_1.recurrenceEditorEndLabel, true)]), h("div", {
608
541
  "class": "k-form-field-wrap"
609
542
  }, [h(kendo_vue_inputs_1.RadioGroup, {
610
- item: RadioGroupListItem,
543
+ value: this.endRule,
611
544
  attrs: this.v3 ? undefined : {
612
- item: RadioGroupListItem,
613
545
  value: this.endRule,
614
546
  dataItems: [{
615
547
  value: 'never',
548
+ style: itemStyle,
616
549
  label: this.localizeMessage(messages_1.recurrenceEditorEndNever, true)
617
550
  }, {
618
551
  value: 'count',
552
+ style: itemStyle,
619
553
  label: this.localizeMessage(messages_1.recurrenceEditorEndAfter, true),
620
- children: [' ', h(kendo_vue_inputs_1.NumericTextBox, {
621
- key: "endrule-after-editor",
622
- id: "k-endrule-after",
623
- attrs: this.v3 ? undefined : {
624
- id: "k-endrule-after",
625
- min: 1,
626
- width: '70px',
627
- value: this.endRule === 'count' ? this.rrule.count : this.defaultCount,
628
- disabled: this.endRule !== 'count'
629
- },
630
- min: 1,
631
- width: '70px',
632
- value: this.endRule === 'count' ? this.rrule.count : this.defaultCount,
633
- onChange: this.handleCountChange,
634
- on: this.v3 ? undefined : {
635
- "change": this.handleCountChange
636
- },
637
- disabled: this.endRule !== 'count'
638
- }), ' ', h(kendo_vue_labels_1.Label, {
639
- key: "endrule-after-label",
640
- "class": 'k-radio-label',
641
- editorId: 'k-endrule-after',
642
- attrs: this.v3 ? undefined : {
643
- editorId: 'k-endrule-after'
644
- }
645
- }, [this.localizeMessage(messages_1.recurrenceEditorEndOccurrence, true)])]
554
+ content: count.call(this)
646
555
  }, {
647
556
  value: 'until',
557
+ style: itemStyle,
648
558
  label: this.localizeMessage(messages_1.recurrenceEditorEndOn, true),
649
- children: [' ', // @ts-ignore function children
650
- h(kendo_vue_dateinputs_1.DatePicker, {
651
- key: "k-endrule-until-editor",
652
- id: "k-endrule-until",
653
- attrs: this.v3 ? undefined : {
654
- id: "k-endrule-until",
655
- disabled: this.endRule !== 'until',
656
- min: this.$props.start,
657
- value: this.endRule === 'until' ? this.until : kendo_date_math_1.toLocalDate(this.defaultUntil),
658
- width: 'auto'
659
- },
660
- disabled: this.endRule !== 'until',
661
- min: this.$props.start,
662
- value: this.endRule === 'until' ? this.until : kendo_date_math_1.toLocalDate(this.defaultUntil),
663
- onChange: this.handleUntilChange,
664
- on: this.v3 ? undefined : {
665
- "change": this.handleUntilChange
666
- },
667
- width: 'auto'
668
- })]
559
+ content: dpUntil.call(this)
669
560
  }]
670
561
  },
671
- value: this.endRule,
672
562
  onChange: this.handleEndRuleChange,
673
563
  on: this.v3 ? undefined : {
674
564
  "change": this.handleEndRuleChange
675
565
  },
676
566
  dataItems: [{
677
567
  value: 'never',
568
+ style: itemStyle,
678
569
  label: this.localizeMessage(messages_1.recurrenceEditorEndNever, true)
679
570
  }, {
680
571
  value: 'count',
572
+ style: itemStyle,
681
573
  label: this.localizeMessage(messages_1.recurrenceEditorEndAfter, true),
682
- children: [' ', h(kendo_vue_inputs_1.NumericTextBox, {
683
- key: "endrule-after-editor",
684
- id: "k-endrule-after",
685
- attrs: this.v3 ? undefined : {
686
- id: "k-endrule-after",
687
- min: 1,
688
- width: '70px',
689
- value: this.endRule === 'count' ? this.rrule.count : this.defaultCount,
690
- disabled: this.endRule !== 'count'
691
- },
692
- min: 1,
693
- width: '70px',
694
- value: this.endRule === 'count' ? this.rrule.count : this.defaultCount,
695
- onChange: this.handleCountChange,
696
- on: this.v3 ? undefined : {
697
- "change": this.handleCountChange
698
- },
699
- disabled: this.endRule !== 'count'
700
- }), ' ', h(kendo_vue_labels_1.Label, {
701
- key: "endrule-after-label",
702
- "class": 'k-radio-label',
703
- editorId: 'k-endrule-after',
704
- attrs: this.v3 ? undefined : {
705
- editorId: 'k-endrule-after'
706
- }
707
- }, [this.localizeMessage(messages_1.recurrenceEditorEndOccurrence, true)])]
574
+ content: count.call(this)
708
575
  }, {
709
576
  value: 'until',
577
+ style: itemStyle,
710
578
  label: this.localizeMessage(messages_1.recurrenceEditorEndOn, true),
711
- children: [' ', h(kendo_vue_dateinputs_1.DatePicker, {
712
- key: "k-endrule-until-editor",
713
- id: "k-endrule-until",
714
- attrs: this.v3 ? undefined : {
715
- id: "k-endrule-until",
716
- disabled: this.endRule !== 'until',
717
- min: this.$props.start,
718
- value: this.endRule === 'until' ? this.until : kendo_date_math_1.toLocalDate(this.defaultUntil),
719
- width: 'auto'
720
- },
721
- disabled: this.endRule !== 'until',
722
- min: this.$props.start,
723
- value: this.endRule === 'until' ? this.until : kendo_date_math_1.toLocalDate(this.defaultUntil),
724
- onChange: this.handleUntilChange,
725
- on: this.v3 ? undefined : {
726
- "change": this.handleUntilChange
727
- },
728
- width: 'auto'
729
- })]
579
+ content: dpUntil.call(this)
730
580
  }]
731
581
  })])])])
732
582
  );
@@ -738,7 +588,7 @@ var RecurrenceEditorVue2 = {
738
588
  },
739
589
  onChangeHandler: function onChangeHandler(newRrule) {
740
590
  if (newRrule.freq === 'never') {
741
- this.$emits('change', {
591
+ this.$emit('change', {
742
592
  value: null
743
593
  });
744
594
  } else {
@@ -746,7 +596,7 @@ var RecurrenceEditorVue2 = {
746
596
  newRrule.weekStart = this.intl.firstDay();
747
597
  }
748
598
 
749
- this.$emits('change', {
599
+ this.$emit('change', {
750
600
  value: kendo_recurrence_1.serializeRule(newRrule, this.$props.timezone)
751
601
  });
752
602
  }