viewkitjs 0.29.0 → 0.30.1
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.
- package/CHANGELOG.md +127 -6
- package/MIGRATION.md +97 -8
- package/package.json +1 -1
- package/views/dist/cells/cell-format.d.ts +2 -2
- package/views/dist/cells/cell-values.js +0 -2
- package/views/dist/contract.d.ts +15 -18
- package/views/dist/contract.js +13 -27
- package/views/dist/controls/button/map-button.d.ts +5 -3
- package/views/dist/controls/button/map-button.js +14 -7
- package/views/dist/controls/controls.d.ts +2 -4
- package/views/dist/controls/controls.js +2 -2
- package/views/dist/controls/customize/customize.d.ts +51 -0
- package/views/dist/controls/customize/customize.js +128 -23
- package/views/dist/controls/customize/map-customize-body.d.ts +0 -3
- package/views/dist/controls/customize/map-customize-body.js +46 -11
- package/views/dist/controls/customize/map-ranges.d.ts +23 -0
- package/views/dist/controls/customize/map-ranges.js +41 -0
- package/views/dist/controls/customize/rules.d.ts +17 -1
- package/views/dist/controls/customize/rules.js +2 -0
- package/views/dist/controls/customize/words.d.ts +7 -0
- package/views/dist/controls/customize/words.js +5 -0
- package/views/dist/controls/customize.css +3 -0
- package/views/dist/controls/filter-editor/filter-editor.d.ts +2 -0
- package/views/dist/controls/filter-editor/filter-editor.js +1 -0
- package/views/dist/controls/filter-editor/rules.d.ts +1 -2
- package/views/dist/controls/index.d.ts +8 -8
- package/views/dist/controls/index.js +8 -8
- package/views/dist/controls/menu-list/menu-list.d.ts +16 -1
- package/views/dist/controls/menu-list/menu-list.js +26 -8
- package/views/dist/controls/menu-list.css +8 -0
- package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +1 -1
- package/views/dist/controls/quick-filters/map-quick-filters-body.js +6 -3
- package/views/dist/controls/sheet/map-sheet.js +1 -1
- package/views/dist/controls/text-editor/map-text-body.d.ts +1 -1
- package/views/dist/controls/text-editor/map-text-body.js +2 -2
- package/views/dist/controls/text-editor/text-editor.d.ts +3 -0
- package/views/dist/controls/text-editor/text-editor.js +16 -2
- package/views/dist/controls/text-editor.css +11 -0
- package/views/dist/controls/values-editor/values.js +6 -2
- package/views/dist/display/options.d.ts +1 -1
- package/views/dist/display/rich-text.js +0 -1
- package/views/dist/editors/ChipsEditor.d.ts +4 -5
- package/views/dist/editors/ChipsEditor.js +12 -78
- package/views/dist/editors/DateEditor.d.ts +12 -16
- package/views/dist/editors/DateEditor.js +40 -191
- package/views/dist/editors/EditorPanel.d.ts +2 -6
- package/views/dist/editors/EditorPanel.js +2 -2
- package/views/dist/editors/LocationEditor.d.ts +11 -19
- package/views/dist/editors/LocationEditor.js +19 -211
- package/views/dist/editors/NameEditor.d.ts +8 -16
- package/views/dist/editors/NameEditor.js +11 -100
- package/views/dist/editors/NumberEditor.d.ts +14 -21
- package/views/dist/editors/NumberEditor.js +22 -49
- package/views/dist/editors/RangeEditor.d.ts +9 -33
- package/views/dist/editors/RangeEditor.js +12 -97
- package/views/dist/editors/RelationEditor.d.ts +6 -9
- package/views/dist/editors/RelationEditor.js +11 -30
- package/views/dist/editors/RelationSetEditor.d.ts +13 -24
- package/views/dist/editors/RelationSetEditor.js +33 -101
- package/views/dist/editors/SelectEditor.d.ts +15 -17
- package/views/dist/editors/SelectEditor.js +15 -94
- package/views/dist/editors/TextEditor.d.ts +23 -26
- package/views/dist/editors/TextEditor.js +11 -48
- package/views/dist/editors/ValueListEditor.d.ts +14 -23
- package/views/dist/editors/ValueListEditor.js +16 -202
- package/views/dist/editors/body-panel.d.ts +13 -7
- package/views/dist/editors/body-panel.js +3 -7
- package/views/dist/editors/edit-cores.d.ts +15 -15
- package/views/dist/editors/edit-cores.js +14 -14
- package/views/dist/editors/number-body.d.ts +1 -1
- package/views/dist/editors/number-step.d.ts +0 -34
- package/views/dist/editors/number-step.js +0 -37
- package/views/dist/editors/option-add-flow.d.ts +1 -13
- package/views/dist/editors/option-add-flow.js +0 -22
- package/views/dist/editors/relation-links-body.d.ts +2 -3
- package/views/dist/editors/relation-picker.d.ts +13 -3
- package/views/dist/editors/relation-source.d.ts +0 -22
- package/views/dist/editors/relation-source.js +0 -21
- package/views/dist/field-row/FieldRow.js +5 -6
- package/views/dist/field-row/FieldRowLane.js +0 -1
- package/views/dist/field-row/editors/RowChipsEditor.js +2 -2
- package/views/dist/field-row/editors/RowDateEditor.d.ts +2 -2
- package/views/dist/field-row/editors/RowDateEditor.js +2 -2
- package/views/dist/field-row/editors/RowNameEditor.d.ts +2 -5
- package/views/dist/field-row/editors/RowNameEditor.js +7 -12
- package/views/dist/field-row/editors/RowNumberEditor.d.ts +1 -1
- package/views/dist/field-row/editors/RowNumberEditor.js +4 -4
- package/views/dist/field-row/editors/RowPlaceEditor.js +3 -3
- package/views/dist/field-row/editors/RowRangeEditor.d.ts +2 -5
- package/views/dist/field-row/editors/RowRangeEditor.js +7 -14
- package/views/dist/field-row/editors/RowRelationEditor.js +3 -3
- package/views/dist/field-row/editors/RowSelectEditor.js +2 -2
- package/views/dist/field-row/editors/RowTextEditor.d.ts +1 -1
- package/views/dist/field-row/editors/RowTextEditor.js +3 -4
- package/views/dist/field-row/editors/RowValueListEditor.js +5 -5
- package/views/dist/field-row/field-row-button.d.ts +6 -9
- package/views/dist/field-row/field-row-button.js +1 -6
- package/views/dist/field-row/field-row-checkbox.d.ts +1 -1
- package/views/dist/field-row/row-target.d.ts +0 -7
- package/views/dist/field-row/row-target.js +0 -2
- package/views/dist/grid/chrome/GridAddColumn.d.ts +2 -1
- package/views/dist/grid/chrome/GridAddColumn.js +8 -66
- package/views/dist/grid/chrome/GridAggregateMenu.d.ts +5 -7
- package/views/dist/grid/chrome/GridAggregateMenu.js +20 -39
- package/views/dist/grid/chrome/GridCellEditors.d.ts +2 -2
- package/views/dist/grid/chrome/GridCellEditors.js +12 -12
- package/views/dist/grid/chrome/GridChipsEditor.js +3 -3
- package/views/dist/grid/chrome/GridColumnMenu.d.ts +11 -12
- package/views/dist/grid/chrome/GridColumnMenu.js +32 -93
- package/views/dist/grid/chrome/GridDateEditor.d.ts +6 -6
- package/views/dist/grid/chrome/GridDateEditor.js +3 -3
- package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -6
- package/views/dist/grid/chrome/GridGroupMenu.js +21 -62
- package/views/dist/grid/chrome/GridHeader.d.ts +1 -2
- package/views/dist/grid/chrome/GridHeader.js +2 -2
- package/views/dist/grid/chrome/GridLongTextEditor.d.ts +17 -38
- package/views/dist/grid/chrome/GridLongTextEditor.js +6 -7
- package/views/dist/grid/chrome/GridNameEditor.js +4 -4
- package/views/dist/grid/chrome/GridNumberEditor.d.ts +4 -5
- package/views/dist/grid/chrome/GridNumberEditor.js +3 -4
- package/views/dist/grid/chrome/GridPlaceEditor.d.ts +2 -5
- package/views/dist/grid/chrome/GridPlaceEditor.js +5 -5
- package/views/dist/grid/chrome/GridRangeEditor.d.ts +6 -12
- package/views/dist/grid/chrome/GridRangeEditor.js +7 -15
- package/views/dist/grid/chrome/GridRelationEditor.js +5 -5
- package/views/dist/grid/chrome/GridRow.js +0 -3
- package/views/dist/grid/chrome/GridRowActions.d.ts +1 -1
- package/views/dist/grid/chrome/GridRowActions.js +0 -5
- package/views/dist/grid/chrome/GridRowCells.js +9 -6
- package/views/dist/grid/chrome/GridSelectEditor.js +3 -3
- package/views/dist/grid/chrome/GridStructure.js +0 -1
- package/views/dist/grid/chrome/GridTable.js +1 -1
- package/views/dist/grid/chrome/GridTextEditor.d.ts +5 -7
- package/views/dist/grid/chrome/GridTextEditor.js +4 -17
- package/views/dist/grid/chrome/GridValueListEditor.js +4 -4
- package/views/dist/grid/chrome/grid-body-place.d.ts +2 -3
- package/views/dist/grid/chrome/grid-body-place.js +4 -8
- package/views/dist/grid/chrome/grid-button.d.ts +7 -10
- package/views/dist/grid/chrome/grid-button.js +1 -6
- package/views/dist/grid/chrome/grid-cell-classes.js +1 -1
- package/views/dist/grid/chrome/grid-column-menu-items.d.ts +4 -4
- package/views/dist/grid/chrome/grid-column-menu-items.js +10 -6
- package/views/dist/grid/chrome/grid-group-menu-parts.d.ts +5 -9
- package/views/dist/grid/chrome/grid-group-menu-parts.js +1 -3
- package/views/dist/grid/chrome/grid-hover.js +0 -1
- package/views/dist/grid/chrome/grid-menu-focus.d.ts +7 -31
- package/views/dist/grid/chrome/grid-menu-focus.js +7 -47
- package/views/dist/grid/chrome/grid-styles.d.ts +0 -3
- package/views/dist/grid/chrome/grid-styles.js +0 -1
- package/views/dist/grid/chrome/grid-table-props.d.ts +6 -10
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -4
- package/views/dist/grid/core/editing-controller.d.ts +2 -1
- package/views/dist/grid/core/editing-controller.js +10 -2
- package/views/dist/grid/core/refusal-sentence.d.ts +3 -0
- package/views/dist/grid/core/refusal-sentence.js +2 -2
- package/views/dist/grid/core/write-states.d.ts +3 -1
- package/views/dist/grid/core/write-states.js +6 -2
- package/views/dist/grid/grid.css +1 -1
- package/views/dist/model/body-frame.d.ts +0 -32
- package/views/dist/model/body-frame.js +1 -15
- package/views/dist/model/column-inspect.d.ts +5 -5
- package/views/dist/model/column-inspect.js +2 -2
- package/views/dist/panels/customize-body.d.ts +1 -10
- package/views/dist/panels/customize-body.js +0 -3
- package/views/dist/panels/filter/MenuSelect.js +0 -5
- package/views/dist/panels/filter/RangeFilterBody.js +0 -1
- package/views/dist/panels/filter/details.d.ts +1 -5
- package/views/dist/panels/filter/details.js +0 -13
- package/views/dist/panels/filter/filter-list.d.ts +0 -1
- package/views/dist/panels/filter/filter-list.js +1 -1
- package/views/dist/panels/panel-button.d.ts +10 -12
- package/views/dist/panels/panel-button.js +1 -6
- package/views/dist/panels/react/chrome.d.ts +0 -17
- package/views/dist/panels/react/chrome.js +0 -8
- package/views/dist/panels/react/customize-body.d.ts +9 -12
- package/views/dist/panels/react/customize-body.js +57 -11
- package/views/dist/panels/react/customize.d.ts +9 -12
- package/views/dist/panels/react/customize.js +3 -112
- package/views/dist/panels/react/filter/FilterEditor.d.ts +4 -18
- package/views/dist/panels/react/filter/FilterEditor.js +6 -330
- package/views/dist/panels/react/filter/FilterFieldList.d.ts +1 -1
- package/views/dist/panels/react/filter/FilterFieldList.js +27 -59
- package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +1 -11
- package/views/dist/panels/react/filter/PhoneFilterEditor.js +8 -144
- package/views/dist/panels/react/filter/editor-ctx.d.ts +1 -33
- package/views/dist/panels/react/filter/editor-ctx.js +5 -33
- package/views/dist/panels/react/filter/filter-part-body.d.ts +3 -6
- package/views/dist/panels/react/filter/filter-part-body.js +0 -5
- package/views/dist/panels/react/filter/rule-writes.d.ts +1 -26
- package/views/dist/panels/react/filter/rule-writes.js +4 -95
- package/views/dist/panels/react/order-details.d.ts +1 -26
- package/views/dist/panels/react/order-details.js +3 -69
- package/views/dist/panels/react/panel-header.js +0 -1
- package/views/dist/panels/react/popover.d.ts +4 -7
- package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +2 -4
- package/views/dist/panels/react/quick/QuickFiltersPanel.js +16 -137
- package/views/dist/panels/react/sort/SortEditor.d.ts +4 -4
- package/views/dist/panels/react/sort/SortEditor.js +8 -245
- package/views/dist/panels/react/sort/SortFieldList.d.ts +1 -1
- package/views/dist/panels/react/sort/SortFieldList.js +11 -25
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -16
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarSave.js +0 -4
- package/views/dist/panels/react/toolbar/ToolbarSearch.js +0 -1
- package/views/dist/panels/react/toolbar/ToolbarSortPill.js +3 -3
- package/views/dist/panels/react/view-actions.js +0 -1
- package/views/dist/panels/react/views-row/FoldingViewRow.js +5 -9
- package/views/dist/panels/react/views-row/ViewCreatePill.js +0 -1
- package/views/dist/panels/react/views-row/ViewPicker.js +7 -43
- package/views/dist/panels/react/views-row/ViewPickerRow.js +0 -2
- package/views/dist/panels/react/views-row/menu-classes.d.ts +0 -4
- package/views/dist/panels/react/views-row/menu-classes.js +0 -2
- package/views/dist/panels/react.d.ts +5 -12
- package/views/dist/panels/react.js +5 -12
- package/views/dist/provider/ViewsProvider.d.ts +2 -46
- package/views/dist/provider/ViewsProvider.js +2 -22
- package/views/dist/provider/components.d.ts +153 -106
- package/views/dist/provider/context.d.ts +1 -21
- package/views/dist/provider/missing-slot.d.ts +3 -7
- package/views/dist/provider/missing-slot.js +2 -9
- package/views/dist/react.d.ts +1 -2
- package/views/dist/selection/SelectionBar.js +2 -3
- package/views/dist/styles.css +40 -168
- package/views/dist/styles.unlayered.css +40 -168
- package/views/docs/contract.md +99 -123
- package/views/docs/getting-started.md +222 -2
- package/views/docs/guides/cells.md +222 -2
- package/views/docs/guides/display.md +1 -1
- package/views/docs/guides/editors.md +235 -20
- package/views/docs/guides/ports.md +1 -1
- package/views/docs/guides/selection.md +1 -1
- package/views/docs/guides/the-grid.md +14 -16
- package/views/docs/guides/the-provider.md +9 -15
- package/views/docs/reference/cells.md +1 -1
- package/views/docs/reference/controls.md +28 -15
- package/views/docs/reference/editors-chips.md +2 -2
- package/views/docs/reference/editors-date.md +4 -4
- package/views/docs/reference/editors-location.md +4 -7
- package/views/docs/reference/editors-name.md +3 -5
- package/views/docs/reference/editors-number.md +10 -10
- package/views/docs/reference/editors-panel.md +3 -3
- package/views/docs/reference/editors-range.md +3 -5
- package/views/docs/reference/editors-relation.md +4 -4
- package/views/docs/reference/editors-select.md +3 -3
- package/views/docs/reference/editors-text.md +3 -4
- package/views/docs/reference/editors-value-list.md +3 -3
- package/views/docs/reference/field-row.md +1 -1
- package/views/docs/reference/grid.md +2 -2
- package/views/docs/reference/panels-react.md +20 -34
- package/views/docs/reference/react.md +11 -18
- package/views/docs/reference/views.md +5 -5
- package/views/skills/views/SKILL.md +1 -1
- package/views/dist/editors/relation-panel.d.ts +0 -69
- package/views/dist/editors/relation-panel.js +0 -46
- package/views/dist/grid/chrome/GridColumnColorSection.d.ts +0 -13
- package/views/dist/grid/chrome/GridColumnColorSection.js +0 -40
- package/views/dist/grid/chrome/GridColumnDateSection.d.ts +0 -28
- package/views/dist/grid/chrome/GridColumnDateSection.js +0 -23
- package/views/dist/grid/chrome/GridColumnDurationSection.d.ts +0 -23
- package/views/dist/grid/chrome/GridColumnDurationSection.js +0 -24
- package/views/dist/grid/chrome/GridColumnNumberSection.d.ts +0 -29
- package/views/dist/grid/chrome/GridColumnNumberSection.js +0 -27
- package/views/dist/grid/chrome/GridColumnPercentSection.d.ts +0 -16
- package/views/dist/grid/chrome/GridColumnPercentSection.js +0 -16
- package/views/dist/grid/chrome/GridColumnSortSection.d.ts +0 -38
- package/views/dist/grid/chrome/GridColumnSortSection.js +0 -33
- package/views/dist/grid/chrome/GridFlyout.d.ts +0 -44
- package/views/dist/grid/chrome/GridFlyout.js +0 -80
- package/views/dist/grid/chrome/GridMenuRow.d.ts +0 -15
- package/views/dist/grid/chrome/GridMenuRow.js +0 -15
- package/views/dist/grid/chrome/grid-menu-search.d.ts +0 -7
- package/views/dist/grid/chrome/grid-menu-search.js +0 -7
- package/views/dist/panels/react/GroupBucketsList.d.ts +0 -16
- package/views/dist/panels/react/GroupBucketsList.js +0 -44
- package/views/dist/panels/react/LayoutColumnsList.d.ts +0 -24
- package/views/dist/panels/react/LayoutColumnsList.js +0 -101
- package/views/dist/panels/react/PopoverColumnDetail.d.ts +0 -11
- package/views/dist/panels/react/PopoverColumnDetail.js +0 -24
- package/views/dist/panels/react/drag.d.ts +0 -2
- package/views/dist/panels/react/drag.js +0 -5
- package/views/dist/panels/react/layout-detail.d.ts +0 -4
- package/views/dist/panels/react/layout-detail.js +0 -29
- package/views/dist/panels/react/root-list.d.ts +0 -6
- package/views/dist/panels/react/root-list.js +0 -31
- package/views/dist/panels/react/sort/use-sort-drag.d.ts +0 -17
- package/views/dist/panels/react/sort/use-sort-drag.js +0 -39
- package/views/dist/panels/react/view-footer.d.ts +0 -20
- package/views/dist/panels/react/view-footer.js +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,123 @@ Until 0.19.0 ViewKit shipped as three packages; their changes are in [fields/CHA
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.30.1] — 2026-12-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- At ViewKit's defaults (`CONTROLS.Button`, no `Button` of your own), the views picker's chip stands on one line again: the view's glyph small, beside its name, the chevron after it, where 0.30.0 drew the glyph large and stacked over the name. The views row's "+N" chip stands its count and chevron on one line the same way. `CONTROLS.Button` now counts your `AppIcon` as a glyph, as it counts an svg or one of your icons, and stands a glyph handed after the words as its end icon, as it stands one handed before them as its icon. `leadingGlyph` returns that end glyph as `iconEnd`. This is a default every app that takes `CONTROLS.Button` sees; an app that hands its own `Button` (the portal, the Showcase's own pages, outright-base, Atlas) sees nothing change.
|
|
13
|
+
|
|
14
|
+
## [0.30.0] — 2026-12-01
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `viewkitjs/views/controls` names the editors' and panels' bodies plainly: `TextEditor` and `TextEditorProps` (the Text editor's body), `DateEditor`, `NumberEditor`, `SortEditor` and `useSortEditor`, `FilterEditor` and `useFilterEditor`, `GroupEditor` and `Customize`, each the body alone for a shell that holds only a body. With them `FilterItem` (a filter's rule or group) and `putFilterBack` (a filter rule set aside, put back), beside the sort editor's `putBack`.
|
|
19
|
+
- `viewkitjs/views/controls`: a Menu list tick row may open a level of its own (`opens`, the name of the › after its tick; → presses it while Enter and Space still tick the row) and carry one Toggle before its tick (`toggle`: its mark, its name, whether it is on, its press, and `disabled` saying why it can't be pressed), on a computer and in a phone's Sheet.
|
|
20
|
+
- `useCustomize`'s `onLineChange` (a card's field starting a new line) and `columnsFoot` (your rows under Columns' rows); `CustomizeColumn`'s `settings`, `rows` and `line`; `CustomizeParts`' `level`.
|
|
21
|
+
- The message key `views.panels.column-settings` ("{label} settings"), the name of the › that opens a column's own settings.
|
|
22
|
+
- `ViewsCustomizeBodyProps.fields` (`ViewsCustomizeFields`, `ViewsCustomizeField`): a list's per-field filters, its time range and its date ranges, handed to a Customize body as data. Each comes with its words, what it holds, where its row stands, why it can't open, and its screen's content: a value to pick, values to check, a time range's presets with Custom, a range of days, or ViewKit's own body for any other kind. `folded` says whether they stand behind one Filter row.
|
|
23
|
+
- `viewkitjs/views/controls`: `useCustomize`'s `fields` and `foldFields` (`CustomizeField`). A per-field filter, a time range or a date range stands as its own row, or all of them stand behind Filter, each opening its own screen.
|
|
24
|
+
- `ViewsTextBodyProps.place`: where the text body stands on a computer, `cell` in a grid cell or `row` in a field row, where it stands in the row's flow. ViewKit's editors always hand it; absent, `cell`.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Every app's grid now shows which cell the app refused. A cell whose latest write was refused, alone or as one cell of a paste, a fill or a bulk change, draws the danger line inside its edge (`--vk-border-danger`, the line a refused field draws; undeclared, `--vk-danger`) and carries the reason as its `title` and `aria-description`: the rejected error's own message (in a batch, each refused cell's own, from the outcomes your `onCellsCommit` rejects with), else "Couldn't save {field}.". The mark holds until that cell's next write. It is drawn by the cell's own classes, so it shows whether or not you import `viewkitjs/views/grid.css`. Your commit's error message is now read on the cell as well as in the refusal toast, so word it for a person.
|
|
29
|
+
- Every app that spreads `CONTROLS` and keeps `sheetActions` at its default, `bar`: on a phone, `CONTROLS.Sheet` handed `label` alone (no `title`, no `description`) draws no head of its own, its handle alone, `label` still naming it. The sort editor, the filter editor and Customize now stand under their own head only, with one ✕, where they stood under two. A sheet handed a `title` keeps its title and X.
|
|
30
|
+
- `CONTROLS.QuickFiltersBody`, handed `actions` on a phone (`sheetActions: "bar"`), draws its own head: its name and the ✕, which closes it. Under `head` it draws none, as before.
|
|
31
|
+
- The contract says it now: the Sheet pads its body, and a body draws no side inset of its own; a Sheet handed `label` alone holds a body that heads itself, so it draws no title or close over it. An app's own `Sheet` that drew `label` as its title over a toolbar panel draws it twice; draw none.
|
|
32
|
+
- The older hosts that open your bodies take host names, with no alias: `TextEditor` and `TextEditorProps` (`viewkitjs/views/editors/text`) are `TextEditorHost` and `TextEditorHostProps`, `DateEditor` (`…/editors/date`) is `DateEditorHost`, `NumberEditor` (`…/editors/number`) is `NumberEditorHost`, and `SortEditor`, `useSortEditor` and `FilterEditor` (`viewkitjs/views/panels/react`) are `SortEditorHost`, `useSortEditorHost` and `FilterEditorHost`. Their handles, `TextEditorType`, `NumberEditValue` and `SortEditorOptions` keep their names. An app that imports a host renames it; the portal is the only one that does. Atlas imports none of the hosts: from `viewkitjs/views/controls` it takes only what the door already held (`CONTROLS`, and any held name such as `useTextEditor`, `useSortEditorParts` or `useFilterEditorParts`), and every one of those still answers, so it changes nothing for these renames. outright-base and the Showcase import no host either, and change nothing.
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
// before
|
|
36
|
+
import { TextEditor } from "viewkitjs/views/editors/text";
|
|
37
|
+
import { SortEditor, useSortEditor } from "viewkitjs/views/panels/react";
|
|
38
|
+
// after
|
|
39
|
+
import { TextEditorHost } from "viewkitjs/views/editors/text";
|
|
40
|
+
import { SortEditorHost, useSortEditorHost } from "viewkitjs/views/panels/react";
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- `useSortEditorParts` stays, the same hook as `useSortEditor`; `useFilterEditorParts` stays as a deprecated alias of `useFilterEditor`. An app that uses them (Atlas, the Showcase) may move to the plain names when it likes.
|
|
44
|
+
- `SortRule`, `SortDirection`, `ListGroup`, `ViewsListProps`, `FieldType`, `FilterRule` and `FilterGroup` stay off the controls door: each is a live name elsewhere in the package with another shape. The bodies take fields' and views' own types.
|
|
45
|
+
- Every app that spreads `CONTROLS`: a column's settings, the column menu's rows, a handed footer and the new-line marks now draw in Customize's own look. A column's settings open one level into Columns from the › on its row (Shown, its pick-one settings, its toggles under their sections, then your field editor's rows for it), the footer stands under Columns' rows, and on a board or a calendar each field carries its new-line toggle. ViewKit no longer hands those lists to its older Customize.
|
|
46
|
+
- `CustomizeBody.stepsAside` is gone from the components map: ViewKit draws the body an app hands for every list but one whose filter is only per-field values, and asks it nothing. `CONTROLS.CustomizeBody.stepsAside` stays, deprecated and always false, so a wrapper that copied it onto itself still compiles; delete that line.
|
|
47
|
+
- Every app that spreads `CONTROLS`: a list's per-field filters, its time range (its presets, and Custom with its calendar) and its date ranges now draw in Customize's own look. ViewKit no longer hands a list whose filter is only per-field values, or that has a time range or date ranges, to its older Customize: the body an app hands draws every list.
|
|
48
|
+
- `CustomizeBody` is a required slot of the components map. An app that spreads `CONTROLS` changes nothing. An app that builds its own map adds `CustomizeBody: CONTROLS.CustomizeBody`, or its own body.
|
|
49
|
+
- The `GroupBody` slot is read by nothing and deprecated: only ViewKit's own Customize opened it, and a `CustomizeBody` holds its own group editor. `CONTROLS.GroupBody` stays, so a map that names it still compiles.
|
|
50
|
+
- `ViewOptionsPanelContent`'s and `ViewOptionsPopoverPanel`'s `fill` is deprecated and read by nothing: a `CustomizeBody` sizes itself in its host.
|
|
51
|
+
- `--vk-sheet-text` is read by nothing now: it set the older Columns list's and group order's rows on a phone. It stays declared until a later release takes it out.
|
|
52
|
+
- `SortBody`, `FilterBody`, `FilterPartBody`, `FieldsBody`, `QuickFiltersBody` and `ViewsListBody` are required slots of the components map. An app that spreads `CONTROLS` changes nothing (the Showcase and the portal hand all six already). An app that builds its own map hands all six: Atlas and outright-base add them at their next bump (`SortBody: CONTROLS.SortBody`, `FilterBody: CONTROLS.FilterBody`, `FilterPartBody: CONTROLS.FilterPartBody`, `FieldsBody: CONTROLS.FieldsBody`, `QuickFiltersBody: CONTROLS.QuickFiltersBody` and `ViewsListBody: CONTROLS.ViewsListBody`, or its own).
|
|
53
|
+
- ViewKit's older toolbar panels are gone: the sort pill opens the `SortBody`, an advanced filter's pill and Filter on a phone the `FilterBody`, every sort and filter field list the `FieldsBody`, a filter's way and value on the bar the `FilterPartBody` (its ways menu goes), the quick filters' button the `QuickFiltersBody`, and the view picker's chip the `ViewsListBody`. With them, no panel of the toolbar keeps an older copy.
|
|
54
|
+
- Every app that handed none of them sees the toolbar's panels at ViewKit's defaults, the Outright kit's.
|
|
55
|
+
- Removed, as only the older panels used them: `PhoneFilterEditor` and `usePhoneFilterEditor` (`viewkitjs/views/panels/react`; Filter on a phone still opens your `FilterBody`), and `QuickFiltersPanel`'s `fill`. Delete them where you use them.
|
|
56
|
+
- Their `data-slot` values leave `ATOM_SLOTS`: `vk-sort-editor`, `vk-sort-rule`, `vk-sort-aside`, `vk-sort-fields`, `vk-quick-filters`, `vk-quick-filters-field`, `vk-quick-filters-value`, `vk-quick-filters-none`, `vk-filter-editor`, `vk-filter-rule`, `vk-filter-group`, `vk-filter-relation` and `vk-filter-fields`. A stylesheet that dressed them dresses your bodies instead.
|
|
57
|
+
- Your `Button` always draws the buttons ViewKit draws itself: the grid's (a group's fold and ⋯, "+ Add column", a row's ⋯, the name's actions, an action column's buttons, a pick-list cell's ▾, a command cell's ▾ and trigger), a field row's (its edit target, the verb trigger, the lane's ▾, Show more), the ones in the toolbar's panels, the search's ✕ and the views row, and the selection bar's count chip. Each is handed ViewKit's box in one class string. Your `Checkbox` always draws a yes/no cell in the grid and a field row's yes/no. This is a default every app sees.
|
|
58
|
+
- What each app sees: the portal and the Showcase already set every switch to their own, so nothing changes for them. Atlas and outright-base set none: their grid buttons, yes/no cells, field-row buttons and yes/no boxes, panel buttons and the selection chip (where they don't hand their own `SelectionBar`) become their own `Button` and `Checkbox`.
|
|
59
|
+
- Before you upgrade, make your `Button` render a real `<button>`, take the `secondary` variant, let the `className` it is handed win over its own size, and forward `ref`, `tabIndex`, `aria-haspopup`, `aria-expanded`, `aria-pressed`, `aria-disabled`, `role`, `aria-selected`, `data-slot`, `data-open`, `data-state` and `data-vs-row` to its element; make your `Checkbox` forward `readOnly`. A `Button` that drops the ref leaves the menus these buttons open with nothing to anchor on; one that drops `tabIndex` makes every grid button a Tab stop.
|
|
60
|
+
- The grid's column menu, its footer's figure picker, a group's ⋯ and "+ Add column" open your `Menu`, handed their rows as data, on a phone too, with no search field. The popover around a whole body your app hands (`Picker`, `PartsBody`, `ValuesBody`, `LinksBody`) takes none of ViewKit's width or padding, only its layer, and carries `data-vk-body`; in the grid it opens with its top on the cell's top. The grid says a refused edit through your toast port's `error`, a batch once. This is a default every app sees.
|
|
61
|
+
- What each app sees:
|
|
62
|
+
- The portal and the Showcase already set `menus="menu"`, `bodyFrame="popover"`, `gridBodyPlace="over"` and `sayRefusals`: nothing changes on their screens.
|
|
63
|
+
- Atlas set only `sayRefusals`, so three things move on its screens. A column's menu, the footer's figure picker, a group's ⋯ and "+ Add column" open Atlas's own `Menu`, no longer ViewKit's rows in its `Popover`, and have no search field. The popover around a body Atlas hands (its `Picker`, `PartsBody`, `ValuesBody`, `LinksBody`) stands at its own `Popover`'s width, no longer ViewKit's. In the grid, that body opens over the cell, its top on the cell's top, no longer 4px under it. Its refusals are said as before.
|
|
64
|
+
- outright-base set none: all of the above, and the grid says a refused edit through its toast, so it stops saying its own. Its Edit field row in a column's menu goes until it hands `columnMenuItems`.
|
|
65
|
+
- Before you upgrade: give your `Menu` the three hints a row may carry (`beside` groups, `keepOpen` ticks, `detail`), give your `Popover` a width for `[data-vk-body]` that doesn't follow its content, at least the cell's width in the grid, and stop toasting your own refusals of the grid's edits.
|
|
66
|
+
- `Command` in the components map is deprecated and read by nothing. Leave it out; it goes at a later minor.
|
|
67
|
+
- The grid's `renderColumnMenuRows` is deprecated and read by nothing, since a row drawn as a node has nowhere to stand in your `Menu`. Hand the same rows as data through `columnMenuItems` (outright-base's Edit field row, say):
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
// before
|
|
71
|
+
renderColumnMenuRows={(key, close) => (edits[key] ? <EditFieldRow onClick={() => { close(); openEdit(key); }} /> : null)}
|
|
72
|
+
// after
|
|
73
|
+
columnMenuItems={(key) => (edits[key] ? [{ key: "edit-field", label: "Edit field", onSelect: () => openEdit(key) }] : null)}
|
|
74
|
+
```
|
|
75
|
+
- `TextBody` and `NumberBody` are required slots of the components map. An app that spreads `CONTROLS` changes nothing (the Showcase and the portal hand both already). An app that builds its own map hands both: Atlas hands its `TextBody` already and adds a `NumberBody` (`CONTROLS.NumberBody` or its own) at its next bump; outright-base hands neither and adds both, or spreads `CONTROLS`, which hands every body at once.
|
|
76
|
+
- ViewKit's older text and number boxes are gone: every text a person may write opens the text body and every number the number body. A text opened only to be read keeps ViewKit's read-only panel, and a number formatted as a duration keeps ViewKit's own box, the two no body has a form for.
|
|
77
|
+
- `viewkitjs/views/editors/text` no longer exports `TEXT_INPUT_TYPE`, and `TextEditor` takes no `wraps` or `chrome`; `viewkitjs/views/editors/number`'s `NumberEditor` takes no `unitLeft`. Delete them where you pass them.
|
|
78
|
+
- Every app that spreads `CONTROLS`: a field row's text box (a record's drawer) now stands in the row's flow, a line one list row high and long text growing with what is typed up to 320px, so a section that clips the row no longer cuts its bottom edge.
|
|
79
|
+
- `Picker` and `LinksBody` are required slots of the components map. An app that spreads `CONTROLS` changes nothing (the Showcase and the portal hand both already). An app that builds its own map hands both: Atlas hands its `Picker` already and adds a `LinksBody` (`CONTROLS.LinksBody` or its own) at its next bump; outright-base hands neither and adds both, or spreads `CONTROLS`, which hands every body at once.
|
|
80
|
+
- ViewKit's older Command lists are gone: the select, several-values, relation and place editors always open the `Picker`, and a relation holding several records whose field declares `links` the `LinksBody`. `Command` now draws only the grid's menus on the `popover` route; an app that sets `menus: "menu"` needs none.
|
|
81
|
+
- Every app that handed no `Picker`: a long select that can't be emptied no longer opens on its first option, so an Enter at once changes nothing, and a field row's short select opened by a click takes the arrows and Enter, going on from the value it holds.
|
|
82
|
+
- `--vk-input-text` is read by nothing now: it set the text in the older lists' search boxes. It stays declared until a later release takes it out.
|
|
83
|
+
- `DateBody`, `PartsBody` and `ValuesBody` are required slots of the components map. An app that spreads `CONTROLS` changes nothing (the Showcase and the portal hand all three already). An app that builds its own map hands all three: Atlas hands its `DateBody` and `PartsBody` already and adds a `ValuesBody` (`CONTROLS.ValuesBody` or its own) at its next bump; outright-base hands none of them and adds all three, or spreads `CONTROLS`, which hands every body at once.
|
|
84
|
+
- ViewKit's older date, name, range, place and value-list panels are gone: the date editor always opens the `DateBody` (its own calendar, quick-day row, Clear row and 15-minute time list go), the name, place and range editors the `PartsBody`, and the value list editor the `ValuesBody`. `Calendar` is reached only by the filter panel's month now.
|
|
85
|
+
- Every app that handed no `PartsBody`: a range and a name open under their cell or row rather than in place, a range's bands are the body's picks and its refusal is said once by the panel, and a range's ends no longer step within the field's `min` and `max` (the range body takes no limits; the write check still refuses a value outside them).
|
|
86
|
+
- Removed, as only the older panels read them: `DateEditor`'s `fill`, `NameEditor`'s `chrome` and `boxClassName`, `RangeEditor`'s `bandsAt`, `refusal`, `boxClassName`, `align`, `min` and `max`, `LocationEditor`'s `chrome` and `clearable`, `ValueListEditor`'s `openLinks`, and `EditorPanel`'s `editorDrawsRefusal`. Delete them where you pass them.
|
|
87
|
+
|
|
88
|
+
### Fixed
|
|
89
|
+
|
|
90
|
+
- `CONTROLS.CustomizeBody` on a phone, in an app's own `Sheet` that takes no head from it: the head Customize draws for itself shows one ✕ and one Back, where it showed both the glass and the plain form of each side by side.
|
|
91
|
+
- `CONTROLS.ValuesBody`'s call action on a phone holding an extension dials the extension after the number (`tel:+40264123456;ext=12`) rather than running its digits into it.
|
|
92
|
+
|
|
93
|
+
### Removed
|
|
94
|
+
|
|
95
|
+
- ViewKit's own Customize: its root list, its Layout, Columns, column, Group, toggle and filter-list pages and its footer. `ViewOptionsPanelContent`, `ViewOptionsPopoverPanel` and Options draw only your components map's `CustomizeBody`. An app that spreads `CONTROLS` changes nothing: `CONTROLS.CustomizeBody` already drew every list.
|
|
96
|
+
- `viewkitjs/views/panels/react`: `PopoverRootList`, `ViewFooter`, `CompactLayoutDetail`, `LayoutColumnsList`, `PopoverColumnDetail`, `CompactGroupDetail`, `CompactGroupByDetail`, `CompactGroupSortDetail`, `CompactGroupDateByDetail`, `GroupBucketsList`, `CompactToggleDetail` and `dimensionRows`. The filter panel's `CompactFilterList`, `CompactFilterDetail`, `CompactDateRangeDetail` and `CompactTimeScopeDetail`, Sort's `CompactSortDetail` and `ViewOptionsActions` stay.
|
|
97
|
+
- `CONTROLS.CustomizeBody.stepsAside`, deprecated since it stopped being read. A wrapper that copied it onto itself deletes that line:
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
// before
|
|
101
|
+
const CustomizeBody = Object.assign(MyBody, { stepsAside: CONTROLS.CustomizeBody.stepsAside });
|
|
102
|
+
// after
|
|
103
|
+
const CustomizeBody = MyBody;
|
|
104
|
+
```
|
|
105
|
+
- The provider's switches between ViewKit's own buttons and yes/no boxes and your app's: `gridButtons`, `gridCheckboxes`, `fieldRowButtons`, `fieldRowCheckboxes`, `panelButtons` and `selectionBar`'s `chip`, with their types `ViewsGridButtons`, `ViewsGridCheckboxes`, `ViewsFieldRowButtons`, `ViewsFieldRowCheckboxes`, `ViewsPanelButtons` and `ViewsSelectionChip` (`viewkitjs/views/react`). Delete them where you pass them.
|
|
106
|
+
|
|
107
|
+
```tsx
|
|
108
|
+
// before
|
|
109
|
+
<ViewsProvider {...rest} gridButtons="button" gridCheckboxes="checkbox" fieldRowButtons="button"
|
|
110
|
+
fieldRowCheckboxes="checkbox" panelButtons="button" selectionBar={{ phone, chip: "button" }} />
|
|
111
|
+
// after
|
|
112
|
+
<ViewsProvider {...rest} selectionBar={{ phone }} />
|
|
113
|
+
```
|
|
114
|
+
- The provider's switches for the grid's menus, an app body's frame and place, and saying a refusal: `menus`, `bodyFrame`, `gridBodyPlace` and `sayRefusals`, with their types `ViewsMenuRoute`, `ViewsBodyFrame` and `ViewsGridBodyPlace` (`viewkitjs/views/react`). Delete them where you pass them.
|
|
115
|
+
|
|
116
|
+
```tsx
|
|
117
|
+
// before
|
|
118
|
+
<ViewsProvider {...rest} menus="menu" bodyFrame="popover" gridBodyPlace="over" sayRefusals />
|
|
119
|
+
// after
|
|
120
|
+
<ViewsProvider {...rest} />
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- ViewKit's own popover menus: the column menu, the footer's figure picker, a group's ⋯ and "+ Add column" no longer draw ViewKit's rows in your `Popover`, with their searches and flyouts. `GRID_SLOTS` loses `vk-grid-column-menu`, `vk-grid-flyout`, `vk-grid-group-menu` and `vk-grid-aggregate-menu`.
|
|
124
|
+
|
|
8
125
|
## [0.29.0] — 2026-11-30
|
|
9
126
|
|
|
10
127
|
### Added
|
|
@@ -274,10 +391,9 @@ Create your search indexes again. The folded text `searchIndexes` prints changed
|
|
|
274
391
|
|
|
275
392
|
## [0.25.0] — 2026-11-26
|
|
276
393
|
|
|
277
|
-
viewkitjs/views/controls: the Menu (the components map's default `Menu`, with `menuEntries`), its context menu and its ⋯, the Avatar and its stack, the Select, and the Picker's core (`usePicker`, `Picker`, `PickerUnder` and its rows), with the popup line's stylesheet, the phone's line (`usePhone`, `PhoneHost`, `ComputerHost`) and a list's own scrolling; their looks (`LIST_LOOKS`, `PICKER_LOOKS`, `AVATAR_LOOKS`) in viewkitjs/views/looks.
|
|
278
|
-
|
|
279
394
|
### Added
|
|
280
395
|
|
|
396
|
+
- `viewkitjs/views/controls`: the Menu (the components map's default `Menu`, with `menuEntries`), its context menu and its ⋯, the Avatar and its stack, the Select, and the Picker's core (`usePicker`, `Picker`, `PickerUnder` and its rows), with the popup line's stylesheet, the phone's line (`usePhone`, `PhoneHost`, `ComputerHost`) and a list's own scrolling; their looks (`LIST_LOOKS`, `PICKER_LOOKS`, `AVATAR_LOOKS`) in `viewkitjs/views/looks`.
|
|
281
397
|
- `viewkitjs/fields/definitions`: every setting `creatableFieldTypes(cv)` lists carries a `label` in the host's words, and a word or words setting carries `wordLabels`, a name for each of its words, so a New field dialog names every setting and choice without a copy of its own.
|
|
282
398
|
- Two message keys, so a host renames them in its own language; an exhaustive resolver words them:
|
|
283
399
|
- `setting.label` (values `type`, `path`): Default value, Fewest characters, Most characters (a name's and a place's: Most characters in each part), Pattern it must match, Written over several lines, Stored as, Lowest value, Highest value, Whole numbers only, Most decimals, Shown as, Decimals shown, Unit after the number, Show + and −, A rise reads as, Stored in, Duration style, Currency, A range of, Per, A date to look forward to, Date style, Show the time, Options, Values allowed, Most values (a multi-select's: Most choices), Tidy each value, Links to, How many, Holds several values, Parts of the place.
|
|
@@ -287,6 +403,9 @@ viewkitjs/views/controls: the Menu (the components map's default `Menu`, with `m
|
|
|
287
403
|
|
|
288
404
|
- `viewkitjs/fields`: a text field's `validation.pattern` is read in ViewKit's own pattern dialect and matched without backtracking: each character of a value costs at most one pass over the pattern's steps, and one value may cost at most 20,000,000 steps in all (its characters times the pattern's steps, about a fifth of a second). The dialect is JavaScript's regular-expression syntax with no flags and answers as `RegExp` does, without lookahead, lookbehind, backreferences or group flags (`(?i:…)`), and without the legacy forms whose meaning depends on where they sit (a lone `{`, `}` or `]`); its escapes are `\d \w \s \b`, their capitals, `\t \n \r \f \v \0 \xHH \uHHHH` and any escaped ASCII symbol, and an escaped letter or digit it doesn't know (`\q`, `\cJ`, `\u{41}`) is refused. A pattern is at most 500 characters and 1,000 steps once its repeats are counted out. `checkFieldSpec`, `defineFields` and `zodFor` refuse a pattern outside it, in the same words. Before, any pattern that compiled was taken: a pattern declared in code that uses one of these now fails at definition and is rewritten, for example `"^(?!test)\\w+$"` (lookahead) as a check of its own, `"(\\w)\\1"` (a backreference) as a check of its own, `"a{"` as `"a\\{"`, `"\\q"` as `"q"`. A definition already stored as data is checked the same way when `zodFor` builds its schema: run `checkFieldSpec` over your stored definitions before you upgrade.
|
|
289
405
|
- `viewkitjs/fields`: `zodFor` refuses a value too long for its field's pattern to read within that cost as too long ("Too long — at most N characters", `validation.max-length`), before the pattern reads it: 20,000 characters for a cap-sized pattern of 1,000 steps, far more for a short one. A field's own `maxLength`, when lower, says the limit as before.
|
|
406
|
+
- `viewkitjs/views/controls`: with nothing picked, a menu list on a phone draws My preset's Words, for a menu's own sheet: Words rows, full-width lines, rows 56 high and 2xl corners, with no icon, value or chevron on a row. It drew Card rows, inset lines, rows 52 high and xl corners. A piece whose menu lists stand on no menu's own sheet (a panel's settings, a list of people) keeps the card rows with `MENU_LIST_CARD_FRAME` (`viewkitjs/views/looks`) on a frame round them, whatever the app picks; the Menu takes it as its `frame` on a phone.
|
|
407
|
+
- `viewkitjs/views/controls`: with nothing picked, the list's options (the Select's list, the Menu's panel, the Picker on a computer) are My preset's: an outline edge, the xl shadow, 6 of padding and the medium highlight. They were a subtle edge, the md shadow, 4 of padding and the light highlight. A frame that picks the old values (`data-list-edge="subtle"`, `data-list-shadow="md"`, `data-list-padding="4"`, `data-list-intensity="1"`) still draws them.
|
|
408
|
+
- `viewkitjs/views/controls`: a menu's level in steps out by its panel's own padding, where it stepped out by one spacing step, so it meets its panel's edge and its first row stands level with the row that opened it at any padding.
|
|
290
409
|
|
|
291
410
|
### Fixed
|
|
292
411
|
|
|
@@ -294,7 +413,10 @@ viewkitjs/views/controls: the Menu (the components map's default `Menu`, with `m
|
|
|
294
413
|
|
|
295
414
|
## [0.24.0] — 2026-11-26
|
|
296
415
|
|
|
297
|
-
|
|
416
|
+
### Added
|
|
417
|
+
|
|
418
|
+
- `viewkitjs/views/controls`: the menu list, the list's stylesheet and the helpers they stand on (Icon, Grip, useHoldDrag, useReorder); the menu list's looks in `viewkitjs/views/looks`.
|
|
419
|
+
- `viewkitjs/views/looks`: a piece's looks may pick fewer options than it has (`PieceLooks<Id, Picked>`).
|
|
298
420
|
|
|
299
421
|
### Fixed
|
|
300
422
|
|
|
@@ -305,15 +427,15 @@ viewkitjs/views/controls: the menu list, the list's stylesheet and the helpers t
|
|
|
305
427
|
|
|
306
428
|
## [0.23.0] — 2026-11-25
|
|
307
429
|
|
|
308
|
-
viewkitjs/views/controls: the Option, the Tag, the Status and the Switch, their looks in viewkitjs/views/looks; CONTROL_ATOMS draws ViewKit's Tag, StatusBadge and CellMore atoms with them for an app that spreads it into its atoms.
|
|
309
|
-
|
|
310
430
|
### Added
|
|
311
431
|
|
|
432
|
+
- `viewkitjs/views/controls`: the Option, the Tag, the Status and the Switch, their looks in `viewkitjs/views/looks`; `CONTROL_ATOMS` draws ViewKit's Tag, StatusBadge and CellMore atoms with them for an app that spreads it into its atoms.
|
|
312
433
|
- `viewkitjs/views/controls`: the bottom Sheet (`Sheet`, `SheetHead`, `SheetBody`, `SheetFoot`, `SheetStep`, `SheetButton`, `SheetClose`, `useSheetCloseAll`, `STOPS`), with its forms, its stops and its spring, and the phone's header bar (`HeaderBar`) with the soft edge it stands on (`SoftEdge`), join the default controls, on Base UI. `CONTROLS` now also holds `Sheet`. Their stylesheets are `viewkitjs/views/controls/sheet.css` and `phone-header.css`, and the ready stylesheet carries them.
|
|
313
434
|
- `viewkitjs/views/looks`: `SHEET_LOOKS` and `PHONE_HEADER_LOOKS`, by the Outright kit's names.
|
|
314
435
|
- `viewkitjs/views/controls`: the Popover, the Tooltip (with `TooltipGroup`, `TooltipShown` and `TOOLTIP_TIMING`), the Kbd, the Glass button (with `GlassButtonGroup`) and the Scrollbar join the default controls, on Base UI; `POPUP_HOST` and `popupHostOf` name where a popup stands. `CONTROLS` now also holds `Popover` and `Tooltip`. Each control's stylesheet is `viewkitjs/views/controls/<piece>.css` (`popover`, `tooltip`, `kbd`, `glass-button`, `scrollbar`), every name it reads listed on its page under `docs/controls/`, and the ready stylesheet carries them.
|
|
315
436
|
- `viewkitjs/views/looks`: `POPOVER_LOOKS`, `TOOLTIP_LOOKS`, `KBD_LOOKS` and `GLASS_BUTTON_LOOKS`, each control's options by the Outright kit's names.
|
|
316
437
|
- `viewkitjs/views/controls`: the Input (with its InputGroup, addons, buttons and segments, and a box's own look), the inline input, the Field (with FieldSet, FieldSeparator and Field rows), the Toggle and its group, the number field and the Checkbox (with its mark and list), on Base UI, as the Outright kit draws them; and `useAutofill`, which turns the browser's and the password managers' filling off on a box.
|
|
438
|
+
- The stylesheets of the Input, the inline input, the Field, the Toggle, the number field and the Checkbox, `viewkitjs/views/controls/{input,inline-input,field,toggle,number-field,checkbox}.css`, in the ready stylesheet too, and each one's tokens page under `views/docs/controls/`. Their phone rules hold below 640px, by the Outright Showcase's hooks (`o-phone`, `data-computer-host`), named in the controls' reference page.
|
|
317
439
|
- `CONTROLS` draws the components map's `Input` and `Checkbox`.
|
|
318
440
|
- Their options and looks on `viewkitjs/views/looks`: `INPUT_LOOKS`, `INLINE_INPUT_LOOKS`, `FIELD_LOOKS`, `TOGGLE_LOOKS`, `CHECKBOX_LOOKS`; a box's own look beside the Input's (`InputOwnLook`, `inputAttrs`, `inputOwnAttrs`, `inputFrameAttrs`, `kindLook`, `attioBox`) and a Field rows card's (`fieldRowsAttrs`, `FieldRowsLook`).
|
|
319
441
|
- `VK_CONTROL_TOKENS_BY_PIECE` and `ControlToken`: each default control's own list of the names its stylesheet reads, with each name's kind and the Outright token it stands for (`outright`). `VK_CONTROL_TOKENS` gathers them, once each.
|
|
@@ -326,7 +448,6 @@ viewkitjs/views/controls: the Option, the Tag, the Status and the Switch, their
|
|
|
326
448
|
- Where nothing says otherwise, the phone header's surface is Glass and two Glass buttons stand together on the pill, as their options' defaults say; only `data-phone-header-surface="flat"` or `data-glass-button-pair="separate"` set them apart.
|
|
327
449
|
- The default Popover's shadow is `md` and two Glass buttons share the glass pill unless something round them says `separate`: My preset's picks, the Outright look's defaults.
|
|
328
450
|
- The inline input's default is the Outright look's: the line, `md` corners, on a 20% tint of the brand (it was the `attio` look: `sm` corners on the overlay's ground). An app that picks none of its options, or only some, draws the new defaults for the rest.
|
|
329
|
-
- Their stylesheets, `viewkitjs/views/controls/{input,inline-input,field,toggle,number-field,checkbox}.css`, in the ready stylesheet too, and each one's tokens page under `views/docs/controls/`. Their phone rules hold below 640px, by the Outright Showcase's hooks (`o-phone`, `data-computer-host`), named in the controls' reference page.
|
|
330
451
|
- The number field's stepper gap is named with the addon it stands in (`.o-input-addon.o-number-steps`), so it wins over the addon's own gap whatever order the stylesheets load in.
|
|
331
452
|
- The controls' stylesheet doors are one pattern, `viewkitjs/views/controls/<piece>.css` (the outline's `smooth.css`, the Button's `button.css`, the Spinner's `spinner.css`), the same paths as before.
|
|
332
453
|
|
package/MIGRATION.md
CHANGED
|
@@ -170,13 +170,92 @@ Nothing was removed except what is below.
|
|
|
170
170
|
<ReadyToolbar {...list} />
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
+
- **Every body slot of the components map is required** (0.30): `TextBody`, `NumberBody`, `Picker`, `LinksBody`,
|
|
174
|
+
`DateBody`, `PartsBody`, `ValuesBody`, and the toolbar panels' `SortBody`, `FilterBody`, `FilterPartBody`,
|
|
175
|
+
`FieldsBody`, `QuickFiltersBody` and `ViewsListBody`, and `CustomizeBody`. An app that spreads `CONTROLS` hands them already; one that
|
|
176
|
+
builds its own map adds `TextBody: CONTROLS.TextBody`, `NumberBody: CONTROLS.NumberBody`, `Picker: CONTROLS.Picker`,
|
|
177
|
+
`LinksBody: CONTROLS.LinksBody`, `DateBody: CONTROLS.DateBody`, `PartsBody: CONTROLS.PartsBody`,
|
|
178
|
+
`ValuesBody: CONTROLS.ValuesBody`, `SortBody: CONTROLS.SortBody`, `FilterBody: CONTROLS.FilterBody`,
|
|
179
|
+
`FilterPartBody: CONTROLS.FilterPartBody`, `FieldsBody: CONTROLS.FieldsBody`,
|
|
180
|
+
`QuickFiltersBody: CONTROLS.QuickFiltersBody`, `ViewsListBody: CONTROLS.ViewsListBody` and
|
|
181
|
+
`CustomizeBody: CONTROLS.CustomizeBody`, or its own. ViewKit's own Customize is gone (its root list, pages and footer,
|
|
182
|
+
and the `/panels/react` exports that drew them): Options opens your `CustomizeBody` everywhere. `GroupBody` is read
|
|
183
|
+
by nothing and deprecated, `CONTROLS.CustomizeBody.stepsAside` is gone, and a wrapper that copied it deletes that
|
|
184
|
+
line.
|
|
185
|
+
ViewKit's older sort editor, filter editor (on a computer and on a phone), sort and filter field lists, a filter's
|
|
186
|
+
ways menu on the bar, quick-filters panel and list of views are gone: each panel opens your body. With them go
|
|
187
|
+
`PhoneFilterEditor` and `usePhoneFilterEditor` (`viewkitjs/views/panels/react`; Filter on a phone still opens your
|
|
188
|
+
`FilterBody`) and `QuickFiltersPanel`'s `fill`: delete them where you use them. Their `data-slot`s leave
|
|
189
|
+
`ATOM_SLOTS`: `vk-sort-editor`, `vk-sort-rule`, `vk-sort-aside`, `vk-sort-fields`, `vk-quick-filters`,
|
|
190
|
+
`vk-quick-filters-field`, `vk-quick-filters-value`, `vk-quick-filters-none`, `vk-filter-editor`, `vk-filter-rule`,
|
|
191
|
+
`vk-filter-group`, `vk-filter-relation` and `vk-filter-fields`; a stylesheet that dressed them dresses your bodies. ViewKit's older date, name, range, place and value-list panels are
|
|
192
|
+
gone: the date editor opens your `DateBody` (`Calendar` is now reached only by the filter panel's month), the name,
|
|
193
|
+
place and range editors your `PartsBody`, and the value list editor your `ValuesBody`; a range and a name open under
|
|
194
|
+
their cell or row, never in place. With them go `DateEditor`'s `fill` (`viewkitjs/views/editors/date`),
|
|
195
|
+
`NameEditor`'s `chrome` and `boxClassName` (`…/editors/name`), `RangeEditor`'s `bandsAt`, `refusal`,
|
|
196
|
+
`boxClassName`, `align`, `min` and `max` (`…/editors/range`), `LocationEditor`'s `chrome` and `clearable`
|
|
197
|
+
(`…/editors/location`), `ValueListEditor`'s `openLinks` (`…/editors/value-list`) and `EditorPanel`'s
|
|
198
|
+
`editorDrawsRefusal` (`…/editors/panel`): delete them where you pass them.
|
|
199
|
+
ViewKit's older Command lists for the select, several-values, relation and place editors are gone (none was
|
|
200
|
+
exported): every list opens your `Picker`, and a relation holding several records whose field declares
|
|
201
|
+
`links` your `LinksBody`. ViewKit's older text and
|
|
202
|
+
number boxes are gone: a text opened only to be read and a number formatted as a duration keep ViewKit's own box, the
|
|
203
|
+
two no body has a form for. With them go
|
|
204
|
+
`TEXT_INPUT_TYPE` and `TextEditor`'s `wraps` and `chrome` (`viewkitjs/views/editors/text`), and `NumberEditor`'s
|
|
205
|
+
`unitLeft` (`viewkitjs/views/editors/number`): delete them where you pass them.
|
|
206
|
+
- **The provider's switches between ViewKit's own buttons and yes/no boxes and yours are gone** (0.30):
|
|
207
|
+
`gridButtons`, `gridCheckboxes`, `fieldRowButtons`, `fieldRowCheckboxes`, `panelButtons` and `selectionBar`'s
|
|
208
|
+
`chip`, with their types `ViewsGridButtons`, `ViewsGridCheckboxes`, `ViewsFieldRowButtons`,
|
|
209
|
+
`ViewsFieldRowCheckboxes`, `ViewsPanelButtons` and `ViewsSelectionChip`. Delete them where you pass them: your
|
|
210
|
+
`Button` and `Checkbox` always draw those buttons and boxes (step 8). Make your `Button` render a real `<button>`,
|
|
211
|
+
take the `secondary` variant, let the `className` it is handed win over its own size, and forward `ref`, `tabIndex`,
|
|
212
|
+
`aria-haspopup`, `aria-expanded`, `aria-pressed`, `aria-disabled`, `role`, `aria-selected`, `data-slot`,
|
|
213
|
+
`data-open`, `data-state` and `data-vs-row`; make your `Checkbox` forward `readOnly`
|
|
214
|
+
([the provider](views/docs/guides/the-provider.md)).
|
|
215
|
+
|
|
216
|
+
```tsx
|
|
217
|
+
// before
|
|
218
|
+
<ViewsProvider {...rest} gridButtons="button" gridCheckboxes="checkbox" fieldRowButtons="button"
|
|
219
|
+
fieldRowCheckboxes="checkbox" panelButtons="button" selectionBar={{ phone, chip: "button" }} />
|
|
220
|
+
// after
|
|
221
|
+
<ViewsProvider {...rest} selectionBar={{ phone }} />
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
- **The provider's switches for the grid's menus, an app body's frame and place, and saying a refusal are gone**
|
|
225
|
+
(0.30): `menus`, `bodyFrame`, `gridBodyPlace` and `sayRefusals`, with their types `ViewsMenuRoute`,
|
|
226
|
+
`ViewsBodyFrame` and `ViewsGridBodyPlace`. Delete them where you pass them: the grid's menus are your `Menu`, an
|
|
227
|
+
app body's popover is your `Popover` at its own width, a grid body opens over its cell, and the grid says a refused
|
|
228
|
+
edit through your toast's `error`, so stop toasting your own (step 8). `GRID_SLOTS` loses `vk-grid-column-menu`,
|
|
229
|
+
`vk-grid-flyout`, `vk-grid-group-menu` and `vk-grid-aggregate-menu`: style the grid's menus as your `Menu`.
|
|
230
|
+
`Command` is deprecated and read by nothing: leave it out. The grid's `renderColumnMenuRows` is deprecated and read
|
|
231
|
+
by nothing: a row drawn as a node has nowhere to stand in your `Menu`, so hand the same rows as data through
|
|
232
|
+
`columnMenuItems` (outright-base's Edit field row, say).
|
|
233
|
+
|
|
234
|
+
```tsx
|
|
235
|
+
// before
|
|
236
|
+
<ViewsProvider {...rest} menus="menu" bodyFrame="popover" gridBodyPlace="over" sayRefusals />
|
|
237
|
+
<GridTable {...grid} renderColumnMenuRows={(key, close) => (edits[key] ? <EditFieldRow onClick={() => { close(); openEdit(key); }} /> : null)} />
|
|
238
|
+
// after
|
|
239
|
+
<ViewsProvider {...rest} />
|
|
240
|
+
<GridTable {...grid} columnMenuItems={(key) => (edits[key] ? [{ key: "edit-field", label: "Edit field", onSelect: () => openEdit(key) }] : null)} />
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
- **The older hosts that open your bodies take host names** (0.30), with no alias: `TextEditor` and `TextEditorProps`
|
|
244
|
+
(`viewkitjs/views/editors/text`) are `TextEditorHost` and `TextEditorHostProps`, `DateEditor` (`…/editors/date`) is
|
|
245
|
+
`DateEditorHost`, `NumberEditor` (`…/editors/number`) is `NumberEditorHost`, and `SortEditor`, `useSortEditor` and
|
|
246
|
+
`FilterEditor` (`viewkitjs/views/panels/react`) are `SortEditorHost`, `useSortEditorHost` and `FilterEditorHost`:
|
|
247
|
+
rename them where you import them. The plain names are the bodies' own now, on `viewkitjs/views/controls`, where
|
|
248
|
+
`useSortEditorParts` and `useFilterEditorParts` (deprecated) still answer.
|
|
249
|
+
|
|
173
250
|
- **`ToolbarSlotState.appFrame` is required** (views 0.10). Code that builds a whole `ToolbarSlotState`
|
|
174
251
|
adds `appFrame: false`. A partial slot handed to `ToolbarSlotProvider` is unaffected.
|
|
175
252
|
- **`FieldSpec` no longer holds `avatar`** (0.20): `defineFields({ avatar })` stamps it. `checkFieldSpec`
|
|
176
253
|
takes `unknown` and asserts a `FieldSpec`, so casts before it can go.
|
|
177
254
|
- **Lists typed over every name grew.** A record or an exhaustive `switch` over one of these needs the new
|
|
178
255
|
members:
|
|
179
|
-
- `OptionalComponentName`: `SearchField` (views 0.10)
|
|
256
|
+
- `OptionalComponentName`: `SearchField` (views 0.10); `LinksBody` was optional from views 0.12 to 0.29. It loses
|
|
257
|
+
`TextBody`, `NumberBody`, `Picker`, `LinksBody`, `DateBody`, `PartsBody`, `ValuesBody`, `SortBody`, `FilterBody`,
|
|
258
|
+
`FilterPartBody`, `FieldsBody`, `QuickFiltersBody` and `ViewsListBody` (0.30), which `ComponentName` gains.
|
|
180
259
|
- `ViewsBodyKind`: `links` (views 0.12).
|
|
181
260
|
- `ATOM_STATES`: `tab` and `current`. `ATOM_SLOTS`: `vk-toolbar-chevron`, `vk-quick-filters-reminder`,
|
|
182
261
|
`vk-quick-filters-reminder-open` and `vk-quick-filters-reminder-clear` (views 0.10).
|
|
@@ -252,10 +331,9 @@ import { CONTROLS } from "viewkitjs/views/controls";
|
|
|
252
331
|
It holds `Button`, `Tooltip`, `Popover`, `Sheet`, `Input`, `Checkbox` and `Menu`; the Text editor
|
|
253
332
|
(`TextBody`); the Picker (`Picker`, and `FieldsBody`, the sort's and the filter's field lists); the Date editor
|
|
254
333
|
(`DateBody`); the month the filter panel picks a day in (`Calendar`); the Compound editor (`PartsBody`) for
|
|
255
|
-
a name, a place and a range; the Number editor (`NumberBody`) for a number, money or a percent; the Values editor (`ValuesBody`) for several emails, phones, links or domains; the Links editor (`LinksBody`) for a relation whose field declares `links
|
|
334
|
+
a name, a place and a range; the Number editor (`NumberBody`) for a number, money or a percent; the Values editor (`ValuesBody`) for several emails, phones, links or domains; the Links editor (`LinksBody`) for a relation whose field declares `links`; the views list (`ViewsListBody`), what the view switcher opens; and the group editor (`GroupBody`), what Customize's Group opens, where an app that hands none keeps ViewKit's own group pages; and the Collapsible (`Collapse`), the fold a grid's group, a field's note and the selection sheet open in; and `PortsHost`, which answers the `toast` and `confirm` ports an app leaves out with ViewKit's Toast and alert dialog. **An app that spreads it hands no `Calendar`:** the filter panel's date, its date
|
|
256
335
|
ranges and its custom time scope open ViewKit's own month. An app's own `Calendar` or `RangeCalendar` atom is
|
|
257
|
-
kept. You still hand `AppIcon` and `Markdown
|
|
258
|
-
grid's + Add column and a group's menu search still draw through it. `CONTROL_ATOMS` (0.23) does the same for the atoms
|
|
336
|
+
kept. You still hand `AppIcon` and `Markdown`. `CONTROL_ATOMS` (0.23) does the same for the atoms
|
|
259
337
|
(`Tag`, `StatusBadge`, `CellMore`): `atoms={{ ...CONTROL_ATOMS, ...ownAtoms }}`.
|
|
260
338
|
|
|
261
339
|
The controls' stylesheet is in `viewkitjs/views/styles.css` (step 9). An app that imports the controls'
|
|
@@ -343,7 +421,16 @@ hydrates.
|
|
|
343
421
|
unchanged.
|
|
344
422
|
- The group count is a chip ViewKit draws (0.21), so CSS that dressed `vk-grid-group-count` can go.
|
|
345
423
|
- The default Tag is a pill (0.21). An app's own `Tag` atom is unchanged.
|
|
346
|
-
- A place cell
|
|
424
|
+
- A place cell offered a Clear row on a column that may be emptied from views 0.10 to 0.29; the Compound editor has none (0.30).
|
|
425
|
+
- The buttons the grid draws itself, a yes/no cell, a field row's own buttons and its yes/no, the buttons in the
|
|
426
|
+
toolbar's panels, the search's ✕ and the views row, and the selection bar's count chip are your `Button` and
|
|
427
|
+
`Checkbox` (0.30), where each was ViewKit's own unless you set its switch. An app that set every switch to yours
|
|
428
|
+
sees no change.
|
|
429
|
+
- A column's menu, the footer's figure picker, a group's ⋯ and "+ Add column" open your `Menu`, handed their rows as
|
|
430
|
+
data, on a phone too, with no search field (0.30). The popover around a body your app hands (`Picker`,
|
|
431
|
+
`PartsBody`, `ValuesBody`, `LinksBody`) takes none of ViewKit's width or padding and is marked `data-vk-body`; in
|
|
432
|
+
the grid it opens over its cell. The grid says a refused edit through your toast's `error`. An app that set
|
|
433
|
+
`menus="menu"`, `bodyFrame="popover"`, `gridBodyPlace="over"` and `sayRefusals` sees no change.
|
|
347
434
|
|
|
348
435
|
**Toolbar and panels**
|
|
349
436
|
|
|
@@ -379,9 +466,10 @@ Each control reads only `--vk-*` names, each with a default. The names, and the
|
|
|
379
466
|
|
|
380
467
|
### 10. Tests your app may have pinned
|
|
381
468
|
|
|
382
|
-
- **Exact component, icon and port names.** The required component names
|
|
383
|
-
|
|
384
|
-
the
|
|
469
|
+
- **Exact component, icon and port names.** The required component names gained `TextBody`, `NumberBody`, `Picker`,
|
|
470
|
+
`LinksBody`, `DateBody`, `PartsBody`, `ValuesBody`, `SortBody`, `FilterBody`, `FilterPartBody`, `FieldsBody`,
|
|
471
|
+
`QuickFiltersBody`, `ViewsListBody` and `CustomizeBody` (0.30), which the optional ones lost. The optional ones gained `SearchField` (and held `LinksBody` from 0.12 to 0.29). The icon names and the port
|
|
472
|
+
names are unchanged. A test that compares the whole list of required or optional names fails on what moved.
|
|
385
473
|
- **The test kit's case count** (`viewkitjs/fields/testing`). Counted on ViewKit's own memory backend, it went
|
|
386
474
|
from 1,028 cases at fields 0.15 to 1,039: 6 more filter cases and 5 more search cases. A count pinned on
|
|
387
475
|
your own backend moves by what it runs of these. Fields 0.17 names three of the new filter cases; a backend
|
|
@@ -631,6 +719,7 @@ Customize (`CONTROLS.CustomizeBody`; its other words are ViewKit's own Customize
|
|
|
631
719
|
| `views.panels.customize-layout-button` | Layout: {name} |
|
|
632
720
|
| `views.panels.customize-layout-settings` | {name} settings |
|
|
633
721
|
| `views.panels.customize-share` | Share the view |
|
|
722
|
+
| `views.panels.column-settings` | {label} settings |
|
|
634
723
|
|
|
635
724
|
The quick filters (`CONTROLS.QuickFiltersBody`; its other words are ViewKit's own quick filters' keys, worded already):
|
|
636
725
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viewkitjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
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": {
|
|
@@ -13,7 +13,7 @@ import type { ViewsCheckboxProps } from "../provider/components.js";
|
|
|
13
13
|
* plus a field's `format` block into a string. These two stay because three
|
|
14
14
|
* consumers hold a column rather than a field — the footer aggregates
|
|
15
15
|
* (`GridFooter`) and the column menu's two live format previews
|
|
16
|
-
* (`
|
|
16
|
+
* (`gridColumnMenuItems`' date and duration samples) — and asking each of
|
|
17
17
|
* them to synthesize a def would put the same translation in three places.
|
|
18
18
|
*
|
|
19
19
|
* The viewer is the caller's: these never read the runtime's locale or zone, nor any
|
|
@@ -63,7 +63,7 @@ export type GridCellOptions = {
|
|
|
63
63
|
*/
|
|
64
64
|
onToggle?: (next: boolean) => void;
|
|
65
65
|
/** A two-way boolean in the checkbox style draws this control in place of ViewKit's tick box in its own button:
|
|
66
|
-
* the grid hands the components map's `Checkbox
|
|
66
|
+
* the grid hands the components map's `Checkbox`, and a field row its own wrapper of it. */
|
|
67
67
|
booleanCheckbox?: ComponentType<ViewsCheckboxProps>;
|
|
68
68
|
/**
|
|
69
69
|
* `command` columns: the verbs this row offers INSTEAD of an editor, already
|
|
@@ -62,7 +62,6 @@ function CommandCell({ col, cell, items, }) {
|
|
|
62
62
|
if (cell != null && CONTROL_VALUES.has(col.type)) {
|
|
63
63
|
return (_jsxs("span", { className: "flex min-w-0 items-center gap-1", children: [cell, _jsx(CommandMenu, { items: verbs, align: "start", label: columnLabel(col), trigger: drawGridButton(views, {
|
|
64
64
|
"aria-label": columnLabel(col),
|
|
65
|
-
own: "shrink-0 -m-1 p-1",
|
|
66
65
|
frame: "h-5 w-5 shrink-0",
|
|
67
66
|
variant: "ghost",
|
|
68
67
|
size: "icon",
|
|
@@ -71,7 +70,6 @@ function CommandCell({ col, cell, items, }) {
|
|
|
71
70
|
}
|
|
72
71
|
return (_jsx(CommandMenu, { items: verbs, align: "start", label: columnLabel(col), trigger: drawGridButton(views, {
|
|
73
72
|
"aria-label": columnLabel(col),
|
|
74
|
-
own: "flex min-w-0 items-center gap-1 text-left",
|
|
75
73
|
frame: "h-auto min-w-0 max-w-full justify-start gap-1 -mx-1 px-1 py-0 text-left [font:inherit]",
|
|
76
74
|
variant: "ghost",
|
|
77
75
|
size: "sm",
|