@neovici/cosmoz-autocomplete 4.0.0 → 5.0.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/cosmoz-listbox.js +3 -3
- package/lib/autocomplete.js +2 -2
- package/lib/use-autocomplete.js +2 -2
- package/lib/use-keyboard.js +1 -1
- package/lib/use-keys.js +1 -1
- package/lib/use-listbox.js +1 -1
- package/lib/utils.js +3 -3
- package/package.json +4 -4
package/cosmoz-listbox.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { html, component, useEffect } from 'haunted';
|
|
2
2
|
import { virtualize } from '@lit-labs/virtualizer/virtualize.js';
|
|
3
3
|
import { tagged as css } from '@neovici/cosmoz-utils';
|
|
4
|
-
import { portal } from '@neovici/cosmoz-utils/
|
|
5
|
-
import { spreadProps } from '@neovici/cosmoz-utils/
|
|
6
|
-
import { props } from '@neovici/cosmoz-utils/
|
|
4
|
+
import { portal } from '@neovici/cosmoz-utils/directives/portal';
|
|
5
|
+
import { spreadProps } from '@neovici/cosmoz-utils/directives/spread-props';
|
|
6
|
+
import { props } from '@neovici/cosmoz-utils/object';
|
|
7
7
|
import { useListbox, properties } from './lib/use-listbox';
|
|
8
8
|
import { scrollIntoViewIfNeeded } from './lib/utils';
|
|
9
9
|
|
package/lib/autocomplete.js
CHANGED
|
@@ -2,8 +2,8 @@ import { html, nothing } from 'lit-html'; // eslint-disable-line object-curly-ne
|
|
|
2
2
|
import { live } from 'lit-html/directives/live.js';
|
|
3
3
|
import { until } from 'lit-html/directives/until.js';
|
|
4
4
|
import { useCallback } from 'haunted';
|
|
5
|
-
import { useHost } from '@neovici/cosmoz-utils/
|
|
6
|
-
import { array } from '@neovici/cosmoz-utils/
|
|
5
|
+
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
|
|
6
|
+
import { array } from '@neovici/cosmoz-utils/array';
|
|
7
7
|
import '@neovici/cosmoz-input';
|
|
8
8
|
import { useAutocomplete } from './use-autocomplete';
|
|
9
9
|
import { listbox } from '../cosmoz-listbox';
|
package/lib/use-autocomplete.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
without, search, strProp, prop, array
|
|
6
6
|
} from './utils';
|
|
7
|
-
import { useHost } from '@neovici/cosmoz-utils/
|
|
8
|
-
import { useMeta } from '@neovici/cosmoz-utils/
|
|
7
|
+
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
|
|
8
|
+
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';
|
|
9
9
|
import { useFocus } from '@neovici/cosmoz-dropdown/src/use-focus.js';
|
|
10
10
|
import { useKeys } from './use-keys';
|
|
11
11
|
|
package/lib/use-keyboard.js
CHANGED
package/lib/use-keys.js
CHANGED
package/lib/use-listbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState, useMemo } from 'haunted';
|
|
2
|
-
import { useMeta } from '@neovici/cosmoz-utils/
|
|
2
|
+
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';
|
|
3
3
|
import { usePosition } from '@neovici/cosmoz-dropdown/src/use-position.js';
|
|
4
4
|
import { useKeyboard } from './use-keyboard';
|
|
5
5
|
import defaultItemRenderer from './item-renderer';
|
package/lib/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
2
|
|
|
3
|
-
import { identity } from '@neovici/cosmoz-utils/
|
|
4
|
-
import { array, without } from '@neovici/cosmoz-utils/
|
|
5
|
-
import { prop, strProp } from '@neovici/cosmoz-utils/
|
|
3
|
+
import { identity } from '@neovici/cosmoz-utils/function';
|
|
4
|
+
import { array, without } from '@neovici/cosmoz-utils/array';
|
|
5
|
+
import { prop, strProp } from '@neovici/cosmoz-utils/object';
|
|
6
6
|
|
|
7
7
|
const mark = (text, query) => {
|
|
8
8
|
if (!query || !text) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-autocomplete",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A autocomplete input web component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit-html",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@lit-labs/virtualizer": "^0.7.0",
|
|
66
|
-
"@neovici/cosmoz-dropdown": "^
|
|
67
|
-
"@neovici/cosmoz-input": "^
|
|
68
|
-
"@neovici/cosmoz-utils": "^
|
|
66
|
+
"@neovici/cosmoz-dropdown": "^3.0.0",
|
|
67
|
+
"@neovici/cosmoz-input": "^3.0.0",
|
|
68
|
+
"@neovici/cosmoz-utils": "^5.0.0",
|
|
69
69
|
"haunted": "^5.0.0",
|
|
70
70
|
"lit-html": "^2.0.0",
|
|
71
71
|
"position.js": "^0.3.0"
|