@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,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 D=require("vue"),t=require("@progress/kendo-date-math"),p=require("../../constants/main.js"),g=require("../day/MultiDayView.js"),s=require("../../messages/main.js"),l=require("../../utils/main.js"),f=require("@progress/kendo-vue-intl"),h=D.defineComponent({name:"KendoWorkWeekView",emits:{dataaction:null},props:{onDataAction:Function,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 D.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:p.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){l.emitDataAction(this,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?p.DAYS_IN_WEEK_COUNT+r-i+1:r-i+1,d=t.getDate(W(m,i)),w=t.addDays(d,k),c=t.ZonedDate.fromUTCDate(l.toUTCDateTime(d),e),u=t.ZonedDate.fromUTCDate(l.toUTCDateTime(w),e),y=new Date(c.getTime()),S=new Date(u.getTime());return{start:y,end:S,zonedStart:c,zonedEnd:u}};exports.WorkWeekView=h;
|
|
@@ -6,18 +6,19 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as g, createVNode as h } from "vue";
|
|
9
|
-
import { Day as
|
|
9
|
+
import { Day as a, 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
12
|
import { workWeekViewTitle as m, messages as $ } from "../../messages/main.mjs";
|
|
13
|
-
import { toUTCDateTime as p } from "../../utils/main.mjs";
|
|
14
|
-
import { provideLocalizationService as
|
|
15
|
-
const
|
|
13
|
+
import { emitDataAction as O, toUTCDateTime as p } from "../../utils/main.mjs";
|
|
14
|
+
import { provideLocalizationService as v } from "@progress/kendo-vue-intl";
|
|
15
|
+
const A = /* @__PURE__ */ g({
|
|
16
16
|
name: "KendoWorkWeekView",
|
|
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: "work-week"
|
|
@@ -37,17 +38,17 @@ const M = /* @__PURE__ */ g({
|
|
|
37
38
|
dateRange: {
|
|
38
39
|
type: [Function, Object],
|
|
39
40
|
default: function() {
|
|
40
|
-
return
|
|
41
|
+
return C;
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
title: String,
|
|
44
45
|
workWeekStart: {
|
|
45
46
|
type: Number,
|
|
46
|
-
default:
|
|
47
|
+
default: a.Monday
|
|
47
48
|
},
|
|
48
49
|
workWeekEnd: {
|
|
49
50
|
type: Number,
|
|
50
|
-
default:
|
|
51
|
+
default: a.Friday
|
|
51
52
|
},
|
|
52
53
|
selectedDateFormat: {
|
|
53
54
|
type: String,
|
|
@@ -82,7 +83,7 @@ const M = /* @__PURE__ */ g({
|
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
render() {
|
|
85
|
-
const
|
|
86
|
+
const n = v(this).toLanguageString(m, $[m]), e = this.ks.dateRange, t = Math.round((e.end.getTime() - e.start.getTime()) / y);
|
|
86
87
|
return h(F, {
|
|
87
88
|
name: this.$props.name,
|
|
88
89
|
dateRange: this.$props.dateRange,
|
|
@@ -92,7 +93,7 @@ const M = /* @__PURE__ */ g({
|
|
|
92
93
|
selectedDateFormat: this.$props.selectedDateFormat,
|
|
93
94
|
selectedShortDateFormat: this.$props.selectedShortDateFormat,
|
|
94
95
|
showWorkHours: this.$props.showWorkHours,
|
|
95
|
-
title:
|
|
96
|
+
title: n,
|
|
96
97
|
step: u,
|
|
97
98
|
slotRender: this.$props.slotRender,
|
|
98
99
|
viewSlot: this.$props.viewSlot,
|
|
@@ -107,21 +108,21 @@ const M = /* @__PURE__ */ g({
|
|
|
107
108
|
},
|
|
108
109
|
methods: {
|
|
109
110
|
handleDataAction(o) {
|
|
110
|
-
this
|
|
111
|
+
O(this, o);
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
}),
|
|
114
|
+
}), H = (o, n = a.Sunday) => {
|
|
114
115
|
let e = o.clone();
|
|
115
|
-
for (; e.getDay() !==
|
|
116
|
+
for (; e.getDay() !== n; )
|
|
116
117
|
e = e.addDays(-1);
|
|
117
118
|
return e;
|
|
118
|
-
},
|
|
119
|
+
}, C = ({
|
|
119
120
|
intl: o,
|
|
120
|
-
date:
|
|
121
|
+
date: n,
|
|
121
122
|
timezone: e,
|
|
122
123
|
...t
|
|
123
124
|
}) => {
|
|
124
|
-
const D = s.fromLocalDate(
|
|
125
|
+
const D = s.fromLocalDate(n, e), i = t.workWeekStart !== void 0 ? t.workWeekStart : a.Monday, r = t.workWeekEnd !== void 0 ? t.workWeekEnd : a.Friday, f = r < i ? u + r - i + 1 : r - i + 1, l = b(H(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
126
|
return {
|
|
126
127
|
start: w,
|
|
127
128
|
end: S,
|
|
@@ -130,5 +131,5 @@ const M = /* @__PURE__ */ g({
|
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
133
|
export {
|
|
133
|
-
|
|
134
|
+
A as WorkWeekView
|
|
134
135
|
};
|