selectize-rails 0.12.4.1 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8f9b74bf4aa77d58591e493d0622cb9dab104024
4
- data.tar.gz: 1326b0eb5deaee0bbd40ab69a8f291ee3473e5b0
2
+ SHA256:
3
+ metadata.gz: 7687356a89180103a3e4cb68d657eb9d74ee0c7672c58fcf80f0f7d62a48b9a6
4
+ data.tar.gz: 129f34257e6b50d2a961f5557879a4f9ba017bd95e11045d68f45be5b3005135
5
5
  SHA512:
6
- metadata.gz: c5e821cf7a68e3a8c5990221c7bcf695a82391049a60d110b75f2493352323b93e2959cff745ade80306eddac89650a4b1ca46085e7fa02d0b6dba6d6de3f9d3
7
- data.tar.gz: 01baeac753652f42713e78f72a03ef98f9f96df7a52458042c3a65cf7485016723cd60752b4d43f9d244e841334939e623e00f3f2e974c8e6190ef7e4e0a1e99
6
+ metadata.gz: 2a1b2b5c25460576e94535794b6ec7dc6be94fe353f2498f04d733b0af0f0c941668aad1b74d39d745007e19522bc1d97849286ad9b136365992214378e8c765
7
+ data.tar.gz: 4d426c360cdf32a912f2b708d137c05b136bb994e724101abc3f5731a697b197f9d169f31a8cb613bb4bdf6cb69b96b7df7ca8dd1460861dd29738cf8c3a1c90
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Notes |
4
4
  | --------:| ----------------------------------------------------------- |
5
+ | 0.12.5 | Update to v0.12.5 of selectize.js |
5
6
  | 0.12.4 | Update to v0.12.4 of selectize.js |
6
7
  | 0.12.3 | Update to v0.12.3 of selectize.js |
7
8
  | 0.12.2 | Update to v0.12.2 of selectize.js |
data/README.md CHANGED
@@ -46,15 +46,17 @@ See the [demo page](http://selectize.github.io/selectize.js/) for examples how t
46
46
 
47
47
  ## Changes
48
48
 
49
- | Version | Notes |
50
- | --------:| ----------------------------------------------------------- |
51
- | 0.12.4 | Update to v0.12.4 of selectize.js |
52
- | 0.12.3 | Update to v0.12.3 of selectize.js |
53
- | 0.12.2 | Update to v0.12.2 of selectize.js |
54
- | 0.12.1 | Update to v0.12.1 of selectize.js |
55
- | 0.12.0 | Update to v0.12.0 of selectize.js |
56
- | 0.11.2 | Update to v0.11.2 of selectize.js |
57
- | 0.11.0 | Update to v0.11.0 of selectize.js |
49
+ | Version | Notes |
50
+ | ----------:| ----------------------------------------------------------- |
51
+ | 0.12.5 | Update to v0.12.5 of selectize.js |
52
+ | 0.12.4.1 | Moved css files to scss to be able to use `@import` |
53
+ | 0.12.4 | Update to v0.12.4 of selectize.js |
54
+ | 0.12.3 | Update to v0.12.3 of selectize.js |
55
+ | 0.12.2 | Update to v0.12.2 of selectize.js |
56
+ | 0.12.1 | Update to v0.12.1 of selectize.js |
57
+ | 0.12.0 | Update to v0.12.0 of selectize.js |
58
+ | 0.11.2 | Update to v0.11.2 of selectize.js |
59
+ | 0.11.0 | Update to v0.11.0 of selectize.js |
58
60
 
59
61
  [older](CHANGELOG.md)
60
62
 
@@ -1,5 +1,5 @@
1
1
  module Selectize
2
2
  module Rails
3
- VERSION = "0.12.4.1"
3
+ VERSION = "0.12.5"
4
4
  end
5
5
  end
@@ -635,7 +635,7 @@
635
635
  }));
636
636
 
637
637
  /**
638
- * selectize.js (v0.12.4)
638
+ * selectize.js (v0.12.5)
639
639
  * Copyright (c) 2013–2015 Brian Reavis & contributors
640
640
  *
641
641
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -670,6 +670,8 @@
670
670
 
671
671
  var highlight = function(node) {
672
672
  var skip = 0;
673
+ // Wrap matching part of text node with highlighting <span>, e.g.
674
+ // Soccer -> <span class="highlight">Soc</span>cer for regex = /soc/i
673
675
  if (node.nodeType === 3) {
674
676
  var pos = node.data.search(regex);
675
677
  if (pos >= 0 && node.data.length > 0) {
@@ -683,7 +685,10 @@
683
685
  middlebit.parentNode.replaceChild(spannode, middlebit);
684
686
  skip = 1;
685
687
  }
686
- } else if (node.nodeType === 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {
688
+ }
689
+ // Recurse element node, looking for child text nodes to highlight, unless element
690
+ // is childless, <script>, <style>, or already highlighted: <span class="hightlight">
691
+ else if (node.nodeType === 1 && node.childNodes && !/(script|style)/i.test(node.tagName) && ( node.className !== 'highlight' || node.tagName !== 'SPAN' )) {
687
692
  for (var i = 0; i < node.childNodes.length; ++i) {
688
693
  i += highlight(node.childNodes[i]);
689
694
  }
@@ -1006,16 +1011,20 @@
1006
1011
  return 0;
1007
1012
  }
1008
1013
 
1009
- var $test = $('<test>').css({
1010
- position: 'absolute',
1011
- top: -99999,
1012
- left: -99999,
1013
- width: 'auto',
1014
- padding: 0,
1015
- whiteSpace: 'pre'
1016
- }).text(str).appendTo('body');
1014
+ if (!Selectize.$testInput) {
1015
+ Selectize.$testInput = $('<span />').css({
1016
+ position: 'absolute',
1017
+ top: -99999,
1018
+ left: -99999,
1019
+ width: 'auto',
1020
+ padding: 0,
1021
+ whiteSpace: 'pre'
1022
+ }).appendTo('body');
1023
+ }
1024
+
1025
+ Selectize.$testInput.text(str);
1017
1026
 
1018
- transferStyles($parent, $test, [
1027
+ transferStyles($parent, Selectize.$testInput, [
1019
1028
  'letterSpacing',
1020
1029
  'fontSize',
1021
1030
  'fontFamily',
@@ -1023,10 +1032,7 @@
1023
1032
  'textTransform'
1024
1033
  ]);
1025
1034
 
1026
- var width = $test.width();
1027
- $test.remove();
1028
-
1029
- return width;
1035
+ return Selectize.$testInput.width();
1030
1036
  };
1031
1037
 
1032
1038
  /**
@@ -1054,9 +1060,10 @@
1054
1060
  if (e.type && e.type.toLowerCase() === 'keydown') {
1055
1061
  keyCode = e.keyCode;
1056
1062
  printable = (
1057
- (keyCode >= 97 && keyCode <= 122) || // a-z
1058
- (keyCode >= 65 && keyCode <= 90) || // A-Z
1059
1063
  (keyCode >= 48 && keyCode <= 57) || // 0-9
1064
+ (keyCode >= 65 && keyCode <= 90) || // a-z
1065
+ (keyCode >= 96 && keyCode <= 111) || // numpad 0-9, numeric operators
1066
+ (keyCode >= 186 && keyCode <= 222) || // semicolon, equal, comma, dash, etc.
1060
1067
  keyCode === 32 // space
1061
1068
  );
1062
1069
 
@@ -1139,6 +1146,7 @@
1139
1146
 
1140
1147
  eventNS : '.selectize' + (++Selectize.count),
1141
1148
  highlightedValue : null,
1149
+ isBlurring : false,
1142
1150
  isOpen : false,
1143
1151
  isDisabled : false,
1144
1152
  isRequired : $input.is('[required]'),
@@ -1298,6 +1306,7 @@
1298
1306
  if ($input.attr('autocapitalize')) {
1299
1307
  $control_input.attr('autocapitalize', $input.attr('autocapitalize'));
1300
1308
  }
1309
+ $control_input[0].type = $input[0].type;
1301
1310
 
1302
1311
  self.$wrapper = $wrapper;
1303
1312
  self.$control = $control;
@@ -1305,6 +1314,7 @@
1305
1314
  self.$dropdown = $dropdown;
1306
1315
  self.$dropdown_content = $dropdown_content;
1307
1316
 
1317
+ $dropdown.on('mouseenter mousedown click', '[data-disabled]>[data-selectable]', function(e) { e.stopImmediatePropagation(); });
1308
1318
  $dropdown.on('mouseenter', '[data-selectable]', function() { return self.onOptionHover.apply(self, arguments); });
1309
1319
  $dropdown.on('mousedown click', '[data-selectable]', function() { return self.onOptionSelect.apply(self, arguments); });
1310
1320
  watchChildEvent($control, 'mousedown', '*:not(input)', function() { return self.onItemSelect.apply(self, arguments); });
@@ -1480,7 +1490,9 @@
1480
1490
 
1481
1491
  // necessary for mobile webkit devices (manual focus triggering
1482
1492
  // is ignored unless invoked within a click event)
1483
- if (!self.isFocused) {
1493
+ // also necessary to reopen a dropdown that has been closed by
1494
+ // closeAfterSelect
1495
+ if (!self.isFocused || !self.isOpen) {
1484
1496
  self.focus();
1485
1497
  e.preventDefault();
1486
1498
  }
@@ -1768,10 +1780,12 @@
1768
1780
  // IE11 bug: element still marked as active
1769
1781
  dest && dest.focus && dest.focus();
1770
1782
 
1783
+ self.isBlurring = false;
1771
1784
  self.ignoreFocus = false;
1772
1785
  self.trigger('blur');
1773
1786
  };
1774
1787
 
1788
+ self.isBlurring = true;
1775
1789
  self.ignoreFocus = true;
1776
1790
  if (self.settings.create && self.settings.createOnBlur) {
1777
1791
  self.createItem(null, false, deactivate);
@@ -2109,7 +2123,8 @@
2109
2123
  return {
2110
2124
  fields : settings.searchField,
2111
2125
  conjunction : settings.searchConjunction,
2112
- sort : sort
2126
+ sort : sort,
2127
+ nesting : settings.nesting
2113
2128
  };
2114
2129
  },
2115
2130
 
@@ -2243,10 +2258,12 @@
2243
2258
  $dropdown_content.html(html);
2244
2259
 
2245
2260
  // highlight matching terms inline
2246
- if (self.settings.highlight && results.query.length && results.tokens.length) {
2261
+ if (self.settings.highlight) {
2247
2262
  $dropdown_content.removeHighlight();
2248
- for (i = 0, n = results.tokens.length; i < n; i++) {
2249
- highlight($dropdown_content, results.tokens[i].regex);
2263
+ if (results.query.length && results.tokens.length) {
2264
+ for (i = 0, n = results.tokens.length; i < n; i++) {
2265
+ highlight($dropdown_content, results.tokens[i].regex);
2266
+ }
2250
2267
  }
2251
2268
  }
2252
2269
 
@@ -2481,10 +2498,15 @@
2481
2498
  self.loadedSearches = {};
2482
2499
  self.userOptions = {};
2483
2500
  self.renderCache = {};
2484
- self.options = self.sifter.items = {};
2501
+ var options = self.options;
2502
+ $.each(self.options, function(key, value) {
2503
+ if(self.items.indexOf(key) == -1) {
2504
+ delete options[key];
2505
+ }
2506
+ });
2507
+ self.options = self.sifter.items = options;
2485
2508
  self.lastQuery = null;
2486
2509
  self.trigger('option_clear');
2487
- self.clear();
2488
2510
  },
2489
2511
 
2490
2512
  /**
@@ -2554,11 +2576,23 @@
2554
2576
  * @param {boolean} silent
2555
2577
  */
2556
2578
  addItems: function(values, silent) {
2579
+ this.buffer = document.createDocumentFragment();
2580
+
2581
+ var childNodes = this.$control[0].childNodes;
2582
+ for (var i = 0; i < childNodes.length; i++) {
2583
+ this.buffer.appendChild(childNodes[i]);
2584
+ }
2585
+
2557
2586
  var items = $.isArray(values) ? values : [values];
2558
2587
  for (var i = 0, n = items.length; i < n; i++) {
2559
2588
  this.isPending = (i < n - 1);
2560
2589
  this.addItem(items[i], silent);
2561
2590
  }
2591
+
2592
+ var control = this.$control[0];
2593
+ control.insertBefore(this.buffer, control.firstChild);
2594
+
2595
+ this.buffer = null;
2562
2596
  },
2563
2597
 
2564
2598
  /**
@@ -2611,13 +2645,16 @@
2611
2645
  // hide the menu if the maximum number of items have been selected or no options are left
2612
2646
  if (!$options.length || self.isFull()) {
2613
2647
  self.close();
2614
- } else {
2648
+ } else if (!self.isPending) {
2615
2649
  self.positionDropdown();
2616
2650
  }
2617
2651
 
2618
2652
  self.updatePlaceholder();
2619
2653
  self.trigger('item_add', value, $item);
2620
- self.updateOriginalInput({silent: silent});
2654
+
2655
+ if (!self.isPending) {
2656
+ self.updateOriginalInput({silent: silent});
2657
+ }
2621
2658
  }
2622
2659
  });
2623
2660
  },
@@ -2872,7 +2909,13 @@
2872
2909
 
2873
2910
  if (self.settings.mode === 'single' && self.items.length) {
2874
2911
  self.hideInput();
2875
- self.$control_input.blur(); // close keyboard on iOS
2912
+
2913
+ // Do not trigger blur while inside a blur event,
2914
+ // this fixes some weird tabbing behavior in FF and IE.
2915
+ // See #1164
2916
+ if (!self.isBlurring) {
2917
+ self.$control_input.blur(); // close keyboard on iOS
2918
+ }
2876
2919
  }
2877
2920
 
2878
2921
  self.isOpen = false;
@@ -2893,7 +2936,7 @@
2893
2936
  offset.top += $control.outerHeight(true);
2894
2937
 
2895
2938
  this.$dropdown.css({
2896
- width : $control.outerWidth(),
2939
+ width : $control[0].getBoundingClientRect().width,
2897
2940
  top : offset.top,
2898
2941
  left : offset.left
2899
2942
  });
@@ -2929,11 +2972,15 @@
2929
2972
  */
2930
2973
  insertAtCaret: function($el) {
2931
2974
  var caret = Math.min(this.caretPos, this.items.length);
2975
+ var el = $el[0];
2976
+ var target = this.buffer || this.$control[0];
2977
+
2932
2978
  if (caret === 0) {
2933
- this.$control.prepend($el);
2979
+ target.insertBefore(el, target.firstChild);
2934
2980
  } else {
2935
- $(this.$control[0].childNodes[caret]).before($el);
2981
+ target.insertBefore(el, target.childNodes[caret]);
2936
2982
  }
2983
+
2937
2984
  this.setCaret(caret + 1);
2938
2985
  },
2939
2986
 
@@ -3169,6 +3216,11 @@
3169
3216
  self.$control_input.removeData('grow');
3170
3217
  self.$input.removeData('selectize');
3171
3218
 
3219
+ if (--Selectize.count == 0 && Selectize.$testInput) {
3220
+ Selectize.$testInput.remove();
3221
+ Selectize.$testInput = undefined;
3222
+ }
3223
+
3172
3224
  $(window).off(eventNS);
3173
3225
  $(document).off(eventNS);
3174
3226
  $(document.body).off(eventNS);
@@ -3211,11 +3263,16 @@
3211
3263
 
3212
3264
  // add mandatory attributes
3213
3265
  if (templateName === 'option' || templateName === 'option_create') {
3214
- html.attr('data-selectable', '');
3266
+ if (!data[self.settings.disabledField]) {
3267
+ html.attr('data-selectable', '');
3268
+ }
3215
3269
  }
3216
3270
  else if (templateName === 'optgroup') {
3217
3271
  id = data[self.settings.optgroupValueField] || '';
3218
3272
  html.attr('data-group', id);
3273
+ if(data[self.settings.disabledField]) {
3274
+ html.attr('data-disabled', '');
3275
+ }
3219
3276
  }
3220
3277
  if (templateName === 'option' || templateName === 'item') {
3221
3278
  html.attr('data-value', value || '');
@@ -3297,6 +3354,7 @@
3297
3354
  optgroupField: 'optgroup',
3298
3355
  valueField: 'value',
3299
3356
  labelField: 'text',
3357
+ disabledField: 'disabled',
3300
3358
  optgroupLabelField: 'label',
3301
3359
  optgroupValueField: 'value',
3302
3360
  lockOptgroupOrder: false,
@@ -3353,6 +3411,7 @@
3353
3411
  var attr_data = settings.dataAttr;
3354
3412
  var field_label = settings.labelField;
3355
3413
  var field_value = settings.valueField;
3414
+ var field_disabled = settings.disabledField;
3356
3415
  var field_optgroup = settings.optgroupField;
3357
3416
  var field_optgroup_label = settings.optgroupLabelField;
3358
3417
  var field_optgroup_value = settings.optgroupValueField;
@@ -3433,6 +3492,7 @@
3433
3492
  var option = readData($option) || {};
3434
3493
  option[field_label] = option[field_label] || $option.text();
3435
3494
  option[field_value] = option[field_value] || value;
3495
+ option[field_disabled] = option[field_disabled] || $option.prop('disabled');
3436
3496
  option[field_optgroup] = option[field_optgroup] || group;
3437
3497
 
3438
3498
  optionsMap[value] = option;
@@ -3453,6 +3513,7 @@
3453
3513
  optgroup = readData($optgroup) || {};
3454
3514
  optgroup[field_optgroup_label] = id;
3455
3515
  optgroup[field_optgroup_value] = id;
3516
+ optgroup[field_disabled] = $optgroup.prop('disabled');
3456
3517
  settings_element.optgroups.push(optgroup);
3457
3518
  }
3458
3519
 
@@ -3710,7 +3771,8 @@
3710
3771
  * @return {string}
3711
3772
  */
3712
3773
  var append = function(html_container, html_element) {
3713
- return html_container + html_element;
3774
+ return $('<span>').append(html_container)
3775
+ .append(html_element);
3714
3776
  };
3715
3777
 
3716
3778
  thisRef.setup = (function() {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap2.css (v0.12.4) - Bootstrap 2 Theme
2
+ * selectize.bootstrap2.css (v0.12.5) - Bootstrap 2 Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -42,7 +42,7 @@
42
42
  position: absolute;
43
43
  right: 10px;
44
44
  top: 50%;
45
- color: #333333;
45
+ color: #333;
46
46
  opacity: 0.4;
47
47
  margin-top: -12px;
48
48
  line-height: 20px;
@@ -88,7 +88,7 @@
88
88
  vertical-align: middle;
89
89
  display: inline-block;
90
90
  padding: 1px 0 0 0;
91
- border-left: 1px solid #cccccc;
91
+ border-left: 1px solid #ccc;
92
92
  -webkit-border-radius: 0 2px 2px 0;
93
93
  -moz-border-radius: 0 2px 2px 0;
94
94
  border-radius: 0 2px 2px 0;
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -120,7 +120,7 @@
120
120
  .selectize-dropdown,
121
121
  .selectize-input,
122
122
  .selectize-input input {
123
- color: #333333;
123
+ color: #333;
124
124
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
125
125
  font-size: 14px;
126
126
  line-height: 20px;
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
@@ -153,7 +153,7 @@
153
153
  padding: 5px 10px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -180,12 +180,12 @@
180
180
  margin: 0 3px 3px 0;
181
181
  padding: 1px 3px;
182
182
  background: #e6e6e6;
183
- color: #333333;
184
- border: 1px solid #cccccc;
183
+ color: #333;
184
+ border: 1px solid #ccc;
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
- background: #0088cc;
188
- color: #ffffff;
187
+ background: #08c;
188
+ color: #fff;
189
189
  border: 1px solid #0077b3;
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -233,8 +233,8 @@
233
233
  .selectize-dropdown {
234
234
  position: absolute;
235
235
  z-index: 10;
236
- border: 1px solid #cccccc;
237
- background: #ffffff;
236
+ border: 1px solid #ccc;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,24 +256,33 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 3px 10px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
- color: #999999;
268
- background: #ffffff;
276
+ color: #999;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
272
- background-color: #0088cc;
273
- color: #ffffff;
281
+ background-color: #08c;
282
+ color: #fff;
274
283
  }
275
284
  .selectize-dropdown .active.create {
276
- color: #ffffff;
285
+ color: #fff;
277
286
  }
278
287
  .selectize-dropdown .create {
279
288
  color: rgba(51, 51, 51, 0.5);
@@ -303,12 +312,12 @@
303
312
  height: 0;
304
313
  border-style: solid;
305
314
  border-width: 5px 5px 0 5px;
306
- border-color: #000000 transparent transparent transparent;
315
+ border-color: #000 transparent transparent transparent;
307
316
  }
308
317
  .selectize-control.single .selectize-input.dropdown-active:after {
309
318
  margin-top: -4px;
310
319
  border-width: 0 5px 5px 5px;
311
- border-color: transparent transparent #000000 transparent;
320
+ border-color: transparent transparent #000 transparent;
312
321
  }
313
322
  .selectize-control.rtl.single .selectize-input:after {
314
323
  left: 15px;
@@ -319,7 +328,7 @@
319
328
  }
320
329
  .selectize-control .selectize-input.disabled {
321
330
  opacity: 0.5;
322
- background-color: #ffffff;
331
+ background-color: #fff;
323
332
  }
324
333
  .selectize-dropdown {
325
334
  margin: 2px 0 0 0;
@@ -348,17 +357,17 @@
348
357
  *margin: -5px 0 5px;
349
358
  overflow: hidden;
350
359
  background-color: #e5e5e5;
351
- border-bottom: 1px solid #ffffff;
360
+ border-bottom: 1px solid #fff;
352
361
  margin-left: -10px;
353
362
  margin-right: -10px;
354
363
  }
355
364
  .selectize-dropdown [data-selectable].active {
356
365
  background-color: #0081c2;
357
- background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
358
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
359
- background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
360
- background-image: -o-linear-gradient(top, #0088cc, #0077b3);
361
- background-image: linear-gradient(to bottom, #0088cc, #0077b3);
366
+ background-image: -moz-linear-gradient(top, #08c, #0077b3);
367
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0077b3));
368
+ background-image: -webkit-linear-gradient(top, #08c, #0077b3);
369
+ background-image: -o-linear-gradient(top, #08c, #0077b3);
370
+ background-image: linear-gradient(to bottom, #08c, #0077b3);
362
371
  background-repeat: repeat-x;
363
372
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
364
373
  }
@@ -385,7 +394,7 @@
385
394
  .selectize-input.input-active,
386
395
  .selectize-input.input-active:hover,
387
396
  .selectize-control.multi .selectize-input.focus {
388
- background: #ffffff !important;
397
+ background: #fff !important;
389
398
  border-color: rgba(82, 168, 236, 0.8) !important;
390
399
  outline: 0 !important;
391
400
  outline: thin dotted \9 !important;
@@ -394,14 +403,14 @@
394
403
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6) !important;
395
404
  }
396
405
  .selectize-control.single .selectize-input {
397
- color: #333333;
406
+ color: #333;
398
407
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
399
408
  background-color: #f5f5f5;
400
- background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
401
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
402
- background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
403
- background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
404
- background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
409
+ background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
410
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
411
+ background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
412
+ background-image: -o-linear-gradient(top, #fff, #e6e6e6);
413
+ background-image: linear-gradient(to bottom, #fff, #e6e6e6);
405
414
  background-repeat: repeat-x;
406
415
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
407
416
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
@@ -419,7 +428,7 @@
419
428
  .selectize-control.single .selectize-input.active,
420
429
  .selectize-control.single .selectize-input.disabled,
421
430
  .selectize-control.single .selectize-input[disabled] {
422
- color: #333333;
431
+ color: #333;
423
432
  background-color: #e6e6e6;
424
433
  *background-color: #d9d9d9;
425
434
  }
@@ -428,7 +437,7 @@
428
437
  background-color: #cccccc \9;
429
438
  }
430
439
  .selectize-control.single .selectize-input:hover {
431
- color: #333333;
440
+ color: #333;
432
441
  text-decoration: none;
433
442
  background-position: 0 -15px;
434
443
  -webkit-transition: background-position 0.1s linear;
@@ -452,20 +461,20 @@
452
461
  padding-right: 7px;
453
462
  }
454
463
  .selectize-control.multi .selectize-input > div {
455
- color: #333333;
464
+ color: #333;
456
465
  text-shadow: none;
457
466
  background-color: #f5f5f5;
458
- background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
459
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
460
- background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
461
- background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
462
- background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
467
+ background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
468
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
469
+ background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
470
+ background-image: -o-linear-gradient(top, #fff, #e6e6e6);
471
+ background-image: linear-gradient(to bottom, #fff, #e6e6e6);
463
472
  background-repeat: repeat-x;
464
473
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
465
474
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
466
475
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
467
476
  *background-color: #e6e6e6;
468
- border: 1px solid #cccccc;
477
+ border: 1px solid #ccc;
469
478
  -webkit-border-radius: 4px;
470
479
  -moz-border-radius: 4px;
471
480
  border-radius: 4px;
@@ -477,18 +486,18 @@
477
486
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
478
487
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
479
488
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
480
- color: #ffffff;
489
+ color: #fff;
481
490
  text-shadow: none;
482
491
  background-color: #0081c2;
483
- background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
484
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
485
- background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
486
- background-image: -o-linear-gradient(top, #0088cc, #0077b3);
487
- background-image: linear-gradient(to bottom, #0088cc, #0077b3);
492
+ background-image: -moz-linear-gradient(top, #08c, #0077b3);
493
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0077b3));
494
+ background-image: -webkit-linear-gradient(top, #08c, #0077b3);
495
+ background-image: -o-linear-gradient(top, #08c, #0077b3);
496
+ background-image: linear-gradient(to bottom, #08c, #0077b3);
488
497
  background-repeat: repeat-x;
489
498
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
490
499
  border-color: #0077b3 #0077b3 #004466;
491
500
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
492
- *background-color: #0088cc;
493
- border: 1px solid #0088cc;
501
+ *background-color: #08c;
502
+ border: 1px solid #08c;
494
503
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap3.css (v0.12.4) - Bootstrap 3 Theme
2
+ * selectize.bootstrap3.css (v0.12.5) - Bootstrap 3 Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,12 +128,12 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
135
135
  .selectize-input {
136
- border: 1px solid #cccccc;
136
+ border: 1px solid #ccc;
137
137
  padding: 6px 12px;
138
138
  display: inline-block;
139
139
  width: 100%;
@@ -153,7 +153,7 @@
153
153
  padding: 5px 12px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -185,7 +185,7 @@
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
187
  background: #428bca;
188
- color: #ffffff;
188
+ color: #fff;
189
189
  border: 0 solid rgba(0, 0, 0, 0);
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,16 +256,25 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 3px 12px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
276
  color: #777777;
268
- background: #ffffff;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
@@ -319,7 +328,7 @@
319
328
  }
320
329
  .selectize-control .selectize-input.disabled {
321
330
  opacity: 0.5;
322
- background-color: #ffffff;
331
+ background-color: #fff;
323
332
  }
324
333
  .selectize-dropdown,
325
334
  .selectize-dropdown.form-control {
@@ -327,8 +336,8 @@
327
336
  padding: 0;
328
337
  margin: 2px 0 0 0;
329
338
  z-index: 1000;
330
- background: #ffffff;
331
- border: 1px solid #cccccc;
339
+ background: #fff;
340
+ border: 1px solid #ccc;
332
341
  border: 1px solid rgba(0, 0, 0, 0.15);
333
342
  -webkit-border-radius: 4px;
334
343
  -moz-border-radius: 4px;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.default.css (v0.12.4) - Default Theme
2
+ * selectize.default.css (v0.12.5) - Default Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
@@ -153,7 +153,7 @@
153
153
  padding: 5px 8px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -180,12 +180,12 @@
180
180
  margin: 0 3px 3px 0;
181
181
  padding: 2px 6px;
182
182
  background: #1da7ee;
183
- color: #ffffff;
183
+ color: #fff;
184
184
  border: 1px solid #0073bb;
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
187
  background: #92c836;
188
- color: #ffffff;
188
+ color: #fff;
189
189
  border: 1px solid #00578d;
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,16 +256,25 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 5px 8px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
276
  color: #303030;
268
- background: #ffffff;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.legacy.css (v0.12.4) - Default Theme
2
+ * selectize.legacy.css (v0.12.5) - Default Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,10 +256,19 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 7px 10px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.css (v0.12.4)
2
+ * selectize.css (v0.12.5)
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -19,8 +19,8 @@
19
19
  background: #f2f2f2 !important;
20
20
  background: rgba(0, 0, 0, 0.06) !important;
21
21
  border: 0 none !important;
22
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23
- box-shadow: inset 0 0 12px 4px #ffffff;
22
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
23
+ box-shadow: inset 0 0 12px 4px #fff;
24
24
  }
25
25
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
26
26
  content: '!';
@@ -111,8 +111,8 @@
111
111
  }
112
112
  .selectize-control.plugin-remove_button .remove-single {
113
113
  position: absolute;
114
- right: 28px;
115
- top: 6px;
114
+ right: 0;
115
+ top: 0;
116
116
  font-size: 23px;
117
117
  }
118
118
  .selectize-control {
@@ -129,7 +129,7 @@
129
129
  }
130
130
  .selectize-input,
131
131
  .selectize-control.single .selectize-input.input-active {
132
- background: #ffffff;
132
+ background: #fff;
133
133
  cursor: text;
134
134
  display: inline-block;
135
135
  }
@@ -154,7 +154,7 @@
154
154
  padding: 6px 8px 3px;
155
155
  }
156
156
  .selectize-input.full {
157
- background-color: #ffffff;
157
+ background-color: #fff;
158
158
  }
159
159
  .selectize-input.disabled,
160
160
  .selectize-input.disabled * {
@@ -235,7 +235,7 @@
235
235
  position: absolute;
236
236
  z-index: 10;
237
237
  border: 1px solid #d0d0d0;
238
- background: #ffffff;
238
+ background: #fff;
239
239
  margin: -1px 0 0 0;
240
240
  border-top: 0 none;
241
241
  -webkit-box-sizing: border-box;
@@ -257,16 +257,25 @@
257
257
  -moz-border-radius: 1px;
258
258
  border-radius: 1px;
259
259
  }
260
- .selectize-dropdown [data-selectable],
260
+ .selectize-dropdown .option,
261
261
  .selectize-dropdown .optgroup-header {
262
262
  padding: 5px 8px;
263
263
  }
264
+ .selectize-dropdown .option,
265
+ .selectize-dropdown [data-disabled],
266
+ .selectize-dropdown [data-disabled] [data-selectable].option {
267
+ cursor: inherit;
268
+ opacity: 0.5;
269
+ }
270
+ .selectize-dropdown [data-selectable].option {
271
+ opacity: 1;
272
+ }
264
273
  .selectize-dropdown .optgroup:first-child .optgroup-header {
265
274
  border-top: 0 none;
266
275
  }
267
276
  .selectize-dropdown .optgroup-header {
268
277
  color: #303030;
269
- background: #ffffff;
278
+ background: #fff;
270
279
  cursor: default;
271
280
  }
272
281
  .selectize-dropdown .active {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selectize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4.1
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel van Rijn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-13 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.6.12
86
+ rubygems_version: 2.7.7
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: an asset gemification of the selectize.js plugin