@cocoar/vue-calendar 3.1.0 → 3.2.0-beta.11
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 +35 -8
- package/dist/builders/calendar-builder-config.d.ts +181 -0
- package/dist/builders/calendar-builder-config.d.ts.map +1 -0
- package/dist/builders/calendar-builder-handlers.d.ts +50 -0
- package/dist/builders/calendar-builder-handlers.d.ts.map +1 -0
- package/dist/builders/calendar-builder-internals.d.ts +18 -2
- package/dist/builders/calendar-builder-internals.d.ts.map +1 -1
- package/dist/builders/calendar-builder-state.d.ts +234 -0
- package/dist/builders/calendar-builder-state.d.ts.map +1 -0
- package/dist/builders/calendar-builder.d.ts +41 -452
- package/dist/builders/calendar-builder.d.ts.map +1 -1
- package/dist/builders/internal/event-validation.d.ts +13 -0
- package/dist/builders/internal/event-validation.d.ts.map +1 -0
- package/dist/builders/internal/events-for-window.d.ts +6 -0
- package/dist/builders/internal/events-for-window.d.ts.map +1 -0
- package/dist/builders/internal/loader-pipeline.d.ts +50 -0
- package/dist/builders/internal/loader-pipeline.d.ts.map +1 -0
- package/dist/builders/internal/loading-tracker.d.ts +12 -0
- package/dist/builders/internal/loading-tracker.d.ts.map +1 -0
- package/dist/builders/internal/navigation.d.ts +28 -0
- package/dist/builders/internal/navigation.d.ts.map +1 -0
- package/dist/builders/internal/range-label.d.ts +7 -0
- package/dist/builders/internal/range-label.d.ts.map +1 -0
- package/dist/builders/internal/series-pipeline.d.ts +67 -0
- package/dist/builders/internal/series-pipeline.d.ts.map +1 -0
- package/dist/builders/internal/window-utils.d.ts +44 -0
- package/dist/builders/internal/window-utils.d.ts.map +1 -0
- package/dist/builders/types.d.ts +30 -3
- package/dist/builders/types.d.ts.map +1 -1
- package/dist/components/CoarAgendaView.vue.d.ts +35 -0
- package/dist/components/CoarAgendaView.vue.d.ts.map +1 -1
- package/dist/components/CoarCalendar.vue.d.ts +46 -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 +16 -2
- 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 +33 -7
- package/dist/components/CoarTimeGrid.vue.d.ts.map +1 -1
- package/dist/components/CoarTimelineView.vue.d.ts.map +1 -1
- package/dist/components/CoarWeekView.vue.d.ts.map +1 -1
- package/dist/components/CoarWorkWeekView.vue.d.ts +1 -2
- package/dist/components/CoarWorkWeekView.vue.d.ts.map +1 -1
- package/dist/components/CoarYearView.vue.d.ts.map +1 -1
- package/dist/components/VirtualizedSurface1DY.vue.d.ts.map +1 -1
- package/dist/components/internal/CoarEventDecorations.vue.d.ts.map +1 -1
- package/dist/components/internal/agenda/agendaTimeLabel.d.ts +4 -0
- package/dist/components/internal/agenda/agendaTimeLabel.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthBar.vue.d.ts +2 -0
- package/dist/components/internal/month/CoarMonthBar.vue.d.ts.map +1 -1
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts +20 -13
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts.map +1 -1
- package/dist/components/internal/month/CoarMonthDayOverlay.vue.d.ts +51 -0
- package/dist/components/internal/month/CoarMonthDayOverlay.vue.d.ts.map +1 -0
- package/dist/components/internal/month/CoarMonthPill.vue.d.ts +2 -0
- package/dist/components/internal/month/CoarMonthPill.vue.d.ts.map +1 -1
- package/dist/components/internal/month/CoarMonthRow.vue.d.ts +4 -4
- package/dist/components/internal/month/CoarMonthRow.vue.d.ts.map +1 -1
- package/dist/components/internal/originatesFromEvent.d.ts +18 -0
- package/dist/components/internal/originatesFromEvent.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridAllDayBand.vue.d.ts +15 -1
- package/dist/components/internal/time-grid/CoarTimeGridAllDayBand.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridAllDayBar.vue.d.ts +2 -0
- package/dist/components/internal/time-grid/CoarTimeGridAllDayBar.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridAllDayOverflow.vue.d.ts +27 -0
- package/dist/components/internal/time-grid/CoarTimeGridAllDayOverflow.vue.d.ts.map +1 -0
- package/dist/components/internal/time-grid/CoarTimeGridColumn.vue.d.ts +2 -0
- package/dist/components/internal/time-grid/CoarTimeGridColumn.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridEvent.vue.d.ts +12 -1
- package/dist/components/internal/time-grid/CoarTimeGridEvent.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridHeader.vue.d.ts +12 -1
- package/dist/components/internal/time-grid/CoarTimeGridHeader.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridSurface.vue.d.ts +53 -0
- package/dist/components/internal/time-grid/CoarTimeGridSurface.vue.d.ts.map +1 -0
- package/dist/composables/useMonthDayOverlay.d.ts +34 -0
- package/dist/composables/useMonthDayOverlay.d.ts.map +1 -0
- package/dist/composables/useMonthGeometry.d.ts +39 -0
- package/dist/composables/useMonthGeometry.d.ts.map +1 -0
- package/dist/composables/useMonthMetrics.d.ts +32 -0
- package/dist/composables/useMonthMetrics.d.ts.map +1 -0
- package/dist/composables/useTimeGridSwipe.d.ts +47 -0
- package/dist/composables/useTimeGridSwipe.d.ts.map +1 -0
- package/dist/composables/useViewWindow.d.ts +4 -2
- package/dist/composables/useViewWindow.d.ts.map +1 -1
- package/dist/core/allDayBandCap.d.ts +41 -0
- package/dist/core/allDayBandCap.d.ts.map +1 -0
- package/dist/core/eventTextContrast.d.ts +53 -2
- package/dist/core/eventTextContrast.d.ts.map +1 -1
- package/dist/core/index.d.ts +6 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/monthGridLayout.d.ts +43 -1
- package/dist/core/monthGridLayout.d.ts.map +1 -1
- package/dist/core/rangeLabel.d.ts +14 -0
- package/dist/core/rangeLabel.d.ts.map +1 -0
- package/dist/core/timeGridRange.d.ts +50 -0
- package/dist/core/timeGridRange.d.ts.map +1 -0
- package/dist/core/timedCardAnatomy.d.ts +47 -0
- package/dist/core/timedCardAnatomy.d.ts.map +1 -0
- package/dist/core/viewWindow.d.ts +17 -4
- package/dist/core/viewWindow.d.ts.map +1 -1
- package/dist/{core-CiKX2hZM.js → core-DNwsMOSU.js} +329 -80
- package/dist/core.js +2 -2
- package/dist/i18n/messages.d.ts +16 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2927 -1873
- package/dist/vue-calendar.css +1 -1
- package/package.json +4 -3
- package/dist/composables/useMonthExpansion.d.ts +0 -37
- package/dist/composables/useMonthExpansion.d.ts.map +0 -1
package/dist/core.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./move-math-BFP9Tfuo.js";
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as O, U as k, V as A, W as j, X as M, Y as N, Z as P, _ as F, a as I, at as L, b as R, c as z, d as B, et as V, f as H, g as U, h as W, i as G, it as K, j as q, k as J, l as Y, m as X, n as Z, nt as Q, o as $, ot as ee, p as te, q as ne, r as re, rt as ie, s as ae, t as oe, tt as se, u as ce, v as le, w as ue, x as de, y as fe, z as pe } from "./core-DNwsMOSU.js";
|
|
3
|
+
export { D as DEFAULT_ALL_DAY_MAX_VISIBLE_LANES, O as DEFAULT_TIMED_EVENT_DETAIL_MIN_WIDTH, J as DEFAULT_WORK_DAYS, s as DstResolutionError, r as MIN_RESIZE_MINUTES, Y as MONTH_COMPACT_VISIBLE_PILLS, ce as MONTH_DEFAULT_MAX_VISIBLE_LANES, B as MONTH_STACKED_VISIBLE_PILLS, $ as MeasurementCache, m as TIME_GRID_PRESETS, u as Temporal, d as allDayBandLanes, a as applyMoveToEvent, z as buildAgendaItems, n as buildDropPayload, A as buildFormatOptions, ue as capAllDayBand, H as capMonthCellPills, te as capMonthRowLanes, re as computeAnchorAdjustment, oe as computeAutoScrollVelocity, l as computeViewWindow, de as contentAwareCascadeFrames, g as dateKey, q as daysInWindow, k as detectBrowserTimezone, e as detectDstSituation, j as detectFirstDayOfWeekFromLocale, h as detectHour12FromLocale, y as endOfMonth, ne as endOfWeek, fe as eventInkColor, v as eventStartDateInZone, R as eventTextColor, f as formatRangeLabel, N as formatScheduledTime, G as getVisibleRange1D, I as getVisibleRange2D, Z as hitTestVerticalSurface, i as isAllDayEvent, o as isTimedEvent, M as isoWeekNumber, U as layoutAllDayBand, F as layoutDayEvents, X as layoutMonthGrid, le as layoutOverlappingIntervals, ae as layoutTimeline, P as localizedWeekdayNames, W as monthCellPillLimit, T as monthGridDates, x as navigateCursor, c as nowInZone, V as parsePlainDate, se as parseScheduledTime, _ as resolveSpanDays, b as resolveTimeGridRange, p as resolveTimedCardAnatomy, C as responsiveDayColumnCount, Q as startOfMonth, ie as startOfWeek, E as timeGridRangeSpecFor, pe as timeGridStepDays, K as todayInZone, t as validateCalendarEvent, L as weekDates, S as windowContainsDate, w as windowDayCount, ee as workWeekDates };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CoarTranslationSource } from '@cocoar/vue-localization';
|
|
2
|
+
export type CalendarMessageCatalog = Readonly<Record<string, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* The shipped catalogs, keyed by base language. Flat
|
|
5
|
+
* `'coar.calendar.<group>.<name>'` keys — the same shape a host
|
|
6
|
+
* would write by hand, so merging into an app catalog is a spread.
|
|
7
|
+
*/
|
|
8
|
+
export declare const calendarMessages: Readonly<Record<'en' | 'de', CalendarMessageCatalog>>;
|
|
9
|
+
/**
|
|
10
|
+
* A `CoarTranslationSource` serving the shipped catalogs. Regional
|
|
11
|
+
* tags resolve to their base language (`de-AT` → `de`); unknown
|
|
12
|
+
* languages yield `null` so the service moves on to the next source
|
|
13
|
+
* and the inline English fallbacks take over.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createCalendarTranslationSource(): CoarTranslationSource;
|
|
16
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAoGtE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,EAAE,sBAAsB,CAAC,CAAc,CAAC;AAElG;;;;;GAKG;AACH,wBAAgB,+BAA+B,IAAI,qBAAqB,CAUvE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { useCalendar } from './useCalendar';
|
|
2
2
|
export { CalendarBuilder, type CalendarApi, type CalendarBuilderState, } from './builders/calendar-builder';
|
|
3
|
-
export type { CalendarDensity, CanDropFn, DateClickHandler, DayHeaderRenderer, DstPolicy, EventClickHandler, EventDoubleClickHandler, EventDropHandler, EventHoverHandler, EventHoverLeaveHandler, EventDropPayload, EventLayoutCtx, EventRenderer, EventRendererCtx, EventsLoader,
|
|
3
|
+
export type { CalendarDensity, CanDropFn, DateClickHandler, DateDoubleClickHandler, DayHeaderRenderer, DstPolicy, EventClickHandler, EventDoubleClickHandler, EventDropHandler, EventHoverHandler, EventHoverLeaveHandler, EventDropPayload, EventLayoutCtx, EventRenderer, EventRendererCtx, EventsLoader, RangeChangeHandler, SeriesLoader, TimeClickHandler, TimeDoubleClickHandler, TimeRange, WeekStripSlotScope, } from './builders/types';
|
|
4
4
|
export { getEventZoneHints, type EventZoneHints } from './builders/event-zone-hints';
|
|
5
5
|
export { useViewWindow } from './composables/useViewWindow';
|
|
6
6
|
export { useCalendarDnd, buildDropPayload, type UseCalendarDndOptions, type UseCalendarDndReturn, type CalendarDragMode, type CalendarDropTarget, type DstDisambiguation, } from './composables/useCalendarDnd';
|
|
7
7
|
export { useCoarDrag, type DragContext, type UseCoarDragOptions, type UseCoarDragReturn, } from './composables/useCoarDrag';
|
|
8
8
|
export { useA11yAnnouncer } from './composables/useA11yAnnouncer';
|
|
9
|
+
export { useTimeGridSwipe, type UseTimeGridSwipeOptions, type UseTimeGridSwipeReturn, } from './composables/useTimeGridSwipe';
|
|
9
10
|
export { useTimeGridDnd, type UseTimeGridDndOptions, type UseTimeGridDndReturn, } from './composables/useTimeGridDnd';
|
|
10
11
|
export { useMonthDnd, type UseMonthDndOptions, type UseMonthDndReturn, } from './composables/useMonthDnd';
|
|
11
12
|
export { useDayView } from './useDayView';
|
|
@@ -28,5 +29,6 @@ export { default as CoarYearView } from './components/CoarYearView.vue';
|
|
|
28
29
|
export { default as CoarDisplayZoneSwitcher } from './components/CoarDisplayZoneSwitcher.vue';
|
|
29
30
|
export { default as VirtualizedSurface1DY } from './components/VirtualizedSurface1DY.vue';
|
|
30
31
|
export { default as VirtualizedSurface2D } from './components/VirtualizedSurface2D.vue';
|
|
32
|
+
export { calendarMessages, createCalendarTranslationSource, type CalendarMessageCatalog, } from './i18n/messages';
|
|
31
33
|
export * from './core/index';
|
|
32
34
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,0BAA0B,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,0BAA0B,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,SAAS,EACT,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAIrF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACz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