@progress/kendo-vue-scheduler 8.0.3-develop.2 → 8.0.3-develop.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Scheduler.d.ts +1536 -0
- package/common.d.ts +13 -0
- package/components/BaseView.d.ts +74 -0
- package/components/CurrentTimeMarker.d.ts +35 -0
- package/components/CurrentTimeMarkerArrow.d.ts +33 -0
- package/components/DateHeaderCell.d.ts +70 -0
- package/components/SchedulerActionButtons.d.ts +32 -0
- package/components/SchedulerForm.d.ts +70 -0
- package/components/SchedulerOccurrenceDialog.d.ts +75 -0
- package/components/SchedulerRemoveDialog.d.ts +61 -0
- package/components/ShowMoreItemsButton.d.ts +36 -0
- package/components/TimeHeaderCell.d.ts +70 -0
- package/components/footer/SchedulerFooter.d.ts +20 -0
- package/components/footer/bussiness-hours/BusinessHours.d.ts +27 -0
- package/components/footer/bussiness-hours/BusinessHours.js +1 -1
- package/components/footer/bussiness-hours/BusinessHours.mjs +1 -1
- package/components/header/SchedulerHeader.d.ts +23 -0
- package/components/header/navigation/DatePickerToggleButton.d.ts +16 -0
- package/components/header/navigation/NavigationDatePicker.d.ts +34 -0
- package/components/header/navigation/SchedulerNavigation.d.ts +39 -0
- package/components/header/view-selector/SchedulerViewSelector.d.ts +20 -0
- package/components/header/view-selector/ViewSelectorItem.d.ts +25 -0
- package/components/header/view-selector/ViewSelectorList.d.ts +17 -0
- package/constants/main.d.ts +66 -0
- package/context/SchedulerContext.d.ts +29 -0
- package/context/SchedulerEditItemContext.d.ts +22 -0
- package/context/SchedulerEditSlotContext.d.ts +17 -0
- package/context/SchedulerEditTaskContext.d.ts +18 -0
- package/context/SchedulerResourceIteratorContext.d.ts +47 -0
- package/context/SchedulerViewContext.d.ts +25 -0
- package/context/main.d.ts +12 -0
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/FilterableComboBox.d.ts +38 -0
- package/editors/ResourceEditor.d.ts +60 -0
- package/editors/SchedulerFormEditor.d.ts +3858 -0
- package/editors/ZonedDateTime.d.ts +32 -0
- package/editors/common.d.ts +19 -0
- package/hooks/main.d.ts +16 -0
- package/hooks/use-items-focus.d.ts +29 -0
- package/hooks/use-items-focus.js +1 -1
- package/hooks/use-items-focus.mjs +2 -2
- package/hooks/use-items-selection.d.ts +36 -0
- package/hooks/use-items-selection.js +1 -1
- package/hooks/use-items-selection.mjs +2 -2
- package/hooks/use-slots-focus.d.ts +39 -0
- package/hooks/use-slots-focus.js +1 -1
- package/hooks/use-slots-focus.mjs +2 -2
- package/hooks/use-slots-selection.d.ts +29 -0
- package/hooks/use-slots-selection.js +1 -1
- package/hooks/use-slots-selection.mjs +2 -2
- package/hooks/useAsyncMouseEnterLeave.d.ts +17 -0
- package/hooks/useCellSync.d.ts +16 -0
- package/hooks/useEditable.d.ts +10 -0
- package/hooks/usePropOrState.d.ts +9 -0
- package/hooks/useRowSync.d.ts +17 -0
- package/hooks/useSchedulerSlot.d.ts +13 -0
- package/hooks/useSlotExpand.d.ts +10 -0
- package/hooks/useWorkHours.d.ts +9 -0
- package/index.d.mts +45 -10991
- package/index.d.ts +45 -10991
- package/items/SchedulerEditItem.d.ts +896 -0
- package/items/SchedulerItem.d.ts +404 -0
- package/items/SchedulerItemContent.d.ts +27 -0
- package/items/SchedulerViewItem.d.ts +235 -0
- package/items/hooks/use-drag-item.d.ts +40 -0
- package/items/hooks/use-drag-item.js +1 -1
- package/items/hooks/use-drag-item.mjs +2 -2
- package/items/hooks/use-form-item.d.ts +29 -0
- package/items/hooks/use-form-item.js +1 -1
- package/items/hooks/use-form-item.mjs +2 -2
- package/items/hooks/use-remove-item.d.ts +37 -0
- package/items/hooks/use-remove-item.js +1 -1
- package/items/hooks/use-remove-item.mjs +2 -2
- package/items/hooks/use-resize-item.d.ts +45 -0
- package/items/hooks/use-resize-item.js +1 -1
- package/items/hooks/use-resize-item.mjs +2 -2
- package/items/hooks/use-series.d.ts +32 -0
- package/items/hooks/use-series.js +1 -1
- package/items/hooks/use-series.mjs +2 -2
- package/items/hooks/use-show-occurrence-dialog.d.ts +36 -0
- package/items/hooks/use-show-occurrence-dialog.js +1 -1
- package/items/hooks/use-show-occurrence-dialog.mjs +2 -2
- package/items/hooks/use-show-remove-item-dialog.d.ts +36 -0
- package/items/hooks/use-show-remove-item-dialog.js +1 -1
- package/items/hooks/use-show-remove-item-dialog.mjs +2 -2
- package/messages/main.d.ts +243 -0
- package/models/DataItem.d.ts +15 -0
- package/models/DateRange.d.ts +25 -0
- package/models/EditableProp.d.ts +36 -0
- package/models/Fields.d.ts +24 -0
- package/models/Group.d.ts +15 -0
- package/models/Item.d.ts +69 -0
- package/models/NavigationAction.d.ts +24 -0
- package/models/Occurrence.d.ts +59 -0
- package/models/Omit.d.ts +11 -0
- package/models/Orientation.d.ts +9 -0
- package/models/Range.d.ts +17 -0
- package/models/Rect.d.ts +22 -0
- package/models/Resource.d.ts +15 -0
- package/models/SchedulerGroup.d.ts +20 -0
- package/models/SchedulerHandle.d.ts +13 -0
- package/models/SchedulerModelFields.d.ts +69 -0
- package/models/SchedulerResource.d.ts +40 -0
- package/models/SchedulerView.d.ts +90 -0
- package/models/Slot.d.ts +58 -0
- package/models/events.d.ts +88 -0
- package/models/main.d.ts +24 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +19 -13
- package/recurrence/RecurrenceEditor.d.ts +82 -0
- package/recurrence/RecurrenceFrequencyEditor.d.ts +32 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +59 -0
- package/recurrence/common.d.ts +64 -0
- package/recurrence/types/EndRule.d.ts +11 -0
- package/recurrence/types/Frequency.d.ts +11 -0
- package/recurrence/types/FrequencyEntity.d.ts +15 -0
- package/recurrence/types/MonthEntity.d.ts +14 -0
- package/recurrence/types/OffsetPosition.d.ts +11 -0
- package/recurrence/types/OffsetPositionEntity.d.ts +14 -0
- package/recurrence/types/RepeatOnRule.d.ts +11 -0
- package/recurrence/types/WeekDayEntity.d.ts +14 -0
- package/recurrence/types/WeekDayRule.d.ts +14 -0
- package/recurrence/utils/main.d.ts +7 -0
- package/reducers/editReducer.d.ts +40 -0
- package/reducers/main.d.ts +8 -0
- package/services/itemsService.d.ts +21 -0
- package/services/main.d.ts +11 -0
- package/services/occurrenceService.d.ts +14 -0
- package/services/rangeService.d.ts +13 -0
- package/services/slotsService.d.ts +15 -0
- package/slots/SchedulerEditSlot.d.ts +148 -0
- package/slots/SchedulerSlot.d.ts +248 -0
- package/slots/SchedulerViewSlot.d.ts +134 -0
- package/tasks/SchedulerEditTask.d.ts +225 -0
- package/tasks/SchedulerTask.d.ts +139 -0
- package/tasks/SchedulerViewTask.d.ts +120 -0
- package/utils/main.d.ts +192 -0
- package/utils/main.mjs +3 -3
- package/views/agenda/AgendaView.d.ts +173 -0
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +2 -2
- package/views/agenda/AgendaViewBody.d.ts +53 -0
- package/views/agenda/AgendaViewHead.d.ts +24 -0
- package/views/agenda/AgendaViewHeaderItem.d.ts +22 -0
- package/views/common/HorizontalResourceIterator.d.ts +57 -0
- package/views/common/SchedulerDrag.d.ts +459 -0
- package/views/common/SchedulerResize.d.ts +462 -0
- package/views/common/VerticalResourceIterator.d.ts +57 -0
- package/views/common/utils.d.ts +41 -0
- package/views/day/DayView.d.ts +208 -0
- package/views/day/DayViewAllDayRowContent.d.ts +19 -0
- package/views/day/DayViewAllDaySlots.d.ts +63 -0
- package/views/day/DayViewGroupRowContent.d.ts +19 -0
- package/views/day/DayViewHead.d.ts +21 -0
- package/views/day/DayViewMiddleRow.d.ts +82 -0
- package/views/day/DayViewRowContent.d.ts +29 -0
- package/views/day/DayViewVerticalRow.d.ts +43 -0
- package/views/day/DayViewVerticalSlotsRow.d.ts +94 -0
- package/views/day/DayViewVerticalSlotsRow.mjs +3 -3
- package/views/day/MultiDayView.d.ts +411 -0
- package/views/month/MonthView.d.ts +205 -0
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +1 -1
- package/views/month/MonthViewBody.d.ts +57 -0
- package/views/month/MonthViewHead.d.ts +30 -0
- package/views/time/MultiDayTimelineView.d.ts +382 -0
- package/views/time/TimelineView.d.ts +233 -0
- package/views/time/TimelineViewAllEventsRowContent.d.ts +13 -0
- package/views/time/TimelineViewBody.d.ts +66 -0
- package/views/time/TimelineViewBody.mjs +3 -3
- package/views/time/TimelineViewRowContent.d.ts +13 -0
- package/views/week/WeekView.d.ts +270 -0
- package/views/week/WeekView.mjs +1 -1
- package/views/week/WorkWeekView.d.ts +141 -0
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/** @hidden */
|
|
9
|
+
export interface TimelineViewAllEventsRowContentProps {
|
|
10
|
+
}
|
|
11
|
+
/** @hidden */
|
|
12
|
+
declare const TimelineViewAllEventsRowContent: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export { TimelineViewAllEventsRowContent };
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { DataAction } from '../../Scheduler';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export interface TimelineViewBodyProps {
|
|
12
|
+
currentTimeMarker: boolean;
|
|
13
|
+
groupIndex: number;
|
|
14
|
+
timelineSlots: any[];
|
|
15
|
+
ranges: any[];
|
|
16
|
+
workDayStart: any;
|
|
17
|
+
workDayEnd: any;
|
|
18
|
+
slotRender: any;
|
|
19
|
+
viewSlot: any;
|
|
20
|
+
editable?: boolean | object;
|
|
21
|
+
onDataaction: (action: DataAction) => void;
|
|
22
|
+
}
|
|
23
|
+
/** @hidden */
|
|
24
|
+
declare const TimelineViewBody: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
25
|
+
currentTimeMarker: {
|
|
26
|
+
type: PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
groupIndex: PropType<number>;
|
|
30
|
+
timelineSlots: PropType<any[]>;
|
|
31
|
+
ranges: PropType<any[]>;
|
|
32
|
+
workDayStart: PropType<any>;
|
|
33
|
+
workDayEnd: PropType<any>;
|
|
34
|
+
editable: PropType<boolean | object>;
|
|
35
|
+
slotRender: PropType<any>;
|
|
36
|
+
viewSlot: PropType<any>;
|
|
37
|
+
onDataaction: PropType<(action: DataAction) => void>;
|
|
38
|
+
}>, {}, {
|
|
39
|
+
ksSlots: {
|
|
40
|
+
cSlots: any;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
currentCellSlots(): any;
|
|
44
|
+
}, {
|
|
45
|
+
handleDataAction(action: DataAction): void;
|
|
46
|
+
calculateRanges(timelineSlots: any, groupIndex: number, ranges: any): any;
|
|
47
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
48
|
+
currentTimeMarker: {
|
|
49
|
+
type: PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
groupIndex: PropType<number>;
|
|
53
|
+
timelineSlots: PropType<any[]>;
|
|
54
|
+
ranges: PropType<any[]>;
|
|
55
|
+
workDayStart: PropType<any>;
|
|
56
|
+
workDayEnd: PropType<any>;
|
|
57
|
+
editable: PropType<boolean | object>;
|
|
58
|
+
slotRender: PropType<any>;
|
|
59
|
+
viewSlot: PropType<any>;
|
|
60
|
+
onDataaction: PropType<(action: DataAction) => void>;
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
currentTimeMarker: boolean;
|
|
63
|
+
}, {}, {}, {}, string, () => {
|
|
64
|
+
ksSlots: any;
|
|
65
|
+
}, true, {}, any>;
|
|
66
|
+
export { TimelineViewBody };
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as u, createVNode as l } from "vue";
|
|
9
9
|
import { SchedulerEditSlot as d } from "../../slots/SchedulerEditSlot.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { isInTimeRange as c, intersects as p, last as h, first as g } from "../../utils/main.mjs";
|
|
11
11
|
import { CurrentTimeMarker as m } from "../../components/CurrentTimeMarker.mjs";
|
|
12
12
|
const w = /* @__PURE__ */ u({
|
|
13
13
|
name: "KendoTimelineViewBody",
|
|
@@ -72,13 +72,13 @@ const w = /* @__PURE__ */ u({
|
|
|
72
72
|
index: s,
|
|
73
73
|
form: t.$props.form,
|
|
74
74
|
onDataaction: t.handleDataAction,
|
|
75
|
-
isWorkHour:
|
|
75
|
+
isWorkHour: c(n.zonedStart, t.workDayStart, t.workDayEnd),
|
|
76
76
|
col: e === "horizontal" ? n.range.index * a.length + s + a.length * r.length * (o || 0) : n.range.index * a.length + s,
|
|
77
77
|
row: e === "horizontal" ? 0 : o || 0,
|
|
78
78
|
expandable: !0,
|
|
79
79
|
editable: i
|
|
80
80
|
}, null);
|
|
81
|
-
}, this), this.$props.currentTimeMarker &&
|
|
81
|
+
}, this), this.$props.currentTimeMarker && p(g(r).start, h(r).end, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date(), !0) && l(m, {
|
|
82
82
|
groupIndex: o,
|
|
83
83
|
vertical: !0
|
|
84
84
|
}, null)]);
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/** @hidden */
|
|
9
|
+
export interface TimelineViewRowContentProps {
|
|
10
|
+
}
|
|
11
|
+
/** @hidden */
|
|
12
|
+
declare const TimelineViewRowContent: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export { TimelineViewRowContent };
|
|
@@ -0,0 +1,270 @@
|
|
|
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 { MultiDayViewProps } from '../day/MultiDayView';
|
|
9
|
+
import { Day } from '@progress/kendo-date-math';
|
|
10
|
+
import { SchedulerViewDateRangeArgs, DateRange } from '../../models/main';
|
|
11
|
+
import { DataAction } from '../../Scheduler';
|
|
12
|
+
import { PropType } from 'vue';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the properties of the Kendo UI for Vue [WeekView]({% slug api_scheduler_weekviewprops %}) Component.
|
|
15
|
+
*/
|
|
16
|
+
export interface WeekViewProps extends MultiDayViewProps {
|
|
17
|
+
/**
|
|
18
|
+
* The long-date format for displaying the
|
|
19
|
+
* selected date in the Scheduler toolbar.
|
|
20
|
+
* Defaults to `{0:D} - {1:D}`
|
|
21
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
22
|
+
*/
|
|
23
|
+
selectedDateFormat?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The short-date format for displaying the
|
|
26
|
+
* selected date in the Scheduler toolbar.
|
|
27
|
+
* Defaults to `{0:d} - {1-d}`
|
|
28
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
29
|
+
*/
|
|
30
|
+
selectedShortDateFormat?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
33
|
+
*/
|
|
34
|
+
editable?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The start time of the view. The WeekView displays events which are visible after the start time.
|
|
37
|
+
* Accepts string values in the `HH:mm` format.
|
|
38
|
+
*/
|
|
39
|
+
startTime?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The end time of the view. The WeekView displays events which are visible before the end time.
|
|
42
|
+
* Accepts string values in the `HH:mm` format.
|
|
43
|
+
*/
|
|
44
|
+
endTime?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The start time of the view when `showWorkHours` is set to `true`.
|
|
47
|
+
* Accepts string values in the `HH:mm` format.
|
|
48
|
+
*/
|
|
49
|
+
workDayStart?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The end time of the view when `showWorkHours` is set to `true`.
|
|
52
|
+
* Accepts string values in the `HH:mm` format.
|
|
53
|
+
*/
|
|
54
|
+
workDayEnd?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The start of the work week.
|
|
57
|
+
*/
|
|
58
|
+
workWeekStart?: Day;
|
|
59
|
+
/**
|
|
60
|
+
* The end of the work week.
|
|
61
|
+
*/
|
|
62
|
+
workWeekEnd?: Day;
|
|
63
|
+
/**
|
|
64
|
+
* The number of divisions of the time slots.
|
|
65
|
+
*/
|
|
66
|
+
slotDivisions?: number;
|
|
67
|
+
/**
|
|
68
|
+
* The duration (in minutes) of the time slots.
|
|
69
|
+
*/
|
|
70
|
+
slotDuration?: number;
|
|
71
|
+
/**
|
|
72
|
+
* If set to `true`, the view will be shown in the business-hours mode only.
|
|
73
|
+
*
|
|
74
|
+
* This will always override the internal `showWorkHours` state.
|
|
75
|
+
*/
|
|
76
|
+
showWorkHours?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Sets the initial business-hour mode. Default `true`.
|
|
79
|
+
*
|
|
80
|
+
* This option applies only the initial `showWorkHours` state.
|
|
81
|
+
*/
|
|
82
|
+
defaultShowWorkHours?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Sets a custom `id` to the wrapping element of the `DayView`.
|
|
85
|
+
*/
|
|
86
|
+
id?: string;
|
|
87
|
+
}
|
|
88
|
+
/** @hidden */
|
|
89
|
+
declare const WeekView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
90
|
+
name: {
|
|
91
|
+
type: PropType<string>;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
slotDuration: {
|
|
95
|
+
type: PropType<number>;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
98
|
+
slotDivisions: {
|
|
99
|
+
type: PropType<number>;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
numberOfDays: {
|
|
103
|
+
type: PropType<number>;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
dateRange: {
|
|
107
|
+
type: PropType<DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange)>;
|
|
108
|
+
default: () => ({ intl, date, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
109
|
+
};
|
|
110
|
+
title: PropType<string | ((localization: import('@progress/kendo-vue-intl').LocalizationService) => string)>;
|
|
111
|
+
selectedDateFormat: {
|
|
112
|
+
type: PropType<string>;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
selectedShortDateFormat: {
|
|
116
|
+
type: PropType<string>;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
showWorkHours: {
|
|
120
|
+
type: PropType<boolean>;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
currentTimeMarker: {
|
|
124
|
+
type: PropType<boolean>;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
startTime: {
|
|
128
|
+
type: PropType<string>;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
endTime: {
|
|
132
|
+
type: PropType<string>;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
workDayStart: {
|
|
136
|
+
type: PropType<string>;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
workDayEnd: {
|
|
140
|
+
type: PropType<string>;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
workWeekStart: {
|
|
144
|
+
type: PropType<Day>;
|
|
145
|
+
default: Day;
|
|
146
|
+
};
|
|
147
|
+
workWeekEnd: {
|
|
148
|
+
type: PropType<Day>;
|
|
149
|
+
default: Day;
|
|
150
|
+
};
|
|
151
|
+
defaultShowWorkHours: {
|
|
152
|
+
type: PropType<boolean>;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
dateHeaderCell: PropType<any>;
|
|
156
|
+
timeHeaderCell: PropType<any>;
|
|
157
|
+
slotRender: PropType<any>;
|
|
158
|
+
viewSlot: PropType<any>;
|
|
159
|
+
resizeHint: PropType<any>;
|
|
160
|
+
item: PropType<any>;
|
|
161
|
+
viewItem: PropType<any>;
|
|
162
|
+
editable: {
|
|
163
|
+
type: PropType<boolean>;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
format: PropType<string>;
|
|
167
|
+
}>, {}, {}, {}, {
|
|
168
|
+
handleDataAction(action: DataAction): void;
|
|
169
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
|
+
dataaction: any;
|
|
171
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
172
|
+
name: {
|
|
173
|
+
type: PropType<string>;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
slotDuration: {
|
|
177
|
+
type: PropType<number>;
|
|
178
|
+
default: number;
|
|
179
|
+
};
|
|
180
|
+
slotDivisions: {
|
|
181
|
+
type: PropType<number>;
|
|
182
|
+
default: number;
|
|
183
|
+
};
|
|
184
|
+
numberOfDays: {
|
|
185
|
+
type: PropType<number>;
|
|
186
|
+
default: number;
|
|
187
|
+
};
|
|
188
|
+
dateRange: {
|
|
189
|
+
type: PropType<DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange)>;
|
|
190
|
+
default: () => ({ intl, date, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
191
|
+
};
|
|
192
|
+
title: PropType<string | ((localization: import('@progress/kendo-vue-intl').LocalizationService) => string)>;
|
|
193
|
+
selectedDateFormat: {
|
|
194
|
+
type: PropType<string>;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
selectedShortDateFormat: {
|
|
198
|
+
type: PropType<string>;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
showWorkHours: {
|
|
202
|
+
type: PropType<boolean>;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
currentTimeMarker: {
|
|
206
|
+
type: PropType<boolean>;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
startTime: {
|
|
210
|
+
type: PropType<string>;
|
|
211
|
+
default: string;
|
|
212
|
+
};
|
|
213
|
+
endTime: {
|
|
214
|
+
type: PropType<string>;
|
|
215
|
+
default: string;
|
|
216
|
+
};
|
|
217
|
+
workDayStart: {
|
|
218
|
+
type: PropType<string>;
|
|
219
|
+
default: string;
|
|
220
|
+
};
|
|
221
|
+
workDayEnd: {
|
|
222
|
+
type: PropType<string>;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
workWeekStart: {
|
|
226
|
+
type: PropType<Day>;
|
|
227
|
+
default: Day;
|
|
228
|
+
};
|
|
229
|
+
workWeekEnd: {
|
|
230
|
+
type: PropType<Day>;
|
|
231
|
+
default: Day;
|
|
232
|
+
};
|
|
233
|
+
defaultShowWorkHours: {
|
|
234
|
+
type: PropType<boolean>;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
|
+
dateHeaderCell: PropType<any>;
|
|
238
|
+
timeHeaderCell: PropType<any>;
|
|
239
|
+
slotRender: PropType<any>;
|
|
240
|
+
viewSlot: PropType<any>;
|
|
241
|
+
resizeHint: PropType<any>;
|
|
242
|
+
item: PropType<any>;
|
|
243
|
+
viewItem: PropType<any>;
|
|
244
|
+
editable: {
|
|
245
|
+
type: PropType<boolean>;
|
|
246
|
+
default: boolean;
|
|
247
|
+
};
|
|
248
|
+
format: PropType<string>;
|
|
249
|
+
}>> & Readonly<{
|
|
250
|
+
onDataaction?: (...args: any[] | unknown[]) => any;
|
|
251
|
+
}>, {
|
|
252
|
+
name: string;
|
|
253
|
+
startTime: string;
|
|
254
|
+
editable: boolean;
|
|
255
|
+
numberOfDays: number;
|
|
256
|
+
selectedDateFormat: string;
|
|
257
|
+
selectedShortDateFormat: string;
|
|
258
|
+
dateRange: DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange);
|
|
259
|
+
slotDivisions: number;
|
|
260
|
+
slotDuration: number;
|
|
261
|
+
workWeekStart: Day;
|
|
262
|
+
workWeekEnd: Day;
|
|
263
|
+
currentTimeMarker: boolean;
|
|
264
|
+
workDayStart: string;
|
|
265
|
+
workDayEnd: string;
|
|
266
|
+
showWorkHours: boolean;
|
|
267
|
+
endTime: string;
|
|
268
|
+
defaultShowWorkHours: boolean;
|
|
269
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
270
|
+
export { WeekView };
|
package/views/week/WeekView.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { defineComponent as h, createVNode as S } from "vue";
|
|
9
9
|
import { MultiDayView as k } from "../day/MultiDayView.mjs";
|
|
10
10
|
import { DAYS_IN_WEEK_COUNT as i } from "../../constants/main.mjs";
|
|
11
|
-
import { Day as l, ZonedDate as o,
|
|
11
|
+
import { Day as l, ZonedDate as o, 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
13
|
import { toUTCDateTime as d } from "../../utils/main.mjs";
|
|
14
14
|
import { provideLocalizationService as $ } from "@progress/kendo-vue-intl";
|
|
@@ -0,0 +1,141 @@
|
|
|
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 { WeekViewProps } from './WeekView';
|
|
9
|
+
import { Day } from '@progress/kendo-date-math';
|
|
10
|
+
import { DateRange, SchedulerViewDateRangeArgs } from '../../models/main';
|
|
11
|
+
import { DataAction } from '../../Scheduler';
|
|
12
|
+
import { PropType } from 'vue';
|
|
13
|
+
export interface WorkWeekViewProps extends WeekViewProps {
|
|
14
|
+
}
|
|
15
|
+
/** @hidden */
|
|
16
|
+
declare const WorkWeekView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
name: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
slotDuration: {
|
|
22
|
+
type: PropType<number>;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
slotDivisions: {
|
|
26
|
+
type: PropType<number>;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
numberOfDays: {
|
|
30
|
+
type: PropType<number>;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
dateRange: {
|
|
34
|
+
type: PropType<DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange)>;
|
|
35
|
+
default: () => ({ intl, date, timezone, ...other }: SchedulerViewDateRangeArgs) => DateRange;
|
|
36
|
+
};
|
|
37
|
+
title: PropType<string | ((localization: import('@progress/kendo-vue-intl').LocalizationService) => string)>;
|
|
38
|
+
workWeekStart: {
|
|
39
|
+
type: PropType<Day>;
|
|
40
|
+
default: Day;
|
|
41
|
+
};
|
|
42
|
+
workWeekEnd: {
|
|
43
|
+
type: PropType<Day>;
|
|
44
|
+
default: Day;
|
|
45
|
+
};
|
|
46
|
+
selectedDateFormat: {
|
|
47
|
+
type: PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
selectedShortDateFormat: {
|
|
51
|
+
type: PropType<string>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
showWorkHours: {
|
|
55
|
+
type: PropType<boolean>;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
dateHeaderCell: PropType<any>;
|
|
59
|
+
timeHeaderCell: PropType<any>;
|
|
60
|
+
slotRender: PropType<any>;
|
|
61
|
+
viewSlot: PropType<any>;
|
|
62
|
+
resizeHint: PropType<any>;
|
|
63
|
+
item: PropType<any>;
|
|
64
|
+
viewItem: PropType<any>;
|
|
65
|
+
editable: {
|
|
66
|
+
type: PropType<boolean>;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>, {}, {}, {}, {
|
|
70
|
+
handleDataAction(action: DataAction): void;
|
|
71
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
|
+
dataaction: any;
|
|
73
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
74
|
+
name: {
|
|
75
|
+
type: PropType<string>;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
slotDuration: {
|
|
79
|
+
type: PropType<number>;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
slotDivisions: {
|
|
83
|
+
type: PropType<number>;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
numberOfDays: {
|
|
87
|
+
type: PropType<number>;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
dateRange: {
|
|
91
|
+
type: PropType<DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange)>;
|
|
92
|
+
default: () => ({ intl, date, timezone, ...other }: SchedulerViewDateRangeArgs) => DateRange;
|
|
93
|
+
};
|
|
94
|
+
title: PropType<string | ((localization: import('@progress/kendo-vue-intl').LocalizationService) => string)>;
|
|
95
|
+
workWeekStart: {
|
|
96
|
+
type: PropType<Day>;
|
|
97
|
+
default: Day;
|
|
98
|
+
};
|
|
99
|
+
workWeekEnd: {
|
|
100
|
+
type: PropType<Day>;
|
|
101
|
+
default: Day;
|
|
102
|
+
};
|
|
103
|
+
selectedDateFormat: {
|
|
104
|
+
type: PropType<string>;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
selectedShortDateFormat: {
|
|
108
|
+
type: PropType<string>;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
showWorkHours: {
|
|
112
|
+
type: PropType<boolean>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
dateHeaderCell: PropType<any>;
|
|
116
|
+
timeHeaderCell: PropType<any>;
|
|
117
|
+
slotRender: PropType<any>;
|
|
118
|
+
viewSlot: PropType<any>;
|
|
119
|
+
resizeHint: PropType<any>;
|
|
120
|
+
item: PropType<any>;
|
|
121
|
+
viewItem: PropType<any>;
|
|
122
|
+
editable: {
|
|
123
|
+
type: PropType<boolean>;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
}>> & Readonly<{
|
|
127
|
+
onDataaction?: (...args: any[] | unknown[]) => any;
|
|
128
|
+
}>, {
|
|
129
|
+
name: string;
|
|
130
|
+
editable: boolean;
|
|
131
|
+
numberOfDays: number;
|
|
132
|
+
selectedDateFormat: string;
|
|
133
|
+
selectedShortDateFormat: string;
|
|
134
|
+
dateRange: DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange);
|
|
135
|
+
slotDivisions: number;
|
|
136
|
+
slotDuration: number;
|
|
137
|
+
workWeekStart: Day;
|
|
138
|
+
workWeekEnd: Day;
|
|
139
|
+
showWorkHours: boolean;
|
|
140
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
141
|
+
export { WorkWeekView };
|