viewkitjs 0.27.0 → 0.29.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 (469) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/MIGRATION.md +123 -5
  3. package/fields/dist/derived.d.ts +2 -1
  4. package/fields/dist/derived.js +9 -3
  5. package/fields/dist/entities.js +41 -3
  6. package/fields/dist/index.d.ts +1 -1
  7. package/fields/dist/index.js +1 -1
  8. package/fields/dist/messages.d.ts +8 -2
  9. package/fields/dist/messages.js +3 -0
  10. package/fields/dist/range.d.ts +6 -0
  11. package/fields/dist/range.js +8 -0
  12. package/fields/dist/registry.js +11 -1
  13. package/fields/dist/spec-changes.js +1 -0
  14. package/fields/dist/types.d.ts +23 -1
  15. package/fields/docs/guides/derived-fields.md +7 -5
  16. package/fields/docs/guides/field-types.md +2 -2
  17. package/fields/docs/guides/the-index.md +1 -1
  18. package/fields/docs/reference/fields.md +3 -1
  19. package/fields/docs/reference/types.md +3 -1
  20. package/fields/skills/viewkit/SKILL.md +1 -1
  21. package/package.json +2 -1
  22. package/postgres/dist/definitions/build.js +29 -5
  23. package/postgres/dist/definitions/label.d.ts +7 -0
  24. package/postgres/dist/definitions/label.js +9 -1
  25. package/postgres/dist/definitions/lookup.js +6 -2
  26. package/postgres/dist/definitions/place.d.ts +6 -3
  27. package/postgres/dist/definitions/rollup.js +5 -1
  28. package/postgres/dist/definitions/storage.d.ts +15 -0
  29. package/postgres/dist/definitions/storage.js +52 -1
  30. package/postgres/dist/definitions/stored.js +21 -0
  31. package/postgres/dist/phone.d.ts +13 -1
  32. package/postgres/dist/phone.js +23 -3
  33. package/postgres/dist/search-indexes.d.ts +6 -1
  34. package/postgres/dist/search-indexes.js +71 -25
  35. package/postgres/dist/search.js +3 -3
  36. package/postgres/docs/guides/definitions.md +22 -5
  37. package/postgres/docs/guides/field-map.md +5 -4
  38. package/postgres/docs/reference/definitions.md +3 -3
  39. package/postgres/docs/reference/postgres.md +1 -1
  40. package/views/dist/cells/cell-format.d.ts +3 -1
  41. package/views/dist/cells/cell-format.js +3 -3
  42. package/views/dist/cells/cell-values.js +9 -10
  43. package/views/dist/cells/use-cell-format.d.ts +8 -1
  44. package/views/dist/cells/use-cell-format.js +13 -2
  45. package/views/dist/contract.d.ts +218 -5
  46. package/views/dist/contract.js +233 -1
  47. package/views/dist/controls/alert/alert.d.ts +46 -0
  48. package/views/dist/controls/alert/alert.js +11 -0
  49. package/views/dist/controls/alert/looks.d.ts +4 -0
  50. package/views/dist/controls/alert/looks.js +19 -0
  51. package/views/dist/controls/alert/tokens.d.ts +92 -0
  52. package/views/dist/controls/alert/tokens.js +25 -0
  53. package/views/dist/controls/alert-dialog/alert-dialog.d.ts +50 -0
  54. package/views/dist/controls/alert-dialog/alert-dialog.js +67 -0
  55. package/views/dist/controls/alert-dialog/confirm.d.ts +13 -0
  56. package/views/dist/controls/alert-dialog/confirm.js +11 -0
  57. package/views/dist/controls/alert-dialog/looks.d.ts +4 -0
  58. package/views/dist/controls/alert-dialog/looks.js +17 -0
  59. package/views/dist/controls/alert-dialog/tokens.d.ts +119 -0
  60. package/views/dist/controls/alert-dialog/tokens.js +32 -0
  61. package/views/dist/controls/alert-dialog.css +95 -0
  62. package/views/dist/controls/alert.css +51 -0
  63. package/views/dist/controls/bulk-bar/bulk-bar-of.d.ts +66 -0
  64. package/views/dist/controls/bulk-bar/bulk-bar-of.js +22 -0
  65. package/views/dist/controls/bulk-bar/bulk-bar.d.ts +40 -0
  66. package/views/dist/controls/bulk-bar/bulk-bar.js +278 -0
  67. package/views/dist/controls/bulk-bar/looks.d.ts +10 -0
  68. package/views/dist/controls/bulk-bar/looks.js +14 -0
  69. package/views/dist/controls/bulk-bar/map-selection-bar.d.ts +19 -0
  70. package/views/dist/controls/bulk-bar/map-selection-bar.js +57 -0
  71. package/views/dist/controls/bulk-bar/tokens.d.ts +136 -0
  72. package/views/dist/controls/bulk-bar/tokens.js +36 -0
  73. package/views/dist/controls/bulk-bar/words.d.ts +50 -0
  74. package/views/dist/controls/bulk-bar/words.js +19 -0
  75. package/views/dist/controls/bulk-bar.css +96 -0
  76. package/views/dist/controls/button/button.js +3 -1
  77. package/views/dist/controls/button.css +5 -4
  78. package/views/dist/controls/checkbox/checkbox.js +3 -1
  79. package/views/dist/controls/checkbox.css +1 -1
  80. package/views/dist/controls/choice/tokens.d.ts +79 -0
  81. package/views/dist/controls/choice/tokens.js +22 -0
  82. package/views/dist/controls/choice.css +31 -0
  83. package/views/dist/controls/collapsible/collapsible.d.ts +39 -0
  84. package/views/dist/controls/collapsible/collapsible.js +18 -0
  85. package/views/dist/controls/collapsible/looks.d.ts +4 -0
  86. package/views/dist/controls/collapsible/looks.js +5 -0
  87. package/views/dist/controls/collapsible/map-collapse.d.ts +2 -0
  88. package/views/dist/controls/collapsible/map-collapse.js +6 -0
  89. package/views/dist/controls/collapsible/tokens.d.ts +68 -0
  90. package/views/dist/controls/collapsible/tokens.js +19 -0
  91. package/views/dist/controls/collapsible.css +83 -0
  92. package/views/dist/controls/compound-editor/looks.js +1 -1
  93. package/views/dist/controls/compound-editor/place-parts.js +5 -1
  94. package/views/dist/controls/controls.d.ts +19 -0
  95. package/views/dist/controls/controls.js +17 -0
  96. package/views/dist/controls/customize/customize.d.ts +125 -0
  97. package/views/dist/controls/customize/customize.js +243 -0
  98. package/views/dist/controls/customize/glide.d.ts +10 -0
  99. package/views/dist/controls/customize/glide.js +55 -0
  100. package/views/dist/controls/customize/looks.d.ts +13 -0
  101. package/views/dist/controls/customize/looks.js +11 -0
  102. package/views/dist/controls/customize/map-customize-body.d.ts +18 -0
  103. package/views/dist/controls/customize/map-customize-body.js +160 -0
  104. package/views/dist/controls/customize/rules.d.ts +23 -0
  105. package/views/dist/controls/customize/rules.js +19 -0
  106. package/views/dist/controls/customize/tokens.d.ts +40 -0
  107. package/views/dist/controls/customize/tokens.js +12 -0
  108. package/views/dist/controls/customize/words.d.ts +58 -0
  109. package/views/dist/controls/customize/words.js +37 -0
  110. package/views/dist/controls/customize.css +54 -0
  111. package/views/dist/controls/date-editor/date-editor.d.ts +2 -1
  112. package/views/dist/controls/date-editor/looks.js +1 -1
  113. package/views/dist/controls/date-editor/map-calendar.js +3 -1
  114. package/views/dist/controls/filter-editor/block.d.ts +31 -0
  115. package/views/dist/controls/filter-editor/block.js +27 -0
  116. package/views/dist/controls/filter-editor/filter-editor.d.ts +58 -0
  117. package/views/dist/controls/filter-editor/filter-editor.js +250 -0
  118. package/views/dist/controls/filter-editor/how.d.ts +23 -0
  119. package/views/dist/controls/filter-editor/how.js +14 -0
  120. package/views/dist/controls/filter-editor/map-filter-body.d.ts +33 -0
  121. package/views/dist/controls/filter-editor/map-filter-body.js +190 -0
  122. package/views/dist/controls/filter-editor/map-rules.d.ts +101 -0
  123. package/views/dist/controls/filter-editor/map-rules.js +304 -0
  124. package/views/dist/controls/filter-editor/parts.d.ts +46 -0
  125. package/views/dist/controls/filter-editor/parts.js +75 -0
  126. package/views/dist/controls/filter-editor/rules.d.ts +142 -0
  127. package/views/dist/controls/filter-editor/rules.js +201 -0
  128. package/views/dist/controls/filter-editor/tokens.d.ts +83 -0
  129. package/views/dist/controls/filter-editor/tokens.js +23 -0
  130. package/views/dist/controls/filter-editor/words.d.ts +74 -0
  131. package/views/dist/controls/filter-editor/words.js +46 -0
  132. package/views/dist/controls/filter-editor.css +142 -0
  133. package/views/dist/controls/group-editor/group-editor.d.ts +56 -0
  134. package/views/dist/controls/group-editor/group-editor.js +126 -0
  135. package/views/dist/controls/group-editor/map-group-body.d.ts +19 -0
  136. package/views/dist/controls/group-editor/map-group-body.js +106 -0
  137. package/views/dist/controls/group-editor/rules.d.ts +48 -0
  138. package/views/dist/controls/group-editor/rules.js +41 -0
  139. package/views/dist/controls/group-editor/tokens.d.ts +15 -0
  140. package/views/dist/controls/group-editor/tokens.js +6 -0
  141. package/views/dist/controls/group-editor/words.d.ts +39 -0
  142. package/views/dist/controls/group-editor/words.js +21 -0
  143. package/views/dist/controls/group-editor.css +20 -0
  144. package/views/dist/controls/index.d.ts +45 -3
  145. package/views/dist/controls/index.js +44 -3
  146. package/views/dist/controls/inline-input/looks.js +1 -1
  147. package/views/dist/controls/input/input.js +10 -4
  148. package/views/dist/controls/internal/editor-parts.d.ts +8 -1
  149. package/views/dist/controls/internal/editor-parts.js +5 -0
  150. package/views/dist/controls/internal/phone.d.ts +5 -4
  151. package/views/dist/controls/internal/phone.js +7 -7
  152. package/views/dist/controls/internal/scroll.js +5 -1
  153. package/views/dist/controls/internal/step-return.d.ts +9 -0
  154. package/views/dist/controls/internal/step-return.js +27 -0
  155. package/views/dist/controls/internal/typed-run.d.ts +2 -0
  156. package/views/dist/controls/internal/typed-run.js +5 -0
  157. package/views/dist/controls/links-editor/links-editor.d.ts +5 -3
  158. package/views/dist/controls/links-editor/links-editor.js +38 -17
  159. package/views/dist/controls/links-editor/map-links-body.js +4 -1
  160. package/views/dist/controls/links-editor.css +1 -1
  161. package/views/dist/controls/menu/map-menu.js +2 -2
  162. package/views/dist/controls/menu-list/menu-list.d.ts +17 -2
  163. package/views/dist/controls/menu-list/menu-list.js +25 -16
  164. package/views/dist/controls/modal/looks.d.ts +4 -0
  165. package/views/dist/controls/modal/looks.js +25 -0
  166. package/views/dist/controls/modal/modal.d.ts +69 -0
  167. package/views/dist/controls/modal/modal.js +62 -0
  168. package/views/dist/controls/modal/tokens.d.ts +192 -0
  169. package/views/dist/controls/modal/tokens.js +50 -0
  170. package/views/dist/controls/modal.css +130 -0
  171. package/views/dist/controls/notice/notice.d.ts +49 -0
  172. package/views/dist/controls/notice/notice.js +35 -0
  173. package/views/dist/controls/notice/tokens.d.ts +99 -0
  174. package/views/dist/controls/notice/tokens.js +27 -0
  175. package/views/dist/controls/notice.css +100 -0
  176. package/views/dist/controls/number-editor/looks.js +1 -1
  177. package/views/dist/controls/number-editor/number-editor.js +1 -1
  178. package/views/dist/controls/option/option.js +3 -1
  179. package/views/dist/controls/option.css +1 -1
  180. package/views/dist/controls/pane/looks.d.ts +4 -0
  181. package/views/dist/controls/pane/looks.js +11 -0
  182. package/views/dist/controls/pane/pane.d.ts +67 -0
  183. package/views/dist/controls/pane/pane.js +99 -0
  184. package/views/dist/controls/pane/state.d.ts +14 -0
  185. package/views/dist/controls/pane/state.js +7 -0
  186. package/views/dist/controls/pane/tokens.d.ts +79 -0
  187. package/views/dist/controls/pane/tokens.js +22 -0
  188. package/views/dist/controls/pane.css +104 -0
  189. package/views/dist/controls/picker/looks.js +1 -1
  190. package/views/dist/controls/picker/map-picker.d.ts +6 -2
  191. package/views/dist/controls/picker/map-picker.js +4 -2
  192. package/views/dist/controls/picker/picker.d.ts +7 -0
  193. package/views/dist/controls/picker/picker.js +57 -8
  194. package/views/dist/controls/picker/rows.d.ts +4 -2
  195. package/views/dist/controls/picker/rows.js +4 -3
  196. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  197. package/views/dist/controls/popover/map-popover.js +2 -2
  198. package/views/dist/controls/popover/popover.js +2 -1
  199. package/views/dist/controls/popover.css +3 -0
  200. package/views/dist/controls/ports-host/map-ports-host.d.ts +7 -0
  201. package/views/dist/controls/ports-host/map-ports-host.js +43 -0
  202. package/views/dist/controls/press/tokens.d.ts +8 -0
  203. package/views/dist/controls/press/tokens.js +4 -0
  204. package/views/dist/controls/press.css +44 -0
  205. package/views/dist/controls/quick-filters/looks.d.ts +11 -0
  206. package/views/dist/controls/quick-filters/looks.js +9 -0
  207. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +31 -0
  208. package/views/dist/controls/quick-filters/map-quick-filters-body.js +56 -0
  209. package/views/dist/controls/quick-filters/quick-filters.d.ts +37 -0
  210. package/views/dist/controls/quick-filters/quick-filters.js +89 -0
  211. package/views/dist/controls/quick-filters/reminder.d.ts +18 -0
  212. package/views/dist/controls/quick-filters/reminder.js +41 -0
  213. package/views/dist/controls/quick-filters/rules.d.ts +89 -0
  214. package/views/dist/controls/quick-filters/rules.js +52 -0
  215. package/views/dist/controls/quick-filters/tokens.d.ts +112 -0
  216. package/views/dist/controls/quick-filters/tokens.js +30 -0
  217. package/views/dist/controls/quick-filters/words.d.ts +25 -0
  218. package/views/dist/controls/quick-filters/words.js +13 -0
  219. package/views/dist/controls/quick-filters.css +118 -0
  220. package/views/dist/controls/sheet/bottom-sheet.d.ts +9 -4
  221. package/views/dist/controls/sheet/bottom-sheet.js +4 -4
  222. package/views/dist/controls/sheet/map-sheet.d.ts +4 -1
  223. package/views/dist/controls/sheet/map-sheet.js +19 -6
  224. package/views/dist/controls/sheet/sheet-parts.d.ts +10 -0
  225. package/views/dist/controls/sheet/sheet-parts.js +2 -0
  226. package/views/dist/controls/sort-editor/map-sort-body.d.ts +9 -0
  227. package/views/dist/controls/sort-editor/map-sort-body.js +81 -0
  228. package/views/dist/controls/sort-editor/rules.d.ts +48 -0
  229. package/views/dist/controls/sort-editor/rules.js +24 -0
  230. package/views/dist/controls/sort-editor/sort-editor.d.ts +58 -0
  231. package/views/dist/controls/sort-editor/sort-editor.js +180 -0
  232. package/views/dist/controls/sort-editor/tokens.d.ts +79 -0
  233. package/views/dist/controls/sort-editor/tokens.js +22 -0
  234. package/views/dist/controls/sort-editor/words.d.ts +48 -0
  235. package/views/dist/controls/sort-editor/words.js +25 -0
  236. package/views/dist/controls/sort-editor.css +96 -0
  237. package/views/dist/controls/switch-row/switch-row.d.ts +15 -0
  238. package/views/dist/controls/switch-row/switch-row.js +9 -0
  239. package/views/dist/controls/switch-row/tokens.d.ts +51 -0
  240. package/views/dist/controls/switch-row/tokens.js +15 -0
  241. package/views/dist/controls/switch-row.css +39 -0
  242. package/views/dist/controls/switch.css +1 -1
  243. package/views/dist/controls/tag/tag.js +3 -1
  244. package/views/dist/controls/tag-field/tag-field.d.ts +20 -0
  245. package/views/dist/controls/tag-field/tag-field.js +19 -0
  246. package/views/dist/controls/tag-field/tokens.d.ts +7 -0
  247. package/views/dist/controls/tag-field/tokens.js +4 -0
  248. package/views/dist/controls/tag-field.css +13 -0
  249. package/views/dist/controls/text-editor/looks.js +1 -1
  250. package/views/dist/controls/text-editor/text-editor.js +1 -5
  251. package/views/dist/controls/toast/toast.d.ts +79 -0
  252. package/views/dist/controls/toast/toast.js +101 -0
  253. package/views/dist/controls/toast/tokens.d.ts +100 -0
  254. package/views/dist/controls/toast/tokens.js +27 -0
  255. package/views/dist/controls/toast.css +93 -0
  256. package/views/dist/controls/tokens.js +38 -0
  257. package/views/dist/controls/toolbar/keys.d.ts +3 -0
  258. package/views/dist/controls/toolbar/keys.js +11 -0
  259. package/views/dist/controls/toolbar/looks.d.ts +10 -0
  260. package/views/dist/controls/toolbar/looks.js +40 -0
  261. package/views/dist/controls/toolbar/tokens.d.ts +28 -0
  262. package/views/dist/controls/toolbar/tokens.js +9 -0
  263. package/views/dist/controls/toolbar/toolbar.d.ts +111 -0
  264. package/views/dist/controls/toolbar/toolbar.js +370 -0
  265. package/views/dist/controls/toolbar/words.d.ts +28 -0
  266. package/views/dist/controls/toolbar/words.js +17 -0
  267. package/views/dist/controls/toolbar-button/looks.d.ts +4 -0
  268. package/views/dist/controls/toolbar-button/looks.js +21 -0
  269. package/views/dist/controls/toolbar-button/tokens.d.ts +103 -0
  270. package/views/dist/controls/toolbar-button/tokens.js +28 -0
  271. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +66 -0
  272. package/views/dist/controls/toolbar-button/toolbar-button.js +51 -0
  273. package/views/dist/controls/toolbar-button.css +75 -0
  274. package/views/dist/controls/toolbar.css +65 -0
  275. package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
  276. package/views/dist/controls/tooltip/map-tooltip.js +2 -2
  277. package/views/dist/controls/tooltip/tooltip.d.ts +3 -1
  278. package/views/dist/controls/tooltip/tooltip.js +2 -2
  279. package/views/dist/controls/values-editor/looks.js +1 -1
  280. package/views/dist/controls/values-editor/values-editor.js +7 -1
  281. package/views/dist/controls/views-list/map-views-list-body.d.ts +4 -1
  282. package/views/dist/controls/views-list/map-views-list-body.js +128 -4
  283. package/views/dist/controls/views-list/rules.d.ts +26 -0
  284. package/views/dist/controls/views-list/rules.js +63 -0
  285. package/views/dist/controls/views-list/view-menu.d.ts +84 -0
  286. package/views/dist/controls/views-list/view-menu.js +201 -0
  287. package/views/dist/controls/views-list/views-list.d.ts +8 -1
  288. package/views/dist/controls/views-list/views-list.js +18 -3
  289. package/views/dist/controls/views-list/words.d.ts +54 -0
  290. package/views/dist/controls/views-list/words.js +10 -1
  291. package/views/dist/controls/views-list.css +5 -1
  292. package/views/dist/display/date.js +5 -5
  293. package/views/dist/display/format.d.ts +6 -0
  294. package/views/dist/display/format.js +13 -2
  295. package/views/dist/display/index.d.ts +1 -1
  296. package/views/dist/display/index.js +1 -1
  297. package/views/dist/display/options.d.ts +3 -1
  298. package/views/dist/display/range.d.ts +2 -1
  299. package/views/dist/display/range.js +4 -1
  300. package/views/dist/display/use-display-options.d.ts +3 -0
  301. package/views/dist/display/use-display-options.js +10 -2
  302. package/views/dist/display/viewer.d.ts +1 -1
  303. package/views/dist/display/viewer.js +1 -1
  304. package/views/dist/editors/DateEditor.js +11 -9
  305. package/views/dist/editors/relation-panel.js +7 -1
  306. package/views/dist/editors/relation-picker.d.ts +2 -1
  307. package/views/dist/editors/relation-picker.js +4 -3
  308. package/views/dist/editors/relation-source.d.ts +4 -1
  309. package/views/dist/editors/relation-source.js +5 -2
  310. package/views/dist/field-row/editors/RowNumberEditor.js +2 -2
  311. package/views/dist/fields/number-edit.d.ts +6 -0
  312. package/views/dist/fields/number-edit.js +8 -1
  313. package/views/dist/grid/chrome/GridCellEditors.js +2 -2
  314. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +4 -3
  315. package/views/dist/grid/chrome/GridColumnDateSection.js +4 -4
  316. package/views/dist/grid/chrome/GridColumnDurationSection.js +2 -2
  317. package/views/dist/grid/chrome/GridColumnMenu.js +6 -4
  318. package/views/dist/grid/chrome/GridFooter.js +2 -2
  319. package/views/dist/grid/chrome/GridHeader.js +2 -1
  320. package/views/dist/grid/chrome/GridNumberEditor.js +2 -2
  321. package/views/dist/grid/chrome/GridRowCells.js +2 -1
  322. package/views/dist/grid/chrome/GridTextEditor.js +2 -2
  323. package/views/dist/grid/chrome/grid-column-menu-items.js +4 -2
  324. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -1
  325. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  326. package/views/dist/grid/chrome/grid-fitted-box.d.ts +7 -1
  327. package/views/dist/grid/chrome/grid-fitted-box.js +4 -4
  328. package/views/dist/grid/chrome/useGridBandFigures.js +2 -2
  329. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
  330. package/views/dist/grid/chrome/useGridFittedWidths.js +9 -3
  331. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
  332. package/views/dist/grid/chrome/useGridKeyboard.js +5 -2
  333. package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -1
  334. package/views/dist/grid/core/clipboard-model.js +9 -4
  335. package/views/dist/grid/core/commit-model.d.ts +7 -0
  336. package/views/dist/grid/core/commit-model.js +5 -1
  337. package/views/dist/grid/core/editing-controller.js +10 -2
  338. package/views/dist/grid/core/editing-model.js +3 -7
  339. package/views/dist/grid/core/undo-owner.d.ts +6 -0
  340. package/views/dist/grid/core/undo-owner.js +13 -0
  341. package/views/dist/grid/core/useGridEditing.d.ts +2 -0
  342. package/views/dist/grid/core/useGridEditing.js +4 -0
  343. package/views/dist/grid/grid.css +240 -0
  344. package/views/dist/grid/looks.d.ts +5 -1
  345. package/views/dist/grid/looks.js +20 -12
  346. package/views/dist/grid-tokens.d.ts +109 -0
  347. package/views/dist/grid-tokens.js +29 -0
  348. package/views/dist/looks/index.d.ts +10 -0
  349. package/views/dist/looks/index.js +10 -0
  350. package/views/dist/looks/pieces.js +20 -0
  351. package/views/dist/model/column-capabilities.d.ts +2 -0
  352. package/views/dist/model/column-filters.d.ts +2 -1
  353. package/views/dist/model/column-from.js +2 -2
  354. package/views/dist/model/relation-filters.d.ts +2 -0
  355. package/views/dist/panels/index.d.ts +2 -2
  356. package/views/dist/panels/index.js +2 -2
  357. package/views/dist/panels/labels.d.ts +4 -0
  358. package/views/dist/panels/labels.js +8 -0
  359. package/views/dist/panels/model.d.ts +14 -1
  360. package/views/dist/panels/quick/model.d.ts +4 -0
  361. package/views/dist/panels/react/customize-body.d.ts +12 -5
  362. package/views/dist/panels/react/customize-body.js +41 -13
  363. package/views/dist/panels/react/customize.d.ts +8 -1
  364. package/views/dist/panels/react/customize.js +11 -6
  365. package/views/dist/panels/react/filter/FilterEditor.js +6 -6
  366. package/views/dist/panels/react/filter/FilterFieldList.js +10 -2
  367. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +8 -2
  368. package/views/dist/panels/react/filter/PhoneFilterEditor.js +12 -9
  369. package/views/dist/panels/react/filter/filter-body.d.ts +8 -5
  370. package/views/dist/panels/react/filter/filter-body.js +21 -7
  371. package/views/dist/panels/react/filter/filter-part-body.d.ts +4 -1
  372. package/views/dist/panels/react/filter/filter-part-body.js +3 -1
  373. package/views/dist/panels/react/panel-sheet.d.ts +5 -1
  374. package/views/dist/panels/react/panel-sheet.js +6 -2
  375. package/views/dist/panels/react/panel-step.d.ts +15 -0
  376. package/views/dist/panels/react/panel-step.js +27 -0
  377. package/views/dist/panels/react/quick/QuickFiltersPanel.js +1 -0
  378. package/views/dist/panels/react/sort/SortEditor.d.ts +4 -0
  379. package/views/dist/panels/react/sort/SortEditor.js +5 -2
  380. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +18 -0
  381. package/views/dist/panels/react/toolbar/ReadyToolbar.js +93 -4
  382. package/views/dist/panels/react/toolbar/Toolbar.js +1 -1
  383. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  384. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +15 -5
  385. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +16 -0
  386. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +50 -0
  387. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +3 -1
  388. package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +4 -1
  389. package/views/dist/panels/react/toolbar/ToolbarFilters.js +38 -23
  390. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +12 -4
  391. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -2
  392. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +4 -1
  393. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +2 -2
  394. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
  395. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +15 -6
  396. package/views/dist/panels/react/toolbar/panel-part.d.ts +5 -1
  397. package/views/dist/panels/react/toolbar/panel-part.js +2 -2
  398. package/views/dist/panels/react/toolbar/use-filter-add.d.ts +16 -0
  399. package/views/dist/panels/react/toolbar/use-filter-add.js +32 -0
  400. package/views/dist/panels/react/view-footer.d.ts +1 -1
  401. package/views/dist/panels/react/views-row/ViewPicker.js +25 -4
  402. package/views/dist/panels/react.d.ts +1 -0
  403. package/views/dist/panels/react.js +1 -0
  404. package/views/dist/panels/settings/filter-groups.d.ts +3 -0
  405. package/views/dist/panels/settings/filter-groups.js +72 -7
  406. package/views/dist/panels/settings/filters.d.ts +5 -0
  407. package/views/dist/panels/settings/filters.js +12 -6
  408. package/views/dist/panels/settings/group-buckets.js +1 -0
  409. package/views/dist/panels/views-row/model.d.ts +10 -1
  410. package/views/dist/provider/ViewsProvider.d.ts +7 -1
  411. package/views/dist/provider/ViewsProvider.js +50 -6
  412. package/views/dist/provider/components.d.ts +178 -11
  413. package/views/dist/provider/context.d.ts +6 -0
  414. package/views/dist/provider/moment.d.ts +6 -0
  415. package/views/dist/provider/moment.js +10 -0
  416. package/views/dist/provider/ports.d.ts +18 -6
  417. package/views/dist/provider/ports.js +2 -1
  418. package/views/dist/react.d.ts +2 -2
  419. package/views/dist/react.js +1 -1
  420. package/views/dist/selection/SelectionBar.d.ts +2 -16
  421. package/views/dist/selection/SelectionBar.js +4 -1
  422. package/views/dist/selection/bar-props.d.ts +26 -0
  423. package/views/dist/selection/bar-props.js +1 -0
  424. package/views/dist/selection/index.d.ts +1 -1
  425. package/views/dist/selection/verbs.d.ts +32 -5
  426. package/views/dist/styles.css +1499 -73
  427. package/views/dist/styles.unlayered.css +1497 -70
  428. package/views/docs/contract.md +56 -23
  429. package/views/docs/controls/alert-dialog.md +37 -0
  430. package/views/docs/controls/alert.md +30 -0
  431. package/views/docs/controls/bulk-bar.md +41 -0
  432. package/views/docs/controls/choice.md +25 -0
  433. package/views/docs/controls/collapsible.md +22 -0
  434. package/views/docs/controls/customize.md +17 -0
  435. package/views/docs/controls/filter-editor.md +28 -0
  436. package/views/docs/controls/group-editor.md +11 -0
  437. package/views/docs/controls/modal.md +55 -0
  438. package/views/docs/controls/notice.md +32 -0
  439. package/views/docs/controls/pane.md +25 -0
  440. package/views/docs/controls/popover.md +2 -0
  441. package/views/docs/controls/press.md +9 -0
  442. package/views/docs/controls/quick-filters.md +35 -0
  443. package/views/docs/controls/radio.md +1 -1
  444. package/views/docs/controls/sort-editor.md +27 -0
  445. package/views/docs/controls/switch-row.md +18 -0
  446. package/views/docs/controls/tag-field.md +7 -0
  447. package/views/docs/controls/toast.md +32 -0
  448. package/views/docs/controls/toolbar-button.md +31 -0
  449. package/views/docs/controls/toolbar.md +14 -0
  450. package/views/docs/guides/atoms.md +2 -2
  451. package/views/docs/guides/cells.md +3 -3
  452. package/views/docs/guides/display.md +3 -3
  453. package/views/docs/guides/looks.md +8 -2
  454. package/views/docs/guides/ports.md +6 -6
  455. package/views/docs/guides/selection.md +5 -1
  456. package/views/docs/guides/the-grid.md +2 -2
  457. package/views/docs/guides/the-provider.md +21 -2
  458. package/views/docs/install.md +4 -1
  459. package/views/docs/reference/cells.md +3 -3
  460. package/views/docs/reference/controls.md +403 -16
  461. package/views/docs/reference/display.md +3 -2
  462. package/views/docs/reference/editors-relation.md +1 -1
  463. package/views/docs/reference/looks.md +35 -11
  464. package/views/docs/reference/panels-react.md +11 -10
  465. package/views/docs/reference/panels.md +9 -7
  466. package/views/docs/reference/react.md +20 -13
  467. package/views/docs/reference/selection.md +4 -2
  468. package/views/docs/reference/views.md +8 -6
  469. package/views/skills/views/SKILL.md +2 -2
@@ -5,7 +5,15 @@ import { MapSheet } from "./sheet/map-sheet.js";
5
5
  import { MapCheckbox } from "./checkbox/map-checkbox.js";
6
6
  import { MapInput } from "./input/map-input.js";
7
7
  import { MapMenu } from "./menu/map-menu.js";
8
+ import { MapSortBody } from "./sort-editor/map-sort-body.js";
8
9
  import { MapViewsListBody } from "./views-list/map-views-list-body.js";
10
+ import { MapFilterBody, MapFilterPartBody } from "./filter-editor/map-filter-body.js";
11
+ import { MapGroupBody } from "./group-editor/map-group-body.js";
12
+ import { customizeStepsAside, MapCustomizeBody } from "./customize/map-customize-body.js";
13
+ import { MapCollapse } from "./collapsible/map-collapse.js";
14
+ import { MapPortsHost } from "./ports-host/map-ports-host.js";
15
+ import { MapQuickFiltersBody } from "./quick-filters/map-quick-filters-body.js";
16
+ import { MapSelectionBar } from "./bulk-bar/map-selection-bar.js";
9
17
  import { MapTextBody } from "./text-editor/map-text-body.js";
10
18
  import { MapPicker } from "./picker/map-picker.js";
11
19
  import { MapFieldsBody } from "./picker/map-fields-body.js";
@@ -23,7 +31,18 @@ export declare const CONTROLS: {
23
31
  Input: typeof MapInput;
24
32
  Checkbox: typeof MapCheckbox;
25
33
  Menu: typeof MapMenu;
34
+ SortBody: typeof MapSortBody;
26
35
  ViewsListBody: typeof MapViewsListBody;
36
+ FilterBody: typeof MapFilterBody;
37
+ FilterPartBody: typeof MapFilterPartBody;
38
+ GroupBody: typeof MapGroupBody;
39
+ CustomizeBody: typeof MapCustomizeBody & {
40
+ stepsAside: typeof customizeStepsAside;
41
+ };
42
+ Collapse: typeof MapCollapse;
43
+ PortsHost: typeof MapPortsHost;
44
+ QuickFiltersBody: typeof MapQuickFiltersBody;
45
+ SelectionBar: typeof MapSelectionBar;
27
46
  TextBody: typeof MapTextBody;
28
47
  Picker: typeof MapPicker;
29
48
  FieldsBody: typeof MapFieldsBody;
@@ -5,7 +5,15 @@ import { MapSheet } from "./sheet/map-sheet.js";
5
5
  import { MapCheckbox } from "./checkbox/map-checkbox.js";
6
6
  import { MapInput } from "./input/map-input.js";
7
7
  import { MapMenu } from "./menu/map-menu.js";
8
+ import { MapSortBody } from "./sort-editor/map-sort-body.js";
8
9
  import { MapViewsListBody } from "./views-list/map-views-list-body.js";
10
+ import { MapFilterBody, MapFilterPartBody } from "./filter-editor/map-filter-body.js";
11
+ import { MapGroupBody } from "./group-editor/map-group-body.js";
12
+ import { customizeStepsAside, MapCustomizeBody } from "./customize/map-customize-body.js";
13
+ import { MapCollapse } from "./collapsible/map-collapse.js";
14
+ import { MapPortsHost } from "./ports-host/map-ports-host.js";
15
+ import { MapQuickFiltersBody } from "./quick-filters/map-quick-filters-body.js";
16
+ import { MapSelectionBar } from "./bulk-bar/map-selection-bar.js";
9
17
  import { MapTextBody } from "./text-editor/map-text-body.js";
10
18
  import { MapPicker } from "./picker/map-picker.js";
11
19
  import { MapFieldsBody } from "./picker/map-fields-body.js";
@@ -23,7 +31,16 @@ export const CONTROLS = {
23
31
  Input: MapInput,
24
32
  Checkbox: MapCheckbox,
25
33
  Menu: MapMenu,
34
+ SortBody: MapSortBody,
26
35
  ViewsListBody: MapViewsListBody,
36
+ FilterBody: MapFilterBody,
37
+ FilterPartBody: MapFilterPartBody,
38
+ GroupBody: MapGroupBody,
39
+ CustomizeBody: Object.assign(MapCustomizeBody, { stepsAside: customizeStepsAside }),
40
+ Collapse: MapCollapse,
41
+ PortsHost: MapPortsHost,
42
+ QuickFiltersBody: MapQuickFiltersBody,
43
+ SelectionBar: MapSelectionBar,
27
44
  TextBody: MapTextBody,
28
45
  Picker: MapPicker,
29
46
  FieldsBody: MapFieldsBody,
@@ -0,0 +1,125 @@
1
+ import * as React from "react";
2
+ import { type SheetHeadProps } from "../sheet/bottom-sheet.js";
3
+ import { type CustomizeWorn } from "./looks.js";
4
+ import { type CustomizeColumn } from "./rules.js";
5
+ import { type CustomizeWords } from "./words.js";
6
+ export type { CustomizeColumn } from "./rules.js";
7
+ /** Where it stands: its list, or a section's screen. */
8
+ export type CustomizeScreen = "list" | "layout" | "columns" | "filter" | "sort" | "group";
9
+ /** The view it sets: its name, its layout's id, its columns in order, Show counts, and a table's Freeze first column and Wrap text. */
10
+ export interface CustomizeView {
11
+ name: string;
12
+ layout: string;
13
+ columns: CustomizeColumn[];
14
+ counts: boolean;
15
+ freeze: boolean;
16
+ wrap: boolean;
17
+ }
18
+ /** A layout it offers: its mark, its name; one still to come can't be picked, and says nothing more (KIT-777). */
19
+ export interface CustomizeLayout {
20
+ id: string;
21
+ name: string;
22
+ mark: React.ReactNode;
23
+ later?: boolean;
24
+ }
25
+ /** A section its holder hands it (Filter, Sort, Group): where it stands, whether that is in force, and what its screen holds. A
26
+ * screen whose body opens a level of its own in place (the group editor's Group by, KIT-671) hands it as `level`: while it stands,
27
+ * the head names it and its ‹ or Back comes back to the screen. */
28
+ export interface CustomizeSection {
29
+ says: string;
30
+ inForce?: boolean;
31
+ opens?: React.ReactNode;
32
+ level?: {
33
+ name: string;
34
+ back: () => void;
35
+ } | null;
36
+ }
37
+ /** A setting turned on or off: its key, words, value and write; `icon`, its mark before its name; `reset`, its way back to the
38
+ * reader's default; `section`, the heading it stands under. */
39
+ export interface CustomizeToggle {
40
+ key: string;
41
+ label: string;
42
+ value: boolean;
43
+ onChange: (on: boolean) => void;
44
+ icon?: React.ReactNode;
45
+ reset?: () => void;
46
+ section?: string;
47
+ }
48
+ /** A setting picked from a few (a layout's density, a board's field): its key, words, value, choices and write. */
49
+ export interface CustomizeChoice {
50
+ key: string;
51
+ label: string;
52
+ value: string;
53
+ options: {
54
+ value: string;
55
+ label: string;
56
+ }[];
57
+ onChange: (value: string) => void;
58
+ }
59
+ /** Layout's own settings, in place of a table's Freeze and Wrap: its pick-one settings, its toggles, and For you, the reader's own
60
+ * over a shared view, with its way back. */
61
+ export interface CustomizeLayoutSettings {
62
+ toggles: CustomizeToggle[];
63
+ choices: CustomizeChoice[];
64
+ personal?: {
65
+ label: string;
66
+ toggles: CustomizeToggle[];
67
+ choices: CustomizeChoice[];
68
+ onReset?: () => void;
69
+ };
70
+ }
71
+ export interface CustomizeProps {
72
+ view: CustomizeView;
73
+ /** Each change, as it is made; a rename once it is kept. */
74
+ onViewChange: (view: CustomizeView) => void;
75
+ layouts: CustomizeLayout[];
76
+ /** The sections it is handed; one not handed stands nowhere (on the bar, in the Pane, or both is the Toolbar's option). */
77
+ filter?: CustomizeSection;
78
+ sort?: CustomizeSection;
79
+ group?: CustomizeSection;
80
+ /** The view differs from how it is saved: Reset (and Save for everyone, where handed) stand over the footer, on the list. */
81
+ changed?: boolean;
82
+ onReset?: () => void;
83
+ onSave?: () => void;
84
+ /** A write is in flight: Reset and Save wait. */
85
+ pending?: boolean;
86
+ /** The shared view moved after the reader's changes began: a note over Reset and Save. */
87
+ stale?: boolean;
88
+ /** Export CSV's count ("22 deals"). */
89
+ exportCount?: string;
90
+ /** Each footer row stands only where its action is handed; with neither, no footer. */
91
+ onCopyLink?: () => void;
92
+ onExport?: () => void;
93
+ /** Its toggles, in place of Show counts from the view: each a check row under the list's sections, in order. */
94
+ toggles?: CustomizeToggle[];
95
+ /** Layout's own settings, in place of a table's Freeze and Wrap from the view. */
96
+ layoutSettings?: CustomizeLayoutSettings;
97
+ /** Columns' way back to the view's own columns, while they differ from it. */
98
+ columnsReset?: () => void;
99
+ /** Outside a Pane, the title head's ✕. */
100
+ onClose?: () => void;
101
+ /** Each screen it opens, as it opens it. */
102
+ onScreenChange?: (screen: CustomizeScreen) => void;
103
+ /** Its words; English unless handed. */
104
+ words?: Partial<CustomizeWords>;
105
+ /** Which form; by default the phone's in a phone's window or in a PhoneHost screen, else the computer's. */
106
+ form?: "computer" | "phone";
107
+ /** Where it opens, for a page that shows a state; its list unless said. */
108
+ screen?: CustomizeScreen;
109
+ }
110
+ /** The parts a shell pours in. On a phone: the Sheet head's title and its Back and ✕, the step, and the foot on the list. On a
111
+ * computer: the Pane's head, body, Reset and Save, and footer, as `body`. */
112
+ export interface CustomizeParts {
113
+ body: React.ReactNode;
114
+ title: string;
115
+ head: Pick<SheetHeadProps, "onBack" | "close">;
116
+ foot?: React.ReactNode;
117
+ }
118
+ /** Its options as the frame round it wears them (looks.ts), kept up to date as they change. */
119
+ export declare function useCustomizeWorn(): [(el: Element | null) => void, CustomizeWorn];
120
+ /** A layout's mark by its id (table, board, list, calendar, timeline); none for another. */
121
+ export declare const layoutMark: (id: string) => React.ReactNode | undefined;
122
+ /** Customize's state and the parts a shell pours in. */
123
+ export declare function useCustomize(props: CustomizeProps): CustomizeParts;
124
+ /** The computer's body: what stands in the Pane, its head, its body, Reset and Save for everyone, and its footer. */
125
+ export declare function Customize(props: CustomizeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,243 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Button } from "../button/button.js";
5
+ import { glyph } from "../internal/editor-parts.js";
6
+ import { Icon } from "../internal/icons.js";
7
+ import { PhoneHost, phoneMark, usePhone } from "../internal/phone.js";
8
+ import { Input, InputGroup, InputGroupAddon } from "../input/input.js";
9
+ import { MENU_LIST_CARD_FRAME } from "../menu-list/looks.js";
10
+ import { MenuList, MenuListPanelRows } from "../menu-list/menu-list.js";
11
+ import { Notice } from "../notice/notice.js";
12
+ import { InPane, PaneBody, PaneClose, PaneFoot, PaneHead, PaneTitle } from "../pane/pane.js";
13
+ import { Radio, RadioGroup } from "../radio/radio.js";
14
+ import { SheetStep } from "../sheet/bottom-sheet.js";
15
+ import { reduced, slideTime, useGlide } from "./glide.js";
16
+ import { CUSTOMIZE_ATTRS, customizeWornOf } from "./looks.js";
17
+ import { columnsSay, findColumns, moveColumn, setShown } from "./rules.js";
18
+ import { customizeWords } from "./words.js";
19
+ export function useCustomizeWorn() {
20
+ const [el, setEl] = React.useState(null), [worn, setWorn] = React.useState(() => customizeWornOf(null));
21
+ React.useLayoutEffect(() => {
22
+ if (!el)
23
+ return;
24
+ const read = () => setWorn((now) => { const next = customizeWornOf(el); return now.head === next.head && now.columns === next.columns ? now : next; });
25
+ read();
26
+ const watch = new MutationObserver(read);
27
+ watch.observe(document.documentElement, { attributes: true, subtree: true, attributeFilter: CUSTOMIZE_ATTRS });
28
+ return () => watch.disconnect();
29
+ }, [el]);
30
+ return [setEl, worn];
31
+ }
32
+ const COLUMNS = glyph(["M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z", "M9 4v16", "M15 4v16"]);
33
+ const GROUP = glyph(["M5.5 4h13a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-13a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5z", "M5.5 14h13a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-13a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5z"]);
34
+ const LAYOUT_MARKS = {
35
+ table: "M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2zM4 10h16M10 4v16",
36
+ board: "M5.5 4h3a1.5 1.5 0 0 1 1.5 1.5v13a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-13a1.5 1.5 0 0 1 1.5 -1.5zM15.5 4h3a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-7a1.5 1.5 0 0 1 1.5 -1.5z",
37
+ list: "M9 6h11M9 12h11M9 18h11M5 6h.01M5 12h.01M5 18h.01",
38
+ calendar: "M6 5h12a2 2 0 0 1 2 2v11a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2M4 10h16M9 3v4M15 3v4",
39
+ timeline: "M4 7h9M8 12h10M6 17h7",
40
+ };
41
+ export const layoutMark = (id) => (LAYOUT_MARKS[id] ? glyph([LAYOUT_MARKS[id]]) : undefined);
42
+ export function useCustomize(props) {
43
+ const { view, onViewChange, layouts, filter, sort, group, changed = false, onReset, onSave, pending = false, stale = false, exportCount, onCopyLink, onExport, toggles, layoutSettings, columnsReset, onClose, onScreenChange } = props;
44
+ const w = customizeWords(props.words);
45
+ const host = React.useContext(PhoneHost), small = usePhone(), phone = (props.form ?? (host || small ? "phone" : "computer")) === "phone";
46
+ const inPane = React.useContext(InPane);
47
+ const [place, worn] = useCustomizeWorn();
48
+ const now = React.useRef(view);
49
+ React.useLayoutEffect(() => { now.current = view; });
50
+ const latest = React.useMemo(() => ({ get view() { return now.current; } }), []);
51
+ const change = (next) => { now.current = next; onViewChange(next); };
52
+ const NAMES = { layout: w.layout, columns: w.columns, filter: w.filter, sort: w.sort, group: w.group };
53
+ const SCREEN_OF = { [w.layout]: "layout", [w.columns]: "columns", [w.filter]: "filter", [w.sort]: "sort", [w.group]: "group" };
54
+ const handed = { filter, sort, group };
55
+ const hasLayout = layouts.length > 0 || !!layoutSettings, hasColumns = view.columns.length > 0;
56
+ const opens = (to) => to === "list" || (to === "layout" ? hasLayout : to === "columns" ? hasColumns : handed[to]?.opens != null);
57
+ const [screen, setScreen] = React.useState(() => (props.screen && opens(props.screen) ? props.screen : "list")), [back, setBack] = React.useState(false);
58
+ const [choosing, setChoosing] = React.useState(null);
59
+ const [find, setFind] = React.useState("");
60
+ const [focusTo, setFocusTo] = React.useState(null), root = React.useRef(null), backButton = React.useRef(null);
61
+ const go = (to) => {
62
+ if (!opens(to))
63
+ return;
64
+ setBack(false);
65
+ setScreen(to);
66
+ setChoosing(null);
67
+ setFocusTo("back");
68
+ setFind("");
69
+ onScreenChange?.(to);
70
+ };
71
+ const goBack = () => { const from = screen; setBack(true); setScreen("list"); setChoosing(null); setFocusTo(from === "list" ? null : NAMES[from]); setFind(""); onScreenChange?.("list"); };
72
+ React.useLayoutEffect(() => {
73
+ if (!focusTo || phone)
74
+ return;
75
+ setFocusTo(null);
76
+ if (focusTo === "back") {
77
+ backButton.current?.focus({ preventScroll: true });
78
+ return;
79
+ }
80
+ const row = [...(root.current?.querySelectorAll("[data-item]") ?? [])].find((r) => r.querySelector(".o-menu-name")?.textContent === focusTo);
81
+ row?.focus({ preventScroll: true });
82
+ }, [focusTo, phone]);
83
+ const placeRoot = React.useCallback((el) => { root.current = el; place(el); }, [place]);
84
+ const glide = useGlide(root);
85
+ const [held, setHeld] = React.useState({});
86
+ const holds = React.useRef([]);
87
+ const press = (ids, on) => {
88
+ const land = (these) => change({ ...latest.view, columns: these.reduce((cols, id) => setShown(cols, id, on), latest.view.columns) });
89
+ if (!ids.length)
90
+ return;
91
+ if (reduced()) {
92
+ land(ids);
93
+ return;
94
+ }
95
+ for (const h of holds.current)
96
+ h.ids = h.ids.filter((id) => !ids.includes(id));
97
+ setHeld((was) => ({ ...was, ...Object.fromEntries(ids.map((id) => [id, on])) }));
98
+ const hold = { ids, land: () => land(hold.ids), timer: 0 };
99
+ hold.timer = window.setTimeout(() => {
100
+ holds.current = holds.current.filter((h) => h !== hold);
101
+ glide(() => {
102
+ if (hold.ids.length)
103
+ hold.land();
104
+ setHeld((was) => { const next = { ...was }; for (const id of hold.ids)
105
+ delete next[id]; return next; });
106
+ }, latest.view.columns.filter((c) => hold.ids.includes(c.id)).map((c) => c.label));
107
+ }, slideTime(root.current));
108
+ holds.current.push(hold);
109
+ };
110
+ React.useEffect(() => () => { for (const h of holds.current) {
111
+ window.clearTimeout(h.timer);
112
+ if (h.ids.length)
113
+ h.land();
114
+ } holds.current = []; }, []);
115
+ const layout = layouts.find((l) => l.id === view.layout) ?? layouts[0];
116
+ const section = (label, icon, s) => s ? [{ kind: "actions", icon, label, detail: s.says, inForce: s.inForce, entries: [] }] : [];
117
+ const toggleRows = (ts) => ts.flatMap((t) => [
118
+ { kind: "check", label: t.label, checked: t.value, onCheckedChange: (on) => t.onChange(on), ...(t.icon != null && { icon: t.icon }) },
119
+ ...(t.reset ? [{ icon: null, label: w.toggleReset(t.label), onSelect: t.reset }] : []),
120
+ ]);
121
+ const sectionsOfToggles = (ts) => [...new Set(ts.flatMap((t) => (t.section ? [t.section] : [])))];
122
+ const checks = toggles
123
+ ? [...toggleRows(toggles.filter((t) => !t.section)),
124
+ ...sectionsOfToggles(toggles).map((s) => ({ kind: "group", heading: s, entries: toggleRows(toggles.filter((t) => t.section === s)) }))]
125
+ : [{ kind: "check", label: w.showCounts, checked: view.counts, onCheckedChange: (c) => change({ ...latest.view, counts: c }) }];
126
+ const sections = [
127
+ ...(hasLayout ? [{ kind: "actions", icon: layout?.mark, label: w.layout, detail: layout?.name, entries: [] }] : []),
128
+ ...(hasColumns ? [{ kind: "actions", icon: COLUMNS, label: w.columns, detail: columnsSay(view.columns, w), entries: [] }] : []),
129
+ ...section(w.filter, _jsx(Icon, { name: "filter" }), filter), ...section(w.sort, _jsx(Icon, { name: "sort" }), sort), ...section(w.group, GROUP, group),
130
+ ...(checks.length ? [{ kind: "separator" }, ...checks] : []),
131
+ ];
132
+ const opened = (e) => { if ("label" in e && SCREEN_OF[e.label])
133
+ go(SCREEN_OF[e.label]); };
134
+ const footer = [
135
+ ...(onCopyLink ? [{ icon: _jsx(Icon, { name: "link" }), label: w.copyLink, onSelect: onCopyLink }] : []),
136
+ ...(onExport ? [{ icon: _jsx(Icon, { name: "export" }), label: w.export, ...(exportCount != null ? { count: exportCount } : {}), onSelect: onExport }] : []),
137
+ ];
138
+ const words = (size) => (_jsxs(_Fragment, { children: [stale && _jsx(Notice, { className: "o-customize-stale", children: w.stale }), _jsxs("div", { className: "o-customize-words", children: [_jsx(Button, { kind: "link", size: size, onClick: onReset, disabled: pending, children: w.reset }), onSave && _jsx(Button, { kind: "link", size: size, onClick: onSave, disabled: pending, children: w.save })] })] }));
139
+ const allChoices = layoutSettings ? [...layoutSettings.choices, ...(layoutSettings.personal?.choices ?? [])] : [];
140
+ const choiceRows = new Map();
141
+ const choiceOpened = (e) => { const c = choiceRows.get(e); if (c) {
142
+ setBack(false);
143
+ setChoosing(c.key);
144
+ } };
145
+ const rowsList = (label, rows) => (phone
146
+ ? _jsx(MenuList, { label: label, entries: rows, onOpen: choiceOpened, words: w.rows })
147
+ : _jsx(MenuListPanelRows, { label: label, entries: rows, ticks: "switch", onOpen: choiceOpened, words: w.rows }));
148
+ const choiceRow = (c) => {
149
+ const entry = { kind: "choices", icon: null, label: c.label, value: c.value, choices: c.options.map((o) => ({ value: o.value, label: o.label })),
150
+ detail: c.options.find((o) => o.value === c.value)?.label };
151
+ choiceRows.set(entry, c);
152
+ return entry;
153
+ };
154
+ const choice = screen === "layout" ? allChoices.find((c) => c.key === choosing) : undefined;
155
+ const backFromChoice = () => { setBack(true); setFocusTo(choice?.label ?? null); setChoosing(null); };
156
+ const choiceLevel = choice && (() => {
157
+ const rows = [{ kind: "pick", value: choice.value, choices: choice.options.map((o) => ({ value: o.value, label: o.label })),
158
+ onChoose: (v) => { if (v !== choice.value)
159
+ choice.onChange(v); backFromChoice(); } }];
160
+ return phone ? _jsx(MenuList, { label: choice.label, entries: rows, words: w.rows }) : _jsx(MenuListPanelRows, { label: choice.label, entries: rows, words: w.rows });
161
+ })();
162
+ const heading = (label, act) => (_jsxs("div", { className: "o-customize-heading", children: [_jsx("p", { className: "o-list-heading o-customize-heading-words", children: label }), act?.map((a) => _jsx(Button, { kind: "link", size: "line", onClick: a.onPress, children: a.label }, a.label))] }));
163
+ const ownSettings = (settings, name) => {
164
+ const bare = settings.toggles.filter((t) => !t.section), sectioned = sectionsOfToggles(settings.toggles);
165
+ const first = [...settings.choices.map(choiceRow), ...toggleRows(bare)];
166
+ const you = settings.personal, yours = you ? [...you.choices.map(choiceRow), ...toggleRows(you.toggles), ...(you.onReset ? [{ icon: null, label: w.personalReset, onSelect: you.onReset }] : [])] : [];
167
+ return _jsxs(_Fragment, { children: [first.length > 0 && _jsxs(_Fragment, { children: [_jsx("p", { className: "o-list-heading o-customize-heading-words", children: name }), rowsList(w.layoutSettings(name), first)] }), sectioned.map((s) => _jsxs(React.Fragment, { children: [_jsx("p", { className: "o-list-heading o-customize-heading-words", children: s }), rowsList(s, toggleRows(settings.toggles.filter((t) => t.section === s)))] }, s)), you && yours.length > 0 && _jsxs(_Fragment, { children: [_jsx("p", { className: "o-list-heading o-customize-heading-words", children: you.label }), rowsList(you.label, yours)] })] });
168
+ };
169
+ const layoutScreen = (_jsxs(_Fragment, { children: [_jsx(RadioGroup, { tiles: true, "aria-label": w.layout, value: view.layout, onValueChange: (v) => { if (typeof v === "string")
170
+ change({ ...latest.view, layout: v }); }, children: layouts.map((l) => _jsx(Radio, { value: l.id, mark: l.mark, label: l.name, disabled: l.later }, l.id)) }), layoutSettings ? ownSettings(layoutSettings, layout?.name ?? w.layout) : layout?.id === "table" && _jsxs(_Fragment, { children: [_jsx("p", { className: "o-list-heading o-customize-heading-words", children: layout.name }), rowsList(w.layoutSettings(layout.name), [
171
+ { kind: "check", label: w.freeze, checked: view.freeze, onCheckedChange: (c) => change({ ...latest.view, freeze: c }) },
172
+ { kind: "check", label: w.wrap, checked: view.wrap, onCheckedChange: (c) => change({ ...latest.view, wrap: c }) },
173
+ ])] })] }));
174
+ const searching = find.trim() !== "", eyes = worn.columns === "eye";
175
+ const found = findColumns(view.columns, find);
176
+ const gripped = (columns, shown) => (searching || (!shown && !eyes) ? [] : columns.filter((c) => c.shown === shown && !c.locked));
177
+ const block = (shown) => {
178
+ const grips = new Set(gripped(found, shown).map((c) => c.id));
179
+ return found.filter((c) => c.shown === shown).map((c) => ({ kind: "check", label: c.label, icon: c.mark, checked: held[c.id] ?? c.shown, grip: grips.has(c.id),
180
+ disabled: c.locked ? w.alwaysShown : undefined, onCheckedChange: (on) => press([c.id], on) }));
181
+ };
182
+ const moveIn = (shown) => (from, to) => {
183
+ const g = gripped(latest.view.columns, shown);
184
+ if (g[from] && g[to])
185
+ change({ ...latest.view, columns: moveColumn(latest.view.columns, g[from].id, g[to].id) });
186
+ };
187
+ const ticks = eyes ? "eye" : "switch";
188
+ const rowsOf = (label, shown) => phone
189
+ ? _jsx(MenuList, { label: label, entries: block(shown), ticks: ticks, onMove: moveIn(shown), words: w.rows })
190
+ : _jsx(MenuListPanelRows, { label: label, entries: block(shown), ticks: ticks, onMove: moveIn(shown), words: w.rows });
191
+ const canHide = view.columns.some((c) => c.shown && !c.locked), canShow = view.columns.some((c) => !c.shown);
192
+ const shownHere = found.some((c) => c.shown), hiddenHere = found.some((c) => !c.shown);
193
+ const typed = (e) => setFind(e.target.value);
194
+ const columnsBox = (_jsxs(InputGroup, { size: phone ? "lg" : "sm", chrome: "soft", children: [_jsx(InputGroupAddon, { children: _jsx(Icon, { name: "search" }) }), _jsx(Input, { value: find, onChange: typed, placeholder: phone ? w.findColumn : w.searchColumns, "aria-label": phone ? w.findColumn : w.searchColumns })] }));
195
+ const columnsSearch = phone ? columnsBox : _jsx("div", { className: "o-customize-search", children: columnsBox });
196
+ const shownActs = [
197
+ ...(!searching && canHide ? [{ label: w.hideAll, onPress: () => press(latest.view.columns.filter((c) => c.shown && !c.locked).map((c) => c.id), false) }] : []),
198
+ ...(!searching && columnsReset ? [{ label: w.columnsReset, onPress: columnsReset }] : []),
199
+ ];
200
+ const columnsScreen = (_jsxs(_Fragment, { children: [phone && columnsSearch, shownHere && _jsxs(_Fragment, { children: [heading(w.shownHeading, shownActs), rowsOf(w.shownHeading, true)] }), hiddenHere && _jsxs(_Fragment, { children: [heading(w.hiddenHeading, !searching && canShow ? [{ label: w.showAll, onPress: () => press(latest.view.columns.filter((c) => !c.shown).map((c) => c.id), true) }] : undefined), rowsOf(w.hiddenHeading, false)] }), !found.length && _jsx("p", { className: "o-customize-none", children: w.noColumn(find.trim()) })] }));
201
+ const content = screen === "list"
202
+ ? phone ? _jsx(MenuList, { label: w.list, entries: sections, onOpen: opened, words: w.rows }) : _jsx(MenuListPanelRows, { label: w.list, entries: sections, ticks: "switch", onOpen: opened, words: w.rows })
203
+ : screen === "layout" ? choiceLevel ?? layoutScreen : screen === "columns" ? columnsScreen : handed[screen]?.opens;
204
+ const form = phone ? "phone" : "computer";
205
+ const level = choice ? { name: choice.label, back: backFromChoice } : screen !== "list" ? handed[screen]?.level ?? null : null, backTo = level?.back ?? goBack;
206
+ const named = worn.head === "name" && view.name !== "";
207
+ const name = screen === "list" ? (named ? view.name : w.title) : level?.name ?? NAMES[screen];
208
+ const titled = !named;
209
+ if (phone) {
210
+ const body = (_jsx("div", { ref: placeRoot, className: "o-customize", "data-kit": "customize", "data-customize-form": form, "data-customize-screen": screen, ...phoneMark(!!host || small), ...MENU_LIST_CARD_FRAME, children: _jsx(SheetStep, { step: choice ? `layout:${choice.key}` : screen, back: back, children: _jsx("div", { className: "o-customize-step", children: content }) }) }));
211
+ const foot = screen === "list" && (changed || footer.length) ? (_jsxs("div", { className: "o-customize-foot", ...MENU_LIST_CARD_FRAME, children: [changed && words("44"), footer.length > 0 && _jsx(MenuList, { label: w.share, entries: footer, words: w.rows })] })) : undefined;
212
+ return { body, title: name, head: screen === "list" ? { close: true } : { onBack: backTo, close: titled }, foot };
213
+ }
214
+ const title = (words) => (inPane ? _jsx(PaneTitle, { children: words }) : _jsx("h2", { className: "o-pane-title", children: words }));
215
+ const xButton = (extra) => _jsx(Button, { kind: "quiet", shape: "icon", size: "sm", "aria-label": w.close, icon: _jsx(Icon, { name: "x" }), ...extra });
216
+ const close = inPane ? _jsx(PaneClose, { render: xButton() }) : onClose ? xButton({ onClick: onClose }) : null;
217
+ const head = screen !== "list" ? (_jsxs(PaneHead, { className: "o-customize-head o-customize-head-screen", children: [_jsx(Button, { ref: backButton, kind: "quiet", shape: "icon", size: "sm", "aria-label": w.back, icon: _jsx(Icon, { name: "left" }), onClick: backTo }), _jsx("span", { className: "o-customize-title", children: title(name) }), titled && close] })) : titled ? (_jsxs(PaneHead, { className: "o-customize-head o-customize-head-title", children: [_jsx("span", { className: "o-customize-title", children: title(w.title) }), close] })) : (_jsxs(PaneHead, { className: "o-customize-head o-customize-head-name", children: [hasLayout && _jsx(Button, { kind: "outline", shape: "icon", size: "sm", "aria-label": w.layoutButton(layout?.name ?? ""), icon: layout?.mark, onClick: () => go("layout") }), _jsx(ViewName, { name: view.name, label: w.viewName, onRename: (n) => change({ ...latest.view, name: n }) })] }));
218
+ const parts = (_jsxs(_Fragment, { children: [head, screen === "columns" && columnsSearch, _jsx(PaneBody, { children: _jsx("div", { ref: placeRoot, className: "o-customize", "data-kit": "customize", "data-customize-form": form, "data-customize-screen": screen, ...phoneMark(!!host || small), ...MENU_LIST_CARD_FRAME, children: content }) }), screen === "list" && changed && words("xs"), footer.length > 0 && _jsx(PaneFoot, { children: _jsx(MenuListPanelRows, { label: w.share, entries: footer, words: w.rows }) })] }));
219
+ return { body: inPane ? parts : _jsx("div", { className: "o-customize-frame", children: parts }), title: name, head: {} };
220
+ }
221
+ function ViewName({ name, label, onRename }) {
222
+ const [draft, setDraft] = React.useState(name);
223
+ React.useEffect(() => setDraft(name), [name]);
224
+ const keep = () => { const n = draft.trim(); if (!n)
225
+ setDraft(name);
226
+ else if (n !== name)
227
+ onRename(n);
228
+ else
229
+ setDraft(name); };
230
+ return (_jsx("span", { className: "o-customize-name", children: _jsx(Input, { size: "sm", "aria-label": label, value: draft, onChange: (e) => setDraft(e.target.value), onBlur: keep, onKeyDown: (e) => {
231
+ if (e.key === "Enter") {
232
+ e.preventDefault();
233
+ keep();
234
+ }
235
+ if (e.key === "Escape" && draft !== name) {
236
+ e.preventDefault();
237
+ setDraft(name);
238
+ }
239
+ } }) }));
240
+ }
241
+ export function Customize(props) {
242
+ return _jsx(_Fragment, { children: useCustomize({ ...props, form: props.form ?? "computer" }).body });
243
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ export declare const groundOf: (el: Element) => string;
3
+ /** Whether the person asked for less motion. */
4
+ export declare const reduced: () => boolean;
5
+ /** How long a tick takes to show its new state: the Switch's own slide (its thumb's longest transition, whichever Motion it wears),
6
+ * or, where the ticks are eyes, the eye's slash being drawn (KIT-826); `--customize-tick` (`--vk-duration-fast`) where it finds neither. */
7
+ export declare function slideTime(root: HTMLElement | null): number;
8
+ /** A change that glides: `apply` hands it on, and once it is drawn every row and heading in `root` that moved slides from where it
9
+ * stood, and one that is new fades in; the rows named in `lead` (the ones pressed) over the others. */
10
+ export declare function useGlide(root: React.RefObject<HTMLElement | null>): (apply: () => void, lead?: string[]) => void;
@@ -0,0 +1,55 @@
1
+ import * as React from "react";
2
+ const MOVES = "[data-item], .o-menu-list-row, .o-customize-heading";
3
+ const keyOf = (el) => `${el.matches(".o-customize-heading") ? "h" : "r"}:${el.querySelector(".o-list-heading, .o-menu-name, .o-menu-list-name > span:first-child")?.textContent ?? ""}`;
4
+ const ms = (v) => { const t = v.trim(); return t.endsWith("ms") ? parseFloat(t) : t.endsWith("s") ? parseFloat(t) * 1000 : parseFloat(t) || 0; };
5
+ const token = (name, el) => getComputedStyle(el ?? document.documentElement).getPropertyValue(name);
6
+ const alphaOf = (colour) => {
7
+ const c = colour.trim();
8
+ if (!c || c === "transparent")
9
+ return 0;
10
+ const commas = /^(?:rgb|hsl)a?\(([^)/]*)\)$/.exec(c)?.[1]?.split(",");
11
+ const said = /\/\s*([\d.]+)(%?)\s*\)$/.exec(c) ?? (commas?.length === 4 ? /([\d.]+)(%?)\s*$/.exec(commas[3]) : null);
12
+ return said ? parseFloat(said[1]) / (said[2] ? 100 : 1) : 1;
13
+ };
14
+ export const groundOf = (el) => {
15
+ for (let n = el.parentElement; n; n = n.parentElement) {
16
+ const c = getComputedStyle(n).backgroundColor;
17
+ if (alphaOf(c) >= 1)
18
+ return c;
19
+ }
20
+ return token("--customize-ground", el).trim();
21
+ };
22
+ export const reduced = () => typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
23
+ export function slideTime(root) {
24
+ const tick = root?.querySelector(".o-switch-thumb, .o-eye-slash");
25
+ if (tick)
26
+ return Math.max(0, ...getComputedStyle(tick).transitionDuration.split(",").map(ms));
27
+ return ms(token("--customize-tick", root));
28
+ }
29
+ export function useGlide(root) {
30
+ const before = React.useRef(null);
31
+ React.useLayoutEffect(() => {
32
+ const was = before.current;
33
+ if (!was || !root.current)
34
+ return;
35
+ before.current = null;
36
+ const duration = ms(token("--customize-glide", root.current)), easing = token("--customize-glide-ease", root.current).trim() || "ease-in-out";
37
+ for (const el of root.current.querySelectorAll(MOVES)) {
38
+ const key = keyOf(el), from = was.at.get(key), dy = from === undefined ? 0 : from - el.getBoundingClientRect().top;
39
+ const over = was.lead.has(key) ? { position: "relative", zIndex: "1", backgroundColor: groundOf(el) } : {};
40
+ if (from === undefined)
41
+ el.animate([{ opacity: 0 }, { opacity: 1 }], { duration, easing });
42
+ else if (Math.abs(dy) > 0.5)
43
+ el.animate([{ transform: `translateY(${dy}px)`, ...over }, { transform: "none", ...over }], { duration, easing });
44
+ }
45
+ });
46
+ return (apply, lead = []) => {
47
+ if (root.current && !reduced()) {
48
+ const at = new Map();
49
+ for (const el of root.current.querySelectorAll(MOVES))
50
+ at.set(keyOf(el), el.getBoundingClientRect().top);
51
+ before.current = { at, lead: new Set(lead.map((name) => `r:${name}`)) };
52
+ }
53
+ apply();
54
+ };
55
+ }
@@ -0,0 +1,13 @@
1
+ import { type PieceLooks } from "../../looks/looks.js";
2
+ export type CustomizeOptionId = "head" | "columns";
3
+ /** What Customize reads from the frame round it. */
4
+ export interface CustomizeWorn {
5
+ head: "name" | "title";
6
+ columns: "switch" | "eye";
7
+ }
8
+ /** Customize's options; it has no looks. */
9
+ export declare const CUSTOMIZE_LOOKS: PieceLooks<CustomizeOptionId>;
10
+ /** The options worn round `el`, each from the nearest frame that picks it; outside any frame, the defaults. */
11
+ export declare function customizeWornOf(el: Element | null): CustomizeWorn;
12
+ /** The attributes Customize watches, so an option changed while it is open reaches it. */
13
+ export declare const CUSTOMIZE_ATTRS: string[];
@@ -0,0 +1,11 @@
1
+ import { lookWornOf } from "../../looks/looks.js";
2
+ const options = [
3
+ { id: "head", name: "Its head", def: "title", values: [{ id: "name", name: "The view's name" }, { id: "title", name: "A title" }] },
4
+ { id: "columns", name: "Columns", def: "switch", values: [{ id: "switch", name: "Switches" }, { id: "eye", name: "Eyes" }] },
5
+ ];
6
+ export const CUSTOMIZE_LOOKS = { id: "customize", name: "Customize", options, looks: [] };
7
+ export function customizeWornOf(el) {
8
+ const worn = lookWornOf(CUSTOMIZE_LOOKS, el, ["head", "columns"]);
9
+ return { head: worn.head === "title" ? "title" : "name", columns: worn.columns === "eye" ? "eye" : "switch" };
10
+ }
11
+ export const CUSTOMIZE_ATTRS = CUSTOMIZE_LOOKS.options.map((o) => `data-customize-${o.id}`);
@@ -0,0 +1,18 @@
1
+ import { type ViewsMessageResolver } from "../../contract.js";
2
+ import type { ViewsCustomizeBodyProps } from "../../provider/components.js";
3
+ import { type CustomizeView } from "./customize.js";
4
+ import type { CustomizeWords } from "./words.js";
5
+ /** The view's name and its rename, Copy link, and Export CSV with its count: what the toolbar hands Customize's body, each drawn
6
+ * only where handed. */
7
+ export type CustomizeBodyOwn = Pick<ViewsCustomizeBodyProps, "name" | "onRename" | "exportCount" | "onCopyLink" | "onExport">;
8
+ /** Customize's words in the app's: ViewKit's key wherever its word is the kit's, a key of its own where it differs. */
9
+ export declare function customizeWordsOf(say: ViewsMessageResolver): CustomizeWords;
10
+ /** The one write a change of Customize's view makes, or null, compared with the view as drawn (a second change built before it
11
+ * draws again, two moves of one drag, still writes whole and right): the first of its name, its layout (one the list offers; a
12
+ * refused one writes nothing) and its columns that differs. Columns, one or several shown or hidden (Hide all, Show all) or moved,
13
+ * through ViewKit's own, in one change. */
14
+ export declare function customizeWriteOf(p: ViewsCustomizeBodyProps, own: CustomizeBodyOwn, now: CustomizeView, next: CustomizeView): (() => void) | null;
15
+ /** What the kit's Customize can't draw, which ViewKit's own Customize does: a column with its own settings, the field editor's rows,
16
+ * a card layout's line breaks. */
17
+ export declare function customizeStepsAside(p: ViewsCustomizeBodyProps): boolean;
18
+ export declare function MapCustomizeBody(props: ViewsCustomizeBodyProps): import("react/jsx-runtime").JSX.Element;