tom-select-rails 2.2.2 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
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/tom-select.complete.js +614 -820
  4. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.complete.js.map +1 -1
  5. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js +411 -685
  6. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js.map +1 -1
  7. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.popular.js +436 -705
  8. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.popular.js.map +1 -1
  9. data/vendor/assets/javascripts/tom-select-rails/cjs/utils.js +31 -27
  10. data/vendor/assets/javascripts/tom-select-rails/cjs/utils.js.map +1 -1
  11. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js +11 -16
  12. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js.map +1 -1
  13. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js +3 -2
  14. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js.map +1 -1
  15. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js +47 -34
  16. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js.map +1 -1
  17. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js +3 -13
  18. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js.map +1 -1
  19. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js +249 -29
  20. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js.map +1 -1
  21. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js +3 -11
  22. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js.map +1 -1
  23. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js +15 -24
  24. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js.map +1 -1
  25. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js +4 -6
  26. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js.map +1 -1
  27. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js +2 -1
  28. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js.map +1 -1
  29. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js +2 -2
  30. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js.map +1 -1
  31. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js +3 -15
  32. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js.map +1 -1
  33. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js +11 -15
  34. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js.map +1 -1
  35. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js +2 -3
  36. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js.map +1 -1
  37. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js +41 -50
  38. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js.map +1 -1
  39. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.complete.js +614 -820
  40. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.complete.js.map +1 -1
  41. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js +411 -685
  42. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js.map +1 -1
  43. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.popular.js +436 -705
  44. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.popular.js.map +1 -1
  45. data/vendor/assets/javascripts/tom-select-rails/esm/utils.js +31 -26
  46. data/vendor/assets/javascripts/tom-select-rails/esm/utils.js.map +1 -1
  47. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js +11 -16
  48. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js.map +1 -1
  49. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js +3 -2
  50. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js.map +1 -1
  51. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js +47 -34
  52. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js.map +1 -1
  53. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js +3 -13
  54. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js.map +1 -1
  55. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js +249 -29
  56. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js.map +1 -1
  57. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js +3 -11
  58. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js.map +1 -1
  59. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js +15 -24
  60. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js.map +1 -1
  61. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js +4 -6
  62. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js.map +1 -1
  63. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js +2 -1
  64. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js.map +1 -1
  65. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js +2 -2
  66. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js.map +1 -1
  67. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js +3 -15
  68. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js.map +1 -1
  69. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js +11 -15
  70. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js.map +1 -1
  71. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js +2 -3
  72. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js.map +1 -1
  73. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js +41 -50
  74. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js.map +1 -1
  75. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js +411 -685
  76. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js.map +1 -1
  77. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js +87 -78
  78. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js.map +1 -1
  79. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js +614 -820
  80. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js.map +1 -1
  81. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js +195 -176
  82. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js.map +1 -1
  83. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js +436 -705
  84. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js.map +1 -1
  85. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js +87 -78
  86. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js.map +1 -1
  87. data/vendor/assets/javascripts/tom-select-rails/types/contrib/microevent.d.ts +1 -1
  88. data/vendor/assets/javascripts/tom-select-rails/types/contrib/microplugin.d.ts +4 -4
  89. data/vendor/assets/javascripts/tom-select-rails/types/defaults.d.ts +1 -0
  90. data/vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/plugin.d.ts +3 -2
  91. data/vendor/assets/javascripts/tom-select-rails/types/plugins/checkbox_options/types.d.ts +14 -0
  92. data/vendor/assets/javascripts/tom-select-rails/types/plugins/clear_button/types.d.ts +1 -1
  93. data/vendor/assets/javascripts/tom-select-rails/types/plugins/dropdown_header/types.d.ts +1 -1
  94. data/vendor/assets/javascripts/tom-select-rails/types/plugins/remove_button/types.d.ts +1 -1
  95. data/vendor/assets/javascripts/tom-select-rails/types/plugins/restore_on_backspace/plugin.d.ts +1 -1
  96. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.d.ts +10 -12
  97. data/vendor/assets/javascripts/tom-select-rails/types/types/core.d.ts +15 -14
  98. data/vendor/assets/javascripts/tom-select-rails/types/types/settings.d.ts +3 -2
  99. data/vendor/assets/javascripts/tom-select-rails/types/utils.d.ts +7 -0
  100. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css +224 -216
  101. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css.map +1 -1
  102. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css +1 -1
  103. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.min.css.map +1 -1
  104. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css +245 -252
  105. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css.map +1 -1
  106. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.min.css +1 -1
  107. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.min.css.map +1 -1
  108. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css +213 -210
  109. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css.map +1 -1
  110. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css +223 -215
  111. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css.map +1 -1
  112. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.min.css +1 -1
  113. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.min.css.map +1 -1
  114. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.min.css +1 -1
  115. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.min.css.map +1 -1
  116. data/vendor/assets/stylesheets/tom-select-rails/scss/_dropdown.scss +7 -10
  117. data/vendor/assets/stylesheets/tom-select-rails/scss/_items.scss +2 -5
  118. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/checkbox_options.scss +8 -2
  119. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/clear_button.scss +16 -14
  120. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/drag_drop.scss +6 -12
  121. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/dropdown_header.scss +3 -2
  122. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/dropdown_input.scss +7 -11
  123. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/input_autogrow.scss +0 -3
  124. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/optgroup_columns.scss +7 -5
  125. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/remove_button.scss +20 -20
  126. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.bootstrap4.scss +33 -39
  127. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.bootstrap5.scss +54 -80
  128. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.default.scss +16 -14
  129. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.scss +52 -57
  130. metadata +8 -7
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Tom Select bootstrap 5
2
+ * Tom Select Bootstrap 5
3
3
  */
4
4
  /**
5
- * tom-select.css (v2.2.2)
5
+ * tom-select.css (v2.3.1)
6
6
  * Copyright (c) contributors
7
7
  *
8
8
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -15,39 +15,203 @@
15
15
  * governing permissions and limitations under the License.
16
16
  *
17
17
  */
18
- :root {
19
- --ts-pr-clear-button: 0;
20
- --ts-pr-caret: 0;
21
- --ts-pr-min: .75rem;
18
+ .ts-control {
19
+ border: 1px solid var(--bs-border-color);
20
+ padding: 0.375rem 0.75rem;
21
+ width: 100%;
22
+ overflow: hidden;
23
+ position: relative;
24
+ z-index: 1;
25
+ box-sizing: border-box;
26
+ box-shadow: none;
27
+ border-radius: var(--bs-border-radius);
28
+ display: flex;
29
+ flex-wrap: wrap;
22
30
  }
23
-
24
- .ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {
31
+ .ts-wrapper.multi.has-items .ts-control {
32
+ padding: calc(0.375rem - 1px - 0) 0.75rem calc(0.375rem - 1px - 3px - 0);
33
+ }
34
+ .full .ts-control {
35
+ background-color: var(--bs-body-bg);
36
+ }
37
+ .disabled .ts-control, .disabled .ts-control * {
38
+ cursor: default !important;
39
+ }
40
+ .focus .ts-control {
41
+ box-shadow: none;
42
+ }
43
+ .ts-control > * {
44
+ vertical-align: baseline;
45
+ display: inline-block;
46
+ }
47
+ .ts-wrapper.multi .ts-control > div {
25
48
  cursor: pointer;
49
+ margin: 0 3px 3px 0;
50
+ padding: 1px 5px;
51
+ background: #efefef;
52
+ color: #343a40;
53
+ border: 0 solid #dee2e6;
54
+ }
55
+ .ts-wrapper.multi .ts-control > div.active {
56
+ background: #0d6efd;
57
+ color: #fff;
58
+ border: 0 solid rgba(0, 0, 0, 0);
59
+ }
60
+ .ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
61
+ color: #878787;
62
+ background: white;
63
+ border: 0 solid white;
64
+ }
65
+ .ts-control > input {
66
+ flex: 1 1 auto;
67
+ min-width: 7rem;
68
+ display: inline-block !important;
69
+ padding: 0 !important;
70
+ min-height: 0 !important;
71
+ max-height: none !important;
72
+ max-width: 100% !important;
73
+ margin: 0 !important;
74
+ text-indent: 0 !important;
75
+ border: 0 none !important;
76
+ background: none !important;
77
+ line-height: inherit !important;
78
+ -webkit-user-select: auto !important;
79
+ -moz-user-select: auto !important;
80
+ -ms-user-select: auto !important;
81
+ user-select: auto !important;
82
+ box-shadow: none !important;
83
+ }
84
+ .ts-control > input::-ms-clear {
85
+ display: none;
86
+ }
87
+ .ts-control > input:focus {
88
+ outline: none !important;
89
+ }
90
+ .has-items .ts-control > input {
91
+ margin: 0 4px !important;
92
+ }
93
+ .ts-control.rtl {
94
+ text-align: right;
95
+ }
96
+ .ts-control.rtl.single .ts-control:after {
97
+ left: calc(0.75rem + 5px);
98
+ right: auto;
99
+ }
100
+ .ts-control.rtl .ts-control > input {
101
+ margin: 0 4px 0 -2px !important;
102
+ }
103
+ .disabled .ts-control {
104
+ opacity: 0.5;
105
+ background-color: var(--bs-secondary-bg);
106
+ }
107
+ .input-hidden .ts-control > input {
108
+ opacity: 0;
109
+ position: absolute;
110
+ left: -10000px;
26
111
  }
27
112
 
28
- .ts-control {
29
- padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
113
+ .ts-dropdown {
114
+ position: absolute;
115
+ top: 100%;
116
+ left: 0;
117
+ width: 100%;
118
+ z-index: 10;
119
+ border: 1px solid #d0d0d0;
120
+ background: var(--bs-body-bg);
121
+ margin: 0.25rem 0 0;
122
+ border-top: 0 none;
123
+ box-sizing: border-box;
124
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
125
+ border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
126
+ }
127
+ .ts-dropdown [data-selectable] {
128
+ cursor: pointer;
129
+ overflow: hidden;
130
+ }
131
+ .ts-dropdown [data-selectable] .highlight {
132
+ background: rgba(255, 237, 40, 0.4);
133
+ border-radius: 1px;
134
+ }
135
+ .ts-dropdown .option,
136
+ .ts-dropdown .optgroup-header,
137
+ .ts-dropdown .no-results,
138
+ .ts-dropdown .create {
139
+ padding: 3px 0.75rem;
140
+ }
141
+ .ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
142
+ cursor: inherit;
143
+ opacity: 0.5;
144
+ }
145
+ .ts-dropdown [data-selectable].option {
146
+ opacity: 1;
147
+ cursor: pointer;
148
+ }
149
+ .ts-dropdown .optgroup:first-child .optgroup-header {
150
+ border-top: 0 none;
151
+ }
152
+ .ts-dropdown .optgroup-header {
153
+ color: #6c757d;
154
+ background: var(--bs-body-bg);
155
+ cursor: default;
156
+ }
157
+ .ts-dropdown .active {
158
+ background-color: var(--bs-tertiary-bg);
159
+ color: var(--bs-body-color);
160
+ }
161
+ .ts-dropdown .active.create {
162
+ color: var(--bs-body-color);
163
+ }
164
+ .ts-dropdown .create {
165
+ color: rgba(52, 58, 64, 0.5);
166
+ }
167
+ .ts-dropdown .spinner {
168
+ display: inline-block;
169
+ width: 30px;
170
+ height: 30px;
171
+ margin: 3px 0.75rem;
172
+ }
173
+ .ts-dropdown .spinner::after {
174
+ content: " ";
175
+ display: block;
176
+ width: 24px;
177
+ height: 24px;
178
+ margin: 3px;
179
+ border-radius: 50%;
180
+ border: 5px solid #d0d0d0;
181
+ border-color: #d0d0d0 transparent #d0d0d0 transparent;
182
+ animation: lds-dual-ring 1.2s linear infinite;
183
+ }
184
+ @keyframes lds-dual-ring {
185
+ 0% {
186
+ transform: rotate(0deg);
187
+ }
188
+ 100% {
189
+ transform: rotate(360deg);
190
+ }
30
191
  }
31
192
 
32
- .ts-wrapper.plugin-drag_drop.multi > .ts-control > div.ui-sortable-placeholder {
33
- visibility: visible !important;
34
- background: #f2f2f2 !important;
35
- background: rgba(0, 0, 0, 0.06) !important;
36
- border: 0 none !important;
37
- box-shadow: inset 0 0 12px 4px #fff;
193
+ .ts-dropdown-content {
194
+ overflow: hidden auto;
195
+ max-height: 200px;
196
+ scroll-behavior: smooth;
38
197
  }
39
- .ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
40
- content: "!";
41
- visibility: hidden;
198
+
199
+ .ts-wrapper.plugin-drag_drop .ts-dragging {
200
+ color: transparent !important;
42
201
  }
43
- .ts-wrapper.plugin-drag_drop .ui-sortable-helper {
44
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
202
+ .ts-wrapper.plugin-drag_drop .ts-dragging > * {
203
+ visibility: hidden !important;
45
204
  }
46
205
 
47
- .plugin-checkbox_options .option input {
206
+ .plugin-checkbox_options:not(.rtl) .option input {
48
207
  margin-right: 0.5rem;
49
208
  }
50
209
 
210
+ .plugin-checkbox_options.rtl .option input {
211
+ margin-left: 0.5rem;
212
+ }
213
+
214
+ /* stylelint-disable function-name-case */
51
215
  .plugin-clear_button {
52
216
  --ts-pr-clear-button: 1em;
53
217
  }
@@ -63,7 +227,7 @@
63
227
  cursor: pointer;
64
228
  }
65
229
  .plugin-clear_button.form-select .clear-button, .plugin-clear_button.single .clear-button {
66
- right: max( var(--ts-pr-caret), 0.75rem);
230
+ right: max(var(--ts-pr-caret), 0.75rem);
67
231
  }
68
232
  .plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {
69
233
  opacity: 1;
@@ -73,8 +237,8 @@
73
237
  position: relative;
74
238
  padding: 6px 0.75rem;
75
239
  border-bottom: 1px solid #d0d0d0;
76
- background: #f8f8f8;
77
- border-radius: 0.375rem 0.375rem 0 0;
240
+ background: color-mix(var(--bs-body-bg), #d0d0d0, 85%);
241
+ border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
78
242
  }
79
243
  .ts-wrapper .dropdown-header-close {
80
244
  position: absolute;
@@ -92,12 +256,12 @@
92
256
 
93
257
  .plugin-dropdown_input.focus.dropdown-active .ts-control {
94
258
  box-shadow: none;
95
- border: 1px solid #ced4da;
96
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
259
+ border: 1px solid var(--bs-border-color);
260
+ box-shadow: var(--bs-box-shadow-inset);
97
261
  }
98
262
  .plugin-dropdown_input .dropdown-input {
99
263
  border: 1px solid #d0d0d0;
100
- border-width: 0 0 1px 0;
264
+ border-width: 0 0 1px;
101
265
  display: block;
102
266
  padding: 0.375rem 0.75rem;
103
267
  box-shadow: none;
@@ -145,7 +309,7 @@
145
309
  .ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
146
310
  border-right: 0 none;
147
311
  }
148
- .ts-dropdown.plugin-optgroup_columns .optgroup:before {
312
+ .ts-dropdown.plugin-optgroup_columns .optgroup::before {
149
313
  display: none;
150
314
  }
151
315
  .ts-dropdown.plugin-optgroup_columns .optgroup-header {
@@ -155,7 +319,6 @@
155
319
  .ts-wrapper.plugin-remove_button .item {
156
320
  display: inline-flex;
157
321
  align-items: center;
158
- padding-right: 0 !important;
159
322
  }
160
323
  .ts-wrapper.plugin-remove_button .item .remove {
161
324
  color: inherit;
@@ -179,6 +342,9 @@
179
342
  font-size: 23px;
180
343
  }
181
344
 
345
+ .ts-wrapper.plugin-remove_button:not(.rtl) .item {
346
+ padding-right: 0 !important;
347
+ }
182
348
  .ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
183
349
  border-left: 1px solid #dee2e6;
184
350
  margin-left: 5px;
@@ -190,6 +356,9 @@
190
356
  border-left-color: white;
191
357
  }
192
358
 
359
+ .ts-wrapper.plugin-remove_button.rtl .item {
360
+ padding-left: 0 !important;
361
+ }
193
362
  .ts-wrapper.plugin-remove_button.rtl .item .remove {
194
363
  border-right: 1px solid #dee2e6;
195
364
  margin-right: 5px;
@@ -201,6 +370,24 @@
201
370
  border-right-color: white;
202
371
  }
203
372
 
373
+ :root {
374
+ --ts-pr-clear-button: 0;
375
+ --ts-pr-caret: 0;
376
+ --ts-pr-min: .75rem;
377
+ }
378
+
379
+ .ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {
380
+ cursor: pointer;
381
+ }
382
+
383
+ .ts-control:not(.rtl) {
384
+ padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
385
+ }
386
+
387
+ .ts-control.rtl {
388
+ padding-left: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
389
+ }
390
+
204
391
  .ts-wrapper {
205
392
  position: relative;
206
393
  }
@@ -212,198 +399,14 @@
212
399
  font-family: inherit;
213
400
  font-size: inherit;
214
401
  line-height: 1.5;
215
- font-smoothing: inherit;
216
402
  }
217
403
 
218
404
  .ts-control,
219
405
  .ts-wrapper.single.input-active .ts-control {
220
- background: #fff;
406
+ background: var(--bs-body-bg);
221
407
  cursor: text;
222
408
  }
223
409
 
224
- .ts-control {
225
- border: 1px solid #ced4da;
226
- padding: 0.375rem 0.75rem;
227
- width: 100%;
228
- overflow: hidden;
229
- position: relative;
230
- z-index: 1;
231
- box-sizing: border-box;
232
- box-shadow: none;
233
- border-radius: 0.375rem;
234
- display: flex;
235
- flex-wrap: wrap;
236
- }
237
- .ts-wrapper.multi.has-items .ts-control {
238
- padding: calc( 0.375rem - 1px - 0px) 0.75rem calc( 0.375rem - 1px - 3px - 0px);
239
- }
240
- .full .ts-control {
241
- background-color: #fff;
242
- }
243
- .disabled .ts-control, .disabled .ts-control * {
244
- cursor: default !important;
245
- }
246
- .focus .ts-control {
247
- box-shadow: none;
248
- }
249
- .ts-control > * {
250
- vertical-align: baseline;
251
- display: inline-block;
252
- }
253
- .ts-wrapper.multi .ts-control > div {
254
- cursor: pointer;
255
- margin: 0 3px 3px 0;
256
- padding: 1px 5px;
257
- background: #efefef;
258
- color: #343a40;
259
- border: 0px solid #dee2e6;
260
- }
261
- .ts-wrapper.multi .ts-control > div.active {
262
- background: #0d6efd;
263
- color: #fff;
264
- border: 0px solid rgba(0, 0, 0, 0);
265
- }
266
- .ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
267
- color: #878787;
268
- background: white;
269
- border: 0px solid white;
270
- }
271
- .ts-control > input {
272
- flex: 1 1 auto;
273
- min-width: 7rem;
274
- display: inline-block !important;
275
- padding: 0 !important;
276
- min-height: 0 !important;
277
- max-height: none !important;
278
- max-width: 100% !important;
279
- margin: 0 !important;
280
- text-indent: 0 !important;
281
- border: 0 none !important;
282
- background: none !important;
283
- line-height: inherit !important;
284
- -webkit-user-select: auto !important;
285
- -moz-user-select: auto !important;
286
- -ms-user-select: auto !important;
287
- user-select: auto !important;
288
- box-shadow: none !important;
289
- }
290
- .ts-control > input::-ms-clear {
291
- display: none;
292
- }
293
- .ts-control > input:focus {
294
- outline: none !important;
295
- }
296
- .has-items .ts-control > input {
297
- margin: 0px 4px !important;
298
- }
299
- .ts-control.rtl {
300
- text-align: right;
301
- }
302
- .ts-control.rtl.single .ts-control:after {
303
- left: calc(0.75rem + 5px);
304
- right: auto;
305
- }
306
- .ts-control.rtl .ts-control > input {
307
- margin: 0px 4px 0px -2px !important;
308
- }
309
- .disabled .ts-control {
310
- opacity: 0.5;
311
- background-color: #e9ecef;
312
- }
313
- .input-hidden .ts-control > input {
314
- opacity: 0;
315
- position: absolute;
316
- left: -10000px;
317
- }
318
-
319
- .ts-dropdown {
320
- position: absolute;
321
- top: 100%;
322
- left: 0;
323
- width: 100%;
324
- z-index: 10;
325
- border: 1px solid #d0d0d0;
326
- background: #fff;
327
- margin: 0.25rem 0 0 0;
328
- border-top: 0 none;
329
- box-sizing: border-box;
330
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
331
- border-radius: 0 0 0.375rem 0.375rem;
332
- }
333
- .ts-dropdown [data-selectable] {
334
- cursor: pointer;
335
- overflow: hidden;
336
- }
337
- .ts-dropdown [data-selectable] .highlight {
338
- background: rgba(255, 237, 40, 0.4);
339
- border-radius: 1px;
340
- }
341
- .ts-dropdown .option,
342
- .ts-dropdown .optgroup-header,
343
- .ts-dropdown .no-results,
344
- .ts-dropdown .create {
345
- padding: 3px 0.75rem;
346
- }
347
- .ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
348
- cursor: inherit;
349
- opacity: 0.5;
350
- }
351
- .ts-dropdown [data-selectable].option {
352
- opacity: 1;
353
- cursor: pointer;
354
- }
355
- .ts-dropdown .optgroup:first-child .optgroup-header {
356
- border-top: 0 none;
357
- }
358
- .ts-dropdown .optgroup-header {
359
- color: #6c757d;
360
- background: #fff;
361
- cursor: default;
362
- }
363
- .ts-dropdown .active {
364
- background-color: #e9ecef;
365
- color: #1e2125;
366
- }
367
- .ts-dropdown .active.create {
368
- color: #1e2125;
369
- }
370
- .ts-dropdown .create {
371
- color: rgba(52, 58, 64, 0.5);
372
- }
373
- .ts-dropdown .spinner {
374
- display: inline-block;
375
- width: 30px;
376
- height: 30px;
377
- margin: 3px 0.75rem;
378
- }
379
- .ts-dropdown .spinner:after {
380
- content: " ";
381
- display: block;
382
- width: 24px;
383
- height: 24px;
384
- margin: 3px;
385
- border-radius: 50%;
386
- border: 5px solid #d0d0d0;
387
- border-color: #d0d0d0 transparent #d0d0d0 transparent;
388
- animation: lds-dual-ring 1.2s linear infinite;
389
- }
390
- @keyframes lds-dual-ring {
391
- 0% {
392
- transform: rotate(0deg);
393
- }
394
- 100% {
395
- transform: rotate(360deg);
396
- }
397
- }
398
-
399
- .ts-dropdown-content {
400
- overflow-y: auto;
401
- overflow-x: hidden;
402
- max-height: 200px;
403
- overflow-scrolling: touch;
404
- scroll-behavior: smooth;
405
- }
406
-
407
410
  .ts-hidden-accessible {
408
411
  border: 0 !important;
409
412
  clip: rect(0 0 0 0) !important;
@@ -416,21 +419,13 @@
416
419
  white-space: nowrap !important;
417
420
  }
418
421
 
419
- .ts-wrapper.form-control,
420
- .ts-wrapper.form-select {
421
- padding: 0 !important;
422
- height: auto;
423
- box-shadow: none;
424
- display: flex;
425
- }
426
-
427
422
  .ts-dropdown,
428
423
  .ts-dropdown.form-control,
429
424
  .ts-dropdown.form-select {
430
425
  height: auto;
431
426
  padding: 0;
432
427
  z-index: 1000;
433
- background: #fff;
428
+ background: var(--bs-body-bg);
434
429
  border: 1px solid var(--bs-border-color-translucent);
435
430
  border-radius: 0.375rem;
436
431
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
@@ -440,10 +435,10 @@
440
435
  font-size: 0.875rem;
441
436
  line-height: 1.5;
442
437
  }
443
- .ts-dropdown .optgroup:first-child:before {
438
+ .ts-dropdown .optgroup:first-child::before {
444
439
  display: none;
445
440
  }
446
- .ts-dropdown .optgroup:before {
441
+ .ts-dropdown .optgroup::before {
447
442
  content: " ";
448
443
  display: block;
449
444
  height: 0;
@@ -471,9 +466,6 @@
471
466
  transition: none;
472
467
  }
473
468
  }
474
- .ts-control.dropdown -active {
475
- border-radius: 0.375rem;
476
- }
477
469
  .focus .ts-control {
478
470
  border-color: #86b7fe;
479
471
  outline: 0;
@@ -487,7 +479,7 @@
487
479
  .ts-wrapper.is-invalid,
488
480
  .was-validated .invalid,
489
481
  .was-validated :invalid + .ts-wrapper {
490
- border-color: #dc3545;
482
+ border-color: var(--bs-form-invalid-color);
491
483
  }
492
484
  .ts-wrapper.is-invalid:not(.single),
493
485
  .was-validated .invalid:not(.single),
@@ -508,14 +500,14 @@
508
500
  .ts-wrapper.is-invalid.focus .ts-control,
509
501
  .was-validated .invalid.focus .ts-control,
510
502
  .was-validated :invalid + .ts-wrapper.focus .ts-control {
511
- border-color: #dc3545;
512
- box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
503
+ border-color: var(--bs-form-invalid-color);
504
+ box-shadow: 0 0 0 0.25rem rgba(var(--bs-form-invalid-color), 0.25);
513
505
  }
514
506
 
515
507
  .ts-wrapper.is-valid,
516
508
  .was-validated .valid,
517
509
  .was-validated :valid + .ts-wrapper {
518
- border-color: #198754;
510
+ border-color: var(--bs-form-valid-color);
519
511
  }
520
512
  .ts-wrapper.is-valid:not(.single),
521
513
  .was-validated .valid:not(.single),
@@ -536,19 +528,19 @@
536
528
  .ts-wrapper.is-valid.focus .ts-control,
537
529
  .was-validated .valid.focus .ts-control,
538
530
  .was-validated :valid + .ts-wrapper.focus .ts-control {
539
- border-color: #198754;
540
- box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
531
+ border-color: var(--bs-form-valid-color);
532
+ box-shadow: 0 0 0 0.25rem rgba(var(--bs-form-valid-color), 0.25);
541
533
  }
542
534
 
543
535
  .ts-wrapper {
544
- min-height: calc(1.5em + 0.75rem + 2px);
536
+ min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
545
537
  display: flex;
546
538
  }
547
539
  .input-group-sm > .ts-wrapper, .ts-wrapper.form-select-sm, .ts-wrapper.form-control-sm {
548
- min-height: calc(1.5em + 0.5rem + 2px);
540
+ min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
549
541
  }
550
542
  .input-group-sm > .ts-wrapper .ts-control, .ts-wrapper.form-select-sm .ts-control, .ts-wrapper.form-control-sm .ts-control {
551
- border-radius: 0.25rem;
543
+ border-radius: var(--bs-border-radius-sm);
552
544
  font-size: 0.875rem;
553
545
  }
554
546
  .input-group-sm > .ts-wrapper.has-items .ts-control, .ts-wrapper.form-select-sm.has-items .ts-control, .ts-wrapper.form-control-sm.has-items .ts-control {
@@ -556,31 +548,30 @@
556
548
  padding-bottom: 0;
557
549
  }
558
550
  .input-group-sm > .ts-wrapper.multi.has-items .ts-control, .ts-wrapper.form-select-sm.multi.has-items .ts-control, .ts-wrapper.form-control-sm.multi.has-items .ts-control {
559
- padding-top: calc((calc(1.5em + 0.5rem + 2px) - (1.5 * 0.875rem) - 4px) / 2) !important;
551
+ padding-top: calc((calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2)) - 1.5 * 0.875rem - calc((var(--bs-border-width) + 1px) * 2)) / 2) !important;
560
552
  }
561
553
  .ts-wrapper.multi.has-items .ts-control {
562
554
  padding-left: calc(0.75rem - 5px);
563
555
  --ts-pr-min: calc(0.75rem - 5px);
564
556
  }
565
557
  .ts-wrapper.multi .ts-control > div {
566
- border-radius: calc(0.375rem - 1px);
558
+ border-radius: calc(var(--bs-border-radius) - 1px);
567
559
  }
568
560
  .input-group-lg > .ts-wrapper, .ts-wrapper.form-control-lg, .ts-wrapper.form-select-lg {
569
- min-height: calc(1.5em + 1rem + 2px);
561
+ min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
570
562
  }
571
563
  .input-group-lg > .ts-wrapper .ts-control, .ts-wrapper.form-control-lg .ts-control, .ts-wrapper.form-select-lg .ts-control {
572
- border-radius: 0.5rem;
564
+ border-radius: var(--bs-border-radius-lg);
573
565
  font-size: 1.25rem;
574
566
  }
575
-
576
- .ts-wrapper:not(.form-control):not(.form-select) {
567
+ .ts-wrapper:not(.form-control, .form-select) {
577
568
  padding: 0;
578
569
  border: none;
579
570
  height: auto;
580
571
  box-shadow: none;
581
572
  background: none;
582
573
  }
583
- .ts-wrapper:not(.form-control):not(.form-select).single .ts-control {
574
+ .ts-wrapper:not(.form-control, .form-select).single .ts-control {
584
575
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
585
576
  background-repeat: no-repeat;
586
577
  background-position: right 0.75rem center;
@@ -589,20 +580,22 @@
589
580
  .ts-wrapper.form-select, .ts-wrapper.single {
590
581
  --ts-pr-caret: 2.25rem;
591
582
  }
592
-
593
- .ts-wrapper.form-control .ts-control, .ts-wrapper.form-control.single.input-active .ts-control,
594
- .ts-wrapper.form-select .ts-control,
595
- .ts-wrapper.form-select.single.input-active .ts-control {
583
+ .ts-wrapper.form-control, .ts-wrapper.form-select {
584
+ padding: 0 !important;
585
+ height: auto;
586
+ box-shadow: none;
587
+ display: flex;
588
+ }
589
+ .ts-wrapper.form-control .ts-control, .ts-wrapper.form-control.single.input-active .ts-control, .ts-wrapper.form-select .ts-control, .ts-wrapper.form-select.single.input-active .ts-control {
596
590
  border: none !important;
597
591
  }
598
- .ts-wrapper.form-control:not(.disabled) .ts-control, .ts-wrapper.form-control:not(.disabled).single.input-active .ts-control,
599
- .ts-wrapper.form-select:not(.disabled) .ts-control,
600
- .ts-wrapper.form-select:not(.disabled).single.input-active .ts-control {
592
+ .ts-wrapper.form-control:not(.disabled) .ts-control, .ts-wrapper.form-control:not(.disabled).single.input-active .ts-control, .ts-wrapper.form-select:not(.disabled) .ts-control, .ts-wrapper.form-select:not(.disabled).single.input-active .ts-control {
601
593
  background: transparent !important;
602
594
  }
603
595
 
604
596
  .input-group > .ts-wrapper {
605
597
  flex-grow: 1;
598
+ width: 1%;
606
599
  }
607
600
  .input-group > .ts-wrapper:not(:nth-child(2)) > .ts-control {
608
601
  border-top-left-radius: 0;