@vc-shell/framework 2.1.0-pr255.87acc71 → 2.1.0-pr256.34ebb1b
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/VcScheduler.vue_vue_type_script_setup_true_lang-CTKDY1xe.js +20733 -0
- 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 +1561 -1555
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +67 -3
- package/dist/locales/en.js +67 -3
- package/dist/locales/en.json +67 -3
- package/dist/locales/types.d.ts +67 -3
- package/dist/shell/_internal/notifications/composables/useContainer/index.d.ts.map +1 -1
- 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-app/_internal/layouts/MobileLayout.vue.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableSelectAllBar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.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-DfRo-sZe.js +0 -18296
- package/dist/chunks/VcTableAdapter.vue_vue_type_script_setup_true_lang-DfRo-sZe.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,77 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { ISchedulerEvent } from "../types";
|
|
3
|
+
/** Resolved disambiguation outcome for an empty-cell/slot click gesture. */
|
|
4
|
+
export type CreateIntentKind = "single" | "double" | "drag";
|
|
5
|
+
/** Upward intent emitted by the views instead of creating an event immediately. */
|
|
6
|
+
export interface ICreateIntent {
|
|
7
|
+
start: Date;
|
|
8
|
+
end: Date;
|
|
9
|
+
allDay: boolean;
|
|
10
|
+
anchorRect: DOMRect | null;
|
|
11
|
+
kind: CreateIntentKind;
|
|
12
|
+
}
|
|
13
|
+
export interface ClickDiscriminatorOptions {
|
|
14
|
+
/** Window (ms) to wait for a second click before resolving to "single". Default 220. */
|
|
15
|
+
delay?: number;
|
|
16
|
+
onIntent: (kind: "single" | "double", key: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface ClickDiscriminator {
|
|
19
|
+
/**
|
|
20
|
+
* Register one resolved click on the given target key (e.g. a cell date or slot start time).
|
|
21
|
+
* A second call on the SAME key before the delay elapses cancels the timer and resolves
|
|
22
|
+
* "double" for that key. A second call on a DIFFERENT key immediately flushes the pending
|
|
23
|
+
* click as "single" (for the original key) and starts a fresh single-click timer for the
|
|
24
|
+
* new key — two clicks on different targets are always two independent singles, never a
|
|
25
|
+
* double.
|
|
26
|
+
*/
|
|
27
|
+
click: (key: string) => void;
|
|
28
|
+
/** Discard a pending single-click timer (e.g. the gesture turned into a drag). */
|
|
29
|
+
cancel: () => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Single/double click disambiguator: a lone click resolves to "single" only after `delay` ms;
|
|
33
|
+
* a second click within that window on the SAME target key cancels the pending timer and
|
|
34
|
+
* resolves "double" instead. A second click on a DIFFERENT key never forms a double — the
|
|
35
|
+
* pending click is flushed as its own "single" immediately, then a fresh timer starts for the
|
|
36
|
+
* new key. Callers decide what "the same target" means (the key) and are responsible for
|
|
37
|
+
* calling `cancel()` when a drag starts instead of a click.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useClickDiscriminator(opts: ClickDiscriminatorOptions): ClickDiscriminator;
|
|
40
|
+
export interface UseEventInteractionOptions {
|
|
41
|
+
editable: Ref<boolean>;
|
|
42
|
+
isEventEditable: (e: ISchedulerEvent) => boolean;
|
|
43
|
+
dayFromPoint: (clientX: number, clientY: number) => Date | null;
|
|
44
|
+
onUpdate: (u: {
|
|
45
|
+
id: string;
|
|
46
|
+
start: Date;
|
|
47
|
+
end: Date;
|
|
48
|
+
}) => void;
|
|
49
|
+
onCreate: (c: {
|
|
50
|
+
start: Date;
|
|
51
|
+
end: Date;
|
|
52
|
+
allDay: boolean;
|
|
53
|
+
}) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare function useEventInteraction(opts: UseEventInteractionOptions): {
|
|
56
|
+
pending: Ref<{
|
|
57
|
+
id: string;
|
|
58
|
+
start: Date;
|
|
59
|
+
end: Date;
|
|
60
|
+
} | null, {
|
|
61
|
+
id: string;
|
|
62
|
+
start: Date;
|
|
63
|
+
end: Date;
|
|
64
|
+
} | {
|
|
65
|
+
id: string;
|
|
66
|
+
start: Date;
|
|
67
|
+
end: Date;
|
|
68
|
+
} | null>;
|
|
69
|
+
effectiveEvent: (e: ISchedulerEvent) => ISchedulerEvent;
|
|
70
|
+
beginMove: (e: ISchedulerEvent, x: number, y: number) => void;
|
|
71
|
+
beginResize: (e: ISchedulerEvent, edge: "start" | "end", x: number, y: number) => void;
|
|
72
|
+
beginCreate: (date: Date) => void;
|
|
73
|
+
updatePointer: (x: number, y: number) => void;
|
|
74
|
+
commit: () => void;
|
|
75
|
+
cancel: () => void;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=useEventInteraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEventInteraction.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useEventInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,4EAA4E;AAC5E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5D,mFAAmF;A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AS,IAAI;aAAO,IAAI;;YAA9B,MAAM;eAAS,IAAI;aAAO,IAAI;;YAA9B,MAAM;eAAS,IAAI;aAAO,IAAI;;wBAmF7B,eAAe,KAAG,eAAe;mBAzEtC,eAAe,KAAK,MAAM,KAAK,MAAM;qBACnC,eAAe,QAAQ,OAAO,GAAG,KAAK,KAAK,MAAM,KAAK,MAAM;wBAezD,IAAI;uBAQL,MAAM,KAAK,MAAM;;;EAqD5C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { ISchedulerBar, IPackedBar } from "../types";
|
|
3
|
+
export declare function useLanePacking(bars: Ref<ISchedulerBar[]>): {
|
|
4
|
+
packedByResource: ComputedRef<Map<string, IPackedBar[]>>;
|
|
5
|
+
laneCount: (resourceId: string) => number;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useLanePacking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLanePacking.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-scheduler/composables/useLanePacking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAkB1D,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,aAAa,EAAE,CAAC;;4BAaxB,MAAM;EAOtC"}
|
|
@@ -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,M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S,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":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnF,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,EAAE,aAAa,EAAwD,CAAC;AAE1G,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wEAAwE;AACxE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;I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