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