fomantic-ui 2.9.4-beta.82 → 2.9.4-beta.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +1 -1
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +1 -1
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +152 -2
  124. package/dist/components/slider.js +139 -43
  125. package/dist/components/slider.min.css +2 -2
  126. package/dist/components/slider.min.js +2 -2
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +992 -86
  132. package/dist/components/step.min.css +2 -2
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +1 -1
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +1 -1
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +1479 -139
  156. package/dist/semantic.js +164 -68
  157. package/dist/semantic.min.css +2 -2
  158. package/dist/semantic.min.js +2 -2
  159. package/package.json +1 -1
  160. package/src/definitions/elements/step.less +399 -85
  161. package/src/definitions/modules/slider.js +138 -42
  162. package/src/definitions/modules/slider.less +103 -8
  163. package/src/themes/default/elements/step.variables +33 -0
  164. package/src/themes/default/globals/variation.variables +6 -0
  165. package/src/themes/default/modules/slider.variables +10 -0
  166. package/types/fomantic-ui-slider.d.ts +54 -2
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.4-beta.82+14bf847
2
+ * # Fomantic UI - 2.9.4-beta.84+7052a23
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Site
12
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -465,7 +465,7 @@
465
465
  })(jQuery, window, document);
466
466
 
467
467
  /*!
468
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Form Validation
468
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Form Validation
469
469
  * https://github.com/fomantic/Fomantic-UI/
470
470
  *
471
471
  *
@@ -2665,7 +2665,7 @@
2665
2665
  })(jQuery, window, document);
2666
2666
 
2667
2667
  /*!
2668
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Accordion
2668
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Accordion
2669
2669
  * https://github.com/fomantic/Fomantic-UI/
2670
2670
  *
2671
2671
  *
@@ -3261,7 +3261,7 @@
3261
3261
  })(jQuery, window, document);
3262
3262
 
3263
3263
  /*!
3264
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Calendar
3264
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Calendar
3265
3265
  * https://github.com/fomantic/Fomantic-UI/
3266
3266
  *
3267
3267
  *
@@ -5284,7 +5284,7 @@
5284
5284
  })(jQuery, window, document);
5285
5285
 
5286
5286
  /*!
5287
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Checkbox
5287
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Checkbox
5288
5288
  * https://github.com/fomantic/Fomantic-UI/
5289
5289
  *
5290
5290
  *
@@ -6173,7 +6173,7 @@
6173
6173
  })(jQuery, window, document);
6174
6174
 
6175
6175
  /*!
6176
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Dimmer
6176
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Dimmer
6177
6177
  * https://github.com/fomantic/Fomantic-UI/
6178
6178
  *
6179
6179
  *
@@ -6906,7 +6906,7 @@
6906
6906
  })(jQuery, window, document);
6907
6907
 
6908
6908
  /*!
6909
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Dropdown
6909
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Dropdown
6910
6910
  * https://github.com/fomantic/Fomantic-UI/
6911
6911
  *
6912
6912
  *
@@ -11338,7 +11338,7 @@
11338
11338
  })(jQuery, window, document);
11339
11339
 
11340
11340
  /*!
11341
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Embed
11341
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Embed
11342
11342
  * https://github.com/fomantic/Fomantic-UI/
11343
11343
  *
11344
11344
  *
@@ -12027,7 +12027,7 @@
12027
12027
  })(jQuery, window, document);
12028
12028
 
12029
12029
  /*!
12030
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Flyout
12030
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Flyout
12031
12031
  * https://github.com/fomantic/Fomantic-UI/
12032
12032
  *
12033
12033
  *
@@ -13579,7 +13579,7 @@
13579
13579
  })(jQuery, window, document);
13580
13580
 
13581
13581
  /*!
13582
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Modal
13582
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Modal
13583
13583
  * https://github.com/fomantic/Fomantic-UI/
13584
13584
  *
13585
13585
  *
@@ -15217,7 +15217,7 @@
15217
15217
  })(jQuery, window, document);
15218
15218
 
15219
15219
  /*!
15220
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Nag
15220
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Nag
15221
15221
  * https://github.com/fomantic/Fomantic-UI/
15222
15222
  *
15223
15223
  *
@@ -15784,7 +15784,7 @@
15784
15784
  })(jQuery, window, document);
15785
15785
 
15786
15786
  /*!
15787
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Popup
15787
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Popup
15788
15788
  * https://github.com/fomantic/Fomantic-UI/
15789
15789
  *
15790
15790
  *
@@ -17346,7 +17346,7 @@
17346
17346
  })(jQuery, window, document);
17347
17347
 
17348
17348
  /*!
17349
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Progress
17349
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Progress
17350
17350
  * https://github.com/fomantic/Fomantic-UI/
17351
17351
  *
17352
17352
  *
@@ -18326,7 +18326,7 @@
18326
18326
  })(jQuery, window, document);
18327
18327
 
18328
18328
  /*!
18329
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Slider
18329
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Slider
18330
18330
  * https://github.com/fomantic/Fomantic-UI/
18331
18331
  *
18332
18332
  *
@@ -18359,8 +18359,6 @@
18359
18359
  methodInvoked = typeof query === 'string',
18360
18360
  queryArguments = [].slice.call(arguments, 1),
18361
18361
 
18362
- alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'],
18363
-
18364
18362
  SINGLE_STEP = 1,
18365
18363
  BIG_STEP = 2,
18366
18364
  NO_STEP = 0,
@@ -18409,7 +18407,6 @@
18409
18407
  position,
18410
18408
  secondPos,
18411
18409
  offset,
18412
- precision,
18413
18410
  gapRatio = 1,
18414
18411
  previousValue,
18415
18412
 
@@ -18452,6 +18449,7 @@
18452
18449
  clearInterval(instance.interval);
18453
18450
  module.unbind.events();
18454
18451
  module.unbind.slidingEvents();
18452
+ delete module.cache;
18455
18453
  $module.removeData(moduleNamespace);
18456
18454
  instance = undefined;
18457
18455
  },
@@ -18468,7 +18466,7 @@
18468
18466
  + '<div class="thumb"></div>'
18469
18467
  + '</div>');
18470
18468
  }
18471
- precision = module.get.precision();
18469
+ module.clear.cache();
18472
18470
  $thumb = $module.find('.thumb:not(.second)');
18473
18471
  if (settings.showThumbTooltip) {
18474
18472
  $thumb
@@ -18502,8 +18500,14 @@
18502
18500
  module.setup.autoLabel();
18503
18501
  }
18504
18502
 
18503
+ if (settings.highlightRange) {
18504
+ $labels.addClass(className.active);
18505
+ }
18506
+
18505
18507
  if (settings.showLabelTicks) {
18506
18508
  $module.addClass(className.ticked);
18509
+ } else if ($module.hasClass(className.ticked)) {
18510
+ settings.showLabelTicks = 'always';
18507
18511
  }
18508
18512
  }
18509
18513
  },
@@ -18538,14 +18542,20 @@
18538
18542
  } else {
18539
18543
  $labels = $module.append('<ul class="auto labels"></ul>').find('.labels');
18540
18544
  }
18541
- for (var i = 0, len = module.get.numLabels(); i <= len; i++) {
18545
+ var step = module.get.step(),
18546
+ precision = module.get.precision(),
18547
+ len = module.get.numLabels(),
18548
+ ignoreLabels = len - (settings.autoAdjustLabels !== 'fixed' ? 0 : module.get.max().toString().length + 4)
18549
+ ;
18550
+ for (var i = 0; i <= len; i++) {
18542
18551
  var
18543
- labelText = module.get.label(i),
18552
+ stepValue = Math.round(((i * (step === 0 ? 1 : step)) + module.get.min()) * precision) / precision,
18553
+ labelText = module.get.label(i, stepValue),
18544
18554
  showLabel = settings.restrictedLabels.length === 0 || settings.restrictedLabels.indexOf(labelText) >= 0,
18545
18555
  $label = labelText !== '' && (showLabel || settings.showLabelTicks === 'always')
18546
- ? (!(i % module.get.gapRatio())
18547
- ? $('<li class="label">' + (showLabel ? labelText : '') + '</li>')
18548
- : $('<li class="halftick label"></li>'))
18556
+ ? ((!(i % module.get.gapRatio()) && i < ignoreLabels) || i === len
18557
+ ? $('<li/>', { class: className.label, 'data-value': stepValue, html: showLabel ? labelText : '' })
18558
+ : $('<li/>', { class: 'halftick label', 'data-value': stepValue }))
18549
18559
  : null,
18550
18560
  ratio = i / len
18551
18561
  ;
@@ -18816,6 +18826,12 @@
18816
18826
  },
18817
18827
  },
18818
18828
 
18829
+ clear: {
18830
+ cache: function () {
18831
+ module.cache = {};
18832
+ },
18833
+ },
18834
+
18819
18835
  resync: function () {
18820
18836
  module.verbose('Resyncing thumb position based on value');
18821
18837
  if (module.is.range()) {
@@ -18865,6 +18881,25 @@
18865
18881
  },
18866
18882
 
18867
18883
  is: {
18884
+ prime: function (n) {
18885
+ if (module.cache['prime' + n] === undefined) {
18886
+ var p = true;
18887
+ for (var i = 2, s = Math.sqrt(n); i <= s; i++) {
18888
+ if (n % i === 0) {
18889
+ p = false;
18890
+
18891
+ break;
18892
+ }
18893
+ }
18894
+ if (p) {
18895
+ p = n > 1;
18896
+ }
18897
+
18898
+ module.cache['prime' + n] = p;
18899
+ }
18900
+
18901
+ return module.cache['prime' + n];
18902
+ },
18868
18903
  range: function () {
18869
18904
  var isRange = $module.hasClass(className.range);
18870
18905
  if (!isRange && (settings.minRange || settings.maxRange)) {
@@ -18979,62 +19014,87 @@
18979
19014
  return margin || '0px';
18980
19015
  },
18981
19016
  precision: function () {
18982
- var
18983
- decimalPlaces,
18984
- step = module.get.step()
18985
- ;
18986
- if (step !== 0) {
18987
- var split = String(step).split('.');
18988
- decimalPlaces = split.length === 2 ? split[1].length : 0;
18989
- } else {
18990
- decimalPlaces = settings.decimalPlaces;
19017
+ if (module.cache.precision === undefined) {
19018
+ var
19019
+ decimalPlaces,
19020
+ step = module.get.step()
19021
+ ;
19022
+ if (step !== 0) {
19023
+ var split = String(step).split('.');
19024
+ decimalPlaces = split.length === 2 ? split[1].length : 0;
19025
+ } else {
19026
+ decimalPlaces = settings.decimalPlaces;
19027
+ }
19028
+ var precision = Math.pow(10, decimalPlaces);
19029
+ module.debug('Precision determined', precision);
19030
+ module.cache.precision = precision;
18991
19031
  }
18992
- var precision = Math.pow(10, decimalPlaces);
18993
- module.debug('Precision determined', precision);
18994
19032
 
18995
- return precision;
19033
+ return module.cache.precision;
18996
19034
  },
18997
19035
  min: function () {
18998
19036
  return settings.min;
18999
19037
  },
19000
19038
  max: function () {
19001
- var
19002
- step = module.get.step(),
19003
- min = module.get.min(),
19004
- precision = module.get.precision(),
19005
- quotient = step === 0 ? 0 : Math.floor(Math.round(((settings.max - min) / step) * precision) / precision),
19006
- remainder = step === 0 ? 0 : (settings.max - min) % step
19007
- ;
19039
+ if (module.cache.max === undefined) {
19040
+ var
19041
+ step = module.get.step(),
19042
+ min = module.get.min(),
19043
+ precision = module.get.precision(),
19044
+ quotient = step === 0 ? 0 : Math.floor(Math.round(((settings.max - min) / step) * precision) / precision),
19045
+ remainder = step === 0 ? 0 : (settings.max - min) % step
19046
+ ;
19047
+ if (remainder > 0) {
19048
+ module.debug('Max value not divisible by given step. Increasing max value.', settings.max, step);
19049
+ }
19050
+ module.cache.max = remainder === 0 ? settings.max : min + quotient * step;
19051
+ }
19008
19052
 
19009
- return remainder === 0 ? settings.max : min + quotient * step;
19053
+ return module.cache.max;
19010
19054
  },
19011
19055
  step: function () {
19012
19056
  return settings.step;
19013
19057
  },
19014
19058
  numLabels: function () {
19015
- var step = module.get.step(),
19016
- precision = module.get.precision(),
19017
- value = Math.round(((module.get.max() - module.get.min()) / (step === 0 ? 1 : step)) * precision) / precision;
19018
- module.debug('Determined that there should be ' + value + ' labels');
19059
+ if (module.cache.numLabels === undefined) {
19060
+ var step = module.get.step(),
19061
+ precision = module.get.precision(),
19062
+ value = Math.round(((module.get.max() - module.get.min()) / (step === 0 ? 1 : step)) * precision) / precision;
19063
+ module.debug('Determined that there should be ' + value + ' labels');
19064
+ module.cache.numLabels = value;
19065
+ }
19019
19066
 
19020
- return value;
19067
+ return module.cache.numLabels;
19021
19068
  },
19022
19069
  labelType: function () {
19023
19070
  return settings.labelType;
19024
19071
  },
19025
- label: function (value) {
19026
- if (interpretLabel) {
19027
- return interpretLabel(value);
19072
+ label: function (value, stepValue) {
19073
+ if (isFunction(interpretLabel)) {
19074
+ return interpretLabel(value, stepValue, module);
19028
19075
  }
19029
19076
 
19030
19077
  switch (settings.labelType) {
19031
19078
  case settings.labelTypes.number: {
19032
- var step = module.get.step();
19033
-
19034
- return Math.round(((value * (step === 0 ? 1 : step)) + module.get.min()) * precision) / precision;
19079
+ return stepValue;
19035
19080
  }
19036
19081
  case settings.labelTypes.letter: {
19037
- return alphabet[value % 26];
19082
+ if (value < 0 || module.get.precision() > 1) {
19083
+ module.error(error.invalidLetterNumber, value);
19084
+
19085
+ return value;
19086
+ }
19087
+ var letterLabel = '',
19088
+ letters = Array.isArray(settings.letters) ? settings.letters : String(settings.letters).split(''),
19089
+ lettersLen = letters.length
19090
+ ;
19091
+
19092
+ while (stepValue >= 0) {
19093
+ letterLabel = letters[stepValue % lettersLen] + letterLabel;
19094
+ stepValue = Math.floor(stepValue / lettersLen) - 1;
19095
+ }
19096
+
19097
+ return letterLabel;
19038
19098
  }
19039
19099
  default: {
19040
19100
  return value;
@@ -19044,6 +19104,9 @@
19044
19104
  value: function () {
19045
19105
  return value;
19046
19106
  },
19107
+ settings: function () {
19108
+ return settings;
19109
+ },
19047
19110
  currentThumbValue: function () {
19048
19111
  return $currThumb !== undefined && $currThumb.hasClass('second') ? module.secondThumbVal : module.thumbVal;
19049
19112
  },
@@ -19088,6 +19151,7 @@
19088
19151
  if (settings.autoAdjustLabels) {
19089
19152
  var
19090
19153
  numLabels = module.get.numLabels(),
19154
+ primePlus = module.is.prime(numLabels) ? 1 : 0,
19091
19155
  trackLength = module.get.trackLength(),
19092
19156
  gapCounter = 1
19093
19157
  ;
@@ -19097,7 +19161,7 @@
19097
19161
  // and apply only if the modulo of the operation is an odd number.
19098
19162
  if (trackLength > 0) {
19099
19163
  while ((trackLength / numLabels) * gapCounter < settings.labelDistance) {
19100
- if (!(numLabels % gapCounter)) {
19164
+ if (!((numLabels + primePlus) % gapCounter) || settings.autoAdjustLabels === 'fixed') {
19101
19165
  gapRatio = gapCounter;
19102
19166
  }
19103
19167
  gapCounter += 1;
@@ -19235,6 +19299,7 @@
19235
19299
  },
19236
19300
  value: function (position) {
19237
19301
  var
19302
+ precision = module.get.precision(),
19238
19303
  startPos = module.is.reversed() ? module.get.trackEndPos() : module.get.trackStartPos(),
19239
19304
  endPos = module.is.reversed() ? module.get.trackStartPos() : module.get.trackEndPos(),
19240
19305
  ratio = (position - startPos) / (endPos - startPos),
@@ -19303,6 +19368,30 @@
19303
19368
  },
19304
19369
 
19305
19370
  set: {
19371
+ active: function (thumbVal, secondThumbVal) {
19372
+ if (settings.highlightRange) {
19373
+ if (secondThumbVal < thumbVal) {
19374
+ var tempVal = secondThumbVal;
19375
+ secondThumbVal = thumbVal;
19376
+ thumbVal = tempVal;
19377
+ }
19378
+ var $children = $labels.find('.label');
19379
+ $children.each(function (index) {
19380
+ var
19381
+ $child = $(this),
19382
+ attrValue = $child.attr('data-value')
19383
+ ;
19384
+ if (attrValue) {
19385
+ attrValue = parseInt(attrValue, 10);
19386
+ if (attrValue >= thumbVal && attrValue <= secondThumbVal) {
19387
+ $child.addClass(className.active);
19388
+ } else {
19389
+ $child.removeClass(className.active);
19390
+ }
19391
+ }
19392
+ });
19393
+ }
19394
+ },
19306
19395
  value: function (newValue, fireChange) {
19307
19396
  fireChange = fireChange !== false;
19308
19397
  var toReset = previousValue === undefined;
@@ -19430,6 +19519,7 @@
19430
19519
  position = newPos;
19431
19520
  thumbVal = newValue;
19432
19521
  }
19522
+ module.set.active(thumbVal, secondThumbVal);
19433
19523
  var
19434
19524
  trackPosValue,
19435
19525
  thumbPosValue,
@@ -19537,6 +19627,7 @@
19537
19627
  } else {
19538
19628
  return settings[name];
19539
19629
  }
19630
+ module.clear.cache();
19540
19631
  },
19541
19632
  internal: function (name, value) {
19542
19633
  if ($.isPlainObject(name)) {
@@ -19709,6 +19800,7 @@
19709
19800
  method: 'The method you called is not defined.',
19710
19801
  notrange: 'This slider is not a range slider',
19711
19802
  invalidRanges: 'Invalid range settings (start/end/minRange/maxRange)',
19803
+ invalidLetterNumber: 'Negative values or decimal places for labelType: "letter" are not supported',
19712
19804
  },
19713
19805
 
19714
19806
  metadata: {
@@ -19731,6 +19823,7 @@
19731
19823
  preventCrossover: true,
19732
19824
  fireOnInit: false,
19733
19825
  interpretLabel: false,
19826
+ letters: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
19734
19827
 
19735
19828
  // the decimal place to round to if step is undefined
19736
19829
  decimalPlaces: 2,
@@ -19748,6 +19841,8 @@
19748
19841
  vertical: 'vertical',
19749
19842
  range: 'range',
19750
19843
  smooth: 'smooth',
19844
+ label: 'label',
19845
+ active: 'active',
19751
19846
  },
19752
19847
 
19753
19848
  keys: {
@@ -19760,6 +19855,7 @@
19760
19855
  },
19761
19856
 
19762
19857
  restrictedLabels: [],
19858
+ highlightRange: false,
19763
19859
  showThumbTooltip: false,
19764
19860
  tooltipConfig: {
19765
19861
  position: 'top center',
@@ -19777,7 +19873,7 @@
19777
19873
  })(jQuery, window, document);
19778
19874
 
19779
19875
  /*!
19780
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Rating
19876
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Rating
19781
19877
  * https://github.com/fomantic/Fomantic-UI/
19782
19878
  *
19783
19879
  *
@@ -20318,7 +20414,7 @@
20318
20414
  })(jQuery, window, document);
20319
20415
 
20320
20416
  /*!
20321
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Search
20417
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Search
20322
20418
  * https://github.com/fomantic/Fomantic-UI/
20323
20419
  *
20324
20420
  *
@@ -21949,7 +22045,7 @@
21949
22045
  })(jQuery, window, document);
21950
22046
 
21951
22047
  /*!
21952
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Shape
22048
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Shape
21953
22049
  * https://github.com/fomantic/Fomantic-UI/
21954
22050
  *
21955
22051
  *
@@ -22747,7 +22843,7 @@
22747
22843
  })(jQuery, window, document);
22748
22844
 
22749
22845
  /*!
22750
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Sidebar
22846
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Sidebar
22751
22847
  * https://github.com/fomantic/Fomantic-UI/
22752
22848
  *
22753
22849
  *
@@ -23802,7 +23898,7 @@
23802
23898
  })(jQuery, window, document);
23803
23899
 
23804
23900
  /*!
23805
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Sticky
23901
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Sticky
23806
23902
  * https://github.com/fomantic/Fomantic-UI/
23807
23903
  *
23808
23904
  *
@@ -24720,7 +24816,7 @@
24720
24816
  })(jQuery, window, document);
24721
24817
 
24722
24818
  /*!
24723
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Tab
24819
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Tab
24724
24820
  * https://github.com/fomantic/Fomantic-UI/
24725
24821
  *
24726
24822
  *
@@ -25688,7 +25784,7 @@
25688
25784
  })(jQuery, window, document);
25689
25785
 
25690
25786
  /*!
25691
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Toast
25787
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Toast
25692
25788
  * https://github.com/fomantic/Fomantic-UI/
25693
25789
  *
25694
25790
  *
@@ -26653,7 +26749,7 @@
26653
26749
  })(jQuery, window, document);
26654
26750
 
26655
26751
  /*!
26656
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Transition
26752
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Transition
26657
26753
  * https://github.com/fomantic/Fomantic-UI/
26658
26754
  *
26659
26755
  *
@@ -27688,7 +27784,7 @@
27688
27784
  })(jQuery, window, document);
27689
27785
 
27690
27786
  /*!
27691
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - API
27787
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - API
27692
27788
  * https://github.com/fomantic/Fomantic-UI/
27693
27789
  *
27694
27790
  *
@@ -28914,7 +29010,7 @@
28914
29010
  })(jQuery, window, document);
28915
29011
 
28916
29012
  /*!
28917
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - State
29013
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - State
28918
29014
  * https://github.com/fomantic/Fomantic-UI/
28919
29015
  *
28920
29016
  *
@@ -29612,7 +29708,7 @@
29612
29708
  })(jQuery, window, document);
29613
29709
 
29614
29710
  /*!
29615
- * # Fomantic-UI 2.9.4-beta.82+14bf847 - Visibility
29711
+ * # Fomantic-UI 2.9.4-beta.84+7052a23 - Visibility
29616
29712
  * https://github.com/fomantic/Fomantic-UI/
29617
29713
  *
29618
29714
  *