@progress/kendo-vue-scheduler 3.3.0-dev.202205100750 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
- package/dist/es/components/BaseView.js +0 -10
- package/dist/es/components/SchedulerForm.js +1 -1
- package/dist/es/components/footer/SchedulerFooter.d.ts +0 -1
- package/dist/es/components/header/SchedulerHeader.d.ts +0 -1
- package/dist/es/context/SchedulerContext.d.ts +0 -8
- package/dist/es/context/SchedulerContext.js +1 -202
- package/dist/es/context/SchedulerEditItemContext.d.ts +0 -5
- package/dist/es/context/SchedulerEditItemContext.js +1 -177
- package/dist/es/context/SchedulerEditSlotContext.js +1 -44
- package/dist/es/context/SchedulerEditTaskContext.d.ts +0 -1
- package/dist/es/context/SchedulerEditTaskContext.js +1 -33
- package/dist/es/context/SchedulerViewContext.d.ts +0 -1
- package/dist/es/context/SchedulerViewContext.js +1 -92
- package/dist/es/editors/SchedulerFormEditor.js +119 -118
- package/dist/es/hooks/index.d.ts +0 -1
- package/dist/es/hooks/index.js +0 -1
- package/dist/es/hooks/useAsyncMouseEnterLeave.js +1 -1
- package/dist/es/hooks/useEditable.js +1 -4
- package/dist/es/hooks/useRowSync.js +1 -2
- package/dist/es/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/es/hooks/useSchedulerSlot.js +1 -26
- package/dist/es/hooks/useSlotExpand.js +3 -35
- package/dist/es/hooks/useWorkHours.js +0 -7
- package/dist/es/items/SchedulerEditItem.d.ts +0 -2
- package/dist/es/items/SchedulerItem.d.ts +0 -2
- package/dist/es/items/SchedulerItem.js +1 -0
- package/dist/es/items/SchedulerViewItem.d.ts +0 -2
- package/dist/es/items/SchedulerViewItem.js +5 -6
- package/dist/es/models/SchedulerHandle.d.ts +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerEditSlot.d.ts +0 -2
- package/dist/es/slots/SchedulerSlot.d.ts +0 -2
- package/dist/es/slots/SchedulerSlot.js +1 -0
- package/dist/es/slots/SchedulerViewSlot.d.ts +0 -2
- package/dist/es/slots/SchedulerViewSlot.js +26 -0
- package/dist/es/tasks/SchedulerEditTask.d.ts +0 -2
- package/dist/es/tasks/SchedulerViewTask.d.ts +0 -2
- package/dist/es/utils/index.js +0 -2
- package/dist/es/views/month/MonthView.js +19 -3
- package/dist/npm/components/BaseView.js +0 -10
- package/dist/npm/components/SchedulerForm.js +1 -1
- package/dist/npm/components/footer/SchedulerFooter.d.ts +0 -1
- package/dist/npm/components/header/SchedulerHeader.d.ts +0 -1
- package/dist/npm/context/SchedulerContext.d.ts +0 -8
- package/dist/npm/context/SchedulerContext.js +2 -202
- package/dist/npm/context/SchedulerEditItemContext.d.ts +0 -5
- package/dist/npm/context/SchedulerEditItemContext.js +1 -177
- package/dist/npm/context/SchedulerEditSlotContext.js +2 -44
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +0 -1
- package/dist/npm/context/SchedulerEditTaskContext.js +1 -33
- package/dist/npm/context/SchedulerViewContext.d.ts +0 -1
- package/dist/npm/context/SchedulerViewContext.js +1 -92
- package/dist/npm/editors/SchedulerFormEditor.js +122 -120
- package/dist/npm/hooks/index.d.ts +0 -1
- package/dist/npm/hooks/index.js +0 -1
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +1 -1
- package/dist/npm/hooks/useEditable.js +2 -4
- package/dist/npm/hooks/useRowSync.js +1 -2
- package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerSlot.js +1 -26
- package/dist/npm/hooks/useSlotExpand.js +3 -35
- package/dist/npm/hooks/useWorkHours.js +0 -7
- package/dist/npm/items/SchedulerEditItem.d.ts +0 -2
- package/dist/npm/items/SchedulerItem.d.ts +0 -2
- package/dist/npm/items/SchedulerItem.js +1 -0
- package/dist/npm/items/SchedulerViewItem.d.ts +0 -2
- package/dist/npm/items/SchedulerViewItem.js +5 -6
- package/dist/npm/models/SchedulerHandle.d.ts +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerEditSlot.d.ts +0 -2
- package/dist/npm/slots/SchedulerSlot.d.ts +0 -2
- package/dist/npm/slots/SchedulerSlot.js +1 -0
- package/dist/npm/slots/SchedulerViewSlot.d.ts +0 -2
- package/dist/npm/slots/SchedulerViewSlot.js +26 -0
- package/dist/npm/tasks/SchedulerEditTask.d.ts +0 -2
- package/dist/npm/tasks/SchedulerViewTask.d.ts +0 -2
- package/dist/npm/utils/index.js +0 -2
- package/dist/npm/views/month/MonthView.js +18 -2
- package/package.json +12 -12
- package/dist/es/hooks/useSchedulerItem.d.ts +0 -6
- package/dist/es/hooks/useSchedulerItem.js +0 -33
- package/dist/npm/hooks/useSchedulerItem.d.ts +0 -6
- package/dist/npm/hooks/useSchedulerItem.js +0 -39
|
@@ -21,6 +21,7 @@ import { Error, Label as KLabel } from '@progress/kendo-vue-labels';
|
|
|
21
21
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
22
22
|
import { Field, FormElement } from '@progress/kendo-vue-form';
|
|
23
23
|
import { Input as KInput, Checkbox, TextArea } from '@progress/kendo-vue-inputs';
|
|
24
|
+
import { getListeners, templateRendering } from '@progress/kendo-vue-common';
|
|
24
25
|
import { messages, editorEventTitle, editorEventStart, editorEventEnd, editorEventDescription, editorEventAllDay, editorEventTimeZone, editorEventSeparateTimeZones, editorEventStartTimeZone, editorEventEndTimeZone, editorValidationRequired } from '../messages'; // import { useSchedulerPropsContext, useSchedulerFieldsContext } from '../context';
|
|
25
26
|
|
|
26
27
|
import { FilterableComboBox } from './FilterableComboBox';
|
|
@@ -253,33 +254,33 @@ var SchedulerFormEditorVue2 = {
|
|
|
253
254
|
other = __rest(_a, ["as"]);
|
|
254
255
|
|
|
255
256
|
var _b = this.$props,
|
|
256
|
-
TitleLabel = _b.titleLabel,
|
|
257
|
-
TitleError = _b.titleError,
|
|
258
|
-
TitleEditor = _b.titleEditor,
|
|
259
|
-
StartLabel = _b.startLabel,
|
|
260
|
-
StartError = _b.startError,
|
|
261
|
-
StartEditor = _b.startEditor,
|
|
262
|
-
StartTimezoneLabel = _b.startTimezoneLabel,
|
|
263
|
-
StartTimezoneError = _b.startTimezoneError,
|
|
264
|
-
StartTimezoneEditor = _b.startTimezoneEditor,
|
|
265
257
|
StartTimezoneCheckedLabel = _b.startTimezoneCheckedLabel,
|
|
266
258
|
StartTimezoneCheckedEditor = _b.startTimezoneCheckedEditor,
|
|
267
|
-
EndLabel = _b.endLabel,
|
|
268
|
-
EndError = _b.endError,
|
|
269
|
-
EndEditor = _b.endEditor,
|
|
270
|
-
EndTimezoneLabel = _b.endTimezoneLabel,
|
|
271
|
-
EndTimezoneError = _b.endTimezoneError,
|
|
272
|
-
EndTimezoneEditor = _b.endTimezoneEditor,
|
|
273
259
|
EndTimezoneCheckedLabel = _b.endTimezoneCheckedLabel,
|
|
274
|
-
EndTimezoneCheckedEditor = _b.endTimezoneCheckedEditor
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
260
|
+
EndTimezoneCheckedEditor = _b.endTimezoneCheckedEditor;
|
|
261
|
+
var titleLabel = templateRendering.call(this, this.titleLabel, getListeners.call(this));
|
|
262
|
+
var titleError = templateRendering.call(this, this.titleError, getListeners.call(this));
|
|
263
|
+
var titleEditor = templateRendering.call(this, this.titleEditor, getListeners.call(this));
|
|
264
|
+
var startLabel = templateRendering.call(this, this.startLabel, getListeners.call(this));
|
|
265
|
+
var startError = templateRendering.call(this, this.startError, getListeners.call(this));
|
|
266
|
+
var startEditor = templateRendering.call(this, this.startEditor, getListeners.call(this));
|
|
267
|
+
var startTimezoneLabel = templateRendering.call(this, this.startTimezoneLabel, getListeners.call(this));
|
|
268
|
+
var startTimezoneError = templateRendering.call(this, this.startTimezoneError, getListeners.call(this));
|
|
269
|
+
var startTimezoneEditor = templateRendering.call(this, this.startTimezoneEditor, getListeners.call(this));
|
|
270
|
+
var endLabel = templateRendering.call(this, this.endLabel, getListeners.call(this));
|
|
271
|
+
var endError = templateRendering.call(this, this.endError, getListeners.call(this));
|
|
272
|
+
var endEditor = templateRendering.call(this, this.endEditor, getListeners.call(this));
|
|
273
|
+
var endTimezoneLabel = templateRendering.call(this, this.endTimezoneLabel, getListeners.call(this));
|
|
274
|
+
var endTimezoneError = templateRendering.call(this, this.endTimezoneError, getListeners.call(this));
|
|
275
|
+
var endTimezoneEditor = templateRendering.call(this, this.endTimezoneEditor, getListeners.call(this));
|
|
276
|
+
var allDayLabel = templateRendering.call(this, this.allDayLabel, getListeners.call(this));
|
|
277
|
+
var allDayEditor = templateRendering.call(this, this.allDayEditor, getListeners.call(this));
|
|
278
|
+
var recurrenceEditor = templateRendering.call(this, this.recurrenceEditor, getListeners.call(this));
|
|
279
|
+
var descriptionLabel = templateRendering.call(this, this.descriptionLabel, getListeners.call(this));
|
|
280
|
+
var descriptionEditor = templateRendering.call(this, this.descriptionEditor, getListeners.call(this));
|
|
281
|
+
var descriptionError = templateRendering.call(this, this.descriptionError, getListeners.call(this));
|
|
282
|
+
var resourceLabel = templateRendering.call(this, this.resourceLabel, getListeners.call(this));
|
|
283
|
+
var resourceEditor = templateRendering.call(this, this.resourceEditor, getListeners.call(this));
|
|
283
284
|
var start = this.kendoForm.valueGetter(this.ks.fields.start) || new Date();
|
|
284
285
|
var startTimezone = this.kendoForm.valueGetter(this.ks.fields.startTimezone) || this.ks.timezone || '';
|
|
285
286
|
var endTimezone = this.kendoForm.valueGetter(this.ks.fields.endTimezone) || this.ks.timezone || '';
|
|
@@ -296,10 +297,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
296
297
|
name: title,
|
|
297
298
|
attrs: _this.v3 ? undefined : {
|
|
298
299
|
name: title,
|
|
299
|
-
component:
|
|
300
|
+
component: titleLabel,
|
|
300
301
|
editorId: 'k-scheduler-editor-title'
|
|
301
302
|
},
|
|
302
|
-
component:
|
|
303
|
+
component: titleLabel,
|
|
303
304
|
editorId: 'k-scheduler-editor-title'
|
|
304
305
|
}, _this.v3 ? function () {
|
|
305
306
|
return [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])];
|
|
@@ -311,19 +312,19 @@ var SchedulerFormEditorVue2 = {
|
|
|
311
312
|
id: "k-scheduler-editor-title",
|
|
312
313
|
name: title,
|
|
313
314
|
field: title,
|
|
314
|
-
component:
|
|
315
|
+
component: titleEditor
|
|
315
316
|
},
|
|
316
317
|
name: title,
|
|
317
318
|
field: title,
|
|
318
|
-
component:
|
|
319
|
+
component: titleEditor
|
|
319
320
|
}), _this.kendoForm.errors[title] && // @ts-ignore function children
|
|
320
321
|
h(Field, {
|
|
321
322
|
name: title,
|
|
322
323
|
attrs: _this.v3 ? undefined : {
|
|
323
324
|
name: title,
|
|
324
|
-
component:
|
|
325
|
+
component: titleError
|
|
325
326
|
},
|
|
326
|
-
component:
|
|
327
|
+
component: titleError
|
|
327
328
|
}, _this.v3 ? function () {
|
|
328
329
|
return [_this.kendoForm.errors[title]];
|
|
329
330
|
} : [_this.kendoForm.errors[title]])])]), h("div", {
|
|
@@ -333,10 +334,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
333
334
|
name: _this.ks.fields.start,
|
|
334
335
|
attrs: _this.v3 ? undefined : {
|
|
335
336
|
name: _this.ks.fields.start,
|
|
336
|
-
component:
|
|
337
|
+
component: startLabel,
|
|
337
338
|
editorId: "k-scheduler-editor-start"
|
|
338
339
|
},
|
|
339
|
-
component:
|
|
340
|
+
component: startLabel,
|
|
340
341
|
editorId: "k-scheduler-editor-start"
|
|
341
342
|
}, _this.v3 ? function () {
|
|
342
343
|
return [localization.toLanguageString(editorEventStart, messages[editorEventStart])];
|
|
@@ -351,13 +352,13 @@ var SchedulerFormEditorVue2 = {
|
|
|
351
352
|
id: "k-scheduler-editor-start",
|
|
352
353
|
name: _this.ks.fields.start,
|
|
353
354
|
width: "auto",
|
|
354
|
-
component:
|
|
355
|
+
component: startEditor,
|
|
355
356
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
356
357
|
timezone: _this.ks.timezone
|
|
357
358
|
},
|
|
358
359
|
name: _this.ks.fields.start,
|
|
359
360
|
width: "auto",
|
|
360
|
-
component:
|
|
361
|
+
component: startEditor,
|
|
361
362
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
362
363
|
timezone: _this.ks.timezone
|
|
363
364
|
}), _this.kendoForm.errors[_this.ks.fields.start] && // @ts-ignore function children
|
|
@@ -365,9 +366,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
365
366
|
name: _this.ks.fields.start,
|
|
366
367
|
attrs: _this.v3 ? undefined : {
|
|
367
368
|
name: _this.ks.fields.start,
|
|
368
|
-
component:
|
|
369
|
+
component: startError
|
|
369
370
|
},
|
|
370
|
-
component:
|
|
371
|
+
component: startError
|
|
371
372
|
}, _this.v3 ? function () {
|
|
372
373
|
return [_this.kendoForm.errors[_this.ks.fields.start]];
|
|
373
374
|
} : [_this.kendoForm.errors[_this.ks.fields.start]])]), "\xA0", timezones.length > 0 && h("div", [h(StartTimezoneCheckedEditor, {
|
|
@@ -381,7 +382,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
381
382
|
"change": _this.handleStartZoneCheckboxChange
|
|
382
383
|
},
|
|
383
384
|
value: _this.startZoneChecked
|
|
384
|
-
}),
|
|
385
|
+
}), // @ts-ignore function children
|
|
385
386
|
h(StartTimezoneCheckedLabel, {
|
|
386
387
|
"class": 'k-checkbox-label',
|
|
387
388
|
editorId: 'k-scheduler-editor-set-start-timezone',
|
|
@@ -400,17 +401,17 @@ var SchedulerFormEditorVue2 = {
|
|
|
400
401
|
name: _this.ks.fields.start,
|
|
401
402
|
attrs: _this.v3 ? undefined : {
|
|
402
403
|
name: _this.ks.fields.start,
|
|
403
|
-
component:
|
|
404
|
+
component: startTimezoneLabel
|
|
404
405
|
},
|
|
405
|
-
component:
|
|
406
|
+
component: startTimezoneLabel
|
|
406
407
|
}, _this.v3 ? function () {
|
|
407
408
|
return [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])];
|
|
408
409
|
} : [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])]), h("div", {
|
|
409
410
|
"class": "k-form-field-wrap"
|
|
410
411
|
}, [h(Field, {
|
|
411
|
-
component:
|
|
412
|
+
component: startTimezoneEditor,
|
|
412
413
|
attrs: _this.v3 ? undefined : {
|
|
413
|
-
component:
|
|
414
|
+
component: startTimezoneEditor,
|
|
414
415
|
value: startTimezone,
|
|
415
416
|
validator: _this.startTimezoneValidator,
|
|
416
417
|
dataItems: timezones,
|
|
@@ -425,9 +426,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
425
426
|
name: _this.ks.fields.startTimezone,
|
|
426
427
|
attrs: _this.v3 ? undefined : {
|
|
427
428
|
name: _this.ks.fields.startTimezone,
|
|
428
|
-
component:
|
|
429
|
+
component: startTimezoneError
|
|
429
430
|
},
|
|
430
|
-
component:
|
|
431
|
+
component: startTimezoneError
|
|
431
432
|
}, _this.v3 ? function () {
|
|
432
433
|
return [_this.kendoForm.errors[_this.ks.fields.startTimezone]];
|
|
433
434
|
} : [_this.kendoForm.errors[_this.ks.fields.startTimezone]])])]), h("div", {
|
|
@@ -437,10 +438,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
437
438
|
name: _this.ks.fields.end,
|
|
438
439
|
attrs: _this.v3 ? undefined : {
|
|
439
440
|
name: _this.ks.fields.end,
|
|
440
|
-
component:
|
|
441
|
+
component: endLabel,
|
|
441
442
|
editorId: "k-scheduler-editor-end"
|
|
442
443
|
},
|
|
443
|
-
component:
|
|
444
|
+
component: endLabel,
|
|
444
445
|
editorId: "k-scheduler-editor-end"
|
|
445
446
|
}, _this.v3 ? function () {
|
|
446
447
|
return [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])];
|
|
@@ -455,13 +456,13 @@ var SchedulerFormEditorVue2 = {
|
|
|
455
456
|
id: "k-scheduler-editor-end",
|
|
456
457
|
name: _this.ks.fields.end,
|
|
457
458
|
width: "auto",
|
|
458
|
-
component:
|
|
459
|
+
component: endEditor,
|
|
459
460
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
460
461
|
timezone: _this.ks.timezone
|
|
461
462
|
},
|
|
462
463
|
name: _this.ks.fields.end,
|
|
463
464
|
width: "auto",
|
|
464
|
-
component:
|
|
465
|
+
component: endEditor,
|
|
465
466
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
466
467
|
timezone: _this.ks.timezone
|
|
467
468
|
}), _this.kendoForm.errors[_this.ks.fields.end] && // @ts-ignore function children
|
|
@@ -469,9 +470,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
469
470
|
name: _this.ks.fields.end,
|
|
470
471
|
attrs: _this.v3 ? undefined : {
|
|
471
472
|
name: _this.ks.fields.end,
|
|
472
|
-
component:
|
|
473
|
+
component: endError
|
|
473
474
|
},
|
|
474
|
-
component:
|
|
475
|
+
component: endError
|
|
475
476
|
}, _this.v3 ? function () {
|
|
476
477
|
return [_this.kendoForm.errors[_this.ks.fields.end]];
|
|
477
478
|
} : [_this.kendoForm.errors[_this.ks.fields.end]])]), "\xA0", h("div", [_this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
|
|
@@ -504,9 +505,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
504
505
|
name: _this.ks.fields.endTimezone,
|
|
505
506
|
attrs: _this.v3 ? undefined : {
|
|
506
507
|
name: _this.ks.fields.endTimezone,
|
|
507
|
-
component:
|
|
508
|
+
component: endTimezoneLabel
|
|
508
509
|
},
|
|
509
|
-
component:
|
|
510
|
+
component: endTimezoneLabel
|
|
510
511
|
}, _this.v3 ? function () {
|
|
511
512
|
return [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])];
|
|
512
513
|
} : [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])]), h("div", {
|
|
@@ -517,21 +518,21 @@ var SchedulerFormEditorVue2 = {
|
|
|
517
518
|
value: endTimezone,
|
|
518
519
|
dataItems: timezones,
|
|
519
520
|
validator: _this.endTimezoneValidator,
|
|
520
|
-
component:
|
|
521
|
+
component: endTimezoneEditor,
|
|
521
522
|
name: _this.ks.fields.endTimezone
|
|
522
523
|
},
|
|
523
524
|
dataItems: timezones,
|
|
524
525
|
validator: _this.endTimezoneValidator,
|
|
525
|
-
component:
|
|
526
|
+
component: endTimezoneEditor,
|
|
526
527
|
name: _this.ks.fields.endTimezone
|
|
527
528
|
}), _this.kendoForm.errors[_this.ks.fields.endTimezone] && // @ts-ignore function children
|
|
528
529
|
h(Field, {
|
|
529
530
|
name: _this.ks.fields.endTimezone,
|
|
530
531
|
attrs: _this.v3 ? undefined : {
|
|
531
532
|
name: _this.ks.fields.endTimezone,
|
|
532
|
-
component:
|
|
533
|
+
component: endTimezoneError
|
|
533
534
|
},
|
|
534
|
-
component:
|
|
535
|
+
component: endTimezoneError
|
|
535
536
|
}, _this.v3 ? function () {
|
|
536
537
|
return [_this.kendoForm.errors[_this.ks.fields.endTimezone]];
|
|
537
538
|
} : [_this.kendoForm.errors[_this.ks.fields.endTimezone]])])]), h("div", {
|
|
@@ -550,10 +551,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
550
551
|
attrs: _this.v3 ? undefined : {
|
|
551
552
|
id: 'k-is-allday-checkbox',
|
|
552
553
|
name: _this.ks.fields.isAllDay,
|
|
553
|
-
component:
|
|
554
|
+
component: allDayEditor
|
|
554
555
|
},
|
|
555
556
|
name: _this.ks.fields.isAllDay,
|
|
556
|
-
component:
|
|
557
|
+
component: allDayEditor
|
|
557
558
|
}), "\xA0", // @ts-ignore function children
|
|
558
559
|
h(Field, {
|
|
559
560
|
name: _this.ks.fields.isAllDay,
|
|
@@ -561,18 +562,18 @@ var SchedulerFormEditorVue2 = {
|
|
|
561
562
|
name: _this.ks.fields.isAllDay,
|
|
562
563
|
field: _this.ks.fields.isAllDay,
|
|
563
564
|
editorId: 'k-is-allday-checkbox',
|
|
564
|
-
component:
|
|
565
|
+
component: allDayLabel
|
|
565
566
|
},
|
|
566
567
|
field: _this.ks.fields.isAllDay,
|
|
567
568
|
editorId: 'k-is-allday-checkbox',
|
|
568
569
|
"class": 'k-checkbox-label',
|
|
569
|
-
component:
|
|
570
|
+
component: allDayLabel
|
|
570
571
|
}, _this.v3 ? function () {
|
|
571
572
|
return [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])];
|
|
572
573
|
} : [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
|
|
573
|
-
component:
|
|
574
|
+
component: recurrenceEditor,
|
|
574
575
|
attrs: _this.v3 ? undefined : {
|
|
575
|
-
component:
|
|
576
|
+
component: recurrenceEditor,
|
|
576
577
|
changeOnInput: false,
|
|
577
578
|
field: _this.ks.fields.recurrenceRule,
|
|
578
579
|
name: _this.ks.fields.recurrenceRule,
|
|
@@ -589,17 +590,17 @@ var SchedulerFormEditorVue2 = {
|
|
|
589
590
|
name: _this.ks.fields.description,
|
|
590
591
|
attrs: _this.v3 ? undefined : {
|
|
591
592
|
name: _this.ks.fields.description,
|
|
592
|
-
component:
|
|
593
|
+
component: descriptionLabel
|
|
593
594
|
},
|
|
594
|
-
component:
|
|
595
|
+
component: descriptionLabel
|
|
595
596
|
}, _this.v3 ? function () {
|
|
596
597
|
return [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])];
|
|
597
598
|
} : [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])]), h("div", {
|
|
598
599
|
"class": "k-form-field-wrap"
|
|
599
600
|
}, [h(Field, {
|
|
600
|
-
component:
|
|
601
|
+
component: descriptionEditor,
|
|
601
602
|
attrs: _this.v3 ? undefined : {
|
|
602
|
-
component:
|
|
603
|
+
component: descriptionEditor,
|
|
603
604
|
name: _this.ks.fields.description,
|
|
604
605
|
rows: 1,
|
|
605
606
|
id: 'k-event-description'
|
|
@@ -615,9 +616,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
615
616
|
name: _this.ks.fields.description,
|
|
616
617
|
attrs: _this.v3 ? undefined : {
|
|
617
618
|
name: _this.ks.fields.description,
|
|
618
|
-
component:
|
|
619
|
+
component: descriptionError
|
|
619
620
|
},
|
|
620
|
-
component:
|
|
621
|
+
component: descriptionError
|
|
621
622
|
}, _this.v3 ? function () {
|
|
622
623
|
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
623
624
|
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
@@ -631,9 +632,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
631
632
|
name: resource.field,
|
|
632
633
|
attrs: this.v3 ? undefined : {
|
|
633
634
|
name: resource.field,
|
|
634
|
-
component:
|
|
635
|
+
component: resourceLabel
|
|
635
636
|
},
|
|
636
|
-
component:
|
|
637
|
+
component: resourceLabel
|
|
637
638
|
}), // @ts-ignore function children
|
|
638
639
|
h(KLabel, this.v3 ? function () {
|
|
639
640
|
return [resource.name];
|
|
@@ -641,7 +642,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
641
642
|
name: resource.field,
|
|
642
643
|
attrs: this.v3 ? undefined : {
|
|
643
644
|
name: resource.field,
|
|
644
|
-
component:
|
|
645
|
+
component: resourceEditor,
|
|
645
646
|
resource: resource,
|
|
646
647
|
multiple: resource.multiple,
|
|
647
648
|
dataItems: resource.data,
|
|
@@ -649,7 +650,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
649
650
|
valueField: resource.valueField,
|
|
650
651
|
colorField: resource.colorField
|
|
651
652
|
},
|
|
652
|
-
component:
|
|
653
|
+
component: resourceEditor,
|
|
653
654
|
resource: resource,
|
|
654
655
|
multiple: resource.multiple,
|
|
655
656
|
dataItems: resource.data,
|
|
@@ -674,10 +675,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
674
675
|
name: title,
|
|
675
676
|
attrs: _this.v3 ? undefined : {
|
|
676
677
|
name: title,
|
|
677
|
-
component:
|
|
678
|
+
component: titleLabel,
|
|
678
679
|
editorId: 'k-scheduler-editor-title'
|
|
679
680
|
},
|
|
680
|
-
component:
|
|
681
|
+
component: titleLabel,
|
|
681
682
|
editorId: 'k-scheduler-editor-title'
|
|
682
683
|
}, _this.v3 ? function () {
|
|
683
684
|
return [localization.toLanguageString(editorEventTitle, messages[editorEventTitle])];
|
|
@@ -689,18 +690,18 @@ var SchedulerFormEditorVue2 = {
|
|
|
689
690
|
id: "k-scheduler-editor-title",
|
|
690
691
|
name: title,
|
|
691
692
|
field: title,
|
|
692
|
-
component:
|
|
693
|
+
component: titleEditor
|
|
693
694
|
},
|
|
694
695
|
name: title,
|
|
695
696
|
field: title,
|
|
696
|
-
component:
|
|
697
|
+
component: titleEditor
|
|
697
698
|
}), _this.kendoForm.errors[title] && h(Field, {
|
|
698
699
|
name: title,
|
|
699
700
|
attrs: _this.v3 ? undefined : {
|
|
700
701
|
name: title,
|
|
701
|
-
component:
|
|
702
|
+
component: titleError
|
|
702
703
|
},
|
|
703
|
-
component:
|
|
704
|
+
component: titleError
|
|
704
705
|
}, _this.v3 ? function () {
|
|
705
706
|
return [_this.kendoForm.errors[title]];
|
|
706
707
|
} : [_this.kendoForm.errors[title]])])]), h("div", {
|
|
@@ -709,10 +710,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
709
710
|
name: _this.ks.fields.start,
|
|
710
711
|
attrs: _this.v3 ? undefined : {
|
|
711
712
|
name: _this.ks.fields.start,
|
|
712
|
-
component:
|
|
713
|
+
component: startLabel,
|
|
713
714
|
editorId: "k-scheduler-editor-start"
|
|
714
715
|
},
|
|
715
|
-
component:
|
|
716
|
+
component: startLabel,
|
|
716
717
|
editorId: "k-scheduler-editor-start"
|
|
717
718
|
}, _this.v3 ? function () {
|
|
718
719
|
return [localization.toLanguageString(editorEventStart, messages[editorEventStart])];
|
|
@@ -727,22 +728,22 @@ var SchedulerFormEditorVue2 = {
|
|
|
727
728
|
id: "k-scheduler-editor-start",
|
|
728
729
|
name: _this.ks.fields.start,
|
|
729
730
|
width: "auto",
|
|
730
|
-
component:
|
|
731
|
+
component: startEditor,
|
|
731
732
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
732
733
|
timezone: _this.ks.timezone
|
|
733
734
|
},
|
|
734
735
|
name: _this.ks.fields.start,
|
|
735
736
|
width: "auto",
|
|
736
|
-
component:
|
|
737
|
+
component: startEditor,
|
|
737
738
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
738
739
|
timezone: _this.ks.timezone
|
|
739
740
|
}), _this.kendoForm.errors[_this.ks.fields.start] && h(Field, {
|
|
740
741
|
name: _this.ks.fields.start,
|
|
741
742
|
attrs: _this.v3 ? undefined : {
|
|
742
743
|
name: _this.ks.fields.start,
|
|
743
|
-
component:
|
|
744
|
+
component: startError
|
|
744
745
|
},
|
|
745
|
-
component:
|
|
746
|
+
component: startError
|
|
746
747
|
}, _this.v3 ? function () {
|
|
747
748
|
return [_this.kendoForm.errors[_this.ks.fields.start]];
|
|
748
749
|
} : [_this.kendoForm.errors[_this.ks.fields.start]])]), "\xA0", timezones.length > 0 && h("div", [h(StartTimezoneCheckedEditor, {
|
|
@@ -756,7 +757,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
756
757
|
"change": _this.handleStartZoneCheckboxChange
|
|
757
758
|
},
|
|
758
759
|
value: _this.startZoneChecked
|
|
759
|
-
}),
|
|
760
|
+
}), h(StartTimezoneCheckedLabel, {
|
|
760
761
|
"class": 'k-checkbox-label',
|
|
761
762
|
editorId: 'k-scheduler-editor-set-start-timezone',
|
|
762
763
|
attrs: _this.v3 ? undefined : {
|
|
@@ -773,17 +774,17 @@ var SchedulerFormEditorVue2 = {
|
|
|
773
774
|
name: _this.ks.fields.start,
|
|
774
775
|
attrs: _this.v3 ? undefined : {
|
|
775
776
|
name: _this.ks.fields.start,
|
|
776
|
-
component:
|
|
777
|
+
component: startTimezoneLabel
|
|
777
778
|
},
|
|
778
|
-
component:
|
|
779
|
+
component: startTimezoneLabel
|
|
779
780
|
}, _this.v3 ? function () {
|
|
780
781
|
return [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])];
|
|
781
782
|
} : [localization.toLanguageString(editorEventStartTimeZone, messages[editorEventStartTimeZone])]), h("div", {
|
|
782
783
|
"class": "k-form-field-wrap"
|
|
783
784
|
}, [h(Field, {
|
|
784
|
-
component:
|
|
785
|
+
component: startTimezoneEditor,
|
|
785
786
|
attrs: _this.v3 ? undefined : {
|
|
786
|
-
component:
|
|
787
|
+
component: startTimezoneEditor,
|
|
787
788
|
value: startTimezone,
|
|
788
789
|
validator: _this.startTimezoneValidator,
|
|
789
790
|
dataItems: timezones,
|
|
@@ -797,9 +798,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
797
798
|
name: _this.ks.fields.startTimezone,
|
|
798
799
|
attrs: _this.v3 ? undefined : {
|
|
799
800
|
name: _this.ks.fields.startTimezone,
|
|
800
|
-
component:
|
|
801
|
+
component: startTimezoneError
|
|
801
802
|
},
|
|
802
|
-
component:
|
|
803
|
+
component: startTimezoneError
|
|
803
804
|
}, _this.v3 ? function () {
|
|
804
805
|
return [_this.kendoForm.errors[_this.ks.fields.startTimezone]];
|
|
805
806
|
} : [_this.kendoForm.errors[_this.ks.fields.startTimezone]])])]), h("div", {
|
|
@@ -808,10 +809,10 @@ var SchedulerFormEditorVue2 = {
|
|
|
808
809
|
name: _this.ks.fields.end,
|
|
809
810
|
attrs: _this.v3 ? undefined : {
|
|
810
811
|
name: _this.ks.fields.end,
|
|
811
|
-
component:
|
|
812
|
+
component: endLabel,
|
|
812
813
|
editorId: "k-scheduler-editor-end"
|
|
813
814
|
},
|
|
814
|
-
component:
|
|
815
|
+
component: endLabel,
|
|
815
816
|
editorId: "k-scheduler-editor-end"
|
|
816
817
|
}, _this.v3 ? function () {
|
|
817
818
|
return [localization.toLanguageString(editorEventEnd, messages[editorEventEnd])];
|
|
@@ -826,22 +827,22 @@ var SchedulerFormEditorVue2 = {
|
|
|
826
827
|
id: "k-scheduler-editor-end",
|
|
827
828
|
name: _this.ks.fields.end,
|
|
828
829
|
width: "auto",
|
|
829
|
-
component:
|
|
830
|
+
component: endEditor,
|
|
830
831
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
831
832
|
timezone: _this.ks.timezone
|
|
832
833
|
},
|
|
833
834
|
name: _this.ks.fields.end,
|
|
834
835
|
width: "auto",
|
|
835
|
-
component:
|
|
836
|
+
component: endEditor,
|
|
836
837
|
isAllDay: !!_this.kendoForm.values.isAllDay,
|
|
837
838
|
timezone: _this.ks.timezone
|
|
838
839
|
}), _this.kendoForm.errors[_this.ks.fields.end] && h(Field, {
|
|
839
840
|
name: _this.ks.fields.end,
|
|
840
841
|
attrs: _this.v3 ? undefined : {
|
|
841
842
|
name: _this.ks.fields.end,
|
|
842
|
-
component:
|
|
843
|
+
component: endError
|
|
843
844
|
},
|
|
844
|
-
component:
|
|
845
|
+
component: endError
|
|
845
846
|
}, _this.v3 ? function () {
|
|
846
847
|
return [_this.kendoForm.errors[_this.ks.fields.end]];
|
|
847
848
|
} : [_this.kendoForm.errors[_this.ks.fields.end]])]), "\xA0", h("div", [_this.startZoneChecked && [h(EndTimezoneCheckedEditor, {
|
|
@@ -872,9 +873,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
872
873
|
name: _this.ks.fields.endTimezone,
|
|
873
874
|
attrs: _this.v3 ? undefined : {
|
|
874
875
|
name: _this.ks.fields.endTimezone,
|
|
875
|
-
component:
|
|
876
|
+
component: endTimezoneLabel
|
|
876
877
|
},
|
|
877
|
-
component:
|
|
878
|
+
component: endTimezoneLabel
|
|
878
879
|
}, _this.v3 ? function () {
|
|
879
880
|
return [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])];
|
|
880
881
|
} : [localization.toLanguageString(editorEventEndTimeZone, messages[editorEventEndTimeZone])]), h("div", {
|
|
@@ -885,20 +886,20 @@ var SchedulerFormEditorVue2 = {
|
|
|
885
886
|
value: endTimezone,
|
|
886
887
|
dataItems: timezones,
|
|
887
888
|
validator: _this.endTimezoneValidator,
|
|
888
|
-
component:
|
|
889
|
+
component: endTimezoneEditor,
|
|
889
890
|
name: _this.ks.fields.endTimezone
|
|
890
891
|
},
|
|
891
892
|
dataItems: timezones,
|
|
892
893
|
validator: _this.endTimezoneValidator,
|
|
893
|
-
component:
|
|
894
|
+
component: endTimezoneEditor,
|
|
894
895
|
name: _this.ks.fields.endTimezone
|
|
895
896
|
}), _this.kendoForm.errors[_this.ks.fields.endTimezone] && h(Field, {
|
|
896
897
|
name: _this.ks.fields.endTimezone,
|
|
897
898
|
attrs: _this.v3 ? undefined : {
|
|
898
899
|
name: _this.ks.fields.endTimezone,
|
|
899
|
-
component:
|
|
900
|
+
component: endTimezoneError
|
|
900
901
|
},
|
|
901
|
-
component:
|
|
902
|
+
component: endTimezoneError
|
|
902
903
|
}, _this.v3 ? function () {
|
|
903
904
|
return [_this.kendoForm.errors[_this.ks.fields.endTimezone]];
|
|
904
905
|
} : [_this.kendoForm.errors[_this.ks.fields.endTimezone]])])]), h("div", {
|
|
@@ -917,28 +918,28 @@ var SchedulerFormEditorVue2 = {
|
|
|
917
918
|
attrs: _this.v3 ? undefined : {
|
|
918
919
|
id: 'k-is-allday-checkbox',
|
|
919
920
|
name: _this.ks.fields.isAllDay,
|
|
920
|
-
component:
|
|
921
|
+
component: allDayEditor
|
|
921
922
|
},
|
|
922
923
|
name: _this.ks.fields.isAllDay,
|
|
923
|
-
component:
|
|
924
|
+
component: allDayEditor
|
|
924
925
|
}), "\xA0", h(Field, {
|
|
925
926
|
name: _this.ks.fields.isAllDay,
|
|
926
927
|
attrs: _this.v3 ? undefined : {
|
|
927
928
|
name: _this.ks.fields.isAllDay,
|
|
928
929
|
field: _this.ks.fields.isAllDay,
|
|
929
930
|
editorId: 'k-is-allday-checkbox',
|
|
930
|
-
component:
|
|
931
|
+
component: allDayLabel
|
|
931
932
|
},
|
|
932
933
|
field: _this.ks.fields.isAllDay,
|
|
933
934
|
editorId: 'k-is-allday-checkbox',
|
|
934
935
|
"class": 'k-checkbox-label',
|
|
935
|
-
component:
|
|
936
|
+
component: allDayLabel
|
|
936
937
|
}, _this.v3 ? function () {
|
|
937
938
|
return [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])];
|
|
938
939
|
} : [localization.toLanguageString(editorEventAllDay, messages[editorEventAllDay])])])]), h(Field, {
|
|
939
|
-
component:
|
|
940
|
+
component: recurrenceEditor,
|
|
940
941
|
attrs: _this.v3 ? undefined : {
|
|
941
|
-
component:
|
|
942
|
+
component: recurrenceEditor,
|
|
942
943
|
changeOnInput: false,
|
|
943
944
|
field: _this.ks.fields.recurrenceRule,
|
|
944
945
|
name: _this.ks.fields.recurrenceRule,
|
|
@@ -954,17 +955,17 @@ var SchedulerFormEditorVue2 = {
|
|
|
954
955
|
name: _this.ks.fields.description,
|
|
955
956
|
attrs: _this.v3 ? undefined : {
|
|
956
957
|
name: _this.ks.fields.description,
|
|
957
|
-
component:
|
|
958
|
+
component: descriptionLabel
|
|
958
959
|
},
|
|
959
|
-
component:
|
|
960
|
+
component: descriptionLabel
|
|
960
961
|
}, _this.v3 ? function () {
|
|
961
962
|
return [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])];
|
|
962
963
|
} : [localization.toLanguageString(editorEventDescription, messages[editorEventDescription])]), h("div", {
|
|
963
964
|
"class": "k-form-field-wrap"
|
|
964
965
|
}, [h(Field, {
|
|
965
|
-
component:
|
|
966
|
+
component: descriptionEditor,
|
|
966
967
|
attrs: _this.v3 ? undefined : {
|
|
967
|
-
component:
|
|
968
|
+
component: descriptionEditor,
|
|
968
969
|
name: _this.ks.fields.description,
|
|
969
970
|
rows: 1,
|
|
970
971
|
id: 'k-event-description'
|
|
@@ -979,9 +980,9 @@ var SchedulerFormEditorVue2 = {
|
|
|
979
980
|
name: _this.ks.fields.description,
|
|
980
981
|
attrs: _this.v3 ? undefined : {
|
|
981
982
|
name: _this.ks.fields.description,
|
|
982
|
-
component:
|
|
983
|
+
component: descriptionError
|
|
983
984
|
},
|
|
984
|
-
component:
|
|
985
|
+
component: descriptionError
|
|
985
986
|
}, _this.v3 ? function () {
|
|
986
987
|
return [_this.kendoForm.errors[_this.ks.fields.description]];
|
|
987
988
|
} : [_this.kendoForm.errors[_this.ks.fields.description]])])]), (_this.ks.props.resources || []).map(function (resource) {
|
|
@@ -995,16 +996,16 @@ var SchedulerFormEditorVue2 = {
|
|
|
995
996
|
name: resource.field,
|
|
996
997
|
attrs: this.v3 ? undefined : {
|
|
997
998
|
name: resource.field,
|
|
998
|
-
component:
|
|
999
|
+
component: resourceLabel
|
|
999
1000
|
},
|
|
1000
|
-
component:
|
|
1001
|
+
component: resourceLabel
|
|
1001
1002
|
}), h(KLabel, this.v3 ? function () {
|
|
1002
1003
|
return [resource.name];
|
|
1003
1004
|
} : [resource.name]), h(Field, {
|
|
1004
1005
|
name: resource.field,
|
|
1005
1006
|
attrs: this.v3 ? undefined : {
|
|
1006
1007
|
name: resource.field,
|
|
1007
|
-
component:
|
|
1008
|
+
component: resourceEditor,
|
|
1008
1009
|
resource: resource,
|
|
1009
1010
|
multiple: resource.multiple,
|
|
1010
1011
|
dataItems: resource.data,
|
|
@@ -1012,7 +1013,7 @@ var SchedulerFormEditorVue2 = {
|
|
|
1012
1013
|
valueField: resource.valueField,
|
|
1013
1014
|
colorField: resource.colorField
|
|
1014
1015
|
},
|
|
1015
|
-
component:
|
|
1016
|
+
component: resourceEditor,
|
|
1016
1017
|
resource: resource,
|
|
1017
1018
|
multiple: resource.multiple,
|
|
1018
1019
|
dataItems: resource.data,
|
package/dist/es/hooks/index.d.ts
CHANGED
package/dist/es/hooks/index.js
CHANGED