@onsvisual/svelte-components 1.0.55 → 1.0.57
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { onMount, createEventDispatcher } from "svelte";
|
|
4
|
-
import accessibleAutocomplete from "accessible-autocomplete";
|
|
5
4
|
import Dropdown from "../Dropdown/Dropdown.svelte";
|
|
6
5
|
import Input from "../Input/Input.svelte";
|
|
7
6
|
|
|
@@ -12,6 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
let mounted = false;
|
|
14
13
|
let inputElement;
|
|
14
|
+
let accessibleAutocomplete;
|
|
15
15
|
let hideMenu = false;
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -160,7 +160,9 @@
|
|
|
160
160
|
if (!e.target.value) select(null);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
function initAutocomplete(element) {
|
|
163
|
+
async function initAutocomplete(element) {
|
|
164
|
+
if (!accessibleAutocomplete) accessibleAutocomplete = (await import("accessible-autocomplete")).default;
|
|
165
|
+
|
|
164
166
|
accessibleAutocomplete({
|
|
165
167
|
element,
|
|
166
168
|
id,
|
|
@@ -195,7 +197,9 @@
|
|
|
195
197
|
}
|
|
196
198
|
$: bindInputValue(value);
|
|
197
199
|
|
|
198
|
-
onMount(() =>
|
|
200
|
+
onMount(async () => {
|
|
201
|
+
mounted = true;
|
|
202
|
+
});
|
|
199
203
|
</script>
|
|
200
204
|
|
|
201
205
|
{#if renderFallback && !mounted}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onsvisual/svelte-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "npm run build:package && npm run build:docs",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"./css/main.css": "./dist/css/main.css"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
+
"accessible-autocomplete": "^3.0.1",
|
|
40
41
|
"d3-scale": "^4.0.2",
|
|
41
42
|
"d3-shape": "^3.2.0",
|
|
42
43
|
"parse-color": "^1.0.0",
|
|
@@ -62,7 +63,6 @@
|
|
|
62
63
|
"@types/node": "^20",
|
|
63
64
|
"@vitest/browser": "3.2.3",
|
|
64
65
|
"@vitest/coverage-v8": "3.2.3",
|
|
65
|
-
"accessible-autocomplete": "^3.0.1",
|
|
66
66
|
"csso": "^5.0.5",
|
|
67
67
|
"eslint": "^9.18.0",
|
|
68
68
|
"eslint-config-prettier": "^10.0.1",
|