@cocoar/vue-ui 3.4.0-beta.1 → 3.4.0-beta.8

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 (88) hide show
  1. package/README.md +1 -1
  2. package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.js +34 -25
  5. package/package.json +4 -4
  6. package/skills/cocoar-vue-ui/SKILL.md +9 -5
  7. package/skills/cocoar-vue-ui/references/components/avatar.md +2 -0
  8. package/skills/cocoar-vue-ui/references/components/badge.md +2 -0
  9. package/skills/cocoar-vue-ui/references/components/breadcrumb.md +2 -0
  10. package/skills/cocoar-vue-ui/references/components/button.md +2 -0
  11. package/skills/cocoar-vue-ui/references/components/calendar/agenda-view.md +2 -0
  12. package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +2 -0
  13. package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +2 -0
  14. package/skills/cocoar-vue-ui/references/components/calendar/index.md +2 -0
  15. package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +2 -0
  16. package/skills/cocoar-vue-ui/references/components/calendar/time-selection.md +2 -0
  17. package/skills/cocoar-vue-ui/references/components/calendar/timeline-view.md +2 -0
  18. package/skills/cocoar-vue-ui/references/components/calendar/week-view.md +2 -0
  19. package/skills/cocoar-vue-ui/references/components/calendar/work-week-view.md +2 -0
  20. package/skills/cocoar-vue-ui/references/components/calendar/year-view.md +2 -0
  21. package/skills/cocoar-vue-ui/references/components/card.md +2 -0
  22. package/skills/cocoar-vue-ui/references/components/checkbox-group.md +2 -0
  23. package/skills/cocoar-vue-ui/references/components/checkbox.md +2 -0
  24. package/skills/cocoar-vue-ui/references/components/code-block.md +2 -0
  25. package/skills/cocoar-vue-ui/references/components/context-menu.md +2 -0
  26. package/skills/cocoar-vue-ui/references/components/data-grid/checkbox.md +2 -0
  27. package/skills/cocoar-vue-ui/references/components/data-grid/date-columns.md +2 -0
  28. package/skills/cocoar-vue-ui/references/components/data-grid/editing.md +2 -0
  29. package/skills/cocoar-vue-ui/references/components/data-grid/multi-select.md +2 -0
  30. package/skills/cocoar-vue-ui/references/components/data-grid/number.md +2 -0
  31. package/skills/cocoar-vue-ui/references/components/data-grid/select.md +2 -0
  32. package/skills/cocoar-vue-ui/references/components/data-grid/text.md +2 -0
  33. package/skills/cocoar-vue-ui/references/components/data-grid.md +2 -0
  34. package/skills/cocoar-vue-ui/references/components/data-list.md +2 -0
  35. package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +2 -0
  36. package/skills/cocoar-vue-ui/references/components/date-picker.md +2 -0
  37. package/skills/cocoar-vue-ui/references/components/date-time-picker.md +2 -0
  38. package/skills/cocoar-vue-ui/references/components/date-views.md +2 -0
  39. package/skills/cocoar-vue-ui/references/components/dialog.md +2 -0
  40. package/skills/cocoar-vue-ui/references/components/divider.md +2 -0
  41. package/skills/cocoar-vue-ui/references/components/document-viewer/annotations.md +2 -0
  42. package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +2 -0
  43. package/skills/cocoar-vue-ui/references/components/document-viewer/index.md +2 -0
  44. package/skills/cocoar-vue-ui/references/components/document-viewer/toolbar.md +2 -0
  45. package/skills/cocoar-vue-ui/references/components/drag-drop.md +2 -0
  46. package/skills/cocoar-vue-ui/references/components/dual-listbox.md +2 -0
  47. package/skills/cocoar-vue-ui/references/components/form-field.md +2 -0
  48. package/skills/cocoar-vue-ui/references/components/link.md +2 -0
  49. package/skills/cocoar-vue-ui/references/components/listbox.md +2 -0
  50. package/skills/cocoar-vue-ui/references/components/map/editor.md +2 -0
  51. package/skills/cocoar-vue-ui/references/components/map/index.md +2 -0
  52. package/skills/cocoar-vue-ui/references/components/markdown-diagrams.md +2 -0
  53. package/skills/cocoar-vue-ui/references/components/markdown-editor.md +2 -0
  54. package/skills/cocoar-vue-ui/references/components/markdown-form.md +2 -0
  55. package/skills/cocoar-vue-ui/references/components/markdown.md +2 -0
  56. package/skills/cocoar-vue-ui/references/components/menu.md +2 -0
  57. package/skills/cocoar-vue-ui/references/components/mermaid.md +2 -0
  58. package/skills/cocoar-vue-ui/references/components/navbar.md +2 -0
  59. package/skills/cocoar-vue-ui/references/components/note.md +2 -0
  60. package/skills/cocoar-vue-ui/references/components/notice.md +2 -0
  61. package/skills/cocoar-vue-ui/references/components/number-input.md +2 -0
  62. package/skills/cocoar-vue-ui/references/components/otp-input.md +2 -0
  63. package/skills/cocoar-vue-ui/references/components/page-builder/coar-page-builder.md +2 -0
  64. package/skills/cocoar-vue-ui/references/components/page-builder/coar-page-renderer.md +2 -0
  65. package/skills/cocoar-vue-ui/references/components/pagination.md +2 -0
  66. package/skills/cocoar-vue-ui/references/components/panel-layout.md +2 -0
  67. package/skills/cocoar-vue-ui/references/components/password-input.md +2 -0
  68. package/skills/cocoar-vue-ui/references/components/popconfirm.md +2 -0
  69. package/skills/cocoar-vue-ui/references/components/popover.md +2 -0
  70. package/skills/cocoar-vue-ui/references/components/progress-bar.md +2 -0
  71. package/skills/cocoar-vue-ui/references/components/radio-group.md +2 -0
  72. package/skills/cocoar-vue-ui/references/components/script-editor.md +2 -0
  73. package/skills/cocoar-vue-ui/references/components/segmented-control.md +2 -0
  74. package/skills/cocoar-vue-ui/references/components/select.md +2 -0
  75. package/skills/cocoar-vue-ui/references/components/sidebar.md +2 -0
  76. package/skills/cocoar-vue-ui/references/components/spinner.md +2 -0
  77. package/skills/cocoar-vue-ui/references/components/switch.md +2 -0
  78. package/skills/cocoar-vue-ui/references/components/table.md +2 -0
  79. package/skills/cocoar-vue-ui/references/components/tabs.md +2 -0
  80. package/skills/cocoar-vue-ui/references/components/tag.md +2 -0
  81. package/skills/cocoar-vue-ui/references/components/text-input.md +2 -0
  82. package/skills/cocoar-vue-ui/references/components/toast.md +2 -0
  83. package/skills/cocoar-vue-ui/references/components/tooltip.md +2 -0
  84. package/skills/cocoar-vue-ui/references/components/tree.md +2 -0
  85. package/skills/cocoar-vue-ui/references/components/wizard.md +2 -0
  86. package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +2 -0
  87. package/skills/cocoar-vue-ui/references/foundations/design-principles.md +27 -3
  88. package/skills/cocoar-vue-ui/references/guide/mobile.md +219 -2
package/dist/index.js CHANGED
@@ -9890,7 +9890,7 @@ var wd = /* @__PURE__ */ Z(xd, [["render", Cd], ["__scopeId", "data-v-a0d5d1e3"]
9890
9890
  }
9891
9891
  });
9892
9892
  let v = r(() => t.disabled ? -1 : l ? l.items.value.findIndex((e) => e.el === p.value) === l.activeIndex.value ? 0 : -1 : 0), x = null;
9893
- c.onChildPanelEnter = () => P();
9893
+ c.onChildPanelEnter = () => R();
9894
9894
  let S = od();
9895
9895
  function T() {
9896
9896
  k(), S?.();
@@ -9920,9 +9920,9 @@ var wd = /* @__PURE__ */ Z(xd, [["render", Cd], ["__scopeId", "data-v-a0d5d1e3"]
9920
9920
  cascade: c,
9921
9921
  closeTree: T,
9922
9922
  onPanelEnter: () => {
9923
- P(), a?.cancelAncestorCloseTimers();
9923
+ R(), a?.cancelAncestorCloseTimers();
9924
9924
  },
9925
- onPanelLeave: () => N()
9925
+ onPanelLeave: () => L()
9926
9926
  },
9927
9927
  parent: d
9928
9928
  });
@@ -9932,43 +9932,50 @@ var wd = /* @__PURE__ */ Z(xd, [["render", Cd], ["__scopeId", "data-v-a0d5d1e3"]
9932
9932
  close: () => k()
9933
9933
  }, a?.notifyChildOpened());
9934
9934
  }), t.afterClosed.then(() => {
9935
- f.value && h === t && (h = null, f.value = !1, c.overlayRef = null, P(), a?.notifyChildClosed(c));
9935
+ f.value && h === t && (h = null, f.value = !1, c.overlayRef = null, R(), a?.notifyChildClosed(c));
9936
9936
  });
9937
9937
  }
9938
9938
  function k() {
9939
9939
  if (!f.value) return;
9940
- f.value = !1, c.overlayRef = null, P(), a?.notifyChildClosed(c);
9940
+ f.value = !1, c.overlayRef = null, R(), a?.notifyChildClosed(c);
9941
9941
  let e = h;
9942
9942
  h = null, e && !e.isClosed && e.close();
9943
9943
  }
9944
- function j(e) {
9945
- if (t.disabled) return;
9946
- P();
9947
- let n = e.currentTarget;
9948
- a ? a.requestOpenFromChild(c, () => O(n), {
9944
+ let j = null;
9945
+ function M(e) {
9946
+ e.isPrimary !== !1 && (j = e.pointerType);
9947
+ }
9948
+ function N() {
9949
+ j = null;
9950
+ }
9951
+ function P(e) {
9952
+ let n = j === "touch";
9953
+ if (j = null, t.disabled || (R(), n)) return;
9954
+ let r = e.currentTarget;
9955
+ a ? a.requestOpenFromChild(c, () => O(r), {
9949
9956
  x: e.clientX,
9950
9957
  y: e.clientY
9951
- }) : O(n);
9958
+ }) : O(r);
9952
9959
  }
9953
- function M() {
9954
- t.disabled || N();
9960
+ function F() {
9961
+ t.disabled || L();
9955
9962
  }
9956
- function N() {
9957
- P(), x = setTimeout(() => {
9963
+ function L() {
9964
+ R(), x = setTimeout(() => {
9958
9965
  k();
9959
9966
  }, 80);
9960
9967
  }
9961
- function P() {
9968
+ function R() {
9962
9969
  x &&= (clearTimeout(x), null);
9963
9970
  }
9964
- function F(e) {
9965
- if (t.disabled) {
9971
+ function z(e) {
9972
+ if (j = null, t.disabled) {
9966
9973
  e.preventDefault(), e.stopPropagation();
9967
9974
  return;
9968
9975
  }
9969
9976
  e.stopPropagation(), f.value ? k() : O(e.currentTarget);
9970
9977
  }
9971
- function L(e) {
9978
+ function V(e) {
9972
9979
  if (!t.disabled) {
9973
9980
  if (e.key === "Enter" || e.key === " ") {
9974
9981
  e.preventDefault(), f.value ? k() : O(p.value);
@@ -9989,7 +9996,7 @@ var wd = /* @__PURE__ */ Z(xd, [["render", Cd], ["__scopeId", "data-v-a0d5d1e3"]
9989
9996
  return G(() => t.disabled, (e) => {
9990
9997
  e && k();
9991
9998
  }), C(() => {
9992
- _?.(), P(), h && !h.isClosed && h.close(), h = null, c.destroy();
9999
+ _?.(), R(), h && !h.isClosed && h.close(), h = null, c.destroy();
9993
10000
  }), (e, n) => (E(), o("div", Pd, [s("div", {
9994
10001
  ref_key: "itemRef",
9995
10002
  ref: p,
@@ -10003,10 +10010,12 @@ var wd = /* @__PURE__ */ Z(xd, [["render", Cd], ["__scopeId", "data-v-a0d5d1e3"]
10003
10010
  "aria-controls": i,
10004
10011
  "aria-disabled": t.disabled || void 0,
10005
10012
  tabindex: v.value,
10006
- onMouseenter: j,
10007
- onMouseleave: M,
10008
- onClick: F,
10009
- onKeydown: L
10013
+ onPointerenter: M,
10014
+ onPointercancel: N,
10015
+ onMouseenter: P,
10016
+ onMouseleave: F,
10017
+ onClick: z,
10018
+ onKeydown: V
10010
10019
  }, [
10011
10020
  s("span", Id, [u(Q, {
10012
10021
  name: t.icon || "square-dashed",
@@ -10021,7 +10030,7 @@ var wd = /* @__PURE__ */ Z(xd, [["render", Cd], ["__scopeId", "data-v-a0d5d1e3"]
10021
10030
  })
10022
10031
  ], 42, Fd)]));
10023
10032
  }
10024
- }), [["__scopeId", "data-v-3235d400"]]), zd = /* @__PURE__ */ d({
10033
+ }), [["__scopeId", "data-v-84556d34"]]), zd = /* @__PURE__ */ d({
10025
10034
  __name: "CoarContextMenuPanel",
10026
10035
  props: {
10027
10036
  renderContent: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cocoar/vue-ui",
3
- "version": "3.4.0-beta.1",
4
- "description": "Cocoar Design System — a touch-first Vue 3 component library with 30+ accessible, themeable components",
3
+ "version": "3.4.0-beta.8",
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": {
7
7
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "skills"
49
49
  ],
50
50
  "dependencies": {
51
- "@cocoar/vue-localization": "3.4.0-beta.1",
51
+ "@cocoar/vue-localization": "3.4.0-beta.8",
52
52
  "@fontsource/cascadia-code": "^5.2.3",
53
53
  "@fontsource/inter": "^5.2.8",
54
54
  "@fontsource/poppins": "^5.2.7",
@@ -73,7 +73,7 @@
73
73
  "vue": "^3.5.32",
74
74
  "vue-router": "^5.0.4"
75
75
  },
76
- "gitHead": "89e56e0d86a9b3e292e2119fde37e6bdfd99bcc6",
76
+ "gitHead": "c64c8033c839441a2c1543da3694eabfc2220be2",
77
77
  "scripts": {
78
78
  "build": "vite build",
79
79
  "test": "vitest run",
@@ -15,7 +15,7 @@ metadata:
15
15
 
16
16
  # Cocoar UI Vue
17
17
 
18
- A touch-first Vue 3 component library for the Cocoar Design System: 30+ accessible, themeable,
18
+ A tablet-first Vue 3 component library for the Cocoar Design System: 30+ accessible, themeable,
19
19
  tree-shakeable components in `@cocoar/vue-ui`, plus companion packages for localization, data
20
20
  grid, calendar, markdown, page builder, document viewer, map, file explorer and script editor.
21
21
  This skill is the documentation, page by page, under `references/`, with every live demo inlined
@@ -65,8 +65,12 @@ Every companion package has `@cocoar/vue-ui` as a peer dependency and pins the s
65
65
  `--coar-error`, `--coar-warning`, `--coar-info` on `:root`; every shade scale for light and
66
66
  dark mode is derived with oklch. Style with `--coar-*` tokens; do not hard-code hex values or
67
67
  override generated shades.
68
- - **Touch-first, tablet-first.** Interactive elements are at least 44 × 44 px and work with touch
69
- and focus; hover is an enhancement only. No hover-only interactions, no phone-first layouts.
68
+ - **Tablet-first, phones by opt-in.** Components are designed for touch and focus, with hover
69
+ as an enhancement; the device line of a component names where that is not met yet. The default sizes follow the token scale (`xs` 27 px, `s` 32 px, `m` 40 px,
70
+ `l` 48 px), not 44 × 44 px. The `coar-mobile` class on `html`, `body` or a parent raises the
71
+ adapted controls to at least 44 px; it changes sizes only, never behaviour, and nothing switches
72
+ by viewport width. Before building for phones, read the mobile guide (`references/guide/mobile.md`)
73
+ and the device line under each component's title (table in its "Device support" section).
70
74
  - **Props, not slots, where the docs say so.** `CoarCheckbox` takes its text via the `label` prop,
71
75
  `CoarBadge` via `content`. `CoarTag` uses `closable` and `@closed`; `CoarPopconfirm` uses
72
76
  `message` with `@confirmed` / `@cancelled`. `CoarFormField` wraps a control and supplies label,
@@ -90,13 +94,13 @@ of each other.
90
94
  - [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
95
  - [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
96
  - [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.
97
+ - [Mobile presentation (Preview)](references/guide/mobile.md) — Opt into the mobile presentation with a coar-mobile parent: touch-sized controls, what decides sizes, layout and input behaviour, how it combines with brand themes, and which device classes each component supports.
94
98
  - [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.
95
99
  - [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.
96
100
 
97
101
  ### Foundations
98
102
 
99
- - [Design Principles](references/foundations/design-principles.md) — The six Cocoar Design System principles — clarity, consistency, accessibility, touch-first, performance, developer experience — plus the design token architecture and do's and don'ts.
103
+ - [Design Principles](references/foundations/design-principles.md) — The six Cocoar Design System principles — clarity, consistency, accessibility, touch-first, performance, developer experience — plus the stability promise for web apps, the design token architecture and do's and don'ts.
100
104
  - [Colors](references/foundations/colors.md) — Cocoar's two-layer color system: primitive palettes and semantic tokens that adapt to light and dark mode, with naming convention and full token reference.
101
105
  - [Typography](references/foundations/typography.md) — The Cocoar type scale: eleven utility classes from display to footnote using Inter and Poppins, with sizes, weights, and usage examples.
102
106
  - [Spacing & Effects](references/foundations/spacing.md) — Spacing and effects tokens: the 4 px spacing scale, border radius, stroke widths, and six shadow elevation levels with reference tables.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Avatar
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Use avatars to give users and entities a recognizable visual identity throughout your application. They display a profile image when available and gracefully fall back to generated initials, so every user always has a face -- even before they upload a photo.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Badge
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Badges draw attention to counts, statuses, or short labels. Attach them to icons, avatars, or buttons to surface information that needs a quick glance -- like unread messages, plan tiers, or live/offline indicators.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Breadcrumb
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Crumbs wrap to fit narrow screens, but their link targets are not enlarged under .coar-mobile.
6
+
5
7
  Show users exactly where they are within a page hierarchy and give them a quick path back to any parent level. Breadcrumbs are especially valuable in applications with deep navigation structures, where the sidebar alone does not make the current location obvious.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Button
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
+
5
7
  Buttons trigger actions and communicate what will happen when pressed.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarAgendaView>` — Agenda View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Taps and scrolling work on touch; a phone presentation of the calendar is planned.
6
+
5
7
  Virtualized chronological list grouped by day. Multi-day events appear on every day they touch (with a `(cont.)` tag from day 2 onwards). The current-day header floats at the top of the surface and is pushed up by the next inline header — same UX as native CSS sticky, but works correctly on top of an absolutely-positioned virtualized surface.
6
8
 
7
9
  ```html
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarCalendar>` — Composer (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  `<CoarCalendar>` is the top-level shell that wires the complete calendar hierarchy together with prev / today / next navigation and responsive display controls. It's driven by the **builder** returned from `useCalendar()` — a single chainable surface that owns events, recurrence, configuration, handlers, renderers, and an imperative `api` object.
6
8
 
7
9
  The builder is **flat**: every setter lives directly on it, including view-specific ones (`timeRange`, `slotDuration` for Day / Week; `maxEventsPerCell` for Month; `agendaLengthDays` / `showEmptyDays` for Agenda). View-specific settings are no-ops outside their target view, so a single chained `.timeRange(...).maxEventsPerCell(...)` is fine — each one only takes effect when the matching view is active.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarDayView>` — Day View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  Time-grid surface with two display choices: **One day** renders one fixed column, while **Multi-day** derives 1–7 complete columns from the available container width. Multi-day all-day events that touch the visible range appear in the all-day band pinned under the day headers. Use it standalone via [`useDayView()`](#usedayview) when you need the surface without the [`<CoarCalendar>`](./coar-calendar.md) shell.
6
8
 
7
9
  ```html
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Calendar (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  A Vue 3 calendar whose visible hierarchy follows the iOS calendar: **Year**, **Month**, **Day** and **Agenda**, plus fixed **Week** and **Work week** time grids for web applications. Month and Day expose their display choices as nested variations instead of flattening every renderer into the primary view switcher.
6
8
 
7
9
  Events on the public surface use **`Temporal`** values directly (`PlainDate` for all-day, `ZonedDateTime` for timed) — there's no string parsing or implicit-zone guessing. Consumers convert their wire format (ISO strings, epoch ms, etc.) at the boundary; the calendar receives unambiguous values and runs all date math on them across DST boundaries.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Month Views (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps work on touch; multi-day bar resize handles are only 6 px and a touch on a pill always drags it.
6
+
5
7
  The shell's Month view follows the iOS structure: months scroll continuously and expose **Compact**, **Stacked**, **Details**, and **List** display choices. Continuous sections render only the 4–6 weeks the month actually needs; leading and trailing positions stay blank instead of repeating neighbour dates.
6
8
 
7
9
  | Choice | Rendering |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Selecting time, drafts & bands (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Long press selects on touch; the hover time indicator appears only for mouse and pen.
6
+
5
7
  > **Warning: Preview — new in 3.2**
6
8
  >
7
9
  > Everything on this page 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.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarTimelineView>` — Timeline View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Finger panning works like mouse panning; a phone presentation of the calendar is planned.
6
+
5
7
  Gantt-lite layout: **one row per logical event**, horizontal time-axis. The left pane lists event titles; the right pane renders bars positioned by `[start, end)` against the visible window. Same `CalendarEvent` data as Day / Week / Month / Agenda — just rendered as a project-plan timeline instead of a calendar grid.
6
8
 
7
9
  **Recurring series collapse to one row.** All occurrences of a recurring series (those with `meta.__recurrence.seriesId`) share a single row with one bar per occurrence — a weekly stand-up with 26 instances in the visible window renders as ONE row labelled "Standup ×26", not 26 separate rows. Standalone events (no recurrence metadata) keep one row per event. The grouping is automatic; consumer code doesn't need to do anything.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarWeekView>` — Week View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  7-day time-grid view — one hour-axis on the left, seven day columns on the right, all-day band pinned under the day-of-week header. The week's first day is locale-aware (`en-US` / `ja-JP` start on Sunday, `de-AT` / `fr-FR` start on Monday) but can be overridden via `firstDayOfWeek()`.
6
8
 
7
9
  ```html
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarWorkWeekView>` — Work Week View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  The week view with weekend columns filtered out. Configurable working-day set via `builder.workDays(...)` — defaults to Mon–Fri but adapts to 6-day operations (Mon–Sat), 4-day weeks (Mon–Thu), Sun–Thu Middle-East work weeks, or any other DayOfWeek subset.
6
8
 
7
9
  Mechanically the work-week view is a preset of the one time-grid model shared with [`<CoarDayView>`](./day-view.md#one-model-for-every-time-grid) and [`<CoarWeekView>`](./week-view.md): anchor `weekStart`, span 7, filter `workDays`, step 7. Same time-grid, same DnD pipeline, same slot rendering, same all-day band, same touch paging. The visible-range `ViewWindow` stays the full Mon–Sun span — only the columns rendered differ. Loaders see weekend events the same way they do for the full week.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarYearView>` — Year View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Tap to drill in works on touch; a phone presentation of the calendar is planned.
6
+
5
7
  Responsive twelve-month overview. The grid automatically chooses how many month cards fit across the available width, uses the configured locale / first weekday, and marks today. Selecting a month title or a day updates the builder cursor and drills into Month.
6
8
 
7
9
  The Year view intentionally shows date structure rather than event density. It does not render event pills or occurrence markers. Loader and range-change consumers still receive the ordinary year `ViewWindow`, so applications can decide whether to return data for that surface.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Card
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Cards group related content into a visually distinct container, making it easy for users to scan and interact with discrete chunks of information. Use them for dashboards, content feeds, settings panels, or anywhere you need clear visual boundaries.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Checkbox Group
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
+
5
7
  `CoarCheckboxGroup` turns multiple keyed checkboxes into one field value. Each child keeps its own visible label and DOM id; the group owns selection state, layout, shared form name, disabled/error state, and accessibility semantics.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Checkbox
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
+
5
7
  Checkboxes let users pick one or more options from a list, or flip a single boolean on or off. Reach for a checkbox when the choice does not take effect until the user explicitly submits -- for instant toggles, consider a [Switch](./switch.md) instead.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Code Block
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Readable and scrollable on phones; the copy and collapse buttons have no .coar-mobile presentation yet.
6
+
5
7
  Display source code with syntax highlighting, a one-click copy button, and optional collapsing. Use it in documentation, onboarding flows, or anywhere users need to read or copy code snippets.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Context Menu
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Opens on right-click; on touch that depends on the browser's long press, so offer your own trigger as well.
6
+
5
7
  Open a menu at the pointer position on right-click. The `useContextMenu` composable manages open/close state and cursor coordinates, while `CoarContextMenu` renders the menu as a floating overlay with automatic viewport clamping.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Checkbox Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.checkbox(field, configurator?)` renders a `<CoarCheckbox>` in each cell — same visual language as forms, just sized to fit the row. The renderer is **always read-only**; interactivity comes from edit-mode, exactly like text/number/select columns.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date Columns (New in 2.0)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  Three Temporal-typed column shortcuts for date / date-time / zoned-date-time cells. All three follow the same pattern: a renderer that formats locale-aware via `toLocaleString`, an editor that wraps the matching `<CoarPlainDatePicker>` / `<CoarPlainDateTimePicker>` / `<CoarZonedDateTimePicker>` component.
6
8
 
7
9
  | | Cell value | Renderer format | Editor |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Editing
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  In-cell editing is exposed through three builder methods that map directly onto AG Grid's editor lifecycle:
6
8
 
7
9
  | Method | Level | Purpose |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Multi-Select & Tag-Select Columns (New in 2.0)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  Two column shortcuts for multi-value cells. Both store the cell value as `T[]` and share the same renderer — they differ only in the editor surface and which configurator options are available.
6
8
 
7
9
  | | Editor | When to use |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Number Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.number(field, …)` is locale-aware in both display and editing. Two forms — pick by need:
6
8
 
7
9
  | Form | Effect |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Select Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.select(field, configurator)` declares a select column whose renderer shows the **label** of the matched option and whose editor is `<CoarSelect>` — same visual language as forms, with the dropdown teleported to `<body>` so it can overflow the cell freely.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Text Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.text(field, configurator?)` declares a text column whose editor is `<CoarTextInput>` — same visual language as forms, fitted into the cell.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Data Grid
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  A powerful data grid built on AG Grid with Cocoar theming. Configure columns, sorting, selection, and cell renderers through a fluent builder API — no raw AG Grid config needed.
6
8
 
7
9
  > **Info: Separate Package**
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Data List
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Item menus open on right-click and multi-select needs modifier keys, so both are hard to reach by touch.
6
+
5
7
  A list of records where **you own the row layout**. Where [`CoarDataGrid`](./data-grid.md) squeezes every field into a column, `CoarDataList` gives each record a free-form, multi-line template — the right tool when a notebook screen would otherwise show a dozen tiny columns and a horizontal scrollbar. It brings the parts a hand-rolled list keeps reinventing: virtual scrolling with measured row heights, search, a sort menu, keyboard and pointer selection, grouping, and an empty state.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date · optional time
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — A phone presentation (sheet) is planned.
6
+
5
7
  Sometimes a field is "a date, and *maybe* a time" — a due date that's usually
6
8
  just a day but occasionally needs an hour, a reminder that can be all-day or
7
9
  timed. Instead of a separate checkbox, these pickers put a small **clock toggle
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date Picker
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — A phone presentation (sheet) is planned.
6
+
5
7
  A calendar-backed date picker that returns a `Temporal.PlainDate` -- a date without time or timezone. Perfect for birthdays, deadlines, due dates, and any scenario where "which day" is all that matters.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # DateTime Picker
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — A phone presentation (sheet) is planned.
6
+
5
7
  Combines a calendar date picker with a time input and returns a `Temporal.PlainDateTime` -- a date and time without any timezone attached. Use this when the timezone is implicit (the user's local time) or irrelevant (an alarm, a reminder). If you need timezone awareness, reach for the [Zoned DateTime Picker](./zoned-date-time-picker.md) instead.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date Views (New in 2.0)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  The read-only display siblings of the picker family. When you have a `Temporal.PlainDate` / `Temporal.PlainDateTime` / `Temporal.ZonedDateTime` value and just want to show it (no editor, no panel) — use these.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Dialog
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Shrinks to the screen width on a phone; a sheet presentation for phones is planned.
6
+
5
7
  Modal dialogs demand attention. They block interaction with the rest of the page until the user makes a decision, making them the right choice for destructive actions, important confirmations, and messages that must be acknowledged before proceeding. Use them sparingly -- when the stakes are high enough to justify interrupting the user's flow.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Divider
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Dividers create clear visual breaks between sections of content. They're especially useful in forms, settings panels, and feeds where distinct groups of information sit close together. Add an optional text label to give the break semantic meaning.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Annotations
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone partial — Drawing works with touch; marker and ink width and color open only on hover; not adapted to phones.
6
+
5
7
  `CoarDocumentViewer` ships with a built-in annotation layer that supports four types — **marker** highlights, comment **notes**, free-hand **ink**, and **freetext** boxes. Annotations are **controlled**: the consumer owns the data, the viewer emits events, the consumer applies changes.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # CoarDocumentViewer
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone partial — Pinch zoom and drawing work on touch; marker/ink style flyouts open only on hover; not adapted to phones.
6
+
5
7
  The all-in-one viewer component. One required prop — `source` — plus a handful of toggles for chrome, panels, and the annotation surface.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Document Viewer (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone partial — Pinch zoom and drawing work on touch; marker/ink style flyouts open only on hover; not adapted to phones.
6
+
5
7
  `@cocoar/vue-document-viewer` is a generic, source-agnostic document viewer for Vue 3. One component — [`<CoarDocumentViewer>`](./coar-document-viewer.md) — renders **PDFs**, **single images**, and **multi-page image galleries**, with shared toolbar chrome, side panels, and an annotation layer.
6
8
 
7
9
  You pick the source kind with a small factory (`pdfSource(...)`, `imageSource(...)`, `imageGallerySource(...)`); the viewer dispatches internally. The toolbar greys out tools the active source doesn't support — e.g. search and outline are PDF-only — rather than hiding them, so users don't see UI moving around when they switch documents.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Toolbar customization
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone partial — Pinch zoom and drawing work on touch; marker/ink style flyouts open only on hover; not adapted to phones.
6
+
5
7
  The toolbar is **order-driven**: the `tools` prop is an array of tool identifiers in the order you want them to render. Want zoom buttons on the left and page navigation on the right? Just reorder the array. Want a custom layout with only the four buttons you actually need? Pass that subset.
6
8
 
7
9
  When `tools` is omitted, the viewer falls back to `COAR_DOCUMENT_VIEWER_ALL_TOOLS` — the canonical 8-group layout with separators at the original group boundaries.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Drag & Drop
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone partial — The default engine 'native' uses HTML5 drag events, made for the mouse; on touch use engine 'pointer' or 'auto'.
6
+
5
7
  `useDragDrop` is a small, framework-agnostic composable wrapping HTML5 drag-and-drop with the same group / accept / canDrop semantics used by [`CoarListbox`](./listbox.md#drag-drop-between-lists) — but usable from any Vue component. It takes care of the fiddly bits (module-level payload registry, group matching, directional whitelists, source-side cleanup on accept) so your component only needs to wire events.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Dual Listbox
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Move buttons work on touch; multi-highlight needs Ctrl/Shift, and drag needs dragEngine 'pointer'.
6
+
5
7
  Two [`CoarListbox`](./listbox.md) columns side-by-side with move buttons — the classic pattern for moving items between "available" and "selected" sets. All the search, grouping, and custom-render features of `CoarListbox` carry over automatically.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Form Field
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Works on phones; the label and the status popover have no .coar-mobile presentation yet.
6
+
5
7
  A wrapper component that provides a label, hint text, and an inline error indicator around any form control. Instead of each input managing its own label and validation display, `CoarFormField` handles these concerns in one place.
6
8
 
7
9
  > **Tip: Field-status indicator**
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Link
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Styled anchor elements for in-page navigation, external references, and any clickable text that isn't a button action. Two equivalent APIs:
6
8
 
7
9
  - **`<CoarLink>` SFC** (recommended) — `to` for router navigation, `href` for external links, automatic `rel="noopener"` for new-tab safety, disabled handling.