@progress/kendo-vue-scheduler 3.0.9-dev.202203011321 → 3.1.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/Scheduler.js +29 -1
- package/dist/es/components/header/view-selector/ViewSelectorList.js +9 -2
- package/dist/es/context/SchedulerResourceIteratorContext.d.ts +1 -0
- package/dist/es/context/SchedulerResourceIteratorContext.js +2 -1
- package/dist/es/items/SchedulerEditItem.js +7 -8
- package/dist/es/items/SchedulerItem.js +100 -27
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerSlot.js +77 -18
- package/dist/es/tasks/SchedulerTask.js +54 -3
- package/dist/es/views/common/VerticalResourceIterator.js +22 -13
- package/dist/npm/Scheduler.js +29 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +9 -2
- package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +1 -0
- package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -1
- package/dist/npm/items/SchedulerEditItem.js +7 -8
- package/dist/npm/items/SchedulerItem.js +100 -27
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerSlot.js +76 -17
- package/dist/npm/tasks/SchedulerTask.js +53 -2
- package/dist/npm/views/common/VerticalResourceIterator.js +22 -13
- package/package.json +12 -12
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var p in s) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
|
|
3
19
|
Object.defineProperty(exports, "__esModule", {
|
|
4
20
|
value: true
|
|
5
21
|
});
|
|
@@ -52,6 +68,12 @@ var SchedulerTaskVue2 = {
|
|
|
52
68
|
inject: {
|
|
53
69
|
kendoLocalizationService: {
|
|
54
70
|
default: null
|
|
71
|
+
},
|
|
72
|
+
taskClick: {
|
|
73
|
+
default: null
|
|
74
|
+
},
|
|
75
|
+
taskDoubleClick: {
|
|
76
|
+
default: null
|
|
55
77
|
}
|
|
56
78
|
},
|
|
57
79
|
created: function created() {
|
|
@@ -78,10 +100,17 @@ var SchedulerTaskVue2 = {
|
|
|
78
100
|
id: this.$props.id,
|
|
79
101
|
attrs: this.v3 ? undefined : {
|
|
80
102
|
id: this.$props.id,
|
|
81
|
-
tabIndex: this.$props.tabIndex || undefined
|
|
103
|
+
tabIndex: this.$props.tabIndex || undefined // Mouse
|
|
104
|
+
|
|
82
105
|
},
|
|
83
106
|
"class": 'k-task',
|
|
84
|
-
tabIndex: this.$props.tabIndex || undefined
|
|
107
|
+
tabIndex: this.$props.tabIndex || undefined,
|
|
108
|
+
onClick: this.handleClick,
|
|
109
|
+
on: this.v3 ? undefined : {
|
|
110
|
+
"click": this.handleClick,
|
|
111
|
+
"dblclick": this.handleDoubleClick
|
|
112
|
+
},
|
|
113
|
+
onDblclick: this.handleDoubleClick
|
|
85
114
|
}, [color && h("span", {
|
|
86
115
|
"class": "k-scheduler-mark",
|
|
87
116
|
style: {
|
|
@@ -114,6 +143,28 @@ var SchedulerTaskVue2 = {
|
|
|
114
143
|
event: event,
|
|
115
144
|
target: this.task
|
|
116
145
|
});
|
|
146
|
+
},
|
|
147
|
+
handleClick: function handleClick(event) {
|
|
148
|
+
var args = {
|
|
149
|
+
event: event,
|
|
150
|
+
target: {
|
|
151
|
+
props: __assign({}, this.$props),
|
|
152
|
+
element: this.$el
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
this.$emit('click', args);
|
|
156
|
+
this.taskClick(args);
|
|
157
|
+
},
|
|
158
|
+
handleDoubleClick: function handleDoubleClick(event) {
|
|
159
|
+
var args = {
|
|
160
|
+
event: event,
|
|
161
|
+
target: {
|
|
162
|
+
props: __assign({}, this.$props),
|
|
163
|
+
element: this.$el
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
this.$emit('doubleclick', args);
|
|
167
|
+
this.taskDoubleClick(args);
|
|
117
168
|
}
|
|
118
169
|
}
|
|
119
170
|
};
|
|
@@ -75,11 +75,13 @@ var VerticalResourceIteratorVue2 = {
|
|
|
75
75
|
if (args.depth === args.resources.length || !hasGroups) {
|
|
76
76
|
return (// @ts-ignore function children
|
|
77
77
|
h(SchedulerResourceIteratorContext_1.SchedulerResourceIteratorContext, {
|
|
78
|
-
|
|
78
|
+
noWrap: true,
|
|
79
79
|
attrs: this.v3 ? undefined : {
|
|
80
|
+
noWrap: true,
|
|
80
81
|
resource: args.resources[args.depth],
|
|
81
82
|
groupIndex: hasGroups ? args.groupIndex : 0
|
|
82
83
|
},
|
|
84
|
+
resource: args.resources[args.depth],
|
|
83
85
|
groupIndex: hasGroups ? args.groupIndex : 0
|
|
84
86
|
}, this.v3 ? function () {
|
|
85
87
|
return [children];
|
|
@@ -157,11 +159,13 @@ var VerticalResourceIteratorVue2 = {
|
|
|
157
159
|
if (args.depth === args.resources.length || !hasGroups) {
|
|
158
160
|
return (// @ts-ignore function children
|
|
159
161
|
h(SchedulerResourceIteratorContext_1.SchedulerResourceIteratorContext, {
|
|
160
|
-
|
|
162
|
+
noWrap: true,
|
|
161
163
|
attrs: this.v3 ? undefined : {
|
|
164
|
+
noWrap: true,
|
|
162
165
|
resource: args.resources[args.depth],
|
|
163
166
|
groupIndex: hasGroups ? args.groupIndex : undefined
|
|
164
167
|
},
|
|
168
|
+
resource: args.resources[args.depth],
|
|
165
169
|
groupIndex: hasGroups ? args.groupIndex : undefined
|
|
166
170
|
}, this.v3 ? function () {
|
|
167
171
|
return [children];
|
|
@@ -197,19 +201,24 @@ var VerticalResourceIteratorVue2 = {
|
|
|
197
201
|
|
|
198
202
|
var cellChildren = function cellChildren(children, currentResources, currentGroupIndex) {
|
|
199
203
|
var hasGroups = currentResources.length > 0;
|
|
200
|
-
return
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
return (// @ts-ignore function children
|
|
205
|
+
h(SchedulerResourceIteratorContext_1.SchedulerResourceIteratorContext, {
|
|
206
|
+
noWrap: true,
|
|
207
|
+
attrs: this.v3 ? undefined : {
|
|
208
|
+
noWrap: true,
|
|
209
|
+
resource: currentResources[currentGroupIndex],
|
|
210
|
+
groupIndex: hasGroups ? currentGroupIndex : undefined
|
|
211
|
+
},
|
|
206
212
|
resource: currentResources[currentGroupIndex],
|
|
207
213
|
groupIndex: hasGroups ? currentGroupIndex : undefined
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
214
|
+
}, this.v3 ? function () {
|
|
215
|
+
return [h("div", {
|
|
216
|
+
"class": "k-scheduler-cell k-group-content"
|
|
217
|
+
}, [children])];
|
|
218
|
+
} : [h("div", {
|
|
219
|
+
"class": "k-scheduler-cell k-group-content"
|
|
220
|
+
}, [children])])
|
|
221
|
+
);
|
|
213
222
|
};
|
|
214
223
|
|
|
215
224
|
var cellPrefix = function cellPrefix(currentResources) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-scheduler",
|
|
3
3
|
"description": "Kendo UI for Vue Scheduler package",
|
|
4
|
-
"version": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@progress/kendo-data-query": "^1.5.1",
|
|
44
44
|
"@progress/kendo-recurrence": "^1.0.1",
|
|
45
|
-
"@progress/kendo-vue-common": "3.0
|
|
45
|
+
"@progress/kendo-vue-common": "3.1.0",
|
|
46
46
|
"@telerik/kendo-draggable": "^2.2.1"
|
|
47
47
|
},
|
|
48
48
|
"@progress": {
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"@progress/kendo-date-math": "^1.4.1",
|
|
59
59
|
"@progress/kendo-drawing": "^1.8.0",
|
|
60
60
|
"@progress/kendo-licensing": "^1.0.1",
|
|
61
|
-
"@progress/kendo-vue-buttons": "3.0
|
|
62
|
-
"@progress/kendo-vue-dateinputs": "3.0
|
|
63
|
-
"@progress/kendo-vue-dialogs": "3.0
|
|
64
|
-
"@progress/kendo-vue-dropdowns": "3.0
|
|
65
|
-
"@progress/kendo-vue-form": "3.0
|
|
66
|
-
"@progress/kendo-vue-inputs": "3.0
|
|
67
|
-
"@progress/kendo-vue-intl": "3.0
|
|
68
|
-
"@progress/kendo-vue-labels": "3.0
|
|
69
|
-
"@progress/kendo-vue-popup": "3.0
|
|
70
|
-
"@progress/kendo-vue-progressbars": "3.0
|
|
61
|
+
"@progress/kendo-vue-buttons": "3.1.0",
|
|
62
|
+
"@progress/kendo-vue-dateinputs": "3.1.0",
|
|
63
|
+
"@progress/kendo-vue-dialogs": "3.1.0",
|
|
64
|
+
"@progress/kendo-vue-dropdowns": "3.1.0",
|
|
65
|
+
"@progress/kendo-vue-form": "3.1.0",
|
|
66
|
+
"@progress/kendo-vue-inputs": "3.1.0",
|
|
67
|
+
"@progress/kendo-vue-intl": "3.1.0",
|
|
68
|
+
"@progress/kendo-vue-labels": "3.1.0",
|
|
69
|
+
"@progress/kendo-vue-popup": "3.1.0",
|
|
70
|
+
"@progress/kendo-vue-progressbars": "3.1.0",
|
|
71
71
|
"cldr-core": "36.0.0",
|
|
72
72
|
"cldr-dates-full": "36.0.0",
|
|
73
73
|
"cldr-numbers-full": "36.0.0"
|