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.
@@ -1,14 +1,16 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- color?: string | undefined;
5
- duration?: string | undefined;
6
- size?: string | undefined;
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;
@@ -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
- ondrop="return false"
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 | undefined;
5
+ activeIndex?: number | null;
6
6
  activeOption?: Option | null | undefined;
7
- createOptionMsg?: string | null | undefined;
8
- allowUserOptions?: boolean | "append" | undefined;
9
- allowEmpty?: boolean | undefined;
10
- autocomplete?: string | undefined;
11
- autoScroll?: boolean | undefined;
12
- breakpoint?: number | undefined;
13
- defaultDisabledTitle?: string | undefined;
14
- disabled?: boolean | undefined;
15
- disabledInputTitle?: string | undefined;
16
- duplicateOptionMsg?: string | undefined;
17
- duplicates?: boolean | 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;
18
18
  key?: ((opt: T) => unknown) | undefined;
19
19
  filterFunc?: ((opt: Option, searchText: string) => boolean) | undefined;
20
- closeDropdownOnSelect?: boolean | "desktop" | undefined;
21
- form_input?: HTMLInputElement | null | undefined;
22
- highlightMatches?: boolean | undefined;
23
- id?: string | null | undefined;
24
- input?: HTMLInputElement | null | undefined;
25
- inputClass?: string | undefined;
26
- inputStyle?: string | null | undefined;
27
- inputmode?: string | null | undefined;
28
- invalid?: boolean | undefined;
29
- liActiveOptionClass?: string | undefined;
30
- liActiveUserMsgClass?: string | undefined;
31
- liOptionClass?: string | undefined;
32
- liOptionStyle?: string | null | undefined;
33
- liSelectedClass?: string | undefined;
34
- liSelectedStyle?: string | null | undefined;
35
- liUserMsgClass?: string | undefined;
36
- loading?: 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;
37
37
  matchingOptions?: Option[] | undefined;
38
38
  maxOptions?: number | undefined;
39
- maxSelect?: number | null | undefined;
39
+ maxSelect?: number | null;
40
40
  maxSelectMsg?: ((current: number, max: number) => string) | null | undefined;
41
- maxSelectMsgClass?: string | undefined;
42
- name?: string | null | undefined;
43
- noMatchingOptionsMsg?: string | undefined;
44
- open?: boolean | undefined;
41
+ maxSelectMsgClass?: string;
42
+ name?: string | null;
43
+ noMatchingOptionsMsg?: string;
44
+ open?: boolean;
45
45
  options: Option[];
46
- outerDiv?: HTMLDivElement | null | undefined;
47
- outerDivClass?: string | undefined;
48
- parseLabelsAsHtml?: boolean | undefined;
49
- pattern?: string | null | undefined;
50
- placeholder?: string | null | undefined;
51
- removeAllTitle?: string | undefined;
52
- removeBtnTitle?: string | undefined;
53
- minSelect?: number | null | undefined;
54
- required?: number | boolean | undefined;
55
- resetFilterOnAdd?: boolean | undefined;
56
- searchText?: string | undefined;
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 | undefined;
60
- style?: string | null | undefined;
61
- ulOptionsClass?: string | undefined;
62
- ulSelectedClass?: string | undefined;
63
- ulSelectedStyle?: string | null | undefined;
64
- ulOptionsStyle?: string | null | undefined;
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;
@@ -1,14 +1,14 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- wiggle?: boolean | undefined;
5
- angle?: number | undefined;
6
- scale?: number | undefined;
7
- dx?: number | undefined;
8
- dy?: number | undefined;
9
- duration?: number | undefined;
10
- stiffness?: number | undefined;
11
- damping?: number | undefined;
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;
@@ -19,5 +19,7 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export {};
@@ -19,5 +19,7 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export {};
@@ -19,5 +19,7 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export {};
@@ -19,5 +19,7 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export {};
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": "10.3.0",
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": "^3.1.6",
30
- "@playwright/test": "^1.43.0",
31
- "@sveltejs/adapter-static": "^3.0.1",
32
- "@sveltejs/kit": "^2.5.5",
33
- "@sveltejs/package": "2.3.1",
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.4.0",
36
- "eslint": "^9.0.0",
37
- "eslint-plugin-svelte": "^2.36.0",
38
- "globals": "^15.0.0",
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.9.0",
41
- "jsdom": "^24.0.0",
42
- "mdsvex": "^0.11.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.2.5",
45
- "prettier-plugin-svelte": "^3.2.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": "^3.6.9",
49
- "svelte-multiselect": "^10.2.0",
50
- "svelte-preprocess": "^5.1.3",
51
- "svelte-toc": "^0.5.8",
52
- "svelte-zoo": "^0.4.10",
53
- "svelte2tsx": "^0.7.6",
54
- "typescript": "5.4.4",
55
- "typescript-eslint": "^7.5.0",
56
- "vite": "^5.1.5",
57
- "vitest": "^1.4.0"
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",