@txstate-mws/svelte-components 1.4.3 → 1.4.5
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.
|
@@ -16,6 +16,7 @@ export let selected = [];
|
|
|
16
16
|
export let placeholder = '';
|
|
17
17
|
export let emptyText = undefined;
|
|
18
18
|
export let usePortal = undefined;
|
|
19
|
+
export let descid = undefined;
|
|
19
20
|
export let PopupMenu = DefaultPopupMenu;
|
|
20
21
|
let menushown;
|
|
21
22
|
let loading = false;
|
|
@@ -24,7 +25,6 @@ let hilitedpill;
|
|
|
24
25
|
let inputvalue = '';
|
|
25
26
|
let popupvalue = undefined;
|
|
26
27
|
let inputelement;
|
|
27
|
-
const descriptionid = randomid();
|
|
28
28
|
const dispatch = createEventDispatcher();
|
|
29
29
|
const optionsCache = new Cache(async (ipt) => {
|
|
30
30
|
return await getOptions(ipt);
|
|
@@ -132,10 +132,10 @@ $: reactToHilite(hilitedpill, id);
|
|
|
132
132
|
bind:this={inputelement} bind:value={inputvalue} on:blur
|
|
133
133
|
on:focus={inputfocus} on:keydown={inputkeydown}
|
|
134
134
|
autocomplete="off" autocorrect="off" spellcheck="false" aria-autocomplete="list"
|
|
135
|
-
aria-describedby=
|
|
135
|
+
aria-describedby={descid}>
|
|
136
136
|
</li>
|
|
137
137
|
</ul>
|
|
138
|
-
<ScreenReaderOnly
|
|
138
|
+
<ScreenReaderOnly arialive="assertive">
|
|
139
139
|
<span>{selected.length ? selected.length + ' selected' : 'none selected'}, select {maxSelections ? 'up to ' + maxSelections : 'multiple'}, up down to choose, left right to hilite existing choices</span>
|
|
140
140
|
{#if menushown}<span>{availablemessage}, touch users explore to find autocomplete menu</span>{/if}
|
|
141
141
|
</ScreenReaderOnly>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txstate-mws/svelte-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "Svelte components that are generically useful.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "svelte-package",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"svelte": "^3.44.0"
|
|
38
38
|
},
|
|
39
39
|
"type": "module",
|
|
40
|
+
"main": "./dist/index.js",
|
|
40
41
|
"exports": {
|
|
41
42
|
".": {
|
|
42
43
|
"types": "./dist/index.d.ts",
|