@progress/kendo-vue-scheduler 6.4.1-develop.2 → 6.4.2-develop.3
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/Scheduler.mjs +7 -7
- package/components/BaseView.js +1 -1
- package/components/BaseView.mjs +4 -4
- package/components/CurrentTimeMarkerArrow.mjs +3 -3
- package/components/DateHeaderCell.mjs +3 -3
- package/components/SchedulerForm.mjs +4 -4
- package/components/SchedulerOccurrenceDialog.mjs +3 -3
- package/components/SchedulerRemoveDialog.mjs +1 -1
- package/components/ShowMoreItemsButton.mjs +1 -1
- package/components/TimeHeaderCell.mjs +4 -4
- package/components/header/navigation/NavigationDatePicker.mjs +1 -1
- package/constants/main.js +1 -1
- package/constants/main.mjs +13 -13
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/FilterableComboBox.js +1 -1
- package/editors/FilterableComboBox.mjs +13 -5
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +9 -8
- package/editors/ZonedDateTime.mjs +1 -1
- package/hooks/useRowSync.js +1 -1
- package/hooks/useRowSync.mjs +4 -1
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +6 -6
- package/items/SchedulerItem.mjs +3 -3
- package/items/SchedulerViewItem.mjs +4 -4
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/recurrence/RecurrenceEditor.mjs +22 -22
- package/services/occurrenceService.mjs +1 -1
- package/slots/SchedulerEditSlot.js +1 -1
- package/slots/SchedulerEditSlot.mjs +9 -9
- package/slots/SchedulerSlot.mjs +1 -1
- package/slots/SchedulerViewSlot.mjs +4 -4
- package/views/agenda/AgendaView.mjs +1 -1
- package/views/common/SchedulerDrag.js +1 -1
- package/views/common/SchedulerDrag.mjs +4 -4
- package/views/common/SchedulerResize.js +1 -1
- package/views/common/SchedulerResize.mjs +4 -4
- package/views/day/DayViewVerticalSlotsRow.mjs +3 -3
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +7 -7
- package/views/month/MonthView.mjs +8 -8
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +26 -34
- package/views/time/TimelineViewBody.mjs +3 -3
- package/views/week/WeekView.mjs +1 -1
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as T, createVNode as r, isVNode as
|
|
9
|
-
import { BaseView as
|
|
10
|
-
import { Day as D,
|
|
11
|
-
import { HorizontalResourceIterator as
|
|
8
|
+
import { defineComponent as T, createVNode as r, isVNode as v } from "vue";
|
|
9
|
+
import { BaseView as b } from "../../components/BaseView.mjs";
|
|
10
|
+
import { Day as D, MS_PER_MINUTE as E, MS_PER_DAY as C, ZonedDate as g, getDate as x, addDays as A } from "@progress/kendo-date-math";
|
|
11
|
+
import { HorizontalResourceIterator as S } from "../common/HorizontalResourceIterator.mjs";
|
|
12
12
|
import { TimelineViewRowContent as O } from "./TimelineViewRowContent.mjs";
|
|
13
13
|
import { TimelineViewAllEventsRowContent as M } from "./TimelineViewAllEventsRowContent.mjs";
|
|
14
|
-
import { VerticalResourceIterator as
|
|
15
|
-
import {
|
|
14
|
+
import { VerticalResourceIterator as y } from "../common/VerticalResourceIterator.mjs";
|
|
15
|
+
import { orderSort as j, isInTimeRange as h, mapItemsToSlots as F, mapSlotsToItems as H, toUTCDateTime as w } from "../../utils/main.mjs";
|
|
16
16
|
import { toRanges as N } from "../../services/rangeService.mjs";
|
|
17
17
|
import { toSlots as V } from "../../services/slotsService.mjs";
|
|
18
18
|
import { toOccurrences as W } from "../../services/occurrenceService.mjs";
|
|
@@ -28,9 +28,9 @@ import { TimeHeaderCell as K } from "../../components/TimeHeaderCell.mjs";
|
|
|
28
28
|
import { useRowSync as z } from "../../hooks/useRowSync.mjs";
|
|
29
29
|
import { useCellSync as R } from "../../hooks/useCellSync.mjs";
|
|
30
30
|
function $(t) {
|
|
31
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
31
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !v(t);
|
|
32
32
|
}
|
|
33
|
-
const L = "t", X = 0,
|
|
33
|
+
const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
34
34
|
name: "KendoMultiDayTimelineView",
|
|
35
35
|
props: {
|
|
36
36
|
name: {
|
|
@@ -162,13 +162,13 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
162
162
|
},
|
|
163
163
|
ranges() {
|
|
164
164
|
return N(this.ks.dateRange, {
|
|
165
|
-
step:
|
|
165
|
+
step: C,
|
|
166
166
|
timezone: this.ks.timezone
|
|
167
167
|
});
|
|
168
168
|
},
|
|
169
169
|
timelineSlots() {
|
|
170
170
|
return V(this.ks.dateRange, {
|
|
171
|
-
step: this.slotDuration / this.slotDivisions *
|
|
171
|
+
step: this.slotDuration / this.slotDivisions * E
|
|
172
172
|
}, {
|
|
173
173
|
groups: this.ks.groups,
|
|
174
174
|
ranges: this.ranges
|
|
@@ -188,7 +188,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
188
188
|
groups: this.ks.groups,
|
|
189
189
|
ranges: this.ranges
|
|
190
190
|
}).filter((i) => this.viewStart.getTime() === this.viewEnd.getTime() || h(i.zonedStart, this.viewStart, this.viewEnd) || h(i.zonedEnd, this.viewStart, this.viewEnd) || h(new Date(i.zonedEnd.getTime() - (i.zonedEnd.getTime() - i.zonedStart.getTime()) / 2), this.viewStart, this.viewEnd));
|
|
191
|
-
return
|
|
191
|
+
return F(t, this.timelineSlots, !0), H(t, this.timelineSlots, !0), t;
|
|
192
192
|
},
|
|
193
193
|
compDragItem() {
|
|
194
194
|
return this.dragItem !== void 0 ? this.dragItem : this.currentDragItem;
|
|
@@ -204,11 +204,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
204
204
|
attribute: "data-depth-index",
|
|
205
205
|
explicitDepth: !0
|
|
206
206
|
}), z({
|
|
207
|
-
element: this.$el
|
|
208
|
-
selector: ".k-resource-row",
|
|
209
|
-
horizontalAttribute: "data-depth-index",
|
|
210
|
-
verticalAttribute: "data-resource-index",
|
|
211
|
-
applyTo: ".k-resource-cell"
|
|
207
|
+
element: this.$el
|
|
212
208
|
});
|
|
213
209
|
},
|
|
214
210
|
updated() {
|
|
@@ -218,15 +214,11 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
218
214
|
attribute: "data-depth-index",
|
|
219
215
|
explicitDepth: !0
|
|
220
216
|
}), z({
|
|
221
|
-
element: this.$el
|
|
222
|
-
selector: ".k-resource-row",
|
|
223
|
-
horizontalAttribute: "data-depth-index",
|
|
224
|
-
verticalAttribute: "data-resource-index",
|
|
225
|
-
applyTo: ".k-resource-cell"
|
|
217
|
+
element: this.$el
|
|
226
218
|
});
|
|
227
219
|
},
|
|
228
220
|
render() {
|
|
229
|
-
const t = f(this), i = this.$props.slotDuration, l = t.parseDate(this.$props.workDayStart), u = t.parseDate(this.$props.workDayEnd), p = [...this.items], o = [...this.timelineSlots], d = (this.ks.orientation === "horizontal" ? o.length : o.length / this.ks.groups.length) * (this.$props.columnWidth + U),
|
|
221
|
+
const t = f(this), i = this.$props.slotDuration, l = t.parseDate(this.$props.workDayStart), u = t.parseDate(this.$props.workDayEnd), p = [...this.items], o = [...this.timelineSlots], d = (this.ks.orientation === "horizontal" ? o.length : o.length / this.ks.groups.length) * (this.$props.columnWidth + U), m = function(e) {
|
|
230
222
|
return this.compDragItem && this.$props.editable.drag && (Array.isArray(this.compDragItem) ? this.compDragItem.map(function(a, s) {
|
|
231
223
|
return r(k, {
|
|
232
224
|
key: s,
|
|
@@ -241,7 +233,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
241
233
|
vertical: e,
|
|
242
234
|
item: this.$props.dataItem
|
|
243
235
|
}, null));
|
|
244
|
-
},
|
|
236
|
+
}, c = function(e) {
|
|
245
237
|
return this.compResizeItem && this.editable.resize && (Array.isArray(this.compResizeItem) ? this.compResizeItem.map(function(a, s) {
|
|
246
238
|
return r(I, {
|
|
247
239
|
key: s,
|
|
@@ -286,7 +278,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
286
278
|
}, null) : null;
|
|
287
279
|
}, this);
|
|
288
280
|
}, this)])];
|
|
289
|
-
return r(
|
|
281
|
+
return r(b, {
|
|
290
282
|
id: this.$props.id,
|
|
291
283
|
class: "k-scheduler-timeline-view",
|
|
292
284
|
viewProps: {
|
|
@@ -300,14 +292,14 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
300
292
|
style: {
|
|
301
293
|
width: d + "px"
|
|
302
294
|
}
|
|
303
|
-
}, [this.ks.orientation === "horizontal" ? r(
|
|
295
|
+
}, [this.ks.orientation === "horizontal" ? r(S, {
|
|
304
296
|
nested: !0,
|
|
305
297
|
group: this.ks.props.group,
|
|
306
298
|
resources: this.ks.props.resources,
|
|
307
299
|
rowContent: O
|
|
308
300
|
}, $(n) ? n : {
|
|
309
301
|
default: () => [n]
|
|
310
|
-
}) : r(
|
|
302
|
+
}) : r(y, {
|
|
311
303
|
wrapGroup: !0,
|
|
312
304
|
group: this.ks.props.group,
|
|
313
305
|
resources: this.ks.props.resources,
|
|
@@ -320,7 +312,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
320
312
|
width: d + "px"
|
|
321
313
|
},
|
|
322
314
|
ref: "bodyRef"
|
|
323
|
-
}, [this.ks.orientation === "horizontal" ? r(
|
|
315
|
+
}, [this.ks.orientation === "horizontal" ? r(S, {
|
|
324
316
|
group: this.ks.props.group,
|
|
325
317
|
resources: this.ks.props.resources,
|
|
326
318
|
rowContent: M
|
|
@@ -335,7 +327,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
335
327
|
timelineSlots: o,
|
|
336
328
|
onDataaction: this.handleDataAction
|
|
337
329
|
}, null)]
|
|
338
|
-
}) : r(
|
|
330
|
+
}) : r(y, {
|
|
339
331
|
nested: !0,
|
|
340
332
|
wrapGroup: !0,
|
|
341
333
|
group: this.ks.props.group,
|
|
@@ -351,7 +343,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
351
343
|
editable: this.$props.editable,
|
|
352
344
|
currentTimeMarker: this.$props.currentTimeMarker
|
|
353
345
|
}
|
|
354
|
-
}, null), this.hasMounted && p.sort(
|
|
346
|
+
}, null), this.hasMounted && p.sort(j).map(function(e) {
|
|
355
347
|
return r(P, {
|
|
356
348
|
key: e.isRecurring ? `${e.uid}:${e.group.index}:${e.range.index}:${e.originalStart}` : `${e.uid}:${e.group.index}:${e.range.index}`,
|
|
357
349
|
uid: e.uid,
|
|
@@ -390,7 +382,7 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
390
382
|
ignoreIsAllDay: !0,
|
|
391
383
|
vertical: !1
|
|
392
384
|
}, null);
|
|
393
|
-
}, this), this.compDragItem &&
|
|
385
|
+
}, this), this.compDragItem && m.call(this, !1), this.compResizeItem && c.call(this, !1)])]
|
|
394
386
|
});
|
|
395
387
|
},
|
|
396
388
|
methods: {
|
|
@@ -409,14 +401,14 @@ const L = "t", X = 0, ye = /* @__PURE__ */ T({
|
|
|
409
401
|
numberOfDays: i = 1,
|
|
410
402
|
timezone: l
|
|
411
403
|
}) => {
|
|
412
|
-
const u = g.fromLocalDate(t, l), p =
|
|
404
|
+
const u = g.fromLocalDate(t, l), p = x(u), o = A(p, i), d = g.fromUTCDate(w(p), l), m = g.fromUTCDate(w(o), l), c = new Date(d.getTime()), n = new Date(m.getTime());
|
|
413
405
|
return {
|
|
414
|
-
start:
|
|
406
|
+
start: c,
|
|
415
407
|
end: n,
|
|
416
408
|
zonedStart: d,
|
|
417
|
-
zonedEnd:
|
|
409
|
+
zonedEnd: m
|
|
418
410
|
};
|
|
419
411
|
};
|
|
420
412
|
export {
|
|
421
|
-
|
|
413
|
+
Se as MultiDayTimelineView
|
|
422
414
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as u, createVNode as l } from "vue";
|
|
9
9
|
import { SchedulerEditSlot as d } from "../../slots/SchedulerEditSlot.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { intersects as c, isInTimeRange as p, last as h, first as g } from "../../utils/main.mjs";
|
|
11
11
|
import { CurrentTimeMarker as m } from "../../components/CurrentTimeMarker.mjs";
|
|
12
12
|
const w = /* @__PURE__ */ u({
|
|
13
13
|
name: "KendoTimelineViewBody",
|
|
@@ -72,13 +72,13 @@ const w = /* @__PURE__ */ u({
|
|
|
72
72
|
index: s,
|
|
73
73
|
form: t.$props.form,
|
|
74
74
|
onDataaction: t.handleDataAction,
|
|
75
|
-
isWorkHour:
|
|
75
|
+
isWorkHour: p(n.zonedStart, t.workDayStart, t.workDayEnd),
|
|
76
76
|
col: e === "horizontal" ? n.range.index * a.length + s + a.length * r.length * (o || 0) : n.range.index * a.length + s,
|
|
77
77
|
row: e === "horizontal" ? 0 : o || 0,
|
|
78
78
|
expandable: !0,
|
|
79
79
|
editable: i
|
|
80
80
|
}, null);
|
|
81
|
-
}, this), this.$props.currentTimeMarker &&
|
|
81
|
+
}, this), this.$props.currentTimeMarker && c(g(r).start, h(r).end, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date(), !0) && l(m, {
|
|
82
82
|
groupIndex: o,
|
|
83
83
|
vertical: !0
|
|
84
84
|
}, null)]);
|
package/views/week/WeekView.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { defineComponent as h, createVNode as S } from "vue";
|
|
9
9
|
import { MultiDayView as k } from "../day/MultiDayView.mjs";
|
|
10
10
|
import { DAYS_IN_WEEK_COUNT as i } from "../../constants/main.mjs";
|
|
11
|
-
import { Day as l, ZonedDate as o,
|
|
11
|
+
import { Day as l, ZonedDate as o, getDate as m, firstDayInWeek as w, addDays as y } from "@progress/kendo-date-math";
|
|
12
12
|
import { weekViewTitle as p, messages as g } from "../../messages/main.mjs";
|
|
13
13
|
import { toUTCDateTime as d } from "../../utils/main.mjs";
|
|
14
14
|
import { provideLocalizationService as $ } from "@progress/kendo-vue-intl";
|