@k2b/ui 0.51.0 → 0.53.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 (442) hide show
  1. package/dist/base.css +20 -0
  2. package/dist/browser/actions/SplitButton.js +10 -1
  3. package/dist/browser/actions/SplitButton.js.map +1 -1
  4. package/dist/browser/actions/Toolbar.js +91 -53
  5. package/dist/browser/actions/Toolbar.js.map +1 -1
  6. package/dist/browser/actions/index.js +1 -1
  7. package/dist/browser/actions/index.js.map +1 -1
  8. package/dist/browser/charts/core/area.js +1 -1
  9. package/dist/browser/charts/core/area.js.map +1 -1
  10. package/dist/browser/charts/core/bar-base-render.js +10 -0
  11. package/dist/browser/charts/core/bar-base-render.js.map +1 -0
  12. package/dist/browser/charts/core/bar-common.js +63 -0
  13. package/dist/browser/charts/core/bar-common.js.map +1 -0
  14. package/dist/browser/charts/core/bar-labels.js +17 -0
  15. package/dist/browser/charts/core/bar-labels.js.map +1 -0
  16. package/dist/browser/charts/core/bar-render.js +10 -0
  17. package/dist/browser/charts/core/bar-render.js.map +1 -0
  18. package/dist/browser/charts/core/bar-series.js +112 -0
  19. package/dist/browser/charts/core/bar-series.js.map +1 -0
  20. package/dist/browser/charts/core/bubble.js +166 -0
  21. package/dist/browser/charts/core/bubble.js.map +1 -0
  22. package/dist/browser/charts/core/calendar.js +63 -47
  23. package/dist/browser/charts/core/calendar.js.map +1 -1
  24. package/dist/browser/charts/core/default-styles.js +83 -0
  25. package/dist/browser/charts/core/default-styles.js.map +1 -0
  26. package/dist/browser/charts/core/dot-options.js +28 -0
  27. package/dist/browser/charts/core/dot-options.js.map +1 -0
  28. package/dist/browser/charts/core/dots.js +12 -0
  29. package/dist/browser/charts/core/dots.js.map +1 -0
  30. package/dist/browser/charts/core/funnel-layout.js +79 -0
  31. package/dist/browser/charts/core/funnel-layout.js.map +1 -0
  32. package/dist/browser/charts/core/funnel.js +27 -0
  33. package/dist/browser/charts/core/funnel.js.map +1 -0
  34. package/dist/browser/charts/core/index.js +19 -2
  35. package/dist/browser/charts/core/index.js.map +1 -1
  36. package/dist/browser/charts/core/line-base.js +102 -0
  37. package/dist/browser/charts/core/line-base.js.map +1 -0
  38. package/dist/browser/charts/core/line-details.js +264 -0
  39. package/dist/browser/charts/core/line-details.js.map +1 -0
  40. package/dist/browser/charts/core/line-options.js +32 -0
  41. package/dist/browser/charts/core/line-options.js.map +1 -0
  42. package/dist/browser/charts/core/line-paths.js +60 -0
  43. package/dist/browser/charts/core/line-paths.js.map +1 -0
  44. package/dist/browser/charts/core/line.js +15 -0
  45. package/dist/browser/charts/core/line.js.map +1 -0
  46. package/dist/browser/charts/core/palette.js +11 -0
  47. package/dist/browser/charts/core/palette.js.map +1 -0
  48. package/dist/browser/charts/core/pareto.js +138 -0
  49. package/dist/browser/charts/core/pareto.js.map +1 -0
  50. package/dist/browser/charts/core/radar.js +101 -0
  51. package/dist/browser/charts/core/radar.js.map +1 -0
  52. package/dist/browser/charts/core/registry.js +14 -2
  53. package/dist/browser/charts/core/registry.js.map +1 -1
  54. package/dist/browser/charts/core/render-size.js +7 -2
  55. package/dist/browser/charts/core/render-size.js.map +1 -1
  56. package/dist/browser/charts/core/render.js +42 -7
  57. package/dist/browser/charts/core/render.js.map +1 -1
  58. package/dist/browser/charts/core/sankey-size.js +105 -0
  59. package/dist/browser/charts/core/sankey-size.js.map +1 -0
  60. package/dist/browser/charts/core/sankey.js +280 -0
  61. package/dist/browser/charts/core/sankey.js.map +1 -0
  62. package/dist/browser/charts/core/snapshot.js +5 -3
  63. package/dist/browser/charts/core/snapshot.js.map +1 -1
  64. package/dist/browser/charts/core/svg-barGauge.js +67 -0
  65. package/dist/browser/charts/core/svg-barGauge.js.map +1 -0
  66. package/dist/browser/charts/core/svg-boxplot.js +127 -0
  67. package/dist/browser/charts/core/svg-boxplot.js.map +1 -0
  68. package/dist/browser/charts/core/svg-common.js +1003 -0
  69. package/dist/browser/charts/core/svg-common.js.map +1 -0
  70. package/dist/browser/charts/core/svg-format.js +7 -0
  71. package/dist/browser/charts/core/svg-format.js.map +1 -0
  72. package/dist/browser/charts/core/svg-gauge.js +185 -0
  73. package/dist/browser/charts/core/svg-gauge.js.map +1 -0
  74. package/dist/browser/charts/core/svg-heatmap.js +80 -0
  75. package/dist/browser/charts/core/svg-heatmap.js.map +1 -0
  76. package/dist/browser/charts/core/svg-histogram.js +73 -0
  77. package/dist/browser/charts/core/svg-histogram.js.map +1 -0
  78. package/dist/browser/charts/core/svg-renderers.js +10 -1876
  79. package/dist/browser/charts/core/svg-renderers.js.map +1 -1
  80. package/dist/browser/charts/core/svg-scatter.js +114 -0
  81. package/dist/browser/charts/core/svg-scatter.js.map +1 -0
  82. package/dist/browser/charts/core/treemap.js +138 -0
  83. package/dist/browser/charts/core/treemap.js.map +1 -0
  84. package/dist/browser/charts/description.js.map +1 -1
  85. package/dist/browser/charts.js +2 -1
  86. package/dist/browser/charts.js.map +1 -1
  87. package/dist/browser/content/ChartExplorer.js +22 -7
  88. package/dist/browser/content/ChartExplorer.js.map +1 -1
  89. package/dist/browser/content/ChartRoot.js +88 -57
  90. package/dist/browser/content/ChartRoot.js.map +1 -1
  91. package/dist/browser/content/ChartSnapshotView.js +22 -12
  92. package/dist/browser/content/ChartSnapshotView.js.map +1 -1
  93. package/dist/browser/content/DataTable.js +186 -193
  94. package/dist/browser/content/DataTable.js.map +1 -1
  95. package/dist/browser/content/Lightbox.js +55 -23
  96. package/dist/browser/content/Lightbox.js.map +1 -1
  97. package/dist/browser/content/ThumbnailStrip.js +174 -0
  98. package/dist/browser/content/ThumbnailStrip.js.map +1 -0
  99. package/dist/browser/content/chart-bar.js +139 -191
  100. package/dist/browser/content/chart-bar.js.map +1 -1
  101. package/dist/browser/content/chart-calendar.js +30 -14
  102. package/dist/browser/content/chart-calendar.js.map +1 -1
  103. package/dist/browser/content/chart-inspection-core.js +41 -14
  104. package/dist/browser/content/chart-inspection-core.js.map +1 -1
  105. package/dist/browser/content/chart-message-catalog.js +26 -0
  106. package/dist/browser/content/chart-message-catalog.js.map +1 -1
  107. package/dist/browser/content/chart-sankey.js +13 -0
  108. package/dist/browser/content/chart-sankey.js.map +1 -0
  109. package/dist/browser/content/chart-svg.js +1 -1
  110. package/dist/browser/content/chart-svg.js.map +1 -1
  111. package/dist/browser/content/chart-time-axis.js +10 -108
  112. package/dist/browser/content/chart-time-axis.js.map +1 -1
  113. package/dist/browser/content/chart-time-calendar.js +108 -0
  114. package/dist/browser/content/chart-time-calendar.js.map +1 -0
  115. package/dist/browser/content/index.js +1 -0
  116. package/dist/browser/content/index.js.map +1 -1
  117. package/dist/browser/content/thumbnail-strip-messages.js +24 -0
  118. package/dist/browser/content/thumbnail-strip-messages.js.map +1 -0
  119. package/dist/browser/inputs/ChoiceInputs.js +132 -101
  120. package/dist/browser/inputs/ChoiceInputs.js.map +1 -1
  121. package/dist/browser/inputs/DatePicker.js +30 -21
  122. package/dist/browser/inputs/DatePicker.js.map +1 -1
  123. package/dist/browser/inputs/NumberInput.js +188 -160
  124. package/dist/browser/inputs/NumberInput.js.map +1 -1
  125. package/dist/browser/inputs/Select.js +433 -400
  126. package/dist/browser/inputs/Select.js.map +1 -1
  127. package/dist/browser/inputs/Switch.js +203 -77
  128. package/dist/browser/inputs/Switch.js.map +1 -1
  129. package/dist/browser/inputs/TextInput.js +212 -188
  130. package/dist/browser/inputs/TextInput.js.map +1 -1
  131. package/dist/browser/inputs/field-contract.js.map +1 -1
  132. package/dist/browser/inputs/field-suggestion-slot.js +21 -0
  133. package/dist/browser/inputs/field-suggestion-slot.js.map +1 -0
  134. package/dist/browser/inputs/field-suggestion-types.js +2 -0
  135. package/dist/browser/inputs/field-suggestion-types.js.map +1 -0
  136. package/dist/browser/inputs/field-suggestion.js +502 -0
  137. package/dist/browser/inputs/field-suggestion.js.map +1 -0
  138. package/dist/browser/inputs/index.js +2 -0
  139. package/dist/browser/inputs/index.js.map +1 -1
  140. package/dist/browser/inputs/markdown/MarkdownSelectionToolbar.js +330 -0
  141. package/dist/browser/inputs/markdown/MarkdownSelectionToolbar.js.map +1 -0
  142. package/dist/browser/inputs/suggestion-messages.js +160 -0
  143. package/dist/browser/inputs/suggestion-messages.js.map +1 -0
  144. package/dist/browser/internal/field.js +96 -77
  145. package/dist/browser/internal/field.js.map +1 -1
  146. package/dist/browser/layout/AppOverview.js +15 -5
  147. package/dist/browser/layout/AppOverview.js.map +1 -1
  148. package/dist/browser/layout/AppWorkspace.js +7 -5
  149. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  150. package/dist/browser/layout/DetailPanel.js +66 -411
  151. package/dist/browser/layout/DetailPanel.js.map +1 -1
  152. package/dist/browser/layout/DetailSections.js +8 -7
  153. package/dist/browser/layout/DetailSections.js.map +1 -1
  154. package/dist/browser/layout/Discussion.js +194 -246
  155. package/dist/browser/layout/Discussion.js.map +1 -1
  156. package/dist/browser/layout/PanelDialog.js +92 -68
  157. package/dist/browser/layout/PanelDialog.js.map +1 -1
  158. package/dist/browser/layout/detail-panel-messages.js +1 -1
  159. package/dist/browser/layout/detail-panel-messages.js.map +1 -1
  160. package/dist/browser/layout/index.js.map +1 -1
  161. package/dist/browser/surfaces/Field.js +102 -0
  162. package/dist/browser/surfaces/Field.js.map +1 -0
  163. package/dist/browser/surfaces/LinkCard.js +70 -21
  164. package/dist/browser/surfaces/LinkCard.js.map +1 -1
  165. package/dist/browser/surfaces/NoticeRow.js +75 -0
  166. package/dist/browser/surfaces/NoticeRow.js.map +1 -0
  167. package/dist/browser/surfaces/Section.js +441 -0
  168. package/dist/browser/surfaces/Section.js.map +1 -0
  169. package/dist/browser/surfaces/StatCell.js +82 -70
  170. package/dist/browser/surfaces/StatCell.js.map +1 -1
  171. package/dist/browser/surfaces/index.js +3 -0
  172. package/dist/browser/surfaces/index.js.map +1 -1
  173. package/dist/browser/surfaces/section-messages.js +25 -0
  174. package/dist/browser/surfaces/section-messages.js.map +1 -0
  175. package/dist/browser/surfaces/stat-cell-messages.js +4 -2
  176. package/dist/browser/surfaces/stat-cell-messages.js.map +1 -1
  177. package/dist/browser/widgets/DashboardFrame.js +93 -88
  178. package/dist/browser/widgets/DashboardFrame.js.map +1 -1
  179. package/dist/ssr/actions/SplitButton.js +10 -1
  180. package/dist/ssr/actions/SplitButton.js.map +1 -1
  181. package/dist/ssr/actions/Toolbar.js +48 -18
  182. package/dist/ssr/actions/Toolbar.js.map +1 -1
  183. package/dist/ssr/actions/index.js +1 -1
  184. package/dist/ssr/actions/index.js.map +1 -1
  185. package/dist/ssr/charts/core/area.js +1 -1
  186. package/dist/ssr/charts/core/area.js.map +1 -1
  187. package/dist/ssr/charts/core/bar-base-render.js +10 -0
  188. package/dist/ssr/charts/core/bar-base-render.js.map +1 -0
  189. package/dist/ssr/charts/core/bar-common.js +63 -0
  190. package/dist/ssr/charts/core/bar-common.js.map +1 -0
  191. package/dist/ssr/charts/core/bar-labels.js +17 -0
  192. package/dist/ssr/charts/core/bar-labels.js.map +1 -0
  193. package/dist/ssr/charts/core/bar-render.js +10 -0
  194. package/dist/ssr/charts/core/bar-render.js.map +1 -0
  195. package/dist/ssr/charts/core/bar-series.js +112 -0
  196. package/dist/ssr/charts/core/bar-series.js.map +1 -0
  197. package/dist/ssr/charts/core/bubble.js +166 -0
  198. package/dist/ssr/charts/core/bubble.js.map +1 -0
  199. package/dist/ssr/charts/core/calendar.js +63 -47
  200. package/dist/ssr/charts/core/calendar.js.map +1 -1
  201. package/dist/ssr/charts/core/default-styles.js +83 -0
  202. package/dist/ssr/charts/core/default-styles.js.map +1 -0
  203. package/dist/ssr/charts/core/dot-options.js +28 -0
  204. package/dist/ssr/charts/core/dot-options.js.map +1 -0
  205. package/dist/ssr/charts/core/dots.js +12 -0
  206. package/dist/ssr/charts/core/dots.js.map +1 -0
  207. package/dist/ssr/charts/core/funnel-layout.js +79 -0
  208. package/dist/ssr/charts/core/funnel-layout.js.map +1 -0
  209. package/dist/ssr/charts/core/funnel.js +27 -0
  210. package/dist/ssr/charts/core/funnel.js.map +1 -0
  211. package/dist/ssr/charts/core/index.js +19 -2
  212. package/dist/ssr/charts/core/index.js.map +1 -1
  213. package/dist/ssr/charts/core/line-base.js +102 -0
  214. package/dist/ssr/charts/core/line-base.js.map +1 -0
  215. package/dist/ssr/charts/core/line-details.js +264 -0
  216. package/dist/ssr/charts/core/line-details.js.map +1 -0
  217. package/dist/ssr/charts/core/line-options.js +32 -0
  218. package/dist/ssr/charts/core/line-options.js.map +1 -0
  219. package/dist/ssr/charts/core/line-paths.js +60 -0
  220. package/dist/ssr/charts/core/line-paths.js.map +1 -0
  221. package/dist/ssr/charts/core/line.js +15 -0
  222. package/dist/ssr/charts/core/line.js.map +1 -0
  223. package/dist/ssr/charts/core/palette.js +11 -0
  224. package/dist/ssr/charts/core/palette.js.map +1 -0
  225. package/dist/ssr/charts/core/pareto.js +138 -0
  226. package/dist/ssr/charts/core/pareto.js.map +1 -0
  227. package/dist/ssr/charts/core/radar.js +101 -0
  228. package/dist/ssr/charts/core/radar.js.map +1 -0
  229. package/dist/ssr/charts/core/registry.js +14 -2
  230. package/dist/ssr/charts/core/registry.js.map +1 -1
  231. package/dist/ssr/charts/core/render-size.js +7 -2
  232. package/dist/ssr/charts/core/render-size.js.map +1 -1
  233. package/dist/ssr/charts/core/render.js +42 -7
  234. package/dist/ssr/charts/core/render.js.map +1 -1
  235. package/dist/ssr/charts/core/sankey-size.js +105 -0
  236. package/dist/ssr/charts/core/sankey-size.js.map +1 -0
  237. package/dist/ssr/charts/core/sankey.js +280 -0
  238. package/dist/ssr/charts/core/sankey.js.map +1 -0
  239. package/dist/ssr/charts/core/snapshot.js +5 -3
  240. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  241. package/dist/ssr/charts/core/svg-barGauge.js +67 -0
  242. package/dist/ssr/charts/core/svg-barGauge.js.map +1 -0
  243. package/dist/ssr/charts/core/svg-boxplot.js +127 -0
  244. package/dist/ssr/charts/core/svg-boxplot.js.map +1 -0
  245. package/dist/ssr/charts/core/svg-common.js +1003 -0
  246. package/dist/ssr/charts/core/svg-common.js.map +1 -0
  247. package/dist/ssr/charts/core/svg-format.js +7 -0
  248. package/dist/ssr/charts/core/svg-format.js.map +1 -0
  249. package/dist/ssr/charts/core/svg-gauge.js +185 -0
  250. package/dist/ssr/charts/core/svg-gauge.js.map +1 -0
  251. package/dist/ssr/charts/core/svg-heatmap.js +80 -0
  252. package/dist/ssr/charts/core/svg-heatmap.js.map +1 -0
  253. package/dist/ssr/charts/core/svg-histogram.js +73 -0
  254. package/dist/ssr/charts/core/svg-histogram.js.map +1 -0
  255. package/dist/ssr/charts/core/svg-renderers.js +10 -1876
  256. package/dist/ssr/charts/core/svg-renderers.js.map +1 -1
  257. package/dist/ssr/charts/core/svg-scatter.js +114 -0
  258. package/dist/ssr/charts/core/svg-scatter.js.map +1 -0
  259. package/dist/ssr/charts/core/treemap.js +138 -0
  260. package/dist/ssr/charts/core/treemap.js.map +1 -0
  261. package/dist/ssr/charts/description.js.map +1 -1
  262. package/dist/ssr/charts.js +2 -1
  263. package/dist/ssr/charts.js.map +1 -1
  264. package/dist/ssr/content/ChartExplorer.js +16 -4
  265. package/dist/ssr/content/ChartExplorer.js.map +1 -1
  266. package/dist/ssr/content/ChartRoot.js +43 -17
  267. package/dist/ssr/content/ChartRoot.js.map +1 -1
  268. package/dist/ssr/content/ChartSnapshotView.js +7 -2
  269. package/dist/ssr/content/ChartSnapshotView.js.map +1 -1
  270. package/dist/ssr/content/DataTable.js +12 -16
  271. package/dist/ssr/content/DataTable.js.map +1 -1
  272. package/dist/ssr/content/Lightbox.js +32 -3
  273. package/dist/ssr/content/Lightbox.js.map +1 -1
  274. package/dist/ssr/content/ThumbnailStrip.js +103 -0
  275. package/dist/ssr/content/ThumbnailStrip.js.map +1 -0
  276. package/dist/ssr/content/chart-bar.js +139 -191
  277. package/dist/ssr/content/chart-bar.js.map +1 -1
  278. package/dist/ssr/content/chart-calendar.js +30 -14
  279. package/dist/ssr/content/chart-calendar.js.map +1 -1
  280. package/dist/ssr/content/chart-inspection-core.js +41 -14
  281. package/dist/ssr/content/chart-inspection-core.js.map +1 -1
  282. package/dist/ssr/content/chart-message-catalog.js +26 -0
  283. package/dist/ssr/content/chart-message-catalog.js.map +1 -1
  284. package/dist/ssr/content/chart-sankey.js +13 -0
  285. package/dist/ssr/content/chart-sankey.js.map +1 -0
  286. package/dist/ssr/content/chart-svg.js +1 -1
  287. package/dist/ssr/content/chart-svg.js.map +1 -1
  288. package/dist/ssr/content/chart-time-axis.js +10 -108
  289. package/dist/ssr/content/chart-time-axis.js.map +1 -1
  290. package/dist/ssr/content/chart-time-calendar.js +108 -0
  291. package/dist/ssr/content/chart-time-calendar.js.map +1 -0
  292. package/dist/ssr/content/index.js +1 -0
  293. package/dist/ssr/content/index.js.map +1 -1
  294. package/dist/ssr/content/thumbnail-strip-messages.js +24 -0
  295. package/dist/ssr/content/thumbnail-strip-messages.js.map +1 -0
  296. package/dist/ssr/inputs/ChoiceInputs.js +55 -40
  297. package/dist/ssr/inputs/ChoiceInputs.js.map +1 -1
  298. package/dist/ssr/inputs/DatePicker.js +30 -21
  299. package/dist/ssr/inputs/DatePicker.js.map +1 -1
  300. package/dist/ssr/inputs/NumberInput.js +33 -7
  301. package/dist/ssr/inputs/NumberInput.js.map +1 -1
  302. package/dist/ssr/inputs/Select.js +38 -7
  303. package/dist/ssr/inputs/Select.js.map +1 -1
  304. package/dist/ssr/inputs/Switch.js +79 -18
  305. package/dist/ssr/inputs/Switch.js.map +1 -1
  306. package/dist/ssr/inputs/TextInput.js +31 -7
  307. package/dist/ssr/inputs/TextInput.js.map +1 -1
  308. package/dist/ssr/inputs/field-contract.js.map +1 -1
  309. package/dist/ssr/inputs/field-suggestion-slot.js +21 -0
  310. package/dist/ssr/inputs/field-suggestion-slot.js.map +1 -0
  311. package/dist/ssr/inputs/field-suggestion-types.js +2 -0
  312. package/dist/ssr/inputs/field-suggestion-types.js.map +1 -0
  313. package/dist/ssr/inputs/field-suggestion.js +402 -0
  314. package/dist/ssr/inputs/field-suggestion.js.map +1 -0
  315. package/dist/ssr/inputs/index.js +2 -0
  316. package/dist/ssr/inputs/index.js.map +1 -1
  317. package/dist/ssr/inputs/markdown/MarkdownSelectionToolbar.js +293 -0
  318. package/dist/ssr/inputs/markdown/MarkdownSelectionToolbar.js.map +1 -0
  319. package/dist/ssr/inputs/suggestion-messages.js +160 -0
  320. package/dist/ssr/inputs/suggestion-messages.js.map +1 -0
  321. package/dist/ssr/internal/field.js +36 -24
  322. package/dist/ssr/internal/field.js.map +1 -1
  323. package/dist/ssr/layout/AppOverview.js +3 -3
  324. package/dist/ssr/layout/AppOverview.js.map +1 -1
  325. package/dist/ssr/layout/AppWorkspace.js +5 -1
  326. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  327. package/dist/ssr/layout/DetailPanel.js +24 -220
  328. package/dist/ssr/layout/DetailPanel.js.map +1 -1
  329. package/dist/ssr/layout/DetailSections.js +8 -7
  330. package/dist/ssr/layout/DetailSections.js.map +1 -1
  331. package/dist/ssr/layout/Discussion.js +56 -76
  332. package/dist/ssr/layout/Discussion.js.map +1 -1
  333. package/dist/ssr/layout/PanelDialog.js +40 -26
  334. package/dist/ssr/layout/PanelDialog.js.map +1 -1
  335. package/dist/ssr/layout/detail-panel-messages.js +1 -1
  336. package/dist/ssr/layout/detail-panel-messages.js.map +1 -1
  337. package/dist/ssr/layout/index.js.map +1 -1
  338. package/dist/ssr/surfaces/Field.js +58 -0
  339. package/dist/ssr/surfaces/Field.js.map +1 -0
  340. package/dist/ssr/surfaces/LinkCard.js +38 -5
  341. package/dist/ssr/surfaces/LinkCard.js.map +1 -1
  342. package/dist/ssr/surfaces/NoticeRow.js +39 -0
  343. package/dist/ssr/surfaces/NoticeRow.js.map +1 -0
  344. package/dist/ssr/surfaces/Section.js +295 -0
  345. package/dist/ssr/surfaces/Section.js.map +1 -0
  346. package/dist/ssr/surfaces/StatCell.js +29 -18
  347. package/dist/ssr/surfaces/StatCell.js.map +1 -1
  348. package/dist/ssr/surfaces/index.js +3 -0
  349. package/dist/ssr/surfaces/index.js.map +1 -1
  350. package/dist/ssr/surfaces/section-messages.js +25 -0
  351. package/dist/ssr/surfaces/section-messages.js.map +1 -0
  352. package/dist/ssr/surfaces/stat-cell-messages.js +4 -2
  353. package/dist/ssr/surfaces/stat-cell-messages.js.map +1 -1
  354. package/dist/ssr/widgets/DashboardFrame.js +6 -11
  355. package/dist/ssr/widgets/DashboardFrame.js.map +1 -1
  356. package/dist/styles.css +1 -1
  357. package/dist/tabler.css +2 -1
  358. package/dist/types/actions/SplitButton.d.ts +5 -1
  359. package/dist/types/actions/Toolbar.d.ts +20 -1
  360. package/dist/types/actions/index.d.ts +2 -2
  361. package/dist/types/charts/core/bar-base-render.d.ts +7 -0
  362. package/dist/types/charts/core/bar-common.d.ts +13 -0
  363. package/dist/types/charts/core/bar-labels.d.ts +2 -0
  364. package/dist/types/charts/core/bar-render.d.ts +7 -0
  365. package/dist/types/charts/core/bar-series.d.ts +7 -0
  366. package/dist/types/charts/core/bubble.d.ts +66 -0
  367. package/dist/types/charts/core/calendar.d.ts +9 -0
  368. package/dist/types/charts/core/default-styles.d.ts +1 -0
  369. package/dist/types/charts/core/dot-options.d.ts +27 -0
  370. package/dist/types/charts/core/dots.d.ts +7 -0
  371. package/dist/types/charts/core/funnel-layout.d.ts +43 -0
  372. package/dist/types/charts/core/funnel.d.ts +13 -0
  373. package/dist/types/charts/core/index.d.ts +19 -2
  374. package/dist/types/charts/core/line-base.d.ts +3 -0
  375. package/dist/types/charts/core/line-details.d.ts +30 -0
  376. package/dist/types/charts/core/line-options.d.ts +25 -0
  377. package/dist/types/charts/core/line-paths.d.ts +16 -0
  378. package/dist/types/charts/core/line.d.ts +2 -0
  379. package/dist/types/charts/core/palette.d.ts +5 -0
  380. package/dist/types/charts/core/pareto.d.ts +42 -0
  381. package/dist/types/charts/core/radar.d.ts +47 -0
  382. package/dist/types/charts/core/registry.d.ts +13 -1
  383. package/dist/types/charts/core/render-size.d.ts +1 -1
  384. package/dist/types/charts/core/render.d.ts +4 -1
  385. package/dist/types/charts/core/sankey-size.d.ts +38 -0
  386. package/dist/types/charts/core/sankey.d.ts +106 -0
  387. package/dist/types/charts/core/snapshot.d.ts +2 -0
  388. package/dist/types/charts/core/svg-barGauge.d.ts +3 -0
  389. package/dist/types/charts/core/svg-boxplot.d.ts +18 -0
  390. package/dist/types/charts/core/svg-common.d.ts +619 -0
  391. package/dist/types/charts/core/svg-format.d.ts +1 -0
  392. package/dist/types/charts/core/svg-gauge.d.ts +6 -0
  393. package/dist/types/charts/core/svg-heatmap.d.ts +6 -0
  394. package/dist/types/charts/core/svg-histogram.d.ts +16 -0
  395. package/dist/types/charts/core/svg-renderers.d.ts +9 -613
  396. package/dist/types/charts/core/svg-scatter.d.ts +23 -0
  397. package/dist/types/charts/core/treemap.d.ts +45 -0
  398. package/dist/types/charts/description.d.ts +102 -1
  399. package/dist/types/charts.d.ts +2 -1
  400. package/dist/types/content/ChartExplorer.d.ts +2 -0
  401. package/dist/types/content/ChartRoot.d.ts +1 -1
  402. package/dist/types/content/Lightbox.d.ts +2 -0
  403. package/dist/types/content/ThumbnailStrip.d.ts +29 -0
  404. package/dist/types/content/chart-bar.d.ts +62 -18
  405. package/dist/types/content/chart-inspection-core.d.ts +11 -1
  406. package/dist/types/content/chart-inspection.d.ts +1 -0
  407. package/dist/types/content/chart-message-catalog.d.ts +8 -0
  408. package/dist/types/content/chart-sankey.d.ts +3 -0
  409. package/dist/types/content/chart-svg.d.ts +1 -1
  410. package/dist/types/content/chart-time-axis.d.ts +3 -19
  411. package/dist/types/content/chart-time-calendar.d.ts +24 -0
  412. package/dist/types/content/index.d.ts +1 -0
  413. package/dist/types/content/thumbnail-strip-messages.d.ts +10 -0
  414. package/dist/types/inputs/ChoiceInputs.d.ts +2 -0
  415. package/dist/types/inputs/DatePicker.d.ts +4 -2
  416. package/dist/types/inputs/NumberInput.d.ts +2 -2
  417. package/dist/types/inputs/Select.d.ts +2 -2
  418. package/dist/types/inputs/Switch.d.ts +8 -2
  419. package/dist/types/inputs/TextInput.d.ts +4 -2
  420. package/dist/types/inputs/field-contract.d.ts +1 -0
  421. package/dist/types/inputs/field-suggestion-slot.d.ts +3 -0
  422. package/dist/types/inputs/field-suggestion-types.d.ts +103 -0
  423. package/dist/types/inputs/field-suggestion.d.ts +26 -0
  424. package/dist/types/inputs/index.d.ts +5 -1
  425. package/dist/types/inputs/markdown/MarkdownSelectionToolbar.d.ts +19 -0
  426. package/dist/types/inputs/suggestion-messages.d.ts +67 -0
  427. package/dist/types/internal/field.d.ts +2 -0
  428. package/dist/types/layout/AppOverview.d.ts +2 -0
  429. package/dist/types/layout/DetailPanel.d.ts +4 -37
  430. package/dist/types/layout/PanelDialog.d.ts +5 -0
  431. package/dist/types/layout/detail-panel-messages.d.ts +1 -1
  432. package/dist/types/layout/index.d.ts +1 -1
  433. package/dist/types/surfaces/Field.d.ts +20 -0
  434. package/dist/types/surfaces/LinkCard.d.ts +9 -1
  435. package/dist/types/surfaces/NoticeRow.d.ts +23 -0
  436. package/dist/types/surfaces/Section.d.ts +74 -0
  437. package/dist/types/surfaces/index.d.ts +6 -0
  438. package/dist/types/surfaces/section-messages.d.ts +10 -0
  439. package/dist/types/surfaces/stat-cell-messages.d.ts +1 -0
  440. package/dist/types/widgets/DashboardFrame.d.ts +4 -1
  441. package/package.json +3 -3
  442. /package/dist/{tabler-icons-15sezdfp.woff2 → tabler-icons-dafbdda4cb0cdcb2.woff2} +0 -0
@@ -0,0 +1,103 @@
1
+ import type { JSX } from "solid-js";
2
+ import type { FieldMeta } from "../internal/field";
3
+ import type { FieldProps, MaybeAccessor } from "./field-contract";
4
+ /**
5
+ * A value someone or something proposes for a field, such as a value an assistant read from a document. It is
6
+ * plain data: the field shows it and reports acceptance, it never fetches, stores, or submits it.
7
+ */
8
+ export type FieldSuggestion<T> = {
9
+ id: string;
10
+ state: "loading";
11
+ source?: string;
12
+ } | {
13
+ id: string;
14
+ state: "error";
15
+ source?: string;
16
+ onRetry?: () => void;
17
+ } | {
18
+ /** Stable per suggestion and source revision, such as `"re-4471:v3:amount"`. */
19
+ id: string;
20
+ state: "ready";
21
+ value: T;
22
+ /** Only `"high"` takes part in accept-all; `"low"` stays open until someone accepts it on its own. */
23
+ confidence: "high" | "low";
24
+ /** One sentence why the value is uncertain. */
25
+ reason?: string;
26
+ /** How the value reads, when the field cannot name it itself, such as an option from a remote list. */
27
+ label?: string;
28
+ /** Who proposes the value, such as an assistant's name. */
29
+ source?: string;
30
+ /** Set by the owner once the field's value came from this suggestion. */
31
+ accepted?: boolean;
32
+ };
33
+ /**
34
+ * Fields that can show a suggestion inside a `SuggestionGroup`, which brings the suggestion code; outside one the
35
+ * suggestion is ignored. The suggestion never becomes the value by itself: an empty field shows it as a placeholder,
36
+ * a value someone entered stays, and only accepting it reports `onSuggestionAccept` and then the normal
37
+ * `onValueChange` and `onValueCommit`.
38
+ */
39
+ export type FieldSuggestionProps<T> = {
40
+ /** Passing the prop at all reserves the status line, also while it resolves to `undefined`. */
41
+ suggestion?: MaybeAccessor<FieldSuggestion<T> | undefined>;
42
+ onSuggestionAccept?: (id: string) => void;
43
+ };
44
+ /**
45
+ * What a field shows for its suggestion:
46
+ * `open` — an empty, untouched field shows the suggestion as its placeholder;
47
+ * `differs` — the field holds someone's own value (or was deliberately emptied) and the suggestion only sits in the status line;
48
+ * `matches` — the value equals the suggestion, entered by hand;
49
+ * `accepted` — the value equals the suggestion and the owner marked it accepted.
50
+ */
51
+ export type FieldSuggestionView = "none" | "loading" | "error" | "open" | "differs" | "matches" | "accepted";
52
+ /** What a field wires into its control. Without a `SuggestionGroup` around it, every part is empty or unchanged. */
53
+ export type FieldSuggestionControl<T> = {
54
+ /** True when the field was given a `suggestion` prop inside a group; the status line is reserved from the first render. */
55
+ enabled: boolean;
56
+ view: () => FieldSuggestionView;
57
+ /** The ready suggestion's value, also once accepted or overruled. */
58
+ value: () => T | undefined;
59
+ /** The suggestion's text while the field shows it in place of a value. */
60
+ placeholder: () => string | undefined;
61
+ /** The control's `aria-describedby` with the status line's description added. */
62
+ describe: (describedBy: string | undefined) => string | undefined;
63
+ /** The suggested position a switch names beside itself. */
64
+ inline: () => string | undefined;
65
+ /** The field's class with the suggestion marker and its state (open, unsure, loading) added. */
66
+ field: (className: string | undefined) => string | undefined;
67
+ /** The status line beside a visible label, for `Field`'s `labelEnd`. */
68
+ status: JSX.Element;
69
+ /** The control, followed by the status line when the field has no visible label. */
70
+ under: (control: JSX.Element) => JSX.Element;
71
+ };
72
+ type SuggestionOwner<T> = FieldSuggestionProps<T> & Pick<FieldProps, "label" | "aria-label" | "disabled" | "error"> & {
73
+ readOnly?: boolean;
74
+ /** Bounds a number or a date key must keep to be offered. */
75
+ min?: unknown;
76
+ max?: unknown;
77
+ onValueChange?: (value: T) => void;
78
+ onValueCommit?: (value: T) => void;
79
+ };
80
+ export type FieldSuggestionOptions<T> = {
81
+ /** The field's props; disabled, read-only, error, and the value callbacks come from here unless overridden. */
82
+ props: SuggestionOwner<T>;
83
+ /** `false` turns suggestions off for a mode that cannot show them. */
84
+ enabled?: boolean;
85
+ meta: FieldMeta;
86
+ value: () => T | null | undefined;
87
+ /** Whether the field counts as empty; defaults to `null`, `undefined`, or `""`. */
88
+ blank?: () => boolean;
89
+ same?: (left: T, right: T) => boolean;
90
+ /** How a value reads; strings read as they are, booleans as yes and no. */
91
+ format?: (value: T) => string;
92
+ /** Sets the value; defaults to the normal change and commit callbacks. `label` is how the suggestion named it. */
93
+ apply?: (value: T, label: string | undefined) => void;
94
+ /**
95
+ * Whether the field would take this value as it is (step, enabled option); otherwise it offers no Accept. Values
96
+ * outside the field's `min` and `max` are never offered.
97
+ */
98
+ acceptable?: (value: T) => boolean;
99
+ /** The control does not speak its placeholder (a button or a switch), so the description names the value. */
100
+ spokenValue?: boolean;
101
+ };
102
+ export type CreateFieldSuggestion = <T>(options: FieldSuggestionOptions<T>) => FieldSuggestionControl<T>;
103
+ export {};
@@ -0,0 +1,26 @@
1
+ import { type JSX } from "solid-js";
2
+ import type { FieldSuggestion } from "./field-contract";
3
+ import type { FieldSuggestionView } from "./field-suggestion-types";
4
+ /** The one rule every field follows: a suggestion never replaces what someone entered. */
5
+ export declare function deriveSuggestionView<T>(suggestion: FieldSuggestion<T> | undefined, value: T | null | undefined, field: {
6
+ blank: boolean;
7
+ edited: boolean;
8
+ same: (left: T, right: T) => boolean;
9
+ }): FieldSuggestionView;
10
+ export type SuggestionGroupProps = {
11
+ /**
12
+ * The line above the fields, such as "Gustav read 8 fields from RE-4471.pdf", or what is still loading. Screen
13
+ * readers hear it when it changes. Defaults to "Suggestions from {source}".
14
+ */
15
+ title?: JSX.Element;
16
+ /** Who proposes the values; fields without their own `source` use it. */
17
+ source?: string;
18
+ /** Called once with every open, certain suggestion of an enabled, valid field. Apply them as one form change. */
19
+ onAcceptAll: (ids: string[]) => void;
20
+ /** Shown while a field's suggestion failed. */
21
+ onRetryAll?: () => void;
22
+ class?: string;
23
+ children: JSX.Element;
24
+ };
25
+ /** Groups fields with suggestions under one line: counts and "Accept all" for the certain ones. */
26
+ export declare function SuggestionGroup(props: SuggestionGroupProps): JSX.Element;
@@ -38,7 +38,9 @@ export type { FileDropDetails, FileDropOptions, FileDropRejection, FileDropTarge
38
38
  export { FileDropTarget, fileDropTarget } from "./FileDropTarget";
39
39
  export type { FileDropzoneProps, ImageCropperProps, ImageInputProps } from "./FileInputs";
40
40
  export { FileDropzone, ImageCropper, ImageInput } from "./FileInputs";
41
- export type { DateContext, FieldProps, MaybeAccessor, ValueFieldProps } from "./field-contract";
41
+ export type { DateContext, FieldProps, FieldSuggestion, FieldSuggestionProps, MaybeAccessor, ValueFieldProps } from "./field-contract";
42
+ export type { SuggestionGroupProps } from "./field-suggestion";
43
+ export { SuggestionGroup } from "./field-suggestion";
42
44
  export type { IconChoiceOption, IconChoicesProps } from "./IconChoices";
43
45
  export { IconChoices } from "./IconChoices";
44
46
  export { DEFAULT_ICON_GROUPS, DEFAULT_ICON_OPTIONS } from "./icon-options";
@@ -48,6 +50,8 @@ export type { MultiSelectFetchDataFn, MultiSelectInputProps, MultiSelectOption,
48
50
  export { MultiSelectInput } from "./MultiSelectInput";
49
51
  export type { MarkdownEditorProps } from "./markdown/MarkdownEditor";
50
52
  export { MarkdownEditor } from "./markdown/MarkdownEditor";
53
+ export type { MarkdownSelectionToolbarProps } from "./markdown/MarkdownSelectionToolbar";
54
+ export { MarkdownSelectionToolbar } from "./markdown/MarkdownSelectionToolbar";
51
55
  export type { SlashCommandsProps } from "./markdown/SlashCommands";
52
56
  export { SlashCommands } from "./markdown/SlashCommands";
53
57
  export type { NumberInputProps } from "./NumberInput";
@@ -0,0 +1,19 @@
1
+ import { type JSX } from "solid-js";
2
+ export declare const checkSelectionMessages: () => import("@k2b/stdlib").CatalogIssue[];
3
+ /**
4
+ * The box of a text range's first line in the editor's mirrored presentation layer, or nothing when that line is
5
+ * scrolled out of the surface. The layer holds the same text as the textarea, so its text nodes map offsets to places.
6
+ */
7
+ export declare const textRangeBox: (layer: HTMLElement, surface: HTMLElement, start: number, end: number) => DOMRect | null;
8
+ export type MarkdownSelectionToolbarProps = {
9
+ /** The editor's textarea, from `MarkdownEditor`'s `textareaRef`. The toolbar attaches once it is there. */
10
+ textarea: HTMLTextAreaElement | undefined;
11
+ };
12
+ /**
13
+ * A small formatting toolbar that floats above selected text in a `MarkdownEditor`: bold, italic, code, link, lists, and
14
+ * quote. Place it beside an editor with `noToolbar` and pass the editor's textarea. It appears once the pointer lets go
15
+ * of a selection and closes on Escape, a collapsed selection, or when the focus leaves both text and toolbar. Touch
16
+ * devices keep their own selection menu, so nothing of it renders there; the keyboard shortcuts work everywhere. It
17
+ * listens to the textarea itself, so editors without it carry none of its code.
18
+ */
19
+ export declare function MarkdownSelectionToolbar(props: MarkdownSelectionToolbarProps): JSX.Element;
@@ -0,0 +1,67 @@
1
+ type Source = {
2
+ source?: string;
3
+ };
4
+ declare const suggestionMessages: import("@k2b/stdlib").Catalog<{
5
+ suggestion: string;
6
+ accept: string;
7
+ acceptFor: ({ label }: {
8
+ label?: string;
9
+ }) => string;
10
+ unsure: string;
11
+ acceptedFrom: ({ source }: Source) => string;
12
+ offered: ({ source, value }: Source & {
13
+ value: string;
14
+ }) => string;
15
+ loading: ({ source }: Source) => string;
16
+ failed: string;
17
+ retry: string;
18
+ yes: string;
19
+ no: string;
20
+ switchValue: ({ value }: {
21
+ value: string;
22
+ }) => string;
23
+ describeOpen: ({ source, value }: Source & {
24
+ value?: string;
25
+ }) => string;
26
+ describeOffered: ({ source, value }: Source & {
27
+ value: string;
28
+ }) => string;
29
+ describeAccepted: ({ source }: Source) => string;
30
+ describeLoading: ({ source }: Source) => string;
31
+ describeFailed: string;
32
+ describeUnsure: ({ reason }: {
33
+ reason?: string;
34
+ }) => string;
35
+ announceAccepted: ({ label, value }: {
36
+ label?: string;
37
+ value: string;
38
+ }) => string;
39
+ announceOffered: ({ source, label, value, own }: Source & {
40
+ label?: string;
41
+ value: string;
42
+ own: string;
43
+ }) => string;
44
+ groupTitle: ({ source }: Source) => string;
45
+ countAccepted: ({ count }: {
46
+ count: number;
47
+ }) => string;
48
+ countOpen: ({ count }: {
49
+ count: number;
50
+ }) => string;
51
+ countUnsure: ({ count }: {
52
+ count: number;
53
+ }) => string;
54
+ acceptAll: ({ count }: {
55
+ count: number;
56
+ }) => string;
57
+ retryAll: string;
58
+ announceAcceptedAll: ({ count, unsure }: {
59
+ count: number;
60
+ unsure: readonly string[];
61
+ }) => string;
62
+ }>;
63
+ export type SuggestionMessages = ReturnType<(typeof suggestionMessages)["resolve"]>["t"];
64
+ /** Resolved from the inherited render locale. */
65
+ export declare const useSuggestionMessages: () => (() => SuggestionMessages);
66
+ export declare const checkSuggestionMessages: () => import("@k2b/stdlib").CatalogIssue[];
67
+ export {};
@@ -13,6 +13,8 @@ type FieldLayoutProps = {
13
13
  fill?: boolean;
14
14
  /** Composite controls use aria-labelledby instead of an HTML label target. */
15
15
  labelFor?: string | false;
16
+ /** Optional controls beside the label, outside its clickable target. */
17
+ labelEnd?: JSX.Element;
16
18
  } & Pick<FieldProps, "class" | "description" | "error" | "label" | "required" | "disabled">;
17
19
  export declare function Field(props: FieldLayoutProps): JSX.Element;
18
20
  type FieldAriaOwner = Pick<FieldProps, "aria-describedby" | "aria-label" | "description" | "error" | "label" | "required">;
@@ -24,6 +24,8 @@ export type AppOverviewEmptyStateProps = {
24
24
  };
25
25
  export type AppOverviewCardsProps = {
26
26
  class?: string;
27
+ /** `plain` is the closer grid for `LinkCard surface="plain"`; the cards' text lines up with the heading above. */
28
+ surface?: "paper" | "plain";
27
29
  children: JSX.Element;
28
30
  };
29
31
  type AppOverviewComponent = ((props: AppOverviewProps) => JSX.Element) & {
@@ -53,18 +53,6 @@ export type DetailPanelGroupProps = {
53
53
  title?: JSX.Element;
54
54
  class?: string;
55
55
  };
56
- export type DetailPanelTone = "accent" | "neutral" | "success" | "warning" | "danger";
57
- type DetailPanelSectionBaseProps = {
58
- title: JSX.Element;
59
- icon?: string;
60
- tone?: DetailPanelTone;
61
- description?: JSX.Element;
62
- /** How many things the section lists, as a chip after the title; `0` reads "None yet". */
63
- count?: number;
64
- /** Short state after the title, such as "2 of 4 done". */
65
- meta?: JSX.Element;
66
- class?: string;
67
- };
68
56
  /** One direct secondary command, rendered as a sibling icon button at the end of the row. */
69
57
  export type DetailPanelActionSecondary = {
70
58
  /** Icon class, for example `ti ti-trash`. */
@@ -120,38 +108,17 @@ export type DetailPanelRowProps = {
120
108
  trailing?: JSX.Element;
121
109
  class?: string;
122
110
  };
123
- export type DetailPanelSectionProps = DetailPanelSectionBaseProps & ({
124
- children?: JSX.Element;
125
- actions?: JSX.Element;
126
- collapsible?: false;
127
- summary?: never;
128
- defaultOpen?: never;
129
- open?: never;
130
- onOpenChange?: never;
131
- disabled?: never;
132
- } | {
133
- children: JSX.Element;
134
- actions?: never;
135
- collapsible: true;
136
- /** One line that says what the closed section holds, such as its newest entry; hidden while open. */
137
- summary?: JSX.Element;
138
- defaultOpen?: boolean;
139
- open?: boolean;
140
- onOpenChange?: (open: boolean) => void;
141
- disabled?: boolean;
142
- });
143
111
  type DetailPanelComponent = ((props: DetailPanelProps) => JSX.Element) & {
144
112
  Header: (props: DetailPanelHeaderProps) => JSX.Element;
145
113
  Body: (props: DetailPanelBodyProps) => JSX.Element;
146
114
  Summary: (props: DetailPanelSummaryProps) => JSX.Element;
147
115
  Group: (props: DetailPanelGroupProps) => JSX.Element;
148
- Section: (props: DetailPanelSectionProps) => JSX.Element;
149
116
  Action: (props: DetailPanelActionProps) => JSX.Element;
150
117
  Row: (props: DetailPanelRowProps) => JSX.Element;
151
118
  };
152
- /** A count chip, or "None yet" for zero; shared by sections and discussions. */
153
- export declare const DetailPanelCount: (props: {
154
- count: number;
155
- }) => JSX.Element;
119
+ /**
120
+ * The panel for one selected object. Its topics are `Section`s; the panel frames them itself, so they stand flat
121
+ * inside it.
122
+ */
156
123
  declare const DetailPanel: DetailPanelComponent;
157
124
  export default DetailPanel;
@@ -6,6 +6,11 @@ export type PanelDialogProps = {
6
6
  surface?: PanelDialogSurface;
7
7
  /** A 2 px edge in the tone's colour inside the dialog frame; the header shows the tone's icon instead of its own. */
8
8
  tone?: DialogTone;
9
+ /**
10
+ * The body shows a picture or a video edge to edge, and the header floats over it as glass chips: the title and
11
+ * subtitle in one chip, the actions in a group, and the close button. For documents, text, and tables leave it off.
12
+ */
13
+ media?: boolean;
9
14
  };
10
15
  export type PanelDialogHeaderProps = {
11
16
  title: JSX.Element;
@@ -1,4 +1,4 @@
1
- /** Counts and list folding shared by detail panel sections and discussions. */
1
+ /** Counts and list folding shared by sections, detail panels, and discussions. */
2
2
  declare const detailPanelMessages: import("@k2b/stdlib").Catalog<{
3
3
  noneYet: string;
4
4
  showOlder: ({ count }: {
@@ -12,7 +12,7 @@ export { APP_WORKSPACE_DETAIL_DEFAULT, APP_WORKSPACE_DETAIL_MAX, APP_WORKSPACE_D
12
12
  export { type BottomSheetProps, bottomSheetAdaptiveOptions, bottomSheetOptions, default as BottomSheet } from "./BottomSheet";
13
13
  export type { DataPanelProps } from "./DataPanel";
14
14
  export { DataPanel } from "./DataPanel";
15
- export type { DetailPanelActionButtonProps, DetailPanelActionCheckbox, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSectionProps, DetailPanelSummaryProps, DetailPanelTone, } from "./DetailPanel";
15
+ export type { DetailPanelActionButtonProps, DetailPanelActionCheckbox, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSummaryProps, } from "./DetailPanel";
16
16
  export { default as DetailPanel } from "./DetailPanel";
17
17
  export type { DetailAccessEntry, DetailAccessProps, DetailLinkItem, DetailLinksProps, DetailPresencePerson, DetailPresenceProps, DetailPresenceState, DetailPropertiesProps, DetailProperty, DetailTag, DetailTagsProps, } from "./DetailSections";
18
18
  export { DetailAccess, DetailLinks, DetailPresence, DetailPresenceSlot, DetailProperties, DetailTags } from "./DetailSections";
@@ -0,0 +1,20 @@
1
+ import { type JSX } from "solid-js";
2
+ /** Props of `Field`, a shown value; input fields share `FieldProps`. */
3
+ export type FieldRowProps = {
4
+ label: string;
5
+ /** The value; pass `children` instead for rich content. */
6
+ value?: JSX.Element;
7
+ children?: JSX.Element;
8
+ /** `true` copies a text `value`; a string copies that string, such as the full form of a shortened value. */
9
+ copy?: boolean | string;
10
+ /** `email` links a text value and breaks it only after the `@`. */
11
+ kind?: "text" | "email";
12
+ /** `row` puts the value beside its label and moves it below when it does not fit; `stack` always below. */
13
+ layout?: "row" | "stack";
14
+ class?: string;
15
+ };
16
+ /**
17
+ * A label on the left and its value on the right, with an optional copy button that always keeps its place. Its own
18
+ * module, so a section without fields carries neither the copy button nor its label.
19
+ */
20
+ export declare function Field(props: FieldRowProps): JSX.Element;
@@ -7,11 +7,19 @@ export type LinkCardProps = {
7
7
  onNavigate?: (event: LinkNavigateEvent) => void | Promise<void>;
8
8
  title: string;
9
9
  description: string;
10
- icon: string;
10
+ /** Tabler icon class of the icon tile. Omit it only together with `media`. */
11
+ icon?: string;
12
+ /** Replaces the icon tile, for example with a `FileTypeIcon` for a file. */
13
+ media?: JSX.Element;
11
14
  /** Glyph color. Omit it to use the host application's accent. */
12
15
  color?: LinkCardColor;
13
16
  /** One trailing fact, such as a count or a badge. */
14
17
  meta?: JSX.Element;
18
+ /**
19
+ * `paper` (default) is a framed card. `plain` is a flat entry for a quiet overview: no frame and no surface until
20
+ * hover, no chevron. Put plain cards in `AppOverview.Cards surface="plain"`.
21
+ */
22
+ surface?: "paper" | "plain";
15
23
  };
16
24
  export declare function LinkCard(props: LinkCardProps): JSX.Element;
17
25
  export default LinkCard;
@@ -0,0 +1,23 @@
1
+ import { type JSX } from "solid-js";
2
+ import type { NoticeTone } from "./NoticeCard";
3
+ export type NoticeRowProps = Omit<JSX.HTMLAttributes<HTMLElement>, "children" | "class"> & {
4
+ tone?: NoticeTone;
5
+ /**
6
+ * A Tabler icon class on a soft square tile at the start of the row, for the subject the notice is about, such as
7
+ * images. The tile is decorative; the text names the state.
8
+ */
9
+ tile?: string;
10
+ /** The tile's colour as a CSS colour, such as a subject token; defaults to the tone's ink. */
11
+ tileColor?: string;
12
+ /** One short line; truncate it rather than letting the row grow. */
13
+ children: JSX.Element;
14
+ /** The one next step at the end of the row, such as a `Button` or a `SplitButton`. It never wraps below the text. */
15
+ action?: JSX.Element;
16
+ class?: string;
17
+ };
18
+ /**
19
+ * A notice as one row of at least 48px: the tile, one line of text, then the action, all centred. It has the tint and
20
+ * tones of `NoticeCard`, so a notice that changes state in place, such as blocked, loading, and failed, keeps its row and
21
+ * the content below never moves.
22
+ */
23
+ export declare function NoticeRow(props: NoticeRowProps): JSX.Element;
@@ -0,0 +1,74 @@
1
+ import { type JSX } from "solid-js";
2
+ /** Named after the status tokens; a tone colours the frame, the title, and the icon, never the fill. */
3
+ export type SectionTone = "neutral" | "success" | "warning" | "danger" | "info" | "ai";
4
+ /** `sm` for detail panels and other narrow columns, `md` for topics on a full page. */
5
+ export type SectionSize = "sm" | "md";
6
+ /** `line` draws the light 1 px frame; inside another frame a section always stands flat. */
7
+ export type SectionFrame = "line" | "none";
8
+ export type SectionState = "ready" | "loading" | "error";
9
+ type SectionBaseProps = Omit<JSX.HTMLAttributes<HTMLElement>, "title" | "children" | "class"> & {
10
+ title: JSX.Element;
11
+ icon?: string;
12
+ size?: SectionSize;
13
+ frame?: SectionFrame;
14
+ tone?: SectionTone;
15
+ /**
16
+ * Marks a section that only some people see, such as "Only with permission": a lock and these words after the
17
+ * title. It is part of the section's accessible name and combines with any tone.
18
+ */
19
+ restricted?: string;
20
+ description?: JSX.Element;
21
+ /** How many things the section lists, as a chip after the title; `0` reads "None yet". */
22
+ count?: number;
23
+ /** Short state after the title, such as "2 of 4 done". */
24
+ meta?: JSX.Element;
25
+ /** Commands for the whole topic, as a row of buttons at the end of the body. */
26
+ footer?: JSX.Element;
27
+ /** `loading` and `error` take the body's place; the heading stays where it is. */
28
+ state?: SectionState;
29
+ /** Says what did not load; defaults to a generic sentence. */
30
+ errorMessage?: JSX.Element;
31
+ /** Shows "Try again" in the error state. */
32
+ onRetry?: () => void;
33
+ /** Placeholder rows while loading, the number the loaded body usually shows. Defaults to 3. */
34
+ loadingRows?: number;
35
+ /** Heading level; defaults to 3, or 2 for `size="md"`. */
36
+ level?: 2 | 3;
37
+ class?: string;
38
+ };
39
+ export type SectionProps = SectionBaseProps & ({
40
+ children?: JSX.Element;
41
+ /** Exactly one control at the end of the heading, such as "+" or one text button. */
42
+ actions?: JSX.Element;
43
+ collapsible?: false;
44
+ summary?: never;
45
+ defaultOpen?: never;
46
+ open?: never;
47
+ onOpenChange?: never;
48
+ disabled?: never;
49
+ } | {
50
+ children: JSX.Element;
51
+ actions?: never;
52
+ collapsible: true;
53
+ /** One line that says what the closed section holds, such as its newest entry; hidden while open. */
54
+ summary?: JSX.Element;
55
+ defaultOpen?: boolean;
56
+ open?: boolean;
57
+ onOpenChange?: (open: boolean) => void;
58
+ disabled?: boolean;
59
+ });
60
+ export type SectionPartProps = {
61
+ title: JSX.Element;
62
+ children: JSX.Element;
63
+ class?: string;
64
+ };
65
+ type SectionComponent = ((props: SectionProps) => JSX.Element) & {
66
+ Part: (props: SectionPartProps) => JSX.Element;
67
+ };
68
+ /**
69
+ * The frame a section draws when it passes none. A host that frames its topics itself, such as a detail panel, sets
70
+ * `none`; everywhere else a section is a card.
71
+ */
72
+ export declare const SectionFrameDefault: import("solid-js").Context<SectionFrame>;
73
+ export declare const Section: SectionComponent;
74
+ export default Section;
@@ -9,12 +9,16 @@ export type { DescriptionListItem, DescriptionListProps } from "./DescriptionLis
9
9
  export { DescriptionList } from "./DescriptionList";
10
10
  export type { DotStripProps, DotStripTone } from "./DotStrip";
11
11
  export { DotStrip } from "./DotStrip";
12
+ export type { FieldRowProps } from "./Field";
13
+ export { Field } from "./Field";
12
14
  export type { LinkCardColor, LinkCardProps } from "./LinkCard";
13
15
  export { LinkCard } from "./LinkCard";
14
16
  export type { NotFoundStateAction, NotFoundStateProps } from "./NotFoundState";
15
17
  export { NotFoundState } from "./NotFoundState";
16
18
  export type { NoticeCardProps, NoticeGridProps, NoticeTone } from "./NoticeCard";
17
19
  export { NOTICE_CARD_CLASSES, NoticeCard } from "./NoticeCard";
20
+ export type { NoticeRowProps } from "./NoticeRow";
21
+ export { NoticeRow } from "./NoticeRow";
18
22
  export type { PaperProps, PaperTag } from "./Paper";
19
23
  export { Paper } from "./Paper";
20
24
  export type { PlaceholderAlign, PlaceholderProps, PlaceholderState, PlaceholderSurface, PlaceholderVariant, } from "./Placeholder";
@@ -26,6 +30,8 @@ export { ProgressRing } from "./ProgressRing";
26
30
  export { PERSON_COLORS, personColor } from "./person-color";
27
31
  export type { ResourceCardColor, ResourceCardProps, ResourceCardState } from "./ResourceCard";
28
32
  export { ResourceCard } from "./ResourceCard";
33
+ export type { SectionFrame, SectionPartProps, SectionProps, SectionSize, SectionState, SectionTone } from "./Section";
34
+ export { Section } from "./Section";
29
35
  export { Skeleton, type SkeletonProps } from "./Skeleton";
30
36
  export type { StatCellAccent, StatCellCompare, StatCellDelta, StatCellProps, StatCellSize, StatCellTone } from "./StatCell";
31
37
  export { StatCell } from "./StatCell";
@@ -0,0 +1,10 @@
1
+ /** The copy label of `Field`; only `Field` reads it, so a section without fields does not carry it. */
2
+ declare const sectionMessages: import("@k2b/stdlib").Catalog<{
3
+ copyField: ({ label }: {
4
+ label: string;
5
+ }) => string;
6
+ }>;
7
+ export type SectionMessages = ReturnType<(typeof sectionMessages)["resolve"]>["t"];
8
+ export declare const useSectionMessages: () => (() => SectionMessages);
9
+ export declare const checkSectionMessages: () => import("@k2b/stdlib").CatalogIssue[];
10
+ export {};
@@ -9,6 +9,7 @@ declare const statCellMessages: import("@k2b/stdlib").Catalog<{
9
9
  retry: string;
10
10
  reload: string;
11
11
  loading: string;
12
+ noValue: string;
12
13
  }>;
13
14
  export type StatCellMessages = ReturnType<(typeof statCellMessages)["resolve"]>["t"];
14
15
  /** Resolved from the inherited render locale. */
@@ -34,7 +34,10 @@ export type DashboardFrameProps = {
34
34
  * shows the empty sentence and action while the head keeps its state, so a stale note stays.
35
35
  */
36
36
  emptyContent?: boolean;
37
- /** Height of the body, a CSS length. Every state keeps it. */
37
+ /**
38
+ * Height of the body, a CSS length. Every state keeps it. With `reserve`, the content fills it and scrolls inside, so
39
+ * a table keeps its header in view; without it, the hidden copy sets the height.
40
+ */
38
41
  height?: string;
39
42
  /**
40
43
  * A hidden copy of the full content that holds the body's height in every state, such as every row of a table. The
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k2b/ui",
3
- "version": "0.51.0",
3
+ "version": "0.53.0",
4
4
  "description": "Production-ready components for SolidJS applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -86,7 +86,7 @@
86
86
  "@codemirror/view": "6.43.7",
87
87
  "@fontsource/ibm-plex-mono": "5.3.0",
88
88
  "@fontsource/ibm-plex-sans": "5.3.0",
89
- "@k2b/stdlib": "0.30.0",
89
+ "@k2b/stdlib": "0.31.1",
90
90
  "@lezer/highlight": "1.2.4",
91
91
  "@lezer/markdown": "1.7.2",
92
92
  "@tabler/icons-webfont": "3.48.0",
@@ -104,7 +104,7 @@
104
104
  "devDependencies": {
105
105
  "@babel/core": "8.0.6",
106
106
  "@babel/preset-typescript": "8.0.1",
107
- "@k2b/ssr": "0.21.0",
107
+ "@k2b/ssr": "0.21.1",
108
108
  "@types/babel__core": "7.20.5",
109
109
  "@types/bun": "1.4.2",
110
110
  "axe-core": "4.11.0",