fomantic-ui 2.9.1-beta.23 → 2.9.1-beta.24

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 (214) hide show
  1. package/.eslint/index.js +23 -0
  2. package/.eslint/no-extra-parens-rule.js +17 -0
  3. package/.eslint/package.json +11 -0
  4. package/.eslintrc.js +6 -11
  5. package/dist/components/accordion.css +1 -1
  6. package/dist/components/accordion.js +22 -22
  7. package/dist/components/accordion.min.css +1 -1
  8. package/dist/components/accordion.min.js +1 -1
  9. package/dist/components/ad.css +1 -1
  10. package/dist/components/ad.min.css +1 -1
  11. package/dist/components/api.js +47 -47
  12. package/dist/components/api.min.js +1 -1
  13. package/dist/components/breadcrumb.css +1 -1
  14. package/dist/components/breadcrumb.min.css +1 -1
  15. package/dist/components/button.css +1 -1
  16. package/dist/components/button.min.css +1 -1
  17. package/dist/components/calendar.css +1 -1
  18. package/dist/components/calendar.js +69 -58
  19. package/dist/components/calendar.min.css +1 -1
  20. package/dist/components/calendar.min.js +2 -2
  21. package/dist/components/card.css +1 -1
  22. package/dist/components/card.min.css +1 -1
  23. package/dist/components/checkbox.css +1 -1
  24. package/dist/components/checkbox.js +9 -9
  25. package/dist/components/checkbox.min.css +1 -1
  26. package/dist/components/checkbox.min.js +1 -1
  27. package/dist/components/comment.css +1 -1
  28. package/dist/components/comment.min.css +1 -1
  29. package/dist/components/container.css +1 -1
  30. package/dist/components/container.min.css +1 -1
  31. package/dist/components/dimmer.css +1 -1
  32. package/dist/components/dimmer.js +11 -11
  33. package/dist/components/dimmer.min.css +1 -1
  34. package/dist/components/dimmer.min.js +1 -1
  35. package/dist/components/divider.css +1 -1
  36. package/dist/components/divider.min.css +1 -1
  37. package/dist/components/dropdown.css +1 -1
  38. package/dist/components/dropdown.js +171 -173
  39. package/dist/components/dropdown.min.css +1 -1
  40. package/dist/components/dropdown.min.js +1 -1
  41. package/dist/components/embed.css +1 -1
  42. package/dist/components/embed.js +16 -16
  43. package/dist/components/embed.min.css +1 -1
  44. package/dist/components/embed.min.js +1 -1
  45. package/dist/components/feed.css +1 -1
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +1 -1
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +1 -1
  50. package/dist/components/flyout.js +21 -17
  51. package/dist/components/flyout.min.css +1 -1
  52. package/dist/components/flyout.min.js +1 -1
  53. package/dist/components/form.css +1 -1
  54. package/dist/components/form.js +87 -87
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +1 -1
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +1 -1
  62. package/dist/components/icon.min.css +1 -1
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -1
  66. package/dist/components/input.min.css +1 -1
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +1 -1
  70. package/dist/components/label.min.css +1 -1
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.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 +30 -26
  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 +7 -7
  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 +45 -45
  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 +30 -32
  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 +10 -10
  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 +31 -31
  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 +34 -34
  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 +21 -21
  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 +14 -14
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.js +33 -25
  124. package/dist/components/slider.min.js +1 -1
  125. package/dist/components/state.js +11 -11
  126. package/dist/components/state.min.js +1 -1
  127. package/dist/components/statistic.css +1 -1
  128. package/dist/components/statistic.min.css +1 -1
  129. package/dist/components/step.css +1 -1
  130. package/dist/components/step.min.css +1 -1
  131. package/dist/components/sticky.css +1 -1
  132. package/dist/components/sticky.js +21 -21
  133. package/dist/components/sticky.min.css +1 -1
  134. package/dist/components/sticky.min.js +1 -1
  135. package/dist/components/tab.css +1 -1
  136. package/dist/components/tab.js +23 -23
  137. package/dist/components/tab.min.css +1 -1
  138. package/dist/components/tab.min.js +1 -1
  139. package/dist/components/table.css +1 -1
  140. package/dist/components/table.min.css +1 -1
  141. package/dist/components/text.css +1 -1
  142. package/dist/components/text.min.css +1 -1
  143. package/dist/components/toast.css +1 -1
  144. package/dist/components/toast.js +41 -17
  145. package/dist/components/toast.min.css +1 -1
  146. package/dist/components/toast.min.js +1 -1
  147. package/dist/components/transition.css +1 -1
  148. package/dist/components/transition.js +21 -21
  149. package/dist/components/transition.min.css +1 -1
  150. package/dist/components/transition.min.js +1 -1
  151. package/dist/components/visibility.js +21 -21
  152. package/dist/components/visibility.min.js +1 -1
  153. package/dist/semantic.css +50 -50
  154. package/dist/semantic.js +847 -800
  155. package/dist/semantic.min.css +1 -1
  156. package/dist/semantic.min.js +2 -2
  157. package/gulpfile.js +1 -1
  158. package/package.json +2 -1
  159. package/scripts/nightly-version.js +3 -1
  160. package/src/definitions/behaviors/api.js +46 -46
  161. package/src/definitions/behaviors/form.js +86 -86
  162. package/src/definitions/behaviors/state.js +10 -10
  163. package/src/definitions/behaviors/visibility.js +20 -20
  164. package/src/definitions/globals/site.js +13 -13
  165. package/src/definitions/modules/accordion.js +21 -21
  166. package/src/definitions/modules/calendar.js +68 -57
  167. package/src/definitions/modules/checkbox.js +8 -8
  168. package/src/definitions/modules/dimmer.js +10 -10
  169. package/src/definitions/modules/dropdown.js +170 -172
  170. package/src/definitions/modules/embed.js +15 -15
  171. package/src/definitions/modules/flyout.js +20 -16
  172. package/src/definitions/modules/modal.js +29 -25
  173. package/src/definitions/modules/nag.js +6 -6
  174. package/src/definitions/modules/popup.js +44 -44
  175. package/src/definitions/modules/progress.js +29 -31
  176. package/src/definitions/modules/rating.js +9 -9
  177. package/src/definitions/modules/search.js +30 -30
  178. package/src/definitions/modules/shape.js +33 -33
  179. package/src/definitions/modules/sidebar.js +20 -20
  180. package/src/definitions/modules/slider.js +32 -24
  181. package/src/definitions/modules/sticky.js +20 -20
  182. package/src/definitions/modules/tab.js +22 -22
  183. package/src/definitions/modules/toast.js +40 -16
  184. package/src/definitions/modules/transition.js +20 -20
  185. package/tasks/admin/components/create.js +1 -1
  186. package/tasks/admin/components/init.js +1 -1
  187. package/tasks/admin/components/update.js +4 -4
  188. package/tasks/admin/distributions/create.js +2 -2
  189. package/tasks/admin/distributions/init.js +1 -1
  190. package/tasks/admin/distributions/update.js +4 -4
  191. package/tasks/admin/publish.js +1 -3
  192. package/tasks/admin/register.js +5 -5
  193. package/tasks/admin/release.js +1 -3
  194. package/tasks/build/assets.js +1 -1
  195. package/tasks/build.js +1 -1
  196. package/tasks/check-install.js +1 -1
  197. package/tasks/clean.js +1 -1
  198. package/tasks/collections/admin.js +1 -1
  199. package/tasks/collections/rtl.js +1 -1
  200. package/tasks/config/admin/github.js +3 -4
  201. package/tasks/config/npm/gulpfile.js +1 -1
  202. package/tasks/config/project/config.js +8 -6
  203. package/tasks/config/project/install.js +10 -10
  204. package/tasks/config/project/release.js +3 -2
  205. package/tasks/config/tasks.js +2 -2
  206. package/tasks/config/user.js +5 -3
  207. package/tasks/docs/build.js +1 -1
  208. package/tasks/docs/metadata.js +1 -1
  209. package/tasks/docs/serve.js +2 -1
  210. package/tasks/install.js +2 -2
  211. package/tasks/rtl/build.js +1 -3
  212. package/tasks/rtl/watch.js +1 -3
  213. package/tasks/version.js +1 -3
  214. package/tasks/watch.js +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Shape
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Shape
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -27,7 +27,7 @@
27
27
  performance = [],
28
28
 
29
29
  query = arguments[0],
30
- methodInvoked = (typeof query === 'string'),
30
+ methodInvoked = typeof query === 'string',
31
31
  queryArguments = [].slice.call(arguments, 1),
32
32
 
33
33
  requestAnimationFrame = window.requestAnimationFrame
@@ -44,7 +44,7 @@
44
44
  $allModules.each(function () {
45
45
  var
46
46
  moduleSelector = $allModules.selector || '',
47
- settings = ($.isPlainObject(parameters))
47
+ settings = $.isPlainObject(parameters)
48
48
  ? $.extend(true, {}, $.fn.shape.settings, parameters)
49
49
  : $.extend({}, $.fn.shape.settings),
50
50
 
@@ -185,7 +185,7 @@
185
185
 
186
186
  is: {
187
187
  complete: function () {
188
- return ($side.filter('.' + className.active)[0] == $nextSide[0]);
188
+ return $side.filter('.' + className.active)[0] == $nextSide[0];
189
189
  },
190
190
  animating: function () {
191
191
  return $module.hasClass(className.animating);
@@ -199,7 +199,7 @@
199
199
 
200
200
  defaultSide: function () {
201
201
  $activeSide = $side.filter('.' + settings.className.active);
202
- $nextSide = ($activeSide.next(selector.side).length > 0)
202
+ $nextSide = $activeSide.next(selector.side).length > 0
203
203
  ? $activeSide.next(selector.side)
204
204
  : $side.first();
205
205
  nextIndex = false;
@@ -209,7 +209,7 @@
209
209
 
210
210
  duration: function (duration) {
211
211
  duration = duration || settings.duration;
212
- duration = (typeof duration === 'number')
212
+ duration = typeof duration === 'number'
213
213
  ? duration + 'ms'
214
214
  : duration;
215
215
  module.verbose('Setting animation duration', duration);
@@ -245,21 +245,21 @@
245
245
  $clone = $module.clone().addClass(className.loading),
246
246
  $side = $clone.find('>' + selector.sides + '>' + selector.side),
247
247
  $activeSide = $side.filter('.' + settings.className.active),
248
- $nextSide = (nextIndex)
248
+ $nextSide = nextIndex
249
249
  ? $side.eq(nextIndex)
250
- : ($activeSide.next(selector.side).length > 0)
250
+ : ($activeSide.next(selector.side).length > 0
251
251
  ? $activeSide.next(selector.side)
252
- : $side.first(),
253
- newWidth = (settings.width === 'next')
252
+ : $side.first()),
253
+ newWidth = settings.width === 'next'
254
254
  ? $nextSide.outerWidth(true)
255
- : (settings.width === 'initial')
255
+ : (settings.width === 'initial'
256
256
  ? $module.width()
257
- : settings.width,
258
- newHeight = (settings.height === 'next')
257
+ : settings.width),
258
+ newHeight = settings.height === 'next'
259
259
  ? $nextSide.outerHeight(true)
260
- : (settings.height === 'initial')
260
+ : (settings.height === 'initial'
261
261
  ? $module.height()
262
- : settings.height
262
+ : settings.height)
263
263
  ;
264
264
  $activeSide.removeClass(className.active);
265
265
  $nextSide.addClass(className.active);
@@ -443,7 +443,7 @@
443
443
  },
444
444
 
445
445
  nextSide: function () {
446
- return ($activeSide.next(selector.side).length > 0)
446
+ return $activeSide.next(selector.side).length > 0
447
447
  ? $activeSide.next(selector.side)
448
448
  : $side.first();
449
449
  },
@@ -455,10 +455,10 @@
455
455
  above: function () {
456
456
  var
457
457
  box = {
458
- origin: (($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),
458
+ origin: ($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2,
459
459
  depth: {
460
- active: ($nextSide.outerHeight(true) / 2),
461
- next: ($activeSide.outerHeight(true) / 2),
460
+ active: $nextSide.outerHeight(true) / 2,
461
+ next: $activeSide.outerHeight(true) / 2,
462
462
  },
463
463
  }
464
464
  ;
@@ -480,10 +480,10 @@
480
480
  below: function () {
481
481
  var
482
482
  box = {
483
- origin: (($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),
483
+ origin: ($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2,
484
484
  depth: {
485
- active: ($nextSide.outerHeight(true) / 2),
486
- next: ($activeSide.outerHeight(true) / 2),
485
+ active: $nextSide.outerHeight(true) / 2,
486
+ next: $activeSide.outerHeight(true) / 2,
487
487
  },
488
488
  }
489
489
  ;
@@ -509,10 +509,10 @@
509
509
  next: $nextSide.outerWidth(true),
510
510
  },
511
511
  box = {
512
- origin: ((height.active - height.next) / 2),
512
+ origin: (height.active - height.next) / 2,
513
513
  depth: {
514
- active: (height.next / 2),
515
- next: (height.active / 2),
514
+ active: height.next / 2,
515
+ next: height.active / 2,
516
516
  },
517
517
  }
518
518
  ;
@@ -538,10 +538,10 @@
538
538
  next: $nextSide.outerWidth(true),
539
539
  },
540
540
  box = {
541
- origin: ((height.active - height.next) / 2),
541
+ origin: (height.active - height.next) / 2,
542
542
  depth: {
543
- active: (height.next / 2),
544
- next: (height.active / 2),
543
+ active: height.next / 2,
544
+ next: height.active / 2,
545
545
  },
546
546
  }
547
547
  ;
@@ -567,10 +567,10 @@
567
567
  next: $nextSide.outerWidth(true),
568
568
  },
569
569
  box = {
570
- origin: ((height.active - height.next) / 2),
570
+ origin: (height.active - height.next) / 2,
571
571
  depth: {
572
- active: (height.next / 2),
573
- next: (height.active / 2),
572
+ active: height.next / 2,
573
+ next: height.active / 2,
574
574
  },
575
575
  }
576
576
  ;
@@ -704,7 +704,7 @@
704
704
  query = query.split(/[ .]/);
705
705
  maxDepth = query.length - 1;
706
706
  $.each(query, function (depth, value) {
707
- var camelCaseValue = (depth != maxDepth)
707
+ var camelCaseValue = depth != maxDepth
708
708
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
709
709
  : query
710
710
  ;
@@ -763,7 +763,7 @@
763
763
  }
764
764
  });
765
765
 
766
- return (returnedValue !== undefined)
766
+ return returnedValue !== undefined
767
767
  ? returnedValue
768
768
  : this;
769
769
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Shape
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Shape
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Sidebar
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Sidebar
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -34,7 +34,7 @@
34
34
  performance = [],
35
35
 
36
36
  query = arguments[0],
37
- methodInvoked = (typeof query === 'string'),
37
+ methodInvoked = typeof query === 'string',
38
38
  queryArguments = [].slice.call(arguments, 1),
39
39
 
40
40
  requestAnimationFrame = window.requestAnimationFrame
@@ -49,7 +49,7 @@
49
49
 
50
50
  $allModules.each(function () {
51
51
  var
52
- settings = ($.isPlainObject(parameters))
52
+ settings = $.isPlainObject(parameters)
53
53
  ? $.extend(true, {}, $.fn.sidebar.settings, parameters)
54
54
  : $.extend({}, $.fn.sidebar.settings),
55
55
 
@@ -143,8 +143,8 @@
143
143
  clickaway: function (event) {
144
144
  if (settings.closable) {
145
145
  var
146
- clickedInPusher = ($pusher.find(event.target).length > 0 || $pusher.is(event.target)),
147
- clickedContext = ($context.is(event.target))
146
+ clickedInPusher = $pusher.find(event.target).length > 0 || $pusher.is(event.target),
147
+ clickedContext = $context.is(event.target)
148
148
  ;
149
149
  if (clickedInPusher) {
150
150
  module.verbose('User clicked on dimmed page');
@@ -437,13 +437,13 @@
437
437
  },
438
438
 
439
439
  othersAnimating: function () {
440
- return ($sidebars.not($module).filter('.' + className.animating).length > 0);
440
+ return $sidebars.not($module).filter('.' + className.animating).length > 0;
441
441
  },
442
442
  othersVisible: function () {
443
- return ($sidebars.not($module).filter('.' + className.visible).length > 0);
443
+ return $sidebars.not($module).filter('.' + className.visible).length > 0;
444
444
  },
445
445
  othersActive: function () {
446
- return (module.othersVisible() || module.othersAnimating());
446
+ return module.othersVisible() || module.othersAnimating();
447
447
  },
448
448
 
449
449
  hideOthers: function (callback) {
@@ -475,7 +475,7 @@
475
475
  pushPage: function (callback) {
476
476
  var
477
477
  transition = module.get.transition(),
478
- $transition = (transition === 'overlay' || module.othersActive())
478
+ $transition = transition === 'overlay' || module.othersActive()
479
479
  ? $module
480
480
  : $pusher,
481
481
  animate,
@@ -521,7 +521,7 @@
521
521
  pullPage: function (callback) {
522
522
  var
523
523
  transition = module.get.transition(),
524
- $transition = (transition == 'overlay' || module.othersActive())
524
+ $transition = transition == 'overlay' || module.othersActive()
525
525
  ? $module
526
526
  : $pusher,
527
527
  animate,
@@ -724,13 +724,13 @@
724
724
  direction = module.get.direction(),
725
725
  transition
726
726
  ;
727
- transition = (module.is.mobile())
728
- ? (settings.mobileTransition == 'auto')
727
+ transition = module.is.mobile()
728
+ ? (settings.mobileTransition == 'auto'
729
729
  ? settings.defaultTransition.mobile[direction]
730
- : settings.mobileTransition
731
- : (settings.transition == 'auto')
730
+ : settings.mobileTransition)
731
+ : (settings.transition == 'auto'
732
732
  ? settings.defaultTransition.computer[direction]
733
- : settings.transition;
733
+ : settings.transition);
734
734
  module.verbose('Determined transition', transition);
735
735
 
736
736
  return transition;
@@ -786,10 +786,10 @@
786
786
  ie: function () {
787
787
  if (module.cache.isIE === undefined) {
788
788
  var
789
- isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
790
- isIE = ('ActiveXObject' in window)
789
+ isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
790
+ isIE = 'ActiveXObject' in window
791
791
  ;
792
- module.cache.isIE = (isIE11 || isIE);
792
+ module.cache.isIE = isIE11 || isIE;
793
793
  }
794
794
 
795
795
  return module.cache.isIE;
@@ -964,7 +964,7 @@
964
964
  query = query.split(/[ .]/);
965
965
  maxDepth = query.length - 1;
966
966
  $.each(query, function (depth, value) {
967
- var camelCaseValue = (depth != maxDepth)
967
+ var camelCaseValue = depth != maxDepth
968
968
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
969
969
  : query
970
970
  ;
@@ -1017,7 +1017,7 @@
1017
1017
  }
1018
1018
  });
1019
1019
 
1020
- return (returnedValue !== undefined)
1020
+ return returnedValue !== undefined
1021
1021
  ? returnedValue
1022
1022
  : this;
1023
1023
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Sidebar
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Site
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Site
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -25,10 +25,10 @@
25
25
  performance = [],
26
26
 
27
27
  query = arguments[0],
28
- methodInvoked = (typeof query === 'string'),
28
+ methodInvoked = typeof query === 'string',
29
29
  queryArguments = [].slice.call(arguments, 1),
30
30
 
31
- settings = ($.isPlainObject(parameters))
31
+ settings = $.isPlainObject(parameters)
32
32
  ? $.extend(true, {}, $.site.settings, parameters)
33
33
  : $.extend({}, $.site.settings),
34
34
 
@@ -102,7 +102,7 @@
102
102
  },
103
103
 
104
104
  moduleExists: function (name) {
105
- return ($.fn[name] !== undefined && $.fn[name].settings !== undefined);
105
+ return $.fn[name] !== undefined && $.fn[name].settings !== undefined;
106
106
  },
107
107
 
108
108
  enabled: {
@@ -139,17 +139,17 @@
139
139
 
140
140
  change: {
141
141
  setting: function (setting, value, modules, modifyExisting) {
142
- modules = (typeof modules === 'string')
143
- ? (modules === 'all')
142
+ modules = typeof modules === 'string'
143
+ ? (modules === 'all'
144
144
  ? settings.modules
145
- : [modules]
145
+ : [modules])
146
146
  : modules || settings.modules;
147
- modifyExisting = (modifyExisting !== undefined)
147
+ modifyExisting = modifyExisting !== undefined
148
148
  ? modifyExisting
149
149
  : true;
150
150
  $.each(modules, function (index, name) {
151
151
  var
152
- namespace = (module.moduleExists(name))
152
+ namespace = module.moduleExists(name)
153
153
  ? $.fn[name].settings.namespace || false
154
154
  : true,
155
155
  $existingModules
@@ -168,10 +168,10 @@
168
168
  });
169
169
  },
170
170
  settings: function (newSettings, modules, modifyExisting) {
171
- modules = (typeof modules === 'string')
171
+ modules = typeof modules === 'string'
172
172
  ? [modules]
173
173
  : modules || settings.modules;
174
- modifyExisting = (modifyExisting !== undefined)
174
+ modifyExisting = modifyExisting !== undefined
175
175
  ? modifyExisting
176
176
  : true;
177
177
  $.each(modules, function (index, name) {
@@ -361,7 +361,7 @@
361
361
  query = query.split(/[ .]/);
362
362
  maxDepth = query.length - 1;
363
363
  $.each(query, function (depth, value) {
364
- var camelCaseValue = (depth != maxDepth)
364
+ var camelCaseValue = depth != maxDepth
365
365
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
366
366
  : query
367
367
  ;
@@ -413,7 +413,7 @@
413
413
  module.initialize();
414
414
  }
415
415
 
416
- return (returnedValue !== undefined)
416
+ return returnedValue !== undefined
417
417
  ? returnedValue
418
418
  : this;
419
419
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Site
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Slider
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -31,7 +31,7 @@
31
31
  performance = [],
32
32
 
33
33
  query = arguments[0],
34
- methodInvoked = (typeof query === 'string'),
34
+ methodInvoked = typeof query === 'string',
35
35
  queryArguments = [].slice.call(arguments, 1),
36
36
 
37
37
  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'],
@@ -51,7 +51,7 @@
51
51
 
52
52
  $allModules.each(function () {
53
53
  var
54
- settings = ($.isPlainObject(parameters))
54
+ settings = $.isPlainObject(parameters)
55
55
  ? $.extend(true, {}, $.fn.slider.settings, parameters)
56
56
  : $.extend({}, $.fn.slider.settings),
57
57
 
@@ -186,7 +186,9 @@
186
186
  attrValue = $child.attr('data-value')
187
187
  ;
188
188
  if (attrValue) {
189
- attrValue = attrValue > max ? max : attrValue < min ? min : attrValue;
189
+ attrValue = attrValue > max
190
+ ? max
191
+ : (attrValue < min ? min : attrValue);
190
192
  ratio = (attrValue - min) / (max - min);
191
193
  } else {
192
194
  ratio = (index + 1) / (numChildren + 1);
@@ -204,10 +206,10 @@
204
206
  for (var i = 0, len = module.get.numLabels(); i <= len; i++) {
205
207
  var
206
208
  labelText = module.get.label(i),
207
- $label = (labelText !== '')
208
- ? !(i % module.get.gapRatio())
209
+ $label = labelText !== ''
210
+ ? (!(i % module.get.gapRatio())
209
211
  ? $('<li class="label">' + labelText + '</li>')
210
- : $('<li class="halftick label"></li>')
212
+ : $('<li class="halftick label"></li>'))
211
213
  : null,
212
214
  ratio = i / len
213
215
  ;
@@ -617,7 +619,7 @@
617
619
  case settings.labelTypes.number:
618
620
  return Math.round(((value * (module.get.step() === 0 ? 1 : module.get.step())) + module.get.min()) * precision) / precision;
619
621
  case settings.labelTypes.letter:
620
- return alphabet[(value) % 26];
622
+ return alphabet[value % 26];
621
623
  default:
622
624
  return value;
623
625
  }
@@ -720,8 +722,8 @@
720
722
  thumbPos: function ($element) {
721
723
  var
722
724
  pos = module.is.vertical()
723
- ? module.is.reversed() ? $element.css('bottom') : $element.css('top')
724
- : module.is.reversed() ? $element.css('right') : $element.css('left')
725
+ ? (module.is.reversed() ? $element.css('bottom') : $element.css('top'))
726
+ : (module.is.reversed() ? $element.css('right') : $element.css('left'))
725
727
  ;
726
728
 
727
729
  return pos;
@@ -730,7 +732,9 @@
730
732
  var
731
733
  min = module.get.min(),
732
734
  max = module.get.max(),
733
- value = val > max ? max : val < min ? min : val,
735
+ value = val > max
736
+ ? max
737
+ : (val < min ? min : val),
734
738
  trackLength = module.get.trackLength(),
735
739
  ratio = (value - min) / (max - min),
736
740
  position = Math.round(ratio * trackLength)
@@ -744,7 +748,7 @@
744
748
  trackLength = module.get.trackLength(),
745
749
  step = module.get.step(),
746
750
  position = Math.round(ratio * trackLength),
747
- adjustedPos = (step == 0) ? position : Math.round(position / step) * step
751
+ adjustedPos = step == 0 ? position : Math.round(position / step) * step
748
752
  ;
749
753
 
750
754
  return adjustedPos;
@@ -775,7 +779,9 @@
775
779
  ratio,
776
780
  value
777
781
  ;
778
- newPos = newPos < 0 ? 0 : newPos > trackLength ? trackLength : newPos;
782
+ newPos = newPos < 0
783
+ ? 0
784
+ : (newPos > trackLength ? trackLength : newPos);
779
785
  ratio = newPos / trackLength;
780
786
  if (module.is.reversed()) {
781
787
  ratio = 1 - ratio;
@@ -817,8 +823,8 @@
817
823
  ratio = (position - startPos) / (endPos - startPos),
818
824
  range = module.get.max() - module.get.min(),
819
825
  step = module.get.step(),
820
- value = (ratio * range),
821
- difference = (step == 0) ? value : Math.round(value / step) * step
826
+ value = ratio * range,
827
+ difference = step == 0 ? value : Math.round(value / step) * step
822
828
  ;
823
829
  module.verbose('Determined value based upon position: ' + position + ' as: ' + value);
824
830
  if (value != difference) {
@@ -834,16 +840,16 @@
834
840
  var
835
841
  key = event.which,
836
842
  downArrow = module.is.vertical()
837
- ? module.is.reversed() ? keys.downArrow : keys.upArrow
843
+ ? (module.is.reversed() ? keys.downArrow : keys.upArrow)
838
844
  : keys.downArrow,
839
845
  upArrow = module.is.vertical()
840
- ? module.is.reversed() ? keys.upArrow : keys.downArrow
846
+ ? (module.is.reversed() ? keys.upArrow : keys.downArrow)
841
847
  : keys.upArrow,
842
848
  leftArrow = !module.is.vertical()
843
- ? module.is.reversed() ? keys.rightArrow : keys.leftArrow
849
+ ? (module.is.reversed() ? keys.rightArrow : keys.leftArrow)
844
850
  : keys.leftArrow,
845
851
  rightArrow = !module.is.vertical()
846
- ? module.is.reversed() ? keys.leftArrow : keys.rightArrow
852
+ ? (module.is.reversed() ? keys.leftArrow : keys.rightArrow)
847
853
  : keys.rightArrow
848
854
  ;
849
855
  if (key == downArrow || key == leftArrow) {
@@ -1038,9 +1044,11 @@
1038
1044
  startMargin = module.get.trackStartMargin(),
1039
1045
  endMargin = module.get.trackEndMargin(),
1040
1046
  posDir = module.is.vertical()
1041
- ? module.is.reversed() ? 'bottom' : 'top'
1042
- : module.is.reversed() ? 'right' : 'left',
1043
- startMarginMod = module.is.reversed() && !module.is.vertical() ? ' - ' : ' + '
1047
+ ? (module.is.reversed() ? 'bottom' : 'top')
1048
+ : (module.is.reversed() ? 'right' : 'left'),
1049
+ startMarginMod = module.is.reversed() && !module.is.vertical()
1050
+ ? ' - '
1051
+ : ' + '
1044
1052
  ;
1045
1053
  var position = '(100% - ' + startMargin + ' - ' + endMargin + ') * ' + ratio;
1046
1054
  $label.css(posDir, 'calc(' + position + startMarginMod + startMargin + ')');
@@ -1201,7 +1209,7 @@
1201
1209
  query = query.split(/[ .]/);
1202
1210
  maxDepth = query.length - 1;
1203
1211
  $.each(query, function (depth, value) {
1204
- var camelCaseValue = (depth != maxDepth)
1212
+ var camelCaseValue = depth != maxDepth
1205
1213
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1206
1214
  : query
1207
1215
  ;
@@ -1254,7 +1262,7 @@
1254
1262
  }
1255
1263
  });
1256
1264
 
1257
- return (returnedValue !== undefined)
1265
+ return returnedValue !== undefined
1258
1266
  ? returnedValue
1259
1267
  : this;
1260
1268
  };
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *