viewkitjs 0.28.0 → 0.30.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 (530) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/MIGRATION.md +181 -11
  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 +2 -2
  41. package/views/dist/cells/cell-format.js +2 -2
  42. package/views/dist/cells/cell-values.js +9 -12
  43. package/views/dist/contract.d.ts +161 -18
  44. package/views/dist/contract.js +170 -28
  45. package/views/dist/controls/bulk-bar/bulk-bar-of.d.ts +66 -0
  46. package/views/dist/controls/bulk-bar/bulk-bar-of.js +22 -0
  47. package/views/dist/controls/bulk-bar/bulk-bar.d.ts +40 -0
  48. package/views/dist/controls/bulk-bar/bulk-bar.js +278 -0
  49. package/views/dist/controls/bulk-bar/looks.d.ts +10 -0
  50. package/views/dist/controls/bulk-bar/looks.js +14 -0
  51. package/views/dist/controls/bulk-bar/map-selection-bar.d.ts +19 -0
  52. package/views/dist/controls/bulk-bar/map-selection-bar.js +57 -0
  53. package/views/dist/controls/bulk-bar/tokens.d.ts +136 -0
  54. package/views/dist/controls/bulk-bar/tokens.js +36 -0
  55. package/views/dist/controls/bulk-bar/words.d.ts +50 -0
  56. package/views/dist/controls/bulk-bar/words.js +19 -0
  57. package/views/dist/controls/bulk-bar.css +96 -0
  58. package/views/dist/controls/button/button.js +3 -1
  59. package/views/dist/controls/button.css +5 -4
  60. package/views/dist/controls/checkbox/checkbox.js +3 -1
  61. package/views/dist/controls/checkbox.css +1 -1
  62. package/views/dist/controls/choice/tokens.d.ts +79 -0
  63. package/views/dist/controls/choice/tokens.js +22 -0
  64. package/views/dist/controls/choice.css +31 -0
  65. package/views/dist/controls/compound-editor/looks.js +1 -1
  66. package/views/dist/controls/controls.d.ts +8 -0
  67. package/views/dist/controls/controls.js +8 -0
  68. package/views/dist/controls/customize/customize.d.ts +176 -0
  69. package/views/dist/controls/customize/customize.js +348 -0
  70. package/views/dist/controls/customize/glide.d.ts +10 -0
  71. package/views/dist/controls/customize/glide.js +55 -0
  72. package/views/dist/controls/customize/looks.d.ts +13 -0
  73. package/views/dist/controls/customize/looks.js +11 -0
  74. package/views/dist/controls/customize/map-customize-body.d.ts +15 -0
  75. package/views/dist/controls/customize/map-customize-body.js +195 -0
  76. package/views/dist/controls/customize/map-ranges.d.ts +23 -0
  77. package/views/dist/controls/customize/map-ranges.js +41 -0
  78. package/views/dist/controls/customize/rules.d.ts +39 -0
  79. package/views/dist/controls/customize/rules.js +21 -0
  80. package/views/dist/controls/customize/tokens.d.ts +40 -0
  81. package/views/dist/controls/customize/tokens.js +12 -0
  82. package/views/dist/controls/customize/words.d.ts +65 -0
  83. package/views/dist/controls/customize/words.js +42 -0
  84. package/views/dist/controls/customize.css +57 -0
  85. package/views/dist/controls/date-editor/looks.js +1 -1
  86. package/views/dist/controls/filter-editor/block.d.ts +31 -0
  87. package/views/dist/controls/filter-editor/block.js +27 -0
  88. package/views/dist/controls/filter-editor/filter-editor.d.ts +4 -0
  89. package/views/dist/controls/filter-editor/filter-editor.js +86 -43
  90. package/views/dist/controls/filter-editor/how.d.ts +1 -1
  91. package/views/dist/controls/filter-editor/how.js +1 -0
  92. package/views/dist/controls/filter-editor/map-filter-body.d.ts +16 -1
  93. package/views/dist/controls/filter-editor/map-filter-body.js +39 -13
  94. package/views/dist/controls/filter-editor/map-rules.d.ts +27 -11
  95. package/views/dist/controls/filter-editor/map-rules.js +73 -42
  96. package/views/dist/controls/filter-editor/rules.d.ts +42 -5
  97. package/views/dist/controls/filter-editor/rules.js +55 -2
  98. package/views/dist/controls/filter-editor/words.d.ts +15 -0
  99. package/views/dist/controls/filter-editor/words.js +6 -0
  100. package/views/dist/controls/filter-editor.css +18 -0
  101. package/views/dist/controls/index.d.ts +33 -9
  102. package/views/dist/controls/index.js +32 -9
  103. package/views/dist/controls/inline-input/looks.js +1 -1
  104. package/views/dist/controls/input/input.js +10 -4
  105. package/views/dist/controls/internal/phone.d.ts +5 -4
  106. package/views/dist/controls/internal/phone.js +7 -7
  107. package/views/dist/controls/internal/scroll.js +5 -1
  108. package/views/dist/controls/internal/typed-run.d.ts +2 -0
  109. package/views/dist/controls/internal/typed-run.js +5 -0
  110. package/views/dist/controls/menu/map-menu.js +2 -2
  111. package/views/dist/controls/menu-list/menu-list.d.ts +16 -1
  112. package/views/dist/controls/menu-list/menu-list.js +26 -8
  113. package/views/dist/controls/menu-list.css +8 -0
  114. package/views/dist/controls/number-editor/looks.js +1 -1
  115. package/views/dist/controls/option/option.js +3 -1
  116. package/views/dist/controls/option.css +1 -1
  117. package/views/dist/controls/pane/pane.d.ts +4 -0
  118. package/views/dist/controls/pane/pane.js +2 -1
  119. package/views/dist/controls/picker/looks.js +1 -1
  120. package/views/dist/controls/picker/map-picker.d.ts +6 -2
  121. package/views/dist/controls/picker/map-picker.js +4 -2
  122. package/views/dist/controls/picker/picker.d.ts +7 -0
  123. package/views/dist/controls/picker/picker.js +57 -8
  124. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  125. package/views/dist/controls/popover/map-popover.js +2 -2
  126. package/views/dist/controls/popover/popover.js +2 -1
  127. package/views/dist/controls/popover.css +3 -0
  128. package/views/dist/controls/ports-host/map-ports-host.d.ts +7 -0
  129. package/views/dist/controls/ports-host/map-ports-host.js +43 -0
  130. package/views/dist/controls/press/tokens.d.ts +8 -0
  131. package/views/dist/controls/press/tokens.js +4 -0
  132. package/views/dist/controls/press.css +44 -0
  133. package/views/dist/controls/quick-filters/looks.d.ts +11 -0
  134. package/views/dist/controls/quick-filters/looks.js +9 -0
  135. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +31 -0
  136. package/views/dist/controls/quick-filters/map-quick-filters-body.js +59 -0
  137. package/views/dist/controls/quick-filters/quick-filters.d.ts +37 -0
  138. package/views/dist/controls/quick-filters/quick-filters.js +89 -0
  139. package/views/dist/controls/quick-filters/reminder.d.ts +18 -0
  140. package/views/dist/controls/quick-filters/reminder.js +41 -0
  141. package/views/dist/controls/quick-filters/rules.d.ts +89 -0
  142. package/views/dist/controls/quick-filters/rules.js +52 -0
  143. package/views/dist/controls/quick-filters/tokens.d.ts +112 -0
  144. package/views/dist/controls/quick-filters/tokens.js +30 -0
  145. package/views/dist/controls/quick-filters/words.d.ts +25 -0
  146. package/views/dist/controls/quick-filters/words.js +13 -0
  147. package/views/dist/controls/quick-filters.css +118 -0
  148. package/views/dist/controls/sheet/bottom-sheet.d.ts +9 -4
  149. package/views/dist/controls/sheet/bottom-sheet.js +4 -4
  150. package/views/dist/controls/sheet/map-sheet.d.ts +4 -1
  151. package/views/dist/controls/sheet/map-sheet.js +19 -6
  152. package/views/dist/controls/sheet/sheet-parts.d.ts +10 -0
  153. package/views/dist/controls/sheet/sheet-parts.js +2 -0
  154. package/views/dist/controls/switch-row/switch-row.d.ts +15 -0
  155. package/views/dist/controls/switch-row/switch-row.js +9 -0
  156. package/views/dist/controls/switch-row/tokens.d.ts +51 -0
  157. package/views/dist/controls/switch-row/tokens.js +15 -0
  158. package/views/dist/controls/switch-row.css +39 -0
  159. package/views/dist/controls/switch.css +1 -1
  160. package/views/dist/controls/tag/tag.js +3 -1
  161. package/views/dist/controls/tag-field/tag-field.d.ts +20 -0
  162. package/views/dist/controls/tag-field/tag-field.js +19 -0
  163. package/views/dist/controls/tag-field/tokens.d.ts +7 -0
  164. package/views/dist/controls/tag-field/tokens.js +4 -0
  165. package/views/dist/controls/tag-field.css +13 -0
  166. package/views/dist/controls/text-editor/looks.js +1 -1
  167. package/views/dist/controls/text-editor/map-text-body.d.ts +1 -1
  168. package/views/dist/controls/text-editor/map-text-body.js +2 -2
  169. package/views/dist/controls/text-editor/text-editor.d.ts +3 -0
  170. package/views/dist/controls/text-editor/text-editor.js +17 -7
  171. package/views/dist/controls/text-editor.css +11 -0
  172. package/views/dist/controls/toast/toast.d.ts +5 -1
  173. package/views/dist/controls/toast/toast.js +5 -3
  174. package/views/dist/controls/tokens.js +18 -0
  175. package/views/dist/controls/toolbar/keys.d.ts +3 -0
  176. package/views/dist/controls/toolbar/keys.js +11 -0
  177. package/views/dist/controls/toolbar/looks.d.ts +10 -0
  178. package/views/dist/controls/toolbar/looks.js +40 -0
  179. package/views/dist/controls/toolbar/tokens.d.ts +28 -0
  180. package/views/dist/controls/toolbar/tokens.js +9 -0
  181. package/views/dist/controls/toolbar/toolbar.d.ts +111 -0
  182. package/views/dist/controls/toolbar/toolbar.js +370 -0
  183. package/views/dist/controls/toolbar/words.d.ts +28 -0
  184. package/views/dist/controls/toolbar/words.js +17 -0
  185. package/views/dist/controls/toolbar-button/looks.d.ts +4 -0
  186. package/views/dist/controls/toolbar-button/looks.js +21 -0
  187. package/views/dist/controls/toolbar-button/tokens.d.ts +103 -0
  188. package/views/dist/controls/toolbar-button/tokens.js +28 -0
  189. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +66 -0
  190. package/views/dist/controls/toolbar-button/toolbar-button.js +51 -0
  191. package/views/dist/controls/toolbar-button.css +75 -0
  192. package/views/dist/controls/toolbar.css +65 -0
  193. package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
  194. package/views/dist/controls/tooltip/map-tooltip.js +2 -2
  195. package/views/dist/controls/tooltip/tooltip.d.ts +3 -1
  196. package/views/dist/controls/tooltip/tooltip.js +2 -2
  197. package/views/dist/controls/values-editor/looks.js +1 -1
  198. package/views/dist/controls/values-editor/values.js +6 -2
  199. package/views/dist/controls/views-list/map-views-list-body.d.ts +4 -1
  200. package/views/dist/controls/views-list/map-views-list-body.js +128 -4
  201. package/views/dist/controls/views-list/rules.d.ts +26 -0
  202. package/views/dist/controls/views-list/rules.js +63 -0
  203. package/views/dist/controls/views-list/view-menu.d.ts +84 -0
  204. package/views/dist/controls/views-list/view-menu.js +201 -0
  205. package/views/dist/controls/views-list/views-list.d.ts +8 -1
  206. package/views/dist/controls/views-list/views-list.js +18 -3
  207. package/views/dist/controls/views-list/words.d.ts +54 -0
  208. package/views/dist/controls/views-list/words.js +10 -1
  209. package/views/dist/controls/views-list.css +5 -1
  210. package/views/dist/display/date.js +3 -3
  211. package/views/dist/display/format.d.ts +6 -0
  212. package/views/dist/display/format.js +3 -0
  213. package/views/dist/display/index.d.ts +1 -1
  214. package/views/dist/display/index.js +1 -1
  215. package/views/dist/display/options.d.ts +1 -1
  216. package/views/dist/display/range.d.ts +2 -1
  217. package/views/dist/display/range.js +4 -1
  218. package/views/dist/display/rich-text.js +0 -1
  219. package/views/dist/editors/ChipsEditor.d.ts +4 -5
  220. package/views/dist/editors/ChipsEditor.js +12 -78
  221. package/views/dist/editors/DateEditor.d.ts +12 -16
  222. package/views/dist/editors/DateEditor.js +40 -191
  223. package/views/dist/editors/EditorPanel.d.ts +2 -6
  224. package/views/dist/editors/EditorPanel.js +2 -2
  225. package/views/dist/editors/LocationEditor.d.ts +11 -19
  226. package/views/dist/editors/LocationEditor.js +19 -211
  227. package/views/dist/editors/NameEditor.d.ts +8 -16
  228. package/views/dist/editors/NameEditor.js +11 -100
  229. package/views/dist/editors/NumberEditor.d.ts +14 -21
  230. package/views/dist/editors/NumberEditor.js +22 -49
  231. package/views/dist/editors/RangeEditor.d.ts +9 -33
  232. package/views/dist/editors/RangeEditor.js +12 -97
  233. package/views/dist/editors/RelationEditor.d.ts +6 -9
  234. package/views/dist/editors/RelationEditor.js +11 -30
  235. package/views/dist/editors/RelationSetEditor.d.ts +13 -24
  236. package/views/dist/editors/RelationSetEditor.js +33 -101
  237. package/views/dist/editors/SelectEditor.d.ts +15 -17
  238. package/views/dist/editors/SelectEditor.js +15 -94
  239. package/views/dist/editors/TextEditor.d.ts +23 -26
  240. package/views/dist/editors/TextEditor.js +11 -48
  241. package/views/dist/editors/ValueListEditor.d.ts +14 -23
  242. package/views/dist/editors/ValueListEditor.js +16 -202
  243. package/views/dist/editors/body-panel.d.ts +13 -7
  244. package/views/dist/editors/body-panel.js +3 -7
  245. package/views/dist/editors/edit-cores.d.ts +15 -15
  246. package/views/dist/editors/edit-cores.js +14 -14
  247. package/views/dist/editors/number-body.d.ts +1 -1
  248. package/views/dist/editors/number-step.d.ts +0 -34
  249. package/views/dist/editors/number-step.js +0 -37
  250. package/views/dist/editors/option-add-flow.d.ts +1 -13
  251. package/views/dist/editors/option-add-flow.js +0 -22
  252. package/views/dist/editors/relation-links-body.d.ts +2 -3
  253. package/views/dist/editors/relation-picker.d.ts +13 -3
  254. package/views/dist/editors/relation-source.d.ts +0 -22
  255. package/views/dist/editors/relation-source.js +0 -21
  256. package/views/dist/field-row/FieldRow.js +5 -6
  257. package/views/dist/field-row/FieldRowLane.js +0 -1
  258. package/views/dist/field-row/editors/RowChipsEditor.js +2 -2
  259. package/views/dist/field-row/editors/RowDateEditor.d.ts +2 -2
  260. package/views/dist/field-row/editors/RowDateEditor.js +2 -2
  261. package/views/dist/field-row/editors/RowNameEditor.d.ts +2 -5
  262. package/views/dist/field-row/editors/RowNameEditor.js +7 -12
  263. package/views/dist/field-row/editors/RowNumberEditor.d.ts +1 -1
  264. package/views/dist/field-row/editors/RowNumberEditor.js +4 -4
  265. package/views/dist/field-row/editors/RowPlaceEditor.js +3 -3
  266. package/views/dist/field-row/editors/RowRangeEditor.d.ts +2 -5
  267. package/views/dist/field-row/editors/RowRangeEditor.js +7 -14
  268. package/views/dist/field-row/editors/RowRelationEditor.js +3 -3
  269. package/views/dist/field-row/editors/RowSelectEditor.js +2 -2
  270. package/views/dist/field-row/editors/RowTextEditor.d.ts +1 -1
  271. package/views/dist/field-row/editors/RowTextEditor.js +3 -4
  272. package/views/dist/field-row/editors/RowValueListEditor.js +5 -5
  273. package/views/dist/field-row/field-row-button.d.ts +6 -9
  274. package/views/dist/field-row/field-row-button.js +1 -6
  275. package/views/dist/field-row/field-row-checkbox.d.ts +1 -1
  276. package/views/dist/field-row/row-target.d.ts +0 -7
  277. package/views/dist/field-row/row-target.js +0 -2
  278. package/views/dist/grid/chrome/GridAddColumn.d.ts +2 -1
  279. package/views/dist/grid/chrome/GridAddColumn.js +8 -66
  280. package/views/dist/grid/chrome/GridAggregateMenu.d.ts +5 -7
  281. package/views/dist/grid/chrome/GridAggregateMenu.js +20 -39
  282. package/views/dist/grid/chrome/GridCellEditors.d.ts +2 -2
  283. package/views/dist/grid/chrome/GridCellEditors.js +12 -12
  284. package/views/dist/grid/chrome/GridChipsEditor.js +3 -3
  285. package/views/dist/grid/chrome/GridColumnMenu.d.ts +11 -12
  286. package/views/dist/grid/chrome/GridColumnMenu.js +32 -93
  287. package/views/dist/grid/chrome/GridDateEditor.d.ts +6 -6
  288. package/views/dist/grid/chrome/GridDateEditor.js +3 -3
  289. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -6
  290. package/views/dist/grid/chrome/GridGroupMenu.js +21 -62
  291. package/views/dist/grid/chrome/GridHeader.d.ts +1 -2
  292. package/views/dist/grid/chrome/GridHeader.js +3 -2
  293. package/views/dist/grid/chrome/GridLongTextEditor.d.ts +17 -38
  294. package/views/dist/grid/chrome/GridLongTextEditor.js +6 -7
  295. package/views/dist/grid/chrome/GridNameEditor.js +4 -4
  296. package/views/dist/grid/chrome/GridNumberEditor.d.ts +4 -5
  297. package/views/dist/grid/chrome/GridNumberEditor.js +5 -6
  298. package/views/dist/grid/chrome/GridPlaceEditor.d.ts +2 -5
  299. package/views/dist/grid/chrome/GridPlaceEditor.js +5 -5
  300. package/views/dist/grid/chrome/GridRangeEditor.d.ts +6 -12
  301. package/views/dist/grid/chrome/GridRangeEditor.js +7 -15
  302. package/views/dist/grid/chrome/GridRelationEditor.js +5 -5
  303. package/views/dist/grid/chrome/GridRow.js +0 -3
  304. package/views/dist/grid/chrome/GridRowActions.d.ts +1 -1
  305. package/views/dist/grid/chrome/GridRowActions.js +0 -5
  306. package/views/dist/grid/chrome/GridRowCells.js +11 -7
  307. package/views/dist/grid/chrome/GridSelectEditor.js +3 -3
  308. package/views/dist/grid/chrome/GridStructure.js +0 -1
  309. package/views/dist/grid/chrome/GridTable.js +1 -1
  310. package/views/dist/grid/chrome/GridTextEditor.d.ts +5 -7
  311. package/views/dist/grid/chrome/GridTextEditor.js +5 -18
  312. package/views/dist/grid/chrome/GridValueListEditor.js +4 -4
  313. package/views/dist/grid/chrome/grid-body-place.d.ts +2 -3
  314. package/views/dist/grid/chrome/grid-body-place.js +4 -8
  315. package/views/dist/grid/chrome/grid-button.d.ts +7 -10
  316. package/views/dist/grid/chrome/grid-button.js +1 -6
  317. package/views/dist/grid/chrome/grid-cell-classes.js +1 -1
  318. package/views/dist/grid/chrome/grid-column-menu-items.d.ts +4 -4
  319. package/views/dist/grid/chrome/grid-column-menu-items.js +10 -6
  320. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -1
  321. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  322. package/views/dist/grid/chrome/grid-fitted-box.d.ts +7 -1
  323. package/views/dist/grid/chrome/grid-fitted-box.js +4 -4
  324. package/views/dist/grid/chrome/grid-group-menu-parts.d.ts +5 -9
  325. package/views/dist/grid/chrome/grid-group-menu-parts.js +1 -3
  326. package/views/dist/grid/chrome/grid-hover.js +0 -1
  327. package/views/dist/grid/chrome/grid-menu-focus.d.ts +7 -31
  328. package/views/dist/grid/chrome/grid-menu-focus.js +7 -47
  329. package/views/dist/grid/chrome/grid-styles.d.ts +0 -3
  330. package/views/dist/grid/chrome/grid-styles.js +0 -1
  331. package/views/dist/grid/chrome/grid-table-props.d.ts +6 -10
  332. package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -4
  333. package/views/dist/grid/core/clipboard-model.js +9 -4
  334. package/views/dist/grid/core/editing-controller.d.ts +2 -1
  335. package/views/dist/grid/core/editing-controller.js +10 -2
  336. package/views/dist/grid/core/refusal-sentence.d.ts +3 -0
  337. package/views/dist/grid/core/refusal-sentence.js +2 -2
  338. package/views/dist/grid/core/write-states.d.ts +3 -1
  339. package/views/dist/grid/core/write-states.js +6 -2
  340. package/views/dist/grid/grid.css +240 -0
  341. package/views/dist/grid/looks.d.ts +5 -1
  342. package/views/dist/grid/looks.js +20 -12
  343. package/views/dist/grid-tokens.d.ts +109 -0
  344. package/views/dist/grid-tokens.js +29 -0
  345. package/views/dist/looks/index.d.ts +5 -0
  346. package/views/dist/looks/index.js +5 -0
  347. package/views/dist/looks/pieces.js +10 -0
  348. package/views/dist/model/body-frame.d.ts +0 -32
  349. package/views/dist/model/body-frame.js +1 -15
  350. package/views/dist/model/column-capabilities.d.ts +2 -0
  351. package/views/dist/model/column-filters.d.ts +2 -1
  352. package/views/dist/model/column-from.js +2 -2
  353. package/views/dist/model/column-inspect.d.ts +5 -5
  354. package/views/dist/model/column-inspect.js +2 -2
  355. package/views/dist/model/relation-filters.d.ts +2 -0
  356. package/views/dist/panels/customize-body.d.ts +1 -10
  357. package/views/dist/panels/customize-body.js +0 -3
  358. package/views/dist/panels/filter/MenuSelect.js +0 -5
  359. package/views/dist/panels/filter/RangeFilterBody.js +0 -1
  360. package/views/dist/panels/filter/details.d.ts +1 -5
  361. package/views/dist/panels/filter/details.js +0 -13
  362. package/views/dist/panels/filter/filter-list.d.ts +0 -1
  363. package/views/dist/panels/filter/filter-list.js +1 -1
  364. package/views/dist/panels/index.d.ts +2 -2
  365. package/views/dist/panels/index.js +2 -2
  366. package/views/dist/panels/labels.d.ts +4 -0
  367. package/views/dist/panels/labels.js +8 -0
  368. package/views/dist/panels/model.d.ts +10 -2
  369. package/views/dist/panels/panel-button.d.ts +10 -12
  370. package/views/dist/panels/panel-button.js +1 -6
  371. package/views/dist/panels/quick/model.d.ts +4 -0
  372. package/views/dist/panels/react/chrome.d.ts +0 -17
  373. package/views/dist/panels/react/chrome.js +0 -8
  374. package/views/dist/panels/react/customize-body.d.ts +14 -12
  375. package/views/dist/panels/react/customize-body.js +93 -19
  376. package/views/dist/panels/react/customize.d.ts +16 -12
  377. package/views/dist/panels/react/customize.js +4 -110
  378. package/views/dist/panels/react/filter/FilterEditor.d.ts +4 -18
  379. package/views/dist/panels/react/filter/FilterEditor.js +6 -330
  380. package/views/dist/panels/react/filter/FilterFieldList.d.ts +1 -1
  381. package/views/dist/panels/react/filter/FilterFieldList.js +27 -51
  382. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +1 -11
  383. package/views/dist/panels/react/filter/PhoneFilterEditor.js +8 -144
  384. package/views/dist/panels/react/filter/editor-ctx.d.ts +1 -33
  385. package/views/dist/panels/react/filter/editor-ctx.js +5 -33
  386. package/views/dist/panels/react/filter/filter-body.js +5 -2
  387. package/views/dist/panels/react/filter/filter-part-body.d.ts +3 -6
  388. package/views/dist/panels/react/filter/filter-part-body.js +0 -5
  389. package/views/dist/panels/react/filter/rule-writes.d.ts +1 -26
  390. package/views/dist/panels/react/filter/rule-writes.js +4 -95
  391. package/views/dist/panels/react/order-details.d.ts +1 -26
  392. package/views/dist/panels/react/order-details.js +3 -69
  393. package/views/dist/panels/react/panel-header.js +0 -1
  394. package/views/dist/panels/react/panel-step.d.ts +3 -0
  395. package/views/dist/panels/react/panel-step.js +2 -1
  396. package/views/dist/panels/react/popover.d.ts +4 -7
  397. package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +2 -4
  398. package/views/dist/panels/react/quick/QuickFiltersPanel.js +16 -136
  399. package/views/dist/panels/react/sort/SortEditor.d.ts +4 -4
  400. package/views/dist/panels/react/sort/SortEditor.js +8 -245
  401. package/views/dist/panels/react/sort/SortFieldList.d.ts +1 -1
  402. package/views/dist/panels/react/sort/SortFieldList.js +11 -25
  403. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +13 -3
  404. package/views/dist/panels/react/toolbar/ReadyToolbar.js +10 -3
  405. package/views/dist/panels/react/toolbar/Toolbar.js +1 -1
  406. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +2 -2
  407. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  408. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +16 -18
  409. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +2 -1
  410. package/views/dist/panels/react/toolbar/ToolbarFilters.js +3 -3
  411. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +12 -4
  412. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -2
  413. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
  414. package/views/dist/panels/react/toolbar/ToolbarSave.js +0 -4
  415. package/views/dist/panels/react/toolbar/ToolbarSearch.js +0 -1
  416. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +3 -3
  417. package/views/dist/panels/react/view-actions.js +0 -1
  418. package/views/dist/panels/react/views-row/FoldingViewRow.js +2 -5
  419. package/views/dist/panels/react/views-row/ViewCreatePill.js +0 -1
  420. package/views/dist/panels/react/views-row/ViewPicker.js +30 -45
  421. package/views/dist/panels/react/views-row/ViewPickerRow.js +0 -2
  422. package/views/dist/panels/react/views-row/menu-classes.d.ts +0 -4
  423. package/views/dist/panels/react/views-row/menu-classes.js +0 -2
  424. package/views/dist/panels/react.d.ts +5 -12
  425. package/views/dist/panels/react.js +5 -12
  426. package/views/dist/panels/settings/filter-groups.d.ts +3 -0
  427. package/views/dist/panels/settings/filter-groups.js +40 -9
  428. package/views/dist/panels/settings/filters.d.ts +5 -0
  429. package/views/dist/panels/settings/filters.js +12 -6
  430. package/views/dist/panels/views-row/model.d.ts +10 -1
  431. package/views/dist/provider/ViewsProvider.d.ts +2 -46
  432. package/views/dist/provider/ViewsProvider.js +31 -27
  433. package/views/dist/provider/components.d.ts +295 -107
  434. package/views/dist/provider/context.d.ts +7 -21
  435. package/views/dist/provider/missing-slot.d.ts +3 -7
  436. package/views/dist/provider/missing-slot.js +2 -9
  437. package/views/dist/provider/ports.d.ts +18 -6
  438. package/views/dist/provider/ports.js +2 -1
  439. package/views/dist/react.d.ts +2 -3
  440. package/views/dist/react.js +1 -1
  441. package/views/dist/selection/SelectionBar.d.ts +2 -16
  442. package/views/dist/selection/SelectionBar.js +6 -4
  443. package/views/dist/selection/bar-props.d.ts +26 -0
  444. package/views/dist/selection/bar-props.js +1 -0
  445. package/views/dist/selection/index.d.ts +1 -1
  446. package/views/dist/selection/verbs.d.ts +32 -5
  447. package/views/dist/styles.css +694 -191
  448. package/views/dist/styles.unlayered.css +691 -188
  449. package/views/docs/contract.md +133 -130
  450. package/views/docs/controls/bulk-bar.md +41 -0
  451. package/views/docs/controls/choice.md +25 -0
  452. package/views/docs/controls/customize.md +17 -0
  453. package/views/docs/controls/popover.md +2 -0
  454. package/views/docs/controls/press.md +9 -0
  455. package/views/docs/controls/quick-filters.md +35 -0
  456. package/views/docs/controls/radio.md +1 -1
  457. package/views/docs/controls/switch-row.md +18 -0
  458. package/views/docs/controls/tag-field.md +7 -0
  459. package/views/docs/controls/toolbar-button.md +31 -0
  460. package/views/docs/controls/toolbar.md +14 -0
  461. package/views/docs/getting-started.md +222 -2
  462. package/views/docs/guides/atoms.md +2 -2
  463. package/views/docs/guides/cells.md +224 -4
  464. package/views/docs/guides/display.md +3 -3
  465. package/views/docs/guides/editors.md +235 -20
  466. package/views/docs/guides/looks.md +8 -2
  467. package/views/docs/guides/ports.md +7 -7
  468. package/views/docs/guides/selection.md +5 -1
  469. package/views/docs/guides/the-grid.md +15 -17
  470. package/views/docs/guides/the-provider.md +9 -15
  471. package/views/docs/install.md +4 -1
  472. package/views/docs/reference/cells.md +2 -2
  473. package/views/docs/reference/controls.md +215 -21
  474. package/views/docs/reference/display.md +1 -0
  475. package/views/docs/reference/editors-chips.md +2 -2
  476. package/views/docs/reference/editors-date.md +4 -4
  477. package/views/docs/reference/editors-location.md +4 -7
  478. package/views/docs/reference/editors-name.md +3 -5
  479. package/views/docs/reference/editors-number.md +10 -10
  480. package/views/docs/reference/editors-panel.md +3 -3
  481. package/views/docs/reference/editors-range.md +3 -5
  482. package/views/docs/reference/editors-relation.md +4 -4
  483. package/views/docs/reference/editors-select.md +3 -3
  484. package/views/docs/reference/editors-text.md +3 -4
  485. package/views/docs/reference/editors-value-list.md +3 -3
  486. package/views/docs/reference/field-row.md +1 -1
  487. package/views/docs/reference/grid.md +2 -2
  488. package/views/docs/reference/looks.md +25 -11
  489. package/views/docs/reference/panels-react.md +23 -37
  490. package/views/docs/reference/panels.md +8 -6
  491. package/views/docs/reference/react.md +24 -24
  492. package/views/docs/reference/selection.md +4 -2
  493. package/views/docs/reference/views.md +12 -11
  494. package/views/skills/views/SKILL.md +2 -2
  495. package/views/dist/editors/relation-panel.d.ts +0 -69
  496. package/views/dist/editors/relation-panel.js +0 -46
  497. package/views/dist/grid/chrome/GridColumnColorSection.d.ts +0 -13
  498. package/views/dist/grid/chrome/GridColumnColorSection.js +0 -40
  499. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +0 -28
  500. package/views/dist/grid/chrome/GridColumnDateSection.js +0 -23
  501. package/views/dist/grid/chrome/GridColumnDurationSection.d.ts +0 -23
  502. package/views/dist/grid/chrome/GridColumnDurationSection.js +0 -24
  503. package/views/dist/grid/chrome/GridColumnNumberSection.d.ts +0 -29
  504. package/views/dist/grid/chrome/GridColumnNumberSection.js +0 -27
  505. package/views/dist/grid/chrome/GridColumnPercentSection.d.ts +0 -16
  506. package/views/dist/grid/chrome/GridColumnPercentSection.js +0 -16
  507. package/views/dist/grid/chrome/GridColumnSortSection.d.ts +0 -38
  508. package/views/dist/grid/chrome/GridColumnSortSection.js +0 -33
  509. package/views/dist/grid/chrome/GridFlyout.d.ts +0 -44
  510. package/views/dist/grid/chrome/GridFlyout.js +0 -80
  511. package/views/dist/grid/chrome/GridMenuRow.d.ts +0 -15
  512. package/views/dist/grid/chrome/GridMenuRow.js +0 -15
  513. package/views/dist/grid/chrome/grid-menu-search.d.ts +0 -7
  514. package/views/dist/grid/chrome/grid-menu-search.js +0 -7
  515. package/views/dist/panels/react/GroupBucketsList.d.ts +0 -16
  516. package/views/dist/panels/react/GroupBucketsList.js +0 -44
  517. package/views/dist/panels/react/LayoutColumnsList.d.ts +0 -24
  518. package/views/dist/panels/react/LayoutColumnsList.js +0 -101
  519. package/views/dist/panels/react/PopoverColumnDetail.d.ts +0 -11
  520. package/views/dist/panels/react/PopoverColumnDetail.js +0 -24
  521. package/views/dist/panels/react/drag.d.ts +0 -2
  522. package/views/dist/panels/react/drag.js +0 -5
  523. package/views/dist/panels/react/layout-detail.d.ts +0 -4
  524. package/views/dist/panels/react/layout-detail.js +0 -29
  525. package/views/dist/panels/react/root-list.d.ts +0 -6
  526. package/views/dist/panels/react/root-list.js +0 -31
  527. package/views/dist/panels/react/sort/use-sort-drag.d.ts +0 -17
  528. package/views/dist/panels/react/sort/use-sort-drag.js +0 -39
  529. package/views/dist/panels/react/view-footer.d.ts +0 -20
  530. package/views/dist/panels/react/view-footer.js +0 -41
@@ -0,0 +1,96 @@
1
+ /* The bulk bar (the Outright kit's, KIT-680; ViewKit's since VK-725, as BulkBar): what picked rows bring, Attio's, as the toolbar's
2
+ map (step 5) and canvas (rounds 8 and 15) draw it. Every value it draws with is a name ViewKit's controls read
3
+ (docs/controls/bulk-bar.md). It draws its surface, its place, its count, the room its Toast rises in, and its measuring row; what
4
+ it holds draws itself (the Toolbar, the Button). Every value a token:
5
+
6
+ .o-bulk-bar the surface, placed in the list that holds it (its nearest placed box), at its bottom centre
7
+ data-form computer · tray · pill the computer's bar, the phone's tray, or the phone's pill (Tweaks' Form)
8
+ data-shown while rows are picked; without it, it has left (display none, after its going)
9
+ .o-bulk-bar-count the computer's count: the number, Selected and ×, its edge dashed (one button, which clears)
10
+ .o-bulk-bar-number the number on the brand (the bar's own until the kit has a count badge, KIT-143); on the pill, in it
11
+ .o-bulk-bar-words the pill's count: "3 selected"
12
+ .o-bulk-bar-toasts the room its Toast rises in, just above it, as round 15 draws it over the tray
13
+ .o-bulk-bar-measure every verb out of sight, measured for what fits (bulk-bar.tsx)
14
+ --bulk-bar-bottom how far above the list's foot it stands; --bulk-bar-height, how tall it is: set once for each form, on
15
+ the bar, the room its Toast rises in and what holds the bar (its parent), which read them both
16
+ --bulk-bar-room the room it takes at its holder's foot, handed to the holder while it is shown (none when it isn't): how
17
+ far above the foot it stands, its height and a step; a list in the holder that scrolls takes it at its
18
+ foot, so its last row scrolls clear above the bar (KIT-771) */
19
+ @layer components {
20
+
21
+ /* Where it stands and how tall it is, for each form: read by the bar, by the room its Toast rises in, and by what holds the bar. */
22
+ :is(.o-bulk-bar, .o-bulk-bar-toasts), :has(> .o-bulk-bar) { --bulk-bar-bottom: calc(var(--vk-spacing) * 4); --bulk-bar-height: calc(var(--vk-spacing) * 11 + var(--vk-border-width) * 2); }
23
+ :is(.o-bulk-bar, .o-bulk-bar-toasts)[data-form="tray"], :has(> .o-bulk-bar[data-form="tray"]) {
24
+ --bulk-bar-bottom: max(var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)), calc(var(--vk-spacing) * 4));
25
+ --bulk-bar-height: calc(var(--vk-spacing) * 15 + var(--vk-border-width) * 2);
26
+ }
27
+ :is(.o-bulk-bar, .o-bulk-bar-toasts)[data-form="pill"], :has(> .o-bulk-bar[data-form="pill"]) {
28
+ --bulk-bar-bottom: max(var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)), calc(var(--vk-spacing) * 4));
29
+ --bulk-bar-height: calc(var(--vk-spacing) * 13);
30
+ }
31
+ /* The room it takes, handed to what holds it while it is shown, and gone with it: a list that scrolls in the holder pads its foot by
32
+ it, so its last row scrolls whole above the bar, a step clear of it (KIT-771). */
33
+ :has(> .o-bulk-bar) { --bulk-bar-room: 0; }
34
+ :has(> .o-bulk-bar[data-shown]) { --bulk-bar-room: calc(var(--bulk-bar-bottom) + var(--bulk-bar-height) + var(--vk-spacing) * 2); }
35
+
36
+ .o-bulk-bar {
37
+ position: absolute; z-index: var(--vk-layer-sticky); left: 50%; bottom: var(--bulk-bar-bottom); translate: -50% 0;
38
+ display: flex; box-sizing: border-box; width: max-content; max-width: calc(100% - var(--vk-spacing) * 8);
39
+ padding: calc(var(--vk-spacing) * 1.5);
40
+ border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-xl);
41
+ background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); color: var(--vk-fg); white-space: nowrap;
42
+ opacity: 1;
43
+ }
44
+ .o-bulk-bar:not([data-shown]) { display: none; opacity: 0; translate: -50% calc(var(--vk-spacing) * 2); }
45
+
46
+ /* It comes up from just under its place and goes back down, as a popup comes. Still where a person asks for less motion. */
47
+ @media (prefers-reduced-motion: no-preference) {
48
+ .o-bulk-bar {
49
+ transition: opacity var(--vk-duration-base) var(--vk-ease-out), translate var(--vk-duration-base) var(--vk-ease-out), display var(--vk-duration-base) allow-discrete;
50
+ @starting-style { opacity: 0; translate: -50% calc(var(--vk-spacing) * 2); }
51
+ }
52
+ }
53
+
54
+ /* The count: the number on the brand, Selected, ×; its edge dashed, as Attio's. One button: a press clears the selection. */
55
+ .o-bulk-bar-count {
56
+ display: inline-flex; flex: none; align-items: center; gap: calc(var(--vk-spacing) * 2); box-sizing: border-box;
57
+ height: calc(var(--vk-spacing) * 8); margin: 0; padding-inline: calc(var(--vk-spacing) * 1.5) calc(var(--vk-spacing) * 2);
58
+ border: var(--vk-border-width) dashed var(--vk-border-input); border-radius: var(--vk-radius-lg); background-color: transparent;
59
+ color: var(--vk-fg-subtle); font: inherit; font-size: var(--vk-font-size-sm); line-height: var(--vk-line-height-sm); font-weight: var(--vk-font-weight-medium);
60
+ white-space: nowrap; cursor: pointer;
61
+ }
62
+ .o-bulk-bar-count > svg { flex: none; color: var(--vk-fg-subtlest); }
63
+ @media (hover: hover) { .o-bulk-bar-count:hover:not(:disabled) { background-color: var(--vk-neutral-hovered); } }
64
+ .o-bulk-bar-count:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
65
+ .o-bulk-bar-count:disabled { color: var(--vk-fg-disabled); cursor: not-allowed; }
66
+
67
+ .o-bulk-bar-number {
68
+ display: inline-grid; place-items: center; box-sizing: border-box; min-width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5);
69
+ padding-inline: calc(var(--vk-spacing) * 1.25); border-radius: var(--vk-radius-sm);
70
+ background-color: var(--vk-brand); color: var(--vk-fg-on-brand);
71
+ font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-semibold); font-variant-numeric: tabular-nums;
72
+ }
73
+
74
+ /* Every verb, out of sight and out of reach, measured as drawn, in a box of no size, so it never widens what holds the bar. */
75
+ .o-bulk-bar-measure { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
76
+ .o-bulk-bar-measure > div { display: flex; width: max-content; gap: calc(var(--vk-spacing) * 1.5); white-space: nowrap; }
77
+ .o-bulk-bar-measure [data-m="sep"] { display: inline-flex; }
78
+ .o-bulk-bar[data-form="tray"] .o-bulk-bar-measure > div { gap: calc(var(--vk-spacing) * 2); }
79
+
80
+ /* On a phone, the tray: the verbs at 44 on the overlay, standing just above the phone's foot. */
81
+ .o-bulk-bar[data-form="tray"] { padding: calc(var(--vk-spacing) * 2); border-radius: var(--vk-radius-2xl); box-shadow: var(--vk-shadow-menu); }
82
+
83
+ /* The pill, the other way: the count in the brand, ✕, a hairline, Actions; round. */
84
+ .o-bulk-bar[data-form="pill"] {
85
+ align-items: center; box-sizing: border-box; height: calc(var(--vk-spacing) * 13);
86
+ padding: 0 calc(var(--vk-spacing) * 1.5) 0 calc(var(--vk-spacing) * 4.5); border-radius: var(--vk-radius-full); box-shadow: var(--vk-shadow-menu);
87
+ }
88
+ .o-bulk-bar-words { flex: none; color: var(--vk-fg-subtle); font-size: var(--vk-font-size-base); line-height: var(--vk-line-height-base); }
89
+ .o-bulk-bar-words > .o-bulk-bar-number { display: inline; min-width: 0; height: auto; padding: 0; border-radius: 0; background-color: transparent; color: var(--vk-fg-accent); font-size: inherit; line-height: inherit; }
90
+
91
+ /* Its Toast rises just above it: the Toast's own room (inside), whose foot stands a step above the bar's top. */
92
+ .o-bulk-bar-toasts {
93
+ position: absolute; z-index: var(--vk-layer-sticky); inset-inline: 0; height: 0; pointer-events: none;
94
+ bottom: calc(var(--bulk-bar-bottom) + var(--bulk-bar-height) - var(--vk-spacing) * 2);
95
+ }
96
+ }
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { Button as BaseButton } from "@base-ui/react/button";
4
4
  import { cx } from "../../internal/cx.js";
5
+ import { phoneMark, usePhoneForm } from "../internal/phone.js";
5
6
  import { Spinner } from "../spinner/spinner.js";
6
7
  import { buttonOwnAttrs } from "./own-look.js";
7
8
  const KIND = {
@@ -20,6 +21,7 @@ export const Button = React.forwardRef(function Button({ kind, size, shape, load
20
21
  if (process.env.NODE_ENV !== "production" && (shape === "icon" || shape === "round") && !props["aria-label"] && !props["aria-labelledby"])
21
22
  console.warn("ViewKit Button: an icon-only button needs an aria-label, the name its tooltip shows too.");
22
23
  const link = React.isValidElement(props.render) && props.render.props.href != null;
24
+ const phone = usePhoneForm();
23
25
  const linkKeys = link ? {
24
26
  role: props.role,
25
27
  onKeyDown: (e) => { if (e.key === " ")
@@ -27,7 +29,7 @@ export const Button = React.forwardRef(function Button({ kind, size, shape, load
27
29
  onKeyUp: (e) => { if (e.key === " ")
28
30
  e.preventBaseUIHandler?.(); props.onKeyUp?.(e); },
29
31
  } : {};
30
- return (_jsxs(BaseButton, { ref: ref, className: cx(buttonClass(kind, size, shape), className), "aria-busy": loading || undefined, onClick: loading ? (e) => e.preventDefault() : onClick, "data-kit": "button", ...(look ? buttonOwnAttrs(look) : {}), ...props, ...linkKeys, children: [icon != null && _jsx("span", { "data-slot": "vk-button-icon", children: icon }), children != null && _jsx("span", { "data-slot": "vk-button-label", children: children }), iconEnd != null && _jsx("span", { "data-slot": "vk-button-icon", children: iconEnd }), loading && _jsx("span", { "data-slot": "vk-button-spinner", children: _jsx(Spinner, { size: size === "sm" ? 14 : size == null || size === "md" || size === "lg" || size === "44" || size === "32x44" || size === "40x44" ? 16 : 12, label: "" }) }), _jsx("span", { className: "o-button-cut", "aria-hidden": "true", children: _jsx("span", { className: "o-smooth o-smooth-ease" }) })] }));
32
+ return (_jsxs(BaseButton, { ref: ref, className: cx(buttonClass(kind, size, shape), className), "aria-busy": loading || undefined, onClick: loading ? (e) => e.preventDefault() : onClick, "data-kit": "button", ...phoneMark(phone), ...(look ? buttonOwnAttrs(look) : {}), ...props, ...linkKeys, children: [icon != null && _jsx("span", { "data-slot": "vk-button-icon", children: icon }), children != null && _jsx("span", { "data-slot": "vk-button-label", children: children }), iconEnd != null && _jsx("span", { "data-slot": "vk-button-icon", children: iconEnd }), loading && _jsx("span", { "data-slot": "vk-button-spinner", children: _jsx(Spinner, { size: size === "sm" ? 14 : size == null || size === "md" || size === "lg" || size === "44" || size === "32x44" || size === "40x44" ? 16 : 12, label: "" }) }), _jsx("span", { className: "o-button-cut", "aria-hidden": "true", children: _jsx("span", { className: "o-smooth o-smooth-ease" }) })] }));
31
33
  });
32
34
  export function ButtonGroup({ orientation = "horizontal", className, children, ...props }) {
33
35
  return _jsx("div", { role: "group", "data-orientation": orientation, className: cx("o-button-group", className), ...props, children: children });
@@ -401,9 +401,10 @@
401
401
  .o-button[data-button-own]:is([data-button-turn="quarter"], [data-button-turn="back"]) > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { transition: rotate var(--vk-duration-fast) var(--vk-ease-out); }
402
402
  .o-button[data-button-own][data-button-turn="quarter"][aria-expanded="true"] > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { rotate: 90deg; }
403
403
  .o-button[data-button-own][data-button-turn="back"][aria-expanded="false"] > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { rotate: -90deg; }
404
- /* A dot at its top end corner, saying something is on. */
405
- .o-button[data-button-own][data-button-dot="brand"]::after {
406
- content: ""; position: absolute; top: var(--vk-spacing); right: var(--vk-spacing); width: var(--vk-dot-size); height: var(--vk-dot-size);
404
+ /* A dot at its top end corner, saying something is on. Drawn with ::before, over its cut, since the pressing area takes ::after on
405
+ a phone (press.css), as the toolbar button's dot is. */
406
+ .o-button[data-button-own][data-button-dot="brand"]::before {
407
+ content: ""; position: absolute; z-index: 1; top: var(--vk-spacing); right: var(--vk-spacing); width: var(--vk-dot-size); height: var(--vk-dot-size);
407
408
  border-radius: 50%; background-color: var(--vk-brand); pointer-events: none;
408
409
  }
409
410
  /* Its words cut with … where its place is narrower than they are. Its line is as tall as its words (line-height 1), and their
@@ -452,7 +453,7 @@
452
453
  Button joined in a group or a Toolbar button joined to its neighbours (data-joined) (the outline has no corners apart left
453
454
  and right: in Chromium its squircle, as before), which paint
454
455
  themselves from their variables as before. The Button itself is never clipped: its depth, its press, its focus ring and a phone's
455
- pressing area (an app's own, its ::after) stand outside it, whole. Its ground and edge are handed to its cut (.o-button-cut, its
456
+ pressing area (press.css, its ::after) stand outside it, whole. Its ground and edge are handed to its cut (.o-button-cut, its
456
457
  last child, over its border box): the ground (::before) clipped by the outline, with the depth's inset light again inside it,
457
458
  the edge (::after) a ring along it, its foot from a corner's height up. The cut is a size container, so its layers read the
458
459
  Button's own side (100cqmin) whatever height a place gives it: the corner its radius fitted to that side as a control's is,
@@ -3,9 +3,11 @@ import * as React from "react";
3
3
  import { Checkbox as BaseCheckbox } from "@base-ui/react/checkbox";
4
4
  import { CheckboxGroup as BaseCheckboxGroup } from "@base-ui/react/checkbox-group";
5
5
  import { cx } from "../../internal/cx.js";
6
+ import { phoneMark, usePhoneForm } from "../internal/phone.js";
6
7
  const Cut = () => _jsx("span", { className: "o-check-cut o-smooth o-smooth-ease", "aria-hidden": "true" });
7
8
  export const Checkbox = React.forwardRef(function Checkbox({ label, note, row = false, card = false, className, ...props }, ref) {
8
- return (_jsxs("label", { className: cx("o-check", row && "o-check-row", card && "o-choice-card", className), "data-kit": "checkbox", children: [_jsxs(BaseCheckbox.Root, { ref: ref, className: "o-check-box", ...props, children: [_jsx(Cut, {}), _jsx(BaseCheckbox.Indicator, { keepMounted: true, className: "o-check-mark", children: _jsxs("svg", { viewBox: "0 0 24 24", strokeWidth: 2.75, "aria-hidden": "true", children: [_jsx("path", { className: "o-check-tick", d: "M5 12l5 5l10 -10", pathLength: 1 }), _jsx("path", { className: "o-check-dash", d: "M6 12h12" })] }) })] }), (label != null || note != null) && (_jsxs("span", { className: "o-choice-text", children: [label != null && _jsx("span", { className: "o-choice-label", children: label }), note != null && _jsx("span", { className: "o-choice-note", children: note })] }))] }));
9
+ const phone = usePhoneForm();
10
+ return (_jsxs("label", { className: cx("o-check", row && "o-check-row", card && "o-choice-card", className), "data-kit": "checkbox", ...phoneMark(phone), children: [_jsxs(BaseCheckbox.Root, { ref: ref, className: "o-check-box", ...props, children: [_jsx(Cut, {}), _jsx(BaseCheckbox.Indicator, { keepMounted: true, className: "o-check-mark", children: _jsxs("svg", { viewBox: "0 0 24 24", strokeWidth: 2.75, "aria-hidden": "true", children: [_jsx("path", { className: "o-check-tick", d: "M5 12l5 5l10 -10", pathLength: 1 }), _jsx("path", { className: "o-check-dash", d: "M6 12h12" })] }) })] }), (label != null || note != null) && (_jsxs("span", { className: "o-choice-text", children: [label != null && _jsx("span", { className: "o-choice-label", children: label }), note != null && _jsx("span", { className: "o-choice-note", children: note })] }))] }));
9
11
  });
10
12
  export function CheckboxMark({ className }) {
11
13
  return (_jsxs("span", { className: cx("o-check-box o-check-in-row", className), "aria-hidden": "true", children: [_jsx(Cut, {}), _jsx("span", { className: "o-check-mark", children: _jsx("svg", { viewBox: "0 0 24 24", strokeWidth: 2.75, children: _jsx("path", { className: "o-check-tick", d: "M5 12l5 5l10 -10", pathLength: 1 }) }) })] }));
@@ -71,7 +71,7 @@
71
71
  token at 0), Smooth and Round set the box apart (data-checkbox-smoothing, looks.ts). Under Smooth or The app's the box is drawn
72
72
  with the smooth outline (smooth.css), eased on its 16px side, in every browser that knows shape(); one that doesn't
73
73
  keeps the corners above, and so does Round, which paints the box as before. The box is never clipped: its focus ring and its
74
- pressing area (::after, the app's press styles) stand outside it. Its ground and edge are handed to its cut (.o-check-cut, its first
74
+ pressing area (::after, press.css) stand outside it. Its ground and edge are handed to its cut (.o-check-cut, its first
75
75
  child), over its border box: the ground (::before) clipped by the outline, the edge (::after) a ring along it, each moving as the
76
76
  box's colours do. The list's and the card's corners are the grouped choices' own. ──────────────────────────────── */
77
77
  .o-check-cut { display: none; --smooth-amount: var(--vk-corner-smoothing); }
@@ -0,0 +1,79 @@
1
+ export declare const CHOICE_TOKENS: readonly [{
2
+ readonly name: "--vk-border";
3
+ readonly kind: "colour";
4
+ readonly outright: "--border";
5
+ }, {
6
+ readonly name: "--vk-border-danger";
7
+ readonly kind: "colour";
8
+ readonly outright: "--border-danger";
9
+ }, {
10
+ readonly name: "--vk-border-selected";
11
+ readonly kind: "colour";
12
+ readonly outright: "--border-selected";
13
+ }, {
14
+ readonly name: "--vk-border-subtle";
15
+ readonly kind: "colour";
16
+ readonly outright: "--border-subtle";
17
+ }, {
18
+ readonly name: "--vk-fg";
19
+ readonly kind: "colour";
20
+ readonly outright: "--text";
21
+ }, {
22
+ readonly name: "--vk-fg-subtle";
23
+ readonly kind: "colour";
24
+ readonly outright: "--text-subtle";
25
+ }, {
26
+ readonly name: "--vk-ground";
27
+ readonly kind: "colour";
28
+ readonly outright: "--surface";
29
+ }, {
30
+ readonly name: "--vk-hovered";
31
+ readonly kind: "colour";
32
+ readonly outright: "--surface-hovered";
33
+ }, {
34
+ readonly name: "--vk-selected";
35
+ readonly kind: "colour";
36
+ readonly outright: "--surface-selected";
37
+ }, {
38
+ readonly name: "--vk-border-width";
39
+ readonly kind: "size";
40
+ readonly outright: "--border-width";
41
+ }, {
42
+ readonly name: "--vk-font-size-sm";
43
+ readonly kind: "size";
44
+ readonly outright: "--text-sm";
45
+ }, {
46
+ readonly name: "--vk-font-size-xs";
47
+ readonly kind: "size";
48
+ readonly outright: "--text-xs";
49
+ }, {
50
+ readonly name: "--vk-font-weight-medium";
51
+ readonly kind: "size";
52
+ readonly outright: "--font-weight-medium";
53
+ }, {
54
+ readonly name: "--vk-line-height-sm";
55
+ readonly kind: "size";
56
+ readonly outright: "--text-sm--line-height";
57
+ }, {
58
+ readonly name: "--vk-line-height-xs";
59
+ readonly kind: "size";
60
+ readonly outright: "--text-xs--line-height";
61
+ }, {
62
+ readonly name: "--vk-radius-lg";
63
+ readonly kind: "size";
64
+ readonly outright: "--radius-lg";
65
+ }, {
66
+ readonly name: "--vk-spacing";
67
+ readonly kind: "size";
68
+ readonly outright: "--spacing";
69
+ }, {
70
+ readonly name: "--vk-duration-fast";
71
+ readonly kind: "motion";
72
+ readonly outright: "--duration-fast";
73
+ }, {
74
+ readonly name: "--vk-ease-out";
75
+ readonly kind: "motion";
76
+ readonly outright: "--ease-out";
77
+ }];
78
+ /** The choice's words have no machinery of their own. */
79
+ export declare const CHOICE_PRIVATE: readonly [];
@@ -0,0 +1,22 @@
1
+ export const CHOICE_TOKENS = [
2
+ { name: "--vk-border", kind: "colour", outright: "--border" },
3
+ { name: "--vk-border-danger", kind: "colour", outright: "--border-danger" },
4
+ { name: "--vk-border-selected", kind: "colour", outright: "--border-selected" },
5
+ { name: "--vk-border-subtle", kind: "colour", outright: "--border-subtle" },
6
+ { name: "--vk-fg", kind: "colour", outright: "--text" },
7
+ { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
8
+ { name: "--vk-ground", kind: "colour", outright: "--surface" },
9
+ { name: "--vk-hovered", kind: "colour", outright: "--surface-hovered" },
10
+ { name: "--vk-selected", kind: "colour", outright: "--surface-selected" },
11
+ { name: "--vk-border-width", kind: "size", outright: "--border-width" },
12
+ { name: "--vk-font-size-sm", kind: "size", outright: "--text-sm" },
13
+ { name: "--vk-font-size-xs", kind: "size", outright: "--text-xs" },
14
+ { name: "--vk-font-weight-medium", kind: "size", outright: "--font-weight-medium" },
15
+ { name: "--vk-line-height-sm", kind: "size", outright: "--text-sm--line-height" },
16
+ { name: "--vk-line-height-xs", kind: "size", outright: "--text-xs--line-height" },
17
+ { name: "--vk-radius-lg", kind: "size", outright: "--radius-lg" },
18
+ { name: "--vk-spacing", kind: "size", outright: "--spacing" },
19
+ { name: "--vk-duration-fast", kind: "motion", outright: "--duration-fast" },
20
+ { name: "--vk-ease-out", kind: "motion", outright: "--ease-out" },
21
+ ];
22
+ export const CHOICE_PRIVATE = [];
@@ -0,0 +1,31 @@
1
+ /* The words beside a choice, as the Outright kit draws them (the Checkbox, the Radio, the Switch in a settings row): its label,
2
+ and an optional line under it that explains it or says why it is locked. A disabled choice greys its label (each control's
3
+ own stylesheet). A choice drawn as a card has an edge round it; the chosen one takes the selected colours.
4
+
5
+ The rules sit in the components layer, so a utility class still wins. */
6
+ @layer components {
7
+
8
+ .o-choice-text { display: grid; gap: calc(var(--vk-spacing) * 0.5); min-width: 0; }
9
+ .o-choice-label { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg); }
10
+ .o-choice-note { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
11
+
12
+ /* ── A choice as a card: an edge round it, the whole card pressing it; under the pointer the hovered
13
+ ground; chosen, the selected edge and ground; off, the softer edge and no hover ─────────────────── */
14
+ .o-choice-card {
15
+ box-sizing: border-box; display: flex; width: 100%; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5);
16
+ border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); corner-shape: squircle;
17
+ background-color: var(--vk-ground); transition: background-color var(--vk-duration-fast) var(--vk-ease-out), border-color var(--vk-duration-fast) var(--vk-ease-out);
18
+ }
19
+ /* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
20
+ @media (hover: hover) { .o-choice-card:hover { background-color: var(--vk-hovered); } }
21
+ .o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); background-color: var(--vk-selected); }
22
+ .o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); background-color: transparent; }
23
+ .o-choice-card .o-choice-label { font-weight: var(--vk-font-weight-medium); }
24
+ /* In error, the card's edge is red too. */
25
+ .o-choice-card:is(:has(> :is([aria-invalid="true"], [data-invalid])), .o-fieldset[data-invalid] *):not(:has(> [data-disabled])) { border-color: var(--vk-border-danger); }
26
+ /* Cards stand 8px apart, one under another or side by side. */
27
+ .o-radio-group:has(> .o-choice-card) { gap: calc(var(--vk-spacing) * 2); }
28
+ .o-radio-group.o-radio-row:has(> .o-choice-card) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--vk-spacing) * 50)), 1fr)); }
29
+
30
+ @media (prefers-reduced-motion: reduce) { .o-choice-card { transition: none; } }
31
+ }
@@ -11,7 +11,7 @@ export const COMPOUND_EDITOR_LOOKS = {
11
11
  options,
12
12
  looks: [
13
13
  { id: "attio", name: "Attio", picks: { boxes: "boxes", shown: "hidden", country: "last", arrows: "editing" } },
14
- { id: "mihai", name: "Mihai's", picks: { boxes: "fields", shown: "shown", country: "first", arrows: "none" } },
14
+ { id: "mihai", name: "Outright", picks: { boxes: "fields", shown: "shown", country: "first", arrows: "none" } },
15
15
  ],
16
16
  };
17
17
  export const compoundEditorWornOf = (el) => lookWornOf(COMPOUND_EDITOR_LOOKS, el, ["boxes", "shown", "country", "arrows"]);
@@ -9,7 +9,11 @@ import { MapSortBody } from "./sort-editor/map-sort-body.js";
9
9
  import { MapViewsListBody } from "./views-list/map-views-list-body.js";
10
10
  import { MapFilterBody, MapFilterPartBody } from "./filter-editor/map-filter-body.js";
11
11
  import { MapGroupBody } from "./group-editor/map-group-body.js";
12
+ import { MapCustomizeBody } from "./customize/map-customize-body.js";
12
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";
13
17
  import { MapTextBody } from "./text-editor/map-text-body.js";
14
18
  import { MapPicker } from "./picker/map-picker.js";
15
19
  import { MapFieldsBody } from "./picker/map-fields-body.js";
@@ -32,7 +36,11 @@ export declare const CONTROLS: {
32
36
  FilterBody: typeof MapFilterBody;
33
37
  FilterPartBody: typeof MapFilterPartBody;
34
38
  GroupBody: typeof MapGroupBody;
39
+ CustomizeBody: typeof MapCustomizeBody;
35
40
  Collapse: typeof MapCollapse;
41
+ PortsHost: typeof MapPortsHost;
42
+ QuickFiltersBody: typeof MapQuickFiltersBody;
43
+ SelectionBar: typeof MapSelectionBar;
36
44
  TextBody: typeof MapTextBody;
37
45
  Picker: typeof MapPicker;
38
46
  FieldsBody: typeof MapFieldsBody;
@@ -9,7 +9,11 @@ import { MapSortBody } from "./sort-editor/map-sort-body.js";
9
9
  import { MapViewsListBody } from "./views-list/map-views-list-body.js";
10
10
  import { MapFilterBody, MapFilterPartBody } from "./filter-editor/map-filter-body.js";
11
11
  import { MapGroupBody } from "./group-editor/map-group-body.js";
12
+ import { MapCustomizeBody } from "./customize/map-customize-body.js";
12
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";
13
17
  import { MapTextBody } from "./text-editor/map-text-body.js";
14
18
  import { MapPicker } from "./picker/map-picker.js";
15
19
  import { MapFieldsBody } from "./picker/map-fields-body.js";
@@ -32,7 +36,11 @@ export const CONTROLS = {
32
36
  FilterBody: MapFilterBody,
33
37
  FilterPartBody: MapFilterPartBody,
34
38
  GroupBody: MapGroupBody,
39
+ CustomizeBody: MapCustomizeBody,
35
40
  Collapse: MapCollapse,
41
+ PortsHost: MapPortsHost,
42
+ QuickFiltersBody: MapQuickFiltersBody,
43
+ SelectionBar: MapSelectionBar,
36
44
  TextBody: MapTextBody,
37
45
  Picker: MapPicker,
38
46
  FieldsBody: MapFieldsBody,
@@ -0,0 +1,176 @@
1
+ import * as React from "react";
2
+ import { type MenuChoice } from "../menu-list/menu-list.js";
3
+ import { type SheetHeadProps } from "../sheet/bottom-sheet.js";
4
+ import { type CustomizeWorn } from "./looks.js";
5
+ import { type CustomizeColumn } from "./rules.js";
6
+ import { type CustomizeWords } from "./words.js";
7
+ export type { CustomizeColumn } from "./rules.js";
8
+ /** Where it stands: its list, or a section's screen. */
9
+ export type CustomizeScreen = "list" | "layout" | "columns" | "filter" | "sort" | "group";
10
+ /** 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. */
11
+ export interface CustomizeView {
12
+ name: string;
13
+ layout: string;
14
+ columns: CustomizeColumn[];
15
+ counts: boolean;
16
+ freeze: boolean;
17
+ wrap: boolean;
18
+ }
19
+ /** A layout it offers: its mark, its name; one still to come can't be picked, and says nothing more (KIT-777). */
20
+ export interface CustomizeLayout {
21
+ id: string;
22
+ name: string;
23
+ mark: React.ReactNode;
24
+ later?: boolean;
25
+ }
26
+ /** A section its holder hands it (Filter, Sort, Group): where it stands, whether that is in force, and what its screen holds. A
27
+ * 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,
28
+ * the head names it and its ‹ or Back comes back to the screen. */
29
+ export interface CustomizeSection {
30
+ says: string;
31
+ inForce?: boolean;
32
+ opens?: React.ReactNode;
33
+ level?: {
34
+ name: string;
35
+ back: () => void;
36
+ } | null;
37
+ }
38
+ /** A setting turned on or off: its key, words, value and write; `icon`, its mark before its name; `reset`, its way back to the
39
+ * reader's default; `section`, the heading it stands under. */
40
+ export interface CustomizeToggle {
41
+ key: string;
42
+ label: string;
43
+ value: boolean;
44
+ onChange: (on: boolean) => void;
45
+ icon?: React.ReactNode;
46
+ reset?: () => void;
47
+ section?: string;
48
+ }
49
+ /** A setting picked from a few (a layout's density, a board's field): its key, words, value, choices and write. */
50
+ export interface CustomizeChoice {
51
+ key: string;
52
+ label: string;
53
+ value: string;
54
+ options: {
55
+ value: string;
56
+ label: string;
57
+ }[];
58
+ onChange: (value: string) => void;
59
+ }
60
+ /** 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
61
+ * over a shared view, with its way back. */
62
+ export interface CustomizeLayoutSettings {
63
+ toggles: CustomizeToggle[];
64
+ choices: CustomizeChoice[];
65
+ personal?: {
66
+ label: string;
67
+ toggles: CustomizeToggle[];
68
+ choices: CustomizeChoice[];
69
+ onReset?: () => void;
70
+ };
71
+ }
72
+ /** A list's per-field filter, its time range or a date range (VK-891): its row on the list, saying what it holds, where it stands
73
+ * (with the filters, after Columns; or after Group), the heading it stands under, why it can't open; and what its screen holds:
74
+ * choices to pick one of (picked, it goes back), choices to check, or a body of its own with the level it stands on. `onOpen` is
75
+ * asked each time its screen opens. */
76
+ export interface CustomizeField {
77
+ key: string;
78
+ label: string;
79
+ icon?: React.ReactNode;
80
+ section?: string;
81
+ says: string;
82
+ inForce?: boolean;
83
+ disabled?: string;
84
+ place: "filters" | "after";
85
+ onOpen?: () => void;
86
+ opens: {
87
+ pick: {
88
+ value: string;
89
+ choices: MenuChoice[];
90
+ onChoose: (value: string) => void;
91
+ };
92
+ } | {
93
+ check: {
94
+ values: string[];
95
+ choices: MenuChoice[];
96
+ onChange: (values: string[]) => void;
97
+ };
98
+ }
99
+ /** A body of its own; given as a function, it is handed the way back from the field's screen (a pick that closes it). */
100
+ | {
101
+ body: React.ReactNode | ((done: () => void) => React.ReactNode);
102
+ level?: {
103
+ name: string;
104
+ back: () => void;
105
+ } | null;
106
+ };
107
+ }
108
+ export interface CustomizeProps {
109
+ view: CustomizeView;
110
+ /** Each change, as it is made; a rename once it is kept. */
111
+ onViewChange: (view: CustomizeView) => void;
112
+ layouts: CustomizeLayout[];
113
+ /** The sections it is handed; one not handed stands nowhere (on the bar, in the Pane, or both is the Toolbar's option). */
114
+ filter?: CustomizeSection;
115
+ sort?: CustomizeSection;
116
+ group?: CustomizeSection;
117
+ /** The view differs from how it is saved: Reset (and Save for everyone, where handed) stand over the footer, on the list. */
118
+ changed?: boolean;
119
+ onReset?: () => void;
120
+ onSave?: () => void;
121
+ /** A write is in flight: Reset and Save wait. */
122
+ pending?: boolean;
123
+ /** The shared view moved after the reader's changes began: a note over Reset and Save. */
124
+ stale?: boolean;
125
+ /** Export CSV's count ("22 deals"). */
126
+ exportCount?: string;
127
+ /** Each footer row stands only where its action is handed; with neither, no footer. */
128
+ onCopyLink?: () => void;
129
+ onExport?: () => void;
130
+ /** Its toggles, in place of Show counts from the view: each a check row under the list's sections, in order. */
131
+ toggles?: CustomizeToggle[];
132
+ /** Layout's own settings, in place of a table's Freeze and Wrap from the view. */
133
+ layoutSettings?: CustomizeLayoutSettings;
134
+ /** Columns' way back to the view's own columns, while they differ from it. */
135
+ columnsReset?: () => void;
136
+ /** A card's field starting a new line, turned on or off (its column's `line`, VK-890). */
137
+ onLineChange?: (id: string) => void;
138
+ /** The app's rows under Columns' rows (Add field, the archived fields, VK-890), on Columns alone. */
139
+ columnsFoot?: React.ReactNode;
140
+ /** A list's per-field filters, its time range and date ranges (VK-891): each its own row, or, with `foldFields` and no Filter
141
+ * section handed, all behind one Filter row. */
142
+ fields?: CustomizeField[];
143
+ foldFields?: boolean;
144
+ /** Outside a Pane, the title head's ✕. */
145
+ onClose?: () => void;
146
+ /** Each screen it opens, as it opens it. */
147
+ onScreenChange?: (screen: CustomizeScreen) => void;
148
+ /** Its words; English unless handed. */
149
+ words?: Partial<CustomizeWords>;
150
+ /** Which form; by default the phone's in a phone's window or in a PhoneHost screen, else the computer's. */
151
+ form?: "computer" | "phone";
152
+ /** Where it opens, for a page that shows a state; its list unless said. */
153
+ screen?: CustomizeScreen;
154
+ }
155
+ /** 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
156
+ * computer: the Pane's head, body, Reset and Save, and footer, as `body`. */
157
+ export interface CustomizeParts {
158
+ body: React.ReactNode;
159
+ title: string;
160
+ head: Pick<SheetHeadProps, "onBack" | "close">;
161
+ foot?: React.ReactNode;
162
+ /** The level its own screen stands on (a layout's choice, a column's settings, VK-890), or a handed section's: its name and way
163
+ * back, for a holder that tells it as its step. */
164
+ level: {
165
+ name: string;
166
+ back: () => void;
167
+ } | null;
168
+ }
169
+ /** Its options as the frame round it wears them (looks.ts), kept up to date as they change. */
170
+ export declare function useCustomizeWorn(): [(el: Element | null) => void, CustomizeWorn];
171
+ /** A layout's mark by its id (table, board, list, calendar, timeline); none for another. */
172
+ export declare const layoutMark: (id: string) => React.ReactNode | undefined;
173
+ /** Customize's state and the parts a shell pours in. */
174
+ export declare function useCustomize(props: CustomizeProps): CustomizeParts;
175
+ /** The computer's body: what stands in the Pane, its head, its body, Reset and Save for everyone, and its footer. */
176
+ export declare function Customize(props: CustomizeProps): import("react/jsx-runtime").JSX.Element;