@progress/kendo-vue-scheduler 3.1.4 → 3.2.0-dev.202204120815

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/components/SchedulerActionButtons.js +7 -1
  3. package/dist/es/components/SchedulerForm.js +68 -9
  4. package/dist/es/components/SchedulerOccurrenceDialog.js +52 -7
  5. package/dist/es/components/SchedulerRemoveDialog.js +52 -7
  6. package/dist/es/editors/ResourceEditor.js +13 -11
  7. package/dist/es/editors/SchedulerFormEditor.js +689 -334
  8. package/dist/es/editors/ZonedDateTime.d.ts +1 -0
  9. package/dist/es/editors/ZonedDateTime.js +5 -2
  10. package/dist/es/items/SchedulerEditItem.js +401 -211
  11. package/dist/es/items/SchedulerItem.js +104 -95
  12. package/dist/es/items/SchedulerViewItem.js +8 -2
  13. package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
  14. package/dist/es/items/hooks/use-drag-item.js +228 -153
  15. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  16. package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
  17. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  18. package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
  19. package/dist/es/messages/index.js +1 -1
  20. package/dist/es/package-metadata.js +1 -1
  21. package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
  22. package/dist/es/recurrence/RecurrenceEditor.js +5 -0
  23. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
  24. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  25. package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
  26. package/dist/es/tasks/SchedulerEditTask.js +118 -35
  27. package/dist/es/tasks/SchedulerTask.js +3 -2
  28. package/dist/es/tasks/SchedulerViewTask.js +15 -3
  29. package/dist/es/views/agenda/AgendaView.js +21 -9
  30. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  31. package/dist/es/views/agenda/AgendaViewBody.js +6 -1
  32. package/dist/es/views/common/SchedulerDrag.js +62 -11
  33. package/dist/es/views/day/DayView.js +4 -0
  34. package/dist/es/views/month/MonthView.js +9 -13
  35. package/dist/es/views/time/MultiDayTimelineView.js +28 -9
  36. package/dist/es/views/time/TimelineView.js +4 -0
  37. package/dist/es/views/week/WeekView.js +12 -2
  38. package/dist/es/views/week/WorkWeekView.js +12 -2
  39. package/dist/npm/components/SchedulerActionButtons.js +7 -1
  40. package/dist/npm/components/SchedulerForm.js +68 -9
  41. package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
  42. package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
  43. package/dist/npm/editors/ResourceEditor.js +12 -10
  44. package/dist/npm/editors/SchedulerFormEditor.js +674 -319
  45. package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
  46. package/dist/npm/editors/ZonedDateTime.js +4 -1
  47. package/dist/npm/items/SchedulerEditItem.js +400 -207
  48. package/dist/npm/items/SchedulerItem.js +104 -95
  49. package/dist/npm/items/SchedulerViewItem.js +8 -2
  50. package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
  51. package/dist/npm/items/hooks/use-drag-item.js +231 -153
  52. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  53. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
  54. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  55. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
  56. package/dist/npm/messages/index.js +1 -1
  57. package/dist/npm/package-metadata.js +1 -1
  58. package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
  59. package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
  60. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
  61. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  62. package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
  63. package/dist/npm/tasks/SchedulerEditTask.js +120 -35
  64. package/dist/npm/tasks/SchedulerTask.js +3 -2
  65. package/dist/npm/tasks/SchedulerViewTask.js +15 -3
  66. package/dist/npm/views/agenda/AgendaView.js +21 -9
  67. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  68. package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
  69. package/dist/npm/views/common/SchedulerDrag.js +62 -11
  70. package/dist/npm/views/day/DayView.js +4 -0
  71. package/dist/npm/views/month/MonthView.js +9 -13
  72. package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
  73. package/dist/npm/views/time/TimelineView.js +4 -0
  74. package/dist/npm/views/week/WeekView.js +12 -2
  75. package/dist/npm/views/week/WorkWeekView.js +12 -2
  76. package/package.json +12 -12
@@ -29,7 +29,13 @@ var SchedulerActionButtonsVue2 = {
29
29
 
30
30
  var h = gh || createElement;
31
31
  return (// @ts-ignore function children
32
- h(DialogActionsBar, this.v3 ? function () {
32
+ h(DialogActionsBar, {
33
+ buttonGroupClass: false,
34
+ attrs: this.v3 ? undefined : {
35
+ buttonGroupClass: false
36
+ },
37
+ "class": 'k-form-buttons'
38
+ }, this.v3 ? function () {
33
39
  return [// @ts-ignore function children
34
40
  h(Button, {
35
41
  type: "submit",
@@ -29,6 +29,12 @@ import { messages, editorValidationRequired, editorValidationStart, editorValida
29
29
 
30
30
  var SchedulerFormVue2 = {
31
31
  name: 'KendoSchedulerForm',
32
+ // @ts-ignore
33
+ emits: {
34
+ cancel: null,
35
+ close: null,
36
+ submit: null
37
+ },
32
38
  props: {
33
39
  dataItem: Object,
34
40
  renderForm: Object,
@@ -105,13 +111,27 @@ var SchedulerFormVue2 = {
105
111
  },
106
112
  validator: _this.formValidator
107
113
  }, _this.v3 ? function () {
108
- return [h(SchedulerFormEditor // {...this.renderProps}
114
+ return [// @ts-ignore function children
115
+ h(SchedulerFormEditor // {...this.renderProps}
109
116
  , {
110
117
  as: Editor,
111
118
  attrs: _this.v3 ? undefined : {
112
119
  as: Editor
113
120
  }
114
- }), h(SchedulerActionButtons, {
121
+ }, _this.v3 ? function () {
122
+ return [h(SchedulerActionButtons, {
123
+ editSaveMessage: editSaveMessage,
124
+ attrs: _this.v3 ? undefined : {
125
+ editSaveMessage: editSaveMessage,
126
+ editCancelMessage: editCancelMessage
127
+ },
128
+ editCancelMessage: editCancelMessage,
129
+ onCancel: _this.handleCancel,
130
+ on: _this.v3 ? undefined : {
131
+ "cancel": _this.handleCancel
132
+ }
133
+ })];
134
+ } : [h(SchedulerActionButtons, {
115
135
  editSaveMessage: editSaveMessage,
116
136
  attrs: _this.v3 ? undefined : {
117
137
  editSaveMessage: editSaveMessage,
@@ -122,13 +142,26 @@ var SchedulerFormVue2 = {
122
142
  on: _this.v3 ? undefined : {
123
143
  "cancel": _this.handleCancel
124
144
  }
125
- })];
145
+ })])];
126
146
  } : [h(SchedulerFormEditor, {
127
147
  as: Editor,
128
148
  attrs: _this.v3 ? undefined : {
129
149
  as: Editor
130
150
  }
131
- }), h(SchedulerActionButtons, {
151
+ }, _this.v3 ? function () {
152
+ return [h(SchedulerActionButtons, {
153
+ editSaveMessage: editSaveMessage,
154
+ attrs: _this.v3 ? undefined : {
155
+ editSaveMessage: editSaveMessage,
156
+ editCancelMessage: editCancelMessage
157
+ },
158
+ editCancelMessage: editCancelMessage,
159
+ onCancel: _this.handleCancel,
160
+ on: _this.v3 ? undefined : {
161
+ "cancel": _this.handleCancel
162
+ }
163
+ })];
164
+ } : [h(SchedulerActionButtons, {
132
165
  editSaveMessage: editSaveMessage,
133
166
  attrs: _this.v3 ? undefined : {
134
167
  editSaveMessage: editSaveMessage,
@@ -139,7 +172,7 @@ var SchedulerFormVue2 = {
139
172
  on: _this.v3 ? undefined : {
140
173
  "cancel": _this.handleCancel
141
174
  }
142
- })])];
175
+ })])])];
143
176
  } : [h(Form, {
144
177
  initialValues: _this.$props.dataItem,
145
178
  attrs: _this.v3 ? undefined : {
@@ -157,7 +190,20 @@ var SchedulerFormVue2 = {
157
190
  attrs: _this.v3 ? undefined : {
158
191
  as: Editor
159
192
  }
160
- }), h(SchedulerActionButtons, {
193
+ }, _this.v3 ? function () {
194
+ return [h(SchedulerActionButtons, {
195
+ editSaveMessage: editSaveMessage,
196
+ attrs: _this.v3 ? undefined : {
197
+ editSaveMessage: editSaveMessage,
198
+ editCancelMessage: editCancelMessage
199
+ },
200
+ editCancelMessage: editCancelMessage,
201
+ onCancel: _this.handleCancel,
202
+ on: _this.v3 ? undefined : {
203
+ "cancel": _this.handleCancel
204
+ }
205
+ })];
206
+ } : [h(SchedulerActionButtons, {
161
207
  editSaveMessage: editSaveMessage,
162
208
  attrs: _this.v3 ? undefined : {
163
209
  editSaveMessage: editSaveMessage,
@@ -168,13 +214,26 @@ var SchedulerFormVue2 = {
168
214
  on: _this.v3 ? undefined : {
169
215
  "cancel": _this.handleCancel
170
216
  }
171
- })];
217
+ })])];
172
218
  } : [h(SchedulerFormEditor, {
173
219
  as: Editor,
174
220
  attrs: _this.v3 ? undefined : {
175
221
  as: Editor
176
222
  }
177
- }), h(SchedulerActionButtons, {
223
+ }, _this.v3 ? function () {
224
+ return [h(SchedulerActionButtons, {
225
+ editSaveMessage: editSaveMessage,
226
+ attrs: _this.v3 ? undefined : {
227
+ editSaveMessage: editSaveMessage,
228
+ editCancelMessage: editCancelMessage
229
+ },
230
+ editCancelMessage: editCancelMessage,
231
+ onCancel: _this.handleCancel,
232
+ on: _this.v3 ? undefined : {
233
+ "cancel": _this.handleCancel
234
+ }
235
+ })];
236
+ } : [h(SchedulerActionButtons, {
178
237
  editSaveMessage: editSaveMessage,
179
238
  attrs: _this.v3 ? undefined : {
180
239
  editSaveMessage: editSaveMessage,
@@ -185,7 +244,7 @@ var SchedulerFormVue2 = {
185
244
  on: _this.v3 ? undefined : {
186
245
  "cancel": _this.handleCancel
187
246
  }
188
- })])])
247
+ })])])])
189
248
  );
190
249
  },
191
250
  methods: {
@@ -56,35 +56,80 @@ var SchedulerOccurrenceDialogVue2 = {
56
56
  h(Dialog, {
57
57
  title: titleMessage,
58
58
  attrs: this.v3 ? undefined : {
59
- title: titleMessage
59
+ title: titleMessage,
60
+ appendTo: 'body'
60
61
  },
62
+ appendTo: 'body',
61
63
  onClose: this.handleClose,
62
64
  on: this.v3 ? undefined : {
63
65
  "close": this.handleClose
64
66
  }
65
67
  }, this.v3 ? function () {
66
- return [confirmationMessage, h(DialogActionsBar, [h(Button, {
68
+ return [confirmationMessage, // @ts-ignore function children
69
+ h(DialogActionsBar, _this.v3 ? function () {
70
+ return [// @ts-ignore function children
71
+ h(Button, {
72
+ onClick: _this.handleOccurrenceClick,
73
+ on: _this.v3 ? undefined : {
74
+ "click": _this.handleOccurrenceClick
75
+ }
76
+ }, _this.v3 ? function () {
77
+ return [occurrenceMessage];
78
+ } : [occurrenceMessage]), // @ts-ignore function children
79
+ h(Button, {
80
+ onClick: _this.handleSeriesClick,
81
+ on: _this.v3 ? undefined : {
82
+ "click": _this.handleSeriesClick
83
+ }
84
+ }, _this.v3 ? function () {
85
+ return [seriesMessage];
86
+ } : [seriesMessage])];
87
+ } : [h(Button, {
67
88
  onClick: _this.handleOccurrenceClick,
68
89
  on: _this.v3 ? undefined : {
69
90
  "click": _this.handleOccurrenceClick
70
91
  }
71
- }, [occurrenceMessage]), h(Button, {
92
+ }, _this.v3 ? function () {
93
+ return [occurrenceMessage];
94
+ } : [occurrenceMessage]), h(Button, {
72
95
  onClick: _this.handleSeriesClick,
73
96
  on: _this.v3 ? undefined : {
74
97
  "click": _this.handleSeriesClick
75
98
  }
76
- }, [seriesMessage])])];
77
- } : [confirmationMessage, h(DialogActionsBar, [h(Button, {
99
+ }, _this.v3 ? function () {
100
+ return [seriesMessage];
101
+ } : [seriesMessage])])];
102
+ } : [confirmationMessage, h(DialogActionsBar, _this.v3 ? function () {
103
+ return [h(Button, {
104
+ onClick: _this.handleOccurrenceClick,
105
+ on: _this.v3 ? undefined : {
106
+ "click": _this.handleOccurrenceClick
107
+ }
108
+ }, _this.v3 ? function () {
109
+ return [occurrenceMessage];
110
+ } : [occurrenceMessage]), h(Button, {
111
+ onClick: _this.handleSeriesClick,
112
+ on: _this.v3 ? undefined : {
113
+ "click": _this.handleSeriesClick
114
+ }
115
+ }, _this.v3 ? function () {
116
+ return [seriesMessage];
117
+ } : [seriesMessage])];
118
+ } : [h(Button, {
78
119
  onClick: _this.handleOccurrenceClick,
79
120
  on: _this.v3 ? undefined : {
80
121
  "click": _this.handleOccurrenceClick
81
122
  }
82
- }, [occurrenceMessage]), h(Button, {
123
+ }, _this.v3 ? function () {
124
+ return [occurrenceMessage];
125
+ } : [occurrenceMessage]), h(Button, {
83
126
  onClick: _this.handleSeriesClick,
84
127
  on: _this.v3 ? undefined : {
85
128
  "click": _this.handleSeriesClick
86
129
  }
87
- }, [seriesMessage])])])
130
+ }, _this.v3 ? function () {
131
+ return [seriesMessage];
132
+ } : [seriesMessage])])])
88
133
  );
89
134
  },
90
135
  methods: {
@@ -41,35 +41,80 @@ var SchedulerRemoveDialogVue2 = {
41
41
  h(Dialog, {
42
42
  title: deleteDialogTitleMessage,
43
43
  attrs: this.v3 ? undefined : {
44
- title: deleteDialogTitleMessage
44
+ title: deleteDialogTitleMessage,
45
+ appendTo: 'body'
45
46
  },
47
+ appendTo: 'body',
46
48
  onClose: this.handleClose,
47
49
  on: this.v3 ? undefined : {
48
50
  "close": this.handleClose
49
51
  }
50
52
  }, this.v3 ? function () {
51
- return [removeMessage, h(DialogActionsBar, [h(Button, {
53
+ return [removeMessage, // @ts-ignore function children
54
+ h(DialogActionsBar, _this.v3 ? function () {
55
+ return [// @ts-ignore function children
56
+ h(Button, {
57
+ onClick: _this.handleCancel,
58
+ on: _this.v3 ? undefined : {
59
+ "click": _this.handleCancel
60
+ }
61
+ }, _this.v3 ? function () {
62
+ return [removeCancelMessage];
63
+ } : [removeCancelMessage]), // @ts-ignore function children
64
+ h(Button, {
65
+ onClick: _this.handleConfirm,
66
+ on: _this.v3 ? undefined : {
67
+ "click": _this.handleConfirm
68
+ }
69
+ }, _this.v3 ? function () {
70
+ return [removeConfirmMessage];
71
+ } : [removeConfirmMessage])];
72
+ } : [h(Button, {
52
73
  onClick: _this.handleCancel,
53
74
  on: _this.v3 ? undefined : {
54
75
  "click": _this.handleCancel
55
76
  }
56
- }, [removeCancelMessage]), h(Button, {
77
+ }, _this.v3 ? function () {
78
+ return [removeCancelMessage];
79
+ } : [removeCancelMessage]), h(Button, {
57
80
  onClick: _this.handleConfirm,
58
81
  on: _this.v3 ? undefined : {
59
82
  "click": _this.handleConfirm
60
83
  }
61
- }, [removeConfirmMessage])])];
62
- } : [removeMessage, h(DialogActionsBar, [h(Button, {
84
+ }, _this.v3 ? function () {
85
+ return [removeConfirmMessage];
86
+ } : [removeConfirmMessage])])];
87
+ } : [removeMessage, h(DialogActionsBar, _this.v3 ? function () {
88
+ return [h(Button, {
89
+ onClick: _this.handleCancel,
90
+ on: _this.v3 ? undefined : {
91
+ "click": _this.handleCancel
92
+ }
93
+ }, _this.v3 ? function () {
94
+ return [removeCancelMessage];
95
+ } : [removeCancelMessage]), h(Button, {
96
+ onClick: _this.handleConfirm,
97
+ on: _this.v3 ? undefined : {
98
+ "click": _this.handleConfirm
99
+ }
100
+ }, _this.v3 ? function () {
101
+ return [removeConfirmMessage];
102
+ } : [removeConfirmMessage])];
103
+ } : [h(Button, {
63
104
  onClick: _this.handleCancel,
64
105
  on: _this.v3 ? undefined : {
65
106
  "click": _this.handleCancel
66
107
  }
67
- }, [removeCancelMessage]), h(Button, {
108
+ }, _this.v3 ? function () {
109
+ return [removeCancelMessage];
110
+ } : [removeCancelMessage]), h(Button, {
68
111
  onClick: _this.handleConfirm,
69
112
  on: _this.v3 ? undefined : {
70
113
  "click": _this.handleConfirm
71
114
  }
72
- }, [removeConfirmMessage])])])
115
+ }, _this.v3 ? function () {
116
+ return [removeConfirmMessage];
117
+ } : [removeConfirmMessage])])])
73
118
  );
74
119
  },
75
120
  methods: {
@@ -3,10 +3,14 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var inject = allVue.inject;
6
- import { DropDownList } from '@progress/kendo-vue-dropdowns'; // tslint:enable:max-line-length
6
+ import { DropDownList, MultiSelect } from '@progress/kendo-vue-dropdowns'; // tslint:enable:max-line-length
7
7
 
8
8
  var ResourceEditorVue2 = {
9
9
  name: 'KendoResourceEditor',
10
+ // @ts-ignore
11
+ emits: {
12
+ change: null
13
+ },
10
14
  props: {
11
15
  resource: Object,
12
16
  dataItems: Array,
@@ -33,10 +37,7 @@ var ResourceEditorVue2 = {
33
37
  render: function render(createElement) {
34
38
  var _this = this;
35
39
 
36
- var h = gh || createElement; // const Component = this.$props.multiple
37
- // ? MultiSelect
38
- // : DropDownList;
39
- // const itemRenderer = React.useCallback(
40
+ var h = gh || createElement; // const itemRenderer = React.useCallback(
40
41
  // (element, itemProps) => {
41
42
  // const children = (
42
43
  // <>
@@ -94,11 +95,12 @@ var ResourceEditorVue2 = {
94
95
  }) : this.$props.dataItems.find(function (item) {
95
96
  return item[_this.$props.valueField] === _this.$props.value;
96
97
  });
97
- return h(DropDownList, {
98
+ var DropDownEditor = this.$props.multiple ? MultiSelect : DropDownList;
99
+ return h(DropDownEditor, {
98
100
  value: value,
99
101
  attrs: this.v3 ? undefined : {
100
102
  value: value,
101
- data: this.$props.dataItems,
103
+ dataItems: this.$props.dataItems,
102
104
  textField: this.$props.textField,
103
105
  dataItemKey: this.$props.valueField,
104
106
  valid: this.$props.valid,
@@ -108,7 +110,7 @@ var ResourceEditorVue2 = {
108
110
  on: this.v3 ? undefined : {
109
111
  "change": this.handleChange
110
112
  },
111
- data: this.$props.dataItems,
113
+ dataItems: this.$props.dataItems,
112
114
  textField: this.$props.textField,
113
115
  dataItemKey: this.$props.valueField,
114
116
  valid: this.$props.valid,
@@ -117,10 +119,10 @@ var ResourceEditorVue2 = {
117
119
  },
118
120
  methods: {
119
121
  handleChange: function handleChange(event) {
120
- var valueField = event.target.props.dataItemKey;
121
- var newValue = this.$props.multiple ? (event.target.value || []).map(function (item) {
122
+ var valueField = event.component.$props.dataItemKey;
123
+ var newValue = this.$props.multiple ? (event.value || []).map(function (item) {
122
124
  return item[valueField];
123
- }) : event.target.value[valueField];
125
+ }) : event.value[valueField];
124
126
  this.$emit('change', {
125
127
  value: newValue
126
128
  });