From a1203269171c2552887e3685cc6d8162e617d43e Mon Sep 17 00:00:00 2001 From: Josh Schmidt Date: Fri, 23 Apr 2021 21:03:15 -0600 Subject: [PATCH] v1.6.0 Release --- dist/cjs/constants.js | 35 - dist/cjs/constants.js.map | 1 - dist/cjs/contrib/highlight.js | 72 - dist/cjs/contrib/highlight.js.map | 1 - dist/cjs/contrib/microevent.js | 71 - dist/cjs/contrib/microevent.js.map | 1 - dist/cjs/contrib/microplugin.js | 128 - dist/cjs/contrib/microplugin.js.map | 1 - dist/cjs/contrib/sifter.js | 499 -- dist/cjs/contrib/sifter.js.map | 1 - dist/cjs/defaults.js | 93 - dist/cjs/defaults.js.map | 1 - dist/cjs/getSettings.js | 166 - dist/cjs/getSettings.js.map | 1 - dist/cjs/plugins/change_listener/plugin.js | 42 - .../cjs/plugins/change_listener/plugin.js.map | 1 - dist/cjs/plugins/checkbox_options/plugin.js | 90 - .../plugins/checkbox_options/plugin.js.map | 1 - dist/cjs/plugins/clear_button/plugin.js | 48 - dist/cjs/plugins/clear_button/plugin.js.map | 1 - dist/cjs/plugins/drag_drop/plugin.js | 64 - dist/cjs/plugins/drag_drop/plugin.js.map | 1 - dist/cjs/plugins/dropdown_header/plugin.js | 52 - .../cjs/plugins/dropdown_header/plugin.js.map | 1 - dist/cjs/plugins/dropdown_input/plugin.js | 68 - dist/cjs/plugins/dropdown_input/plugin.js.map | 1 - dist/cjs/plugins/input_autogrow/plugin.js | 59 - dist/cjs/plugins/input_autogrow/plugin.js.map | 1 - dist/cjs/plugins/no_active_items/plugin.js | 27 - .../cjs/plugins/no_active_items/plugin.js.map | 1 - .../cjs/plugins/no_backspace_delete/plugin.js | 34 - .../plugins/no_backspace_delete/plugin.js.map | 1 - dist/cjs/plugins/optgroup_columns/plugin.js | 57 - .../plugins/optgroup_columns/plugin.js.map | 1 - dist/cjs/plugins/remove_button/plugin.js | 63 - dist/cjs/plugins/remove_button/plugin.js.map | 1 - .../plugins/restore_on_backspace/plugin.js | 41 - .../restore_on_backspace/plugin.js.map | 1 - dist/cjs/tom-select.complete.js | 4441 +++++++++++++++- dist/cjs/tom-select.complete.js.map | 2 +- dist/cjs/tom-select.js | 1672 ++++++- dist/cjs/tom-select.js.map | 2 +- dist/cjs/tom-select.popular.js | 4079 +++++++++++++++ dist/cjs/tom-select.popular.js.map | 1 + dist/cjs/utils.js | 2 +- dist/cjs/vanilla.js | 199 - dist/cjs/vanilla.js.map | 1 - dist/css/tom-select.bootstrap3.css | 2 +- dist/css/tom-select.bootstrap4.css | 2 +- dist/css/tom-select.bootstrap5.css | 2 +- dist/css/tom-select.css | 2 +- dist/css/tom-select.default.css | 2 +- dist/esm/constants.js | 20 - dist/esm/constants.js.map | 1 - dist/esm/contrib/highlight.js | 67 - dist/esm/contrib/highlight.js.map | 1 - dist/esm/contrib/microevent.js | 69 - dist/esm/contrib/microevent.js.map | 1 - dist/esm/contrib/microplugin.js | 126 - dist/esm/contrib/microplugin.js.map | 1 - dist/esm/contrib/sifter.js | 497 -- dist/esm/contrib/sifter.js.map | 1 - dist/esm/defaults.js | 91 - dist/esm/defaults.js.map | 1 - dist/esm/getSettings.js | 164 - dist/esm/getSettings.js.map | 1 - dist/esm/plugins/change_listener/plugin.js | 270 +- .../esm/plugins/change_listener/plugin.js.map | 2 +- dist/esm/plugins/checkbox_options/plugin.js | 63 +- .../plugins/checkbox_options/plugin.js.map | 2 +- dist/esm/plugins/clear_button/plugin.js | 28 +- dist/esm/plugins/clear_button/plugin.js.map | 2 +- dist/esm/plugins/drag_drop/plugin.js | 2 +- dist/esm/plugins/dropdown_header/plugin.js | 58 +- .../esm/plugins/dropdown_header/plugin.js.map | 2 +- dist/esm/plugins/dropdown_input/plugin.js | 67 +- dist/esm/plugins/dropdown_input/plugin.js.map | 2 +- dist/esm/plugins/input_autogrow/plugin.js | 26 +- dist/esm/plugins/input_autogrow/plugin.js.map | 2 +- dist/esm/plugins/no_active_items/plugin.js | 2 +- .../esm/plugins/no_backspace_delete/plugin.js | 2 +- dist/esm/plugins/optgroup_columns/plugin.js | 53 +- .../plugins/optgroup_columns/plugin.js.map | 2 +- dist/esm/plugins/remove_button/plugin.js | 74 +- dist/esm/plugins/remove_button/plugin.js.map | 2 +- .../plugins/restore_on_backspace/plugin.js | 2 +- dist/esm/tom-select.complete.js | 4444 ++++++++++++++++- dist/esm/tom-select.complete.js.map | 2 +- dist/esm/tom-select.js | 1386 ++++- dist/esm/tom-select.js.map | 2 +- dist/esm/tom-select.popular.js | 4077 +++++++++++++++ dist/esm/tom-select.popular.js.map | 1 + dist/esm/utils.js | 2 +- dist/esm/vanilla.js | 183 - dist/esm/vanilla.js.map | 1 - dist/js/plugins/change_listener.js | 2 +- dist/js/plugins/checkbox_options.js | 2 +- dist/js/plugins/clear_button.js | 2 +- dist/js/plugins/drag_drop.js | 2 +- dist/js/plugins/dropdown_header.js | 2 +- dist/js/plugins/dropdown_input.js | 2 +- dist/js/plugins/input_autogrow.js | 2 +- dist/js/plugins/no_active_items.js | 2 +- dist/js/plugins/no_backspace_delete.js | 2 +- dist/js/plugins/optgroup_columns.js | 2 +- dist/js/plugins/remove_button.js | 2 +- dist/js/plugins/restore_on_backspace.js | 2 +- dist/js/tom-select.base.js | 474 +- dist/js/tom-select.base.js.map | 2 +- dist/js/tom-select.base.min.js | 316 +- dist/js/tom-select.base.min.js.map | 2 +- dist/js/tom-select.complete.js | 474 +- dist/js/tom-select.complete.js.map | 2 +- dist/js/tom-select.complete.min.js | 320 +- dist/js/tom-select.complete.min.js.map | 2 +- dist/js/tom-select.popular.js | 474 +- dist/js/tom-select.popular.js.map | 2 +- dist/js/tom-select.popular.min.js | 316 +- dist/js/tom-select.popular.min.js.map | 2 +- dist/scss/tom-select.scss | 2 +- dist/types/contrib/sifter.d.ts | 100 - dist/types/tom-select.d.ts | 4 +- package.json | 2 +- 123 files changed, 21863 insertions(+), 4594 deletions(-) delete mode 100644 dist/cjs/constants.js delete mode 100644 dist/cjs/constants.js.map delete mode 100644 dist/cjs/contrib/highlight.js delete mode 100644 dist/cjs/contrib/highlight.js.map delete mode 100644 dist/cjs/contrib/microevent.js delete mode 100644 dist/cjs/contrib/microevent.js.map delete mode 100644 dist/cjs/contrib/microplugin.js delete mode 100644 dist/cjs/contrib/microplugin.js.map delete mode 100644 dist/cjs/contrib/sifter.js delete mode 100644 dist/cjs/contrib/sifter.js.map delete mode 100644 dist/cjs/defaults.js delete mode 100644 dist/cjs/defaults.js.map delete mode 100644 dist/cjs/getSettings.js delete mode 100644 dist/cjs/getSettings.js.map delete mode 100644 dist/cjs/plugins/change_listener/plugin.js delete mode 100644 dist/cjs/plugins/change_listener/plugin.js.map delete mode 100644 dist/cjs/plugins/checkbox_options/plugin.js delete mode 100644 dist/cjs/plugins/checkbox_options/plugin.js.map delete mode 100644 dist/cjs/plugins/clear_button/plugin.js delete mode 100644 dist/cjs/plugins/clear_button/plugin.js.map delete mode 100644 dist/cjs/plugins/drag_drop/plugin.js delete mode 100644 dist/cjs/plugins/drag_drop/plugin.js.map delete mode 100644 dist/cjs/plugins/dropdown_header/plugin.js delete mode 100644 dist/cjs/plugins/dropdown_header/plugin.js.map delete mode 100644 dist/cjs/plugins/dropdown_input/plugin.js delete mode 100644 dist/cjs/plugins/dropdown_input/plugin.js.map delete mode 100644 dist/cjs/plugins/input_autogrow/plugin.js delete mode 100644 dist/cjs/plugins/input_autogrow/plugin.js.map delete mode 100644 dist/cjs/plugins/no_active_items/plugin.js delete mode 100644 dist/cjs/plugins/no_active_items/plugin.js.map delete mode 100644 dist/cjs/plugins/no_backspace_delete/plugin.js delete mode 100644 dist/cjs/plugins/no_backspace_delete/plugin.js.map delete mode 100644 dist/cjs/plugins/optgroup_columns/plugin.js delete mode 100644 dist/cjs/plugins/optgroup_columns/plugin.js.map delete mode 100644 dist/cjs/plugins/remove_button/plugin.js delete mode 100644 dist/cjs/plugins/remove_button/plugin.js.map delete mode 100644 dist/cjs/plugins/restore_on_backspace/plugin.js delete mode 100644 dist/cjs/plugins/restore_on_backspace/plugin.js.map create mode 100644 dist/cjs/tom-select.popular.js create mode 100644 dist/cjs/tom-select.popular.js.map delete mode 100644 dist/cjs/vanilla.js delete mode 100644 dist/cjs/vanilla.js.map delete mode 100644 dist/esm/constants.js delete mode 100644 dist/esm/constants.js.map delete mode 100644 dist/esm/contrib/highlight.js delete mode 100644 dist/esm/contrib/highlight.js.map delete mode 100644 dist/esm/contrib/microevent.js delete mode 100644 dist/esm/contrib/microevent.js.map delete mode 100644 dist/esm/contrib/microplugin.js delete mode 100644 dist/esm/contrib/microplugin.js.map delete mode 100644 dist/esm/contrib/sifter.js delete mode 100644 dist/esm/contrib/sifter.js.map delete mode 100644 dist/esm/defaults.js delete mode 100644 dist/esm/defaults.js.map delete mode 100644 dist/esm/getSettings.js delete mode 100644 dist/esm/getSettings.js.map create mode 100644 dist/esm/tom-select.popular.js create mode 100644 dist/esm/tom-select.popular.js.map delete mode 100644 dist/esm/vanilla.js delete mode 100644 dist/esm/vanilla.js.map delete mode 100644 dist/types/contrib/sifter.d.ts diff --git a/dist/cjs/constants.js b/dist/cjs/constants.js deleted file mode 100644 index e1b40167..00000000 --- a/dist/cjs/constants.js +++ /dev/null @@ -1,35 +0,0 @@ -/** -* Tom Select v1.5.0 -* Licensed under the Apache License, Version 2.0 (the "License"); -*/ - -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -const KEY_A = 65; -const KEY_RETURN = 13; -const KEY_ESC = 27; -const KEY_LEFT = 37; -const KEY_UP = 38; -const KEY_RIGHT = 39; -const KEY_DOWN = 40; -const KEY_BACKSPACE = 8; -const KEY_DELETE = 46; -const KEY_TAB = 9; -const IS_MAC = typeof navigator === 'undefined' ? false : /Mac/.test(navigator.userAgent); -const KEY_SHORTCUT = IS_MAC ? 'metaKey' : 'ctrlKey'; // ctrl key or apple key for ma - -exports.IS_MAC = IS_MAC; -exports.KEY_A = KEY_A; -exports.KEY_BACKSPACE = KEY_BACKSPACE; -exports.KEY_DELETE = KEY_DELETE; -exports.KEY_DOWN = KEY_DOWN; -exports.KEY_ESC = KEY_ESC; -exports.KEY_LEFT = KEY_LEFT; -exports.KEY_RETURN = KEY_RETURN; -exports.KEY_RIGHT = KEY_RIGHT; -exports.KEY_SHORTCUT = KEY_SHORTCUT; -exports.KEY_TAB = KEY_TAB; -exports.KEY_UP = KEY_UP; -//# sourceMappingURL=constants.js.map diff --git a/dist/cjs/constants.js.map b/dist/cjs/constants.js.map deleted file mode 100644 index 9ebb2508..00000000 --- a/dist/cjs/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const KEY_A\t\t\t\t= 65;\nexport const KEY_RETURN\t\t\t= 13;\nexport const KEY_ESC\t\t\t= 27;\nexport const KEY_LEFT\t\t\t= 37;\nexport const KEY_UP\t\t\t\t= 38;\nexport const KEY_RIGHT\t\t\t= 39;\nexport const KEY_DOWN\t\t\t= 40;\nexport const KEY_BACKSPACE\t\t= 8;\nexport const KEY_DELETE\t\t\t= 46;\nexport const KEY_TAB\t\t\t= 9;\n\nexport const IS_MAC \t\t= typeof navigator === 'undefined' ? false : /Mac/.test(navigator.userAgent);\nexport const KEY_SHORTCUT\t\t= IS_MAC ? 'metaKey' : 'ctrlKey'; // ctrl key or apple key for ma\n"],"names":["KEY_A","KEY_RETURN","KEY_ESC","KEY_LEFT","KEY_UP","KEY_RIGHT","KEY_DOWN","KEY_BACKSPACE","KEY_DELETE","KEY_TAB","IS_MAC","navigator","test","userAgent","KEY_SHORTCUT"],"mappings":";;;;;;;;;MAAaA,KAAK,GAAM;MACXC,UAAU,GAAK;MACfC,OAAO,GAAK;MACZC,QAAQ,GAAK;MACbC,MAAM,GAAM;MACZC,SAAS,GAAK;MACdC,QAAQ,GAAK;MACbC,aAAa,GAAI;MACjBC,UAAU,GAAK;MACfC,OAAO,GAAK;MAEZC,MAAM,GAAU,OAAOC,SAAP,KAAqB,WAArB,GAAmC,KAAnC,GAA2C,MAAMC,IAAN,CAAWD,SAAS,CAACE,SAArB;MAC3DC,YAAY,GAAIJ,MAAM,GAAG,SAAH,GAAe;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/cjs/contrib/highlight.js b/dist/cjs/contrib/highlight.js deleted file mode 100644 index eaeda1fa..00000000 --- a/dist/cjs/contrib/highlight.js +++ /dev/null @@ -1,72 +0,0 @@ -/** -* Tom Select v1.5.0 -* Licensed under the Apache License, Version 2.0 (the "License"); -*/ - -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -/** - * highlight v3 | MIT license | Johann Burkard - * Highlights arbitrary terms in a node. - * - * - Modified by Marshal 2011-6-24 (added regex) - * - Modified by Brian Reavis 2012-8-27 (cleanup) - */ -function highlight(element, regex) { - if (regex === null) return; // convet string to regex - - if (typeof regex === 'string') { - if (!regex.length) return; - regex = new RegExp(regex, 'i'); - } - - var highlight = function highlight(node) { - var skip = 0; // Wrap matching part of text node with highlighting , e.g. - // Soccer -> Soccer for regex = /soc/i - - if (node.nodeType === 3) { - var pos = node.data.search(regex); - - if (pos >= 0 && node.data.length > 0) { - var match = node.data.match(regex); - var spannode = document.createElement('span'); - spannode.className = 'highlight'; - var middlebit = node.splitText(pos); - middlebit.splitText(match[0].length); - var middleclone = middlebit.cloneNode(true); - spannode.appendChild(middleclone); - middlebit.parentNode.replaceChild(spannode, middlebit); - skip = 1; - } - } // Recurse element node, looking for child text nodes to highlight, unless element - // is childless,