diff --git a/esm/plugins/caret_position/plugin.js b/esm/plugins/caret_position/plugin.js index 3609f476..39f7a4bf 100644 --- a/esm/plugins/caret_position/plugin.js +++ b/esm/plugins/caret_position/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/change_listener/plugin.js b/esm/plugins/change_listener/plugin.js index e21d20d2..2c693d97 100644 --- a/esm/plugins/change_listener/plugin.js +++ b/esm/plugins/change_listener/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/checkbox_options/plugin.js b/esm/plugins/checkbox_options/plugin.js index 85c51c77..48daba2d 100644 --- a/esm/plugins/checkbox_options/plugin.js +++ b/esm/plugins/checkbox_options/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/clear_button/plugin.js b/esm/plugins/clear_button/plugin.js index 72e67b83..52aa6a7e 100644 --- a/esm/plugins/clear_button/plugin.js +++ b/esm/plugins/clear_button/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/drag_drop/plugin.js b/esm/plugins/drag_drop/plugin.js index 2256f4f2..f698b0c3 100644 --- a/esm/plugins/drag_drop/plugin.js +++ b/esm/plugins/drag_drop/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/dropdown_header/plugin.js b/esm/plugins/dropdown_header/plugin.js index d9dd29a0..98ce2ea3 100644 --- a/esm/plugins/dropdown_header/plugin.js +++ b/esm/plugins/dropdown_header/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/dropdown_input/plugin.js b/esm/plugins/dropdown_input/plugin.js index d4591ddb..574aea58 100644 --- a/esm/plugins/dropdown_input/plugin.js +++ b/esm/plugins/dropdown_input/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/input_autogrow/plugin.js b/esm/plugins/input_autogrow/plugin.js index a422d122..ee036a48 100644 --- a/esm/plugins/input_autogrow/plugin.js +++ b/esm/plugins/input_autogrow/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/no_active_items/plugin.js b/esm/plugins/no_active_items/plugin.js index 22a0e9a3..6391fa3d 100644 --- a/esm/plugins/no_active_items/plugin.js +++ b/esm/plugins/no_active_items/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/no_backspace_delete/plugin.js b/esm/plugins/no_backspace_delete/plugin.js index e4fc5972..95c8e14d 100644 --- a/esm/plugins/no_backspace_delete/plugin.js +++ b/esm/plugins/no_backspace_delete/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/optgroup_columns/plugin.js b/esm/plugins/optgroup_columns/plugin.js index 06ab8bfa..d978a312 100644 --- a/esm/plugins/optgroup_columns/plugin.js +++ b/esm/plugins/optgroup_columns/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/remove_button/plugin.js b/esm/plugins/remove_button/plugin.js index d3692432..54094e70 100644 --- a/esm/plugins/remove_button/plugin.js +++ b/esm/plugins/remove_button/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/restore_on_backspace/plugin.js b/esm/plugins/restore_on_backspace/plugin.js index 189d12d2..89880ae3 100644 --- a/esm/plugins/restore_on_backspace/plugin.js +++ b/esm/plugins/restore_on_backspace/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/esm/plugins/virtual_scroll/plugin.js b/esm/plugins/virtual_scroll/plugin.js index ac74fa45..e4354395 100644 --- a/esm/plugins/virtual_scroll/plugin.js +++ b/esm/plugins/virtual_scroll/plugin.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/index.html b/index.html index 7083ebb8..357b6276 100644 --- a/index.html +++ b/index.html @@ -264,8 +264,8 @@

Installation

jsDelivr
The fastest way to add Tom Select into your project is to just include the js and css from jsDelivr. -
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/css/tom-select.css" rel="stylesheet">
-<script src="https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/js/tom-select.complete.min.js"></script>
+
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.4.0/dist/css/tom-select.css" rel="stylesheet">
+<script src="https://cdn.jsdelivr.net/npm/tom-select@2.4.0/dist/js/tom-select.complete.min.js"></script>
@@ -286,8 +286,8 @@

Installation

Files

diff --git a/js/index.bundle.js b/js/index.bundle.js index b1b5d95a..abe80a8f 100644 --- a/js/index.bundle.js +++ b/js/index.bundle.js @@ -256,9 +256,9 @@ var o=document.getElementById("main-container") document.querySelectorAll(".demo-mini").length||(o.insertBefore(r,o.firstChild),new TomSelect(r,{maxItems:1,controlInput:"",plugins:["no_backspace_delete"],options:e.map((n=>-1!=e.indexOf(n)&&{text:t[n],value:n})),items:[n],render:{item:(e,t)=>"
Theme: "+t(e.text)+"
"},onChange:e=>{i(e)}})),i(n),document.addEventListener("click",(e=>{var t=e.target.closest(".opensandbox") if(t){var n,r=t.closest(".demo") function l(e){var t=r.querySelector(e) -return t&&t.textContent||""}var o=`
${r.querySelector("textarea").value||""}
`,i=l("style"),s=l("script"),a=[`https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/css/tom-select.${localStorage.getItem("theme")||"bootstrap4"}.min.css`,"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"] +return t&&t.textContent||""}var o=`
${r.querySelector("textarea").value||""}
`,i=l("style"),s=l("script"),a=[`https://cdn.jsdelivr.net/npm/tom-select@2.4.0/dist/css/tom-select.${localStorage.getItem("theme")||"bootstrap4"}.min.css`,"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"] "bootstrap4"==localStorage.getItem("theme")?a.push("https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/css/bootstrap.min.css"):a.push("https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css") -var c=["https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/js/tom-select.complete.min.js"] +var c=["https://cdn.jsdelivr.net/npm/tom-select@2.4.0/dist/js/tom-select.complete.min.js"] n={html:o,js:s,css:i,js_external:c.join(";"),css_external:a.join(";")},r.querySelector(".codepen").value=JSON.stringify(n),r.querySelector(".jsfiddle-html").value=o,r.querySelector(".jsfiddle-js").value=s,r.querySelector(".jsfiddle-css").value=i,r.querySelector(".jsfiddle-resources").value=c.join(",")+","+a.join(","),setTimeout((()=>{t.nextElementSibling.submit()}),50)}}))}function i(t){if(-1!=e.indexOf(t)){localStorage.setItem("theme",t) var n=document.getElementById("select-theme") n&&n.parentNode.removeChild(n),(n=document.createElement("link")).id="select-theme",n.setAttribute("rel","stylesheet"),n.setAttribute("href","/css/tom-select."+t+".css"),document.getElementsByTagName("head")[0].appendChild(n)}}}))},"function"==typeof define&&define.amd?define(e):e() diff --git a/js/plugins/caret_position.js b/js/plugins/caret_position.js index c71be207..fe28ef30 100644 --- a/js/plugins/caret_position.js +++ b/js/plugins/caret_position.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/change_listener.js b/js/plugins/change_listener.js index 175c641d..06f0bb5d 100644 --- a/js/plugins/change_listener.js +++ b/js/plugins/change_listener.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/checkbox_options.js b/js/plugins/checkbox_options.js index 346ad55b..23fc497f 100644 --- a/js/plugins/checkbox_options.js +++ b/js/plugins/checkbox_options.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/clear_button.js b/js/plugins/clear_button.js index 5132e9f4..2865aa09 100644 --- a/js/plugins/clear_button.js +++ b/js/plugins/clear_button.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/drag_drop.js b/js/plugins/drag_drop.js index 3ec68fb1..5859a607 100644 --- a/js/plugins/drag_drop.js +++ b/js/plugins/drag_drop.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/dropdown_header.js b/js/plugins/dropdown_header.js index abd191f6..1db48fb7 100644 --- a/js/plugins/dropdown_header.js +++ b/js/plugins/dropdown_header.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/dropdown_input.js b/js/plugins/dropdown_input.js index 50da0ab2..bafc7880 100644 --- a/js/plugins/dropdown_input.js +++ b/js/plugins/dropdown_input.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/input_autogrow.js b/js/plugins/input_autogrow.js index e6f975e3..55f7903f 100644 --- a/js/plugins/input_autogrow.js +++ b/js/plugins/input_autogrow.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/no_active_items.js b/js/plugins/no_active_items.js index 01dd20d6..083efc59 100644 --- a/js/plugins/no_active_items.js +++ b/js/plugins/no_active_items.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/no_backspace_delete.js b/js/plugins/no_backspace_delete.js index 5f9956cd..56d5f4cc 100644 --- a/js/plugins/no_backspace_delete.js +++ b/js/plugins/no_backspace_delete.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/optgroup_columns.js b/js/plugins/optgroup_columns.js index 45a246c1..3bc7e0df 100644 --- a/js/plugins/optgroup_columns.js +++ b/js/plugins/optgroup_columns.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/remove_button.js b/js/plugins/remove_button.js index ac72046f..d92a1ed9 100644 --- a/js/plugins/remove_button.js +++ b/js/plugins/remove_button.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/restore_on_backspace.js b/js/plugins/restore_on_backspace.js index 1656a2a9..e9ce4f96 100644 --- a/js/plugins/restore_on_backspace.js +++ b/js/plugins/restore_on_backspace.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/plugins/virtual_scroll.js b/js/plugins/virtual_scroll.js index 9f5b9794..b9f745d1 100644 --- a/js/plugins/virtual_scroll.js +++ b/js/plugins/virtual_scroll.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/tom-select.base.js b/js/tom-select.base.js index a79a249c..4cbeea9c 100644 --- a/js/tom-select.base.js +++ b/js/tom-select.base.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/tom-select.base.min.js b/js/tom-select.base.min.js index 830434e0..7226f110 100644 --- a/js/tom-select.base.min.js +++ b/js/tom-select.base.min.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).TomSelect=e()}(this,(function(){"use strict" diff --git a/js/tom-select.complete.js b/js/tom-select.complete.js index fef44113..6121487d 100644 --- a/js/tom-select.complete.js +++ b/js/tom-select.complete.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/tom-select.complete.min.js b/js/tom-select.complete.min.js index 73b12a07..e4d13681 100644 --- a/js/tom-select.complete.min.js +++ b/js/tom-select.complete.min.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TomSelect=t()}(this,(function(){"use strict" diff --git a/js/tom-select.popular.js b/js/tom-select.popular.js index 5f01772b..40fd9c55 100644 --- a/js/tom-select.popular.js +++ b/js/tom-select.popular.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ diff --git a/js/tom-select.popular.min.js b/js/tom-select.popular.min.js index 85bd6442..263eba58 100644 --- a/js/tom-select.popular.min.js +++ b/js/tom-select.popular.min.js @@ -1,5 +1,5 @@ /** -* Tom Select v2.3.1 +* Tom Select v2.4.0 * Licensed under the Apache License, Version 2.0 (the "License"); */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).TomSelect=e()}(this,(function(){"use strict" diff --git a/sitemap.xml b/sitemap.xml index c6c0effb..bcd84705 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3,202 +3,202 @@ /docs/api/ - 2024-11-15T17:52:50.325Z + 2024-11-15T17:55:03.082Z /docs/contribute/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /docs/events/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /docs/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /docs/migration/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /docs/plugins/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /docs/selectize.js/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/api/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/contacts/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/create-filter/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/customization/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/events/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/i18n/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/lock/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/optgroups/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/options/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/performance/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/plugins/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/remote/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/required/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/rtl/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/styling/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /examples/validation/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z / - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/caret-position/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/change-listener/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/checkbox-options/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/clear-button/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/drag-drop/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/dropdown-header/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/dropdown-input/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/input-autogrow/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/no-active-items/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/no-backspace-delete/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/optgroup-columns/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/remove-button/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/restore-on-backspace/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z /plugins/virtual_scroll/ - 2024-11-15T17:52:50.329Z + 2024-11-15T17:55:03.082Z