@zoobzio/nuxt 0.0.14 → 0.1.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.
- package/README.md +4 -3
- package/app/app.d.ts +6 -0
- package/app/components/autocomplete.ts +2 -1
- package/app/components/table.ts +4 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -152,9 +152,10 @@ option that enters a stage (a field or an operator) and `expand` after the
|
|
|
152
152
|
active trail option whose stage is open, and the pagination's `first`,
|
|
153
153
|
`prev`, `next`, and `last`. The table's search renders through the
|
|
154
154
|
layer's `TableSearch`: its Autocomplete with the `magic` icon in
|
|
155
|
-
`inputPrepend
|
|
156
|
-
`
|
|
157
|
-
the
|
|
155
|
+
`inputPrepend` at the front of the field, before its chips, the search
|
|
156
|
+
key (`TABLE_SEARCH_KEY`, `/`) as a `kbd` in `inputAppend`, and that key
|
|
157
|
+
focusing the input from anywhere on the page the user is not already
|
|
158
|
+
typing, through `useFocusKey`. A slot
|
|
158
159
|
that replaces a Fab renders the part with the icon as its content, so the
|
|
159
160
|
label stays the button's `aria-label` and the visible text goes. The
|
|
160
161
|
facets', keywords', and date filters' triggers draw `filter`, `keywords`,
|
package/app/app.d.ts
CHANGED
|
@@ -44,10 +44,16 @@ declare module "@zoobzio/vue/types/components/facets" {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
// A column's `icon` is drawn before its header, and carried onto its query
|
|
48
|
+
// field by the table and onto its column-manager option by the vue table,
|
|
49
|
+
// so the search and the manager draw it beside the column's label.
|
|
47
50
|
declare module "@zoobzio/table" {
|
|
48
51
|
interface ActionDescriptor {
|
|
49
52
|
icon?: IconAlias;
|
|
50
53
|
}
|
|
54
|
+
interface DataTableColumn<T> {
|
|
55
|
+
icon?: IconAlias;
|
|
56
|
+
}
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
// A query field's `icon` is carried onto its option by the service, so the
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The vue autocomplete with the layer's Scroller as the viewport of its
|
|
2
|
-
//
|
|
2
|
+
// first panel (the active panel renders with no scroller once a group has
|
|
3
|
+
// an option set), the `remove` icon after each chip's label (the chip is the
|
|
3
4
|
// button that removes its entry), an option's `icon` before its label, and
|
|
4
5
|
// an arrow after an option that branches: `next` on a field or operator
|
|
5
6
|
// option, as selecting it enters a stage, and `expand` on an active trail
|
package/app/components/table.ts
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
// Autocomplete with the `magic` icon, the `/` key hint, and the `/` key
|
|
6
6
|
// focusing it) as the search, and the layer's Pagination.
|
|
7
7
|
// Its Fab slots draw the `refresh`, `columns`, and `actions` icons; the
|
|
8
|
-
// head draws `drag` on each handle
|
|
9
|
-
// sorted header; a bulk action
|
|
8
|
+
// head draws `drag` on each handle, a column's own `icon` before its
|
|
9
|
+
// header, and `sort-asc` or `sort-desc` after a sorted header; a bulk action
|
|
10
|
+
// draws its own `icon`.
|
|
10
11
|
import type { TableBodyPassthrough } from "@zoobzio/vue/types/components/table-body";
|
|
11
12
|
import type { TableColumnsPassthrough } from "@zoobzio/vue/types/components/table-columns";
|
|
12
13
|
import type { TableHeadPassthrough } from "@zoobzio/vue/types/components/table-head";
|
|
@@ -45,6 +46,7 @@ export default wrap(Core, {
|
|
|
45
46
|
columns: ({ settings }) => iconPart(settings.trigger, "columns"),
|
|
46
47
|
actions: ({ settings }) => iconPart(settings.actionsTrigger, "actions"),
|
|
47
48
|
dragPrepend: () => [icon("drag")],
|
|
49
|
+
headerPrepend: ({ column }) => iconOf(column.icon),
|
|
48
50
|
headerAppend: ({ table, column }) =>
|
|
49
51
|
table.isSorted(column)
|
|
50
52
|
? [icon(table.sortDirection === "asc" ? "sort-asc" : "sort-desc")]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoobzio/nuxt",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
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": {
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"objectively": "^0.3.0",
|
|
45
45
|
"reka-ui": "^2.6.0",
|
|
46
46
|
"untheme": "^0.6.1",
|
|
47
|
-
"@zoobzio/browser": "0.0
|
|
48
|
-
"@zoobzio/
|
|
49
|
-
"@zoobzio/form": "0.0
|
|
50
|
-
"@zoobzio/
|
|
51
|
-
"@zoobzio/
|
|
52
|
-
"@zoobzio/query": "0.0
|
|
53
|
-
"@zoobzio/theme": "0.0
|
|
54
|
-
"@zoobzio/table": "0.0
|
|
55
|
-
"@zoobzio/vue": "0.0
|
|
47
|
+
"@zoobzio/browser": "0.1.0",
|
|
48
|
+
"@zoobzio/editor": "0.1.0",
|
|
49
|
+
"@zoobzio/form": "0.1.0",
|
|
50
|
+
"@zoobzio/icons": "0.1.0",
|
|
51
|
+
"@zoobzio/code": "0.1.0",
|
|
52
|
+
"@zoobzio/query": "0.1.0",
|
|
53
|
+
"@zoobzio/theme": "0.1.0",
|
|
54
|
+
"@zoobzio/table": "0.1.0",
|
|
55
|
+
"@zoobzio/vue": "0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/state": "^6.7.6",
|