svelte-multiselect 10.3.0 → 11.0.0-rc.1
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/dist/CircleSpinner.svelte.d.ts +5 -3
- package/dist/CmdPalette.svelte.d.ts +4 -2
- package/dist/MultiSelect.svelte +1 -1
- package/dist/MultiSelect.svelte.d.ts +51 -51
- package/dist/Wiggle.svelte.d.ts +10 -8
- package/dist/icons/ChevronExpand.svelte.d.ts +2 -0
- package/dist/icons/Cross.svelte.d.ts +2 -0
- package/dist/icons/Disabled.svelte.d.ts +2 -0
- package/dist/icons/Octocat.svelte.d.ts +2 -0
- package/package.json +25 -25
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
color?: string
|
|
5
|
-
duration?: string
|
|
6
|
-
size?: string
|
|
4
|
+
color?: string;
|
|
5
|
+
duration?: string;
|
|
6
|
+
size?: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
export type CircleSpinnerProps = typeof __propDef.props;
|
|
14
16
|
export type CircleSpinnerEvents = typeof __propDef.events;
|
|
@@ -12,8 +12,8 @@ declare const __propDef: {
|
|
|
12
12
|
style?: string | undefined;
|
|
13
13
|
span_style?: string | undefined;
|
|
14
14
|
open?: boolean | undefined;
|
|
15
|
-
dialog?: HTMLDialogElement | null | undefined;
|
|
16
|
-
input?: HTMLInputElement | null | undefined;
|
|
15
|
+
dialog?: (HTMLDialogElement | null) | undefined;
|
|
16
|
+
input?: (HTMLInputElement | null) | undefined;
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
18
|
};
|
|
19
19
|
events: {
|
|
@@ -22,6 +22,8 @@ declare const __propDef: {
|
|
|
22
22
|
slots: {
|
|
23
23
|
default: {};
|
|
24
24
|
};
|
|
25
|
+
exports?: undefined;
|
|
26
|
+
bindings?: undefined;
|
|
25
27
|
};
|
|
26
28
|
export type CmdPaletteProps = typeof __propDef.props;
|
|
27
29
|
export type CmdPaletteEvents = typeof __propDef.events;
|
package/dist/MultiSelect.svelte
CHANGED
|
@@ -518,7 +518,7 @@ $: required, form_input?.setCustomValidity(``);
|
|
|
518
518
|
{pattern}
|
|
519
519
|
placeholder={selected.length == 0 ? placeholder : null}
|
|
520
520
|
aria-invalid={invalid ? `true` : null}
|
|
521
|
-
|
|
521
|
+
on:drop={() => false}
|
|
522
522
|
on:blur
|
|
523
523
|
on:change
|
|
524
524
|
on:click
|
|
@@ -2,66 +2,66 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { MultiSelectEvents, Option as T } from './types';
|
|
3
3
|
declare class __sveltets_Render<Option extends T> {
|
|
4
4
|
props(): {
|
|
5
|
-
activeIndex?: number | null
|
|
5
|
+
activeIndex?: number | null;
|
|
6
6
|
activeOption?: Option | null | undefined;
|
|
7
|
-
createOptionMsg?: string | null
|
|
8
|
-
allowUserOptions?: boolean | "append"
|
|
9
|
-
allowEmpty?: boolean
|
|
10
|
-
autocomplete?: string
|
|
11
|
-
autoScroll?: boolean
|
|
12
|
-
breakpoint?: number
|
|
13
|
-
defaultDisabledTitle?: string
|
|
14
|
-
disabled?: boolean
|
|
15
|
-
disabledInputTitle?: string
|
|
16
|
-
duplicateOptionMsg?: string
|
|
17
|
-
duplicates?: boolean
|
|
7
|
+
createOptionMsg?: string | null;
|
|
8
|
+
allowUserOptions?: boolean | "append";
|
|
9
|
+
allowEmpty?: boolean;
|
|
10
|
+
autocomplete?: string;
|
|
11
|
+
autoScroll?: boolean;
|
|
12
|
+
breakpoint?: number;
|
|
13
|
+
defaultDisabledTitle?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
disabledInputTitle?: string;
|
|
16
|
+
duplicateOptionMsg?: string;
|
|
17
|
+
duplicates?: boolean;
|
|
18
18
|
key?: ((opt: T) => unknown) | undefined;
|
|
19
19
|
filterFunc?: ((opt: Option, searchText: string) => boolean) | undefined;
|
|
20
|
-
closeDropdownOnSelect?: boolean | "desktop"
|
|
21
|
-
form_input?: HTMLInputElement | null
|
|
22
|
-
highlightMatches?: boolean
|
|
23
|
-
id?: string | null
|
|
24
|
-
input?: HTMLInputElement | null
|
|
25
|
-
inputClass?: string
|
|
26
|
-
inputStyle?: string | null
|
|
27
|
-
inputmode?: string | null
|
|
28
|
-
invalid?: boolean
|
|
29
|
-
liActiveOptionClass?: string
|
|
30
|
-
liActiveUserMsgClass?: string
|
|
31
|
-
liOptionClass?: string
|
|
32
|
-
liOptionStyle?: string | null
|
|
33
|
-
liSelectedClass?: string
|
|
34
|
-
liSelectedStyle?: string | null
|
|
35
|
-
liUserMsgClass?: string
|
|
36
|
-
loading?: boolean
|
|
20
|
+
closeDropdownOnSelect?: boolean | "desktop";
|
|
21
|
+
form_input?: HTMLInputElement | null;
|
|
22
|
+
highlightMatches?: boolean;
|
|
23
|
+
id?: string | null;
|
|
24
|
+
input?: HTMLInputElement | null;
|
|
25
|
+
inputClass?: string;
|
|
26
|
+
inputStyle?: string | null;
|
|
27
|
+
inputmode?: string | null;
|
|
28
|
+
invalid?: boolean;
|
|
29
|
+
liActiveOptionClass?: string;
|
|
30
|
+
liActiveUserMsgClass?: string;
|
|
31
|
+
liOptionClass?: string;
|
|
32
|
+
liOptionStyle?: string | null;
|
|
33
|
+
liSelectedClass?: string;
|
|
34
|
+
liSelectedStyle?: string | null;
|
|
35
|
+
liUserMsgClass?: string;
|
|
36
|
+
loading?: boolean;
|
|
37
37
|
matchingOptions?: Option[] | undefined;
|
|
38
38
|
maxOptions?: number | undefined;
|
|
39
|
-
maxSelect?: number | null
|
|
39
|
+
maxSelect?: number | null;
|
|
40
40
|
maxSelectMsg?: ((current: number, max: number) => string) | null | undefined;
|
|
41
|
-
maxSelectMsgClass?: string
|
|
42
|
-
name?: string | null
|
|
43
|
-
noMatchingOptionsMsg?: string
|
|
44
|
-
open?: boolean
|
|
41
|
+
maxSelectMsgClass?: string;
|
|
42
|
+
name?: string | null;
|
|
43
|
+
noMatchingOptionsMsg?: string;
|
|
44
|
+
open?: boolean;
|
|
45
45
|
options: Option[];
|
|
46
|
-
outerDiv?: HTMLDivElement | null
|
|
47
|
-
outerDivClass?: string
|
|
48
|
-
parseLabelsAsHtml?: boolean
|
|
49
|
-
pattern?: string | null
|
|
50
|
-
placeholder?: string | null
|
|
51
|
-
removeAllTitle?: string
|
|
52
|
-
removeBtnTitle?: string
|
|
53
|
-
minSelect?: number | null
|
|
54
|
-
required?:
|
|
55
|
-
resetFilterOnAdd?: boolean
|
|
56
|
-
searchText?: string
|
|
46
|
+
outerDiv?: HTMLDivElement | null;
|
|
47
|
+
outerDivClass?: string;
|
|
48
|
+
parseLabelsAsHtml?: boolean;
|
|
49
|
+
pattern?: string | null;
|
|
50
|
+
placeholder?: string | null;
|
|
51
|
+
removeAllTitle?: string;
|
|
52
|
+
removeBtnTitle?: string;
|
|
53
|
+
minSelect?: number | null;
|
|
54
|
+
required?: boolean | number;
|
|
55
|
+
resetFilterOnAdd?: boolean;
|
|
56
|
+
searchText?: string;
|
|
57
57
|
selected?: Option[] | undefined;
|
|
58
58
|
sortSelected?: boolean | ((op1: Option, op2: Option) => number) | undefined;
|
|
59
|
-
selectedOptionsDraggable?: boolean
|
|
60
|
-
style?: string | null
|
|
61
|
-
ulOptionsClass?: string
|
|
62
|
-
ulSelectedClass?: string
|
|
63
|
-
ulSelectedStyle?: string | null
|
|
64
|
-
ulOptionsStyle?: string | null
|
|
59
|
+
selectedOptionsDraggable?: boolean;
|
|
60
|
+
style?: string | null;
|
|
61
|
+
ulOptionsClass?: string;
|
|
62
|
+
ulSelectedClass?: string;
|
|
63
|
+
ulSelectedStyle?: string | null;
|
|
64
|
+
ulOptionsStyle?: string | null;
|
|
65
65
|
value?: Option | Option[] | null | undefined;
|
|
66
66
|
};
|
|
67
67
|
events(): MultiSelectEvents;
|
package/dist/Wiggle.svelte.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
wiggle?: boolean
|
|
5
|
-
angle?: number
|
|
6
|
-
scale?: number
|
|
7
|
-
dx?: number
|
|
8
|
-
dy?: number
|
|
9
|
-
duration?: number
|
|
10
|
-
stiffness?: number
|
|
11
|
-
damping?: number
|
|
4
|
+
wiggle?: boolean;
|
|
5
|
+
angle?: number;
|
|
6
|
+
scale?: number;
|
|
7
|
+
dx?: number;
|
|
8
|
+
dy?: number;
|
|
9
|
+
duration?: number;
|
|
10
|
+
stiffness?: number;
|
|
11
|
+
damping?: number;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,6 +16,8 @@ declare const __propDef: {
|
|
|
16
16
|
slots: {
|
|
17
17
|
default: {};
|
|
18
18
|
};
|
|
19
|
+
exports?: {} | undefined;
|
|
20
|
+
bindings?: string | undefined;
|
|
19
21
|
};
|
|
20
22
|
export type WiggleProps = typeof __propDef.props;
|
|
21
23
|
export type WiggleEvents = typeof __propDef.events;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"homepage": "https://janosh.github.io/svelte-multiselect",
|
|
6
6
|
"repository": "https://github.com/janosh/svelte-multiselect",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "11.0.0-rc.1",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"svelte": "./dist/index.js",
|
|
11
11
|
"bugs": "https://github.com/janosh/svelte-multiselect/issues",
|
|
@@ -26,35 +26,35 @@
|
|
|
26
26
|
"svelte": "4.2.12"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@iconify/svelte": "^
|
|
30
|
-
"@playwright/test": "^1.
|
|
31
|
-
"@sveltejs/adapter-static": "^3.0.
|
|
32
|
-
"@sveltejs/kit": "^2.
|
|
33
|
-
"@sveltejs/package": "2.3.
|
|
29
|
+
"@iconify/svelte": "^4.0.2",
|
|
30
|
+
"@playwright/test": "^1.48.1",
|
|
31
|
+
"@sveltejs/adapter-static": "^3.0.5",
|
|
32
|
+
"@sveltejs/kit": "^2.7.2",
|
|
33
|
+
"@sveltejs/package": "2.3.5",
|
|
34
34
|
"@sveltejs/vite-plugin-svelte": "3.0.2",
|
|
35
|
-
"@vitest/coverage-v8": "^1.
|
|
36
|
-
"eslint": "^9.
|
|
37
|
-
"eslint-plugin-svelte": "^2.
|
|
38
|
-
"globals": "^15.
|
|
35
|
+
"@vitest/coverage-v8": "^2.1.3",
|
|
36
|
+
"eslint": "^9.13.0",
|
|
37
|
+
"eslint-plugin-svelte": "^2.46.0",
|
|
38
|
+
"globals": "^15.11.0",
|
|
39
39
|
"hastscript": "^9.0.0",
|
|
40
|
-
"highlight.js": "^11.
|
|
41
|
-
"jsdom": "^
|
|
42
|
-
"mdsvex": "^0.
|
|
40
|
+
"highlight.js": "^11.10.0",
|
|
41
|
+
"jsdom": "^25.0.1",
|
|
42
|
+
"mdsvex": "^0.12.3",
|
|
43
43
|
"mdsvexamples": "^0.4.1",
|
|
44
|
-
"prettier": "^3.
|
|
45
|
-
"prettier-plugin-svelte": "^3.2.
|
|
44
|
+
"prettier": "^3.3.3",
|
|
45
|
+
"prettier-plugin-svelte": "^3.2.7",
|
|
46
46
|
"rehype-autolink-headings": "^7.1.0",
|
|
47
47
|
"rehype-slug": "^6.0.0",
|
|
48
|
-
"svelte-check": "^
|
|
49
|
-
"svelte-multiselect": "^10.
|
|
50
|
-
"svelte-preprocess": "^
|
|
51
|
-
"svelte-toc": "^0.5.
|
|
52
|
-
"svelte-zoo": "^0.4.
|
|
53
|
-
"svelte2tsx": "^0.7.
|
|
54
|
-
"typescript": "5.
|
|
55
|
-
"typescript-eslint": "^
|
|
56
|
-
"vite": "^5.
|
|
57
|
-
"vitest": "^1.
|
|
48
|
+
"svelte-check": "^4.0.5",
|
|
49
|
+
"svelte-multiselect": "^10.3.0",
|
|
50
|
+
"svelte-preprocess": "^6.0.3",
|
|
51
|
+
"svelte-toc": "^0.5.9",
|
|
52
|
+
"svelte-zoo": "^0.4.13",
|
|
53
|
+
"svelte2tsx": "^0.7.22",
|
|
54
|
+
"typescript": "5.6.3",
|
|
55
|
+
"typescript-eslint": "^8.11.0",
|
|
56
|
+
"vite": "^5.4.9",
|
|
57
|
+
"vitest": "^2.1.3"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"svelte",
|