@zoobzio/nuxt 0.1.0 → 0.1.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/README.md CHANGED
@@ -141,15 +141,16 @@ one, and the wrapper's default fills in while it does not. A fixed role
141
141
  draws its alias: `expand` after a select's, multi select's, or
142
142
  accordion's trigger and as a tree branch's toggle; `prev` and `next` on
143
143
  the calendars and pickers and `calendar` on a picker's trigger; `search`
144
- before a command's filter; `remove` on a tag's and a file's remove
144
+ before a command's filter and before the autocomplete's text option, the
145
+ one that opens the quote free text is typed in; `remove` on a tag's and a file's remove
145
146
  button and after an autocomplete chip's label; `close` on a toast's; `top` on a scroller's back-to-top; `check`
146
147
  in a checkbox; the editor's and rich text's tools by key (`bold`,
147
148
  `heading`, `bullet-list`, `undo`, …, see `EDITOR_TOOL_ICONS`); and on
148
149
  the table and browser, `refresh`, `columns`, `actions`, `drag`,
149
150
  `sort-asc` or `sort-desc` after a sorted header, `folder` before a
150
151
  folder, `magic` before the table's search, `next` after an autocomplete
151
- option that enters a stage (a field or an operator) and `expand` after the
152
- active trail option whose stage is open, and the pagination's `first`,
152
+ option that enters a stage (a field, an operator or the text option) and
153
+ `expand` after the active trail option whose stage is open, and the pagination's `first`,
153
154
  `prev`, `next`, and `last`. The table's search renders through the
154
155
  layer's `TableSearch`: its Autocomplete with the `magic` icon in
155
156
  `inputPrepend` at the front of the field, before its chips, the search
@@ -1,11 +1,12 @@
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
3
  // an option set), the `remove` icon after each chip's label (the chip is the
4
- // button that removes its entry), an option's `icon` before its label, and
5
- // an arrow after an option that branches: `next` on a field or operator
6
- // option, as selecting it enters a stage, and `expand` on an active trail
7
- // option, as its stage is the one open. A value option commits, so it
8
- // draws no arrow.
4
+ // button that removes its entry), an option's `icon` before its label, the
5
+ // `search` icon before the text option (the one that opens the quote free
6
+ // text is typed in), and an arrow after an option that branches: `next` on
7
+ // a field, operator or text option, as selecting it enters a stage, and
8
+ // `expand` on an active trail option, as its stage is the one open. A value
9
+ // option commits, so it draws no arrow.
9
10
  import type { QueryOption } from "@zoobzio/vue/types/components/autocomplete";
10
11
  import type { VNode } from "vue";
11
12
 
@@ -15,6 +16,9 @@ import { icon, iconOf } from "./icon";
15
16
  import { wrap } from "@zoobzio/vue/utils/wrap";
16
17
  import Scroller from "./scroller";
17
18
 
19
+ const lead = (option: QueryOption): VNode[] =>
20
+ option.stage === "text" ? [icon("search")] : iconOf(option.icon);
21
+
18
22
  const arrow = (option: QueryOption): VNode[] => {
19
23
  if (option.stage === "value") return [];
20
24
  return [icon(option.active ? "expand" : "next")];
@@ -24,7 +28,7 @@ export default wrap(Core, {
24
28
  pt: { viewport: { as: Scroller } },
25
29
  slots: {
26
30
  chipAppend: () => [icon("remove")],
27
- itemPrepend: ({ option }) => iconOf(option.icon),
31
+ itemPrepend: ({ option }) => lead(option),
28
32
  itemArrow: ({ option }) => arrow(option),
29
33
  },
30
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoobzio/nuxt",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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.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"
47
+ "@zoobzio/browser": "0.1.1",
48
+ "@zoobzio/code": "0.1.1",
49
+ "@zoobzio/editor": "0.1.1",
50
+ "@zoobzio/form": "0.1.1",
51
+ "@zoobzio/icons": "0.1.1",
52
+ "@zoobzio/table": "0.1.1",
53
+ "@zoobzio/query": "0.1.1",
54
+ "@zoobzio/vue": "0.1.1",
55
+ "@zoobzio/theme": "0.1.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@codemirror/state": "^6.7.6",