viewkitjs 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/MIGRATION.md +123 -5
  3. package/fields/dist/derived.d.ts +2 -1
  4. package/fields/dist/derived.js +9 -3
  5. package/fields/dist/entities.js +41 -3
  6. package/fields/dist/index.d.ts +1 -1
  7. package/fields/dist/index.js +1 -1
  8. package/fields/dist/messages.d.ts +8 -2
  9. package/fields/dist/messages.js +3 -0
  10. package/fields/dist/range.d.ts +6 -0
  11. package/fields/dist/range.js +8 -0
  12. package/fields/dist/registry.js +11 -1
  13. package/fields/dist/spec-changes.js +1 -0
  14. package/fields/dist/types.d.ts +23 -1
  15. package/fields/docs/guides/derived-fields.md +7 -5
  16. package/fields/docs/guides/field-types.md +2 -2
  17. package/fields/docs/guides/the-index.md +1 -1
  18. package/fields/docs/reference/fields.md +3 -1
  19. package/fields/docs/reference/types.md +3 -1
  20. package/fields/skills/viewkit/SKILL.md +1 -1
  21. package/package.json +2 -1
  22. package/postgres/dist/definitions/build.js +29 -5
  23. package/postgres/dist/definitions/label.d.ts +7 -0
  24. package/postgres/dist/definitions/label.js +9 -1
  25. package/postgres/dist/definitions/lookup.js +6 -2
  26. package/postgres/dist/definitions/place.d.ts +6 -3
  27. package/postgres/dist/definitions/rollup.js +5 -1
  28. package/postgres/dist/definitions/storage.d.ts +15 -0
  29. package/postgres/dist/definitions/storage.js +52 -1
  30. package/postgres/dist/definitions/stored.js +21 -0
  31. package/postgres/dist/phone.d.ts +13 -1
  32. package/postgres/dist/phone.js +23 -3
  33. package/postgres/dist/search-indexes.d.ts +6 -1
  34. package/postgres/dist/search-indexes.js +71 -25
  35. package/postgres/dist/search.js +3 -3
  36. package/postgres/docs/guides/definitions.md +22 -5
  37. package/postgres/docs/guides/field-map.md +5 -4
  38. package/postgres/docs/reference/definitions.md +3 -3
  39. package/postgres/docs/reference/postgres.md +1 -1
  40. package/views/dist/cells/cell-format.d.ts +3 -1
  41. package/views/dist/cells/cell-format.js +3 -3
  42. package/views/dist/cells/cell-values.js +9 -10
  43. package/views/dist/cells/use-cell-format.d.ts +8 -1
  44. package/views/dist/cells/use-cell-format.js +13 -2
  45. package/views/dist/contract.d.ts +218 -5
  46. package/views/dist/contract.js +233 -1
  47. package/views/dist/controls/alert/alert.d.ts +46 -0
  48. package/views/dist/controls/alert/alert.js +11 -0
  49. package/views/dist/controls/alert/looks.d.ts +4 -0
  50. package/views/dist/controls/alert/looks.js +19 -0
  51. package/views/dist/controls/alert/tokens.d.ts +92 -0
  52. package/views/dist/controls/alert/tokens.js +25 -0
  53. package/views/dist/controls/alert-dialog/alert-dialog.d.ts +50 -0
  54. package/views/dist/controls/alert-dialog/alert-dialog.js +67 -0
  55. package/views/dist/controls/alert-dialog/confirm.d.ts +13 -0
  56. package/views/dist/controls/alert-dialog/confirm.js +11 -0
  57. package/views/dist/controls/alert-dialog/looks.d.ts +4 -0
  58. package/views/dist/controls/alert-dialog/looks.js +17 -0
  59. package/views/dist/controls/alert-dialog/tokens.d.ts +119 -0
  60. package/views/dist/controls/alert-dialog/tokens.js +32 -0
  61. package/views/dist/controls/alert-dialog.css +95 -0
  62. package/views/dist/controls/alert.css +51 -0
  63. package/views/dist/controls/bulk-bar/bulk-bar-of.d.ts +66 -0
  64. package/views/dist/controls/bulk-bar/bulk-bar-of.js +22 -0
  65. package/views/dist/controls/bulk-bar/bulk-bar.d.ts +40 -0
  66. package/views/dist/controls/bulk-bar/bulk-bar.js +278 -0
  67. package/views/dist/controls/bulk-bar/looks.d.ts +10 -0
  68. package/views/dist/controls/bulk-bar/looks.js +14 -0
  69. package/views/dist/controls/bulk-bar/map-selection-bar.d.ts +19 -0
  70. package/views/dist/controls/bulk-bar/map-selection-bar.js +57 -0
  71. package/views/dist/controls/bulk-bar/tokens.d.ts +136 -0
  72. package/views/dist/controls/bulk-bar/tokens.js +36 -0
  73. package/views/dist/controls/bulk-bar/words.d.ts +50 -0
  74. package/views/dist/controls/bulk-bar/words.js +19 -0
  75. package/views/dist/controls/bulk-bar.css +96 -0
  76. package/views/dist/controls/button/button.js +3 -1
  77. package/views/dist/controls/button.css +5 -4
  78. package/views/dist/controls/checkbox/checkbox.js +3 -1
  79. package/views/dist/controls/checkbox.css +1 -1
  80. package/views/dist/controls/choice/tokens.d.ts +79 -0
  81. package/views/dist/controls/choice/tokens.js +22 -0
  82. package/views/dist/controls/choice.css +31 -0
  83. package/views/dist/controls/collapsible/collapsible.d.ts +39 -0
  84. package/views/dist/controls/collapsible/collapsible.js +18 -0
  85. package/views/dist/controls/collapsible/looks.d.ts +4 -0
  86. package/views/dist/controls/collapsible/looks.js +5 -0
  87. package/views/dist/controls/collapsible/map-collapse.d.ts +2 -0
  88. package/views/dist/controls/collapsible/map-collapse.js +6 -0
  89. package/views/dist/controls/collapsible/tokens.d.ts +68 -0
  90. package/views/dist/controls/collapsible/tokens.js +19 -0
  91. package/views/dist/controls/collapsible.css +83 -0
  92. package/views/dist/controls/compound-editor/looks.js +1 -1
  93. package/views/dist/controls/compound-editor/place-parts.js +5 -1
  94. package/views/dist/controls/controls.d.ts +19 -0
  95. package/views/dist/controls/controls.js +17 -0
  96. package/views/dist/controls/customize/customize.d.ts +125 -0
  97. package/views/dist/controls/customize/customize.js +243 -0
  98. package/views/dist/controls/customize/glide.d.ts +10 -0
  99. package/views/dist/controls/customize/glide.js +55 -0
  100. package/views/dist/controls/customize/looks.d.ts +13 -0
  101. package/views/dist/controls/customize/looks.js +11 -0
  102. package/views/dist/controls/customize/map-customize-body.d.ts +18 -0
  103. package/views/dist/controls/customize/map-customize-body.js +160 -0
  104. package/views/dist/controls/customize/rules.d.ts +23 -0
  105. package/views/dist/controls/customize/rules.js +19 -0
  106. package/views/dist/controls/customize/tokens.d.ts +40 -0
  107. package/views/dist/controls/customize/tokens.js +12 -0
  108. package/views/dist/controls/customize/words.d.ts +58 -0
  109. package/views/dist/controls/customize/words.js +37 -0
  110. package/views/dist/controls/customize.css +54 -0
  111. package/views/dist/controls/date-editor/date-editor.d.ts +2 -1
  112. package/views/dist/controls/date-editor/looks.js +1 -1
  113. package/views/dist/controls/date-editor/map-calendar.js +3 -1
  114. package/views/dist/controls/filter-editor/block.d.ts +31 -0
  115. package/views/dist/controls/filter-editor/block.js +27 -0
  116. package/views/dist/controls/filter-editor/filter-editor.d.ts +58 -0
  117. package/views/dist/controls/filter-editor/filter-editor.js +250 -0
  118. package/views/dist/controls/filter-editor/how.d.ts +23 -0
  119. package/views/dist/controls/filter-editor/how.js +14 -0
  120. package/views/dist/controls/filter-editor/map-filter-body.d.ts +33 -0
  121. package/views/dist/controls/filter-editor/map-filter-body.js +190 -0
  122. package/views/dist/controls/filter-editor/map-rules.d.ts +101 -0
  123. package/views/dist/controls/filter-editor/map-rules.js +304 -0
  124. package/views/dist/controls/filter-editor/parts.d.ts +46 -0
  125. package/views/dist/controls/filter-editor/parts.js +75 -0
  126. package/views/dist/controls/filter-editor/rules.d.ts +142 -0
  127. package/views/dist/controls/filter-editor/rules.js +201 -0
  128. package/views/dist/controls/filter-editor/tokens.d.ts +83 -0
  129. package/views/dist/controls/filter-editor/tokens.js +23 -0
  130. package/views/dist/controls/filter-editor/words.d.ts +74 -0
  131. package/views/dist/controls/filter-editor/words.js +46 -0
  132. package/views/dist/controls/filter-editor.css +142 -0
  133. package/views/dist/controls/group-editor/group-editor.d.ts +56 -0
  134. package/views/dist/controls/group-editor/group-editor.js +126 -0
  135. package/views/dist/controls/group-editor/map-group-body.d.ts +19 -0
  136. package/views/dist/controls/group-editor/map-group-body.js +106 -0
  137. package/views/dist/controls/group-editor/rules.d.ts +48 -0
  138. package/views/dist/controls/group-editor/rules.js +41 -0
  139. package/views/dist/controls/group-editor/tokens.d.ts +15 -0
  140. package/views/dist/controls/group-editor/tokens.js +6 -0
  141. package/views/dist/controls/group-editor/words.d.ts +39 -0
  142. package/views/dist/controls/group-editor/words.js +21 -0
  143. package/views/dist/controls/group-editor.css +20 -0
  144. package/views/dist/controls/index.d.ts +45 -3
  145. package/views/dist/controls/index.js +44 -3
  146. package/views/dist/controls/inline-input/looks.js +1 -1
  147. package/views/dist/controls/input/input.js +10 -4
  148. package/views/dist/controls/internal/editor-parts.d.ts +8 -1
  149. package/views/dist/controls/internal/editor-parts.js +5 -0
  150. package/views/dist/controls/internal/phone.d.ts +5 -4
  151. package/views/dist/controls/internal/phone.js +7 -7
  152. package/views/dist/controls/internal/scroll.js +5 -1
  153. package/views/dist/controls/internal/step-return.d.ts +9 -0
  154. package/views/dist/controls/internal/step-return.js +27 -0
  155. package/views/dist/controls/internal/typed-run.d.ts +2 -0
  156. package/views/dist/controls/internal/typed-run.js +5 -0
  157. package/views/dist/controls/links-editor/links-editor.d.ts +5 -3
  158. package/views/dist/controls/links-editor/links-editor.js +38 -17
  159. package/views/dist/controls/links-editor/map-links-body.js +4 -1
  160. package/views/dist/controls/links-editor.css +1 -1
  161. package/views/dist/controls/menu/map-menu.js +2 -2
  162. package/views/dist/controls/menu-list/menu-list.d.ts +17 -2
  163. package/views/dist/controls/menu-list/menu-list.js +25 -16
  164. package/views/dist/controls/modal/looks.d.ts +4 -0
  165. package/views/dist/controls/modal/looks.js +25 -0
  166. package/views/dist/controls/modal/modal.d.ts +69 -0
  167. package/views/dist/controls/modal/modal.js +62 -0
  168. package/views/dist/controls/modal/tokens.d.ts +192 -0
  169. package/views/dist/controls/modal/tokens.js +50 -0
  170. package/views/dist/controls/modal.css +130 -0
  171. package/views/dist/controls/notice/notice.d.ts +49 -0
  172. package/views/dist/controls/notice/notice.js +35 -0
  173. package/views/dist/controls/notice/tokens.d.ts +99 -0
  174. package/views/dist/controls/notice/tokens.js +27 -0
  175. package/views/dist/controls/notice.css +100 -0
  176. package/views/dist/controls/number-editor/looks.js +1 -1
  177. package/views/dist/controls/number-editor/number-editor.js +1 -1
  178. package/views/dist/controls/option/option.js +3 -1
  179. package/views/dist/controls/option.css +1 -1
  180. package/views/dist/controls/pane/looks.d.ts +4 -0
  181. package/views/dist/controls/pane/looks.js +11 -0
  182. package/views/dist/controls/pane/pane.d.ts +67 -0
  183. package/views/dist/controls/pane/pane.js +99 -0
  184. package/views/dist/controls/pane/state.d.ts +14 -0
  185. package/views/dist/controls/pane/state.js +7 -0
  186. package/views/dist/controls/pane/tokens.d.ts +79 -0
  187. package/views/dist/controls/pane/tokens.js +22 -0
  188. package/views/dist/controls/pane.css +104 -0
  189. package/views/dist/controls/picker/looks.js +1 -1
  190. package/views/dist/controls/picker/map-picker.d.ts +6 -2
  191. package/views/dist/controls/picker/map-picker.js +4 -2
  192. package/views/dist/controls/picker/picker.d.ts +7 -0
  193. package/views/dist/controls/picker/picker.js +57 -8
  194. package/views/dist/controls/picker/rows.d.ts +4 -2
  195. package/views/dist/controls/picker/rows.js +4 -3
  196. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  197. package/views/dist/controls/popover/map-popover.js +2 -2
  198. package/views/dist/controls/popover/popover.js +2 -1
  199. package/views/dist/controls/popover.css +3 -0
  200. package/views/dist/controls/ports-host/map-ports-host.d.ts +7 -0
  201. package/views/dist/controls/ports-host/map-ports-host.js +43 -0
  202. package/views/dist/controls/press/tokens.d.ts +8 -0
  203. package/views/dist/controls/press/tokens.js +4 -0
  204. package/views/dist/controls/press.css +44 -0
  205. package/views/dist/controls/quick-filters/looks.d.ts +11 -0
  206. package/views/dist/controls/quick-filters/looks.js +9 -0
  207. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +31 -0
  208. package/views/dist/controls/quick-filters/map-quick-filters-body.js +56 -0
  209. package/views/dist/controls/quick-filters/quick-filters.d.ts +37 -0
  210. package/views/dist/controls/quick-filters/quick-filters.js +89 -0
  211. package/views/dist/controls/quick-filters/reminder.d.ts +18 -0
  212. package/views/dist/controls/quick-filters/reminder.js +41 -0
  213. package/views/dist/controls/quick-filters/rules.d.ts +89 -0
  214. package/views/dist/controls/quick-filters/rules.js +52 -0
  215. package/views/dist/controls/quick-filters/tokens.d.ts +112 -0
  216. package/views/dist/controls/quick-filters/tokens.js +30 -0
  217. package/views/dist/controls/quick-filters/words.d.ts +25 -0
  218. package/views/dist/controls/quick-filters/words.js +13 -0
  219. package/views/dist/controls/quick-filters.css +118 -0
  220. package/views/dist/controls/sheet/bottom-sheet.d.ts +9 -4
  221. package/views/dist/controls/sheet/bottom-sheet.js +4 -4
  222. package/views/dist/controls/sheet/map-sheet.d.ts +4 -1
  223. package/views/dist/controls/sheet/map-sheet.js +19 -6
  224. package/views/dist/controls/sheet/sheet-parts.d.ts +10 -0
  225. package/views/dist/controls/sheet/sheet-parts.js +2 -0
  226. package/views/dist/controls/sort-editor/map-sort-body.d.ts +9 -0
  227. package/views/dist/controls/sort-editor/map-sort-body.js +81 -0
  228. package/views/dist/controls/sort-editor/rules.d.ts +48 -0
  229. package/views/dist/controls/sort-editor/rules.js +24 -0
  230. package/views/dist/controls/sort-editor/sort-editor.d.ts +58 -0
  231. package/views/dist/controls/sort-editor/sort-editor.js +180 -0
  232. package/views/dist/controls/sort-editor/tokens.d.ts +79 -0
  233. package/views/dist/controls/sort-editor/tokens.js +22 -0
  234. package/views/dist/controls/sort-editor/words.d.ts +48 -0
  235. package/views/dist/controls/sort-editor/words.js +25 -0
  236. package/views/dist/controls/sort-editor.css +96 -0
  237. package/views/dist/controls/switch-row/switch-row.d.ts +15 -0
  238. package/views/dist/controls/switch-row/switch-row.js +9 -0
  239. package/views/dist/controls/switch-row/tokens.d.ts +51 -0
  240. package/views/dist/controls/switch-row/tokens.js +15 -0
  241. package/views/dist/controls/switch-row.css +39 -0
  242. package/views/dist/controls/switch.css +1 -1
  243. package/views/dist/controls/tag/tag.js +3 -1
  244. package/views/dist/controls/tag-field/tag-field.d.ts +20 -0
  245. package/views/dist/controls/tag-field/tag-field.js +19 -0
  246. package/views/dist/controls/tag-field/tokens.d.ts +7 -0
  247. package/views/dist/controls/tag-field/tokens.js +4 -0
  248. package/views/dist/controls/tag-field.css +13 -0
  249. package/views/dist/controls/text-editor/looks.js +1 -1
  250. package/views/dist/controls/text-editor/text-editor.js +1 -5
  251. package/views/dist/controls/toast/toast.d.ts +79 -0
  252. package/views/dist/controls/toast/toast.js +101 -0
  253. package/views/dist/controls/toast/tokens.d.ts +100 -0
  254. package/views/dist/controls/toast/tokens.js +27 -0
  255. package/views/dist/controls/toast.css +93 -0
  256. package/views/dist/controls/tokens.js +38 -0
  257. package/views/dist/controls/toolbar/keys.d.ts +3 -0
  258. package/views/dist/controls/toolbar/keys.js +11 -0
  259. package/views/dist/controls/toolbar/looks.d.ts +10 -0
  260. package/views/dist/controls/toolbar/looks.js +40 -0
  261. package/views/dist/controls/toolbar/tokens.d.ts +28 -0
  262. package/views/dist/controls/toolbar/tokens.js +9 -0
  263. package/views/dist/controls/toolbar/toolbar.d.ts +111 -0
  264. package/views/dist/controls/toolbar/toolbar.js +370 -0
  265. package/views/dist/controls/toolbar/words.d.ts +28 -0
  266. package/views/dist/controls/toolbar/words.js +17 -0
  267. package/views/dist/controls/toolbar-button/looks.d.ts +4 -0
  268. package/views/dist/controls/toolbar-button/looks.js +21 -0
  269. package/views/dist/controls/toolbar-button/tokens.d.ts +103 -0
  270. package/views/dist/controls/toolbar-button/tokens.js +28 -0
  271. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +66 -0
  272. package/views/dist/controls/toolbar-button/toolbar-button.js +51 -0
  273. package/views/dist/controls/toolbar-button.css +75 -0
  274. package/views/dist/controls/toolbar.css +65 -0
  275. package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
  276. package/views/dist/controls/tooltip/map-tooltip.js +2 -2
  277. package/views/dist/controls/tooltip/tooltip.d.ts +3 -1
  278. package/views/dist/controls/tooltip/tooltip.js +2 -2
  279. package/views/dist/controls/values-editor/looks.js +1 -1
  280. package/views/dist/controls/values-editor/values-editor.js +7 -1
  281. package/views/dist/controls/views-list/map-views-list-body.d.ts +4 -1
  282. package/views/dist/controls/views-list/map-views-list-body.js +128 -4
  283. package/views/dist/controls/views-list/rules.d.ts +26 -0
  284. package/views/dist/controls/views-list/rules.js +63 -0
  285. package/views/dist/controls/views-list/view-menu.d.ts +84 -0
  286. package/views/dist/controls/views-list/view-menu.js +201 -0
  287. package/views/dist/controls/views-list/views-list.d.ts +8 -1
  288. package/views/dist/controls/views-list/views-list.js +18 -3
  289. package/views/dist/controls/views-list/words.d.ts +54 -0
  290. package/views/dist/controls/views-list/words.js +10 -1
  291. package/views/dist/controls/views-list.css +5 -1
  292. package/views/dist/display/date.js +5 -5
  293. package/views/dist/display/format.d.ts +6 -0
  294. package/views/dist/display/format.js +13 -2
  295. package/views/dist/display/index.d.ts +1 -1
  296. package/views/dist/display/index.js +1 -1
  297. package/views/dist/display/options.d.ts +3 -1
  298. package/views/dist/display/range.d.ts +2 -1
  299. package/views/dist/display/range.js +4 -1
  300. package/views/dist/display/use-display-options.d.ts +3 -0
  301. package/views/dist/display/use-display-options.js +10 -2
  302. package/views/dist/display/viewer.d.ts +1 -1
  303. package/views/dist/display/viewer.js +1 -1
  304. package/views/dist/editors/DateEditor.js +11 -9
  305. package/views/dist/editors/relation-panel.js +7 -1
  306. package/views/dist/editors/relation-picker.d.ts +2 -1
  307. package/views/dist/editors/relation-picker.js +4 -3
  308. package/views/dist/editors/relation-source.d.ts +4 -1
  309. package/views/dist/editors/relation-source.js +5 -2
  310. package/views/dist/field-row/editors/RowNumberEditor.js +2 -2
  311. package/views/dist/fields/number-edit.d.ts +6 -0
  312. package/views/dist/fields/number-edit.js +8 -1
  313. package/views/dist/grid/chrome/GridCellEditors.js +2 -2
  314. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +4 -3
  315. package/views/dist/grid/chrome/GridColumnDateSection.js +4 -4
  316. package/views/dist/grid/chrome/GridColumnDurationSection.js +2 -2
  317. package/views/dist/grid/chrome/GridColumnMenu.js +6 -4
  318. package/views/dist/grid/chrome/GridFooter.js +2 -2
  319. package/views/dist/grid/chrome/GridHeader.js +2 -1
  320. package/views/dist/grid/chrome/GridNumberEditor.js +2 -2
  321. package/views/dist/grid/chrome/GridRowCells.js +2 -1
  322. package/views/dist/grid/chrome/GridTextEditor.js +2 -2
  323. package/views/dist/grid/chrome/grid-column-menu-items.js +4 -2
  324. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -1
  325. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  326. package/views/dist/grid/chrome/grid-fitted-box.d.ts +7 -1
  327. package/views/dist/grid/chrome/grid-fitted-box.js +4 -4
  328. package/views/dist/grid/chrome/useGridBandFigures.js +2 -2
  329. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
  330. package/views/dist/grid/chrome/useGridFittedWidths.js +9 -3
  331. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
  332. package/views/dist/grid/chrome/useGridKeyboard.js +5 -2
  333. package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -1
  334. package/views/dist/grid/core/clipboard-model.js +9 -4
  335. package/views/dist/grid/core/commit-model.d.ts +7 -0
  336. package/views/dist/grid/core/commit-model.js +5 -1
  337. package/views/dist/grid/core/editing-controller.js +10 -2
  338. package/views/dist/grid/core/editing-model.js +3 -7
  339. package/views/dist/grid/core/undo-owner.d.ts +6 -0
  340. package/views/dist/grid/core/undo-owner.js +13 -0
  341. package/views/dist/grid/core/useGridEditing.d.ts +2 -0
  342. package/views/dist/grid/core/useGridEditing.js +4 -0
  343. package/views/dist/grid/grid.css +240 -0
  344. package/views/dist/grid/looks.d.ts +5 -1
  345. package/views/dist/grid/looks.js +20 -12
  346. package/views/dist/grid-tokens.d.ts +109 -0
  347. package/views/dist/grid-tokens.js +29 -0
  348. package/views/dist/looks/index.d.ts +10 -0
  349. package/views/dist/looks/index.js +10 -0
  350. package/views/dist/looks/pieces.js +20 -0
  351. package/views/dist/model/column-capabilities.d.ts +2 -0
  352. package/views/dist/model/column-filters.d.ts +2 -1
  353. package/views/dist/model/column-from.js +2 -2
  354. package/views/dist/model/relation-filters.d.ts +2 -0
  355. package/views/dist/panels/index.d.ts +2 -2
  356. package/views/dist/panels/index.js +2 -2
  357. package/views/dist/panels/labels.d.ts +4 -0
  358. package/views/dist/panels/labels.js +8 -0
  359. package/views/dist/panels/model.d.ts +14 -1
  360. package/views/dist/panels/quick/model.d.ts +4 -0
  361. package/views/dist/panels/react/customize-body.d.ts +12 -5
  362. package/views/dist/panels/react/customize-body.js +41 -13
  363. package/views/dist/panels/react/customize.d.ts +8 -1
  364. package/views/dist/panels/react/customize.js +11 -6
  365. package/views/dist/panels/react/filter/FilterEditor.js +6 -6
  366. package/views/dist/panels/react/filter/FilterFieldList.js +10 -2
  367. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +8 -2
  368. package/views/dist/panels/react/filter/PhoneFilterEditor.js +12 -9
  369. package/views/dist/panels/react/filter/filter-body.d.ts +8 -5
  370. package/views/dist/panels/react/filter/filter-body.js +21 -7
  371. package/views/dist/panels/react/filter/filter-part-body.d.ts +4 -1
  372. package/views/dist/panels/react/filter/filter-part-body.js +3 -1
  373. package/views/dist/panels/react/panel-sheet.d.ts +5 -1
  374. package/views/dist/panels/react/panel-sheet.js +6 -2
  375. package/views/dist/panels/react/panel-step.d.ts +15 -0
  376. package/views/dist/panels/react/panel-step.js +27 -0
  377. package/views/dist/panels/react/quick/QuickFiltersPanel.js +1 -0
  378. package/views/dist/panels/react/sort/SortEditor.d.ts +4 -0
  379. package/views/dist/panels/react/sort/SortEditor.js +5 -2
  380. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +18 -0
  381. package/views/dist/panels/react/toolbar/ReadyToolbar.js +93 -4
  382. package/views/dist/panels/react/toolbar/Toolbar.js +1 -1
  383. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  384. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +15 -5
  385. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +16 -0
  386. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +50 -0
  387. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +3 -1
  388. package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +4 -1
  389. package/views/dist/panels/react/toolbar/ToolbarFilters.js +38 -23
  390. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +12 -4
  391. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -2
  392. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +4 -1
  393. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +2 -2
  394. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
  395. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +15 -6
  396. package/views/dist/panels/react/toolbar/panel-part.d.ts +5 -1
  397. package/views/dist/panels/react/toolbar/panel-part.js +2 -2
  398. package/views/dist/panels/react/toolbar/use-filter-add.d.ts +16 -0
  399. package/views/dist/panels/react/toolbar/use-filter-add.js +32 -0
  400. package/views/dist/panels/react/view-footer.d.ts +1 -1
  401. package/views/dist/panels/react/views-row/ViewPicker.js +25 -4
  402. package/views/dist/panels/react.d.ts +1 -0
  403. package/views/dist/panels/react.js +1 -0
  404. package/views/dist/panels/settings/filter-groups.d.ts +3 -0
  405. package/views/dist/panels/settings/filter-groups.js +72 -7
  406. package/views/dist/panels/settings/filters.d.ts +5 -0
  407. package/views/dist/panels/settings/filters.js +12 -6
  408. package/views/dist/panels/settings/group-buckets.js +1 -0
  409. package/views/dist/panels/views-row/model.d.ts +10 -1
  410. package/views/dist/provider/ViewsProvider.d.ts +7 -1
  411. package/views/dist/provider/ViewsProvider.js +50 -6
  412. package/views/dist/provider/components.d.ts +178 -11
  413. package/views/dist/provider/context.d.ts +6 -0
  414. package/views/dist/provider/moment.d.ts +6 -0
  415. package/views/dist/provider/moment.js +10 -0
  416. package/views/dist/provider/ports.d.ts +18 -6
  417. package/views/dist/provider/ports.js +2 -1
  418. package/views/dist/react.d.ts +2 -2
  419. package/views/dist/react.js +1 -1
  420. package/views/dist/selection/SelectionBar.d.ts +2 -16
  421. package/views/dist/selection/SelectionBar.js +4 -1
  422. package/views/dist/selection/bar-props.d.ts +26 -0
  423. package/views/dist/selection/bar-props.js +1 -0
  424. package/views/dist/selection/index.d.ts +1 -1
  425. package/views/dist/selection/verbs.d.ts +32 -5
  426. package/views/dist/styles.css +1499 -73
  427. package/views/dist/styles.unlayered.css +1497 -70
  428. package/views/docs/contract.md +56 -23
  429. package/views/docs/controls/alert-dialog.md +37 -0
  430. package/views/docs/controls/alert.md +30 -0
  431. package/views/docs/controls/bulk-bar.md +41 -0
  432. package/views/docs/controls/choice.md +25 -0
  433. package/views/docs/controls/collapsible.md +22 -0
  434. package/views/docs/controls/customize.md +17 -0
  435. package/views/docs/controls/filter-editor.md +28 -0
  436. package/views/docs/controls/group-editor.md +11 -0
  437. package/views/docs/controls/modal.md +55 -0
  438. package/views/docs/controls/notice.md +32 -0
  439. package/views/docs/controls/pane.md +25 -0
  440. package/views/docs/controls/popover.md +2 -0
  441. package/views/docs/controls/press.md +9 -0
  442. package/views/docs/controls/quick-filters.md +35 -0
  443. package/views/docs/controls/radio.md +1 -1
  444. package/views/docs/controls/sort-editor.md +27 -0
  445. package/views/docs/controls/switch-row.md +18 -0
  446. package/views/docs/controls/tag-field.md +7 -0
  447. package/views/docs/controls/toast.md +32 -0
  448. package/views/docs/controls/toolbar-button.md +31 -0
  449. package/views/docs/controls/toolbar.md +14 -0
  450. package/views/docs/guides/atoms.md +2 -2
  451. package/views/docs/guides/cells.md +3 -3
  452. package/views/docs/guides/display.md +3 -3
  453. package/views/docs/guides/looks.md +8 -2
  454. package/views/docs/guides/ports.md +6 -6
  455. package/views/docs/guides/selection.md +5 -1
  456. package/views/docs/guides/the-grid.md +2 -2
  457. package/views/docs/guides/the-provider.md +21 -2
  458. package/views/docs/install.md +4 -1
  459. package/views/docs/reference/cells.md +3 -3
  460. package/views/docs/reference/controls.md +403 -16
  461. package/views/docs/reference/display.md +3 -2
  462. package/views/docs/reference/editors-relation.md +1 -1
  463. package/views/docs/reference/looks.md +35 -11
  464. package/views/docs/reference/panels-react.md +11 -10
  465. package/views/docs/reference/panels.md +9 -7
  466. package/views/docs/reference/react.md +20 -13
  467. package/views/docs/reference/selection.md +4 -2
  468. package/views/docs/reference/views.md +8 -6
  469. package/views/skills/views/SKILL.md +2 -2
@@ -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
+ ];
@@ -27,7 +27,17 @@ export { LIST_LOOKS, type ListOptionId } from "../controls/list/looks.js";
27
27
  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
+ export { PANE_LOOKS, type PaneOptionId } from "../controls/pane/looks.js";
31
+ export { TOOLBAR_BUTTON_LOOKS, type ToolbarButtonOptionId } from "../controls/toolbar-button/looks.js";
30
32
  export { VIEWS_LIST_LOOKS, type ViewsListOptionId } from "../controls/views-list/looks.js";
33
+ export { CUSTOMIZE_LOOKS, type CustomizeOptionId } from "../controls/customize/looks.js";
34
+ export { MODAL_LOOKS, type ModalOptionId } from "../controls/modal/looks.js";
35
+ export { ALERT_DIALOG_LOOKS, type AlertDialogOptionId } from "../controls/alert-dialog/looks.js";
36
+ export { COLLAPSIBLE_LOOKS, type CollapsibleOptionId } from "../controls/collapsible/looks.js";
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";
31
41
  export { TEXT_EDITOR_LOOKS, type TextEditorLookOptionId } from "../controls/text-editor/looks.js";
32
42
  export { DATE_EDITOR_LOOKS, type DateEditorLookOptionId } from "../controls/date-editor/looks.js";
33
43
  export { COMPOUND_EDITOR_LOOKS, type CompoundEditorOptionId } from "../controls/compound-editor/looks.js";
@@ -23,7 +23,17 @@ export { LIST_LOOKS } from "../controls/list/looks.js";
23
23
  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
+ export { PANE_LOOKS } from "../controls/pane/looks.js";
27
+ export { TOOLBAR_BUTTON_LOOKS } from "../controls/toolbar-button/looks.js";
26
28
  export { VIEWS_LIST_LOOKS } from "../controls/views-list/looks.js";
29
+ export { CUSTOMIZE_LOOKS } from "../controls/customize/looks.js";
30
+ export { MODAL_LOOKS } from "../controls/modal/looks.js";
31
+ export { ALERT_DIALOG_LOOKS } from "../controls/alert-dialog/looks.js";
32
+ export { COLLAPSIBLE_LOOKS } from "../controls/collapsible/looks.js";
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";
27
37
  export { TEXT_EDITOR_LOOKS } from "../controls/text-editor/looks.js";
28
38
  export { DATE_EDITOR_LOOKS } from "../controls/date-editor/looks.js";
29
39
  export { COMPOUND_EDITOR_LOOKS } from "../controls/compound-editor/looks.js";
@@ -20,7 +20,17 @@ import { MENU_LIST_LOOKS } from "../controls/menu-list/looks.js";
20
20
  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
+ import { PANE_LOOKS } from "../controls/pane/looks.js";
24
+ import { TOOLBAR_BUTTON_LOOKS } from "../controls/toolbar-button/looks.js";
23
25
  import { VIEWS_LIST_LOOKS } from "../controls/views-list/looks.js";
26
+ import { CUSTOMIZE_LOOKS } from "../controls/customize/looks.js";
27
+ import { MODAL_LOOKS } from "../controls/modal/looks.js";
28
+ import { ALERT_DIALOG_LOOKS } from "../controls/alert-dialog/looks.js";
29
+ import { COLLAPSIBLE_LOOKS } from "../controls/collapsible/looks.js";
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";
24
34
  import { TEXT_EDITOR_LOOKS } from "../controls/text-editor/looks.js";
25
35
  import { DATE_EDITOR_LOOKS } from "../controls/date-editor/looks.js";
26
36
  import { COMPOUND_EDITOR_LOOKS } from "../controls/compound-editor/looks.js";
@@ -49,7 +59,17 @@ export const LOOKS = [
49
59
  LIST_LOOKS,
50
60
  PICKER_LOOKS,
51
61
  AVATAR_LOOKS,
62
+ PANE_LOOKS,
63
+ TOOLBAR_BUTTON_LOOKS,
52
64
  VIEWS_LIST_LOOKS,
65
+ CUSTOMIZE_LOOKS,
66
+ MODAL_LOOKS,
67
+ ALERT_DIALOG_LOOKS,
68
+ COLLAPSIBLE_LOOKS,
69
+ ALERT_LOOKS,
70
+ QUICK_FILTERS_LOOKS,
71
+ TOOLBAR_LOOKS,
72
+ BULK_BAR_LOOKS,
53
73
  TEXT_EDITOR_LOOKS,
54
74
  DATE_EDITOR_LOOKS,
55
75
  COMPOUND_EDITOR_LOOKS,
@@ -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":
@@ -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
@@ -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;
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { FieldType } from "viewkitjs/fields";
3
3
  import type { BucketOrderMode, FilterRule, FilterTree, SetAsideReason, SortDirection } from "viewkitjs/fields/query";
4
+ import type { ViewsPickerItem } from "../provider/components.js";
4
5
  import { type OrderChoice } from "../grouping/sort-groups.js";
5
6
  import type { FieldMark } from "../model/column-mark.js";
6
7
  import type { ListColumnItem, ListColumnsConfig } from "../model/column-state.js";
@@ -78,6 +79,9 @@ export type FilterEditorField = {
78
79
  far?: readonly FilterEditorField[];
79
80
  /** How its field is marked, as the grid's header marks its column (`columnMark`); a relation has none. */
80
81
  mark?: FieldMark;
82
+ /** Why no rule can be made on it, in the app's words (an unavailable capability's reason, else
83
+ * `views.panels.filter-not-offered`); absent, it can. Only in `FilterTreeConfig.listed`: a field list draws it greyed. */
84
+ disabled?: string;
81
85
  };
82
86
  /** A field the list no longer shows (an archived one, say), by its key, with its label and its options' labels: a
83
87
  * set-aside filter on it is named by them, never by its key and stored value. Nothing is stored in the rule. */
@@ -95,7 +99,11 @@ export type FilterGoneField = {
95
99
  /** A list's filter as a tree the filter editor changes (`settingsPanels(…).filterTree`, with `filterGroups`). */
96
100
  export type FilterTreeConfig = {
97
101
  tree: FilterTree;
102
+ /** The fields a rule may name. */
98
103
  fields: readonly FilterEditorField[];
104
+ /** What a field list shows, in the person's column order: `fields`, and in their places the columns the list can't
105
+ * filter, greyed (`disabled`), never picked. Absent: `fields` (`listedFieldsOf`). */
106
+ listed?: readonly FilterEditorField[];
99
107
  /** The fields the list no longer shows, so a set-aside filter on one is named as a person knows it. */
100
108
  gone?: readonly FilterGoneField[];
101
109
  /** Each change, as it is made: the whole tree. */
@@ -104,6 +112,10 @@ export type FilterTreeConfig = {
104
112
  * read from `rule` and each change handed to `write` as the rule with its new value; null for a rule no body
105
113
  * edits (a set-aside rule, an operator taking no value). `relation`: the relation's field key, for a far rule. */
106
114
  valueOf: (rule: FilterRule, write: (next: FilterRule) => void, relation?: string) => FilterConfig<string> | null;
115
+ /** A choice field's values as the Picker draws them, or a place's country's names (`part` `countryCode`), where they are known as
116
+ * the list opens; undefined where they are read on demand or the field is no choice. `relation`: the relation's field key, for a
117
+ * far field. */
118
+ optionsOf?: (fieldKey: string, part?: string, relation?: string) => readonly ViewsPickerItem[] | undefined;
107
119
  label?: string;
108
120
  };
109
121
  type GroupGranularity = {
@@ -128,12 +140,13 @@ export type GroupDimension<D extends string = string> = {
128
140
  defaultGranularity?: string;
129
141
  };
130
142
  /** One group as the Group panel lists it (POR-498). `empty`: hidden only by
131
- * Hide empty groups; `hidden`: the reader hid it. */
143
+ * Hide empty groups; `hidden`: the reader hid it; `count`: how many records it holds, where the list counts them. */
132
144
  export type GroupListEntry = {
133
145
  key: string;
134
146
  label: string;
135
147
  empty: boolean;
136
148
  hidden: boolean;
149
+ count?: number;
137
150
  };
138
151
  export type GroupConfig<D extends string = string> = {
139
152
  dimensions: GroupDimension<D>[];
@@ -1,4 +1,5 @@
1
1
  import { type ListHold } from "viewkitjs/fields/query";
2
+ import type { ViewsPickerItem } from "../../provider/components.js";
2
3
  /** A field's values past this many show a search over them. */
3
4
  export declare const QUICK_SEARCH_AFTER = 8;
4
5
  /** A value a field offers: its key as the hold keeps it (an option, an id, "true" or "false", "" for none) and its
@@ -20,6 +21,9 @@ export type QuickFilterField = {
20
21
  counts?: Readonly<Record<string, number>> | null;
21
22
  /** What its search says; absent, "Search {label}". */
22
23
  searchPlaceholder?: string;
24
+ /** How its values draw: a choice field's every option as the Picker draws it (a status's step, a person's or a
25
+ * company's face), where the app holds them. A value's mark is its option's; absent, no marks. */
26
+ options?: readonly ViewsPickerItem[];
23
27
  };
24
28
  /** The words of a field the hold holds, for what the fields offered don't list: a field the strip doesn't offer and a
25
29
  * value no option lists any more (a deleted record, a retired option). */
@@ -1,15 +1,22 @@
1
- import type { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
+ import type { ViewsBodyStep, ViewsCustomizeBodyProps } from "../../provider/components.js";
3
+ import { useViews } from "../../provider/context.js";
2
4
  import type { GroupConfig } from "../model.js";
3
5
  import type { ViewOptionsPanelContentProps } from "./customize.js";
4
6
  /** The app's `GroupBody` over a group: inside Customize, whose head holds the ✕, it gets no `actions`; its `onDone`
5
- * goes back to Customize's list. Null without the slot. */
6
- export declare function AppGroupBody({ group, form, onDone, }: {
7
+ * goes back to Customize's list, and the level it tells (`onStepChange`) heads Customize. Null without the slot. */
8
+ export declare function AppGroupBody({ group, form, onDone, onStepChange, }: {
7
9
  group: GroupConfig;
8
10
  form: "computer" | "phone";
9
11
  onDone: () => void;
12
+ onStepChange?: (step: ViewsBodyStep | null) => void;
10
13
  }): ReactNode;
11
- /** The app's `CustomizeBody` over Customize's own props: the view's settings as data, the page mapped onto the body's,
12
- * the ✕ on a phone only where the sheet's head doesn't draw it. Null without the slot. */
14
+ /** Customize's own props as a body is handed them: the view's settings as data, the page mapped onto the body's, the ✕ on a
15
+ * phone only where the sheet's head doesn't draw it. */
16
+ export declare function customizeBodyPropsOf(props: ViewOptionsPanelContentProps & {
17
+ form: "computer" | "phone";
18
+ }, { components, icons, messages }: Pick<ReturnType<typeof useViews>, "components" | "icons" | "messages">): ViewsCustomizeBodyProps;
19
+ /** The app's `CustomizeBody` over Customize's own props (customizeBodyPropsOf). Null without the slot. */
13
20
  export declare function AppCustomizeBody(props: ViewOptionsPanelContentProps & {
14
21
  form: "computer" | "phone";
15
22
  }): ReactNode;
@@ -1,25 +1,27 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { FILTER_TREE_MAX_UI_DEPTH } from "viewkitjs/fields/query";
4
+ import { useContext } from "react";
4
5
  import { useViews } from "../../provider/context.js";
5
6
  import { activePanelOf, customizeColumnsOf, customizeLayoutOf, customizePageOf, customizeSortOf, customizeToggleOf, groupBodyProps, } from "../customize-body.js";
6
- import { filterBodyChangeFits, takesValue } from "../settings/filter-groups.js";
7
+ import { filterBodyChangeFits, listedFieldsOf, takesValue } from "../settings/filter-groups.js";
7
8
  import { sortBodyOptions } from "../sort-body-options.js";
9
+ import { PanelStepHold } from "./panel-step.js";
8
10
  import { filterBodyFields } from "./filter/filter-body.js";
9
11
  import { FilterValueBody } from "./filter/FilterValueBody.js";
10
- export function AppGroupBody({ group, form, onDone, }) {
12
+ export function AppGroupBody({ group, form, onDone, onStepChange, }) {
11
13
  const { components, messages } = useViews();
12
14
  const GroupBody = components.GroupBody;
13
15
  if (!GroupBody)
14
16
  return null;
15
- return _jsx(GroupBody, { ...groupBodyProps(group, messages), form: form, onDone: onDone });
17
+ return _jsx(GroupBody, { ...groupBodyProps(group, messages), form: form, onDone: onDone, ...(onStepChange && { onStepChange }) });
16
18
  }
17
19
  function customizeFilterOf(filterTree, messages) {
18
20
  const level = { op: filterTree.tree.op, items: filterTree.tree.items };
19
21
  const levels = FILTER_TREE_MAX_UI_DEPTH;
20
22
  return {
21
23
  label: filterTree.label ?? messages({ key: "views.panels.filter" }),
22
- fields: filterBodyFields(filterTree.fields),
24
+ fields: filterBodyFields(listedFieldsOf(filterTree), filterTree.optionsOf),
23
25
  filter: level,
24
26
  levels,
25
27
  excludable: false,
@@ -36,19 +38,25 @@ function customizeFilterOf(filterTree, messages) {
36
38
  },
37
39
  };
38
40
  }
39
- export function AppCustomizeBody(props) {
40
- const { components, icons, messages } = useViews();
41
- const CustomizeBody = components.CustomizeBody;
42
- if (!CustomizeBody)
43
- return null;
44
- const { layout, filterTree, group, toggles, activePanel, onOpenPanel, anyActive, clearAll, onClose, closeButton = true, view, viewFoot, footClear, fieldEditor, form, } = props;
41
+ export function customizeBodyPropsOf(props, { components, icons, messages }) {
42
+ const { layout, filterTree, group, toggles, activePanel, onOpenPanel, anyActive, clearAll, onClose, closeButton = true, view, viewFoot, footClear, fieldEditor, form, viewName, onRenameView, onCopyLink, onExport, exportCount, } = props;
45
43
  const columns = layout ? customizeColumnsOf(layout, fieldEditor, messages) : undefined;
46
44
  const unmarked = customizeSortOf(props, messages);
47
45
  const sort = unmarked && {
48
46
  ...unmarked,
49
47
  options: sortBodyOptions(unmarked.options, { icons, AppIcon: components.AppIcon }),
50
48
  };
51
- return (_jsx(CustomizeBody, { label: messages({ key: "views.panels.customize-title" }), page: customizePageOf(activePanel), onPageChange: (page) => onOpenPanel(activePanelOf(page)), ...(layout && { layout: customizeLayoutOf(layout, messages) }), ...(columns && { columns }), ...(filterTree && { filter: customizeFilterOf(filterTree, messages) }), ...(sort && { sort }), ...(group && { group: groupBodyProps(group, messages) }), toggles: (toggles ?? []).map(customizeToggleOf), ...(view && {
49
+ return {
50
+ label: messages({ key: "views.panels.customize-title" }),
51
+ page: customizePageOf(activePanel),
52
+ onPageChange: (page) => onOpenPanel(activePanelOf(page)),
53
+ ...(layout && { layout: customizeLayoutOf(layout, messages) }),
54
+ ...(columns && { columns }),
55
+ ...(filterTree && { filter: customizeFilterOf(filterTree, messages) }),
56
+ ...(sort && { sort }),
57
+ ...(group && { group: groupBodyProps(group, messages) }),
58
+ toggles: (toggles ?? []).map(customizeToggleOf),
59
+ ...(view && {
52
60
  view: {
53
61
  changes: view.changes,
54
62
  stale: view.stale,
@@ -57,7 +65,27 @@ export function AppCustomizeBody(props) {
57
65
  onReset: view.onReset,
58
66
  onPublish: view.onPublish,
59
67
  },
60
- }), ...(viewFoot && { foot: viewFoot }), ...(!view && footClear && { onClear: footClear }), ...(!view && anyActive && { clearAll }), form: form, onDone: onClose ?? (() => undefined), ...(form === "phone" &&
68
+ }),
69
+ ...(viewFoot && { foot: viewFoot }),
70
+ ...(!view && footClear && { onClear: footClear }),
71
+ ...(!view && anyActive && { clearAll }),
72
+ form,
73
+ onDone: onClose ?? (() => undefined),
74
+ ...(form === "phone" &&
61
75
  closeButton &&
62
- onClose && { actions: { close: { label: messages({ key: "views.panels.close" }), onPress: onClose } } }) }));
76
+ onClose && { actions: { close: { label: messages({ key: "views.panels.close" }), onPress: onClose } } }),
77
+ ...(viewName !== undefined && { name: viewName }),
78
+ ...(onRenameView && { onRename: onRenameView }),
79
+ ...(onCopyLink && { onCopyLink }),
80
+ ...(onExport && { onExport }),
81
+ ...(exportCount !== undefined && { exportCount }),
82
+ };
83
+ }
84
+ export function AppCustomizeBody(props) {
85
+ const views = useViews();
86
+ const step = useContext(PanelStepHold);
87
+ const CustomizeBody = views.components.CustomizeBody;
88
+ if (!CustomizeBody)
89
+ return null;
90
+ return _jsx(CustomizeBody, { ...customizeBodyPropsOf(props, views), ...(props.form === "phone" && step && { onStepChange: step.onStepChange }) });
63
91
  }
@@ -11,7 +11,7 @@ export type ViewOptionsPanelContentProps<S extends string = string, G extends st
11
11
  * everyone and the header's "Clear all" steps aside: the footer owns reset. See `CollectionViewState`. */
12
12
  view?: CollectionViewState;
13
13
  /** The foot's words: `kit` for Clear and Save, `none` for no foot (they stand elsewhere, on a toolbar's bar);
14
- * absent, Reset and Set default for everyone. */
14
+ * absent, Reset and Save for everyone. */
15
15
  viewFoot?: "kit" | "none";
16
16
  /** With no shared view, the foot's Clear, taking the list back to its default; absent, no foot. */
17
17
  footClear?: () => void;
@@ -29,5 +29,12 @@ export type ViewOptionsPanelContentProps<S extends string = string, G extends st
29
29
  fill?: boolean;
30
30
  /** The list's field editor (Add field, Edit field), handed to the Columns list and a column's settings. */
31
31
  fieldEditor?: PanelFieldEditor | null;
32
+ /** What an app hands Customize through the toolbar, each drawn by a `CustomizeBody` only where handed: the view's name with
33
+ * its rename, Copy link, and Export CSV with its count. ViewKit's own Customize draws none of them. */
34
+ viewName?: string;
35
+ onRenameView?: (name: string) => void;
36
+ onCopyLink?: () => void;
37
+ onExport?: () => void;
38
+ exportCount?: string;
32
39
  };
33
40
  export declare function ViewOptionsPanelContent<S extends string = string, G extends string = string, T extends string = string>(props: ViewOptionsPanelContentProps<S, G, T>): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useCallback, useState } from "react";
3
+ import { useCallback, useContext, useState } from "react";
4
4
  import { isRelationFilter } from "../../filters/filter-model.js";
5
5
  import { cx } from "../../internal/cx.js";
6
6
  import { useViews } from "../../provider/context.js";
@@ -10,11 +10,12 @@ import { CompactTimeScopeDetail } from "../filter/TimeScopeDetail.js";
10
10
  import { customizePageOf, perFieldFiltersOnly } from "../customize-body.js";
11
11
  import { drawPanelButton } from "../panel-button.js";
12
12
  import { PANEL_LIST_CLASS } from "./chrome.js";
13
- import { AppCustomizeBody, AppGroupBody } from "./customize-body.js";
13
+ import { AppCustomizeBody, AppGroupBody, customizeBodyPropsOf } from "./customize-body.js";
14
14
  import { CompactLayoutDetail } from "./layout-detail.js";
15
15
  import { LayoutColumnsList } from "./LayoutColumnsList.js";
16
16
  import { PanelHeader } from "./panel-header.js";
17
17
  import { useSheetPanels } from "./panel-sheet.js";
18
+ import { PanelStepHold, usePanelStep } from "./panel-step.js";
18
19
  import { CompactGroupByDetail, CompactGroupDateByDetail, CompactGroupDetail, CompactGroupSortDetail, CompactSortDetail, } from "./order-details.js";
19
20
  import { PopoverColumnDetail } from "./PopoverColumnDetail.js";
20
21
  import { PopoverRootList } from "./root-list.js";
@@ -24,6 +25,8 @@ export function ViewOptionsPanelContent(props) {
24
25
  const views = useViews();
25
26
  const { messages } = views;
26
27
  const sheet = useSheetPanels();
28
+ const ownStep = usePanelStep();
29
+ const groupStep = useContext(PanelStepHold) ?? ownStep;
27
30
  const [backHandler, setBackHandlerRaw] = useState(null);
28
31
  const setBackHandler = useCallback((fn) => {
29
32
  setBackHandlerRaw(fn ? { fn } : null);
@@ -98,9 +101,11 @@ export function ViewOptionsPanelContent(props) {
98
101
  : activePanel?.type === "column"
99
102
  ? `column-${activePanel.key}`
100
103
  : (activePanel?.type ?? "root");
101
- if (views.components.CustomizeBody && !perFieldFiltersOnly(props))
102
- return _jsx(AppCustomizeBody, { ...props, form: sheet ? "phone" : "computer" });
103
- return (_jsxs("div", { className: cx("flex flex-col", fill && "h-full min-h-0"), children: [_jsx(PanelHeader, { title: activePanel ? panelTitle : messages({ key: "views.panels.customize-title" }), onBack: activePanel ? onBackClick : undefined, onClose: closeButton ? onClose : undefined, trailing: !activePanel &&
104
+ const appBody = views.components.CustomizeBody;
105
+ const bodyProps = props;
106
+ if (appBody && !perFieldFiltersOnly(props) && !appBody.stepsAside?.(customizeBodyPropsOf({ ...bodyProps, form: sheet ? "phone" : "computer" }, views)))
107
+ return _jsx(AppCustomizeBody, { ...bodyProps, form: sheet ? "phone" : "computer" });
108
+ return (_jsxs("div", { className: cx("flex flex-col", fill && "h-full min-h-0"), children: [_jsx(PanelHeader, { title: activePanel ? (groupStep.title ?? panelTitle) : messages({ key: "views.panels.customize-title" }), onBack: activePanel ? (groupStep.back ?? onBackClick) : undefined, onClose: closeButton ? onClose : undefined, trailing: !activePanel &&
104
109
  !view &&
105
110
  anyActive && (drawPanelButton(views, {
106
111
  own: "shrink-0 text-xs text-(color:--vk-fg-brand) transition-colors",
@@ -109,5 +114,5 @@ export function ViewOptionsPanelContent(props) {
109
114
  size: "sm",
110
115
  onClick: clearAll,
111
116
  children: messages({ key: "views.panels.clear-all" }),
112
- })) }), _jsx("div", { className: cx("animate-in fade-in-0 slide-in-from-right-2 duration-(--vk-duration,150ms)", fill && "flex-1 min-h-0 overflow-y-auto overscroll-contain **:data-vs-detail:max-h-none"), children: activePanel?.type === "layout" && layout ? (_jsx(CompactLayoutDetail, { layout: layout })) : views.components.GroupBody && group && customizePageOf(activePanel) === "group" ? (_jsx(AppGroupBody, { group: group, form: sheet ? "phone" : "computer", onDone: () => onOpenPanel(null) })) : activePanel?.type === "group" && group ? (_jsx(CompactGroupDetail, { group: group, onOpenPanel: onOpenPanel })) : activePanel?.type === "groupBy" && group ? (_jsx(CompactGroupByDetail, { group: group, onBack: () => onOpenPanel({ type: "group" }) })) : activePanel?.type === "groupSort" && group ? (_jsx(CompactGroupSortDetail, { group: group, onBack: () => onOpenPanel({ type: "group" }) })) : activePanel?.type === "groupDateBy" && group ? (_jsx(CompactGroupDateByDetail, { group: group, onBack: () => onOpenPanel({ type: "group" }) })) : activePanel?.type === "sort" && sort ? (_jsx(CompactSortDetail, { sort: sort })) : activePanel?.type === "timeScope" && timeScopeConfig ? (_jsx(CompactTimeScopeDetail, { timeScopeConfig: timeScopeConfig, onBack: () => onOpenPanel(null), registerBackHandler: setBackHandler })) : activeDateRange ? (_jsx(CompactDateRangeDetail, { dateRangeConfig: activeDateRange })) : activeToggle ? (_jsx(CompactToggleDetail, { toggle: activeToggle, onBack: () => onOpenPanel(null) })) : activeField ? (_jsx(CompactFilterDetail, { filter: activeField })) : activeFilter ? (_jsx(CompactFilterDetail, { filter: activeFilter, onOpenField: (field) => onOpenPanel({ type: "filter", key: activeFilter.key, field }), onConverted: sheet ? undefined : () => onOpenPanel({ type: "filters" }) })) : activePanel?.type === "columns" && layout?.columns ? (_jsx("div", { "data-vs-detail": true, className: cx("max-h-96", PANEL_LIST_CLASS), children: _jsx(LayoutColumnsList, { columns: layout.columns, showNewLine: !!layout.columns.newLine?.views.includes(layout.value), onOpenColumn: (id) => onOpenPanel({ type: "column", key: id }), fieldEditor: fieldEditor }) })) : activeColumn && layout?.columns ? (_jsx(PopoverColumnDetail, { column: activeColumn, columns: layout.columns, onDone: onClose ?? (() => onOpenPanel({ type: "columns" })), fieldEditor: fieldEditor })) : activePanel?.type === "filters" ? (_jsx(CompactFilterList, { filters: filters, timeScopeConfig: timeScopeConfig, dateRangeConfigs: dateRangeConfigs, onOpenPanel: onOpenPanel })) : (_jsx(PopoverRootList, { filters: filters, sort: sort, group: group, timeScopeConfig: timeScopeConfig, dateRangeConfigs: dateRangeConfigs, toggles: toggles, layout: layout, onOpenPanel: onOpenPanel, foldFilters: foldFilters })) }, panelKey), !activePanel && viewFoot !== "none" && (view || footClear) && (_jsx(ViewFooter, { view: view, onClear: view ? undefined : footClear, words: viewFoot === "kit" ? "kit" : undefined }))] }));
117
+ })) }), _jsx("div", { className: cx("animate-in fade-in-0 slide-in-from-right-2 duration-(--vk-duration,150ms)", fill && "flex-1 min-h-0 overflow-y-auto overscroll-contain **:data-vs-detail:max-h-none"), children: activePanel?.type === "layout" && layout ? (_jsx(CompactLayoutDetail, { layout: layout })) : views.components.GroupBody && group && customizePageOf(activePanel) === "group" ? (_jsx(AppGroupBody, { group: group, form: sheet ? "phone" : "computer", onDone: () => onOpenPanel(null), onStepChange: groupStep.onStepChange })) : activePanel?.type === "group" && group ? (_jsx(CompactGroupDetail, { group: group, onOpenPanel: onOpenPanel })) : activePanel?.type === "groupBy" && group ? (_jsx(CompactGroupByDetail, { group: group, onBack: () => onOpenPanel({ type: "group" }) })) : activePanel?.type === "groupSort" && group ? (_jsx(CompactGroupSortDetail, { group: group, onBack: () => onOpenPanel({ type: "group" }) })) : activePanel?.type === "groupDateBy" && group ? (_jsx(CompactGroupDateByDetail, { group: group, onBack: () => onOpenPanel({ type: "group" }) })) : activePanel?.type === "sort" && sort ? (_jsx(CompactSortDetail, { sort: sort })) : activePanel?.type === "timeScope" && timeScopeConfig ? (_jsx(CompactTimeScopeDetail, { timeScopeConfig: timeScopeConfig, onBack: () => onOpenPanel(null), registerBackHandler: setBackHandler })) : activeDateRange ? (_jsx(CompactDateRangeDetail, { dateRangeConfig: activeDateRange })) : activeToggle ? (_jsx(CompactToggleDetail, { toggle: activeToggle, onBack: () => onOpenPanel(null) })) : activeField ? (_jsx(CompactFilterDetail, { filter: activeField })) : activeFilter ? (_jsx(CompactFilterDetail, { filter: activeFilter, onOpenField: (field) => onOpenPanel({ type: "filter", key: activeFilter.key, field }), onConverted: sheet ? undefined : () => onOpenPanel({ type: "filters" }) })) : activePanel?.type === "columns" && layout?.columns ? (_jsx("div", { "data-vs-detail": true, className: cx("max-h-96", PANEL_LIST_CLASS), children: _jsx(LayoutColumnsList, { columns: layout.columns, showNewLine: !!layout.columns.newLine?.views.includes(layout.value), onOpenColumn: (id) => onOpenPanel({ type: "column", key: id }), fieldEditor: fieldEditor }) })) : activeColumn && layout?.columns ? (_jsx(PopoverColumnDetail, { column: activeColumn, columns: layout.columns, onDone: onClose ?? (() => onOpenPanel({ type: "columns" })), fieldEditor: fieldEditor })) : activePanel?.type === "filters" ? (_jsx(CompactFilterList, { filters: filters, timeScopeConfig: timeScopeConfig, dateRangeConfigs: dateRangeConfigs, onOpenPanel: onOpenPanel })) : (_jsx(PopoverRootList, { filters: filters, sort: sort, group: group, timeScopeConfig: timeScopeConfig, dateRangeConfigs: dateRangeConfigs, toggles: toggles, layout: layout, onOpenPanel: onOpenPanel, foldFilters: foldFilters })) }, panelKey), !activePanel && viewFoot !== "none" && (view || footClear) && (_jsx(ViewFooter, { view: view, onClear: view ? undefined : footClear, words: viewFoot === "kit" ? "kit" : undefined }))] }));
113
118
  }