viewkitjs 0.33.0 → 0.34.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 (107) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +1 -1
  3. package/views/dist/contract.d.ts +20 -10
  4. package/views/dist/contract.js +37 -3
  5. package/views/dist/controls/alert/alert.js +2 -1
  6. package/views/dist/controls/alert-dialog/alert-dialog.js +3 -2
  7. package/views/dist/controls/bulk-bar/bulk-bar.js +25 -22
  8. package/views/dist/controls/controls.d.ts +2 -0
  9. package/views/dist/controls/controls.js +2 -0
  10. package/views/dist/controls/customize/customize.js +8 -6
  11. package/views/dist/controls/customize/map-customize-body.d.ts +2 -2
  12. package/views/dist/controls/customize/map-customize-body.js +3 -2
  13. package/views/dist/controls/date-editor/date-editor.d.ts +3 -0
  14. package/views/dist/controls/date-editor/date-editor.js +13 -7
  15. package/views/dist/controls/date-editor/map-calendar.js +2 -0
  16. package/views/dist/controls/date-editor/map-date-body.d.ts +1 -1
  17. package/views/dist/controls/date-editor/map-date-body.js +7 -3
  18. package/views/dist/controls/filter-editor/map-filter-body.d.ts +2 -0
  19. package/views/dist/controls/filter-editor/map-filter-body.js +7 -4
  20. package/views/dist/controls/filter-editor/parts.d.ts +3 -1
  21. package/views/dist/controls/filter-editor/parts.js +7 -6
  22. package/views/dist/controls/group-editor/group-editor.js +2 -1
  23. package/views/dist/controls/group-editor/map-group-body.d.ts +1 -0
  24. package/views/dist/controls/group-editor/map-group-body.js +5 -1
  25. package/views/dist/controls/input/input.js +2 -1
  26. package/views/dist/controls/internal/head-button.d.ts +9 -0
  27. package/views/dist/controls/internal/head-button.js +13 -0
  28. package/views/dist/controls/internal/panel-controls.d.ts +13 -5
  29. package/views/dist/controls/internal/panel-controls.js +53 -10
  30. package/views/dist/controls/menu/menu.d.ts +2 -1
  31. package/views/dist/controls/menu/menu.js +2 -2
  32. package/views/dist/controls/modal/modal.js +5 -3
  33. package/views/dist/controls/number-editor/map-number-body.js +5 -1
  34. package/views/dist/controls/number-editor/number-editor.js +6 -6
  35. package/views/dist/controls/pane/map-pane.d.ts +3 -0
  36. package/views/dist/controls/pane/map-pane.js +5 -0
  37. package/views/dist/controls/picker/map-fields-body.js +25 -1
  38. package/views/dist/controls/picker.css +10 -1
  39. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +2 -1
  40. package/views/dist/controls/quick-filters/map-quick-filters-body.js +7 -3
  41. package/views/dist/controls/quick-filters/quick-filters.js +5 -3
  42. package/views/dist/controls/setting-row/looks.js +5 -5
  43. package/views/dist/controls/setting-row/setting-row.d.ts +3 -1
  44. package/views/dist/controls/setting-row/setting-row.js +3 -1
  45. package/views/dist/controls/setting-row.css +3 -2
  46. package/views/dist/controls/sheet/bottom-sheet.d.ts +3 -1
  47. package/views/dist/controls/sheet/bottom-sheet.js +2 -2
  48. package/views/dist/controls/sort-editor/map-sort-body.js +4 -4
  49. package/views/dist/controls/text-editor/map-text-body.js +5 -1
  50. package/views/dist/controls/text-editor/text-editor.js +5 -4
  51. package/views/dist/controls/toolbar/toolbar.d.ts +4 -2
  52. package/views/dist/controls/toolbar/toolbar.js +2 -2
  53. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -2
  54. package/views/dist/controls/views-list/map-view-menu.js +6 -2
  55. package/views/dist/controls/views-list/map-views-list-body.d.ts +2 -1
  56. package/views/dist/controls/views-list/map-views-list-body.js +6 -5
  57. package/views/dist/controls/views-list/view-menu.js +3 -4
  58. package/views/dist/controls/views-list/views-list.js +2 -2
  59. package/views/dist/editors/EditorPanel.js +3 -3
  60. package/views/dist/list/list.d.ts +6 -2
  61. package/views/dist/list/list.js +6 -2
  62. package/views/dist/list/parts.js +3 -2
  63. package/views/dist/list/toolbar.js +9 -3
  64. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +13 -0
  65. package/views/dist/panels/react/toolbar/Toolbar.d.ts +4 -0
  66. package/views/dist/panels/react/toolbar/Toolbar.js +8 -3
  67. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +3 -2
  68. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +3 -2
  69. package/views/dist/panels/react/toolbar/ToolbarFilters.js +3 -2
  70. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +3 -2
  71. package/views/dist/panels/react/toolbar/context.d.ts +21 -0
  72. package/views/dist/panels/react/toolbar/context.js +4 -0
  73. package/views/dist/panels/react/toolbar/pane-host.d.ts +6 -0
  74. package/views/dist/panels/react/toolbar/pane-host.js +17 -0
  75. package/views/dist/panels/react/toolbar/panel-part.js +3 -2
  76. package/views/dist/panels/react.d.ts +1 -1
  77. package/views/dist/provider/ViewsProvider.d.ts +4 -3
  78. package/views/dist/provider/components.d.ts +34 -5
  79. package/views/dist/provider/components.js +1 -1
  80. package/views/dist/react.d.ts +1 -1
  81. package/views/dist/styles.css +97 -78
  82. package/views/dist/styles.unlayered.css +97 -78
  83. package/views/docs/contract.md +62 -6
  84. package/views/docs/controls/alert-dialog.md +4 -0
  85. package/views/docs/controls/alert.md +4 -0
  86. package/views/docs/controls/bulk-bar.md +4 -0
  87. package/views/docs/controls/customize.md +3 -1
  88. package/views/docs/controls/date-editor.md +2 -0
  89. package/views/docs/controls/filter-editor.md +1 -1
  90. package/views/docs/controls/group-editor.md +2 -0
  91. package/views/docs/controls/menu.md +3 -1
  92. package/views/docs/controls/modal.md +4 -0
  93. package/views/docs/controls/number-editor.md +2 -0
  94. package/views/docs/controls/quick-filters.md +3 -1
  95. package/views/docs/controls/sheet.md +1 -1
  96. package/views/docs/controls/text-editor.md +2 -0
  97. package/views/docs/controls/toolbar.md +4 -0
  98. package/views/docs/controls/views-list.md +2 -0
  99. package/views/docs/guides/the-provider.md +4 -4
  100. package/views/docs/reference/controls.md +5 -3
  101. package/views/docs/reference/list.md +5 -3
  102. package/views/docs/reference/looks.md +1 -1
  103. package/views/docs/reference/panels-react.md +6 -5
  104. package/views/docs/reference/react.md +7 -6
  105. package/views/docs/reference/views.md +4 -2
  106. package/views/docs/reshaping.md +16 -5
  107. package/views/skills/views/SKILL.md +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,35 @@ Until 0.19.0 ViewKit shipped as three packages; their changes are in [fields/CHA
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.34.0] — 2026-12-03
9
+
10
+ ### Added
11
+
12
+ - Under the provider's `panelControls`, your own `Button`, `Select` and `Input` now draw inside the group editor, Customize, the views list and view menu (with the Modal they open, and on a phone the Delete question; on a computer Delete still goes to your `confirm` port), the quick filters' search, the filter bar's typed value and date, and every head a panel draws itself on a phone (its ✕, ‹ and ✓, your Button alone in place of ViewKit's glass and plain pair). Each is handed the components map's props, and each panel part its `data-slot` and `data-key` (the Modal's and the alert's buttons carry no public name). Nothing changes without it. The head ViewKit's own `Sheet` draws stays ViewKit's: hand your own `Sheet` to change it.
13
+ - The last parts around the panels carry public names (VK-1003): `vk-filter-part-value` (the filter bar's typed value) and `vk-filter-part-pair` (a range's two numbers there), `vk-quick-strip` and `vk-quick-values` (the quick filters' fields and values, `data-key` the field), `vk-customize-none` (`data-key` `columns` or `choices`), `vk-customize-rows` (a column's own rows, `data-key` its id) and `vk-customize-columns-foot`. The quick filters', views list's and Customize's own phone heads name their ✕ and ‹ `vk-editor-close` and `vk-editor-back`, as the sort's and filter's do. A phone menu's sheet carries its menu's name, and so does the views list's phone step that holds a view's menu (`vk-view-menu`, its rows `vk-view-menu-row` with or without `verbs`).
14
+ - `viewkitjs/views/react`: the provider's `panelControls` now reaches the text, number and date editors too. Each button, popover and one-line box inside them is your own `Button`, `Popover` and `Input`, except what `docs/reshaping.md` names (a box that grows over lines, the Number field, the date's segments, its quarter list and its parts' boxes among them), handed the components map's props and the part's `data-slot` and `data-key`. Inside a box group of ViewKit's (a date's line, a phone number's digits) your Input is handed `chrome="bare"`, and ViewKit's autofill-off where the box holds a record's details. Nothing changes without it.
15
+ - `panelControls` takes a sixth name, `Calendar` (`true` now means all six): your `Calendar` draws the date editor's month in place of its own head and days, handed the conventions' locale and `data-slot="vk-calendar"` (`ViewsCalendarProps` takes `data-slot`). `CONTROLS.Calendar` stays ViewKit's whatever it says, and the filter's range calendar reads your `Calendar` as before.
16
+ - `ViewsSheetAction` takes `slot`: an editor panel hands your Sheet's head its ✕, ✓ and Back as `vk-editor-close`, `vk-editor-save` and `vk-editor-back`.
17
+ - `viewkitjs/views/controls`: every part of the bulk bar (`CONTROLS.SelectionBar`) and of what it opens has a public `data-slot`, in every form (a computer's bar, the phone's tray and pill): the bar, its count, the separator, each verb (`vk-bulk-verb`, `data-key` its place in the verbs), Delete, More, the pill's ✕ and Actions, More's and Actions' menu and its rows, a group's menu and rows, a field's values and empty row in a menu, a field's popover and sheet, and where its Toast rises (`vk-bulk-*`). Listed in `BULK_BAR_SLOTS` (and `SELECTION_SLOTS`) and `docs/contract.md`. An app dresses one part by its name; with nothing dressed, the bar draws as it did.
18
+ - `Sheet` and `ToolbarSeparatorControl` draw a handed `data-slot`; a named `Menu` draws its `data-slot` on its sheet on a phone too.
19
+ - `viewkitjs/views/list` and `viewkitjs/views/panels/react`: `customizeIn: "pane"` opens Customize on a computer in ViewKit's Pane, at the list's right edge under the toolbar and as tall as the list, over its edge, the list scrolling and taking presses beside it, with no host of the app's own (VK-1026). The ready `<List>` takes it and stands its grid in a box of its own (`data-slot="vk-list-box"`), the Pane's; `ReadyToolbar` and `ListToolbar` take it with `paneBox`, the app's own box round its grid. On a phone Customize keeps its Sheet. With nothing set, Customize opens in the toolbar's popover, as before; an app's own `hosts.options` still wins.
20
+ - The components map takes an optional `Pane` (`ViewsPaneProps`, `OPTIONAL_COMPONENT_NAMES`): `CONTROLS.Pane` is ViewKit's own. A map without one keeps the popover.
21
+ - `viewkitjs/views/panels/react`: a folding toolbar's line on a computer (the ready toolbar's, `ListToolbar`'s, `Toolbar`'s `fold`) reads three optional tokens: `--vk-toolbar-line-py`, its padding above and below (10px undeclared), `--vk-toolbar-line-gap`, the room between its tools (8px), and `--vk-toolbar-line-w`, the line under it (1px; `0px` draws none, so you can draw your own edge to edge without touching `--vk-border-subtle`). Undeclared, the line draws as before.
22
+ - `viewkitjs/views/panels/react`: a `toolbarParts` place takes `panel`, `{ side?, align?, offset? }` (`ToolbarPanelPlace`), where what the part opens hangs at its button: your `Popover`'s `side`, `align` and `sideOffset`. `ToolbarSlotState` carries the part's `side` of its line and its place's `panel`.
23
+ - `viewkitjs/views/controls`: `SettingRow` has a plain kind, for a row with no page to open: given no `switch`, `select`, `action` or `onOpen`, it draws its mark, name and line with nothing at its end and no press (`data-setting-row-kind="plain"`), on a computer and in a phone's card. A row given none of the four used to draw the open kind, a button with ›; give it `onOpen` to keep that.
24
+
25
+ ### Changed
26
+
27
+ - `pressGroup` puts the cursor in a box group's typed input where it holds no Input of ViewKit's (an app's own, bare inside it).
28
+ - The reset ViewKit's stylesheet holds to its own elements starts at no bulk bar part's name: More's menu, standing in the page, draws as before.
29
+ - `viewkitjs/views/panels/react`: inside a `Toolbar`, a panel opens toward its part's side of the line: a part on the end side (Sort and Filter on the row's right, the default) aligned to its button's end, a part on the start side (Customize beside the views, the default) to its start. Before, Customize, the row's Sort and the quick filters opened at their button's end and the row's Filter and the sort pill at its start, wherever they stood. A part outside a `Toolbar` opens as before. To keep a part's old alignment, hand its place `panel: { align }`.
30
+ - `viewkitjs/views`: the default field list (`CONTROLS.FieldsBody`, Sort's and Filter's) stands as wide as its widest row on a computer, or as its search's placeholder where that is wider, so the placeholder reads whole; never past the 288 it stood at before nor narrower than what opened it, and it holds that width while what is typed narrows its rows. Its search box fills that width and no longer sets it, and its rows keep room for the check only on the field already held. An app that boxed the list in to get this can drop its box.
31
+ - `viewkitjs/views/looks`: the setting row's defaults are now its `attio` look: `card` defaults to `raised` (was `outlined`) and `rows` to `roomy` (was `snug`); `end`, `fields` and `icon` are unchanged. With nothing picked, `lookAttrs(SETTING_ROW_LOOKS)` and `settingRowWornOf` give `raised` and `roomy`. To keep the old drawing, wear the `outright` look: `lookAttrs(SETTING_ROW_LOOKS, lookPicks(SETTING_ROW_LOOKS, "outright"))`. A frame with no `data-setting-row-*` attribute at all still draws outlined and snug.
32
+
33
+ ### Fixed
34
+
35
+ - `viewkitjs/views`: on a computer, a Picker's list stops at 8½ rows when the app sets no `--list-rows` (the Select's figure). It ran the window's full height: Sort's and Filter's field lists, and a phone value's country list. An app that sets `--list-rows` still gets its own figure.
36
+
8
37
  ## [0.33.0] — 2026-12-03
9
38
 
10
39
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewkitjs",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "ViewKit — typed fields, the grid and its editors, and a list's SQL for record lists, in one package: viewkitjs/fields, viewkitjs/views and viewkitjs/postgres. By Sheaf.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -63,13 +63,16 @@ export type VkOptionalColour = (typeof VK_OPTIONAL_COLOURS)[number];
63
63
  * `calc(var(--spacing)*5)`, what `mt-5` drew. `--vk-duration`, the text variables (`--vk-caption-text` to
64
64
  * `--vk-sheet-text`), the underline and line variables and `--vk-selected-stroke` are read with each place's own value
65
65
  * as the fallback, so one declaration sets every place of its kind (docs/contract.md, Tokens). `--vk-toolbar-foot`
66
- * lifts New's + at a phone list's foot above a bar the app keeps there; undeclared, `1rem`. `--vk-frozen-shadow-width` is the
66
+ * lifts New's + at a phone list's foot above a bar the app keeps there; undeclared, `1rem`. A folding toolbar's line on a
67
+ * computer (VK-1027): `--vk-toolbar-line-py` its padding above and below (undeclared `calc(var(--spacing)*2.5)`, what `py-2.5`
68
+ * drew), `--vk-toolbar-line-gap` the room between its tools (`calc(var(--spacing)*2)`) and `--vk-toolbar-line-w` the line
69
+ * under it (`1px`; `0px` draws none, for an app that draws its own edge to edge). `--vk-frozen-shadow-width` is the
67
70
  * pinned edge's shadow's width; undeclared, `calc(var(--spacing)*1.5)`, what `w-1.5` drew. The field row's frame
68
71
  * (VK-953): `--vk-field-row-label-w` its label column on a desktop (undeclared `calc(var(--spacing)*32)`, what `w-32` drew), `--vk-field-row-gap` the gap
69
72
  * between its glyph, label, value and lane (`calc(var(--spacing)*3)`), `--vk-field-row-h` its least height, its content standing in
70
73
  * the middle (`auto`), `--vk-field-row-py` its padding above and below (`calc(var(--spacing)*2.5)`) and `--vk-field-row-line-w` the
71
74
  * line under every row but the last (`1px`; `0px` draws none). */
72
- export declare const VK_OPTIONAL_LAYOUT: readonly ["--vk-field-row-label-w", "--vk-field-row-gap", "--vk-field-row-h", "--vk-field-row-py", "--vk-field-row-line-w", "--vk-toolbar-foot", "--vk-gutter", "--vk-scroll-inset-bottom", "--vk-panel-padding", "--vk-scroll-row-inset", "--vk-scroll-row-end", "--vk-outline-radius", "--vk-group-gap", "--vk-duration", "--vk-caption-text", "--vk-caption-leading", "--vk-caps-tracking", "--vk-input-text", "--vk-panel-title-text", "--vk-sheet-text", "--vk-underline-offset", "--vk-underline-width", "--vk-thick-line", "--vk-selected-stroke", "--vk-frozen-shadow-width"];
75
+ export declare const VK_OPTIONAL_LAYOUT: readonly ["--vk-field-row-label-w", "--vk-field-row-gap", "--vk-field-row-h", "--vk-field-row-py", "--vk-field-row-line-w", "--vk-toolbar-foot", "--vk-toolbar-line-py", "--vk-toolbar-line-gap", "--vk-toolbar-line-w", "--vk-gutter", "--vk-scroll-inset-bottom", "--vk-panel-padding", "--vk-scroll-row-inset", "--vk-scroll-row-end", "--vk-outline-radius", "--vk-group-gap", "--vk-duration", "--vk-caption-text", "--vk-caption-leading", "--vk-caps-tracking", "--vk-input-text", "--vk-panel-title-text", "--vk-sheet-text", "--vk-underline-offset", "--vk-underline-width", "--vk-thick-line", "--vk-selected-stroke", "--vk-frozen-shadow-width"];
73
76
  export type VkOptionalLayout = (typeof VK_OPTIONAL_LAYOUT)[number];
74
77
  /** The grid's own machinery, set and read by the grid alone: prefixed because they share the
75
78
  * global namespace, and not public. An app neither sets nor reads them, and they may change in
@@ -109,8 +112,8 @@ export type ComponentName = (typeof COMPONENT_NAMES)[number];
109
112
  * `SearchField`, the toolbar's search draws its own field; without `PortsHost`, an app that hands no `confirm` gets the
110
113
  * browser's and one that hands no `toast` sees
111
114
  * nothing; without `SelectionBar`, a selection draws ViewKit's own bar; without `ViewMenu`, a views row's pill opens
112
- * its view's `menu` rows. */
113
- export declare const OPTIONAL_COMPONENT_NAMES: readonly ["Input", "Select", "Command", "Calendar", "RowsWait", "GroupBody", "SearchField", "PortsHost", "SelectionBar", "ViewMenu"];
115
+ * its view's `menu` rows; without `Pane`, a toolbar's `customizeIn: "pane"` opens Customize in the `Popover`. */
116
+ export declare const OPTIONAL_COMPONENT_NAMES: readonly ["Input", "Select", "Command", "Calendar", "RowsWait", "GroupBody", "SearchField", "PortsHost", "SelectionBar", "ViewMenu", "Pane"];
114
117
  export type OptionalComponentName = (typeof OPTIONAL_COMPONENT_NAMES)[number];
115
118
  /** The pieces the rendering is built from, and the app's own pieces it cannot draw itself (a command cell's verb menu, the row's right-click menu, where a relation goes, a wait, how a list asks for more), and the rows the panels draw with. Each ships as a default; an app swaps any of them through the provider's `atoms`. */
116
119
  export declare const ATOM_NAMES: readonly ["Row", "RowContent", "TickBox", "StatusBadge", "StatusMarker", "Tag", "List", "CommandMenu", "RelationLink", "RelationRoles", "CellMore", "Loading", "LoadMore", "PlatformMark", "RowMenu", "SelectionSheet", "ChoiceRow", "CheckRow", "RadioRow", "DirectionButton", "MenuRow", "ToggleRow", "PanelSearch", "Pill", "RangeCalendar", "ToolbarButton", "Avatar"];
@@ -119,20 +122,27 @@ export type AtomName = (typeof ATOM_NAMES)[number];
119
122
  * A part that repeats also says which one it is (`data-key`) and, a sort or filter rule, its place (`data-index`). */
120
123
  export declare const PANEL_SLOTS: {
121
124
  readonly sort: readonly ["vk-sort", "vk-sort-rules", "vk-sort-rule", "vk-sort-grip", "vk-sort-field", "vk-sort-direction", "vk-sort-remove", "vk-sort-rule-open", "vk-sort-rule-more", "vk-sort-rule-action", "vk-sort-direction-option", "vk-sort-add", "vk-sort-clear", "vk-sort-foot", "vk-sort-none", "vk-sort-head"];
122
- readonly filter: readonly ["vk-filter", "vk-filter-rules", "vk-filter-item", "vk-filter-rule", "vk-filter-where", "vk-filter-joined", "vk-filter-join", "vk-filter-field", "vk-filter-how", "vk-filter-value", "vk-filter-rule-more", "vk-filter-rule-action", "vk-filter-group", "vk-filter-group-head", "vk-filter-quantifier", "vk-filter-group-more", "vk-filter-group-action", "vk-filter-delete", "vk-filter-add", "vk-filter-clear", "vk-filter-foot", "vk-filter-none", "vk-filter-excluded", "vk-filter-head"];
125
+ readonly filter: readonly ["vk-filter", "vk-filter-rules", "vk-filter-item", "vk-filter-rule", "vk-filter-where", "vk-filter-joined", "vk-filter-join", "vk-filter-field", "vk-filter-how", "vk-filter-value", "vk-filter-rule-more", "vk-filter-rule-action", "vk-filter-group", "vk-filter-group-head", "vk-filter-quantifier", "vk-filter-group-more", "vk-filter-group-action", "vk-filter-delete", "vk-filter-add", "vk-filter-clear", "vk-filter-foot", "vk-filter-none", "vk-filter-excluded", "vk-filter-head", "vk-filter-part-value", "vk-filter-part-pair"];
123
126
  readonly group: readonly ["vk-group", "vk-group-setting", "vk-group-choice", "vk-group-heading", "vk-group-value", "vk-group-hide-all", "vk-group-remove"];
124
- readonly customize: readonly ["vk-customize", "vk-customize-head", "vk-customize-title", "vk-customize-back", "vk-customize-close", "vk-customize-layout-button", "vk-customize-name", "vk-customize-heading", "vk-customize-section", "vk-customize-field", "vk-customize-toggle", "vk-customize-toggle-reset", "vk-customize-choice", "vk-customize-option", "vk-customize-layout", "vk-customize-column", "vk-customize-search", "vk-customize-columns-action", "vk-customize-foot", "vk-customize-changes", "vk-customize-action", "vk-customize-stale"];
127
+ readonly customize: readonly ["vk-customize", "vk-customize-head", "vk-customize-title", "vk-customize-back", "vk-customize-close", "vk-customize-layout-button", "vk-customize-name", "vk-customize-heading", "vk-customize-section", "vk-customize-field", "vk-customize-toggle", "vk-customize-toggle-reset", "vk-customize-choice", "vk-customize-option", "vk-customize-layout", "vk-customize-column", "vk-customize-search", "vk-customize-columns-action", "vk-customize-foot", "vk-customize-changes", "vk-customize-action", "vk-customize-stale", "vk-customize-none", "vk-customize-rows", "vk-customize-columns-foot"];
125
128
  readonly viewsList: readonly ["vk-views-list", "vk-views-list-row", "vk-views-list-head"];
126
129
  readonly viewMenu: readonly ["vk-view-menu", "vk-view-menu-row", "vk-view-menu-name", "vk-view-menu-layout", "vk-view-menu-columns", "vk-view-menu-act"];
127
- readonly quick: readonly ["vk-quick", "vk-quick-field", "vk-quick-search", "vk-quick-value", "vk-quick-count", "vk-quick-clear", "vk-quick-none", "vk-quick-head"];
130
+ readonly quick: readonly ["vk-quick", "vk-quick-field", "vk-quick-search", "vk-quick-value", "vk-quick-count", "vk-quick-clear", "vk-quick-none", "vk-quick-head", "vk-quick-strip", "vk-quick-values"];
128
131
  };
129
132
  export type PanelSlot = (typeof PANEL_SLOTS)[keyof typeof PANEL_SLOTS][number];
130
133
  /** The default atoms' `data-slot` values: prefixed, like the grid's. */
131
- export declare const ATOM_SLOTS: readonly ["vk-row", "vk-row-content", "vk-tick", "vk-avatar", "vk-status", "vk-marker", "vk-tag", "vk-list", "vk-command-menu", "vk-relation-link", "vk-relation-roles", "vk-loading", "vk-load-more", "vk-platform", "vk-row-menu", "vk-choice-row", "vk-check-row", "vk-radio-row", "vk-direction", "vk-menu-row", "vk-toggle-row", "vk-panel-search", "vk-selection-sheet", "vk-pill", "vk-views-row", "vk-views-more", "vk-cell-more", "vk-show-more", "vk-phone", "vk-conversion", "vk-field-retry", "vk-views-chip", "vk-views-add", "vk-range-calendar", "vk-toolbar-button", "vk-toolbar-word", "vk-toolbar-count", "vk-toolbar-dot", "vk-toolbar-words", "vk-toolbar-more", "vk-toolbar-chevron", "vk-toolbar", "vk-toolbar-line", "vk-toolbar-cluster", "vk-toolbar-search", "vk-toolbar-search-field", "vk-toolbar-search-clear", "vk-toolbar-search-spinner", "vk-toolbar-new", "vk-toolbar-options", "vk-toolbar-options-panel", "vk-toolbar-sort", "vk-toolbar-sort-panel", "vk-toolbar-sort-pill", "vk-toolbar-sort-add", "vk-sort-head", "vk-filter-head", "vk-toolbar-quick", "vk-toolbar-quick-panel", "vk-quick-filters-reminder", "vk-quick-filters-reminder-open", "vk-quick-filters-reminder-clear", "vk-toolbar-filter", "vk-toolbar-filter-panel", "vk-toolbar-advanced-filter", "vk-toolbar-advanced-filter-panel", "vk-toolbar-filters", "vk-toolbar-filter-rule", "vk-toolbar-filter-aside", "vk-toolbar-filter-add", "vk-toolbar-more-filters", "vk-toolbar-filters-panel", "vk-toolbar-overflow", "vk-toolbar-separator", "vk-toolbar-save", "vk-toolbar-clear", "vk-toolbar-save-button", "vk-filter-convert", "vk-sort", "vk-sort-rules", "vk-sort-rule", "vk-sort-grip", "vk-sort-field", "vk-sort-direction", "vk-sort-remove", "vk-sort-rule-open", "vk-sort-rule-more", "vk-sort-rule-action", "vk-sort-direction-option", "vk-sort-add", "vk-sort-clear", "vk-sort-foot", "vk-sort-none", "vk-filter", "vk-filter-rules", "vk-filter-item", "vk-filter-rule", "vk-filter-where", "vk-filter-joined", "vk-filter-join", "vk-filter-field", "vk-filter-how", "vk-filter-value", "vk-filter-rule-more", "vk-filter-rule-action", "vk-filter-group", "vk-filter-group-head", "vk-filter-group-more", "vk-filter-quantifier", "vk-filter-group-action", "vk-filter-delete", "vk-filter-add", "vk-filter-clear", "vk-filter-foot", "vk-filter-none", "vk-filter-excluded", "vk-group", "vk-group-setting", "vk-group-choice", "vk-group-heading", "vk-group-value", "vk-group-hide-all", "vk-group-remove", "vk-customize", "vk-customize-head", "vk-customize-title", "vk-customize-back", "vk-customize-close", "vk-customize-layout-button", "vk-customize-name", "vk-customize-heading", "vk-customize-section", "vk-customize-field", "vk-customize-toggle", "vk-customize-toggle-reset", "vk-customize-choice", "vk-customize-option", "vk-customize-layout", "vk-customize-column", "vk-customize-search", "vk-customize-columns-action", "vk-customize-foot", "vk-customize-changes", "vk-customize-action", "vk-customize-stale", "vk-views-list", "vk-views-list-row", "vk-views-list-head", "vk-view-menu", "vk-view-menu-row", "vk-view-menu-name", "vk-view-menu-layout", "vk-view-menu-columns", "vk-view-menu-act", "vk-quick", "vk-quick-field", "vk-quick-search", "vk-quick-value", "vk-quick-count", "vk-quick-clear", "vk-quick-none", "vk-quick-head"];
134
+ export declare const ATOM_SLOTS: readonly ["vk-row", "vk-row-content", "vk-tick", "vk-avatar", "vk-status", "vk-marker", "vk-tag", "vk-list", "vk-command-menu", "vk-relation-link", "vk-relation-roles", "vk-loading", "vk-load-more", "vk-platform", "vk-row-menu", "vk-choice-row", "vk-check-row", "vk-radio-row", "vk-direction", "vk-menu-row", "vk-toggle-row", "vk-panel-search", "vk-selection-sheet", "vk-pill", "vk-views-row", "vk-views-more", "vk-cell-more", "vk-show-more", "vk-phone", "vk-conversion", "vk-field-retry", "vk-views-chip", "vk-views-add", "vk-range-calendar", "vk-toolbar-button", "vk-toolbar-word", "vk-toolbar-count", "vk-toolbar-dot", "vk-toolbar-words", "vk-toolbar-more", "vk-toolbar-chevron", "vk-toolbar", "vk-toolbar-line", "vk-toolbar-cluster", "vk-toolbar-search", "vk-toolbar-search-field", "vk-toolbar-search-clear", "vk-toolbar-search-spinner", "vk-toolbar-new", "vk-toolbar-options", "vk-toolbar-options-panel", "vk-toolbar-sort", "vk-toolbar-sort-panel", "vk-toolbar-sort-pill", "vk-toolbar-sort-add", "vk-sort-head", "vk-filter-head", "vk-toolbar-quick", "vk-toolbar-quick-panel", "vk-quick-filters-reminder", "vk-quick-filters-reminder-open", "vk-quick-filters-reminder-clear", "vk-toolbar-filter", "vk-toolbar-filter-panel", "vk-toolbar-advanced-filter", "vk-toolbar-advanced-filter-panel", "vk-toolbar-filters", "vk-toolbar-filter-rule", "vk-toolbar-filter-aside", "vk-toolbar-filter-add", "vk-toolbar-more-filters", "vk-toolbar-filters-panel", "vk-toolbar-overflow", "vk-toolbar-separator", "vk-toolbar-save", "vk-toolbar-clear", "vk-toolbar-save-button", "vk-filter-convert", "vk-sort", "vk-sort-rules", "vk-sort-rule", "vk-sort-grip", "vk-sort-field", "vk-sort-direction", "vk-sort-remove", "vk-sort-rule-open", "vk-sort-rule-more", "vk-sort-rule-action", "vk-sort-direction-option", "vk-sort-add", "vk-sort-clear", "vk-sort-foot", "vk-sort-none", "vk-filter", "vk-filter-rules", "vk-filter-item", "vk-filter-rule", "vk-filter-where", "vk-filter-joined", "vk-filter-join", "vk-filter-field", "vk-filter-how", "vk-filter-value", "vk-filter-rule-more", "vk-filter-rule-action", "vk-filter-group", "vk-filter-group-head", "vk-filter-group-more", "vk-filter-quantifier", "vk-filter-group-action", "vk-filter-delete", "vk-filter-add", "vk-filter-clear", "vk-filter-foot", "vk-filter-none", "vk-filter-excluded", "vk-group", "vk-group-setting", "vk-group-choice", "vk-group-heading", "vk-group-value", "vk-group-hide-all", "vk-group-remove", "vk-customize", "vk-customize-head", "vk-customize-title", "vk-customize-back", "vk-customize-close", "vk-customize-layout-button", "vk-customize-name", "vk-customize-heading", "vk-customize-section", "vk-customize-field", "vk-customize-toggle", "vk-customize-toggle-reset", "vk-customize-choice", "vk-customize-option", "vk-customize-layout", "vk-customize-column", "vk-customize-search", "vk-customize-columns-action", "vk-customize-foot", "vk-customize-changes", "vk-customize-action", "vk-customize-stale", "vk-views-list", "vk-views-list-row", "vk-views-list-head", "vk-view-menu", "vk-view-menu-row", "vk-view-menu-name", "vk-view-menu-layout", "vk-view-menu-columns", "vk-view-menu-act", "vk-quick", "vk-quick-field", "vk-quick-search", "vk-quick-value", "vk-quick-count", "vk-quick-clear", "vk-quick-none", "vk-quick-head", "vk-filter-part-value", "vk-filter-part-pair", "vk-customize-none", "vk-customize-rows", "vk-customize-columns-foot", "vk-quick-strip", "vk-quick-values"];
132
135
  export type AtomSlot = (typeof ATOM_SLOTS)[number];
136
+ /** The parts of the bulk bar (`CONTROLS.SelectionBar`, `BulkBar`) and of what it opens (VK-1023): each part's public `data-slot`,
137
+ * in every form (a computer's bar, the phone's tray and pill). A verb's button and a menu's row say which one they are by
138
+ * `data-key`: a verb's place in the verbs, from 0 (`delete` for Delete's row), a group's row its place in the group, a field's
139
+ * value its value. */
140
+ export declare const BULK_BAR_SLOTS: readonly ["vk-bulk-bar", "vk-bulk-count", "vk-bulk-separator", "vk-bulk-verb", "vk-bulk-delete", "vk-bulk-more", "vk-bulk-clear", "vk-bulk-actions", "vk-bulk-menu", "vk-bulk-menu-row", "vk-bulk-group-menu", "vk-bulk-group-row", "vk-bulk-choice", "vk-bulk-empty", "vk-bulk-field", "vk-bulk-field-sheet", "vk-bulk-toasts"];
141
+ export type BulkBarSlot = (typeof BULK_BAR_SLOTS)[number];
133
142
  /** The selection bar's `data-slot` values: prefixed, like the grid's. The fixed box the app places,
134
- * the pill inside it, and the count that clears the selection. */
135
- export declare const SELECTION_SLOTS: readonly ["vk-selection-bar", "vk-selection-pill", "vk-selection-chip"];
143
+ * the pill inside it, and the count that clears the selection (ViewKit's own bar); then the bulk bar's parts
144
+ * (`CONTROLS.SelectionBar`, BULK_BAR_SLOTS). */
145
+ export declare const SELECTION_SLOTS: readonly ["vk-selection-bar", "vk-selection-pill", "vk-selection-chip", "vk-bulk-bar", "vk-bulk-count", "vk-bulk-separator", "vk-bulk-verb", "vk-bulk-delete", "vk-bulk-more", "vk-bulk-clear", "vk-bulk-actions", "vk-bulk-menu", "vk-bulk-menu-row", "vk-bulk-group-menu", "vk-bulk-group-row", "vk-bulk-choice", "vk-bulk-empty", "vk-bulk-field", "vk-bulk-field-sheet", "vk-bulk-toasts"];
136
146
  export type SelectionSlot = (typeof SELECTION_SLOTS)[number];
137
147
  /** The parts inside the default field editors (VK-989), by editor: each part's public `data-slot`, the box a person sees. The
138
148
  * shared ones are every editor's ✕, ✓, ‹ and Cancel, wherever ViewKit draws them. */
@@ -173,6 +173,9 @@ export const VK_OPTIONAL_LAYOUT = [
173
173
  "--vk-field-row-py",
174
174
  "--vk-field-row-line-w",
175
175
  "--vk-toolbar-foot",
176
+ "--vk-toolbar-line-py",
177
+ "--vk-toolbar-line-gap",
178
+ "--vk-toolbar-line-w",
176
179
  "--vk-gutter",
177
180
  "--vk-scroll-inset-bottom",
178
181
  "--vk-panel-padding",
@@ -240,6 +243,7 @@ export const OPTIONAL_COMPONENT_NAMES = [
240
243
  "PortsHost",
241
244
  "SelectionBar",
242
245
  "ViewMenu",
246
+ "Pane",
243
247
  ];
244
248
  export const ATOM_NAMES = [
245
249
  "Row",
@@ -272,12 +276,15 @@ export const ATOM_NAMES = [
272
276
  ];
273
277
  export const PANEL_SLOTS = {
274
278
  sort: ["vk-sort", "vk-sort-rules", "vk-sort-rule", "vk-sort-grip", "vk-sort-field", "vk-sort-direction", "vk-sort-remove", "vk-sort-rule-open", "vk-sort-rule-more", "vk-sort-rule-action", "vk-sort-direction-option", "vk-sort-add", "vk-sort-clear", "vk-sort-foot", "vk-sort-none", "vk-sort-head"],
275
- filter: ["vk-filter", "vk-filter-rules", "vk-filter-item", "vk-filter-rule", "vk-filter-where", "vk-filter-joined", "vk-filter-join", "vk-filter-field", "vk-filter-how", "vk-filter-value", "vk-filter-rule-more", "vk-filter-rule-action", "vk-filter-group", "vk-filter-group-head", "vk-filter-quantifier", "vk-filter-group-more", "vk-filter-group-action", "vk-filter-delete", "vk-filter-add", "vk-filter-clear", "vk-filter-foot", "vk-filter-none", "vk-filter-excluded", "vk-filter-head"],
279
+ filter: ["vk-filter", "vk-filter-rules", "vk-filter-item", "vk-filter-rule", "vk-filter-where", "vk-filter-joined", "vk-filter-join", "vk-filter-field", "vk-filter-how", "vk-filter-value", "vk-filter-rule-more", "vk-filter-rule-action", "vk-filter-group", "vk-filter-group-head", "vk-filter-quantifier", "vk-filter-group-more", "vk-filter-group-action", "vk-filter-delete", "vk-filter-add", "vk-filter-clear", "vk-filter-foot", "vk-filter-none", "vk-filter-excluded", "vk-filter-head",
280
+ "vk-filter-part-value", "vk-filter-part-pair"],
276
281
  group: ["vk-group", "vk-group-setting", "vk-group-choice", "vk-group-heading", "vk-group-value", "vk-group-hide-all", "vk-group-remove"],
277
- customize: ["vk-customize", "vk-customize-head", "vk-customize-title", "vk-customize-back", "vk-customize-close", "vk-customize-layout-button", "vk-customize-name", "vk-customize-heading", "vk-customize-section", "vk-customize-field", "vk-customize-toggle", "vk-customize-toggle-reset", "vk-customize-choice", "vk-customize-option", "vk-customize-layout", "vk-customize-column", "vk-customize-search", "vk-customize-columns-action", "vk-customize-foot", "vk-customize-changes", "vk-customize-action", "vk-customize-stale"],
282
+ customize: ["vk-customize", "vk-customize-head", "vk-customize-title", "vk-customize-back", "vk-customize-close", "vk-customize-layout-button", "vk-customize-name", "vk-customize-heading", "vk-customize-section", "vk-customize-field", "vk-customize-toggle", "vk-customize-toggle-reset", "vk-customize-choice", "vk-customize-option", "vk-customize-layout", "vk-customize-column", "vk-customize-search", "vk-customize-columns-action", "vk-customize-foot", "vk-customize-changes", "vk-customize-action", "vk-customize-stale",
283
+ "vk-customize-none", "vk-customize-rows", "vk-customize-columns-foot"],
278
284
  viewsList: ["vk-views-list", "vk-views-list-row", "vk-views-list-head"],
279
285
  viewMenu: ["vk-view-menu", "vk-view-menu-row", "vk-view-menu-name", "vk-view-menu-layout", "vk-view-menu-columns", "vk-view-menu-act"],
280
- quick: ["vk-quick", "vk-quick-field", "vk-quick-search", "vk-quick-value", "vk-quick-count", "vk-quick-clear", "vk-quick-none", "vk-quick-head"],
286
+ quick: ["vk-quick", "vk-quick-field", "vk-quick-search", "vk-quick-value", "vk-quick-count", "vk-quick-clear", "vk-quick-none", "vk-quick-head",
287
+ "vk-quick-strip", "vk-quick-values"],
281
288
  };
282
289
  export const ATOM_SLOTS = [
283
290
  "vk-row",
@@ -442,11 +449,38 @@ export const ATOM_SLOTS = [
442
449
  "vk-quick-clear",
443
450
  "vk-quick-none",
444
451
  "vk-quick-head",
452
+ "vk-filter-part-value",
453
+ "vk-filter-part-pair",
454
+ "vk-customize-none",
455
+ "vk-customize-rows",
456
+ "vk-customize-columns-foot",
457
+ "vk-quick-strip",
458
+ "vk-quick-values",
459
+ ];
460
+ export const BULK_BAR_SLOTS = [
461
+ "vk-bulk-bar",
462
+ "vk-bulk-count",
463
+ "vk-bulk-separator",
464
+ "vk-bulk-verb",
465
+ "vk-bulk-delete",
466
+ "vk-bulk-more",
467
+ "vk-bulk-clear",
468
+ "vk-bulk-actions",
469
+ "vk-bulk-menu",
470
+ "vk-bulk-menu-row",
471
+ "vk-bulk-group-menu",
472
+ "vk-bulk-group-row",
473
+ "vk-bulk-choice",
474
+ "vk-bulk-empty",
475
+ "vk-bulk-field",
476
+ "vk-bulk-field-sheet",
477
+ "vk-bulk-toasts",
445
478
  ];
446
479
  export const SELECTION_SLOTS = [
447
480
  "vk-selection-bar",
448
481
  "vk-selection-pill",
449
482
  "vk-selection-chip",
483
+ ...BULK_BAR_SLOTS,
450
484
  ];
451
485
  export const EDITOR_PART_SLOTS = {
452
486
  shared: ["vk-editor-close", "vk-editor-save", "vk-editor-back", "vk-editor-cancel"],
@@ -1,11 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cx } from "../../internal/cx.js";
3
- import { Button } from "../button/button.js";
3
+ import { usePanelControls } from "../internal/panel-controls.js";
4
4
  import { NOTICE_ICONS } from "../notice/notice.js";
5
5
  const glyph = (paths) => _jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: paths.map((d) => _jsx("path", { d: d }, d)) });
6
6
  export const ALERT_WORDS = { tryAgain: "Try again" };
7
7
  const MARK = { primary: NOTICE_ICONS.information, information: NOTICE_ICONS.information, success: NOTICE_ICONS.success, warning: NOTICE_ICONS.warning, danger: NOTICE_ICONS.danger };
8
8
  export function Alert({ title, line, action, kind = "primary", cancel = "Cancel", icon, onAnswer, state = "rest", failed, phone = false, shell = "panel", cancelRef, Title = "h2", Line = "p", words }) {
9
+ const { Button } = usePanelControls();
9
10
  const working = state === "working", wrong = state === "failed", size = phone ? "lg" : undefined, says = wrong ? failed : line;
10
11
  return (_jsxs("div", { className: "o-alert-body", "data-kind": kind, "data-screen": phone ? "phone" : "computer", "data-shell": shell, "data-kit": "alert", children: [_jsx("span", { className: "o-alert-mark", "aria-hidden": "true", children: icon ?? glyph(MARK[kind]) }), _jsx(Title, { className: "o-alert-title", children: title }), says != null && _jsx(Line, { className: cx("o-alert-line", wrong && "o-alert-wrong"), children: says }), _jsxs("div", { className: "o-alert-foot", children: [_jsx(Button, { ref: cancelRef, size: size, className: "o-alert-cancel", disabled: working, onClick: () => onAnswer(false), children: cancel }), _jsx(Button, { kind: kind, size: size, loading: working, onClick: () => onAnswer(true), children: wrong ? (words?.tryAgain ?? ALERT_WORDS.tryAgain) : action })] })] }));
11
12
  }
@@ -1,9 +1,10 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { AlertDialog as BaseAlert } from "@base-ui/react/alert-dialog";
4
4
  import { Dialog as BaseDialog } from "@base-ui/react/dialog";
5
5
  import { Alert, ALERT_WORDS } from "../alert/alert.js";
6
6
  import { Button } from "../button/button.js";
7
+ import { PanelHeadButton } from "../internal/head-button.js";
7
8
  import { GlassButton } from "../glass-button/glass-button.js";
8
9
  import { PhoneHost, usePhone } from "../internal/phone.js";
9
10
  import { OutOfFieldRows } from "../../internal/field-rows.js";
@@ -14,7 +15,7 @@ export { confirm } from "./confirm.js";
14
15
  const glyph = (paths) => _jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: paths.map((d) => _jsx("path", { d: d }, d)) });
15
16
  const X = ["M18 6l-12 12", "M6 6l12 12"];
16
17
  function Held({ phone, shell, disabled, onClose, close, children }) {
17
- return (_jsxs("div", { className: "o-alert-held", "data-screen": phone ? "phone" : "computer", "data-shell": shell, "data-kit": "alert-dialog", children: [children, phone && (_jsxs("span", { className: "o-alert-x", children: [_jsx(GlassButton, { "aria-label": close, className: "o-alert-x-glass", icon: glyph(X), disabled: disabled, onClick: onClose }), _jsx(Button, { kind: "quiet", shape: "icon", size: "sm", "aria-label": close, className: "o-alert-x-plain", icon: glyph(X), disabled: disabled, onClick: onClose })] }))] }));
18
+ return (_jsxs("div", { className: "o-alert-held", "data-screen": phone ? "phone" : "computer", "data-shell": shell, "data-kit": "alert-dialog", children: [children, phone && (_jsx("span", { className: "o-alert-x", children: _jsx(PanelHeadButton, { "aria-label": close, icon: glyph(X), disabled: disabled, onClick: onClose, own: _jsxs(_Fragment, { children: [_jsx(GlassButton, { "aria-label": close, className: "o-alert-x-glass", icon: glyph(X), disabled: disabled, onClick: onClose }), _jsx(Button, { kind: "quiet", shape: "icon", size: "sm", "aria-label": close, className: "o-alert-x-plain", icon: glyph(X), disabled: disabled, onClick: onClose })] }) }) }))] }));
18
19
  }
19
20
  const shellOf = (el) => (el?.closest("[data-alert-phone]")?.dataset.alertPhone === "sheet" ? "sheet" : "panel");
20
21
  function useShell(frame) {
@@ -189,23 +189,25 @@ export function BulkBar({ count, noun: given, onClear, verbs, onDelete, deleteLi
189
189
  hadFocus.current = false;
190
190
  return giveBack();
191
191
  }, [shown, root, giveBack]);
192
- const itemEntry = (i) => ({ icon: i.icon ?? null, label: i.label, danger: i.destructive, disabled: i.disabled ? i.disabledReason ?? w.cantUse : undefined,
193
- onSelect: () => { void after(i.onClick); } });
192
+ const itemEntry = (i, slot) => ({ icon: i.icon ?? null, label: i.label, danger: i.destructive, disabled: i.disabled ? i.disabledReason ?? w.cantUse : undefined,
193
+ onSelect: () => { void after(i.onClick); }, slot });
194
+ const groupRow = (at) => ({ slot: "vk-bulk-group-row", key: String(at) });
194
195
  const entryOf = (v) => {
196
+ const slot = { slot: "vk-bulk-menu-row", key: String(verbs.indexOf(v)) };
195
197
  if (v.disabled)
196
- return { icon: v.icon ?? null, label: v.label, disabled: v.disabledReason ?? w.cantUse };
198
+ return { icon: v.icon ?? null, label: v.label, disabled: v.disabledReason ?? w.cantUse, slot };
197
199
  if (v.kind === "action")
198
- return itemEntry(v);
200
+ return itemEntry(v, slot);
199
201
  if (v.kind === "group")
200
- return { kind: "actions", icon: v.icon ?? null, label: v.label,
201
- entries: v.items.map((i) => itemEntry(i.disabledReason == null && v.disabledReason ? { ...i, disabledReason: v.disabledReason } : i)) };
202
- const choices = [...(v.empty ? [{ value: EMPTY, label: v.empty }] : []),
203
- ...v.options.map((o) => ({ value: o.value, label: o.label, mark: markOf(o.as, o.label) }))];
204
- return { kind: "choices", icon: v.icon ?? null, label: v.label, value: v.value === undefined ? DIFFER : v.value === null ? EMPTY : v.value, choices,
202
+ return { kind: "actions", icon: v.icon ?? null, label: v.label, slot,
203
+ entries: v.items.map((i, at) => itemEntry(i.disabledReason == null && v.disabledReason ? { ...i, disabledReason: v.disabledReason } : i, groupRow(at))) };
204
+ const choices = [...(v.empty ? [{ value: EMPTY, label: v.empty, slot: { slot: "vk-bulk-empty" } }] : []),
205
+ ...v.options.map((o) => ({ value: o.value, label: o.label, mark: markOf(o.as, o.label), slot: { slot: "vk-bulk-choice", key: o.value } }))];
206
+ return { kind: "choices", icon: v.icon ?? null, label: v.label, value: v.value === undefined ? DIFFER : v.value === null ? EMPTY : v.value, choices, slot,
205
207
  onChoose: (value) => { void after(() => v.onSelect(value === EMPTY ? null : value)); } };
206
208
  };
207
209
  const trash = _jsx(Icon, { name: "trash" });
208
- const delEntry = { icon: trash, label: words.del, danger: true, onSelect: ask };
210
+ const delEntry = { icon: trash, label: words.del, danger: true, onSelect: ask, slot: { slot: "vk-bulk-menu-row", key: "delete" } };
209
211
  const separator = { kind: "separator" };
210
212
  const press = (v, i) => (e) => {
211
213
  if (v.kind === "action") {
@@ -217,21 +219,22 @@ export function BulkBar({ count, noun: given, onClear, verbs, onDelete, deleteLi
217
219
  };
218
220
  const expanded = (v, i) => (v.kind === "action" ? {} : { "aria-haspopup": (v.kind === "group" ? "menu" : "dialog"), "aria-expanded": opened?.what === i });
219
221
  const index = (v) => verbs.indexOf(v);
222
+ const verbName = (v) => ({ "data-slot": "vk-bulk-verb", "data-key": String(index(v)) });
220
223
  const toolbarItems = [];
221
224
  const measured = [];
222
- const outline = (v, size, key, extra) => (_jsx(Button, { kind: "outline", size: size, icon: v.icon, disabled: busy || v.disabled, onClick: press(v, index(v)), ...expanded(v, index(v)), ...extra, children: v.label }, key));
225
+ const outline = (v, size, key, extra) => (_jsx(Button, { kind: "outline", size: size, icon: v.icon, disabled: busy || v.disabled, onClick: press(v, index(v)), ...expanded(v, index(v)), ...verbName(v), ...extra, children: v.label }, key));
223
226
  if (shape === "computer") {
224
227
  const moreShown = kept.length > 0 || folded > 0 || delInMore;
225
- toolbarItems.push(_jsxs(BaseToolbar.Button, { className: "o-bulk-bar-count", "aria-label": w.clear, disabled: busy, onClick: onClear, children: [_jsx("span", { className: "o-bulk-bar-number", children: last.current }), w.count, _jsx(Icon, { name: "x", size: 14 })] }, "count"), _jsx(ToolbarSeparatorControl, {}, "sep"), ...fits.map((v) => outline(v, "sm", `v-${index(v)}`)), ...(delOwn ? [_jsx(Button, { kind: "danger", shape: "icon", size: "sm", "aria-label": words.del, icon: trash, disabled: busy, onClick: ask }, "del")] : []), ...(moreShown ? [_jsx(Button, { kind: "outline", size: "sm", iconEnd: up, disabled: busy, "aria-haspopup": "menu", "aria-expanded": opened?.what === "more", onClick: open("more"), children: w.more }, "more")] : []));
226
- measured.push(_jsxs("span", { "data-m": "count", className: "o-bulk-bar-count", children: [_jsx("span", { className: "o-bulk-bar-number", children: last.current }), w.count, _jsx(Icon, { name: "x", size: 14 })] }, "count"), _jsx("span", { "data-m": "sep", children: _jsx(ToolbarSeparatorControl, {}) }, "sep"), ...onBar.map((v) => _jsx(Button, { "data-m": "verb", kind: "outline", size: "sm", icon: v.icon, tabIndex: -1, children: v.label }, `v-${index(v)}`)), ...(delOwn ? [_jsx(Button, { "data-m": "del", kind: "danger", shape: "icon", size: "sm", "aria-label": words.del, icon: trash, tabIndex: -1 }, "del")] : []), _jsx(Button, { "data-m": "more", kind: "outline", size: "sm", iconEnd: up, tabIndex: -1, children: w.more }, "more"));
228
+ toolbarItems.push(_jsxs(BaseToolbar.Button, { className: "o-bulk-bar-count", "data-slot": "vk-bulk-count", "aria-label": w.clear, disabled: busy, onClick: onClear, children: [_jsx("span", { className: "o-bulk-bar-number", children: last.current }), w.count, _jsx(Icon, { name: "x", size: 14 })] }, "count"), _jsx(ToolbarSeparatorControl, { "data-slot": "vk-bulk-separator" }, "sep"), ...fits.map((v) => outline(v, "sm", `v-${index(v)}`)), ...(delOwn ? [_jsx(Button, { "data-slot": "vk-bulk-delete", kind: "danger", shape: "icon", size: "sm", "aria-label": words.del, icon: trash, disabled: busy, onClick: ask }, "del")] : []), ...(moreShown ? [_jsx(Button, { "data-slot": "vk-bulk-more", kind: "outline", size: "sm", iconEnd: up, disabled: busy, "aria-haspopup": "menu", "aria-expanded": opened?.what === "more", onClick: open("more"), children: w.more }, "more")] : []));
229
+ measured.push(_jsxs("span", { "data-m": "count", "data-slot": "vk-bulk-count", className: "o-bulk-bar-count", children: [_jsx("span", { className: "o-bulk-bar-number", children: last.current }), w.count, _jsx(Icon, { name: "x", size: 14 })] }, "count"), _jsx("span", { "data-m": "sep", children: _jsx(ToolbarSeparatorControl, { "data-slot": "vk-bulk-separator" }) }, "sep"), ...onBar.map((v) => _jsx(Button, { "data-m": "verb", ...verbName(v), kind: "outline", size: "sm", icon: v.icon, tabIndex: -1, children: v.label }, `v-${index(v)}`)), ...(delOwn ? [_jsx(Button, { "data-m": "del", "data-slot": "vk-bulk-delete", kind: "danger", shape: "icon", size: "sm", "aria-label": words.del, icon: trash, tabIndex: -1 }, "del")] : []), _jsx(Button, { "data-m": "more", "data-slot": "vk-bulk-more", kind: "outline", size: "sm", iconEnd: up, tabIndex: -1, children: w.more }, "more"));
227
230
  }
228
231
  else if (shape === "tray") {
229
232
  const moreShown = kept.length > 0 || folded > 0;
230
- toolbarItems.push(...fits.map((v) => outline(v, "44", `v-${index(v)}`)), ...(onDelete ? [_jsx(Button, { kind: "outline", size: "44", icon: trash, disabled: busy, onClick: ask, children: w.delete }, "del")] : []), ...(moreShown ? [_jsx(Button, { kind: "outline", size: "44", shape: "icon", "aria-label": w.more, icon: _jsx(Icon, { name: "dots" }), disabled: busy, "aria-haspopup": "menu", "aria-expanded": opened?.what === "more", onClick: open("more") }, "more")] : []));
231
- measured.push(...onBar.map((v) => _jsx(Button, { "data-m": "verb", kind: "outline", size: "44", icon: v.icon, tabIndex: -1, children: v.label }, `v-${index(v)}`)), ...(onDelete ? [_jsx(Button, { "data-m": "del", kind: "outline", size: "44", icon: trash, tabIndex: -1, children: w.delete }, "del")] : []), _jsx(Button, { "data-m": "more", kind: "outline", size: "44", shape: "icon", "aria-label": w.more, icon: _jsx(Icon, { name: "dots" }), tabIndex: -1 }, "more"));
233
+ toolbarItems.push(...fits.map((v) => outline(v, "44", `v-${index(v)}`)), ...(onDelete ? [_jsx(Button, { "data-slot": "vk-bulk-delete", kind: "outline", size: "44", icon: trash, disabled: busy, onClick: ask, children: w.delete }, "del")] : []), ...(moreShown ? [_jsx(Button, { "data-slot": "vk-bulk-more", kind: "outline", size: "44", shape: "icon", "aria-label": w.more, icon: _jsx(Icon, { name: "dots" }), disabled: busy, "aria-haspopup": "menu", "aria-expanded": opened?.what === "more", onClick: open("more") }, "more")] : []));
234
+ measured.push(...onBar.map((v) => _jsx(Button, { "data-m": "verb", ...verbName(v), kind: "outline", size: "44", icon: v.icon, tabIndex: -1, children: v.label }, `v-${index(v)}`)), ...(onDelete ? [_jsx(Button, { "data-m": "del", "data-slot": "vk-bulk-delete", kind: "outline", size: "44", icon: trash, tabIndex: -1, children: w.delete }, "del")] : []), _jsx(Button, { "data-m": "more", "data-slot": "vk-bulk-more", kind: "outline", size: "44", shape: "icon", "aria-label": w.more, icon: _jsx(Icon, { name: "dots" }), tabIndex: -1 }, "more"));
232
235
  }
233
236
  else {
234
- toolbarItems.push(_jsxs("span", { className: "o-bulk-bar-words", children: [_jsx("b", { className: "o-bulk-bar-number", children: last.current }), ` ${w.pill}`] }, "count"), _jsx(Button, { kind: "quiet", shape: "icon", size: "44", "aria-label": w.clear, icon: _jsx(Icon, { name: "x", size: 18 }), disabled: busy, onClick: onClear }, "clear"), _jsx(ToolbarSeparatorControl, {}, "sep"), _jsx(Button, { kind: "quiet", size: "44", iconEnd: up, disabled: busy, "aria-haspopup": "menu", "aria-expanded": opened?.what === "more", onClick: open("more"), children: w.actions }, "actions"));
237
+ toolbarItems.push(_jsxs("span", { className: "o-bulk-bar-words", "data-slot": "vk-bulk-count", children: [_jsx("b", { className: "o-bulk-bar-number", children: last.current }), ` ${w.pill}`] }, "count"), _jsx(Button, { "data-slot": "vk-bulk-clear", kind: "quiet", shape: "icon", size: "44", "aria-label": w.clear, icon: _jsx(Icon, { name: "x", size: 18 }), disabled: busy, onClick: onClear }, "clear"), _jsx(ToolbarSeparatorControl, { "data-slot": "vk-bulk-separator" }, "sep"), _jsx(Button, { "data-slot": "vk-bulk-actions", kind: "quiet", size: "44", iconEnd: up, disabled: busy, "aria-haspopup": "menu", "aria-expanded": opened?.what === "more", onClick: open("more"), children: w.actions }, "actions"));
235
238
  }
236
239
  const now = opened == null ? null : opened.what === "more" ? "more" : verbs[opened.what];
237
240
  const menuLabel = `${words.many}: ${now === "more" ? (shape === "pill" ? w.actions : w.more) : now?.label ?? ""}`;
@@ -240,12 +243,12 @@ export function BulkBar({ count, noun: given, onClear, verbs, onDelete, deleteLi
240
243
  : moreRows(onBar, kept, fitted, entryOf, delInMore ? delEntry : null, separator);
241
244
  let popup = null;
242
245
  if (opened && now === "more") {
243
- popup = _jsx(Menu, { label: menuLabel, words: w.menu, anchor: opened.at, open: true, standing: standing, side: "top", align: "end", onOpenChange: (o, d) => { if (!o)
246
+ popup = _jsx(Menu, { "data-slot": "vk-bulk-menu", label: menuLabel, words: w.menu, anchor: opened.at, open: true, standing: standing, side: "top", align: "end", onOpenChange: (o, d) => { if (!o)
244
247
  close(d.reason); }, entries: moreEntries }, "more");
245
248
  }
246
249
  else if (opened && now && now !== "more" && now.kind === "group") {
247
- popup = _jsx(Menu, { label: menuLabel, words: w.menu, anchor: opened.at, open: true, standing: standing, side: "top", align: "start", onOpenChange: (o, d) => { if (!o)
248
- close(d.reason); }, entries: now.items.map(itemEntry) }, `g-${opened.what}`);
250
+ popup = _jsx(Menu, { "data-slot": "vk-bulk-group-menu", label: menuLabel, words: w.menu, anchor: opened.at, open: true, standing: standing, side: "top", align: "start", onOpenChange: (o, d) => { if (!o)
251
+ close(d.reason); }, entries: now.items.map((i, at) => itemEntry(i, groupRow(at))) }, `g-${opened.what}`);
249
252
  }
250
253
  else if (opened && now && now !== "more" && now.kind === "options") {
251
254
  const v = now;
@@ -253,10 +256,10 @@ export function BulkBar({ count, noun: given, onClear, verbs, onDelete, deleteLi
253
256
  const pick = (value) => { setOpened(null); set(value); };
254
257
  popup = phone
255
258
  ? _jsx(FieldSheet, { verb: v, many: words.many, words: w, onPick: set, onClose: () => setOpened(null), container: host ?? undefined, standing: standing || !!host }, `f-${opened.what}`)
256
- : (_jsx(Popover, { open: true, anchor: opened.at, side: "top", align: "start", ...(standing ? { initialFocus: false } : {}), sideOffset: spacingPx(1, opened.at), "aria-label": v.label, onOpenChange: (o, d) => { if (!o)
259
+ : (_jsx(Popover, { open: true, anchor: opened.at, side: "top", align: "start", ...(standing ? { initialFocus: false } : {}), sideOffset: spacingPx(1, opened.at), "aria-label": v.label, popupData: { "data-slot": "vk-bulk-field" }, onOpenChange: (o, d) => { if (!o)
257
260
  close(d.reason); }, style: { width: "fit-content", minWidth: "calc(var(--vk-spacing) * 48)" }, children: _jsx(Picker, { label: v.label, items: v.options, value: v.value ?? null, empty: v.empty, search: v.search, searchShown: !!v.search, form: "computer", ...(w.picker ? { words: w.picker } : {}), onValueChange: pick, onDone: () => setOpened(null) }) }, `f-${opened.what}`));
258
261
  }
259
- return (_jsxs(_Fragment, { children: [_jsxs("div", { ref: setRoot, className: cn("o-bulk-bar", className), "data-kit": "bulk-bar", "data-form": shape, "data-shown": shown ? "" : undefined, inert: !shown, children: [_jsx(ToolbarControl, { label: words.selected, size: "32", spacing: shape === "pill" ? 1 : shape === "tray" ? 2 : 1.5, fold: false, form: phone ? "phone" : "computer", children: toolbarItems }), measured.length > 0 && _jsx("div", { className: "o-bulk-bar-measure", "aria-hidden": "true", inert: true, children: _jsx("div", { ref: setMeasure, children: measured }) })] }), _jsx("div", { className: "o-bulk-bar-toasts", "data-form": shape, children: _jsx(Toast, { inside: true, manager: toasts, ...(w.toast ? { words: w.toast } : {}), children: null }) }), popup, onDelete && (_jsx(AlertDialog, { open: asking, title: words.ask, line: deleteLine, action: w.delete, cancel: w.cancel, kind: "danger", ...(w.dialog ? { words: w.dialog } : {}), run: async () => { deleted.current = (await onDelete()) ?? null; }, onAnswer: (yes) => {
262
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { ref: setRoot, className: cn("o-bulk-bar", className), "data-slot": "vk-bulk-bar", "data-kit": "bulk-bar", "data-form": shape, "data-shown": shown ? "" : undefined, inert: !shown, children: [_jsx(ToolbarControl, { label: words.selected, size: "32", spacing: shape === "pill" ? 1 : shape === "tray" ? 2 : 1.5, fold: false, form: phone ? "phone" : "computer", children: toolbarItems }), measured.length > 0 && _jsx("div", { className: "o-bulk-bar-measure", "aria-hidden": "true", inert: true, children: _jsx("div", { ref: setMeasure, children: measured }) })] }), _jsx("div", { className: "o-bulk-bar-toasts", "data-slot": "vk-bulk-toasts", "data-form": shape, children: _jsx(Toast, { inside: true, manager: toasts, ...(w.toast ? { words: w.toast } : {}), children: null }) }), popup, onDelete && (_jsx(AlertDialog, { open: asking, title: words.ask, line: deleteLine, action: w.delete, cancel: w.cancel, kind: "danger", ...(w.dialog ? { words: w.dialog } : {}), run: async () => { deleted.current = (await onDelete()) ?? null; }, onAnswer: (yes) => {
260
263
  setAsking(false);
261
264
  if (!yes)
262
265
  return;
@@ -272,7 +275,7 @@ function FieldSheet({ verb, many, words, onPick, onClose, container, standing })
272
275
  const [open, setOpen] = React.useState(true);
273
276
  const parts = usePicker({ label: verb.label, items: verb.options, value: verb.value ?? null, empty: verb.empty, search: verb.search, form: "phone", ...(words.picker ? { words: words.picker } : {}),
274
277
  onValueChange: (v) => { setOpen(false); onPick(v); }, onDone: () => setOpen(false) });
275
- return (_jsxs(Sheet, { open: open, onOpenChange: (o) => { if (!o)
278
+ return (_jsxs(Sheet, { "data-slot": "vk-bulk-field-sheet", open: open, onOpenChange: (o) => { if (!o)
276
279
  setOpen(false); }, onOpenChangeComplete: (o) => { if (!o)
277
280
  onClose(); }, label: verb.label, form: "full", container: container, standing: standing, children: [_jsx(SheetHead, { title: verb.label, description: many, ...parts.head, ...(words.sheet ? { words: words.sheet } : {}) }), _jsx(SheetBody, { children: parts.body })] }));
278
281
  }
@@ -4,6 +4,7 @@ import { MapMarkdown } from "./markdown/map-markdown.js";
4
4
  import { MapTooltip } from "./tooltip/map-tooltip.js";
5
5
  import { MapPopover } from "./popover/map-popover.js";
6
6
  import { MapSheet } from "./sheet/map-sheet.js";
7
+ import { MapPane } from "./pane/map-pane.js";
7
8
  import { MapCheckbox } from "./checkbox/map-checkbox.js";
8
9
  import { MapInput } from "./input/map-input.js";
9
10
  import { MapMenu } from "./menu/map-menu.js";
@@ -34,6 +35,7 @@ export declare const CONTROLS: {
34
35
  Tooltip: typeof MapTooltip;
35
36
  Popover: typeof MapPopover;
36
37
  Sheet: typeof MapSheet;
38
+ Pane: typeof MapPane;
37
39
  Input: typeof MapInput;
38
40
  Checkbox: typeof MapCheckbox;
39
41
  Menu: typeof MapMenu;
@@ -6,6 +6,7 @@ import { MapMarkdown } from "./markdown/map-markdown.js";
6
6
  import { MapTooltip } from "./tooltip/map-tooltip.js";
7
7
  import { MapPopover } from "./popover/map-popover.js";
8
8
  import { MapSheet } from "./sheet/map-sheet.js";
9
+ import { MapPane } from "./pane/map-pane.js";
9
10
  import { MapCheckbox } from "./checkbox/map-checkbox.js";
10
11
  import { MapInput } from "./input/map-input.js";
11
12
  import { MapMenu } from "./menu/map-menu.js";
@@ -36,6 +37,7 @@ export const CONTROLS = carryAtoms({
36
37
  Tooltip: MapTooltip,
37
38
  Popover: MapPopover,
38
39
  Sheet: MapSheet,
40
+ Pane: MapPane,
39
41
  Input: MapInput,
40
42
  Checkbox: MapCheckbox,
41
43
  Menu: MapMenu,
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { Button } from "../button/button.js";
5
4
  import { glyph } from "../internal/editor-parts.js";
6
5
  import { Icon } from "../internal/icons.js";
7
6
  import { PhoneHost, phoneMark, usePhone } from "../internal/phone.js";
8
- import { Input, InputGroup, InputGroupAddon } from "../input/input.js";
7
+ import { InputGroup, InputGroupAddon } from "../input/input.js";
8
+ import { usePanelControls } from "../internal/panel-controls.js";
9
9
  import { MENU_LIST_CARD_FRAME } from "../menu-list/looks.js";
10
10
  import { MenuList, MenuListPanelRows } from "../menu-list/menu-list.js";
11
11
  import { Notice } from "../notice/notice.js";
@@ -42,6 +42,7 @@ export const layoutMark = (id) => (LAYOUT_MARKS[id] ? glyph([LAYOUT_MARKS[id]])
42
42
  export function useCustomize(props) {
43
43
  const { view, onViewChange, layouts, filter, sort, group, changed = false, onReset, onSave, pending = false, stale = false, exportCount, onCopyLink, onExport, toggles, layoutSettings, columnsReset, onLineChange, columnsFoot, fields = [], foldFields = false, onClose, onScreenChange } = props;
44
44
  const w = customizeWords(props.words);
45
+ const { Button, Input } = usePanelControls();
45
46
  const host = React.useContext(PhoneHost), small = usePhone(), phone = (props.form ?? (host || small ? "phone" : "computer")) === "phone";
46
47
  const inPane = React.useContext(InPane);
47
48
  const [place, worn] = useCustomizeWorn();
@@ -281,19 +282,19 @@ export function useCustomize(props) {
281
282
  ...(!searching && canHide ? [{ key: "hide-all", label: w.hideAll, onPress: () => press(latest.view.columns.filter((c) => c.shown && !c.locked).map((c) => c.id), false) }] : []),
282
283
  ...(!searching && columnsReset ? [{ key: "reset", label: w.columnsReset, onPress: columnsReset }] : []),
283
284
  ];
284
- const columnsScreen = (_jsxs(_Fragment, { children: [phone && columnsSearch, shownHere && _jsxs(_Fragment, { children: [heading(w.shownHeading, "shown", shownActs), rowsOf(w.shownHeading, true)] }), hiddenHere && _jsxs(_Fragment, { children: [heading(w.hiddenHeading, "hidden", !searching && canShow ? [{ key: "show-all", label: w.showAll, onPress: () => press(latest.view.columns.filter((c) => !c.shown).map((c) => c.id), true) }] : undefined), rowsOf(w.hiddenHeading, false)] }), !found.length && _jsx("p", { className: "o-customize-none", children: w.noColumn(find.trim()) }), columnsFoot != null && _jsx("div", { className: "o-customize-foot-rows", children: columnsFoot })] }));
285
+ const columnsScreen = (_jsxs(_Fragment, { children: [phone && columnsSearch, shownHere && _jsxs(_Fragment, { children: [heading(w.shownHeading, "shown", shownActs), rowsOf(w.shownHeading, true)] }), hiddenHere && _jsxs(_Fragment, { children: [heading(w.hiddenHeading, "hidden", !searching && canShow ? [{ key: "show-all", label: w.showAll, onPress: () => press(latest.view.columns.filter((c) => !c.shown).map((c) => c.id), true) }] : undefined), rowsOf(w.hiddenHeading, false)] }), !found.length && _jsx("p", { className: "o-customize-none", "data-slot": "vk-customize-none", "data-key": "columns", children: w.noColumn(find.trim()) }), columnsFoot != null && _jsx("div", { className: "o-customize-foot-rows", "data-slot": "vk-customize-columns-foot", children: columnsFoot })] }));
285
286
  const backFromColumn = () => { setBack(true); setFocusTo(col?.label ?? null); setColumn(null); setChoosing(null); };
286
- const columnLevel = col && (_jsxs(_Fragment, { children: [ownSettings(col.settings ?? { choices: [], toggles: [] }, col.label, col.locked ? [] : [{ kind: "check", label: w.columnShown, checked: held[col.id] ?? col.shown, onCheckedChange: (on) => press([col.id], on), ...part("vk-customize-toggle", "shown") }], { list: w.columnSettings(col.label) }), col.rows != null && _jsxs("div", { className: "o-customize-rows", children: [(!col.locked || columnOpensBySettings(col)) && _jsx("div", { role: "separator", className: "o-list-sep" }), col.rows] })] }));
287
+ const columnLevel = col && (_jsxs(_Fragment, { children: [ownSettings(col.settings ?? { choices: [], toggles: [] }, col.label, col.locked ? [] : [{ kind: "check", label: w.columnShown, checked: held[col.id] ?? col.shown, onCheckedChange: (on) => press([col.id], on), ...part("vk-customize-toggle", "shown") }], { list: w.columnSettings(col.label) }), col.rows != null && _jsxs("div", { className: "o-customize-rows", "data-slot": "vk-customize-rows", "data-key": col.id, children: [(!col.locked || columnOpensBySettings(col)) && _jsx("div", { role: "separator", className: "o-list-sep" }), col.rows] })] }));
287
288
  const rowsOfField = (label, rows) => (phone
288
289
  ? _jsx(MenuList, { label: label, entries: rows, words: w.rows }) : _jsx(MenuListPanelRows, { label: label, entries: rows, ticks: "box", words: w.rows }));
289
290
  const fieldScreen = field && (() => {
290
291
  const o = field.opens;
291
292
  if ("pick" in o)
292
- return o.pick.choices.length === 0 ? _jsx("p", { className: "o-customize-none", children: w.nothingToPick })
293
+ return o.pick.choices.length === 0 ? _jsx("p", { className: "o-customize-none", "data-slot": "vk-customize-none", "data-key": "choices", children: w.nothingToPick })
293
294
  : rowsOfField(field.label, [{ kind: "pick", value: o.pick.value, choices: o.pick.choices.map((c) => ({ ...c, ...part("vk-customize-option", c.value) })), onChoose: (v) => { if (v !== o.pick.value)
294
295
  o.pick.onChoose(v); backFromField(); } }]);
295
296
  if ("check" in o)
296
- return o.check.choices.length === 0 ? _jsx("p", { className: "o-customize-none", children: w.nothingToPick })
297
+ return o.check.choices.length === 0 ? _jsx("p", { className: "o-customize-none", "data-slot": "vk-customize-none", "data-key": "choices", children: w.nothingToPick })
297
298
  : rowsOfField(field.label, o.check.choices.map((c) => ({ kind: "check", label: c.label, ...(c.mark != null && { icon: c.mark }), ...part("vk-customize-option", c.value), checked: o.check.values.includes(c.value),
298
299
  onCheckedChange: (on) => o.check.onChange(on ? [...o.check.values, c.value] : o.check.values.filter((v) => v !== c.value)) })));
299
300
  return typeof o.body === "function" ? o.body(backFromField) : o.body;
@@ -326,6 +327,7 @@ export function useCustomize(props) {
326
327
  return { body: inPane ? parts : _jsx("div", { className: "o-customize-frame", children: parts }), title: name, head: {}, level };
327
328
  }
328
329
  function ViewName({ name, label, onRename }) {
330
+ const { Input } = usePanelControls();
329
331
  const [draft, setDraft] = React.useState(name);
330
332
  React.useEffect(() => setDraft(name), [name]);
331
333
  const keep = () => { const n = draft.trim(); if (!n)
@@ -12,6 +12,6 @@ export declare function customizeWordsOf(say: ViewsMessageResolver): CustomizeWo
12
12
  * refused one writes nothing) and its columns that differs. Columns, one or several shown or hidden (Hide all, Show all) or moved,
13
13
  * through ViewKit's own, in one change. */
14
14
  export declare function customizeWriteOf(p: ViewsCustomizeBodyProps, own: CustomizeBodyOwn, now: CustomizeView, next: CustomizeView): (() => void) | null;
15
- /** ViewKit's Customize, its sort and filter drawing the app's controls where the provider's `panelControls` names them
16
- * (VK-1013); Customize's own controls stay ViewKit's for now (VK-1014). */
15
+ /** ViewKit's Customize, drawing the app's controls where the provider's `panelControls` names them (VK-1013, VK-1014): its own,
16
+ * and its sort's, filter's and group's. */
17
17
  export declare function MapCustomizeBody(props: ViewsCustomizeBodyProps): import("react/jsx-runtime").JSX.Element;
@@ -12,7 +12,7 @@ import { groupLabel } from "../group-editor/rules.js";
12
12
  import { glyph, X } from "../internal/editor-parts.js";
13
13
  import { useToldStep } from "../internal/told-step.js";
14
14
  import { HeaderBar } from "../phone-header/header-bar.js";
15
- import { SheetButton } from "../sheet/bottom-sheet.js";
15
+ import { PanelHeadButton } from "../internal/head-button.js";
16
16
  import { SheetPartsFrom } from "../sheet/sheet-parts.js";
17
17
  import { sortEditorPropsOf, sortEditorWordsOf } from "../sort-editor/map-sort-body.js";
18
18
  import { sortLabel } from "../sort-editor/rules.js";
@@ -195,5 +195,6 @@ function CustomizeBodyInner(props) {
195
195
  if (!phone || setParts)
196
196
  return _jsx(_Fragment, { children: parts.body });
197
197
  const { onBack, close } = parts.head;
198
- return (_jsxs(_Fragment, { children: [_jsx(HeaderBar, { className: "o-sheet-row o-customize-own-head", title: parts.title, left: onBack ? _jsx(SheetButton, { "aria-label": w.back, className: "o-sheet-back", icon: glyph(BACK), onClick: onBack }) : close ? _jsx(SheetButton, { "aria-label": w.close, icon: glyph(X), onClick: p.onDone }) : _jsx("span", {}), right: close && onBack ? _jsx(SheetButton, { "aria-label": w.close, icon: glyph(X), onClick: p.onDone }) : _jsx("span", {}) }), parts.body, parts.foot] }));
198
+ return (_jsxs(_Fragment, { children: [_jsx(HeaderBar, { className: "o-sheet-row o-customize-own-head", title: parts.title, left: onBack ? _jsx(PanelHeadButton, { "data-slot": "vk-editor-back", "aria-label": w.back, className: "o-sheet-back", icon: glyph(BACK), onClick: onBack })
199
+ : close ? _jsx(PanelHeadButton, { "data-slot": "vk-editor-close", "aria-label": w.close, icon: glyph(X), onClick: p.onDone }) : _jsx("span", {}), right: close && onBack ? _jsx(PanelHeadButton, { "data-slot": "vk-editor-close", "aria-label": w.close, icon: glyph(X), onClick: p.onDone }) : _jsx("span", {}) }), parts.body, parts.foot] }));
199
200
  }
@@ -46,6 +46,9 @@ export interface DateEditorProps {
46
46
  words?: Partial<DateEditorWords>;
47
47
  /** The language its month and weekday names are written in (BCP 47); English unless said. */
48
48
  language?: string;
49
+ /** The conventions' locale (BCP 47), handed to an app's Calendar as the filter's calendar is handed it (VK-1021); its
50
+ * language unless said. */
51
+ locale?: string;
49
52
  }
50
53
  export interface DateEditorParts {
51
54
  body: React.ReactNode;