upgraded svelte-select, export fix

This commit is contained in:
Jan Prochazka 2022-02-13 09:14:03 +01:00
parent df52adc40f
commit 391c7a7b8f
3 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@
"svelte-check": "^1.0.0", "svelte-check": "^1.0.0",
"svelte-markdown": "^0.1.4", "svelte-markdown": "^0.1.4",
"svelte-preprocess": "^4.9.5", "svelte-preprocess": "^4.9.5",
"svelte-select": "^3.17.0", "svelte-select": "^4.4.7",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.4.3", "typescript": "^4.4.3",
"uuid": "^3.4.0" "uuid": "^3.4.0"

View File

@ -44,9 +44,9 @@
<SvelteSelect <SvelteSelect
{...$$restProps} {...$$restProps}
items={options} items={options}
selectedValue={isMulti value={isMulti
? value?.map(item => options.find(x => x.value == item)) ? _.compact(value?.map(item => options.find(x => x.value == item)) ?? [])
: options.find(x => x.value == value)} : options.find(x => x.value == value) ?? null}
on:select={e => { on:select={e => {
if (isMulti) { if (isMulti) {
dispatch( dispatch(

View File

@ -10146,10 +10146,10 @@ svelte-preprocess@^4.9.5:
sorcery "^0.10.0" sorcery "^0.10.0"
strip-indent "^3.0.0" strip-indent "^3.0.0"
svelte-select@^3.17.0: svelte-select@^4.4.7:
version "3.17.0" version "4.4.7"
resolved "https://registry.yarnpkg.com/svelte-select/-/svelte-select-3.17.0.tgz#6bea0cb8d0c9465d28a2bac562f2de8a61f48a9f" resolved "https://registry.yarnpkg.com/svelte-select/-/svelte-select-4.4.7.tgz#fc85414af070487d68e438f7249c653178860af3"
integrity sha512-ITmX/XUiSdkaILmsTviKRkZPaXckM5/FA7Y8BhiUPoamaZG/ZDyOo6ydjFu9fDVFTbwoAUGUi6HBjs+ZdK2AwA== integrity sha512-fIf9Z8rPI6F8naHZ9wjXT0Pv5gLyhdHAFkHFJnCfVVfELE8e82uOoF0xEVQP6Kir+b4Q5yOvNAzZ61WbSU6A0A==
svelte@^3.43.0: svelte@^3.43.0:
version "3.43.0" version "3.43.0"