tom-select-rails 2.4.3 → 2.4.5

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.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tom-select-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/tom-select-rails/cjs/plugins/clear_button/plugin.js +3 -1
  4. data/vendor/assets/javascripts/tom-select-rails/cjs/plugins/clear_button/plugin.js.map +1 -1
  5. data/vendor/assets/javascripts/tom-select-rails/cjs/plugins/clear_button/types.d.ts +2 -0
  6. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js +17 -10
  7. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js.map +1 -1
  8. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js +1 -1
  9. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js.map +1 -1
  10. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js +1 -1
  11. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js.map +1 -1
  12. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js +1 -1
  13. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js.map +1 -1
  14. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js +4 -2
  15. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js.map +1 -1
  16. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/types.d.ts +2 -0
  17. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js +1 -1
  18. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js.map +1 -1
  19. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js +1 -1
  20. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js.map +1 -1
  21. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js +1 -1
  22. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js.map +1 -1
  23. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js +1 -1
  24. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js.map +1 -1
  25. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js +1 -1
  26. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js.map +1 -1
  27. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js +1 -1
  28. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js.map +1 -1
  29. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js +1 -1
  30. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js.map +1 -1
  31. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js +1 -1
  32. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js.map +1 -1
  33. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js +1 -1
  34. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js.map +1 -1
  35. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js +1 -1
  36. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js.map +1 -1
  37. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js +17 -10
  38. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js.map +1 -1
  39. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js +1 -1
  40. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js.map +1 -1
  41. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js +1 -1
  42. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js.map +1 -1
  43. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js +1 -1
  44. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js.map +1 -1
  45. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js +4 -2
  46. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js.map +1 -1
  47. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js +1 -1
  48. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js.map +1 -1
  49. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js +1 -1
  50. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js.map +1 -1
  51. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js +1 -1
  52. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js.map +1 -1
  53. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js +1 -1
  54. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js.map +1 -1
  55. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js +1 -1
  56. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js.map +1 -1
  57. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js +1 -1
  58. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js.map +1 -1
  59. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js +1 -1
  60. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js.map +1 -1
  61. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js +1 -1
  62. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js.map +1 -1
  63. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js +1 -1
  64. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js.map +1 -1
  65. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js +1 -1
  66. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js.map +1 -1
  67. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js +18 -12
  68. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js.map +1 -1
  69. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js +69 -70
  70. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js.map +1 -1
  71. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js +21 -13
  72. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js.map +1 -1
  73. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js +109 -110
  74. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js.map +1 -1
  75. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js +18 -12
  76. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js.map +1 -1
  77. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js +80 -81
  78. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js.map +1 -1
  79. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css +8 -5
  80. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css.map +1 -1
  81. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css +1 -1
  82. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css.map +1 -1
  83. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css +10 -7
  84. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css.map +1 -1
  85. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.min.css +1 -1
  86. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.min.css.map +1 -1
  87. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css +8 -7
  88. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css.map +1 -1
  89. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css +5 -4
  90. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css.map +1 -1
  91. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.min.css +1 -1
  92. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.min.css.map +1 -1
  93. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.min.css +1 -1
  94. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.min.css.map +1 -1
  95. data/vendor/assets/stylesheets/tom-select-rails/scss/_items.scss +1 -0
  96. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.default.scss +1 -1
  97. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.scss +4 -4
  98. metadata +3 -35
  99. data/vendor/assets/javascripts/tom-select-rails/types/constants.d.ts +0 -12
  100. data/vendor/assets/javascripts/tom-select-rails/types/contrib/highlight.d.ts +0 -13
  101. data/vendor/assets/javascripts/tom-select-rails/types/contrib/microevent.d.ts +0 -20
  102. data/vendor/assets/javascripts/tom-select-rails/types/contrib/microplugin.d.ts +0 -71
  103. data/vendor/assets/javascripts/tom-select-rails/types/defaults.d.ts +0 -52
  104. data/vendor/assets/javascripts/tom-select-rails/types/getSettings.d.ts +0 -3
  105. data/vendor/assets/javascripts/tom-select-rails/types/plugins/caret_position/plugin.d.ts +0 -16
  106. data/vendor/assets/javascripts/tom-select-rails/types/plugins/change_listener/plugin.d.ts +0 -16
  107. data/vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/plugin.d.ts +0 -17
  108. data/vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/types.d.ts +0 -14
  109. data/vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/plugin.d.ts +0 -17
  110. data/vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/types.d.ts +0 -5
  111. data/vendor/assets/javascripts/tom-select-rails/types/plugins/drag_drop/plugin.d.ts +0 -16
  112. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/plugin.d.ts +0 -17
  113. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/types.d.ts +0 -8
  114. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_input/plugin.d.ts +0 -16
  115. data/vendor/assets/javascripts/tom-select-rails/types/plugins/input_autogrow/plugin.d.ts +0 -15
  116. data/vendor/assets/javascripts/tom-select-rails/types/plugins/no_active_items/plugin.d.ts +0 -15
  117. data/vendor/assets/javascripts/tom-select-rails/types/plugins/no_backspace_delete/plugin.d.ts +0 -15
  118. data/vendor/assets/javascripts/tom-select-rails/types/plugins/optgroup_columns/plugin.d.ts +0 -16
  119. data/vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/plugin.d.ts +0 -17
  120. data/vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/types.d.ts +0 -6
  121. data/vendor/assets/javascripts/tom-select-rails/types/plugins/restore_on_backspace/plugin.d.ts +0 -21
  122. data/vendor/assets/javascripts/tom-select-rails/types/plugins/virtual_scroll/plugin.d.ts +0 -16
  123. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.complete.d.ts +0 -2
  124. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.d.ts +0 -594
  125. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.popular.d.ts +0 -2
  126. data/vendor/assets/javascripts/tom-select-rails/types/types/core.d.ts +0 -49
  127. data/vendor/assets/javascripts/tom-select-rails/types/types/index.d.ts +0 -2
  128. data/vendor/assets/javascripts/tom-select-rails/types/types/settings.d.ts +0 -79
  129. data/vendor/assets/javascripts/tom-select-rails/types/utils.d.ts +0 -95
  130. data/vendor/assets/javascripts/tom-select-rails/types/vanilla.d.ts +0 -76
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tom-select.css (v2.4.3)
2
+ * tom-select.css (v2.4.5)
3
3
  * Copyright (c) contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -49,7 +49,7 @@ $select-border-width: 1px !default;
49
49
  $select-border: $select-border-width solid $select-color-border !default;
50
50
  $select-dropdown-border: 1px solid $select-color-dropdown-border !default;
51
51
  $select-border-radius: 3px !default;
52
- $select-width-item-border: 0 !default;
52
+ $select-width-item-border: 0px !default;
53
53
  $select-max-height-dropdown: 200px !default;
54
54
  $select-padding-x: 8px !default;
55
55
  $select-padding-y: 8px !default;
@@ -62,8 +62,8 @@ $select-margin-item-y: 3px !default;
62
62
  $select-arrow-size: 5px !default;
63
63
  $select-arrow-color: #808080 !default;
64
64
  $select-arrow-offset: 15px !default;
65
- $select-caret-margin: 0 4px !default;
66
- $select-caret-margin-rtl: 0 4px 0 -2px !default;
65
+ $select-caret-margin: 0px 4px !default;
66
+ $select-caret-margin-rtl: 0px 4px 0px -2px !default;
67
67
  $select-spinner-size: 30px !default;
68
68
  $select-spinner-border-size: 5px !default;
69
69
  $select-spinner-border-color: $select-color-border !default;
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tom-select-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyson Gach
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-14 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  email: tyson@tysongach.com
13
13
  executables: []
@@ -254,38 +254,6 @@ files:
254
254
  - vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js.map
255
255
  - vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js
256
256
  - vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js.map
257
- - vendor/assets/javascripts/tom-select-rails/types/constants.d.ts
258
- - vendor/assets/javascripts/tom-select-rails/types/contrib/highlight.d.ts
259
- - vendor/assets/javascripts/tom-select-rails/types/contrib/microevent.d.ts
260
- - vendor/assets/javascripts/tom-select-rails/types/contrib/microplugin.d.ts
261
- - vendor/assets/javascripts/tom-select-rails/types/defaults.d.ts
262
- - vendor/assets/javascripts/tom-select-rails/types/getSettings.d.ts
263
- - vendor/assets/javascripts/tom-select-rails/types/plugins/caret_position/plugin.d.ts
264
- - vendor/assets/javascripts/tom-select-rails/types/plugins/change_listener/plugin.d.ts
265
- - vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/plugin.d.ts
266
- - vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/types.d.ts
267
- - vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/plugin.d.ts
268
- - vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/types.d.ts
269
- - vendor/assets/javascripts/tom-select-rails/types/plugins/drag_drop/plugin.d.ts
270
- - vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/plugin.d.ts
271
- - vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/types.d.ts
272
- - vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_input/plugin.d.ts
273
- - vendor/assets/javascripts/tom-select-rails/types/plugins/input_autogrow/plugin.d.ts
274
- - vendor/assets/javascripts/tom-select-rails/types/plugins/no_active_items/plugin.d.ts
275
- - vendor/assets/javascripts/tom-select-rails/types/plugins/no_backspace_delete/plugin.d.ts
276
- - vendor/assets/javascripts/tom-select-rails/types/plugins/optgroup_columns/plugin.d.ts
277
- - vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/plugin.d.ts
278
- - vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/types.d.ts
279
- - vendor/assets/javascripts/tom-select-rails/types/plugins/restore_on_backspace/plugin.d.ts
280
- - vendor/assets/javascripts/tom-select-rails/types/plugins/virtual_scroll/plugin.d.ts
281
- - vendor/assets/javascripts/tom-select-rails/types/tom-select.complete.d.ts
282
- - vendor/assets/javascripts/tom-select-rails/types/tom-select.d.ts
283
- - vendor/assets/javascripts/tom-select-rails/types/tom-select.popular.d.ts
284
- - vendor/assets/javascripts/tom-select-rails/types/types/core.d.ts
285
- - vendor/assets/javascripts/tom-select-rails/types/types/index.d.ts
286
- - vendor/assets/javascripts/tom-select-rails/types/types/settings.d.ts
287
- - vendor/assets/javascripts/tom-select-rails/types/utils.d.ts
288
- - vendor/assets/javascripts/tom-select-rails/types/vanilla.d.ts
289
257
  - vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css
290
258
  - vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css.map
291
259
  - vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css
@@ -336,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
336
304
  - !ruby/object:Gem::Version
337
305
  version: '0'
338
306
  requirements: []
339
- rubygems_version: 3.6.2
307
+ rubygems_version: 3.6.9
340
308
  specification_version: 4
341
309
  summary: Integrate Tom Select with the asset pipeline in Rails.
342
310
  test_files: []
@@ -1,12 +0,0 @@
1
- export declare const KEY_A = 65;
2
- export declare const KEY_RETURN = 13;
3
- export declare const KEY_ESC = 27;
4
- export declare const KEY_LEFT = 37;
5
- export declare const KEY_UP = 38;
6
- export declare const KEY_RIGHT = 39;
7
- export declare const KEY_DOWN = 40;
8
- export declare const KEY_BACKSPACE = 8;
9
- export declare const KEY_DELETE = 46;
10
- export declare const KEY_TAB = 9;
11
- export declare const IS_MAC: boolean;
12
- export declare const KEY_SHORTCUT: string;
@@ -1,13 +0,0 @@
1
- /**
2
- * highlight v3 | MIT license | Johann Burkard <jb@eaio.com>
3
- * Highlights arbitrary terms in a node.
4
- *
5
- * - Modified by Marshal <beatgates@gmail.com> 2011-6-24 (added regex)
6
- * - Modified by Brian Reavis <brian@thirdroute.com> 2012-8-27 (cleanup)
7
- */
8
- export declare const highlight: (element: HTMLElement, regex: string | RegExp) => void;
9
- /**
10
- * removeHighlight fn copied from highlight v5 and
11
- * edited to remove with(), pass js strict mode, and use without jquery
12
- */
13
- export declare const removeHighlight: (el: HTMLElement) => void;
@@ -1,20 +0,0 @@
1
- /**
2
- * MicroEvent - to make any js object an event emitter
3
- *
4
- * - pure javascript - server compatible, browser compatible
5
- * - dont rely on the browser doms
6
- * - super simple - you get it immediatly, no mistery, no magic involved
7
- *
8
- * @author Jerome Etienne (https://github.com/jeromeetienne)
9
- */
10
- type TCallback = (...args: any) => any;
11
- export default class MicroEvent {
12
- _events: {
13
- [key: string]: TCallback[];
14
- };
15
- constructor();
16
- on(events: string, fct: TCallback): void;
17
- off(events: string, fct: TCallback): void;
18
- trigger(events: string, ...args: any): void;
19
- }
20
- export {};
@@ -1,71 +0,0 @@
1
- /**
2
- * microplugin.js
3
- * Copyright (c) 2013 Brian Reavis & contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- * @author Brian Reavis <brian@thirdroute.com>
15
- */
16
- type TSettings = {
17
- [key: string]: any;
18
- };
19
- type TPlugins = {
20
- names: string[];
21
- settings: TSettings;
22
- requested: {
23
- [key: string]: boolean;
24
- };
25
- loaded: {
26
- [key: string]: any;
27
- };
28
- };
29
- export type TPluginItem = {
30
- name: string;
31
- options: {};
32
- };
33
- export type TPluginHash = {
34
- [key: string]: {};
35
- };
36
- export default function MicroPlugin(Interface: any): {
37
- new (): {
38
- [x: string]: any;
39
- plugins: TPlugins;
40
- /**
41
- * Initializes the listed plugins (with options).
42
- * Acceptable formats:
43
- *
44
- * List (without options):
45
- * ['a', 'b', 'c']
46
- *
47
- * List (with options):
48
- * [{'name': 'a', options: {}}, {'name': 'b', options: {}}]
49
- *
50
- * Hash (with options):
51
- * {'a': { ... }, 'b': { ... }, 'c': { ... }}
52
- *
53
- * @param {array|object} plugins
54
- */
55
- initializePlugins(plugins: string[] | TPluginItem[] | TPluginHash): void;
56
- loadPlugin(name: string): void;
57
- /**
58
- * Initializes a plugin.
59
- *
60
- */
61
- require(name: string): any;
62
- };
63
- [x: string]: any;
64
- /**
65
- * Registers a plugin.
66
- *
67
- * @param {function} fn
68
- */
69
- define(name: string, fn: (this: any, settings: TSettings) => any): void;
70
- };
71
- export {};
@@ -1,52 +0,0 @@
1
- declare const _default: {
2
- options: never[];
3
- optgroups: never[];
4
- plugins: never[];
5
- delimiter: string;
6
- splitOn: null;
7
- persist: boolean;
8
- diacritics: boolean;
9
- create: null;
10
- createOnBlur: boolean;
11
- createFilter: null;
12
- highlight: boolean;
13
- openOnFocus: boolean;
14
- shouldOpen: null;
15
- maxOptions: number;
16
- maxItems: null;
17
- hideSelected: null;
18
- duplicates: boolean;
19
- addPrecedence: boolean;
20
- selectOnTab: boolean;
21
- preload: null;
22
- allowEmptyOption: boolean;
23
- refreshThrottle: number;
24
- loadThrottle: number;
25
- loadingClass: string;
26
- dataAttr: null;
27
- optgroupField: string;
28
- valueField: string;
29
- labelField: string;
30
- disabledField: string;
31
- optgroupLabelField: string;
32
- optgroupValueField: string;
33
- lockOptgroupOrder: boolean;
34
- sortField: string;
35
- searchField: string[];
36
- searchConjunction: string;
37
- mode: null;
38
- wrapperClass: string;
39
- controlClass: string;
40
- dropdownClass: string;
41
- dropdownContentClass: string;
42
- itemClass: string;
43
- optionClass: string;
44
- dropdownParent: null;
45
- controlInput: string;
46
- copyClassesToDropdown: boolean;
47
- placeholder: null;
48
- hidePlaceholder: null;
49
- shouldLoad: (query: string) => boolean;
50
- render: {};
51
- };
52
- export default _default;
@@ -1,3 +0,0 @@
1
- import { TomSettings, RecursivePartial } from './types/index.ts';
2
- import { TomInput } from './types/index.ts';
3
- export default function getSettings(input: TomInput, settings_user: RecursivePartial<TomSettings>): TomSettings;
@@ -1,16 +0,0 @@
1
- /**
2
- * Plugin: "dropdown_input" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- export default function (this: TomSelect): void;
@@ -1,16 +0,0 @@
1
- /**
2
- * Plugin: "change_listener" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- export default function (this: TomSelect): void;
@@ -1,17 +0,0 @@
1
- /**
2
- * Plugin: "checkbox_options" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- import { CBOptions } from './types.ts';
17
- export default function (this: TomSelect, userOptions: CBOptions): void;
@@ -1,14 +0,0 @@
1
- export type CBOptions = {
2
- /**
3
- * a unique class name for the checkbox to find the input
4
- */
5
- className?: string;
6
- /**
7
- * class name to add if checkbox is checked and remove otherwise
8
- */
9
- checkedClassNames?: string[];
10
- /**
11
- * class name to add if checkbox was not checked and remove otherwise
12
- */
13
- uncheckedClassNames?: string[];
14
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * Plugin: "dropdown_header" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- import { CBOptions } from './types.ts';
17
- export default function (this: TomSelect, userOptions: CBOptions): void;
@@ -1,5 +0,0 @@
1
- export type CBOptions = {
2
- className?: string;
3
- title?: string;
4
- html?: (data: CBOptions) => string;
5
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Plugin: "drag_drop" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- export default function (this: TomSelect): void;
@@ -1,17 +0,0 @@
1
- /**
2
- * Plugin: "dropdown_header" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- import { DHOptions } from './types.ts';
17
- export default function (this: TomSelect, userOptions: DHOptions): void;
@@ -1,8 +0,0 @@
1
- export type DHOptions = {
2
- title?: string;
3
- headerClass?: string;
4
- titleRowClass?: string;
5
- labelClass?: string;
6
- closeClass?: string;
7
- html?: (data: DHOptions) => string;
8
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Plugin: "dropdown_input" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- export default function (this: TomSelect): void;
@@ -1,15 +0,0 @@
1
- /**
2
- * Plugin: "input_autogrow" (Tom Select)
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
5
- * file except in compliance with the License. You may obtain a copy of the License at:
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- *
8
- * Unless required by applicable law or agreed to in writing, software distributed under
9
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
10
- * ANY KIND, either express or implied. See the License for the specific language
11
- * governing permissions and limitations under the License.
12
- *
13
- */
14
- import type TomSelect from '../../tom-select.ts';
15
- export default function (this: TomSelect): void;
@@ -1,15 +0,0 @@
1
- /**
2
- * Plugin: "no_active_items" (Tom Select)
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
5
- * file except in compliance with the License. You may obtain a copy of the License at:
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- *
8
- * Unless required by applicable law or agreed to in writing, software distributed under
9
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
10
- * ANY KIND, either express or implied. See the License for the specific language
11
- * governing permissions and limitations under the License.
12
- *
13
- */
14
- import type TomSelect from '../../tom-select.ts';
15
- export default function (this: TomSelect): void;
@@ -1,15 +0,0 @@
1
- /**
2
- * Plugin: "input_autogrow" (Tom Select)
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
5
- * file except in compliance with the License. You may obtain a copy of the License at:
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- *
8
- * Unless required by applicable law or agreed to in writing, software distributed under
9
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
10
- * ANY KIND, either express or implied. See the License for the specific language
11
- * governing permissions and limitations under the License.
12
- *
13
- */
14
- import type TomSelect from '../../tom-select.ts';
15
- export default function (this: TomSelect): void;
@@ -1,16 +0,0 @@
1
- /**
2
- * Plugin: "optgroup_columns" (Tom Select.js)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- export default function (this: TomSelect): void;
@@ -1,17 +0,0 @@
1
- /**
2
- * Plugin: "remove_button" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- import { RBOptions } from './types.ts';
17
- export default function (this: TomSelect, userOptions: RBOptions): void;
@@ -1,6 +0,0 @@
1
- export type RBOptions = {
2
- label?: string;
3
- title?: string;
4
- className?: string;
5
- append?: boolean;
6
- };
@@ -1,21 +0,0 @@
1
- /**
2
- * Plugin: "restore_on_backspace" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- import { TomOption } from '../../types/index.ts';
17
- type TPluginOptions = {
18
- text?: (option: TomOption) => string;
19
- };
20
- export default function (this: TomSelect, userOptions: TPluginOptions): void;
21
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * Plugin: "restore_on_backspace" (Tom Select)
3
- * Copyright (c) contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
- * file except in compliance with the License. You may obtain a copy of the License at:
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under
10
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- * ANY KIND, either express or implied. See the License for the specific language
12
- * governing permissions and limitations under the License.
13
- *
14
- */
15
- import type TomSelect from '../../tom-select.ts';
16
- export default function (this: TomSelect): void;
@@ -1,2 +0,0 @@
1
- import TomSelect from './tom-select.ts';
2
- export default TomSelect;