@k2b/ui 0.53.0 → 0.54.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 (313) hide show
  1. package/dist/base.css +103 -0
  2. package/dist/browser/actions/SortableList.js +174 -0
  3. package/dist/browser/actions/SortableList.js.map +1 -0
  4. package/dist/browser/actions/Toolbar.js +186 -101
  5. package/dist/browser/actions/Toolbar.js.map +1 -1
  6. package/dist/browser/actions/drag-and-drop.js +2 -1
  7. package/dist/browser/actions/drag-and-drop.js.map +1 -1
  8. package/dist/browser/actions/index.js +1 -0
  9. package/dist/browser/actions/index.js.map +1 -1
  10. package/dist/browser/actions/sortable-list-messages.js +35 -0
  11. package/dist/browser/actions/sortable-list-messages.js.map +1 -0
  12. package/dist/browser/chart-inspection.js +2 -1
  13. package/dist/browser/chart-inspection.js.map +1 -1
  14. package/dist/browser/charts/core/balance-flow-data.js +93 -0
  15. package/dist/browser/charts/core/balance-flow-data.js.map +1 -0
  16. package/dist/browser/charts/core/balance-flow-fields.js +19 -0
  17. package/dist/browser/charts/core/balance-flow-fields.js.map +1 -0
  18. package/dist/browser/charts/core/balance-flow-frame.js +44 -0
  19. package/dist/browser/charts/core/balance-flow-frame.js.map +1 -0
  20. package/dist/browser/charts/core/balance-flow-messages.js +49 -0
  21. package/dist/browser/charts/core/balance-flow-messages.js.map +1 -0
  22. package/dist/browser/charts/core/balance-flow-size.js +42 -0
  23. package/dist/browser/charts/core/balance-flow-size.js.map +1 -0
  24. package/dist/browser/charts/core/balance-flow.js +195 -0
  25. package/dist/browser/charts/core/balance-flow.js.map +1 -0
  26. package/dist/browser/charts/core/calendar-layout.js +105 -0
  27. package/dist/browser/charts/core/calendar-layout.js.map +1 -0
  28. package/dist/browser/charts/core/calendar.js +2 -104
  29. package/dist/browser/charts/core/calendar.js.map +1 -1
  30. package/dist/browser/charts/core/index.js +9 -1
  31. package/dist/browser/charts/core/index.js.map +1 -1
  32. package/dist/browser/charts/core/inspection.js +2 -1
  33. package/dist/browser/charts/core/inspection.js.map +1 -1
  34. package/dist/browser/charts/core/number-format.js +53 -0
  35. package/dist/browser/charts/core/number-format.js.map +1 -0
  36. package/dist/browser/charts/core/registry.js +3 -1
  37. package/dist/browser/charts/core/registry.js.map +1 -1
  38. package/dist/browser/charts/core/render-size.js +2 -0
  39. package/dist/browser/charts/core/render-size.js.map +1 -1
  40. package/dist/browser/charts/core/render.js +8 -1
  41. package/dist/browser/charts/core/render.js.map +1 -1
  42. package/dist/browser/charts/core/snapshot.js +3 -3
  43. package/dist/browser/charts/core/snapshot.js.map +1 -1
  44. package/dist/browser/charts/core/types.js.map +1 -1
  45. package/dist/browser/charts/description.js.map +1 -1
  46. package/dist/browser/charts.js +2 -0
  47. package/dist/browser/charts.js.map +1 -1
  48. package/dist/browser/content/Chart.js +3 -1
  49. package/dist/browser/content/Chart.js.map +1 -1
  50. package/dist/browser/content/ChartBalanceFlow.js +90 -0
  51. package/dist/browser/content/ChartBalanceFlow.js.map +1 -0
  52. package/dist/browser/content/ChartExplorer.js +1 -1
  53. package/dist/browser/content/ChartExplorer.js.map +1 -1
  54. package/dist/browser/content/ChartRoot.js +1 -1
  55. package/dist/browser/content/ChartRoot.js.map +1 -1
  56. package/dist/browser/content/DataTable.js +212 -261
  57. package/dist/browser/content/DataTable.js.map +1 -1
  58. package/dist/browser/content/FileView.js +70 -99
  59. package/dist/browser/content/FileView.js.map +1 -1
  60. package/dist/browser/content/LoadMore.js +185 -0
  61. package/dist/browser/content/LoadMore.js.map +1 -0
  62. package/dist/browser/content/PdfPages.js +638 -0
  63. package/dist/browser/content/PdfPages.js.map +1 -0
  64. package/dist/browser/content/PdfViewer.js +264 -553
  65. package/dist/browser/content/PdfViewer.js.map +1 -1
  66. package/dist/browser/content/VirtualFeed.js +379 -89
  67. package/dist/browser/content/VirtualFeed.js.map +1 -1
  68. package/dist/browser/content/chart-balance-flow-controller.js +184 -0
  69. package/dist/browser/content/chart-balance-flow-controller.js.map +1 -0
  70. package/dist/browser/content/chart-balance-flow.js +6 -0
  71. package/dist/browser/content/chart-balance-flow.js.map +1 -0
  72. package/dist/browser/content/chart-inspection-core.js +1 -73
  73. package/dist/browser/content/chart-inspection-core.js.map +1 -1
  74. package/dist/browser/content/chart-inspection-mount.js +75 -0
  75. package/dist/browser/content/chart-inspection-mount.js.map +1 -0
  76. package/dist/browser/content/chart-svg.js +1 -1
  77. package/dist/browser/content/chart-svg.js.map +1 -1
  78. package/dist/browser/content/feed-messages.js +22 -2
  79. package/dist/browser/content/feed-messages.js.map +1 -1
  80. package/dist/browser/content/index.js +1 -1
  81. package/dist/browser/content/index.js.map +1 -1
  82. package/dist/browser/content/pdf-messages.js +8 -8
  83. package/dist/browser/content/pdf-messages.js.map +1 -1
  84. package/dist/browser/feedback/dialog-core.js +1 -1
  85. package/dist/browser/feedback/dialog-core.js.map +1 -1
  86. package/dist/browser/feedback/index.js.map +1 -1
  87. package/dist/browser/feedback/prompt-confirm.js +25 -14
  88. package/dist/browser/feedback/prompt-confirm.js.map +1 -1
  89. package/dist/browser/feedback/prompts.js +46 -38
  90. package/dist/browser/feedback/prompts.js.map +1 -1
  91. package/dist/browser/feedback/success-check.js +60 -0
  92. package/dist/browser/feedback/success-check.js.map +1 -0
  93. package/dist/browser/feedback/toast-hit.js +16 -0
  94. package/dist/browser/feedback/toast-hit.js.map +1 -0
  95. package/dist/browser/feedback/toast-messages.js +6 -2
  96. package/dist/browser/feedback/toast-messages.js.map +1 -1
  97. package/dist/browser/feedback/toast.js +609 -98
  98. package/dist/browser/feedback/toast.js.map +1 -1
  99. package/dist/browser/intl/messages.js +4 -0
  100. package/dist/browser/intl/messages.js.map +1 -1
  101. package/dist/browser/layout/AppWorkspace.js +58 -21
  102. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  103. package/dist/browser/layout/BottomSheet.js +58 -40
  104. package/dist/browser/layout/BottomSheet.js.map +1 -1
  105. package/dist/browser/layout/DetailPanel.js +27 -27
  106. package/dist/browser/layout/DetailPanel.js.map +1 -1
  107. package/dist/browser/layout/Discussion.js +119 -160
  108. package/dist/browser/layout/Discussion.js.map +1 -1
  109. package/dist/browser/layout/PanelDialog.js +130 -116
  110. package/dist/browser/layout/PanelDialog.js.map +1 -1
  111. package/dist/browser/layout/index.js.map +1 -1
  112. package/dist/browser/layout/sheet-motion.js +479 -0
  113. package/dist/browser/layout/sheet-motion.js.map +1 -0
  114. package/dist/browser/surfaces/NoticeCard.js +68 -47
  115. package/dist/browser/surfaces/NoticeCard.js.map +1 -1
  116. package/dist/browser/text-editor/TextEditor.js +7 -3
  117. package/dist/browser/text-editor/TextEditor.js.map +1 -1
  118. package/dist/browser/text-editor/clipboard-html.js +62 -26
  119. package/dist/browser/text-editor/clipboard-html.js.map +1 -1
  120. package/dist/browser/text-editor/clipboard-loading.js +44 -15
  121. package/dist/browser/text-editor/clipboard-loading.js.map +1 -1
  122. package/dist/browser/text-editor/engine.js +9 -4
  123. package/dist/browser/text-editor/engine.js.map +1 -1
  124. package/dist/browser/text-editor/format.js +37 -1
  125. package/dist/browser/text-editor/format.js.map +1 -1
  126. package/dist/browser/text-editor/paste.js +2 -1
  127. package/dist/browser/text-editor/paste.js.map +1 -1
  128. package/dist/ssr/actions/SortableList.js +116 -0
  129. package/dist/ssr/actions/SortableList.js.map +1 -0
  130. package/dist/ssr/actions/Toolbar.js +89 -35
  131. package/dist/ssr/actions/Toolbar.js.map +1 -1
  132. package/dist/ssr/actions/drag-and-drop.js +2 -1
  133. package/dist/ssr/actions/drag-and-drop.js.map +1 -1
  134. package/dist/ssr/actions/index.js +1 -0
  135. package/dist/ssr/actions/index.js.map +1 -1
  136. package/dist/ssr/actions/sortable-list-messages.js +35 -0
  137. package/dist/ssr/actions/sortable-list-messages.js.map +1 -0
  138. package/dist/ssr/chart-inspection.js +2 -1
  139. package/dist/ssr/chart-inspection.js.map +1 -1
  140. package/dist/ssr/charts/core/balance-flow-data.js +93 -0
  141. package/dist/ssr/charts/core/balance-flow-data.js.map +1 -0
  142. package/dist/ssr/charts/core/balance-flow-fields.js +19 -0
  143. package/dist/ssr/charts/core/balance-flow-fields.js.map +1 -0
  144. package/dist/ssr/charts/core/balance-flow-frame.js +44 -0
  145. package/dist/ssr/charts/core/balance-flow-frame.js.map +1 -0
  146. package/dist/ssr/charts/core/balance-flow-messages.js +49 -0
  147. package/dist/ssr/charts/core/balance-flow-messages.js.map +1 -0
  148. package/dist/ssr/charts/core/balance-flow-size.js +42 -0
  149. package/dist/ssr/charts/core/balance-flow-size.js.map +1 -0
  150. package/dist/ssr/charts/core/balance-flow.js +195 -0
  151. package/dist/ssr/charts/core/balance-flow.js.map +1 -0
  152. package/dist/ssr/charts/core/calendar-layout.js +105 -0
  153. package/dist/ssr/charts/core/calendar-layout.js.map +1 -0
  154. package/dist/ssr/charts/core/calendar.js +2 -104
  155. package/dist/ssr/charts/core/calendar.js.map +1 -1
  156. package/dist/ssr/charts/core/index.js +9 -1
  157. package/dist/ssr/charts/core/index.js.map +1 -1
  158. package/dist/ssr/charts/core/inspection.js +2 -1
  159. package/dist/ssr/charts/core/inspection.js.map +1 -1
  160. package/dist/ssr/charts/core/number-format.js +53 -0
  161. package/dist/ssr/charts/core/number-format.js.map +1 -0
  162. package/dist/ssr/charts/core/registry.js +3 -1
  163. package/dist/ssr/charts/core/registry.js.map +1 -1
  164. package/dist/ssr/charts/core/render-size.js +2 -0
  165. package/dist/ssr/charts/core/render-size.js.map +1 -1
  166. package/dist/ssr/charts/core/render.js +8 -1
  167. package/dist/ssr/charts/core/render.js.map +1 -1
  168. package/dist/ssr/charts/core/snapshot.js +3 -3
  169. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  170. package/dist/ssr/charts/core/types.js.map +1 -1
  171. package/dist/ssr/charts/description.js.map +1 -1
  172. package/dist/ssr/charts.js +2 -0
  173. package/dist/ssr/charts.js.map +1 -1
  174. package/dist/ssr/content/Chart.js +3 -1
  175. package/dist/ssr/content/Chart.js.map +1 -1
  176. package/dist/ssr/content/ChartBalanceFlow.js +69 -0
  177. package/dist/ssr/content/ChartBalanceFlow.js.map +1 -0
  178. package/dist/ssr/content/ChartExplorer.js +1 -1
  179. package/dist/ssr/content/ChartExplorer.js.map +1 -1
  180. package/dist/ssr/content/ChartRoot.js +1 -1
  181. package/dist/ssr/content/ChartRoot.js.map +1 -1
  182. package/dist/ssr/content/DataTable.js +72 -118
  183. package/dist/ssr/content/DataTable.js.map +1 -1
  184. package/dist/ssr/content/FileView.js +39 -50
  185. package/dist/ssr/content/FileView.js.map +1 -1
  186. package/dist/ssr/content/LoadMore.js +146 -0
  187. package/dist/ssr/content/LoadMore.js.map +1 -0
  188. package/dist/ssr/content/PdfPages.js +538 -0
  189. package/dist/ssr/content/PdfPages.js.map +1 -0
  190. package/dist/ssr/content/PdfViewer.js +226 -457
  191. package/dist/ssr/content/PdfViewer.js.map +1 -1
  192. package/dist/ssr/content/VirtualFeed.js +292 -44
  193. package/dist/ssr/content/VirtualFeed.js.map +1 -1
  194. package/dist/ssr/content/chart-balance-flow-controller.js +184 -0
  195. package/dist/ssr/content/chart-balance-flow-controller.js.map +1 -0
  196. package/dist/ssr/content/chart-balance-flow.js +6 -0
  197. package/dist/ssr/content/chart-balance-flow.js.map +1 -0
  198. package/dist/ssr/content/chart-inspection-core.js +1 -73
  199. package/dist/ssr/content/chart-inspection-core.js.map +1 -1
  200. package/dist/ssr/content/chart-inspection-mount.js +75 -0
  201. package/dist/ssr/content/chart-inspection-mount.js.map +1 -0
  202. package/dist/ssr/content/chart-svg.js +1 -1
  203. package/dist/ssr/content/chart-svg.js.map +1 -1
  204. package/dist/ssr/content/feed-messages.js +22 -2
  205. package/dist/ssr/content/feed-messages.js.map +1 -1
  206. package/dist/ssr/content/index.js +1 -1
  207. package/dist/ssr/content/index.js.map +1 -1
  208. package/dist/ssr/content/pdf-messages.js +8 -8
  209. package/dist/ssr/content/pdf-messages.js.map +1 -1
  210. package/dist/ssr/feedback/dialog-core.js +1 -1
  211. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  212. package/dist/ssr/feedback/index.js.map +1 -1
  213. package/dist/ssr/feedback/prompt-confirm.js +13 -2
  214. package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
  215. package/dist/ssr/feedback/prompts.js +32 -24
  216. package/dist/ssr/feedback/prompts.js.map +1 -1
  217. package/dist/ssr/feedback/success-check.js +47 -0
  218. package/dist/ssr/feedback/success-check.js.map +1 -0
  219. package/dist/ssr/feedback/toast-hit.js +16 -0
  220. package/dist/ssr/feedback/toast-hit.js.map +1 -0
  221. package/dist/ssr/feedback/toast-messages.js +6 -2
  222. package/dist/ssr/feedback/toast-messages.js.map +1 -1
  223. package/dist/ssr/feedback/toast.js +609 -98
  224. package/dist/ssr/feedback/toast.js.map +1 -1
  225. package/dist/ssr/intl/messages.js +4 -0
  226. package/dist/ssr/intl/messages.js.map +1 -1
  227. package/dist/ssr/layout/AppWorkspace.js +39 -5
  228. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  229. package/dist/ssr/layout/BottomSheet.js +32 -4
  230. package/dist/ssr/layout/BottomSheet.js.map +1 -1
  231. package/dist/ssr/layout/DetailPanel.js +10 -10
  232. package/dist/ssr/layout/DetailPanel.js.map +1 -1
  233. package/dist/ssr/layout/Discussion.js +39 -65
  234. package/dist/ssr/layout/Discussion.js.map +1 -1
  235. package/dist/ssr/layout/PanelDialog.js +54 -35
  236. package/dist/ssr/layout/PanelDialog.js.map +1 -1
  237. package/dist/ssr/layout/index.js.map +1 -1
  238. package/dist/ssr/layout/sheet-motion.js +479 -0
  239. package/dist/ssr/layout/sheet-motion.js.map +1 -0
  240. package/dist/ssr/surfaces/NoticeCard.js +33 -17
  241. package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
  242. package/dist/ssr/text-editor/TextEditor.js +7 -3
  243. package/dist/ssr/text-editor/TextEditor.js.map +1 -1
  244. package/dist/ssr/text-editor/clipboard-html.js +62 -26
  245. package/dist/ssr/text-editor/clipboard-html.js.map +1 -1
  246. package/dist/ssr/text-editor/clipboard-loading.js +44 -15
  247. package/dist/ssr/text-editor/clipboard-loading.js.map +1 -1
  248. package/dist/ssr/text-editor/engine.js +9 -4
  249. package/dist/ssr/text-editor/engine.js.map +1 -1
  250. package/dist/ssr/text-editor/format.js +37 -1
  251. package/dist/ssr/text-editor/format.js.map +1 -1
  252. package/dist/ssr/text-editor/paste.js +2 -1
  253. package/dist/ssr/text-editor/paste.js.map +1 -1
  254. package/dist/styles.css +1 -1
  255. package/dist/types/actions/SortableList.d.ts +26 -0
  256. package/dist/types/actions/Toolbar.d.ts +11 -0
  257. package/dist/types/actions/drag-and-drop.d.ts +2 -0
  258. package/dist/types/actions/index.d.ts +2 -0
  259. package/dist/types/actions/sortable-list-messages.d.ts +15 -0
  260. package/dist/types/chart-inspection.d.ts +2 -1
  261. package/dist/types/charts/core/balance-flow-data.d.ts +37 -0
  262. package/dist/types/charts/core/balance-flow-fields.d.ts +13 -0
  263. package/dist/types/charts/core/balance-flow-frame.d.ts +4 -0
  264. package/dist/types/charts/core/balance-flow-messages.d.ts +97 -0
  265. package/dist/types/charts/core/balance-flow-size.d.ts +21 -0
  266. package/dist/types/charts/core/balance-flow.d.ts +70 -0
  267. package/dist/types/charts/core/calendar-layout.d.ts +67 -0
  268. package/dist/types/charts/core/calendar.d.ts +2 -64
  269. package/dist/types/charts/core/index.d.ts +9 -1
  270. package/dist/types/charts/core/number-format.d.ts +28 -0
  271. package/dist/types/charts/core/registry.d.ts +2 -0
  272. package/dist/types/charts/core/types.d.ts +1 -0
  273. package/dist/types/charts/description.d.ts +17 -0
  274. package/dist/types/charts.d.ts +2 -0
  275. package/dist/types/content/ChartBalanceFlow.d.ts +17 -0
  276. package/dist/types/content/ChartRoot.d.ts +2 -1
  277. package/dist/types/content/DataTable.d.ts +7 -1
  278. package/dist/types/content/LoadMore.d.ts +41 -0
  279. package/dist/types/content/PdfPages.d.ts +57 -0
  280. package/dist/types/content/PdfViewer.d.ts +35 -19
  281. package/dist/types/content/VirtualFeed.d.ts +57 -18
  282. package/dist/types/content/chart-balance-flow-controller.d.ts +12 -0
  283. package/dist/types/content/chart-balance-flow.d.ts +4 -0
  284. package/dist/types/content/chart-inspection-core.d.ts +0 -17
  285. package/dist/types/content/chart-inspection-mount.d.ts +21 -0
  286. package/dist/types/content/feed-messages.d.ts +10 -0
  287. package/dist/types/content/index.d.ts +3 -3
  288. package/dist/types/content/pdf-messages.d.ts +2 -2
  289. package/dist/types/feedback/index.d.ts +2 -2
  290. package/dist/types/feedback/prompt-confirm.d.ts +2 -0
  291. package/dist/types/feedback/prompts.d.ts +5 -1
  292. package/dist/types/feedback/success-check.d.ts +4 -0
  293. package/dist/types/feedback/toast-hit.d.ts +5 -0
  294. package/dist/types/feedback/toast-messages.d.ts +3 -1
  295. package/dist/types/feedback/toast.d.ts +42 -5
  296. package/dist/types/intl/messages.d.ts +2 -0
  297. package/dist/types/layout/AppWorkspace.d.ts +10 -0
  298. package/dist/types/layout/BottomSheet.d.ts +6 -0
  299. package/dist/types/layout/DetailPanel.d.ts +4 -1
  300. package/dist/types/layout/PanelDialog.d.ts +5 -0
  301. package/dist/types/layout/index.d.ts +1 -1
  302. package/dist/types/layout/sheet-motion.d.ts +32 -0
  303. package/dist/types/surfaces/NoticeCard.d.ts +14 -1
  304. package/dist/types/text-editor/TextEditor.d.ts +5 -0
  305. package/dist/types/text-editor/clipboard-loading.d.ts +2 -3
  306. package/dist/types/text-editor/engine.d.ts +6 -1
  307. package/dist/types/text-editor/format.d.ts +3 -1
  308. package/package.json +2 -2
  309. package/dist/browser/content/PdfPreview.js +0 -448
  310. package/dist/browser/content/PdfPreview.js.map +0 -1
  311. package/dist/ssr/content/PdfPreview.js +0 -300
  312. package/dist/ssr/content/PdfPreview.js.map +0 -1
  313. package/dist/types/content/PdfPreview.d.ts +0 -26
@@ -0,0 +1,41 @@
1
+ import { type JSX } from "solid-js";
2
+ export type LoadMoreProps = {
3
+ /** More items follow the loaded ones. Without it, the edge shows nothing. */
4
+ hasMore: boolean;
5
+ /**
6
+ * Loads the next page. A returned promise keeps the edge busy until it settles, and a rejection shows its message
7
+ * with "Try again". Resolve to `false` when nothing loaded; the edge then waits until the reader comes back to it.
8
+ */
9
+ onLoadMore: () => unknown;
10
+ /** The owner loads the next page right now, also one it started itself. */
11
+ loading?: boolean;
12
+ /** The owner's last load failed with this message. "Try again" calls `onLoadMore`. */
13
+ error?: string | null;
14
+ /**
15
+ * Loads by itself when the edge comes within reach of the visible area, in its own scroll area or in the window.
16
+ * Defaults to true. With false, the owner decides when to load, and the button stays.
17
+ */
18
+ auto?: boolean;
19
+ /** Where the next items appear: below the edge's list (`"end"`, the default) or above it (`"start"`). */
20
+ side?: "end" | "start";
21
+ /**
22
+ * Number of loaded items. A page counts as arrived when it changed; without it, when the list grew in its parent
23
+ * element. Pass it when new items can fit into space the list already takes, such as a table that fills its height.
24
+ */
25
+ count?: number;
26
+ /** Text of the button. Defaults to "Load more". */
27
+ label?: string;
28
+ /** Text while loading. Defaults to "Loading more…". */
29
+ loadingLabel?: string;
30
+ /** Text when a load failed without its own message. Defaults to "Could not load more.". */
31
+ errorLabel?: string;
32
+ class?: string;
33
+ };
34
+ /**
35
+ * The edge of a list that loads more: one row of fixed height that reads "Load more", "Loading more…", or the error
36
+ * with "Try again", so the list around it never moves. It loads by itself when it comes within reach, once per
37
+ * approach: a page that arrives while the edge is still in reach asks for the next one, a declined or failed request
38
+ * waits for the reader.
39
+ */
40
+ export declare function LoadMore(props: LoadMoreProps): JSX.Element;
41
+ export default LoadMore;
@@ -0,0 +1,57 @@
1
+ import { type JSX } from "solid-js";
2
+ import { type PdfPageSize } from "./pdf-document";
3
+ /** One extra icon at the end of the pill, such as open in a new tab or render again. */
4
+ export type PdfPagesAction = {
5
+ label: string;
6
+ icon: string;
7
+ disabled?: boolean;
8
+ onClick: () => void;
9
+ };
10
+ export type PdfPagesProps = {
11
+ /** The PDF itself. A new value opens that document. */
12
+ data: Blob | ArrayBuffer;
13
+ /** The document's name, for the scroll area and the page images. */
14
+ title: string;
15
+ /** Without the zoom bar, always fitted. Defaults to `true`. */
16
+ zoom?: boolean;
17
+ /**
18
+ * How a fitted document fills the area: `"width"` (the default) fits each page to the area's width, for reading;
19
+ * `"page"` shows the whole first page in the area's height, narrower, for a preview beside other content.
20
+ * Fitted pages never grow past 100 %.
21
+ */
22
+ fit?: "width" | "page";
23
+ /** Shows only this page (zero-based) instead of all pages one below the other. */
24
+ page?: number;
25
+ /** The first visible page is drawn; a host can drop its loading state. */
26
+ onReady?: () => void;
27
+ /** The document could not be opened, or a page could not be drawn and has no image yet. */
28
+ onError?: (error: unknown) => void;
29
+ /** Icons after the fit, in this order. */
30
+ actions?: readonly PdfPagesAction[];
31
+ };
32
+ /** Steps for − and + in percent; Ctrl or ⌘ with the wheel and two fingers zoom freely between the first and the last. */
33
+ export declare const PDF_ZOOM_STEPS: readonly [25, 50, 75, 100, 125, 150, 200, 300];
34
+ /** The next zoom step above or below `percent`; at either end it stays there. */
35
+ export declare const nextPdfZoomStep: (percent: number, direction: 1 | -1) => number;
36
+ /**
37
+ * The width in CSS pixels of a fitted page: as wide as the area, for `"page"` at most as wide as the whole page fits
38
+ * into the area's height, and never past 100 %, so zooming the browser out does not make the page grow.
39
+ */
40
+ export declare const fittedPageWidth: (fit: "width" | "page", area: {
41
+ width: number;
42
+ height: number;
43
+ }, page: {
44
+ width: number;
45
+ height: number;
46
+ }) => number;
47
+ /**
48
+ * The page width most pages share, at a tie the first page's. "Width" fits every page to the area, so a landscape page
49
+ * among portrait ones never scrolls sideways; percentages and fixed zoom follow this common width.
50
+ */
51
+ export declare const commonPageWidth: (pages: readonly PdfPageSize[]) => number;
52
+ /**
53
+ * The pages behind `PdfViewer`, loaded only once a document shows. A PDF drawn by pdf.js in every browser: pages as
54
+ * images in one scroll area, an invisible text layer over each page to select, copy, and find text, and a small pill. Only pages near the view are drawn and carry text; the others
55
+ * keep their size, so the scroll bar is right from the start. Printing and forms stay with the browser's own viewer.
56
+ */
57
+ export default function PdfPages(props: PdfPagesProps): JSX.Element;
@@ -1,32 +1,48 @@
1
1
  import { type JSX } from "solid-js";
2
- import { type PdfPageSize } from "./pdf-document";
2
+ /** Loads a PDF when the viewer needs it. A failed `Response` becomes the error state with its `message`. */
3
+ export type PdfViewerRequest = () => Promise<Response | Blob>;
3
4
  export type PdfViewerProps = {
4
- /** The PDF itself. A new value opens that document. */
5
- data: Blob | ArrayBuffer;
6
- /** The document's name, for the scroll area and the page images. */
5
+ /** The document's name, for the page area, the page images, and a tab opened from the pill. */
7
6
  title: string;
8
- /** Without the zoom bar, always fit to the width. Defaults to `true`. */
7
+ /**
8
+ * The PDF to show: its bytes, or the address of one on this site, which the viewer fetches. A new value shows that
9
+ * document. Pass either `data` or `request`.
10
+ */
11
+ data?: Blob | ArrayBuffer | string;
12
+ /** Requests the PDF: at once with `autoLoad`, otherwise from the action in the empty state. */
13
+ request?: PdfViewerRequest;
14
+ /** Runs `request` as soon as the viewer shows. Without it, the person starts it. */
15
+ autoLoad?: boolean;
16
+ /** Keeps a requested document from loading, such as while its input is incomplete. */
17
+ disabled?: boolean;
18
+ /** The empty state's text before an on-demand request. */
19
+ emptyText?: string;
20
+ /** Names the action that runs an on-demand `request`; once a document shows, it renders again from the pill. */
21
+ loadLabel?: string;
22
+ /**
23
+ * Adds "Open in new tab" to the pill and the error state: `true` opens the shown document, an address opens that
24
+ * address, which reloads and keeps the document's name.
25
+ */
26
+ open?: boolean | string;
27
+ /** Without the zoom controls, always fitted. Defaults to `true`. */
9
28
  zoom?: boolean;
29
+ /**
30
+ * How a fitted document fills the area: `"width"` (the default) fits each page to the area's width, for reading;
31
+ * `"page"` shows the whole first page in the area's height, narrower, for a preview beside other content.
32
+ * Fitted pages never grow past 100 %.
33
+ */
34
+ fit?: "width" | "page";
10
35
  /** Shows only this page (zero-based) instead of all pages one below the other. */
11
36
  page?: number;
12
- /** The first visible page is drawn; a host can drop its loading state. */
37
+ /** The first visible page is drawn. */
13
38
  onReady?: () => void;
14
- /** The document could not be opened, or a page could not be drawn and has no image yet. */
39
+ /** pdf.js could not open or draw the document; the viewer shows its error state. */
15
40
  onError?: (error: unknown) => void;
16
41
  class?: string;
17
42
  };
18
- /** Steps for − and + in percent; Ctrl or ⌘ with the wheel and two fingers zoom freely between the first and the last. */
19
- export declare const PDF_ZOOM_STEPS: readonly [25, 50, 75, 100, 125, 150, 200, 300];
20
- /** The next zoom step above or below `percent`; at either end it stays there. */
21
- export declare const nextPdfZoomStep: (percent: number, direction: 1 | -1) => number;
22
43
  /**
23
- * The page width most pages share, at a tie the first page's. "Width" fits every page to the area, so a landscape page
24
- * among portrait ones never scrolls sideways; percentages and fixed zoom follow this common width.
25
- */
26
- export declare const commonPageWidth: (pages: readonly PdfPageSize[]) => number;
27
- /**
28
- * A PDF drawn by pdf.js in every browser: pages as images in one scroll area, an invisible text layer over each page
29
- * to select, copy, and find text, and a small zoom bar. Only pages near the view are drawn and carry text; the others
30
- * keep their size, so the scroll bar is right from the start. Printing and forms stay with the browser's own viewer.
44
+ * Shows a PDF with pdf.js on a grey, rounded ground: pages as images with selectable text and a small pill for the
45
+ * page, zoom, and fit. Pass the document as `data`, or a `request` that loads it; the viewer shows the empty, loading,
46
+ * and error states in the same area, so nothing around it moves.
31
47
  */
32
48
  export default function PdfViewer(props: PdfViewerProps): JSX.Element;
@@ -13,13 +13,55 @@ export type VirtualFeedController = {
13
13
  scrollToKey: (key: string, options?: VirtualFeedScrollOptions) => boolean;
14
14
  /**
15
15
  * Follows the end again, also when the reader's scroll still coasts. When newer items exist but are not loaded, it
16
- * asks `onLoadNewest` for them first.
16
+ * asks `onLoadNewest` for them first. With `anchor="start"` it shows the last loaded item and follows nothing.
17
17
  */
18
18
  scrollToEnd: () => void;
19
- /** Whether the reader is at the end and new items keep the feed there. */
19
+ /** Shows the first loaded item, also when the reader's scroll still coasts. */
20
+ scrollToStart: () => void;
21
+ /** Whether the reader is at the end and new items keep the feed there. Always false with `anchor="start"`. */
20
22
  isAtEnd: () => boolean;
21
23
  };
22
- export type VirtualFeedProps<T> = {
24
+ /** A feed that opens at its newest item at the end and follows it, as a conversation does. */
25
+ type EndAnchoredProps = {
26
+ /** Where the feed opens. `"end"` (the default) opens at the last item and follows new items there. */
27
+ anchor?: "end";
28
+ /** Older items exist that `items` does not contain yet. */
29
+ hasOlder?: boolean;
30
+ /** Newer items exist that `items` does not contain yet. */
31
+ hasNewer?: boolean;
32
+ /** Called near the start of the loaded items while `hasOlder` is true. Prepend the next older page to `items`. */
33
+ onLoadOlder?: () => unknown;
34
+ /** Called near the end of the loaded items while `hasNewer` is true. Append the next newer page to `items`. */
35
+ onLoadNewer?: () => unknown;
36
+ /** Called by "Jump to latest" while `hasNewer` is true. Replace `items` with the newest page. */
37
+ onLoadNewest?: () => unknown;
38
+ /** Called when the reader reaches or leaves the end. */
39
+ onEndChange?: (atEnd: boolean) => void;
40
+ hasMore?: never;
41
+ onLoadMore?: never;
42
+ };
43
+ /** A list that opens at its first item, such as an inbox: it loads more below and never follows the end. */
44
+ type StartAnchoredProps = {
45
+ /**
46
+ * `"start"` opens at the first item and never follows the end. Items that arrive above keep the reading position
47
+ * and offer "New above". Read once, when the feed is created.
48
+ */
49
+ anchor: "start";
50
+ /** More items follow the loaded ones, as with `DataTable`. */
51
+ hasMore?: boolean;
52
+ /**
53
+ * Called near the end of the loaded items while `hasMore` is true. Append the next page to `items`. A rejected
54
+ * promise shows the error with "Try again" at the end of the list.
55
+ */
56
+ onLoadMore?: () => unknown;
57
+ hasOlder?: never;
58
+ hasNewer?: never;
59
+ onLoadOlder?: never;
60
+ onLoadNewer?: never;
61
+ onLoadNewest?: never;
62
+ onEndChange?: never;
63
+ };
64
+ export type VirtualFeedProps<T> = (EndAnchoredProps | StartAnchoredProps) & {
23
65
  /** Loaded items, oldest first. Replace the array to add, remove, or change items. */
24
66
  items: readonly T[];
25
67
  /** Stable, unique identity of an item across updates. */
@@ -37,20 +79,15 @@ export type VirtualFeedProps<T> = {
37
79
  * set, the first loaded item has no known predecessor and gets none.
38
80
  */
39
81
  separator?: (item: T, previous: T | undefined) => JSX.Element;
82
+ /**
83
+ * The separator of the group in view stays at the top of the visible area until the next one pushes it away, also
84
+ * when its own item is far above and no longer rendered.
85
+ */
86
+ stickySeparators?: boolean;
40
87
  /** Key of the first item the reader has not seen; a marker appears above it. */
41
88
  markerKey?: string | null;
42
89
  /** Text of that marker. Defaults to "New". */
43
90
  markerLabel?: string;
44
- /** Older items exist that `items` does not contain yet. */
45
- hasOlder?: boolean;
46
- /** Newer items exist that `items` does not contain yet. */
47
- hasNewer?: boolean;
48
- /** Called near the start of the loaded items while `hasOlder` is true. Prepend the next older page to `items`. */
49
- onLoadOlder?: () => unknown;
50
- /** Called near the end of the loaded items while `hasNewer` is true. Append the next newer page to `items`. */
51
- onLoadNewer?: () => unknown;
52
- /** Called by "Jump to latest" while `hasNewer` is true. Replace `items` with the newest page. */
53
- onLoadNewest?: () => unknown;
54
91
  /** Marks the feed as busy for assistive technology, for example during the first load. */
55
92
  busy?: boolean;
56
93
  /** Number of items in the whole feed when known. */
@@ -58,14 +95,16 @@ export type VirtualFeedProps<T> = {
58
95
  /** One-based position of `items[0]` in the whole feed when known. */
59
96
  firstPosition?: number;
60
97
  /**
61
- * Count shown on "Jump to latest". Defaults to the new items added while the reader was away from the end, which
62
- * excludes pages of older history loaded toward the end.
98
+ * Count shown on "Jump to latest", or on "New above" with `anchor="start"`. Defaults to the new items added while
99
+ * the reader was away from the end, which excludes pages of older history loaded toward the end; with
100
+ * `anchor="start"`, to the items added above the first loaded one since the reader was last at the start.
63
101
  */
64
102
  newCount?: number;
65
- /** Text announced for new items added at the end, bundled per second. Return nothing to stay silent. */
103
+ /**
104
+ * Text announced for new items, bundled per second: added at the end, or above with `anchor="start"`. Return
105
+ * nothing to stay silent.
106
+ */
66
107
  announce?: (added: readonly T[]) => string | undefined;
67
- /** Called when the reader reaches or leaves the end. */
68
- onEndChange?: (atEnd: boolean) => void;
69
108
  /**
70
109
  * Called when the items in view change: the first and last item whose whole height is in view. An item taller
71
110
  * than the view counts while it covers the view. `null` while no item is in view.
@@ -0,0 +1,12 @@
1
+ import { type ChartDatumRef, type ChartSelection, type ChartTooltipFormatter } from "../charts/core/inspection";
2
+ import type { inspectChart as InspectChart } from "./chart-inspection-mount";
3
+ export declare function selectBalanceFlowDatum(root: HTMLElement, selected: ChartDatumRef | null): void;
4
+ /** Enhances the server frame in place; neither resize nor initial mount replaces its drawing. */
5
+ export declare function mountBalanceFlowController(root: HTMLElement, options: {
6
+ locale?: string;
7
+ select?: (value: ChartSelection) => void;
8
+ tooltip?: ChartTooltipFormatter;
9
+ retry?: () => void;
10
+ periodChange?: (index: number) => void;
11
+ viewChange?: (view: "chart" | "table") => void;
12
+ }, inspectChart: typeof InspectChart): () => void;
@@ -0,0 +1,4 @@
1
+ import { mountBalanceFlowController } from "./chart-balance-flow-controller";
2
+ export { selectBalanceFlowDatum } from "./chart-balance-flow-controller";
3
+ /** Standard host enhancement; app frames supply their existing inspector to the lazy controller instead. */
4
+ export declare const mountBalanceFlow: (root: HTMLElement, options?: Parameters<typeof mountBalanceFlowController>[1]) => (() => void);
@@ -57,20 +57,3 @@ export declare function closeChartInspectionOnOutside(options: {
57
57
  scroll?: () => void;
58
58
  keepScroll?: () => boolean | undefined;
59
59
  }): () => void;
60
- export type InspectChartOptions = {
61
- kind: ChartKind;
62
- nav?: ChartInspectionNavigation;
63
- format: ChartTooltipFormatter;
64
- select?: (selection: ChartSelection) => void;
65
- cursor?: ChartCursor;
66
- locale?: string;
67
- /** Host for a separately rendered series legend. Defaults to the chart container. */
68
- legend?: ParentNode;
69
- };
70
- export type ChartInspection = {
71
- invalidate(): void;
72
- close(): void;
73
- destroy(): void;
74
- };
75
- /** Attach inspection to stdlib SVG rendered with inspect: true, without a framework. */
76
- export declare function inspectChart(container: HTMLElement, options: InspectChartOptions): ChartInspection;
@@ -0,0 +1,21 @@
1
+ import type { ChartSelection, ChartTooltipFormatter } from "../charts/core/inspection";
2
+ import type { ChartKind } from "../charts/core/types";
3
+ import type { ChartCursor } from "./chart-cursor";
4
+ import { type ChartInspectionNavigation } from "./chart-inspection-core";
5
+ export type InspectChartOptions = {
6
+ kind: ChartKind;
7
+ nav?: ChartInspectionNavigation;
8
+ format: ChartTooltipFormatter;
9
+ select?: (selection: ChartSelection) => void;
10
+ cursor?: ChartCursor;
11
+ locale?: string;
12
+ /** Host for a separately rendered series legend. Defaults to the chart container. */
13
+ legend?: ParentNode;
14
+ };
15
+ export type ChartInspection = {
16
+ invalidate(): void;
17
+ close(): void;
18
+ destroy(): void;
19
+ };
20
+ /** Attach inspection to stdlib SVG rendered with inspect: true, without a framework. */
21
+ export declare function inspectChart(container: HTMLElement, options: InspectChartOptions): ChartInspection;
@@ -7,6 +7,16 @@ declare const feedMessages: import("@k2b/stdlib").Catalog<{
7
7
  count: number;
8
8
  }) => string;
9
9
  feedNewMarker: string;
10
+ feedNewAbove: string;
11
+ feedNewAboveCount: ({ count }: {
12
+ count: number;
13
+ }) => string;
14
+ feedNewAboveItems: ({ count }: {
15
+ count: number;
16
+ }) => string;
17
+ loadMore: string;
18
+ loadingMore: string;
19
+ loadMoreFailed: string;
10
20
  }>;
11
21
  export type FeedMessages = ReturnType<(typeof feedMessages)["resolve"]>["t"];
12
22
  /** Resolved from the inherited render locale. */
@@ -42,6 +42,8 @@ export type { LabelChipProps } from "./LabelChip";
42
42
  export { LabelChip } from "./LabelChip";
43
43
  export type { LightboxAction, LightboxImage } from "./Lightbox";
44
44
  export { default as Lightbox } from "./Lightbox";
45
+ export type { LoadMoreProps } from "./LoadMore";
46
+ export { LoadMore } from "./LoadMore";
45
47
  export type { LogTableEntry } from "./LogEntriesTable";
46
48
  export { default as LogEntriesTable } from "./LogEntriesTable";
47
49
  export { MapAttribution } from "./MapAttribution";
@@ -58,9 +60,7 @@ export type { MapViewArea, MapViewFit, MapViewFrameProps, MapViewHandle, MapView
58
60
  export { MARKDOWN_CALLOUT_CLASSES, MARKDOWN_CALLOUT_ICON_ATTRIBUTES, type MarkdownInfoBlock, type MarkdownInfoBlockRenderInput, type MarkdownInfoBlockType, markdownInfoBlocks, renderMarkdownInfoBlock, scanMarkdownInfoBlock, } from "./markdown-info-blocks";
59
61
  export { type MarkdownLinkInput, type MarkdownReference, type MarkdownReferenceKind, type MarkdownReferenceType, markdownLinkReference, markdownReferenceIcon, markdownReferenceType, markdownReferenceTypeLabel, markStandaloneLinks, renderMarkdownLink, } from "./markdown-links";
60
62
  export { Pagination, type PaginationProps } from "./Pagination";
61
- export type { PdfPreviewProps, PdfPreviewRequest } from "./PdfPreview";
62
- export { default as PdfPreview } from "./PdfPreview";
63
- export type { PdfViewerProps } from "./PdfViewer";
63
+ export type { PdfViewerProps, PdfViewerRequest } from "./PdfViewer";
64
64
  export { default as PdfViewer } from "./PdfViewer";
65
65
  export type { RangeOption, RangePickerProps } from "./RangePicker";
66
66
  export { default as RangePicker } from "./RangePicker";
@@ -1,5 +1,5 @@
1
1
  declare const pdfMessages: import("@k2b/stdlib").Catalog<{
2
- openPreview: string;
2
+ pdfOpenInTab: string;
3
3
  pdfPreview: string;
4
4
  pdfPreviewHttpError: ({ status }: {
5
5
  status: number;
@@ -24,8 +24,8 @@ declare const pdfMessages: import("@k2b/stdlib").Catalog<{
24
24
  pdfZoomPercent: ({ value }: {
25
25
  value: number;
26
26
  }) => string;
27
- pdfFitWidth: string;
28
27
  pdfFitWidthLabel: string;
28
+ pdfFitPageLabel: string;
29
29
  }>;
30
30
  export type PdfMessages = ReturnType<(typeof pdfMessages)["resolve"]>["t"];
31
31
  /** Resolved from the inherited render locale. */
@@ -13,10 +13,10 @@ export type { InstallationPlatform, InstallPrompt } from "./install";
13
13
  export { createInstallPrompt, installationPlatform } from "./install";
14
14
  export type { MovedHintAction, MovedHintProps } from "./MovedHint";
15
15
  export { MovedHint } from "./MovedHint";
16
- export type { ConfirmOptions, DialogOptions, FieldSchema, PromptFieldBase, PromptSearchInput, PromptSearchItem, PromptSearchOptions, } from "./prompts";
16
+ export type { ConfirmOptions, DialogOptions, FieldSchema, PromptFieldBase, PromptSearchInput, PromptSearchItem, PromptSearchOptions, SuccessDialogOptions, } from "./prompts";
17
17
  export { createFormState, DialogHeader, prompts } from "./prompts";
18
18
  export type { TooltipAnchorProps, TooltipPlacement, TooltipProps, TooltipTriggerProps } from "./Tooltip";
19
19
  export { Tooltip } from "./Tooltip";
20
20
  export { syncThemeColor } from "./theme-color";
21
- export type { ToastAction, ToastFn, ToastHandle, ToastOptions, ToastSlot, ToastVariant } from "./toast";
21
+ export type { ToastAction, ToastFn, ToastHandle, ToastLink, ToastOptions, ToastSlot, ToastSlotOptions, ToastVariant } from "./toast";
22
22
  export { isPointInsideToast, toast } from "./toast";
@@ -11,6 +11,8 @@ export declare const DialogHeader: (props: {
11
11
  title?: string;
12
12
  icon?: string;
13
13
  tone?: DialogTone;
14
+ /** A success tone draws its check once when the header appears; see `prompts.success`. */
15
+ celebrate?: boolean;
14
16
  }) => JSX.Element;
15
17
  export declare const panelClass: (options?: Pick<DialogOptions, "size" | "surface" | "variant">) => string;
16
18
  export declare const contentClass: (surface?: DialogOptions["surface"]) => string;
@@ -18,6 +18,10 @@ export interface DialogOptions {
18
18
  /** Back closes the prompt like Cancel, as in a phone app; see `OpenDialogOptions.history`. */
19
19
  history?: boolean;
20
20
  }
21
+ export type SuccessDialogOptions = Omit<DialogOptions, "variant"> & {
22
+ /** A finished success, such as an issued document: the header draws its check once when the dialog opens. */
23
+ celebrate?: boolean;
24
+ };
21
25
  export interface ConfirmOptions extends DialogOptions {
22
26
  confirmationPhrase?: string;
23
27
  }
@@ -165,7 +169,7 @@ export declare const prompts: {
165
169
  confirm: typeof import("./prompt-confirm").confirmPrompt;
166
170
  } & {
167
171
  alert: (content: PromptContent, options?: DialogOptions) => Promise<void | undefined>;
168
- success: (content: PromptContent, options?: Omit<DialogOptions, "variant">) => Promise<void | undefined>;
172
+ success: (content: PromptContent, options?: SuccessDialogOptions) => Promise<void | undefined>;
169
173
  prompt: typeof promptText;
170
174
  promptNumber: typeof promptNumber;
171
175
  form: <T extends Record<string, FieldSchema>>(config: PromptFormOptions<T>) => Promise<InferFormValues<T> | null>;
@@ -0,0 +1,4 @@
1
+ import type { JSX } from "solid-js";
2
+ /** A new success check; it draws each time it enters the document. */
3
+ export declare const createSuccessCheck: (doc: Document) => SVGElement;
4
+ export declare const SuccessCheck: () => JSX.Element;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Whether viewport coordinates fall on a live toast, its round close button over the card's corner included. A module
3
+ * of its own, so a dialog's outside-click check does not carry the whole toast stack into every island with a dialog.
4
+ */
5
+ export declare const isPointInsideToast: (x: number, y: number) => boolean;
@@ -1,5 +1,7 @@
1
1
  declare const toastMessages: import("@k2b/stdlib").Catalog<{
2
- dismissNotification: string;
2
+ dismissNamed: ({ name }: {
3
+ name: string;
4
+ }) => string;
3
5
  notifications: string;
4
6
  }>;
5
7
  export type ToastMessages = ReturnType<(typeof toastMessages)["resolve"]>["t"];
@@ -1,20 +1,41 @@
1
- export type ToastVariant = "default" | "success" | "error";
1
+ export type ToastVariant = "default" | "success" | "warning" | "error";
2
2
  export type ToastAction = {
3
3
  label: string;
4
+ /**
5
+ * A framed button (`secondary`, the default) or a quiet text button (`ghost`), as for Undo. Next to a
6
+ * `secondaryAction` the first action is the primary button and this is ignored.
7
+ */
8
+ variant?: "secondary" | "ghost";
4
9
  } & ({
5
10
  href: string;
6
11
  } | {
7
12
  onClick: () => void;
8
13
  });
14
+ /** A link at the end of the message, such as "Open settings". Following it closes the toast. */
15
+ export type ToastLink = {
16
+ label: string;
17
+ href: string;
18
+ };
9
19
  export type ToastOptions = {
10
20
  variant?: ToastVariant;
11
21
  /** Milliseconds until the toast closes; `0` keeps it until it is closed. Omit it for the default by variant, length, and action. */
12
22
  duration?: number;
13
23
  iconClass?: string;
24
+ /**
25
+ * A finished success, such as an issued document: the success toast draws its check once when it appears, in place of
26
+ * its icon. Leave it off for routine saves. Other variants and running progress ignore it.
27
+ */
28
+ celebrate?: boolean;
14
29
  /** A short line of context above the message. There is no default title. */
15
30
  title?: string;
16
31
  action?: ToastAction | null;
17
- /** Fraction from 0 to 1, or an indeterminate activity indicator. null removes it. */
32
+ /** A second action. With it, both actions sit in a row under the message: `action` first, as the primary button. */
33
+ secondaryAction?: ToastAction | null;
34
+ link?: ToastLink | null;
35
+ /**
36
+ * Fraction from 0 to 1 with a bar, or `"indeterminate"` for work of unknown length, which shows a spinner in the
37
+ * icon tile. `update()` turns it into the result in place, with the same rows and height. null removes it.
38
+ */
18
39
  progress?: number | "indeterminate" | null;
19
40
  dismissLabel?: string;
20
41
  };
@@ -22,17 +43,33 @@ export type ToastHandle = {
22
43
  dismiss: () => void;
23
44
  update: (description: string, options?: ToastOptions) => void;
24
45
  };
46
+ export type ToastSlotOptions = {
47
+ /** Names the slot's close button: "Close: {label}". */
48
+ label?: string;
49
+ /**
50
+ * Shows the round close button and allows a swipe and Escape to close. Leave it off while work runs, so running work
51
+ * never disappears silently; turn it on through `update` when nothing runs any more.
52
+ */
53
+ closable?: boolean;
54
+ /** The close button, a swipe, or Escape asks the owner to close; it calls `dismiss` when it agrees. Without it, they dismiss the slot. */
55
+ onClose?: () => void;
56
+ };
25
57
  export type ToastSlot = {
26
58
  dismiss: () => void;
59
+ /** Changes the slot's name or whether it can be closed; omitted keys keep their value. */
60
+ update: (options: Pick<ToastSlotOptions, "label" | "closable">) => void;
27
61
  };
28
62
  export interface ToastFn {
29
63
  (description: string, options?: ToastOptions): ToastHandle;
30
64
  success: (description: string, options?: Omit<ToastOptions, "variant">) => ToastHandle;
31
65
  error: (description: string, options?: Omit<ToastOptions, "variant">) => ToastHandle;
32
- /** Places an application-owned element in the toast rail, in toast chrome; the caller owns its content and lifetime. */
33
- custom: (content: HTMLElement) => ToastSlot;
66
+ /**
67
+ * Places an application-owned element at the edge of the toast rail, in toast chrome, as a socket that toasts stack
68
+ * in front of; the caller owns its content and lifetime. It has no timer and stays out of the limit and `dismissAll`.
69
+ */
70
+ custom: (content: HTMLElement, options?: ToastSlotOptions) => ToastSlot;
34
71
  dismissAll: () => void;
35
72
  }
36
73
  export declare const K2B_TOAST_CONTAINER_ID = "k2b-ui-toast-container";
37
- export declare const isPointInsideToast: (x: number, y: number) => boolean;
74
+ export { isPointInsideToast } from "./toast-hit";
38
75
  export declare const toast: ToastFn;
@@ -47,6 +47,8 @@ declare const uiMessages: import("@k2b/stdlib").Catalog<{
47
47
  }) => string;
48
48
  save: string;
49
49
  select: string;
50
+ sheetExpand: string;
51
+ sheetShrink: string;
50
52
  time: string;
51
53
  timeLabel: ({ label }: {
52
54
  label: string;
@@ -2,6 +2,7 @@ import { type AppWorkspaceSidebarItemStatusProps } from "./AppWorkspaceSidebarIt
2
2
  export type { AppWorkspaceSidebarItemStatusProps } from "./AppWorkspaceSidebarItemStatus";
3
3
  import { type LinkNavigateEvent, type NavigationScrollMode } from "@k2b/ssr/nav";
4
4
  import { type JSX } from "solid-js";
5
+ import { type ButtonSize } from "../actions/Button";
5
6
  import { type DropdownItem, type DropdownSearch } from "../actions/Dropdown";
6
7
  import { type AppWorkspaceLayoutState } from "./app-workspace-state";
7
8
  import { type AppWorkspaceWidthShare } from "./app-workspace-width";
@@ -45,6 +46,9 @@ export type AppWorkspaceProps = {
45
46
  /** Removes the workspace's own border, radius, and shadow for an overview that is the page itself.
46
47
  * A host may frame the outermost workspace as its app card, as Cloud does from 1024 px on signed-in pages. */
47
48
  flat?: boolean;
49
+ /** `quiet` for settings and administration: islands stand flat, only charts, dashboard frames and panels, and key
50
+ * figures keep their shadow (layers and shadows). */
51
+ layer?: "quiet";
48
52
  resizable?: boolean;
49
53
  /**
50
54
  * Restores a persisted layout when the workspace mounts. Persistence itself
@@ -339,6 +343,11 @@ export type AppWorkspaceSidebarIconGridProps = AppWorkspaceSidebarContentProps &
339
343
  title?: string;
340
344
  columns?: 2 | 3;
341
345
  };
346
+ export type AppWorkspaceSidebarToggleProps = {
347
+ /** Match the row's other icon buttons. */
348
+ size?: ButtonSize;
349
+ class?: string;
350
+ };
342
351
  export type AppWorkspaceSidebarIconActionProps = {
343
352
  href?: string | null;
344
353
  /** Document navigation by default; opt into enhanced navigation only when the owning island applies the target state. */
@@ -457,6 +466,7 @@ export declare const appWorkspaceDetailElementId: (id: string) => string;
457
466
  type AppWorkspaceComponent = ((props: AppWorkspaceProps) => JSX.Element) & {
458
467
  LayoutStateProvider: (props: AppWorkspaceLayoutStateProviderProps) => JSX.Element;
459
468
  Head: (props: AppWorkspaceHeadProps) => JSX.Element;
469
+ SidebarToggle: (props: AppWorkspaceSidebarToggleProps) => JSX.Element;
460
470
  Content: (props: AppWorkspaceContentProps) => JSX.Element;
461
471
  Main: (props: AppWorkspaceMainProps) => JSX.Element;
462
472
  MainPane: (props: AppWorkspaceMainPaneProps) => JSX.Element;
@@ -25,6 +25,12 @@ export type BottomSheetProps = {
25
25
  dismissDisabled?: boolean;
26
26
  dismissLabel?: string;
27
27
  handle?: boolean;
28
+ /**
29
+ * Opens at half height, as a preview, and rests at half or full height. The handle, a drag, scrolling, or Tab into
30
+ * the body moves it up; the footer stays on the screen's edge. Without it, the sheet rests at its content's height,
31
+ * as menus and date sheets do.
32
+ */
33
+ detents?: boolean;
28
34
  /** See `PanelDialog`'s `tone`. */
29
35
  tone?: DialogTone;
30
36
  };
@@ -8,7 +8,10 @@ export type DetailPanelProps = {
8
8
  class?: string;
9
9
  };
10
10
  type DetailPanelHeaderBaseProps = {
11
- /** A short line above the title that names what is shown, such as "Conversation", followed by its state. */
11
+ /**
12
+ * The item's state, such as a "Done" or "Read only" badge, at the start of the line below the title. Name a type
13
+ * only where one list mixes types that the title and subtitle do not tell apart, such as "Query" or "Action".
14
+ */
12
15
  kind?: JSX.Element;
13
16
  title: JSX.Element;
14
17
  subtitle?: JSX.Element;
@@ -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
+ * With `tone="success"`, a finished success such as an issued document: the header draws its check once when it
11
+ * appears. Leave it off for routine saves; other tones ignore it.
12
+ */
13
+ celebrate?: boolean;
9
14
  /**
10
15
  * The body shows a picture or a video edge to edge, and the header floats over it as glass chips: the title and
11
16
  * subtitle in one chip, the actions in a group, and the close button. For documents, text, and tables leave it off.