@cocoar/vue-ui 3.2.0-beta.11 → 3.2.0-beta.46
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/components/button/CoarButton.vue.d.ts.map +1 -1
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +6 -1
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +6 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +6 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts +3 -0
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/radio-group/CoarRadioButton.vue.d.ts.map +1 -1
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +17 -8
- package/package.json +2 -2
- package/skills/cocoar-vue-ui/SKILL.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/agenda-view.md +2 -2
- package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +24 -4
- package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +158 -2
- package/skills/cocoar-vue-ui/references/components/calendar/index.md +1 -0
- package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +4 -1
- package/skills/cocoar-vue-ui/references/components/calendar/time-selection.md +293 -0
- package/skills/cocoar-vue-ui/references/components/calendar/week-view.md +122 -0
- package/skills/cocoar-vue-ui/references/components/calendar/work-week-view.md +8 -0
- package/skills/cocoar-vue-ui/references/guide/getting-started.md +6 -0
- package/skills/cocoar-vue-ui/references/guide/mobile.md +123 -0
- package/styles/tokens/all.css +3 -0
- package/styles/tokens/mobile.css +17 -0
package/dist/index.js
CHANGED
|
@@ -3822,7 +3822,7 @@ var Po = {
|
|
|
3822
3822
|
"tabindex"
|
|
3823
3823
|
]));
|
|
3824
3824
|
}
|
|
3825
|
-
}), [["__scopeId", "data-v-
|
|
3825
|
+
}), [["__scopeId", "data-v-a73d16b3"]]), Ho = [
|
|
3826
3826
|
"href",
|
|
3827
3827
|
"aria-disabled",
|
|
3828
3828
|
"aria-current",
|
|
@@ -5065,6 +5065,10 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5065
5065
|
type: Boolean,
|
|
5066
5066
|
default: !1
|
|
5067
5067
|
},
|
|
5068
|
+
mobileSizing: {
|
|
5069
|
+
type: Boolean,
|
|
5070
|
+
default: !1
|
|
5071
|
+
},
|
|
5068
5072
|
active: {
|
|
5069
5073
|
type: Boolean,
|
|
5070
5074
|
default: !1
|
|
@@ -5087,6 +5091,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5087
5091
|
"coar-input-frame--active": e.active,
|
|
5088
5092
|
"coar-input-frame--borderless": e.borderless,
|
|
5089
5093
|
"coar-input-frame--multiline": e.multiline,
|
|
5094
|
+
"coar-input-frame--mobile-sizing": e.mobileSizing,
|
|
5090
5095
|
"coar-input-frame--has-leading": n.value,
|
|
5091
5096
|
"coar-input-frame--has-trailing": i.value,
|
|
5092
5097
|
"coar-input-frame--has-actions": c.value
|
|
@@ -5097,7 +5102,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5097
5102
|
c.value ? (E(), o("div", Ws, [M(t.$slots, "actions", {}, void 0, !0)])) : a("", !0)
|
|
5098
5103
|
], 2));
|
|
5099
5104
|
}
|
|
5100
|
-
}), [["__scopeId", "data-v-
|
|
5105
|
+
}), [["__scopeId", "data-v-593b66cf"]]), Ks = { class: "coar-text-input-wrapper" }, qs = { class: "coar-text-input-prefix" }, Js = [
|
|
5101
5106
|
"id",
|
|
5102
5107
|
"name",
|
|
5103
5108
|
"type",
|
|
@@ -5190,6 +5195,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5190
5195
|
}
|
|
5191
5196
|
return (n, r) => (E(), o("div", { class: b(A.value) }, [s("div", Ks, [S.value ? (E(), i(Gs, {
|
|
5192
5197
|
key: 1,
|
|
5198
|
+
"mobile-sizing": "",
|
|
5193
5199
|
multiline: "",
|
|
5194
5200
|
class: "coar-text-input-frame",
|
|
5195
5201
|
size: t.size,
|
|
@@ -5239,6 +5245,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5239
5245
|
"readonly"
|
|
5240
5246
|
])) : (E(), i(Gs, {
|
|
5241
5247
|
key: 0,
|
|
5248
|
+
"mobile-sizing": "",
|
|
5242
5249
|
class: "coar-text-input-frame",
|
|
5243
5250
|
size: t.size,
|
|
5244
5251
|
error: C.value,
|
|
@@ -5297,7 +5304,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5297
5304
|
"readonly"
|
|
5298
5305
|
]))])], 2));
|
|
5299
5306
|
}
|
|
5300
|
-
}), [["__scopeId", "data-v-
|
|
5307
|
+
}), [["__scopeId", "data-v-21407511"]]), tc = ["aria-label", "aria-describedby"], nc = [
|
|
5301
5308
|
"id",
|
|
5302
5309
|
"value",
|
|
5303
5310
|
"type",
|
|
@@ -5592,6 +5599,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5592
5599
|
!n.disabled && !n.readonly && (f.value = !f.value);
|
|
5593
5600
|
}
|
|
5594
5601
|
return (t, n) => (E(), o("div", { class: b(T.value) }, [s("div", ic, [u(Gs, {
|
|
5602
|
+
"mobile-sizing": "",
|
|
5595
5603
|
class: "coar-password-input-frame",
|
|
5596
5604
|
size: e.size,
|
|
5597
5605
|
error: x.value,
|
|
@@ -5650,7 +5658,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5650
5658
|
"readonly"
|
|
5651
5659
|
])])], 2));
|
|
5652
5660
|
}
|
|
5653
|
-
}), [["__scopeId", "data-v-
|
|
5661
|
+
}), [["__scopeId", "data-v-b0128048"]]), lc = { class: "coar-number-input-wrapper" }, uc = ["aria-label"], dc = {
|
|
5654
5662
|
key: 1,
|
|
5655
5663
|
class: "coar-number-input-prefix"
|
|
5656
5664
|
}, fc = [
|
|
@@ -5809,6 +5817,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5809
5817
|
d.value = t, g.value = H(t);
|
|
5810
5818
|
}
|
|
5811
5819
|
return (n, r) => (E(), o("div", { class: b(R.value) }, [s("div", lc, [u(Gs, {
|
|
5820
|
+
"mobile-sizing": "",
|
|
5812
5821
|
class: "coar-number-input-frame",
|
|
5813
5822
|
size: t.size,
|
|
5814
5823
|
error: S.value,
|
|
@@ -5897,7 +5906,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
5897
5906
|
"readonly"
|
|
5898
5907
|
])])], 2));
|
|
5899
5908
|
}
|
|
5900
|
-
}), [["__scopeId", "data-v-
|
|
5909
|
+
}), [["__scopeId", "data-v-9674d565"]]), vc = Symbol("CoarCheckboxGroup"), yc = {
|
|
5901
5910
|
key: 0,
|
|
5902
5911
|
class: "coar-checkbox-label"
|
|
5903
5912
|
}, bc = {
|
|
@@ -6045,7 +6054,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
6045
6054
|
e.labelPosition === "after" && e.label ? (E(), o("span", Sc, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Cc, "*")) : a("", !0)])) : a("", !0)
|
|
6046
6055
|
], 2)], 2));
|
|
6047
6056
|
}
|
|
6048
|
-
}), [["__scopeId", "data-v-
|
|
6057
|
+
}), [["__scopeId", "data-v-271b5a49"]]), Tc = [
|
|
6049
6058
|
"id",
|
|
6050
6059
|
"aria-labelledby",
|
|
6051
6060
|
"aria-describedby",
|
|
@@ -6262,7 +6271,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
6262
6271
|
p.value === "after" ? (E(), o("span", Nc, [M(e.$slots, "default", {}, void 0, !0)])) : a("", !0)
|
|
6263
6272
|
])], 2));
|
|
6264
6273
|
}
|
|
6265
|
-
}), [["__scopeId", "data-v-
|
|
6274
|
+
}), [["__scopeId", "data-v-d638fdcd"]]), Fc = {
|
|
6266
6275
|
key: 0,
|
|
6267
6276
|
class: "coar-switch-label"
|
|
6268
6277
|
}, Ic = [
|
|
@@ -6355,7 +6364,7 @@ var _s = { class: "coar-code-header" }, vs = { class: "coar-code-header-left" },
|
|
|
6355
6364
|
e.labelPosition === "after" && e.label ? (E(), o("span", Lc, I(e.label), 1)) : a("", !0)
|
|
6356
6365
|
], 2)], 2));
|
|
6357
6366
|
}
|
|
6358
|
-
}), [["__scopeId", "data-v-
|
|
6367
|
+
}), [["__scopeId", "data-v-dcaf95e9"]]);
|
|
6359
6368
|
//#endregion
|
|
6360
6369
|
//#region src/components/select/useSelectBase.ts
|
|
6361
6370
|
function zc(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/vue-ui",
|
|
3
|
-
"version": "3.2.0-beta.
|
|
3
|
+
"version": "3.2.0-beta.46",
|
|
4
4
|
"description": "Cocoar Design System — a touch-first Vue 3 component library with 30+ accessible, themeable components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"typecheck": "vue-tsc --noEmit"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@cocoar/vue-localization": "3.2.0-beta.
|
|
58
|
+
"@cocoar/vue-localization": "3.2.0-beta.46",
|
|
59
59
|
"@fontsource/cascadia-code": "^5.2.3",
|
|
60
60
|
"@fontsource/inter": "^5.2.8",
|
|
61
61
|
"@fontsource/poppins": "^5.2.7",
|
|
@@ -90,6 +90,7 @@ of each other.
|
|
|
90
90
|
- [Getting Started](references/guide/getting-started.md) — Set up @cocoar/vue-ui in a Vue 3 project: install, import fonts and styles, use components, toggle dark mode, and register the overlay plugin.
|
|
91
91
|
- [Error Handling](references/guide/error-handling.md) — Error handling patterns in Cocoar UI: graceful fallbacks, overlay Promise rejections, error toasts, and handling failures in application code.
|
|
92
92
|
- [Theming](references/guide/theming.md) — Theme Cocoar with CSS custom properties: set five oklch base colors and all shade scales for light and dark mode recalculate automatically.
|
|
93
|
+
- [Mobile presentation (Preview)](references/guide/mobile.md) — Opt into mobile presentation with a coar-mobile parent: touch-sized buttons, text/password/number inputs, checkboxes, radios and switches without changing component APIs.
|
|
93
94
|
- [Migrating to 2.11](references/guide/migration.md) — Migration guide for Cocoar UI 2.11: date/time pickers move onto CoarFormField, the clear button becomes opt-in, and two CSS tokens are renamed.
|
|
94
95
|
- [Migrating Page Builder to 3.0](references/guide/migration-page-builder-3.md) — Migration guide for @cocoar/vue-page-builder 3.0: four PageConfig concepts removed, several names disambiguated, and documents migrated to schemaVersion 6.
|
|
95
96
|
|
|
@@ -237,6 +238,7 @@ of each other.
|
|
|
237
238
|
- [`<CoarDayView>` — Day View (Preview)](references/components/calendar/day-view.md) — CoarDayView — one-day or width-aware multi-day time grid with hour axis, all-day band, configurable columns, time range and slot duration
|
|
238
239
|
- [`<CoarWeekView>` — Week View (Preview)](references/components/calendar/week-view.md) — CoarWeekView — 7-day time-grid calendar view with hour axis, all-day band, locale-aware first day of week and a customizable day-header slot
|
|
239
240
|
- [`<CoarWorkWeekView>` — Work Week View (Preview)](references/components/calendar/work-week-view.md) — CoarWorkWeekView — week view filtered to a configurable working-day set (default Mon-Fri), supporting 6-day, 4-day and Sun-Thu weeks on the same time grid
|
|
241
|
+
- [Selecting time, drafts & bands (Preview)](references/components/calendar/time-selection.md) — Time grids — select time ranges by dragging or clicking, a selection policy for what a click picks, a hover time indicator, a host-driven draft and per-day background bands
|
|
240
242
|
- [`<CoarAgendaView>` — Agenda View (Preview)](references/components/calendar/agenda-view.md) — CoarAgendaView — virtualized chronological agenda list grouped by day, with floating day headers, multi-day event continuation and imperative scroll-to-date
|
|
241
243
|
- [`<CoarTimelineView>` — Timeline View (Preview)](references/components/calendar/timeline-view.md) — CoarTimelineView — Gantt-lite timeline with one row per event, horizontal time-axis bars, automatic recurring-series row collapsing and drag-to-pan window
|
|
242
244
|
- [Performance baseline (Preview)](references/components/calendar/performance.md) — Performance baseline for @cocoar/vue-calendar — Long Animation Frame measurements and targets for virtualization, 2D scrolling and drag-and-drop with auto-scroll
|
|
@@ -283,8 +283,8 @@ Same universal surface as the [composer](./coar-calendar.md#api-reference). High
|
|
|
283
283
|
| Setter | Notes |
|
|
284
284
|
|---|---|
|
|
285
285
|
| `eventRenderer(r)` | Replaces the default time + title row content. |
|
|
286
|
-
| `onDateClick(fn)` | Fires on day-group header click. |
|
|
287
|
-
| `onEventClick(fn)` / `onEventDoubleClick(fn)` | Per-row interaction. |
|
|
286
|
+
| `onDateClick(fn)` | Fires on day-group header click — with a mouse on press, with touch / pen only for a tap (not when a scroll starts on the header). |
|
|
287
|
+
| `onEventClick(fn)` / `onEventDoubleClick(fn)` | Per-row interaction. `onEventClick` follows the same touch rule, firing after the tap's click so a sheet it opens stays open. |
|
|
288
288
|
|
|
289
289
|
### Agenda specific
|
|
290
290
|
|
|
@@ -1203,8 +1203,16 @@ builder
|
|
|
1203
1203
|
.onEventDrop(({ event, next }) => persistMove(event.id, next));
|
|
1204
1204
|
```
|
|
1205
1205
|
|
|
1206
|
+
To create by **dragging a time range** — or to show what a click will pick, keep an open form's range visible and paint working hours behind the events — see [Selecting time, drafts & bands](./time-selection.md).
|
|
1207
|
+
|
|
1206
1208
|
Single-click and double-click on an empty cell or slot are separate hooks. The desktop convention "click selects, double-click creates" (Apple Calendar, Outlook) therefore needs no click-timer on the host side, and the Google-style "click opens a popup" model is one handler away. The single-click hooks still fire for the two clicks that precede a double-click. A double-click on an event element stops at the event and reaches `onEventDoubleClick` only — never the date / time hooks. `onTimeDoubleClick` snaps to the slot grid exactly like `onTimeClick`.
|
|
1207
1209
|
|
|
1210
|
+
### Touch: taps, not scroll starts
|
|
1211
|
+
|
|
1212
|
+
With a mouse, `onDateClick` and `onTimeClick` fire on press. On a touch screen every scroll also starts with a finger down on a cell, so for touch and pen they fire only for a **tap**: the finger lifts within a few pixels of where it went down, and the browser did not take the touch for scrolling (`pointercancel`). They fire in a task right **after** the `click` the browser sends for the tap — not on `pointerup` — so an overlay the handler opens (a sheet with a backdrop) cannot be hit by that click and close again. When a WebView sends no click, they fire 350 ms after the lift. Hosts need no tap detection of their own.
|
|
1213
|
+
|
|
1214
|
+
`onEventClick` follows the same rule. On a draggable event (month pill or bar, time-grid card) a press-and-release below the drag threshold is a click: with a mouse it fires on release, with touch / pen after the tap's click. Agenda and Month List rows — and the agenda's day headers for `onDateClick` — fire on press with a mouse and only for a tap with touch / pen, since those lists scroll under the finger.
|
|
1215
|
+
|
|
1208
1216
|
`native.currentTarget` is the rendered calendar element and can be passed directly to `@cocoar/vue-ui`'s overlay service. Applications using a modal or routed editor can ignore it. For recurring events, call `getRecurrenceMeta(event)` before opening the editor so the host can offer This occurrence / This and following / Entire series; the calendar supplies stable occurrence identity but never guesses the backend mutation.
|
|
1209
1217
|
|
|
1210
1218
|
## Popovers and tooltips
|
|
@@ -1416,6 +1424,7 @@ api.goTo('2026-12-25');
|
|
|
1416
1424
|
api.setView('month');
|
|
1417
1425
|
api.setMonthDensity('compact');
|
|
1418
1426
|
api.setDayMode('multiDay');
|
|
1427
|
+
api.setTimeGridOrientation('horizontal'); // days as rows
|
|
1419
1428
|
api.scrollToTime(8); // day / week only
|
|
1420
1429
|
api.scrollToDate('2026-04-15'); // agenda only
|
|
1421
1430
|
api.getVisibleRange(); // ViewWindow | null
|
|
@@ -1550,8 +1559,11 @@ The builder is **flat** — every setter lives directly on it. There are no sub-
|
|
|
1550
1559
|
| `firstDayOfWeek(d)` | `MaybeRefOrGetter<0..6 \| undefined>` | Override the locale-detected default. |
|
|
1551
1560
|
| `workDays(d)` | `MaybeRefOrGetter<readonly DayOfWeek[]>` | Days to render in the `'workWeek'` view (0 = Sun … 6 = Sat). Default `[1,2,3,4,5]` (Mon–Fri). |
|
|
1552
1561
|
| `shadeWeekends(b)` | `MaybeRefOrGetter<boolean>` | Tint Saturday / Sunday cells and headers in Month. Default `true`; disable for the unshaded iOS appearance. |
|
|
1562
|
+
| `selectedDate(d)` | `MaybeRefOrGetter<Temporal.PlainDate \| null>` | Month: the host's selected day, drawn as a filled circle around the day number. Independent of the cursor. Default `null`. |
|
|
1553
1563
|
| `monthDensity(d)` | `MaybeRefOrGetter<'compact' \| 'stacked' \| 'details'>` | Month presentation. The shell exposes these beside the optional List variation. Default `'details'`. |
|
|
1554
1564
|
| `dayMode(m)` | `MaybeRefOrGetter<'single' \| 'multiDay'>` | One fixed day or a width-aware 1–7-day surface. Default `'single'`. |
|
|
1565
|
+
| `timeGridOrientation(o)` | `MaybeRefOrGetter<'vertical' \| 'horizontal'>` | Week / work week / day with days as columns (default) or as rows on one horizontal time axis — [Days as rows](./day-view.md#days-as-rows-horizontal-orientation). Window, paging and hooks are the same. |
|
|
1566
|
+
| `dayLabelWidth(px)` | `MaybeRefOrGetter<number>` | Days as rows: width of the sticky day column (day header + all-day chips). Default `132`, at least `48`. |
|
|
1555
1567
|
| `timeRange(r)` | `MaybeRefOrGetter<{ startMinutes: number; endMinutes: number }>` | Day / week visible hour range, in minutes from midnight. |
|
|
1556
1568
|
| `slotDuration(d)` | `MaybeRefOrGetter<number>` | Time-grid slot subdivision (minutes). Default `30`. |
|
|
1557
1569
|
| `pixelsPerHour(p)` | `MaybeRefOrGetter<number>` | Time-grid row height. Default `60`. |
|
|
@@ -1574,16 +1586,22 @@ The builder is **flat** — every setter lives directly on it. There are no sub-
|
|
|
1574
1586
|
| `timedEventDetailMinWidth(px)` | `MaybeRefOrGetter<number>` | Unobscured width below which an overlapped Day / Week card switches to the compact anatomy (one end-truncated title line, no location, no time row). Default `112` like iOS; `0` disables the switch. See [Overlapping timed cards](./week-view.md#overlapping-timed-cards). |
|
|
1575
1587
|
| `allDayBandMode(m)` | `MaybeRefOrGetter<'fitsContent' \| 'alwaysOneLane' \| 'reservesCap'>` | How much height the all-day band claims. `fitsContent` (default) follows the content and disappears without all-day events; `alwaysOneLane` keeps at least one lane so the grid never jumps 0↔1; `reservesCap` is always `allDayMaxVisibleLanes` tall so the hour axis sits at the same place on every day. |
|
|
1576
1588
|
| `timeGridRange(spec)` | `MaybeRefOrGetter<TimeGridRangeSpec \| null>` | Anchor / span / filter / step of the Day view's columns and paging. Week and Work week are fixed presets of the same model. See the [Day view](./day-view.md#one-model-for-every-time-grid). |
|
|
1577
|
-
| `swipeNavigation(b)` | `MaybeRefOrGetter<boolean>` | Touch paging on week / work-week / day (default `true`): a horizontal pan moves the grid with the finger and pages on release past a quarter of the width or on a fast flick. A touch that never moves is a tap and reaches `onTimeClick`
|
|
1589
|
+
| `swipeNavigation(b)` | `MaybeRefOrGetter<boolean>` | Touch paging on week / work-week / day (default `true`): a horizontal pan moves the grid with the finger and pages on release past a quarter of the width or on a fast flick. A touch that never moves is a tap and reaches `onTimeClick` after the click that follows the lift. On the columns mouse / pen are unaffected; a mouse drag across the day-name strip pages too. Honours `prefers-reduced-motion`. |
|
|
1578
1590
|
| `prefetchNeighbours(b)` | `MaybeRefOrGetter<boolean>` | Warm the loader / series caches for the previous and next page of the time grids so the neighbour pages drawn during a swipe carry their events. Default `true`; one extra fetch per neighbour in loader mode, a no-op in `events()` mode. |
|
|
1579
1591
|
| `eventTextContrast(p)` | `MaybeRefOrGetter<'wcag' \| 'apca'>` | How the automatic black/white text on event surfaces is chosen. `'wcag'` (default) is the WCAG 2 ratio; `'apca'` (WCAG 3 draft) picks white on saturated mid-tones such as `#e03131`, where WCAG 2 narrowly picks black. A per-event `meta.textColor` wins over either. |
|
|
1580
|
-
| `onEventClick(fn)` | `(payload: { event, native: PointerEvent }) => void` | Common: open details, a side panel or a click-anchored popover. |
|
|
1592
|
+
| `onEventClick(fn)` | `(payload: { event, native: PointerEvent }) => void` | Common: open details, a side panel or a click-anchored popover. Touch / pen: after the tap's click — see [Touch](#touch-taps-not-scroll-starts). |
|
|
1581
1593
|
| `onEventDoubleClick(fn)` | `(payload: { event, native: MouseEvent }) => void` | Common: open the host application's edit UI. |
|
|
1582
1594
|
| `onEventHover(fn)` | `(payload: { event, native: PointerEvent }) => void` | Pair with `useOverlay()` for popovers / tooltips. `native.currentTarget` is the anchor element. No hover delay applied — wrap with `setTimeout(..., 200)` if needed. |
|
|
1583
1595
|
| `onEventHoverLeave(fn)` | `(payload: { event, native: PointerEvent }) => void` | Companion close-trigger for the popover the hover handler opened. |
|
|
1584
1596
|
| `onEventDrop(fn)` | `(payload) => void` | Drag-and-drop / keyboard / touch all flow through this. |
|
|
1585
|
-
| `onDateClick(fn)` | `(payload: { date, native: PointerEvent }) => void` | Empty cell / day-header clicked. |
|
|
1586
|
-
| `onTimeClick(fn)` | `(payload: { date, time, native: PointerEvent }) => void` | Empty time slot (week / day). |
|
|
1597
|
+
| `onDateClick(fn)` | `(payload: { date, native: PointerEvent }) => void` | Empty cell / day-header clicked. Mouse: on press. Touch / pen: only on a tap, after the click that follows it — see [Touch](#touch-taps-not-scroll-starts). `native` is the `pointerdown`. |
|
|
1598
|
+
| `onTimeClick(fn)` | `(payload: { date, time, native: PointerEvent }) => void` | Empty time slot (week / day). Same touch rule as `onDateClick`. With `timeRangeSelect` a mouse click fires on release (a drag fires none). |
|
|
1599
|
+
| `timeRangeSelect(b)` | `MaybeRefOrGetter<boolean>` | Week / work week / day: a drag on free space selects a time range, a click selects the policy's proposal, touch selects with a long press. Default `false`. See [Selecting time](./time-selection.md). |
|
|
1600
|
+
| `selectionPolicy(fn)` | `(ctx: TimeSelectionContext) => { start, end } \| null` | What hover, click and drag select, in minutes of the day. Default `defaultSelectionPolicy()` (the slot); `gapOrDurationPolicy({ minutes })` picks the gap between events or a fixed length. |
|
|
1601
|
+
| `onTimeRangeSelect(fn)` | `(payload: { date, start, end, source, native }) => void` | A range was selected; `start` / `end` are `ZonedDateTime`s in the display zone. After `onTimeClick` for a click. |
|
|
1602
|
+
| `hoverIndicator(b)` | `MaybeRefOrGetter<boolean>` | Time at the mouse on the time axis and a line across all days. Default `false`. |
|
|
1603
|
+
| `draft(source)` | `MaybeRefOrGetter<{ start, end } \| null>` | A range drawn as an outlined block above the events (an open form's range); `null` hides it. `#draft` slot for custom drawing. |
|
|
1604
|
+
| `backgrounds(fn)` | `(date) => CalendarBand[] \| null` | Per-day background ranges (`tint` / `hatch` / `outline`, behind or above the events) and lines with a label. Never take pointer events. |
|
|
1587
1605
|
| `onDateDoubleClick(fn)` | `(payload: { date, native: MouseEvent }) => void` | Empty month cell / all-day cell double-clicked. Never fires for a double-click on an event. |
|
|
1588
1606
|
| `onTimeDoubleClick(fn)` | `(payload: { date, time, native: MouseEvent }) => void` | Empty time slot double-clicked; `time` snapped like `onTimeClick`. |
|
|
1589
1607
|
| `onRangeChange(fn)` | `(window) => void` | Visible window changed. |
|
|
@@ -1599,6 +1617,7 @@ interface CalendarApi<TMeta> {
|
|
|
1599
1617
|
setView(view: CalendarView): void;
|
|
1600
1618
|
setMonthDensity(density: CalendarMonthDensity): void;
|
|
1601
1619
|
setDayMode(mode: CalendarDayMode): void;
|
|
1620
|
+
setTimeGridOrientation(orientation: CalendarTimeGridOrientation): void;
|
|
1602
1621
|
getVisibleRange(): ViewWindow | null;
|
|
1603
1622
|
getVisibleEvents(): CalendarEvent<TMeta>[];
|
|
1604
1623
|
/** Same read for any window, e.g. the neighbour pages drawn during a swipe. */
|
|
@@ -1634,6 +1653,7 @@ Variant-specific slots (`pill`, `multiDayBar`, `allDayEvent`) still exist on the
|
|
|
1634
1653
|
| `weekStripStart` / `weekStripEnd` | `WeekStripSlotScope` | Day agenda: host controls at either end of the seven-day week strip (e.g. previous / next week via `shiftWeek(±1)`). Forwarded to `<CoarAgendaView>`. |
|
|
1635
1654
|
| `multiDayBar` | `{ event, bar }` | Month multi-day bar. |
|
|
1636
1655
|
| `dayHeader` | `{ date, isToday, isWeekend }` | Per-day column header (week / day). |
|
|
1656
|
+
| `draft` | `{ start, end, segment }` | The `builder.draft` range, drawn yourself — once per day it covers (week / day). See [Draft](./time-selection.md#draft). |
|
|
1637
1657
|
|
|
1638
1658
|
### `<CoarCalendar>` props
|
|
1639
1659
|
|
|
@@ -302,9 +302,161 @@ builder.view('day').timeGridRange({ anchor: 'cursor', span: 5, filter: 'all', st
|
|
|
302
302
|
|
|
303
303
|
Week and Work week are fixed presets and ignore `timeGridRange`; `null` restores the `dayMode` presets. Because there is one resolver (`resolveTimeGridRange`, exported from the core subpath) and one surface underneath, every grid feature — touch paging, the empty-cell hooks, the all-day lane cap — behaves identically across the four.
|
|
304
304
|
|
|
305
|
+
## Days as rows (horizontal orientation)
|
|
306
|
+
|
|
307
|
+
> **Warning: Preview — new in 3.2**
|
|
308
|
+
>
|
|
309
|
+
> The horizontal orientation is new in 3.2 and still a Preview: the API may change before it loses this mark. It already runs in production apps; feedback is welcome.
|
|
310
|
+
|
|
311
|
+
`builder.timeGridOrientation('horizontal')` turns Day, Multi-day, Week and Work week by 90°: **one row per day, time running left → right** on one shared axis. It is a presentation knob like `dayMode` — the window, paging, `onRangeChange`, the loaders and every hook stay the same — and suits time tracking, shifts and attendance, where start, end and gaps of several days are compared at a glance.
|
|
312
|
+
|
|
313
|
+
```ts
|
|
314
|
+
builder
|
|
315
|
+
.view('week') // or 'workWeek' / 'day'
|
|
316
|
+
.timeGridOrientation('horizontal') // default 'vertical'
|
|
317
|
+
.timeRange({ startMinutes: 7 * 60, endMinutes: 19 * 60 })
|
|
318
|
+
.pixelsPerHour(120); // now along the horizontal axis
|
|
319
|
+
|
|
320
|
+
api.setTimeGridOrientation('vertical'); // two-way when bound to a Ref
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
07:00 08:00 09:00 10:00 11:00 12:00
|
|
325
|
+
Mo., 19. │ [ Entwicklung ][Daily][ Entwicklung ]
|
|
326
|
+
Di., 20. │ [ Entwicklung ][Daily][ Entwicklung ]
|
|
327
|
+
│ [ Review ] ← second lane
|
|
328
|
+
Mi., 21. │ [ Meeting ] [ Entwicklung ]
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
**Demo — `calendar/demos/WeekViewRows.vue`**
|
|
332
|
+
|
|
333
|
+
```vue
|
|
334
|
+
<template>
|
|
335
|
+
<div style="display: flex; flex-direction: column; gap: 8px">
|
|
336
|
+
<div style="display: flex; gap: 8px; align-items: center">
|
|
337
|
+
<CoarButton
|
|
338
|
+
size="s"
|
|
339
|
+
:variant="orientation === 'horizontal' ? 'primary' : 'secondary'"
|
|
340
|
+
@click="orientation = 'horizontal'"
|
|
341
|
+
>
|
|
342
|
+
Days as rows
|
|
343
|
+
</CoarButton>
|
|
344
|
+
<CoarButton
|
|
345
|
+
size="s"
|
|
346
|
+
:variant="orientation === 'vertical' ? 'primary' : 'secondary'"
|
|
347
|
+
@click="orientation = 'vertical'"
|
|
348
|
+
>
|
|
349
|
+
Days as columns
|
|
350
|
+
</CoarButton>
|
|
351
|
+
<span style="font-size: 12px; color: var(--coar-text-neutral-secondary)">{{ last }}</span>
|
|
352
|
+
</div>
|
|
353
|
+
<div
|
|
354
|
+
style="
|
|
355
|
+
height: 420px;
|
|
356
|
+
border: 1px solid var(--coar-border-neutral-tertiary);
|
|
357
|
+
border-radius: var(--coar-radius-xs);
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
"
|
|
360
|
+
>
|
|
361
|
+
<CoarWeekView :builder="builder" />
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</template>
|
|
365
|
+
|
|
366
|
+
<script setup lang="ts">
|
|
367
|
+
import { ref } from 'vue';
|
|
368
|
+
import { CoarButton } from '@cocoar/vue-ui';
|
|
369
|
+
import {
|
|
370
|
+
CoarWeekView,
|
|
371
|
+
useWeekView,
|
|
372
|
+
Temporal,
|
|
373
|
+
type CalendarEvent,
|
|
374
|
+
type CalendarTimeGridOrientation,
|
|
375
|
+
} from '@cocoar/vue-calendar';
|
|
376
|
+
|
|
377
|
+
const zone = 'Europe/Vienna';
|
|
378
|
+
const at = (date: string, time: string) => Temporal.ZonedDateTime.from(`${date}T${time}[${zone}]`);
|
|
379
|
+
const block = (
|
|
380
|
+
id: string,
|
|
381
|
+
date: string,
|
|
382
|
+
from: string,
|
|
383
|
+
to: string,
|
|
384
|
+
title: string,
|
|
385
|
+
color: string,
|
|
386
|
+
): CalendarEvent => ({
|
|
387
|
+
id,
|
|
388
|
+
start: at(date, from),
|
|
389
|
+
end: at(date, to),
|
|
390
|
+
meta: { title, color },
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
// A time-tracking week: start, end and gaps of every day at a glance.
|
|
394
|
+
const events = ref<CalendarEvent[]>([
|
|
395
|
+
block('mo-1', '2026-04-13', '07:30', '09:30', 'Development', '#93c5fd'),
|
|
396
|
+
block('mo-2', '2026-04-13', '09:30', '09:45', 'Daily', '#f59e0b'),
|
|
397
|
+
block('mo-3', '2026-04-13', '09:45', '12:00', 'Development', '#93c5fd'),
|
|
398
|
+
block('mo-4', '2026-04-13', '12:30', '16:00', 'Learning', '#10b981'),
|
|
399
|
+
block('tu-1', '2026-04-14', '08:00', '09:30', 'Development', '#93c5fd'),
|
|
400
|
+
block('tu-2', '2026-04-14', '09:30', '09:45', 'Daily', '#f59e0b'),
|
|
401
|
+
block('tu-3', '2026-04-14', '09:45', '12:00', 'Development', '#93c5fd'),
|
|
402
|
+
block('tu-4', '2026-04-14', '10:30', '11:30', 'Review', '#a78bfa'),
|
|
403
|
+
block('tu-5', '2026-04-14', '13:00', '17:00', 'Backlog', '#f87171'),
|
|
404
|
+
block('we-1', '2026-04-15', '08:30', '10:00', 'Meeting', '#38bdf8'),
|
|
405
|
+
block('we-2', '2026-04-15', '10:30', '15:30', 'Development', '#93c5fd'),
|
|
406
|
+
block('th-1', '2026-04-16', '07:00', '12:00', 'Support', '#fbbf24'),
|
|
407
|
+
block('fr-1', '2026-04-17', '08:00', '12:30', 'Development', '#93c5fd'),
|
|
408
|
+
{
|
|
409
|
+
id: 'sat-off',
|
|
410
|
+
start: Temporal.PlainDate.from('2026-04-18'),
|
|
411
|
+
end: Temporal.PlainDate.from('2026-04-20'),
|
|
412
|
+
meta: { title: 'Weekend trip', color: '#ec4899' },
|
|
413
|
+
},
|
|
414
|
+
]);
|
|
415
|
+
|
|
416
|
+
const orientation = ref<CalendarTimeGridOrientation>('horizontal');
|
|
417
|
+
const last = ref('Drag a block onto another day, or its right edge to make it longer.');
|
|
418
|
+
|
|
419
|
+
const { builder } = useWeekView();
|
|
420
|
+
builder
|
|
421
|
+
.events(events)
|
|
422
|
+
.date(Temporal.PlainDate.from('2026-04-15'))
|
|
423
|
+
.timezone(zone)
|
|
424
|
+
.firstDayOfWeek(1)
|
|
425
|
+
.timeGridOrientation(orientation)
|
|
426
|
+
.timeRange({ startMinutes: 6 * 60, endMinutes: 19 * 60 })
|
|
427
|
+
.pixelsPerHour(80)
|
|
428
|
+
.slotDuration(15)
|
|
429
|
+
.onTimeClick(({ date, time }) => {
|
|
430
|
+
last.value = `onTimeClick: ${date} ${time.toString().slice(0, 5)}`;
|
|
431
|
+
})
|
|
432
|
+
.onEventDrop(({ event, next, target }) => {
|
|
433
|
+
last.value = `onEventDrop: ${(event.meta as { title?: string }).title} → ${target.date}`;
|
|
434
|
+
const idx = events.value.findIndex((e) => e.id === event.id);
|
|
435
|
+
if (idx < 0) return;
|
|
436
|
+
events.value = [
|
|
437
|
+
...events.value.slice(0, idx),
|
|
438
|
+
{ ...event, start: next.start, ...(next.end ? { end: next.end } : {}) },
|
|
439
|
+
...events.value.slice(idx + 1),
|
|
440
|
+
];
|
|
441
|
+
});
|
|
442
|
+
</script>
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
- **Axis.** `pixelsPerHour` sets the horizontal density; a range narrower than the container is stretched to its width (a small value such as `30` always fills the width). The hour header sticks to the top, the day column to the left, and the grid scrolls on both axes inside its own scroller — give it a sized parent (inside `<CoarCalendar>` it fills the body). The end of the axis gets its hour label left of the line when the hour is wide enough, none otherwise — a stretched axis never overflows.
|
|
446
|
+
- **Day column.** `builder.dayLabelWidth(px)` sets its width (default 132, at least 48); the time axis gets the rest. A day without all-day chips gives the `#dayHeader` slot (or `dayHeaderRenderer`) the row's whole height, room for two lines such as weekday and day total; with chips the header keeps one 20 px line above them.
|
|
447
|
+
- **Overlaps** become lanes stacked downwards; a row grows with its lanes, nothing is covered. A timed event over midnight shows as one segment in each of its rows, as in the vertical grid.
|
|
448
|
+
- **All-day events** are chips in the day cell of every day they cover — click / double-click reach `onEventClick` / `onEventDoubleClick`; they are not draggable here.
|
|
449
|
+
- **Hooks** as in the vertical grid: `onTimeClick` / `onTimeDoubleClick` from a row's track (x → slot), `onDateClick` / `onDateDoubleClick` from the day cell, `onEventClick` / `onEventDoubleClick` / hover from the cards. Touch goes through the same tap gate.
|
|
450
|
+
- **Drag & drop**: move along the axis and onto another row (another day), resize at the left / right edge, `canDrop`, `dstPolicy` and the drop payload are unchanged. Keyboard: → / ← move by a slot, ↓ / ↑ by a day, Shift+→ / ← resize the end, Enter commits, Escape cancels.
|
|
451
|
+
- **No touch paging** in this orientation — a horizontal swipe scrolls the time axis. Page with the header buttons or `api.next()` / `api.prev()`.
|
|
452
|
+
- **Multi-day** shows `dayColumnCount` rows, at least 3 (the container width says nothing about how many rows fit).
|
|
453
|
+
- Custom renderers get `ctx.orientation === 'horizontal'` for these wide, short cards; the `#allDayEvent` slot is not used (chips).
|
|
454
|
+
|
|
455
|
+
Web only for now: the iOS and Android calendars draw the vertical grid.
|
|
456
|
+
|
|
305
457
|
## Touch paging
|
|
306
458
|
|
|
307
|
-
On touch devices a horizontal pan on the day columns moves the grid with the finger — header cells, all-day band and columns together, the hour axis stays put — and pages to the previous / next range on release past a quarter of the width or on a fast flick. Below that the grid settles back. A touch that never moves is a tap and reaches `onTimeClick`
|
|
459
|
+
On touch devices a horizontal pan on the day columns moves the grid with the finger — header cells, all-day band and columns together, the hour axis stays put — and pages to the previous / next range on release past a quarter of the width or on a fast flick. Below that the grid settles back. A touch that never moves is a tap and reaches `onTimeClick` right after the click that follows the lift, so a swipe never starts with a stray slot click and an overlay the handler opens is not hit by that click. Vertical pans stay native scrolling. A mouse keeps its click-on-press semantics; a pen tap counts like a finger tap.
|
|
308
460
|
|
|
309
461
|
While you drag, the **previous and next page** are drawn to the left and right of the current one — same columns, same events — so the gesture reads as paging between two visible pages; they are visual only and disappear once the grid settles. In loader mode the calendar pre-warms those two windows shortly after each page becomes visible (`builder.prefetchNeighbours(false)` switches that off; one extra fetch per neighbour), and `api.getEventsForWindow(window)` is the read behind it. In `events()` mode nothing needs fetching.
|
|
310
462
|
|
|
@@ -324,7 +476,11 @@ Full reference: see [the composer's API reference](./coar-calendar.md#api-refere
|
|
|
324
476
|
| `dayColumnCount(n)` | `MaybeRefOrGetter<number>` | `1` | Minimum number of complete columns in Multi-day mode. |
|
|
325
477
|
| `dayColumnMinWidth(px)` | `MaybeRefOrGetter<number>` | `220` | Target width used to derive additional columns, capped at seven. |
|
|
326
478
|
| `slotDuration(d)` | `MaybeRefOrGetter<number>` | `30` | Slot subdivision (minutes). Also the snap step when dragging. |
|
|
327
|
-
| `pixelsPerHour(p)` | `MaybeRefOrGetter<number>` | `60` |
|
|
479
|
+
| `pixelsPerHour(p)` | `MaybeRefOrGetter<number>` | `60` | Density along the time axis. `60` = 30 px per 30-min slot. |
|
|
480
|
+
| `timeGridOrientation(o)` | `MaybeRefOrGetter<'vertical' \| 'horizontal'>` | `'vertical'` | Days as columns, or as rows on a horizontal time axis — see "Days as rows". |
|
|
481
|
+
| `dayLabelWidth(px)` | `MaybeRefOrGetter<number>` | `132` | Days as rows: width of the sticky day column. |
|
|
482
|
+
| `timeRangeSelect(b)` / `onTimeRangeSelect(fn)` | `MaybeRefOrGetter<boolean>` / handler | `false` | Select time ranges by dragging, clicking or a long press — see [Selecting time](./time-selection.md). |
|
|
483
|
+
| `hoverIndicator(b)`, `draft(d)`, `backgrounds(fn)` | — | off / `null` / — | Time under the mouse, a host draft above the events, per-day bands — same page. |
|
|
328
484
|
| `eventRenderer(r)` | `EventRenderer<TMeta>` | — | Universal renderer. Branch on `ctx.layout?.kind === 'positioned'` (timed cards) vs `'allDayBar'` (all-day band). |
|
|
329
485
|
| `dayHeaderRenderer(r)` | `DayHeaderRenderer` | — | Per-day column header. |
|
|
330
486
|
|
|
@@ -309,4 +309,5 @@ To customize, redefine any token under the same trigger after the package styles
|
|
|
309
309
|
- **[Month Views](./month-view.md)** — continuous Compact / Stacked / Details months and responsive Month List.
|
|
310
310
|
- **[Day View](./day-view.md)** — one-day or width-aware multi-day time-grid surface.
|
|
311
311
|
- **[Week View](./week-view.md)** — 7-day time-grid + all-day band.
|
|
312
|
+
- **[Selecting time, drafts & bands](./time-selection.md)** — drag or click to select time ranges, a hover time indicator, a host draft and per-day background bands.
|
|
312
313
|
- **[Agenda View](./agenda-view.md)** — virtualized chronological list grouped by day.
|
|
@@ -26,6 +26,8 @@ builder
|
|
|
26
26
|
|
|
27
27
|
Month navigation scrolls to the requested section. Scrolling updates the builder cursor when the next month's heading reaches the top, and event / recurrence loaders preload the adjacent months. The surface initially materializes 13 months and extends in either direction while keeping a bounded DOM window.
|
|
28
28
|
|
|
29
|
+
Only the month in view and the next one render on mount. Every other section starts as its title plus an empty block of about its height and is filled one month per task afterwards, nearest first, so the first frame comes quickly and the main thread stays responsive on phones. A section that scrolls near the viewport is filled at once, and a section filled above the read position does not move it. Recurring series are expanded the same way, in slices of a few milliseconds.
|
|
30
|
+
|
|
29
31
|
```html
|
|
30
32
|
<CoarContinuousMonthView :builder="builder" />
|
|
31
33
|
```
|
|
@@ -426,6 +428,7 @@ Full reference: see [the composer's API reference](./coar-calendar.md#api-refere
|
|
|
426
428
|
| `firstDayOfWeek(d)` | `0..6 \| undefined` | locale-aware | `0` = Sunday, `1` = Monday, … |
|
|
427
429
|
| `monthDensity(d)` | `'compact' \| 'stacked' \| 'details'` | `'details'` | Presentation used by continuous Month. |
|
|
428
430
|
| `shadeWeekends(b)` | `MaybeRefOrGetter<boolean>` | `true` | Shades Saturday / Sunday cells and weekday headers. Set `false` for an unshaded appearance. |
|
|
431
|
+
| `selectedDate(d)` | `MaybeRefOrGetter<Temporal.PlainDate \| null>` | `null` | The host's selected day: a filled circle around the day number (iOS selection decoration, `--coar-calendar-selection-fill`). Independent of the cursor — pass the day a companion pane follows, e.g. from `onDateClick`. |
|
|
429
432
|
| `maxEventsPerCell(n)` | `MaybeRefOrGetter<number>` | `2` | Single-day pills a **Details** cell shows before the rest fold into the `+N` row. Stacked and Compact use fixed limits (2 marks / 6 capsule segments) like iOS. |
|
|
430
433
|
| `monthMaxVisibleLanes(n)` | `MaybeRefOrGetter<number \| null>` | `2` | Multi-day lanes a week row shows. Bars past the cap leave the band and count into the `+N` of every day they cover; `null` lets the row grow with every lane. |
|
|
431
434
|
| `eventRenderer(r)` | `EventRenderer<TMeta>` | — | Universal renderer. Branch on `ctx.layout?.kind === 'monthPill' \| 'monthBar'` for variant-specific rendering — see the example above. |
|
|
@@ -439,7 +442,7 @@ A Details cell renders its first `maxEventsPerCell` single-day pills (default **
|
|
|
439
442
|
|
|
440
443
|
On the web the `+N` row is a button (accessible name "N more events", `aria-haspopup="dialog"`). It opens a **day sheet** over that one cell: a small dialog aligned to the cell's top-left edge that lists every event of the day — the multi-day events covering it first (visible lanes, then folded ones), then the single-day pills — and scrolls when the list is long. The sheet opens downward and flips upward when the space below inside the scroll container is short; it never expands the row or the grid. Every pill in the sheet is a live pill with the grid's own wiring — drag it onto any other day, move it with the keyboard, double-click it for `onEventDoubleClick`. The sheet closes on Escape, its close control, a pointerdown outside it, another `+N`, or when the month changes; focus returns to the `+N` button.
|
|
441
444
|
|
|
442
|
-
A tap on the cell body still fires `onDateClick` (the `+N` button does not), so a host that prefers its own day surface keeps working unchanged.
|
|
445
|
+
A tap on the cell body still fires `onDateClick` (the `+N` button does not), so a host that prefers its own day surface keeps working unchanged. On touch screens it fires only for a tap — not when a scroll starts on a cell — and after the tap's click, so a sheet the handler opens stays open.
|
|
443
446
|
|
|
444
447
|
In the grid itself hidden events are not in the DOM, so keyboard focus and drag-and-drop there reach only the visible pills; the sheet is where the rest become reachable. Drop onto a full cell works either way: a drag preview takes the last visible slot so the target is always visible.
|
|
445
448
|
|