@k2b/ui 0.59.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/dist/browser/actions/CommandList.js +67 -74
  2. package/dist/browser/actions/CommandList.js.map +1 -1
  3. package/dist/browser/actions/ContextMenu.js +11 -2
  4. package/dist/browser/actions/ContextMenu.js.map +1 -1
  5. package/dist/browser/actions/Dropdown.js +187 -169
  6. package/dist/browser/actions/Dropdown.js.map +1 -1
  7. package/dist/browser/actions/GestureMenu.js +18 -7
  8. package/dist/browser/actions/GestureMenu.js.map +1 -1
  9. package/dist/browser/actions/SelectionAction.js +232 -0
  10. package/dist/browser/actions/SelectionAction.js.map +1 -0
  11. package/dist/browser/actions/command-items.js.map +1 -1
  12. package/dist/browser/actions/index.js +1 -0
  13. package/dist/browser/actions/index.js.map +1 -1
  14. package/dist/browser/actions/menu-sheet-open.js +19 -0
  15. package/dist/browser/actions/menu-sheet-open.js.map +1 -0
  16. package/dist/browser/charts/core/line-details.js +2 -2
  17. package/dist/browser/charts/core/line-details.js.map +1 -1
  18. package/dist/browser/charts/core/render.js +2 -1
  19. package/dist/browser/charts/core/render.js.map +1 -1
  20. package/dist/browser/chat/ChatActivityWords.js +142 -0
  21. package/dist/browser/chat/ChatActivityWords.js.map +1 -0
  22. package/dist/browser/chat/ChatComposer.js +540 -515
  23. package/dist/browser/chat/ChatComposer.js.map +1 -1
  24. package/dist/browser/chat/ChatComposerQuotes.js +56 -0
  25. package/dist/browser/chat/ChatComposerQuotes.js.map +1 -0
  26. package/dist/browser/chat/ChatPrimitives.js +440 -389
  27. package/dist/browser/chat/ChatPrimitives.js.map +1 -1
  28. package/dist/browser/chat/ChatTasks.js +78 -73
  29. package/dist/browser/chat/ChatTasks.js.map +1 -1
  30. package/dist/browser/chat/ChatTimeline.js +3 -0
  31. package/dist/browser/chat/ChatTimeline.js.map +1 -1
  32. package/dist/browser/chat/index.js +4 -1
  33. package/dist/browser/chat/index.js.map +1 -1
  34. package/dist/browser/content/ActivityList.js +789 -0
  35. package/dist/browser/content/ActivityList.js.map +1 -0
  36. package/dist/browser/content/DataTableTools.js +3 -0
  37. package/dist/browser/content/DataTableTools.js.map +1 -1
  38. package/dist/browser/content/Lightbox.js +33 -11
  39. package/dist/browser/content/Lightbox.js.map +1 -1
  40. package/dist/browser/content/MessageQuote.js +57 -0
  41. package/dist/browser/content/MessageQuote.js.map +1 -0
  42. package/dist/browser/content/MessageRow.js +413 -391
  43. package/dist/browser/content/MessageRow.js.map +1 -1
  44. package/dist/browser/content/PdfPages.js +26 -1
  45. package/dist/browser/content/PdfPages.js.map +1 -1
  46. package/dist/browser/content/RunLog.js +719 -0
  47. package/dist/browser/content/RunLog.js.map +1 -0
  48. package/dist/browser/content/VirtualFeed.js +29 -2
  49. package/dist/browser/content/VirtualFeed.js.map +1 -1
  50. package/dist/browser/content/activity-messages.js +47 -0
  51. package/dist/browser/content/activity-messages.js.map +1 -0
  52. package/dist/browser/content/activity-timeline.js +144 -0
  53. package/dist/browser/content/activity-timeline.js.map +1 -0
  54. package/dist/browser/content/chart-time-calendar.js +12 -18
  55. package/dist/browser/content/chart-time-calendar.js.map +1 -1
  56. package/dist/browser/content/find-text.js +47 -0
  57. package/dist/browser/content/find-text.js.map +1 -0
  58. package/dist/browser/content/index.js +2 -0
  59. package/dist/browser/content/index.js.map +1 -1
  60. package/dist/browser/content/quote-messages.js +25 -0
  61. package/dist/browser/content/quote-messages.js.map +1 -0
  62. package/dist/browser/content/run-log-messages.js +134 -0
  63. package/dist/browser/content/run-log-messages.js.map +1 -0
  64. package/dist/browser/feedback/dialog-core.js +118 -14
  65. package/dist/browser/feedback/dialog-core.js.map +1 -1
  66. package/dist/browser/feedback/dialog-frame-motion.js +274 -0
  67. package/dist/browser/feedback/dialog-frame-motion.js.map +1 -0
  68. package/dist/browser/feedback/prompt-sheet-view.js +2 -1
  69. package/dist/browser/feedback/prompt-sheet-view.js.map +1 -1
  70. package/dist/browser/feedback/prompts.js +49 -53
  71. package/dist/browser/feedback/prompts.js.map +1 -1
  72. package/dist/browser/feedback/toast.js +11 -1
  73. package/dist/browser/feedback/toast.js.map +1 -1
  74. package/dist/browser/hover-card.js +6 -0
  75. package/dist/browser/hover-card.js.map +1 -0
  76. package/dist/browser/inputs/AutocompleteEditor.js +2 -1
  77. package/dist/browser/inputs/AutocompleteEditor.js.map +1 -1
  78. package/dist/browser/inputs/AutocompleteSelect.js +3 -12
  79. package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
  80. package/dist/browser/inputs/ChoiceList.js +131 -127
  81. package/dist/browser/inputs/ChoiceList.js.map +1 -1
  82. package/dist/browser/inputs/Combobox.js +6 -15
  83. package/dist/browser/inputs/Combobox.js.map +1 -1
  84. package/dist/browser/inputs/MultiSelectInput.js +7 -16
  85. package/dist/browser/inputs/MultiSelectInput.js.map +1 -1
  86. package/dist/browser/inputs/PeriodPicker.js +475 -252
  87. package/dist/browser/inputs/PeriodPicker.js.map +1 -1
  88. package/dist/browser/inputs/RichSelect.js +431 -431
  89. package/dist/browser/inputs/RichSelect.js.map +1 -1
  90. package/dist/browser/inputs/Select.js +3 -12
  91. package/dist/browser/inputs/Select.js.map +1 -1
  92. package/dist/browser/inputs/SelectChip.js +1 -0
  93. package/dist/browser/inputs/SelectChip.js.map +1 -1
  94. package/dist/browser/inputs/TimeInput.js +181 -0
  95. package/dist/browser/inputs/TimeInput.js.map +1 -0
  96. package/dist/browser/inputs/choice.js.map +1 -1
  97. package/dist/browser/inputs/date-picker.js +2 -1
  98. package/dist/browser/inputs/date-picker.js.map +1 -1
  99. package/dist/browser/inputs/file-drop.js +2 -0
  100. package/dist/browser/inputs/file-drop.js.map +1 -1
  101. package/dist/browser/inputs/index.js +1 -0
  102. package/dist/browser/inputs/index.js.map +1 -1
  103. package/dist/browser/inputs/input-messages.js +20 -2
  104. package/dist/browser/inputs/input-messages.js.map +1 -1
  105. package/dist/browser/inputs/period-picker-messages.js +20 -2
  106. package/dist/browser/inputs/period-picker-messages.js.map +1 -1
  107. package/dist/browser/inputs/period.js +83 -0
  108. package/dist/browser/inputs/period.js.map +1 -1
  109. package/dist/browser/inputs/time-input.js +93 -0
  110. package/dist/browser/inputs/time-input.js.map +1 -0
  111. package/dist/browser/internal/exit-motion.js +23 -0
  112. package/dist/browser/internal/exit-motion.js.map +1 -0
  113. package/dist/browser/internal/option-description.js +47 -0
  114. package/dist/browser/internal/option-description.js.map +1 -0
  115. package/dist/browser/internal/scroll-places.js +15 -0
  116. package/dist/browser/internal/scroll-places.js.map +1 -0
  117. package/dist/browser/internal/step-row.js +78 -0
  118. package/dist/browser/internal/step-row.js.map +1 -0
  119. package/dist/browser/layout/AppWorkspace.js +572 -495
  120. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  121. package/dist/browser/layout/BottomSheet.js +2 -14
  122. package/dist/browser/layout/BottomSheet.js.map +1 -1
  123. package/dist/browser/layout/Navigation.js +7 -2
  124. package/dist/browser/layout/Navigation.js.map +1 -1
  125. package/dist/browser/layout/PullToRefresh.js +76 -23
  126. package/dist/browser/layout/PullToRefresh.js.map +1 -1
  127. package/dist/browser/layout/SidebarSwitcher.js +28 -37
  128. package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
  129. package/dist/browser/layout/app-workspace-controller.js +5 -1
  130. package/dist/browser/layout/app-workspace-controller.js.map +1 -1
  131. package/dist/browser/layout/bottom-sheet-load.js +17 -0
  132. package/dist/browser/layout/bottom-sheet-load.js.map +1 -0
  133. package/dist/browser/layout/bottom-sheet-options.js +27 -0
  134. package/dist/browser/layout/bottom-sheet-options.js.map +1 -0
  135. package/dist/browser/layout/index.js +2 -1
  136. package/dist/browser/layout/index.js.map +1 -1
  137. package/dist/browser/layout/refresh-messages.js +4 -2
  138. package/dist/browser/layout/refresh-messages.js.map +1 -1
  139. package/dist/browser/layout/sheet-motion.js +10 -11
  140. package/dist/browser/layout/sheet-motion.js.map +1 -1
  141. package/dist/browser/layout/sidebar-scroll-memory.js +30 -0
  142. package/dist/browser/layout/sidebar-scroll-memory.js.map +1 -1
  143. package/dist/browser/surfaces/AvatarStack.js +59 -43
  144. package/dist/browser/surfaces/AvatarStack.js.map +1 -1
  145. package/dist/browser/surfaces/LinkCard.js.map +1 -1
  146. package/dist/browser/surfaces/Section.js +4 -2
  147. package/dist/browser/surfaces/Section.js.map +1 -1
  148. package/dist/browser/surfaces/StatCell.js +56 -28
  149. package/dist/browser/surfaces/StatCell.js.map +1 -1
  150. package/dist/browser/surfaces/StatGrid.js +17 -8
  151. package/dist/browser/surfaces/StatGrid.js.map +1 -1
  152. package/dist/browser/surfaces/index.js.map +1 -1
  153. package/dist/ssr/actions/CommandList.js +23 -26
  154. package/dist/ssr/actions/CommandList.js.map +1 -1
  155. package/dist/ssr/actions/ContextMenu.js +8 -2
  156. package/dist/ssr/actions/ContextMenu.js.map +1 -1
  157. package/dist/ssr/actions/Dropdown.js +79 -55
  158. package/dist/ssr/actions/Dropdown.js.map +1 -1
  159. package/dist/ssr/actions/GestureMenu.js +18 -7
  160. package/dist/ssr/actions/GestureMenu.js.map +1 -1
  161. package/dist/ssr/actions/SelectionAction.js +212 -0
  162. package/dist/ssr/actions/SelectionAction.js.map +1 -0
  163. package/dist/ssr/actions/command-items.js.map +1 -1
  164. package/dist/ssr/actions/index.js +1 -0
  165. package/dist/ssr/actions/index.js.map +1 -1
  166. package/dist/ssr/actions/menu-sheet-open.js +19 -0
  167. package/dist/ssr/actions/menu-sheet-open.js.map +1 -0
  168. package/dist/ssr/charts/core/line-details.js +2 -2
  169. package/dist/ssr/charts/core/line-details.js.map +1 -1
  170. package/dist/ssr/charts/core/render.js +2 -1
  171. package/dist/ssr/charts/core/render.js.map +1 -1
  172. package/dist/ssr/chat/ChatActivityWords.js +126 -0
  173. package/dist/ssr/chat/ChatActivityWords.js.map +1 -0
  174. package/dist/ssr/chat/ChatComposer.js +24 -3
  175. package/dist/ssr/chat/ChatComposer.js.map +1 -1
  176. package/dist/ssr/chat/ChatComposerQuotes.js +26 -0
  177. package/dist/ssr/chat/ChatComposerQuotes.js.map +1 -0
  178. package/dist/ssr/chat/ChatPrimitives.js +121 -77
  179. package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
  180. package/dist/ssr/chat/ChatTasks.js +31 -16
  181. package/dist/ssr/chat/ChatTasks.js.map +1 -1
  182. package/dist/ssr/chat/ChatTimeline.js +3 -0
  183. package/dist/ssr/chat/ChatTimeline.js.map +1 -1
  184. package/dist/ssr/chat/index.js +4 -1
  185. package/dist/ssr/chat/index.js.map +1 -1
  186. package/dist/ssr/content/ActivityList.js +553 -0
  187. package/dist/ssr/content/ActivityList.js.map +1 -0
  188. package/dist/ssr/content/DataTableTools.js +3 -0
  189. package/dist/ssr/content/DataTableTools.js.map +1 -1
  190. package/dist/ssr/content/Lightbox.js +33 -11
  191. package/dist/ssr/content/Lightbox.js.map +1 -1
  192. package/dist/ssr/content/MessageQuote.js +36 -0
  193. package/dist/ssr/content/MessageQuote.js.map +1 -0
  194. package/dist/ssr/content/MessageRow.js +112 -95
  195. package/dist/ssr/content/MessageRow.js.map +1 -1
  196. package/dist/ssr/content/PdfPages.js +26 -1
  197. package/dist/ssr/content/PdfPages.js.map +1 -1
  198. package/dist/ssr/content/RunLog.js +471 -0
  199. package/dist/ssr/content/RunLog.js.map +1 -0
  200. package/dist/ssr/content/VirtualFeed.js +29 -2
  201. package/dist/ssr/content/VirtualFeed.js.map +1 -1
  202. package/dist/ssr/content/activity-messages.js +47 -0
  203. package/dist/ssr/content/activity-messages.js.map +1 -0
  204. package/dist/ssr/content/activity-timeline.js +144 -0
  205. package/dist/ssr/content/activity-timeline.js.map +1 -0
  206. package/dist/ssr/content/chart-time-calendar.js +12 -18
  207. package/dist/ssr/content/chart-time-calendar.js.map +1 -1
  208. package/dist/ssr/content/find-text.js +47 -0
  209. package/dist/ssr/content/find-text.js.map +1 -0
  210. package/dist/ssr/content/index.js +2 -0
  211. package/dist/ssr/content/index.js.map +1 -1
  212. package/dist/ssr/content/quote-messages.js +25 -0
  213. package/dist/ssr/content/quote-messages.js.map +1 -0
  214. package/dist/ssr/content/run-log-messages.js +134 -0
  215. package/dist/ssr/content/run-log-messages.js.map +1 -0
  216. package/dist/ssr/feedback/dialog-core.js +118 -14
  217. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  218. package/dist/ssr/feedback/dialog-frame-motion.js +274 -0
  219. package/dist/ssr/feedback/dialog-frame-motion.js.map +1 -0
  220. package/dist/ssr/feedback/prompt-sheet-view.js +2 -1
  221. package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -1
  222. package/dist/ssr/feedback/prompts.js +16 -16
  223. package/dist/ssr/feedback/prompts.js.map +1 -1
  224. package/dist/ssr/feedback/toast.js +11 -1
  225. package/dist/ssr/feedback/toast.js.map +1 -1
  226. package/dist/ssr/hover-card.js +6 -0
  227. package/dist/ssr/hover-card.js.map +1 -0
  228. package/dist/ssr/inputs/AutocompleteEditor.js +2 -1
  229. package/dist/ssr/inputs/AutocompleteEditor.js.map +1 -1
  230. package/dist/ssr/inputs/AutocompleteSelect.js +3 -8
  231. package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
  232. package/dist/ssr/inputs/ChoiceList.js +25 -25
  233. package/dist/ssr/inputs/ChoiceList.js.map +1 -1
  234. package/dist/ssr/inputs/Combobox.js +4 -9
  235. package/dist/ssr/inputs/Combobox.js.map +1 -1
  236. package/dist/ssr/inputs/MultiSelectInput.js +4 -9
  237. package/dist/ssr/inputs/MultiSelectInput.js.map +1 -1
  238. package/dist/ssr/inputs/PeriodPicker.js +241 -46
  239. package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
  240. package/dist/ssr/inputs/RichSelect.js +135 -121
  241. package/dist/ssr/inputs/RichSelect.js.map +1 -1
  242. package/dist/ssr/inputs/Select.js +3 -8
  243. package/dist/ssr/inputs/Select.js.map +1 -1
  244. package/dist/ssr/inputs/SelectChip.js +1 -0
  245. package/dist/ssr/inputs/SelectChip.js.map +1 -1
  246. package/dist/ssr/inputs/TimeInput.js +145 -0
  247. package/dist/ssr/inputs/TimeInput.js.map +1 -0
  248. package/dist/ssr/inputs/choice.js.map +1 -1
  249. package/dist/ssr/inputs/date-picker.js +2 -1
  250. package/dist/ssr/inputs/date-picker.js.map +1 -1
  251. package/dist/ssr/inputs/file-drop.js +2 -0
  252. package/dist/ssr/inputs/file-drop.js.map +1 -1
  253. package/dist/ssr/inputs/index.js +1 -0
  254. package/dist/ssr/inputs/index.js.map +1 -1
  255. package/dist/ssr/inputs/input-messages.js +20 -2
  256. package/dist/ssr/inputs/input-messages.js.map +1 -1
  257. package/dist/ssr/inputs/period-picker-messages.js +20 -2
  258. package/dist/ssr/inputs/period-picker-messages.js.map +1 -1
  259. package/dist/ssr/inputs/period.js +83 -0
  260. package/dist/ssr/inputs/period.js.map +1 -1
  261. package/dist/ssr/inputs/time-input.js +93 -0
  262. package/dist/ssr/inputs/time-input.js.map +1 -0
  263. package/dist/ssr/internal/exit-motion.js +23 -0
  264. package/dist/ssr/internal/exit-motion.js.map +1 -0
  265. package/dist/ssr/internal/option-description.js +27 -0
  266. package/dist/ssr/internal/option-description.js.map +1 -0
  267. package/dist/ssr/internal/scroll-places.js +15 -0
  268. package/dist/ssr/internal/scroll-places.js.map +1 -0
  269. package/dist/ssr/internal/step-row.js +35 -0
  270. package/dist/ssr/internal/step-row.js.map +1 -0
  271. package/dist/ssr/layout/AppWorkspace.js +191 -121
  272. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  273. package/dist/ssr/layout/BottomSheet.js +2 -14
  274. package/dist/ssr/layout/BottomSheet.js.map +1 -1
  275. package/dist/ssr/layout/Navigation.js +7 -2
  276. package/dist/ssr/layout/Navigation.js.map +1 -1
  277. package/dist/ssr/layout/PullToRefresh.js +67 -16
  278. package/dist/ssr/layout/PullToRefresh.js.map +1 -1
  279. package/dist/ssr/layout/SidebarSwitcher.js +8 -13
  280. package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
  281. package/dist/ssr/layout/app-workspace-controller.js +5 -1
  282. package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
  283. package/dist/ssr/layout/bottom-sheet-load.js +17 -0
  284. package/dist/ssr/layout/bottom-sheet-load.js.map +1 -0
  285. package/dist/ssr/layout/bottom-sheet-options.js +27 -0
  286. package/dist/ssr/layout/bottom-sheet-options.js.map +1 -0
  287. package/dist/ssr/layout/index.js +2 -1
  288. package/dist/ssr/layout/index.js.map +1 -1
  289. package/dist/ssr/layout/refresh-messages.js +4 -2
  290. package/dist/ssr/layout/refresh-messages.js.map +1 -1
  291. package/dist/ssr/layout/sheet-motion.js +10 -11
  292. package/dist/ssr/layout/sheet-motion.js.map +1 -1
  293. package/dist/ssr/layout/sidebar-scroll-memory.js +30 -0
  294. package/dist/ssr/layout/sidebar-scroll-memory.js.map +1 -1
  295. package/dist/ssr/surfaces/AvatarStack.js +56 -40
  296. package/dist/ssr/surfaces/AvatarStack.js.map +1 -1
  297. package/dist/ssr/surfaces/LinkCard.js.map +1 -1
  298. package/dist/ssr/surfaces/Section.js +4 -2
  299. package/dist/ssr/surfaces/Section.js.map +1 -1
  300. package/dist/ssr/surfaces/StatCell.js +24 -12
  301. package/dist/ssr/surfaces/StatCell.js.map +1 -1
  302. package/dist/ssr/surfaces/StatGrid.js +12 -6
  303. package/dist/ssr/surfaces/StatGrid.js.map +1 -1
  304. package/dist/ssr/surfaces/index.js.map +1 -1
  305. package/dist/styles.css +1 -1
  306. package/dist/types/actions/Dropdown.d.ts +10 -0
  307. package/dist/types/actions/SelectionAction.d.ts +34 -0
  308. package/dist/types/actions/command-items.d.ts +5 -0
  309. package/dist/types/actions/index.d.ts +2 -0
  310. package/dist/types/actions/menu-sheet-open.d.ts +13 -0
  311. package/dist/types/charts/core/line-details.d.ts +1 -1
  312. package/dist/types/chat/ChatActivityWords.d.ts +31 -0
  313. package/dist/types/chat/ChatComposer.d.ts +17 -1
  314. package/dist/types/chat/ChatComposerQuotes.d.ts +10 -0
  315. package/dist/types/chat/ChatPrimitives.d.ts +23 -1
  316. package/dist/types/chat/ChatTimeline.d.ts +2 -0
  317. package/dist/types/chat/index.d.ts +6 -2
  318. package/dist/types/content/ActivityList.d.ts +166 -0
  319. package/dist/types/content/DataTableTools.d.ts +2 -0
  320. package/dist/types/content/Lightbox.d.ts +7 -5
  321. package/dist/types/content/MessageQuote.d.ts +9 -0
  322. package/dist/types/content/MessageRow.d.ts +5 -0
  323. package/dist/types/content/RunLog.d.ts +53 -0
  324. package/dist/types/content/VirtualFeed.d.ts +6 -0
  325. package/dist/types/content/activity-messages.d.ts +22 -0
  326. package/dist/types/content/activity-timeline.d.ts +52 -0
  327. package/dist/types/content/chart-time-calendar.d.ts +6 -0
  328. package/dist/types/content/find-text.d.ts +10 -0
  329. package/dist/types/content/index.d.ts +2 -0
  330. package/dist/types/content/quote-messages.d.ts +6 -0
  331. package/dist/types/content/run-log-messages.d.ts +61 -0
  332. package/dist/types/feedback/dialog-core.d.ts +2 -0
  333. package/dist/types/feedback/dialog-frame-motion.d.ts +37 -0
  334. package/dist/types/feedback/prompts.d.ts +5 -0
  335. package/dist/types/feedback/toast.d.ts +9 -1
  336. package/dist/types/hover-card.d.ts +5 -0
  337. package/dist/types/inputs/ChoiceList.d.ts +12 -5
  338. package/dist/types/inputs/Combobox.d.ts +5 -0
  339. package/dist/types/inputs/MultiSelectInput.d.ts +1 -0
  340. package/dist/types/inputs/PeriodPicker.d.ts +10 -0
  341. package/dist/types/inputs/RichSelect.d.ts +5 -0
  342. package/dist/types/inputs/Select.d.ts +1 -0
  343. package/dist/types/inputs/SelectChip.d.ts +5 -0
  344. package/dist/types/inputs/TimeInput.d.ts +16 -0
  345. package/dist/types/inputs/choice.d.ts +6 -1
  346. package/dist/types/inputs/index.d.ts +2 -0
  347. package/dist/types/inputs/input-messages.d.ts +9 -0
  348. package/dist/types/inputs/period-picker-messages.d.ts +9 -0
  349. package/dist/types/inputs/period.d.ts +41 -0
  350. package/dist/types/inputs/time-input.d.ts +43 -0
  351. package/dist/types/internal/exit-motion.d.ts +10 -0
  352. package/dist/types/internal/option-description.d.ts +20 -0
  353. package/dist/types/internal/scroll-places.d.ts +2 -0
  354. package/dist/types/internal/step-row.d.ts +19 -0
  355. package/dist/types/layout/AppWorkspace.d.ts +10 -0
  356. package/dist/types/layout/BottomSheet.d.ts +1 -14
  357. package/dist/types/layout/PullToRefresh.d.ts +2 -2
  358. package/dist/types/layout/SidebarSwitcher.d.ts +5 -0
  359. package/dist/types/layout/bottom-sheet-load.d.ts +9 -0
  360. package/dist/types/layout/bottom-sheet-options.d.ts +18 -0
  361. package/dist/types/layout/index.d.ts +3 -2
  362. package/dist/types/layout/refresh-messages.d.ts +1 -0
  363. package/dist/types/layout/sheet-motion.d.ts +0 -5
  364. package/dist/types/layout/sidebar-scroll-memory.d.ts +6 -0
  365. package/dist/types/surfaces/LinkCard.d.ts +2 -1
  366. package/dist/types/surfaces/StatCell.d.ts +7 -2
  367. package/dist/types/surfaces/StatGrid.d.ts +15 -3
  368. package/dist/types/surfaces/index.d.ts +1 -1
  369. package/package.json +17 -8
@@ -21,6 +21,11 @@ export type DropdownActionBase = {
21
21
  */
22
22
  ariaLabel?: string;
23
23
  description?: string;
24
+ /**
25
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
26
+ * It shows only with a `description`, which stays the text that search and screen readers use.
27
+ */
28
+ descriptionVisual?: () => JSX.Element;
24
29
  /** Quiet trailing information, such as a count. */
25
30
  trailing?: JSX.Element;
26
31
  /** `danger` for destructive entries; `accent` for the entry most people want, such as creating a blank item. */
@@ -176,6 +181,11 @@ export type DropdownItemProps = {
176
181
  icon?: string;
177
182
  image?: string;
178
183
  description?: string;
184
+ /**
185
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
186
+ * It shows only with a `description`, which stays the text that search and screen readers use.
187
+ */
188
+ descriptionVisual?: () => JSX.Element;
179
189
  /** Quiet trailing information, such as a count. */
180
190
  trailing?: JSX.Element;
181
191
  disabled?: boolean;
@@ -0,0 +1,34 @@
1
+ import { type JSX } from "solid-js";
2
+ export type SelectionActionSelection = {
3
+ /** The selected text, with each run of whitespace as one space and trimmed. */
4
+ text: string;
5
+ /** The part of the root that holds the whole selection, as `within` returned it. */
6
+ element: HTMLElement;
7
+ };
8
+ export type SelectionActionProps = {
9
+ /** The element whose text selections offer the action, such as a message history. */
10
+ root: HTMLElement;
11
+ /**
12
+ * The part one selection may lie in, such as the text of one message. It receives the selection's start and end
13
+ * nodes and returns their part, or nothing. A selection whose start and end lie in different parts, or outside every
14
+ * part, offers nothing. Without it, the whole root is one part.
15
+ */
16
+ within?: (node: Node) => HTMLElement | null | undefined;
17
+ /** The action's name, shown beside its icon, such as "Quote". */
18
+ label: string;
19
+ /** The action's icon class, such as "ti ti-quote". */
20
+ icon: string;
21
+ /** Runs with the selection when the person presses the action; the selection is cleared afterwards. */
22
+ onAction: (selection: SelectionActionSelection) => void;
23
+ };
24
+ /**
25
+ * One action for selected text, such as "Quote", as a small pill at the selection. It lies in the top layer, so it
26
+ * never moves the page, and pressing it keeps the selection. It appears once the pointer lets go of a selection inside
27
+ * `root`, or at once for a selection made with the keyboard. Tab right after the selection moves the focus to the pill,
28
+ * Enter runs it, and Tab or Escape returns the focus. Escape also closes the pill for that selection. On touch screens
29
+ * it sits below the selection, clear of the system's own selection menu above it.
30
+ *
31
+ * It listens to the document's selection only while it is mounted, so an application can load it on the first
32
+ * selection and keep its code out of the first page.
33
+ */
34
+ export declare function SelectionAction(props: SelectionActionProps): JSX.Element;
@@ -16,6 +16,11 @@ export type CommandItem = {
16
16
  group?: string;
17
17
  /** One quiet line of what the entry does, after the label on the same line, such as "Preis aus dem Text prüfen". */
18
18
  description?: string;
19
+ /**
20
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
21
+ * It shows only with a `description`, which stays the text that search and screen readers use.
22
+ */
23
+ descriptionVisual?: () => JSX.Element;
19
24
  /** Quiet text at the end of the row, such as what a person can type: `/telefonat`. It is searched, too. */
20
25
  hint?: string;
21
26
  /** Tabler icon class, such as `ti ti-phone`. */
@@ -21,6 +21,8 @@ export type { RemoveButtonProps } from "./RemoveButton";
21
21
  export { RemoveButton } from "./RemoveButton";
22
22
  export type { SegmentedControlProps, SegmentOption } from "./SegmentedControl";
23
23
  export { SegmentedControl } from "./SegmentedControl";
24
+ export type { SelectionActionProps, SelectionActionSelection } from "./SelectionAction";
25
+ export { SelectionAction } from "./SelectionAction";
24
26
  export type { SelectionToolbarProps } from "./SelectionToolbar";
25
27
  export { SelectionToolbar } from "./SelectionToolbar";
26
28
  export type { SortableListProps } from "./SortableList";
@@ -0,0 +1,13 @@
1
+ import type { MenuSheetOptions } from "./menu-sheet";
2
+ type MenuSheet = typeof import("./menu-sheet");
3
+ /** Loads the phone menu sheet's code once; a wide screen that never opens a sheet never loads it. */
4
+ export declare const loadMenuSheet: () => Promise<MenuSheet>;
5
+ /** Whether the sheet's code is here, so a sheet opens at once rather than waiting for it. */
6
+ export declare const menuSheetReady: () => boolean;
7
+ /**
8
+ * Opens a menu as a bottom sheet: at once when its code is loaded, otherwise as soon as it is. When the code does not
9
+ * load, `unavailable` runs instead, so the opener can show its menu another way; the next open tries again. A failure
10
+ * of the chosen action itself still rejects.
11
+ */
12
+ export declare const openMenuSheet: (options: MenuSheetOptions, unavailable: (error: unknown) => void) => Promise<void>;
13
+ export {};
@@ -1,5 +1,5 @@
1
1
  /** Existing line renderer, separated so detailed drawing stays behind lazy chart boundaries. */
2
- import type { ChartTimeAxis, ChartTimeStep } from "../../content/chart-time-calendar";
2
+ import { type ChartTimeAxis, type ChartTimeStep } from "../../content/chart-time-calendar";
3
3
  import type { LineOptions } from "./svg-renderers";
4
4
  /**
5
5
  * Render a line chart. Each series becomes a `<path class="stdlib-chart-line">`
@@ -0,0 +1,31 @@
1
+ import { type JSX } from "solid-js";
2
+ /** The host's first word stands this long before the first change. */
3
+ export declare const CHAT_ACTIVITY_WORDS_START_MS = 3000;
4
+ /** Then each word stands this long; the same value as `--k2b-motion-word-hold`. */
5
+ export declare const CHAT_ACTIVITY_WORDS_HOLD_MS = 2400;
6
+ export type ChatActivityWordsProps = {
7
+ /** The word for the first seconds, such as "Thinking". */
8
+ first: string;
9
+ /** The words that follow, in the order the host chose for this phase. They repeat after the last one. */
10
+ words: readonly string[];
11
+ /**
12
+ * How long this phase has run, by the host's clock, when it renders. The server renders the word for this time and the
13
+ * first browser frame shows the same word; the browser counts on from there.
14
+ */
15
+ elapsedMs: number;
16
+ /**
17
+ * The one sentence screen readers hear for this phase, such as "Gustav is thinking", once, through the page's live
18
+ * region. Words and seconds stay silent.
19
+ */
20
+ announce: string;
21
+ };
22
+ /** The word that stands after `elapsedMs`: `first` for the first seconds, then one of `words` per hold. */
23
+ export declare const chatActivityWordAt: (first: string, words: readonly string[], elapsedMs: number) => string;
24
+ /**
25
+ * A word in a running activity label that changes with time, one word in its place at any moment: the old word fades out
26
+ * completely, only then the next fades in. With reduced motion the stylesheet shows a resting `first` instead, from the
27
+ * server's HTML on, and nothing changes. A pointer moved on the row, not a finger's tap, or the focus in it holds the word;
28
+ * a hidden tab changes nothing and shows the word of the current time on return, without catching up. Place it in the
29
+ * label of `Chat.Activity`; the host owns the words and the clock, this owns the timing and the announcement.
30
+ */
31
+ export declare function ChatActivityWords(props: ChatActivityWordsProps): JSX.Element;
@@ -153,6 +153,19 @@ export type ChatComposerReply = {
153
153
  onCancel: () => void;
154
154
  onSelect?: () => void;
155
155
  };
156
+ /** A passage the draft quotes, such as part of a message the person selected. */
157
+ export type ChatComposerQuote = {
158
+ /** Stable among the draft's quotes. */
159
+ id: string;
160
+ /** Who wrote the passage. */
161
+ author: string;
162
+ /** The passage; it shows at most two lines. */
163
+ text: string;
164
+ /** Takes the quote out of the draft. */
165
+ onRemove: () => void;
166
+ /** Makes the quote a button, for example to jump to the passage. */
167
+ onSelect?: () => void;
168
+ };
156
169
  /**
157
170
  * A suggested next message. It stands in the empty field instead of the placeholder, wraps and grows the field like
158
171
  * typed text, and ends in a hint: "Tab accept" with a keyboard, an Accept button on touch-only devices. Tab or the hint
@@ -212,7 +225,10 @@ export type ChatComposerProps = {
212
225
  onMentionsChange?: (mentions: readonly ChatMention[]) => void;
213
226
  /** Suggests people after `@`; needs `mentions` and `onMentionsChange`. */
214
227
  people?: ChatComposerPeople;
215
- /** Shared surface above the editor; suggestions temporarily replace this content. */
228
+ /**
229
+ * Shared surface above the editor, such as the passages a draft quotes in `ChatComposerQuotes`; suggestions
230
+ * temporarily replace this content.
231
+ */
216
232
  accessory?: JSX.Element;
217
233
  contextUsage?: ChatContextUsageData;
218
234
  /**
@@ -0,0 +1,10 @@
1
+ import { type JSX } from "solid-js";
2
+ import type { ChatComposerQuote } from "./ChatComposer";
3
+ /**
4
+ * The passages a draft quotes, for `ChatComposer`'s `accessory`: each with the quote icon, at most two lines, its author,
5
+ * and a button that removes it. Several scroll in their own area. Load it with the first quote, so composers that never
6
+ * quote carry none of its code.
7
+ */
8
+ export declare function ChatComposerQuotes(props: {
9
+ quotes: readonly ChatComposerQuote[];
10
+ }): JSX.Element;
@@ -4,6 +4,12 @@ export type ChatMessageProps = {
4
4
  role: ChatRole;
5
5
  children?: JSX.Element;
6
6
  label?: string;
7
+ /**
8
+ * Who wrote a message the person did not type here, such as an automation or another chat: a short line above the
9
+ * bubble, a link only where the viewer may open the source. The bubble then takes the machine-written surface
10
+ * (`--k2b-chat-machine-surface`).
11
+ */
12
+ source?: JSX.Element;
7
13
  createdAt?: string | Date;
8
14
  timeLabel?: string;
9
15
  status?: ChatMessageStatus;
@@ -14,8 +20,10 @@ export type ChatMessageProps = {
14
20
  onActionError?: (error: unknown) => void;
15
21
  class?: string;
16
22
  };
23
+ /** Colour of an activity's `meta` for an outcome that needs attention. */
24
+ export type ChatActivityMetaTone = "danger" | "warning" | "ai";
17
25
  export type ChatActivityProps = {
18
- /** The step as text, or as a sentence with `ReferenceChip`s. */
26
+ /** The step as text, or as a sentence with `ReferenceChip`s. One line; text that does not fit fades out. */
19
27
  label: JSX.Element;
20
28
  /** Spelled-out name for an expandable row whose visible text abbreviates, such as durations. */
21
29
  ariaLabel?: string;
@@ -30,6 +38,20 @@ export type ChatActivityProps = {
30
38
  busy?: boolean;
31
39
  /** Lets label and description wrap instead of ending in an ellipsis, for a system line whose whole sentence matters. */
32
40
  wrap?: boolean;
41
+ /** A status word or count in the row's right-aligned meta column, such as "2 steps" or "Failed". */
42
+ meta?: JSX.Element;
43
+ /** Colours the whole `meta`. A part of it, such as "1 failed" in "6 steps · 1 failed", can carry its own `data-tone`. */
44
+ metaTone?: ChatActivityMetaTone;
45
+ /** How long the step took, already formatted ("12 s"), in a fixed column with tabular figures. */
46
+ duration?: string;
47
+ /** The duration spelled out, shown as its title. */
48
+ durationTitle?: string;
49
+ /**
50
+ * The last column of a row without a body, such as an ⓘ that opens the step's details: a `HoverCard.Trigger` with
51
+ * `triggerClass="k2b-chat-activity__info"`. A row with a body keeps its chevron there.
52
+ */
53
+ end?: JSX.Element;
54
+ /** Controls at the end of the text, in the meta column, such as a button. */
33
55
  trailing?: JSX.Element;
34
56
  /** Controlled disclosure state. Omit to keep native details behavior. */
35
57
  open?: boolean;
@@ -7,6 +7,8 @@ export type ChatMessageItem = {
7
7
  role: ChatRole;
8
8
  content?: JSX.Element;
9
9
  label?: string;
10
+ /** Who wrote a message the person did not type here; see `ChatMessageProps.source`. */
11
+ source?: JSX.Element;
10
12
  createdAt?: string | Date;
11
13
  timeLabel?: string;
12
14
  status?: ChatMessageStatus;
@@ -2,14 +2,17 @@ export type { ChatContextPanelProps, ChatContextPopupProps } from "./ChatContext
2
2
  import { ChatContextPanel, ChatContextPopup } from "./ChatContextPopup";
3
3
  import { ChatTaskList, ChatTasks } from "./ChatTasks";
4
4
  export type { ChatTask, ChatTaskListProps, ChatTasksProps } from "./ChatTasks";
5
+ import { ChatActivityWords } from "./ChatActivityWords";
5
6
  import { ChatComposer } from "./ChatComposer";
6
7
  import { ChatDecision, ChatMark, ChatOutcome } from "./ChatDecision";
7
8
  import { ChatActivity, ChatActivityToggle, ChatContextUsage, ChatMessage } from "./ChatPrimitives";
8
9
  import { ChatRoot } from "./ChatRoot";
9
10
  import { ChatTimeline } from "./ChatTimeline";
10
- export type { ChatCommand, ChatCommandContext, ChatCommandDraft, ChatCommandOpenResult, ChatCommandResult, ChatCommandScope, ChatCommandSearch, ChatCommandSection, ChatComposerPeople, ChatComposerProps, ChatComposerReply, ChatComposerSuggestion, ChatFileSelection, ChatPasteHandler, ChatPersonSuggestion, } from "./ChatComposer";
11
+ export type { ChatActivityWordsProps } from "./ChatActivityWords";
12
+ export type { ChatCommand, ChatCommandContext, ChatCommandDraft, ChatCommandOpenResult, ChatCommandResult, ChatCommandScope, ChatCommandSearch, ChatCommandSection, ChatComposerPeople, ChatComposerProps, ChatComposerQuote, ChatComposerReply, ChatComposerSuggestion, ChatFileSelection, ChatPasteHandler, ChatPersonSuggestion, } from "./ChatComposer";
13
+ export { ChatComposerQuotes } from "./ChatComposerQuotes";
11
14
  export type { ChatDecisionProps, ChatMarkProps, ChatOutcomeProps, ChatPreviewExcerptProps, ChatPreviewHeaderProps, ChatPreviewLineProps, ChatPreviewPeopleProps, ChatPreviewProps, ChatPreviewReadMoreProps, ChatPreviewShowAllProps, ChatPreviewTitleProps, } from "./ChatDecision";
12
- export type { ChatActivityProps, ChatActivityToggleProps, ChatContextUsageProps, ChatMessageProps } from "./ChatPrimitives";
15
+ export type { ChatActivityMetaTone, ChatActivityProps, ChatActivityToggleProps, ChatContextUsageProps, ChatMessageProps, } from "./ChatPrimitives";
13
16
  export { formatChatTokens } from "./ChatPrimitives";
14
17
  export type { ChatRootProps } from "./ChatRoot";
15
18
  export type { ChatActivityItem, ChatMessageItem, ChatTimelineItem, ChatTimelineProps } from "./ChatTimeline";
@@ -25,6 +28,7 @@ export declare const Chat: typeof ChatRoot & {
25
28
  Message: typeof ChatMessage;
26
29
  Activity: typeof ChatActivity & {
27
30
  Toggle: typeof ChatActivityToggle;
31
+ Words: typeof ChatActivityWords;
28
32
  };
29
33
  Composer: typeof ChatComposer;
30
34
  ContextUsage: typeof ChatContextUsage;
@@ -0,0 +1,166 @@
1
+ import type { DateContext } from "@k2b/stdlib";
2
+ import { type JSX } from "solid-js";
3
+ /** Only the icon carries a tone: grey by default, green for a completion, amber for a notice, red only while an action is needed. */
4
+ export type ActivityTone = "neutral" | "success" | "warning" | "danger";
5
+ /** At most one action per entry, a link with an icon in the last line, only while the state needs it. */
6
+ export type ActivityAction = {
7
+ icon: string;
8
+ label: string;
9
+ /** A link when set and not disabled; otherwise a button. */
10
+ href?: string;
11
+ target?: string;
12
+ onClick?: (event: MouseEvent) => void;
13
+ disabled?: boolean;
14
+ /** For tests: rendered as `data-activity-action`. */
15
+ data?: string;
16
+ };
17
+ export type ActivityEntry = {
18
+ /**
19
+ * Stable key of the entry, such as its record id; unique within the list. With it a row keeps its node, folded-out
20
+ * details, and focus when the caller rebuilds the entries, such as after a refresh. Without it the entry object is
21
+ * the key.
22
+ */
23
+ id?: string;
24
+ /** ISO instant. */
25
+ at: string;
26
+ /** Icon class of the kind, such as `ti ti-mail`; one fixed icon per kind. */
27
+ icon: string;
28
+ tone?: ActivityTone;
29
+ /** Name of the icon for tooltip and screen readers, when the sentence does not say it already. */
30
+ iconLabel?: string;
31
+ /** One sentence, such as "Invitation sent". */
32
+ text: JSX.Element;
33
+ /**
34
+ * Equal entries (one key) after each other on the same day become one row; `text` says it with the count
35
+ * ("Draft changed 4 times") and gets every entry of the bundle, newest first. A bundle keeps the detail line only
36
+ * when it is the same text for all entries.
37
+ */
38
+ bundle?: {
39
+ key: string;
40
+ text: (count: number, all: readonly ActivityEntry[]) => JSX.Element;
41
+ } | null;
42
+ /** Only a result, the reason of a failure, a quote, or "before → now" (`ActivityList.Change`). */
43
+ detail?: JSX.Element;
44
+ /** Who did it, a text of the application; without one the meta line reads "automatic". */
45
+ actor?: JSX.Element | null;
46
+ action?: ActivityAction | null;
47
+ /** A click on the entry opens it, such as its dialog. */
48
+ onOpen?: () => void;
49
+ /**
50
+ * The entry's object as a link: the sentence becomes the link, a click anywhere on the row follows it, and a middle
51
+ * click or a click with Ctrl, Cmd, or Shift opens it in a new tab. Takes the place of `onOpen`; ignored with
52
+ * `details`.
53
+ */
54
+ href?: string;
55
+ /** A click on the entry folds out its details below it; for a bundle with all of its entries. */
56
+ details?: (all: readonly ActivityEntry[]) => JSX.Element;
57
+ /** Kind for the filter in the "All N" dialog. */
58
+ kind?: string;
59
+ /** Attributes on the list item, such as `data-email` for focus after a reload. */
60
+ attrs?: Record<`data-${string}`, string | number | undefined>;
61
+ };
62
+ /** `compact` for a card or side column (meta under the sentence); `wide` for a dialog or page (meta on the right). */
63
+ export type ActivityDensity = "compact" | "wide";
64
+ type ActivityTimeProps = {
65
+ /**
66
+ * The current time. Pass the server's time so the server and the first browser render show the same text; the
67
+ * browser then moves it on every minute.
68
+ */
69
+ now?: Date | string;
70
+ /** Date context of the application; days count in its time zone. */
71
+ dateConfig?: DateContext;
72
+ /** Convenience override for `dateConfig.timeZone`. Defaults to UTC, so server and browser agree. */
73
+ timeZone?: string;
74
+ };
75
+ export type ActivityListProps = ActivityTimeProps & {
76
+ entries: readonly ActivityEntry[];
77
+ density?: ActivityDensity;
78
+ /** Shows only the newest rows; the rail then fades out below them. */
79
+ limit?: number;
80
+ /** More follows below the last visible row (further pages from the server); the rail fades out. */
81
+ more?: boolean;
82
+ /** Accessible name of the list. Defaults to "History". */
83
+ label?: string;
84
+ class?: string;
85
+ };
86
+ /** "before → now" of a detail line, the old value quiet. With `term` in front ("Plan: Basic → Team"). */
87
+ declare function ActivityChange(props: {
88
+ before: JSX.Element;
89
+ now: JSX.Element;
90
+ term?: string;
91
+ }): JSX.Element;
92
+ /** Loading: three quiet rows on the rail, announced to screen readers. */
93
+ declare function ActivityLoading(props: {
94
+ label?: string;
95
+ }): JSX.Element;
96
+ /** Error: one sentence with "Reload". */
97
+ declare function ActivityError(props: {
98
+ onReload?: () => void;
99
+ text?: JSX.Element;
100
+ }): JSX.Element;
101
+ /** Empty: one sentence. */
102
+ declare function ActivityEmpty(props: {
103
+ text?: JSX.Element;
104
+ }): JSX.Element;
105
+ type ActivityListComponent = ((props: ActivityListProps) => JSX.Element) & {
106
+ Loading: typeof ActivityLoading;
107
+ Empty: typeof ActivityEmpty;
108
+ Error: typeof ActivityError;
109
+ Change: typeof ActivityChange;
110
+ };
111
+ export declare const ActivityList: ActivityListComponent;
112
+ /** A kind for the filter of the "All N" dialog; only kinds with entries appear. */
113
+ export type ActivityKind = {
114
+ key: string;
115
+ label: string;
116
+ };
117
+ export type ActivityDialogInput = ActivityTimeProps & {
118
+ /** Read on open; build the entries in the getter, so the dialog gets nodes of its own. */
119
+ entries: () => readonly ActivityEntry[];
120
+ /** Defaults to "History". */
121
+ title?: string;
122
+ /** Icon class beside the title, such as `ti ti-activity`; none by default. */
123
+ icon?: string;
124
+ /** Second line, such as the object the history belongs to. */
125
+ subtitle?: string;
126
+ kinds?: readonly ActivityKind[];
127
+ /** Shown when there are no entries; defaults to "Nothing has happened yet.". */
128
+ emptyText?: JSX.Element;
129
+ };
130
+ export type ActivityCardProps = ActivityTimeProps & {
131
+ /** `null`: nothing loaded yet (loading or error). */
132
+ entries: readonly ActivityEntry[] | null;
133
+ /** Rows the card shows. Defaults to 6. */
134
+ limit?: number;
135
+ loading?: boolean;
136
+ error?: boolean;
137
+ onReload?: () => void;
138
+ emptyText?: JSX.Element;
139
+ /** Defaults to "History". */
140
+ title?: string;
141
+ /** Heading level of the title; 2 by default, 3 for a card under a section heading of the page. */
142
+ level?: 2 | 3;
143
+ /** Second line in the "All N" dialog, such as "Invoice RE-2610-00042 · Lindner". */
144
+ subtitle?: string;
145
+ /** Filter by kind in the dialog; only kinds with entries appear. */
146
+ kinds?: readonly ActivityKind[];
147
+ /** More at the end of the heading, before "All N", such as "reloading". */
148
+ actions?: JSX.Element;
149
+ /** Above the timeline, such as a quiet line "Waiting for approval"; replaces the empty text. */
150
+ lead?: JSX.Element;
151
+ /** For tests: rendered as `data-activity-card`. */
152
+ name?: string;
153
+ id?: string;
154
+ };
155
+ /**
156
+ * The history as a card of a detail page: a section with "History", and "All N" at the end of the heading when
157
+ * there are more than `limit` rows; below it the list in the compact density. "All N" opens the full history as a
158
+ * dialog in the wide density, with a filter by kind when `kinds` is set.
159
+ *
160
+ * Build `entries` in the getter (`entries={list()}` with a function, never from `createMemo`): sentence, detail, and
161
+ * person are JSX, and card and dialog each need nodes of their own.
162
+ */
163
+ export declare function ActivityCard(props: ActivityCardProps): JSX.Element;
164
+ /** The full history as a dialog: the title, the object below it, a filter by kind, and the list in the wide density. */
165
+ export declare const openActivityDialog: (input: ActivityDialogInput) => Promise<void | undefined>;
166
+ export {};
@@ -24,6 +24,8 @@ export declare function createDataTableView<T>(options: DataTableViewOptions<T>)
24
24
  export type DataTableToolsProps = {
25
25
  /** The table's name, for the search field's accessible name ("Search Campaigns"). */
26
26
  label: string;
27
+ /** The id of an element that describes the search field, such as the heading of a table whose `label` is generic. */
28
+ describedBy?: string;
27
29
  query?: string;
28
30
  onQueryChange?: (query: string) => void;
29
31
  /** Columns the reader may group by; without them no group choice shows. An empty list keeps the choice in place while it loads. */
@@ -57,10 +57,12 @@ export type LightboxProps = {
57
57
  * shown through its preview PDF, and for anything else its icon, facts and Download. It loads the file itself and
58
58
  * shows every state: a placeholder after a short wait, a failure with "Try again", and "Preview not possible".
59
59
  *
60
- * The name sits in a pill at the top left; Open (when the caller gives a target), the caller's commands, Download
61
- * and Close in a pill at the top right. Large round buttons at the screen edges step between files, as do ← and →
62
- * and the film strip from two files on; there is no "2 / 8" counter. The only pill at the bottom holds zoom and the
63
- * page. Escape, Close, a press beside the file or a swipe down close it, and focus returns to the opener. On a phone
64
- * it fills the screen and a swipe steps between files.
60
+ * The file has the whole screen: a PDF or document fills its width up to its natural size and scrolls under the
61
+ * controls, a picture shows whole on the full screen, and zoomed in either pans across the full screen. The controls
62
+ * float above it: the name in a pill at the top left; Open (when the caller gives a target), the caller's commands,
63
+ * Download and Close in a pill at the top right. Large round buttons at the screen edges step between files, as do
64
+ * ← and → and the film strip from two files on; there is no "2 / 8" counter. The only pill at the bottom holds zoom
65
+ * and the page. Escape, Close, a press beside the file or a swipe down from the top close it, and focus returns to
66
+ * the opener. On a phone a swipe steps between files.
65
67
  */
66
68
  export default function Lightbox(props: LightboxProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { type JSX } from "solid-js";
2
+ /** A quoted passage as a message and the composer show it: icon, at most two lines, and its author. */
3
+ export declare function MessageQuote(props: {
4
+ quote: {
5
+ author: string;
6
+ text: string;
7
+ onSelect?: () => void;
8
+ };
9
+ }): JSX.Element;
@@ -130,6 +130,11 @@ export type MessageRowProps = {
130
130
  actions?: readonly MessageRowAction[];
131
131
  /** The message this one answers, shown above it. */
132
132
  quote?: MessageRowQuote;
133
+ /**
134
+ * Passages of other messages this one quotes, above its text after `quote`: each with the quote icon, at most two
135
+ * lines, and its author on quiet grey. `onSelect` makes one a button, for example to jump to the passage.
136
+ */
137
+ quotes?: readonly MessageRowQuote[];
133
138
  /** Marks the message as forwarded from somewhere else. */
134
139
  forwarded?: boolean;
135
140
  /** Marks the message as edited after it was sent. */
@@ -0,0 +1,53 @@
1
+ import { type JSX } from "solid-js";
2
+ export type RunLogState = "idle" | "starting" | "running" | "succeeded" | "failed";
3
+ export type RunLevel = "info" | "warn" | "error";
4
+ export type RunStepEntry = {
5
+ kind: "step";
6
+ id: string;
7
+ at: string;
8
+ label: string;
9
+ /** Complete Tabler class, e.g. `ti ti-file-text`. */
10
+ icon?: string;
11
+ description?: string;
12
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
13
+ startedAt?: string;
14
+ endedAt?: string;
15
+ message?: string;
16
+ };
17
+ export type RunLogEntry = {
18
+ kind: "log";
19
+ id: string;
20
+ at: string;
21
+ level: RunLevel;
22
+ text: string;
23
+ };
24
+ export type RunEntry = RunStepEntry | RunLogEntry;
25
+ export type RunLogAction = {
26
+ icon: string;
27
+ label: string;
28
+ onClick?: () => void;
29
+ href?: string;
30
+ primary?: boolean;
31
+ disabled?: boolean;
32
+ disabledReason?: string;
33
+ };
34
+ export type RunLogProps = {
35
+ state: RunLogState;
36
+ /** Unknown kinds are ignored. Later step records with the same id replace the row in its original position. */
37
+ entries: readonly (RunEntry | {
38
+ kind: string;
39
+ })[];
40
+ /** Milliseconds supplied by the host. No clock runs inside RunLog. */
41
+ duration?: number;
42
+ meta?: JSX.Element;
43
+ size?: "full" | "compact";
44
+ /** Initial disclosure state; a changed value also updates the disclosure. */
45
+ output?: "open" | "closed" | "hidden";
46
+ olderCount?: number;
47
+ onLoadOlder?: () => void;
48
+ actions?: readonly RunLogAction[];
49
+ label?: string;
50
+ class?: string;
51
+ };
52
+ /** A run's steps and output. Presentation and disclosures only; the host owns execution, time, connection, and history. */
53
+ export declare function RunLog(props: RunLogProps): JSX.Element;
@@ -4,6 +4,12 @@ export type VirtualFeedScrollOptions = {
4
4
  align?: "start" | "center";
5
5
  /** Tints the item briefly so the reader finds it. */
6
6
  highlight?: boolean;
7
+ /**
8
+ * With `highlight`, tints only this passage of the item's text, such as a quoted part, where the browser supports
9
+ * the CSS Custom Highlight API and the item holds the passage (whitespace does not count). Otherwise the whole item
10
+ * is tinted.
11
+ */
12
+ highlightText?: string;
7
13
  };
8
14
  export type VirtualFeedController = {
9
15
  /**
@@ -0,0 +1,22 @@
1
+ /** Words of `ActivityList` and `ActivityCard`; the sentences of the entries come from the application. */
2
+ declare const activityMessages: import("@k2b/stdlib").Catalog<{
3
+ activityTitle: string;
4
+ activityToday: string;
5
+ activityYesterday: string;
6
+ activityOlder: string;
7
+ activityAutomatic: string;
8
+ activityAll: ({ count }: {
9
+ count: number;
10
+ }) => string;
11
+ activityEmpty: string;
12
+ activityError: string;
13
+ activityReload: string;
14
+ activityFilter: string;
15
+ }>;
16
+ export type ActivityMessages = ReturnType<(typeof activityMessages)["resolve"]>["t"];
17
+ /** Resolved from the inherited render locale. */
18
+ export declare const useActivityMessages: () => (() => ActivityMessages);
19
+ /** Outside a component, such as when a dialog opens: the given locale, else the document's language. */
20
+ export declare const resolveActivityMessages: (locale?: string) => ActivityMessages;
21
+ export declare const checkActivityMessages: () => import("@k2b/stdlib").CatalogIssue[];
22
+ export {};
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Time rules of `ActivityList`: pure, with `now` as an input, so the server, the first browser render, and tests
3
+ * compute the same rows. Days count in `timeZone`.
4
+ *
5
+ * - **Dividers:** "Today", "Yesterday", and each day up to seven days back; everything older sits under one divider
6
+ * "More than a week ago".
7
+ * - **Time:** under a day divider the time alone ("10:20"); under the older divider the day and time
8
+ * ("21 Oct, 14:31"; another year adds the year).
9
+ * - **Distance:** "12 min. ago", "6 hr. ago", "1 day ago", "9 days ago", weeks from 14 days, months from 60 days,
10
+ * years from 365 days.
11
+ * - **Bundles:** equal entries (one key) directly after each other on the same day become one row with a count; the
12
+ * newest one leads.
13
+ */
14
+ /** How many days back still have a divider of their own. */
15
+ export declare const ACTIVITY_DAYS_WITH_DIVIDER = 7;
16
+ export type ActivityGroup = {
17
+ kind: "today" | "yesterday" | "day";
18
+ day: string;
19
+ } | {
20
+ kind: "older";
21
+ day: null;
22
+ };
23
+ /** The calendar day (`YYYY-MM-DD`) of an instant in a time zone. */
24
+ export declare const activityDay: (at: string | Date, timeZone: string) => string;
25
+ /** The divider an instant stands under. Instants in the future (the device clock) count as today. */
26
+ export declare const activityGroup: (at: string, now: Date, timeZone: string) => ActivityGroup;
27
+ export declare const sameActivityGroup: (a: ActivityGroup, b: ActivityGroup) => boolean;
28
+ /** A day divider's label, such as "Fri, Nov 6" (de "Fr., 6. Nov."); another year adds the year. */
29
+ export declare const activityDayLabel: (day: string, now: Date, locale: string, timeZone: string) => string;
30
+ /** The time of the meta line: within the last week the time alone, before that the day and time. */
31
+ export declare const activityWhen: (at: string, now: Date, locale: string, timeZone: string) => string;
32
+ /** The full instant for the tooltip, such as "Oct 21, 2026, 14:31". */
33
+ export declare const activityInstant: (at: string, locale: string, timeZone: string) => string;
34
+ /** Distance to now in the interface language ("6 hr. ago", de "vor 6 Std."); never "yesterday", never in the future. */
35
+ export declare const activityAgo: (at: string, now: Date, locale: string, timeZone: string) => string;
36
+ /** One row: the newest entry of a bundle, all entries of the bundle (newest first), and the divider before it (only on a group's first row). */
37
+ export type ActivityRow<T> = {
38
+ entry: T;
39
+ all: T[];
40
+ divider: ActivityGroup | null;
41
+ };
42
+ /**
43
+ * Entries as rows: newest first (stable for equal times), equal entries after each other on the same day bundled
44
+ * (`key`; `null` never bundles), dividers by day or "older".
45
+ */
46
+ export declare const activityRows: <T extends {
47
+ at: string;
48
+ }>(entries: readonly T[], input: {
49
+ now: Date;
50
+ timeZone: string;
51
+ key?: (entry: T) => string | null;
52
+ }) => ActivityRow<T>[];
@@ -13,6 +13,12 @@ export type ChartTimeStep = {
13
13
  unit: ChartTimeUnit;
14
14
  size: number;
15
15
  };
16
+ /**
17
+ * How many dates fit along a drawing of this width when the caller names no tick count: one date takes about 56 px
18
+ * (a label such as "12. Nov." and the gap to the next), the Y labels take the first 60 px, and never fewer than five.
19
+ * A box narrower than the drawing then hides every second date (`chart-tick-room.ts`).
20
+ */
21
+ export declare const chartTimeTickBudget: (drawWidth: number, ticks?: number) => number;
16
22
  /** The round step for a time span: the finest one that keeps at most `maxTicks` ticks. */
17
23
  export declare const chartTimeStep: (span: number, maxTicks: number) => ChartTimeStep;
18
24
  /** Tick instants inside `domain` that fall on round wall times of `step` in `timeZone`. */