@cocoar/vue-ui 3.4.0-beta.8 → 4.0.0-beta.44

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 (250) hide show
  1. package/dist/compact-fonts.d.ts +1 -0
  2. package/dist/compact-fonts.d.ts.map +1 -0
  3. package/dist/compact-fonts.js +4 -0
  4. package/dist/components/_internal/keyboardInset.d.ts +9 -0
  5. package/dist/components/_internal/keyboardInset.d.ts.map +1 -0
  6. package/dist/components/_internal/pageScrollLock.d.ts +17 -0
  7. package/dist/components/_internal/pageScrollLock.d.ts.map +1 -0
  8. package/dist/components/_internal/useFocusTrap.d.ts +9 -0
  9. package/dist/components/_internal/useFocusTrap.d.ts.map +1 -0
  10. package/dist/components/_internal/useVisualViewport.d.ts +26 -0
  11. package/dist/components/_internal/useVisualViewport.d.ts.map +1 -0
  12. package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
  13. package/dist/components/card/CoarCard.vue.d.ts.map +1 -1
  14. package/dist/components/checkbox/CoarCheckbox.vue.d.ts +2 -2
  15. package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
  16. package/dist/components/code-block/CoarCodeBlock.vue.d.ts +1 -1
  17. package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -1
  18. package/dist/components/data-list/CoarDataList.vue.d.ts.map +1 -1
  19. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts +95 -0
  20. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts.map +1 -0
  21. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts +113 -0
  22. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts.map +1 -0
  23. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts +132 -0
  24. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts.map +1 -0
  25. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +23 -6
  26. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
  27. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +4 -0
  28. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
  29. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +23 -6
  30. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
  31. package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
  32. package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
  33. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +4 -0
  34. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
  35. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +23 -6
  36. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
  37. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
  38. package/dist/components/dialog/CoarDialogFooter.vue.d.ts +20 -0
  39. package/dist/components/dialog/CoarDialogFooter.vue.d.ts.map +1 -0
  40. package/dist/components/dialog/CoarDialogShell.vue.d.ts +2 -0
  41. package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
  42. package/dist/components/dialog/CoarSheetShell.vue.d.ts +50 -0
  43. package/dist/components/dialog/CoarSheetShell.vue.d.ts.map +1 -0
  44. package/dist/components/dialog/dialog-types.d.ts +27 -0
  45. package/dist/components/dialog/dialog-types.d.ts.map +1 -1
  46. package/dist/components/dialog/dialogFooter.d.ts +21 -0
  47. package/dist/components/dialog/dialogFooter.d.ts.map +1 -0
  48. package/dist/components/dialog/index.d.ts +2 -1
  49. package/dist/components/dialog/index.d.ts.map +1 -1
  50. package/dist/components/dialog/useDialog.d.ts +6 -15
  51. package/dist/components/dialog/useDialog.d.ts.map +1 -1
  52. package/dist/components/dialog/useSheetDrag.d.ts +46 -0
  53. package/dist/components/dialog/useSheetDrag.d.ts.map +1 -0
  54. package/dist/components/form-field/CoarFormField.vue.d.ts +2 -2
  55. package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
  56. package/dist/components/form-field/constants.d.ts +6 -0
  57. package/dist/components/form-field/constants.d.ts.map +1 -1
  58. package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
  59. package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
  60. package/dist/components/icon/core-icons.d.ts +2 -0
  61. package/dist/components/icon/core-icons.d.ts.map +1 -1
  62. package/dist/components/input-frame/CoarInputFrame.vue.d.ts +17 -6
  63. package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
  64. package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
  65. package/dist/components/input-frame/types.d.ts +9 -0
  66. package/dist/components/input-frame/types.d.ts.map +1 -0
  67. package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
  68. package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
  69. package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
  70. package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
  71. package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
  72. package/dist/components/menu/useContextMenu.d.ts +7 -20
  73. package/dist/components/menu/useContextMenu.d.ts.map +1 -1
  74. package/dist/components/number-input/CoarNumberInput.vue.d.ts +16 -1
  75. package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
  76. package/dist/components/otp-input/CoarOtpInput.vue.d.ts +2 -2
  77. package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
  78. package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
  79. package/dist/components/overlay/compact-context.d.ts +10 -0
  80. package/dist/components/overlay/compact-context.d.ts.map +1 -0
  81. package/dist/components/overlay/index.d.ts +3 -1
  82. package/dist/components/overlay/index.d.ts.map +1 -1
  83. package/dist/components/overlay/overlay-presets.d.ts +9 -0
  84. package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
  85. package/dist/components/overlay/overlay-service.d.ts +12 -0
  86. package/dist/components/overlay/overlay-service.d.ts.map +1 -1
  87. package/dist/components/overlay/overlay-types.d.ts +6 -0
  88. package/dist/components/overlay/overlay-types.d.ts.map +1 -1
  89. package/dist/components/overlay/useCompactPresentationContext.d.ts +33 -0
  90. package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -0
  91. package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -1
  92. package/dist/components/panel-layout/internal/CoarPaneDivider.vue.d.ts.map +1 -1
  93. package/dist/components/password-input/CoarPasswordInput.vue.d.ts +5 -1
  94. package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
  95. package/dist/components/scrollbar/index.d.ts +1 -1
  96. package/dist/components/scrollbar/index.d.ts.map +1 -1
  97. package/dist/components/scrollbar/vScrollbar.d.ts +9 -0
  98. package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -1
  99. package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -1
  100. package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
  101. package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
  102. package/dist/components/select/CoarSelect.vue.d.ts +17 -3
  103. package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
  104. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts +7 -4
  105. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
  106. package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
  107. package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
  108. package/dist/components/select/index.d.ts +1 -1
  109. package/dist/components/select/index.d.ts.map +1 -1
  110. package/dist/components/select/types.d.ts +13 -0
  111. package/dist/components/select/types.d.ts.map +1 -1
  112. package/dist/components/select/useSelectBase.d.ts +2 -1
  113. package/dist/components/select/useSelectBase.d.ts.map +1 -1
  114. package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
  115. package/dist/components/switch/CoarSwitch.vue.d.ts +2 -2
  116. package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
  117. package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
  118. package/dist/components/tag/CoarTag.vue.d.ts.map +1 -1
  119. package/dist/components/text-input/CoarTextInput.vue.d.ts +16 -2
  120. package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
  121. package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +8 -2
  122. package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
  123. package/dist/components/theme-editor/color-preview.d.ts +22 -0
  124. package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
  125. package/dist/components/theme-editor/font-preview.d.ts +46 -0
  126. package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
  127. package/dist/components/theme-editor/scheme-values.d.ts +12 -0
  128. package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
  129. package/dist/components/theme-editor/theme-editor-state.d.ts +199 -183
  130. package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
  131. package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
  132. package/dist/components/tree/CoarTreeNode.vue.d.ts.map +1 -1
  133. package/dist/composables/useDragDrop.d.ts.map +1 -1
  134. package/dist/composables/useDragImage.d.ts +2 -14
  135. package/dist/composables/useDragImage.d.ts.map +1 -1
  136. package/dist/index.css +1 -1
  137. package/dist/index.d.ts +8 -4
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +6768 -4523
  140. package/dist/onest-fonts.d.ts +1 -0
  141. package/dist/onest-fonts.d.ts.map +1 -0
  142. package/dist/onest-fonts.js +4 -0
  143. package/dist/theme/color-contrast.d.ts +10 -0
  144. package/dist/theme/color-contrast.d.ts.map +1 -0
  145. package/dist/theme/compact-packages/calendar.d.ts +8 -0
  146. package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
  147. package/dist/theme/compact-packages/data-grid.d.ts +8 -0
  148. package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
  149. package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
  150. package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
  151. package/dist/theme/compact-packages/map.d.ts +11 -0
  152. package/dist/theme/compact-packages/map.d.ts.map +1 -0
  153. package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
  154. package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
  155. package/dist/theme/compact-packages/markdown.d.ts +14 -0
  156. package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
  157. package/dist/theme/compact-packages/mermaid.d.ts +8 -0
  158. package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
  159. package/dist/theme/compact-packages/page-builder.d.ts +8 -0
  160. package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
  161. package/dist/theme/compact-packages/script-editor.d.ts +8 -0
  162. package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
  163. package/dist/theme/compact-theme.d.ts +11 -0
  164. package/dist/theme/compact-theme.d.ts.map +1 -0
  165. package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
  166. package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
  167. package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
  168. package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
  169. package/dist/theme/enterprise-packages/map.d.ts +3 -0
  170. package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
  171. package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
  172. package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
  173. package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
  174. package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
  175. package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
  176. package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
  177. package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
  178. package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
  179. package/dist/theme/enterprise-theme.d.ts +8 -0
  180. package/dist/theme/enterprise-theme.d.ts.map +1 -0
  181. package/dist/theme/palette-inputs.d.ts +34 -0
  182. package/dist/theme/palette-inputs.d.ts.map +1 -0
  183. package/dist/theme/role-derived-tokens.d.ts +3 -0
  184. package/dist/theme/role-derived-tokens.d.ts.map +1 -0
  185. package/dist/theme/role-input-defaults.d.ts +5 -0
  186. package/dist/theme/role-input-defaults.d.ts.map +1 -0
  187. package/dist/theme/role-theme-contract.d.ts +8 -0
  188. package/dist/theme/role-theme-contract.d.ts.map +1 -0
  189. package/dist/theme/role-theme.d.ts +40 -0
  190. package/dist/theme/role-theme.d.ts.map +1 -0
  191. package/package.json +15 -4
  192. package/skills/cocoar-vue-ui/SKILL.md +8 -1
  193. package/skills/cocoar-vue-ui/references/components/calendar/board.md +212 -0
  194. package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +32 -1
  195. package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +21 -0
  196. package/skills/cocoar-vue-ui/references/components/calendar/index.md +26 -1
  197. package/skills/cocoar-vue-ui/references/components/calendar/mini-month.md +59 -0
  198. package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +48 -1
  199. package/skills/cocoar-vue-ui/references/components/context-menu.md +1 -0
  200. package/skills/cocoar-vue-ui/references/components/data-grid.md +4 -0
  201. package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +30 -1
  202. package/skills/cocoar-vue-ui/references/components/date-picker.md +32 -1
  203. package/skills/cocoar-vue-ui/references/components/date-time-picker.md +28 -1
  204. package/skills/cocoar-vue-ui/references/components/dialog.md +188 -2
  205. package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +4 -0
  206. package/skills/cocoar-vue-ui/references/components/form-field.md +10 -6
  207. package/skills/cocoar-vue-ui/references/components/listbox.md +3 -1
  208. package/skills/cocoar-vue-ui/references/components/map/index.md +5 -1
  209. package/skills/cocoar-vue-ui/references/components/markdown-editor.md +10 -0
  210. package/skills/cocoar-vue-ui/references/components/markdown-form.md +9 -0
  211. package/skills/cocoar-vue-ui/references/components/markdown.md +10 -0
  212. package/skills/cocoar-vue-ui/references/components/menu.md +1 -1
  213. package/skills/cocoar-vue-ui/references/components/mermaid.md +11 -0
  214. package/skills/cocoar-vue-ui/references/components/number-input.md +81 -0
  215. package/skills/cocoar-vue-ui/references/components/object-editor.md +737 -0
  216. package/skills/cocoar-vue-ui/references/components/otp-input.md +1 -1
  217. package/skills/cocoar-vue-ui/references/components/pagination.md +1 -1
  218. package/skills/cocoar-vue-ui/references/components/password-input.md +32 -0
  219. package/skills/cocoar-vue-ui/references/components/script-editor.md +10 -0
  220. package/skills/cocoar-vue-ui/references/components/segmented-control.md +1 -1
  221. package/skills/cocoar-vue-ui/references/components/select.md +136 -2
  222. package/skills/cocoar-vue-ui/references/components/tabs.md +1 -1
  223. package/skills/cocoar-vue-ui/references/components/tag.md +1 -1
  224. package/skills/cocoar-vue-ui/references/components/text-input.md +189 -0
  225. package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +42 -1
  226. package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
  227. package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +248 -0
  228. package/skills/cocoar-vue-ui/references/foundations/theming.md +98 -11
  229. package/skills/cocoar-vue-ui/references/foundations/typography.md +3 -0
  230. package/skills/cocoar-vue-ui/references/guide/getting-started.md +2 -2
  231. package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
  232. package/skills/cocoar-vue-ui/references/guide/migration-object-editor-values.md +40 -0
  233. package/skills/cocoar-vue-ui/references/guide/mobile.md +126 -27
  234. package/skills/cocoar-vue-ui/references/guide/theming.md +25 -0
  235. package/styles/tokens/all.css +6 -0
  236. package/styles/tokens/code-block.css +2 -2
  237. package/styles/tokens/colors-primitives-dark.css +50 -50
  238. package/styles/tokens/colors-primitives-light.css +50 -50
  239. package/styles/tokens/colors-usage.css +132 -111
  240. package/styles/tokens/compact.css +4442 -0
  241. package/styles/tokens/components-shared.css +4 -4
  242. package/styles/tokens/derived.css +525 -0
  243. package/styles/tokens/menu.css +21 -21
  244. package/styles/tokens/mobile.css +2 -0
  245. package/styles/tokens/new-components.css +42 -33
  246. package/styles/tokens/select-overlay.css +12 -12
  247. package/styles/tokens/sidebar.css +12 -12
  248. package/styles/tokens/theme-none.css +99 -93
  249. package/styles/tokens/tooltip.css +4 -4
  250. package/styles/tokens/typography.css +19 -19
@@ -0,0 +1,248 @@
1
+ <!-- Generated from apps/docs/foundations/compact-presentation.md by apps/docs/scripts/sync-skill.mjs. Do not edit; edit the docs page. -->
2
+
3
+ # Compact presentation (Preview)
4
+
5
+ The compact presentation is an experiment across the library, not a change of the default theme.
6
+ It uses smaller, normally weighted Inter text, Slate-tinted structure, restrained corners and
7
+ aligned controls. Existing props, events and data formats are unchanged.
8
+
9
+ Compact is a set of values for the tokens every theme uses. The library derives everything else
10
+ from them, with the same rules for every theme. There are two ways to apply the values:
11
+
12
+ - **As a theme of your own:** load the **Compact** preset in the [Theme Editor](./theming.md),
13
+ adjust it (another font, other sizes or colours) and ship the exported theme class. No
14
+ `.coar-compact` is involved.
15
+ - **With the class `.coar-compact`:** the entry the first betas introduced. It applies the same
16
+ values and stays supported; everything below that names the class holds for a theme class too.
17
+
18
+ ## Compare this documentation
19
+
20
+ Load the **Compact** preset in the [Theme Editor](./theming.md) (the button at the bottom right) to
21
+ switch the live component examples, the phone and tablet demos included, without reloading:
22
+ form values and open dialogs remain intact. **Reset** in the editor returns to the default look.
23
+
24
+ **Themed docs** in the navigation decides whether the VitePress shell and prose take
25
+ the theme as well. It is off by default and remembered in this browser; in a narrower window it
26
+ is in the main navigation menu. Light/dark mode remains independent.
27
+
28
+ Examples that explicitly opt into Compact, including the sample on this page, remain Compact
29
+ either way; explicit theme demonstrations keep their own scopes. These documentation choices do
30
+ not change an application's opt-in.
31
+
32
+ ## Opt in
33
+
34
+ ### With an exported theme
35
+
36
+ ```ts
37
+ import '@cocoar/vue-ui/styles';
38
+ import '@cocoar/vue-ui/fonts/compact'; // or the font your theme names
39
+ import './coar-theme--myapp.css'; // Theme Editor → Compact → Download CSS
40
+ ```
41
+
42
+ ```html
43
+ <html class="coar-theme--myapp">
44
+ ```
45
+
46
+ See [Exporting a theme based on Compact](./theming.md#exporting-a-theme-based-on-compact) for what the
47
+ file contains.
48
+
49
+ ### With `.coar-compact`
50
+
51
+ Keep the normal stylesheet import and load the optional font entry:
52
+
53
+ ```ts
54
+ import '@cocoar/vue-ui/styles';
55
+ import '@cocoar/vue-ui/fonts/compact';
56
+ ```
57
+
58
+ ```vue
59
+ <CoarThemeScope mode="light">
60
+ <section class="coar-compact">
61
+ <!-- UI, calendar, grids, editors, viewer and map chrome -->
62
+ </section>
63
+ </CoarThemeScope>
64
+ ```
65
+
66
+ Use `.coar-compact` on `html` for an entire application, or on a container for a local comparison.
67
+ Areas outside the class retain the existing desktop and mobile presentation. The library does not
68
+ paint an application's page background; use `background: var(--coar-background-neutral-primary)`
69
+ on your page or panel.
70
+
71
+ Load `@cocoar/vue-ui/fonts` as before if the same document also displays the legacy typography.
72
+ The compact entry self-hosts Inter 400, 500, 600 and 700; it does not load fonts from a CDN.
73
+
74
+ ## Density and typography
75
+
76
+ | Role | Desktop | With `.coar-mobile` |
77
+ | --- | --- | --- |
78
+ | Body | 14 px / 1.5, weight 400 | 14 px / 1.5 |
79
+ | Actions and UI labels | 13 px, weight 400/500 | 14 px |
80
+ | Input text `xs / s / m / l` | 12 / 13 / 14 / 16 px | 16 / 16 / 16 / 18 px |
81
+ | Caption | 12 px | 12 px |
82
+ | Normal control | 36 px | 44 px |
83
+ | Controls `xs / s / m / l` | 24 / 32 / 36 / 44 px | 44 / 44 / 44 / 48 px |
84
+ | Control / panel radius | 6 / 8 px | 6 / 8 px |
85
+
86
+ Input text and action text are deliberately independent. A small visible icon is not a small touch
87
+ target. Dense calendar labels and document/code content have their own roles; they are not scaled
88
+ by a global zoom or density multiplier.
89
+
90
+ `--coar-field-font-size` sets the medium field text. Extra-small, small and large text default
91
+ to two pixels smaller, one pixel smaller and two pixels larger. Override those sizes independently
92
+ with `--coar-field-xs-font-size`, `--coar-field-s-font-size` and `--coar-field-l-font-size` on the
93
+ Compact boundary. Nested themes inherit these overrides; an explicit theme reset restores defaults.
94
+ `--coar-field-min-font-size` keeps all mobile field text at least 16 px without enlarging action text.
95
+ Single-line controls retain their existing heights. Multiline fields retain their previous minimum
96
+ row spacing and add leading when their text is larger than medium, so umlauts and descenders do not
97
+ clip or touch. Textareas with many rows can therefore grow to fit the larger type.
98
+ The playground's `/design-review/field-sizes` page exercises the same roles across text,
99
+ selection, date/time and OTP fields.
100
+
101
+ Fixed week grids keep a minimum day-column width and scroll horizontally inside the calendar
102
+ instead of clipping the last day. A horizontal gesture scrolls that overflow; range paging resumes
103
+ when all columns fit. Month overflow actions follow a separate target-size role. Timed-event resize
104
+ targets occupy a side rail, leaving the body available for moving. Short or narrow cards bound the
105
+ rail to half the card: they do not promise full-size touch targets, and arrow keys remain an alternative.
106
+
107
+ ```html
108
+ <section class="coar-compact coar-mobile">…</section>
109
+ ```
110
+
111
+ Live demo in phone size: [Compact fields and keyboard-aware sheet](https://docs.cocoar.dev/cocoar-ui-vue/mobile/#/compact)
112
+
113
+ <div class="coar-mobile">
114
+
115
+ **Demo — `mobile/demos/CompactDemo.vue`**
116
+
117
+ ```vue
118
+ <script setup lang="ts">
119
+ import { ref } from 'vue';
120
+ import { CoarButton, CoarCheckbox, CoarFormField, CoarSelect, CoarTextInput, useDialog } from '@cocoar/vue-ui';
121
+ import '@cocoar/vue-ui/fonts/compact';
122
+ import SheetDemoContact, { type Contact } from './SheetDemoContact.vue';
123
+
124
+ const name = ref('Anna Berger');
125
+ const status = ref<string | null>('review');
126
+ const notify = ref(true);
127
+ const message = ref('Synthetic data only.');
128
+ const dialog = useDialog();
129
+ const contact: Contact = {
130
+ name: 'Anna Berger', email: 'anna@example.com', phone: '+43 1 234 567',
131
+ company: 'Example', street: 'Ringstraße 12', postcode: '1010',
132
+ city: 'Vienna', country: 'Austria', notes: 'Synthetic compact presentation sample.',
133
+ };
134
+
135
+ async function edit() {
136
+ const result = await dialog.open<Contact>(
137
+ SheetDemoContact,
138
+ { title: 'Compact contact', presentation: 'sheet' },
139
+ { contact },
140
+ ).result;
141
+ message.value = result ? `Saved “${result.name}”.` : 'Editing cancelled.';
142
+ }
143
+ </script>
144
+
145
+ <template>
146
+ <section class="coar-compact compact-demo">
147
+ <p>Preview: 44 px controls, 14 px actions and separate 16 px input text.</p>
148
+ <CoarFormField label="Name"><CoarTextInput v-model="name" clearable /></CoarFormField>
149
+ <CoarFormField label="Status">
150
+ <CoarSelect v-model="status" :options="[
151
+ { value: 'review', label: 'In Prüfung' },
152
+ { value: 'planned', label: 'Geplant' },
153
+ { value: 'done', label: 'Abgeschlossen' },
154
+ ]" />
155
+ </CoarFormField>
156
+ <CoarCheckbox v-model="notify" label="Benachrichtigungen senden" />
157
+ <CoarButton full-width @click="edit">Edit compact contact</CoarButton>
158
+ <output>{{ message }}</output>
159
+ </section>
160
+ </template>
161
+
162
+ <style scoped>
163
+ .compact-demo { display: grid; gap: 12px; padding: 16px; background: var(--coar-background-neutral-primary); }
164
+ .compact-demo p { margin: 0; }
165
+ .compact-demo output { overflow-wrap: anywhere; color: var(--coar-text-neutral-secondary); }
166
+ </style>
167
+ ```
168
+
169
+ </div>
170
+
171
+ ## Theme inputs and local specialization
172
+
173
+ `CoarThemeScope` continues to accept accent, semantic colors, fonts and component radii.
174
+ Without an explicit accent, Compact uses Slate (`#334155`) for its primary fill instead of the
175
+ legacy blue. An accent you name is used as you chose it: the primary fill shows the colour itself.
176
+ The palette follows the library's common curve in both cases, including its absolute chroma:
177
+ derived accent text, borders and interaction states can therefore be saturated blue even with
178
+ the Slate default. Hover and pressed fills use the default theme's steps for each colour scheme.
179
+ Normal field outlines use a muted Slate tone; hover strengthens them only slightly.
180
+ The `--coar-border-input` and `--coar-border-input-hover` roles remain independently
181
+ customizable, separate from focus and semantic error colors.
182
+
183
+ ```vue
184
+ <CoarThemeScope :theme="{ accent: '#15803d', bodyFontFamily: 'Inter', buttonRadius: 8 }">
185
+ <section class="coar-compact">…</section>
186
+ </CoarThemeScope>
187
+ ```
188
+
189
+ Apply shared role overrides on a presentation boundary (`.coar-compact`, `CoarThemeScope`, or
190
+ `.coar-theme-scope`), where dependent aliases are recalculated. Setting a source variable on an
191
+ arbitrary descendant does not recalculate aliases that CSS already resolved on its ancestor.
192
+
193
+ ```html
194
+ <div class="coar-compact">
195
+ <section class="coar-theme-scope" style="--coar-ui-font-size: 14px; --coar-panel-radius: 10px">
196
+ …
197
+ </section>
198
+ </div>
199
+ ```
200
+
201
+ Package roles stay independent where their meaning differs: grid row heights, calendar event
202
+ geometry, document pages and editor line heights are not interchangeable control heights.
203
+ Consumer-supplied event colors, map geometry, PDF content and saved page layouts are not rewritten.
204
+
205
+ Inside compact, `.coar-theme-none` resets brand inputs to the compact light defaults without
206
+ turning the presentation into a mixture of legacy and compact tokens. It retains the surrounding
207
+ mobile presentation. Use a sibling outside `.coar-compact` for a fully legacy area.
208
+
209
+ ## Teleports and global renderers
210
+
211
+ Library overlays carry the theme in effect at their trigger, its local scope, mobile roles and
212
+ explicit overrides, including changes while open, whether the theme comes from `.coar-compact` or
213
+ from a theme class. Custom library-like teleports can use the Preview helper:
214
+
215
+ ```ts
216
+ const presentation = useCompactPresentationContext(() => origin.value);
217
+ ```
218
+
219
+ ```vue
220
+ <Teleport to="body">
221
+ <div :class="presentation.classes" :style="presentation.style">…</div>
222
+ </Teleport>
223
+ ```
224
+
225
+ The helper is exported from `@cocoar/vue-ui`; it observes source ancestors, not all computed CSS
226
+ properties. Register the origin as an element ref and keep it mounted while the tool is open.
227
+
228
+ - **Monaco:** themes are document-global. Compact editor colors activate only when the theme applies
229
+ to `html` or `body` (through `.coar-compact` or a theme class); local compact frames do not
230
+ promise an independent Monaco theme.
231
+ Compare legacy and compact editors in separate documents. Shared color roles are converted to
232
+ concrete Monaco colors; code typography remains independent of the UI scale.
233
+ - **Mermaid:** rendering is serialized with the configuration resolved from the theme in effect at
234
+ the diagram. Local mode and token changes rerender such diagrams; stored diagram source is unchanged.
235
+ - **Map:** Leaflet's controls, popups and tooltips follow the theme in effect at the map. Without a
236
+ theme the library leaves Leaflet's own styles, and yours, alone.
237
+ - **Page Builder:** authoring chrome uses the compact roles, including theme-aware accent ink for
238
+ selected canvas labels and frames. Saved layout and document geometry retain their meaning.
239
+ Embedded library widgets still use the host presentation.
240
+
241
+ The profile does not add missing touch features: Monaco editing, hover-only editor handles,
242
+ some viewer flyouts and desktop-oriented builder interactions retain their documented device limits.
243
+ Browser emulation is not native keyboard or safe-area acceptance.
244
+
245
+ This preview is for testing in real applications, not a completed design review. Native calendar
246
+ gestures and some grid editor and document viewer states still need verification. Keep the
247
+ theme class (or `.coar-compact`) behind an app-level toggle so testers can compare with the default
248
+ presentation.
@@ -21,9 +21,15 @@ import CoarThemeEditor from '@cocoar/vue-ui/theme-editor';
21
21
 
22
22
  ### Props
23
23
 
24
+ Mounted inside a `.coar-compact` area (the compatibility entry of the Preview
25
+ [compact presentation](./compact-presentation.md)), the editor targets that area rather than a
26
+ neighboring default area. Its teleported tools keep that area's presentation. The editor remains a
27
+ single live editor per document.
28
+
24
29
  | Prop | Type | Default | Description |
25
30
  |------|------|---------|-------------|
26
- | `hideDarkToggle` | `boolean` | `false` | Hides the light/dark toggle. Set to `true` when your app manages dark mode itself. |
31
+ | `hideDarkToggle` | `boolean` | `false` | Hides the light/dark toggle. Set to `true` when your app manages dark mode itself; the editor then edits the colours of the scheme your app shows. |
32
+ | `fontPreview` | `boolean` | `true` | Fetches a font chosen in the editor from Google Fonts when the page does not have it, to preview it. See [Type](#type). |
27
33
 
28
34
  ## The Token Tree
29
35
 
@@ -46,7 +52,13 @@ Changing a primitive ripples through semantic tokens, which ripple through every
46
52
 
47
53
  ### Presets
48
54
 
49
- Four built-in starting points: **Enterprise** (default), **Modern SaaS** (rounded), **Playful** (pill buttons, vivid accent), and **Minimal** (sharp corners, no shadows). Selecting a preset resets all other tabs to the preset's values.
55
+ Five built-in starting points: **Enterprise** (default), **Modern SaaS** (rounded), **Playful** (pill buttons, vivid accent), **Minimal** (sharp corners, no shadows) and **Compact** (Preview) (smaller Inter text, Slate surfaces, 36 px controls). Selecting a preset resets all other tabs to the preset's values.
56
+
57
+ A preset is a complete set of values on the same token contract. Modern SaaS, Playful and Minimal start from Enterprise and supply their own differences; Compact supplies the [compact presentation](./compact-presentation.md). Selecting a card loads its values without reloading the page, and every tab works on top of them. The editor starts with Enterprise, or Compact when mounted inside `.coar-compact`, but applies nothing to the app until you make a change.
58
+
59
+ ### Values of this theme
60
+
61
+ Available for **every preset**. It lists the model's values in three groups: typography (body, action, field and caption text), sizes (control heights, row height, paddings, radii) and surfaces and text as a light and a dark colour each. Change any of them independently; the reset button of a row restores the value of the loaded preset. Every preset can be exported as a standalone stylesheet, including before any edit.
50
62
 
51
63
  ### Brand
52
64
 
@@ -60,11 +72,46 @@ Sets the five base hue values that anchor the entire palette:
60
72
  | `--coar-warning` | `#cc821f` | Caution |
61
73
  | `--coar-info` | `#5e6b84` | Neutral informational |
62
74
 
63
- Each color opens a **palette editor** (floating panel) where you can fine-tune the L (lightness) and C (chroma) for individual steps 50–900 using oklch relative color syntax.
75
+ **Light and dark** (Preview). The Appearance switch at the top of the tab chooses the scheme you see and the one you edit. Every colour of the editor is calculated until you set it:
76
+
77
+ - A base colour is set in light. In dark it is locked and follows the light colour (or the dark half the preset gives it); unlock it to choose another dark colour, lock it again to follow light.
78
+ - Under each base colour, **Aa** shows the text on its solid fill (a primary button, a status badge) with its APCA contrast (Lc). The text colour is calculated for the best contrast in both schemes; unlock it to choose one. Below Lc 60 the editor warns that the text is hard to read; it never refuses the colour.
79
+
80
+ Each colour opens a **palette editor** (floating panel) for the scheme you edit, where you fine-tune L (lightness) and C (chroma) of every step 50–900, step 500 included, in oklch. A step you set is written as its `-lc` or `-lc-dark` input; the other scheme keeps its curve.
81
+
82
+ #### Base colours per scheme (Preview)
83
+
84
+ A value-based theme accepts one colour for both schemes, or a `light-dark()` pair,
85
+ through `--coar-theme-accent`, `--coar-theme-success`, `--coar-theme-error`,
86
+ `--coar-theme-warning` and `--coar-theme-info`. These inputs survive nested
87
+ light/dark boundaries and are carried into teleported overlays. For example,
88
+ over an exported theme:
89
+
90
+ ```css
91
+ .coar-theme--acme {
92
+ --coar-theme-accent: light-dark(#1183cd, #facc15);
93
+ --coar-theme-success: light-dark(#15803d, #0d9488);
94
+ --coar-color-green-600-lc-dark: 0.8 0.08;
95
+ }
96
+ ```
97
+
98
+ Each palette step has its own `-lc` and `-lc-dark` input, including step 500
99
+ (`l c` preserves the base colour). The four status palettes use `green`, `red`,
100
+ `amber` and `slate` in their token names. Existing base and palette overrides
101
+ keep working; `CoarThemeScope` inputs still take precedence over preset values.
102
+ The Brand tab writes exactly these inputs, and only those you set.
64
103
 
65
104
  ### Semantic
66
105
 
67
- Maps semantic roles to palette entries. Each row shows the resolved color, lets you pick a palette (Accent / Red / Green / Amber / Slate) and a step (50–900), and has a reset button that turns accent-colored when changed.
106
+ Text on a solid accent or status fill uses its own computed role:
107
+ `--coar-text-on-accent`, `--coar-text-on-success`, `--coar-text-on-error`,
108
+ `--coar-text-on-warning` and `--coar-text-on-info` (Preview). Each chooses white or
109
+ black by APCA, with or without a preset. A theme can override a role with any
110
+ colour or a `light-dark()` pair; text on neutral or tinted surfaces remains
111
+ palette-derived. See [text on saturated fills](./colors.md#text-on-saturated-fills-preview)
112
+ and the [migration note](../guide/migration-color-roles.md).
113
+
114
+ Maps semantic roles to palette entries, for the scheme you edit. Each row shows the resolved color, lets you pick a palette (Accent / Red / Green / Amber / Slate) and a step (50–900), and has a reset button that turns accent-colored when changed. A role you set in one scheme keeps its default in the other; set in both, it is exported as a `light-dark()` pair.
68
115
 
69
116
  This is the layer that connects intent to color: `--coar-background-semantic-error-bold` points at `Red / 600` by default. Reassigning it to `Amber / 600` would make all error surfaces amber — including form field borders, toast backgrounds, and the danger button — without touching any component code.
70
117
 
@@ -74,7 +121,15 @@ Controls the global radius scale (`xxs` → `xl`) plus per-component-group overr
74
121
 
75
122
  ### Type
76
123
 
77
- Font family for body text and headings, chosen from a curated list of Google Fonts. Fonts load on demand when selected.
124
+ Font family for body text and headings. Choose Poppins, Inter, Onest, DM Sans, Nunito, Geist or the system font from the list, or **Other font…** to type any family name.
125
+
126
+ **Trying a font without installing it.** When the page does not have the family you chose or typed, the editor fetches it from Google Fonts to show it, and says so under the field. This is a preview only:
127
+
128
+ - The downloaded theme names the font and does not contain it. The file starts with a comment that lists each font and what your app has to load for it.
129
+ - The request goes to Google and carries the IP address of whoever uses the editor. It happens only for a font chosen in the editor, never when the editor mounts. Switch it off with `:font-preview="false"`; a font the page lacks then shows its fallback.
130
+ - A name Google Fonts does not know shows only where that font is installed on the device.
131
+
132
+ The library self-hosts three font entries, none of which loads anything from a CDN: `@cocoar/vue-ui/fonts` (Poppins, Inter 400 and 700, Cascadia Code), `@cocoar/vue-ui/fonts/compact` (Inter 400 to 700) and `@cocoar/vue-ui/fonts/onest` (Onest 400 to 700). Load any other family yourself, self-hosted or from your font provider.
78
133
 
79
134
  ### Spacing
80
135
 
@@ -88,16 +143,32 @@ Box shadow per component group (buttons never have shadows; cards, menus, dialog
88
143
 
89
144
  A single duration multiplier that scales all `--coar-duration-*` tokens proportionally. Set to 0 for instant transitions, or push it above 2× to slow everything down for testing.
90
145
 
146
+ ## Resetting
147
+
148
+ The reset button of a control restores the value of the loaded preset; a lock does the same for a colour of one scheme. **Reset** in the header removes everything the editor changed, in light and in dark, and nothing else: the theme your app has without the editor shows again. Light or dark mode, `.coar-mobile`, other theme scopes and the state of your app are left as they are.
149
+
91
150
  ## Exporting
92
151
 
93
- Type a class name into the name field at the bottom of the editor (default: `custom`), then click **Download CSS** to get a scoped block containing only the tokens you changed:
152
+ Type a class name into the name field at the bottom of the editor (default: `custom`), then click **Download CSS**. The live preview and the download are the same CSS, written for another class. Whatever preset you start from, the file contains every value a fresh app needs, with your changes in place, not only the differences against a preset the app would not have. A colour you left locked is written as its calculation; one you set is written as its value, or as a `light-dark()` pair where light and dark differ:
94
153
 
95
154
  ```css
96
- /* coar-theme--myapp.css */
97
- .coar-theme--myapp {
98
- --coar-accent: #7C3AED;
99
- --coar-button-radius: var(--coar-radius-m);
100
- --coar-input-radius: var(--coar-radius-m);
155
+ /* coar-theme--myapp.css (shortened) */
156
+ @layer cocoar.tokens {
157
+ .coar-theme--myapp {
158
+ --coar-role-derivation: ; /* derive the dependent tokens from these values */
159
+ --coar-theme-accent: light-dark(#7c3aed, #a78bfa); /* a dark accent you unlocked */
160
+ --coar-color-accent-600-lc-dark: 0.72 0.12; /* a palette step you set in dark */
161
+ --coar-font-family-body: var(--coar-appearance-font-body, Inter, ui-sans-serif, system-ui, sans-serif);
162
+ --coar-ui-font-size: 13px;
163
+ /* … */
164
+ }
165
+
166
+ .coar-mobile .coar-theme--myapp,
167
+ .coar-theme--myapp.coar-mobile,
168
+ .coar-theme--myapp .coar-mobile {
169
+ --coar-interactive-row-height: 44px; /* touch sizes where the theme meets .coar-mobile */
170
+ /* … */
171
+ }
101
172
  }
102
173
  ```
103
174
 
@@ -119,8 +190,24 @@ import '@cocoar/vue-ui/styles';
119
190
  import './coar-theme--myapp.css';
120
191
  ```
121
192
 
193
+ `--coar-role-derivation` (an empty value) is what makes the library derive palette steps, aliases and component roles from the values of the theme, on its class and on the scopes nested in it. The app needs the theme class and this file, loaded after the Cocoar stylesheet; it does not need `.coar-compact`. Dark mode and `.coar-mobile` stay separate choices of the app and combine with the theme.
194
+
195
+ The calendar derives its `--coar-calendar-*` tokens on its outermost element, so with an active theme a value on a wrapper does not arrive. Put the class of a calendar skin on the component, `<CoarMonthView class="my-skin" />`: a rule on that element wins. `--coar-role-derivation: initial` on a wrapper also lets the values through, but it turns off the derivation for every component inside it, vue-ui included.
196
+
197
+ The file is written into the cascade layer of the library's tokens, where `.coar-compact` is too. Your own unlayered styles therefore keep the last word, exactly as with the class: the theme sets body text to 14 px on its scope, and an app that declares `html { font-size: 16px }` itself keeps its 16 px (and the `rem` sizes that follow from it).
198
+
199
+ The file names a font, it does not ship one, and it starts with a comment saying what to load. Load the font your theme uses yourself: `import '@cocoar/vue-ui/fonts/compact'` for the Inter weights of the Compact preset, `import '@cocoar/vue-ui/fonts/onest'` for Onest, or your own `@font-face` rules for another family.
200
+
122
201
  Because themes are classes, you can apply different themes to different subtrees:
123
202
 
203
+ > [!WARNING]
204
+ > Reliable isolation of **different nested presets** uses CSS `@scope` and requires
205
+ > Firefox 146+ (Chrome/Edge 119+ and Safari 18+ already support it). Older browsers
206
+ > retain the single-preset fallback, but outer preset values can leak into an inner
207
+ > preset. This does not raise the requirements for an ordinary single preset or
208
+ > light/dark switching. See [browser compatibility](../guide/theming.md#different-presets-inside-one-another-preview),
209
+ > including the Safari 26.0–26.3 native-field caveat. Put theme and mode classes on containers.
210
+
124
211
  ```html
125
212
  <html class="coar-theme--myapp">
126
213
  <!-- most of the app uses the custom theme -->
@@ -6,6 +6,9 @@ Our type system creates clear visual hierarchy and ensures readability across al
6
6
 
7
7
  ## Type Scale
8
8
 
9
+ These are the existing defaults. The opt-in [compact presentation](./compact-presentation.md) uses
10
+ Inter throughout with a smaller, separate UI/input scale; it does not change these defaults.
11
+
9
12
  Each row shows the style rendered at its actual size, with font metadata alongside.
10
13
 
11
14
  **Demo — `typography/demos/TypeScale.vue`**
@@ -48,8 +48,8 @@ document.documentElement.classList.toggle('dark-mode', isDark);
48
48
 
49
49
  ## Mobile Presentation
50
50
 
51
- Add `coar-mobile` to `body` or a local parent for touch-sized buttons and standard
52
- inputs. The existing component APIs stay unchanged. See [Mobile presentation](./mobile.md)
51
+ Add `coar-mobile` to `body` or a local parent for touch-sized buttons,
52
+ form fields, and the option and menu rows they open. The existing component APIs stay unchanged. See [Mobile presentation](./mobile.md)
53
53
  for the supported controls, sizing floors, and overlay scope limitations.
54
54
 
55
55
  ## 5. Overlay System
@@ -0,0 +1,28 @@
1
+ <!-- Generated from apps/docs/guide/migration-color-roles.md by apps/docs/scripts/sync-skill.mjs. Do not edit; edit the docs page. -->
2
+
3
+ # Migrating text on saturated fills
4
+
5
+ Primary and danger buttons, filled badges, selection marks and other saturated
6
+ accent surfaces now read their own `--coar-text-on-accent|success|error|warning|info`
7
+ role (Preview). Without an override, APCA chooses pure white or black from the
8
+ fill. This applies even without a theme or Theme Editor.
9
+
10
+ The library's default fills keep white text. A custom bright accent may now use
11
+ black instead of white. APCA and WCAG contrast ratios are different; automatic
12
+ selection does not guarantee a WCAG ratio of 4.5:1.
13
+
14
+ `--coar-text-on-bold` still exists and keeps its previous meaning, but changing it
15
+ alone no longer overrides text on these saturated fills. Themes that previously
16
+ set it should set the relevant new roles explicitly to keep their chosen ink:
17
+
18
+ ```css
19
+ .coar-theme--acme {
20
+ --coar-text-on-accent: light-dark(#102a43, #f0f8ff);
21
+ --coar-text-on-error: #ffffff;
22
+ }
23
+ ```
24
+
25
+ One ink is used for normal, hover and pressed fills. Palette-derived text on
26
+ neutral or softly tinted surfaces, including links, notes and validation
27
+ messages, is unaffected. Calendar event-specific ink policies and explicit
28
+ event text colours continue to work as before.
@@ -0,0 +1,40 @@
1
+ <!-- Generated from apps/docs/guide/migration-object-editor-values.md by apps/docs/scripts/sync-skill.mjs. Do not edit; edit the docs page. -->
2
+
3
+ # Migrating the Object Editor values
4
+
5
+ `@cocoar/vue-object-editor` now keeps values the way JSON Schema reads them. Before, an emptied value removed its
6
+ key, and `null`, `""`, `[]` and `{}` were treated as missing. Now they are values, and only **Remove value** in
7
+ the row's menu deletes a key.
8
+
9
+ ## TL;DR
10
+
11
+ | If you… | …then you need to |
12
+ | --- | --- |
13
+ | Edit configuration or other sparse JSON | **Nothing.** `null` and empty values now survive editing. |
14
+ | Use the editor as a form where "empty" should mean "not filled in" | Pass `presence="filled"`: emptying removes the key, and an empty value fails `required`, as before. |
15
+ | Call `validateValue` and count `""` as missing for `required` | Pass `{ presence: 'filled' }` as the third argument. |
16
+ | Wrote a value control that emits `undefined` for "empty" | Emit the empty value itself (`""`, `[]`). Emit `undefined` only when the control cannot show a value at all (an emptied number field): the editor then writes `null` where the schema allows it, and otherwise keeps the value. |
17
+
18
+ ## What changed
19
+
20
+ | | Before | Now (`presence="key"`) |
21
+ | --- | --- | --- |
22
+ | Emptied text | key removed | `""` |
23
+ | Emptied tag list | key removed | `[]` |
24
+ | Emptied number, date, choice | key removed | `null` when allowed, otherwise the value stays |
25
+ | `required` with `null` or `""` | fails | met |
26
+ | Removing a key | emptying the field | **Remove value** in the row's menu |
27
+ | `type: ["boolean", "null"]` | shown as a JSON value | Yes/no field with **Set to null** |
28
+
29
+ See [Values and absence](../components/object-editor.md#values-and-absence).
30
+
31
+ ## Type ids
32
+
33
+ | Before | Now |
34
+ | --- | --- |
35
+ | `list` (array of objects, read-only) | `group-list` |
36
+ | — | `list`: an ordered array of single values, edited row by row |
37
+ | `tags` for any array of strings | `tags` for unique strings (`uniqueItems: true`); strings in order are a `list` |
38
+
39
+ A schema that names `x-coar-type: "list"` for an array of objects now asks for a list of single values: change it to
40
+ `group-list`, or remove `x-coar-type` and let the editor recognize the array.