@cosmicdrift/kumiko-renderer 0.413.1 → 0.415.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.
Files changed (369) hide show
  1. package/dist/app/action-form-support.js +4 -0
  2. package/dist/app/content-previews.d.ts +39 -0
  3. package/dist/app/content-previews.js +28 -0
  4. package/dist/app/entity-edit-screen.js +2 -5
  5. package/dist/app/entity-list-screen.js +42 -59
  6. package/dist/app/form-schema.d.ts +1 -0
  7. package/dist/app/form-schema.js +24 -0
  8. package/dist/app/list-facets.d.ts +1 -0
  9. package/dist/app/list-facets.js +10 -1
  10. package/dist/app/list-sort-options.d.ts +4 -0
  11. package/dist/app/list-sort-options.js +11 -0
  12. package/dist/app/named-filter-facet.d.ts +16 -3
  13. package/dist/app/named-filter-facet.js +97 -5
  14. package/dist/app/projection-detail-body.d.ts +2 -4
  15. package/dist/app/projection-detail-body.js +7 -1
  16. package/dist/app/projection-detail-guidance-data.d.ts +7 -0
  17. package/dist/app/projection-detail-guidance-data.js +103 -0
  18. package/dist/app/projection-detail-guidance.d.ts +13 -0
  19. package/dist/app/projection-detail-guidance.js +197 -0
  20. package/dist/app/projection-detail-header-model.d.ts +1 -3
  21. package/dist/app/projection-detail-header-model.js +4 -8
  22. package/dist/app/projection-detail-header-region.d.ts +2 -1
  23. package/dist/app/projection-detail-header-region.js +63 -23
  24. package/dist/app/projection-detail-header.d.ts +6 -1
  25. package/dist/app/projection-detail-header.js +76 -18
  26. package/dist/app/projection-detail-navigation.d.ts +2 -0
  27. package/dist/app/projection-detail-navigation.js +13 -3
  28. package/dist/app/projection-detail-states.d.ts +3 -3
  29. package/dist/app/projection-list-body.js +4 -2
  30. package/dist/app/projection-list-render.js +3 -1
  31. package/dist/app/projection-list-shim.d.ts +4 -1
  32. package/dist/app/projection-list-shim.js +35 -8
  33. package/dist/app/reference-link.d.ts +3 -2
  34. package/dist/app/reference-link.js +19 -4
  35. package/dist/app/row-actions.js +3 -3
  36. package/dist/app/screen-access.d.ts +4 -0
  37. package/dist/app/screen-access.js +18 -0
  38. package/dist/app/screen-shared.js +3 -1
  39. package/dist/app/unique-label-keys.d.ts +1 -0
  40. package/dist/app/unique-label-keys.js +9 -0
  41. package/dist/app/use-entity-list-payload.d.ts +26 -0
  42. package/dist/app/use-entity-list-payload.js +59 -0
  43. package/dist/app/use-entity-range-facets.js +2 -3
  44. package/dist/app/use-facet-counts.d.ts +5 -0
  45. package/dist/app/use-facet-counts.js +7 -0
  46. package/dist/app/use-list-summary-row.d.ts +10 -0
  47. package/dist/app/use-list-summary-row.js +33 -0
  48. package/dist/app/use-named-filter-queue.d.ts +20 -0
  49. package/dist/app/use-named-filter-queue.js +9 -0
  50. package/dist/app/use-projection-detail-actions.d.ts +5 -4
  51. package/dist/app/use-projection-detail-actions.js +42 -1
  52. package/dist/app/use-projection-list-data.d.ts +5 -0
  53. package/dist/app/use-projection-list-data.js +35 -6
  54. package/dist/app/use-projection-list-query.d.ts +2 -0
  55. package/dist/app/use-projection-list-query.js +29 -16
  56. package/dist/app/use-related-list-tab-counts.js +5 -1
  57. package/dist/app/use-row-decoration.d.ts +13 -0
  58. package/dist/app/use-row-decoration.js +103 -0
  59. package/dist/app/use-screen-list-rows.d.ts +4 -1
  60. package/dist/app/use-screen-list-rows.js +14 -5
  61. package/dist/app/use-screen-list-table.d.ts +3 -1
  62. package/dist/app/use-screen-list-table.js +10 -1
  63. package/dist/app/write-failed-error.d.ts +1 -0
  64. package/dist/app/write-failed-error.js +10 -0
  65. package/dist/card-options.d.ts +25 -0
  66. package/dist/card-options.js +1 -0
  67. package/dist/compact-tap-classes.d.ts +1 -0
  68. package/dist/compact-tap-classes.js +3 -0
  69. package/dist/components/embedded-list-field.js +13 -12
  70. package/dist/components/list-empty-state.d.ts +13 -1
  71. package/dist/components/list-empty-state.js +20 -1
  72. package/dist/components/list-group-page-bridges.d.ts +1 -1
  73. package/dist/components/list-group-page-bridges.js +2 -2
  74. package/dist/components/related-list-section.js +4 -22
  75. package/dist/components/render-edit-action-button.d.ts +3 -1
  76. package/dist/components/render-edit-action-button.js +5 -3
  77. package/dist/components/render-edit-render-model.d.ts +2 -2
  78. package/dist/components/render-edit-types.d.ts +4 -2
  79. package/dist/components/render-edit.js +3 -1
  80. package/dist/components/render-list-hint-columns.d.ts +9 -0
  81. package/dist/components/render-list-hint-columns.js +87 -0
  82. package/dist/components/render-list-reference-columns.js +4 -2
  83. package/dist/components/render-list-row-tone.d.ts +3 -0
  84. package/dist/components/render-list-row-tone.js +10 -0
  85. package/dist/components/render-list-table-props.d.ts +9 -1
  86. package/dist/components/render-list-table-props.js +4 -1
  87. package/dist/components/render-list-toolbar-action.d.ts +1 -2
  88. package/dist/components/render-list-toolbar-model.d.ts +4 -1
  89. package/dist/components/render-list-toolbar-model.js +21 -6
  90. package/dist/components/render-list-toolbar.d.ts +3 -2
  91. package/dist/components/render-list-toolbar.js +8 -6
  92. package/dist/components/render-list-types.d.ts +6 -1
  93. package/dist/components/render-list.js +26 -7
  94. package/dist/components/use-render-edit-controlled-sync.js +3 -5
  95. package/dist/components/use-render-edit-draft-save.js +7 -9
  96. package/dist/components/use-render-edit-schema.d.ts +3 -0
  97. package/dist/components/use-render-edit-schema.js +15 -0
  98. package/dist/components/use-render-edit-state.d.ts +1 -0
  99. package/dist/components/use-render-edit-state.js +4 -1
  100. package/dist/components/use-render-edit-steps.js +2 -3
  101. package/dist/components/use-render-list-columns.d.ts +3 -1
  102. package/dist/components/use-render-list-columns.js +22 -10
  103. package/dist/context/screen-focus-context.d.ts +14 -0
  104. package/dist/context/screen-focus-context.js +28 -0
  105. package/dist/data-table-facet-types.d.ts +6 -0
  106. package/dist/data-table-view-types.d.ts +20 -1
  107. package/dist/headless/form/form-controller.js +3 -1
  108. package/dist/headless/form/zod-bridge.d.ts +7 -1
  109. package/dist/headless/form/zod-bridge.js +10 -0
  110. package/dist/headless/index.d.ts +2 -1
  111. package/dist/headless/index.js +1 -0
  112. package/dist/headless/pwa-service-worker-meta.d.ts +4 -0
  113. package/dist/headless/pwa-service-worker-meta.js +13 -0
  114. package/dist/headless/view-model/index.d.ts +1 -1
  115. package/dist/headless/view-model/list-file-display.js +3 -2
  116. package/dist/headless/view-model/list.js +16 -0
  117. package/dist/headless/view-model/types.d.ts +37 -0
  118. package/dist/hooks/list-column-layout.js +2 -1
  119. package/dist/hooks/list-server-groups.js +14 -1
  120. package/dist/hooks/list-state-schema.d.ts +1 -0
  121. package/dist/hooks/list-state-schema.js +9 -1
  122. package/dist/hooks/use-debounced-value.d.ts +1 -0
  123. package/dist/hooks/use-debounced-value.js +11 -0
  124. package/dist/hooks/use-list-aggregates.d.ts +5 -1
  125. package/dist/hooks/use-list-aggregates.js +9 -5
  126. package/dist/hooks/use-list-table.d.ts +2 -1
  127. package/dist/hooks/use-list-table.js +3 -9
  128. package/dist/hooks/use-list-url-state.d.ts +2 -0
  129. package/dist/hooks/use-list-url-state.js +12 -4
  130. package/dist/hooks/use-list-view-state.js +23 -3
  131. package/dist/hooks/use-reference-lookup.js +7 -2
  132. package/dist/hooks/use-remembered-list-params.d.ts +6 -2
  133. package/dist/hooks/use-remembered-list-params.js +18 -3
  134. package/dist/hooks/use-store.js +0 -1
  135. package/dist/i18n-defaults.js +39 -3
  136. package/dist/index.d.ts +7 -2
  137. package/dist/index.js +4 -1
  138. package/dist/live/dispatcher-live.js +2 -0
  139. package/dist/metric-types.d.ts +4 -0
  140. package/dist/primitives-record-guidance.d.ts +55 -0
  141. package/dist/primitives-record-guidance.js +1 -0
  142. package/dist/primitives.d.ts +47 -54
  143. package/dist/server-clock.d.ts +6 -0
  144. package/dist/server-clock.js +20 -0
  145. package/dist/session/session-ended.d.ts +1 -0
  146. package/dist/session/session-ended.js +2 -2
  147. package/dist/status-tone.d.ts +1 -0
  148. package/dist/status-tone.js +5 -0
  149. package/dist/web/app/browser-locale.js +1 -1
  150. package/dist/web/app/client-plugin.d.ts +6 -1
  151. package/dist/web/app/create-app.d.ts +2 -1
  152. package/dist/web/app/create-app.js +15 -5
  153. package/dist/web/app/dashboard-body.js +25 -11
  154. package/dist/web/app/dashboard-header.d.ts +2 -1
  155. package/dist/web/app/dashboard-header.js +19 -7
  156. package/dist/web/app/dashboard-list-panel.d.ts +12 -0
  157. package/dist/web/app/dashboard-list-panel.js +144 -0
  158. package/dist/web/app/dashboard-narrow-gate.d.ts +6 -0
  159. package/dist/web/app/dashboard-narrow-gate.js +6 -0
  160. package/dist/web/app/dashboard-narrow-order.d.ts +3 -0
  161. package/dist/web/app/dashboard-narrow-order.js +6 -0
  162. package/dist/web/app/dashboard-navigation-link.d.ts +12 -0
  163. package/dist/web/app/dashboard-navigation-link.js +21 -0
  164. package/dist/web/app/dashboard-panels.d.ts +7 -23
  165. package/dist/web/app/dashboard-panels.js +55 -123
  166. package/dist/web/app/dashboard-reference-list-table.d.ts +5 -1
  167. package/dist/web/app/dashboard-reference-list-table.js +13 -4
  168. package/dist/web/app/dashboard-shared.d.ts +23 -7
  169. package/dist/web/app/dashboard-shared.js +45 -17
  170. package/dist/web/app/dashboard-stat-group-panel.d.ts +14 -0
  171. package/dist/web/app/dashboard-stat-group-panel.js +74 -0
  172. package/dist/web/app/dashboard-text-panel.d.ts +12 -0
  173. package/dist/web/app/dashboard-text-panel.js +167 -0
  174. package/dist/web/app/dashboard-text.d.ts +2 -0
  175. package/dist/web/app/dashboard-text.js +1 -1
  176. package/dist/web/app/dashboard-visibility.js +1 -1
  177. package/dist/web/app/relative-time.js +2 -1
  178. package/dist/web/drawn-icons.d.ts +6 -0
  179. package/dist/web/drawn-icons.js +30 -0
  180. package/dist/web/editor/editor-footer.d.ts +28 -0
  181. package/dist/web/editor/editor-footer.js +23 -0
  182. package/dist/web/editor/editor-frame.d.ts +23 -0
  183. package/dist/web/editor/editor-frame.js +24 -0
  184. package/dist/web/editor/editor-header.d.ts +36 -0
  185. package/dist/web/editor/editor-header.js +30 -0
  186. package/dist/web/editor/editor-rail.d.ts +32 -0
  187. package/dist/web/editor/editor-rail.js +37 -0
  188. package/dist/web/editor/editor-workbench.d.ts +34 -0
  189. package/dist/web/editor/editor-workbench.js +19 -0
  190. package/dist/web/editor/index.d.ts +6 -0
  191. package/dist/web/editor/index.js +6 -0
  192. package/dist/web/editor/relative-when.d.ts +1 -0
  193. package/dist/web/editor/relative-when.js +18 -0
  194. package/dist/web/icons.js +6 -5
  195. package/dist/web/index.d.ts +9 -1
  196. package/dist/web/index.js +7 -1
  197. package/dist/web/layout/default-app-shell.js +6 -4
  198. package/dist/web/layout/focus-aware-sidebar.d.ts +4 -7
  199. package/dist/web/layout/focus-aware-sidebar.js +5 -7
  200. package/dist/web/layout/header-action-pinned.d.ts +8 -0
  201. package/dist/web/layout/header-action-pinned.js +25 -0
  202. package/dist/web/layout/nav-collapse-state.d.ts +7 -0
  203. package/dist/web/layout/nav-collapse-state.js +76 -0
  204. package/dist/web/layout/nav-tree.js +71 -28
  205. package/dist/web/layout/notification-bell.d.ts +7 -2
  206. package/dist/web/layout/notification-bell.js +16 -5
  207. package/dist/web/layout/page-header-slot.d.ts +2 -0
  208. package/dist/web/layout/page-header-slot.js +4 -0
  209. package/dist/web/layout/screen-focus.d.ts +8 -0
  210. package/dist/web/layout/screen-focus.js +42 -0
  211. package/dist/web/layout/shell-focus.d.ts +5 -4
  212. package/dist/web/layout/shell-focus.js +14 -7
  213. package/dist/web/layout/shell-header.d.ts +2 -1
  214. package/dist/web/layout/shell-header.js +84 -27
  215. package/dist/web/layout/shell-style.d.ts +3 -0
  216. package/dist/web/layout/shell-style.js +6 -0
  217. package/dist/web/layout/sidebar-open-state.d.ts +6 -0
  218. package/dist/web/layout/sidebar-open-state.js +28 -0
  219. package/dist/web/layout/uniform-bar-controls.d.ts +2 -2
  220. package/dist/web/layout/uniform-bar-controls.js +4 -3
  221. package/dist/web/layout/use-in-app-inbox.js +8 -1
  222. package/dist/web/layout/workspace-shell.d.ts +11 -1
  223. package/dist/web/layout/workspace-shell.js +9 -5
  224. package/dist/web/lib/upload-file-ref.d.ts +2 -2
  225. package/dist/web/lib/upload-file-ref.js +4 -9
  226. package/dist/web/presence/use-presence.js +7 -2
  227. package/dist/web/primitives/banner.d.ts +1 -1
  228. package/dist/web/primitives/banner.js +22 -9
  229. package/dist/web/primitives/calendar-day-picker.js +24 -5
  230. package/dist/web/primitives/card.js +18 -8
  231. package/dist/web/primitives/code-input.js +6 -1
  232. package/dist/web/primitives/data-table/actions-column.d.ts +2 -1
  233. package/dist/web/primitives/data-table/actions-column.js +7 -3
  234. package/dist/web/primitives/data-table/card-body.d.ts +6 -1
  235. package/dist/web/primitives/data-table/card-body.js +53 -6
  236. package/dist/web/primitives/data-table/card-frame.d.ts +8 -0
  237. package/dist/web/primitives/data-table/card-frame.js +9 -0
  238. package/dist/web/primitives/data-table/card-row.js +44 -7
  239. package/dist/web/primitives/data-table/card-sort-select.d.ts +6 -2
  240. package/dist/web/primitives/data-table/card-sort-select.js +10 -7
  241. package/dist/web/primitives/data-table/card-view.js +12 -2
  242. package/dist/web/primitives/data-table/column-picker-section.js +9 -2
  243. package/dist/web/primitives/data-table/column-resize-handle.js +3 -4
  244. package/dist/web/primitives/data-table/column-role.d.ts +1 -0
  245. package/dist/web/primitives/data-table/column-role.js +1 -0
  246. package/dist/web/primitives/data-table/data-cell-props.d.ts +5 -0
  247. package/dist/web/primitives/data-table/data-cell-props.js +5 -0
  248. package/dist/web/primitives/data-table/density.js +1 -0
  249. package/dist/web/primitives/data-table/facet-cluster.d.ts +2 -1
  250. package/dist/web/primitives/data-table/facet-cluster.js +2 -2
  251. package/dist/web/primitives/data-table/group-band.js +4 -0
  252. package/dist/web/primitives/data-table/hint-cell.d.ts +14 -0
  253. package/dist/web/primitives/data-table/hint-cell.js +68 -0
  254. package/dist/web/primitives/data-table/hint-column-width.d.ts +3 -0
  255. package/dist/web/primitives/data-table/hint-column-width.js +11 -0
  256. package/dist/web/primitives/data-table/measure-value.js +2 -3
  257. package/dist/web/primitives/data-table/row-action-column.d.ts +3 -0
  258. package/dist/web/primitives/data-table/row-action-column.js +4 -0
  259. package/dist/web/primitives/data-table/row-render-parts.d.ts +1 -1
  260. package/dist/web/primitives/data-table/row-render-parts.js +3 -2
  261. package/dist/web/primitives/data-table/sort-options-select.d.ts +22 -0
  262. package/dist/web/primitives/data-table/sort-options-select.js +46 -0
  263. package/dist/web/primitives/data-table/sortable-header.d.ts +3 -1
  264. package/dist/web/primitives/data-table/sortable-header.js +5 -3
  265. package/dist/web/primitives/data-table/table-body.d.ts +1 -1
  266. package/dist/web/primitives/data-table/table-body.js +5 -3
  267. package/dist/web/primitives/data-table/table-chrome.js +3 -1
  268. package/dist/web/primitives/data-table/table-content.js +12 -7
  269. package/dist/web/primitives/data-table/table-data-cell.js +9 -3
  270. package/dist/web/primitives/data-table/table-header-row.js +5 -2
  271. package/dist/web/primitives/data-table/table-view.js +22 -3
  272. package/dist/web/primitives/data-table/toolbar-end-cluster.js +1 -1
  273. package/dist/web/primitives/data-table/toolbar.d.ts +2 -0
  274. package/dist/web/primitives/data-table/toolbar.js +70 -7
  275. package/dist/web/primitives/data-table/totals-footer.d.ts +20 -0
  276. package/dist/web/primitives/data-table/totals-footer.js +41 -9
  277. package/dist/web/primitives/data-table/use-bulk-selection.js +2 -1
  278. package/dist/web/primitives/data-table/use-column-pins.js +4 -0
  279. package/dist/web/primitives/data-table/use-data-table-state.d.ts +1 -0
  280. package/dist/web/primitives/data-table/use-data-table-state.js +9 -5
  281. package/dist/web/primitives/data-table/use-measured-column-widths.js +5 -4
  282. package/dist/web/primitives/data-table/use-row-selection.js +22 -11
  283. package/dist/web/primitives/data-table/view-menu.js +7 -1
  284. package/dist/web/primitives/data-table-cell.d.ts +21 -2
  285. package/dist/web/primitives/data-table-cell.js +129 -26
  286. package/dist/web/primitives/embedded-file-cell.js +3 -2
  287. package/dist/web/primitives/embedded-list-cards.js +3 -4
  288. package/dist/web/primitives/facet-filter.d.ts +5 -3
  289. package/dist/web/primitives/facet-filter.js +36 -5
  290. package/dist/web/primitives/facet-search-filter.d.ts +2 -1
  291. package/dist/web/primitives/facet-search-filter.js +3 -2
  292. package/dist/web/primitives/facet-trigger-label.d.ts +8 -0
  293. package/dist/web/primitives/facet-trigger-label.js +9 -0
  294. package/dist/web/primitives/file-thumbnail.d.ts +6 -2
  295. package/dist/web/primitives/file-thumbnail.js +13 -6
  296. package/dist/web/primitives/file-upload.js +3 -2
  297. package/dist/web/primitives/file-view-action.d.ts +6 -0
  298. package/dist/web/primitives/file-view-action.js +22 -0
  299. package/dist/web/primitives/files-dropzone.js +20 -9
  300. package/dist/web/primitives/form-footer-parts.d.ts +0 -1
  301. package/dist/web/primitives/form.js +0 -1
  302. package/dist/web/primitives/hint-reason-row.d.ts +32 -0
  303. package/dist/web/primitives/hint-reason-row.js +45 -0
  304. package/dist/web/primitives/index.js +6 -0
  305. package/dist/web/primitives/layout-elements.d.ts +1 -1
  306. package/dist/web/primitives/layout-elements.js +3 -3
  307. package/dist/web/primitives/metric.js +20 -6
  308. package/dist/web/primitives/page-header.d.ts +1 -1
  309. package/dist/web/primitives/page-header.js +10 -2
  310. package/dist/web/primitives/pager.d.ts +3 -2
  311. package/dist/web/primitives/pager.js +31 -24
  312. package/dist/web/primitives/reason-box.d.ts +20 -0
  313. package/dist/web/primitives/reason-box.js +13 -0
  314. package/dist/web/primitives/record-breadcrumb.d.ts +3 -0
  315. package/dist/web/primitives/record-breadcrumb.js +11 -0
  316. package/dist/web/primitives/record-steps.d.ts +3 -0
  317. package/dist/web/primitives/record-steps.js +50 -0
  318. package/dist/web/primitives/record-summary.d.ts +3 -0
  319. package/dist/web/primitives/record-summary.js +18 -0
  320. package/dist/web/primitives/row-actions.d.ts +3 -1
  321. package/dist/web/primitives/row-actions.js +14 -5
  322. package/dist/web/primitives/segmented-select.js +10 -9
  323. package/dist/web/primitives/tabs.js +6 -1
  324. package/dist/web/pwa/pwa-support.d.ts +4 -0
  325. package/dist/web/pwa/pwa-support.js +131 -0
  326. package/dist/web/sse/live-events.js +2 -2
  327. package/dist/web/tokens.js +0 -3
  328. package/dist/web/ui/sidebar.d.ts +2 -1
  329. package/dist/web/ui/sidebar.js +4 -3
  330. package/dist/web/widgets/ai-text-field.js +3 -2
  331. package/dist/web/widgets/chart-parts.d.ts +7 -1
  332. package/dist/web/widgets/chart-parts.js +10 -4
  333. package/dist/web/widgets/collapsible-section.js +1 -1
  334. package/dist/web/widgets/dashboard-list-cards.d.ts +17 -0
  335. package/dist/web/widgets/dashboard-list-cards.js +46 -0
  336. package/dist/web/widgets/dashboard-list.d.ts +45 -5
  337. package/dist/web/widgets/dashboard-list.js +126 -25
  338. package/dist/web/widgets/drawer-panel-class.d.ts +1 -0
  339. package/dist/web/widgets/drawer-panel-class.js +9 -1
  340. package/dist/web/widgets/drawer-sizing.js +1 -1
  341. package/dist/web/widgets/drawer.js +2 -2
  342. package/dist/web/widgets/floating-panel.js +4 -2
  343. package/dist/web/widgets/index.d.ts +2 -0
  344. package/dist/web/widgets/index.js +2 -0
  345. package/dist/web/widgets/infinity-list.js +18 -11
  346. package/dist/web/widgets/pdf-viewer-toolbar.js +3 -2
  347. package/dist/web/widgets/preview-width-frame.d.ts +7 -0
  348. package/dist/web/widgets/preview-width-frame.js +10 -0
  349. package/dist/web/widgets/section-card.d.ts +1 -1
  350. package/dist/web/widgets/sheet-parts.js +3 -1
  351. package/dist/web/widgets/stacked-area-chrome.js +3 -3
  352. package/dist/web/widgets/stacked-area-tooltip.js +2 -10
  353. package/dist/web/widgets/stat-box-cell.d.ts +19 -0
  354. package/dist/web/widgets/stat-box-cell.js +10 -0
  355. package/dist/web/widgets/stat.d.ts +16 -1
  356. package/dist/web/widgets/stat.js +24 -7
  357. package/dist/web/widgets/status-badge.d.ts +7 -5
  358. package/dist/web/widgets/status-badge.js +2 -2
  359. package/dist/web/widgets/step-bar.d.ts +1 -1
  360. package/dist/web/widgets/step-bar.js +37 -7
  361. package/dist/web/widgets/step-list-row.d.ts +4 -0
  362. package/dist/web/widgets/step-list-row.js +22 -14
  363. package/dist/web/widgets/step-list.d.ts +12 -4
  364. package/dist/web/widgets/step-list.js +38 -20
  365. package/dist/web/widgets/upload-zone.d.ts +8 -1
  366. package/dist/web/widgets/upload-zone.js +13 -3
  367. package/package.json +5 -5
  368. package/src/changes.json +289 -0
  369. package/src/web/styles.css +15 -0
@@ -3,6 +3,7 @@ import { Icon } from "../icons.js";
3
3
  import { cn } from "../lib/cn.js";
4
4
  import "../react-css-custom-properties.js";
5
5
  import { fieldLabelId } from "./field.js";
6
+ import { useIsBelowSmViewport } from "./use-narrow-viewport.js";
6
7
  const ICON_COLOR_CLASS = {
7
8
  hint: "text-primary",
8
9
  info: "text-primary",
@@ -17,7 +18,7 @@ function variantClass(variant, compact) {
17
18
  case "error":
18
19
  return "border-destructive/50 text-destructive bg-destructive/10 dark:border-destructive";
19
20
  case "warning":
20
- return "border-status-warn/30 bg-status-warn/10 text-status-warn";
21
+ return "border-status-warn/30 bg-status-warn-surface text-status-warn";
21
22
  case "ok":
22
23
  return "border-status-ok/30 bg-status-ok-surface text-foreground";
23
24
  case "primary":
@@ -31,23 +32,35 @@ function variantClass(variant, compact) {
31
32
  }
32
33
  }
33
34
  function BannerParts({ parts }) {
34
- return parts?.map((part) => part.strong === true ? (_jsx("strong", { className: "font-semibold", children: part.text }, `strong:${part.text}`)) : (_jsx("span", { children: part.text }, `plain:${part.text}`)));
35
+ // Parts are a static ordered list; the occurrence counter keeps repeated texts (separators) unique.
36
+ const seen = new Map();
37
+ return parts?.map((part) => {
38
+ const base = `${part.strong === true ? "strong" : "plain"}:${part.text}`;
39
+ const occurrence = seen.get(base) ?? 0;
40
+ seen.set(base, occurrence + 1);
41
+ const key = `${base}:${occurrence}`;
42
+ return part.strong === true ? (_jsx("strong", { className: "font-semibold", children: part.text }, key)) : (_jsx("span", { children: part.text }, key));
43
+ });
35
44
  }
36
- function BannerText({ compact, title, titleTestId, children, parts, actionsBelow, }) {
37
- if (compact) {
38
- return (_jsxs("div", { className: "min-w-0 grow", children: [title !== undefined && (_jsxs(_Fragment, { children: [_jsx("strong", { "data-testid": titleTestId, className: "font-semibold", children: title }), " "] })), children, _jsx(BannerParts, { parts: parts })] }));
45
+ function BannerText({ compact, title: fullTitle, narrowTitle, narrowText, titleTestId, children: fullText, parts, actionsBelow, inline, }) {
46
+ const narrow = useIsBelowSmViewport();
47
+ const title = narrow && narrowTitle !== undefined ? narrowTitle : fullTitle;
48
+ const showsNarrowText = narrow && narrowText !== undefined;
49
+ const children = showsNarrowText ? narrowText : fullText;
50
+ if (compact || inline) {
51
+ return (_jsxs("div", { className: "min-w-0 grow", children: [title !== undefined && (_jsxs(_Fragment, { children: [_jsx("strong", { "data-testid": titleTestId, className: "font-semibold", children: title }), " "] })), _jsxs("span", { className: cn(inline && !showsNarrowText && "max-sm:hidden"), children: [children, !showsNarrowText && _jsx(BannerParts, { parts: parts })] })] }));
39
52
  }
40
- return (_jsxs("div", { className: "flex-1", children: [title !== undefined && (_jsx("div", { "data-testid": titleTestId, className: "font-semibold", children: title })), children, _jsx(BannerParts, { parts: parts }), actionsBelow] }));
53
+ return (_jsxs("div", { className: "flex-1", children: [title !== undefined && (_jsx("div", { "data-testid": titleTestId, className: "font-semibold", children: title })), children, !showsNarrowText && _jsx(BannerParts, { parts: parts }), actionsBelow] }));
41
54
  }
42
55
  function bannerLayoutClass(variant, compact, actionsBelow) {
43
- return cn("relative flex w-full items-center border", compact ? "gap-2 rounded-md px-2.5 py-2 text-[13px]" : "gap-3 rounded-lg px-4 py-3 text-sm",
56
+ return cn("relative flex w-full items-center border", compact ? "gap-2 rounded-md px-2.5 py-2 text-[13px]" : "gap-3 rounded-lg px-3.5 py-2.5 text-sm",
44
57
  // Viewport breakpoint like the form footer bar; actions drop below the text on phones.
45
58
  !compact &&
46
59
  !actionsBelow &&
47
60
  variant === "primary" &&
48
61
  "flex-col items-start sm:flex-row sm:items-center", actionsBelow && "items-start", variantClass(variant, compact));
49
62
  }
50
- export function DefaultBanner({ variant = "info", density = "default", icon, title, titleTestId, children, parts, actions, actionsPlacement = "end", padded, testId, id, }) {
63
+ export function DefaultBanner({ variant = "info", density = "default", icon, title, narrowTitle, narrowText, titleTestId, children, parts, actions, actionsPlacement = "end", padded, inline = false, testId, id, }) {
51
64
  const isError = variant === "error";
52
65
  const compact = density === "compact";
53
66
  // A compact banner is one line, so its actions always stay at the end.
@@ -57,7 +70,7 @@ export function DefaultBanner({ variant = "info", density = "default", icon, tit
57
70
  // at it is inert for screen readers — role="group" + aria-labelledby is
58
71
  // the actual mechanism, pointed at the label id Field emits (fieldLabelId).
59
72
  const bannerRole = id !== undefined ? "group" : isError ? "alert" : undefined;
60
- const banner = (_jsxs("div", { role: bannerRole, ...(id !== undefined && { "aria-labelledby": fieldLabelId(id) }), "data-testid": testId, "data-variant": variant, "data-density": density, className: bannerLayoutClass(variant, compact, actionsBelow), children: [icon !== undefined && (_jsx(Icon, { name: icon, className: cn("size-3.5 shrink-0", ICON_COLOR_CLASS[variant]) })), _jsx(BannerText, { compact: compact, title: title, titleTestId: titleTestId, parts: parts, actionsBelow: actionsBelow ? (_jsx("div", { "data-slot": "actions", className: "mt-3 flex flex-wrap gap-2", children: actions })) : undefined, children: children }), !actionsBelow && actions !== undefined && (_jsx("div", { "data-slot": "actions", className: cn(compact && "shrink-0"), children: actions }))] }));
73
+ const banner = (_jsxs("div", { role: bannerRole, ...(id !== undefined && { "aria-labelledby": fieldLabelId(id) }), "data-testid": testId, "data-variant": variant, "data-density": density, className: bannerLayoutClass(variant, compact, actionsBelow), children: [icon !== undefined && (_jsx(Icon, { name: icon, className: cn("size-3.5 shrink-0", ICON_COLOR_CLASS[variant]) })), _jsx(BannerText, { compact: compact, inline: inline, title: title, narrowTitle: narrowTitle, narrowText: narrowText, titleTestId: titleTestId, parts: parts, actionsBelow: actionsBelow ? (_jsx("div", { "data-slot": "actions", className: "mt-3 flex flex-wrap gap-2", children: actions })) : undefined, children: children }), !actionsBelow && actions !== undefined && (_jsx("div", { "data-slot": "actions", className: cn(compact && "shrink-0"), children: actions }))] }));
61
74
  // Page state: the banner sits alone in main (which no longer has padding).
62
75
  // The wrapper adds 24px outer spacing so the banner does not stick
63
76
  // edge-to-edge to the sidebar/browser.
@@ -1,5 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { DayPicker } from "react-day-picker";
3
+ import { de } from "react-day-picker/locale/de";
4
+ import { enUS } from "react-day-picker/locale/en-US";
5
+ import { es } from "react-day-picker/locale/es";
6
+ import { fr } from "react-day-picker/locale/fr";
7
+ import { it } from "react-day-picker/locale/it";
8
+ import { useLocale } from "../../index.js";
3
9
  import { cn } from "../lib/cn.js";
4
10
  const dropdownSelectClass = "rounded-sm border border-input bg-transparent px-1.5 py-0.5 text-sm font-medium " +
5
11
  "cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring";
@@ -10,16 +16,28 @@ const dropdownSelectClass = "rounded-sm border border-input bg-transparent px-1.
10
16
  function SelectDropdown({ options, className, ...selectProps }) {
11
17
  return (_jsx("select", { className: cn(dropdownSelectClass, className), ...selectProps, children: options?.map((opt) => (_jsx("option", { value: opt.value, disabled: opt.disabled, children: opt.label }, opt.value))) }));
12
18
  }
19
+ const dayPickerLocales = { de, es, fr, it, en: enUS };
20
+ // The rdp locale carries month/weekday names and the week start (de → Monday).
21
+ function dayPickerLocaleFor(appLocale) {
22
+ const language = appLocale.split("-")[0]?.toLowerCase() ?? "";
23
+ return dayPickerLocales[language] ?? enUS;
24
+ }
25
+ const navButtonClass = "inline-flex h-7 w-7 items-center justify-center rounded-sm text-muted-foreground " +
26
+ "hover:bg-accent hover:text-foreground " +
27
+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring";
28
+ // navLayout="around" renders prev/next as siblings of the caption inside
29
+ // `month`; the 3-column grid keeps them beside the dropdowns instead of on top.
13
30
  // Month/year selects come from SelectDropdown (components prop), so only the dropdowns container is styled here.
14
31
  const dayPickerClasses = {
15
32
  root: "rdp-root",
16
33
  months: "flex flex-col gap-2",
17
- month: "flex flex-col gap-2",
34
+ month: "grid grid-cols-[auto_1fr_auto] items-center gap-x-1 gap-y-2",
18
35
  month_caption: "flex justify-center items-center h-7 text-sm font-medium",
36
+ month_grid: "col-span-3",
19
37
  dropdowns: "flex items-center gap-1 text-sm font-medium",
20
- nav: "flex items-center gap-1 absolute right-1 top-2",
21
- button_previous: "inline-flex h-7 w-7 items-center justify-center rounded-sm hover:bg-accent",
22
- button_next: "inline-flex h-7 w-7 items-center justify-center rounded-sm hover:bg-accent",
38
+ chevron: "h-4 w-4 fill-current",
39
+ button_previous: navButtonClass,
40
+ button_next: navButtonClass,
23
41
  weekdays: "flex",
24
42
  weekday: "w-8 text-xs font-normal text-muted-foreground",
25
43
  week: "flex mt-1",
@@ -32,7 +50,8 @@ const dayPickerClasses = {
32
50
  disabled: "text-muted-foreground/30 pointer-events-none",
33
51
  };
34
52
  export default function CalendarDayPicker({ selected, onSelect, startMonth, endMonth, disabledMatchers, }) {
35
- return (_jsx(DayPicker, { mode: "single", captionLayout: "dropdown", startMonth: startMonth, endMonth: endMonth, selected: selected,
53
+ const appLocale = useLocale().locale();
54
+ return (_jsx(DayPicker, { mode: "single", captionLayout: "dropdown", navLayout: "around", locale: dayPickerLocaleFor(appLocale), startMonth: startMonth, endMonth: endMonth, selected: selected,
36
55
  // Without defaultMonth DayPicker opens on today, not on the chosen date.
37
56
  defaultMonth: selected, ...(disabledMatchers.length > 0 && { disabled: [...disabledMatchers] }), onSelect: (d) => onSelect(d), classNames: dayPickerClasses, components: { Dropdown: SelectDropdown } }));
38
57
  }
@@ -4,6 +4,20 @@ import { InsideScreenFormColumnContext } from "./metric.js";
4
4
  import "../react-css-custom-properties.js";
5
5
  import { cardFooter, cardFooterBorder, cardFooterInset, cardSurface } from "./card-styles.js";
6
6
  import { FormScreenShell } from "./form.js";
7
+ function cardBodyPadding(inline, hasHeader) {
8
+ if (inline)
9
+ return "px-4 pb-4 pt-3";
10
+ return hasHeader
11
+ ? "px-[var(--card-padding)] pb-[var(--card-padding)]"
12
+ : "p-[var(--card-padding)]";
13
+ }
14
+ function CardTitleRow({ slots, inline, }) {
15
+ const { title, subtitle, headerActions } = slots;
16
+ if (inline) {
17
+ return (_jsxs("div", { className: "flex flex-wrap items-baseline gap-x-2.5 gap-y-1", children: [title !== undefined && _jsx("h3", { className: "m-0 text-sm font-semibold", children: title }), subtitle !== undefined && (_jsx("div", { className: "text-[12.5px] text-muted-foreground", children: subtitle })), headerActions !== undefined && _jsx("div", { className: "ml-auto", children: headerActions })] }));
18
+ }
19
+ return (_jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [_jsxs("div", { className: "flex flex-col gap-1", children: [title !== undefined && (_jsx("h3", { className: "text-base font-semibold leading-none tracking-tight", children: title })), subtitle !== undefined && _jsx("div", { className: "text-sm text-muted-foreground", children: subtitle })] }), headerActions] }));
20
+ }
7
21
  // Generic card chrome (rounded-xl like the entity card), slot- and
8
22
  // options-based so the contract grows additively and consumers never have
9
23
  // to migrate.
@@ -16,10 +30,9 @@ export function DefaultCard({ slots, options, className, testId, dataAttributes,
16
30
  const fillHeight = options?.fillHeight ?? false;
17
31
  const framed = screenBody ? false : (options?.framed ?? true);
18
32
  const s = slots ?? {};
19
- const defaultHeader = s.title !== undefined ||
20
- s.subtitle !== undefined ||
21
- s.headerContent !== undefined ||
22
- s.headerActions !== undefined ? (_jsxs("div", { className: cn("flex flex-col gap-3 px-[var(--card-padding)] pt-6 pb-4", fillHeight && "shrink-0"), children: [(s.title !== undefined || s.subtitle !== undefined || s.headerActions !== undefined) && (_jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [_jsxs("div", { className: "flex flex-col gap-1", children: [s.title !== undefined && (_jsx("h3", { className: "text-base font-semibold leading-none tracking-tight", children: s.title })), s.subtitle !== undefined && (_jsx("p", { className: "text-sm text-muted-foreground", children: s.subtitle }))] }), s.headerActions] })), s.headerContent] })) : null;
33
+ const inlineHeader = options?.headerLayout === "inline";
34
+ const hasTitleRow = s.title !== undefined || s.subtitle !== undefined || s.headerActions !== undefined;
35
+ const defaultHeader = hasTitleRow || s.headerContent !== undefined ? (_jsxs("div", { className: cn("flex flex-col gap-3", inlineHeader ? "px-4 pt-3.5" : "px-[var(--card-padding)] pt-6 pb-4", fillHeight && "shrink-0"), children: [hasTitleRow && _jsx(CardTitleRow, { slots: s, inline: inlineHeader }), s.headerContent] })) : null;
23
36
  const header = s.header ?? defaultHeader;
24
37
  const hasHeader = header !== null && header !== undefined;
25
38
  const card = (_jsxs("div", { ...dataAttributes, "data-slot": "card", "data-testid": testId, className: cn(framed ? cardSurface({ radius }) : "flex flex-col",
@@ -29,10 +42,7 @@ export function DefaultCard({ slots, options, className, testId, dataAttributes,
29
42
  // Same "no flex-1" reasoning as DefaultForm's own fillHeight card:
30
43
  // sizes to content and only shrinks (min-h-0) once
31
44
  // an ancestor is itself height-constrained.
32
- fillHeight && "min-h-0 flex flex-col", className), children: [header, children != null && (_jsx("div", { className: cn("grow", screenBody && "flex flex-col gap-6", padded &&
33
- (hasHeader
34
- ? "px-[var(--card-padding)] pb-[var(--card-padding)]"
35
- : "p-[var(--card-padding)]"),
45
+ fillHeight && "min-h-0 flex flex-col", className), children: [header, children != null && (_jsx("div", { className: cn("grow", screenBody && "flex flex-col gap-6", padded && cardBodyPadding(inlineHeader, hasHeader),
36
46
  // The one region allowed to shrink and scroll internally — mirrors
37
47
  // FormSections' fillHeight === true && "min-h-0" treatment of the
38
48
  // section it wraps.
@@ -11,7 +11,12 @@ export function CodeInput(props) {
11
11
  const activeIndex = Math.min(value.length, length - 1);
12
12
  const hasSeparator = length >= MIN_LENGTH_FOR_SEPARATOR && length % 2 === 0;
13
13
  const handleChange = (e) => {
14
- const next = e.target.value.replace(/\D/g, "").slice(0, length);
14
+ const digits = e.target.value.replace(/\D/g, "");
15
+ // The caret is hidden and the active cell is always the end, so an insertion into a full code
16
+ // would shift digits the user never typed and auto-submit them.
17
+ if (value.length === length && digits.length > length)
18
+ return;
19
+ const next = digits.slice(0, length);
15
20
  props.onChange(next);
16
21
  if (next.length === length && next !== value)
17
22
  props.onComplete?.(next);
@@ -1,6 +1,7 @@
1
1
  import type { CSSProperties, ReactNode } from "react";
2
+ import "../../react-css-custom-properties.ts";
2
3
  export declare const ACTIONS_CONTENT_ATTRIBUTE = "data-actions-content";
3
- export declare function stickyActionsCellClass(fillsHeight: boolean): string;
4
+ export declare function stickyActionsCellClass(fillsHeight: boolean, inFooter?: boolean): string;
4
5
  export declare function ActionsHeaderCell({ label, style, absorbsLeftover, }: {
5
6
  readonly label: string;
6
7
  readonly style?: CSSProperties | undefined;
@@ -1,13 +1,17 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../../lib/cn.js";
3
3
  import { TableCell, TableHead } from "../../ui/table.js";
4
+ import { COLUMN_ROLE_ATTRIBUTE } from "./column-role.js";
4
5
  import { ROW_FOCUS_RING_CELL_CLASS } from "./use-row-keyboard-navigation.js";
6
+ import "../../react-css-custom-properties.js";
5
7
  export const ACTIONS_CONTENT_ATTRIBUTE = "data-actions-content";
6
- export function stickyActionsCellClass(fillsHeight) {
7
- return cn("md:sticky md:right-0 md:z-10 md:bg-background", fillsHeight && "md:bg-card");
8
+ export function stickyActionsCellClass(fillsHeight, inFooter = false) {
9
+ if (inFooter)
10
+ return "md:sticky md:right-0 md:z-10 md:bg-muted";
11
+ return cn("md:sticky md:right-0 md:z-10", fillsHeight ? "md:bg-card" : "md:bg-background");
8
12
  }
9
13
  export function ActionsHeaderCell({ label, style, absorbsLeftover, }) {
10
- return (_jsx(TableHead, { "data-testid": "column-actions",
14
+ return (_jsx(TableHead, { "data-testid": "column-actions", [COLUMN_ROLE_ATTRIBUTE]: "actions",
11
15
  // From md: sticky right-0 + bg-muted (= header tone) so the
12
16
  // action column stays at the right edge during horizontal
13
17
  // scroll on wider screens. Below md, actions scroll in
@@ -1,6 +1,11 @@
1
- import type { cardColumnRoles } from "@cosmicdrift/kumiko-framework/ui-types";
1
+ import { type cardColumnRoles } from "@cosmicdrift/kumiko-framework/ui-types";
2
2
  import type { ReactNode } from "react";
3
3
  import type { ListColumnViewModel, ListRowViewModel } from "../../../headless/index.ts";
4
4
  import type { DataTableModel } from "./use-data-table-state.ts";
5
5
  export type CardRoles = ReturnType<typeof cardColumnRoles<ListColumnViewModel>>;
6
+ export declare function splitLinkColumns(m: DataTableModel, row: ListRowViewModel, roles: CardRoles): {
7
+ readonly bodyRoles: CardRoles;
8
+ readonly linkColumns: readonly ListColumnViewModel[];
9
+ };
10
+ export declare function renderCardLinks(m: DataTableModel, row: ListRowViewModel, linkColumns: readonly ListColumnViewModel[]): ReactNode;
6
11
  export declare function renderCardBody(m: DataTableModel, row: ListRowViewModel, roles: CardRoles): ReactNode;
@@ -1,32 +1,79 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cardMetaLines } from "@cosmicdrift/kumiko-framework/ui-types";
2
3
  import { ChevronRight } from "lucide-react";
3
4
  import { cellLinkProp, DataTableCell, isBadgeColumn, isEmptyCellValue, isUnlabeledFalse, showsBareCheckMark, } from "../data-table-cell.js";
4
5
  import { CardLeadingImage } from "../file-thumbnail.js";
5
6
  import { columnCellPresentationProps } from "./data-cell-props.js";
6
7
  import { showFullTextOnHover } from "./table-footer.js";
7
- function cardCell(m, row, col) {
8
+ // The phone card shows the sentence and its (narrow) detail; the reason toggle stays a table feature.
9
+ function cardHint(hint) {
10
+ const { reasonField: _reason, reasonOpenField: _reasonOpen, reasonTitleField: _reasonTitle, detailField: _detail, narrowDetailField, narrowField: _narrowField, ...rest } = hint;
11
+ const detailField = narrowDetailField ?? _detail;
12
+ return { ...rest, ...(detailField !== undefined && { detailField }) };
13
+ }
14
+ function cardCell(m, row, col, { linksAllowed } = { linksAllowed: false }) {
8
15
  const { onCellChange } = m;
16
+ const opensRow = m.rowOpener(row) !== undefined;
9
17
  // A bare check mark in the subtitle line says nothing without its column.
10
18
  if (showsBareCheckMark(col.type, row.values[col.field], col.renderer))
11
19
  return col.label;
12
- return (_jsx(DataTableCell, { value: row.values[col.field], row: row.values, field: col.field, type: col.type, renderer: col.renderer, translate: m.tableTranslate, locale: m.tableLocale, ...columnCellPresentationProps(col), ...(col.fileDisplay !== undefined && { fileDisplay: col.fileDisplay, compactFile: true }), ...(onCellChange !== undefined && {
20
+ const shortSentence = col.hint?.narrowField === undefined ? undefined : row.values[col.hint.narrowField];
21
+ return (_jsx(DataTableCell, { value: isEmptyCellValue(shortSentence) ? row.values[col.field] : shortSentence, row: row.values, field: col.field, type: col.type, renderer: col.renderer, translate: m.tableTranslate, locale: m.tableLocale, ...columnCellPresentationProps(col), ...(col.hint !== undefined && { hint: cardHint(col.hint) }), ...(col.fileDisplay !== undefined && { fileDisplay: col.fileDisplay, compactFile: true }), ...(onCellChange !== undefined && {
13
22
  onChange: (value) => onCellChange(row.id, col.field, value),
14
- }), ...cellLinkProp(col, row, m.rowOpener(row) === undefined) }));
23
+ }), ...(col.rowActionLink === true &&
24
+ col.display === undefined && { display: "button" }), ...cellLinkProp(col, row, linksAllowed || !opensRow) }));
15
25
  }
16
26
  function cellTestIdOf(m, row, field) {
17
27
  return m.getCellTestId?.(row, field) ?? `cell-${row.id}-${field}`;
18
28
  }
29
+ function hasCardLink(row, col) {
30
+ return (!isEmptyCellValue(row.values[col.field]) && cellLinkProp(col, row, true).link !== undefined);
31
+ }
32
+ function needsControlOutsideOpener(row, col) {
33
+ return hasCardLink(row, col);
34
+ }
35
+ // A link inside the row's opener button would be an <a> or <button> in a
36
+ // <button>, so such columns of an openable card move out of the body and render below it.
37
+ export function splitLinkColumns(m, row, roles) {
38
+ if (m.rowOpener(row) === undefined)
39
+ return { bodyRoles: roles, linkColumns: [] };
40
+ const lead = roles.lead;
41
+ const leadColumn = lead !== undefined && needsControlOutsideOpener(row, lead) ? lead : undefined;
42
+ const linkMeta = roles.meta.filter((col) => needsControlOutsideOpener(row, col));
43
+ if (leadColumn === undefined && linkMeta.length === 0) {
44
+ return { bodyRoles: roles, linkColumns: [] };
45
+ }
46
+ return {
47
+ bodyRoles: {
48
+ ...roles,
49
+ lead: leadColumn === undefined ? lead : undefined,
50
+ meta: roles.meta.filter((col) => !linkMeta.includes(col)),
51
+ },
52
+ linkColumns: [...(leadColumn !== undefined ? [leadColumn] : []), ...linkMeta],
53
+ };
54
+ }
55
+ export function renderCardLinks(m, row, linkColumns) {
56
+ return (_jsx("div", { "data-testid": `card-links-${row.id}`, className: "flex flex-wrap items-center gap-x-3 text-[13px] leading-5", children: linkColumns.map((col) => (_jsx("span", { "data-testid": cellTestIdOf(m, row, col.field), children: cardCell(m, row, col, { linksAllowed: true }) }, col.field))) }));
57
+ }
58
+ function renderMetaCell(m, row, col) {
59
+ return (_jsx("div", { "data-testid": cellTestIdOf(m, row, col.field), className: "min-w-0 truncate leading-5", onPointerEnter: showFullTextOnHover, children: isBadgeColumn(col) ? (_jsx("span", { className: "inline-flex align-middle", children: cardCell(m, row, col) })) : (cardCell(m, row, col)) }, col.field));
60
+ }
19
61
  function renderCardMeta(m, row, metaColumns) {
20
- return (_jsx("div", { className: "min-w-0 overflow-x-clip", children: _jsx("div", { "data-testid": `card-meta-${row.id}`, className: "-ms-3 flex min-w-0 flex-wrap items-center text-[13px] leading-5 tabular-nums text-foreground-secondary", children: metaColumns.map((col) => (_jsxs("div", { className: "flex h-5 min-w-0 max-w-full items-center", children: [_jsx("span", { "aria-hidden": "true", className: "w-3 shrink-0 text-center", children: "\u00B7" }), _jsx("div", { "data-testid": cellTestIdOf(m, row, col.field), className: "min-w-0 truncate leading-5", onPointerEnter: showFullTextOnHover, children: isBadgeColumn(col) ? (_jsx("span", { className: "inline-flex align-middle", children: cardCell(m, row, col) })) : (cardCell(m, row, col)) })] }, col.field))) }) }));
62
+ return (_jsx("div", { className: "min-w-0", children: _jsx("div", { "data-testid": `card-meta-${row.id}`, className: "flex min-w-0 flex-col text-[13px] leading-5 tabular-nums text-foreground-secondary", children: cardMetaLines(metaColumns).map((line) => line[0]?.narrowInline === true ? (_jsx("div", { "data-testid": `card-vals-${row.id}-${line[0].field}`, className: "mt-1 flex h-5 min-w-0 max-w-full items-center gap-3 text-[12.5px]", children: line.map((col) => renderMetaCell(m, row, col)) }, line.map((col) => col.field).join("|"))) : (_jsx("div", { className: "flex h-5 min-w-0 max-w-full items-center", children: line.map((col) => renderMetaCell(m, row, col)) }, line.map((col) => col.field).join("|")))) }) }));
63
+ }
64
+ function renderCardLead(m, row, lead) {
65
+ if (lead === undefined || isEmptyCellValue(row.values[lead.field]))
66
+ return null;
67
+ return (_jsx("div", { "data-testid": cellTestIdOf(m, row, lead.field), className: "min-w-0 text-xs font-medium leading-5", children: cardCell(m, row, lead) }));
21
68
  }
22
69
  function renderCardHeading(m, row, roles) {
23
70
  const { title: cardTitleColumn, status: cardStatusColumn } = roles;
24
71
  const showStatus = cardStatusColumn !== undefined && !isEmptyCellValue(row.values[cardStatusColumn.field]);
25
- return (_jsxs("div", { className: "flex min-w-0 items-start justify-between gap-2", children: [cardTitleColumn !== undefined && (_jsx("span", { "data-testid": cellTestIdOf(m, row, cardTitleColumn.field), className: "min-w-0 truncate text-base font-semibold text-foreground", onPointerEnter: showFullTextOnHover, children: cardCell(m, row, cardTitleColumn) })), showStatus && (_jsx("span", { "data-testid": cellTestIdOf(m, row, cardStatusColumn.field), className: "shrink-0", children: cardCell(m, row, cardStatusColumn) }))] }));
72
+ return (_jsxs("div", { className: "flex min-w-0 items-start justify-between gap-2", children: [cardTitleColumn !== undefined && (_jsx("span", { "data-testid": cellTestIdOf(m, row, cardTitleColumn.field), className: "min-w-0 truncate text-[14.5px] font-semibold text-foreground", onPointerEnter: showFullTextOnHover, children: cardCell(m, row, cardTitleColumn) })), showStatus && (_jsx("span", { "data-testid": cellTestIdOf(m, row, cardStatusColumn.field), className: "shrink-0", children: cardCell(m, row, cardStatusColumn) }))] }));
26
73
  }
27
74
  export function renderCardBody(m, row, roles) {
28
75
  const { image: cardImageColumn, meta: cardMetaColumns } = roles;
29
76
  const metaColumns = cardMetaColumns.filter((col) => !isEmptyCellValue(row.values[col.field]) &&
30
77
  !isUnlabeledFalse(col.type, row.values[col.field], col.renderer));
31
- return (_jsxs(_Fragment, { children: [cardImageColumn?.fileDisplay !== undefined && (_jsx("div", { "data-testid": `card-image-${row.id}`, className: "shrink-0", children: _jsx(CardLeadingImage, { value: row.values[cardImageColumn.field], display: cardImageColumn.fileDisplay }) })), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [renderCardHeading(m, row, roles), metaColumns.length > 0 && renderCardMeta(m, row, metaColumns)] }), m.rowOpener(row) !== undefined && (_jsx(ChevronRight, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" }))] }));
78
+ return (_jsxs(_Fragment, { children: [cardImageColumn?.fileDisplay !== undefined && (_jsx("div", { "data-testid": `card-image-${row.id}`, className: "shrink-0", children: _jsx(CardLeadingImage, { value: row.values[cardImageColumn.field], display: cardImageColumn.fileDisplay }) })), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [renderCardLead(m, row, roles.lead), renderCardHeading(m, row, roles), metaColumns.length > 0 && renderCardMeta(m, row, metaColumns)] }), m.rowOpener(row) !== undefined && (_jsx(ChevronRight, { className: "size-4 shrink-0 text-border-strong", "aria-hidden": "true" }))] }));
32
79
  }
@@ -0,0 +1,8 @@
1
+ import type { DataTableModel } from "./use-data-table-state.ts";
2
+ type FrameInput = Pick<DataTableModel, "frame" | "belowSm">;
3
+ /** `frame: "card"` from sm: one bordered card around table or card list, summary row and pager. */
4
+ export declare function isInsideCardFrame(m: FrameInput): boolean;
5
+ /** `frame: "card"` below sm: every card of the card layout is bordered and rounded, with a gap. */
6
+ export declare function hasSeparateCardRows(m: FrameInput): boolean;
7
+ export declare const CARD_SURFACE_CLASS = "rounded-lg border border-border bg-card";
8
+ export {};
@@ -0,0 +1,9 @@
1
+ /** `frame: "card"` from sm: one bordered card around table or card list, summary row and pager. */
2
+ export function isInsideCardFrame(m) {
3
+ return m.frame === "card" && !m.belowSm;
4
+ }
5
+ /** `frame: "card"` below sm: every card of the card layout is bordered and rounded, with a gap. */
6
+ export function hasSeparateCardRows(m) {
7
+ return m.frame === "card" && m.belowSm;
8
+ }
9
+ export const CARD_SURFACE_CLASS = "rounded-lg border border-border bg-card";
@@ -1,12 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
3
  import { cn } from "../../lib/cn.js";
4
- import { rowToneClass } from "../data-table-cell.js";
4
+ import { cardToneClass } from "../data-table-cell.js";
5
5
  import { RowActionsCell } from "../row-actions.js";
6
- import { renderCardBody } from "./card-body.js";
6
+ import { renderCardBody, renderCardLinks, splitLinkColumns } from "./card-body.js";
7
+ import { CARD_SURFACE_CLASS, hasSeparateCardRows } from "./card-frame.js";
7
8
  import { renderExpandToggle, renderExpansion } from "./row-render-parts.js";
9
+ // The card's <li> opens the row on click; controls inside must not reach it.
10
+ function renderStopPropagation(className, testId, children) {
11
+ return (_jsx("div", { className: className, "data-testid": testId, onClick: (e) => e.stopPropagation(), onKeyDown: (e) => e.stopPropagation(), children: children }));
12
+ }
8
13
  function renderCardMenu(m, row, menuActions) {
9
- return (_jsx("div", { className: "shrink-0", onClick: (e) => e.stopPropagation(), onKeyDown: (e) => e.stopPropagation(), children: _jsx(RowActionsCell, { row: row, actions: menuActions, mode: m.rowActionMode, rowIsLink: m.onRowClick !== undefined, compact: true }) }));
14
+ return renderStopPropagation("shrink-0", undefined, _jsx(RowActionsCell, { row: row, actions: menuActions, mode: m.rowActionMode, rowIsLink: m.onRowClick !== undefined, compact: true }));
10
15
  }
11
16
  function renderCardOpenButton(openRow, body) {
12
17
  return (_jsx("button", { type: "button", className: "flex min-w-0 flex-1 cursor-pointer items-center gap-2 bg-transparent p-0 text-left", onKeyDown: (e) => {
@@ -17,12 +22,44 @@ function renderCardOpenButton(openRow, body) {
17
22
  openRow();
18
23
  }, children: body }));
19
24
  }
25
+ function renderCardButtons(m, row, buttonActions) {
26
+ return renderStopPropagation("flex justify-start", `row-${row.id}-card-buttons`, _jsx(RowActionsCell, { row: row, actions: buttonActions, mode: m.rowActionMode, compact: true, small: true }));
27
+ }
28
+ function cardLeftPadding(compact) {
29
+ return compact ? "pl-2" : "pl-4";
30
+ }
31
+ function cardRowBaseClass(m) {
32
+ return hasSeparateCardRows(m)
33
+ ? `flex min-h-[72px] items-center gap-2 py-3 ${CARD_SURFACE_CLASS}`
34
+ : "flex min-h-[72px] items-center gap-2 border-b border-border-row py-3";
35
+ }
36
+ function splitCardActions(m, row, opensRow) {
37
+ const menuMode = m.rowActionMode === "menu";
38
+ // "menu" mode keeps every action in the table's kebab; a phone card opens the row instead,
39
+ // unless the row cannot be opened, then the actions would be unreachable.
40
+ const cardActions = menuMode && opensRow ? [] : (m.menuActions ?? []);
41
+ return {
42
+ buttonActions: cardActions.filter((a) => !menuMode &&
43
+ (a.display === "button" || a.display === "link") &&
44
+ (a.isVisible === undefined || a.isVisible(row))),
45
+ menuActions: cardActions.filter((a) => menuMode || (a.display !== "button" && a.display !== "link")),
46
+ };
47
+ }
20
48
  export function renderCard(m, row, roles) {
21
- const { rowTone, menuActions } = m;
22
- const hasMenu = menuActions !== undefined && menuActions.length > 0;
49
+ const { rowTone } = m;
23
50
  const openRow = m.rowOpener(row);
24
- const body = renderCardBody(m, row, roles);
25
- const rowItem = (_jsxs("li", { "data-testid": m.rowTestId(row), "data-tone": rowTone?.(row), className: cn("flex min-h-[72px] items-center gap-2 border-b border-border-row py-3", rowToneClass(rowTone?.(row)), m.expansion !== undefined || m.selection.active ? "pl-2" : "pl-4", hasMenu ? "pr-2" : "pr-4", m.density.card), ...(openRow !== undefined && { onClick: openRow }), children: [m.selection.cardCheckbox(row), renderExpandToggle(m, row), openRow !== undefined ? renderCardOpenButton(openRow, body) : body, hasMenu && renderCardMenu(m, row, menuActions)] }, row.id));
51
+ const { buttonActions, menuActions } = splitCardActions(m, row, openRow !== undefined);
52
+ const hasMenu = menuActions.length > 0;
53
+ const hasButtons = buttonActions.length > 0;
54
+ const { bodyRoles, linkColumns } = splitLinkColumns(m, row, roles);
55
+ const body = renderCardBody(m, row, bodyRoles);
56
+ const main = openRow !== undefined ? renderCardOpenButton(openRow, body) : body;
57
+ // In a list with row tones every card carries a stripe (neutral = grey) so the cards align.
58
+ const toneClass = cardToneClass(rowTone === undefined ? undefined : (rowTone(row) ?? "neutral"));
59
+ const toned = toneClass !== "";
60
+ const rowItem = (_jsxs("li", { "data-testid": m.rowTestId(row), "data-tone": rowTone?.(row), className: cn(cardRowBaseClass(m), toneClass,
61
+ // A toned card already pads past its inner 4px stripe (see cardToneClass); a later pl-* would override it.
62
+ !toned && cardLeftPadding(m.expansion !== undefined || m.selection.active), hasMenu ? "pr-2" : "pr-4", m.density.card), ...(openRow !== undefined && { onClick: openRow }), children: [m.selection.cardCheckbox(row), renderExpandToggle(m, row), linkColumns.length > 0 || hasButtons ? (_jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [main, linkColumns.length > 0 && renderCardLinks(m, row, linkColumns), hasButtons && renderCardButtons(m, row, buttonActions)] })) : (main), hasMenu && renderCardMenu(m, row, menuActions)] }, row.id));
26
63
  if (m.expansion === undefined)
27
64
  return rowItem;
28
65
  // The expansion is a sibling <li>, outside the row's click target, so
@@ -1,14 +1,18 @@
1
1
  import type { ReactNode } from "react";
2
- import type { DataTableSort } from "../../../index.ts";
2
+ import type { DataTableProps, DataTableSort } from "../../../index.ts";
3
3
  type SortableColumn = {
4
4
  readonly field: string;
5
5
  readonly label: string;
6
6
  readonly sortable?: boolean;
7
7
  };
8
- export declare function CardSortSelect({ columns, sort, onSortChange, testId, }: {
8
+ type CardSortSelectProps = {
9
9
  readonly columns: readonly SortableColumn[];
10
10
  readonly sort: DataTableSort | null | undefined;
11
11
  readonly onSortChange: ((next: DataTableSort | null) => void) | undefined;
12
12
  readonly testId: string | undefined;
13
+ };
14
+ export declare function CardSortSelect({ sortOptions, summary, ...props }: CardSortSelectProps & {
15
+ readonly sortOptions?: DataTableProps["sortOptions"];
16
+ readonly summary?: string | undefined;
13
17
  }): ReactNode;
14
18
  export {};
@@ -1,13 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ArrowDown, ArrowUp } from "lucide-react";
3
3
  import { useOptionalTranslation } from "../../../index.js";
4
- // No column headers below the breakpoint, so the click-to-sort affordance
5
- // on SortableHeader has nothing to attach to. A single native <select> is
6
- // the whole fix — no custom widget, no menu — fed straight from the
7
- // columns marked sortable in the ViewModel. Options carry the resolved
8
- // {field, dir} directly so onChange can look the pick up by value instead
9
- // of parsing/casting the option string back apart.
10
- export function CardSortSelect({ columns, sort, onSortChange, testId, }) {
4
+ import { hasSortOptionsSelect, SortOptionsSelect } from "./sort-options-select.js";
5
+ // Screen-declared sortOptions replace the per-column entries.
6
+ export function CardSortSelect({ sortOptions, summary, ...props }) {
7
+ const { sort, onSortChange, testId } = props;
8
+ if (onSortChange !== undefined && hasSortOptionsSelect(sortOptions, onSortChange)) {
9
+ return (_jsx(SortOptionsSelect, { options: sortOptions, sort: sort, onSortChange: onSortChange, testId: testId !== undefined ? `${testId}-sort` : "render-list-sort", className: "px-4", chevron: summary === undefined, ...(summary !== undefined && { summary }) }));
10
+ }
11
+ return _jsx(ColumnSortSelect, { ...props });
12
+ }
13
+ function ColumnSortSelect({ columns, sort, onSortChange, testId }) {
11
14
  const translate = useOptionalTranslation();
12
15
  const sortableColumns = columns.filter((col) => col.sortable);
13
16
  if (onSortChange === undefined || sortableColumns.length === 0)
@@ -1,13 +1,23 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cardColumnRoles } from "@cosmicdrift/kumiko-framework/ui-types";
3
3
  import { cn } from "../../lib/cn.js";
4
+ import { hasSeparateCardRows, isInsideCardFrame } from "./card-frame.js";
4
5
  import { renderCard } from "./card-row.js";
5
6
  import { CardSortSelect } from "./card-sort-select.js";
6
7
  import { bandClassName, bandReactKey, bandTestId } from "./group-band.js";
7
8
  import { renderBand } from "./row-render-parts.js";
8
- import { TotalsCard } from "./totals-footer.js";
9
+ import { hasSortOptionsSelect, sortSummaryText } from "./sort-options-select.js";
10
+ import { SummaryCard, TotalsCard } from "./totals-footer.js";
9
11
  export function renderCardsView(m) {
10
12
  const { testId, totals, columns } = m;
11
13
  const roles = cardColumnRoles(columns);
12
- return (_jsx("div", { "data-testid": testId, className: "contents", children: _jsxs("div", { "data-testid": testId !== undefined ? `${testId}-cards` : "render-list-cards", className: "flex flex-col", children: [_jsx(CardSortSelect, { columns: columns, sort: m.sort, onSortChange: m.onSortChange, testId: testId }), _jsx("ul", { className: "m-0 list-none border-t border-border-row p-0", children: m.tableItems.map((item) => item.kind === "row" ? (renderCard(m, item.row, roles)) : (_jsx("li", { "data-testid": bandTestId(item), className: cn("border-b border-border-row", bandClassName(item)), children: renderBand(m, item) }, bandReactKey(item)))) }), totals !== undefined && _jsx(TotalsCard, { totals: totals, columnOf: m.columnOf })] }) }));
14
+ // Below sm the card sort line also carries the list size; from sm up the toolbar shows it.
15
+ const toolbarOwnsSort = m.toolbarSort === true && !m.belowSm && hasSortOptionsSelect(m.sortOptions, m.onSortChange);
16
+ const summary = m.belowSm ? sortSummaryText(m) : undefined;
17
+ const separateCards = hasSeparateCardRows(m);
18
+ return (_jsx("div", { "data-testid": testId, className: "contents", children: _jsxs("div", { "data-testid": testId !== undefined ? `${testId}-cards` : "render-list-cards", className: "flex flex-col", children: [!toolbarOwnsSort && (_jsx(CardSortSelect, { columns: columns, sort: m.sort, onSortChange: m.onSortChange, testId: testId, summary: summary, ...(m.sortOptions !== undefined && { sortOptions: m.sortOptions }) })), _jsx("ul", { className: separateCards
19
+ ? cn("m-0 flex list-none flex-col gap-2 p-0 pb-2", m.fillsHeight && "px-4")
20
+ : isInsideCardFrame(m)
21
+ ? "m-0 list-none p-0"
22
+ : "m-0 list-none border-t border-border-row p-0", children: m.tableItems.map((item) => item.kind === "row" ? (renderCard(m, item.row, roles)) : (_jsx("li", { "data-testid": bandTestId(item), className: cn("border-b border-border-row", bandClassName(item)), children: renderBand(m, item) }, bandReactKey(item)))) }), m.summaryRow !== undefined && !m.belowSm && _jsx(SummaryCard, { summary: m.summaryRow }), totals !== undefined && _jsx(TotalsCard, { totals: totals, columnOf: m.columnOf })] }) }));
13
23
  }
@@ -20,8 +20,15 @@ function PickerRow({ columns, index, label, isLastVisible, onChange }) {
20
20
  const column = columns[index];
21
21
  // Positions are relative to the order at pointer-down, so every move is idempotent.
22
22
  const drag = usePointerDrag({
23
- onStart: () => ({ snapshot: columns, from: index }),
24
- onMove: (start, { dy }) => onChange(moveColumn(start.snapshot, start.from, start.from + Math.round(dy / ROW_HEIGHT_PX))),
23
+ onStart: () => ({ snapshot: columns, from: index, lastTarget: index }),
24
+ onMove: (start, { dy }) => {
25
+ const target = start.from + Math.round(dy / ROW_HEIGHT_PX);
26
+ // Each onChange is a storage write plus a table re-render; skip pointer moves that stay on the same row.
27
+ if (target === start.lastTarget)
28
+ return;
29
+ start.lastTarget = target;
30
+ onChange(moveColumn(start.snapshot, start.from, target));
31
+ },
25
32
  });
26
33
  if (column === undefined)
27
34
  return null;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useRef } from "react";
3
- import { MAX_COLUMN_WIDTH_PX } from "../../../hooks/list-column-layout.js";
3
+ import { clampWidth, MAX_COLUMN_WIDTH_PX } from "../../../hooks/list-column-layout.js";
4
4
  import { useOptionalTranslation } from "../../../index.js";
5
5
  import { arrowKeyDelta, usePointerDrag } from "../../widgets/use-pointer-drag.js";
6
6
  import { EXPAND_COLUMN_WIDTH_PX, SELECT_COLUMN_WIDTH_PX } from "./use-measured-column-widths.js";
@@ -16,11 +16,10 @@ export function ColumnResizeHandle({ field, label, sizing, }) {
16
16
  const width = sizing.widthOf(field);
17
17
  const minWidth = sizing.minWidthOf(field);
18
18
  const draggedWidth = useRef(null);
19
- const clampToBounds = (value) => Math.min(MAX_COLUMN_WIDTH_PX, Math.max(minWidth, value));
20
19
  const drag = usePointerDrag({
21
20
  onStart: () => width,
22
21
  onMove: (startWidth, { dx }) => {
23
- const next = clampToBounds(startWidth + dx);
22
+ const next = clampWidth(startWidth + dx, minWidth);
24
23
  draggedWidth.current = next;
25
24
  sizing.setLiveWidth(field, next);
26
25
  },
@@ -37,7 +36,7 @@ export function ColumnResizeHandle({ field, label, sizing, }) {
37
36
  if (delta === undefined || delta.dx === 0)
38
37
  return;
39
38
  event.preventDefault();
40
- sizing.commit(field, clampToBounds(width + delta.dx));
39
+ sizing.commit(field, clampWidth(width + delta.dx, minWidth));
41
40
  };
42
41
  return (_jsx("hr", { "aria-orientation": "vertical", "aria-valuenow": Math.round(width), "aria-valuemin": minWidth, "aria-valuemax": MAX_COLUMN_WIDTH_PX,
43
42
  // title, not aria-label: getByLabel("<column>") would match a resize handle for every column.
@@ -0,0 +1 @@
1
+ export declare const COLUMN_ROLE_ATTRIBUTE = "data-column-role";
@@ -0,0 +1 @@
1
+ export const COLUMN_ROLE_ATTRIBUTE = "data-column-role";
@@ -4,4 +4,9 @@ export declare function columnCellPresentationProps(col: ListColumnViewModel): {
4
4
  optionLabels?: Readonly<Record<string, string>> | undefined;
5
5
  optionTones?: Readonly<Partial<Record<string, "accent" | "bad" | "critical" | "neutral" | "ok" | "warn">>> | undefined;
6
6
  grouping?: boolean | undefined;
7
+ hint?: import("../../../headless/index.ts").ListColumnHintViewModel | undefined;
8
+ display?: import("../../../headless/index.ts").ListColumnCellDisplay | undefined;
9
+ badgeToneField?: string | undefined;
10
+ badgeDot?: false | undefined;
11
+ emptyPlaceholder?: false | undefined;
7
12
  };
@@ -4,5 +4,10 @@ export function columnCellPresentationProps(col) {
4
4
  ...(col.optionLabels !== undefined && { optionLabels: col.optionLabels }),
5
5
  ...(col.optionTones !== undefined && { optionTones: col.optionTones }),
6
6
  ...(col.grouping !== undefined && { grouping: col.grouping }),
7
+ ...(col.hint !== undefined && { hint: col.hint }),
8
+ ...(col.display !== undefined && { display: col.display }),
9
+ ...(col.badgeToneField !== undefined && { badgeToneField: col.badgeToneField }),
10
+ ...(col.badgeDot !== undefined && { badgeDot: col.badgeDot }),
11
+ ...(col.emptyPlaceholder !== undefined && { emptyPlaceholder: col.emptyPlaceholder }),
7
12
  };
8
13
  }
@@ -3,6 +3,7 @@ const NO_DENSITY_CLASSES = { row: "", cell: "", header: "", card: "" };
3
3
  const FILL_EDGE_INSET = " first:pl-6! last:pr-6!";
4
4
  const DENSITY_CLASSES = {
5
5
  comfortable: NO_DENSITY_CLASSES,
6
+ relaxed: { row: "", cell: "sm:py-3!", header: "", card: "" },
6
7
  compact: { row: "h-8", cell: "p-1!", header: "px-1!", card: "min-h-14 py-2" },
7
8
  };
8
9
  /** Comfortable (and a table without `view`) adds no class at all, so the markup stays as it was. */
@@ -2,7 +2,8 @@ import type { ReactNode } from "react";
2
2
  import { type DataTableProps } from "../../../index.ts";
3
3
  type FacetClusterProps = Pick<DataTableProps, "filterFacets" | "filterValues" | "onFilterChange" | "onFilterReset" | "dateRangeFacets" | "onDateRangeChange" | "rangeFacets" | "onRangeChange" | "resetAll" | "notice"> & {
4
4
  readonly dense: boolean;
5
+ readonly pills: boolean;
5
6
  };
6
7
  /** The toolbar's filter controls; undefined when the list has none. */
7
- export declare function buildFacetCluster({ filterFacets, filterValues, onFilterChange, onFilterReset, dateRangeFacets, onDateRangeChange, rangeFacets, onRangeChange, resetAll, notice, dense, }: FacetClusterProps): ReactNode | undefined;
8
+ export declare function buildFacetCluster({ filterFacets, filterValues, onFilterChange, onFilterReset, dateRangeFacets, onDateRangeChange, rangeFacets, onRangeChange, resetAll, notice, dense, pills, }: FacetClusterProps): ReactNode | undefined;
8
9
  export {};