@cocoar/vue-ui 3.4.0-beta.39 → 3.4.0-beta.40
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/vue-ui",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.40",
|
|
4
4
|
"description": "Cocoar Design System — a tablet-first Vue 3 component library with 30+ accessible, themeable components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"skills"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocoar/vue-localization": "3.4.0-beta.
|
|
61
|
+
"@cocoar/vue-localization": "3.4.0-beta.40",
|
|
62
62
|
"@fontsource/cascadia-code": "^5.2.3",
|
|
63
63
|
"@fontsource/inter": "^5.2.8",
|
|
64
64
|
"@fontsource/onest": "^5.3.1",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"vue": "^3.5.32",
|
|
85
85
|
"vue-router": "^5.0.4"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "8199948ceea8b8913fae9d11edeccde5ddfff418",
|
|
88
88
|
"scripts": {
|
|
89
89
|
"build": "vite build",
|
|
90
90
|
"test": "vitest run",
|
|
@@ -187,6 +187,10 @@ interface BoardRow<TMeta> {
|
|
|
187
187
|
|
|
188
188
|
## Styling tokens
|
|
189
189
|
|
|
190
|
+
`--coar-calendar-board-header-bg` colors the day headers and the empty corner above the row labels. `--coar-calendar-board-cell-today-frame` is a `box-shadow` around today's cell, drawn above the bars.
|
|
191
|
+
|
|
192
|
+
The events of a cell are ordered by start, all-day first, whether they are single or from a series.
|
|
193
|
+
|
|
190
194
|
| Token | Default |
|
|
191
195
|
|---|---|
|
|
192
196
|
| `--coar-calendar-board-label-width` | `88px` |
|
|
@@ -196,6 +200,7 @@ interface BoardRow<TMeta> {
|
|
|
196
200
|
| `--coar-calendar-board-cell-padding` | `3px` |
|
|
197
201
|
| `--coar-calendar-board-bar-row-min-height` | `8px` |
|
|
198
202
|
| `--coar-calendar-board-cell-gap` / `-cell-bg` / `-cell-today-bg` | `2px` / none / today's tint |
|
|
203
|
+
| `--coar-calendar-board-cell-today-frame` / `-frame-radius` | none / `0` |
|
|
199
204
|
| `--coar-calendar-board-line` / `-row-line` | the calendar border |
|
|
200
205
|
| `--coar-calendar-board-header-bg` / `-today-bg` / `-padding` / `-line` | none / same / weekday padding / the line |
|
|
201
206
|
| `--coar-calendar-board-header-direction` / `-align` / `-justify` | `column` / `center` / `flex-start` |
|
|
@@ -479,7 +479,7 @@ Full reference: see [the composer's API reference](./coar-calendar.md#api-refere
|
|
|
479
479
|
|
|
480
480
|
Month rows have a fixed height per density plus the height of the week's multi-day lane band, and that band is capped too: a row shows at most `monthMaxVisibleLanes` lanes (default **2**). A multi-day bar past the cap leaves the band entirely — it is never clipped mid-row — and counts into the `+N` of every day it covers. `null` restores the unbounded band of the iOS port, where a week grows with every lane.
|
|
481
481
|
|
|
482
|
-
A Details cell
|
|
482
|
+
A Details cell orders its single-day pills by start, all-day first, whether they are single or from a series. It renders the first `maxEventsPerCell` (default **2**) and folds the rest, together with the folded bars covering the day, into one `+N` row in the subtle text colour. The Details base row is the iOS 94 px or, if the host's styling needs more, the measured height of the day-number row plus `maxEventsPerCell` pills plus the `+N` row — the view measures its own rendered cells (`useMonthMetrics`), so a `:deep()` override that makes pills or the day-number row taller never clips the marker. Details multi-day bars take the measured pill height, so bars and pills in one row are always the same size. In a row of fixed height (`uniform`, `fill`) a day gives up only the lanes of its own bars, and it takes the `+N` row's place for a pill when nothing is folded, so `maxEventsPerCell(3)` shows three lines wherever they fit. Stacked shows 2 marks and Compact 6 capsule segments and, like iOS, cap silently — their marks carry no titles, so the day has to be opened either way. Cells never scroll, and there is no per-cell menu or row expansion.
|
|
483
483
|
|
|
484
484
|
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.
|
|
485
485
|
|
|
@@ -559,4 +559,5 @@ Weekend columns of the continuous header keep their own `--coar-calendar-continu
|
|
|
559
559
|
| `pill` | `{ event, pill }` | Single-day pill renderer. `pill` is the `MonthCellPill` (event + visual order in the cell). |
|
|
560
560
|
| `multiDayBar` | `{ event, bar }` | Multi-day bar renderer. `bar` is the `MonthMultiDayBar` (lane / startCol / endCol / clipping flags). |
|
|
561
561
|
| `dayNumber` (Preview) | `{ date, isToday, isSelected, isOtherMonth }` | Replaces the day number. |
|
|
562
|
+
| `dayFooter` (Preview) | `{ date, isToday, isSelected, isOtherMonth }` | Content at the foot of a day, such as its meal. Its measured height is counted before events fold into `+N`, and a row with `auto` sizing grows by it. A day that renders nothing here keeps its room. |
|
|
562
563
|
| `dayContent` (Preview) | `{ date, isToday, isSelected, isOtherMonth }` | Content beside the day number, also on the neighbouring months' days. Keep it within the height of the day-number row. |
|