@k2b/ui 0.53.0 → 0.55.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 (363) 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/MapDialog.js +686 -0
  63. package/dist/browser/content/MapDialog.js.map +1 -0
  64. package/dist/browser/content/MapTile.js +139 -0
  65. package/dist/browser/content/MapTile.js.map +1 -0
  66. package/dist/browser/content/MapView.js +19 -8
  67. package/dist/browser/content/MapView.js.map +1 -1
  68. package/dist/browser/content/PdfPages.js +638 -0
  69. package/dist/browser/content/PdfPages.js.map +1 -0
  70. package/dist/browser/content/PdfViewer.js +264 -553
  71. package/dist/browser/content/PdfViewer.js.map +1 -1
  72. package/dist/browser/content/VirtualFeed.js +379 -89
  73. package/dist/browser/content/VirtualFeed.js.map +1 -1
  74. package/dist/browser/content/chart-balance-flow-controller.js +184 -0
  75. package/dist/browser/content/chart-balance-flow-controller.js.map +1 -0
  76. package/dist/browser/content/chart-balance-flow.js +6 -0
  77. package/dist/browser/content/chart-balance-flow.js.map +1 -0
  78. package/dist/browser/content/chart-inspection-core.js +1 -73
  79. package/dist/browser/content/chart-inspection-core.js.map +1 -1
  80. package/dist/browser/content/chart-inspection-mount.js +75 -0
  81. package/dist/browser/content/chart-inspection-mount.js.map +1 -0
  82. package/dist/browser/content/chart-svg.js +1 -1
  83. package/dist/browser/content/chart-svg.js.map +1 -1
  84. package/dist/browser/content/feed-messages.js +22 -2
  85. package/dist/browser/content/feed-messages.js.map +1 -1
  86. package/dist/browser/content/index.js +4 -1
  87. package/dist/browser/content/index.js.map +1 -1
  88. package/dist/browser/content/map-dialog-messages.js +47 -0
  89. package/dist/browser/content/map-dialog-messages.js.map +1 -0
  90. package/dist/browser/content/map-navigation.js +15 -0
  91. package/dist/browser/content/map-navigation.js.map +1 -0
  92. package/dist/browser/content/map-view-messages.js +4 -0
  93. package/dist/browser/content/map-view-messages.js.map +1 -1
  94. package/dist/browser/content/map-view-types.js.map +1 -1
  95. package/dist/browser/content/pdf-messages.js +8 -8
  96. package/dist/browser/content/pdf-messages.js.map +1 -1
  97. package/dist/browser/feedback/dialog-core.js +22 -10
  98. package/dist/browser/feedback/dialog-core.js.map +1 -1
  99. package/dist/browser/feedback/index.js.map +1 -1
  100. package/dist/browser/feedback/prompt-confirm.js +25 -14
  101. package/dist/browser/feedback/prompt-confirm.js.map +1 -1
  102. package/dist/browser/feedback/prompts.js +46 -38
  103. package/dist/browser/feedback/prompts.js.map +1 -1
  104. package/dist/browser/feedback/success-check.js +60 -0
  105. package/dist/browser/feedback/success-check.js.map +1 -0
  106. package/dist/browser/feedback/toast-hit.js +16 -0
  107. package/dist/browser/feedback/toast-hit.js.map +1 -0
  108. package/dist/browser/feedback/toast-messages.js +6 -2
  109. package/dist/browser/feedback/toast-messages.js.map +1 -1
  110. package/dist/browser/feedback/toast.js +609 -98
  111. package/dist/browser/feedback/toast.js.map +1 -1
  112. package/dist/browser/intl/messages.js +4 -0
  113. package/dist/browser/intl/messages.js.map +1 -1
  114. package/dist/browser/layout/AppWorkspace.js +58 -21
  115. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  116. package/dist/browser/layout/BottomSheet.js +58 -40
  117. package/dist/browser/layout/BottomSheet.js.map +1 -1
  118. package/dist/browser/layout/Breadcrumbs.js +97 -0
  119. package/dist/browser/layout/Breadcrumbs.js.map +1 -0
  120. package/dist/browser/layout/DetailPanel.js +27 -27
  121. package/dist/browser/layout/DetailPanel.js.map +1 -1
  122. package/dist/browser/layout/Discussion.js +119 -160
  123. package/dist/browser/layout/Discussion.js.map +1 -1
  124. package/dist/browser/layout/PanelDialog.js +130 -116
  125. package/dist/browser/layout/PanelDialog.js.map +1 -1
  126. package/dist/browser/layout/index.js +1 -0
  127. package/dist/browser/layout/index.js.map +1 -1
  128. package/dist/browser/layout/sheet-motion.js +479 -0
  129. package/dist/browser/layout/sheet-motion.js.map +1 -0
  130. package/dist/browser/surfaces/NoticeCard.js +68 -47
  131. package/dist/browser/surfaces/NoticeCard.js.map +1 -1
  132. package/dist/browser/surfaces/Skeleton.js +32 -0
  133. package/dist/browser/surfaces/Skeleton.js.map +1 -1
  134. package/dist/browser/surfaces/index.js +1 -1
  135. package/dist/browser/surfaces/index.js.map +1 -1
  136. package/dist/browser/text-editor/TextEditor.js +7 -3
  137. package/dist/browser/text-editor/TextEditor.js.map +1 -1
  138. package/dist/browser/text-editor/clipboard-html.js +62 -26
  139. package/dist/browser/text-editor/clipboard-html.js.map +1 -1
  140. package/dist/browser/text-editor/clipboard-loading.js +44 -15
  141. package/dist/browser/text-editor/clipboard-loading.js.map +1 -1
  142. package/dist/browser/text-editor/engine.js +9 -4
  143. package/dist/browser/text-editor/engine.js.map +1 -1
  144. package/dist/browser/text-editor/format.js +37 -1
  145. package/dist/browser/text-editor/format.js.map +1 -1
  146. package/dist/browser/text-editor/paste.js +2 -1
  147. package/dist/browser/text-editor/paste.js.map +1 -1
  148. package/dist/ssr/actions/SortableList.js +116 -0
  149. package/dist/ssr/actions/SortableList.js.map +1 -0
  150. package/dist/ssr/actions/Toolbar.js +89 -35
  151. package/dist/ssr/actions/Toolbar.js.map +1 -1
  152. package/dist/ssr/actions/drag-and-drop.js +2 -1
  153. package/dist/ssr/actions/drag-and-drop.js.map +1 -1
  154. package/dist/ssr/actions/index.js +1 -0
  155. package/dist/ssr/actions/index.js.map +1 -1
  156. package/dist/ssr/actions/sortable-list-messages.js +35 -0
  157. package/dist/ssr/actions/sortable-list-messages.js.map +1 -0
  158. package/dist/ssr/chart-inspection.js +2 -1
  159. package/dist/ssr/chart-inspection.js.map +1 -1
  160. package/dist/ssr/charts/core/balance-flow-data.js +93 -0
  161. package/dist/ssr/charts/core/balance-flow-data.js.map +1 -0
  162. package/dist/ssr/charts/core/balance-flow-fields.js +19 -0
  163. package/dist/ssr/charts/core/balance-flow-fields.js.map +1 -0
  164. package/dist/ssr/charts/core/balance-flow-frame.js +44 -0
  165. package/dist/ssr/charts/core/balance-flow-frame.js.map +1 -0
  166. package/dist/ssr/charts/core/balance-flow-messages.js +49 -0
  167. package/dist/ssr/charts/core/balance-flow-messages.js.map +1 -0
  168. package/dist/ssr/charts/core/balance-flow-size.js +42 -0
  169. package/dist/ssr/charts/core/balance-flow-size.js.map +1 -0
  170. package/dist/ssr/charts/core/balance-flow.js +195 -0
  171. package/dist/ssr/charts/core/balance-flow.js.map +1 -0
  172. package/dist/ssr/charts/core/calendar-layout.js +105 -0
  173. package/dist/ssr/charts/core/calendar-layout.js.map +1 -0
  174. package/dist/ssr/charts/core/calendar.js +2 -104
  175. package/dist/ssr/charts/core/calendar.js.map +1 -1
  176. package/dist/ssr/charts/core/index.js +9 -1
  177. package/dist/ssr/charts/core/index.js.map +1 -1
  178. package/dist/ssr/charts/core/inspection.js +2 -1
  179. package/dist/ssr/charts/core/inspection.js.map +1 -1
  180. package/dist/ssr/charts/core/number-format.js +53 -0
  181. package/dist/ssr/charts/core/number-format.js.map +1 -0
  182. package/dist/ssr/charts/core/registry.js +3 -1
  183. package/dist/ssr/charts/core/registry.js.map +1 -1
  184. package/dist/ssr/charts/core/render-size.js +2 -0
  185. package/dist/ssr/charts/core/render-size.js.map +1 -1
  186. package/dist/ssr/charts/core/render.js +8 -1
  187. package/dist/ssr/charts/core/render.js.map +1 -1
  188. package/dist/ssr/charts/core/snapshot.js +3 -3
  189. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  190. package/dist/ssr/charts/core/types.js.map +1 -1
  191. package/dist/ssr/charts/description.js.map +1 -1
  192. package/dist/ssr/charts.js +2 -0
  193. package/dist/ssr/charts.js.map +1 -1
  194. package/dist/ssr/content/Chart.js +3 -1
  195. package/dist/ssr/content/Chart.js.map +1 -1
  196. package/dist/ssr/content/ChartBalanceFlow.js +69 -0
  197. package/dist/ssr/content/ChartBalanceFlow.js.map +1 -0
  198. package/dist/ssr/content/ChartExplorer.js +1 -1
  199. package/dist/ssr/content/ChartExplorer.js.map +1 -1
  200. package/dist/ssr/content/ChartRoot.js +1 -1
  201. package/dist/ssr/content/ChartRoot.js.map +1 -1
  202. package/dist/ssr/content/DataTable.js +72 -118
  203. package/dist/ssr/content/DataTable.js.map +1 -1
  204. package/dist/ssr/content/FileView.js +39 -50
  205. package/dist/ssr/content/FileView.js.map +1 -1
  206. package/dist/ssr/content/LoadMore.js +146 -0
  207. package/dist/ssr/content/LoadMore.js.map +1 -0
  208. package/dist/ssr/content/MapDialog.js +469 -0
  209. package/dist/ssr/content/MapDialog.js.map +1 -0
  210. package/dist/ssr/content/MapTile.js +92 -0
  211. package/dist/ssr/content/MapTile.js.map +1 -0
  212. package/dist/ssr/content/MapView.js +12 -8
  213. package/dist/ssr/content/MapView.js.map +1 -1
  214. package/dist/ssr/content/PdfPages.js +538 -0
  215. package/dist/ssr/content/PdfPages.js.map +1 -0
  216. package/dist/ssr/content/PdfViewer.js +226 -457
  217. package/dist/ssr/content/PdfViewer.js.map +1 -1
  218. package/dist/ssr/content/VirtualFeed.js +292 -44
  219. package/dist/ssr/content/VirtualFeed.js.map +1 -1
  220. package/dist/ssr/content/chart-balance-flow-controller.js +184 -0
  221. package/dist/ssr/content/chart-balance-flow-controller.js.map +1 -0
  222. package/dist/ssr/content/chart-balance-flow.js +6 -0
  223. package/dist/ssr/content/chart-balance-flow.js.map +1 -0
  224. package/dist/ssr/content/chart-inspection-core.js +1 -73
  225. package/dist/ssr/content/chart-inspection-core.js.map +1 -1
  226. package/dist/ssr/content/chart-inspection-mount.js +75 -0
  227. package/dist/ssr/content/chart-inspection-mount.js.map +1 -0
  228. package/dist/ssr/content/chart-svg.js +1 -1
  229. package/dist/ssr/content/chart-svg.js.map +1 -1
  230. package/dist/ssr/content/feed-messages.js +22 -2
  231. package/dist/ssr/content/feed-messages.js.map +1 -1
  232. package/dist/ssr/content/index.js +4 -1
  233. package/dist/ssr/content/index.js.map +1 -1
  234. package/dist/ssr/content/map-dialog-messages.js +47 -0
  235. package/dist/ssr/content/map-dialog-messages.js.map +1 -0
  236. package/dist/ssr/content/map-navigation.js +15 -0
  237. package/dist/ssr/content/map-navigation.js.map +1 -0
  238. package/dist/ssr/content/map-view-messages.js +4 -0
  239. package/dist/ssr/content/map-view-messages.js.map +1 -1
  240. package/dist/ssr/content/map-view-types.js.map +1 -1
  241. package/dist/ssr/content/pdf-messages.js +8 -8
  242. package/dist/ssr/content/pdf-messages.js.map +1 -1
  243. package/dist/ssr/feedback/dialog-core.js +22 -10
  244. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  245. package/dist/ssr/feedback/index.js.map +1 -1
  246. package/dist/ssr/feedback/prompt-confirm.js +13 -2
  247. package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
  248. package/dist/ssr/feedback/prompts.js +32 -24
  249. package/dist/ssr/feedback/prompts.js.map +1 -1
  250. package/dist/ssr/feedback/success-check.js +47 -0
  251. package/dist/ssr/feedback/success-check.js.map +1 -0
  252. package/dist/ssr/feedback/toast-hit.js +16 -0
  253. package/dist/ssr/feedback/toast-hit.js.map +1 -0
  254. package/dist/ssr/feedback/toast-messages.js +6 -2
  255. package/dist/ssr/feedback/toast-messages.js.map +1 -1
  256. package/dist/ssr/feedback/toast.js +609 -98
  257. package/dist/ssr/feedback/toast.js.map +1 -1
  258. package/dist/ssr/intl/messages.js +4 -0
  259. package/dist/ssr/intl/messages.js.map +1 -1
  260. package/dist/ssr/layout/AppWorkspace.js +39 -5
  261. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  262. package/dist/ssr/layout/BottomSheet.js +32 -4
  263. package/dist/ssr/layout/BottomSheet.js.map +1 -1
  264. package/dist/ssr/layout/Breadcrumbs.js +62 -0
  265. package/dist/ssr/layout/Breadcrumbs.js.map +1 -0
  266. package/dist/ssr/layout/DetailPanel.js +10 -10
  267. package/dist/ssr/layout/DetailPanel.js.map +1 -1
  268. package/dist/ssr/layout/Discussion.js +39 -65
  269. package/dist/ssr/layout/Discussion.js.map +1 -1
  270. package/dist/ssr/layout/PanelDialog.js +54 -35
  271. package/dist/ssr/layout/PanelDialog.js.map +1 -1
  272. package/dist/ssr/layout/index.js +1 -0
  273. package/dist/ssr/layout/index.js.map +1 -1
  274. package/dist/ssr/layout/sheet-motion.js +479 -0
  275. package/dist/ssr/layout/sheet-motion.js.map +1 -0
  276. package/dist/ssr/surfaces/NoticeCard.js +33 -17
  277. package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
  278. package/dist/ssr/surfaces/Skeleton.js +32 -0
  279. package/dist/ssr/surfaces/Skeleton.js.map +1 -1
  280. package/dist/ssr/surfaces/index.js +1 -1
  281. package/dist/ssr/surfaces/index.js.map +1 -1
  282. package/dist/ssr/text-editor/TextEditor.js +7 -3
  283. package/dist/ssr/text-editor/TextEditor.js.map +1 -1
  284. package/dist/ssr/text-editor/clipboard-html.js +62 -26
  285. package/dist/ssr/text-editor/clipboard-html.js.map +1 -1
  286. package/dist/ssr/text-editor/clipboard-loading.js +44 -15
  287. package/dist/ssr/text-editor/clipboard-loading.js.map +1 -1
  288. package/dist/ssr/text-editor/engine.js +9 -4
  289. package/dist/ssr/text-editor/engine.js.map +1 -1
  290. package/dist/ssr/text-editor/format.js +37 -1
  291. package/dist/ssr/text-editor/format.js.map +1 -1
  292. package/dist/ssr/text-editor/paste.js +2 -1
  293. package/dist/ssr/text-editor/paste.js.map +1 -1
  294. package/dist/styles.css +1 -1
  295. package/dist/types/actions/SortableList.d.ts +26 -0
  296. package/dist/types/actions/Toolbar.d.ts +11 -0
  297. package/dist/types/actions/drag-and-drop.d.ts +2 -0
  298. package/dist/types/actions/index.d.ts +2 -0
  299. package/dist/types/actions/sortable-list-messages.d.ts +15 -0
  300. package/dist/types/chart-inspection.d.ts +2 -1
  301. package/dist/types/charts/core/balance-flow-data.d.ts +37 -0
  302. package/dist/types/charts/core/balance-flow-fields.d.ts +13 -0
  303. package/dist/types/charts/core/balance-flow-frame.d.ts +4 -0
  304. package/dist/types/charts/core/balance-flow-messages.d.ts +97 -0
  305. package/dist/types/charts/core/balance-flow-size.d.ts +21 -0
  306. package/dist/types/charts/core/balance-flow.d.ts +70 -0
  307. package/dist/types/charts/core/calendar-layout.d.ts +67 -0
  308. package/dist/types/charts/core/calendar.d.ts +2 -64
  309. package/dist/types/charts/core/index.d.ts +9 -1
  310. package/dist/types/charts/core/number-format.d.ts +28 -0
  311. package/dist/types/charts/core/registry.d.ts +2 -0
  312. package/dist/types/charts/core/types.d.ts +1 -0
  313. package/dist/types/charts/description.d.ts +17 -0
  314. package/dist/types/charts.d.ts +2 -0
  315. package/dist/types/content/ChartBalanceFlow.d.ts +17 -0
  316. package/dist/types/content/ChartRoot.d.ts +2 -1
  317. package/dist/types/content/DataTable.d.ts +7 -1
  318. package/dist/types/content/LoadMore.d.ts +41 -0
  319. package/dist/types/content/MapDialog.d.ts +105 -0
  320. package/dist/types/content/MapTile.d.ts +37 -0
  321. package/dist/types/content/PdfPages.d.ts +57 -0
  322. package/dist/types/content/PdfViewer.d.ts +35 -19
  323. package/dist/types/content/VirtualFeed.d.ts +57 -18
  324. package/dist/types/content/chart-balance-flow-controller.d.ts +12 -0
  325. package/dist/types/content/chart-balance-flow.d.ts +4 -0
  326. package/dist/types/content/chart-inspection-core.d.ts +0 -17
  327. package/dist/types/content/chart-inspection-mount.d.ts +21 -0
  328. package/dist/types/content/feed-messages.d.ts +10 -0
  329. package/dist/types/content/index.d.ts +6 -3
  330. package/dist/types/content/map-dialog-messages.d.ts +19 -0
  331. package/dist/types/content/map-navigation.d.ts +13 -0
  332. package/dist/types/content/map-view-messages.d.ts +2 -0
  333. package/dist/types/content/map-view-types.d.ts +5 -0
  334. package/dist/types/content/pdf-messages.d.ts +2 -2
  335. package/dist/types/feedback/dialog-core.d.ts +6 -0
  336. package/dist/types/feedback/index.d.ts +2 -2
  337. package/dist/types/feedback/prompt-confirm.d.ts +2 -0
  338. package/dist/types/feedback/prompts.d.ts +5 -1
  339. package/dist/types/feedback/success-check.d.ts +4 -0
  340. package/dist/types/feedback/toast-hit.d.ts +5 -0
  341. package/dist/types/feedback/toast-messages.d.ts +3 -1
  342. package/dist/types/feedback/toast.d.ts +42 -5
  343. package/dist/types/intl/messages.d.ts +2 -0
  344. package/dist/types/layout/AppWorkspace.d.ts +10 -0
  345. package/dist/types/layout/BottomSheet.d.ts +6 -0
  346. package/dist/types/layout/Breadcrumbs.d.ts +19 -0
  347. package/dist/types/layout/DetailPanel.d.ts +4 -1
  348. package/dist/types/layout/PanelDialog.d.ts +5 -0
  349. package/dist/types/layout/index.d.ts +2 -1
  350. package/dist/types/layout/sheet-motion.d.ts +32 -0
  351. package/dist/types/surfaces/NoticeCard.d.ts +14 -1
  352. package/dist/types/surfaces/Skeleton.d.ts +13 -1
  353. package/dist/types/surfaces/index.d.ts +1 -1
  354. package/dist/types/text-editor/TextEditor.d.ts +5 -0
  355. package/dist/types/text-editor/clipboard-loading.d.ts +2 -3
  356. package/dist/types/text-editor/engine.d.ts +6 -1
  357. package/dist/types/text-editor/format.d.ts +3 -1
  358. package/package.json +2 -2
  359. package/dist/browser/content/PdfPreview.js +0 -448
  360. package/dist/browser/content/PdfPreview.js.map +0 -1
  361. package/dist/ssr/content/PdfPreview.js +0 -300
  362. package/dist/ssr/content/PdfPreview.js.map +0 -1
  363. package/dist/types/content/PdfPreview.d.ts +0 -26
@@ -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
  };
@@ -0,0 +1,19 @@
1
+ import { type JSX } from "solid-js";
2
+ export type BreadcrumbItem = {
3
+ label: string;
4
+ };
5
+ export type BreadcrumbsProps = {
6
+ /** The path from the top: every item but the last is a link, the last is the current place. */
7
+ items: readonly BreadcrumbItem[];
8
+ /** Names the path for assistive technology, for example "Path". */
9
+ label: string;
10
+ /** Called with the index of the link that was activated; never for the current place. */
11
+ onSelect: (index: number) => void;
12
+ disabled?: boolean;
13
+ class?: string;
14
+ };
15
+ /**
16
+ * A path inside a dialog or panel: the levels above as blue text links, the current level as text. It stays on one
17
+ * line; a long path scrolls sideways with a fade on the side where more follows, and shows its end after each change.
18
+ */
19
+ export declare function Breadcrumbs(props: BreadcrumbsProps): JSX.Element;
@@ -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.
@@ -1,7 +1,7 @@
1
1
  export { AnchoredPopover, type AnchoredPopoverProps } from "./AnchoredPopover";
2
2
  export type { AppOverviewCardsProps, AppOverviewEmptyStateProps, AppOverviewPanelProps, AppOverviewProps, } from "./AppOverview";
3
3
  export { default as AppOverview } from "./AppOverview";
4
- export type { AppWorkspaceBottomDrawerHeight, AppWorkspaceBottomDrawerProps, AppWorkspaceContentProps, AppWorkspaceDetailProps, AppWorkspaceDetailWidth, AppWorkspaceHeadProps, AppWorkspaceLevelSwitcher, AppWorkspaceMainPaneProps, AppWorkspaceMainProps, AppWorkspaceNavTreeItemProps, AppWorkspaceNavTreeMove, AppWorkspaceNavTreeProps, AppWorkspaceProps, AppWorkspaceSidebarAccessoryVisibility, AppWorkspaceSidebarBodyProps, AppWorkspaceSidebarIconActionProps, AppWorkspaceSidebarIconActionTone, AppWorkspaceSidebarIconGridProps, AppWorkspaceSidebarItemActionProps, AppWorkspaceSidebarItemActionsProps, AppWorkspaceSidebarItemIconProps, AppWorkspaceSidebarItemLabelProps, AppWorkspaceSidebarItemMetaProps, AppWorkspaceSidebarItemProps, AppWorkspaceSidebarItemStatusProps, AppWorkspaceSidebarItemTone, AppWorkspaceSidebarProps, AppWorkspaceSidebarSectionProps, AppWorkspaceSidebarVisibility, AppWorkspaceWidthShare, } from "./AppWorkspace";
4
+ export type { AppWorkspaceBottomDrawerHeight, AppWorkspaceBottomDrawerProps, AppWorkspaceContentProps, AppWorkspaceDetailProps, AppWorkspaceDetailWidth, AppWorkspaceHeadProps, AppWorkspaceLevelSwitcher, AppWorkspaceMainPaneProps, AppWorkspaceMainProps, AppWorkspaceNavTreeItemProps, AppWorkspaceNavTreeMove, AppWorkspaceNavTreeProps, AppWorkspaceProps, AppWorkspaceSidebarAccessoryVisibility, AppWorkspaceSidebarBodyProps, AppWorkspaceSidebarIconActionProps, AppWorkspaceSidebarIconActionTone, AppWorkspaceSidebarIconGridProps, AppWorkspaceSidebarItemActionProps, AppWorkspaceSidebarItemActionsProps, AppWorkspaceSidebarItemIconProps, AppWorkspaceSidebarItemLabelProps, AppWorkspaceSidebarItemMetaProps, AppWorkspaceSidebarItemProps, AppWorkspaceSidebarItemStatusProps, AppWorkspaceSidebarItemTone, AppWorkspaceSidebarProps, AppWorkspaceSidebarSectionProps, AppWorkspaceSidebarToggleProps, AppWorkspaceSidebarVisibility, AppWorkspaceWidthShare, } from "./AppWorkspace";
5
5
  export { appWorkspaceDetailElementId, default as AppWorkspace } from "./AppWorkspace";
6
6
  export { AppWorkspaceSidebarItemStatus } from "./AppWorkspaceSidebarItemStatus";
7
7
  export { watchAppHostWidth } from "./app-host-width";
@@ -10,6 +10,7 @@ export { installAppWorkspaceController, parkWorkspaceDetailDrawers } from "./app
10
10
  export type { AppWorkspaceLayoutState, AppWorkspaceResizeKind, } from "./app-workspace-state";
11
11
  export { APP_WORKSPACE_DETAIL_DEFAULT, APP_WORKSPACE_DETAIL_MAX, APP_WORKSPACE_DETAIL_MIN, APP_WORKSPACE_DRAWER_DEFAULT, APP_WORKSPACE_DRAWER_MAX, APP_WORKSPACE_DRAWER_MIN, APP_WORKSPACE_MAIN_MIN, APP_WORKSPACE_MAIN_MIN_HEIGHT, APP_WORKSPACE_PANE_DEFAULT, APP_WORKSPACE_PANE_MAX, APP_WORKSPACE_PANE_MIN, APP_WORKSPACE_SIDEBAR_COLLAPSE_THRESHOLD, APP_WORKSPACE_SIDEBAR_COLLAPSED, APP_WORKSPACE_SIDEBAR_DEFAULT, APP_WORKSPACE_SIDEBAR_MAX, APP_WORKSPACE_SIDEBAR_MIN, appWorkspaceLayoutStyle, appWorkspacePanelVariable, appWorkspaceResizeLimits, normalizeAppWorkspaceLayoutState, parseAppWorkspaceLayoutState, resolveAppWorkspaceSidebarWidth, safeAppWorkspacePanelId, serializeAppWorkspaceLayoutState, shouldCollapseAppWorkspaceSidebar, } from "./app-workspace-state";
12
12
  export { type BottomSheetProps, bottomSheetAdaptiveOptions, bottomSheetOptions, default as BottomSheet } from "./BottomSheet";
13
+ export { type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps } from "./Breadcrumbs";
13
14
  export type { DataPanelProps } from "./DataPanel";
14
15
  export { DataPanel } from "./DataPanel";
15
16
  export type { DetailPanelActionButtonProps, DetailPanelActionCheckbox, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSummaryProps, } from "./DetailPanel";
@@ -0,0 +1,32 @@
1
+ export type SheetDetent = "half" | "full";
2
+ export type SheetMotionOptions = {
3
+ /** The sheet's dialog element, `.k2b-bottom-sheet-frame`. */
4
+ frame: HTMLElement;
5
+ /** The panel inside the frame that holds the header, the body, and the footer. */
6
+ panel: HTMLElement;
7
+ handle: HTMLElement | null;
8
+ /** Opens at half height and rests at half or full height; without, the sheet rests at its content's height. */
9
+ detents: boolean;
10
+ /** Whether a drag or the handle may close the sheet now. */
11
+ canDismiss: () => boolean;
12
+ /** Asks the owner to close, after the sheet slid out. When the owner keeps it, the sheet slides back. */
13
+ dismiss: () => void | Promise<void>;
14
+ onDetent?: (detent: SheetDetent) => void;
15
+ };
16
+ export type SheetMotion = {
17
+ /** Once the dialog is open: measures the sheet and slides it in. */
18
+ open: () => void;
19
+ /** The handle's press: the other detent, or closing without detents. */
20
+ press: () => void;
21
+ /** Moves between detents from the keyboard. */
22
+ step: (direction: "up" | "down") => void;
23
+ dispose: () => void;
24
+ };
25
+ /**
26
+ * Moves a bottom sheet with transform and opacity only. Its layout height is fixed when it opens (the content's height,
27
+ * or the full height with detents) and never animates; the sheet slides by `--k2b-sheet-y`, the footer stays on the
28
+ * screen's edge between half and full height by `--k2b-sheet-footer-y`, and the backdrop dims by `--k2b-sheet-dim`.
29
+ * A glide is a Web Animation that ends on exactly those values, so it lands on its detent without a settle. A drag on
30
+ * the handle or the header follows the pointer; a finger anywhere follows too, except where a list still scrolls.
31
+ */
32
+ export declare function attachSheetMotion(options: SheetMotionOptions): SheetMotion;
@@ -15,10 +15,22 @@ type NoticeCardContentProps = {
15
15
  export type NoticeCardProps = Omit<JSX.HTMLAttributes<HTMLElement>, "children" | "class" | "title"> & NoticeCardContentProps & {
16
16
  tone?: NoticeTone;
17
17
  /**
18
- * A Tabler icon class. Turns the notice into a compact status line whose icon and text take the tone colour. `true`
18
+ * A Tabler icon class. By default it turns the notice into a compact status line whose icon and text take the tone
19
+ * colour; `layout="card"` keeps the card instead. `true`
19
20
  * takes the tone's own icon, the one a toned dialog shows, and names the tone for screen readers.
20
21
  */
21
22
  icon?: string | true;
23
+ /**
24
+ * Where an icon goes. `line`, the default, is the compact status line above. `card` keeps the calm card and sets the
25
+ * icon in the tone colour beside the title, text, and actions, which share one text edge.
26
+ */
27
+ layout?: "line" | "card";
28
+ /**
29
+ * The direct next step: one or two `Button`s or `ButtonLink`s (`size="sm"`) in one row below the text. The primary
30
+ * action takes the tone's button variant; a second one is `secondary`. In a `NoticeCard.Grid` row the actions of all
31
+ * cards share the bottom edge.
32
+ */
33
+ actions?: JSX.Element;
22
34
  class?: string;
23
35
  bodyClass?: string;
24
36
  };
@@ -31,6 +43,7 @@ export declare const NOTICE_CARD_CLASSES: {
31
43
  readonly meta: "k2b-notice-card__meta";
32
44
  readonly description: "k2b-notice-card__description";
33
45
  readonly body: "k2b-notice-card__body";
46
+ readonly actions: "k2b-notice-card__actions";
34
47
  };
35
48
  declare function NoticeCardComponent(props: NoticeCardProps): JSX.Element;
36
49
  export type NoticeGridProps<T> = {
@@ -1,6 +1,18 @@
1
- import type { JSX } from "solid-js";
1
+ import { type Accessor, type JSX } from "solid-js";
2
2
  export type SkeletonProps = {
3
3
  class?: string;
4
4
  };
5
5
  /** Decorative loading geometry. The consumer owns dimensions and one accessible loading status. */
6
6
  export declare function Skeleton(props: SkeletonProps): JSX.Element;
7
+ export type DelayedLoadingOptions = {
8
+ /** How long `pending` must last before the loading state shows. Defaults to 200 ms. */
9
+ delay?: number;
10
+ /** How long a shown loading state stays at least, also when the answer arrives sooner. Defaults to 300 ms. */
11
+ minimum?: number;
12
+ };
13
+ /**
14
+ * Whether a loading state, such as `Skeleton` rows, should show for `pending`: only once it lasted `delay`, then for at
15
+ * least `minimum`. A fast answer never flashes placeholders, and a slow one never blinks them away. Until it is true,
16
+ * keep the previous content in place. It starts false, so server and first client render agree.
17
+ */
18
+ export declare function createDelayedLoading(pending: Accessor<boolean>, options?: DelayedLoadingOptions): Accessor<boolean>;
@@ -32,7 +32,7 @@ export type { ResourceCardColor, ResourceCardProps, ResourceCardState } from "./
32
32
  export { ResourceCard } from "./ResourceCard";
33
33
  export type { SectionFrame, SectionPartProps, SectionProps, SectionSize, SectionState, SectionTone } from "./Section";
34
34
  export { Section } from "./Section";
35
- export { Skeleton, type SkeletonProps } from "./Skeleton";
35
+ export { createDelayedLoading, type DelayedLoadingOptions, Skeleton, type SkeletonProps } from "./Skeleton";
36
36
  export type { StatCellAccent, StatCellCompare, StatCellDelta, StatCellProps, StatCellSize, StatCellTone } from "./StatCell";
37
37
  export { StatCell } from "./StatCell";
38
38
  export type { StatGridAction, StatGridColumns, StatGridProps, StatGridSize, StatGridSurface, } from "./StatGrid";
@@ -11,6 +11,11 @@ export type TextEditorProps = {
11
11
  mode?: TextEditorMode;
12
12
  onModeChange?: (mode: TextEditorMode) => void;
13
13
  readOnly?: boolean;
14
+ /**
15
+ * A short pause in editing, such as while the host sends or saves: input waits, while the caret, the focus, a phone
16
+ * keyboard, and the toolbar (disabled) stay in place. Use `readOnly` for text that cannot be edited.
17
+ */
18
+ locked?: boolean;
14
19
  loading?: boolean;
15
20
  placeholder?: string;
16
21
  extensions?: Extension;
@@ -1,8 +1,7 @@
1
1
  import { type EditorView, ViewPlugin } from "@codemirror/view";
2
2
  import type { TableHost } from "./table";
3
- /** Load the HTML sanitizer only when needed, before either paste consumer runs.
4
- * A delayed paste never overwrites edits made while its parser was loading.
5
- */
3
+ /** Preload on focus and map a delayed paste through edits at its original target. */
6
4
  export declare const clipboardLoading: (getHost: (view: EditorView) => TableHost | null, syncSelection?: (view: EditorView) => void) => ViewPlugin<{
5
+ update(update: import("@codemirror/view").ViewUpdate): void;
7
6
  destroy(): void;
8
7
  }, undefined>;
@@ -28,7 +28,12 @@ export declare function createTextEditor(options: TextEditorOptions): {
28
28
  /** Also re-reads `presentation`, so a host can refresh it, e.g. after a theme change. */
29
29
  setMode: (mode: TextEditorMode) => void;
30
30
  setLabel: (next: string) => void;
31
- setReadOnly: (readOnly: boolean) => void;
31
+ /**
32
+ * `locked` rejects input but keeps the text editable for the browser, so its caret, focus, and a phone keyboard
33
+ * stay through a short pause. Hosts re-run this from reactive state that may change inside an editor update; an
34
+ * unchanged value must not dispatch.
35
+ */
36
+ setReadOnly: (readOnly: boolean, locked?: boolean) => void;
32
37
  destroy: () => void;
33
38
  };
34
39
  export type TextEditorController = ReturnType<typeof createTextEditor>;
@@ -15,6 +15,7 @@ export type InlineFormat = "bold" | "italic" | "code" | "strike" | "link" | {
15
15
  };
16
16
  /** Pure transaction spec, also used when a missing table cell must be materialized atomically. */
17
17
  export declare const inlineFormat: (state: EditorState, name: InlineFormat) => TransactionSpec;
18
+ declare const orderedList: (view: EditorView) => boolean;
18
19
  export declare const commands: {
19
20
  bold: (view: EditorView) => boolean;
20
21
  italic: (view: EditorView) => boolean;
@@ -26,9 +27,10 @@ export declare const commands: {
26
27
  heading3: (view: EditorView) => boolean;
27
28
  codeBlock: (view: EditorView) => boolean;
28
29
  bulletList: (view: EditorView) => boolean;
29
- orderedList: (view: EditorView) => boolean;
30
+ orderedList: typeof orderedList;
30
31
  quote: (view: EditorView) => boolean;
31
32
  link: (view: EditorView) => boolean;
32
33
  table: (view: EditorView) => boolean;
33
34
  rule: (view: EditorView) => boolean;
34
35
  };
36
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k2b/ui",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "description": "Production-ready components for SolidJS applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -86,7 +86,7 @@
86
86
  "@codemirror/view": "6.43.7",
87
87
  "@fontsource/ibm-plex-mono": "5.3.0",
88
88
  "@fontsource/ibm-plex-sans": "5.3.0",
89
- "@k2b/stdlib": "0.31.1",
89
+ "@k2b/stdlib": "0.32.0",
90
90
  "@lezer/highlight": "1.2.4",
91
91
  "@lezer/markdown": "1.7.2",
92
92
  "@tabler/icons-webfont": "3.48.0",