tom-select-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +26 -0
  4. data/Rakefile +3 -0
  5. data/lib/tom-select-rails/engine.rb +8 -0
  6. data/lib/tom-select-rails/version.rb +5 -0
  7. data/lib/tom-select-rails.rb +7 -0
  8. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.complete.js +4887 -0
  9. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.complete.js.map +1 -0
  10. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js +4085 -0
  11. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js.map +1 -0
  12. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.popular.js +4337 -0
  13. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.popular.js.map +1 -0
  14. data/vendor/assets/javascripts/tom-select-rails/cjs/utils.js +196 -0
  15. data/vendor/assets/javascripts/tom-select-rails/cjs/utils.js.map +1 -0
  16. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js +162 -0
  17. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js.map +1 -0
  18. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js +50 -0
  19. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js.map +1 -0
  20. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js +172 -0
  21. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js.map +1 -0
  22. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js +91 -0
  23. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js.map +1 -0
  24. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js +62 -0
  25. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js.map +1 -0
  26. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js +118 -0
  27. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js.map +1 -0
  28. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js +230 -0
  29. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js.map +1 -0
  30. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js +80 -0
  31. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js.map +1 -0
  32. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js +25 -0
  33. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js.map +1 -0
  34. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js +32 -0
  35. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js.map +1 -0
  36. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js +108 -0
  37. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js.map +1 -0
  38. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js +146 -0
  39. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js.map +1 -0
  40. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js +43 -0
  41. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js.map +1 -0
  42. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js +261 -0
  43. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js.map +1 -0
  44. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.complete.js +4885 -0
  45. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.complete.js.map +1 -0
  46. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js +4083 -0
  47. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js.map +1 -0
  48. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.popular.js +4335 -0
  49. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.popular.js.map +1 -0
  50. data/vendor/assets/javascripts/tom-select-rails/esm/utils.js +181 -0
  51. data/vendor/assets/javascripts/tom-select-rails/esm/utils.js.map +1 -0
  52. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js +170 -0
  53. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js.map +1 -0
  54. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js +58 -0
  55. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js.map +1 -0
  56. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js +180 -0
  57. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js.map +1 -0
  58. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js +99 -0
  59. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js.map +1 -0
  60. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js +70 -0
  61. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js.map +1 -0
  62. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js +126 -0
  63. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js.map +1 -0
  64. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js +238 -0
  65. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js.map +1 -0
  66. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js +88 -0
  67. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js.map +1 -0
  68. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js +33 -0
  69. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js.map +1 -0
  70. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js +40 -0
  71. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js.map +1 -0
  72. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js +116 -0
  73. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js.map +1 -0
  74. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js +154 -0
  75. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js.map +1 -0
  76. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js +51 -0
  77. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js.map +1 -0
  78. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js +269 -0
  79. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js.map +1 -0
  80. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js +4092 -0
  81. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js.map +1 -0
  82. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js +303 -0
  83. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js.map +1 -0
  84. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js +4894 -0
  85. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js.map +1 -0
  86. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js +362 -0
  87. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js.map +1 -0
  88. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js +4344 -0
  89. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js.map +1 -0
  90. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js +324 -0
  91. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js.map +1 -0
  92. data/vendor/assets/javascripts/tom-select-rails/types/constants.d.ts +12 -0
  93. data/vendor/assets/javascripts/tom-select-rails/types/contrib/highlight.d.ts +13 -0
  94. data/vendor/assets/javascripts/tom-select-rails/types/contrib/microevent.d.ts +20 -0
  95. data/vendor/assets/javascripts/tom-select-rails/types/contrib/microplugin.d.ts +71 -0
  96. data/vendor/assets/javascripts/tom-select-rails/types/defaults.d.ts +51 -0
  97. data/vendor/assets/javascripts/tom-select-rails/types/getSettings.d.ts +3 -0
  98. data/vendor/assets/javascripts/tom-select-rails/types/plugins/caret_position/plugin.d.ts +16 -0
  99. data/vendor/assets/javascripts/tom-select-rails/types/plugins/change_listener/plugin.d.ts +16 -0
  100. data/vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/plugin.d.ts +16 -0
  101. data/vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/plugin.d.ts +17 -0
  102. data/vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/types.d.ts +5 -0
  103. data/vendor/assets/javascripts/tom-select-rails/types/plugins/drag_drop/plugin.d.ts +16 -0
  104. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/plugin.d.ts +17 -0
  105. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/types.d.ts +8 -0
  106. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_input/plugin.d.ts +16 -0
  107. data/vendor/assets/javascripts/tom-select-rails/types/plugins/input_autogrow/plugin.d.ts +15 -0
  108. data/vendor/assets/javascripts/tom-select-rails/types/plugins/no_active_items/plugin.d.ts +15 -0
  109. data/vendor/assets/javascripts/tom-select-rails/types/plugins/no_backspace_delete/plugin.d.ts +15 -0
  110. data/vendor/assets/javascripts/tom-select-rails/types/plugins/optgroup_columns/plugin.d.ts +16 -0
  111. data/vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/plugin.d.ts +17 -0
  112. data/vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/types.d.ts +6 -0
  113. data/vendor/assets/javascripts/tom-select-rails/types/plugins/restore_on_backspace/plugin.d.ts +21 -0
  114. data/vendor/assets/javascripts/tom-select-rails/types/plugins/virtual_scroll/plugin.d.ts +16 -0
  115. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.complete.d.ts +2 -0
  116. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.d.ts +579 -0
  117. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.popular.d.ts +2 -0
  118. data/vendor/assets/javascripts/tom-select-rails/types/types/core.d.ts +44 -0
  119. data/vendor/assets/javascripts/tom-select-rails/types/types/index.d.ts +2 -0
  120. data/vendor/assets/javascripts/tom-select-rails/types/types/settings.d.ts +81 -0
  121. data/vendor/assets/javascripts/tom-select-rails/types/utils.d.ts +76 -0
  122. data/vendor/assets/javascripts/tom-select-rails/types/vanilla.d.ts +76 -0
  123. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css +548 -0
  124. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css.map +1 -0
  125. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css +2 -0
  126. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css.map +1 -0
  127. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css +592 -0
  128. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css.map +1 -0
  129. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.min.css +2 -0
  130. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.min.css.map +1 -0
  131. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css +391 -0
  132. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css.map +1 -0
  133. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css +476 -0
  134. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css.map +1 -0
  135. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.min.css +2 -0
  136. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.min.css.map +1 -0
  137. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.min.css +2 -0
  138. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.min.css.map +1 -0
  139. data/vendor/assets/stylesheets/tom-select-rails/scss/_dropdown.scss +104 -0
  140. data/vendor/assets/stylesheets/tom-select-rails/scss/_items.scss +115 -0
  141. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/checkbox_options.scss +5 -0
  142. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/clear_button.scss +30 -0
  143. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/drag_drop.scss +16 -0
  144. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/dropdown_header.scss +23 -0
  145. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/dropdown_input.scss +47 -0
  146. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/input_autogrow.scss +18 -0
  147. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/optgroup_columns.scss +23 -0
  148. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/remove_button.scss +44 -0
  149. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.bootstrap4.scss +219 -0
  150. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.bootstrap5.scss +274 -0
  151. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.default.scss +87 -0
  152. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.scss +175 -0
  153. metadata +195 -0
@@ -0,0 +1,76 @@
1
+ import TomSelect from './tom-select';
2
+ import { TomLoadCallback } from './types/index';
3
+ /**
4
+ * Converts a scalar to its best string representation
5
+ * for hash keys and HTML attribute values.
6
+ *
7
+ * Transformations:
8
+ * 'str' -> 'str'
9
+ * null -> ''
10
+ * undefined -> ''
11
+ * true -> '1'
12
+ * false -> '0'
13
+ * 0 -> '0'
14
+ * 1 -> '1'
15
+ *
16
+ */
17
+ export declare const hash_key: (value: undefined | null | boolean | string) => string | null;
18
+ export declare const get_hash: (value: boolean | string) => string;
19
+ /**
20
+ * Escapes a string for use within HTML.
21
+ *
22
+ */
23
+ export declare const escape_html: (str: string) => string;
24
+ /**
25
+ * Debounce the user provided load function
26
+ *
27
+ */
28
+ export declare const loadDebounce: (fn: (value: string, callback: TomLoadCallback) => void, delay: number) => (this: TomSelect, value: string, callback: TomLoadCallback) => void;
29
+ /**
30
+ * Debounce all fired events types listed in `types`
31
+ * while executing the provided `fn`.
32
+ *
33
+ */
34
+ export declare const debounce_events: (self: TomSelect, types: string[], fn: () => void) => void;
35
+ /**
36
+ * Determines the current selection within a text input control.
37
+ * Returns an object containing:
38
+ * - start
39
+ * - length
40
+ *
41
+ */
42
+ export declare const getSelection: (input: HTMLInputElement) => {
43
+ start: number;
44
+ length: number;
45
+ };
46
+ /**
47
+ * Prevent default
48
+ *
49
+ */
50
+ export declare const preventDefault: (evt?: Event | undefined, stop?: boolean) => void;
51
+ /**
52
+ * Prevent default
53
+ *
54
+ */
55
+ export declare const addEvent: (target: EventTarget, type: string, callback: EventListenerOrEventListenerObject, options?: object | undefined) => void;
56
+ /**
57
+ * Return true if the requested key is down
58
+ * Will return false if more than one control character is pressed ( when [ctrl+shift+a] != [ctrl+a] )
59
+ * The current evt may not always set ( eg calling advanceSelection() )
60
+ *
61
+ */
62
+ export declare const isKeyDown: (key_name: keyof (KeyboardEvent | MouseEvent), evt?: MouseEvent | KeyboardEvent | undefined) => boolean;
63
+ /**
64
+ * Get the id of an element
65
+ * If the id attribute is not set, set the attribute with the given id
66
+ *
67
+ */
68
+ export declare const getId: (el: Element, id: string) => string;
69
+ /**
70
+ * Returns a string with backslashes added before characters that need to be escaped.
71
+ */
72
+ export declare const addSlashes: (str: string) => string;
73
+ /**
74
+ *
75
+ */
76
+ export declare const append: (parent: Element | DocumentFragment, node: string | Node | null | undefined) => void;
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Return a dom element from either a dom query string, jQuery object, a dom element or html string
3
+ * https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
4
+ *
5
+ * param query should be {}
6
+ */
7
+ export declare const getDom: (query: any) => HTMLElement;
8
+ export declare const isHtmlString: (arg: any) => boolean;
9
+ export declare const escapeQuery: (query: string) => string;
10
+ /**
11
+ * Dispatch an event
12
+ *
13
+ */
14
+ export declare const triggerEvent: (dom_el: HTMLElement, event_name: string) => void;
15
+ /**
16
+ * Apply CSS rules to a dom element
17
+ *
18
+ */
19
+ export declare const applyCSS: (dom_el: HTMLElement, css: {
20
+ [key: string]: string | number;
21
+ }) => void;
22
+ /**
23
+ * Add css classes
24
+ *
25
+ */
26
+ export declare const addClasses: (elmts: HTMLElement | HTMLElement[], ...classes: string[] | string[][]) => void;
27
+ /**
28
+ * Remove css classes
29
+ *
30
+ */
31
+ export declare const removeClasses: (elmts: HTMLElement | HTMLElement[], ...classes: string[] | string[][]) => void;
32
+ /**
33
+ * Return arguments
34
+ *
35
+ */
36
+ export declare const classesArray: (args: string[] | string[][]) => string[];
37
+ /**
38
+ * Create an array from arg if it's not already an array
39
+ *
40
+ */
41
+ export declare const castAsArray: (arg: any) => Array<any>;
42
+ /**
43
+ * Get the closest node to the evt.target matching the selector
44
+ * Stops at wrapper
45
+ *
46
+ */
47
+ export declare const parentMatch: (target: null | HTMLElement, selector: string, wrapper?: HTMLElement | undefined) => HTMLElement | void;
48
+ /**
49
+ * Get the first or last item from an array
50
+ *
51
+ * > 0 - right (last)
52
+ * <= 0 - left (first)
53
+ *
54
+ */
55
+ export declare const getTail: (list: Array<any> | NodeList, direction?: number) => any;
56
+ /**
57
+ * Return true if an object is empty
58
+ *
59
+ */
60
+ export declare const isEmptyObject: (obj: object) => boolean;
61
+ /**
62
+ * Get the index of an element amongst sibling nodes of the same type
63
+ *
64
+ */
65
+ export declare const nodeIndex: (el: null | Element, amongst?: string | undefined) => number;
66
+ /**
67
+ * Set attributes of an element
68
+ *
69
+ */
70
+ export declare const setAttr: (el: Element, attrs: {
71
+ [key: string]: string | number | null;
72
+ }) => void;
73
+ /**
74
+ * Replace a node
75
+ */
76
+ export declare const replaceNode: (existing: Node, replacement: Node) => void;
@@ -0,0 +1,548 @@
1
+ /**
2
+ * Tom Select bootstrap 4
3
+ */
4
+ /**
5
+ * tom-select.css (v2.0.3)
6
+ * Copyright (c) contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
9
+ * file except in compliance with the License. You may obtain a copy of the License at:
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software distributed under
13
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
14
+ * ANY KIND, either express or implied. See the License for the specific language
15
+ * governing permissions and limitations under the License.
16
+ *
17
+ */
18
+ .ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {
19
+ cursor: pointer;
20
+ }
21
+
22
+ .ts-wrapper.plugin-drag_drop.multi > .ts-control > div.ui-sortable-placeholder {
23
+ visibility: visible !important;
24
+ background: #f2f2f2 !important;
25
+ background: rgba(0, 0, 0, 0.06) !important;
26
+ border: 0 none !important;
27
+ box-shadow: inset 0 0 12px 4px #fff;
28
+ }
29
+ .ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
30
+ content: "!";
31
+ visibility: hidden;
32
+ }
33
+ .ts-wrapper.plugin-drag_drop .ui-sortable-helper {
34
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
35
+ }
36
+
37
+ .plugin-checkbox_options .option input {
38
+ margin-right: 0.5rem;
39
+ }
40
+
41
+ .plugin-clear_button .ts-control {
42
+ padding-right: calc(1em + (3 * 5px)) !important;
43
+ }
44
+ .plugin-clear_button .clear-button {
45
+ opacity: 0;
46
+ position: absolute;
47
+ top: 0.375rem;
48
+ right: calc(0.75rem - 5px);
49
+ margin-right: 0 !important;
50
+ background: transparent !important;
51
+ transition: opacity 0.5s;
52
+ cursor: pointer;
53
+ }
54
+ .plugin-clear_button.single .clear-button {
55
+ right: calc(0.75rem - 5px + 2rem);
56
+ }
57
+ .plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {
58
+ opacity: 1;
59
+ }
60
+
61
+ .ts-wrapper .dropdown-header {
62
+ position: relative;
63
+ padding: 6px 0.75rem;
64
+ border-bottom: 1px solid #d0d0d0;
65
+ background: #f8f8f8;
66
+ border-radius: 0.25rem 0.25rem 0 0;
67
+ }
68
+ .ts-wrapper .dropdown-header-close {
69
+ position: absolute;
70
+ right: 0.75rem;
71
+ top: 50%;
72
+ color: #343a40;
73
+ opacity: 0.4;
74
+ margin-top: -12px;
75
+ line-height: 20px;
76
+ font-size: 20px !important;
77
+ }
78
+ .ts-wrapper .dropdown-header-close:hover {
79
+ color: black;
80
+ }
81
+
82
+ .plugin-dropdown_input.focus.dropdown-active .ts-control {
83
+ box-shadow: none;
84
+ border: 1px solid #ced4da;
85
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
86
+ }
87
+ .plugin-dropdown_input .dropdown-input {
88
+ border: 1px solid #d0d0d0;
89
+ border-width: 0 0 1px 0;
90
+ display: block;
91
+ padding: 0.375rem 0.75rem;
92
+ box-shadow: none;
93
+ width: 100%;
94
+ background: transparent;
95
+ }
96
+ .plugin-dropdown_input.focus .ts-dropdown .dropdown-input {
97
+ border-color: #80bdff;
98
+ outline: 0;
99
+ box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
100
+ }
101
+ .plugin-dropdown_input .items-placeholder {
102
+ border: 0 none !important;
103
+ box-shadow: none !important;
104
+ width: 100%;
105
+ }
106
+ .plugin-dropdown_input.has-items .items-placeholder, .plugin-dropdown_input.dropdown-active .items-placeholder {
107
+ display: none !important;
108
+ }
109
+
110
+ .ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
111
+ min-width: 0;
112
+ }
113
+ .ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
114
+ flex: none;
115
+ min-width: 4px;
116
+ }
117
+ .ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-webkit-input-placeholder {
118
+ color: transparent;
119
+ }
120
+ .ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {
121
+ color: transparent;
122
+ }
123
+ .ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
124
+ color: transparent;
125
+ }
126
+
127
+ .ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
128
+ display: flex;
129
+ }
130
+ .ts-dropdown.plugin-optgroup_columns .optgroup {
131
+ border-right: 1px solid #f2f2f2;
132
+ border-top: 0 none;
133
+ flex-grow: 1;
134
+ flex-basis: 0;
135
+ min-width: 0;
136
+ }
137
+ .ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
138
+ border-right: 0 none;
139
+ }
140
+ .ts-dropdown.plugin-optgroup_columns .optgroup:before {
141
+ display: none;
142
+ }
143
+ .ts-dropdown.plugin-optgroup_columns .optgroup-header {
144
+ border-top: 0 none;
145
+ }
146
+
147
+ .ts-wrapper.plugin-remove_button .item {
148
+ display: inline-flex;
149
+ align-items: center;
150
+ padding-right: 0 !important;
151
+ }
152
+ .ts-wrapper.plugin-remove_button .item .remove {
153
+ color: inherit;
154
+ text-decoration: none;
155
+ vertical-align: middle;
156
+ display: inline-block;
157
+ padding: 0 5px;
158
+ border-left: 1px solid #dee2e6;
159
+ border-radius: 0 2px 2px 0;
160
+ box-sizing: border-box;
161
+ margin-left: 5px;
162
+ }
163
+ .ts-wrapper.plugin-remove_button .item .remove:hover {
164
+ background: rgba(0, 0, 0, 0.05);
165
+ }
166
+ .ts-wrapper.plugin-remove_button .item.active .remove {
167
+ border-left-color: rgba(0, 0, 0, 0);
168
+ }
169
+ .ts-wrapper.plugin-remove_button.disabled .item .remove:hover {
170
+ background: none;
171
+ }
172
+ .ts-wrapper.plugin-remove_button.disabled .item .remove {
173
+ border-left-color: white;
174
+ }
175
+ .ts-wrapper.plugin-remove_button .remove-single {
176
+ position: absolute;
177
+ right: 0;
178
+ top: 0;
179
+ font-size: 23px;
180
+ }
181
+
182
+ .ts-wrapper {
183
+ position: relative;
184
+ }
185
+
186
+ .ts-dropdown,
187
+ .ts-control,
188
+ .ts-control input {
189
+ color: #343a40;
190
+ font-family: inherit;
191
+ font-size: inherit;
192
+ line-height: 1.5;
193
+ font-smoothing: inherit;
194
+ }
195
+
196
+ .ts-control,
197
+ .ts-wrapper.single.input-active .ts-control {
198
+ background: #fff;
199
+ cursor: text;
200
+ }
201
+
202
+ .ts-control {
203
+ border: 1px solid #ced4da;
204
+ padding: 0.375rem 0.75rem;
205
+ width: 100%;
206
+ overflow: hidden;
207
+ position: relative;
208
+ z-index: 1;
209
+ box-sizing: border-box;
210
+ box-shadow: none;
211
+ border-radius: 0.25rem;
212
+ display: flex;
213
+ flex-wrap: wrap;
214
+ }
215
+ .ts-wrapper.multi.has-items .ts-control {
216
+ padding: calc( 0.375rem - 1px - 0px) 0.75rem calc( 0.375rem - 1px - 3px - 0px);
217
+ }
218
+ .full .ts-control {
219
+ background-color: #fff;
220
+ }
221
+ .disabled .ts-control, .disabled .ts-control * {
222
+ cursor: default !important;
223
+ }
224
+ .focus .ts-control {
225
+ box-shadow: none;
226
+ }
227
+ .ts-control > * {
228
+ vertical-align: baseline;
229
+ display: inline-block;
230
+ }
231
+ .ts-wrapper.multi .ts-control > div {
232
+ cursor: pointer;
233
+ margin: 0 3px 3px 0;
234
+ padding: 1px 5px;
235
+ background: #efefef;
236
+ color: #343a40;
237
+ border: 0px solid #dee2e6;
238
+ }
239
+ .ts-wrapper.multi .ts-control > div.active {
240
+ background: #007bff;
241
+ color: #fff;
242
+ border: 0px solid rgba(0, 0, 0, 0);
243
+ }
244
+ .ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
245
+ color: #878787;
246
+ background: white;
247
+ border: 0px solid white;
248
+ }
249
+ .ts-control > input {
250
+ flex: 1 1 auto;
251
+ min-width: 7rem;
252
+ display: inline-block !important;
253
+ padding: 0 !important;
254
+ min-height: 0 !important;
255
+ max-height: none !important;
256
+ max-width: 100% !important;
257
+ margin: 0 !important;
258
+ text-indent: 0 !important;
259
+ border: 0 none !important;
260
+ background: none !important;
261
+ line-height: inherit !important;
262
+ -webkit-user-select: auto !important;
263
+ -moz-user-select: auto !important;
264
+ -ms-user-select: auto !important;
265
+ user-select: auto !important;
266
+ box-shadow: none !important;
267
+ }
268
+ .ts-control > input::-ms-clear {
269
+ display: none;
270
+ }
271
+ .ts-control > input:focus {
272
+ outline: none !important;
273
+ }
274
+ .has-items .ts-control > input {
275
+ margin: 0 4px !important;
276
+ }
277
+ .ts-control.rtl {
278
+ text-align: right;
279
+ }
280
+ .ts-control.rtl.single .ts-control:after {
281
+ left: calc(0.75rem + 5px);
282
+ right: auto;
283
+ }
284
+ .ts-control.rtl .ts-control > input {
285
+ margin: 0 4px 0 -2px !important;
286
+ }
287
+ .disabled .ts-control {
288
+ opacity: 0.5;
289
+ background-color: #e9ecef;
290
+ }
291
+ .input-hidden .ts-control > input {
292
+ opacity: 0;
293
+ position: absolute;
294
+ left: -10000px;
295
+ }
296
+
297
+ .ts-dropdown {
298
+ position: absolute;
299
+ top: 100%;
300
+ left: 0;
301
+ width: 100%;
302
+ z-index: 10;
303
+ border: 1px solid #d0d0d0;
304
+ background: #fff;
305
+ margin: 0.25rem 0 0 0;
306
+ border-top: 0 none;
307
+ box-sizing: border-box;
308
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
309
+ border-radius: 0 0 0.25rem 0.25rem;
310
+ }
311
+ .ts-dropdown [data-selectable] {
312
+ cursor: pointer;
313
+ overflow: hidden;
314
+ }
315
+ .ts-dropdown [data-selectable] .highlight {
316
+ background: rgba(255, 237, 40, 0.4);
317
+ border-radius: 1px;
318
+ }
319
+ .ts-dropdown .option,
320
+ .ts-dropdown .optgroup-header,
321
+ .ts-dropdown .no-results,
322
+ .ts-dropdown .create {
323
+ padding: 3px 0.75rem;
324
+ }
325
+ .ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
326
+ cursor: inherit;
327
+ opacity: 0.5;
328
+ }
329
+ .ts-dropdown [data-selectable].option {
330
+ opacity: 1;
331
+ cursor: pointer;
332
+ }
333
+ .ts-dropdown .optgroup:first-child .optgroup-header {
334
+ border-top: 0 none;
335
+ }
336
+ .ts-dropdown .optgroup-header {
337
+ color: #6c757d;
338
+ background: #fff;
339
+ cursor: default;
340
+ }
341
+ .ts-dropdown .create:hover,
342
+ .ts-dropdown .option:hover,
343
+ .ts-dropdown .active {
344
+ background-color: #e9ecef;
345
+ color: #16181b;
346
+ }
347
+ .ts-dropdown .create:hover.create,
348
+ .ts-dropdown .option:hover.create,
349
+ .ts-dropdown .active.create {
350
+ color: #16181b;
351
+ }
352
+ .ts-dropdown .create {
353
+ color: rgba(52, 58, 64, 0.5);
354
+ }
355
+ .ts-dropdown .spinner {
356
+ display: inline-block;
357
+ width: 30px;
358
+ height: 30px;
359
+ margin: 3px 0.75rem;
360
+ }
361
+ .ts-dropdown .spinner:after {
362
+ content: " ";
363
+ display: block;
364
+ width: 24px;
365
+ height: 24px;
366
+ margin: 3px;
367
+ border-radius: 50%;
368
+ border: 5px solid #d0d0d0;
369
+ border-color: #d0d0d0 transparent #d0d0d0 transparent;
370
+ animation: lds-dual-ring 1.2s linear infinite;
371
+ }
372
+ @keyframes lds-dual-ring {
373
+ 0% {
374
+ transform: rotate(0deg);
375
+ }
376
+ 100% {
377
+ transform: rotate(360deg);
378
+ }
379
+ }
380
+
381
+ .ts-dropdown-content {
382
+ overflow-y: auto;
383
+ overflow-x: hidden;
384
+ max-height: 200px;
385
+ overflow-scrolling: touch;
386
+ scroll-behavior: smooth;
387
+ }
388
+
389
+ .ts-hidden-accessible {
390
+ border: 0 !important;
391
+ clip: rect(0 0 0 0) !important;
392
+ -webkit-clip-path: inset(50%) !important;
393
+ clip-path: inset(50%) !important;
394
+ overflow: hidden !important;
395
+ padding: 0 !important;
396
+ position: absolute !important;
397
+ width: 1px !important;
398
+ white-space: nowrap !important;
399
+ }
400
+
401
+ .ts-wrapper.single .ts-control {
402
+ padding-right: 2rem;
403
+ }
404
+ .ts-wrapper.single .ts-control:after {
405
+ content: " ";
406
+ display: block;
407
+ position: absolute;
408
+ top: 50%;
409
+ right: calc(0.75rem + 5px);
410
+ margin-top: -3px;
411
+ width: 0;
412
+ height: 0;
413
+ border-style: solid;
414
+ border-width: 5px 5px 0 5px;
415
+ border-color: #343a40 transparent transparent transparent;
416
+ }
417
+ .ts-wrapper.single.dropdown-active .ts-control::after {
418
+ margin-top: -4px;
419
+ border-width: 0 5px 5px 5px;
420
+ border-color: transparent transparent #343a40 transparent;
421
+ }
422
+ .ts-wrapper.single.input-active .ts-control, .ts-wrapper.single.input-active .ts-control input {
423
+ cursor: text;
424
+ }
425
+
426
+ .ts-wrapper.form-control,
427
+ .ts-wrapper.form-select {
428
+ padding: 0 !important;
429
+ }
430
+
431
+ .ts-dropdown,
432
+ .ts-dropdown.form-control {
433
+ height: auto;
434
+ padding: 0;
435
+ z-index: 1000;
436
+ background: #fff;
437
+ border: 1px solid rgba(0, 0, 0, 0.15);
438
+ border-radius: 0.25rem;
439
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
440
+ }
441
+
442
+ .ts-dropdown .optgroup-header {
443
+ font-size: 0.875rem;
444
+ line-height: 1.5;
445
+ }
446
+ .ts-dropdown .optgroup:first-child:before {
447
+ display: none;
448
+ }
449
+ .ts-dropdown .optgroup:before {
450
+ content: " ";
451
+ display: block;
452
+ height: 0;
453
+ margin: 0.5rem 0;
454
+ overflow: hidden;
455
+ border-top: 1px solid #e9ecef;
456
+ margin-left: -0.75rem;
457
+ margin-right: -0.75rem;
458
+ }
459
+ .ts-dropdown .create {
460
+ padding-left: 0.75rem;
461
+ }
462
+
463
+ .ts-dropdown-content {
464
+ padding: 5px 0;
465
+ }
466
+
467
+ .ts-control {
468
+ min-height: calc(1.5em + 0.75rem + 2px);
469
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
470
+ display: flex;
471
+ align-items: center;
472
+ }
473
+ @media (prefers-reduced-motion: reduce) {
474
+ .ts-control {
475
+ transition: none;
476
+ }
477
+ }
478
+ .focus .ts-control {
479
+ border-color: #80bdff;
480
+ outline: 0;
481
+ box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
482
+ }
483
+
484
+ .is-invalid .ts-control,
485
+ .was-validated .invalid .ts-control {
486
+ border-color: #dc3545;
487
+ }
488
+ .focus .is-invalid .ts-control,
489
+ .focus .was-validated .invalid .ts-control {
490
+ border-color: #bd2130;
491
+ box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
492
+ }
493
+
494
+ .is-valid .ts-control {
495
+ border-color: #28a745;
496
+ }
497
+ .focus .is-valid .ts-control {
498
+ border-color: #28a745;
499
+ box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
500
+ }
501
+
502
+ .input-group-sm > .ts-wrapper .ts-control, .ts-wrapper.form-control-sm .ts-control {
503
+ min-height: calc(1.5em + 0.5rem + 2px);
504
+ padding: 0 0.75rem;
505
+ border-radius: 0.2rem;
506
+ font-size: 0.875rem;
507
+ }
508
+ .input-group-sm > .ts-wrapper.has-items .ts-control, .ts-wrapper.form-control-sm.has-items .ts-control {
509
+ min-height: calc(1.5em + 0.5rem + 2px) !important;
510
+ font-size: 0.875rem;
511
+ padding-bottom: 0;
512
+ }
513
+ .input-group-sm > .ts-wrapper.multi.has-items .ts-control, .ts-wrapper.form-control-sm.multi.has-items .ts-control {
514
+ padding-top: calc((calc(1.5em + 0.5rem + 2px) - (1.5 * 0.875rem) - 4px) / 2) !important;
515
+ }
516
+ .ts-wrapper.multi.has-items .ts-control {
517
+ padding-left: calc(0.75rem - 5px);
518
+ padding-right: calc(0.75rem - 5px);
519
+ }
520
+ .ts-wrapper.multi .ts-control > div {
521
+ border-radius: calc(0.25rem - 1px);
522
+ }
523
+ .input-group-lg > .ts-wrapper > .ts-control, .ts-wrapper.form-control-lg .ts-control {
524
+ min-height: calc(1.5em + 1rem + 2px);
525
+ border-radius: 0.3rem;
526
+ font-size: 1.25rem;
527
+ }
528
+
529
+ .form-control.ts-wrapper {
530
+ padding: 0;
531
+ height: auto;
532
+ border: none;
533
+ background: none;
534
+ border-radius: 0;
535
+ }
536
+
537
+ .input-group > .ts-wrapper {
538
+ flex-grow: 1;
539
+ }
540
+ .input-group > .ts-wrapper:not(:nth-child(2)) > .ts-control {
541
+ border-top-left-radius: 0;
542
+ border-bottom-left-radius: 0;
543
+ }
544
+ .input-group > .ts-wrapper:not(:last-child) > .ts-control {
545
+ border-top-right-radius: 0;
546
+ border-bottom-right-radius: 0;
547
+ }
548
+ /*# sourceMappingURL=tom-select.bootstrap4.css.map */