Skip to content

Commit

Permalink
v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik committed Nov 2, 2021
1 parent b5a1df3 commit 5a72cf3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Property `readSelection` _always_ returns selected object or object array no mat
Property | Type | Default | Description
------------------|------------------|------------|------------
options | array | `[]` | Data array
valueAsObject | bool | `false` | Switch whether Svelecte should expects from and return to `bind:value` objects or primitive value (usually string, number)
valueField | string | `null` | Property to be used as value (if not specified, will be selected automatically)
labelField | string | `null` | Property shown in dropdown (if not specified, will be selected automatically)
disabledField | string | `$disabled`| Property to check, whether given options should be disabled and unselectable
Expand Down Expand Up @@ -142,8 +143,10 @@ This is default value of `i18n` property:
empty: 'No options',
nomatch: 'No matching options',
max: num => `Maximum items ${num} selected`,
fetchBefore: 'Type to search',
fetchQuery: minQuery => `Type ${minQuery > 1 ? `at least ${minQuery} characters ` : '' }to search`,
fetchBefore: 'Type to start searching',
fetchQuery: (minQuery, inputLength) => `Type ${minQuery > 1 && minQuery > inputLength
? `at least ${minQuery - inputLength} characters `
: '' }to start searching`,
fetchEmpty: 'No data related to your search',
collapsedSelection: count => `${count} selected`,
createRowLabel: value => `Create '${value}'`
Expand All @@ -165,7 +168,7 @@ config.i18n = {
nomatch: '',
max: num => '🙄',
fetchBefore: '💻',
fetchQuery: minQuery => '🧮',
fetchQuery: (minQuery, inputLength) => '🧮',
fetchEmpty: '🚮',
collapsedSelection: () => '🗃',
createRowLabel: value => `📝 ${value}`
Expand Down
1 change: 1 addition & 0 deletions dist/svelecte-element.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/svelecte-element.mjs

This file was deleted.

4 changes: 2 additions & 2 deletions dist/svelecte.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/svelecte.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/build/app.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,12 @@ <h4 id="options">Options</h4>
<td><code>[]</code></td>
<td>Data array</td>
</tr>
<tr>
<td>valueAsObject</td>
<td>bool</td>
<td><code>false</code></td>
<td>Switch whether Svelecte should expects from and return to <code>bind:value</code> objects or primitive value (usually string, number)</td>
</tr>
<tr>
<td>valueField</td>
<td>string</td>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "svelecte",
"module": "dist/svelecte.mjs",
"svelte": "src/Svelecte.svelte",
"version": "3.0.1",
"version": "3.0.2",
"license": "MIT",
"description": "Flexible autocomplete/select component written in Svelte. Massively inspired by Selectize.js. Also usable as custom element (CE)",
"scripts": {
Expand Down

0 comments on commit 5a72cf3

Please sign in to comment.