@cocoar/vue-ui 3.2.0 → 3.3.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/vue-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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.
|
|
58
|
+
"@cocoar/vue-localization": "3.3.0",
|
|
59
59
|
"@fontsource/cascadia-code": "^5.2.3",
|
|
60
60
|
"@fontsource/inter": "^5.2.8",
|
|
61
61
|
"@fontsource/poppins": "^5.2.7",
|
|
@@ -42,7 +42,7 @@ Only the month in view and the next one render on mount. Every other section sta
|
|
|
42
42
|
|
|
43
43
|
## Single month section {#single-month-section}
|
|
44
44
|
|
|
45
|
-
`<CoarMonthView>` renders the fixed single-section grid used internally by the continuous composition. Multi-day events render as continuous **bars** across the rows they touch; single-day events render as **pills** inside cells. Use it directly when the host owns pagination or needs a compact embedded month.
|
|
45
|
+
`<CoarMonthView>` renders the fixed single-section grid used internally by the continuous composition. Multi-day events render as continuous **bars** across the rows they touch; single-day events render as **pills** inside cells. A timed event counts as multi-day when it ends on a later day than it starts in the display zone (Thu 15:30 → Sun 18:00 is a Thu–Sun bar); its end is exclusive, so an end at the start of a day (00:00, or 01:00 where DST skips midnight) does not reach into that day. Its bar stops a third of a day short of the outer edges of its first and last day — the same fixed inset whatever the clock times are — so it never reads as an all-day event; an edge cut by a week row or by the edge of a continuous month's section keeps running to the border. Use it directly when the host owns pagination or needs a compact embedded month.
|
|
46
46
|
|
|
47
47
|
```html
|
|
48
48
|
<CoarMonthView :builder="builder" />
|
|
@@ -184,6 +184,31 @@ const events = ref<CalendarEvent[]>([
|
|
|
184
184
|
end: zdt('2026-04-15T15:45:00'),
|
|
185
185
|
meta: { title: '1:1 with Bernhard', color: '#3b82f6' },
|
|
186
186
|
},
|
|
187
|
+
// Timed events spanning days: bars inset a third of a day at their real ends.
|
|
188
|
+
{
|
|
189
|
+
id: 'away',
|
|
190
|
+
start: zdt('2026-04-16T15:30:00'),
|
|
191
|
+
end: zdt('2026-04-19T18:00:00'),
|
|
192
|
+
meta: { title: 'Away — Graz (Thu 15:30 → Sun 18:00)', color: '#db2777' },
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: 'release-party',
|
|
196
|
+
start: zdt('2026-04-21T22:00:00'),
|
|
197
|
+
end: zdt('2026-04-22T02:00:00'),
|
|
198
|
+
meta: { title: 'Release party (22:00 → 02:00)', color: '#ea580c' },
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: 'workshop',
|
|
202
|
+
start: zdt('2026-04-06T08:00:00'),
|
|
203
|
+
end: zdt('2026-04-09T00:00:00'),
|
|
204
|
+
meta: { title: 'Workshop (Mon 08:00 → Thu 00:00)', color: '#0d9488' },
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: 'audit',
|
|
208
|
+
start: zdt('2026-03-31T10:00:00'),
|
|
209
|
+
end: zdt('2026-04-03T12:00:00'),
|
|
210
|
+
meta: { title: 'Audit (Mar 31 → Apr 3)', color: '#4f46e5' },
|
|
211
|
+
},
|
|
187
212
|
// Quarterly review crossing into May.
|
|
188
213
|
{
|
|
189
214
|
id: 'quarter-review',
|