@onsvisual/svelte-components 0.1.16 → 0.1.17

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.
@@ -10,6 +10,7 @@ export default class Select extends SvelteComponentTyped<{
10
10
  hideLabel?: boolean;
11
11
  placeholder?: string;
12
12
  options?: any[];
13
+ filterText?: string;
13
14
  multiple?: boolean;
14
15
  maxSelected?: number;
15
16
  clearable?: boolean;
@@ -44,6 +45,7 @@ declare const __propDef: {
44
45
  hideLabel?: boolean;
45
46
  placeholder?: string;
46
47
  options?: any[];
48
+ filterText?: string;
47
49
  multiple?: boolean;
48
50
  maxSelected?: number;
49
51
  clearable?: boolean;
@@ -13,6 +13,11 @@
13
13
  * @type {"default"|"search"}
14
14
  */
15
15
  export let mode = "default";
16
+ /**
17
+ * Binding for the filter text entered
18
+ * @type {string}
19
+ */
20
+ export let filterText = "";
16
21
  /**
17
22
  * Enable multi-select mode
18
23
  * @type {boolean}
@@ -116,8 +121,6 @@
116
121
  ? `No options match <b>${filterText}</b>`
117
122
  : "No options available";
118
123
 
119
- let filterText = "";
120
-
121
124
  const dispatch = createEventDispatcher();
122
125
 
123
126
  async function handleChange(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",