@zoobzio/nuxt 0.1.8 → 0.1.9

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/README.md CHANGED
@@ -382,7 +382,8 @@ The options are the headless config with the behavior joined on. An action
382
382
  is its descriptor and its handler under one key (`{ label, action }`); the
383
383
  factory splits them back into the config and the wiring the service takes.
384
384
  `initial` is the slice of the state container the consumer chooses (for a
385
- table: paging, sort, selection, column order, committed query), never what
385
+ table: paging, sort, selection, column order, column widths, committed
386
+ query), never what
386
387
  a fetch fills in. It seeds the `useState` record on first access, so it
387
388
  must be something Nuxt's payload can carry: plain data, with `Set` and
388
389
  `Date` allowed (devalue serializes them). A second id with the same
@@ -8,7 +8,8 @@
8
8
  // head draws `drag` on each handle, a column's own `icon` before its
9
9
  // header, and `sort-asc` or `sort-desc` after a sorted header; a bulk action
10
10
  // draws its own `icon`. Its own text — the toolbar's labels and
11
- // placeholders, the empty state, the clear button — reads in the
11
+ // placeholders, the empty state, the clear button, the name of a column's
12
+ // resizer — reads in the
12
13
  // visitor's locale, and a date, number, currency, file size or boolean
13
14
  // cell formats through the app's prosary service, a date or a datetime in
14
15
  // the table's time zone.
@@ -43,8 +44,11 @@ export default wrap(Core, {
43
44
  },
44
45
  refresh: { label: text("table.refresh"), ...pt?.refresh },
45
46
  pagination: { as: Pagination, ...pt?.pagination },
46
- head: layer<TableHeadPassthrough>(pt?.head, {
47
+ head: layer<TableHeadPassthrough<unknown>>(pt?.head, {
47
48
  selectAllCheckbox: { as: Checkbox },
49
+ resizer: (column) => ({
50
+ "aria-label": text("table.resize", { column: text(column.label) }),
51
+ }),
48
52
  }),
49
53
  body: layer<TableBodyPassthrough<unknown>>(pt?.body, {
50
54
  link: () => ({ as: NuxtLink }),
@@ -24,7 +24,8 @@ export type TableBulkAction = Bound<ActionDescriptor, BulkAction["action"]>;
24
24
 
25
25
  /**
26
26
  * The slice of the state container a table may start from: the paging,
27
- * sort, selection, column order, and committed query the consumer chooses,
27
+ * sort, selection, column order, column widths, and committed query the
28
+ * consumer chooses,
28
29
  * never what a fetch fills in. It seeds the `useState` record, so it must
29
30
  * survive Nuxt's payload (devalue carries the `Set`).
30
31
  */
@@ -37,6 +38,7 @@ export type TableInitial<T> = Partial<
37
38
  | "sortDirection"
38
39
  | "selected"
39
40
  | "columnOrder"
41
+ | "columnWidths"
40
42
  | "entries"
41
43
  >
42
44
  >;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoobzio/nuxt",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Nuxt layer for the foundation design system: the Nuxt wiring over @zoobzio/vue and the headless services (useState stores, hook-bus factories, app shell).",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -38,25 +38,25 @@
38
38
  "dependencies": {
39
39
  "@icon-sheets/nuxt": "0.0.8",
40
40
  "@nuxt/kit": "^4.5.0",
41
- "@prosary/nuxt": "0.0.10",
41
+ "@prosary/nuxt": "0.0.11",
42
42
  "@untheme/nuxt": "^0.6.1",
43
43
  "@vueuse/core": "^14.3.0",
44
44
  "ltrl-http": "^0.0.20",
45
45
  "objectively": "^0.3.0",
46
- "prosary": "0.0.10",
46
+ "prosary": "0.0.11",
47
47
  "reka-ui": "^2.6.0",
48
48
  "untheme": "^0.6.1",
49
- "@zoobzio/browser": "0.1.8",
50
- "@zoobzio/editor": "0.1.8",
51
- "@zoobzio/form": "0.1.8",
52
- "@zoobzio/code": "0.1.8",
53
- "@zoobzio/icons": "0.1.8",
54
- "@zoobzio/prose": "0.1.8",
55
- "@zoobzio/kit": "0.1.8",
56
- "@zoobzio/query": "0.1.8",
57
- "@zoobzio/table": "0.1.8",
58
- "@zoobzio/theme": "0.1.8",
59
- "@zoobzio/vue": "0.1.8"
49
+ "@zoobzio/browser": "0.1.9",
50
+ "@zoobzio/code": "0.1.9",
51
+ "@zoobzio/editor": "0.1.9",
52
+ "@zoobzio/form": "0.1.9",
53
+ "@zoobzio/icons": "0.1.9",
54
+ "@zoobzio/kit": "0.1.9",
55
+ "@zoobzio/prose": "0.1.9",
56
+ "@zoobzio/query": "0.1.9",
57
+ "@zoobzio/table": "0.1.9",
58
+ "@zoobzio/theme": "0.1.9",
59
+ "@zoobzio/vue": "0.1.9"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@codemirror/state": "^6.7.6",