@progress/kendo-vue-scheduler 9.3.0-develop.5 → 9.3.0-develop.6
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 +67 -4
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +267 -115
- package/components/BaseView.js +1 -1
- package/components/BaseView.mjs +10 -4
- package/components/CurrentTimeMarker.js +1 -1
- package/components/CurrentTimeMarker.mjs +9 -9
- package/components/CurrentTimeMarkerArrow.js +1 -1
- package/components/CurrentTimeMarkerArrow.mjs +3 -3
- package/components/DateHeaderCell.js +1 -1
- package/components/DateHeaderCell.mjs +22 -13
- package/components/MoreEventsPopover.d.ts +77 -0
- package/components/MoreEventsPopover.js +8 -0
- package/components/MoreEventsPopover.mjs +125 -0
- package/components/SchedulerActionButtons.d.ts +6 -0
- package/components/SchedulerActionButtons.js +1 -1
- package/components/SchedulerActionButtons.mjs +25 -19
- package/components/SchedulerForm.d.ts +7 -0
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +69 -61
- package/components/SchedulerOccurrenceDialog.d.ts +4 -4
- package/components/SchedulerOccurrenceDialog.js +1 -1
- package/components/SchedulerOccurrenceDialog.mjs +35 -26
- package/components/SchedulerRemoveDialog.d.ts +6 -0
- package/components/SchedulerRemoveDialog.js +1 -1
- package/components/SchedulerRemoveDialog.mjs +24 -23
- package/components/ShowMoreItemsButton.d.ts +10 -1
- package/components/ShowMoreItemsButton.js +1 -1
- package/components/ShowMoreItemsButton.mjs +40 -18
- package/components/footer/bussiness-hours/BusinessHours.js +1 -1
- package/components/footer/bussiness-hours/BusinessHours.mjs +16 -21
- package/components/header/SchedulerAdaptiveHeader.js +1 -1
- package/components/header/SchedulerAdaptiveHeader.mjs +28 -26
- package/components/header/SchedulerHeader.d.ts +5 -1
- package/components/header/SchedulerHeader.js +1 -1
- package/components/header/SchedulerHeader.mjs +11 -7
- package/components/header/navigation/NavigationDatePicker.d.ts +22 -3
- package/components/header/navigation/NavigationDatePicker.js +1 -1
- package/components/header/navigation/NavigationDatePicker.mjs +27 -30
- package/components/header/view-selector/ViewSelectorList.d.ts +26 -6
- package/components/header/view-selector/ViewSelectorList.js +1 -1
- package/components/header/view-selector/ViewSelectorList.mjs +55 -49
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/RemoveRecurrenceConfirmDialog.d.ts +29 -0
- package/editors/RemoveRecurrenceConfirmDialog.js +8 -0
- package/editors/RemoveRecurrenceConfirmDialog.mjs +65 -0
- package/editors/ResourceEditor.d.ts +3 -0
- package/editors/ResourceEditor.js +1 -1
- package/editors/ResourceEditor.mjs +12 -10
- package/editors/SchedulerFormEditor.d.ts +1067 -2953
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +297 -365
- package/editors/SchedulerRecurrenceDialog.d.ts +143 -0
- package/editors/SchedulerRecurrenceDialog.js +8 -0
- package/editors/SchedulerRecurrenceDialog.mjs +575 -0
- package/editors/TimezoneDropDownList.d.ts +46 -0
- package/editors/TimezoneDropDownList.js +8 -0
- package/editors/TimezoneDropDownList.mjs +63 -0
- package/editors/ZonedSplitDateTime.d.ts +65 -0
- package/editors/ZonedSplitDateTime.js +8 -0
- package/editors/ZonedSplitDateTime.mjs +100 -0
- package/hooks/main.d.ts +1 -0
- package/hooks/useGroupRowHeightSync.d.ts +10 -0
- package/hooks/useRecurrenceSummary.d.ts +10 -0
- package/hooks/useRecurrenceSummary.js +8 -0
- package/hooks/useRecurrenceSummary.mjs +74 -0
- package/hooks/useRowSync.js +1 -1
- package/hooks/useRowSync.mjs +23 -4
- package/hooks/useSlotExpand.js +1 -1
- package/hooks/useSlotExpand.mjs +36 -28
- package/index.d.mts +9 -3
- package/index.d.ts +9 -3
- package/index.js +1 -1
- package/index.mjs +83 -71
- package/items/SchedulerEditItem.d.ts +14 -3
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +130 -72
- package/items/SchedulerItem.d.ts +10 -0
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +153 -135
- package/items/SchedulerProportionalViewItem.d.ts +183 -0
- package/items/SchedulerProportionalViewItem.js +8 -0
- package/items/SchedulerProportionalViewItem.mjs +378 -0
- package/items/SchedulerViewItem.d.ts +3 -0
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +107 -67
- package/messages/main.d.ts +186 -0
- package/messages/main.js +1 -1
- package/messages/main.mjs +226 -102
- package/models/Item.d.ts +2 -0
- package/models/Occurrence.d.ts +2 -0
- package/models/SchedulerModelFields.d.ts +5 -0
- package/models/SchedulerResource.d.ts +6 -0
- package/models/SchedulerView.d.ts +2 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -11
- package/recurrence/common.js +1 -1
- package/recurrence/common.mjs +36 -39
- package/services/itemsService.js +1 -1
- package/services/itemsService.mjs +31 -27
- package/services/occurrenceService.js +1 -1
- package/services/occurrenceService.mjs +41 -35
- package/slots/SchedulerEditSlot.d.ts +2 -0
- package/slots/SchedulerEditSlot.js +1 -1
- package/slots/SchedulerEditSlot.mjs +27 -28
- package/slots/SchedulerSlot.d.ts +4 -0
- package/slots/SchedulerSlot.js +1 -1
- package/slots/SchedulerSlot.mjs +10 -1
- package/slots/SchedulerViewSlot.d.ts +5 -0
- package/slots/SchedulerViewSlot.js +1 -1
- package/slots/SchedulerViewSlot.mjs +70 -50
- package/tasks/SchedulerEditTask.d.ts +6 -0
- package/tasks/SchedulerEditTask.js +1 -1
- package/tasks/SchedulerEditTask.mjs +64 -23
- package/tasks/SchedulerTask.d.ts +15 -0
- package/tasks/SchedulerTask.js +1 -1
- package/tasks/SchedulerTask.mjs +39 -28
- package/tasks/SchedulerViewTask.d.ts +9 -0
- package/tasks/SchedulerViewTask.js +1 -1
- package/tasks/SchedulerViewTask.mjs +10 -5
- package/utils/main.d.ts +4 -1
- package/utils/main.js +1 -1
- package/utils/main.mjs +133 -112
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +28 -22
- package/views/agenda/AgendaViewBody.js +1 -1
- package/views/agenda/AgendaViewBody.mjs +44 -42
- package/views/agenda/AgendaViewHead.js +1 -1
- package/views/agenda/AgendaViewHead.mjs +14 -10
- package/views/common/SchedulerDrag.d.ts +12 -0
- package/views/common/SchedulerResize.d.ts +12 -0
- package/views/common/VerticalResourceIterator.d.ts +3 -0
- package/views/common/VerticalResourceIterator.js +1 -1
- package/views/common/VerticalResourceIterator.mjs +16 -9
- package/views/day/DayView.js +1 -1
- package/views/day/DayView.mjs +2 -2
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +98 -127
- package/views/month/MonthView.d.ts +8 -2
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +115 -109
- package/views/month/MonthViewBody.d.ts +7 -2
- package/views/month/MonthViewBody.js +1 -1
- package/views/month/MonthViewBody.mjs +15 -11
- package/views/time/MultiDayTimelineView.d.ts +5 -0
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +125 -132
- package/views/time/TimelineView.js +1 -1
- package/views/time/TimelineView.mjs +2 -2
- package/views/week/WeekView.js +1 -1
- package/views/week/WeekView.mjs +2 -2
- package/views/week/WorkWeekView.js +1 -1
- package/views/week/WorkWeekView.mjs +9 -9
- package/components/header/navigation/DatePickerToggleButton.d.ts +0 -16
- package/editors/FilterableComboBox.d.ts +0 -38
- package/editors/FilterableComboBox.js +0 -8
- package/editors/FilterableComboBox.mjs +0 -61
- package/editors/ZonedDateTime.js +0 -8
- package/editors/ZonedDateTime.mjs +0 -57
|
@@ -5,32 +5,30 @@
|
|
|
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 { orderSort as
|
|
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 {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function $(t) {
|
|
31
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !v(t);
|
|
8
|
+
import { defineComponent as k, createVNode as i, isVNode as b } from "vue";
|
|
9
|
+
import { BaseView as T } from "../../components/BaseView.mjs";
|
|
10
|
+
import { Day as f, MS_PER_MINUTE as R, MS_PER_DAY as v, ZonedDate as p, getDate as I, addDays as z } from "@progress/kendo-date-math";
|
|
11
|
+
import { HorizontalResourceIterator as g } from "../common/HorizontalResourceIterator.mjs";
|
|
12
|
+
import { TimelineViewRowContent as $ } from "./TimelineViewRowContent.mjs";
|
|
13
|
+
import { TimelineViewAllEventsRowContent as E } from "./TimelineViewAllEventsRowContent.mjs";
|
|
14
|
+
import { VerticalResourceIterator as S } from "../common/VerticalResourceIterator.mjs";
|
|
15
|
+
import { orderSort as O, isInTimeRange as h, mapItemsToSlots as C, mapSlotsToItems as x, toUTCDateTime as w } from "../../utils/main.mjs";
|
|
16
|
+
import { toRanges as F } from "../../services/rangeService.mjs";
|
|
17
|
+
import { toSlots as M } from "../../services/slotsService.mjs";
|
|
18
|
+
import { toOccurrences as A } from "../../services/occurrenceService.mjs";
|
|
19
|
+
import { toItems as j } from "../../services/itemsService.mjs";
|
|
20
|
+
import { TimelineViewBody as H } from "./TimelineViewBody.mjs";
|
|
21
|
+
import { BORDER_WIDTH as N } from "../../constants/main.mjs";
|
|
22
|
+
import { provideIntlService as m } from "@progress/kendo-vue-intl";
|
|
23
|
+
import { SchedulerEditItem as V } from "../../items/SchedulerEditItem.mjs";
|
|
24
|
+
import { DateHeaderCell as W } from "../../components/DateHeaderCell.mjs";
|
|
25
|
+
import { TimeHeaderCell as _ } from "../../components/TimeHeaderCell.mjs";
|
|
26
|
+
import { useRowSync as B } from "../../hooks/useRowSync.mjs";
|
|
27
|
+
import { useCellSync as y } from "../../hooks/useCellSync.mjs";
|
|
28
|
+
function D(t) {
|
|
29
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !b(t);
|
|
32
30
|
}
|
|
33
|
-
const
|
|
31
|
+
const U = "t", q = 0, he = /* @__PURE__ */ k({
|
|
34
32
|
name: "KendoMultiDayTimelineView",
|
|
35
33
|
props: {
|
|
36
34
|
name: {
|
|
@@ -62,16 +60,16 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
62
60
|
dateRange: {
|
|
63
61
|
type: [Function, Object],
|
|
64
62
|
default: function() {
|
|
65
|
-
return
|
|
63
|
+
return L;
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
selectedDateFormat: {
|
|
69
67
|
type: String,
|
|
70
|
-
default: "{0:
|
|
68
|
+
default: "{0:M}"
|
|
71
69
|
},
|
|
72
70
|
selectedShortDateFormat: {
|
|
73
71
|
type: String,
|
|
74
|
-
default: "{0:
|
|
72
|
+
default: "{0:m}"
|
|
75
73
|
},
|
|
76
74
|
step: {
|
|
77
75
|
type: Number,
|
|
@@ -99,11 +97,11 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
99
97
|
},
|
|
100
98
|
workWeekStart: {
|
|
101
99
|
type: Number,
|
|
102
|
-
default:
|
|
100
|
+
default: f.Monday
|
|
103
101
|
},
|
|
104
102
|
workWeekEnd: {
|
|
105
103
|
type: Number,
|
|
106
|
-
default:
|
|
104
|
+
default: f.Friday
|
|
107
105
|
},
|
|
108
106
|
slotDivisions: {
|
|
109
107
|
type: Number,
|
|
@@ -138,7 +136,9 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
138
136
|
return {
|
|
139
137
|
hasMounted: !1,
|
|
140
138
|
currentDragItem: void 0,
|
|
141
|
-
currentResizeItem: void 0
|
|
139
|
+
currentResizeItem: void 0,
|
|
140
|
+
rowSyncTimeout: void 0,
|
|
141
|
+
rowSyncObserver: null
|
|
142
142
|
};
|
|
143
143
|
},
|
|
144
144
|
inject: {
|
|
@@ -151,44 +151,44 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
151
151
|
},
|
|
152
152
|
computed: {
|
|
153
153
|
viewStart() {
|
|
154
|
-
this.intl =
|
|
155
|
-
const t = this.intl.parseDate(this.$props.workDayStart),
|
|
156
|
-
return this.showWorkHours ? t :
|
|
154
|
+
this.intl = m(this);
|
|
155
|
+
const t = this.intl.parseDate(this.$props.workDayStart), r = this.intl.parseDate(this.$props.startTime);
|
|
156
|
+
return this.showWorkHours ? t : r;
|
|
157
157
|
},
|
|
158
158
|
viewEnd() {
|
|
159
|
-
this.intl =
|
|
160
|
-
const t = this.intl.parseDate(this.$props.workDayEnd),
|
|
161
|
-
return this.showWorkHours ? t :
|
|
159
|
+
this.intl = m(this);
|
|
160
|
+
const t = this.intl.parseDate(this.$props.workDayEnd), r = this.intl.parseDate(this.$props.endTime);
|
|
161
|
+
return this.showWorkHours ? t : r;
|
|
162
162
|
},
|
|
163
163
|
ranges() {
|
|
164
|
-
return
|
|
165
|
-
step:
|
|
164
|
+
return F(this.ks.dateRange, {
|
|
165
|
+
step: v,
|
|
166
166
|
timezone: this.ks.timezone
|
|
167
167
|
});
|
|
168
168
|
},
|
|
169
169
|
timelineSlots() {
|
|
170
|
-
return
|
|
171
|
-
step: this.slotDuration / this.slotDivisions *
|
|
170
|
+
return M(this.ks.dateRange, {
|
|
171
|
+
step: this.slotDuration / this.slotDivisions * R
|
|
172
172
|
}, {
|
|
173
173
|
groups: this.ks.groups,
|
|
174
174
|
ranges: this.ranges
|
|
175
|
-
}).filter((
|
|
175
|
+
}).filter((r) => h(r.zonedStart, this.viewStart, this.viewEnd) || this.viewStart.getTime() === this.viewEnd.getTime());
|
|
176
176
|
},
|
|
177
177
|
occurrences() {
|
|
178
|
-
return
|
|
178
|
+
return A(this.ks.dataItems, {
|
|
179
179
|
dateRange: this.ks.dateRange,
|
|
180
180
|
fields: this.ks.fields,
|
|
181
181
|
timezone: this.ks.timezone
|
|
182
182
|
});
|
|
183
183
|
},
|
|
184
184
|
items() {
|
|
185
|
-
const t =
|
|
185
|
+
const t = j(this.occurrences, {
|
|
186
186
|
timezone: this.ks.timezone
|
|
187
187
|
}, {
|
|
188
188
|
groups: this.ks.groups,
|
|
189
189
|
ranges: this.ranges
|
|
190
|
-
}).filter((
|
|
191
|
-
return
|
|
190
|
+
}).filter((r) => this.viewStart.getTime() === this.viewEnd.getTime() || h(r.zonedStart, this.viewStart, this.viewEnd) || h(r.zonedEnd, this.viewStart, this.viewEnd) || h(new Date(r.zonedEnd.getTime() - (r.zonedEnd.getTime() - r.zonedStart.getTime()) / 2), this.viewStart, this.viewEnd));
|
|
191
|
+
return C(t, this.timelineSlots, !0), x(t, this.timelineSlots, !0), t;
|
|
192
192
|
},
|
|
193
193
|
compDragItem() {
|
|
194
194
|
return this.dragItem !== void 0 ? this.dragItem : this.currentDragItem;
|
|
@@ -198,136 +198,101 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
mounted() {
|
|
201
|
-
this.timeRef = null, this.bodyRef = null, this.hasMounted = !0,
|
|
201
|
+
this.timeRef = null, this.bodyRef = null, this.hasMounted = !0, y({
|
|
202
202
|
element: this.$el,
|
|
203
203
|
selector: ".k-resource-cell",
|
|
204
204
|
attribute: "data-depth-index",
|
|
205
205
|
explicitDepth: !0
|
|
206
|
-
}),
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
}), this.scheduleRowSync(), this.observeSlotChanges();
|
|
207
|
+
},
|
|
208
|
+
unmounted() {
|
|
209
|
+
this.rowSyncTimeout !== void 0 && window.cancelAnimationFrame(this.rowSyncTimeout), this.rowSyncObserver && (this.rowSyncObserver.disconnect(), this.rowSyncObserver = null);
|
|
209
210
|
},
|
|
210
211
|
updated() {
|
|
211
|
-
|
|
212
|
+
y({
|
|
212
213
|
element: this.$el,
|
|
213
214
|
selector: ".k-resource-cell",
|
|
214
215
|
attribute: "data-depth-index",
|
|
215
216
|
explicitDepth: !0
|
|
216
|
-
}),
|
|
217
|
-
element: this.$el
|
|
218
|
-
});
|
|
217
|
+
}), this.scheduleRowSync();
|
|
219
218
|
},
|
|
220
219
|
render() {
|
|
221
|
-
const t =
|
|
222
|
-
return this.compDragItem && this.$props.editable.drag && (Array.isArray(this.compDragItem) ? this.compDragItem.map(function(a, s) {
|
|
223
|
-
return r(k, {
|
|
224
|
-
key: s,
|
|
225
|
-
ignoreIsAllDay: !0,
|
|
226
|
-
dataItem: a,
|
|
227
|
-
vertical: e,
|
|
228
|
-
item: this.$props.dataItem
|
|
229
|
-
}, null);
|
|
230
|
-
}, this) : r(k, {
|
|
231
|
-
ignoreIsAllDay: !0,
|
|
232
|
-
dataItem: this.compDragItem,
|
|
233
|
-
vertical: e,
|
|
234
|
-
item: this.$props.dataItem
|
|
235
|
-
}, null));
|
|
236
|
-
}, c = function(e) {
|
|
237
|
-
return this.compResizeItem && this.editable.resize && (Array.isArray(this.compResizeItem) ? this.compResizeItem.map(function(a, s) {
|
|
238
|
-
return r(I, {
|
|
239
|
-
key: s,
|
|
240
|
-
format: this.$props.format,
|
|
241
|
-
ignoreIsAllDay: !0,
|
|
242
|
-
dataItem: a,
|
|
243
|
-
viewItem: this.$props.viewItem,
|
|
244
|
-
item: this.$props.item,
|
|
245
|
-
vertical: e
|
|
246
|
-
}, null);
|
|
247
|
-
}, this) : r(I, {
|
|
248
|
-
format: this.$props.format,
|
|
249
|
-
ignoreIsAllDay: !0,
|
|
250
|
-
dataItem: this.compResizeItem,
|
|
251
|
-
viewItem: this.$props.viewItem,
|
|
252
|
-
item: this.$props.item,
|
|
253
|
-
vertical: e
|
|
254
|
-
}, null));
|
|
255
|
-
}, n = [r("div", {
|
|
220
|
+
const t = m(this), r = this.$props.slotDuration, a = t.parseDate(this.$props.workDayStart), l = t.parseDate(this.$props.workDayEnd), c = [...this.items], s = [...this.timelineSlots], d = (this.ks.orientation === "horizontal" ? s.length : s.length / this.ks.groups.length) * (this.$props.columnWidth + N), n = [i("div", {
|
|
256
221
|
class: "k-scheduler-row"
|
|
257
|
-
}, [this.ranges.map(function(e,
|
|
258
|
-
return
|
|
222
|
+
}, [this.ranges.map(function(e, u) {
|
|
223
|
+
return i(W, {
|
|
259
224
|
as: this.$props.dateHeaderCell,
|
|
260
|
-
key:
|
|
225
|
+
key: u,
|
|
261
226
|
date: e.zonedStart,
|
|
262
227
|
start: e.start,
|
|
263
228
|
end: e.end,
|
|
264
229
|
format: "m"
|
|
265
230
|
}, null);
|
|
266
|
-
}, this)]),
|
|
231
|
+
}, this)]), i("div", {
|
|
267
232
|
class: "k-scheduler-row",
|
|
268
233
|
ref: "timeRef"
|
|
269
|
-
}, [this.ranges.map(function(e,
|
|
270
|
-
return
|
|
271
|
-
return
|
|
272
|
-
key:
|
|
234
|
+
}, [this.ranges.map(function(e, u) {
|
|
235
|
+
return s.filter((o) => o.group.index === q && o.range.index === u).map(function(o) {
|
|
236
|
+
return o.zonedStart.getMinutes() % r === 0 ? i(_, {
|
|
237
|
+
key: o.index,
|
|
273
238
|
as: this.$props.timeHeaderCell,
|
|
274
|
-
format:
|
|
275
|
-
date:
|
|
276
|
-
start:
|
|
277
|
-
end:
|
|
239
|
+
format: U,
|
|
240
|
+
date: o.zonedStart,
|
|
241
|
+
start: o.zonedStart,
|
|
242
|
+
end: o.zonedEnd
|
|
278
243
|
}, null) : null;
|
|
279
244
|
}, this);
|
|
280
245
|
}, this)])];
|
|
281
|
-
return
|
|
246
|
+
return i(T, {
|
|
282
247
|
id: this.$props.id,
|
|
283
|
-
class: "k-scheduler-
|
|
248
|
+
class: "k-scheduler-timelineview",
|
|
284
249
|
viewProps: {
|
|
285
250
|
...this.$props
|
|
286
251
|
},
|
|
287
|
-
baseSlots:
|
|
252
|
+
baseSlots: s,
|
|
288
253
|
ranges: this.ranges
|
|
289
254
|
}, {
|
|
290
|
-
default: () => [
|
|
255
|
+
default: () => [i("div", {
|
|
291
256
|
class: "k-scheduler-head",
|
|
292
257
|
style: {
|
|
293
258
|
width: d + "px"
|
|
294
259
|
}
|
|
295
|
-
}, [this.ks.orientation === "horizontal" ?
|
|
260
|
+
}, [this.ks.orientation === "horizontal" ? i(g, {
|
|
296
261
|
nested: !0,
|
|
297
262
|
group: this.ks.props.group,
|
|
298
263
|
resources: this.ks.props.resources,
|
|
299
|
-
rowContent:
|
|
300
|
-
},
|
|
264
|
+
rowContent: $
|
|
265
|
+
}, D(n) ? n : {
|
|
301
266
|
default: () => [n]
|
|
302
|
-
}) :
|
|
267
|
+
}) : i(S, {
|
|
303
268
|
wrapGroup: !0,
|
|
304
269
|
group: this.ks.props.group,
|
|
305
270
|
resources: this.ks.props.resources,
|
|
306
271
|
editable: this.$props.editable
|
|
307
|
-
},
|
|
272
|
+
}, D(n) ? n : {
|
|
308
273
|
default: () => [n]
|
|
309
|
-
})]),
|
|
274
|
+
})]), i("div", {
|
|
310
275
|
class: "k-scheduler-body",
|
|
311
276
|
style: {
|
|
312
277
|
width: d + "px"
|
|
313
278
|
},
|
|
314
279
|
ref: "bodyRef"
|
|
315
|
-
}, [this.ks.orientation === "horizontal" ?
|
|
280
|
+
}, [this.ks.orientation === "horizontal" ? i(g, {
|
|
316
281
|
group: this.ks.props.group,
|
|
317
282
|
resources: this.ks.props.resources,
|
|
318
|
-
rowContent:
|
|
283
|
+
rowContent: E
|
|
319
284
|
}, {
|
|
320
|
-
default: () => [
|
|
285
|
+
default: () => [i(H, {
|
|
321
286
|
editable: this.$props.editable,
|
|
322
287
|
slotRender: this.$props.slotRender,
|
|
323
288
|
viewSlot: this.$props.viewSlot,
|
|
324
289
|
ranges: this.ranges,
|
|
325
|
-
workDayStart:
|
|
326
|
-
workDayEnd:
|
|
327
|
-
timelineSlots:
|
|
290
|
+
workDayStart: a,
|
|
291
|
+
workDayEnd: l,
|
|
292
|
+
timelineSlots: s,
|
|
328
293
|
onDataaction: this.handleDataAction
|
|
329
294
|
}, null)]
|
|
330
|
-
}) :
|
|
295
|
+
}) : i(S, {
|
|
331
296
|
nested: !0,
|
|
332
297
|
wrapGroup: !0,
|
|
333
298
|
group: this.ks.props.group,
|
|
@@ -335,16 +300,16 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
335
300
|
onDataaction: this.handleDataAction,
|
|
336
301
|
more: {
|
|
337
302
|
ranges: this.ranges,
|
|
338
|
-
workDayStart:
|
|
339
|
-
workDayEnd:
|
|
340
|
-
timelineSlots:
|
|
303
|
+
workDayStart: a,
|
|
304
|
+
workDayEnd: l,
|
|
305
|
+
timelineSlots: s,
|
|
341
306
|
slotRender: this.$props.slotRender,
|
|
342
307
|
viewSlot: this.$props.viewSlot,
|
|
343
308
|
editable: this.$props.editable,
|
|
344
309
|
currentTimeMarker: this.$props.currentTimeMarker
|
|
345
310
|
}
|
|
346
|
-
}, null), this.hasMounted &&
|
|
347
|
-
return
|
|
311
|
+
}, null), this.hasMounted && c.sort(O).map(function(e) {
|
|
312
|
+
return i(V, {
|
|
348
313
|
key: e.isRecurring ? `${e.uid}:${e.group.index}:${e.range.index}:${e.originalStart}` : `${e.uid}:${e.group.index}:${e.range.index}`,
|
|
349
314
|
uid: e.uid,
|
|
350
315
|
start: e.start,
|
|
@@ -371,6 +336,7 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
371
336
|
range: e.range,
|
|
372
337
|
isException: e.isException,
|
|
373
338
|
isRecurring: e.isRecurring,
|
|
339
|
+
readonly: e.readonly,
|
|
374
340
|
format: "t",
|
|
375
341
|
form: this.$props.form,
|
|
376
342
|
onDragitemchange: this.handleDragItemChange,
|
|
@@ -382,10 +348,37 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
382
348
|
ignoreIsAllDay: !0,
|
|
383
349
|
vertical: !1
|
|
384
350
|
}, null);
|
|
385
|
-
}, this)
|
|
351
|
+
}, this)])]
|
|
386
352
|
});
|
|
387
353
|
},
|
|
388
354
|
methods: {
|
|
355
|
+
scheduleRowSync() {
|
|
356
|
+
this.rowSyncTimeout !== void 0 && window.cancelAnimationFrame(this.rowSyncTimeout), this.rowSyncTimeout = window.requestAnimationFrame(() => {
|
|
357
|
+
this.rowSyncTimeout = window.requestAnimationFrame(() => {
|
|
358
|
+
this.runRowSync();
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
},
|
|
362
|
+
runRowSync() {
|
|
363
|
+
const t = this.$el ? this.$el.closest(".k-scheduler-layout") : null;
|
|
364
|
+
t && B({
|
|
365
|
+
element: t,
|
|
366
|
+
selector: ".k-resource-row",
|
|
367
|
+
horizontalAttribute: "data-depth-index",
|
|
368
|
+
verticalAttribute: "data-resource-index",
|
|
369
|
+
applyTo: ".k-resource-cell"
|
|
370
|
+
});
|
|
371
|
+
},
|
|
372
|
+
observeSlotChanges() {
|
|
373
|
+
const t = this.$el ? this.$el.querySelector(".k-scheduler-body") : null;
|
|
374
|
+
t && (this.rowSyncObserver = new MutationObserver((r) => {
|
|
375
|
+
r.some((l) => l.target instanceof HTMLElement && l.target.classList.contains("k-slot-cell")) && this.scheduleRowSync();
|
|
376
|
+
}), this.rowSyncObserver.observe(t, {
|
|
377
|
+
attributes: !0,
|
|
378
|
+
attributeFilter: ["style"],
|
|
379
|
+
subtree: !0
|
|
380
|
+
}));
|
|
381
|
+
},
|
|
389
382
|
handleDataAction(t) {
|
|
390
383
|
this.$emit("dataaction", t);
|
|
391
384
|
},
|
|
@@ -396,19 +389,19 @@ const L = "t", X = 0, Se = /* @__PURE__ */ T({
|
|
|
396
389
|
this.currentResizeItem = t;
|
|
397
390
|
}
|
|
398
391
|
}
|
|
399
|
-
}),
|
|
392
|
+
}), L = ({
|
|
400
393
|
date: t,
|
|
401
|
-
numberOfDays:
|
|
402
|
-
timezone:
|
|
394
|
+
numberOfDays: r = 1,
|
|
395
|
+
timezone: a
|
|
403
396
|
}) => {
|
|
404
|
-
const
|
|
397
|
+
const l = p.fromLocalDate(t, a), c = I(l), s = z(c, r), d = p.fromUTCDate(w(c), a), n = p.fromUTCDate(w(s), a), e = new Date(d.getTime()), u = new Date(n.getTime());
|
|
405
398
|
return {
|
|
406
|
-
start:
|
|
407
|
-
end:
|
|
399
|
+
start: e,
|
|
400
|
+
end: u,
|
|
408
401
|
zonedStart: d,
|
|
409
|
-
zonedEnd:
|
|
402
|
+
zonedEnd: n
|
|
410
403
|
};
|
|
411
404
|
};
|
|
412
405
|
export {
|
|
413
|
-
|
|
406
|
+
he as MultiDayTimelineView
|
|
414
407
|
};
|
|
@@ -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"),r=require("@progress/kendo-date-math"),o=e.defineComponent({name:"KendoTimelineView",emits:{dataaction:null},props:{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:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./MultiDayTimelineView.js"),r=require("@progress/kendo-date-math"),o=e.defineComponent({name:"KendoTimelineView",emits:{dataaction:null},props:{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:r.Day.Monday},workWeekEnd:{type:Number,default:r.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(i){this.$emit("dataaction",i)}}});exports.TimelineView=o;
|
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 d=require("vue"),S=require("../day/MultiDayView.js"),i=require("../../constants/main.js"),e=require("@progress/kendo-date-math"),a=require("../../messages/main.js"),u=require("../../utils/main.js"),h=require("@progress/kendo-vue-intl"),k=d.defineComponent({name:"KendoWeekView",emits:{dataaction:null},props:{name:{type:String,default:"week"},slotDuration:{type:Number,default:60},slotDivisions:{type:Number,default:2},numberOfDays:{type:Number,default:i.DAYS_IN_WEEK_COUNT},dateRange:{type:[Function,Object],default:function(){return f}},title:String,selectedDateFormat:{type:String,default:"{0:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("vue"),S=require("../day/MultiDayView.js"),i=require("../../constants/main.js"),e=require("@progress/kendo-date-math"),a=require("../../messages/main.js"),u=require("../../utils/main.js"),h=require("@progress/kendo-vue-intl"),k=d.defineComponent({name:"KendoWeekView",emits:{dataaction:null},props:{name:{type:String,default:"week"},slotDuration:{type:Number,default:60},slotDivisions:{type:Number,default:2},numberOfDays:{type:Number,default:i.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(a.weekViewTitle,a.messages[a.weekViewTitle]);return d.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:i.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){this.$emit("dataaction",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),n=w(e.firstDayInWeek(p,t.firstDay())),c=y(n,i.DAYS_IN_WEEK_COUNT),s=e.ZonedDate.fromUTCDate(u.toUTCDateTime(n),o),l=e.ZonedDate.fromUTCDate(u.toUTCDateTime(c),o),m=new Date(s.getTime()),D=new Date(l.getTime());return{start:m,end:D,zonedStart:s,zonedEnd:l}};exports.WeekView=k;
|
package/views/week/WeekView.mjs
CHANGED
|
@@ -43,11 +43,11 @@ const N = /* @__PURE__ */ h({
|
|
|
43
43
|
title: String,
|
|
44
44
|
selectedDateFormat: {
|
|
45
45
|
type: String,
|
|
46
|
-
default: "{0:
|
|
46
|
+
default: "{0:M} - {1:M}"
|
|
47
47
|
},
|
|
48
48
|
selectedShortDateFormat: {
|
|
49
49
|
type: String,
|
|
50
|
-
default: "{0:
|
|
50
|
+
default: "{0:m} - {1:m}"
|
|
51
51
|
},
|
|
52
52
|
showWorkHours: {
|
|
53
53
|
type: Boolean,
|
|
@@ -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 u=require("vue"),t=require("@progress/kendo-date-math"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),t=require("@progress/kendo-date-math"),D=require("../../constants/main.js"),g=require("../day/MultiDayView.js"),s=require("../../messages/main.js"),p=require("../../utils/main.js"),f=require("@progress/kendo-vue-intl"),h=u.defineComponent({name:"KendoWorkWeekView",emits:{dataaction:null},props:{name:{type:String,default:"work-week"},slotDuration:{type:Number,default:60},slotDivisions:{type:Number,default:2},numberOfDays:{type:Number,default:7},dateRange:{type:[Function,Object],default:function(){return b}},title:String,workWeekStart:{type:Number,default:t.Day.Monday},workWeekEnd:{type:Number,default:t.Day.Friday},selectedDateFormat:{type:String,default:"{0:M} - {1:M}"},selectedShortDateFormat:{type:String,default:"{0:m} - {1:m}"},showWorkHours:{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}},inject:{kendoLocalizationService:{default:null},ks:{default:null}},render(){const a=f.provideLocalizationService(this).toLanguageString(s.workWeekViewTitle,s.messages[s.workWeekViewTitle]),e=this.ks.dateRange,o=Math.round((e.end.getTime()-e.start.getTime())/t.MS_PER_DAY);return u.createVNode(g.MultiDayView,{name:this.$props.name,dateRange:this.$props.dateRange,numberOfDays:o,slotDuration:this.$props.slotDuration,slotDivisions:this.$props.slotDivisions,selectedDateFormat:this.$props.selectedDateFormat,selectedShortDateFormat:this.$props.selectedShortDateFormat,showWorkHours:this.$props.showWorkHours,title:a,step:D.DAYS_IN_WEEK_COUNT,slotRender:this.$props.slotRender,viewSlot:this.$props.viewSlot,resizeHint:this.$props.resizeHint,item:this.$props.item,viewItem:this.$props.viewItem,editable:this.$props.editable,dateHeaderCell:this.$props.dateHeaderCell,timeHeaderCell:this.$props.timeHeaderCell,onDataaction:this.handleDataAction},null)},methods:{handleDataAction(n){this.$emit("dataaction",n)}}}),W=(n,a=t.Day.Sunday)=>{let e=n.clone();for(;e.getDay()!==a;)e=e.addDays(-1);return e},b=({intl:n,date:a,timezone:e,...o})=>{const m=t.ZonedDate.fromLocalDate(a,e),i=o.workWeekStart!==void 0?o.workWeekStart:t.Day.Monday,r=o.workWeekEnd!==void 0?o.workWeekEnd:t.Day.Friday,k=r<i?D.DAYS_IN_WEEK_COUNT+r-i+1:r-i+1,l=t.getDate(W(m,i)),w=t.addDays(l,k),d=t.ZonedDate.fromUTCDate(p.toUTCDateTime(l),e),c=t.ZonedDate.fromUTCDate(p.toUTCDateTime(w),e),y=new Date(d.getTime()),S=new Date(c.getTime());return{start:y,end:S,zonedStart:d,zonedEnd:c}};exports.WorkWeekView=h;
|
|
@@ -9,10 +9,10 @@ import { defineComponent as g, createVNode as h } from "vue";
|
|
|
9
9
|
import { Day as n, MS_PER_DAY as y, ZonedDate as s, getDate as b, addDays as W } from "@progress/kendo-date-math";
|
|
10
10
|
import { DAYS_IN_WEEK_COUNT as u } from "../../constants/main.mjs";
|
|
11
11
|
import { MultiDayView as F } from "../day/MultiDayView.mjs";
|
|
12
|
-
import { workWeekViewTitle as
|
|
13
|
-
import { toUTCDateTime as
|
|
12
|
+
import { workWeekViewTitle as m, messages as $ } from "../../messages/main.mjs";
|
|
13
|
+
import { toUTCDateTime as p } from "../../utils/main.mjs";
|
|
14
14
|
import { provideLocalizationService as O } from "@progress/kendo-vue-intl";
|
|
15
|
-
const
|
|
15
|
+
const M = /* @__PURE__ */ g({
|
|
16
16
|
name: "KendoWorkWeekView",
|
|
17
17
|
emits: {
|
|
18
18
|
dataaction: null
|
|
@@ -51,11 +51,11 @@ const V = /* @__PURE__ */ g({
|
|
|
51
51
|
},
|
|
52
52
|
selectedDateFormat: {
|
|
53
53
|
type: String,
|
|
54
|
-
default: "{0:
|
|
54
|
+
default: "{0:M} - {1:M}"
|
|
55
55
|
},
|
|
56
56
|
selectedShortDateFormat: {
|
|
57
57
|
type: String,
|
|
58
|
-
default: "{0:
|
|
58
|
+
default: "{0:m} - {1:m}"
|
|
59
59
|
},
|
|
60
60
|
showWorkHours: {
|
|
61
61
|
type: Boolean,
|
|
@@ -82,7 +82,7 @@ const V = /* @__PURE__ */ g({
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
render() {
|
|
85
|
-
const a = O(this).toLanguageString(
|
|
85
|
+
const a = O(this).toLanguageString(m, $[m]), e = this.ks.dateRange, t = Math.round((e.end.getTime() - e.start.getTime()) / y);
|
|
86
86
|
return h(F, {
|
|
87
87
|
name: this.$props.name,
|
|
88
88
|
dateRange: this.$props.dateRange,
|
|
@@ -121,14 +121,14 @@ const V = /* @__PURE__ */ g({
|
|
|
121
121
|
timezone: e,
|
|
122
122
|
...t
|
|
123
123
|
}) => {
|
|
124
|
-
const D = s.fromLocalDate(a, e), i = t.workWeekStart !== void 0 ? t.workWeekStart : n.Monday, r = t.workWeekEnd !== void 0 ? t.workWeekEnd : n.Friday, f = r < i ? u + r - i + 1 : r - i + 1,
|
|
124
|
+
const D = s.fromLocalDate(a, e), i = t.workWeekStart !== void 0 ? t.workWeekStart : n.Monday, r = t.workWeekEnd !== void 0 ? t.workWeekEnd : n.Friday, f = r < i ? u + r - i + 1 : r - i + 1, l = b(v(D, i)), k = W(l, f), d = s.fromUTCDate(p(l), e), c = s.fromUTCDate(p(k), e), w = new Date(d.getTime()), S = new Date(c.getTime());
|
|
125
125
|
return {
|
|
126
126
|
start: w,
|
|
127
127
|
end: S,
|
|
128
|
-
zonedStart:
|
|
128
|
+
zonedStart: d,
|
|
129
129
|
zonedEnd: c
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
M as WorkWeekView
|
|
134
134
|
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
declare const DatePickerToggleButton: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
12
|
-
handleClick: (e: any) => void;
|
|
13
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
14
|
-
[x: string]: any;
|
|
15
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
-
export { DatePickerToggleButton };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
import { PropType } from 'vue';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
declare const FilterableComboBox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
-
value: PropType<any>;
|
|
14
|
-
dataItems: PropType<any[]>;
|
|
15
|
-
validationMessage: PropType<string>;
|
|
16
|
-
touched: PropType<boolean>;
|
|
17
|
-
modified: PropType<boolean>;
|
|
18
|
-
visited: PropType<boolean>;
|
|
19
|
-
valid: PropType<boolean>;
|
|
20
|
-
name: PropType<string>;
|
|
21
|
-
}>, {
|
|
22
|
-
kendoLocalizationService: {};
|
|
23
|
-
}, {
|
|
24
|
-
filteredData: any[];
|
|
25
|
-
}, {}, {
|
|
26
|
-
onValueChange(e: any): void;
|
|
27
|
-
onFilterChange(event: any): void;
|
|
28
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
-
value: PropType<any>;
|
|
30
|
-
dataItems: PropType<any[]>;
|
|
31
|
-
validationMessage: PropType<string>;
|
|
32
|
-
touched: PropType<boolean>;
|
|
33
|
-
modified: PropType<boolean>;
|
|
34
|
-
visited: PropType<boolean>;
|
|
35
|
-
valid: PropType<boolean>;
|
|
36
|
-
name: PropType<string>;
|
|
37
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
|
-
export { FilterableComboBox };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("@progress/kendo-data-query"),i=require("@progress/kendo-vue-dropdowns"),n=t.defineComponent({name:"KendoFilterableComboBox",props:{value:[String,Number,Object],dataItems:Array,validationMessage:String,touched:Boolean,modified:Boolean,visited:Boolean,valid:Boolean,name:String},data(){return{filteredData:this.$props.dataItems}},setup(){return{kendoLocalizationService:t.inject("kendoLocalizationService",{})}},render(){const{data:e,validationMessage:o,visited:r,touched:s,modified:l,...d}=this.$props;return t.createVNode(i.ComboBox,{dataItems:this.filteredData,filterable:!0,onFilterchange:this.onFilterChange,onChange:this.onValueChange},null)},methods:{onValueChange(e){this.$emit("change",e)},onFilterChange(e){const o=a.filterBy(this.$props.dataItems||[],e.filter);this.filteredData=o}}});exports.FilterableComboBox=n;
|