@calends/vue 0.0.0-stage → 0.0.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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -2
  3. package/dist/CalendarHeading.vue.d.ts +18 -0
  4. package/dist/CalendarNav.vue.d.ts +19 -0
  5. package/dist/CalendarRoot.vue.d.ts +63 -0
  6. package/dist/EventBar.vue.d.ts +34 -0
  7. package/dist/EventResizeHandle.vue.d.ts +23 -0
  8. package/dist/Gantt.vue.d.ts +21 -0
  9. package/dist/GanttBar.vue.d.ts +24 -0
  10. package/dist/GanttLinks.vue.d.ts +37 -0
  11. package/dist/GanttRow.vue.d.ts +23 -0
  12. package/dist/GanttToday.vue.d.ts +16 -0
  13. package/dist/GanttTrack.vue.d.ts +16 -0
  14. package/dist/MonthDay.vue.d.ts +25 -0
  15. package/dist/MonthDayMore.vue.d.ts +24 -0
  16. package/dist/MonthGrid.vue.d.ts +20 -0
  17. package/dist/MonthWeek.vue.d.ts +23 -0
  18. package/dist/MonthWeekday.vue.d.ts +22 -0
  19. package/dist/NowIndicator.vue.d.ts +21 -0
  20. package/dist/ResourceCell.vue.d.ts +29 -0
  21. package/dist/ResourceDayHeader.vue.d.ts +23 -0
  22. package/dist/ResourceGrid.vue.d.ts +20 -0
  23. package/dist/ResourceLabel.vue.d.ts +25 -0
  24. package/dist/ResourceRow.vue.d.ts +24 -0
  25. package/dist/TimeColumn.vue.d.ts +23 -0
  26. package/dist/TimeEvent.vue.d.ts +27 -0
  27. package/dist/TimeGrid.vue.d.ts +24 -0
  28. package/dist/TimeSelection.vue.d.ts +24 -0
  29. package/dist/Timeline.vue.d.ts +20 -0
  30. package/dist/TimelineEvent.vue.d.ts +27 -0
  31. package/dist/TimelineNow.vue.d.ts +16 -0
  32. package/dist/TimelineRow.vue.d.ts +24 -0
  33. package/dist/TimelineSelection.vue.d.ts +24 -0
  34. package/dist/TimelineTrack.vue.d.ts +21 -0
  35. package/dist/index.d.ts +35 -0
  36. package/dist/index.js +1757 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/useCalendar.d.ts +111 -0
  39. package/dist/useEventState.d.ts +26 -0
  40. package/dist/useInteractions.d.ts +112 -0
  41. package/package.json +51 -3
@@ -0,0 +1,23 @@
1
+ import type { ResourceDay } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ type __VLS_Props = PrimitiveProps & {
4
+ day: ResourceDay;
5
+ };
6
+ declare var __VLS_7: {
7
+ day: ResourceDay;
8
+ weekday: string;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_7) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ as: import("reka-ui").AsTag | import("vue").Component;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,20 @@
1
+ import { type PrimitiveProps } from 'reka-ui';
2
+ declare var __VLS_10: {
3
+ grid: import("@calends/core").ResourceGrid<import("@calends/core").CalendarEventInput, import("@calends/core").CalendarResource>;
4
+ days: import("@calends/core").ResourceDay[];
5
+ rows: import("@calends/core").ResourceRow<import("@calends/core").CalendarEventInput, import("@calends/core").CalendarResource>[];
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_10) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<PrimitiveProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {
11
+ as: import("reka-ui").AsTag | import("vue").Component;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,25 @@
1
+ import type { ResourceRow } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ type __VLS_Props = PrimitiveProps & {
4
+ row: ResourceRow<any, any>;
5
+ };
6
+ declare var __VLS_7: {
7
+ row: ResourceRow<any, any>;
8
+ resource: any;
9
+ busyDays: number;
10
+ overlapDays: number;
11
+ };
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_7) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ as: import("reka-ui").AsTag | import("vue").Component;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,24 @@
1
+ import type { ResourceRow } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ type __VLS_Props = PrimitiveProps & {
4
+ row: ResourceRow<any, any>;
5
+ };
6
+ declare var __VLS_7: {
7
+ row: ResourceRow<any, any>;
8
+ resource: any;
9
+ cells: import("@calends/core").ResourceCell<any>[];
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_7) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ as: import("reka-ui").AsTag | import("vue").Component;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,23 @@
1
+ import type { TimeGridDay } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ type __VLS_Props = PrimitiveProps & {
4
+ day: TimeGridDay<any>;
5
+ };
6
+ declare var __VLS_7: {
7
+ day: TimeGridDay<any>;
8
+ events: import("@calends/core").TimedEventLayout<any>[];
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_7) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ as: import("reka-ui").AsTag | import("vue").Component;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,27 @@
1
+ import type { TimedEventLayout } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ /**
4
+ * Exposes its placement as CSS variables in minutes and columns; with the grid's
5
+ * `--window-minutes`, the recipe turns those into `top`, `height`, `left`, and `width`.
6
+ */
7
+ type __VLS_Props = PrimitiveProps & {
8
+ layout: TimedEventLayout<any>;
9
+ };
10
+ declare var __VLS_14: {
11
+ event: import("@calends/core").CalendarEvent<any>;
12
+ layout: TimedEventLayout<any>;
13
+ };
14
+ type __VLS_Slots = {} & {
15
+ default?: (props: typeof __VLS_14) => any;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ as: import("reka-ui").AsTag | import("vue").Component;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,24 @@
1
+ import { type PrimitiveProps } from 'reka-ui';
2
+ declare var __VLS_9: {
3
+ grid: import("@calends/core").TimeGrid<import("@calends/core").CalendarEventInput>;
4
+ days: import("@calends/core").TimeGridDay<import("@calends/core").CalendarEventInput>[];
5
+ allDay: {
6
+ segments: import("@calends/core").EventSegment<import("@calends/core").CalendarEventInput>[];
7
+ laneCount: number;
8
+ };
9
+ hours: number[];
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_9) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<PrimitiveProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {
15
+ as: import("reka-ui").AsTag | import("vue").Component;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,24 @@
1
+ import type { TimeGridDay } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ /**
4
+ * The range being dragged out in one day's hours. Renders only in that day's column;
5
+ * exposes `--selection-start` and `--selection-end` in minutes from the top of the window.
6
+ */
7
+ type __VLS_Props = PrimitiveProps & {
8
+ day: TimeGridDay<any>;
9
+ };
10
+ declare var __VLS_7: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_7) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ as: import("reka-ui").AsTag | import("vue").Component;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,20 @@
1
+ import { type PrimitiveProps } from 'reka-ui';
2
+ declare var __VLS_9: {
3
+ timeline: import("@calends/core").Timeline<import("@calends/core").CalendarEventInput, import("@calends/core").CalendarResource>;
4
+ days: import("@calends/core").TimelineDay[];
5
+ rows: import("@calends/core").TimelineRow<import("@calends/core").CalendarEventInput, import("@calends/core").CalendarResource>[];
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_9) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<PrimitiveProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {
11
+ as: import("reka-ui").AsTag | import("vue").Component;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,27 @@
1
+ import type { ResourceId, TimelineItem } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ /** Exposes its placement as `--event-start`, `--event-end` (axis minutes), and `--event-lane`. */
4
+ type __VLS_Props = PrimitiveProps & {
5
+ item: TimelineItem<any>;
6
+ /** The row it's drawn in, so moving it can change resource. */
7
+ resourceId?: ResourceId | null;
8
+ };
9
+ declare var __VLS_14: {
10
+ event: import("@calends/core").CalendarEvent<any>;
11
+ item: TimelineItem<any>;
12
+ };
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_14) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ resourceId: ResourceId | null;
18
+ as: import("reka-ui").AsTag | import("vue").Component;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,16 @@
1
+ import { type PrimitiveProps } from 'reka-ui';
2
+ declare var __VLS_7: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_7) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<PrimitiveProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {
7
+ as: import("reka-ui").AsTag | import("vue").Component;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,24 @@
1
+ import type { TimelineRow } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ type __VLS_Props = PrimitiveProps & {
4
+ row: TimelineRow<any, any>;
5
+ };
6
+ declare var __VLS_7: {
7
+ row: TimelineRow<any, any>;
8
+ resource: any;
9
+ items: import("@calends/core").TimelineItem<any>[];
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_7) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ as: import("reka-ui").AsTag | import("vue").Component;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,24 @@
1
+ import { type TimelineRow } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ /**
4
+ * The range being dragged out along a row's hours. Renders only in that row; exposes
5
+ * `--selection-start` and `--selection-end` in axis minutes.
6
+ */
7
+ type __VLS_Props = PrimitiveProps & {
8
+ row: TimelineRow<any, any>;
9
+ };
10
+ declare var __VLS_7: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_7) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ as: import("reka-ui").AsTag | import("vue").Component;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,21 @@
1
+ import type { TimelineRow } from '@calends/core';
2
+ import { type PrimitiveProps } from 'reka-ui';
3
+ /** A row's time axis: events, selections, and drops are measured against its width. */
4
+ type __VLS_Props = PrimitiveProps & {
5
+ row: TimelineRow<any, any>;
6
+ };
7
+ declare var __VLS_7: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_7) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ as: import("reka-ui").AsTag | import("vue").Component;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,35 @@
1
+ export { default as CalendarHeading } from './CalendarHeading.vue.js';
2
+ export { default as CalendarNav } from './CalendarNav.vue.js';
3
+ export { default as CalendarRoot } from './CalendarRoot.vue.js';
4
+ export { default as MonthDay } from './MonthDay.vue.js';
5
+ export { default as MonthDayMore } from './MonthDayMore.vue.js';
6
+ export { default as EventBar, default as MonthEvent } from './EventBar.vue.js';
7
+ export { default as EventResizeHandle } from './EventResizeHandle.vue.js';
8
+ export { default as Gantt } from './Gantt.vue.js';
9
+ export { default as GanttBar } from './GanttBar.vue.js';
10
+ export { default as GanttLinks } from './GanttLinks.vue.js';
11
+ export { default as GanttRow } from './GanttRow.vue.js';
12
+ export { default as GanttToday } from './GanttToday.vue.js';
13
+ export { default as GanttTrack } from './GanttTrack.vue.js';
14
+ export { default as MonthGrid } from './MonthGrid.vue.js';
15
+ export { default as MonthWeek } from './MonthWeek.vue.js';
16
+ export { default as MonthWeekday } from './MonthWeekday.vue.js';
17
+ export { default as NowIndicator } from './NowIndicator.vue.js';
18
+ export { default as ResourceCell } from './ResourceCell.vue.js';
19
+ export { default as ResourceDayHeader } from './ResourceDayHeader.vue.js';
20
+ export { default as ResourceGrid } from './ResourceGrid.vue.js';
21
+ export { default as ResourceLabel } from './ResourceLabel.vue.js';
22
+ export { default as ResourceRow } from './ResourceRow.vue.js';
23
+ export { default as TimeColumn } from './TimeColumn.vue.js';
24
+ export { default as TimeEvent } from './TimeEvent.vue.js';
25
+ export { default as TimeGrid } from './TimeGrid.vue.js';
26
+ export { default as TimeSelection } from './TimeSelection.vue.js';
27
+ export { default as Timeline } from './Timeline.vue.js';
28
+ export { default as TimelineEvent } from './TimelineEvent.vue.js';
29
+ export { default as TimelineNow } from './TimelineNow.vue.js';
30
+ export { default as TimelineRow } from './TimelineRow.vue.js';
31
+ export { default as TimelineSelection } from './TimelineSelection.vue.js';
32
+ export { default as TimelineTrack } from './TimelineTrack.vue.js';
33
+ export * from './useCalendar.js';
34
+ export * from './useEventState.js';
35
+ export * from './useInteractions.js';