@wirecore/wirelayer-vue 0.12.2 → 0.14.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 (69) hide show
  1. package/dist/{Button-BpMOPs8b.js → Button-WA6BonwF.js} +1 -1
  2. package/dist/{Checkbox-DS2qfQK1.js → Checkbox-DILwucBG.js} +1 -1
  3. package/dist/{CopyButton-Cv9QfFfS.js → CopyButton-BVRwSCRj.js} +2 -2
  4. package/dist/{Field-Cqe2BG_x.js → Field-DuZfFNFT.js} +3 -3
  5. package/dist/{Highlight-uwptdaUw.js → Highlight-BM-J3Jj0.js} +1 -1
  6. package/dist/{Input-C5dyvZfJ.js → Input-CH-ntEjv.js} +10 -10
  7. package/dist/RecipesProvider-DzlYvZ-I.js +2606 -0
  8. package/dist/{Select-q8FUIWLi.js → Select-B5c6Y3mf.js} +4 -4
  9. package/dist/{Slider-Cpv7Vj3B.js → Slider-Z-rsNeI1.js} +2 -2
  10. package/dist/Tree-C8vsEA6K.js +852 -0
  11. package/dist/chart.js +31 -31
  12. package/dist/code.js +7 -7
  13. package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
  14. package/dist/components/Confirm/confirm.d.ts +5 -0
  15. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  16. package/dist/components/DatePicker/DatePicker.vue.d.ts +3 -1
  17. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  18. package/dist/components/DatePicker/DatePickerBase.vue.d.ts +2 -0
  19. package/dist/components/DatePicker/DatePickerBase.vue.d.ts.map +1 -1
  20. package/dist/components/DatePicker/DatePickerCalendar.vue.d.ts +2 -0
  21. package/dist/components/DatePicker/DatePickerCalendar.vue.d.ts.map +1 -1
  22. package/dist/components/DatePicker/DatePickerTimes.vue.d.ts +24 -0
  23. package/dist/components/DatePicker/DatePickerTimes.vue.d.ts.map +1 -0
  24. package/dist/components/DatePicker/dates.d.ts +2 -0
  25. package/dist/components/DatePicker/dates.d.ts.map +1 -1
  26. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts +6 -1
  27. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts.map +1 -1
  28. package/dist/components/Dialog/DialogContent.vue.d.ts +16 -3
  29. package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
  30. package/dist/components/DialogService/DialogHost.vue.d.ts.map +1 -1
  31. package/dist/components/DialogService/dialogs.d.ts +5 -0
  32. package/dist/components/DialogService/dialogs.d.ts.map +1 -1
  33. package/dist/components/Drawer/DrawerContent.vue.d.ts +10 -1
  34. package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
  35. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +3 -0
  36. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
  37. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts +8 -1
  38. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts.map +1 -1
  39. package/dist/data-table/DataTable.vue.d.ts +26 -6
  40. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  41. package/dist/data-table/FilterMenu.vue.d.ts.map +1 -1
  42. package/dist/data-table/ValueInput.vue.d.ts +4 -0
  43. package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
  44. package/dist/data-table/features.d.ts +10 -0
  45. package/dist/data-table/features.d.ts.map +1 -1
  46. package/dist/data-table/index.d.ts +1 -1
  47. package/dist/data-table/index.d.ts.map +1 -1
  48. package/dist/data-table/inputs.d.ts +5 -0
  49. package/dist/data-table/inputs.d.ts.map +1 -1
  50. package/dist/data-table/types.d.ts +2 -0
  51. package/dist/data-table/types.d.ts.map +1 -1
  52. package/dist/data-table.js +1713 -1575
  53. package/dist/editor.js +4 -4
  54. package/dist/form.js +35 -35
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +4204 -4275
  58. package/dist/pdf.js +6 -6
  59. package/dist/{recipes-BlM9aKyt.js → recipes-CD2Ibsv9.js} +8 -1
  60. package/dist/recipes.d.ts +6 -0
  61. package/dist/recipes.d.ts.map +1 -1
  62. package/dist/sources/dateRangeInput.css +3 -0
  63. package/dist/{useTree-UhG1TMeM.js → useTree-DjkjHeoy.js} +114 -114
  64. package/dist/virtual.js +6 -6
  65. package/llms-full.txt +99 -18
  66. package/llms.txt +1 -0
  67. package/package.json +3 -3
  68. package/dist/ContextMenu-DC--vmIf.js +0 -2321
  69. package/dist/Tree-3o3OJASC.js +0 -840
package/llms-full.txt CHANGED
@@ -1726,13 +1726,15 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1726
1726
  | row-expandable? | `(row: T) => boolean` | Whether a row has details (#expansion) – rows without get no expand button (default: all rows) |
1727
1727
  | advanced-filter? | `boolean \| ConditionField[]` | Advanced filter: the rows pass a condition tree (nested and/or rules; v-model:advanced-filter-value). `true` offers every column with a filter type; or pass the fields. A toolbar button opens the editor from the `#advancedFilter` slot above the table – usually `ConditionBuilder` from `@wirecore/wirelayer-blocks-vue`; without it there is no button (the tree still filters). A server filters instead: `dataSource` gets the tree as `condition`, with `manual` the parent applies it |
1728
1728
  | v-model:advanced-filter-value? | `ConditionGroup` | The condition tree of the advanced filter (controlled together with onAdvancedFilterValueChange) |
1729
+ | sortable? | `boolean` | Every column with a value can be sorted, unless the column sets `sortable: false`; columns without a value (only a slot, e.g. actions) stay out. App-wide: `dataTable: { defaultVariants: { sortable: true } }` |
1729
1730
  | search? | `boolean` | Search field above the table: filters over all columns (v-model:global-filter) |
1731
+ | search-align? | `'start' \| 'center'` | Place of the search field: `start` (default) after the controls of the toolbar start, `center` in the middle of the toolbar – also when there are no controls at the start; own `toolbar` controls then join the end group. App-wide: `dataTable: { defaultVariants: { searchCentered: true } }` |
1730
1732
  | v-model:global-filter? | `string` | |
1731
1733
  | row-keywords? | `(row: T) => string \| readonly string[] \| null \| undefined` | More text the search finds a row by, besides its columns – e.g. fields without a column of their own (not in server mode: there the server searches) |
1732
1734
  | highlight-search? | `boolean` | Marks the search hits in the cells |
1733
1735
  | v-model:filters? | `Record<string, DataTableFilterValue>` | Column filters by column id – use with v-model:filters |
1734
1736
  | filter-display? | `'row' \| 'menu' \| 'none'` | Filters in a row below the headers, as a menu per column with match modes and conditions, or none |
1735
- | v-model:show-filters? | `boolean` | Shows the filter row or menus – use with v-model:show-filters (`filterToggle`); the filters keep working |
1737
+ | v-model:show-filters? | `boolean` | Shows the filter row or menus – use with v-model:show-filters (`filterToggle`); the filters keep working. Default true; app-wide `dataTable: { defaultVariants: { showFilters: false } }`, a saved state (`stateKey`) wins |
1736
1738
  | filter-toggle? | `boolean` | Button in the toolbar that shows and hides the filters |
1737
1739
  | filter-reset? | `boolean` | Button in the toolbar that clears the column filters, the search and the advanced filter (`resetFilters()`) |
1738
1740
  | max-constraints? | `number` | Conditions per column in the filter menu |
@@ -1766,9 +1768,10 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1766
1768
  | density-toggle? | `boolean` | Menu above the table to change the row height |
1767
1769
  | gridlines? | `boolean` | Lines between the columns |
1768
1770
  | bordered? | `boolean` | A border around the whole table |
1769
- | striped? | `boolean` | Every other row tinted |
1771
+ | striped? | `boolean` | Every other row tinted (app-wide: `dataTable: { defaultVariants: { striped: true } }`) |
1770
1772
  | fullscreen-toggle? | `boolean` | Button above the table to show it on the whole screen |
1771
- | scroll-height? | `string` | Fixed height (CSS length): the table scrolls inside, header and footer stay visible |
1773
+ | scroll-height? | `string` | Height of the scroll area: a CSS length (its maximum – the table scrolls inside, header and footer stay visible) or `fill`: the table takes the rest of a flex column (e.g. a page with `min-h-screen flex flex-col`), the rows scroll in the room left – set `minScrollHeight` so it does not collapse on small screens |
1774
+ | min-scroll-height? | `string` | `scrollHeight="fill"`: minimum height of the scroll area (CSS length, e.g. 60vh) – below it the page scrolls |
1772
1775
  | features? | `readonly DataTableFeature[]` | Feature modules, imported on their own so apps only bundle what they use (fixed for the life of the table): `virtualRows` from `/virtual` for `virtual`, `dateInput` and `numberInput` for date and number filters and editors (without them the browser's inputs) |
1773
1776
  | virtual? | `boolean` | Only the visible rows are rendered (requires `scrollHeight` and the feature `virtualRows`) |
1774
1777
  | row-height? | `number` | Estimated row height in px for `virtual` |
@@ -1818,9 +1821,9 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1818
1821
  | #option-<id> | `{ item: unknown; selected: boolean; highlighted: boolean; disabled: boolean; }` | An option in the select filter and editor lists of a column, by column id – e.g. a status as a badge |
1819
1822
  | #expansion | `{ row: TData; rowId: string }` | Details below an expanded row – adds the expand column |
1820
1823
  | #advancedFilter | `DataTableAdvancedFilterProps` | The editor of the advanced filter, e.g. ConditionBuilder from `@wirecore/wirelayer-blocks-vue`: `<template #advancedFilter="{ fields, value, setValue, label }">` |
1821
- | #toolbar | – | Own controls in the toolbar, after the search |
1822
- | #toolbarStart | – | Own controls at the start of the toolbar, before the search |
1823
- | #toolbarEnd | – | Own controls at the end of the toolbar, before the built-in buttons |
1824
+ | #toolbar | – | Own controls in the toolbar, after the search – buttons, fields and menus default to the toolbar size (sm) |
1825
+ | #toolbarStart | – | Own controls at the start of the toolbar, before the search (default size sm, like the built-in ones) |
1826
+ | #toolbarEnd | – | Own controls at the end of the toolbar, before the built-in buttons (default size sm, like them) |
1824
1827
  | #empty | – | Shown when there are no rows |
1825
1828
  | #noResults | – | Shown when the filters or the search leave no row (default: `empty`) |
1826
1829
  | #loadingContent | – | Shown while loading without rows (default: spinner and "Loading") |
@@ -1889,7 +1892,8 @@ Date field: type the digits one after another (the separators come from the loca
1889
1892
  | default-value? | `T` | |
1890
1893
  | selection-mode? | `'single' \| 'multiple'` | One date or several dates (the field lists them, the calendar toggles days) |
1891
1894
  | value-type? | `DateValueType` | What v-model gets: ISO strings (default) or Date objects |
1892
- | with-time? | `boolean` | Adds hour and minute to the field |
1895
+ | with-time? | `boolean` | Adds hour and minute to the field and below the calendar (picking a day keeps it open, Escape discards) |
1896
+ | time-in-popup? | `boolean` | withTime: the time below the calendar as well (default true); false: in the field only |
1893
1897
  | min? | `DateLike` | Earliest selectable date (ISO or Date) |
1894
1898
  | max? | `DateLike` | Latest selectable date (ISO or Date) |
1895
1899
  | is-date-unavailable? | `(date: string) => boolean` | Dates that cannot be chosen, e.g. weekends – receives the ISO date |
@@ -1938,7 +1942,8 @@ Start and end in one field ("10/20/2026 – 10/24/2026"); the calendar picks sta
1938
1942
  | v-model? (modelValue) | `T \| null` | Start and end – use with v-model; Date objects and ISO strings with offset are accepted too |
1939
1943
  | default-value? | `T \| null` | |
1940
1944
  | value-type? | `DateValueType` | What v-model gets: ISO strings (default) or Date objects |
1941
- | with-time? | `boolean` | Adds hour and minute to both dates |
1945
+ | with-time? | `boolean` | Adds hour and minute to both dates, in the field and below the calendar ("Start", "End"); a new range keeps the times, without them start 00:00 and end 23:59 |
1946
+ | time-in-popup? | `boolean` | withTime: the times below the calendar as well (default true); false: in the field only |
1942
1947
  | min? | `DateLike` | Earliest selectable date (ISO or Date) |
1943
1948
  | max? | `DateLike` | Latest selectable date (ISO or Date) |
1944
1949
  | is-date-unavailable? | `(date: string) => boolean` | Dates that cannot be chosen, e.g. weekends – receives the ISO date |
@@ -2041,8 +2046,8 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
2041
2046
  | Prop | Type | Description |
2042
2047
  | --- | --- | --- |
2043
2048
  | title | `string` | |
2044
- | hide-title? | `boolean` | The title only for screen readers – it still names the dialog (e.g. a video in a dialog) |
2045
- | title-position? | `'body' \| 'header'` | `body` (default): the title below the header row; `header`: in the row of the close button, after a smaller icon, the header separated by a line (as on the Drawer) |
2049
+ | hide-title? | `boolean` | The title only for screen readers – it still names the dialog (e.g. a video in a dialog). With the `#header` slot this is the default; `false` shows the title where `titlePosition` puts it |
2050
+ | title-position? | `'body' \| 'header'` | `body` (default): the title below the header row; `header`: in the row of the close button, after a smaller icon, the header separated by a line (as on the Drawer). App-wide default: `titleInHeader` in the `defaultVariants` of the `dialog` recipe (RecipesProvider/ConfigProvider) |
2046
2051
  | description? | `string` | |
2047
2052
  | icon? | `Component` | Icon component in the coloured box at the top |
2048
2053
  | status? | `DialogStatus` | |
@@ -2054,7 +2059,7 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
2054
2059
  | default-maximized? | `boolean` | |
2055
2060
  | draggable? | `boolean` | Moved by dragging the header; the keyboard moves it with Alt + arrow keys (Shift: larger steps) |
2056
2061
  | closable? | `boolean` | Shows the close button in the header |
2057
- | scroll-behavior? | `'inside' \| 'outside'` | `inside`: only the body scrolls, header and footer stay in place; `outside` (default): the whole dialog scrolls |
2062
+ | scroll-behavior? | `'inside' \| 'outside'` | `inside`: only the body scrolls, header and footer stay in place (long forms keep title and buttons in view); `outside` (default): the whole dialog scrolls – taller than the window, it starts at the top |
2058
2063
  | responsive? | `boolean` | Full width on small screens (below 640px) |
2059
2064
  | close-label? | `string` | Accessible name of the close button |
2060
2065
  | maximize-label? | `string` | Accessible names of the maximize button: maximize / restore |
@@ -2068,6 +2073,7 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
2068
2073
 
2069
2074
  | Slot | Slot props | Description |
2070
2075
  | --- | --- | --- |
2076
+ | #header | – | Own content in the header row, after the icon and before the close button – e.g. a logo or a badge; the title then only names the dialog for screen readers (unless `hide-title` is `false`) |
2071
2077
  | #default | – | The content below the title |
2072
2078
  | #footer | – | Buttons at the bottom, e.g. Cancel and Save (right-aligned) |
2073
2079
 
@@ -2186,7 +2192,7 @@ The panel of a Drawer, sliding in from a side; title, focus trap, Escape closes
2186
2192
  | Prop | Type | Description |
2187
2193
  | --- | --- | --- |
2188
2194
  | title | `string` | |
2189
- | hide-title? | `boolean` | The title only for screen readers – it still names the drawer (e.g. a video in a dialog) |
2195
+ | hide-title? | `boolean` | The title only for screen readers – it still names the drawer (e.g. a video in a dialog). With the `#header` slot this is the default; `false` shows the title next to the slot content |
2190
2196
  | description? | `string` | |
2191
2197
  | placement? | `DrawerPlacement` | |
2192
2198
  | size? | `OverlaySize` | Width (left/right: sm 320px, md 420px, lg 560px, xl 720px) or height (top/bottom: 30–85 % of the screen); `full` covers the whole screen. Without it 420px wide or as high as the content |
@@ -2197,6 +2203,7 @@ The panel of a Drawer, sliding in from a side; title, focus trap, Escape closes
2197
2203
 
2198
2204
  | Slot | Slot props | Description |
2199
2205
  | --- | --- | --- |
2206
+ | #header | – | Own content in the header row, before the close button – e.g. the logo of the app; the title then only names the drawer for screen readers (unless `hide-title` is `false`) |
2200
2207
  | #default | – | The content below the title (scrolls) |
2201
2208
  | #footer | – | Buttons at the bottom, e.g. Cancel and Save |
2202
2209
 
@@ -3898,6 +3905,9 @@ Bell with the unread count (part of its name) that opens the notifications in a
3898
3905
  | display? | `'popover' \| 'drawer'` | popover (default) next to the bell, or drawer from the side |
3899
3906
  | v-model:open? | `boolean` | Controlled state – use with v-model:open |
3900
3907
  | label? | `string` | Name of the bell and title of the panel (default "Notifications") |
3908
+ | variant? | `IconButtonVariant` | Look of the bell (IconButton `variant`), e.g. `outline` next to other outlined buttons in a header (default `text`) |
3909
+ | color? | `ButtonColor` | Colour of the bell, combined with the variant (IconButton `color`) |
3910
+ | size? | `ButtonSize` | Size of the bell (IconButton `size`), e.g. `sm` in a compact header |
3901
3911
  | now? | `Date \| string` | Reference time for "Today"/"Yesterday" (default: now) |
3902
3912
  | empty-text? | `string` | Text without notifications (default "No notifications") |
3903
3913
  | classes? | `RecipeClasses<typeof notificationCenterRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
@@ -6469,6 +6479,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
6469
6479
  - `createValidator` (`@wirecore/wirelayer-vue/form`): –
6470
6480
  - `dataSourceToRows` (`@wirecore/wirelayer-vue/data-table`): –
6471
6481
  - `dateInput` (`@wirecore/wirelayer-vue/data-table`): DataTable feature: the DatePicker for `date` and `datetime` filters and editors (without: the browser's date input)
6482
+ - `dateRangeInput` (`@wirecore/wirelayer-vue/data-table`): DataTable feature: the DateRangePicker for `between` filters of `date` and `datetime` columns – one field for from and to (without: two fields)
6472
6483
  - `defaultBubbleTools` (`@wirecore/wirelayer-vue/editor`): Tools of the bubble menu (text selected) by default
6473
6484
  - `defaultEmojis` (`@wirecore/wirelayer-vue`): –
6474
6485
  - `defaultFloatingTools` (`@wirecore/wirelayer-vue/editor`): Tools of the floating menu (empty line) by default
@@ -6546,6 +6557,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
6546
6557
  - `useMediaQuery` (`@wirecore/wirelayer-vue`): Whether a media query matches, e.g. `useMediaQuery('(min-width: 768px)')` – updates when it changes
6547
6558
  - `useNetwork` (`@wirecore/wirelayer-vue`): Online state and connection quality (where the browser tells) – online on the server
6548
6559
  - `useRecipe` (`@wirecore/wirelayer-vue`): The recipe with the defaults and classes of the nearest RecipesProvider and the component's `classes` prop. Call it in setup; it reads both on every call, so a computed or render that calls it follows changes.
6560
+ - `useRecipeDefaults` (`@wirecore/wirelayer-vue`): The default variants of a recipe – its own, overridden by the nearest RecipesProvider. For props that change the markup as well as the classes (DialogContent `titlePosition` ↔ `titleInHeader`, DataTable `showFilters` …): the component reads the default here when the prop is not set. Call it in setup; the getter follows changes.
6549
6561
  - `useReducedMotion` (`@wirecore/wirelayer-vue`): Whether the user asked for less motion (prefers-reduced-motion: reduce)
6550
6562
  - `useRegisteredHotkeys` (`@wirecore/wirelayer-vue`): The registered shortcuts (enabled, with a description), updated as components register them
6551
6563
  - `useResizeObserver` (`@wirecore/wirelayer-vue`): The content box of an element as it changes (bind `ref` to it)
@@ -6817,6 +6829,23 @@ const recipes: RecipeConfig = {
6817
6829
  };
6818
6830
  ```
6819
6831
 
6832
+ Some defaults change more than classes – where the title of a dialog sits, for example. They are variants of the recipe
6833
+ as well, so the same `defaultVariants` set them once for the whole app; a prop on the single component still wins:
6834
+
6835
+ | Recipe default | Instead of on every component |
6836
+ | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
6837
+ | `dialog: { defaultVariants: { titleInHeader: true } }` | `DialogContent title-position="header"`, also `confirm()`, `prompt()` and `openDialog()` (option `titlePosition`) |
6838
+ | `dataTable: { defaultVariants: { showFilters: false } }` | `DataTable :show-filters="false"` – filters closed at the start (a saved `stateKey` state still wins) |
6839
+ | `dataTable: { defaultVariants: { searchCentered: true } }` | `DataTable search-align="center"` – the search between the actions at the start and the tools at the end |
6840
+ | `dataTable: { defaultVariants: { sortable: true } }` | `DataTable sortable` – every column with a value sorts (not `sortable: false`, not a slot-only column) |
6841
+ | `dataTable: { defaultVariants: { striped: true } }` | `DataTable striped` – the same for `gridlines`, `bordered`, `wrapHeaders`, `verticalHeaders` |
6842
+
6843
+ Own buttons, fields and menus in the toolbar slots of a DataTable (`#toolbar`, `#toolbarStart`, `#toolbarEnd`) default
6844
+ to the size of the built-in toolbar controls (`sm`); a `size` on them still wins. A text filter shows the placeholder
6845
+ “Filter …” (translations `dataTable.filterText`) unless the column's `filterInputProps` has one.
6846
+
6847
+ React Native has no `RecipesProvider`; there the props stay on the single component.
6848
+
6820
6849
  Per part the classes come in this order: `classes`, the matching `variants` and `compoundVariants`, the states of the
6821
6850
  recipe, the overrides of states (`invalid: { true: … }`), and last the class passed to the component. Inner providers
6822
6851
  extend outer ones (classes of the same value are joined, the inner ones win).
@@ -6883,11 +6912,12 @@ import { DataTable } from '@wirecore/wirelayer-react/data-table';
6883
6912
  Parts of the DataTable that bring a lot of code along are imported on their own – an app only bundles the ones it passes
6884
6913
  in `features` (fixed for the life of a table). The DatePicker alone is about 40 KB (gzip).
6885
6914
 
6886
- | Feature | Import | Adds | Without it |
6887
- | ------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------- |
6888
- | `virtualRows` | `@wirecore/wirelayer-react/virtual` (peer dependency TanStack Virtual) | only the visible rows are rendered with `virtual` | all rows are rendered, a hint in development |
6889
- | `dateInput` | `@wirecore/wirelayer-react/data-table` | DatePicker for `date` and `datetime` filters/editors | the browser's date input |
6890
- | `numberInput` | `@wirecore/wirelayer-react/data-table` | NumberInput for `number` filters and editors | the browser's number input |
6915
+ | Feature | Import | Adds | Without it |
6916
+ | ---------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------- |
6917
+ | `virtualRows` | `@wirecore/wirelayer-react/virtual` (peer dependency TanStack Virtual) | only the visible rows are rendered with `virtual` | all rows are rendered, a hint in development |
6918
+ | `dateInput` | `@wirecore/wirelayer-react/data-table` | DatePicker for `date` and `datetime` filters/editors | the browser's date input |
6919
+ | `numberInput` | `@wirecore/wirelayer-react/data-table` | NumberInput for `number` filters and editors | the browser's number input |
6920
+ | `dateRangeInput` | `@wirecore/wirelayer-react/data-table` | one DateRangePicker for `between` filters of dates | two fields (from, to) |
6891
6921
 
6892
6922
  ```tsx
6893
6923
  import { DataTable, dateInput, numberInput } from '@wirecore/wirelayer-react/data-table';
@@ -6905,6 +6935,18 @@ const features = [virtualRows, dateInput, numberInput];
6905
6935
 
6906
6936
  Vue: the same imports from `@wirecore/wirelayer-vue/data-table` and `@wirecore/wirelayer-vue/virtual`.
6907
6937
 
6938
+ `scrollHeight` takes a CSS length – the maximum height, the rows scroll inside – or `fill`: the table takes the rest of a
6939
+ flex column and the rows scroll in the room left down to its bottom, whatever is above it (headings, figures that wrap on
6940
+ narrow screens). `minScrollHeight` keeps it from collapsing; below that the page scrolls.
6941
+
6942
+ ```vue
6943
+ <main class="flex min-h-screen flex-col gap-4 p-6">
6944
+ <PageHeader title="Machines" />
6945
+ <StatsRow />
6946
+ <DataTable :data="rows" :columns="columns" :features="features" scroll-height="fill" min-scroll-height="60vh" virtual />
6947
+ </main>
6948
+ ```
6949
+
6908
6950
  ### AI assistants (MCP, llms.txt)
6909
6951
 
6910
6952
  So that Claude, Cursor and others use the components correctly, the API is available as text and as an MCP server:
@@ -7225,6 +7267,7 @@ as `pdfjs-dist` (Apache-2.0), Chart.js, Tiptap and Shiki are installed by the ap
7225
7267
  | `useToast().add({ severity, summary, detail, life })` | `toast({ type, title, description, duration })`, `<Toaster />` once in the app |
7226
7268
  | `useConfirm().require({ … })` | `await confirm({ title, description, … })`, `<ConfirmDialog />` once in the app |
7227
7269
  | `DataTable` + `Column` | `DataTable :columns` (column objects), `#cell-<id>`, `#expansion`, `v-model:page-size` |
7270
+ | `DataTable scrollHeight="flex"` | `DataTable scroll-height="fill"` (with `min-scroll-height`) in a flex column |
7228
7271
  | `expandedRows` with a row toggler on some rows | `#expansion` + `row-expandable` |
7229
7272
  | `paginatorTemplate` (first/last page) | `paginator-edges`, `paginator-align` |
7230
7273
  | `showGridlines` (with the outer border) | `gridlines` + `bordered` |
@@ -7282,7 +7325,9 @@ as `pdfjs-dist` (Apache-2.0), Chart.js, Tiptap and Shiki are installed by the ap
7282
7325
  - **Typed values:** `RadioGroup`, `SegmentedControl` and `NativeSelect` keep the type of the bound value (unions,
7283
7326
  numbers); `Checkbox` with a boolean model gives booleans.
7284
7327
  - **Compact parts:** `Progress size="xs"` with `hide-label`, `bar-text` and `status`; `Alert #actions`; `mono` on text
7285
- fields; `DialogContent title-position="header"` puts the title next to the close button.
7328
+ fields; `DialogContent title-position="header"` puts the title next to the close button – for all dialogs of the
7329
+ app once centrally instead of on every dialog: `RecipesProvider` with
7330
+ `{ dialog: { defaultVariants: { titleInHeader: true } } }` (also for `confirm()`, `prompt()` and `openDialog()`).
7286
7331
  - **Values that are never empty:** with `required`, `RadioGroup` and `SegmentedControl` give v-model `V` instead of
7287
7332
  `V | null`; `NativeSelect` without `placeholder` gives `V` instead of `V | ''`; `NumberInput empty-fallback="min"` or
7288
7333
  `"previous"` refills an emptied field when it is left (typed `number`). `Select empty-value=""` treats an empty string
@@ -7462,3 +7507,39 @@ Not part of it:
7462
7507
  - Shapes stay round: everything with `rounded-full` (Button and IconButton with the default `shape="pill"` – use
7463
7508
  `shape="rounded"` or `"square"` –, Switch, Badge, Radio, Avatar with `shape="circle"`), the thin bars of Progress, the
7464
7509
  marks of Highlight and the diamond of a Gantt milestone.
7510
+
7511
+ ### Scrollbars
7512
+
7513
+ The page and every scrolling area (DataTable with `scrollHeight`, Dialog and Drawer with long content, lists of Select
7514
+ and Menu, Textarea …) get thin scrollbars in the look of `ScrollPanel`: the thumb in `line-strong` (at least 3:1 against
7515
+ the surfaces, in every theme and mode), the track transparent. They follow the mode and theme of the part they are in.
7516
+ Browsers without `scrollbar-color` (Safari) get the same look through `::-webkit-scrollbar`; with forced colors (Windows
7517
+ contrast themes) the system scrollbars stay.
7518
+
7519
+ | Variable | Default | Applies to |
7520
+ | ---------------------------- | ----------------------- | --------------------------------------------------------------------- |
7521
+ | `--wc-scrollbar-thumb` | `var(--wc-line-strong)` | Thumb |
7522
+ | `--wc-scrollbar-thumb-hover` | `var(--wc-muted)` | Thumb under the pointer (Safari; other browsers darken it themselves) |
7523
+ | `--wc-scrollbar-track` | `transparent` | Track |
7524
+ | `--wc-scrollbar-width` | `thin` | `scrollbar-width` (`auto` for the wide ones) |
7525
+ | `--wc-scrollbar-size` | `6px` | Width of the stroke with `data-scrollbars="slim"` |
7526
+
7527
+ `<html data-scrollbars="native">` keeps the browser's own scrollbars on the whole page. The rules sit in the base layer,
7528
+ so a utility on a single element still wins (e.g. `[scrollbar-width:none]`).
7529
+
7530
+ ### Slim scrollbars
7531
+
7532
+ `thin` is drawn by the browser: in Chrome and Edge (above all on Windows) a narrow but system-like bar, depending on the
7533
+ version with arrow buttons and a square thumb. `data-scrollbars="slim"` – on `<html>` for the whole page, or on any
7534
+ element for that part – draws a narrow, rounded stroke instead: `--wc-scrollbar-size` wide (6px), 2px off the edge, no
7535
+ arrow buttons, the track transparent; under the pointer and while dragging the thumb takes the full 10px and the
7536
+ `--wc-scrollbar-thumb-hover` colour, so it is easy to grab. The colours are the same tokens as above – at least 3:1
7537
+ against the surfaces, in light and dark and in parts with their own `data-mode`.
7538
+
7539
+ ```html
7540
+ <html data-scrollbars="slim"></html>
7541
+ ```
7542
+
7543
+ Chromium and Safari get it through `::-webkit-scrollbar` (Chromium ignores those rules while `scrollbar-width` or
7544
+ `scrollbar-color` is set, so slim sets both to `auto` there); Firefox has no `::-webkit-scrollbar` and keeps `thin` in
7545
+ the theme colours. With forced colors (Windows contrast themes) the system scrollbars stay.
package/llms.txt CHANGED
@@ -315,3 +315,4 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
315
315
  - Custom theme
316
316
  - Second brand color and hover color
317
317
  - Component sizes and shapes
318
+ - Scrollbars
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecore/wirelayer-vue",
3
- "version": "0.12.2",
3
+ "version": "0.14.0",
4
4
  "description": "WireLayer components for Vue 3",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -166,8 +166,8 @@
166
166
  "@ark-ui/vue": "^5.39.3",
167
167
  "@internationalized/date": "^3.12.4",
168
168
  "@lucide/vue": "^1.59.0",
169
- "@wirecore/wirelayer-recipes": "^0.11.0",
170
- "@wirecore/wirelayer-tokens": "^0.7.0"
169
+ "@wirecore/wirelayer-recipes": "^0.13.0",
170
+ "@wirecore/wirelayer-tokens": "^0.9.0"
171
171
  },
172
172
  "devDependencies": {
173
173
  "@storybook/addon-a11y": "^10.6.2",