hyperapp-is 0.1.30 → 0.1.32

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
@@ -677,6 +677,10 @@ vnode
677
677
  <div id={id}>
678
678
  <div class="rapper">
679
679
  <div class="toolBar">
680
+ <div>
681
+ <input type="text" id={id}_searchText list={id}_searchText-history/>
682
+ <datalist id={id}_searchText-history />
683
+ </div>
680
684
  <input type="text" />
681
685
  <button type="button">FILTER</button>
682
686
  </div>
@@ -1,5 +1,6 @@
1
1
  // hyperapp-is / core / navigator.ts
2
2
  import { getValue, setValue, getLocalState, setLocalState, createLocalKey, } from "./state";
3
+ import { HistoryInput } from "./component";
3
4
  import { getScrollMargin } from "../dom/utils";
4
5
  import { el, deleteKeys, SelectButton } from "./component";
5
6
  // ---------- ---------- ---------- ---------- ----------
@@ -255,10 +256,11 @@ export const NavigatorFinder = function (props) {
255
256
  // toolBarNode
256
257
  const toolBarNode = div({
257
258
  class: "toolBar"
258
- }, input({
259
- type: "text",
259
+ }, HistoryInput({
260
+ state,
261
+ id: `${id}_searchText`,
262
+ keyNames: [createLocalKey(id), "searchText"],
260
263
  placeholder: "search keys",
261
- value: localState.searchText,
262
264
  oninput: action_inputSearchText
263
265
  }), button({
264
266
  type: "button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperapp-is",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "UI foundation library for Hyperapp by is4416",
5
5
  "license": "MIT",
6
6
  "type": "module",