@cocoar/vue-calendar 1.16.0
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/README.md +257 -0
- package/dist/__test-utils__/event-fixtures.d.ts +4 -0
- package/dist/__test-utils__/event-fixtures.d.ts.map +1 -0
- package/dist/builders/calendar-builder-internals.d.ts +14 -0
- package/dist/builders/calendar-builder-internals.d.ts.map +1 -0
- package/dist/builders/calendar-builder.d.ts +296 -0
- package/dist/builders/calendar-builder.d.ts.map +1 -0
- package/dist/builders/event-zone-hints.d.ts +20 -0
- package/dist/builders/event-zone-hints.d.ts.map +1 -0
- package/dist/builders/render-helpers.d.ts +19 -0
- package/dist/builders/render-helpers.d.ts.map +1 -0
- package/dist/builders/types.d.ts +175 -0
- package/dist/builders/types.d.ts.map +1 -0
- package/dist/components/CoarCalendar.vue.d.ts +150 -0
- package/dist/components/CoarCalendar.vue.d.ts.map +1 -0
- package/dist/components/CoarDisplayZoneSwitcher.vue.d.ts +28 -0
- package/dist/components/CoarDisplayZoneSwitcher.vue.d.ts.map +1 -0
- package/dist/components/VirtualizedSurface1DY.vue.d.ts +90 -0
- package/dist/components/VirtualizedSurface1DY.vue.d.ts.map +1 -0
- package/dist/components/VirtualizedSurface2D.vue.d.ts +71 -0
- package/dist/components/VirtualizedSurface2D.vue.d.ts.map +1 -0
- package/dist/components/internal/CoarEventDecorations.vue.d.ts +13 -0
- package/dist/components/internal/CoarEventDecorations.vue.d.ts.map +1 -0
- package/dist/components/internal/RenderEventFallback.d.ts +17 -0
- package/dist/components/internal/RenderEventFallback.d.ts.map +1 -0
- package/dist/components/internal/agenda/CoarAgendaDayHeader.vue.d.ts +54 -0
- package/dist/components/internal/agenda/CoarAgendaDayHeader.vue.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthBar.vue.d.ts +80 -0
- package/dist/components/internal/month/CoarMonthBar.vue.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts +74 -0
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthGrid.vue.d.ts +50 -0
- package/dist/components/internal/month/CoarMonthGrid.vue.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthPill.vue.d.ts +83 -0
- package/dist/components/internal/month/CoarMonthPill.vue.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthRow.vue.d.ts +44 -0
- package/dist/components/internal/month/CoarMonthRow.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridAllDayBand.vue.d.ts +39 -0
- package/dist/components/internal/time-grid/CoarTimeGridAllDayBand.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridColumn.vue.d.ts +44 -0
- package/dist/components/internal/time-grid/CoarTimeGridColumn.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridHeader.vue.d.ts +44 -0
- package/dist/components/internal/time-grid/CoarTimeGridHeader.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridNowMarker.vue.d.ts +18 -0
- package/dist/components/internal/time-grid/CoarTimeGridNowMarker.vue.d.ts.map +1 -0
- package/dist/composables/useA11yAnnouncer.d.ts +9 -0
- package/dist/composables/useA11yAnnouncer.d.ts.map +1 -0
- package/dist/composables/useCalendarDnd.d.ts +212 -0
- package/dist/composables/useCalendarDnd.d.ts.map +1 -0
- package/dist/composables/useCoarDrag.d.ts +97 -0
- package/dist/composables/useCoarDrag.d.ts.map +1 -0
- package/dist/composables/useMonthDnd.d.ts +89 -0
- package/dist/composables/useMonthDnd.d.ts.map +1 -0
- package/dist/composables/useMonthExpansion.d.ts +35 -0
- package/dist/composables/useMonthExpansion.d.ts.map +1 -0
- package/dist/composables/useTimeGridDnd.d.ts +104 -0
- package/dist/composables/useTimeGridDnd.d.ts.map +1 -0
- package/dist/composables/useViewWindow.d.ts +14 -0
- package/dist/composables/useViewWindow.d.ts.map +1 -0
- package/dist/core/agendaLayout.d.ts +47 -0
- package/dist/core/agendaLayout.d.ts.map +1 -0
- package/dist/core/dnd/move-math.d.ts +136 -0
- package/dist/core/dnd/move-math.d.ts.map +1 -0
- package/dist/core/dragHitTest.d.ts +74 -0
- package/dist/core/dragHitTest.d.ts.map +1 -0
- package/dist/core/eventIndex.d.ts +106 -0
- package/dist/core/eventIndex.d.ts.map +1 -0
- package/dist/core/index.d.ts +32 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/measurementCache.d.ts +87 -0
- package/dist/core/measurementCache.d.ts.map +1 -0
- package/dist/core/monthGridLayout.d.ts +68 -0
- package/dist/core/monthGridLayout.d.ts.map +1 -0
- package/dist/core/overlapLayout.d.ts +88 -0
- package/dist/core/overlapLayout.d.ts.map +1 -0
- package/dist/core/recurrence-public.d.ts +59 -0
- package/dist/core/recurrence-public.d.ts.map +1 -0
- package/dist/core/recurrence.d.ts +112 -0
- package/dist/core/recurrence.d.ts.map +1 -0
- package/dist/core/recurrenceWorker.d.ts +62 -0
- package/dist/core/recurrenceWorker.d.ts.map +1 -0
- package/dist/core/temporal.d.ts +214 -0
- package/dist/core/temporal.d.ts.map +1 -0
- package/dist/core/timeGridLayout.d.ts +109 -0
- package/dist/core/timeGridLayout.d.ts.map +1 -0
- package/dist/core/types.d.ts +211 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/viewWindow.d.ts +53 -0
- package/dist/core/viewWindow.d.ts.map +1 -0
- package/dist/core/virtualScroll.d.ts +91 -0
- package/dist/core/virtualScroll.d.ts.map +1 -0
- package/dist/core-DK63eHat.js +959 -0
- package/dist/core.js +2 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4221 -0
- package/dist/useAgendaView.d.ts +6 -0
- package/dist/useAgendaView.d.ts.map +1 -0
- package/dist/useCalendar.d.ts +6 -0
- package/dist/useCalendar.d.ts.map +1 -0
- package/dist/useDayView.d.ts +6 -0
- package/dist/useDayView.d.ts.map +1 -0
- package/dist/useMonthView.d.ts +6 -0
- package/dist/useMonthView.d.ts.map +1 -0
- package/dist/useWeekView.d.ts +6 -0
- package/dist/useWeekView.d.ts.map +1 -0
- package/dist/vue-calendar.css +2 -0
- package/package.json +68 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { CalendarEvent, MonthMultiDayBar } from '../../../core';
|
|
2
|
+
interface Props {
|
|
3
|
+
event: CalendarEvent;
|
|
4
|
+
bar: MonthMultiDayBar;
|
|
5
|
+
variant?: 'live' | 'preview' | 'phantom' | 'invalid';
|
|
6
|
+
bg: string;
|
|
7
|
+
border: string;
|
|
8
|
+
title: string;
|
|
9
|
+
/** Display zone — surfaced on the default decoration layer (C3/C5 hints). */
|
|
10
|
+
displayZone?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
snappingBack?: boolean;
|
|
13
|
+
density?: 'comfortable' | 'compact';
|
|
14
|
+
/** Pixel offset from the row's top edge. */
|
|
15
|
+
top: number;
|
|
16
|
+
/** CSS `left` (typically a `calc(...)` percentage expression). */
|
|
17
|
+
left: string;
|
|
18
|
+
/** CSS `width` (typically a `calc(...)` percentage expression). */
|
|
19
|
+
width: string;
|
|
20
|
+
/** Pixel height. */
|
|
21
|
+
height: number;
|
|
22
|
+
/** Stacking order; preview gets bumped to 100 by the parent. */
|
|
23
|
+
zIndex: number;
|
|
24
|
+
/** Bar is clipped at the start (off-month or at the row edge). */
|
|
25
|
+
clippedStart?: boolean;
|
|
26
|
+
/** Bar is clipped at the end (off-month or at the row edge). */
|
|
27
|
+
clippedEnd?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* `true` when the `preview` variant is being driven by an
|
|
30
|
+
* in-flight keyboard drag.
|
|
31
|
+
*/
|
|
32
|
+
kbdActive?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare function __VLS_template(): {
|
|
35
|
+
attrs: Partial<{}>;
|
|
36
|
+
slots: Readonly<{
|
|
37
|
+
default(props: {
|
|
38
|
+
event: CalendarEvent;
|
|
39
|
+
bar: MonthMultiDayBar;
|
|
40
|
+
}): unknown;
|
|
41
|
+
}> & {
|
|
42
|
+
default(props: {
|
|
43
|
+
event: CalendarEvent;
|
|
44
|
+
bar: MonthMultiDayBar;
|
|
45
|
+
}): unknown;
|
|
46
|
+
};
|
|
47
|
+
refs: {};
|
|
48
|
+
rootEl: HTMLDivElement;
|
|
49
|
+
};
|
|
50
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
51
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
|
+
dblclick: (native: MouseEvent) => any;
|
|
53
|
+
keydown: (native: KeyboardEvent) => any;
|
|
54
|
+
pointerdown: (native: PointerEvent) => any;
|
|
55
|
+
startResize: (native: PointerEvent) => any;
|
|
56
|
+
endResize: (native: PointerEvent) => any;
|
|
57
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
58
|
+
onDblclick?: ((native: MouseEvent) => any) | undefined;
|
|
59
|
+
onKeydown?: ((native: KeyboardEvent) => any) | undefined;
|
|
60
|
+
onPointerdown?: ((native: PointerEvent) => any) | undefined;
|
|
61
|
+
onStartResize?: ((native: PointerEvent) => any) | undefined;
|
|
62
|
+
onEndResize?: ((native: PointerEvent) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
clippedStart: boolean;
|
|
65
|
+
clippedEnd: boolean;
|
|
66
|
+
displayZone: string;
|
|
67
|
+
variant: "live" | "preview" | "phantom" | "invalid";
|
|
68
|
+
ariaLabel: string;
|
|
69
|
+
snappingBack: boolean;
|
|
70
|
+
density: "comfortable" | "compact";
|
|
71
|
+
kbdActive: boolean;
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
73
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
74
|
+
export default _default;
|
|
75
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=CoarMonthBar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMonthBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthBar.vue"],"names":[],"mappings":"AA2TA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGrE,UAAU,KAAK;IACb,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,gBAAgB,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAEpC,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IAEf,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gEAAgE;IAChE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAmFD,iBAAS,cAAc;WAwHT,OAAO,IAA6B;;uBAhLjC;YAAE,KAAK,EAAE,aAAa,CAAC;YAAC,GAAG,EAAE,gBAAgB,CAAA;SAAE,GAAG,OAAO;;uBAAzD;YAAE,KAAK,EAAE,aAAa,CAAC;YAAC,GAAG,EAAE,gBAAgB,CAAA;SAAE,GAAG,OAAO;;;;EAqLzE;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;kBA9OJ,OAAO;gBAET,OAAO;iBAnBN,MAAM;aALV,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS;eAMxC,MAAM;kBACH,OAAO;aACZ,aAAa,GAAG,SAAS;eAqBvB,OAAO;wFAgPnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Temporal } from '../../../core';
|
|
2
|
+
interface Props {
|
|
3
|
+
day: Temporal.PlainDate;
|
|
4
|
+
/** `dateKey(day)` precomputed by the parent. Surface as `data-day-key`. */
|
|
5
|
+
dayKey: string;
|
|
6
|
+
isToday?: boolean;
|
|
7
|
+
isOtherMonth?: boolean;
|
|
8
|
+
isWeekend?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Top inset for the pills container. Lets the pills sit below
|
|
11
|
+
* the row's multi-day-bar area instead of overlapping it. The
|
|
12
|
+
* row knows the bar-area height; the cell just renders it.
|
|
13
|
+
*/
|
|
14
|
+
pillsMarginTopPx: number;
|
|
15
|
+
/**
|
|
16
|
+
* Forwarded `aria-expanded` for the kebab. The cell only knows
|
|
17
|
+
* "is the menu currently open AGAINST me?", set by the parent.
|
|
18
|
+
*/
|
|
19
|
+
menuOpenForThisCell?: boolean;
|
|
20
|
+
/** Localised kebab `aria-label`. Parent supplies the i18n string. */
|
|
21
|
+
kebabAriaLabel: string;
|
|
22
|
+
density?: 'comfortable' | 'compact';
|
|
23
|
+
/**
|
|
24
|
+
* `aria-rowindex` for the cell — counts from 1, with row 1 being
|
|
25
|
+
* the weekday-header row, so week rows start at 2.
|
|
26
|
+
*/
|
|
27
|
+
ariaRowIndex: number;
|
|
28
|
+
/** `aria-colindex` for the cell — 1..7. */
|
|
29
|
+
ariaColIndex: number;
|
|
30
|
+
/** Locale-formatted date string for `aria-label`. */
|
|
31
|
+
ariaLabel: string;
|
|
32
|
+
}
|
|
33
|
+
declare function __VLS_template(): {
|
|
34
|
+
attrs: Partial<{}>;
|
|
35
|
+
slots: Readonly<{
|
|
36
|
+
/**
|
|
37
|
+
* Pills (and source-phantom / invalid ghost). Rendered inside
|
|
38
|
+
* the pills container which scrolls when content overflows.
|
|
39
|
+
*/
|
|
40
|
+
default(): unknown;
|
|
41
|
+
}> & {
|
|
42
|
+
/**
|
|
43
|
+
* Pills (and source-phantom / invalid ghost). Rendered inside
|
|
44
|
+
* the pills container which scrolls when content overflows.
|
|
45
|
+
*/
|
|
46
|
+
default(): unknown;
|
|
47
|
+
};
|
|
48
|
+
refs: {};
|
|
49
|
+
rootEl: HTMLDivElement;
|
|
50
|
+
};
|
|
51
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
52
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
cellPointerdown: (native: PointerEvent, day: Temporal.PlainDate) => any;
|
|
54
|
+
cellContextmenu: (native: MouseEvent, day: Temporal.PlainDate) => any;
|
|
55
|
+
kebabClick: (native: MouseEvent, day: Temporal.PlainDate) => any;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
57
|
+
onCellPointerdown?: ((native: PointerEvent, day: Temporal.PlainDate) => any) | undefined;
|
|
58
|
+
onCellContextmenu?: ((native: MouseEvent, day: Temporal.PlainDate) => any) | undefined;
|
|
59
|
+
onKebabClick?: ((native: MouseEvent, day: Temporal.PlainDate) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
density: "comfortable" | "compact";
|
|
62
|
+
isToday: boolean;
|
|
63
|
+
isWeekend: boolean;
|
|
64
|
+
isOtherMonth: boolean;
|
|
65
|
+
menuOpenForThisCell: boolean;
|
|
66
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
67
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
68
|
+
export default _default;
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=CoarMonthCell.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMonthCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthCell.vue"],"names":[],"mappings":"AAqSA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,UAAU,KAAK;IACb,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC;IACxB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;CACnB;AAoDD,iBAAS,cAAc;WA0FT,OAAO,IAA6B;;QAxHhD;;;WAGG;mBACQ,OAAO;;QAJlB;;;WAGG;mBACQ,OAAO;;;;EAyHnB;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;aA5KT,aAAa,GAAG,SAAS;aAhBzB,OAAO;eAEL,OAAO;kBADJ,OAAO;yBAYA,OAAO;wFAwL7B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<CoarMonthGrid>` — internal layout component for the full
|
|
3
|
+
* 6-row month grid plus the localised weekday-header strip.
|
|
4
|
+
*
|
|
5
|
+
* Owns:
|
|
6
|
+
* - the sticky weekday-header row (`Mon / Tue / Wed / …`)
|
|
7
|
+
* - the rows container that carries the DnD hit-test ref
|
|
8
|
+
* - the column borders + sticky background under the header
|
|
9
|
+
*
|
|
10
|
+
* Does NOT own: row layout, cells, dnd, layout pass. The row
|
|
11
|
+
* container exposes its element via a function-ref prop so the
|
|
12
|
+
* parent can wire it into `useCalendarDnd({ monthGridRef })`
|
|
13
|
+
* without giving up the SRP.
|
|
14
|
+
*
|
|
15
|
+
* Lives in `internal/` — NOT exported from the package barrel.
|
|
16
|
+
*/
|
|
17
|
+
interface Props {
|
|
18
|
+
/** Localised, first-day-of-week-respecting weekday labels. */
|
|
19
|
+
weekdayHeaders: ReadonlyArray<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Forward the rows container's DOM element to the parent the
|
|
22
|
+
* moment it mounts (and `null` on unmount). The parent uses it
|
|
23
|
+
* as the month-grid hit-test reference for `useCalendarDnd`.
|
|
24
|
+
* Function-ref keeps the rows container DOM-owned by this
|
|
25
|
+
* component while the parent still has a Ref to bind dnd to.
|
|
26
|
+
*/
|
|
27
|
+
setRowsEl: (el: HTMLElement | null) => void;
|
|
28
|
+
}
|
|
29
|
+
declare function __VLS_template(): {
|
|
30
|
+
attrs: Partial<{}>;
|
|
31
|
+
slots: Readonly<{
|
|
32
|
+
/** Week rows — one `<CoarMonthRow>` per `MonthWeekRow`. */
|
|
33
|
+
default(): unknown;
|
|
34
|
+
}> & {
|
|
35
|
+
/** Week rows — one `<CoarMonthRow>` per `MonthWeekRow`. */
|
|
36
|
+
default(): unknown;
|
|
37
|
+
};
|
|
38
|
+
refs: {};
|
|
39
|
+
rootEl: HTMLDivElement;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=CoarMonthGrid.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMonthGrid.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthGrid.vue"],"names":[],"mappings":"AAiGA;;;;;;;;;;;;;;;GAeG;AAEH,UAAU,KAAK;IACb,8DAA8D;IAC9D,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAC7C;AAYD,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;QAnDhD,2DAA2D;mBAChD,OAAO;;QADlB,2DAA2D;mBAChD,OAAO;;;;EAuDnB;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,iSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CalendarEvent, MonthCellPill } from '../../../core';
|
|
2
|
+
interface Props {
|
|
3
|
+
event: CalendarEvent;
|
|
4
|
+
pill: MonthCellPill;
|
|
5
|
+
variant?: 'live' | 'preview' | 'phantom' | 'invalid';
|
|
6
|
+
bg: string;
|
|
7
|
+
border: string;
|
|
8
|
+
title: string;
|
|
9
|
+
/** Display zone — surfaced on the default decoration layer (C3/C5 hints). */
|
|
10
|
+
displayZone?: string;
|
|
11
|
+
/** Required for `live`; ignored otherwise. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
/** Apply the snap-back exit animation (invalid variant only). */
|
|
14
|
+
snappingBack?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Visual density. The compact rule has to live HERE (not on the
|
|
17
|
+
* parent month-view) — Vue's scoped CSS won't let a parent
|
|
18
|
+
* descendant selector reach into the child's scope.
|
|
19
|
+
*/
|
|
20
|
+
density?: 'comfortable' | 'compact';
|
|
21
|
+
/**
|
|
22
|
+
* `true` when the `preview` variant is being driven by an
|
|
23
|
+
* in-flight keyboard drag. Promotes the ghost from a passive
|
|
24
|
+
* visual to a focusable interactive element so subsequent
|
|
25
|
+
* arrow keystrokes keep landing on `keydown`.
|
|
26
|
+
*/
|
|
27
|
+
kbdActive?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare function __VLS_template(): {
|
|
30
|
+
attrs: Partial<{}>;
|
|
31
|
+
slots: Readonly<{
|
|
32
|
+
/**
|
|
33
|
+
* Render custom pill content. Receives `event` + `pill` so the
|
|
34
|
+
* consumer can do whatever it wants with the layout payload. The
|
|
35
|
+
* default fallback renders the bare `title`. Slot is only invoked
|
|
36
|
+
* for `live` and `preview` — phantom / invalid use the bare
|
|
37
|
+
* title to keep their visuals consistent across consumers.
|
|
38
|
+
*/
|
|
39
|
+
default(props: {
|
|
40
|
+
event: CalendarEvent;
|
|
41
|
+
pill: MonthCellPill;
|
|
42
|
+
}): unknown;
|
|
43
|
+
}> & {
|
|
44
|
+
/**
|
|
45
|
+
* Render custom pill content. Receives `event` + `pill` so the
|
|
46
|
+
* consumer can do whatever it wants with the layout payload. The
|
|
47
|
+
* default fallback renders the bare `title`. Slot is only invoked
|
|
48
|
+
* for `live` and `preview` — phantom / invalid use the bare
|
|
49
|
+
* title to keep their visuals consistent across consumers.
|
|
50
|
+
*/
|
|
51
|
+
default(props: {
|
|
52
|
+
event: CalendarEvent;
|
|
53
|
+
pill: MonthCellPill;
|
|
54
|
+
}): unknown;
|
|
55
|
+
};
|
|
56
|
+
refs: {};
|
|
57
|
+
rootEl: HTMLDivElement;
|
|
58
|
+
};
|
|
59
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
60
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
|
+
dblclick: (native: MouseEvent) => any;
|
|
62
|
+
keydown: (native: KeyboardEvent) => any;
|
|
63
|
+
pointerdown: (native: PointerEvent) => any;
|
|
64
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
65
|
+
onDblclick?: ((native: MouseEvent) => any) | undefined;
|
|
66
|
+
onKeydown?: ((native: KeyboardEvent) => any) | undefined;
|
|
67
|
+
onPointerdown?: ((native: PointerEvent) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
displayZone: string;
|
|
70
|
+
variant: "live" | "preview" | "phantom" | "invalid";
|
|
71
|
+
ariaLabel: string;
|
|
72
|
+
snappingBack: boolean;
|
|
73
|
+
density: "comfortable" | "compact";
|
|
74
|
+
kbdActive: boolean;
|
|
75
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
76
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
|
+
export default _default;
|
|
78
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
|
+
new (): {
|
|
80
|
+
$slots: S;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=CoarMonthPill.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMonthPill.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthPill.vue"],"names":[],"mappings":"AAqPA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGlE,UAAU,KAAK;IACb,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkED,iBAAS,cAAc;WA0FT,OAAO,IAA6B;;QArIhD;;;;;;WAMG;uBACY;YAAE,KAAK,EAAE,aAAa,CAAC;YAAC,IAAI,EAAE,aAAa,CAAA;SAAE,GAAG,OAAO;;QAPtE;;;;;;WAMG;uBACY;YAAE,KAAK,EAAE,aAAa,CAAC;YAAC,IAAI,EAAE,aAAa,CAAA;SAAE,GAAG,OAAO;;;;EAmIvE;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;iBApML,MAAM;aALV,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS;eAOxC,MAAM;kBAEH,OAAO;aAMZ,aAAa,GAAG,SAAS;eAOvB,OAAO;wFA4LnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** Pixel height for the entire row (computed by the parent
|
|
3
|
+
* from the multi-day-bar lane count + collapsed/expanded state). */
|
|
4
|
+
heightPx: number;
|
|
5
|
+
/**
|
|
6
|
+
* Visual density. Compact tightens the row's `min-height`; the
|
|
7
|
+
* compact rule lives here (not on the parent month-view) because
|
|
8
|
+
* Vue's scoped CSS won't let a parent descendant selector reach
|
|
9
|
+
* into the child's scope.
|
|
10
|
+
*/
|
|
11
|
+
density?: 'comfortable' | 'compact';
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: Readonly<{
|
|
16
|
+
/**
|
|
17
|
+
* Row content. The parent typically renders day cells first
|
|
18
|
+
* (which establish the 7 columns + flex pill columns) followed
|
|
19
|
+
* by absolutely-positioned multi-day bars and any drag overlays.
|
|
20
|
+
*/
|
|
21
|
+
default(): unknown;
|
|
22
|
+
}> & {
|
|
23
|
+
/**
|
|
24
|
+
* Row content. The parent typically renders day cells first
|
|
25
|
+
* (which establish the 7 columns + flex pill columns) followed
|
|
26
|
+
* by absolutely-positioned multi-day bars and any drag overlays.
|
|
27
|
+
*/
|
|
28
|
+
default(): unknown;
|
|
29
|
+
};
|
|
30
|
+
refs: {};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
35
|
+
density: "comfortable" | "compact";
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=CoarMonthRow.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMonthRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthRow.vue"],"names":[],"mappings":"AAAA,UAqGU,KAAK;IACb;yEACqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACrC;AAiBD,iBAAS,cAAc;WA6BT,OAAO,IAA6B;;QAxChD;;;;WAIG;mBACQ,OAAO;;QALlB;;;;WAIG;mBACQ,OAAO;;;;EAwCnB;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aA9DT,aAAa,GAAG,SAAS;wFAsEnC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Temporal } from '../../../core';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Visible days, left-to-right. */
|
|
4
|
+
days: ReadonlyArray<Temporal.PlainDate>;
|
|
5
|
+
/** Localised "all-day" label. */
|
|
6
|
+
axisLabel: string;
|
|
7
|
+
/** Pixel height for the band (lane-count + lane-gap math). */
|
|
8
|
+
bandHeightPx: number;
|
|
9
|
+
isToday: (day: Temporal.PlainDate) => boolean;
|
|
10
|
+
isWeekend: (day: Temporal.PlainDate) => boolean;
|
|
11
|
+
/** Forwards the columns DOM element to the parent on mount. */
|
|
12
|
+
setColumnsEl: (el: HTMLElement | null) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: Readonly<{
|
|
17
|
+
/** Bars + phantom + invalid overlay placed above the cells. */
|
|
18
|
+
default(): unknown;
|
|
19
|
+
}> & {
|
|
20
|
+
/** Bars + phantom + invalid overlay placed above the cells. */
|
|
21
|
+
default(): unknown;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
cellPointerdown: (native: PointerEvent, day: Temporal.PlainDate) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
30
|
+
onCellPointerdown?: ((native: PointerEvent, day: Temporal.PlainDate) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=CoarTimeGridAllDayBand.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeGridAllDayBand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridAllDayBand.vue"],"names":[],"mappings":"AA0HA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,UAAU,KAAK;IACb,mCAAmC;IACnC,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACxC,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,KAAK,OAAO,CAAC;IAC9C,SAAS,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,KAAK,OAAO,CAAC;IAChD,+DAA+D;IAC/D,YAAY,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAsBD,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;QAjEhD,+DAA+D;mBACpD,OAAO;;QADlB,+DAA+D;mBACpD,OAAO;;;;EAqEnB;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Temporal } from '../../../core';
|
|
2
|
+
interface Props {
|
|
3
|
+
day: Temporal.PlainDate;
|
|
4
|
+
isToday?: boolean;
|
|
5
|
+
isWeekend?: boolean;
|
|
6
|
+
/** Total column height in pixels (`(endHour - startHour) * pxPerHour`). */
|
|
7
|
+
heightPx: number;
|
|
8
|
+
/** Pixel height of one slot subdivision (slotDuration × pxPerHour / 60). */
|
|
9
|
+
slotHeightPx: number;
|
|
10
|
+
/** Pixel offset for the slot-line gradient — shifts the pattern
|
|
11
|
+
* down so the first gridline lands at the end of the first slot. */
|
|
12
|
+
renderBufferOffsetPx: number;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: Readonly<{
|
|
17
|
+
/** Events + drag overlays + now-marker — absolutely positioned
|
|
18
|
+
* inside the column by the parent. */
|
|
19
|
+
default(): unknown;
|
|
20
|
+
}> & {
|
|
21
|
+
/** Events + drag overlays + now-marker — absolutely positioned
|
|
22
|
+
* inside the column by the parent. */
|
|
23
|
+
default(): unknown;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLDivElement;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
pointerdown: (native: PointerEvent, day: Temporal.PlainDate) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
onPointerdown?: ((native: PointerEvent, day: Temporal.PlainDate) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
isToday: boolean;
|
|
35
|
+
isWeekend: boolean;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=CoarTimeGridColumn.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeGridColumn.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridColumn.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,UAAU,KAAK;IACb,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB;yEACqE;IACrE,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAsCD,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;QA5DhD;+CACuC;mBAC5B,OAAO;;QAFlB;+CACuC;mBAC5B,OAAO;;;;EA+DnB;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;aArGT,OAAO;eACL,OAAO;wFA6GnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Temporal } from '../../../core';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Visible days, left-to-right. Length = column count. */
|
|
4
|
+
days: ReadonlyArray<Temporal.PlainDate>;
|
|
5
|
+
/** Decoration predicate provided by the parent. */
|
|
6
|
+
isToday: (day: Temporal.PlainDate) => boolean;
|
|
7
|
+
/** Decoration predicate provided by the parent. */
|
|
8
|
+
isWeekend: (day: Temporal.PlainDate) => boolean;
|
|
9
|
+
/** Locale-aware label for a day-header. */
|
|
10
|
+
formatLabel: (day: Temporal.PlainDate) => string;
|
|
11
|
+
density?: 'comfortable' | 'compact';
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: Readonly<{
|
|
16
|
+
/** Custom day-header. The default reads `formatLabel(day)`. */
|
|
17
|
+
dayHeader(props: {
|
|
18
|
+
date: Temporal.PlainDate;
|
|
19
|
+
isToday: boolean;
|
|
20
|
+
isWeekend: boolean;
|
|
21
|
+
}): unknown;
|
|
22
|
+
}> & {
|
|
23
|
+
/** Custom day-header. The default reads `formatLabel(day)`. */
|
|
24
|
+
dayHeader(props: {
|
|
25
|
+
date: Temporal.PlainDate;
|
|
26
|
+
isToday: boolean;
|
|
27
|
+
isWeekend: boolean;
|
|
28
|
+
}): unknown;
|
|
29
|
+
};
|
|
30
|
+
refs: {};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
35
|
+
density: "comfortable" | "compact";
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=CoarTimeGridHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeGridHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridHeader.vue"],"names":[],"mappings":"AAAA,OAoHO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,UAAU,KAAK;IACb,0DAA0D;IAC1D,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACxC,mDAAmD;IACnD,OAAO,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,KAAK,OAAO,CAAC;IAC9C,mDAAmD;IACnD,SAAS,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,KAAK,OAAO,CAAC;IAChD,2CAA2C;IAC3C,WAAW,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,KAAK,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACrC;AAiBD,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;QAvEhD,+DAA+D;yBAC9C;YACf,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;YACzB,OAAO,EAAE,OAAO,CAAC;YACjB,SAAS,EAAE,OAAO,CAAC;SACpB,GAAG,OAAO;;QALX,+DAA+D;yBAC9C;YACf,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;YACzB,OAAO,EAAE,OAAO,CAAC;YACjB,SAAS,EAAE,OAAO,CAAC;SACpB,GAAG,OAAO;;;;EAuEZ;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aA7FT,aAAa,GAAG,SAAS;wFAqGnC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<CoarTimeGridNowMarker>` — internal "current time" indicator
|
|
3
|
+
* for the time-grid's today column.
|
|
4
|
+
*
|
|
5
|
+
* Thin horizontal line + dot; pure visual, no events. The
|
|
6
|
+
* parent column decides whether to render it (only on today's
|
|
7
|
+
* column when `nowMinutesFromGridStart !== null`) and feeds the
|
|
8
|
+
* pixel offset.
|
|
9
|
+
*
|
|
10
|
+
* Lives in `internal/` — NOT exported from the package barrel.
|
|
11
|
+
*/
|
|
12
|
+
interface Props {
|
|
13
|
+
/** Pixel offset from the column's top edge. */
|
|
14
|
+
topPx: number;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=CoarTimeGridNowMarker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeGridNowMarker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridNowMarker.vue"],"names":[],"mappings":"AAyDA;;;;;;;;;;GAUG;AAEH,UAAU,KAAK;IACb,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf;;AAuDD,wBAOG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface UseA11yAnnouncerReturn {
|
|
3
|
+
/** Bind in the view's `<div role="status" aria-live="polite">`. */
|
|
4
|
+
message: Ref<string>;
|
|
5
|
+
/** Announce `text`. Subsequent identical announcements still fire. */
|
|
6
|
+
announce: (text: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useA11yAnnouncer(): UseA11yAnnouncerReturn;
|
|
9
|
+
//# sourceMappingURL=useA11yAnnouncer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useA11yAnnouncer.d.ts","sourceRoot":"","sources":["../../src/composables/useA11yAnnouncer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAO,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAIpC,MAAM,WAAW,sBAAsB;IACrC,mEAAmE;IACnE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,sEAAsE;IACtE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,gBAAgB,IAAI,sBAAsB,CAQzD"}
|