@k2b/ui 0.65.0 → 0.67.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 (916) hide show
  1. package/README.md +47 -0
  2. package/dist/base.css +6 -1
  3. package/dist/browser/actions/Dropdown.js +2 -1
  4. package/dist/browser/actions/Dropdown.js.map +1 -1
  5. package/dist/browser/actions/FilterChip.js +3 -2
  6. package/dist/browser/actions/FilterChip.js.map +1 -1
  7. package/dist/browser/actions/SegmentedControl.js +20 -14
  8. package/dist/browser/actions/SegmentedControl.js.map +1 -1
  9. package/dist/browser/charts/core/line-details.js +52 -12
  10. package/dist/browser/charts/core/line-details.js.map +1 -1
  11. package/dist/browser/charts/core/line-extras.js +122 -0
  12. package/dist/browser/charts/core/line-extras.js.map +1 -0
  13. package/dist/browser/charts/core/line-options.js +1 -1
  14. package/dist/browser/charts/core/line-options.js.map +1 -1
  15. package/dist/browser/charts/core/snapshot.js +3 -2
  16. package/dist/browser/charts/core/snapshot.js.map +1 -1
  17. package/dist/browser/charts/core/svg-barGauge.js +2 -2
  18. package/dist/browser/charts/core/svg-barGauge.js.map +1 -1
  19. package/dist/browser/charts/core/svg-common.js +22 -1
  20. package/dist/browser/charts/core/svg-common.js.map +1 -1
  21. package/dist/browser/charts/core/svg-renderers.js +2 -2
  22. package/dist/browser/charts/core/svg-renderers.js.map +1 -1
  23. package/dist/browser/chat/ChatDecision.js +5 -4
  24. package/dist/browser/chat/ChatDecision.js.map +1 -1
  25. package/dist/browser/chat/ChatPrimitives.js +7 -5
  26. package/dist/browser/chat/ChatPrimitives.js.map +1 -1
  27. package/dist/browser/content/Calendar.js +1103 -922
  28. package/dist/browser/content/Calendar.js.map +1 -1
  29. package/dist/browser/content/CalendarDayView.js +336 -259
  30. package/dist/browser/content/CalendarDayView.js.map +1 -1
  31. package/dist/browser/content/CalendarWeekView.js +332 -236
  32. package/dist/browser/content/CalendarWeekView.js.map +1 -1
  33. package/dist/browser/content/ChartRoot.js +233 -100
  34. package/dist/browser/content/ChartRoot.js.map +1 -1
  35. package/dist/browser/content/MarkdownView.js +3 -1
  36. package/dist/browser/content/MarkdownView.js.map +1 -1
  37. package/dist/browser/content/ReferenceChip.js +2 -1
  38. package/dist/browser/content/ReferenceChip.js.map +1 -1
  39. package/dist/browser/content/calendar-days.js +114 -26
  40. package/dist/browser/content/calendar-days.js.map +1 -1
  41. package/dist/browser/content/calendar-event-detail.js +133 -98
  42. package/dist/browser/content/calendar-event-detail.js.map +1 -1
  43. package/dist/browser/content/calendar-events.js +107 -0
  44. package/dist/browser/content/calendar-events.js.map +1 -0
  45. package/dist/browser/content/calendar-messages.js +28 -2
  46. package/dist/browser/content/calendar-messages.js.map +1 -1
  47. package/dist/browser/content/calendar-month-layout.js +89 -5
  48. package/dist/browser/content/calendar-month-layout.js.map +1 -1
  49. package/dist/browser/content/calendar-month-scroll.js +2 -1
  50. package/dist/browser/content/calendar-month-scroll.js.map +1 -1
  51. package/dist/browser/content/calendar-overflow.browser-suite.js +534 -0
  52. package/dist/browser/content/calendar-overflow.browser-suite.js.map +1 -0
  53. package/dist/browser/content/calendar-overflow.js +366 -0
  54. package/dist/browser/content/calendar-overflow.js.map +1 -0
  55. package/dist/browser/content/calendar-shared.js +119 -104
  56. package/dist/browser/content/calendar-shared.js.map +1 -1
  57. package/dist/browser/content/calendar-snapshot.js +71 -0
  58. package/dist/browser/content/calendar-snapshot.js.map +1 -0
  59. package/dist/browser/content/calendar-time-view.js +519 -305
  60. package/dist/browser/content/calendar-time-view.js.map +1 -1
  61. package/dist/browser/content/chart-bar.js +3 -3
  62. package/dist/browser/content/chart-bar.js.map +1 -1
  63. package/dist/browser/content/chart-calendar.js +2 -1
  64. package/dist/browser/content/chart-calendar.js.map +1 -1
  65. package/dist/browser/content/chart-inspection-mount.js +1 -1
  66. package/dist/browser/content/chart-inspection-mount.js.map +1 -1
  67. package/dist/browser/content/chart-line-gaps.js +1 -1
  68. package/dist/browser/content/chart-line-gaps.js.map +1 -1
  69. package/dist/browser/content/chart-message-catalog.js +6 -0
  70. package/dist/browser/content/chart-message-catalog.js.map +1 -1
  71. package/dist/browser/content/chart-state-timeline.js +45 -12
  72. package/dist/browser/content/chart-state-timeline.js.map +1 -1
  73. package/dist/browser/content/chart-svg.js +5 -1
  74. package/dist/browser/content/chart-svg.js.map +1 -1
  75. package/dist/browser/content/chart-tick-room.js +23 -0
  76. package/dist/browser/content/chart-tick-room.js.map +1 -1
  77. package/dist/browser/content/index.js +3 -0
  78. package/dist/browser/content/index.js.map +1 -1
  79. package/dist/browser/content/markdown-info-blocks.js +1 -1
  80. package/dist/browser/content/markdown-info-blocks.js.map +1 -1
  81. package/dist/browser/content/markdown-links.js +36 -2
  82. package/dist/browser/content/markdown-links.js.map +1 -1
  83. package/dist/browser/feedback/prompt-form-loader.js +3 -2
  84. package/dist/browser/feedback/prompt-form-loader.js.map +1 -1
  85. package/dist/browser/feedback/toast.js +21 -1
  86. package/dist/browser/feedback/toast.js.map +1 -1
  87. package/dist/browser/inputs/AutocompleteSelect.js +2 -1
  88. package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
  89. package/dist/browser/inputs/ChoiceInputs.js +3 -2
  90. package/dist/browser/inputs/ChoiceInputs.js.map +1 -1
  91. package/dist/browser/inputs/ColorChoices.js +2 -1
  92. package/dist/browser/inputs/ColorChoices.js.map +1 -1
  93. package/dist/browser/inputs/RichSelect.js +2 -1
  94. package/dist/browser/inputs/RichSelect.js.map +1 -1
  95. package/dist/browser/inputs/Select.js +3 -2
  96. package/dist/browser/inputs/Select.js.map +1 -1
  97. package/dist/browser/inputs/date-picker.js +9 -0
  98. package/dist/browser/inputs/date-picker.js.map +1 -1
  99. package/dist/browser/inputs/markdown/Toolbar.js +18 -14
  100. package/dist/browser/inputs/markdown/Toolbar.js.map +1 -1
  101. package/dist/browser/internal/color.js +25 -0
  102. package/dist/browser/internal/color.js.map +1 -1
  103. package/dist/browser/internal/pending-loads.js +17 -0
  104. package/dist/browser/internal/pending-loads.js.map +1 -0
  105. package/dist/browser/intl/messages.js +16 -0
  106. package/dist/browser/intl/messages.js.map +1 -1
  107. package/dist/browser/layout/AppWorkspace.js +6 -0
  108. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  109. package/dist/browser/layout/DetailSections.js +110 -98
  110. package/dist/browser/layout/DetailSections.js.map +1 -1
  111. package/dist/browser/layout/FloatingWindow.js +2 -1
  112. package/dist/browser/layout/FloatingWindow.js.map +1 -1
  113. package/dist/browser/layout/Navigation.js +172 -123
  114. package/dist/browser/layout/Navigation.js.map +1 -1
  115. package/dist/browser/layout/Panes.js +188 -237
  116. package/dist/browser/layout/Panes.js.map +1 -1
  117. package/dist/browser/layout/SidebarSwitcher.js +7 -3
  118. package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
  119. package/dist/browser/layout/navigation-model.js.map +1 -1
  120. package/dist/browser/layout/panes-messages.js +0 -4
  121. package/dist/browser/layout/panes-messages.js.map +1 -1
  122. package/dist/browser/surfaces/Avatar.js +5 -2
  123. package/dist/browser/surfaces/Avatar.js.map +1 -1
  124. package/dist/browser/surfaces/NoticeCard.js +78 -36
  125. package/dist/browser/surfaces/NoticeCard.js.map +1 -1
  126. package/dist/browser/surfaces/NoticeRow.js +10 -3
  127. package/dist/browser/surfaces/NoticeRow.js.map +1 -1
  128. package/dist/browser/surfaces/index.js +1 -1
  129. package/dist/browser/surfaces/index.js.map +1 -1
  130. package/dist/browser/surfaces/notice-card-classes.js +16 -0
  131. package/dist/browser/surfaces/notice-card-classes.js.map +1 -0
  132. package/dist/browser/surfaces/person-color.js +34 -4
  133. package/dist/browser/surfaces/person-color.js.map +1 -1
  134. package/dist/browser/v2/accent.js +114 -0
  135. package/dist/browser/v2/accent.js.map +1 -0
  136. package/dist/browser/v2/action-bar.js +125 -0
  137. package/dist/browser/v2/action-bar.js.map +1 -0
  138. package/dist/browser/v2/addresses.js +135 -0
  139. package/dist/browser/v2/addresses.js.map +1 -0
  140. package/dist/browser/v2/announce.js +94 -0
  141. package/dist/browser/v2/announce.js.map +1 -0
  142. package/dist/browser/v2/attach-live.js +280 -0
  143. package/dist/browser/v2/attach-live.js.map +1 -0
  144. package/dist/browser/v2/attach.js +432 -0
  145. package/dist/browser/v2/attach.js.map +1 -0
  146. package/dist/browser/v2/bar-fold.js +405 -0
  147. package/dist/browser/v2/bar-fold.js.map +1 -0
  148. package/dist/browser/v2/behavior/adapter.js +378 -0
  149. package/dist/browser/v2/behavior/adapter.js.map +1 -0
  150. package/dist/browser/v2/behavior/bind.js +43 -0
  151. package/dist/browser/v2/behavior/bind.js.map +1 -0
  152. package/dist/browser/v2/behavior/board.js +184 -0
  153. package/dist/browser/v2/behavior/board.js.map +1 -0
  154. package/dist/browser/v2/behavior/calendar.js +39 -0
  155. package/dist/browser/v2/behavior/calendar.js.map +1 -0
  156. package/dist/browser/v2/behavior/code.js +25 -0
  157. package/dist/browser/v2/behavior/code.js.map +1 -0
  158. package/dist/browser/v2/behavior/controls.js +58 -0
  159. package/dist/browser/v2/behavior/controls.js.map +1 -0
  160. package/dist/browser/v2/behavior/dates.js +8 -0
  161. package/dist/browser/v2/behavior/dates.js.map +1 -0
  162. package/dist/browser/v2/behavior/dnd.js +545 -0
  163. package/dist/browser/v2/behavior/dnd.js.map +1 -0
  164. package/dist/browser/v2/behavior/files.js +43 -0
  165. package/dist/browser/v2/behavior/files.js.map +1 -0
  166. package/dist/browser/v2/behavior/layer.js +3 -0
  167. package/dist/browser/v2/behavior/layer.js.map +1 -0
  168. package/dist/browser/v2/behavior/lists.js +102 -0
  169. package/dist/browser/v2/behavior/lists.js.map +1 -0
  170. package/dist/browser/v2/behavior/menu.js +97 -0
  171. package/dist/browser/v2/behavior/menu.js.map +1 -0
  172. package/dist/browser/v2/behavior/messages.js +200 -0
  173. package/dist/browser/v2/behavior/messages.js.map +1 -0
  174. package/dist/browser/v2/behavior/overlays.js +304 -0
  175. package/dist/browser/v2/behavior/overlays.js.map +1 -0
  176. package/dist/browser/v2/behavior/pickers.js +86 -0
  177. package/dist/browser/v2/behavior/pickers.js.map +1 -0
  178. package/dist/browser/v2/behavior/resize.js +147 -0
  179. package/dist/browser/v2/behavior/resize.js.map +1 -0
  180. package/dist/browser/v2/behavior/segmented.js +17 -0
  181. package/dist/browser/v2/behavior/segmented.js.map +1 -0
  182. package/dist/browser/v2/behavior/select.js +134 -0
  183. package/dist/browser/v2/behavior/select.js.map +1 -0
  184. package/dist/browser/v2/behavior/time-input.js +95 -0
  185. package/dist/browser/v2/behavior/time-input.js.map +1 -0
  186. package/dist/browser/v2/behavior/time-text.js +83 -0
  187. package/dist/browser/v2/behavior/time-text.js.map +1 -0
  188. package/dist/browser/v2/behavior/tip.js +31 -0
  189. package/dist/browser/v2/behavior/tip.js.map +1 -0
  190. package/dist/browser/v2/behavior/toast.js +152 -0
  191. package/dist/browser/v2/behavior/toast.js.map +1 -0
  192. package/dist/browser/v2/behavior/treegrid.js +75 -0
  193. package/dist/browser/v2/behavior/treegrid.js.map +1 -0
  194. package/dist/browser/v2/board-messages.js +70 -0
  195. package/dist/browser/v2/board-messages.js.map +1 -0
  196. package/dist/browser/v2/board.js +471 -0
  197. package/dist/browser/v2/board.js.map +1 -0
  198. package/dist/browser/v2/button-failure.js +90 -0
  199. package/dist/browser/v2/button-failure.js.map +1 -0
  200. package/dist/browser/v2/button.js +309 -0
  201. package/dist/browser/v2/button.js.map +1 -0
  202. package/dist/browser/v2/colors.js +135 -0
  203. package/dist/browser/v2/colors.js.map +1 -0
  204. package/dist/browser/v2/columns-context.js +48 -0
  205. package/dist/browser/v2/columns-context.js.map +1 -0
  206. package/dist/browser/v2/components.js +2096 -0
  207. package/dist/browser/v2/components.js.map +1 -0
  208. package/dist/browser/v2/content.js +2195 -0
  209. package/dist/browser/v2/content.js.map +1 -0
  210. package/dist/browser/v2/control-messages.js +115 -0
  211. package/dist/browser/v2/control-messages.js.map +1 -0
  212. package/dist/browser/v2/controls.js +2623 -0
  213. package/dist/browser/v2/controls.js.map +1 -0
  214. package/dist/browser/v2/danger-zone.js +47 -0
  215. package/dist/browser/v2/danger-zone.js.map +1 -0
  216. package/dist/browser/v2/date-messages.js +61 -0
  217. package/dist/browser/v2/date-messages.js.map +1 -0
  218. package/dist/browser/v2/date-picker.js +405 -0
  219. package/dist/browser/v2/date-picker.js.map +1 -0
  220. package/dist/browser/v2/date-week-window.js +264 -0
  221. package/dist/browser/v2/date-week-window.js.map +1 -0
  222. package/dist/browser/v2/date-weeks.js +30 -0
  223. package/dist/browser/v2/date-weeks.js.map +1 -0
  224. package/dist/browser/v2/day-bar.js +87 -0
  225. package/dist/browser/v2/day-bar.js.map +1 -0
  226. package/dist/browser/v2/describe.js +582 -0
  227. package/dist/browser/v2/describe.js.map +1 -0
  228. package/dist/browser/v2/draft.js +55 -0
  229. package/dist/browser/v2/draft.js.map +1 -0
  230. package/dist/browser/v2/emoji-picker.js +240 -0
  231. package/dist/browser/v2/emoji-picker.js.map +1 -0
  232. package/dist/browser/v2/ends.js +37 -0
  233. package/dist/browser/v2/ends.js.map +1 -0
  234. package/dist/browser/v2/error-screen.js +118 -0
  235. package/dist/browser/v2/error-screen.js.map +1 -0
  236. package/dist/browser/v2/failed.js +90 -0
  237. package/dist/browser/v2/failed.js.map +1 -0
  238. package/dist/browser/v2/figures.js +179 -0
  239. package/dist/browser/v2/figures.js.map +1 -0
  240. package/dist/browser/v2/filter-bar.js +3009 -0
  241. package/dist/browser/v2/filter-bar.js.map +1 -0
  242. package/dist/browser/v2/filter-messages.js +244 -0
  243. package/dist/browser/v2/filter-messages.js.map +1 -0
  244. package/dist/browser/v2/head-search.js +159 -0
  245. package/dist/browser/v2/head-search.js.map +1 -0
  246. package/dist/browser/v2/heat-days.js +91 -0
  247. package/dist/browser/v2/heat-days.js.map +1 -0
  248. package/dist/browser/v2/heat.js +260 -0
  249. package/dist/browser/v2/heat.js.map +1 -0
  250. package/dist/browser/v2/icon.js +48 -0
  251. package/dist/browser/v2/icon.js.map +1 -0
  252. package/dist/browser/v2/index.js +84 -0
  253. package/dist/browser/v2/index.js.map +1 -0
  254. package/dist/browser/v2/layout.js +2118 -0
  255. package/dist/browser/v2/layout.js.map +1 -0
  256. package/dist/browser/v2/link.js +9 -0
  257. package/dist/browser/v2/link.js.map +1 -0
  258. package/dist/browser/v2/list-group.js +57 -0
  259. package/dist/browser/v2/list-group.js.map +1 -0
  260. package/dist/browser/v2/list-query.js +736 -0
  261. package/dist/browser/v2/list-query.js.map +1 -0
  262. package/dist/browser/v2/lookup.js +431 -0
  263. package/dist/browser/v2/lookup.js.map +1 -0
  264. package/dist/browser/v2/marks.js +733 -0
  265. package/dist/browser/v2/marks.js.map +1 -0
  266. package/dist/browser/v2/menu-panel.js +241 -0
  267. package/dist/browser/v2/menu-panel.js.map +1 -0
  268. package/dist/browser/v2/menu.js +797 -0
  269. package/dist/browser/v2/menu.js.map +1 -0
  270. package/dist/browser/v2/nav-drop.js +25 -0
  271. package/dist/browser/v2/nav-drop.js.map +1 -0
  272. package/dist/browser/v2/nav-face.js +16 -0
  273. package/dist/browser/v2/nav-face.js.map +1 -0
  274. package/dist/browser/v2/nav-tree.js +498 -0
  275. package/dist/browser/v2/nav-tree.js.map +1 -0
  276. package/dist/browser/v2/now-line.js +61 -0
  277. package/dist/browser/v2/now-line.js.map +1 -0
  278. package/dist/browser/v2/overlay-messages.js +41 -0
  279. package/dist/browser/v2/overlay-messages.js.map +1 -0
  280. package/dist/browser/v2/overlays.js +431 -0
  281. package/dist/browser/v2/overlays.js.map +1 -0
  282. package/dist/browser/v2/page-layer.js +42 -0
  283. package/dist/browser/v2/page-layer.js.map +1 -0
  284. package/dist/browser/v2/pane-name.js +55 -0
  285. package/dist/browser/v2/pane-name.js.map +1 -0
  286. package/dist/browser/v2/pane-print.js +32 -0
  287. package/dist/browser/v2/pane-print.js.map +1 -0
  288. package/dist/browser/v2/pane-sheet.js +147 -0
  289. package/dist/browser/v2/pane-sheet.js.map +1 -0
  290. package/dist/browser/v2/popover.js +152 -0
  291. package/dist/browser/v2/popover.js.map +1 -0
  292. package/dist/browser/v2/reaction-messages.js +31 -0
  293. package/dist/browser/v2/reaction-messages.js.map +1 -0
  294. package/dist/browser/v2/reactions.js +239 -0
  295. package/dist/browser/v2/reactions.js.map +1 -0
  296. package/dist/browser/v2/row-drag.js +19 -0
  297. package/dist/browser/v2/row-drag.js.map +1 -0
  298. package/dist/browser/v2/section-level.js +9 -0
  299. package/dist/browser/v2/section-level.js.map +1 -0
  300. package/dist/browser/v2/segmented.js +146 -0
  301. package/dist/browser/v2/segmented.js.map +1 -0
  302. package/dist/browser/v2/select-live.js +162 -0
  303. package/dist/browser/v2/select-live.js.map +1 -0
  304. package/dist/browser/v2/setting-messages.js +25 -0
  305. package/dist/browser/v2/setting-messages.js.map +1 -0
  306. package/dist/browser/v2/split-button.js +82 -0
  307. package/dist/browser/v2/split-button.js.map +1 -0
  308. package/dist/browser/v2/states.js +208 -0
  309. package/dist/browser/v2/states.js.map +1 -0
  310. package/dist/browser/v2/status-toolbar.js +23 -0
  311. package/dist/browser/v2/status-toolbar.js.map +1 -0
  312. package/dist/browser/v2/structure.js +503 -0
  313. package/dist/browser/v2/structure.js.map +1 -0
  314. package/dist/browser/v2/testing/index.js +26 -0
  315. package/dist/browser/v2/testing/index.js.map +1 -0
  316. package/dist/browser/v2/testing/measure-v2-layout.js +1024 -0
  317. package/dist/browser/v2/testing/measure-v2-layout.js.map +1 -0
  318. package/dist/browser/v2/testing/settled.js +58 -0
  319. package/dist/browser/v2/testing/settled.js.map +1 -0
  320. package/dist/browser/v2/testing/visible.js +14 -0
  321. package/dist/browser/v2/testing/visible.js.map +1 -0
  322. package/dist/browser/v2/toast-host.js +18 -0
  323. package/dist/browser/v2/toast-host.js.map +1 -0
  324. package/dist/browser/v2/toast.js +241 -0
  325. package/dist/browser/v2/toast.js.map +1 -0
  326. package/dist/browser/v2/tokens.js +97 -0
  327. package/dist/browser/v2/tokens.js.map +1 -0
  328. package/dist/browser/v2/tree-messages.js +32 -0
  329. package/dist/browser/v2/tree-messages.js.map +1 -0
  330. package/dist/browser/v2/types.js +71 -0
  331. package/dist/browser/v2/types.js.map +1 -0
  332. package/dist/browser/v2/unsaved-bar.js +225 -0
  333. package/dist/browser/v2/unsaved-bar.js.map +1 -0
  334. package/dist/browser/v2/unsaved-messages.js +65 -0
  335. package/dist/browser/v2/unsaved-messages.js.map +1 -0
  336. package/dist/browser/v2/width-cookie.js +45 -0
  337. package/dist/browser/v2/width-cookie.js.map +1 -0
  338. package/dist/browser/v2/workspace-messages.js +31 -0
  339. package/dist/browser/v2/workspace-messages.js.map +1 -0
  340. package/dist/browser/widgets/Dashboard.js +3 -2
  341. package/dist/browser/widgets/Dashboard.js.map +1 -1
  342. package/dist/ssr/actions/Dropdown.js +2 -1
  343. package/dist/ssr/actions/Dropdown.js.map +1 -1
  344. package/dist/ssr/actions/FilterChip.js +3 -2
  345. package/dist/ssr/actions/FilterChip.js.map +1 -1
  346. package/dist/ssr/actions/SegmentedControl.js +2 -2
  347. package/dist/ssr/actions/SegmentedControl.js.map +1 -1
  348. package/dist/ssr/charts/core/line-details.js +52 -12
  349. package/dist/ssr/charts/core/line-details.js.map +1 -1
  350. package/dist/ssr/charts/core/line-extras.js +122 -0
  351. package/dist/ssr/charts/core/line-extras.js.map +1 -0
  352. package/dist/ssr/charts/core/line-options.js +1 -1
  353. package/dist/ssr/charts/core/line-options.js.map +1 -1
  354. package/dist/ssr/charts/core/snapshot.js +3 -2
  355. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  356. package/dist/ssr/charts/core/svg-barGauge.js +2 -2
  357. package/dist/ssr/charts/core/svg-barGauge.js.map +1 -1
  358. package/dist/ssr/charts/core/svg-common.js +22 -1
  359. package/dist/ssr/charts/core/svg-common.js.map +1 -1
  360. package/dist/ssr/charts/core/svg-renderers.js +2 -2
  361. package/dist/ssr/charts/core/svg-renderers.js.map +1 -1
  362. package/dist/ssr/chat/ChatDecision.js +5 -4
  363. package/dist/ssr/chat/ChatDecision.js.map +1 -1
  364. package/dist/ssr/chat/ChatPrimitives.js +7 -5
  365. package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
  366. package/dist/ssr/content/Calendar.js +410 -323
  367. package/dist/ssr/content/Calendar.js.map +1 -1
  368. package/dist/ssr/content/CalendarDayView.js +122 -49
  369. package/dist/ssr/content/CalendarDayView.js.map +1 -1
  370. package/dist/ssr/content/CalendarWeekView.js +152 -49
  371. package/dist/ssr/content/CalendarWeekView.js.map +1 -1
  372. package/dist/ssr/content/ChartRoot.js +82 -16
  373. package/dist/ssr/content/ChartRoot.js.map +1 -1
  374. package/dist/ssr/content/MarkdownView.js +3 -1
  375. package/dist/ssr/content/MarkdownView.js.map +1 -1
  376. package/dist/ssr/content/ReferenceChip.js +2 -1
  377. package/dist/ssr/content/ReferenceChip.js.map +1 -1
  378. package/dist/ssr/content/calendar-days.js +114 -26
  379. package/dist/ssr/content/calendar-days.js.map +1 -1
  380. package/dist/ssr/content/calendar-event-detail.js +46 -10
  381. package/dist/ssr/content/calendar-event-detail.js.map +1 -1
  382. package/dist/ssr/content/calendar-events.js +107 -0
  383. package/dist/ssr/content/calendar-events.js.map +1 -0
  384. package/dist/ssr/content/calendar-messages.js +28 -2
  385. package/dist/ssr/content/calendar-messages.js.map +1 -1
  386. package/dist/ssr/content/calendar-month-layout.js +89 -5
  387. package/dist/ssr/content/calendar-month-layout.js.map +1 -1
  388. package/dist/ssr/content/calendar-month-scroll.js +2 -1
  389. package/dist/ssr/content/calendar-month-scroll.js.map +1 -1
  390. package/dist/ssr/content/calendar-overflow.browser-suite.js +534 -0
  391. package/dist/ssr/content/calendar-overflow.browser-suite.js.map +1 -0
  392. package/dist/ssr/content/calendar-overflow.js +272 -0
  393. package/dist/ssr/content/calendar-overflow.js.map +1 -0
  394. package/dist/ssr/content/calendar-shared.js +47 -42
  395. package/dist/ssr/content/calendar-shared.js.map +1 -1
  396. package/dist/ssr/content/calendar-snapshot.js +71 -0
  397. package/dist/ssr/content/calendar-snapshot.js.map +1 -0
  398. package/dist/ssr/content/calendar-time-view.js +319 -136
  399. package/dist/ssr/content/calendar-time-view.js.map +1 -1
  400. package/dist/ssr/content/chart-bar.js +3 -3
  401. package/dist/ssr/content/chart-bar.js.map +1 -1
  402. package/dist/ssr/content/chart-calendar.js +2 -1
  403. package/dist/ssr/content/chart-calendar.js.map +1 -1
  404. package/dist/ssr/content/chart-inspection-mount.js +1 -1
  405. package/dist/ssr/content/chart-inspection-mount.js.map +1 -1
  406. package/dist/ssr/content/chart-line-gaps.js +1 -1
  407. package/dist/ssr/content/chart-line-gaps.js.map +1 -1
  408. package/dist/ssr/content/chart-message-catalog.js +6 -0
  409. package/dist/ssr/content/chart-message-catalog.js.map +1 -1
  410. package/dist/ssr/content/chart-state-timeline.js +45 -12
  411. package/dist/ssr/content/chart-state-timeline.js.map +1 -1
  412. package/dist/ssr/content/chart-svg.js +5 -1
  413. package/dist/ssr/content/chart-svg.js.map +1 -1
  414. package/dist/ssr/content/chart-tick-room.js +23 -0
  415. package/dist/ssr/content/chart-tick-room.js.map +1 -1
  416. package/dist/ssr/content/index.js +3 -0
  417. package/dist/ssr/content/index.js.map +1 -1
  418. package/dist/ssr/content/markdown-info-blocks.js +1 -1
  419. package/dist/ssr/content/markdown-info-blocks.js.map +1 -1
  420. package/dist/ssr/content/markdown-links.js +36 -2
  421. package/dist/ssr/content/markdown-links.js.map +1 -1
  422. package/dist/ssr/feedback/prompt-form-loader.js +3 -2
  423. package/dist/ssr/feedback/prompt-form-loader.js.map +1 -1
  424. package/dist/ssr/feedback/toast.js +21 -1
  425. package/dist/ssr/feedback/toast.js.map +1 -1
  426. package/dist/ssr/inputs/AutocompleteSelect.js +2 -1
  427. package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
  428. package/dist/ssr/inputs/ChoiceInputs.js +3 -2
  429. package/dist/ssr/inputs/ChoiceInputs.js.map +1 -1
  430. package/dist/ssr/inputs/ColorChoices.js +2 -1
  431. package/dist/ssr/inputs/ColorChoices.js.map +1 -1
  432. package/dist/ssr/inputs/RichSelect.js +2 -1
  433. package/dist/ssr/inputs/RichSelect.js.map +1 -1
  434. package/dist/ssr/inputs/Select.js +3 -2
  435. package/dist/ssr/inputs/Select.js.map +1 -1
  436. package/dist/ssr/inputs/date-picker.js +9 -0
  437. package/dist/ssr/inputs/date-picker.js.map +1 -1
  438. package/dist/ssr/inputs/markdown/Toolbar.js +6 -1
  439. package/dist/ssr/inputs/markdown/Toolbar.js.map +1 -1
  440. package/dist/ssr/internal/color.js +25 -0
  441. package/dist/ssr/internal/color.js.map +1 -1
  442. package/dist/ssr/internal/pending-loads.js +17 -0
  443. package/dist/ssr/internal/pending-loads.js.map +1 -0
  444. package/dist/ssr/intl/messages.js +16 -0
  445. package/dist/ssr/intl/messages.js.map +1 -1
  446. package/dist/ssr/layout/AppWorkspace.js +6 -0
  447. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  448. package/dist/ssr/layout/DetailSections.js +19 -10
  449. package/dist/ssr/layout/DetailSections.js.map +1 -1
  450. package/dist/ssr/layout/FloatingWindow.js +2 -1
  451. package/dist/ssr/layout/FloatingWindow.js.map +1 -1
  452. package/dist/ssr/layout/Navigation.js +54 -26
  453. package/dist/ssr/layout/Navigation.js.map +1 -1
  454. package/dist/ssr/layout/Panes.js +32 -67
  455. package/dist/ssr/layout/Panes.js.map +1 -1
  456. package/dist/ssr/layout/SidebarSwitcher.js +7 -3
  457. package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
  458. package/dist/ssr/layout/navigation-model.js.map +1 -1
  459. package/dist/ssr/layout/panes-messages.js +0 -4
  460. package/dist/ssr/layout/panes-messages.js.map +1 -1
  461. package/dist/ssr/surfaces/Avatar.js +5 -2
  462. package/dist/ssr/surfaces/Avatar.js.map +1 -1
  463. package/dist/ssr/surfaces/NoticeCard.js +27 -20
  464. package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
  465. package/dist/ssr/surfaces/NoticeRow.js +10 -3
  466. package/dist/ssr/surfaces/NoticeRow.js.map +1 -1
  467. package/dist/ssr/surfaces/index.js +1 -1
  468. package/dist/ssr/surfaces/index.js.map +1 -1
  469. package/dist/ssr/surfaces/notice-card-classes.js +16 -0
  470. package/dist/ssr/surfaces/notice-card-classes.js.map +1 -0
  471. package/dist/ssr/surfaces/person-color.js +34 -4
  472. package/dist/ssr/surfaces/person-color.js.map +1 -1
  473. package/dist/ssr/v2/accent.js +114 -0
  474. package/dist/ssr/v2/accent.js.map +1 -0
  475. package/dist/ssr/v2/action-bar.js +88 -0
  476. package/dist/ssr/v2/action-bar.js.map +1 -0
  477. package/dist/ssr/v2/addresses.js +135 -0
  478. package/dist/ssr/v2/addresses.js.map +1 -0
  479. package/dist/ssr/v2/announce.js +93 -0
  480. package/dist/ssr/v2/announce.js.map +1 -0
  481. package/dist/ssr/v2/attach-live.js +279 -0
  482. package/dist/ssr/v2/attach-live.js.map +1 -0
  483. package/dist/ssr/v2/attach.js +432 -0
  484. package/dist/ssr/v2/attach.js.map +1 -0
  485. package/dist/ssr/v2/bar-fold.js +405 -0
  486. package/dist/ssr/v2/bar-fold.js.map +1 -0
  487. package/dist/ssr/v2/behavior/adapter.js +378 -0
  488. package/dist/ssr/v2/behavior/adapter.js.map +1 -0
  489. package/dist/ssr/v2/behavior/bind.js +43 -0
  490. package/dist/ssr/v2/behavior/bind.js.map +1 -0
  491. package/dist/ssr/v2/behavior/board.js +184 -0
  492. package/dist/ssr/v2/behavior/board.js.map +1 -0
  493. package/dist/ssr/v2/behavior/calendar.js +39 -0
  494. package/dist/ssr/v2/behavior/calendar.js.map +1 -0
  495. package/dist/ssr/v2/behavior/code.js +25 -0
  496. package/dist/ssr/v2/behavior/code.js.map +1 -0
  497. package/dist/ssr/v2/behavior/controls.js +58 -0
  498. package/dist/ssr/v2/behavior/controls.js.map +1 -0
  499. package/dist/ssr/v2/behavior/dates.js +8 -0
  500. package/dist/ssr/v2/behavior/dates.js.map +1 -0
  501. package/dist/ssr/v2/behavior/dnd.js +545 -0
  502. package/dist/ssr/v2/behavior/dnd.js.map +1 -0
  503. package/dist/ssr/v2/behavior/files.js +43 -0
  504. package/dist/ssr/v2/behavior/files.js.map +1 -0
  505. package/dist/ssr/v2/behavior/layer.js +3 -0
  506. package/dist/ssr/v2/behavior/layer.js.map +1 -0
  507. package/dist/ssr/v2/behavior/lists.js +102 -0
  508. package/dist/ssr/v2/behavior/lists.js.map +1 -0
  509. package/dist/ssr/v2/behavior/menu.js +91 -0
  510. package/dist/ssr/v2/behavior/menu.js.map +1 -0
  511. package/dist/ssr/v2/behavior/messages.js +200 -0
  512. package/dist/ssr/v2/behavior/messages.js.map +1 -0
  513. package/dist/ssr/v2/behavior/overlays.js +293 -0
  514. package/dist/ssr/v2/behavior/overlays.js.map +1 -0
  515. package/dist/ssr/v2/behavior/pickers.js +86 -0
  516. package/dist/ssr/v2/behavior/pickers.js.map +1 -0
  517. package/dist/ssr/v2/behavior/resize.js +147 -0
  518. package/dist/ssr/v2/behavior/resize.js.map +1 -0
  519. package/dist/ssr/v2/behavior/segmented.js +17 -0
  520. package/dist/ssr/v2/behavior/segmented.js.map +1 -0
  521. package/dist/ssr/v2/behavior/select.js +133 -0
  522. package/dist/ssr/v2/behavior/select.js.map +1 -0
  523. package/dist/ssr/v2/behavior/time-input.js +95 -0
  524. package/dist/ssr/v2/behavior/time-input.js.map +1 -0
  525. package/dist/ssr/v2/behavior/time-text.js +83 -0
  526. package/dist/ssr/v2/behavior/time-text.js.map +1 -0
  527. package/dist/ssr/v2/behavior/tip.js +31 -0
  528. package/dist/ssr/v2/behavior/tip.js.map +1 -0
  529. package/dist/ssr/v2/behavior/toast.js +152 -0
  530. package/dist/ssr/v2/behavior/toast.js.map +1 -0
  531. package/dist/ssr/v2/behavior/treegrid.js +75 -0
  532. package/dist/ssr/v2/behavior/treegrid.js.map +1 -0
  533. package/dist/ssr/v2/board-messages.js +70 -0
  534. package/dist/ssr/v2/board-messages.js.map +1 -0
  535. package/dist/ssr/v2/board.js +388 -0
  536. package/dist/ssr/v2/board.js.map +1 -0
  537. package/dist/ssr/v2/button-failure.js +90 -0
  538. package/dist/ssr/v2/button-failure.js.map +1 -0
  539. package/dist/ssr/v2/button.js +304 -0
  540. package/dist/ssr/v2/button.js.map +1 -0
  541. package/dist/ssr/v2/colors.js +135 -0
  542. package/dist/ssr/v2/colors.js.map +1 -0
  543. package/dist/ssr/v2/columns-context.js +48 -0
  544. package/dist/ssr/v2/columns-context.js.map +1 -0
  545. package/dist/ssr/v2/components.js +1484 -0
  546. package/dist/ssr/v2/components.js.map +1 -0
  547. package/dist/ssr/v2/content.js +1497 -0
  548. package/dist/ssr/v2/content.js.map +1 -0
  549. package/dist/ssr/v2/control-messages.js +115 -0
  550. package/dist/ssr/v2/control-messages.js.map +1 -0
  551. package/dist/ssr/v2/controls.js +1888 -0
  552. package/dist/ssr/v2/controls.js.map +1 -0
  553. package/dist/ssr/v2/danger-zone.js +28 -0
  554. package/dist/ssr/v2/danger-zone.js.map +1 -0
  555. package/dist/ssr/v2/date-messages.js +61 -0
  556. package/dist/ssr/v2/date-messages.js.map +1 -0
  557. package/dist/ssr/v2/date-picker.js +351 -0
  558. package/dist/ssr/v2/date-picker.js.map +1 -0
  559. package/dist/ssr/v2/date-week-window.js +149 -0
  560. package/dist/ssr/v2/date-week-window.js.map +1 -0
  561. package/dist/ssr/v2/date-weeks.js +30 -0
  562. package/dist/ssr/v2/date-weeks.js.map +1 -0
  563. package/dist/ssr/v2/day-bar.js +52 -0
  564. package/dist/ssr/v2/day-bar.js.map +1 -0
  565. package/dist/ssr/v2/describe.js +582 -0
  566. package/dist/ssr/v2/describe.js.map +1 -0
  567. package/dist/ssr/v2/draft.js +55 -0
  568. package/dist/ssr/v2/draft.js.map +1 -0
  569. package/dist/ssr/v2/emoji-picker.js +182 -0
  570. package/dist/ssr/v2/emoji-picker.js.map +1 -0
  571. package/dist/ssr/v2/ends.js +27 -0
  572. package/dist/ssr/v2/ends.js.map +1 -0
  573. package/dist/ssr/v2/error-screen.js +73 -0
  574. package/dist/ssr/v2/error-screen.js.map +1 -0
  575. package/dist/ssr/v2/failed.js +63 -0
  576. package/dist/ssr/v2/failed.js.map +1 -0
  577. package/dist/ssr/v2/figures.js +101 -0
  578. package/dist/ssr/v2/figures.js.map +1 -0
  579. package/dist/ssr/v2/filter-bar.js +2495 -0
  580. package/dist/ssr/v2/filter-bar.js.map +1 -0
  581. package/dist/ssr/v2/filter-messages.js +244 -0
  582. package/dist/ssr/v2/filter-messages.js.map +1 -0
  583. package/dist/ssr/v2/head-search.js +159 -0
  584. package/dist/ssr/v2/head-search.js.map +1 -0
  585. package/dist/ssr/v2/heat-days.js +91 -0
  586. package/dist/ssr/v2/heat-days.js.map +1 -0
  587. package/dist/ssr/v2/heat.js +145 -0
  588. package/dist/ssr/v2/heat.js.map +1 -0
  589. package/dist/ssr/v2/icon.js +18 -0
  590. package/dist/ssr/v2/icon.js.map +1 -0
  591. package/dist/ssr/v2/index.js +84 -0
  592. package/dist/ssr/v2/index.js.map +1 -0
  593. package/dist/ssr/v2/layout.js +1483 -0
  594. package/dist/ssr/v2/layout.js.map +1 -0
  595. package/dist/ssr/v2/link.js +9 -0
  596. package/dist/ssr/v2/link.js.map +1 -0
  597. package/dist/ssr/v2/list-group.js +37 -0
  598. package/dist/ssr/v2/list-group.js.map +1 -0
  599. package/dist/ssr/v2/list-query.js +736 -0
  600. package/dist/ssr/v2/list-query.js.map +1 -0
  601. package/dist/ssr/v2/lookup.js +333 -0
  602. package/dist/ssr/v2/lookup.js.map +1 -0
  603. package/dist/ssr/v2/marks.js +433 -0
  604. package/dist/ssr/v2/marks.js.map +1 -0
  605. package/dist/ssr/v2/menu-panel.js +217 -0
  606. package/dist/ssr/v2/menu-panel.js.map +1 -0
  607. package/dist/ssr/v2/menu.js +733 -0
  608. package/dist/ssr/v2/menu.js.map +1 -0
  609. package/dist/ssr/v2/nav-drop.js +25 -0
  610. package/dist/ssr/v2/nav-drop.js.map +1 -0
  611. package/dist/ssr/v2/nav-face.js +16 -0
  612. package/dist/ssr/v2/nav-face.js.map +1 -0
  613. package/dist/ssr/v2/nav-tree.js +436 -0
  614. package/dist/ssr/v2/nav-tree.js.map +1 -0
  615. package/dist/ssr/v2/now-line.js +44 -0
  616. package/dist/ssr/v2/now-line.js.map +1 -0
  617. package/dist/ssr/v2/overlay-messages.js +41 -0
  618. package/dist/ssr/v2/overlay-messages.js.map +1 -0
  619. package/dist/ssr/v2/overlays.js +365 -0
  620. package/dist/ssr/v2/overlays.js.map +1 -0
  621. package/dist/ssr/v2/page-layer.js +41 -0
  622. package/dist/ssr/v2/page-layer.js.map +1 -0
  623. package/dist/ssr/v2/pane-name.js +33 -0
  624. package/dist/ssr/v2/pane-name.js.map +1 -0
  625. package/dist/ssr/v2/pane-print.js +32 -0
  626. package/dist/ssr/v2/pane-print.js.map +1 -0
  627. package/dist/ssr/v2/pane-sheet.js +147 -0
  628. package/dist/ssr/v2/pane-sheet.js.map +1 -0
  629. package/dist/ssr/v2/popover.js +144 -0
  630. package/dist/ssr/v2/popover.js.map +1 -0
  631. package/dist/ssr/v2/reaction-messages.js +31 -0
  632. package/dist/ssr/v2/reaction-messages.js.map +1 -0
  633. package/dist/ssr/v2/reactions.js +200 -0
  634. package/dist/ssr/v2/reactions.js.map +1 -0
  635. package/dist/ssr/v2/row-drag.js +19 -0
  636. package/dist/ssr/v2/row-drag.js.map +1 -0
  637. package/dist/ssr/v2/section-level.js +9 -0
  638. package/dist/ssr/v2/section-level.js.map +1 -0
  639. package/dist/ssr/v2/segmented.js +104 -0
  640. package/dist/ssr/v2/segmented.js.map +1 -0
  641. package/dist/ssr/v2/select-live.js +142 -0
  642. package/dist/ssr/v2/select-live.js.map +1 -0
  643. package/dist/ssr/v2/setting-messages.js +25 -0
  644. package/dist/ssr/v2/setting-messages.js.map +1 -0
  645. package/dist/ssr/v2/split-button.js +66 -0
  646. package/dist/ssr/v2/split-button.js.map +1 -0
  647. package/dist/ssr/v2/states.js +140 -0
  648. package/dist/ssr/v2/states.js.map +1 -0
  649. package/dist/ssr/v2/status-toolbar.js +23 -0
  650. package/dist/ssr/v2/status-toolbar.js.map +1 -0
  651. package/dist/ssr/v2/structure.js +382 -0
  652. package/dist/ssr/v2/structure.js.map +1 -0
  653. package/dist/ssr/v2/testing/index.js +26 -0
  654. package/dist/ssr/v2/testing/index.js.map +1 -0
  655. package/dist/ssr/v2/testing/measure-v2-layout.js +1024 -0
  656. package/dist/ssr/v2/testing/measure-v2-layout.js.map +1 -0
  657. package/dist/ssr/v2/testing/settled.js +58 -0
  658. package/dist/ssr/v2/testing/settled.js.map +1 -0
  659. package/dist/ssr/v2/testing/visible.js +14 -0
  660. package/dist/ssr/v2/testing/visible.js.map +1 -0
  661. package/dist/ssr/v2/toast-host.js +18 -0
  662. package/dist/ssr/v2/toast-host.js.map +1 -0
  663. package/dist/ssr/v2/toast.js +222 -0
  664. package/dist/ssr/v2/toast.js.map +1 -0
  665. package/dist/ssr/v2/tokens.js +97 -0
  666. package/dist/ssr/v2/tokens.js.map +1 -0
  667. package/dist/ssr/v2/tree-messages.js +32 -0
  668. package/dist/ssr/v2/tree-messages.js.map +1 -0
  669. package/dist/ssr/v2/types.js +71 -0
  670. package/dist/ssr/v2/types.js.map +1 -0
  671. package/dist/ssr/v2/unsaved-bar.js +183 -0
  672. package/dist/ssr/v2/unsaved-bar.js.map +1 -0
  673. package/dist/ssr/v2/unsaved-messages.js +65 -0
  674. package/dist/ssr/v2/unsaved-messages.js.map +1 -0
  675. package/dist/ssr/v2/width-cookie.js +45 -0
  676. package/dist/ssr/v2/width-cookie.js.map +1 -0
  677. package/dist/ssr/v2/workspace-messages.js +31 -0
  678. package/dist/ssr/v2/workspace-messages.js.map +1 -0
  679. package/dist/ssr/widgets/Dashboard.js +3 -2
  680. package/dist/ssr/widgets/Dashboard.js.map +1 -1
  681. package/dist/styles.css +1 -1
  682. package/dist/tabler.css +1 -1
  683. package/dist/types/actions/SegmentedControl.d.ts +4 -0
  684. package/dist/types/charts/core/line-extras.d.ts +33 -0
  685. package/dist/types/charts/core/line-options.d.ts +3 -0
  686. package/dist/types/charts/core/svg-common.d.ts +49 -2
  687. package/dist/types/content/Calendar.d.ts +14 -2
  688. package/dist/types/content/MarkdownView.d.ts +2 -0
  689. package/dist/types/content/calendar-days.d.ts +52 -2
  690. package/dist/types/content/calendar-events.d.ts +35 -0
  691. package/dist/types/content/calendar-messages.d.ts +13 -0
  692. package/dist/types/content/calendar-month-layout.d.ts +44 -4
  693. package/dist/types/content/calendar-month-scroll.d.ts +2 -1
  694. package/dist/types/content/calendar-overflow.browser-suite.d.ts +37 -0
  695. package/dist/types/content/calendar-overflow.d.ts +30 -0
  696. package/dist/types/content/calendar-shared.d.ts +9 -11
  697. package/dist/types/content/calendar-snapshot.d.ts +28 -0
  698. package/dist/types/content/calendar-time-view.d.ts +37 -12
  699. package/dist/types/content/chart-bar.d.ts +1 -1
  700. package/dist/types/content/chart-inspection-mount.d.ts +1 -1
  701. package/dist/types/content/chart-line-gaps.d.ts +1 -1
  702. package/dist/types/content/chart-message-catalog.d.ts +6 -0
  703. package/dist/types/content/chart-state-timeline.d.ts +20 -0
  704. package/dist/types/content/chart-tick-room.d.ts +8 -0
  705. package/dist/types/content/index.d.ts +3 -0
  706. package/dist/types/content/markdown-links.d.ts +2 -1
  707. package/dist/types/inputs/date-picker.d.ts +2 -0
  708. package/dist/types/internal/color.d.ts +8 -0
  709. package/dist/types/internal/pending-loads.d.ts +8 -0
  710. package/dist/types/intl/messages.d.ts +8 -0
  711. package/dist/types/layout/AppWorkspace.d.ts +5 -0
  712. package/dist/types/layout/DetailSections.d.ts +11 -1
  713. package/dist/types/layout/Panes.d.ts +2 -2
  714. package/dist/types/layout/navigation-model.d.ts +5 -0
  715. package/dist/types/layout/panes-messages.d.ts +0 -2
  716. package/dist/types/surfaces/NoticeCard.d.ts +9 -13
  717. package/dist/types/surfaces/NoticeRow.d.ts +6 -1
  718. package/dist/types/surfaces/index.d.ts +1 -1
  719. package/dist/types/surfaces/notice-card-classes.d.ts +14 -0
  720. package/dist/types/surfaces/person-color.d.ts +27 -4
  721. package/dist/types/v2/accent.d.ts +24 -0
  722. package/dist/types/v2/action-bar.d.ts +37 -0
  723. package/dist/types/v2/addresses.d.ts +26 -0
  724. package/dist/types/v2/announce.d.ts +17 -0
  725. package/dist/types/v2/attach-live.d.ts +21 -0
  726. package/dist/types/v2/attach.d.ts +37 -0
  727. package/dist/types/v2/bar-fold.d.ts +40 -0
  728. package/dist/types/v2/behavior/adapter.d.ts +69 -0
  729. package/dist/types/v2/behavior/bind.d.ts +14 -0
  730. package/dist/types/v2/behavior/board.d.ts +45 -0
  731. package/dist/types/v2/behavior/calendar.d.ts +35 -0
  732. package/dist/types/v2/behavior/code.d.ts +27 -0
  733. package/dist/types/v2/behavior/controls.d.ts +51 -0
  734. package/dist/types/v2/behavior/dates.d.ts +7 -0
  735. package/dist/types/v2/behavior/dnd.d.ts +61 -0
  736. package/dist/types/v2/behavior/files.d.ts +44 -0
  737. package/dist/types/v2/behavior/layer.d.ts +1 -0
  738. package/dist/types/v2/behavior/lists.d.ts +91 -0
  739. package/dist/types/v2/behavior/menu.d.ts +56 -0
  740. package/dist/types/v2/behavior/messages.d.ts +72 -0
  741. package/dist/types/v2/behavior/overlays.d.ts +126 -0
  742. package/dist/types/v2/behavior/pickers.d.ts +62 -0
  743. package/dist/types/v2/behavior/resize.d.ts +57 -0
  744. package/dist/types/v2/behavior/segmented.d.ts +18 -0
  745. package/dist/types/v2/behavior/select.d.ts +73 -0
  746. package/dist/types/v2/behavior/time-input.d.ts +36 -0
  747. package/dist/types/v2/behavior/time-text.d.ts +14 -0
  748. package/dist/types/v2/behavior/tip.d.ts +17 -0
  749. package/dist/types/v2/behavior/toast.d.ts +90 -0
  750. package/dist/types/v2/behavior/treegrid.d.ts +40 -0
  751. package/dist/types/v2/board-messages.d.ts +22 -0
  752. package/dist/types/v2/board.d.ts +79 -0
  753. package/dist/types/v2/button-failure.d.ts +18 -0
  754. package/dist/types/v2/button.d.ts +126 -0
  755. package/dist/types/v2/colors.d.ts +42 -0
  756. package/dist/types/v2/columns-context.d.ts +50 -0
  757. package/dist/types/v2/components.d.ts +519 -0
  758. package/dist/types/v2/content.d.ts +478 -0
  759. package/dist/types/v2/control-messages.d.ts +55 -0
  760. package/dist/types/v2/controls.d.ts +551 -0
  761. package/dist/types/v2/danger-zone.d.ts +23 -0
  762. package/dist/types/v2/date-messages.d.ts +28 -0
  763. package/dist/types/v2/date-picker.d.ts +47 -0
  764. package/dist/types/v2/date-week-window.d.ts +22 -0
  765. package/dist/types/v2/date-weeks.d.ts +11 -0
  766. package/dist/types/v2/day-bar.d.ts +28 -0
  767. package/dist/types/v2/describe.d.ts +18 -0
  768. package/dist/types/v2/draft.d.ts +36 -0
  769. package/dist/types/v2/emoji-picker.d.ts +10 -0
  770. package/dist/types/v2/ends.d.ts +8 -0
  771. package/dist/types/v2/error-screen.d.ts +59 -0
  772. package/dist/types/v2/failed.d.ts +15 -0
  773. package/dist/types/v2/figures.d.ts +66 -0
  774. package/dist/types/v2/filter-bar.d.ts +111 -0
  775. package/dist/types/v2/filter-messages.d.ts +121 -0
  776. package/dist/types/v2/head-search.d.ts +13 -0
  777. package/dist/types/v2/heat-days.d.ts +44 -0
  778. package/dist/types/v2/heat.d.ts +40 -0
  779. package/dist/types/v2/icon.d.ts +16 -0
  780. package/dist/types/v2/index.d.ts +58 -0
  781. package/dist/types/v2/layout.d.ts +473 -0
  782. package/dist/types/v2/link.d.ts +7 -0
  783. package/dist/types/v2/list-group.d.ts +17 -0
  784. package/dist/types/v2/list-query.d.ts +432 -0
  785. package/dist/types/v2/lookup.d.ts +45 -0
  786. package/dist/types/v2/marks.d.ts +321 -0
  787. package/dist/types/v2/menu-panel.d.ts +7 -0
  788. package/dist/types/v2/menu.d.ts +192 -0
  789. package/dist/types/v2/nav-drop.d.ts +16 -0
  790. package/dist/types/v2/nav-face.d.ts +12 -0
  791. package/dist/types/v2/nav-tree.d.ts +66 -0
  792. package/dist/types/v2/now-line.d.ts +19 -0
  793. package/dist/types/v2/overlay-messages.d.ts +18 -0
  794. package/dist/types/v2/overlays.d.ts +105 -0
  795. package/dist/types/v2/page-layer.d.ts +12 -0
  796. package/dist/types/v2/pane-name.d.ts +14 -0
  797. package/dist/types/v2/pane-print.d.ts +8 -0
  798. package/dist/types/v2/pane-sheet.d.ts +9 -0
  799. package/dist/types/v2/popover.d.ts +21 -0
  800. package/dist/types/v2/reaction-messages.d.ts +9 -0
  801. package/dist/types/v2/reactions.d.ts +41 -0
  802. package/dist/types/v2/row-drag.d.ts +6 -0
  803. package/dist/types/v2/section-level.d.ts +6 -0
  804. package/dist/types/v2/segmented.d.ts +36 -0
  805. package/dist/types/v2/select-live.d.ts +7 -0
  806. package/dist/types/v2/setting-messages.d.ts +10 -0
  807. package/dist/types/v2/split-button.d.ts +24 -0
  808. package/dist/types/v2/states.d.ts +58 -0
  809. package/dist/types/v2/status-toolbar.d.ts +13 -0
  810. package/dist/types/v2/structure.d.ts +101 -0
  811. package/dist/types/v2/testing/index.d.ts +19 -0
  812. package/dist/types/v2/testing/measure-v2-layout.d.ts +120 -0
  813. package/dist/types/v2/testing/settled.d.ts +15 -0
  814. package/dist/types/v2/testing/visible.d.ts +9 -0
  815. package/dist/types/v2/toast-host.d.ts +8 -0
  816. package/dist/types/v2/toast.d.ts +47 -0
  817. package/dist/types/v2/tokens.d.ts +89 -0
  818. package/dist/types/v2/tree-messages.d.ts +15 -0
  819. package/dist/types/v2/types.d.ts +79 -0
  820. package/dist/types/v2/unsaved-bar.d.ts +47 -0
  821. package/dist/types/v2/unsaved-messages.d.ts +31 -0
  822. package/dist/types/v2/width-cookie.d.ts +19 -0
  823. package/dist/types/v2/workspace-messages.d.ts +15 -0
  824. package/dist/v2.css +13237 -0
  825. package/package.json +36 -8
  826. package/skills/k2b-ui/HANDOFF.md +77 -0
  827. package/skills/k2b-ui/SKILL.md +259 -0
  828. package/skills/k2b-ui/gold/code-policy-1440.png +0 -0
  829. package/skills/k2b-ui/gold/code-policy-390.png +0 -0
  830. package/skills/k2b-ui/gold/mail-mailbox-1440.png +0 -0
  831. package/skills/k2b-ui/gold/mail-mailbox-390.png +0 -0
  832. package/skills/k2b-ui/gold/notebooks-note-1440.png +0 -0
  833. package/skills/k2b-ui/gold/notebooks-note-390.png +0 -0
  834. package/skills/k2b-ui/gold/rhythm-after.png +0 -0
  835. package/skills/k2b-ui/gold/rhythm-before.png +0 -0
  836. package/skills/k2b-ui/gold/steps.png +0 -0
  837. package/skills/k2b-ui/images/actions-1440.png +0 -0
  838. package/skills/k2b-ui/images/actions-390.png +0 -0
  839. package/skills/k2b-ui/images/content-1440.png +0 -0
  840. package/skills/k2b-ui/images/content-390.png +0 -0
  841. package/skills/k2b-ui/images/conversations-1440.png +0 -0
  842. package/skills/k2b-ui/images/conversations-390.png +0 -0
  843. package/skills/k2b-ui/images/detail-sheet-1440.png +0 -0
  844. package/skills/k2b-ui/images/detail-sheet-390.png +0 -0
  845. package/skills/k2b-ui/images/dialogs-1440.png +0 -0
  846. package/skills/k2b-ui/images/dialogs-390.png +0 -0
  847. package/skills/k2b-ui/images/files-1440.png +0 -0
  848. package/skills/k2b-ui/images/files-390.png +0 -0
  849. package/skills/k2b-ui/images/filtered-table-1440.png +0 -0
  850. package/skills/k2b-ui/images/filtered-table-390.png +0 -0
  851. package/skills/k2b-ui/images/form-1440.png +0 -0
  852. package/skills/k2b-ui/images/form-390.png +0 -0
  853. package/skills/k2b-ui/images/form-detail-1440.png +0 -0
  854. package/skills/k2b-ui/images/form-detail-390.png +0 -0
  855. package/skills/k2b-ui/images/frame-1440.png +0 -0
  856. package/skills/k2b-ui/images/frame-390.png +0 -0
  857. package/skills/k2b-ui/images/home-1440.png +0 -0
  858. package/skills/k2b-ui/images/home-390.png +0 -0
  859. package/skills/k2b-ui/images/list-detail-1440.png +0 -0
  860. package/skills/k2b-ui/images/list-detail-390.png +0 -0
  861. package/skills/k2b-ui/images/mail-1440.png +0 -0
  862. package/skills/k2b-ui/images/mail-390.png +0 -0
  863. package/skills/k2b-ui/images/overview-1440.png +0 -0
  864. package/skills/k2b-ui/images/overview-390.png +0 -0
  865. package/skills/k2b-ui/images/public-page-1440.png +0 -0
  866. package/skills/k2b-ui/images/public-page-390.png +0 -0
  867. package/skills/k2b-ui/images/record-1440.png +0 -0
  868. package/skills/k2b-ui/images/record-390.png +0 -0
  869. package/skills/k2b-ui/images/record-groups-1440.png +0 -0
  870. package/skills/k2b-ui/images/record-groups-390.png +0 -0
  871. package/skills/k2b-ui/images/settings-1440.png +0 -0
  872. package/skills/k2b-ui/images/settings-390.png +0 -0
  873. package/skills/k2b-ui/images/settings-page-1440.png +0 -0
  874. package/skills/k2b-ui/images/settings-page-390.png +0 -0
  875. package/skills/k2b-ui/images/start-1440.png +0 -0
  876. package/skills/k2b-ui/images/start-390.png +0 -0
  877. package/skills/k2b-ui/images/states-1440.png +0 -0
  878. package/skills/k2b-ui/images/states-390.png +0 -0
  879. package/skills/k2b-ui/images/table-1440.png +0 -0
  880. package/skills/k2b-ui/images/table-390.png +0 -0
  881. package/skills/k2b-ui/images/tree-1440.png +0 -0
  882. package/skills/k2b-ui/images/tree-390.png +0 -0
  883. package/skills/k2b-ui/mockup/shoot.mjs +470 -0
  884. package/skills/k2b-ui/mockup/starter.html +607 -0
  885. package/skills/k2b-ui/port/check.mjs +48 -0
  886. package/skills/k2b-ui/recipes/actions.tsx +226 -0
  887. package/skills/k2b-ui/recipes/content.tsx +96 -0
  888. package/skills/k2b-ui/recipes/conversations.tsx +231 -0
  889. package/skills/k2b-ui/recipes/detail-sheet.tsx +87 -0
  890. package/skills/k2b-ui/recipes/dialogs.tsx +146 -0
  891. package/skills/k2b-ui/recipes/files.tsx +468 -0
  892. package/skills/k2b-ui/recipes/filtered-table.tsx +154 -0
  893. package/skills/k2b-ui/recipes/form-detail.tsx +143 -0
  894. package/skills/k2b-ui/recipes/form.tsx +95 -0
  895. package/skills/k2b-ui/recipes/frame.tsx +206 -0
  896. package/skills/k2b-ui/recipes/home.tsx +186 -0
  897. package/skills/k2b-ui/recipes/list-detail.tsx +140 -0
  898. package/skills/k2b-ui/recipes/mail.tsx +230 -0
  899. package/skills/k2b-ui/recipes/overview.tsx +303 -0
  900. package/skills/k2b-ui/recipes/public-page.tsx +315 -0
  901. package/skills/k2b-ui/recipes/record-groups.tsx +178 -0
  902. package/skills/k2b-ui/recipes/record.tsx +207 -0
  903. package/skills/k2b-ui/recipes/settings-page.tsx +269 -0
  904. package/skills/k2b-ui/recipes/settings.tsx +127 -0
  905. package/skills/k2b-ui/recipes/start.tsx +165 -0
  906. package/skills/k2b-ui/recipes/states.tsx +137 -0
  907. package/skills/k2b-ui/recipes/table.tsx +111 -0
  908. package/skills/k2b-ui/recipes/tree.tsx +109 -0
  909. package/skills/k2b-ui/references/gold.md +195 -0
  910. package/skills/k2b-ui/references/list-queries.md +74 -0
  911. package/skills/k2b-ui/references/look.md +468 -0
  912. package/skills/k2b-ui/references/mistakes.md +218 -0
  913. package/skills/k2b-ui/references/mockups.md +260 -0
  914. package/skills/k2b-ui/references/primitives.md +1438 -0
  915. package/skills/k2b-ui/references/recipes.md +515 -0
  916. package/skills/k2b-ui/references/seeing.md +78 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["v2/layout.tsx"],"sourcesContent":["import {\n type Accessor,\n createContext,\n createEffect,\n createMemo,\n createRenderEffect,\n createSignal,\n createUniqueId,\n For,\n type JSX,\n Match,\n on,\n onCleanup,\n onMount,\n children as resolveChildren,\n Show,\n Switch,\n splitProps,\n untrack,\n useContext,\n} from \"solid-js\";\nimport { Dynamic } from \"solid-js/web\";\nimport { useUiMessages } from \"../intl/messages\";\nimport type { PageAccent } from \"./accent\";\nimport { Announcer } from \"./announce\";\nimport { type Fold, InBarStart, watchFold } from \"./bar-fold\";\nimport { type GripOptions, useGrip } from \"./behavior/resize\";\nimport { ActionButton, CopyButton } from \"./button\";\nimport { type Column, ColumnsContext, type DetailEmpty, InnerContext, SidebarAwayContext } from \"./columns-context\";\nimport { RowOpen } from \"./content\";\nimport { MarkCheck } from \"./controls\";\nimport { linkOr } from \"./link\";\nimport { Avatar, Chip, custom, Icon, Mark, Spark, type SparkProps } from \"./marks\";\nimport { BarFold, Menu, type MenuEntry, type MenuItem } from \"./menu\";\nimport { useOverlayMessages } from \"./overlay-messages\";\nimport { Empty, PlaceholderValue } from \"./states\";\nimport { type StatusToolbar, StatusToolbarContext } from \"./status-toolbar\";\nimport { type Action, type ColumnWidth, columnPx, draggable, type OnNavigate, type Person, type Status, type Width } from \"./types\";\nimport { retainedWidth, type WidthPersistence, widthCookieAttrs, writeWidthCookie } from \"./width-cookie\";\nimport { useWorkspaceMessages } from \"./workspace-messages\";\n\n// ── Grip ─────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * What brings a frame to life (attach.tsx) comes as a chunk of its own once an island's Workspace or grip is mounted,\n * so an island's first chunk does not carry it (7 KB). `use` runs once it is there, unless the owner went first, and\n * what it returns ends with the owner; `failed` hears a chunk that did not load.\n */\nconst withAttach = (use: (attach: typeof import(\"./attach\")) => () => void, failed?: () => void) => {\n let stop: (() => void) | undefined;\n let gone = false;\n import(\"./attach\").then(\n (attach) => {\n if (!gone) stop = use(attach);\n },\n () => failed?.(),\n );\n onCleanup(() => {\n gone = true;\n stop?.();\n });\n};\n\n/** A grip an island renders stays in the middle of its line in sight; the server's come from `attachWorkspace`. */\nconst centerGrip = (grip: HTMLElement) => {\n onMount(() => withAttach(({ trackGrip }) => trackGrip(grip)));\n};\n\n/** A grip on a seam: its name and the one column it moves. */\ntype SeamGrip = Omit<GripOptions, \"label\" | \"min\" | \"reset\" | \"observe\"> & { label: string; width: Width };\n\n/** The grip of a seam: a pointer drag or the keys move the width of its column (`useGrip`). */\nconst SeamGrip = (props: { grip: SeamGrip }) => {\n const grip = useGrip({\n label: () => props.grip.label,\n value: () => props.grip.value(),\n onChange: (px) => props.grip.onChange(px),\n min: () => props.grip.width.min,\n reset: () => props.grip.width.default,\n direction: () => props.grip.direction(),\n measure: (element) => props.grip.measure(element),\n // the row of columns around the seam and every column in it\n observe: (element) => {\n const row = element.parentElement?.parentElement;\n return row ? [row, ...row.children] : [];\n },\n });\n const [ref, attrs] = splitProps(grip, [\"ref\"]);\n return (\n <span\n ref={(element) => {\n ref.ref(element);\n centerGrip(element);\n }}\n class=\"k2-grip\"\n data-k2-grip=\"\"\n {...attrs}\n />\n );\n};\n\n/** The seam between two columns: the one 1 px line, and on a line that moves its grip. */\nconst PaneSeam = (props: { grip?: SeamGrip }) => (\n <div class=\"k2-seam\" aria-hidden={props.grip ? undefined : \"true\"}>\n <Show when={props.grip}>{(grip) => <SeamGrip grip={grip()} />}</Show>\n </div>\n);\n\nexport type SeamProps = {\n /** The grip's name, such as the column's: \"Breite der Trefferliste\". */\n label: string;\n /** The width of the column before the seam, in px. */\n value: number;\n /** Called with the new width while the grip moves, and with `reset` on Enter or a double click. */\n onChange: (px: number) => void;\n /** The narrowest the column gets. */\n min: number;\n /** The width Enter and a double click put the column back to: its default. */\n reset: number;\n /** The most the column may take now, from the row of columns the seam stands in, such as 55 % of its width. */\n max: (row: HTMLElement) => number;\n};\n\n/**\n * The seam between two columns that a layout of its own places (a grid in a dialog), with the grip of `Workspace` and\n * `Pane.Split`: the 1 px line, blue with its pill on hover and focus, a separator that a drag or the keys move (8 px,\n * Shift 64; Home and End to the minimum and the most; Enter and a double click back to the default). The column\n * before it has the width `value`; the layout clamps it as it likes, the grip reads the width the column has. Place\n * it between the two columns, as their row's child; its root is one 1 px column of that row.\n */\nexport const Seam = (props: SeamProps) => (\n // its own root, so the seam inside stays an inner part of a primitive (scripts/v2-parts.ts), as in a Pane.Split\n <div class=\"k2-seam-host\" data-k2-part=\"Seam\">\n <PaneSeam\n grip={{\n label: props.label,\n width: { min: props.min, default: props.reset },\n value: () => props.value,\n onChange: (px) => props.onChange(px),\n direction: () => 1,\n measure: (grip) => {\n // grip → seam → this root, which stands between the two columns of the row\n const host = grip.parentElement?.parentElement;\n const column = host?.previousElementSibling;\n const row = host?.parentElement;\n if (!column || !row) return undefined;\n const now = column.getBoundingClientRect().width;\n return now > 0 ? { now, max: props.max(row) } : undefined;\n },\n }}\n />\n </div>\n);\n\n/** How much `element` can give: its rendered width above its own minimum. */\nconst slackOf = (element: Element) => {\n const width = element.getBoundingClientRect().width;\n return Math.max(0, width - (Number.parseFloat(getComputedStyle(element).minWidth) || 0));\n};\n\n// ── Workspace ────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport type WorkspaceProps = {\n /** The sidebar column, such as `Nav`. */\n sidebar?: JSX.Element;\n /** The sidebar's minimum and default width; 200 and 248 px when not set. */\n sidebarWidth?: Width;\n /** The name of the sidebar's grip, such as \"Width of the sidebar\". */\n sidebarLabel?: string;\n /**\n * The sidebar can be hidden on a wide screen: a button at the end of the first `Nav`'s title row hides it (a sidebar\n * without a `Nav` has it at the start of the head), the head's button at its start shows it again, and Mod+Alt+S\n * does both; the focus goes to the button that now stands.\n * `attachWorkspace` reports each change (`onSidebarCollapsedChange`) for the page to keep. A command of the page\n * (\"Hide navigation\") does the same with `toggleWorkspaceSidebar()`.\n */\n collapsible?: boolean;\n /**\n * The sidebar starts hidden, as the person left it; read it on the server (a cookie), so the page comes with the\n * right width. Inside `WorkspaceLayout` it comes from there when not set.\n */\n sidebarCollapsed?: boolean;\n /** The head across the main column: a `Bar` (56 px here) with tabs or a path and the actions. */\n head?: JSX.Element;\n /**\n * What stands across every column under the head, above a list and its open detail alike: the page as a whole, such\n * as a mirror's figure with its last sync and its exceptions (a `Band`, or the `Canvas` of a port). It keeps its\n * place and its height when a detail opens or closes, from the server's markup on. On the phone it scrolls away with\n * the page, and while a detail is the page it gives way, as the list does.\n */\n top?: JSX.Element;\n /** The main action; on the phone it floats at the bottom right. `onClick` needs the Workspace in an island. */\n primary?: Action;\n /**\n * A detail opens beside the columns at times (a reader beside a list), and keeps at least this width (`true`:\n * 400 px). The workspace keeps its room also while it is closed: the sidebar never moves between column and drawer\n * when it opens, and `detailEmpty` stands in its place, so the column beside it keeps its width. It is the room of a\n * detail at any depth: also of one in a split inside a column (Files: a list beside its open file, under a status\n * row), which counts nothing else for it.\n */\n detail?: true | number;\n /**\n * What stands in the detail's place while none is open, such as `{ icon: \"mail\", text: \"Keine Nachricht\n * ausgewählt\" }`; \"Nothing selected\" in the language of the page when not set. Not on the phone, where the list is\n * the page. `hero` stands above the sentence: a picture of the place as a whole, such as a `Heat` of the mails\n * received per day with a line that sums it up.\n */\n detailEmpty?: { icon: string; text: string; hero?: JSX.Element };\n /**\n * The page's own accent, a colour from data (such as the colour a place or a team chose), as\n * `pageAccent(\"#c2410c\")` works it out (`#rrggbb` or `#rgb`): a part of its own, so a page without an accent loads\n * none of its contrast work. It takes the place of the app's colour in this workspace: the primary action, the open\n * row's tint, `Text` and `Band` `tone=\"app\"`, and the bars of a `RangeBar` (the open row's the strongest). Its\n * readable tones are worked out where the colour arrives, on the server too, so the first paint is final: the\n * primary's words are white or near-black, whichever keeps 4.5:1 on it (a colour on which neither does is darkened\n * until white does), and the colour as text is darkened in light and lightened in dark until it keeps 4.5:1 on the\n * surface and on its tint. A bar's quiet tone keeps 3:1 also on a chosen row's tint, and a primary that would vanish\n * on the surface gets an edge of its colour at 3:1. Focus rings and the colours of states stay; dialogs and menus\n * rendered outside the Workspace keep the app's colour. Any other value (an `oklch()`, a custom property, no colour)\n * gives no accent, and the app's colour stands.\n */\n accent?: PageAccent;\n /**\n * The workspace lays its content on the page itself, without its card: no surface, edge or corners, and no line\n * under its head. For a page of tiles that are cards of their own, such as a start page's widgets on the page's\n * background. A page with lists, tables or a reader keeps the card.\n */\n plain?: boolean;\n /**\n * A `Pane` or `Pane.Split`, written inside the Workspace: its columns tell it their widths, so it knows when the\n * sidebar becomes a drawer. A column made before the Workspace (kept in a variable) is not counted.\n */\n children: JSX.Element;\n};\n\n/** What the page knows about its workspaces before they render, such as the sidebar a person hid (a cookie). */\nexport type WorkspaceLayoutProps = { sidebarCollapsed?: boolean; children: JSX.Element };\nconst LayoutContext = createContext<{ sidebarCollapsed?: boolean }>({});\n\n/** Hands every `Workspace` inside it the page's layout, such as whether its sidebar starts hidden. */\nexport const WorkspaceLayout = (props: WorkspaceLayoutProps) => (\n <LayoutContext.Provider\n value={{\n get sidebarCollapsed() {\n return props.sidebarCollapsed;\n },\n }}\n >\n {props.children}\n </LayoutContext.Provider>\n);\n\nconst sidebarDefault: Width = { min: 200, default: 248 };\n/** What a column without a width keeps at least: the concept's main column, 400 px (as in v2.css). */\nconst flexibleMin = 400;\n\n/**\n * A pane's head and its toolbar as one block (look rule 30): the pane hands its toolbar to its head's `Bar`, which\n * stands it between its start and its end, so the bar stays one box (it measures what it folds) and the order of the\n * Tab key is the order on the screen. The first bar made in the head claims the block, so a bar inside it finds it\n * taken; it tells the pane what it made of it: `\"\"` (the toolbar under the start and the end, or beside them where the\n * pane is wide), `\"row\"` (no start: the toolbar beside the end) or `undefined` (no toolbar). Told while the parts are\n * made, so the server and the first render agree.\n */\ntype HeadBlock = () =>\n | {\n /** The pane's toolbar, while its status is one. */\n toolbar: () => JSX.Element | undefined;\n /** Whether the toolbar holds nothing set (a FilterBar without a filter): it then stands in the head's own row. */\n quiet: () => boolean;\n tell: (block: string | undefined) => void;\n }\n | undefined;\nconst HeadBlockContext = createContext<HeadBlock>();\n\n/**\n * The working surface of an app: a sidebar, a head and the columns below it, with one hairline between columns and\n * a grip on every line that moves. On the phone the sidebar leaves and columns become pages.\n *\n * It renders on the server: the frame, its columns, heads and bars are markup, and only what needs the browser loads\n * script, through `attachWorkspace` (the page's frame entry calls `attachWorkspaces`; a Workspace inside an island\n * attaches itself). Keep the islands small: a control, a row's actions, a list that updates.\n *\n * The sidebar stands beside the columns while the workspace holds it at its default width and every column at its\n * minimum, with the lines between them; a detail it declares (`detail`) counts also while it is closed. Where it does\n * not (a tablet, a narrow window), the sidebar is a drawer from the start of the window, opened by a button at the\n * start of the head; picking an entry in it closes it. The stylesheet decides this from the workspace's own width, on\n * the server's page too, so nothing moves when the page comes alive. The drawer holds the sidebar's own nodes while it\n * is open, so its scroll position and open folds stay. The rule is a `<style>` of the workspace; a page whose content\n * security policy allows no inline style keeps the sidebar as a column.\n */\nexport const Workspace = (props: WorkspaceProps) => {\n const t = useUiMessages();\n const words = useWorkspaceMessages();\n const layout = useContext(LayoutContext);\n const width = () => props.sidebarWidth ?? sidebarDefault;\n // A part passed as JSX is made once, here, and read from here: reading the prop again would make it again (the\n // server's `Show` reads `when` more than once), and the browser would look for nodes the server never sent.\n const id = createUniqueId();\n // the first Nav in a sidebar the person may put away carries the button that puts it away, and says so here\n const [awayInNav, setAwayInNav] = createSignal(false);\n const claim = () => {\n if (untrack(awayInNav)) return undefined;\n setAwayInNav(true);\n return () => setAwayInNav(false);\n };\n const sidebar = resolveChildren(() => (\n <SidebarAwayContext.Provider value={{ collapsible: () => props.collapsible === true, controls: `${id}-side`, claim }}>\n {props.sidebar}\n </SidebarAwayContext.Provider>\n ));\n const head = resolveChildren(() => props.head);\n const top = resolveChildren(() => props.top);\n // `detailEmpty` written as an object in JSX is a getter that makes its hero anew on every read: read it once here.\n const detailEmpty = createMemo(() => props.detailEmpty);\n const emptyHero = resolveChildren(() => detailEmpty()?.hero);\n const [columns, setColumns] = createSignal<readonly Column[]>([]);\n const register = (column: Column) => {\n setColumns((list) => [...list, column]);\n onCleanup(() => setColumns((list) => list.filter((other) => other !== column)));\n };\n // the detail the workspace declares, at its minimum; it counts open or closed\n const declared = () => (props.detail === undefined ? undefined : props.detail === true ? flexibleMin : props.detail);\n // Read where it is drawn, never ahead: on the server the panes register their columns while they render, after this\n // line, so a value computed here would not know an open detail yet.\n const empty = () =>\n declared() === undefined || columns().some((column) => column.detail)\n ? undefined\n : { icon: detailEmpty()?.icon ?? \"click\", text: detailEmpty()?.text ?? t().nothingSelected, hero: emptyHero() };\n // The columns are made here, before the workspace's own element: they register their widths as they are made, and the\n // server writes the element's attributes (its room) before it renders what stands inside it.\n const body = resolveChildren(() => <ColumnsContext.Provider value={{ register, empty }}>{props.children}</ColumnsContext.Provider>);\n // The room the sidebar needs beside the columns: its default, every column's minimum and the lines between them, in\n // the workspace's content box (inside its edge), which the container query measures. A declared detail counts at\n // its declared minimum, open or closed, so the room stays the same when it opens.\n const room = () => {\n const counted = columns().filter((column) => !column.away);\n const list = counted.filter((column) => !column.detail);\n const open = counted.filter((column) => column.detail);\n const detail = declared() ?? (open.length > 0 ? Math.max(...open.map((column) => column.need)) : 0);\n const panes = list.length + (detail ? 1 : 0);\n return width().default + 1 + list.reduce((sum, column) => sum + column.need, 0) + detail + Math.max(0, panes - 1);\n };\n const collapsible = () => props.collapsible === true && !!sidebar();\n const collapsed = () => collapsible() && (props.sidebarCollapsed ?? layout.sidebarCollapsed ?? false);\n const accent = () => props.accent?.vars;\n // Below that room (from 768 px on; the phone has its own pages) the sidebar is a drawer: one container query on\n // this workspace's width. It is the one rule here that is made per workspace, since the room is the workspace's own.\n // A sidebar its grip made wider gives way first when the window narrows, so the columns keep their minimum.\n const drawerRule = () =>\n `@media (min-width: 768px) { .k2-ui [data-k2-ws=\"${id}\"] > .k2-ws-side { max-width: calc(100% - ${room() - width().default}px); } ` +\n `@container k2-ws-${id} (width < ${room()}px) { ` +\n `.k2-ui [data-k2-ws=\"${id}\"] > :is(.k2-ws-side, .k2-ws-side + .k2-seam) { display: none; } ` +\n `.k2-ui [data-k2-ws=\"${id}\"] > .k2-ws-main { --k2-ws-toggle: inline-flex; --k2-ws-collapse: none; --k2-ws-drawer: 1; } } }`;\n let element: HTMLDivElement | undefined;\n // The sidebar's width while its grip has moved it; its default until then. It gives the columns at most what they\n // need beyond their minimum (the room above without the sidebar's default).\n const [side, setSide] = createSignal<number>();\n const sideWidth = () => side() ?? width().default;\n const sideGrip = (): SeamGrip => ({\n label: props.sidebarLabel ?? \"Sidebar\",\n width: width(),\n value: sideWidth,\n onChange: setSide,\n direction: () => 1,\n measure: () => {\n const now = element?.querySelector(\":scope > .k2-ws-side\")?.getBoundingClientRect().width;\n if (!now || !element) return undefined;\n return { now, max: element.clientWidth - room() + width().default };\n },\n });\n // In an island the Workspace is alive itself; on the server's page the frame entry attaches it. A sidebar or a collapse\n // button that comes or goes renders its elements anew, so the workspace attaches again to the new ones.\n const bound = createMemo(() => `${Boolean(sidebar())}:${collapsible()}`);\n // A chunk that did not load leaves the page's controls dead: the notice says so and offers to reload the page, the\n // likely cause being a page from an older release.\n const [attachFailed, setAttachFailed] = createSignal(false);\n onMount(() => {\n createEffect(\n on(bound, () => {\n const target = element;\n if (target)\n withAttach(\n ({ attachRenderedWorkspace }) => attachRenderedWorkspace(target),\n () => setAttachFailed(true),\n );\n }),\n );\n });\n return (\n <div\n ref={element}\n class=\"k2-ws\"\n data-k2-workspace=\"\"\n data-k2-part=\"Workspace\"\n data-k2-ws={id}\n data-collapsible={collapsible() ? \"\" : undefined}\n data-collapsed={collapsed() ? \"\" : undefined}\n data-collapse-in-nav={collapsible() && awayInNav() ? \"\" : undefined}\n // the room its sidebar's grip leaves the columns, for the grip of a server's workspace (`attachWorkspace`)\n data-k2-room={sidebar() ? room() : undefined}\n data-k2-accent={accent() ? \"\" : undefined}\n data-plain={props.plain ? \"\" : undefined}\n style={custom({\n ...accent(),\n \"--k2-ws-side\": `${sideWidth()}px`,\n \"--k2-ws-side-min\": `${width().min}px`,\n \"container-name\": sidebar() ? `k2-ws-${id}` : undefined,\n })}\n >\n <Show when={sidebar()}>\n <aside id={`${id}-side`} class=\"k2-ws-side\" data-k2-column=\"\">\n {/* one stable box (no box of its own) around the sidebar: the drawer holds it, with what Solid renders in it */}\n <div class=\"k2-ws-side-body\">{sidebar()}</div>\n </aside>\n <PaneSeam grip={sideGrip()} />\n </Show>\n <div class=\"k2-ws-main\" data-k2-column=\"\">\n <Show when={head() || sidebar()}>\n <div class=\"k2-slot\" data-slot=\"head\" data-toggle-only={head() ? undefined : \"\"}>\n <Show when={sidebar()}>\n {/* the drawer's button: it shows while the sidebar is a drawer, and `attachWorkspace` binds it */}\n <button\n type=\"button\"\n class=\"k2-btn k2-ws-toggle\"\n data-variant=\"ghost\"\n data-icon-only=\"\"\n aria-label={t().showSidebar}\n title={t().showSidebar}\n >\n <Icon name=\"layout-sidebar\" />\n </button>\n <Show when={collapsible()}>\n <button\n type=\"button\"\n class=\"k2-btn k2-ws-collapse\"\n data-variant=\"ghost\"\n data-icon-only=\"\"\n aria-controls={`${id}-side`}\n aria-expanded={collapsed() ? \"false\" : \"true\"}\n aria-keyshortcuts=\"Control+Alt+S Meta+Alt+S\"\n aria-label={collapsed() ? t().showSidebar : words().hideSidebar}\n title={collapsed() ? t().showSidebar : words().hideSidebar}\n >\n <Icon name=\"layout-sidebar\" />\n </button>\n </Show>\n </Show>\n {head()}\n </div>\n </Show>\n <Show when={top()}>\n <div class=\"k2-slot\" data-slot=\"top\">\n {top()}\n </div>\n </Show>\n {body()}\n </div>\n <Show when={sidebar()}>\n <style>{drawerRule()}</style>\n </Show>\n <Show when={props.primary}>\n {(action) => (\n // a disabled link is an anchor without an address, as in `Button`\n <Dynamic\n component={action().disabled && action().href !== undefined ? \"a\" : linkOr(action().href, \"button\")}\n type={action().href !== undefined ? undefined : \"button\"}\n class=\"k2-btn k2-fab\"\n data-variant=\"primary\"\n href={action().disabled ? undefined : action().href}\n onNavigate={action().href !== undefined && !action().disabled ? action().onNavigate : undefined}\n disabled={action().href === undefined ? action().disabled : undefined}\n aria-disabled={action().href !== undefined && action().disabled ? \"true\" : undefined}\n onClick={() => {\n if (!action().disabled) action().onClick?.();\n }}\n >\n <Show when={action().icon}>{(name) => <Icon name={name()} />}</Show>\n {action().label}\n </Dynamic>\n )}\n </Show>\n {/* the page's one live region: `announce` says its news here, also from another island */}\n <Announcer />\n <Show when={attachFailed()}>\n <div class=\"k2-ui\" data-k2-ws-failed=\"\" style={{ display: \"contents\" }}>\n <section\n class=\"k2-toasts\"\n data-k2-part=\"Toast\"\n role=\"alert\"\n popover=\"manual\"\n ref={(region) => queueMicrotask(() => region.showPopover?.())}\n >\n <ol>\n <li class=\"k2-toast\" data-type=\"error\">\n <span class=\"k2-toast-text\">{words().controlsFailed}</span>\n <button type=\"button\" class=\"k2-btn\" data-variant=\"text\" onClick={() => window.location.reload()}>\n <span class=\"k2-btn-label\">{words().reloadPage}</span>\n </button>\n </li>\n </ol>\n </section>\n </div>\n </Show>\n </div>\n );\n};\n\n// ── Pane and Pane.Split ──────────────────────────────────────────────────────────────────────────────────────────\n\ntype SplitEntry = {\n readonly width?: ColumnWidth;\n readonly label?: string;\n readonly persistIndex?: number;\n /** A context column (`side`): the split lets it give way to the end of the main column where it lacks the room. */\n readonly side?: PaneProps[\"side\"];\n /** What the pane needs: its minimum, or what a split inside it needs beside each other, whichever is more. */\n readonly need: number;\n /** A detail (`Pane detail`): its room is the workspace's declared `detail`, open or closed. */\n readonly detail: boolean;\n element?: HTMLElement;\n /** The pane's width in px while its grip has moved it. */\n size?: Accessor<number | undefined>;\n resize?: (px: number) => void;\n persistence?: ReturnType<typeof widthCookieAttrs>;\n};\n/** The place of a declared detail while none is open: a pane without a width, which needs no room of its own. */\nconst emptyDetail: SplitEntry = { need: 0, detail: true };\n/** A pane inside a split registers its width and name for the seam beside it, for as long as it exists. */\nconst SplitContext = createContext<(entry: SplitEntry) => void>();\n/** Whether the split is a main column with one context column after it: then the context gives way where there is no room. */\nconst ContextualContext = createContext<Accessor<boolean>>();\n\nexport type PaneProps = {\n /** The head of this column: a `Bar` (56 px; 52 px for a reader beside a list) or `Tabs`. */\n head?: JSX.Element;\n /**\n * What stays under the head while the column scrolls: a `StatusRow` (52 px) above a list, or a `Bar` (40 px) with\n * the state of an open entry, such as \"3 Nachrichten · Wartet auf Antwort · Tag\" above a reader. With a `head` it is\n * one block: no line between them, close together; from 1080 px of the pane, or under a head of actions only, it\n * joins the head's row.\n */\n status?: JSX.Element;\n /** A column that can be dragged wider: its minimum and default width; `{ fixed }`: one width, no grip. Only inside `Pane.Split`. */\n width?: ColumnWidth;\n /** Stable cookie slot (0–63) inside a persistent split. Omit to keep this pane transient; never reuse a slot. */\n persistIndex?: number;\n /** The name of the column and of its grip, such as \"List\". */\n label?: string;\n /**\n * The detail of a list (a reader): beside the list on a wide screen. On the phone, while it is there (something is\n * open), it is the page and the list gives way; render it only while something is open. What is open belongs in\n * the address, so reload, back and forward show the same. A detail that closes in place hands the focus back to\n * what opened it, such as the row. Its room is the workspace's `detail`, also for a detail in a split inside a column:\n * declare it there, so the sidebar does not jump when the detail opens.\n */\n detail?: boolean;\n /**\n * The way back to the list on the phone, where the detail is a page of its own, such as \"Posteingang\". Give it an\n * `href`: the address of the list without the open entry. While it is there, the head of the workspace gives way on\n * the phone, so the way back is the one bar above the detail; it is the part `Back`, which a shell may show in its\n * own bar instead. Mark the close × of the detail's head `Button closes`: with `back` it gives way on the phone, so\n * the detail has one way back there. A pane without a `head` (an editor, whose name stood in the workspace's head)\n * names itself after the way back by its `label`: \"‹ Werkstatt Notizen.md\".\n */\n back?: Action;\n /**\n * `\"sheet\"`: on the phone the detail opens as a sheet over what it belongs to, instead of a page of its own: the list\n * or the note stays in sight behind it, dimmed, and keeps its head. The sheet stands 14 px below the window's top\n * with a grip, scrolls inside, and closes by a swipe down, a tap on the dimmed content, Escape or its head's\n * `Button closes`; each of them takes its `back`, so the address stays the one truth. While it is open the focus stays\n * inside. On a wide screen it is the detail beside the list as before. Needs `detail` and `back`.\n */\n phone?: \"sheet\";\n /**\n * The content brings the pane's identity head itself, such as a ported screen's head with the item's name and facts:\n * the way back then carries itself alone (\"‹ Planning\"), so the name stands once on the page, in that head.\n */\n ownHead?: boolean;\n /**\n * The way back shows on a wide screen too: for a page that stands in the place of another one, not beside a list,\n * such as a discussion in the place of its room's stream (\"‹ Frühlingsausstellung\").\n */\n wideBack?: boolean;\n /**\n * The context column (quieter sections): the info column of a record, what a form feeds, a chart beside a table, or\n * the right half of a detail that grows on a large screen (who and what happened, beside what it is).\n *\n * In a `Pane.Split` of exactly one main column and this context column after it, the context stands beside the main\n * column only where the split holds both at their default widths (a column without a `width` at 400 px). With less\n * room it gives way to the end of the main column: the split then scrolls in one piece, the main column first and\n * the context under it at the full width, so the main column is never squeezed and nothing hides; and it needs no\n * room of the workspace, so the sidebar never becomes a drawer for it. `{ from }` asks for more room, in px of the\n * split, for a main column that needs it, such as a table (`{ from: 1400 }`: a large screen); never less than the\n * defaults. The rule is a `<style>` beside the split, made from these widths on the server too; a page whose content\n * security policy allows no inline style keeps the context column beside, as in any other split, and so does a split\n * with no place above it that measures (`k2-host`: a Workspace's main column or a pane), such as one in a dialog or a\n * sidebar. `side` belongs on the inner column only: an outer `Pane detail` with `side` becomes the context column of\n * the list and moves under it.\n *\n * In any other split (a list, its reader and an info column) it stands beside as every column does and counts\n * toward the room of the workspace. Known: the split's rule asks for its panes as its own children, so a pane that\n * an island wraps on its own gives way only where the island's wrapper is transparent to `>`.\n */\n side?: boolean | { from: number };\n /**\n * A name under which the page keeps this column's scroll position, such as \"mail-list\": back and forward bring\n * the list back where it was (the page restores every `data-scroll-preserve` region, as v1's `ScrollArea` does).\n */\n scrollKey?: string;\n /**\n * The content stands in the middle of the column: across at its own measure, at most that of four cards (4 × 240 px\n * with their gaps, between the text edges), and in the middle of the height where it fits. Taller content starts at\n * the top and scrolls, as in any pane; on the phone it always starts at the top. For a page with little on it and\n * nothing beside it, such as the first start of an app without any data: one line and a few `Tiles`. A line of text\n * stands centred over them, on the phone at the start. It draws no\n * line and no box of its own, and it is CSS alone, so the server's first render already stands there.\n */\n center?: boolean;\n /**\n * This column is what the page prints, such as the open conversation of a reader: on paper the column alone at its\n * full length, with its head's title and its content, and without the page around it or its controls (buttons,\n * menus, fields, tabs, the way back, chips that only act). Rows and notices stay whole on a page. Paper is light,\n * also from a dark page. Any print prints it: the app's \"Print\" only calls `window.print()`, and Ctrl+P or the\n * browser's menu do the same. One column of a page has it. It changes nothing on screen.\n */\n print?: boolean;\n /** Bands, rows, sections; the pane pads nothing. */\n children?: JSX.Element;\n};\n\n/** A column that scrolls. It has no padding and no gutter, so every band in it reaches both edges. */\nexport const Pane = (props: PaneProps) => {\n // the width the grip beside it gave it; its default until then\n const [size, setSize] = createSignal<number>();\n // what a split inside this column needs beside each other (see `InnerContext`); the column needs the larger of that\n // and its own minimum, and says so to the split it stands in or to the workspace, at any depth\n const [inner, setInner] = createSignal<readonly Accessor<number>[]>([]);\n const registerInner = (need: Accessor<number>) => {\n setInner((list) => [...list, need]);\n onCleanup(() => setInner((list) => list.filter((other) => other !== need)));\n };\n // a fixed column needs its one width; one that can be dragged, its minimum\n const own = () => (props.width === undefined ? flexibleMin : draggable(props.width) ? props.width.min : columnPx(props.width));\n const need = () => Math.max(own(), ...inner().map((each) => each()));\n const entry: SplitEntry = {\n get width() {\n return props.width;\n },\n get label() {\n return props.label;\n },\n get persistIndex() {\n return props.persistIndex;\n },\n get side() {\n return props.side;\n },\n get need() {\n return need();\n },\n get detail() {\n return props.detail === true;\n },\n size,\n resize: setSize,\n };\n useContext(SplitContext)?.(entry);\n const contextual = useContext(ContextualContext);\n // a column at the top of a workspace tells it what it needs; panes inside this one are not its columns, but what a\n // split inside it needs counts. A context column beside a single main column needs nothing: where there is no room\n // beside, it stands under the main column.\n useContext(ColumnsContext)?.register({\n get need() {\n return need();\n },\n get detail() {\n return props.detail === true;\n },\n get away() {\n return Boolean(props.side) && (contextual?.() ?? false);\n },\n });\n // whether the status is a toolbar of the list (StatusRow, FilterBar): only a toolbar joins the head as one block\n const [toolbars, setToolbars] = createSignal<readonly StatusToolbar[]>([]);\n const status = resolveChildren(() => <StatusToolbarContext.Provider value={setToolbars}>{props.status}</StatusToolbarContext.Provider>);\n // the head's bar takes the toolbar between its start and its end, and says what it made of it\n const [block, setBlock] = createSignal<string>();\n const head = resolveChildren(() => {\n let taken = false;\n const claim: HeadBlock = () => {\n if (taken) return;\n taken = true;\n onCleanup(() => {\n taken = false;\n setBlock();\n });\n return {\n toolbar: () => (toolbars().length > 0 ? status() : undefined),\n quiet: () => toolbars().length > 0 && toolbars().every((toolbar) => toolbar.quiet()),\n tell: setBlock,\n };\n };\n return <HeadBlockContext.Provider value={claim}>{props.head}</HeadBlockContext.Provider>;\n });\n let section: HTMLElement | undefined;\n const sheet = () => props.detail === true && props.phone === \"sheet\" && props.back !== undefined;\n // `phone=\"sheet\"`: the detail watches the phone's sheet (pane-sheet.ts), loaded only for such a detail\n createEffect(() => {\n const pane = section;\n if (!sheet() || !pane) return;\n let stop: (() => void) | undefined;\n let gone = false;\n void import(\"./pane-sheet\").then(({ watchPaneSheet }) => {\n if (!gone) stop = watchPaneSheet(pane);\n });\n onCleanup(() => {\n gone = true;\n stop?.();\n });\n });\n // `print`: the column watches the browser's print (pane-print.ts), loaded only for such a column\n createEffect(() => {\n const pane = section;\n if (!props.print || !pane) return;\n let stop: (() => void) | undefined;\n let gone = false;\n void import(\"./pane-print\").then(({ watchPanePrint }) => {\n if (!gone) stop = watchPanePrint(pane);\n });\n onCleanup(() => {\n gone = true;\n stop?.();\n });\n });\n // A detail appears because something opened it, which then has the focus (the row). When the detail goes while the\n // focus is in it (its way back, its close button), the focus returns there instead of falling to the page.\n onMount(() => {\n if (!props.detail) return;\n const opener = document.activeElement;\n if (!(opener instanceof HTMLElement) || opener === document.body || section?.contains(opener)) return;\n onCleanup(() => {\n const inside = section?.contains(document.activeElement) ?? false;\n queueMicrotask(() => {\n const lost = inside || document.activeElement === null || document.activeElement === document.body;\n if (lost && opener.isConnected) opener.focus();\n });\n });\n });\n return (\n <section\n ref={(element) => {\n entry.element = element;\n section = element;\n }}\n class=\"k2-pane\"\n data-k2-part=\"Pane\"\n data-k2-column=\"\"\n aria-label={props.label}\n data-width={props.width ? \"\" : undefined}\n data-k2-width-key={entry.persistence?.[\"data-k2-width-key\"]}\n data-k2-width-index={entry.persistence?.[\"data-k2-width-index\"]}\n data-k2-width-max={entry.persistence?.[\"data-k2-width-max\"]}\n data-detail={props.detail ? \"\" : undefined}\n data-phone={sheet() ? \"sheet\" : undefined}\n data-sheet-head={sheet() && head() ? \"\" : undefined}\n data-side={props.side ? \"\" : undefined}\n data-wide-back={props.wideBack && props.back ? \"\" : undefined}\n data-center={props.center ? \"\" : undefined}\n data-print-region={props.print ? \"\" : undefined}\n style={custom({\n \"--k2-pane-w\": props.width ? `${size() ?? columnPx(props.width)}px` : undefined,\n \"--k2-pane-min\": props.width ? `${draggable(props.width) ? props.width.min : columnPx(props.width)}px` : undefined,\n })}\n >\n {/* the way back shows on the phone (with `wideBack` everywhere), above the head; a public part, so a shell can find it */}\n <Show when={props.back}>\n {(back) => (\n // a sheet's way back closes it; it is no part `Back` a shell takes into its bar, as the list stays the page\n <div class=\"k2-pane-back\" data-k2-part={sheet() ? undefined : \"Back\"}>\n {/* a long name is cut with \"…\"; the whole name is the hint under the pointer */}\n <ActionButton action={{ icon: \"chevron-left\", ...back() }} variant=\"text\" titled />\n {/* the workspace's head gives way here: a pane without a head of its own names what stands open */}\n <Show when={!head() && !props.ownHead && props.label}>\n {(label) => (\n // the page's name for assistive technology too: it heads the pane as its title would\n <span class=\"k2-pane-back-name\" role=\"heading\" aria-level={2}>\n {label()}\n </span>\n )}\n </Show>\n </div>\n )}\n </Show>\n {/* A head and its status row are one block (look rule 30): no line between them, close together, and where\n the pane is wide, or the head has no start, the status row joins the head's row. Decided while the parts are\n made, the same on the server. */}\n <Show when={head()}>\n <div class=\"k2-slot\" data-slot=\"head\" data-block={block()}>\n {head()}\n </div>\n </Show>\n {/* a head with a toolbar in its bar is one block; any other status keeps its own place under the head (the bar\n that told the block takes it back when it goes) */}\n <Show when={status() && block() === undefined}>\n <div class=\"k2-slot\" data-slot=\"status\">\n {status()}\n </div>\n </Show>\n <div class=\"k2-scroll\" data-scroll-preserve={props.scrollKey}>\n <ColumnsContext.Provider value={undefined}>\n <InnerContext.Provider value={registerInner}>{props.children}</InnerContext.Provider>\n </ColumnsContext.Provider>\n </div>\n </section>\n );\n};\n\n/**\n * Panes side by side inside content: a list beside its reader, a main column beside its info column. One hairline\n * between them; where a pane has a `width`, its line carries a grip.\n */\nPane.Split = (props: {\n /** Stable cookie key, server-read widths, and the largest retained width. Panes opt in with `persistIndex`. */\n persist?: WidthPersistence;\n /** The panes side by side; a pane that is not there is `undefined`. */\n children: JSX.Element;\n}) => {\n const [entries, setEntries] = createSignal<readonly SplitEntry[]>([]);\n const register = (entry: SplitEntry) => {\n const index = entry.persistIndex;\n const persist = props.persist;\n // Explicit slots survive conditional siblings and a pane that unmounts and returns in the same split.\n if (index !== undefined && Number.isInteger(index) && index >= 0 && index < 64 && draggable(entry.width) && persist) {\n const initial = retainedWidth(persist, index, entry.width);\n if (initial !== undefined) entry.resize?.(initial);\n entry.persistence = widthCookieAttrs(persist, index);\n const resize = entry.resize;\n const width = entry.width;\n entry.resize = (px) => {\n const next = retainedWidth({ ...persist, widths: [px] }, 0, width) ?? px;\n resize?.(next);\n writeWidthCookie(persist.key, index, next);\n };\n }\n setEntries((list) => [...list, entry]);\n onCleanup(() => setEntries((list) => list.filter((other) => other !== entry)));\n };\n // at the top of a workspace that declares a detail: what stands in its place while none is open\n const columns = useContext(ColumnsContext);\n // exactly one main column and one context column after it, and no place of a detail: only then the context gives way\n // (a list, its reader and an info column keep their own columns and scrollers)\n const contextual = () => {\n const [main, context, ...rest] = entries();\n return rest.length === 0 && main !== undefined && !main.side && Boolean(context?.side) && !columns?.empty();\n };\n // inside a column: what its panes need beside each other, each at its minimum (a column without a width at 400 px)\n // with the lines between them; a context column that gives way needs nothing\n // A context column that gives way asks nothing beyond its column's own minimum; a detail counts nothing either (the\n // workspace's declared `detail` holds its room, open or closed, so the sidebar does not jump when it opens).\n if (!columns)\n useContext(InnerContext)?.(() => {\n if (contextual()) return 0;\n const beside = entries().filter((entry) => !entry.detail);\n return beside.reduce((sum, entry) => sum + entry.need, 0) + Math.max(0, beside.length - 1);\n });\n return (\n <SplitContext.Provider value={register}>\n <ContextualContext.Provider value={contextual}>\n <SplitBody entries={entries()} empty={columns?.empty()} contextual={contextual()}>\n {props.children}\n </SplitBody>\n </ContextualContext.Provider>\n </SplitContext.Provider>\n );\n};\n\n/**\n * Renders the panes first (each registers its width), then puts a seam after every pane; the stylesheet hides the one\n * after the last. Panes may come and go (`Show`): each takes its own seam with it, and the grips follow. Every entry\n * of the list is the same two nodes, so nothing in it comes and goes on its own (that would not be removed cleanly\n * after hydration). In the browser a pane's entry is found by its element, on the server by its order.\n */\nconst SplitBody = (props: {\n entries: readonly SplitEntry[];\n empty: DetailEmpty | undefined;\n /** One main column and one context column after it (see `Pane side`). */\n contextual: boolean;\n children: JSX.Element;\n}) => {\n const resolved = resolveChildren(() => props.children);\n // a pane hidden by `Show` or `{open && <Pane …/>}` stays in the list as what renders nothing: it gets no seam\n const panes = () => resolved.toArray().filter((pane) => pane !== undefined && pane !== null && typeof pane !== \"boolean\" && pane !== \"\");\n const entryOf = (index: number) => {\n const pane = panes()[index];\n if (pane === undefined) return undefined;\n return props.entries.find((entry) => entry.element !== undefined && entry.element === pane) ?? props.entries[index];\n };\n // The seam after pane `index`: the pane on its right moves it if it has a width, else the pane on its left. The place\n // of a detail that is not open counts as a pane without a width, so the grip stays where it is when it opens.\n const grip = (index: number): SeamGrip | undefined => {\n const left = entryOf(index);\n const right = entryOf(index + 1) ?? (props.empty && index === panes().length - 1 ? emptyDetail : undefined);\n if (!right) return undefined;\n const moving = right.width ? right : left?.width ? left : undefined;\n const width = moving?.width;\n // a fixed width has no grip: it keeps its width\n if (!moving || !draggable(width)) return undefined;\n return {\n label: moving.label ?? \"Column\",\n width,\n value: () => moving.size?.() ?? width.default,\n onChange: (px) => moving.resize?.(px),\n direction: () => (moving === right ? -1 : 1),\n measure: () => {\n const pane = moving.element;\n const split = pane?.parentElement;\n const rendered = pane?.getBoundingClientRect().width;\n if (!pane || !split || !rendered) return undefined;\n // a fixed pane after a line includes it in its width (v2.css)\n const now = rendered + (pane.previousElementSibling?.classList.contains(\"k2-seam\") ? 1 : 0);\n // the flexible panes beside it give way down to their minimum (a pane with a width keeps it)\n let slack = 0;\n for (const other of split.children) if (other.matches(\".k2-pane:not([data-width])\")) slack += slackOf(other);\n return { now, max: Math.min(now + slack, moving.persistence?.[\"data-k2-width-max\"] ?? Infinity) };\n },\n };\n };\n // The room a context column needs beside its main column: both at their default width (a column without a width at\n // 400 px; the context's default includes the line before it), or the more its `from` asks. The panes registered while\n // they rendered above, so the server's page and the first render in the browser make the same rule.\n const id = createUniqueId();\n const room = () => {\n if (!props.contextual) return undefined;\n const [main, context] = props.entries;\n // a fixed column counts its one width\n const both = (main?.width ? columnPx(main.width) : flexibleMin) + (context?.width ? columnPx(context.width) : flexibleMin);\n return typeof context?.side === \"object\" ? Math.max(context.side.from, both) : both;\n };\n // Below that room (from 768 px on; the phone stacks every split) the split wraps: the context column and the line\n // before it take a row each, under the main column at the full width, and the split scrolls in one piece, to the end\n // of its content. Above it nothing wraps, whatever width a grip gave a column. An element cannot ask its own width:\n // the split itself asks its place (`k2-host`: the workspace's main column, or the pane the split stands in), which is\n // as wide as the split. What stands inside the split asks the split, under a name only this split carries: the\n // nearest `k2-host` of a column's scroller is that column, which is narrower than the room beside its context, so a\n // rule there would always hold (#4340: the main column could not scroll). The grips' reach (their `::after`) stays\n // inside its line, so the scroller ends at the content. Made per split, as the room is the split's own.\n const split = `.k2-ui .k2-split[data-k2-split=\"${id}\"][data-context]`;\n const own = `k2-split-${id}`;\n const flowRule = (px: number) =>\n `.k2-ui .k2-split[data-k2-split=\"${id}\"] { container: ${own} / inline-size; } ` +\n `@media (min-width: 768px) { @container k2-host (width < ${px}px) { ` +\n `${split} { flex-wrap: wrap; align-content: flex-start; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; } ` +\n `${split}::-webkit-scrollbar { display: none; } } ` +\n `@container ${own} (width < ${px}px) { ` +\n `${split} > .k2-pane, ${split} > .k2-seam + .k2-pane[data-width] { flex: 0 0 100%; width: auto; min-width: 0; min-height: auto; overflow: visible; } ` +\n `${split} > .k2-pane > .k2-scroll { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; animation: none; } ` +\n `${split} > .k2-seam { flex: 0 0 100%; width: auto; height: 1px; } ${split} > .k2-seam > .k2-grip { display: none; } ` +\n // the line across under the main column is the one line there: the last line inside the main column gives way\n `${split} > .k2-pane:first-child > .k2-scroll > :is(.k2-sec, .k2-row):last-child, ` +\n `${split} > .k2-pane:first-child > .k2-scroll > .k2-list:last-child > .k2-row:last-child, ` +\n `${split} > .k2-pane:first-child > .k2-scroll > .k2-table-phone:last-child > .k2-list > .k2-row:last-child { border-bottom: 0; } } }`;\n // The rule stays once it is made, also while a detail stands in the place of the context (the split then drops its\n // `data-context`): no `<style>` comes and goes, so the browser does not restyle the page each time.\n const rule = createMemo<string | undefined>((made) => {\n const px = room();\n return px === undefined ? made : flowRule(px);\n });\n return (\n <>\n <Show when={rule()}>{(text) => <style data-k2-rule=\"\">{text()}</style>}</Show>\n <div\n class=\"k2-split\"\n data-k2-part=\"Pane.Split\"\n data-k2-split={rule() === undefined ? undefined : id}\n data-context={room() === undefined ? undefined : \"\"}\n >\n <For each={panes()}>\n {(pane, index) => (\n <>\n {pane}\n <PaneSeam grip={grip(index())} />\n </>\n )}\n </For>\n {/* the place of the declared detail while none is open: the column beside it keeps its width (not on the phone) */}\n <Show when={props.empty}>\n {(empty) => (\n <section class=\"k2-pane\" data-k2-part=\"Pane\" data-detail-empty=\"\" aria-label={empty().text}>\n <div class=\"k2-scroll\">\n <Show when={empty().hero}>\n <div class=\"k2-detail-hero\">{empty().hero}</div>\n </Show>\n <Empty icon={empty().icon} text={empty().text} />\n </div>\n </section>\n )}\n </Show>\n </div>\n </>\n );\n};\n\n// ── Bar ──────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport type BarProps = {\n /** The start place: a title, a path, tabs, an inline line. */\n start?: JSX.Element;\n /** The end place: buttons, a search, a person. */\n end?: JSX.Element;\n};\n\n/**\n * A bar of fixed height with a line below. Its height comes from its place: 56 as the head of a workspace or pane,\n * 52 as a status row, 40 on its own. Controls in it take the height that leaves equal air above and below. The\n * stylesheet reads the place from the slot the bar stands in, so a bar built ahead and passed on behaves the same.\n * In a column narrower than 480 px, a bar in the flow whose start is an `Inline` wraps instead of cutting: its things\n * and its end flow as one line, one line stays 40, and only a second line makes the bar higher.\n *\n * The start keeps a least: its name at `--k2-start-least` (16ch; its whole content, where narrower), or its open\n * tab. Where the end does not fit beside the whole start (six actions beside tabs on the phone), the end folds first:\n * its buttons that do not fit move into a menu \"…\" at its end, in their order, the last first. Where the end's last\n * `Menu` \"…\" (no symbol of its own, whatever its `label`) is followed only by parts that never fold (the primary, a\n * closing ×, a menu with a symbol or words of its own), they are that menu's first section; an end made outside\n * the bar (an island of its own) gets the bar's own \"…\" instead. The primary action, a closing ×, a menu and a search\n * never fold. Only when nothing more can fold does the start shorten its words with \"…\", down to its least. The\n * browser measures the fold once the page is alive; before that the bar stands as it does when nothing folds (the end\n * whole, the start given way down to its least), so the server's page is the live one wherever nothing folds. Only an\n * end that has to fold cuts, from its start, until the fold takes over.\n */\nexport const Bar = (props: BarProps) => {\n const t = useOverlayMessages();\n // the entries of the buttons that do not fit, and the menu of the end that holds them; none on the server's page\n const [folded, setFolded] = createSignal<readonly MenuItem[]>([]);\n const [host, setHost] = createSignal<HTMLElement>();\n // the bar's own \"…\" takes another name where the end holds a menu of the same name that does not take the buttons\n const [twin, setTwin] = createSignal(false);\n let bar: HTMLDivElement | undefined;\n let watch: Fold | undefined;\n // menus that offered themselves before the bar watched (children mount before the bar's effect runs)\n const waiting = new Map<HTMLElement, () => void>();\n const offer = (trigger: HTMLElement) => {\n if (watch) return watch.offer(trigger);\n waiting.set(trigger, () => {});\n return () => {\n waiting.get(trigger)?.();\n waiting.delete(trigger);\n };\n };\n // the first bar of a pane's head claims its block, before its parts are made (a bar inside them finds it taken)\n const headBlock = useContext(HeadBlockContext)?.();\n const start = resolveChildren(() => <InBarStart.Provider value={true}>{props.start}</InBarStart.Provider>);\n // the pane's toolbar, which this head bar stands between its start and its end (one block, one box, one Tab order)\n const toolbar = () => headBlock?.toolbar();\n // `\"line\"`: a quiet toolbar (no filter set) stands in the head's own row between the start and the end, on every\n // width, so the head takes one row until a filter is set; then the toolbar takes its row under them (`\"\"`)\n createRenderEffect(() =>\n headBlock?.tell(toolbar() === undefined ? undefined : start() === undefined ? \"row\" : headBlock.quiet() ? \"line\" : \"\"),\n );\n // the end is made inside the fold's context, so a menu \"…\" in it can offer itself to take the folded buttons\n const end = resolveChildren(() => <BarFold.Provider value={{ offer, host, entries: folded }}>{props.end}</BarFold.Provider>);\n const hasEnd = createMemo(() => end() !== undefined);\n createEffect(() => {\n if (!bar || !hasEnd()) return;\n const own = t().moreActions;\n const fold = watchFold(bar, (entries, menu) => {\n setFolded(entries);\n setHost(menu);\n setTwin(\n !menu &&\n [...(bar?.querySelectorAll('.k2-bar-end [aria-haspopup=\"menu\"][data-icon-only]') ?? [])].some(\n (other) => !other.closest(\".k2-bar-fold\") && other.getAttribute(\"aria-label\") === own,\n ),\n );\n });\n watch = fold;\n for (const trigger of waiting.keys()) waiting.set(trigger, fold.offer(trigger));\n onCleanup(() => {\n watch = undefined;\n fold.stop();\n });\n });\n return (\n <div ref={bar} class=\"k2-bar\" data-k2-part=\"Bar\">\n <Show when={start() !== undefined}>\n <div class=\"k2-bar-start\">{start()}</div>\n </Show>\n <Show when={toolbar()}>\n {(part) => (\n <div class=\"k2-slot\" data-slot=\"status\">\n {part()}\n </div>\n )}\n </Show>\n <Show when={hasEnd()}>\n <div class=\"k2-bar-end\">\n {end()}\n <Show when={folded().length > 0 && !host()}>\n <span class=\"k2-bar-fold\">\n <BarFold.Provider value={undefined}>\n <Menu items={folded()} label={twin() ? t().moreInBar : undefined} />\n </BarFold.Provider>\n </span>\n </Show>\n </div>\n </Show>\n </div>\n );\n};\n\n// ── Band ─────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport type BandProps = {\n /**\n * A tone only by meaning: a note, AI, \"yours\", wrong, waiting, or `app`: the tint of the app's colour (the page's\n * own with `Workspace accent`), for the one statement that belongs to it, such as a hero without a picture above it.\n */\n tone?: \"note\" | \"ai\" | \"yours\" | \"bad\" | \"warn\" | \"app\";\n /** A name for the band, for assistive technology. */\n label?: string;\n /** What prints of the page: the band alone, without the page around it (`data-print-region`), such as a legal text. */\n print?: boolean;\n /** `Text`, `Row`s, `Prose`, `Tiles` or fields. */\n children: JSX.Element;\n};\n\n/** A band of free height with one line below, from edge to edge. What stands in it draws no line of its own. */\nexport const Band = (props: BandProps) => (\n <section\n class=\"k2-band\"\n data-k2-part=\"Band\"\n data-tone={props.tone}\n aria-label={props.label}\n data-print-region={props.print ? \"\" : undefined}\n >\n {props.children}\n </section>\n);\n\n// ── Cells ────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport type CellProps = {\n /** A Tabler icon before the label. */\n icon: string;\n /** The data colour of the symbol, such as the colour of an area. */\n color?: string;\n /** What the cell is about, such as \"Geld heute\". */\n label: string;\n /** The key statement: words, a number or a `Chip`. */\n value: JSX.Element;\n /** A quiet line under the value. */\n meta?: JSX.Element;\n /** The cell leads to this page: a chevron at its end. */\n href?: string;\n /** A short history beside the value, such as orders per day this week (`Spark`). */\n trend?: SparkProps;\n /**\n * The value is on its way: a quiet bar lies on the value and on its quiet line, while symbol and label stay. What is\n * there (a refresh) keeps its exact room unseen under the bar, a quiet line of several lines too; a value not there\n * yet is a bar of one line. So nothing moves when it comes. Assistive technology hears \"Wird geladen…\" at the value.\n * A `trend` keeps its place unseen meanwhile.\n */\n loading?: boolean;\n};\n\n/** Two to four equal cells side by side with a line between them; one under the other on the phone. */\nexport const Cells = (props: {\n /** Two to four `Cells.Cell`. */\n children: JSX.Element;\n}) => (\n <div class=\"k2-cells\" data-k2-part=\"Cells\">\n {props.children}\n </div>\n);\n\nCells.Cell = (props: CellProps) => {\n const meta = resolveChildren(() => props.meta);\n return (\n // a cell that leads somewhere: its label is the link, stretched over the cell, so a value may hold its own controls\n <div\n class=\"k2-cell\"\n data-k2-part=\"Cells.Cell\"\n data-open={props.href !== undefined ? \"\" : undefined}\n aria-busy={props.loading ? \"true\" : undefined}\n style={custom({ \"--k2-c\": props.color })}\n >\n <Icon name={props.icon} />\n <span class=\"k2-cell-label\">\n <RowOpen href={props.href}>{props.label}</RowOpen>\n </span>\n <Show when={props.href} fallback={<span />}>\n <i class=\"ti ti-chevron-right k2-icon k2-cell-go\" aria-hidden=\"true\" />\n </Show>\n <span class=\"k2-cell-value\">\n <Show when={!props.loading} fallback={<PlaceholderValue>{props.value}</PlaceholderValue>}>\n {props.value}\n </Show>\n <Show when={props.trend}>{(trend) => <Spark {...trend()} />}</Show>\n </span>\n <Show when={meta() !== undefined}>\n <span class=\"k2-cell-meta\">\n <Show when={!props.loading} fallback={<PlaceholderValue said={false}>{meta()}</PlaceholderValue>}>\n {meta()}\n </Show>\n </span>\n </Show>\n </div>\n );\n};\n\n// ── Tiles ────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** A figure on a card, such as \"6 Tabellen\" or a state such as \"8 knapp\". */\n/** The symbol a state brings when a figure names none, so a state is always colour, symbol and word. */\nconst statIcon: Record<Status, string> = { ok: \"circle-check\", warn: \"alert-circle\", bad: \"alert-triangle\" };\n\nexport type TileStat = {\n /** A Tabler icon before the words. */\n icon?: string;\n /** The figure in words, such as \"6 Tabellen\". */\n label: string;\n /**\n * A state: its colour, its symbol and its words, never a colour alone. Without an `icon` the state brings its own:\n * a check for ok, a circle with \"!\" for waiting, a triangle for wrong.\n */\n status?: Status;\n /** \"Waits for you\", in the blue of selection, such as \"3 Anträge\". */\n yours?: boolean;\n};\n\nexport type Tile = {\n /** A Tabler icon for the kind of thing, such as `file-type-pdf`. */\n icon: string;\n /** The name, such as a file name. */\n title: string;\n /** A quiet line under the name, such as the size or a description. */\n meta?: string;\n /** The tile opens this page or file … */\n href?: string;\n /** … in place on a plain click (see `OnNavigate`). */\n onNavigate?: OnNavigate;\n /**\n * Without `href`: the deed of the whole tile, such as opening the dialog that makes a notebook from a template. The\n * tile's name is then a button, and the whole tile presses it.\n */\n onOpen?: () => void;\n /** The data colour of the thing: its symbol becomes its mark on a tint of this colour. */\n color?: string;\n /**\n * Plain tiles only: a copy button at the end for a value of the thing, such as an endpoint's address (`label` names\n * what it copies).\n */\n copy?: { label: string; value: string };\n /** Plain tiles only: the thing's further deeds behind a \"…\" at the end. */\n menu?: readonly MenuEntry[];\n /** Cards only: figures and states under the name, such as tables, forms and \"8 knapp\". */\n stats?: readonly TileStat[];\n /** Cards only: the people at the foot, such as who changed it last (`Avatar.Stack`). */\n people?: readonly Person[];\n /** Cards only: quiet words at the end of the foot, such as \"Felix · vor 2 Min\". */\n foot?: string;\n /** Cards only: a short history at the top end, in the thing's colour (`Spark`). */\n trend?: SparkProps;\n /** Media only: the picture of the thing, such as a photo or the first page of a PDF; its symbol stands without one. */\n image?: string;\n /** Media only: the type on the picture's corner, such as `PDF`, or a video's length. */\n kind?: string;\n /** Media only: a quiet symbol at the end of the second line with its name, such as the sharing state. */\n sign?: { icon: string; label: string };\n /** The stable key of the tile, which a selection names; its `href` or title when not set. */\n key?: string;\n /**\n * Cards only: a glance of what the thing holds, across the top of the card above its name: a small table (its\n * columns and first rows, as words), a page (its title and first words), or a sign for a thing that holds nothing yet.\n * It is a picture of the content: assistive technology reads the card by its name. Keep its values short: the app\n * chooses columns and rows whose words fit, at most about 12 characters a cell, so nothing is cut with \"…\" at 1440 or\n * on the phone; leave out what does not fit, such as a book's author. A cut cell reads as cheap. The phone shows a\n * table's first two columns, so a column that matters, such as an amount, comes second.\n */\n preview?: TilePreview;\n};\n\n/** What a card's preview shows: the app gives the words, the card draws them. */\nexport type TilePreview =\n | { table: { columns: readonly TilePreviewColumn[]; rows: readonly (readonly string[])[] }; page?: never; icon?: never }\n | { page: { title: string; text?: string }; table?: never; icon?: never }\n | { icon: string; table?: never; page?: never };\n\n/**\n * A column of a preview's table: its head, or its head and its place. `align: \"end\"` sets the column at the end with\n * figures of one width, for amounts and counts.\n */\nexport type TilePreviewColumn = string | { label: string; align?: \"end\" };\n\nconst columnLabel = (column: TilePreviewColumn) => (typeof column === \"string\" ? column : column.label);\nconst columnAlign = (column: TilePreviewColumn | undefined) =>\n column !== undefined && typeof column !== \"string\" ? column.align : undefined;\n\n/** The columns of a preview's table that the phone's narrow card shows; the rest are marked `data-past`. */\nconst TILE_PREVIEW_PHONE_COLUMNS = 2;\n\nconst TilePreviewView = (props: { preview: TilePreview }) => (\n <div class=\"k2-tile-preview\" aria-hidden=\"true\">\n <Switch>\n <Match when={\"table\" in props.preview && props.preview.table}>\n {(table) => (\n <table class=\"k2-tile-pv-table\">\n <thead>\n <tr>\n <For each={table().columns}>\n {(column, index) => (\n <th data-past={index() >= TILE_PREVIEW_PHONE_COLUMNS ? \"\" : undefined} data-align={columnAlign(column)}>\n {columnLabel(column)}\n </th>\n )}\n </For>\n </tr>\n </thead>\n <tbody>\n <For each={table().rows}>\n {(row) => (\n <tr>\n <For each={row}>\n {(cell, index) => (\n <td\n data-past={index() >= TILE_PREVIEW_PHONE_COLUMNS ? \"\" : undefined}\n data-align={columnAlign(table().columns[index()])}\n >\n {cell}\n </td>\n )}\n </For>\n </tr>\n )}\n </For>\n </tbody>\n </table>\n )}\n </Match>\n <Match when={\"page\" in props.preview && props.preview.page}>\n {(page) => (\n <span class=\"k2-tile-pv-page\">\n <b>{page().title}</b>\n <Show when={page().text}>{(text) => <span>{text()}</span>}</Show>\n </span>\n )}\n </Match>\n <Match when={\"icon\" in props.preview && props.preview.icon}>{(icon) => <Icon name={icon()} />}</Match>\n </Switch>\n </div>\n);\n\n/** The last card, which makes a new thing: a dashed frame, its name, and optional quick choices such as templates. */\nexport type TileCreate = {\n /** What it makes, such as \"Neue Base\". */\n title: string;\n /** A quiet line, such as \"Leer beginnen oder aus einer Vorlage\". */\n meta?: string;\n /** The page that makes it … */\n href?: string;\n /** … or the deed. */\n onClick?: () => void;\n /** Quick choices as round chips, such as the templates \"CRM\" and \"Lager\". */\n choices?: readonly Action[];\n};\n\n/** Like things side by side, such as attachments. Each is pressed, so each is round; never nested. */\nexport type TilesProps = {\n /** The tiles, in order. */\n items: readonly Tile[];\n /**\n * `card`: each thing a card in a grid (at least 240 px a card), with its mark, figures, people and a short history,\n * such as the bases of Grids or the projects of a team. Without it: small tiles in one wrapping line (attachments).\n */\n variant?: \"card\" | \"media\";\n /** The last tile makes a new thing: a dashed card, or among media a dashed picture with a plus (\"Neuer Ordner\"). */\n create?: TileCreate;\n /**\n * Media only: the tiles stand in a selection (pair it with `StatusRow selection`). Each tile has a box on its\n * picture, named by its title; it shows under the pointer, with the focus, on touch, and on every tile while one is\n * selected. A selected tile is tinted blue with a line inside its edge.\n */\n select?: { selected: readonly string[]; onChange: (key: string, selected: boolean) => void };\n /**\n * At most this many tiles share a row and grow with its width, such as the four ways to start a notebook across\n * the page. A tile never gets narrower than 240 px for it: where n do not fit, they stand in rows of half of them\n * (four as 2 × 2, never 3 + 1), and below that one under the other. On the phone a row always holds half of them,\n * even below 240 px a tile. Fewer tiles than n keep the width a tile has in a full row; in a `Pane center` they\n * stand in the middle under its centred line, as a full row does.\n */\n perRow?: number;\n /** One deed after the tiles, such as \"Alle herunterladen\". */\n more?: Action;\n /** A name for the tiles, for assistive technology. */\n label?: string;\n};\n\nconst TileName = (props: { tile: Tile }) => (\n <span class=\"k2-tile-name\">\n {/* a name of one word cannot take a second line without breaking inside it: it stays one line and ends in \"…\" */}\n <span class=\"k2-tile-title\" data-one-word={/\\s/.test(props.tile.title.trim()) ? undefined : \"\"}>\n <RowOpen href={props.tile.href} onNavigate={props.tile.onNavigate} onOpen={props.tile.onOpen}>\n {props.tile.title}\n </RowOpen>\n </span>\n <Show when={props.tile.meta}>\n <span class=\"k2-tile-meta\">{props.tile.meta}</span>\n </Show>\n </span>\n);\n\nconst TileCard = (props: { tile: Tile }) => (\n <div\n class=\"k2-tile\"\n role=\"listitem\"\n data-open={props.tile.href !== undefined || props.tile.onOpen ? \"\" : undefined}\n data-preview={props.tile.preview ? \"\" : undefined}\n style={custom({ \"--k2-c\": props.tile.color })}\n >\n <Show when={props.tile.preview}>{(preview) => <TilePreviewView preview={preview()} />}</Show>\n <span class=\"k2-tile-top\">\n <Mark icon={props.tile.icon} color={props.tile.color} />\n <TileName tile={props.tile} />\n <Show when={props.tile.trend}>{(trend) => <Spark {...trend()} />}</Show>\n </span>\n <Show when={props.tile.stats?.length}>\n <span class=\"k2-tile-stats\">\n <For each={props.tile.stats}>\n {(stat) => (\n <span class=\"k2-tile-stat\" data-status={stat.status} data-yours={stat.yours ? \"\" : undefined}>\n <Show when={stat.icon ?? (stat.status ? statIcon[stat.status] : undefined)}>{(name) => <Icon name={name()} />}</Show>\n {stat.label}\n </span>\n )}\n </For>\n </span>\n </Show>\n <Show when={props.tile.people?.length || props.tile.foot}>\n <span class=\"k2-tile-foot\">\n <Show when={props.tile.people?.length}>\n <Avatar.Stack people={props.tile.people ?? []} />\n </Show>\n <Show when={props.tile.foot}>\n <span class=\"k2-tile-foot-text\">{props.tile.foot}</span>\n </Show>\n </span>\n </Show>\n </div>\n);\n\nconst TileMake = (props: { create: TileCreate }) => (\n <div class=\"k2-tile\" role=\"listitem\" data-create=\"\" data-open={props.create.href !== undefined || props.create.onClick ? \"\" : undefined}>\n <span class=\"k2-tile-top\">\n <Mark icon=\"plus\" />\n <span class=\"k2-tile-name\">\n <span class=\"k2-tile-title\">\n <RowOpen href={props.create.href} onOpen={props.create.onClick}>\n {props.create.title}\n </RowOpen>\n </span>\n <Show when={props.create.meta}>\n <span class=\"k2-tile-meta\">{props.create.meta}</span>\n </Show>\n </span>\n </span>\n <Show when={props.create.choices?.length}>\n <span class=\"k2-tile-choices\">\n <For each={props.create.choices}>\n {(choice) => (\n <Chip href={choice.href} onNavigate={choice.onNavigate} onClick={choice.onClick} icon={choice.icon}>\n {choice.label}\n </Chip>\n )}\n </For>\n </span>\n </Show>\n </div>\n);\n\n/** The place to make a new thing among media: a dashed picture with a plus, then what it makes and a quiet hint. */\nconst TileMakeMedia = (props: { create: TileCreate }) => (\n <div class=\"k2-tile\" role=\"listitem\" data-create=\"\" data-open={props.create.href !== undefined || props.create.onClick ? \"\" : undefined}>\n <span class=\"k2-tile-media\">\n <span class=\"k2-tile-make\">\n <Icon name=\"plus\" />\n </span>\n </span>\n <span class=\"k2-tile-title\" title={props.create.title}>\n <RowOpen href={props.create.href} onOpen={props.create.onClick}>\n {props.create.title}\n </RowOpen>\n </span>\n <Show when={props.create.meta}>\n <span class=\"k2-tile-line\">\n <span class=\"k2-tile-meta\">{props.create.meta}</span>\n </span>\n </Show>\n </div>\n);\n\nconst keyOf = (tile: Tile) => tile.key ?? tile.href ?? tile.title;\n\n/**\n * A photo, a page or a video as a tile in a grid of at least 160 px: its picture 4:3 above its name and a quiet line\n * with its owner, its meta and a sign. The whole tile opens its `href` (or presses `onOpen`); the box on the picture\n * selects it.\n */\nconst TileMedia = (props: { tile: Tile; select?: TilesProps[\"select\"] }) => {\n const title = createUniqueId();\n const selected = () => props.select?.selected.includes(keyOf(props.tile)) ?? false;\n const owner = () => props.tile.people?.[0];\n return (\n <div\n class=\"k2-tile\"\n role=\"listitem\"\n data-open={props.tile.href !== undefined || props.tile.onOpen ? \"\" : undefined}\n data-selected={selected() ? \"\" : undefined}\n >\n <span class=\"k2-tile-media\">\n <Mark icon={props.tile.icon} color={props.tile.color} image={props.tile.image} kind={props.tile.kind} />\n <Show when={props.select}>\n {(select) => (\n <span class=\"k2-tile-check\">\n <MarkCheck labelledBy={title} checked={selected()} onChange={(on) => select().onChange(keyOf(props.tile), on)} />\n </span>\n )}\n </Show>\n </span>\n <span class=\"k2-tile-title\" id={title} title={props.tile.title}>\n <RowOpen href={props.tile.href} onNavigate={props.tile.onNavigate} onOpen={props.tile.onOpen}>\n {props.tile.title}\n </RowOpen>\n </span>\n <span class=\"k2-tile-line\">\n <Show when={owner()}>{(person) => <Avatar {...person()} />}</Show>\n <Show when={props.tile.meta}>\n <span class=\"k2-tile-meta\">{props.tile.meta}</span>\n </Show>\n <Show when={props.tile.sign}>{(sign) => <Icon name={sign().icon} label={sign().label} />}</Show>\n </span>\n </div>\n );\n};\n\n/** How many tiles share a row, a whole number of at least one, and the half (rounded up) they fall back to. */\nconst perRowStyle = (perRow: number) => {\n const count = Math.max(1, Math.floor(perRow));\n return custom({ \"--k2-per-row\": String(count), \"--k2-per-row-half\": String(Math.ceil(count / 2)) });\n};\n\nexport const Tiles = (props: TilesProps) => {\n const t = useOverlayMessages();\n // with the tile that makes a new one: fewer than a row stand together (`data-short`)\n const tiles = () => props.items.length + (props.create ? 1 : 0);\n return (\n <div\n class=\"k2-tiles\"\n data-k2-part=\"Tiles\"\n data-variant={props.variant}\n data-selecting={props.select && props.select.selected.length > 0 ? \"\" : undefined}\n data-per-row={props.perRow ? \"\" : undefined}\n data-short={props.perRow && tiles() < Math.floor(props.perRow) ? \"\" : undefined}\n style={props.perRow ? perRowStyle(props.perRow) : undefined}\n role=\"list\"\n aria-label={props.label}\n >\n <Show when={props.variant === \"media\"}>\n <For each={props.items}>{(tile) => <TileMedia tile={tile} select={props.select} />}</For>\n <Show when={props.create}>{(create) => <TileMakeMedia create={create()} />}</Show>\n </Show>\n <Show\n when={props.variant === \"card\"}\n fallback={\n <For each={props.variant === undefined ? props.items : []}>\n {(tile) => (\n <div class=\"k2-tile\" role=\"listitem\" data-open={tile.href !== undefined || tile.onOpen ? \"\" : undefined}>\n <Show when={tile.color} fallback={<Icon name={tile.icon} />}>\n {(color) => <Mark icon={tile.icon} color={color()} />}\n </Show>\n <TileName tile={tile} />\n <Show when={tile.copy || tile.menu}>\n <span class=\"k2-tile-end\">\n <Show when={tile.copy}>{(copy) => <CopyButton label={copy().label} value={copy().value} />}</Show>\n <Show when={tile.menu}>{(items) => <Menu label={`${t().moreActions}: ${tile.title}`} items={items()} />}</Show>\n </span>\n </Show>\n </div>\n )}\n </For>\n }\n >\n <For each={props.items}>{(tile) => <TileCard tile={tile} />}</For>\n <Show when={props.create}>{(create) => <TileMake create={create()} />}</Show>\n </Show>\n <Show when={props.more}>{(more) => <ActionButton action={more()} variant=\"text\" />}</Show>\n </div>\n );\n};\n\n// ── Canvas ───────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport type CanvasProps = {\n /** What the drawing shows, for assistive technology. */\n label: string;\n /**\n * The height of the drawing in px; the width comes from its place. `\"fill\"`: the drawing is the whole pane (an\n * editor, a frame of another page, a map that is the page). It stands directly in its `Pane` and takes the height\n * the pane has left under what stands above it, from the first render on, so nothing is measured and nothing moves;\n * it scrolls itself, and below 240 px the pane scrolls instead. It asks its pane for those 240 px only, never for\n * what the drawing holds: one drawing that asks for no height of its own takes the whole height, and what is taller\n * scrolls inside it. Give it one child, the drawing: a second child stands in a row of its own under the first and\n * is cut away.\n */\n height?: number | \"fill\";\n /** The drawing: an SVG, a map, a chart of `@k2b/ui`; inside it, CSS is free. */\n children: JSX.Element;\n};\n\n/**\n * The one way out: a surface with its own drawing, where an app may write its own CSS. Never measured by the rules.\n * It draws no line of its own; the structure around it separates it, and a drawing that needs an edge draws it.\n * While the drawing loads, has no data or fails, `Loading`, `Empty` or `Failed` stand inside it and keep its height.\n */\nexport const Canvas = (props: CanvasProps) => (\n <div\n class=\"k2-canvas\"\n data-k2-part=\"Canvas\"\n data-k2-canvas=\"\"\n role=\"group\"\n aria-label={props.label}\n data-height={props.height !== undefined ? \"\" : undefined}\n data-fill={props.height === \"fill\" ? \"\" : undefined}\n style={custom({ \"--k2-canvas-h\": typeof props.height === \"number\" ? `${props.height}px` : undefined })}\n >\n {props.children}\n </div>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAEE,aAAa,EACb,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,GAAG,EAEH,KAAK,EACL,EAAE,EACF,SAAS,EACT,OAAO,EACP,QAAQ,IAAI,eAAe,EAC3B,IAAI,EACJ,MAAM,EACN,UAA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ACA;AACA,OAAO,MAAM,MAAM,GAAI,KAAkB;EAAA;EAAA,wBAWpC,KAAK,CAAC,QAAQ;EAAA;IAAA,YALH,KAAK,CAAC,KAAK;MAAA,QACV,KAAK,CAAC,MAAM,KAAK,SAAS,GAAG,EAAE,GAAG,SAAS;MAAA,QAC7C,KAAK,CAAC,MAAM,KAAK,MAAM,GAAG,EAAE,GAAG,SAAS;MAAA,QAC5C,MAAM,CAAC;QAAE,eAAe,EAAE,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,GAAG,GAAG,KAAK,CAAC,MAAM,IAAI,GAAG;MAAU,CAAC,CAAC;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;AAAA,IAIzG;AAAC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { Link } from "@k2b/ssr/nav";
2
+
3
+ /**
4
+ * The element of something pressable (internal): a link renders `@k2b/ssr/nav`'s `Link`, so `onNavigate` follows its
5
+ * one contract (plain same-origin clicks only, a pending page swap cancelled, history through the event); anything
6
+ * else renders the given element.
7
+ */
8
+ export const linkOr = (href, otherwise) => href !== undefined ? Link : otherwise;
9
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["v2/link.ts"],"sourcesContent":["import { Link } from \"@k2b/ssr/nav\";\n\n/**\n * The element of something pressable (internal): a link renders `@k2b/ssr/nav`'s `Link`, so `onNavigate` follows its\n * one contract (plain same-origin clicks only, a pending page swap cancelled, history through the event); anything\n * else renders the given element.\n */\nexport const linkOr = <const T extends \"a\" | \"button\" | \"span\">(href: string | undefined, otherwise: T): typeof Link | T =>\n href !== undefined ? Link : otherwise;\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,cAAc;;AAEnC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,MAAM,GAAG,CAA0C,IAAwB,EAAE,SAAY,KACpG,IAAI,KAAK,SAAS,GAAG,IAAI,GAAG,SAAS","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ import { template as _$template } from "solid-js/web";
2
+ import { getNextMarker as _$getNextMarker } from "solid-js/web";
3
+ import { createComponent as _$createComponent } from "solid-js/web";
4
+ import { getNextElement as _$getNextElement } from "solid-js/web";
5
+ import { insert as _$insert } from "solid-js/web";
6
+ import { memo as _$memo } from "solid-js/web";
7
+ var _tmpl$ = /*#__PURE__*/_$template(`<span class=k2-list-group-count>`),
8
+ _tmpl$2 = /*#__PURE__*/_$template(`<div class=k2-list-group data-k2-part=ListGroup role=listitem><!$><!/><!$><!/><!$><!/>`);
9
+ import { Show } from "solid-js";
10
+ import { useLocale } from "../intl/locale";
11
+ import { ActionButton } from "./button";
12
+ /**
13
+ * A group inside one `List`, over its rows: a head in the row's type with its count quiet beside it, such as "Heute 20"
14
+ * over today's entries of an activity, or "Personen 14" over the people of a group, with the clear line and more air
15
+ * above it than a row has, and no line under it. For
16
+ * a long list in parts of one kind; parts read on their own are `Section`s, the groups of a table its `group`. A
17
+ * module of its own, so a list without groups loads none of it.
18
+ */
19
+ export const ListGroup = props => {
20
+ const locale = useLocale();
21
+ return (() => {
22
+ var _el$ = _$getNextElement(_tmpl$2),
23
+ _el$3 = _el$.firstChild,
24
+ [_el$4, _co$] = _$getNextMarker(_el$3.nextSibling),
25
+ _el$5 = _el$4.nextSibling,
26
+ [_el$6, _co$2] = _$getNextMarker(_el$5.nextSibling),
27
+ _el$7 = _el$6.nextSibling,
28
+ [_el$8, _co$3] = _$getNextMarker(_el$7.nextSibling);
29
+ _$insert(_el$, () => props.label, _el$4, _co$);
30
+ _$insert(_el$, _$createComponent(Show, {
31
+ get when() {
32
+ return props.count !== undefined;
33
+ },
34
+ get children() {
35
+ var _el$2 = _$getNextElement(_tmpl$);
36
+ _$insert(_el$2, (() => {
37
+ var _c$ = _$memo(() => typeof props.count === "number");
38
+ return () => _c$() ? props.count.toLocaleString(locale()) : props.count;
39
+ })());
40
+ return _el$2;
41
+ }
42
+ }), _el$6, _co$2);
43
+ _$insert(_el$, _$createComponent(Show, {
44
+ get when() {
45
+ return props.action;
46
+ },
47
+ children: action => _$createComponent(ActionButton, {
48
+ get action() {
49
+ return action();
50
+ },
51
+ variant: "text"
52
+ })
53
+ }), _el$8, _co$3);
54
+ return _el$;
55
+ })();
56
+ };
57
+ //# sourceMappingURL=list-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["v2/list-group.tsx"],"sourcesContent":["import { Show } from \"solid-js\";\nimport { useLocale } from \"../intl/locale\";\nimport { ActionButton } from \"./button\";\nimport type { Action } from \"./types\";\n\nexport type ListGroupProps = {\n /** The group's name, such as \"Heute\". */\n label: string;\n /** How many rows it holds: a number in the page's language and in full (1.284), words such as \"99+\" as given. */\n count?: number | string;\n /** One quiet text action after the name and count; the group head owns its size. */\n action?: Action;\n};\n\n/**\n * A group inside one `List`, over its rows: a head in the row's type with its count quiet beside it, such as \"Heute 20\"\n * over today's entries of an activity, or \"Personen 14\" over the people of a group, with the clear line and more air\n * above it than a row has, and no line under it. For\n * a long list in parts of one kind; parts read on their own are `Section`s, the groups of a table its `group`. A\n * module of its own, so a list without groups loads none of it.\n */\nexport const ListGroup = (props: ListGroupProps) => {\n const locale = useLocale();\n return (\n <div class=\"k2-list-group\" data-k2-part=\"ListGroup\" role=\"listitem\">\n {props.label}\n <Show when={props.count !== undefined}>\n <span class=\"k2-list-group-count\">{typeof props.count === \"number\" ? props.count.toLocaleString(locale()) : props.count}</span>\n </Show>\n <Show when={props.action}>{(action) => <ActionButton action={action()} variant=\"text\" />}</Show>\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAAA,SAAS,IAAI,QAAQ,UAAU;AAC/B,SAAS,SAAS,QAAQ,gBAAgB;AAC1C,SAAS,YAAY,QAAQ,UAAU;AAYvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,SAAS,GAAI,KAAqB,IAAK;EAClD,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B;IAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA,qBAEK,KAAK,CAAC,KAAK;IAAA,iCACX,IAAI;MAAA,IAAC,IAAI;QAAA,OAAE,KAAK,CAAC,KAAK,KAAK,SAAS;MAAA;MAAA;QAAA;QAAA;UAAA,uBACA,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ;UAAA,aAA/B,QAAkC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK;QAAA;QAAA;MAAA;IAAA;IAAA,iCAExH,IAAI;MAAA,IAAC,IAAI;QAAA,OAAE,KAAK,CAAC,MAAM;MAAA;MAAA,UAAI,MAAM,sBAAM,YAAY;QAAA,IAAC,MAAM;UAAA,OAAE,MAAM,CAAC,CAAC;QAAA;QAAE,OAAO;MAAA;IAAU;IAAA;EAAA;AAG9F,CAAC","ignoreList":[]}