viewkitjs 0.31.0 → 0.33.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 (449) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/MIGRATION.md +40 -6
  3. package/README.md +1 -1
  4. package/fields/dist/index.d.ts +1 -1
  5. package/fields/dist/index.js +1 -1
  6. package/fields/dist/query/evaluate.d.ts +7 -0
  7. package/fields/dist/query/exact-number.d.ts +8 -2
  8. package/fields/dist/query/exact-number.js +14 -1
  9. package/fields/dist/query/index.d.ts +2 -0
  10. package/fields/dist/query/index.js +2 -0
  11. package/fields/dist/query/list-request.d.ts +148 -0
  12. package/fields/dist/query/list-request.js +125 -0
  13. package/fields/dist/query/saved-view.d.ts +15 -0
  14. package/fields/dist/query/saved-view.js +11 -0
  15. package/fields/dist/query/settings.d.ts +9 -0
  16. package/fields/dist/query/settings.js +9 -0
  17. package/fields/dist/query/sort.js +13 -10
  18. package/fields/dist/registry.js +5 -1
  19. package/fields/dist/types.d.ts +4 -1
  20. package/fields/dist/zod.d.ts +5 -0
  21. package/fields/dist/zod.js +10 -1
  22. package/fields/docs/guides/contact-values.md +12 -0
  23. package/fields/docs/guides/field-types.md +1 -1
  24. package/fields/docs/guides/queries.md +3 -1
  25. package/fields/docs/reference/fields.md +1 -0
  26. package/fields/docs/reference/query.md +66 -0
  27. package/package.json +5 -1
  28. package/postgres/README.md +1 -0
  29. package/postgres/dist/check.js +4 -1
  30. package/postgres/dist/definitions/formula-forms.js +3 -1
  31. package/postgres/dist/definitions/money.js +2 -1
  32. package/postgres/dist/handler.d.ts +53 -0
  33. package/postgres/dist/handler.js +211 -0
  34. package/postgres/dist/ids.d.ts +1 -1
  35. package/postgres/dist/ids.js +19 -1
  36. package/postgres/dist/index.d.ts +1 -0
  37. package/postgres/dist/index.js +1 -0
  38. package/postgres/dist/limits.d.ts +3 -1
  39. package/postgres/dist/limits.js +1 -1
  40. package/postgres/dist/list-fields.d.ts +10 -0
  41. package/postgres/dist/list-fields.js +36 -0
  42. package/postgres/dist/page.js +6 -3
  43. package/postgres/dist/readable.d.ts +4 -0
  44. package/postgres/dist/readable.js +4 -0
  45. package/postgres/dist/refusals.d.ts +9 -2
  46. package/postgres/dist/refusals.js +6 -0
  47. package/postgres/dist/rules.d.ts +15 -1
  48. package/postgres/dist/rules.js +16 -0
  49. package/postgres/dist/sort.js +7 -2
  50. package/postgres/docs/guides/definitions.md +1 -1
  51. package/postgres/docs/guides/field-map.md +3 -3
  52. package/postgres/docs/guides/list-handler.md +99 -0
  53. package/postgres/docs/index.md +1 -0
  54. package/postgres/docs/reference/definitions.md +1 -1
  55. package/postgres/docs/reference/postgres.md +12 -4
  56. package/views/README.md +2 -2
  57. package/views/dist/atoms/RowMenu.d.ts +7 -0
  58. package/views/dist/atoms/RowMenu.js +18 -16
  59. package/views/dist/atoms/ToolbarButton.d.ts +1 -1
  60. package/views/dist/atoms/ToolbarButton.js +4 -3
  61. package/views/dist/atoms/carried.d.ts +5 -0
  62. package/views/dist/atoms/carried.js +7 -0
  63. package/views/dist/atoms/frame-parts.d.ts +6 -0
  64. package/views/dist/atoms/frame-parts.js +15 -0
  65. package/views/dist/atoms/types.d.ts +19 -7
  66. package/views/dist/cells/cell-title.d.ts +3 -1
  67. package/views/dist/cells/cell-title.js +2 -2
  68. package/views/dist/cells/cell-values.js +2 -2
  69. package/views/dist/contract.d.ts +56 -11
  70. package/views/dist/contract.js +148 -0
  71. package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
  72. package/views/dist/controls/atoms.d.ts +2 -0
  73. package/views/dist/controls/atoms.js +2 -0
  74. package/views/dist/controls/avatar/avatar.d.ts +3 -3
  75. package/views/dist/controls/avatar/avatar.js +1 -1
  76. package/views/dist/controls/avatar/tokens.d.ts +44 -0
  77. package/views/dist/controls/avatar/tokens.js +11 -0
  78. package/views/dist/controls/avatar.css +22 -5
  79. package/views/dist/controls/button/map-button.js +2 -0
  80. package/views/dist/controls/checkbox/checkbox.d.ts +3 -2
  81. package/views/dist/controls/checkbox/checkbox.js +2 -2
  82. package/views/dist/controls/choice/tokens.d.ts +0 -4
  83. package/views/dist/controls/choice/tokens.js +0 -1
  84. package/views/dist/controls/choice.css +3 -3
  85. package/views/dist/controls/compound-editor/compound-editor.d.ts +1 -1
  86. package/views/dist/controls/compound-editor/name-parts.js +4 -4
  87. package/views/dist/controls/compound-editor/place-parts.js +19 -19
  88. package/views/dist/controls/compound-editor/range-parts.js +14 -14
  89. package/views/dist/controls/compound-editor/row.d.ts +3 -1
  90. package/views/dist/controls/compound-editor/row.js +2 -2
  91. package/views/dist/controls/controls.d.ts +8 -0
  92. package/views/dist/controls/controls.js +12 -2
  93. package/views/dist/controls/customize/customize.js +37 -35
  94. package/views/dist/controls/customize/map-customize-body.d.ts +2 -0
  95. package/views/dist/controls/customize/map-customize-body.js +5 -1
  96. package/views/dist/controls/date-editor/date-days.js +2 -2
  97. package/views/dist/controls/date-editor/date-editor.js +18 -18
  98. package/views/dist/controls/date-editor/date-parts.js +6 -6
  99. package/views/dist/controls/date-editor/map-calendar.js +1 -1
  100. package/views/dist/controls/date-editor.css +2 -2
  101. package/views/dist/controls/field/field.d.ts +22 -4
  102. package/views/dist/controls/field/field.js +63 -5
  103. package/views/dist/controls/field/tokens.d.ts +4 -0
  104. package/views/dist/controls/field/tokens.js +1 -0
  105. package/views/dist/controls/field.css +41 -16
  106. package/views/dist/controls/filter-editor/block.d.ts +2 -2
  107. package/views/dist/controls/filter-editor/block.js +5 -5
  108. package/views/dist/controls/filter-editor/filter-editor.js +31 -33
  109. package/views/dist/controls/filter-editor/how.d.ts +3 -1
  110. package/views/dist/controls/filter-editor/map-filter-body.d.ts +1 -0
  111. package/views/dist/controls/filter-editor/map-filter-body.js +7 -3
  112. package/views/dist/controls/filter-editor/map-rules.js +1 -1
  113. package/views/dist/controls/filter-editor/parts.js +2 -1
  114. package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
  115. package/views/dist/controls/glyphs/glyphs.js +173 -0
  116. package/views/dist/controls/group-editor/group-editor.js +15 -13
  117. package/views/dist/controls/index.d.ts +4 -1
  118. package/views/dist/controls/index.js +3 -1
  119. package/views/dist/controls/input/input.js +6 -3
  120. package/views/dist/controls/input/map-input.js +2 -0
  121. package/views/dist/controls/input/tokens.d.ts +4 -0
  122. package/views/dist/controls/input/tokens.js +1 -0
  123. package/views/dist/controls/input.css +31 -3
  124. package/views/dist/controls/internal/editor-parts.js +1 -1
  125. package/views/dist/controls/internal/icons.js +10 -0
  126. package/views/dist/controls/internal/keep-focus.d.ts +2 -0
  127. package/views/dist/controls/internal/keep-focus.js +17 -0
  128. package/views/dist/controls/internal/map-panel-controls.d.ts +8 -0
  129. package/views/dist/controls/internal/map-panel-controls.js +20 -0
  130. package/views/dist/controls/internal/panel-controls.d.ts +50 -0
  131. package/views/dist/controls/internal/panel-controls.js +197 -0
  132. package/views/dist/controls/internal/part-slot.d.ts +12 -0
  133. package/views/dist/controls/internal/part-slot.js +5 -0
  134. package/views/dist/controls/internal/watch-frame.d.ts +2 -0
  135. package/views/dist/controls/internal/watch-frame.js +33 -0
  136. package/views/dist/controls/links-editor/links-editor.d.ts +1 -1
  137. package/views/dist/controls/links-editor/links-editor.js +27 -27
  138. package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
  139. package/views/dist/controls/markdown/map-markdown.js +5 -0
  140. package/views/dist/controls/menu/map-menu.d.ts +2 -2
  141. package/views/dist/controls/menu/map-menu.js +15 -12
  142. package/views/dist/controls/menu/menu.d.ts +2 -0
  143. package/views/dist/controls/menu/menu.js +3 -3
  144. package/views/dist/controls/menu-list/menu-list.d.ts +17 -4
  145. package/views/dist/controls/menu-list/menu-list.js +27 -25
  146. package/views/dist/controls/modal/modal.js +5 -1
  147. package/views/dist/controls/notice/notice.d.ts +3 -1
  148. package/views/dist/controls/notice/notice.js +2 -2
  149. package/views/dist/controls/number-editor/number-editor.d.ts +1 -1
  150. package/views/dist/controls/number-editor/number-editor.js +13 -13
  151. package/views/dist/controls/number-field/number-field.js +5 -3
  152. package/views/dist/controls/pane/pane.d.ts +4 -2
  153. package/views/dist/controls/pane/pane.js +6 -5
  154. package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
  155. package/views/dist/controls/phone-header/header-bar.js +2 -2
  156. package/views/dist/controls/phone-header.css +11 -1
  157. package/views/dist/controls/picker/map-picker.js +3 -0
  158. package/views/dist/controls/picker/picker.d.ts +16 -0
  159. package/views/dist/controls/picker/picker.js +61 -40
  160. package/views/dist/controls/picker/rows.d.ts +4 -0
  161. package/views/dist/controls/picker.css +2 -0
  162. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  163. package/views/dist/controls/popover/map-popover.js +4 -2
  164. package/views/dist/controls/popover/popover.js +2 -1
  165. package/views/dist/controls/quick-filters/quick-filters.js +4 -4
  166. package/views/dist/controls/radio/radio.d.ts +8 -3
  167. package/views/dist/controls/radio/radio.js +22 -5
  168. package/views/dist/controls/radio/tokens.d.ts +44 -0
  169. package/views/dist/controls/radio/tokens.js +11 -0
  170. package/views/dist/controls/radio.css +79 -1
  171. package/views/dist/controls/select/map-select.d.ts +3 -0
  172. package/views/dist/controls/select/map-select.js +8 -0
  173. package/views/dist/controls/select/select.d.ts +7 -0
  174. package/views/dist/controls/select/select.js +12 -6
  175. package/views/dist/controls/select/tokens.d.ts +8 -0
  176. package/views/dist/controls/select/tokens.js +2 -0
  177. package/views/dist/controls/select.css +17 -0
  178. package/views/dist/controls/setting-row/looks.d.ts +1 -1
  179. package/views/dist/controls/setting-row/looks.js +9 -4
  180. package/views/dist/controls/setting-row/setting-row.d.ts +45 -10
  181. package/views/dist/controls/setting-row/setting-row.js +82 -15
  182. package/views/dist/controls/setting-row/tokens.d.ts +74 -2
  183. package/views/dist/controls/setting-row/tokens.js +19 -1
  184. package/views/dist/controls/setting-row.css +135 -14
  185. package/views/dist/controls/sheet/bottom-sheet.d.ts +14 -2
  186. package/views/dist/controls/sheet/bottom-sheet.js +6 -3
  187. package/views/dist/controls/sheet/map-sheet.js +1 -1
  188. package/views/dist/controls/sheet.css +4 -1
  189. package/views/dist/controls/sort-editor/map-sort-body.d.ts +1 -0
  190. package/views/dist/controls/sort-editor/map-sort-body.js +7 -3
  191. package/views/dist/controls/sort-editor/sort-editor.js +25 -26
  192. package/views/dist/controls/sort-editor.css +13 -2
  193. package/views/dist/controls/switch-row/tokens.d.ts +0 -12
  194. package/views/dist/controls/switch-row/tokens.js +0 -3
  195. package/views/dist/controls/switch-row.css +3 -7
  196. package/views/dist/controls/switch.css +17 -7
  197. package/views/dist/controls/tag/tag.d.ts +3 -1
  198. package/views/dist/controls/tag/tag.js +2 -2
  199. package/views/dist/controls/tag/tokens.d.ts +4 -0
  200. package/views/dist/controls/tag/tokens.js +1 -0
  201. package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
  202. package/views/dist/controls/tag-field/tag-field.js +11 -5
  203. package/views/dist/controls/tag-field/tokens.d.ts +16 -0
  204. package/views/dist/controls/tag-field/tokens.js +4 -0
  205. package/views/dist/controls/tag-field.css +19 -0
  206. package/views/dist/controls/tag.css +2 -0
  207. package/views/dist/controls/text-editor/text-editor.d.ts +1 -1
  208. package/views/dist/controls/text-editor/text-editor.js +8 -8
  209. package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
  210. package/views/dist/controls/toolbar/toolbar.js +22 -15
  211. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
  212. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +52 -0
  213. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
  214. package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
  215. package/views/dist/controls/toolbar-button.css +4 -0
  216. package/views/dist/controls/toolbar.css +5 -0
  217. package/views/dist/controls/values-editor/values-editor.d.ts +1 -1
  218. package/views/dist/controls/values-editor/values-editor.js +22 -22
  219. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
  220. package/views/dist/controls/views-list/map-view-menu.js +25 -0
  221. package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
  222. package/views/dist/controls/views-list/map-views-list-body.js +39 -21
  223. package/views/dist/controls/views-list/rules.d.ts +2 -0
  224. package/views/dist/controls/views-list/view-menu.d.ts +7 -0
  225. package/views/dist/controls/views-list/view-menu.js +33 -29
  226. package/views/dist/controls/views-list/views-list.js +4 -4
  227. package/views/dist/controls/views-list/words.d.ts +2 -0
  228. package/views/dist/controls/views-list/words.js +1 -1
  229. package/views/dist/editors/EditorPanel.js +3 -2
  230. package/views/dist/editors/edit-session.js +2 -5
  231. package/views/dist/field-row/FieldRow.d.ts +4 -2
  232. package/views/dist/field-row/FieldRow.js +80 -20
  233. package/views/dist/field-row/FieldRowLane.d.ts +7 -2
  234. package/views/dist/field-row/FieldRowLane.js +4 -3
  235. package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
  236. package/views/dist/field-row/editors/RowEditor.js +31 -1
  237. package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
  238. package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
  239. package/views/dist/field-row/field-row-button.d.ts +5 -0
  240. package/views/dist/field-row/field-row-button.js +2 -0
  241. package/views/dist/fields/binding.d.ts +3 -2
  242. package/views/dist/fields/binding.js +38 -5
  243. package/views/dist/fields/money.d.ts +5 -2
  244. package/views/dist/fields/money.js +14 -2
  245. package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
  246. package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
  247. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
  248. package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
  249. package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
  250. package/views/dist/grid/chrome/GridHeader.js +2 -2
  251. package/views/dist/grid/chrome/GridRow.js +6 -5
  252. package/views/dist/grid/chrome/GridRowCells.js +6 -9
  253. package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
  254. package/views/dist/grid/chrome/GridStructure.js +4 -4
  255. package/views/dist/grid/chrome/GridTable.js +9 -3
  256. package/views/dist/grid/chrome/cell-clipboard.d.ts +4 -2
  257. package/views/dist/grid/chrome/cell-clipboard.js +2 -2
  258. package/views/dist/grid/chrome/cells.js +3 -1
  259. package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
  260. package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
  261. package/views/dist/grid/chrome/grid-row-menu-items.js +93 -7
  262. package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
  263. package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
  264. package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
  265. package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
  266. package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
  267. package/views/dist/grid/chrome/useGridKeyboard.d.ts +7 -2
  268. package/views/dist/grid/chrome/useGridKeyboard.js +43 -14
  269. package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
  270. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  271. package/views/dist/grid/chrome/useGridTableInteractionModel.js +20 -7
  272. package/views/dist/grid/core/clipboard-model.d.ts +3 -1
  273. package/views/dist/grid/core/clipboard-model.js +9 -8
  274. package/views/dist/grid/core/commit-model.d.ts +20 -2
  275. package/views/dist/grid/core/editing-controller.d.ts +21 -0
  276. package/views/dist/grid/core/editing-controller.js +194 -42
  277. package/views/dist/grid/core/editing-model.d.ts +3 -0
  278. package/views/dist/grid/core/editing-model.js +3 -0
  279. package/views/dist/grid/core/edits-sink.d.ts +19 -0
  280. package/views/dist/grid/core/edits-sink.js +2 -0
  281. package/views/dist/grid/core/save-path.d.ts +24 -0
  282. package/views/dist/grid/core/save-path.js +122 -0
  283. package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
  284. package/views/dist/grid/core/spreadsheet-operations.js +24 -1
  285. package/views/dist/grid/core/useGridEditing.d.ts +5 -0
  286. package/views/dist/grid/core/useGridEditing.js +6 -0
  287. package/views/dist/grid/index.d.ts +3 -2
  288. package/views/dist/grid/index.js +1 -0
  289. package/views/dist/internal/field-rows.d.ts +26 -0
  290. package/views/dist/internal/field-rows.js +8 -0
  291. package/views/dist/internal/page-close.d.ts +7 -0
  292. package/views/dist/internal/page-close.js +43 -0
  293. package/views/dist/list/answer.d.ts +40 -0
  294. package/views/dist/list/answer.js +43 -0
  295. package/views/dist/list/browser-views-store.d.ts +10 -0
  296. package/views/dist/list/browser-views-store.js +182 -0
  297. package/views/dist/list/bulk-bar.d.ts +7 -0
  298. package/views/dist/list/bulk-bar.js +10 -0
  299. package/views/dist/list/columns.d.ts +24 -0
  300. package/views/dist/list/columns.js +27 -0
  301. package/views/dist/list/edits.d.ts +19 -0
  302. package/views/dist/list/edits.js +56 -0
  303. package/views/dist/list/grid.d.ts +11 -0
  304. package/views/dist/list/grid.js +76 -0
  305. package/views/dist/list/index.d.ts +36 -0
  306. package/views/dist/list/index.js +11 -0
  307. package/views/dist/list/link.d.ts +8 -0
  308. package/views/dist/list/link.js +78 -0
  309. package/views/dist/list/list.d.ts +70 -0
  310. package/views/dist/list/list.js +14 -0
  311. package/views/dist/list/menu.d.ts +31 -0
  312. package/views/dist/list/menu.js +76 -0
  313. package/views/dist/list/parts.d.ts +6 -0
  314. package/views/dist/list/parts.js +66 -0
  315. package/views/dist/list/registry.d.ts +11 -0
  316. package/views/dist/list/registry.js +31 -0
  317. package/views/dist/list/root-base.d.ts +46 -0
  318. package/views/dist/list/root-base.js +137 -0
  319. package/views/dist/list/root.d.ts +41 -0
  320. package/views/dist/list/root.js +168 -0
  321. package/views/dist/list/slot.d.ts +14 -0
  322. package/views/dist/list/slot.js +22 -0
  323. package/views/dist/list/source-answers.d.ts +39 -0
  324. package/views/dist/list/source-answers.js +225 -0
  325. package/views/dist/list/source.d.ts +11 -0
  326. package/views/dist/list/source.js +31 -0
  327. package/views/dist/list/store.d.ts +119 -0
  328. package/views/dist/list/store.js +146 -0
  329. package/views/dist/list/toolbar.d.ts +7 -0
  330. package/views/dist/list/toolbar.js +371 -0
  331. package/views/dist/list/views-axis.d.ts +5 -0
  332. package/views/dist/list/views-axis.js +98 -0
  333. package/views/dist/list/views-store.d.ts +41 -0
  334. package/views/dist/list/views-store.js +1 -0
  335. package/views/dist/list/views.d.ts +72 -0
  336. package/views/dist/list/views.js +411 -0
  337. package/views/dist/model/column-capabilities.d.ts +13 -0
  338. package/views/dist/model/column-capabilities.js +23 -2
  339. package/views/dist/model/column-schema.d.ts +11 -1
  340. package/views/dist/model/preferences.js +1 -1
  341. package/views/dist/model/prefs-buckets.js +1 -1
  342. package/views/dist/model/view-rules.js +1 -0
  343. package/views/dist/panels/index.d.ts +3 -1
  344. package/views/dist/panels/index.js +1 -0
  345. package/views/dist/panels/model.d.ts +2 -0
  346. package/views/dist/panels/react/customize-body.js +1 -0
  347. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +47 -4
  348. package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
  349. package/views/dist/panels/react/toolbar/Toolbar.d.ts +17 -2
  350. package/views/dist/panels/react/toolbar/Toolbar.js +43 -23
  351. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +1 -1
  352. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  353. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -4
  354. package/views/dist/panels/react/toolbar/ToolbarButton.js +7 -1
  355. package/views/dist/panels/react/toolbar/ToolbarFilter.js +1 -1
  356. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +1 -1
  357. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +1 -1
  358. package/views/dist/panels/react/toolbar/ToolbarFilters.js +2 -2
  359. package/views/dist/panels/react/toolbar/ToolbarNew.js +2 -2
  360. package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
  361. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
  362. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
  363. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  364. package/views/dist/panels/react/toolbar/ToolbarSort.js +2 -2
  365. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +6 -4
  366. package/views/dist/panels/react/toolbar/context.d.ts +20 -3
  367. package/views/dist/panels/react/toolbar/context.js +3 -1
  368. package/views/dist/panels/react/toolbar/panel-part.d.ts +4 -1
  369. package/views/dist/panels/react/toolbar/panel-part.js +5 -3
  370. package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
  371. package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
  372. package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
  373. package/views/dist/panels/react/views-row/PillGroup.js +16 -7
  374. package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
  375. package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
  376. package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
  377. package/views/dist/panels/react.d.ts +2 -2
  378. package/views/dist/panels/settings/filter-groups.js +6 -1
  379. package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
  380. package/views/dist/panels/toolbar/edit-view.js +14 -0
  381. package/views/dist/panels/toolbar/model.d.ts +5 -0
  382. package/views/dist/panels/toolbar/model.js +7 -3
  383. package/views/dist/panels/view-state.d.ts +5 -3
  384. package/views/dist/panels/views-row/model.d.ts +19 -2
  385. package/views/dist/panels/views-row/model.js +14 -0
  386. package/views/dist/provider/ViewsProvider.d.ts +21 -8
  387. package/views/dist/provider/ViewsProvider.js +40 -5
  388. package/views/dist/provider/components.d.ts +102 -2
  389. package/views/dist/provider/components.js +1 -1
  390. package/views/dist/provider/context.d.ts +6 -2
  391. package/views/dist/provider/context.js +1 -1
  392. package/views/dist/provider/own-control.d.ts +4 -0
  393. package/views/dist/provider/own-control.js +7 -0
  394. package/views/dist/provider/ports.d.ts +19 -12
  395. package/views/dist/provider/ports.js +69 -1
  396. package/views/dist/provider/select-items.d.ts +3 -0
  397. package/views/dist/provider/select-items.js +6 -0
  398. package/views/dist/react.d.ts +4 -2
  399. package/views/dist/react.js +2 -0
  400. package/views/dist/styles.css +503 -136
  401. package/views/dist/styles.unlayered.css +503 -136
  402. package/views/docs/contract.md +292 -34
  403. package/views/docs/controls/avatar.md +11 -0
  404. package/views/docs/controls/choice.md +0 -1
  405. package/views/docs/controls/compound-editor.md +4 -0
  406. package/views/docs/controls/customize.md +6 -0
  407. package/views/docs/controls/date-editor.md +4 -0
  408. package/views/docs/controls/field.md +7 -0
  409. package/views/docs/controls/filter-editor.md +8 -0
  410. package/views/docs/controls/group-editor.md +6 -0
  411. package/views/docs/controls/input.md +5 -0
  412. package/views/docs/controls/links-editor.md +4 -0
  413. package/views/docs/controls/menu-list.md +8 -0
  414. package/views/docs/controls/menu.md +4 -0
  415. package/views/docs/controls/notice.md +4 -0
  416. package/views/docs/controls/number-editor.md +4 -0
  417. package/views/docs/controls/pane.md +4 -0
  418. package/views/docs/controls/picker.md +8 -0
  419. package/views/docs/controls/quick-filters.md +6 -0
  420. package/views/docs/controls/radio.md +20 -1
  421. package/views/docs/controls/select.md +10 -0
  422. package/views/docs/controls/setting-row.md +18 -0
  423. package/views/docs/controls/sheet.md +4 -0
  424. package/views/docs/controls/sort-editor.md +8 -0
  425. package/views/docs/controls/switch-row.md +0 -3
  426. package/views/docs/controls/tag-field.md +4 -0
  427. package/views/docs/controls/tag.md +1 -0
  428. package/views/docs/controls/text-editor.md +4 -0
  429. package/views/docs/controls/values-editor.md +4 -0
  430. package/views/docs/controls/views-list.md +6 -0
  431. package/views/docs/getting-started.md +2 -2
  432. package/views/docs/guides/atoms.md +2 -2
  433. package/views/docs/guides/columns.md +1 -1
  434. package/views/docs/guides/ports.md +1 -1
  435. package/views/docs/guides/the-grid.md +36 -9
  436. package/views/docs/guides/the-provider.md +22 -3
  437. package/views/docs/index.md +1 -0
  438. package/views/docs/reference/controls.md +41 -29
  439. package/views/docs/reference/editors-session.md +1 -1
  440. package/views/docs/reference/field-row.md +9 -1
  441. package/views/docs/reference/grid.md +15 -9
  442. package/views/docs/reference/list.md +357 -0
  443. package/views/docs/reference/looks.md +1 -1
  444. package/views/docs/reference/panels-react.md +17 -12
  445. package/views/docs/reference/panels.md +8 -5
  446. package/views/docs/reference/react.md +24 -16
  447. package/views/docs/reference/views.md +10 -6
  448. package/views/docs/reshaping.md +6 -1
  449. package/views/skills/views/SKILL.md +9 -6
@@ -0,0 +1,173 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Spinner } from "../spinner/spinner.js";
4
+ function glyph(paths, filled = false) {
5
+ return function ViewsGlyph({ className }) {
6
+ return (_jsx("svg", { className: className, viewBox: "0 0 24 24", fill: filled ? "currentColor" : "none", stroke: filled ? "none" : "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: paths.map((d) => _jsx("path", { d: d }, d)) }));
7
+ };
8
+ }
9
+ const IconAdjustments = glyph(["M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 6l8 0", "M16 6l4 0", "M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 12l2 0", "M10 12l10 0", "M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M4 18l11 0", "M19 18l1 0"]);
10
+ const IconDotsVertical = glyph(["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"]);
11
+ const IconLayout = glyph(["M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z", "M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z", "M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"]);
12
+ const IconColumns = glyph(["M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z", "M12 4l0 16"]);
13
+ const IconDownload = glyph(["M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2", "M7 11l5 5l5 -5", "M12 4l0 12"]);
14
+ const IconShare = glyph(["M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M8.7 10.7l6.6 -3.4", "M8.7 13.3l6.6 3.4"]);
15
+ const IconFilter = glyph(["M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"]);
16
+ function ViewsLoading({ className }) {
17
+ return _jsx(Spinner, { className: className, label: "" });
18
+ }
19
+ const IconLetterT = glyph(["M6 4l12 0", "M12 4l0 16"]);
20
+ const IconAlignLeft = glyph(["M4 6l16 0", "M4 12l10 0", "M4 18l14 0"]);
21
+ const IconHash = glyph(["M5 9l14 0", "M5 15l14 0", "M11 4l-4 16", "M17 4l-4 16"]);
22
+ const IconPercentage = glyph(["M16 17a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M6 7a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M6 18l12 -12"]);
23
+ const IconCurrencyDollar = glyph(["M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2", "M12 3v3m0 12v3"]);
24
+ const IconCalendar = glyph(["M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12", "M16 3v4", "M8 3v4", "M4 11h16", "M11 15h1", "M12 15v3"]);
25
+ const IconCalendarTime = glyph(["M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4", "M14 18a4 4 0 1 0 8 0a4 4 0 1 0 -8 0", "M15 3v4", "M7 3v4", "M3 11h16", "M18 16.496v1.504l1 1"]);
26
+ const IconHourglass = glyph(["M6.5 7h11", "M6.5 17h11", "M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1", "M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1"]);
27
+ const IconToggleLeft = glyph(["M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M2 12a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6"]);
28
+ const IconSelector = glyph(["M8 9l4 -4l4 4", "M16 15l-4 4l-4 -4"]);
29
+ const IconCircleDot = glyph(["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"]);
30
+ const IconTags = glyph(["M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2", "M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592", "M7 10h-.01"]);
31
+ const IconArrowsLeftRight = glyph(["M21 17l-18 0", "M6 10l-3 -3l3 -3", "M3 7l18 0", "M18 20l3 -3l-3 -3"]);
32
+ const IconUser = glyph(["M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0", "M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"]);
33
+ const IconLink = glyph(["M9 15l6 -6", "M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464", "M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"]);
34
+ const IconWorld = glyph(["M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "M3.6 9h16.8", "M3.6 15h16.8", "M11.5 3a17 17 0 0 0 0 18", "M12.5 3a17 17 0 0 1 0 18"]);
35
+ const IconMail = glyph(["M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10", "M3 7l9 6l9 -6"]);
36
+ const IconPhone = glyph(["M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2"]);
37
+ const IconMapPin = glyph(["M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0", "M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0"]);
38
+ const IconId = glyph(["M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -10", "M7 10a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "M15 8l2 0", "M15 12l2 0", "M7 16l10 0"]);
39
+ const IconUserCircle = glyph(["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855"]);
40
+ const IconTextCaption = glyph(["M4 15h16", "M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4", "M4 20h12"]);
41
+ const IconArrowsHorizontal = glyph(["M7 8l-4 4l4 4", "M17 8l4 4l-4 4", "M3 12l18 0"]);
42
+ const IconSearch = glyph(["M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "M21 21l-6 -6"]);
43
+ const IconSum = glyph(["M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"]);
44
+ const IconMathFunction = glyph(["M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2", "M5 12h6", "M15 12l6 6", "M15 18l6 -6"]);
45
+ const IconCalculator = glyph(["M4 5a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -14", "M8 8a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v1a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1l0 -1", "M8 14l0 .01", "M12 14l0 .01", "M16 14l0 .01", "M8 17l0 .01", "M12 17l0 .01", "M16 17l0 .01"]);
46
+ const IconBolt = glyph(["M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"]);
47
+ const IconKey = glyph(["M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0", "M15 9h.01"]);
48
+ const IconSettings = glyph(["M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065", "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"]);
49
+ const IconPlus = glyph(["M12 5l0 14", "M5 12l14 0"]);
50
+ const IconPencil = glyph(["M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4", "M13.5 6.5l4 4"]);
51
+ const IconTrash = glyph(["M4 7l16 0", "M10 11l0 6", "M14 11l0 6", "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"]);
52
+ const IconCopy = glyph(["M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666", "M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"]);
53
+ const IconCut = glyph(["M4 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M14 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", "M9.15 14.85l8.85 -10.85", "M6 4l8.85 10.85"]);
54
+ const IconClipboard = glyph(["M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2", "M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2"]);
55
+ const IconEraser = glyph(["M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3", "M18 13.3l-6.3 -6.3"]);
56
+ const IconEyeOff = glyph(["M10.585 10.587a2 2 0 0 0 2.829 2.828", "M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87", "M3 3l18 18"]);
57
+ const IconEye = glyph(["M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0", "M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"]);
58
+ const IconLock = glyph(["M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6", "M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0", "M8 11v-4a4 4 0 1 1 8 0v4"]);
59
+ const IconPin = glyph(["M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4", "M9 15l-4.5 4.5", "M14.5 4l5.5 5.5"]);
60
+ const IconTextWrap = glyph(["M4 6l16 0", "M4 18l5 0", "M4 12h13a3 3 0 0 1 0 6h-4l2 -2m0 4l-2 -2"]);
61
+ const IconDots = glyph(["M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"]);
62
+ const IconX = glyph(["M18 6l-12 12", "M6 6l12 12"]);
63
+ const IconCheck = glyph(["M5 12l5 5l10 -10"]);
64
+ const IconAlertTriangle = glyph(["M12 9v4", "M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0", "M12 16h.01"]);
65
+ const IconGripVertical = glyph(["M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"]);
66
+ const IconArrowUpRight = glyph(["M17 7l-10 10", "M8 7l9 0l0 9"]);
67
+ const IconSquareCheck = glyph(["M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14", "M9 12l2 2l4 -4"]);
68
+ const IconChevronDown = glyph(["M6 9l6 6l6 -6"]);
69
+ const IconChevronRight = glyph(["M9 6l6 6l-6 6"]);
70
+ const IconCaretDownFilled = glyph(["M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z"], true);
71
+ const IconCaretRightFilled = glyph(["M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z"], true);
72
+ const IconArrowUp = glyph(["M12 5l0 14", "M18 11l-6 -6", "M6 11l6 -6"]);
73
+ const IconArrowDown = glyph(["M12 5l0 14", "M18 13l-6 6", "M6 13l6 6"]);
74
+ const IconCornerDownLeft = glyph(["M18 6v6a3 3 0 0 1 -3 3h-10l4 -4m0 8l-4 -4"]);
75
+ const IconClock = glyph(["M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "M12 7v5l3 3"]);
76
+ const IconProgress = glyph(["M10 20.777a8.942 8.942 0 0 1 -2.48 -.969", "M14 3.223a9.003 9.003 0 0 1 0 17.554", "M4.579 17.093a8.961 8.961 0 0 1 -1.227 -2.592", "M3.124 10.5c.16 -.95 .468 -1.85 .9 -2.675l.169 -.305", "M6.907 4.579a8.954 8.954 0 0 1 3.093 -1.356"]);
77
+ const IconArrowLeft = glyph(["M5 12l14 0", "M5 12l6 6", "M5 12l6 -6"]);
78
+ const IconArrowRight = glyph(["M5 12l14 0", "M13 18l6 -6", "M13 6l6 6"]);
79
+ const IconLayoutRows = glyph(["M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12", "M4 12l16 0"]);
80
+ const IconArrowsSort = glyph(["M3 9l4 -4l4 4m-4 -4v14", "M21 15l-4 4l-4 -4m4 4v-14"]);
81
+ const IconSortAscending = glyph(["M4 6l7 0", "M4 12l7 0", "M4 18l9 0", "M15 9l3 -3l3 3", "M18 6l0 12"]);
82
+ const IconSortDescending = glyph(["M4 6l9 0", "M4 12l7 0", "M4 18l7 0", "M15 15l3 3l3 -3", "M18 6l0 12"]);
83
+ const IconRotate = glyph(["M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"]);
84
+ export const CONTROL_ICONS = {
85
+ text: IconLetterT,
86
+ longText: IconAlignLeft,
87
+ number: IconHash,
88
+ percent: IconPercentage,
89
+ currency: IconCurrencyDollar,
90
+ date: IconCalendar,
91
+ datetime: IconCalendarTime,
92
+ duration: IconHourglass,
93
+ boolean: IconToggleLeft,
94
+ select: IconSelector,
95
+ status: IconCircleDot,
96
+ multiselect: IconTags,
97
+ relation: IconArrowsLeftRight,
98
+ user: IconUser,
99
+ url: IconLink,
100
+ domain: IconWorld,
101
+ email: IconMail,
102
+ phone: IconPhone,
103
+ location: IconMapPin,
104
+ name: IconId,
105
+ actor: IconUserCircle,
106
+ rich_text: IconTextCaption,
107
+ range: IconArrowsHorizontal,
108
+ lookup: IconSearch,
109
+ rollup: IconSum,
110
+ formula: IconMathFunction,
111
+ computed: IconCalculator,
112
+ automation: IconBolt,
113
+ apiKey: IconKey,
114
+ system: IconSettings,
115
+ add: IconPlus,
116
+ edit: IconPencil,
117
+ delete: IconTrash,
118
+ copy: IconCopy,
119
+ cut: IconCut,
120
+ paste: IconClipboard,
121
+ clear: IconEraser,
122
+ hide: IconEyeOff,
123
+ show: IconEye,
124
+ lock: IconLock,
125
+ pin: IconPin,
126
+ wrap: IconTextWrap,
127
+ more: IconDots,
128
+ close: IconX,
129
+ check: IconCheck,
130
+ warning: IconAlertTriangle,
131
+ drag: IconGripVertical,
132
+ resize: IconArrowsHorizontal,
133
+ open: IconArrowUpRight,
134
+ selectRow: IconSquareCheck,
135
+ chevronDown: IconChevronDown,
136
+ chevronRight: IconChevronRight,
137
+ caretDown: IconCaretDownFilled,
138
+ caretRight: IconCaretRightFilled,
139
+ sortAsc: IconArrowUp,
140
+ sortDesc: IconArrowDown,
141
+ enter: IconCornerDownLeft,
142
+ calendar: IconCalendar,
143
+ time: IconClock,
144
+ progress: IconProgress,
145
+ moveLeft: IconArrowLeft,
146
+ moveRight: IconArrowRight,
147
+ group: IconLayoutRows,
148
+ clearSort: IconArrowsSort,
149
+ sortRowsUp: IconSortAscending,
150
+ sortRowsDown: IconSortDescending,
151
+ search: IconSearch,
152
+ reset: IconRotate,
153
+ options: IconAdjustments,
154
+ person: IconUser,
155
+ moreVertical: IconDotsVertical,
156
+ layout: IconLayout,
157
+ columns: IconColumns,
158
+ sort: IconArrowsSort,
159
+ back: IconArrowLeft,
160
+ copyLink: IconLink,
161
+ export: IconDownload,
162
+ share: IconShare,
163
+ loading: ViewsLoading,
164
+ filter: IconFilter,
165
+ filterStatus: IconCircleDot,
166
+ filterCategory: IconSelector,
167
+ filterMetric: IconHash,
168
+ };
169
+ const BY_NAME = CONTROL_ICONS;
170
+ export function MapAppIcon({ name, className }) {
171
+ const Glyph = Object.hasOwn(BY_NAME, name) ? BY_NAME[name] : undefined;
172
+ return Glyph ? _jsx(Glyph, { className: className }) : null;
173
+ }
@@ -58,28 +58,30 @@ export function useGroupEditor(props) {
58
58
  const dateSteps = group ? stepsOf(group.field) : [], heldStep = group?.step ?? dateSteps[0]?.value ?? "";
59
59
  const hideEmptyTo = (on) => { if (now.current)
60
60
  change({ ...now.current, hideEmpty: on }); };
61
+ const setting = (key) => ({ slot: "vk-group-setting", key });
62
+ const named = (cs) => cs.map((c) => ({ ...c, slot: { slot: "vk-group-choice", key: c.value } }));
61
63
  const settings = [
62
- { kind: "choices", icon: null, label: NAMES.field, value: group?.field ?? "", choices: [], detail: groupLabel(group, fields, w.none) },
64
+ { kind: "choices", icon: null, label: NAMES.field, value: group?.field ?? "", choices: [], detail: groupLabel(group, fields, w.none), slot: setting("field") },
63
65
  ...(group ? [
64
- { kind: "choices", icon: null, label: NAMES.order, value: group.order, choices: ordersOf(group.field) },
66
+ { kind: "choices", icon: null, label: NAMES.order, value: group.order, choices: ordersOf(group.field), slot: setting("order") },
65
67
  directionTurns(group)
66
- ? { kind: "choices", icon: null, label: NAMES.direction, value: group.direction, choices: DIRECTIONS }
67
- : { icon: null, label: NAMES.direction, disabled: w.ownNoDirection },
68
- ...(dateSteps.length ? [{ kind: "choices", icon: null, label: NAMES.step, value: heldStep, choices: dateSteps }] : []),
69
- { kind: "check", label: w.hideEmpty, checked: group.hideEmpty, onCheckedChange: hideEmptyTo },
68
+ ? { kind: "choices", icon: null, label: NAMES.direction, value: group.direction, choices: DIRECTIONS, slot: setting("direction") }
69
+ : { icon: null, label: NAMES.direction, disabled: w.ownNoDirection, slot: setting("direction") },
70
+ ...(dateSteps.length ? [{ kind: "choices", icon: null, label: NAMES.step, value: heldStep, choices: dateSteps, slot: setting("step") }] : []),
71
+ { kind: "check", label: w.hideEmpty, checked: group.hideEmpty, onCheckedChange: hideEmptyTo, slot: setting("empty") },
70
72
  ] : []),
71
73
  ];
72
74
  const opened = (e) => { if ("label" in e && LEVEL_OF[e.label])
73
75
  open(LEVEL_OF[e.label]); };
74
76
  const groups = group ? orderedGroups(values, group).map((v) => ({ kind: "check", label: v.label, icon: v.mark, checked: !group.hidden.includes(v.value), grip: true,
75
- onCheckedChange: (on) => { if (now.current)
77
+ slot: { slot: "vk-group-value", key: v.value }, onCheckedChange: (on) => { if (now.current)
76
78
  change(setGroupShown(now.current, v.value, on)); } })) : [];
77
79
  const move = (from, to) => { if (now.current)
78
80
  change(moveGroup(now.current, values, from, to)); };
79
81
  const none = !!group && noneShown(group, values);
80
- const heading = (_jsxs("div", { className: "o-group-editor-heading", children: [_jsx("p", { className: "o-list-heading", children: w.groups }), _jsx(Button, { kind: "link", size: "line", onClick: () => { if (now.current)
82
+ const heading = (_jsxs("div", { className: "o-group-editor-heading", "data-slot": "vk-group-heading", children: [_jsx("p", { className: "o-list-heading", children: w.groups }), _jsx(Button, { kind: "link", size: "line", "data-slot": "vk-group-hide-all", onClick: () => { if (now.current)
81
83
  change(none ? showAllGroups(now.current) : hideAllGroups(now.current, values)); }, children: none ? w.showAll : w.hideAll })] }));
82
- const removeRow = { icon: null, label: w.remove, danger: true, onSelect: () => { change(null); setLevel(null); setFocusTo(NAMES.field); } };
84
+ const removeRow = { icon: null, label: w.remove, danger: true, slot: { slot: "vk-group-remove" }, onSelect: () => { change(null); setLevel(null); setFocusTo(NAMES.field); } };
83
85
  const foot = [{ kind: "separator" }, removeRow];
84
86
  const pickField = (v) => {
85
87
  if (v !== now.current?.field)
@@ -97,9 +99,9 @@ export function useGroupEditor(props) {
97
99
  back();
98
100
  };
99
101
  const choices = (which) => group
100
- ? [which === "order" ? { kind: "pick", value: group.order, choices: ordersOf(group.field), onChoose: pick(which) }
101
- : which === "direction" ? { kind: "pick", value: group.direction, choices: DIRECTIONS, onChoose: pick(which) }
102
- : { kind: "pick", value: heldStep, choices: dateSteps, onChoose: pick(which) }]
102
+ ? [which === "order" ? { kind: "pick", value: group.order, choices: named(ordersOf(group.field)), onChoose: pick(which) }
103
+ : which === "direction" ? { kind: "pick", value: group.direction, choices: named(DIRECTIONS), onChoose: pick(which) }
104
+ : { kind: "pick", value: heldStep, choices: named(dateSteps), onChoose: pick(which) }]
103
105
  : [];
104
106
  const at = level && (level === "field" || group) ? level : null;
105
107
  const form = phone ? "phone" : "computer";
@@ -118,7 +120,7 @@ export function useGroupEditor(props) {
118
120
  }
119
121
  const fieldLevel = at === "field" ? openLevels(fields, fieldLevels).slice(-1)[0] : undefined;
120
122
  const step = fieldLevel ? `field:${fieldLevels.join(">")}` : at ?? "settings";
121
- const body = (_jsx("div", { ref: placeRoot, className: "o-group-editor", "data-kit": "group-editor", "data-group-form": form, "data-group-level": at ?? "settings", ...phoneMark(!!screen || small), ...MENU_LIST_CARD_FRAME, children: phone ? _jsx(SheetStep, { step: step, back: wentBack, children: _jsx("div", { className: "o-group-editor-step", children: content }) }) : content }));
123
+ const body = (_jsx("div", { ref: placeRoot, className: "o-group-editor", "data-slot": "vk-group", "data-kit": "group-editor", "data-group-form": form, "data-group-level": at ?? "settings", ...phoneMark(!!screen || small), ...MENU_LIST_CARD_FRAME, children: phone ? _jsx(SheetStep, { step: step, back: wentBack, children: _jsx("div", { className: "o-group-editor-step", children: content }) }) : content }));
122
124
  return { body, level: fieldLevel ? { name: fieldLevel.label, back: backField } : at ? { name: NAMES[at], back } : null };
123
125
  }
124
126
  export function GroupEditor(props) {
@@ -9,6 +9,7 @@ export { Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonClass
9
9
  export { leadingGlyph } from "./button/map-button.js";
10
10
  export { buttonOwnAttrs, buttonOwnOptions, type ButtonOwnLook } from "./button/own-look.js";
11
11
  export { LoadingBar, Spinner, type LoadingBarProps, type SpinnerProps } from "./spinner/spinner.js";
12
+ export { CONTROL_ICONS } from "./glyphs/glyphs.js";
12
13
  export { POPUP_HOST, popupHostOf } from "./internal/popup-host.js";
13
14
  export type { Anchor } from "./internal/anchor.js";
14
15
  export { Scrollbar } from "./scrollbar/scrollbar.js";
@@ -45,6 +46,7 @@ export { COMPUTER_HOST, ComputerHost, PHONE_MARK, PhoneHost, PhoneLine, phoneMar
45
46
  export { drawnAt, focusWhereItStands, focusesInPlace, holdsThePage, keepsToItsList, overflows, scaleOf, scrollInList, scrollTopFor, scrollTopForDrag, staysInView, tapsInPlace, typesInto, } from "./internal/scroll.js";
46
47
  export { ContextMenu, Menu, MenuDots, useSheetMenus, type MenuChangeDetails, type MenuProps, type MenuWords, } from "./menu/menu.js";
47
48
  export { MapMenu, menuEntries } from "./menu/map-menu.js";
49
+ export { MapSelect } from "./select/map-select.js";
48
50
  export { Avatar, AvatarStack, initials, toneOf, type AvatarColour, type AvatarPresence, type AvatarProps, type AvatarSize, type AvatarStackPerson, type AvatarStackProps, } from "./avatar/avatar.js";
49
51
  export { PICKER_WORDS, Picker, PickerUnder, usePicker, type PickerAction, type PickerBoxSearch, type PickerDoing, type PickerLead, type PickerParts, type PickerProps, type PickerUnderProps, type PickerWords, } from "./picker/picker.js";
50
52
  export { exactMatch, findItem, fold, itemLabel, openLevels, orderMoved, pickerRows, searchShown, type PickerAs, type PickerItem, type PickerRow, type RowsInput, } from "./picker/rows.js";
@@ -130,5 +132,6 @@ export { LinksEditor, useLinksEditor, type LinksEditorAction, type LinksEditorLe
130
132
  export { found, heldOf, leadAfter, offered, removed, said, saidShort, setValue, ticked, type LinkChoice, type LinkField, type LinkFieldKind, type LinkValue, } from "./links-editor/links.js";
131
133
  export { LINKS_EDITOR_WORDS, linksWords, type LinksEditorWords } from "./links-editor/words.js";
132
134
  export { TagField, type TagFieldProps } from "./tag-field/tag-field.js";
133
- export { SettingRow, SettingRows, SwitchRow, SwitchRows, type SettingAction, type SettingRowProps, type SettingRowsProps, type SwitchRowProps } from "./setting-row/setting-row.js";
135
+ export { SettingChevron, SettingIcon, SettingRow, SettingRows, SwitchRow, SwitchRows, useSettingRowWorn, useSettingRowsRow, type SettingAction, type SettingRowProps, type SettingRowsProps, type SettingState, type SwitchRowProps } from "./setting-row/setting-row.js";
134
136
  export { SETTING_ROW_ATTRS, settingRowWornOf } from "./setting-row/looks.js";
137
+ export type { PartSlot } from "./internal/part-slot.js";
@@ -4,6 +4,7 @@ export { Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonClass
4
4
  export { leadingGlyph } from "./button/map-button.js";
5
5
  export { buttonOwnAttrs, buttonOwnOptions } from "./button/own-look.js";
6
6
  export { LoadingBar, Spinner } from "./spinner/spinner.js";
7
+ export { CONTROL_ICONS } from "./glyphs/glyphs.js";
7
8
  export { POPUP_HOST, popupHostOf } from "./internal/popup-host.js";
8
9
  export { Scrollbar } from "./scrollbar/scrollbar.js";
9
10
  export { Kbd } from "./kbd/kbd.js";
@@ -39,6 +40,7 @@ export { COMPUTER_HOST, ComputerHost, PHONE_MARK, PhoneHost, PhoneLine, phoneMar
39
40
  export { drawnAt, focusWhereItStands, focusesInPlace, holdsThePage, keepsToItsList, overflows, scaleOf, scrollInList, scrollTopFor, scrollTopForDrag, staysInView, tapsInPlace, typesInto, } from "./internal/scroll.js";
40
41
  export { ContextMenu, Menu, MenuDots, useSheetMenus, } from "./menu/menu.js";
41
42
  export { MapMenu, menuEntries } from "./menu/map-menu.js";
43
+ export { MapSelect } from "./select/map-select.js";
42
44
  export { Avatar, AvatarStack, initials, toneOf, } from "./avatar/avatar.js";
43
45
  export { PICKER_WORDS, Picker, PickerUnder, usePicker, } from "./picker/picker.js";
44
46
  export { exactMatch, findItem, fold, itemLabel, openLevels, orderMoved, pickerRows, searchShown, } from "./picker/rows.js";
@@ -122,5 +124,5 @@ export { LinksEditor, useLinksEditor, } from "./links-editor/links-editor.js";
122
124
  export { found, heldOf, leadAfter, offered, removed, said, saidShort, setValue, ticked, } from "./links-editor/links.js";
123
125
  export { LINKS_EDITOR_WORDS, linksWords } from "./links-editor/words.js";
124
126
  export { TagField } from "./tag-field/tag-field.js";
125
- export { SettingRow, SettingRows, SwitchRow, SwitchRows } from "./setting-row/setting-row.js";
127
+ export { SettingChevron, SettingIcon, SettingRow, SettingRows, SwitchRow, SwitchRows, useSettingRowWorn, useSettingRowsRow } from "./setting-row/setting-row.js";
126
128
  export { SETTING_ROW_ATTRS, settingRowWornOf } from "./setting-row/looks.js";
@@ -4,6 +4,7 @@ import { Input as BaseInput } from "@base-ui/react/input";
4
4
  import { Combobox as BaseCombobox } from "@base-ui/react/combobox";
5
5
  import { cx } from "../../internal/cx.js";
6
6
  import { Button } from "../button/button.js";
7
+ import { InFieldRow } from "../../internal/field-rows.js";
7
8
  import { phoneMark, usePhoneForm } from "../internal/phone.js";
8
9
  import { useAutofill } from "./autofill.js";
9
10
  import { inputOwnAttrs, kindLook } from "./looks.js";
@@ -80,6 +81,7 @@ function useKeptCursor(el, type) {
80
81
  export const Input = React.forwardRef(function Input({ size = "md", numeric = false, multiline = false, grow = false, maxLines, minLines, lines: linesGiven, autofill = true, look: lookGiven, chrome = "field", fills = true, combobox = false, saving = false, saved = false, className, style, ...props }, ref) {
81
82
  const fill = useAutofill(), look = kindLook(chrome, lookGiven), phone = usePhoneForm();
82
83
  const group = React.useContext(InGroup), grouped = group != null;
84
+ const inRow = React.useContext(InFieldRow) && chrome === "field";
83
85
  const lines = linesGiven ?? look?.lines ?? group?.lines;
84
86
  const long = multiline && !combobox;
85
87
  const bare = grouped || chrome === "bare", field = !bare, set = long && lines != null, grows = long && !set && (field ? grow : bare);
@@ -100,9 +102,9 @@ export const Input = React.forwardRef(function Input({ size = "md", numeric = fa
100
102
  const start = long && field && !set && minLines ? { minHeight: `calc(1lh * ${minLines} + var(--vk-spacing) * 4 + var(--vk-border-width) * 2)` } : undefined;
101
103
  const control = (attrs) => (_jsx(Control, { ref: refs, ...attrs, ...(long ? { render: _jsx("textarea", {}) } : {}), ...(set ? { rows: lines } : {}), ...props, ...fill(autofill) }));
102
104
  if (field) {
103
- const { "data-force": force, ...rest } = props;
105
+ const { "data-force": force, "data-slot": slot, "data-key": key, ...rest } = props;
104
106
  props = rest;
105
- return (_jsxs("span", { className: cx("o-input o-input-lone o-smooth o-smooth-ease", sized(size), long && "o-input-long", grows && "o-input-grow", className), style: start || style ? { ...start, ...style } : undefined, "data-kit": "input", ...phoneMark(phone), ...(force != null ? { "data-force": force } : {}), ...(look ? inputOwnAttrs(look) : {}), onMouseDown: (e) => {
107
+ return (_jsxs("span", { className: cx("o-input o-input-lone", inRow ? "o-input-inrow" : "o-smooth o-smooth-ease", sized(size), long && "o-input-long", grows && "o-input-grow", className), style: start || style ? { ...start, ...style } : undefined, "data-kit": "input", ...phoneMark(phone), ...(force != null ? { "data-force": force } : {}), ...(slot != null ? { "data-slot": slot } : {}), ...(key != null ? { "data-key": key } : {}), ...(look ? inputOwnAttrs(look) : {}), onMouseDown: (e) => {
106
108
  const box = own.current;
107
109
  if (e.target !== e.currentTarget || !box || box.disabled)
108
110
  return;
@@ -120,9 +122,10 @@ export const Input = React.forwardRef(function Input({ size = "md", numeric = fa
120
122
  });
121
123
  export function InputGroup({ size = "md", look: lookGiven, chrome, saving = false, saved = false, className, children, onMouseDown, ...props }) {
122
124
  const look = kindLook(chrome, lookGiven), phone = usePhoneForm();
125
+ const inRow = React.useContext(InFieldRow) && (chrome ?? "field") === "field";
123
126
  const tall = React.Children.toArray(children).some((c) => React.isValidElement(c)
124
127
  && ((c.type === Input && c.props.multiline) || (c.type === InputGroupAddon && (c.props.side === "top" || c.props.side === "bottom"))));
125
- return (_jsx(InGroup.Provider, { value: { size, cell: false, lines: look?.lines }, children: _jsxs("div", { role: "group", className: cx("o-input o-input-group o-smooth o-smooth-ease", sized(size), tall && "o-input-long", className), ...phoneMark(phone), ...(look ? inputOwnAttrs(look) : {}), onMouseDown: (e) => { onMouseDown?.(e); pressGroup(e); }, ...(saving ? { "aria-busy": true } : {}), ...props, children: [children, _jsx(SaveMark, { saving: saving, saved: saved })] }) }));
128
+ return (_jsx(InGroup.Provider, { value: { size, cell: false, lines: look?.lines }, children: _jsxs("div", { role: "group", className: cx("o-input o-input-group", inRow ? "o-input-inrow" : "o-smooth o-smooth-ease", sized(size), tall && "o-input-long", className), ...phoneMark(phone), ...(look ? inputOwnAttrs(look) : {}), onMouseDown: (e) => { onMouseDown?.(e); pressGroup(e); }, ...(saving ? { "aria-busy": true } : {}), ...props, children: [children, _jsx(SaveMark, { saving: saving, saved: saved })] }) }));
126
129
  }
127
130
  export function InputGroupAddon({ side = "start", flush = false, className, children, ...props }) {
128
131
  return _jsx("div", { "data-side": side, ...(flush ? { "data-flush": "" } : {}), className: cx("o-input-addon", className), ...props, children: children });
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Input } from "./input.js";
3
+ import { markOwnControl } from "../../provider/own-control.js";
3
4
  export function MapInput({ chrome = "bare", size: _width, inputMode, ref, ...rest }) {
4
5
  return _jsx(Input, { ref: ref, chrome: chrome, fills: false, inputMode: inputMode, numeric: inputMode === "decimal" || inputMode === "numeric", autofill: false, ...rest });
5
6
  }
7
+ markOwnControl(MapInput);
@@ -58,6 +58,10 @@ export declare const INPUT_TOKENS: readonly [{
58
58
  readonly name: "--vk-fg";
59
59
  readonly kind: "colour";
60
60
  readonly outright: "--text";
61
+ }, {
62
+ readonly name: "--vk-fg-brand";
63
+ readonly kind: "colour";
64
+ readonly outright: "--link";
61
65
  }, {
62
66
  readonly name: "--vk-fg-disabled";
63
67
  readonly kind: "colour";
@@ -14,6 +14,7 @@ export const INPUT_TOKENS = [
14
14
  { name: "--vk-ease-in", kind: "motion", outright: "--ease-in" },
15
15
  { name: "--vk-ease-out", kind: "motion", outright: "--ease-out" },
16
16
  { name: "--vk-fg", kind: "colour", outright: "--text" },
17
+ { name: "--vk-fg-brand", kind: "colour", outright: "--link" },
17
18
  { name: "--vk-fg-disabled", kind: "colour", outright: "--text-disabled" },
18
19
  { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
19
20
  { name: "--vk-fg-subtlest", kind: "colour", outright: "--text-subtlest" },
@@ -65,10 +65,11 @@
65
65
  /* Disabled: a softer edge, a grey fill, no lift. */
66
66
  .o-input:is(:disabled, [data-disabled], :where(:has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: var(--vk-border-subtle); --input-ground: var(--vk-neutral); box-shadow: none; color: var(--vk-fg-disabled); cursor: not-allowed; }
67
67
 
68
- /* Read-only: what it holds can be read, chosen and copied, not changed: a soft edge and no lift; it still
69
- takes the focus, and the pointer changes nothing. One that opens something is a
70
- box to press, not words to copy, and keeps a resting field's edge and lift. */
68
+ /* Read-only: what it holds can be read, chosen and copied, not changed: it stands sunken, its words subtle (KIT-938), in
69
+ focus too, with a soft edge and no lift at rest; it still takes the focus, and the pointer changes nothing. One that opens
70
+ something is a box to press, not words to copy, and keeps a resting field's ground, edge and lift. */
71
71
  .o-input:is([readonly], :where(:has(.o-input-control[readonly]))) { cursor: default; }
72
+ .o-input:is([readonly], :where(:has(.o-input-control[readonly]))):where(:not([aria-haspopup], :has(.o-input-control[aria-haspopup]))) { --input-ground: var(--vk-sunken); color: var(--vk-fg-subtle); }
72
73
  .o-input:is([readonly], :where(:has(.o-input-control[readonly]))):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-haspopup], :has(:is(.o-input-control:focus-visible, .o-input-segment:focus, .o-input-control[aria-haspopup])))) { --input-edge: var(--vk-border-subtle); box-shadow: none; }
73
74
 
74
75
  /* ── The options a design picks (input/looks.ts) ─────────────────────────────────────────────────────
@@ -367,4 +368,31 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
367
368
  @keyframes o-input-saved-leave { to { opacity: 0; } }
368
369
  @media (prefers-reduced-motion: reduce) { .o-input-save[data-save="saved"] { animation-duration: 1ms; } }
369
370
 
371
+ /* ── In a row of Field rows (VK-960; the settings canvas, round 3: look-ios.mjs .fv, .caret, .saved, .act): a Field placed in
372
+ Field rows is the card's row, and its Input or InputGroup stands typed in place there, as iOS's Settings draws a value beside
373
+ its label. No box in any state: no edge, ground, ring, lift or smooth outline, nor a size's height or padding; its words the
374
+ row's, in the text colour, the caret in the brand, a value wider than it cut with "…" at rest. Read-only, in the quietest text
375
+ with no caret. An InputGroup's start words are the value's prefix, in the quietest text and right against it; its end button
376
+ (copy) in the brand, 12 after the value, out of the way while the save mark stands there. The save mark (Saving, Saved) 12
377
+ after the value: its words 14, its check 16, the Spinner 18. The row lays it out (field.css): the value takes what the label
378
+ leaves, and the save mark and the end button never leave the row. Three classes, so no state or look of the box reaches it. */
379
+ .o-input.o-input-inrow.o-input-inrow {
380
+ flex: 1; align-self: stretch; height: auto; min-width: 0; padding: 0; border: 0 none; border-radius: 0; background: none; box-shadow: none; outline: none;
381
+ --input-pad-block: 0px; --input-pad-inline: 0px; --input-group-gap: 0px;
382
+ color: var(--vk-fg); font: inherit; caret-color: var(--vk-fg-brand); transition: none;
383
+ }
384
+ .o-input-inrow > .o-input-control { text-overflow: ellipsis; }
385
+ .o-input-inrow:has(> .o-input-control[readonly]) { color: var(--vk-fg-subtlest); caret-color: transparent; }
386
+ .o-input-inrow:is([data-disabled], :has(> .o-input-control:is(:disabled, [data-disabled]))) { color: var(--vk-fg-disabled); }
387
+ .o-input-inrow > .o-input-addon[data-side="start"] { color: var(--vk-fg-subtlest); }
388
+ .o-input-inrow > .o-input-addon[data-side="end"] { margin-inline-start: calc(var(--vk-spacing) * 3); }
389
+ .o-input-inrow > .o-input-addon[data-side="end"] .o-button.o-button { color: var(--vk-fg-brand); }
390
+ .o-input-inrow:has(> .o-input-save) > .o-input-addon[data-side="end"] { display: none; }
391
+ .o-input-inrow > .o-input-save.o-input-save {
392
+ margin-inline-start: calc(var(--vk-spacing) * 3); padding-inline-end: 0; gap: var(--vk-spacing);
393
+ font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
394
+ }
395
+ .o-input-inrow > .o-input-save[data-save="saved"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
396
+ .o-input-inrow > .o-input-save[data-save="saving"] svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
397
+
370
398
  }
@@ -44,5 +44,5 @@ export function useDecide(now, change, onDone, words = { close: "Close", save: "
44
44
  const place = React.useCallback((el) => { opened.current = el ? opened.current ?? now.current : null; }, [now]);
45
45
  const leave = () => { const was = opened.current; if (was && JSON.stringify(was) !== JSON.stringify(now.current))
46
46
  change(was); onDone?.(); };
47
- return { place, head: { left: _jsx(SheetButton, { "aria-label": words.close, icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { kind: "primary", "aria-label": words.save, icon: glyph(TICK), onClick: () => onDone?.() }) } };
47
+ return { place, head: { left: _jsx(SheetButton, { "data-slot": "vk-editor-close", "aria-label": words.close, icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { "data-slot": "vk-editor-save", kind: "primary", "aria-label": words.save, icon: glyph(TICK), onClick: () => onDone?.() }) } };
48
48
  }
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  const PATHS = {
3
3
  plus: ["M12 5l0 14", "M5 12l14 0"],
4
4
  down: ["M6 9l6 6l6 -6"],
5
+ "arrow-down": ["M12 5l0 14", "M18 13l-6 6", "M6 13l6 6"],
5
6
  trash: ["M4 7l16 0", "M10 11l0 6", "M14 11l0 6", "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"],
6
7
  dots: ["M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],
7
8
  x: ["M18 6l-12 12", "M6 6l12 12"],
@@ -48,6 +49,15 @@ const PATHS = {
48
49
  list: ["M9 6l11 0", "M9 12l11 0", "M9 18l11 0", "M5 6l0 .01", "M5 12l0 .01", "M5 18l0 .01"],
49
50
  pin: ["M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4", "M9 15l-4.5 4.5", "M14.5 4l5.5 5.5"],
50
51
  bell: ["M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6", "M9 17v1a3 3 0 0 0 6 0v-1"],
52
+ archive: ["M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z", "M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10", "M10 12l4 0"],
53
+ "user-plus": ["M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0", "M16 19h6", "M19 16v6", "M6 21v-2a4 4 0 0 1 4 -4h4"],
54
+ share: ["M8 9h-1a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8a2 2 0 0 0 -2 -2h-1", "M12 14v-11", "M9 6l3 -3l3 3"],
55
+ key: ["M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z", "M15 9h.01"],
56
+ bot: ["M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z", "M12 2v2", "M9 12v9", "M15 12v9", "M5 16l4 -2", "M15 14l4 2", "M9 18h6", "M10 8v.01", "M14 8v.01"],
57
+ layers: ["M12 4l-8 4l8 4l8 -4l-8 -4", "M4 12l8 4l8 -4", "M4 16l8 4l8 -4"],
58
+ sliders: ["M4 6l8 0", "M16 6l4 0", "M14 4v4", "M4 12l2 0", "M10 12l10 0", "M8 10v4", "M4 18l11 0", "M19 18l1 0", "M17 16v4"],
59
+ lock: ["M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z", "M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0", "M8 11v-4a4 4 0 1 1 8 0v4"],
60
+ "dots-vertical": ["M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],
51
61
  "star-filled": ["M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"],
52
62
  "pin-filled": ["M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z"],
53
63
  "bell-filled": ["M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z", "M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z"],
@@ -0,0 +1,2 @@
1
+ /** Keeps the focus inside `popup` when a focused element in it leaves the page. The Sheet's and the Modal's. */
2
+ export declare function useKeptFocus(popup: HTMLElement | null): void;
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ export function useKeptFocus(popup) {
3
+ React.useLayoutEffect(() => {
4
+ if (!popup)
5
+ return;
6
+ const doc = popup.ownerDocument;
7
+ const keep = (e) => {
8
+ const left = e.target;
9
+ if (e.relatedTarget || !left || typeof left.focus !== "function" || left === popup || !popup.contains(left) || !doc.hasFocus())
10
+ return;
11
+ queueMicrotask(() => { if (!left.isConnected && doc.activeElement === doc.body && popup.isConnected)
12
+ popup.focus({ preventScroll: true }); });
13
+ };
14
+ popup.addEventListener("focusout", keep, true);
15
+ return () => popup.removeEventListener("focusout", keep, true);
16
+ }, [popup]);
17
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { type AppPanelControls } from "./panel-controls.js";
3
+ /** The app's controls for the panels, as the provider names them; none outside a provider or with nothing opted in. */
4
+ export declare function useAppPanelControls(): AppPanelControls;
5
+ /** Its children drawn with the app's controls for the panels. */
6
+ export declare function PanelControlsFromViews({ children }: {
7
+ children: React.ReactNode;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { ViewsContext } from "../../provider/context.js";
5
+ import { NO_APP_CONTROLS, PanelControlsContext } from "./panel-controls.js";
6
+ export function useAppPanelControls() {
7
+ const views = React.useContext(ViewsContext);
8
+ const components = views?.components, names = views?.panelControls;
9
+ return React.useMemo(() => {
10
+ if (!components || !names?.size)
11
+ return NO_APP_CONTROLS;
12
+ const out = {};
13
+ for (const name of names)
14
+ out[name] = components[name];
15
+ return out;
16
+ }, [components, names]);
17
+ }
18
+ export function PanelControlsFromViews({ children }) {
19
+ return _jsx(PanelControlsContext.Provider, { value: useAppPanelControls(), children: children });
20
+ }
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ import type { ViewsButtonProps, ViewsInputProps, ViewsMenuItem, ViewsMenuProps, ViewsPopoverProps, ViewsSelectProps } from "../../provider/components.js";
3
+ import { type ButtonProps } from "../button/button.js";
4
+ import { type InputProps } from "../input/input.js";
5
+ import { type MenuProps } from "../menu/menu.js";
6
+ import type { MenuEntry } from "../menu-list/menu-list.js";
7
+ import { type PopoverProps } from "../popover/popover.js";
8
+ import { type SelectListProps, type SelectProps } from "../select/select.js";
9
+ /** The app's own controls the panels draw, by name; a name left out is ViewKit's own. */
10
+ export type AppPanelControls = {
11
+ Button?: React.ComponentType<ViewsButtonProps>;
12
+ Select?: React.ComponentType<ViewsSelectProps>;
13
+ Menu?: React.ComponentType<ViewsMenuProps>;
14
+ Popover?: React.ComponentType<ViewsPopoverProps>;
15
+ Input?: React.ComponentType<ViewsInputProps>;
16
+ };
17
+ /** No app control: what a panel drawn alone reads. */
18
+ export declare const NO_APP_CONTROLS: AppPanelControls;
19
+ /** What a panel draws its controls with; its default holds none of the app's. Filled only by PanelControlsFromViews. */
20
+ export declare const PanelControlsContext: React.Context<AppPanelControls>;
21
+ type ButtonLike = ButtonProps & {
22
+ ref?: React.Ref<HTMLButtonElement>;
23
+ };
24
+ type InputLike = InputProps & {
25
+ ref?: React.Ref<HTMLInputElement>;
26
+ };
27
+ /** The five controls a panel draws, each taking ViewKit's own props. */
28
+ export type PanelControls = {
29
+ Button: React.ComponentType<ButtonLike>;
30
+ Select: React.ComponentType<SelectProps>;
31
+ Menu: React.ComponentType<MenuProps>;
32
+ Popover: React.ComponentType<PopoverProps>;
33
+ Input: React.ComponentType<InputLike>;
34
+ };
35
+ /** The controls a panel draws: the app's where the context holds them, else ViewKit's own, the same components. */
36
+ export declare function usePanelControls(): PanelControls;
37
+ /** ViewKit's Button props as the map's: its kind a variant, its size and form one of the map's three sizes, its icons in its
38
+ * children; one that can't be used but keeps its focus says so and takes no press. ViewKit's own look is never handed. */
39
+ export declare function buttonPropsOf(p: ButtonLike): ViewsButtonProps;
40
+ /** ViewKit's Select props as the map's: its rows, value, pick, name and size, and anything else a ViewKit part hands it (an
41
+ * `aria-describedby`, a handler) on the rest; never its list's width or its own look. */
42
+ export declare function selectPropsOf(p: SelectListProps): ViewsSelectProps;
43
+ /** A menu's rows as the map's: an action, a tick, a pick's choices (under its heading when it has one), a line before the next row.
44
+ * Each row keeps its public name and which one it is. A kind the map has no word for is left out, with a warning. */
45
+ export declare function menuItemsOf(entries: MenuEntry[], label: string): ViewsMenuItem[];
46
+ /** ViewKit's Popover props as the map's: open, where, what closes it, its name; a trigger of its own stays ViewKit's. */
47
+ export declare function popoverPropsOf(p: PopoverProps): ViewsPopoverProps;
48
+ /** ViewKit's Input props as the map's: a value typed handed as its change, in the app's field frame; never ViewKit's own look. */
49
+ export declare function inputPropsOf(p: InputLike): ViewsInputProps;
50
+ export {};