@vc-shell/framework 2.1.0-pr255.4dc5c0d → 2.1.0-pr256.0fe3abb
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/dist/chunks/{VcTableAdapter.vue_vue_type_script_setup_true_lang-BL653h9q.js → VcScheduler.vue_vue_type_script_setup_true_lang-CTKDY1xe.js} +9127 -6676
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-CTKDY1xe.js.map +1 -0
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-CtkZR5a1.js → VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js} +1 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-Cs-yidUE.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js} +2 -2
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-Cs-yidUE.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js.map} +1 -1
- package/dist/chunks/{vendor-date-fns-BKO3x1R1.js → vendor-date-fns-C-55OMpS.js} +487 -441
- package/dist/chunks/vendor-date-fns-C-55OMpS.js.map +1 -0
- package/dist/chunks/vendor-rrule-C4g_KGmu.js +1706 -0
- package/dist/chunks/vendor-rrule-C4g_KGmu.js.map +1 -0
- package/dist/chunks/vendor-tslib-C4Z-yBok.js +35 -0
- package/dist/chunks/vendor-tslib-C4Z-yBok.js.map +1 -0
- package/dist/chunks/{vendor-vuepic-vue-datepicker-CaZ_qpJp.js → vendor-vuepic-vue-datepicker-D0bvbIbh.js} +1 -1
- package/dist/chunks/{vendor-vuepic-vue-datepicker-CaZ_qpJp.js.map → vendor-vuepic-vue-datepicker-D0bvbIbh.js.map} +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +1320 -1314
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +67 -0
- package/dist/locales/en.js +67 -0
- package/dist/locales/en.json +67 -0
- package/dist/locales/types.d.ts +67 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -1
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-popover/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-popover/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-popover/panel-anchor-registry.d.ts.map +1 -0
- package/dist/ui/components/molecules/{vc-dropdown-panel/vc-dropdown-panel.vue.d.ts → vc-popover/vc-popover.vue.d.ts} +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/index.d.ts +1 -0
- package/dist/ui/components/organisms/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts +211 -0
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerBar.vue.d.ts +40 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerBar.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerGridlines.vue.d.ts +12 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerGridlines.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerHeader.vue.d.ts +33 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerHeader.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerResourcePanel.vue.d.ts +22 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerResourcePanel.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerRow.vue.d.ts +48 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerRow.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerSkeleton.vue.d.ts +8 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerSkeleton.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerTimeIndicator.vue.d.ts +7 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerTimeIndicator.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerToolbar.vue.d.ts +28 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerToolbar.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/ConfirmDialog.vue.d.ts +20 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/ConfirmDialog.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/RecurrenceScopeDialog.vue.d.ts +18 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/RecurrenceScopeDialog.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/SchedulerEventEditor.vue.d.ts +38 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/SchedulerEventEditor.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/mobile/SchedulerBarSheet.vue.d.ts +21 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/mobile/SchedulerBarSheet.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/mobile/SchedulerMobileResourceCard.vue.d.ts +20 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/mobile/SchedulerMobileResourceCard.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthDayCell.vue.d.ts +24 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthDayCell.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthEventBar.vue.d.ts +38 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthEventBar.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthEventPopover.vue.d.ts +41 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthEventPopover.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthMorePopover.vue.d.ts +30 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthMorePopover.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthWeekRow.vue.d.ts +82 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthWeekRow.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/quick-create/QuickCreatePopover.vue.d.ts +36 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/quick-create/QuickCreatePopover.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerAgendaView.vue.d.ts +46 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerAgendaView.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerMonthView.vue.d.ts +59 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerMonthView.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerTimelineView.vue.d.ts +57 -0
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerTimelineView.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useBarInteraction.d.ts +31 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useBarInteraction.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useEventColor.d.ts +20 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useEventColor.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useEventInteraction.d.ts +77 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useEventInteraction.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useLanePacking.d.ts +7 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useLanePacking.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useMonthLayout.d.ts +14 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useMonthLayout.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useRecurrence.d.ts +20 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useRecurrence.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerEvents.d.ts +17 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerEvents.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerNavigation.d.ts +19 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerNavigation.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerOrchestrator.d.ts +78 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerOrchestrator.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerViewport.d.ts +21 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerViewport.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useTimeScale.d.ts +29 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useTimeScale.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useTimelineTimeGrid.d.ts +64 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useTimelineTimeGrid.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/index.d.ts +3 -0
- package/dist/ui/components/organisms/vc-scheduler/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/injection-keys.d.ts +18 -0
- package/dist/ui/components/organisms/vc-scheduler/injection-keys.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-scheduler/types.d.ts +90 -0
- package/dist/ui/components/organisms/vc-scheduler/types.d.ts.map +1 -0
- package/dist/ui/index.js +117 -115
- package/package.json +5 -4
- package/dist/chunks/VcTableAdapter.vue_vue_type_script_setup_true_lang-BL653h9q.js.map +0 -1
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CtkZR5a1.js.map +0 -1
- package/dist/chunks/vendor-date-fns-BKO3x1R1.js.map +0 -1
- package/dist/chunks/vendor-tslib-l0sNRNKZ.js.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/index.d.ts +0 -2
- package/dist/ui/components/molecules/vc-dropdown-panel/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/panel-anchor-registry.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +0 -1
- /package/dist/ui/components/molecules/{vc-dropdown-panel → vc-popover}/panel-anchor-registry.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { IWeekEventSegment } from "../types";
|
|
3
|
+
export interface UseMonthLayoutOptions {
|
|
4
|
+
weekSegments: Ref<IWeekEventSegment[][]>;
|
|
5
|
+
maxLanes?: Ref<number>;
|
|
6
|
+
}
|
|
7
|
+
export declare function useMonthLayout(opts: UseMonthLayoutOptions): {
|
|
8
|
+
laidOut: ComputedRef<{
|
|
9
|
+
segment: IWeekEventSegment;
|
|
10
|
+
lane: number;
|
|
11
|
+
}[][]>;
|
|
12
|
+
overflowByDay: ComputedRef<number[][]>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useMonthLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMonthLayout.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useMonthLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,GAAG,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IACzC,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACxB;AAeD,wBAAgB,cAAc,CAAC,IAAI,EAAE,qBAAqB;;iBAKlB,iBAAiB;cAAQ,MAAM;;;EAgBtE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IRecurrenceRule, ISchedulerEvent } from "../types";
|
|
2
|
+
export declare function toRRule(rule: IRecurrenceRule): string;
|
|
3
|
+
export declare function parseRRule(rrule: string, dtstart: Date): IRecurrenceRule;
|
|
4
|
+
/**
|
|
5
|
+
* Human-readable one-line summary of an RRULE, e.g. "every week on Monday, Wednesday for
|
|
6
|
+
* 8 times". Uses rrule's own toText(); returns "" if the rule can't be described. English
|
|
7
|
+
* phrasing (rrule's default) — localization of the phrase is a follow-up.
|
|
8
|
+
*/
|
|
9
|
+
export declare function describeRRule(rrule: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Expands recurring master events into concrete occurrences within `window`, skipping
|
|
12
|
+
* `exceptionDates` and substituting any override event (matched by recurrenceId +
|
|
13
|
+
* originalStart) in place of the synthesized occurrence. Plain (non-recurring,
|
|
14
|
+
* non-override) events pass through unchanged. Never mutates the input events.
|
|
15
|
+
*/
|
|
16
|
+
export declare function expandEvents(events: ISchedulerEvent[], window: {
|
|
17
|
+
start: Date;
|
|
18
|
+
end: Date;
|
|
19
|
+
}): ISchedulerEvent[];
|
|
20
|
+
//# sourceMappingURL=useRecurrence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRecurrence.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useRecurrence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAmBjE,wBAAgB,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAerD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,eAAe,CAcxE;AAID;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQnD;AA+BD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,MAAM,EAAE;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,GAAG,eAAe,EAAE,CAsF7G"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { ISchedulerEvent, IWeekEventSegment } from "../types";
|
|
3
|
+
export interface UseSchedulerEventsOptions {
|
|
4
|
+
events: Ref<ISchedulerEvent[]>;
|
|
5
|
+
/** `monthRange.start` is a local week-start midnight (see useSchedulerNavigation) — grid day 0. */
|
|
6
|
+
monthRange: Ref<{
|
|
7
|
+
start: Date;
|
|
8
|
+
end: Date;
|
|
9
|
+
}>;
|
|
10
|
+
firstDayOfWeek: Ref<number>;
|
|
11
|
+
}
|
|
12
|
+
export declare function useSchedulerEvents(opts: UseSchedulerEventsOptions): {
|
|
13
|
+
isAllDay: (e: ISchedulerEvent) => boolean;
|
|
14
|
+
weekSegments: ComputedRef<IWeekEventSegment[][]>;
|
|
15
|
+
timedByDay: ComputedRef<Map<string, ISchedulerEvent[]>>;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useSchedulerEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSchedulerEvents.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useSchedulerEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAInE,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;IAC/B,mGAAmG;IACnG,UAAU,EAAE,GAAG,CAAC;QAAE,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IAC5C,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB;kBAC3C,eAAe,KAAG,OAAO;;;EAqD/C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { SchedulerView } from "../types";
|
|
3
|
+
export interface UseSchedulerNavigationOptions {
|
|
4
|
+
date: Ref<Date>;
|
|
5
|
+
view: Ref<SchedulerView>;
|
|
6
|
+
firstDayOfWeek: Ref<number>;
|
|
7
|
+
onDateChange: (d: Date) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function useSchedulerNavigation(opts: UseSchedulerNavigationOptions): {
|
|
10
|
+
monthRange: ComputedRef<{
|
|
11
|
+
start: Date;
|
|
12
|
+
end: Date;
|
|
13
|
+
}>;
|
|
14
|
+
title: ComputedRef<string>;
|
|
15
|
+
goPrev: () => void;
|
|
16
|
+
goNext: () => void;
|
|
17
|
+
goToday: () => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useSchedulerNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSchedulerNavigation.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useSchedulerNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,YAAY,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;CACjC;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,6BAA6B;;eAGjC,IAAI;aAAO,IAAI;;;;;;EAyCvD"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { ISchedulerBar, ISchedulerResource, SchedulerZoom, SchedulerSnap, IBarUpdate } from "../types";
|
|
3
|
+
export interface UseSchedulerOrchestratorOptions {
|
|
4
|
+
resources: Ref<ISchedulerResource[]>;
|
|
5
|
+
bars: Ref<ISchedulerBar[]>;
|
|
6
|
+
zoom: Ref<SchedulerZoom>;
|
|
7
|
+
range: Ref<{
|
|
8
|
+
start: Date;
|
|
9
|
+
end: Date;
|
|
10
|
+
}>;
|
|
11
|
+
editable: Ref<boolean>;
|
|
12
|
+
snap: Ref<SchedulerSnap>;
|
|
13
|
+
isBarEditable: (bar: ISchedulerBar) => boolean;
|
|
14
|
+
scrollLeft: Ref<number>;
|
|
15
|
+
viewportWidth: Ref<number>;
|
|
16
|
+
onBarUpdate: (u: IBarUpdate) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function useSchedulerOrchestrator(opts: UseSchedulerOrchestratorOptions): {
|
|
19
|
+
scale: {
|
|
20
|
+
unitMs: ComputedRef<number>;
|
|
21
|
+
unitWidth: ComputedRef<number>;
|
|
22
|
+
snapMs: ComputedRef<number>;
|
|
23
|
+
totalWidth: ComputedRef<number>;
|
|
24
|
+
dateToX: (date: Date) => number;
|
|
25
|
+
xToDate: (x: number) => Date;
|
|
26
|
+
snapDate: (date: Date) => Date;
|
|
27
|
+
fineTicks: ComputedRef<{
|
|
28
|
+
date: Date;
|
|
29
|
+
x: number;
|
|
30
|
+
}[]>;
|
|
31
|
+
coarseTicks: ComputedRef<{
|
|
32
|
+
date: Date;
|
|
33
|
+
x: number;
|
|
34
|
+
label: string;
|
|
35
|
+
}[]>;
|
|
36
|
+
};
|
|
37
|
+
packing: {
|
|
38
|
+
packedByResource: ComputedRef<Map<string, import("..").IPackedBar[]>>;
|
|
39
|
+
laneCount: (resourceId: string) => number;
|
|
40
|
+
};
|
|
41
|
+
viewport: {
|
|
42
|
+
visibleXRange: ComputedRef<{
|
|
43
|
+
startX: number;
|
|
44
|
+
endX: number;
|
|
45
|
+
}>;
|
|
46
|
+
zoomIn: () => void;
|
|
47
|
+
zoomOut: () => void;
|
|
48
|
+
canZoomIn: ComputedRef<boolean>;
|
|
49
|
+
canZoomOut: ComputedRef<boolean>;
|
|
50
|
+
};
|
|
51
|
+
interaction: {
|
|
52
|
+
pending: Ref<{
|
|
53
|
+
id: string;
|
|
54
|
+
start: Date;
|
|
55
|
+
end: Date;
|
|
56
|
+
} | null, {
|
|
57
|
+
id: string;
|
|
58
|
+
start: Date;
|
|
59
|
+
end: Date;
|
|
60
|
+
} | {
|
|
61
|
+
id: string;
|
|
62
|
+
start: Date;
|
|
63
|
+
end: Date;
|
|
64
|
+
} | null>;
|
|
65
|
+
effectiveBar: (bar: ISchedulerBar) => ISchedulerBar;
|
|
66
|
+
beginMove: (bar: ISchedulerBar, pointerX: number) => void;
|
|
67
|
+
beginResize: (bar: ISchedulerBar, edge: "start" | "end", pointerX: number) => void;
|
|
68
|
+
updatePointer: (pointerX: number) => void;
|
|
69
|
+
commit: () => void;
|
|
70
|
+
cancel: () => void;
|
|
71
|
+
};
|
|
72
|
+
rowHeight: (resourceId: string) => number;
|
|
73
|
+
autoRange: ComputedRef<{
|
|
74
|
+
start: Date;
|
|
75
|
+
end: Date;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=useSchedulerOrchestrator.d.ts.map
|
package/dist/ui/components/organisms/vc-scheduler/composables/useSchedulerOrchestrator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSchedulerOrchestrator.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useSchedulerOrchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAK3D,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAM5G,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,GAAG,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC;IAC3B,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,KAAK,EAAE,GAAG,CAAC;QAAE,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IACvC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,aAAa,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC;IAC/C,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAyB7C,MAAM;;eAxBC,IAAI;aAAO,IAAI;;EA+BtD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import { type SchedulerZoom } from "../types";
|
|
3
|
+
export interface UseSchedulerViewportOptions {
|
|
4
|
+
zoom: Ref<SchedulerZoom>;
|
|
5
|
+
unitWidth: Ref<number>;
|
|
6
|
+
totalWidth: Ref<number>;
|
|
7
|
+
scrollLeft: Ref<number>;
|
|
8
|
+
viewportWidth: Ref<number>;
|
|
9
|
+
tolerance?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function useSchedulerViewport(opts: UseSchedulerViewportOptions): {
|
|
12
|
+
visibleXRange: import("vue").ComputedRef<{
|
|
13
|
+
startX: number;
|
|
14
|
+
endX: number;
|
|
15
|
+
}>;
|
|
16
|
+
zoomIn: () => void;
|
|
17
|
+
zoomOut: () => void;
|
|
18
|
+
canZoomIn: import("vue").ComputedRef<boolean>;
|
|
19
|
+
canZoomOut: import("vue").ComputedRef<boolean>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useSchedulerViewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSchedulerViewport.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useSchedulerViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAyB,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAErE,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,2BAA2B;;;;;;;;;EAsBrE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { SchedulerZoom, SchedulerSnap } from "../types";
|
|
3
|
+
export interface UseTimeScaleOptions {
|
|
4
|
+
zoom: Ref<SchedulerZoom>;
|
|
5
|
+
range: Ref<{
|
|
6
|
+
start: Date;
|
|
7
|
+
end: Date;
|
|
8
|
+
}>;
|
|
9
|
+
snap?: Ref<SchedulerSnap>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useTimeScale(opts: UseTimeScaleOptions): {
|
|
12
|
+
unitMs: ComputedRef<number>;
|
|
13
|
+
unitWidth: ComputedRef<number>;
|
|
14
|
+
snapMs: ComputedRef<number>;
|
|
15
|
+
totalWidth: ComputedRef<number>;
|
|
16
|
+
dateToX: (date: Date) => number;
|
|
17
|
+
xToDate: (x: number) => Date;
|
|
18
|
+
snapDate: (date: Date) => Date;
|
|
19
|
+
fineTicks: ComputedRef<{
|
|
20
|
+
date: Date;
|
|
21
|
+
x: number;
|
|
22
|
+
}[]>;
|
|
23
|
+
coarseTicks: ComputedRef<{
|
|
24
|
+
date: Date;
|
|
25
|
+
x: number;
|
|
26
|
+
label: string;
|
|
27
|
+
}[]>;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useTimeScale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeScale.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useTimeScale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAU3D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAe7D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,KAAK,EAAE,GAAG,CAAC;QAAE,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB;;;;;oBAc7B,IAAI;iBACP,MAAM;qBACF,IAAI;eAyDF,WAAW,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;iBACpC,WAAW,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;EAEtF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { ISchedulerEvent } from "../types";
|
|
3
|
+
export interface TimeGridOptions {
|
|
4
|
+
events: Ref<ISchedulerEvent[]>;
|
|
5
|
+
/** First rendered day (any time; normalized to 00:00). */
|
|
6
|
+
rangeStart: Ref<Date>;
|
|
7
|
+
/** Days rendered: 1 = day view, 7 = week view. */
|
|
8
|
+
dayCount: Ref<number>;
|
|
9
|
+
/** Inclusive first hour shown, 0-23. */
|
|
10
|
+
startHour: Ref<number>;
|
|
11
|
+
/** Exclusive last hour shown, 1-24. */
|
|
12
|
+
endHour: Ref<number>;
|
|
13
|
+
/** Pixel height of one hour row. */
|
|
14
|
+
hourHeight: Ref<number>;
|
|
15
|
+
}
|
|
16
|
+
export interface DayColumn {
|
|
17
|
+
date: Date;
|
|
18
|
+
index: number;
|
|
19
|
+
isToday: boolean;
|
|
20
|
+
isWeekend: boolean;
|
|
21
|
+
/** "Mon 6" style label for the day header. */
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
export interface HourLabel {
|
|
25
|
+
hour: number;
|
|
26
|
+
/** "9 AM" style label. */
|
|
27
|
+
label: string;
|
|
28
|
+
/** y offset in px from the grid top. */
|
|
29
|
+
y: number;
|
|
30
|
+
}
|
|
31
|
+
export interface TimedRect {
|
|
32
|
+
event: ISchedulerEvent;
|
|
33
|
+
top: number;
|
|
34
|
+
height: number;
|
|
35
|
+
/** left/width as percentages of the day column (for overlap lanes). */
|
|
36
|
+
leftPct: number;
|
|
37
|
+
widthPct: number;
|
|
38
|
+
past: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface AllDaySegment {
|
|
41
|
+
event: ISchedulerEvent;
|
|
42
|
+
/** 0-based day-column index where the segment starts within the rendered range. */
|
|
43
|
+
startCol: number;
|
|
44
|
+
/** Number of day columns the segment spans. */
|
|
45
|
+
span: number;
|
|
46
|
+
/** Stack row within the all-day strip. */
|
|
47
|
+
row: number;
|
|
48
|
+
continuesLeft: boolean;
|
|
49
|
+
continuesRight: boolean;
|
|
50
|
+
past: boolean;
|
|
51
|
+
}
|
|
52
|
+
export declare function useTimelineTimeGrid(opts: TimeGridOptions): {
|
|
53
|
+
dayCount: ComputedRef<number>;
|
|
54
|
+
hourCount: ComputedRef<number>;
|
|
55
|
+
gridHeight: ComputedRef<number>;
|
|
56
|
+
days: ComputedRef<Date[]>;
|
|
57
|
+
columns: ComputedRef<DayColumn[]>;
|
|
58
|
+
hourLabels: ComputedRef<HourLabel[]>;
|
|
59
|
+
timedByColumn: ComputedRef<TimedRect[][]>;
|
|
60
|
+
hasTimed: ComputedRef<boolean>;
|
|
61
|
+
allDaySegments: ComputedRef<AllDaySegment[]>;
|
|
62
|
+
allDayRowCount: ComputedRef<number>;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=useTimelineTimeGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimelineTimeGrid.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useTimelineTimeGrid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;IAC/B,0DAA0D;IAC1D,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,kDAAkD;IAClD,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,wCAAwC;IACxC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,uCAAuC;IACvC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,oCAAoC;IACpC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,eAAe,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,eAAe,CAAC;IACvB,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;CACf;AA8CD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAmIlD;IACH,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1B,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;IAClC,UAAU,EAAE,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;IACrC,aAAa,EAAE,WAAW,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC1C,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/B,cAAc,EAAE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC;IAC7C,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrC,CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-scheduler/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from "vue";
|
|
2
|
+
import type { SchedulerZoom, SchedulerView, ISchedulerEvent } from "./types";
|
|
3
|
+
export interface ISchedulerContext {
|
|
4
|
+
zoom: Ref<SchedulerZoom>;
|
|
5
|
+
editable: Ref<boolean>;
|
|
6
|
+
dateToX: (date: Date) => number;
|
|
7
|
+
xToDate: (x: number) => Date;
|
|
8
|
+
}
|
|
9
|
+
export declare const SchedulerContextKey: InjectionKey<ISchedulerContext>;
|
|
10
|
+
export interface ISchedulerCalendarContext {
|
|
11
|
+
focusedDate: Ref<Date>;
|
|
12
|
+
view: Ref<SchedulerView>;
|
|
13
|
+
editable: Ref<boolean>;
|
|
14
|
+
firstDayOfWeek: Ref<number>;
|
|
15
|
+
isEventEditable: (e: ISchedulerEvent) => boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const SchedulerCalendarContextKey: InjectionKey<ISchedulerCalendarContext>;
|
|
18
|
+
//# sourceMappingURL=injection-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injection-keys.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-scheduler/injection-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IAChC,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,iBAAiB,CAAgC,CAAC;AAIjG,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACvB,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,eAAe,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAAC,yBAAyB,CAC1C,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type SchedulerZoom = "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
2
|
+
/** Ordered coarse→fine is NOT implied; this is display/zoom order fine→coarse. */
|
|
3
|
+
export declare const SCHEDULER_ZOOM_LEVELS: SchedulerZoom[];
|
|
4
|
+
export interface ISchedulerResource {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
meta?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
export interface ISchedulerBar {
|
|
10
|
+
id: string;
|
|
11
|
+
resourceId: string;
|
|
12
|
+
start: Date;
|
|
13
|
+
end: Date;
|
|
14
|
+
label?: string;
|
|
15
|
+
/** CSS color or CSS var reference; defaults to var(--primary-500). */
|
|
16
|
+
color?: string;
|
|
17
|
+
/** Per-bar override of global editable. */
|
|
18
|
+
editable?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Snap step in milliseconds, or "auto" to derive from current zoom. */
|
|
21
|
+
export type SchedulerSnap = number | "auto";
|
|
22
|
+
export interface IBarUpdate {
|
|
23
|
+
id: string;
|
|
24
|
+
start: Date;
|
|
25
|
+
end: Date;
|
|
26
|
+
}
|
|
27
|
+
export interface IBarCreate {
|
|
28
|
+
resourceId: string;
|
|
29
|
+
start: Date;
|
|
30
|
+
end: Date;
|
|
31
|
+
}
|
|
32
|
+
/** A bar after lane assignment. */
|
|
33
|
+
export interface IPackedBar extends ISchedulerBar {
|
|
34
|
+
lane: number;
|
|
35
|
+
}
|
|
36
|
+
export type SchedulerView = "month" | "timeline-day" | "timeline-week";
|
|
37
|
+
export interface ISchedulerEvent {
|
|
38
|
+
id: string;
|
|
39
|
+
start: Date;
|
|
40
|
+
end: Date;
|
|
41
|
+
title: string;
|
|
42
|
+
allDay?: boolean;
|
|
43
|
+
color?: string;
|
|
44
|
+
editable?: boolean;
|
|
45
|
+
meta?: Record<string, unknown>;
|
|
46
|
+
/** RRULE string on a master event, e.g. "FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU;COUNT=10". */
|
|
47
|
+
recurrence?: string;
|
|
48
|
+
/** Occurrence start dates removed from the master series. */
|
|
49
|
+
exceptionDates?: Date[];
|
|
50
|
+
/** On an override event: id of the master series it belongs to. */
|
|
51
|
+
recurrenceId?: string;
|
|
52
|
+
/** On an override event: the original occurrence start it replaces. */
|
|
53
|
+
originalStart?: Date;
|
|
54
|
+
}
|
|
55
|
+
/** A recurrence rule in the shape the scheduler UI edits; bridged to/from an RRULE string. */
|
|
56
|
+
export interface IRecurrenceRule {
|
|
57
|
+
freq: "daily" | "weekly" | "monthly" | "yearly";
|
|
58
|
+
interval: number;
|
|
59
|
+
/** Weekly only: weekdays, JS getDay() convention 0(Sun)..6(Sat). */
|
|
60
|
+
byWeekday?: number[];
|
|
61
|
+
end: {
|
|
62
|
+
type: "never";
|
|
63
|
+
} | {
|
|
64
|
+
type: "count";
|
|
65
|
+
count: number;
|
|
66
|
+
} | {
|
|
67
|
+
type: "until";
|
|
68
|
+
until: Date;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/** An event clipped to a single week row, with its column span for the month grid. */
|
|
72
|
+
export interface IWeekEventSegment {
|
|
73
|
+
event: ISchedulerEvent;
|
|
74
|
+
/** 0-6 within the week row (inclusive). */
|
|
75
|
+
startCol: number;
|
|
76
|
+
endCol: number;
|
|
77
|
+
continuesLeft: boolean;
|
|
78
|
+
continuesRight: boolean;
|
|
79
|
+
}
|
|
80
|
+
/** Working copy edited by the quick-create popover and the editor modal. */
|
|
81
|
+
export interface IEventDraft {
|
|
82
|
+
id?: string;
|
|
83
|
+
title: string;
|
|
84
|
+
start: Date;
|
|
85
|
+
end: Date;
|
|
86
|
+
allDay: boolean;
|
|
87
|
+
color?: string;
|
|
88
|
+
recurrence?: IRecurrenceRule | null;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-scheduler/types.ts"],"names":[],"mappings":"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"}
|