@progress/kendo-vue-scheduler 10.2.0-develop.10 → 10.2.0-develop.12
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.d.ts +157 -56
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +242 -214
- package/components/EventOverviewPopover.d.ts +62 -0
- package/components/EventOverviewPopover.js +8 -0
- package/components/EventOverviewPopover.mjs +191 -0
- package/components/MoreEventsPopover.d.ts +3 -1
- package/components/MoreEventsPopover.js +1 -1
- package/components/MoreEventsPopover.mjs +31 -27
- package/components/SchedulerActionButtons.js +1 -1
- package/components/SchedulerActionButtons.mjs +1 -0
- package/components/SchedulerForm.d.ts +412 -2
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +162 -60
- package/components/SchedulerQuickCreateForm.d.ts +118 -0
- package/components/SchedulerQuickCreateForm.js +8 -0
- package/components/SchedulerQuickCreateForm.mjs +249 -0
- package/constants/main.d.ts +2 -0
- package/constants/main.js +1 -1
- package/constants/main.mjs +10 -9
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/KeepResetCustomEventsDialog.d.ts +31 -0
- package/editors/KeepResetCustomEventsDialog.js +8 -0
- package/editors/KeepResetCustomEventsDialog.mjs +72 -0
- package/editors/SchedulerFormEditor.d.ts +151 -52
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +192 -139
- package/editors/SchedulerRecurrenceDialog.d.ts +2 -2
- package/editors/SchedulerRecurrenceDialog.js +1 -1
- package/editors/SchedulerRecurrenceDialog.mjs +126 -131
- package/editors/ZonedSplitDateTime.d.ts +32 -3
- package/editors/ZonedSplitDateTime.js +1 -1
- package/editors/ZonedSplitDateTime.mjs +112 -47
- package/hooks/useCloseOnAnchorScrollOut.d.ts +10 -0
- package/hooks/useCloseOnAnchorScrollOut.js +8 -0
- package/hooks/useCloseOnAnchorScrollOut.mjs +43 -0
- package/hooks/useCustomEventsConfirmation.d.ts +20 -0
- package/hooks/useCustomEventsConfirmation.js +8 -0
- package/hooks/useCustomEventsConfirmation.mjs +48 -0
- package/hooks/useDeferredClick.d.ts +12 -0
- package/hooks/useDeferredClick.js +8 -0
- package/hooks/useDeferredClick.mjs +22 -0
- package/hooks/useExclusivePopover.d.ts +26 -0
- package/hooks/useExclusivePopover.js +8 -0
- package/hooks/useExclusivePopover.mjs +30 -0
- package/hooks/useRecurrenceSummary.d.ts +3 -0
- package/hooks/useRecurrenceSummary.js +1 -1
- package/hooks/useRecurrenceSummary.mjs +68 -41
- package/index.d.mts +4 -2
- package/index.d.ts +4 -2
- package/index.js +1 -1
- package/index.mjs +83 -78
- package/items/SchedulerEditItem.d.ts +116 -12
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +212 -131
- package/items/SchedulerItem.d.ts +2 -1
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +28 -23
- package/items/SchedulerProportionalViewItem.d.ts +1 -0
- package/items/SchedulerProportionalViewItem.js +1 -1
- package/items/SchedulerProportionalViewItem.mjs +83 -68
- package/items/SchedulerViewItem.d.ts +1 -0
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +84 -75
- package/items/hooks/use-drag-item.js +1 -1
- package/items/hooks/use-drag-item.mjs +49 -48
- package/items/hooks/use-form-item.d.ts +1 -1
- package/items/hooks/use-remove-item.d.ts +1 -1
- package/items/hooks/use-resize-item.js +1 -1
- package/items/hooks/use-resize-item.mjs +74 -65
- package/messages/main.d.ts +42 -0
- package/messages/main.js +1 -1
- package/messages/main.mjs +303 -275
- package/models/InternalDataAction.d.ts +13 -0
- package/models/SchedulerView.d.ts +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -12
- package/recurrence/RecurrenceEditor.js +1 -1
- package/recurrence/RecurrenceEditor.mjs +42 -42
- package/recurrence/common.d.ts +10 -0
- package/recurrence/common.js +1 -1
- package/recurrence/common.mjs +39 -35
- package/services/itemsService.d.ts +5 -2
- package/services/itemsService.js +1 -1
- package/services/itemsService.mjs +46 -33
- package/services/occurrenceService.js +1 -1
- package/services/occurrenceService.mjs +18 -18
- package/slots/SchedulerEditSlot.d.ts +70 -8
- package/slots/SchedulerEditSlot.js +1 -1
- package/slots/SchedulerEditSlot.mjs +222 -141
- package/slots/SchedulerSlot.js +1 -1
- package/slots/SchedulerSlot.mjs +20 -16
- package/slots/SchedulerViewSlot.d.ts +3 -0
- package/slots/SchedulerViewSlot.js +1 -1
- package/slots/SchedulerViewSlot.mjs +21 -15
- package/tasks/SchedulerEditTask.d.ts +13 -2
- package/tasks/SchedulerEditTask.js +1 -1
- package/tasks/SchedulerEditTask.mjs +45 -30
- package/utils/main.d.ts +27 -0
- package/utils/main.js +1 -1
- package/utils/main.mjs +172 -136
- package/views/agenda/AgendaView.d.ts +6 -2
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +31 -29
- package/views/agenda/AgendaViewBody.d.ts +3 -3
- package/views/agenda/AgendaViewBody.js +1 -1
- package/views/agenda/AgendaViewBody.mjs +31 -29
- package/views/common/SchedulerDrag.d.ts +4 -2
- package/views/common/SchedulerDrag.js +1 -1
- package/views/common/SchedulerDrag.mjs +8 -7
- package/views/common/SchedulerResize.d.ts +4 -2
- package/views/common/SchedulerResize.js +1 -1
- package/views/common/SchedulerResize.mjs +14 -12
- package/views/common/VerticalResourceIterator.d.ts +3 -3
- package/views/common/VerticalResourceIterator.js +1 -1
- package/views/common/VerticalResourceIterator.mjs +34 -33
- package/views/day/DayView.d.ts +2 -0
- package/views/day/DayView.js +1 -1
- package/views/day/DayView.mjs +9 -7
- package/views/day/DayViewAllDaySlots.d.ts +7 -5
- package/views/day/DayViewAllDaySlots.js +1 -1
- package/views/day/DayViewAllDaySlots.mjs +24 -21
- package/views/day/DayViewMiddleRow.d.ts +7 -5
- package/views/day/DayViewMiddleRow.js +1 -1
- package/views/day/DayViewMiddleRow.mjs +18 -13
- package/views/day/DayViewVerticalRow.d.ts +7 -5
- package/views/day/DayViewVerticalRow.js +1 -1
- package/views/day/DayViewVerticalRow.mjs +23 -17
- package/views/day/DayViewVerticalSlotsRow.d.ts +7 -5
- package/views/day/DayViewVerticalSlotsRow.js +1 -1
- package/views/day/DayViewVerticalSlotsRow.mjs +34 -29
- package/views/day/MultiDayView.d.ts +13 -7
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +108 -95
- package/views/month/MonthView.d.ts +15 -4
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +105 -68
- package/views/month/MonthViewBody.d.ts +3 -3
- package/views/month/MonthViewBody.js +1 -1
- package/views/month/MonthViewBody.mjs +18 -16
- package/views/time/MultiDayTimelineView.d.ts +6 -4
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +64 -63
- package/views/time/TimelineView.d.ts +2 -0
- package/views/time/TimelineView.js +1 -1
- package/views/time/TimelineView.mjs +5 -3
- package/views/time/TimelineViewBody.d.ts +7 -5
- package/views/time/TimelineViewBody.js +1 -1
- package/views/time/TimelineViewBody.mjs +29 -27
- package/views/week/WeekView.d.ts +2 -0
- package/views/week/WeekView.js +1 -1
- package/views/week/WeekView.mjs +11 -10
- package/views/week/WorkWeekView.d.ts +2 -0
- package/views/week/WorkWeekView.js +1 -1
- package/views/week/WorkWeekView.mjs +17 -16
|
@@ -5,31 +5,32 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { BaseView as
|
|
10
|
-
import { Day as
|
|
11
|
-
import { HorizontalResourceIterator as
|
|
12
|
-
import { TimelineViewRowContent as
|
|
13
|
-
import { TimelineViewAllEventsRowContent as
|
|
14
|
-
import { VerticalResourceIterator as
|
|
15
|
-
import {
|
|
16
|
-
import { toRanges as
|
|
17
|
-
import { toSlots as
|
|
18
|
-
import { toOccurrences as
|
|
19
|
-
import { toItems as
|
|
20
|
-
import { TimelineViewBody as
|
|
21
|
-
import { BORDER_WIDTH as
|
|
22
|
-
import { provideIntlService as
|
|
23
|
-
import { SchedulerEditItem as
|
|
24
|
-
import { DateHeaderCell as
|
|
25
|
-
import { TimeHeaderCell as
|
|
26
|
-
import { useRowSync as
|
|
8
|
+
import { defineComponent as D, createVNode as i, isVNode as k } from "vue";
|
|
9
|
+
import { BaseView as b } from "../../components/BaseView.mjs";
|
|
10
|
+
import { Day as m, MS_PER_MINUTE as R, MS_PER_DAY as T, ZonedDate as h, getDate as I, addDays as v } from "@progress/kendo-date-math";
|
|
11
|
+
import { HorizontalResourceIterator as f } from "../common/HorizontalResourceIterator.mjs";
|
|
12
|
+
import { TimelineViewRowContent as z } from "./TimelineViewRowContent.mjs";
|
|
13
|
+
import { TimelineViewAllEventsRowContent as $ } from "./TimelineViewAllEventsRowContent.mjs";
|
|
14
|
+
import { VerticalResourceIterator as g } from "../common/VerticalResourceIterator.mjs";
|
|
15
|
+
import { emitDataAction as E, orderSort as O, mapItemsToSlots as C, mapSlotsToItems as x, isInTimeRange as F, toUTCDateTime as S } from "../../utils/main.mjs";
|
|
16
|
+
import { toRanges as M } from "../../services/rangeService.mjs";
|
|
17
|
+
import { toSlots as A } from "../../services/slotsService.mjs";
|
|
18
|
+
import { toOccurrences as j } from "../../services/occurrenceService.mjs";
|
|
19
|
+
import { toItems as H, inTimeRange as N } from "../../services/itemsService.mjs";
|
|
20
|
+
import { TimelineViewBody as V } from "./TimelineViewBody.mjs";
|
|
21
|
+
import { BORDER_WIDTH as W } from "../../constants/main.mjs";
|
|
22
|
+
import { provideIntlService as p } from "@progress/kendo-vue-intl";
|
|
23
|
+
import { SchedulerEditItem as _ } from "../../items/SchedulerEditItem.mjs";
|
|
24
|
+
import { DateHeaderCell as B } from "../../components/DateHeaderCell.mjs";
|
|
25
|
+
import { TimeHeaderCell as U } from "../../components/TimeHeaderCell.mjs";
|
|
26
|
+
import { useRowSync as q } from "../../hooks/useRowSync.mjs";
|
|
27
27
|
import { useCellSync as y } from "../../hooks/useCellSync.mjs";
|
|
28
|
-
function
|
|
29
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
28
|
+
function w(t) {
|
|
29
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !k(t);
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const L = "t", P = 0, me = /* @__PURE__ */ D({
|
|
32
32
|
name: "KendoMultiDayTimelineView",
|
|
33
|
+
emits: ["dataaction"],
|
|
33
34
|
props: {
|
|
34
35
|
name: {
|
|
35
36
|
type: String,
|
|
@@ -60,7 +61,7 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
60
61
|
dateRange: {
|
|
61
62
|
type: [Function, Object],
|
|
62
63
|
default: function() {
|
|
63
|
-
return
|
|
64
|
+
return G;
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
selectedDateFormat: {
|
|
@@ -97,11 +98,11 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
97
98
|
},
|
|
98
99
|
workWeekStart: {
|
|
99
100
|
type: Number,
|
|
100
|
-
default:
|
|
101
|
+
default: m.Monday
|
|
101
102
|
},
|
|
102
103
|
workWeekEnd: {
|
|
103
104
|
type: Number,
|
|
104
|
-
default:
|
|
105
|
+
default: m.Friday
|
|
105
106
|
},
|
|
106
107
|
slotDivisions: {
|
|
107
108
|
type: Number,
|
|
@@ -130,7 +131,7 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
130
131
|
type: [Boolean, Object],
|
|
131
132
|
default: !1
|
|
132
133
|
},
|
|
133
|
-
|
|
134
|
+
onDataAction: Function
|
|
134
135
|
},
|
|
135
136
|
data() {
|
|
136
137
|
return {
|
|
@@ -151,43 +152,43 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
151
152
|
},
|
|
152
153
|
computed: {
|
|
153
154
|
viewStart() {
|
|
154
|
-
this.intl =
|
|
155
|
+
this.intl = p(this);
|
|
155
156
|
const t = this.intl.parseDate(this.$props.workDayStart), r = this.intl.parseDate(this.$props.startTime);
|
|
156
157
|
return this.showWorkHours ? t : r;
|
|
157
158
|
},
|
|
158
159
|
viewEnd() {
|
|
159
|
-
this.intl =
|
|
160
|
+
this.intl = p(this);
|
|
160
161
|
const t = this.intl.parseDate(this.$props.workDayEnd), r = this.intl.parseDate(this.$props.endTime);
|
|
161
162
|
return this.showWorkHours ? t : r;
|
|
162
163
|
},
|
|
163
164
|
ranges() {
|
|
164
|
-
return
|
|
165
|
-
step:
|
|
165
|
+
return M(this.ks.dateRange, {
|
|
166
|
+
step: T,
|
|
166
167
|
timezone: this.ks.timezone
|
|
167
168
|
});
|
|
168
169
|
},
|
|
169
170
|
timelineSlots() {
|
|
170
|
-
return
|
|
171
|
+
return A(this.ks.dateRange, {
|
|
171
172
|
step: this.slotDuration / this.slotDivisions * R
|
|
172
173
|
}, {
|
|
173
174
|
groups: this.ks.groups,
|
|
174
175
|
ranges: this.ranges
|
|
175
|
-
}).filter((r) =>
|
|
176
|
+
}).filter((r) => F(r.zonedStart, this.viewStart, this.viewEnd) || this.viewStart.getTime() === this.viewEnd.getTime());
|
|
176
177
|
},
|
|
177
178
|
occurrences() {
|
|
178
|
-
return
|
|
179
|
+
return j(this.ks.dataItems, {
|
|
179
180
|
dateRange: this.ks.dateRange,
|
|
180
181
|
fields: this.ks.fields,
|
|
181
182
|
timezone: this.ks.timezone
|
|
182
183
|
});
|
|
183
184
|
},
|
|
184
185
|
items() {
|
|
185
|
-
const t =
|
|
186
|
+
const t = H(this.occurrences, {
|
|
186
187
|
timezone: this.ks.timezone
|
|
187
188
|
}, {
|
|
188
189
|
groups: this.ks.groups,
|
|
189
190
|
ranges: this.ranges
|
|
190
|
-
}).filter((r) =>
|
|
191
|
+
}).filter((r) => N(r, this.viewStart, this.viewEnd));
|
|
191
192
|
return C(t, this.timelineSlots, !0), x(t, this.timelineSlots, !0), t;
|
|
192
193
|
},
|
|
193
194
|
compDragItem() {
|
|
@@ -217,12 +218,12 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
217
218
|
}), this.scheduleRowSync();
|
|
218
219
|
},
|
|
219
220
|
render() {
|
|
220
|
-
const t =
|
|
221
|
+
const t = p(this), r = this.$props.slotDuration, a = t.parseDate(this.$props.workDayStart), l = t.parseDate(this.$props.workDayEnd), c = [...this.items], s = [...this.timelineSlots], u = (this.ks.orientation === "horizontal" ? s.length : s.length / this.ks.groups.length) * (this.$props.columnWidth + W), n = [i("div", {
|
|
221
222
|
class: "k-scheduler-row"
|
|
222
|
-
}, [this.ranges.map(function(e,
|
|
223
|
-
return i(
|
|
223
|
+
}, [this.ranges.map(function(e, d) {
|
|
224
|
+
return i(B, {
|
|
224
225
|
as: this.$props.dateHeaderCell,
|
|
225
|
-
key:
|
|
226
|
+
key: d,
|
|
226
227
|
date: e.zonedStart,
|
|
227
228
|
start: e.start,
|
|
228
229
|
end: e.end,
|
|
@@ -231,19 +232,19 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
231
232
|
}, this)]), i("div", {
|
|
232
233
|
class: "k-scheduler-row",
|
|
233
234
|
ref: "timeRef"
|
|
234
|
-
}, [this.ranges.map(function(e,
|
|
235
|
-
return s.filter((o) => o.group.index ===
|
|
236
|
-
return o.zonedStart.getMinutes() % r === 0 ? i(
|
|
235
|
+
}, [this.ranges.map(function(e, d) {
|
|
236
|
+
return s.filter((o) => o.group.index === P && o.range.index === d).map(function(o) {
|
|
237
|
+
return o.zonedStart.getMinutes() % r === 0 ? i(U, {
|
|
237
238
|
key: o.index,
|
|
238
239
|
as: this.$props.timeHeaderCell,
|
|
239
|
-
format:
|
|
240
|
+
format: L,
|
|
240
241
|
date: o.zonedStart,
|
|
241
242
|
start: o.zonedStart,
|
|
242
243
|
end: o.zonedEnd
|
|
243
244
|
}, null) : null;
|
|
244
245
|
}, this);
|
|
245
246
|
}, this)])];
|
|
246
|
-
return i(
|
|
247
|
+
return i(b, {
|
|
247
248
|
id: this.$props.id,
|
|
248
249
|
class: "k-scheduler-timelineview",
|
|
249
250
|
viewProps: {
|
|
@@ -255,34 +256,34 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
255
256
|
default: () => [i("div", {
|
|
256
257
|
class: "k-scheduler-head",
|
|
257
258
|
style: {
|
|
258
|
-
width:
|
|
259
|
+
width: u + "px"
|
|
259
260
|
}
|
|
260
|
-
}, [this.ks.orientation === "horizontal" ? i(
|
|
261
|
+
}, [this.ks.orientation === "horizontal" ? i(f, {
|
|
261
262
|
nested: !0,
|
|
262
263
|
group: this.ks.props.group,
|
|
263
264
|
resources: this.ks.props.resources,
|
|
264
|
-
rowContent:
|
|
265
|
-
},
|
|
265
|
+
rowContent: z
|
|
266
|
+
}, w(n) ? n : {
|
|
266
267
|
default: () => [n]
|
|
267
|
-
}) : i(
|
|
268
|
+
}) : i(g, {
|
|
268
269
|
wrapGroup: !0,
|
|
269
270
|
group: this.ks.props.group,
|
|
270
271
|
resources: this.ks.props.resources,
|
|
271
272
|
editable: this.$props.editable
|
|
272
|
-
},
|
|
273
|
+
}, w(n) ? n : {
|
|
273
274
|
default: () => [n]
|
|
274
275
|
})]), i("div", {
|
|
275
276
|
class: "k-scheduler-body",
|
|
276
277
|
style: {
|
|
277
|
-
width:
|
|
278
|
+
width: u + "px"
|
|
278
279
|
},
|
|
279
280
|
ref: "bodyRef"
|
|
280
|
-
}, [this.ks.orientation === "horizontal" ? i(
|
|
281
|
+
}, [this.ks.orientation === "horizontal" ? i(f, {
|
|
281
282
|
group: this.ks.props.group,
|
|
282
283
|
resources: this.ks.props.resources,
|
|
283
|
-
rowContent:
|
|
284
|
+
rowContent: $
|
|
284
285
|
}, {
|
|
285
|
-
default: () => [i(
|
|
286
|
+
default: () => [i(V, {
|
|
286
287
|
editable: this.$props.editable,
|
|
287
288
|
slotRender: this.$props.slotRender,
|
|
288
289
|
viewSlot: this.$props.viewSlot,
|
|
@@ -292,7 +293,7 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
292
293
|
timelineSlots: s,
|
|
293
294
|
onDataaction: this.handleDataAction
|
|
294
295
|
}, null)]
|
|
295
|
-
}) : i(
|
|
296
|
+
}) : i(g, {
|
|
296
297
|
nested: !0,
|
|
297
298
|
wrapGroup: !0,
|
|
298
299
|
group: this.ks.props.group,
|
|
@@ -309,7 +310,7 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
309
310
|
currentTimeMarker: this.$props.currentTimeMarker
|
|
310
311
|
}
|
|
311
312
|
}, null), this.hasMounted && c.sort(O).map(function(e) {
|
|
312
|
-
return i(
|
|
313
|
+
return i(_, {
|
|
313
314
|
key: e.isRecurring ? `${e.uid}:${e.group.index}:${e.range.index}:${e.originalStart}` : `${e.uid}:${e.group.index}:${e.range.index}`,
|
|
314
315
|
uid: e.uid,
|
|
315
316
|
start: e.start,
|
|
@@ -361,7 +362,7 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
361
362
|
},
|
|
362
363
|
runRowSync() {
|
|
363
364
|
const t = this.$el ? this.$el.closest(".k-scheduler-layout") : null;
|
|
364
|
-
t &&
|
|
365
|
+
t && q({
|
|
365
366
|
element: t,
|
|
366
367
|
selector: ".k-resource-row",
|
|
367
368
|
horizontalAttribute: "data-depth-index",
|
|
@@ -380,7 +381,7 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
380
381
|
}));
|
|
381
382
|
},
|
|
382
383
|
handleDataAction(t) {
|
|
383
|
-
this
|
|
384
|
+
E(this, t);
|
|
384
385
|
},
|
|
385
386
|
handleDragItemChange(t) {
|
|
386
387
|
this.currentDragItem = t;
|
|
@@ -389,19 +390,19 @@ const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
|
389
390
|
this.currentResizeItem = t;
|
|
390
391
|
}
|
|
391
392
|
}
|
|
392
|
-
}),
|
|
393
|
+
}), G = ({
|
|
393
394
|
date: t,
|
|
394
395
|
numberOfDays: r = 1,
|
|
395
396
|
timezone: a
|
|
396
397
|
}) => {
|
|
397
|
-
const l =
|
|
398
|
+
const l = h.fromLocalDate(t, a), c = I(l), s = v(c, r), u = h.fromUTCDate(S(c), a), n = h.fromUTCDate(S(s), a), e = new Date(u.getTime()), d = new Date(n.getTime());
|
|
398
399
|
return {
|
|
399
400
|
start: e,
|
|
400
|
-
end:
|
|
401
|
-
zonedStart:
|
|
401
|
+
end: d,
|
|
402
|
+
zonedStart: u,
|
|
402
403
|
zonedEnd: n
|
|
403
404
|
};
|
|
404
405
|
};
|
|
405
406
|
export {
|
|
406
|
-
|
|
407
|
+
me as MultiDayTimelineView
|
|
407
408
|
};
|
|
@@ -16,6 +16,7 @@ export interface TimelineViewProps extends MultiDayTimelineViewProps {
|
|
|
16
16
|
}
|
|
17
17
|
/** @hidden */
|
|
18
18
|
declare const TimelineView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
|
+
onDataAction: PropType<(action: DataAction) => void>;
|
|
19
20
|
name: {
|
|
20
21
|
type: PropType<string>;
|
|
21
22
|
default: string;
|
|
@@ -113,6 +114,7 @@ declare const TimelineView: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
113
114
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
114
115
|
dataaction: any;
|
|
115
116
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
117
|
+
onDataAction: PropType<(action: DataAction) => void>;
|
|
116
118
|
name: {
|
|
117
119
|
type: PropType<string>;
|
|
118
120
|
default: string;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./MultiDayTimelineView.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./MultiDayTimelineView.js"),i=require("@progress/kendo-date-math"),o=require("../../utils/main.js"),n=e.defineComponent({name:"KendoTimelineView",emits:{dataaction:null},props:{onDataAction:Function,name:{type:String,default:"timeline"},title:{type:String,default:"Multi Day Timeline"},currentTimeMarker:{type:Boolean,default:!0},dateRange:{type:[Function,Object],default:function(){return t.MultiDayTimelineView.props.dateRange.default()}},showWorkHours:{type:Boolean,default:!0},selectedDateFormat:{type:String,default:"{0:M}"},selectedShortDateFormat:{type:String,default:"{0:m}"},step:{type:Number,default:1},numberOfDays:{type:Number,default:1},startTime:{type:String,default:"00:00"},endTime:{type:String,default:"00:00"},workDayStart:{type:String,default:"8:00"},workDayEnd:{type:String,default:"17:00"},workWeekStart:{type:Number,default:i.Day.Monday},workWeekEnd:{type:Number,default:i.Day.Friday},slotDivisions:{type:Number,default:2},slotDuration:{type:Number,default:60},defaultShowWorkHours:{type:Boolean,default:!0},columnWidth:{type:Number,default:100},dragItem:{type:Object,default:function(){}},resizeItem:{type:Object,default:function(){}},dateHeaderCell:[String,Function,Object],timeHeaderCell:[String,Function,Object],slotRender:[String,Function,Object],viewSlot:[String,Function,Object],resizeHint:[String,Function,Object],item:[String,Function,Object],viewItem:[String,Function,Object],editable:[Object,Boolean]},render(){return e.createVNode(t.MultiDayTimelineView,{name:this.$props.name,dragItem:this.$props.dragItem,resizeItem:this.$props.resizeItem,dateRange:this.$props.dateRange,step:this.$props.step,numberOfDays:this.$props.numberOfDays,slotDuration:this.$props.slotDuration,slotDivisions:this.$props.slotDivisions,selectedDateFormat:this.$props.selectedDateFormat,selectedShortDateFormat:this.$props.selectedShortDateFormat,showWorkHours:this.$props.showWorkHours,columnWidth:this.$props.columnWidth,title:this.$props.title,currentTimeMarker:this.$props.currentTimeMarker,startTime:this.$props.startTime,endTime:this.$props.endTime,workDayStart:this.$props.workDayStart,workDayEnd:this.$props.workDayEnd,workWeekStart:this.$props.workWeekStart,workWeekEnd:this.$props.workWeekEnd,timeHeaderCell:this.$props.timeHeaderCell,dateHeaderCell:this.$props.dateHeaderCell,slotRender:this.$props.slotRender,viewSlot:this.$props.viewSlot,resizeHint:this.$props.resizeHint,item:this.$props.item,viewItem:this.$props.viewItem,editable:this.$props.editable,onDataaction:this.handleDataAction},null)},methods:{handleDataAction(r){o.emitDataAction(this,r)}}});exports.TimelineView=n;
|
|
@@ -8,12 +8,14 @@
|
|
|
8
8
|
import { defineComponent as i, createVNode as o } from "vue";
|
|
9
9
|
import { MultiDayTimelineView as e } from "./MultiDayTimelineView.mjs";
|
|
10
10
|
import { Day as t } from "@progress/kendo-date-math";
|
|
11
|
-
|
|
11
|
+
import { emitDataAction as n } from "../../utils/main.mjs";
|
|
12
|
+
const d = /* @__PURE__ */ i({
|
|
12
13
|
name: "KendoTimelineView",
|
|
13
14
|
emits: {
|
|
14
15
|
dataaction: null
|
|
15
16
|
},
|
|
16
17
|
props: {
|
|
18
|
+
onDataAction: Function,
|
|
17
19
|
name: {
|
|
18
20
|
type: String,
|
|
19
21
|
default: "timeline"
|
|
@@ -146,10 +148,10 @@ const p = /* @__PURE__ */ i({
|
|
|
146
148
|
},
|
|
147
149
|
methods: {
|
|
148
150
|
handleDataAction(r) {
|
|
149
|
-
this
|
|
151
|
+
n(this, r);
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
154
|
});
|
|
153
155
|
export {
|
|
154
|
-
|
|
156
|
+
d as TimelineView
|
|
155
157
|
};
|
|
@@ -18,7 +18,7 @@ export interface TimelineViewBodyProps {
|
|
|
18
18
|
slotRender: any;
|
|
19
19
|
viewSlot: any;
|
|
20
20
|
editable?: boolean | object;
|
|
21
|
-
|
|
21
|
+
onDataAction: (action: DataAction) => void;
|
|
22
22
|
}
|
|
23
23
|
/** @hidden */
|
|
24
24
|
declare const TimelineViewBody: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const TimelineViewBody: import('vue').DefineComponent<import('vue').Extr
|
|
|
34
34
|
editable: PropType<boolean | object>;
|
|
35
35
|
slotRender: PropType<any>;
|
|
36
36
|
viewSlot: PropType<any>;
|
|
37
|
-
|
|
37
|
+
onDataAction: PropType<(action: DataAction) => void>;
|
|
38
38
|
}>, {}, {
|
|
39
39
|
ksSlots: {
|
|
40
40
|
cSlots: any;
|
|
@@ -44,7 +44,7 @@ declare const TimelineViewBody: import('vue').DefineComponent<import('vue').Extr
|
|
|
44
44
|
}, {
|
|
45
45
|
handleDataAction(action: DataAction): void;
|
|
46
46
|
calculateRanges(timelineSlots: any, groupIndex: number, ranges: any): any;
|
|
47
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
47
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "dataaction"[], "dataaction", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
48
48
|
currentTimeMarker: {
|
|
49
49
|
type: PropType<boolean>;
|
|
50
50
|
default: boolean;
|
|
@@ -57,8 +57,10 @@ declare const TimelineViewBody: import('vue').DefineComponent<import('vue').Extr
|
|
|
57
57
|
editable: PropType<boolean | object>;
|
|
58
58
|
slotRender: PropType<any>;
|
|
59
59
|
viewSlot: PropType<any>;
|
|
60
|
-
|
|
61
|
-
}>> & Readonly<{
|
|
60
|
+
onDataAction: PropType<(action: DataAction) => void>;
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
onDataaction?: (...args: any[]) => any;
|
|
63
|
+
}>, {
|
|
62
64
|
currentTimeMarker: boolean;
|
|
63
65
|
}, {}, {}, {}, string, () => {
|
|
64
66
|
ksSlots: any;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),h=require("../../slots/SchedulerEditSlot.js"),r=require("../../utils/main.js"),g=require("../../components/CurrentTimeMarker.js"),p=a.defineComponent({name:"KendoTimelineViewBody",emits:["dataaction"],props:{currentTimeMarker:{type:Boolean,default:!0},groupIndex:Number,timelineSlots:Array,ranges:Array,workDayStart:Date,workDayEnd:Date,editable:[Object,Boolean],slotRender:[String,Function,Object],viewSlot:[String,Function,Object],onDataAction:Function},inject:{ri:{default:null},ks:{default:null},setSlots:{default:null}},provide(){return{ksSlots:this.ksSlots}},data(){const t=this.timelineSlots,e=this.groupIndex!==void 0?this.groupIndex:this.ri.groupIndex;return{ksSlots:{cSlots:this.calculateRanges(t,e,this.ranges)}}},watch:{currentCellSlots(t){this.ksSlots.cSlots=t}},computed:{currentCellSlots(){const t=this.timelineSlots,e=this.groupIndex!==void 0?this.groupIndex:this.ri.groupIndex;return this.calculateRanges(t,e,this.ranges)}},render(){var c;const t=((c=this.ks)==null?void 0:c.editSlot)||h.SchedulerEditSlot,e=this,i=this.ks.orientation,o=this.ranges,n=this.groupIndex!==void 0?this.groupIndex:this.ri.groupIndex,s=this.$props.editable;return a.createVNode("div",{class:"k-scheduler-row"},[this.currentCellSlots.map(function(l,u,d){return a.createVNode(t,{slotRender:e.$props.slotRender,viewSlot:e.$props.viewSlot,index:u,form:e.$props.form,onDataaction:e.handleDataAction,isWorkHour:r.isInTimeRange(l.zonedStart,e.workDayStart,e.workDayEnd),col:i==="horizontal"?l.range.index*d.length+u+d.length*o.length*(n||0):l.range.index*d.length+u,row:i==="horizontal"?0:n||0,expandable:!0,editable:s},null)},this),this.$props.currentTimeMarker&&r.intersects(r.first(o).start,r.last(o).end,new Date,new Date,!0)&&a.createVNode(g.CurrentTimeMarker,{groupIndex:n,vertical:!0},null)])},methods:{handleDataAction(t){r.emitDataAction(this,t)},calculateRanges(t,e,i){return i.map((o,n)=>t.filter(s=>s.group.index===e&&s.range.index===n)).flat()}}});exports.TimelineViewBody=p;
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { SchedulerEditSlot as
|
|
10
|
-
import { isInTimeRange as
|
|
11
|
-
import { CurrentTimeMarker as
|
|
12
|
-
const
|
|
8
|
+
import { defineComponent as c, createVNode as d } from "vue";
|
|
9
|
+
import { SchedulerEditSlot as h } from "../../slots/SchedulerEditSlot.mjs";
|
|
10
|
+
import { emitDataAction as p, isInTimeRange as g, intersects as m, last as S, first as x } from "../../utils/main.mjs";
|
|
11
|
+
import { CurrentTimeMarker as f } from "../../components/CurrentTimeMarker.mjs";
|
|
12
|
+
const b = /* @__PURE__ */ c({
|
|
13
13
|
name: "KendoTimelineViewBody",
|
|
14
|
+
emits: ["dataaction"],
|
|
14
15
|
props: {
|
|
15
16
|
currentTimeMarker: {
|
|
16
17
|
type: Boolean,
|
|
@@ -24,7 +25,7 @@ const w = /* @__PURE__ */ u({
|
|
|
24
25
|
editable: [Object, Boolean],
|
|
25
26
|
slotRender: [String, Function, Object],
|
|
26
27
|
viewSlot: [String, Function, Object],
|
|
27
|
-
|
|
28
|
+
onDataAction: Function
|
|
28
29
|
},
|
|
29
30
|
inject: {
|
|
30
31
|
ri: {
|
|
@@ -43,55 +44,56 @@ const w = /* @__PURE__ */ u({
|
|
|
43
44
|
};
|
|
44
45
|
},
|
|
45
46
|
data() {
|
|
46
|
-
const
|
|
47
|
+
const e = this.timelineSlots, t = this.groupIndex !== void 0 ? this.groupIndex : this.ri.groupIndex;
|
|
47
48
|
return {
|
|
48
49
|
ksSlots: {
|
|
49
|
-
cSlots: this.calculateRanges(
|
|
50
|
+
cSlots: this.calculateRanges(e, t, this.ranges)
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
},
|
|
53
54
|
watch: {
|
|
54
|
-
currentCellSlots(
|
|
55
|
-
this.ksSlots.cSlots =
|
|
55
|
+
currentCellSlots(e) {
|
|
56
|
+
this.ksSlots.cSlots = e;
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
computed: {
|
|
59
60
|
currentCellSlots() {
|
|
60
|
-
const
|
|
61
|
-
return this.calculateRanges(
|
|
61
|
+
const e = this.timelineSlots, t = this.groupIndex !== void 0 ? this.groupIndex : this.ri.groupIndex;
|
|
62
|
+
return this.calculateRanges(e, t, this.ranges);
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
65
|
render() {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
var u;
|
|
67
|
+
const e = ((u = this.ks) == null ? void 0 : u.editSlot) || h, t = this, r = this.ks.orientation, o = this.ranges, n = this.groupIndex !== void 0 ? this.groupIndex : this.ri.groupIndex, i = this.$props.editable;
|
|
68
|
+
return d("div", {
|
|
67
69
|
class: "k-scheduler-row"
|
|
68
|
-
}, [this.currentCellSlots.map(function(
|
|
69
|
-
return
|
|
70
|
+
}, [this.currentCellSlots.map(function(s, a, l) {
|
|
71
|
+
return d(e, {
|
|
70
72
|
slotRender: t.$props.slotRender,
|
|
71
73
|
viewSlot: t.$props.viewSlot,
|
|
72
|
-
index:
|
|
74
|
+
index: a,
|
|
73
75
|
form: t.$props.form,
|
|
74
76
|
onDataaction: t.handleDataAction,
|
|
75
|
-
isWorkHour:
|
|
76
|
-
col:
|
|
77
|
-
row:
|
|
77
|
+
isWorkHour: g(s.zonedStart, t.workDayStart, t.workDayEnd),
|
|
78
|
+
col: r === "horizontal" ? s.range.index * l.length + a + l.length * o.length * (n || 0) : s.range.index * l.length + a,
|
|
79
|
+
row: r === "horizontal" ? 0 : n || 0,
|
|
78
80
|
expandable: !0,
|
|
79
81
|
editable: i
|
|
80
82
|
}, null);
|
|
81
|
-
}, this), this.$props.currentTimeMarker &&
|
|
82
|
-
groupIndex:
|
|
83
|
+
}, this), this.$props.currentTimeMarker && m(x(o).start, S(o).end, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date(), !0) && d(f, {
|
|
84
|
+
groupIndex: n,
|
|
83
85
|
vertical: !0
|
|
84
86
|
}, null)]);
|
|
85
87
|
},
|
|
86
88
|
methods: {
|
|
87
|
-
handleDataAction(
|
|
88
|
-
this
|
|
89
|
+
handleDataAction(e) {
|
|
90
|
+
p(this, e);
|
|
89
91
|
},
|
|
90
|
-
calculateRanges(
|
|
91
|
-
return r.map((o,
|
|
92
|
+
calculateRanges(e, t, r) {
|
|
93
|
+
return r.map((o, n) => e.filter((i) => i.group.index === t && i.range.index === n)).flat();
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
});
|
|
95
97
|
export {
|
|
96
|
-
|
|
98
|
+
b as TimelineViewBody
|
|
97
99
|
};
|
package/views/week/WeekView.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export interface WeekViewProps extends MultiDayViewProps {
|
|
|
87
87
|
}
|
|
88
88
|
/** @hidden */
|
|
89
89
|
declare const WeekView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
90
|
+
onDataAction: PropType<(event: DataAction) => void>;
|
|
90
91
|
name: {
|
|
91
92
|
type: PropType<string>;
|
|
92
93
|
default: string;
|
|
@@ -169,6 +170,7 @@ declare const WeekView: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
169
170
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
171
|
dataaction: any;
|
|
171
172
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
173
|
+
onDataAction: PropType<(event: DataAction) => void>;
|
|
172
174
|
name: {
|
|
173
175
|
type: PropType<string>;
|
|
174
176
|
default: string;
|
package/views/week/WeekView.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),S=require("../day/MultiDayView.js"),a=require("../../constants/main.js"),e=require("@progress/kendo-date-math"),i=require("../../messages/main.js"),n=require("../../utils/main.js"),h=require("@progress/kendo-vue-intl"),k=u.defineComponent({name:"KendoWeekView",emits:{dataaction:null},props:{onDataAction:Function,name:{type:String,default:"week"},slotDuration:{type:Number,default:60},slotDivisions:{type:Number,default:2},numberOfDays:{type:Number,default:a.DAYS_IN_WEEK_COUNT},dateRange:{type:[Function,Object],default:function(){return f}},title:String,selectedDateFormat:{type:String,default:"{0:M} - {1:M}"},selectedShortDateFormat:{type:String,default:"{0:m} - {1:m}"},showWorkHours:{type:Boolean,default:!0},currentTimeMarker:{type:Boolean,default:!0},startTime:{type:String,default:"00:00"},endTime:{type:String,default:"23:59"},workDayStart:{type:String,default:"08:00"},workDayEnd:{type:String,default:"17:00"},workWeekStart:{type:Number,default:e.Day.Monday},workWeekEnd:{type:Number,default:e.Day.Friday},defaultShowWorkHours:{type:Boolean,default:!0},dateHeaderCell:[String,Function,Object],timeHeaderCell:[String,Function,Object],slotRender:[String,Function,Object],viewSlot:[String,Function,Object],resizeHint:[String,Function,Object],item:[String,Function,Object],viewItem:[String,Function,Object],editable:{type:[Boolean,Object],default:!1},format:String},inject:{kendoLocalizationService:{default:null}},render(){const r=h.provideLocalizationService(this).toLanguageString(i.weekViewTitle,i.messages[i.weekViewTitle]);return u.createVNode(S.MultiDayView,{name:this.$props.name,dateRange:this.$props.dateRange,numberOfDays:this.$props.numberOfDays,slotDuration:this.$props.slotDuration,slotDivisions:this.$props.slotDivisions,selectedDateFormat:this.$props.selectedDateFormat,selectedShortDateFormat:this.$props.selectedShortDateFormat,showWorkHours:this.$props.showWorkHours,title:r,step:a.DAYS_IN_WEEK_COUNT,currentTimeMarker:this.$props.currentTimeMarker,startTime:this.$props.startTime,endTime:this.$props.endTime,workDayStart:this.$props.workDayStart,workDayEnd:this.$props.workDayEnd,workWeekStart:this.$props.workWeekStart,workWeekEnd:this.$props.workWeekEnd,defaultShowWorkHours:this.$props.defaultShowWorkHours,dateHeaderCell:this.$props.dateHeaderCell,timeHeaderCell:this.$props.timeHeaderCell,slotRender:this.$props.slotRender,viewSlot:this.$props.viewSlot,resizeHint:this.$props.resizeHint,item:this.$props.item,viewItem:this.$props.viewItem,editable:this.$props.editable,onDataaction:this.handleDataAction},null)},methods:{handleDataAction(t){n.emitDataAction(this,t)}}}),w=t=>e.getDate(t),y=(t,r)=>e.getDate(e.addDays(t,r)),f=({intl:t,date:r,timezone:o})=>{const p=e.ZonedDate.fromLocalDate(r,o),s=w(e.firstDayInWeek(p,t.firstDay())),c=y(s,a.DAYS_IN_WEEK_COUNT),l=e.ZonedDate.fromUTCDate(n.toUTCDateTime(s),o),d=e.ZonedDate.fromUTCDate(n.toUTCDateTime(c),o),D=new Date(l.getTime()),m=new Date(d.getTime());return{start:D,end:m,zonedStart:l,zonedEnd:d}};exports.WeekView=k;
|
package/views/week/WeekView.mjs
CHANGED
|
@@ -8,16 +8,17 @@
|
|
|
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
|
|
11
|
+
import { Day as l, ZonedDate as r, firstDayInWeek as w, getDate as m, addDays as y } from "@progress/kendo-date-math";
|
|
12
12
|
import { weekViewTitle as p, messages as g } from "../../messages/main.mjs";
|
|
13
|
-
import { toUTCDateTime as d } from "../../utils/main.mjs";
|
|
14
|
-
import { provideLocalizationService as
|
|
15
|
-
const
|
|
13
|
+
import { emitDataAction as $, toUTCDateTime as d } from "../../utils/main.mjs";
|
|
14
|
+
import { provideLocalizationService as T } from "@progress/kendo-vue-intl";
|
|
15
|
+
const z = /* @__PURE__ */ h({
|
|
16
16
|
name: "KendoWeekView",
|
|
17
17
|
emits: {
|
|
18
18
|
dataaction: null
|
|
19
19
|
},
|
|
20
20
|
props: {
|
|
21
|
+
onDataAction: Function,
|
|
21
22
|
name: {
|
|
22
23
|
type: String,
|
|
23
24
|
default: "week"
|
|
@@ -104,7 +105,7 @@ const N = /* @__PURE__ */ h({
|
|
|
104
105
|
}
|
|
105
106
|
},
|
|
106
107
|
render() {
|
|
107
|
-
const e =
|
|
108
|
+
const e = T(this).toLanguageString(p, g[p]);
|
|
108
109
|
return S(k, {
|
|
109
110
|
name: this.$props.name,
|
|
110
111
|
dateRange: this.$props.dateRange,
|
|
@@ -137,15 +138,15 @@ const N = /* @__PURE__ */ h({
|
|
|
137
138
|
},
|
|
138
139
|
methods: {
|
|
139
140
|
handleDataAction(t) {
|
|
140
|
-
this
|
|
141
|
+
$(this, t);
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
|
-
}),
|
|
144
|
+
}), b = (t) => m(t), F = (t, e) => m(y(t, e)), W = ({
|
|
144
145
|
intl: t,
|
|
145
146
|
date: e,
|
|
146
|
-
timezone:
|
|
147
|
+
timezone: o
|
|
147
148
|
}) => {
|
|
148
|
-
const u =
|
|
149
|
+
const u = r.fromLocalDate(e, o), a = b(w(u, t.firstDay())), c = F(a, i), n = r.fromUTCDate(d(a), o), s = r.fromUTCDate(d(c), o), D = new Date(n.getTime()), f = new Date(s.getTime());
|
|
149
150
|
return {
|
|
150
151
|
start: D,
|
|
151
152
|
end: f,
|
|
@@ -154,5 +155,5 @@ const N = /* @__PURE__ */ h({
|
|
|
154
155
|
};
|
|
155
156
|
};
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
z as WeekView
|
|
158
159
|
};
|
|
@@ -14,6 +14,7 @@ export interface WorkWeekViewProps extends WeekViewProps {
|
|
|
14
14
|
}
|
|
15
15
|
/** @hidden */
|
|
16
16
|
declare const WorkWeekView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
onDataAction: PropType<(event: DataAction) => void>;
|
|
17
18
|
name: {
|
|
18
19
|
type: PropType<string>;
|
|
19
20
|
default: string;
|
|
@@ -71,6 +72,7 @@ declare const WorkWeekView: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
71
72
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
73
|
dataaction: any;
|
|
73
74
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
75
|
+
onDataAction: PropType<(event: DataAction) => void>;
|
|
74
76
|
name: {
|
|
75
77
|
type: PropType<string>;
|
|
76
78
|
default: string;
|