Repository navigation
Commit 617f8cc
committed
feat(Typeahead, Tokenizer): open on a package-internal opening query
BaseTypeahead, Typeahead and Tokenizer read a package-internal opening
query, so a Core owner can open a value editor on text the person typed
(component:BaseTypeahead FR18, component:Typeahead FR14,
component:Tokenizer FR31). No caller prop, handle method or export is
added.
- BaseTypeahead mounts holding the text with the caret at its end. Its
search waits for the threshold and the debounce like a keystroke's,
and the list opens only once the input has focus. A field that mounts
with a selected value (Typeahead's token) reads none.
- Tokenizer's inline input holds it as BaseTypeahead does. The sheet's
first open after mount searches it instead of listing the bootstrap
set, also after an adaptive swap, and a close clears it.
- The same input can open Tokenizer's sheet as it mounts. That Tokenizer
renders only its sheet, returns focus to the owner's element, and
tells the owner once the exit has completed. A field disabled at
mount opens none.
BaseTypeahead FR18 and Tokenizer FR31 name the OpeningQueryContext
module and its members, and the three status cells move from the
implementation gap to current behavior.1 parent b05e2e3 commit 617f8cc
12 files changed
Lines changed: 860 additions & 99 deletions
File tree
- .changeset
- docs/specs/components
- Tokenizer
- Typeahead
- packages/core/src
- Tokenizer
- Typeahead
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
4719 | 4720 | | |
4720 | 4721 | | |
4721 | 4722 | | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
0 commit comments