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
@@ -2,23 +2,23 @@ import { lookWorn, lookWornOf } from "../looks/looks.js";
2
2
  const options = [
3
3
  { id: "header", name: "Header", device: "desktop", def: "words", values: [{ id: "words", name: "Words" }, { id: "quiet", name: "Quiet" }] },
4
4
  { id: "lines", name: "Row lines", def: "on", values: [{ id: "on", name: "On" }, { id: "off", name: "Off" }] },
5
- { id: "columns", name: "Column lines", def: "pinned", values: [{ id: "all", name: "All" }, { id: "none", name: "None" }, { id: "pinned", name: "Pinned only" }] },
5
+ { id: "columns", name: "Column lines", def: "all", values: [{ id: "all", name: "All" }, { id: "none", name: "None" }, { id: "pinned", name: "Pinned only" }] },
6
6
  { id: "density", name: "Density", def: "default", values: [{ id: "compact", name: "Compact" }, { id: "default", name: "Default" }, { id: "roomy", name: "Roomy" }] },
7
7
  { id: "phone", name: "Size", device: "phone", def: "attio", values: [{ id: "attio", name: "Attio's" }, { id: "computer", name: "The computer's" }] },
8
8
  { id: "name", name: "Name column", def: "pinned", values: [{ id: "pinned", name: "Pinned" }, { id: "scrolls", name: "Scrolls" }] },
9
- { id: "edge", name: "Pinned edge", def: "fade", values: [{ id: "shadow", name: "Shadow" }, { id: "fade", name: "Fade" }, { id: "line", name: "Line" }, { id: "divider", name: "Divider" }, { id: "mask", name: "Fade out" }] },
10
- { id: "boxes", name: "Checkboxes", def: "hover", values: [{ id: "hover", name: "On hover" }, { id: "always", name: "Always" }] },
9
+ { id: "edge", name: "Pinned edge", def: "line", values: [{ id: "shadow", name: "Shadow" }, { id: "fade", name: "Fade" }, { id: "line", name: "Line" }, { id: "divider", name: "Divider" }, { id: "mask", name: "Fade out" }] },
10
+ { id: "boxes", name: "Checkboxes", def: "always", values: [{ id: "hover", name: "On hover" }, { id: "always", name: "Always" }] },
11
11
  { id: "icon", name: "Row icon", def: "on", values: [{ id: "on", name: "On" }, { id: "off", name: "Off" }] },
12
- { id: "picked", name: "Picked rows", def: "tint", values: [{ id: "tint", name: "Tint" }, { id: "line", name: "Tint and line" }] },
12
+ { id: "picked", name: "Picked rows", def: "line", values: [{ id: "tint", name: "Tint" }, { id: "line", name: "Tint and line" }] },
13
13
  { id: "cell", name: "Picked cell", def: "wash", values: [{ id: "wash", name: "Wash" }, { id: "ring", name: "Ring" }] },
14
- { id: "corners", name: "Cell corners", def: "square", values: [{ id: "square", name: "Square" }, { id: "round", name: "Round" }] },
15
- { id: "hover", name: "Hover frame", def: "subtle", values: [{ id: "none", name: "None" }, { id: "subtle", name: "Subtle" }, { id: "strong", name: "Strong" }] },
14
+ { id: "corners", name: "Cell corners", def: "round", values: [{ id: "square", name: "Square" }, { id: "round", name: "Round" }] },
15
+ { id: "hover", name: "Hover frame", def: "strong", values: [{ id: "none", name: "None" }, { id: "subtle", name: "Subtle" }, { id: "strong", name: "Strong" }] },
16
16
  { id: "frame", name: "Picked cell frame", def: "brand", values: [{ id: "brand", name: "Brand" }, { id: "neutral", name: "Neutral" }] },
17
- { id: "groups", name: "Groups", def: "compact", values: [{ id: "compact", name: "Compact" }, { id: "titles", name: "Own titles" }] },
18
- { id: "names", name: "Names", def: "underline", values: [{ id: "underline", name: "Underlined" }, { id: "hover", name: "On hover" }] },
19
- { id: "phones", name: "Phones", def: "link", values: [{ id: "link", name: "Link" }, { id: "text", name: "As text" }] },
17
+ { id: "groups", name: "Groups", def: "titles", values: [{ id: "compact", name: "Compact" }, { id: "titles", name: "Own titles" }] },
18
+ { id: "names", name: "Names", def: "hover", values: [{ id: "underline", name: "Underlined" }, { id: "hover", name: "On hover" }] },
19
+ { id: "phones", name: "Phones", def: "text", values: [{ id: "link", name: "Link" }, { id: "text", name: "As text" }] },
20
20
  { id: "typed", name: "Phones as typed", def: "dotted", values: [{ id: "none", name: "None" }, { id: "dotted", name: "Dotted line" }, { id: "subtle", name: "Subtle" }, { id: "dot", name: "Dot" }, { id: "tint", name: "Tinted" }] },
21
- { id: "figures", name: "Figures", def: "value", values: [{ id: "value", name: "Value first" }, { id: "word", name: "Word first" }] },
21
+ { id: "figures", name: "Figures", def: "word", values: [{ id: "value", name: "Value first" }, { id: "word", name: "Word first" }] },
22
22
  { id: "width", name: "Width", def: "own", values: [{ id: "own", name: "The columns' own" }, { id: "fill", name: "Fill" }] },
23
23
  { id: "more", name: "More rows", def: "scroll", values: [{ id: "scroll", name: "As you scroll" }, { id: "pages", name: "In pages" }] },
24
24
  { id: "wait", name: "Rows changing", def: "kept", values: [{ id: "kept", name: "Kept" }, { id: "cleared", name: "Cleared" }] },
@@ -26,13 +26,21 @@ const options = [
26
26
  { id: "add", name: "Add column", device: "phone", def: "name", values: [{ id: "name", name: "In the name's header" }, { id: "end", name: "At the end" }] },
27
27
  { id: "picking", name: "Picking rows", device: "phone", def: "press", values: [{ id: "press", name: "Long press" }, { id: "rail", name: "In the rail" }] },
28
28
  ];
29
- const defs = Object.fromEntries(options.map((o) => [o.id, o.def]));
30
29
  export const GRID_LOOKS = {
31
30
  id: "grid",
32
31
  name: "Grid",
33
32
  options,
34
33
  looks: [
35
- { id: "attio", name: "Attio", picks: { ...defs } },
34
+ {
35
+ id: "attio",
36
+ name: "Attio",
37
+ picks: {
38
+ header: "words", lines: "on", columns: "pinned", density: "default", phone: "attio", name: "pinned", edge: "fade",
39
+ boxes: "hover", icon: "on", picked: "tint", cell: "wash", corners: "square", hover: "subtle", frame: "brand",
40
+ groups: "compact", names: "underline", phones: "link", typed: "dotted", figures: "value", width: "own", more: "scroll",
41
+ wait: "kept", foot: "pinned", add: "name", picking: "press",
42
+ },
43
+ },
36
44
  {
37
45
  id: "portal",
38
46
  name: "The portal's",
@@ -0,0 +1,109 @@
1
+ export declare const GRID_TOKENS: readonly [{
2
+ readonly name: "--vk-duration-fast";
3
+ readonly kind: "motion";
4
+ readonly outright: "--duration-fast";
5
+ }, {
6
+ readonly name: "--vk-font-size-2xs";
7
+ readonly kind: "size";
8
+ readonly outright: "--text-2xs";
9
+ }, {
10
+ readonly name: "--vk-font-size-sm";
11
+ readonly kind: "size";
12
+ readonly outright: "--text-sm";
13
+ }, {
14
+ readonly name: "--vk-font-weight-medium";
15
+ readonly kind: "size";
16
+ readonly outright: "--font-weight-medium";
17
+ }, {
18
+ readonly name: "--vk-spacing";
19
+ readonly kind: "size";
20
+ readonly outright: "--spacing";
21
+ }, {
22
+ readonly name: "--vk-border-width";
23
+ readonly kind: "size";
24
+ readonly outright: "--border-width";
25
+ }, {
26
+ readonly name: "--vk-focus-width";
27
+ readonly kind: "size";
28
+ readonly outright: "--focus-width";
29
+ }, {
30
+ readonly name: "--vk-radius-xs";
31
+ readonly kind: "size";
32
+ readonly outright: "--radius-xs";
33
+ }, {
34
+ readonly name: "--vk-radius-sm";
35
+ readonly kind: "size";
36
+ readonly outright: "--radius-sm";
37
+ }, {
38
+ readonly name: "--vk-fg";
39
+ readonly kind: "colour";
40
+ readonly outright: "--text";
41
+ }, {
42
+ readonly name: "--vk-fg-subtle";
43
+ readonly kind: "colour";
44
+ readonly outright: "--text-subtle";
45
+ }, {
46
+ readonly name: "--vk-fg-subtlest";
47
+ readonly kind: "colour";
48
+ readonly outright: "--text-subtlest";
49
+ }, {
50
+ readonly name: "--vk-fg-brand";
51
+ readonly kind: "colour";
52
+ readonly outright: "--link";
53
+ }, {
54
+ readonly name: "--vk-ground";
55
+ readonly kind: "colour";
56
+ readonly outright: "--surface";
57
+ }, {
58
+ readonly name: "--vk-pressed";
59
+ readonly kind: "colour";
60
+ readonly outright: "--surface-pressed";
61
+ }, {
62
+ readonly name: "--vk-brand-subtlest";
63
+ readonly kind: "colour";
64
+ readonly outright: "--background-brand-subtlest";
65
+ }, {
66
+ readonly name: "--vk-border";
67
+ readonly kind: "colour";
68
+ readonly outright: "--border";
69
+ }, {
70
+ readonly name: "--vk-border-subtle";
71
+ readonly kind: "colour";
72
+ readonly outright: "--border-subtle";
73
+ }, {
74
+ readonly name: "--vk-border-bold";
75
+ readonly kind: "colour";
76
+ readonly outright: "--border-bold";
77
+ }, {
78
+ readonly name: "--vk-border-brand";
79
+ readonly kind: "colour";
80
+ readonly outright: "--border-focused";
81
+ }, {
82
+ readonly name: "--vk-border-accent";
83
+ readonly kind: "colour";
84
+ readonly outright: "--border-brand";
85
+ }, {
86
+ readonly name: "--vk-border-input";
87
+ readonly kind: "colour";
88
+ readonly outright: "--border-input";
89
+ }, {
90
+ readonly name: "--vk-frozen-fade";
91
+ readonly kind: "colour";
92
+ readonly outright: "--pinned-shadow";
93
+ }, {
94
+ readonly name: "--vk-shadow-sm";
95
+ readonly kind: "shadow";
96
+ readonly outright: "--shadow-sm";
97
+ }, {
98
+ readonly name: "--vk-warning";
99
+ readonly kind: "colour";
100
+ readonly outright: "--text-warning";
101
+ }, {
102
+ readonly name: "--vk-warning-bold";
103
+ readonly kind: "colour";
104
+ readonly outright: "--background-warning-bold";
105
+ }, {
106
+ readonly name: "--vk-warning-subtler";
107
+ readonly kind: "colour";
108
+ readonly outright: "--background-warning-subtler";
109
+ }];
@@ -0,0 +1,29 @@
1
+ export const GRID_TOKENS = [
2
+ { name: "--vk-duration-fast", kind: "motion", outright: "--duration-fast" },
3
+ { name: "--vk-font-size-2xs", kind: "size", outright: "--text-2xs" },
4
+ { name: "--vk-font-size-sm", kind: "size", outright: "--text-sm" },
5
+ { name: "--vk-font-weight-medium", kind: "size", outright: "--font-weight-medium" },
6
+ { name: "--vk-spacing", kind: "size", outright: "--spacing" },
7
+ { name: "--vk-border-width", kind: "size", outright: "--border-width" },
8
+ { name: "--vk-focus-width", kind: "size", outright: "--focus-width" },
9
+ { name: "--vk-radius-xs", kind: "size", outright: "--radius-xs" },
10
+ { name: "--vk-radius-sm", kind: "size", outright: "--radius-sm" },
11
+ { name: "--vk-fg", kind: "colour", outright: "--text" },
12
+ { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
13
+ { name: "--vk-fg-subtlest", kind: "colour", outright: "--text-subtlest" },
14
+ { name: "--vk-fg-brand", kind: "colour", outright: "--link" },
15
+ { name: "--vk-ground", kind: "colour", outright: "--surface" },
16
+ { name: "--vk-pressed", kind: "colour", outright: "--surface-pressed" },
17
+ { name: "--vk-brand-subtlest", kind: "colour", outright: "--background-brand-subtlest" },
18
+ { name: "--vk-border", kind: "colour", outright: "--border" },
19
+ { name: "--vk-border-subtle", kind: "colour", outright: "--border-subtle" },
20
+ { name: "--vk-border-bold", kind: "colour", outright: "--border-bold" },
21
+ { name: "--vk-border-brand", kind: "colour", outright: "--border-focused" },
22
+ { name: "--vk-border-accent", kind: "colour", outright: "--border-brand" },
23
+ { name: "--vk-border-input", kind: "colour", outright: "--border-input" },
24
+ { name: "--vk-frozen-fade", kind: "colour", outright: "--pinned-shadow" },
25
+ { name: "--vk-shadow-sm", kind: "shadow", outright: "--shadow-sm" },
26
+ { name: "--vk-warning", kind: "colour", outright: "--text-warning" },
27
+ { name: "--vk-warning-bold", kind: "colour", outright: "--background-warning-bold" },
28
+ { name: "--vk-warning-subtler", kind: "colour", outright: "--background-warning-subtler" },
29
+ ];
@@ -28,11 +28,16 @@ export { PICKER_LOOKS, type PickerOptionId } from "../controls/picker/looks.js";
28
28
  export { AVATAR_LOOKS, type AvatarLookOptionId } from "../controls/avatar/looks.js";
29
29
  export { MENU_LIST_CARD_FRAME } from "../controls/menu-list/looks.js";
30
30
  export { PANE_LOOKS, type PaneOptionId } from "../controls/pane/looks.js";
31
+ export { TOOLBAR_BUTTON_LOOKS, type ToolbarButtonOptionId } from "../controls/toolbar-button/looks.js";
31
32
  export { VIEWS_LIST_LOOKS, type ViewsListOptionId } from "../controls/views-list/looks.js";
33
+ export { CUSTOMIZE_LOOKS, type CustomizeOptionId } from "../controls/customize/looks.js";
32
34
  export { MODAL_LOOKS, type ModalOptionId } from "../controls/modal/looks.js";
33
35
  export { ALERT_DIALOG_LOOKS, type AlertDialogOptionId } from "../controls/alert-dialog/looks.js";
34
36
  export { COLLAPSIBLE_LOOKS, type CollapsibleOptionId } from "../controls/collapsible/looks.js";
35
37
  export { ALERT_LOOKS, type AlertOptionId } from "../controls/alert/looks.js";
38
+ export { QUICK_FILTERS_LOOKS, type QuickFiltersOptionId } from "../controls/quick-filters/looks.js";
39
+ export { TOOLBAR_LOOKS, type ToolbarOptionId, type ToolbarPicks } from "../controls/toolbar/looks.js";
40
+ export { BULK_BAR_LOOKS, type BulkBarOptionId, type BulkBarPicks } from "../controls/bulk-bar/looks.js";
36
41
  export { TEXT_EDITOR_LOOKS, type TextEditorLookOptionId } from "../controls/text-editor/looks.js";
37
42
  export { DATE_EDITOR_LOOKS, type DateEditorLookOptionId } from "../controls/date-editor/looks.js";
38
43
  export { COMPOUND_EDITOR_LOOKS, type CompoundEditorOptionId } from "../controls/compound-editor/looks.js";
@@ -24,11 +24,16 @@ export { PICKER_LOOKS } from "../controls/picker/looks.js";
24
24
  export { AVATAR_LOOKS } from "../controls/avatar/looks.js";
25
25
  export { MENU_LIST_CARD_FRAME } from "../controls/menu-list/looks.js";
26
26
  export { PANE_LOOKS } from "../controls/pane/looks.js";
27
+ export { TOOLBAR_BUTTON_LOOKS } from "../controls/toolbar-button/looks.js";
27
28
  export { VIEWS_LIST_LOOKS } from "../controls/views-list/looks.js";
29
+ export { CUSTOMIZE_LOOKS } from "../controls/customize/looks.js";
28
30
  export { MODAL_LOOKS } from "../controls/modal/looks.js";
29
31
  export { ALERT_DIALOG_LOOKS } from "../controls/alert-dialog/looks.js";
30
32
  export { COLLAPSIBLE_LOOKS } from "../controls/collapsible/looks.js";
31
33
  export { ALERT_LOOKS } from "../controls/alert/looks.js";
34
+ export { QUICK_FILTERS_LOOKS } from "../controls/quick-filters/looks.js";
35
+ export { TOOLBAR_LOOKS } from "../controls/toolbar/looks.js";
36
+ export { BULK_BAR_LOOKS } from "../controls/bulk-bar/looks.js";
32
37
  export { TEXT_EDITOR_LOOKS } from "../controls/text-editor/looks.js";
33
38
  export { DATE_EDITOR_LOOKS } from "../controls/date-editor/looks.js";
34
39
  export { COMPOUND_EDITOR_LOOKS } from "../controls/compound-editor/looks.js";
@@ -21,11 +21,16 @@ import { AVATAR_LOOKS } from "../controls/avatar/looks.js";
21
21
  import { LIST_LOOKS } from "../controls/list/looks.js";
22
22
  import { PICKER_LOOKS } from "../controls/picker/looks.js";
23
23
  import { PANE_LOOKS } from "../controls/pane/looks.js";
24
+ import { TOOLBAR_BUTTON_LOOKS } from "../controls/toolbar-button/looks.js";
24
25
  import { VIEWS_LIST_LOOKS } from "../controls/views-list/looks.js";
26
+ import { CUSTOMIZE_LOOKS } from "../controls/customize/looks.js";
25
27
  import { MODAL_LOOKS } from "../controls/modal/looks.js";
26
28
  import { ALERT_DIALOG_LOOKS } from "../controls/alert-dialog/looks.js";
27
29
  import { COLLAPSIBLE_LOOKS } from "../controls/collapsible/looks.js";
28
30
  import { ALERT_LOOKS } from "../controls/alert/looks.js";
31
+ import { QUICK_FILTERS_LOOKS } from "../controls/quick-filters/looks.js";
32
+ import { TOOLBAR_LOOKS } from "../controls/toolbar/looks.js";
33
+ import { BULK_BAR_LOOKS } from "../controls/bulk-bar/looks.js";
29
34
  import { TEXT_EDITOR_LOOKS } from "../controls/text-editor/looks.js";
30
35
  import { DATE_EDITOR_LOOKS } from "../controls/date-editor/looks.js";
31
36
  import { COMPOUND_EDITOR_LOOKS } from "../controls/compound-editor/looks.js";
@@ -55,11 +60,16 @@ export const LOOKS = [
55
60
  PICKER_LOOKS,
56
61
  AVATAR_LOOKS,
57
62
  PANE_LOOKS,
63
+ TOOLBAR_BUTTON_LOOKS,
58
64
  VIEWS_LIST_LOOKS,
65
+ CUSTOMIZE_LOOKS,
59
66
  MODAL_LOOKS,
60
67
  ALERT_DIALOG_LOOKS,
61
68
  COLLAPSIBLE_LOOKS,
62
69
  ALERT_LOOKS,
70
+ QUICK_FILTERS_LOOKS,
71
+ TOOLBAR_LOOKS,
72
+ BULK_BAR_LOOKS,
63
73
  TEXT_EDITOR_LOOKS,
64
74
  DATE_EDITOR_LOOKS,
65
75
  COMPOUND_EDITOR_LOOKS,
@@ -1,34 +1,2 @@
1
- /** Who sets the width and padding of the popover around a whole body your app hands: ViewKit (`views`, the default) or
2
- * your `Popover` (`popover`). */
3
- export type ViewsBodyFrame = "views" | "popover";
4
- /** Where a grid editor opens the popover around a whole body your app hands: 4px under the cell (`under`, the default)
5
- * or with its top on the cell's top (`over`). */
6
- export type ViewsGridBodyPlace = "under" | "over";
7
1
  /** Which of the app's whole bodies an editor opens: its `Picker`, its `PartsBody`, its `ValuesBody` or its `LinksBody`. */
8
2
  export type ViewsBodyKind = "picker" | "parts" | "values" | "links";
9
- /** Which of the app's whole bodies a grid editor opens: one with a frame (`ViewsBodyKind`), or its `DateBody`, which
10
- * has none. */
11
- export type ViewsBodySlot = ViewsBodyKind | "date";
12
- /** The components map's body slots, as far as whether one was handed. */
13
- type BodySlots = {
14
- Picker?: unknown;
15
- PartsBody?: unknown;
16
- ValuesBody?: unknown;
17
- LinksBody?: unknown;
18
- DateBody?: unknown;
19
- };
20
- /** Whether the app handed the body this slot names. The panel's width and frame and a grid popover's place both read
21
- * it, so the two can't disagree about one body. */
22
- export declare function bodyHanded(components: BodySlots, slot: ViewsBodySlot): boolean;
23
- /**
24
- * The class and the data a host hands its popover. `body` is the app's body the editor opens, or null when it draws
25
- * ViewKit's own; `viewkit` is ViewKit's width and padding, `kept` what isn't look (the layer, a screen cap). At
26
- * `popover` with a body, only `kept` and the mark `data-vk-body`; otherwise today's classes and no mark.
27
- */
28
- export declare function bodyPanel(frame: ViewsBodyFrame | undefined, body: ViewsBodyKind | null, viewkit: string, kept: string): {
29
- className: string;
30
- data: {
31
- "data-vk-body"?: ViewsBodyKind;
32
- };
33
- };
34
- export {};
@@ -1,15 +1 @@
1
- const SLOT_KEYS = {
2
- picker: "Picker",
3
- parts: "PartsBody",
4
- values: "ValuesBody",
5
- links: "LinksBody",
6
- date: "DateBody",
7
- };
8
- export function bodyHanded(components, slot) {
9
- return !!components[SLOT_KEYS[slot]];
10
- }
11
- export function bodyPanel(frame, body, viewkit, kept) {
12
- if (frame === "popover" && body)
13
- return { className: kept, data: { "data-vk-body": body } };
14
- return { className: `${viewkit} ${kept}`, data: {} };
15
- }
1
+ export {};
@@ -81,6 +81,8 @@ export declare function columnManagedByView<Row>(col: ListColumn<Row>): boolean;
81
81
  * POR-496). Filtering and totals stay `columnManagedByView`'s: a computed
82
82
  * column never filters, sorts, groups or totals. A part column (`partOf`) is placed as its whole is. */
83
83
  export declare function columnPlacedByView<Row>(col: ListColumn<Row>): boolean;
84
+ /** The English of `views.panels.filter-fieldless`: why a saved view cannot filter on a column with no field. ViewKit's
85
+ * builder words it through your messages (VK-884); this is its default. */
84
86
  export declare const VIEW_FIELDLESS_FILTER_REASON = "Not a field of this list; a view cannot filter on it.";
85
87
  /** Reorder the columns a view places while leaving the rest in their declared
86
88
  * slots. Unknown and omitted ids follow resolveColumnOrder's forgiving
@@ -93,7 +93,8 @@ export declare function buildColumnFilters<Row>({ columns, order, declared, icon
93
93
  /** columnId → value → its name, for a relation's, a user's or an actor's known values (POR-1480): a value the
94
94
  * host did not name is not offered unless it is on screen. */
95
95
  knownLabels?: Record<string, Readonly<Record<string, string>>>;
96
- /** An open field's, a relation's, a user's or an actor's row opened: the host may ask for its values. */
96
+ /** An open field's, a relation's, a user's or an actor's row opened, or a filter on the bar holds a value of it the host
97
+ * hasn't named (asked once, VK-883): the host may ask for its values, their names in `knownLabels`. */
97
98
  onValuesWanted?: (columnId: string) => void;
98
99
  /** One row per part of a value, right under its column (VK-57): "Location · Country", "Name · First name"
99
100
  * (`FILTER_PART_ROWS`). Keyed `partKey(columnId, part)` in `rules`, `onRuleChange`, `selectValues`, `knownValues`
@@ -58,8 +58,8 @@ function formatOf(field) {
58
58
  const out = {};
59
59
  if (def.format?.dateStyle)
60
60
  out.dateStyle = def.format.dateStyle;
61
- if (def.format?.withTime)
62
- out.withTime = true;
61
+ if (def.format?.withTime !== undefined)
62
+ out.withTime = def.format.withTime;
63
63
  return Object.keys(out).length ? out : undefined;
64
64
  }
65
65
  case "boolean":
@@ -18,11 +18,11 @@ export declare function isLongTextColumn<Row>(col: ListColumn<Row>): boolean;
18
18
  /** Whether a cell opens a PANEL to be READ, whatever its write state. */
19
19
  export declare function gridColumnInspectable<Row>(col: ListColumn<Row>): boolean;
20
20
  /** A text that opens WHOLE in the panel when the cell cuts it off: plain text, and a name that is
21
- * text (not a person's name, which edits in its own boxes). Links, emails, phones and domains keep
21
+ * text (not a person's name, which edits in the app's parts body). Links, emails, phones and domains keep
22
22
  * their one-line box, which grows to fit what is typed in it. Whether it IS cut off is the cell's to
23
23
  * measure (`gridCellCutOff`). */
24
24
  export declare function isWholeTextColumn<Row>(col: ListColumn<Row>): boolean;
25
- /** Whether an open text cell is drawn in the panel over the cell rather than in the cell: a
26
- * paragraph always, a line when it opened `whole` (cut off when it was opened). `inCell`: an app's text body is
27
- * handed and the cell is writable: the body stands in the cell, so nothing opens the panel. */
28
- export declare function gridTextOpensBox<Row>(col: ListColumn<Row>, whole: boolean, inCell?: boolean): boolean;
25
+ /** Whether an open text cell is drawn in the read-only panel over the cell rather than in the cell. A writable cell
26
+ * never is: the app's text body stands in the cell. A read-only one is when it is a paragraph, or a line that opened
27
+ * `whole` (cut off when it was opened). `writable` defaults to false, as the argument it replaced (`inCell`) did. */
28
+ export declare function gridTextOpensBox<Row>(col: ListColumn<Row>, whole: boolean, writable?: boolean): boolean;
@@ -10,8 +10,8 @@ export function isWholeTextColumn(col) {
10
10
  return !col.format?.long;
11
11
  return col.type === "title" && !(col.field && valueTypeOf(col.field) === "name");
12
12
  }
13
- export function gridTextOpensBox(col, whole, inCell = false) {
14
- if (inCell)
13
+ export function gridTextOpensBox(col, whole, writable = false) {
14
+ if (writable)
15
15
  return false;
16
16
  return isLongTextColumn(col) || (whole && isWholeTextColumn(col));
17
17
  }
@@ -35,6 +35,8 @@ type FarRow = Record<string, unknown>;
35
35
  export type FarValues = {
36
36
  values: Readonly<Record<string, readonly string[]>>;
37
37
  labels?: Readonly<Record<string, Readonly<Record<string, string>>>>;
38
+ /** A far field's values are wanted, by its path: its row opened, or a filter on the bar holds a value of it the host
39
+ * hasn't named (asked once, VK-883); the names go in `labels`. */
38
40
  onWanted: (path: string) => void;
39
41
  };
40
42
  /** What a relation's far fields are as the filter builder reads them (VK-531): each far field as a column (greyed, with
@@ -10,15 +10,6 @@ export declare function groupBodyValue(group: GroupConfig): ViewsGroupValue;
10
10
  export declare function groupBodyWrite(group: GroupConfig, next: ViewsGroupValue): (() => void) | null;
11
11
  /** What a `GroupBody` is handed, its chrome (`form`, `onDone`, `actions`) aside: a Customize body's `group` too. */
12
12
  export declare function groupBodyProps(group: GroupConfig, messages: ViewsMessageResolver): Omit<ViewsGroupBodyProps, "form" | "onDone" | "actions">;
13
- /** Whether a list's filter is only per-field values (a field's values, a time scope, a date range) with no filter tree:
14
- * a Customize body has no data shape for those, so such a list keeps ViewKit's own Customize even where the app hands
15
- * one. */
16
- export declare function perFieldFiltersOnly({ filters, filterTree, timeScopeConfig, dateRangeConfigs, }: {
17
- filters?: readonly unknown[];
18
- filterTree?: unknown;
19
- timeScopeConfig?: unknown;
20
- dateRangeConfigs?: readonly unknown[];
21
- }): boolean;
22
13
  /** ViewKit's page as a Customize body's: a page under a section is that section's. */
23
14
  export declare function customizePageOf(panel: ActivePanel): ViewsCustomizePage;
24
15
  /** A Customize body's page as ViewKit's: its list is no page; Filter is the folded Filter page. */
@@ -36,7 +27,7 @@ export declare function columnsBodyWrite(columns: LayoutColumnsConfig, next: rea
36
27
  id: string;
37
28
  hidden: boolean;
38
29
  }[], messages: ViewsMessageResolver): (() => void) | null;
39
- /** The Columns section, where ViewKit's own Customize shows Columns (`columnsFor`, else the layout's sub-options):
30
+ /** The Columns section, where the layout in use has one (`columnsFor`, else the layout's sub-options):
40
31
  * the columns with a card's new lines on a layout that lays fields out on a card, Reset while they differ from the
41
32
  * view, and the field editor's rows. */
42
33
  export declare function customizeColumnsOf(layout: LayoutConfig, fieldEditor: PanelFieldEditor | null | undefined, messages: ViewsMessageResolver): ViewsCustomizeColumns | undefined;
@@ -92,9 +92,6 @@ export function groupBodyProps(group, messages) {
92
92
  onGroupChange: (next) => groupBodyWrite(group, next)?.(),
93
93
  };
94
94
  }
95
- export function perFieldFiltersOnly({ filters, filterTree, timeScopeConfig, dateRangeConfigs, }) {
96
- return !filterTree && ((filters?.length ?? 0) > 0 || !!timeScopeConfig || (dateRangeConfigs?.length ?? 0) > 0);
97
- }
98
95
  export function customizePageOf(panel) {
99
96
  switch (panel?.type) {
100
97
  case "layout":
@@ -4,10 +4,6 @@ import { useRef, useState } from "react";
4
4
  import { cx } from "../../internal/cx.js";
5
5
  import { useViews } from "../../provider/context.js";
6
6
  import { drawPanelButton } from "../panel-button.js";
7
- const LOOKS = {
8
- sentence: "inline-flex items-center gap-1 whitespace-nowrap text-sm font-medium text-(color:--vk-fg)",
9
- field: "flex h-8 w-full items-center justify-between gap-1 whitespace-nowrap rounded-lg border border-(color:--vk-border) px-2.5 text-sm text-(color:--vk-fg)",
10
- };
11
7
  const FRAMES = {
12
8
  sentence: "h-auto gap-1 whitespace-nowrap p-0",
13
9
  field: "h-8 w-full justify-between gap-1 whitespace-nowrap px-2.5",
@@ -22,7 +18,6 @@ export function MenuSelect({ value, options, onChange, label, look, className, }
22
18
  const openAtPress = useRef(null);
23
19
  const chosen = options.find((option) => option.value === value)?.label ?? value;
24
20
  return (_jsxs(_Fragment, { children: [drawPanelButton(views, {
25
- own: cx(LOOKS[look], className),
26
21
  frame: cx(FRAMES[look], className),
27
22
  variant: look === "sentence" ? "ghost" : "outline",
28
23
  size: "sm",
@@ -62,7 +62,6 @@ export function RangeFilterBody({ filter, rowClassName, rowBorderClassName, labe
62
62
  commit(a, b, op.value);
63
63
  }, className: cx(rowClassName, index > 0 && rowBorderClassName), labelClassName: labelClassName, checkClassName: checkClassName }, op.value)));
64
64
  return (_jsxs(_Fragment, { children: [filter.presets?.length ? (_jsx("div", { "data-vs-inset": true, className: cx("flex flex-wrap gap-1.5", fieldClassName ?? PRESETS_PADDING), children: filter.presets.map((p) => (_jsx(Fragment, { children: drawPanelButton(views, {
65
- own: "rounded-md border border-(color:--vk-border) px-2 py-0.5 text-xs text-(color:--vk-fg) hover:bg-(color:--vk-hovered)",
66
65
  frame: "h-auto px-2 py-0.5",
67
66
  variant: "outline",
68
67
  size: "sm",
@@ -1,5 +1,5 @@
1
1
  import { type FilterConfig } from "../../filters/filter-model.js";
2
- import { type DateRangeConfig, type ToggleConfig } from "../model.js";
2
+ import { type DateRangeConfig } from "../model.js";
3
3
  export declare function CompactFilterDetail<T extends string>({ filter, onOpenField, onConverted, }: {
4
4
  filter: FilterConfig<T>;
5
5
  /** A relation's Where row opens its far field one level down (POR-704). */
@@ -9,10 +9,6 @@ export declare function CompactFilterDetail<T extends string>({ filter, onOpenFi
9
9
  * phone (VK-531). */
10
10
  onConverted?: () => void;
11
11
  }): import("react/jsx-runtime").JSX.Element;
12
- export declare function CompactToggleDetail({ toggle, onBack, }: {
13
- toggle: ToggleConfig;
14
- onBack: () => void;
15
- }): import("react/jsx-runtime").JSX.Element;
16
12
  /** A `Date` as the month's ISO day, and back, on the local calendar. */
17
13
  export declare const dayOf: (date: Date | null) => string | null;
18
14
  export declare const dateOf: (key: string | null) => Date | null;
@@ -36,7 +36,6 @@ function FilterDetailBody({ filter, onOpenField, }) {
36
36
  }
37
37
  if (isUnavailableFilter(filter)) {
38
38
  return (_jsxs("div", { "data-vs-detail": true, className: "space-y-3 px-3 py-3 text-sm text-(color:--vk-fg-subtle)", children: [_jsx("p", { children: filter.reason }), filter.stale && (drawPanelButton(views, {
39
- own: "font-medium text-(color:--vk-fg-brand)",
40
39
  frame: "h-auto p-0",
41
40
  variant: "ghost",
42
41
  size: "sm",
@@ -72,17 +71,6 @@ function FilterDetailBody({ filter, onOpenField, }) {
72
71
  const hideAllOption = filter.hideAllOption ?? false;
73
72
  return (_jsxs("div", { "data-vs-detail": true, className: cx("max-h-64", PANEL_SCROLL), children: [!hideAllOption && (_jsx(RadioRow, { mark: "box", selected: filter.value === allValue, label: filter.allLabel ?? messages({ key: "views.panels.filter-all-of", values: { field: filter.label } }), onClick: () => filter.onChange(allValue) })), filter.options.map((opt) => (_jsx(RadioRow, { mark: "box", selected: filter.value === opt.value, label: opt.label, onClick: () => filter.onChange(opt.value) }, opt.value)))] }));
74
73
  }
75
- export function CompactToggleDetail({ toggle, onBack, }) {
76
- const { atoms, messages } = useViews();
77
- const { RadioRow } = atoms;
78
- return (_jsxs("div", { "data-vs-detail": true, className: cx("max-h-64", PANEL_SCROLL), children: [_jsx(RadioRow, { mark: "box", selected: toggle.value === true, label: messages({ key: "views.panels.toggle-on" }), onClick: () => {
79
- toggle.onChange(true);
80
- onBack();
81
- } }), _jsx(RadioRow, { mark: "box", selected: toggle.value === false, label: messages({ key: "views.panels.toggle-off" }), onClick: () => {
82
- toggle.onChange(false);
83
- onBack();
84
- } })] }));
85
- }
86
74
  export const dayOf = (date) => (date ? toDayKey(date) : null);
87
75
  export const dateOf = (key) => (key ? fromDayKey(key) : null);
88
76
  export function CompactDateRangeDetail({ dateRangeConfig }) {
@@ -90,7 +78,6 @@ export function CompactDateRangeDetail({ dateRangeConfig }) {
90
78
  const { atoms, conventions, messages } = views;
91
79
  const { from, to } = dateRangeConfig.value;
92
80
  return (_jsx(atoms.RangeCalendar, { mode: "range", from: dayOf(from), to: dayOf(to), locale: conventions.locale, onSelect: (next) => dateRangeConfig.onChange({ from: dateOf(next.from), to: dateOf(next.to) }), footer: isDateRangeActive(dateRangeConfig) ? (_jsx("div", { className: "flex justify-end", children: drawPanelButton(views, {
93
- own: "text-xs text-(color:--vk-fg-subtle) hover:text-(color:--vk-fg) transition-colors",
94
81
  frame: "h-auto p-0",
95
82
  variant: "ghost",
96
83
  size: "sm",
@@ -16,7 +16,6 @@ export declare const PANEL_SCROLL = "overflow-y-auto overscroll-contain p-(--vk-
16
16
  export declare function FilterSectionHeading({ children }: {
17
17
  children: string;
18
18
  }): import("react/jsx-runtime").JSX.Element;
19
- export declare function dimensionRows<S extends string, G extends string, T extends string>(filters: ViewOptionInputs<S, G, T>["filters"], timeScopeConfig: ViewOptionInputs<S, G, T>["timeScopeConfig"], dateRangeConfigs: ViewOptionInputs<S, G, T>["dateRangeConfigs"], onOpenPanel: (p: ActivePanel) => void): import("react/jsx-runtime").JSX.Element;
20
19
  /** The consolidated Filter drill-in — the same dimension rows, one level down. */
21
20
  export declare function CompactFilterList<S extends string, G extends string, T extends string>({ filters, timeScopeConfig, dateRangeConfigs, onOpenPanel, }: Pick<ViewOptionInputs<S, G, T>, "filters" | "timeScopeConfig" | "dateRangeConfigs"> & {
22
21
  onOpenPanel: (p: ActivePanel) => void;
@@ -26,7 +26,7 @@ function DateRangeRows({ configs, onOpenPanel, }) {
26
26
  const Calendar = icons.date;
27
27
  return (_jsx(_Fragment, { children: configs.map((d) => (_jsx(atoms.MenuRow, { icon: _jsx(Calendar, { className: "h-3.5 w-3.5" }), label: d.label ?? messages({ key: "views.panels.date-range-label" }), value: dateRangeValueLabel(d, messages, conventions), active: isDateRangeActive(d), onClick: () => onOpenPanel({ type: "dateRange", key: d.key }) }, d.key))) }));
28
28
  }
29
- export function dimensionRows(filters, timeScopeConfig, dateRangeConfigs, onOpenPanel) {
29
+ function dimensionRows(filters, timeScopeConfig, dateRangeConfigs, onOpenPanel) {
30
30
  const plain = (filters ?? []).filter((f) => !f.section);
31
31
  const sections = filterSectionNames(filters);
32
32
  return (_jsxs(_Fragment, { children: [plain.map((f) => (_jsx(FilterRow, { filter: f, onOpenPanel: onOpenPanel }, f.key))), sections.map((section) => (_jsxs("div", { children: [_jsx(FilterSectionHeading, { children: section }), (filters ?? [])
@@ -4,14 +4,14 @@ export type { CollectionExportCsv, CollectionViewState } from "./view-state.js";
4
4
  export { getViewOptionAvailability, resolvePersonalSection } from "./availability.js";
5
5
  export { groupSortChoices, groupSortValue, offersManualOrder } from "./group-sort.js";
6
6
  export { useFilterOpened } from "./use-filter-opened.js";
7
- export { GROUP_BY_SEARCH_AFTER, activeGroupDimension, dateRangeValueLabel, filterRowValueLabel, filterValueLabel, groupDateByLabel, groupSortLabel, groupValueLabel, layoutValueLabel, matchGroupDimensions, matchSortOptions, relationSentence, sortValueLabel, timeScopeRowValueLabel, } from "./labels.js";
7
+ export { GROUP_BY_SEARCH_AFTER, activeGroupDimension, dateRangeValueLabel, drawsUnnamedValue, filterRowValueLabel, filterValueLabel, groupDateByLabel, groupSortLabel, groupValueLabel, layoutValueLabel, matchGroupDimensions, matchSortOptions, relationSentence, sortValueLabel, timeScopeRowValueLabel, } from "./labels.js";
8
8
  export type { CollectionChildAxis, CollectionViewsConfig, CollectionViewsInput, PillOption, ViewTabOption, ViewsLayout, } from "./views-row/model.js";
9
9
  export { splitViewAxes, toViewAxes } from "./views-row/model.js";
10
10
  export { settingsPanels } from "./settings/settings-panels.js";
11
11
  export type { SettingsPanels } from "./settings/settings-panels.js";
12
12
  export type { PanelGroupHead, SettingsGroupDimension, SettingsPanelsInput, } from "./settings/input.js";
13
13
  export { filterWriter, settingsFilters, type FilterWriter } from "./settings/filters.js";
14
- export { emptyValueFor, filterEditorFields, filterWaysOf, heldUntilWhole, newRelationRuleFor, newRuleFor, setAsideFits, settingsFilterTree, takesValue, withField, withOperator, } from "./settings/filter-groups.js";
14
+ export { emptyValueFor, filterEditorFields, filterWaysOf, heldUntilWhole, listedFieldsOf, newRelationRuleFor, newRuleFor, setAsideFits, settingsFilterTree, takesValue, withField, withOperator, } from "./settings/filter-groups.js";
15
15
  export { addAt, addOnBar, advancedFiltersOf, barAddRefusal, barItemsOf, canExcludeAt, canGroupAt, clearedTree, editIn, editWhole, editView, followAdvancedKeys, followBarKeys, groupAt, itemsAt, joinAt, nodeAt, orLevelWrapped, putBackAt, removeAt, replaceAt, setExcludedAt, setJoinAt, settled, shownRuleCount, type AdvancedFilter, type BarItem, type FilterPath, } from "../filters/filter-tree.js";
16
16
  export { groupDimensionFor, settingsGroup, settingsGroupBy, settingsSort, } from "./settings/order.js";
17
17
  export { addSortRule, canAddSortRule, isSortRulesActive, openSortPlaces, settingsSorts, sortFieldOf, sortRulesLabel, sortedField, sortedValues, withFirstRule, } from "./settings/sorts.js";
@@ -2,11 +2,11 @@ export { clearViewOptions, countActiveFilters, countActiveViewOptions, groupOrde
2
2
  export { getViewOptionAvailability, resolvePersonalSection } from "./availability.js";
3
3
  export { groupSortChoices, groupSortValue, offersManualOrder } from "./group-sort.js";
4
4
  export { useFilterOpened } from "./use-filter-opened.js";
5
- export { GROUP_BY_SEARCH_AFTER, activeGroupDimension, dateRangeValueLabel, filterRowValueLabel, filterValueLabel, groupDateByLabel, groupSortLabel, groupValueLabel, layoutValueLabel, matchGroupDimensions, matchSortOptions, relationSentence, sortValueLabel, timeScopeRowValueLabel, } from "./labels.js";
5
+ export { GROUP_BY_SEARCH_AFTER, activeGroupDimension, dateRangeValueLabel, drawsUnnamedValue, filterRowValueLabel, filterValueLabel, groupDateByLabel, groupSortLabel, groupValueLabel, layoutValueLabel, matchGroupDimensions, matchSortOptions, relationSentence, sortValueLabel, timeScopeRowValueLabel, } from "./labels.js";
6
6
  export { splitViewAxes, toViewAxes } from "./views-row/model.js";
7
7
  export { settingsPanels } from "./settings/settings-panels.js";
8
8
  export { filterWriter, settingsFilters } from "./settings/filters.js";
9
- export { emptyValueFor, filterEditorFields, filterWaysOf, heldUntilWhole, newRelationRuleFor, newRuleFor, setAsideFits, settingsFilterTree, takesValue, withField, withOperator, } from "./settings/filter-groups.js";
9
+ export { emptyValueFor, filterEditorFields, filterWaysOf, heldUntilWhole, listedFieldsOf, newRelationRuleFor, newRuleFor, setAsideFits, settingsFilterTree, takesValue, withField, withOperator, } from "./settings/filter-groups.js";
10
10
  export { addAt, addOnBar, advancedFiltersOf, barAddRefusal, barItemsOf, canExcludeAt, canGroupAt, clearedTree, editIn, editWhole, editView, followAdvancedKeys, followBarKeys, groupAt, itemsAt, joinAt, nodeAt, orLevelWrapped, putBackAt, removeAt, replaceAt, setExcludedAt, setJoinAt, settled, shownRuleCount, } from "../filters/filter-tree.js";
11
11
  export { groupDimensionFor, settingsGroup, settingsGroupBy, settingsSort, } from "./settings/order.js";
12
12
  export { addSortRule, canAddSortRule, isSortRulesActive, openSortPlaces, settingsSorts, sortFieldOf, sortRulesLabel, sortedField, sortedValues, withFirstRule, } from "./settings/sorts.js";
@@ -2,6 +2,10 @@ import { type DateRangeConfig, type GroupConfig, type LayoutConfig, type SortCon
2
2
  import { type FilterConfig, type FilterConfigRelation } from "../filters/filter-model.js";
3
3
  import { type FieldConventions } from "viewkitjs/fields";
4
4
  import { type ViewsMessageResolver } from "../contract.js";
5
+ /** Whether `filterValueLabel` draws this filter's value by its stored key, no option naming it (VK-883): a choice whose one
6
+ * picked value its options don't list, as a person's id after a reload before the app named it. Two or more are drawn as a
7
+ * count, and a body with words of its own (`valueLabel`, a text, a number, a date) never draws a key. */
8
+ export declare function drawsUnnamedValue<T extends string>(filter: FilterConfig<T> | null): boolean;
5
9
  /**
6
10
  * What a relation's filter keeps, in one sentence (POR-704): "Clients with at least one campaign where
7
11
  * status is Active." Read beside the quantifier rows, so a reader never has to work out what "None" with a
@@ -19,6 +19,14 @@ function condition(w, cv, messages) {
19
19
  values: { field: w.label, value: filterValueLabel(w, cv, messages) },
20
20
  });
21
21
  }
22
+ export function drawsUnnamedValue(filter) {
23
+ if (!filter || filter.editor !== undefined || filter.valueLabel !== undefined || !("options" in filter))
24
+ return false;
25
+ const named = (value) => filter.options.some((option) => option.value === value);
26
+ if (filter.multi)
27
+ return filter.value.length === 1 && !named(filter.value[0]);
28
+ return filter.value !== (filter.allValue ?? "all") && !named(filter.value);
29
+ }
22
30
  export function relationSentence(filter, cv, messages = resolveViewsMessage) {
23
31
  const { subject, noun } = filter;
24
32
  const rule = filter.value;