@cocoar/vue-calendar 3.2.0-beta.9 → 3.3.0-beta.8
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/builders/calendar-builder-config.d.ts +46 -2
- package/dist/builders/calendar-builder-config.d.ts.map +1 -1
- package/dist/builders/calendar-builder-handlers.d.ts +26 -1
- package/dist/builders/calendar-builder-handlers.d.ts.map +1 -1
- package/dist/builders/calendar-builder-state.d.ts +40 -2
- package/dist/builders/calendar-builder-state.d.ts.map +1 -1
- package/dist/builders/calendar-builder.d.ts.map +1 -1
- package/dist/builders/internal/navigation.d.ts +3 -2
- package/dist/builders/internal/navigation.d.ts.map +1 -1
- package/dist/builders/internal/series-pipeline.d.ts.map +1 -1
- package/dist/builders/types.d.ts +77 -1
- package/dist/builders/types.d.ts.map +1 -1
- package/dist/components/CoarAgendaView.vue.d.ts.map +1 -1
- package/dist/components/CoarCalendar.vue.d.ts +23 -1
- package/dist/components/CoarCalendar.vue.d.ts.map +1 -1
- package/dist/components/CoarContinuousMonthView.vue.d.ts +7 -0
- package/dist/components/CoarContinuousMonthView.vue.d.ts.map +1 -1
- package/dist/components/CoarDayView.vue.d.ts +13 -0
- package/dist/components/CoarDayView.vue.d.ts.map +1 -1
- package/dist/components/CoarMonthListView.vue.d.ts.map +1 -1
- package/dist/components/CoarMonthView.vue.d.ts.map +1 -1
- package/dist/components/CoarTimeGrid.vue.d.ts +13 -0
- package/dist/components/CoarTimeGrid.vue.d.ts.map +1 -1
- package/dist/components/CoarWeekView.vue.d.ts +13 -0
- package/dist/components/CoarWeekView.vue.d.ts.map +1 -1
- package/dist/components/CoarWorkWeekView.vue.d.ts +13 -0
- package/dist/components/CoarWorkWeekView.vue.d.ts.map +1 -1
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts +7 -0
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarCalendarBands.vue.d.ts +16 -0
- package/dist/components/internal/time-grid/CoarCalendarBands.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeAxisMarker.vue.d.ts +8 -0
- package/dist/components/internal/time-grid/CoarTimeAxisMarker.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridNowMarker.vue.d.ts +15 -8
- package/dist/components/internal/time-grid/CoarTimeGridNowMarker.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridSurface.vue.d.ts +13 -0
- package/dist/components/internal/time-grid/CoarTimeGridSurface.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeSelectionLayer.vue.d.ts +37 -0
- package/dist/components/internal/time-grid/CoarTimeSelectionLayer.vue.d.ts.map +1 -0
- package/dist/components/internal/time-rows/CoarTimeRows.vue.d.ts +67 -0
- package/dist/components/internal/time-rows/CoarTimeRows.vue.d.ts.map +1 -0
- package/dist/components/internal/time-rows/CoarTimeRowsEvent.vue.d.ts +61 -0
- package/dist/components/internal/time-rows/CoarTimeRowsEvent.vue.d.ts.map +1 -0
- package/dist/composables/surfaceTap.d.ts +38 -0
- package/dist/composables/surfaceTap.d.ts.map +1 -0
- package/dist/composables/useCalendarDnd.d.ts +58 -0
- package/dist/composables/useCalendarDnd.d.ts.map +1 -1
- package/dist/composables/useTimeGridDnd.d.ts +9 -1
- package/dist/composables/useTimeGridDnd.d.ts.map +1 -1
- package/dist/composables/useTimeGridOverlays.d.ts +74 -0
- package/dist/composables/useTimeGridOverlays.d.ts.map +1 -0
- package/dist/composables/useTimeGridPresentation.d.ts +215 -0
- package/dist/composables/useTimeGridPresentation.d.ts.map +1 -0
- package/dist/composables/useTimeGridSwipe.d.ts +5 -0
- package/dist/composables/useTimeGridSwipe.d.ts.map +1 -1
- package/dist/composables/useTimeSelection.d.ts +38 -0
- package/dist/composables/useTimeSelection.d.ts.map +1 -0
- package/dist/core/dnd/move-math.d.ts.map +1 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/monthGridLayout.d.ts.map +1 -1
- package/dist/core/temporal.d.ts +6 -0
- package/dist/core/temporal.d.ts.map +1 -1
- package/dist/core/timeRowsLayout.d.ts +57 -0
- package/dist/core/timeRowsLayout.d.ts.map +1 -0
- package/dist/core/timeSelection.d.ts +92 -0
- package/dist/core/timeSelection.d.ts.map +1 -0
- package/dist/core/types.d.ts +8 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/{core-DNwsMOSU.js → core-Dcw3ry8Z.js} +408 -399
- package/dist/core.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3915 -2325
- package/dist/move-math-C9mwvFPJ.js +354 -0
- package/dist/recurrence.js +1 -1
- package/dist/vue-calendar.css +1 -1
- package/package.json +3 -3
- package/dist/move-math-BFP9Tfuo.js +0 -223
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarMonthListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarMonthListView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarMonthListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarMonthListView.vue"],"names":[],"mappings":"AA8UA,OAAO,EAQL,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;yBAM9C,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA0TO,mBAAmB,CAAC;iBAzTE,eAAe,CAAC,KAAK,CAAC;mBAyT0C,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;sBArTK;YAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;YAAC,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;;sBAAvE;YAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;YAAC,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;;UAuThF,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArUzE,wBAqU4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarMonthView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarMonthView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarMonthView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarMonthView.vue"],"names":[],"mappings":"AAgoCA,OAAO,EACL,QAAQ,EAeR,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,KAAK,WAAW,EAEjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;yBAW9C,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC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4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TimeGridSwipeState } from '../composables/useTimeGridSwipe';
|
|
2
2
|
import { Temporal, CalendarEvent, PositionedEvent, AllDayBar, ViewWindow } from '../core';
|
|
3
3
|
import { CalendarBuilder } from '../builders/calendar-builder';
|
|
4
|
+
import { CalendarDraftSegment } from '../builders/types';
|
|
4
5
|
import { CascadeFrame } from '../core/cascadeLayout';
|
|
5
6
|
declare const _default: <TMeta extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -60,6 +61,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
60
61
|
isToday: boolean;
|
|
61
62
|
isWeekend: boolean;
|
|
62
63
|
}): unknown;
|
|
64
|
+
/** Custom drawing of the host's draft (`builder.draft`), one call per day it covers. */
|
|
65
|
+
draft?(props: {
|
|
66
|
+
start: Temporal.ZonedDateTime;
|
|
67
|
+
end: Temporal.ZonedDateTime;
|
|
68
|
+
segment: CalendarDraftSegment;
|
|
69
|
+
}): unknown;
|
|
63
70
|
}> & {
|
|
64
71
|
event?(props: {
|
|
65
72
|
event: CalendarEvent<TMeta>;
|
|
@@ -74,6 +81,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
74
81
|
isToday: boolean;
|
|
75
82
|
isWeekend: boolean;
|
|
76
83
|
}): unknown;
|
|
84
|
+
/** Custom drawing of the host's draft (`builder.draft`), one call per day it covers. */
|
|
85
|
+
draft?(props: {
|
|
86
|
+
start: Temporal.ZonedDateTime;
|
|
87
|
+
end: Temporal.ZonedDateTime;
|
|
88
|
+
segment: CalendarDraftSegment;
|
|
89
|
+
}): unknown;
|
|
77
90
|
};
|
|
78
91
|
emit: (evt: "swipeState", state: TimeGridSwipeState) => void;
|
|
79
92
|
}>) => import('vue').VNode & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarTimeGrid.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarTimeGrid.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarTimeGrid.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarTimeGrid.vue"],"names":[],"mappings":"AA+yCA,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EACL,QAAQ,EAKR,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,UAAU,EAGhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAc/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,uBAAuB,CAAC;yBAEd,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAw/CO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KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;0BACrE;YAAE,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;YAAC,OAAO,EAAE,OAAO,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,GAAG,OAAO;QAC9F,wFAAwF;sBAC1E;YACZ,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC9B,GAAG,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC5B,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;;EA28CT,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAngDzE,wBAmgD4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Temporal, CalendarEvent, PositionedEvent, AllDayBar } from '../core';
|
|
2
2
|
import { CalendarBuilder } from '../builders/calendar-builder';
|
|
3
|
+
import { CalendarDraftSegment } from '../builders/types';
|
|
3
4
|
declare const _default: <TMeta extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
5
6
|
builder: CalendarBuilder<TMeta>;
|
|
@@ -26,6 +27,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
26
27
|
isToday: boolean;
|
|
27
28
|
isWeekend: boolean;
|
|
28
29
|
}): unknown;
|
|
30
|
+
/** The host's draft (`builder.draft`), drawn yourself — one call per day it covers. */
|
|
31
|
+
draft?(props: {
|
|
32
|
+
start: Temporal.ZonedDateTime;
|
|
33
|
+
end: Temporal.ZonedDateTime;
|
|
34
|
+
segment: CalendarDraftSegment;
|
|
35
|
+
}): unknown;
|
|
29
36
|
}> & {
|
|
30
37
|
event?(props: {
|
|
31
38
|
event: CalendarEvent<TMeta>;
|
|
@@ -40,6 +47,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
40
47
|
isToday: boolean;
|
|
41
48
|
isWeekend: boolean;
|
|
42
49
|
}): unknown;
|
|
50
|
+
/** The host's draft (`builder.draft`), drawn yourself — one call per day it covers. */
|
|
51
|
+
draft?(props: {
|
|
52
|
+
start: Temporal.ZonedDateTime;
|
|
53
|
+
end: Temporal.ZonedDateTime;
|
|
54
|
+
segment: CalendarDraftSegment;
|
|
55
|
+
}): unknown;
|
|
43
56
|
};
|
|
44
57
|
emit: {};
|
|
45
58
|
}>) => import('vue').VNode & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarWeekView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarWeekView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarWeekView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarWeekView.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;yBAE7C,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC,OAA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AAC;YAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;0BACrE;YAAE,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;YAAC,OAAO,EAAE,OAAO,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,GAAG,OAAO;QAC9F,uFAAuF;sBACzE;YACZ,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC9B,GAAG,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC5B,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;UAmIN,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvJzE,wBAuJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Temporal, CalendarEvent, PositionedEvent, AllDayBar } from '../core';
|
|
2
2
|
import { CalendarBuilder } from '../builders/calendar-builder';
|
|
3
|
+
import { CalendarDraftSegment } from '../builders/types';
|
|
3
4
|
declare const _default: <TMeta extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
5
6
|
builder: CalendarBuilder<TMeta>;
|
|
@@ -26,6 +27,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
26
27
|
isToday: boolean;
|
|
27
28
|
isWeekend: boolean;
|
|
28
29
|
}): unknown;
|
|
30
|
+
/** The host's draft (`builder.draft`), drawn yourself — one call per day it covers. */
|
|
31
|
+
draft?(props: {
|
|
32
|
+
start: Temporal.ZonedDateTime;
|
|
33
|
+
end: Temporal.ZonedDateTime;
|
|
34
|
+
segment: CalendarDraftSegment;
|
|
35
|
+
}): unknown;
|
|
29
36
|
}> & {
|
|
30
37
|
event?(props: {
|
|
31
38
|
event: CalendarEvent<TMeta>;
|
|
@@ -40,6 +47,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
40
47
|
isToday: boolean;
|
|
41
48
|
isWeekend: boolean;
|
|
42
49
|
}): unknown;
|
|
50
|
+
/** The host's draft (`builder.draft`), drawn yourself — one call per day it covers. */
|
|
51
|
+
draft?(props: {
|
|
52
|
+
start: Temporal.ZonedDateTime;
|
|
53
|
+
end: Temporal.ZonedDateTime;
|
|
54
|
+
segment: CalendarDraftSegment;
|
|
55
|
+
}): unknown;
|
|
43
56
|
};
|
|
44
57
|
emit: {};
|
|
45
58
|
}>) => import('vue').VNode & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarWorkWeekView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarWorkWeekView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarWorkWeekView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CoarWorkWeekView.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;yBAE7C,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,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;SAAE,GAAG,OAAO;4BACnE;YAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;YAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;0BACrE;YAAE,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;YAAC,OAAO,EAAE,OAAO,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,GAAG,OAAO;QAC9F,uFAAuF;sBACzE;YACZ,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC9B,GAAG,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC5B,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;UAiIN,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArJzE,wBAqJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -4,6 +4,12 @@ interface Props {
|
|
|
4
4
|
/** `dateKey(day)` precomputed by the parent. Surface as `data-day-key`. */
|
|
5
5
|
dayKey: string;
|
|
6
6
|
isToday?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The host's selected day (`builder.selectedDate`): a filled circle
|
|
9
|
+
* around the day number, the iOS selection decoration. Today keeps
|
|
10
|
+
* its accent number on top of it.
|
|
11
|
+
*/
|
|
12
|
+
selected?: boolean;
|
|
7
13
|
isOtherMonth?: boolean;
|
|
8
14
|
isWeekend?: boolean;
|
|
9
15
|
/** Blank leading/trailing cell in a continuous month section. */
|
|
@@ -69,6 +75,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
69
75
|
placeholder: boolean;
|
|
70
76
|
isToday: boolean;
|
|
71
77
|
isWeekend: boolean;
|
|
78
|
+
selected: boolean;
|
|
72
79
|
isOtherMonth: boolean;
|
|
73
80
|
overflowCount: number;
|
|
74
81
|
overflowLabel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarMonthCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthCell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarMonthCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/month/CoarMonthCell.vue"],"names":[],"mappings":"AA6SA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,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;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;IACjD;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;CACnB;AAkED,iBAAS,cAAc;WAkFT,OAAO,IAA6B;;QAlHhD;;;WAGG;mBACQ,OAAO;;QAJlB;;;WAGG;mBACQ,OAAO;;;;EAmHnB;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;aAjLT,aAAa,GAAG,SAAS,GAAG,UAAU;iBAnBlC,OAAO;aAVX,OAAO;eAQL,OAAO;cAFR,OAAO;kBACH,OAAO;mBAcN,MAAM;mBAKN,MAAM;iBAER,OAAO;wFA2LrB,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,16 @@
|
|
|
1
|
+
import { ResolvedBand } from '../../../composables/useTimeGridOverlays';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bands: ReadonlyArray<ResolvedBand>;
|
|
4
|
+
layer: 'below' | 'above';
|
|
5
|
+
orientation: 'vertical' | 'horizontal';
|
|
6
|
+
/** Pixel offset along the time axis of a minute of the day. */
|
|
7
|
+
toPx: (minuteOfDay: number) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Horizontal grid: length of the time axis. A line closer than
|
|
10
|
+
* `LABEL_FLIP_PX` to its end puts its label on the left, inside.
|
|
11
|
+
*/
|
|
12
|
+
extentPx?: number;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=CoarCalendarBands.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarCalendarBands.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarCalendarBands.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAE7E,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACnC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,WAAW,EAAE,UAAU,GAAG,YAAY,CAAC;IACvC,+DAA+D;IAC/D,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;AAgHF,wBAMG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TimeAxisMark } from '../../../composables/useTimeGridOverlays';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
orientation: 'vertical' | 'horizontal';
|
|
4
|
+
mark: TimeAxisMark;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=CoarTimeAxisMarker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeAxisMarker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeAxisMarker.vue"],"names":[],"mappings":"AAyKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAE7E,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,UAAU,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;;AAmHF,wBAOG"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<CoarTimeGridNowMarker>` — internal "current time" indicator
|
|
3
|
-
* for the time-grid's today column
|
|
3
|
+
* for the time-grid's today column (vertical grid) or today's row
|
|
4
|
+
* (horizontal grid).
|
|
4
5
|
*
|
|
5
|
-
* Thin
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* pixel offset.
|
|
6
|
+
* Thin line + dot; pure visual, no events. The parent decides
|
|
7
|
+
* whether to render it (only for today, when the current time is in
|
|
8
|
+
* the visible range) and feeds the pixel offset along the time axis.
|
|
9
9
|
*
|
|
10
10
|
* Lives in `internal/` — NOT exported from the package barrel.
|
|
11
11
|
*/
|
|
12
12
|
interface Props {
|
|
13
|
-
/**
|
|
14
|
-
topPx
|
|
13
|
+
/** Vertical grid: pixel offset from the column's top edge. */
|
|
14
|
+
topPx?: number;
|
|
15
|
+
/** Horizontal grid: pixel offset from the row's left edge. */
|
|
16
|
+
leftPx?: number;
|
|
17
|
+
orientation?: 'vertical' | 'horizontal';
|
|
15
18
|
}
|
|
16
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
|
+
topPx: number;
|
|
21
|
+
leftPx: number;
|
|
22
|
+
orientation: "vertical" | "horizontal";
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
24
|
export default _default;
|
|
18
25
|
//# sourceMappingURL=CoarTimeGridNowMarker.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarTimeGridNowMarker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridNowMarker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarTimeGridNowMarker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridNowMarker.vue"],"names":[],"mappings":"AAwEA;;;;;;;;;;GAUG;AAEH,UAAU,KAAK;IACb,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC;;WAJS,MAAM;YAEL,MAAM;iBACD,UAAU,GAAG,YAAY;;AA6DzC,wBAQG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Temporal, AllDayBar, CalendarEvent, PositionedEvent, TimeGridView } from '../../../core';
|
|
2
2
|
import { CalendarBuilder } from '../../../builders/calendar-builder';
|
|
3
|
+
import { CalendarDraftSegment } from '../../../builders/types';
|
|
3
4
|
declare const _default: <TMeta extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
5
6
|
builder: CalendarBuilder<TMeta>;
|
|
@@ -27,6 +28,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
27
28
|
isToday: boolean;
|
|
28
29
|
isWeekend: boolean;
|
|
29
30
|
}): unknown;
|
|
31
|
+
/** The host's draft (`builder.draft`), drawn yourself — one call per day it covers. */
|
|
32
|
+
draft?(props: {
|
|
33
|
+
start: Temporal.ZonedDateTime;
|
|
34
|
+
end: Temporal.ZonedDateTime;
|
|
35
|
+
segment: CalendarDraftSegment;
|
|
36
|
+
}): unknown;
|
|
30
37
|
}> & {
|
|
31
38
|
event?(props: {
|
|
32
39
|
event: CalendarEvent<TMeta>;
|
|
@@ -41,6 +48,12 @@ declare const _default: <TMeta extends Record<string, unknown> = Record<string,
|
|
|
41
48
|
isToday: boolean;
|
|
42
49
|
isWeekend: boolean;
|
|
43
50
|
}): unknown;
|
|
51
|
+
/** The host's draft (`builder.draft`), drawn yourself — one call per day it covers. */
|
|
52
|
+
draft?(props: {
|
|
53
|
+
start: Temporal.ZonedDateTime;
|
|
54
|
+
end: Temporal.ZonedDateTime;
|
|
55
|
+
segment: CalendarDraftSegment;
|
|
56
|
+
}): unknown;
|
|
44
57
|
};
|
|
45
58
|
emit: {};
|
|
46
59
|
}>) => import('vue').VNode & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarTimeGridSurface.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridSurface.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarTimeGridSurface.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeGridSurface.vue"],"names":[],"mappings":"AA4WA,OAAO,EACL,QAAQ,EAKR,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EAEpB,KAAK,YAAY,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;yBAKnD,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mB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AC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;0BACrE;YAAE,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;YAAC,OAAO,EAAE,OAAO,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,GAAG,OAAO;QAC9F,uFAAuF;sBACzE;YACZ,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC9B,GAAG,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC5B,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;UA+eN,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAngBzE,wBAmgB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CalendarDraftSegment } from '../../../builders/types';
|
|
2
|
+
import { DaySelection } from '../../../composables/useTimeSelection';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
orientation: 'vertical' | 'horizontal';
|
|
5
|
+
/** Pixel offset along the time axis of a minute of the day. */
|
|
6
|
+
toPx: (minuteOfDay: number) => number;
|
|
7
|
+
selection: DaySelection | null;
|
|
8
|
+
draft: CalendarDraftSegment | null;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: Readonly<{
|
|
13
|
+
draft?(props: {
|
|
14
|
+
start: CalendarDraftSegment["start"];
|
|
15
|
+
end: CalendarDraftSegment["end"];
|
|
16
|
+
segment: CalendarDraftSegment;
|
|
17
|
+
}): unknown;
|
|
18
|
+
}> & {
|
|
19
|
+
draft?(props: {
|
|
20
|
+
start: CalendarDraftSegment["start"];
|
|
21
|
+
end: CalendarDraftSegment["end"];
|
|
22
|
+
segment: CalendarDraftSegment;
|
|
23
|
+
}): unknown;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: any;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=CoarTimeSelectionLayer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeSelectionLayer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-grid/CoarTimeSelectionLayer.vue"],"names":[],"mappings":"AAsJA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAE1E,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,UAAU,GAAG,YAAY,CAAC;IACvC,+DAA+D;IAC/D,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,SAAS,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpC,CAAC;AAqBF,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;sBA5ElC;YACZ,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;YACrC,GAAG,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;YACjC,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;sBAJG;YACZ,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;YACrC,GAAG,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;YACjC,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;;;EA6EZ;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,67 @@
|
|
|
1
|
+
import { Temporal, AllDayBar, CalendarEvent, PositionedEvent } from '../../../core';
|
|
2
|
+
import { CalendarBuilder } from '../../../builders/calendar-builder';
|
|
3
|
+
import { CalendarDraftSegment } from '../../../builders/types';
|
|
4
|
+
declare const _default: <TMeta extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
6
|
+
builder: CalendarBuilder<TMeta>;
|
|
7
|
+
/** One date per row, top to bottom. */
|
|
8
|
+
dates: ReadonlyArray<Temporal.PlainDate>;
|
|
9
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
11
|
+
/** Row layout — useful for tests. */
|
|
12
|
+
getLayout: () => import('../../../core/timeRowsLayout').TimeRowsLayout<TMeta>;
|
|
13
|
+
scrollToTime: (time: Temporal.PlainTime) => void;
|
|
14
|
+
}>): void;
|
|
15
|
+
attrs: any;
|
|
16
|
+
slots: Readonly<{
|
|
17
|
+
event?(props: {
|
|
18
|
+
event: CalendarEvent<TMeta>;
|
|
19
|
+
layout: PositionedEvent<TMeta>;
|
|
20
|
+
}): unknown;
|
|
21
|
+
/** Not used by the horizontal grid: all-day events render as chips. */
|
|
22
|
+
allDayEvent?(props: {
|
|
23
|
+
event: CalendarEvent<TMeta>;
|
|
24
|
+
layout: AllDayBar<TMeta>;
|
|
25
|
+
}): unknown;
|
|
26
|
+
dayHeader?(props: {
|
|
27
|
+
date: Temporal.PlainDate;
|
|
28
|
+
isToday: boolean;
|
|
29
|
+
isWeekend: boolean;
|
|
30
|
+
}): unknown;
|
|
31
|
+
/** Custom drawing of the host's draft (`builder.draft`), one call per day it covers. */
|
|
32
|
+
draft?(props: {
|
|
33
|
+
start: Temporal.ZonedDateTime;
|
|
34
|
+
end: Temporal.ZonedDateTime;
|
|
35
|
+
segment: CalendarDraftSegment;
|
|
36
|
+
}): unknown;
|
|
37
|
+
}> & {
|
|
38
|
+
event?(props: {
|
|
39
|
+
event: CalendarEvent<TMeta>;
|
|
40
|
+
layout: PositionedEvent<TMeta>;
|
|
41
|
+
}): unknown;
|
|
42
|
+
/** Not used by the horizontal grid: all-day events render as chips. */
|
|
43
|
+
allDayEvent?(props: {
|
|
44
|
+
event: CalendarEvent<TMeta>;
|
|
45
|
+
layout: AllDayBar<TMeta>;
|
|
46
|
+
}): unknown;
|
|
47
|
+
dayHeader?(props: {
|
|
48
|
+
date: Temporal.PlainDate;
|
|
49
|
+
isToday: boolean;
|
|
50
|
+
isWeekend: boolean;
|
|
51
|
+
}): unknown;
|
|
52
|
+
/** Custom drawing of the host's draft (`builder.draft`), one call per day it covers. */
|
|
53
|
+
draft?(props: {
|
|
54
|
+
start: Temporal.ZonedDateTime;
|
|
55
|
+
end: Temporal.ZonedDateTime;
|
|
56
|
+
segment: CalendarDraftSegment;
|
|
57
|
+
}): unknown;
|
|
58
|
+
};
|
|
59
|
+
emit: {};
|
|
60
|
+
}>) => import('vue').VNode & {
|
|
61
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_PrettifyLocal<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
67
|
+
//# sourceMappingURL=CoarTimeRows.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeRows.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-rows/CoarTimeRows.vue"],"names":[],"mappings":"AA07BA,OAAO,EACL,QAAQ,EAER,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAUrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;yBAEnD,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ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AAwF;sBAC1E;YACZ,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC9B,GAAG,EAAE,QAAQ,CAAC,aAAa,CAAC;YAC5B,OAAO,EAAE,oBAAoB,CAAC;SAC/B,GAAG,OAAO;;UAq/BN,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA9gCzE,wBA8gC4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CalendarEvent, PositionedEvent } from '../../../core';
|
|
2
|
+
declare const _default: <TMeta extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly onDblclick?: ((native: MouseEvent) => any) | undefined;
|
|
5
|
+
readonly onKeydown?: ((native: KeyboardEvent) => any) | undefined;
|
|
6
|
+
readonly onPointerdown?: ((native: PointerEvent) => any) | undefined;
|
|
7
|
+
readonly onStartResize?: ((native: PointerEvent) => any) | undefined;
|
|
8
|
+
readonly onEndResize?: ((native: PointerEvent) => any) | undefined;
|
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onDblclick" | "onKeydown" | "onPointerdown" | "onStartResize" | "onEndResize"> & {
|
|
10
|
+
event: CalendarEvent<TMeta>;
|
|
11
|
+
positioned: PositionedEvent<TMeta>;
|
|
12
|
+
variant?: "live" | "preview" | "phantom" | "invalid";
|
|
13
|
+
bg: string;
|
|
14
|
+
ink?: string;
|
|
15
|
+
border: string;
|
|
16
|
+
title: string;
|
|
17
|
+
/** Localised "start – end"; shown when `showTime`. */
|
|
18
|
+
timeLabel?: string;
|
|
19
|
+
showTime?: boolean;
|
|
20
|
+
displayZone?: string;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
snappingBack?: boolean;
|
|
23
|
+
density?: "comfortable" | "compact" | "spacious";
|
|
24
|
+
/** Pixel offset from the row's left edge (time axis). */
|
|
25
|
+
left: number;
|
|
26
|
+
/** Pixel width (duration). */
|
|
27
|
+
width: number;
|
|
28
|
+
/** Pixel offset from the row's top edge (lane). */
|
|
29
|
+
top: number;
|
|
30
|
+
/** Pixel height (one lane). */
|
|
31
|
+
height: number;
|
|
32
|
+
zIndex: number;
|
|
33
|
+
/** Starts before the visible range / before midnight. */
|
|
34
|
+
clippedStart?: boolean;
|
|
35
|
+
/** Ends after the visible range / after midnight. */
|
|
36
|
+
clippedEnd?: boolean;
|
|
37
|
+
/** The preview driven by an in-flight keyboard drag stays focusable. */
|
|
38
|
+
kbdActive?: boolean;
|
|
39
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
40
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
|
+
attrs: any;
|
|
42
|
+
slots: Readonly<{
|
|
43
|
+
default(props: {
|
|
44
|
+
event: CalendarEvent<TMeta>;
|
|
45
|
+
positioned: PositionedEvent<TMeta>;
|
|
46
|
+
}): unknown;
|
|
47
|
+
}> & {
|
|
48
|
+
default(props: {
|
|
49
|
+
event: CalendarEvent<TMeta>;
|
|
50
|
+
positioned: PositionedEvent<TMeta>;
|
|
51
|
+
}): unknown;
|
|
52
|
+
};
|
|
53
|
+
emit: ((evt: "dblclick", native: MouseEvent) => void) & ((evt: "keydown", native: KeyboardEvent) => void) & ((evt: "pointerdown", native: PointerEvent) => void) & ((evt: "startResize", native: PointerEvent) => void) & ((evt: "endResize", native: PointerEvent) => void);
|
|
54
|
+
}>) => import('vue').VNode & {
|
|
55
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_PrettifyLocal<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
61
|
+
//# sourceMappingURL=CoarTimeRowsEvent.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTimeRowsEvent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/internal/time-rows/CoarTimeRowsEvent.vue"],"names":[],"mappings":"AAgVA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;yBAKnD,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/E,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuRO,mBAAmB,CAAC;;;;;;;eArRjB,aAAa,CAAC,KAAK,CAAC;oBACf,eAAe,CAAC,KAAK,CAAC;kBACxB,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS;YAChD,MAAM;cACJ,MAAM;gBACJ,MAAM;eACP,MAAM;QACb,sDAAsD;oBAC1C,MAAM;mBACP,OAAO;sBACJ,MAAM;oBACR,MAAM;uBACH,OAAO;kBACZ,aAAa,GAAG,SAAS,GAAG,UAAU;QAChD,yDAAyD;cACnD,MAAM;QACZ,8BAA8B;eACvB,MAAM;QACb,mDAAmD;aAC9C,MAAM;QACX,+BAA+B;gBACvB,MAAM;gBACN,MAAM;QACd,yDAAyD;uBAC1C,OAAO;QACtB,qDAAqD;qBACxC,OAAO;QACpB,wEAAwE;oBAC5D,OAAO;mBAyPuE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA9NM;YAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;YAAC,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;;uBAA7E;YAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;YAAC,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;SAAE,GAAG,OAAO;;;EAkO1F,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlSzE,wBAkS4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tap gating for the click hooks (`onDateClick`, `onTimeClick`, and
|
|
3
|
+
* `onEventClick` on list rows; draggable events use `afterFollowingClick`
|
|
4
|
+
* from the drag runtime's release).
|
|
5
|
+
*
|
|
6
|
+
* Those hooks are wired on `pointerdown` so a mouse press reacts at
|
|
7
|
+
* once. On a touch screen, though, every scroll also begins with a
|
|
8
|
+
* finger going down on a cell — firing there opens the day under the
|
|
9
|
+
* finger before the user even moved. So for touch and pen the action
|
|
10
|
+
* waits for a TAP:
|
|
11
|
+
*
|
|
12
|
+
* - the pointer lifts within `TAP_SLOP_PX` of where it went down,
|
|
13
|
+
* - the browser did not take the touch for scrolling (`pointercancel`),
|
|
14
|
+
* - and the `click` that follows the lift has been dispatched.
|
|
15
|
+
*
|
|
16
|
+
* The last point matters: the browser sends that `click` 50–150 ms
|
|
17
|
+
* after the lift. Acting on `pointerup` lets an overlay the handler
|
|
18
|
+
* opens (a sheet with a backdrop) receive that click and close at once.
|
|
19
|
+
* So the action runs in a task after the click; some WebViews leave the
|
|
20
|
+
* click out, hence the `CLICK_WAIT_MS` fallback.
|
|
21
|
+
*/
|
|
22
|
+
/** Travel (px, either axis) below which a release still counts as a tap. */
|
|
23
|
+
export declare const TAP_SLOP_PX = 10;
|
|
24
|
+
/** How long to wait for the click after the lift before acting anyway. */
|
|
25
|
+
export declare const CLICK_WAIT_MS = 350;
|
|
26
|
+
/**
|
|
27
|
+
* Run `action` once the `click` that follows a touch lift has passed
|
|
28
|
+
* (or after `CLICK_WAIT_MS` when no click comes). Call it from the
|
|
29
|
+
* `pointerup` of a tap.
|
|
30
|
+
*/
|
|
31
|
+
export declare function afterFollowingClick(action: () => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* Route a surface `pointerdown` to `action`: at once for a mouse,
|
|
34
|
+
* after a tap (see above) for touch and pen. The mouse path keeps its
|
|
35
|
+
* existing semantics unchanged.
|
|
36
|
+
*/
|
|
37
|
+
export declare function onSurfacePointerdown(e: PointerEvent, action: () => void): void;
|
|
38
|
+
//# sourceMappingURL=surfaceTap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surfaceTap.d.ts","sourceRoot":"","sources":["../../src/composables/surfaceTap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,4EAA4E;AAC5E,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,0EAA0E;AAC1E,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI,CAmB5D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI,CA+B9E"}
|
|
@@ -3,6 +3,14 @@ import { Temporal, CalendarEvent } from '../core';
|
|
|
3
3
|
import { CalendarDragMode, CalendarDropTarget, DstPolicy, EventDropPayload } from '../core/dnd/move-math';
|
|
4
4
|
export type { DstPolicy, DstDisambiguation } from '../core/dnd/move-math';
|
|
5
5
|
export { buildDropPayload } from '../core/dnd/move-math';
|
|
6
|
+
/**
|
|
7
|
+
* Day columns between the one the pointer is in and the one the grabbed
|
|
8
|
+
* card starts in. Counted in grid columns, not from the card's left edge:
|
|
9
|
+
* a timed month bar is inset into its first day, so measuring from its edge
|
|
10
|
+
* would put a grab just past the next day's border at offset 0 and move the
|
|
11
|
+
* event's start onto that day.
|
|
12
|
+
*/
|
|
13
|
+
export declare function monthGrabOffsetDays(pointerX: number, cardLeft: number, gridLeft: number, cellWidth: number): number;
|
|
6
14
|
/**
|
|
7
15
|
* Re-export of the canonical `CalendarDropTarget` from
|
|
8
16
|
* `core/dnd/move-math`. Comment kept here for the existing
|
|
@@ -16,6 +24,47 @@ export { buildDropPayload } from '../core/dnd/move-math';
|
|
|
16
24
|
* pointer is.
|
|
17
25
|
*/
|
|
18
26
|
export type { CalendarDropTarget };
|
|
27
|
+
/** Where a client point falls on a time grid, before snapping. */
|
|
28
|
+
export interface TimedAxisLocation {
|
|
29
|
+
day: Temporal.PlainDate;
|
|
30
|
+
/** Minutes from the start of the time range (unsnapped, ≥ 0). */
|
|
31
|
+
minutesFromGridStart: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Time-axis strategy for timed drags (see `UseCalendarDndOptions.timedAxis`).
|
|
35
|
+
* The default — no adapter — is the vertical grid.
|
|
36
|
+
*/
|
|
37
|
+
export interface TimedAxisAdapter {
|
|
38
|
+
/** `'horizontal'`: time runs along x (grab offset from the card's left edge, `ew-resize`). */
|
|
39
|
+
orientation: 'vertical' | 'horizontal';
|
|
40
|
+
/** Day and minutes under a client point, or `null` off the grid. */
|
|
41
|
+
locate(clientX: number, clientY: number): TimedAxisLocation | null;
|
|
42
|
+
/** Pixels per minute along the time axis, as rendered. */
|
|
43
|
+
pixelsPerMinute(): number;
|
|
44
|
+
/**
|
|
45
|
+
* Minutes from the start of the time range at a client point, read
|
|
46
|
+
* along the time axis only (the other coordinate is ignored), not
|
|
47
|
+
* clamped. Lets a gesture keep its day while the pointer drifts
|
|
48
|
+
* across the day axis (time-range selection).
|
|
49
|
+
*/
|
|
50
|
+
minutesAt?(clientX: number, clientY: number): number;
|
|
51
|
+
}
|
|
52
|
+
export interface VerticalTimedAxisOptions {
|
|
53
|
+
/** The day-columns container (`.coar-time-grid__columns`). */
|
|
54
|
+
columnsRef?: Ref<HTMLElement | null>;
|
|
55
|
+
/** One date per column, left to right. */
|
|
56
|
+
days?: ComputedRef<ReadonlyArray<Temporal.PlainDate>> | Ref<ReadonlyArray<Temporal.PlainDate>>;
|
|
57
|
+
pixelsPerHour?: ComputedRef<number> | Ref<number>;
|
|
58
|
+
/** Render buffer (minutes) above the first hour of the columns. */
|
|
59
|
+
topBufferMinutes?: ComputedRef<number> | Ref<number>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The vertical time grid's axis (days as columns): x picks the day
|
|
63
|
+
* column, y the minutes below the render buffer. The default hit-test
|
|
64
|
+
* of `useCalendarDnd`; `<CoarTimeGrid>` shares one instance between
|
|
65
|
+
* drag & drop and time-range selection.
|
|
66
|
+
*/
|
|
67
|
+
export declare function createVerticalTimedAxis(opts: VerticalTimedAxisOptions): TimedAxisAdapter;
|
|
19
68
|
export interface UseCalendarDndOptions<TMeta extends Record<string, unknown> = Record<string, unknown>> {
|
|
20
69
|
/** Scrollable surface element (for auto-scroll). */
|
|
21
70
|
surfaceRef: Ref<HTMLElement | null>;
|
|
@@ -84,6 +133,15 @@ export interface UseCalendarDndOptions<TMeta extends Record<string, unknown> = R
|
|
|
84
133
|
* `RENDER_BUFFER_MINUTES` the time-grid uses.
|
|
85
134
|
*/
|
|
86
135
|
timeGridTopBufferMinutes?: ComputedRef<number> | Ref<number>;
|
|
136
|
+
/**
|
|
137
|
+
* Hit-test for timed drags along a time axis other than the default
|
|
138
|
+
* vertical one. Without it, `columnsRef` is the frame: x picks the
|
|
139
|
+
* day column, y the minutes. The horizontal time grid (days as rows)
|
|
140
|
+
* passes its own: y picks the row, x the minutes. Snapping to
|
|
141
|
+
* `slotDuration`, the grab offset and the `timeRange` clamp stay
|
|
142
|
+
* shared.
|
|
143
|
+
*/
|
|
144
|
+
timedAxis?: TimedAxisAdapter;
|
|
87
145
|
/**
|
|
88
146
|
* Pointer-distance threshold (px) below which a pointerup is
|
|
89
147
|
* treated as a click instead of a drop. Default 5. Forwarded to
|