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 - List
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - List
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 - List
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - List
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 - Loader
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Loader
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 - Loader
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Loader
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 - Message
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Message
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 - Message
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Message
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 - Modal
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Modal
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 - Modal
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Modal
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
 
@@ -32,7 +32,7 @@
32
32
  performance = [],
33
33
 
34
34
  query = arguments[0],
35
- methodInvoked = (typeof query === 'string'),
35
+ methodInvoked = typeof query === 'string',
36
36
  queryArguments = [].slice.call(arguments, 1),
37
37
 
38
38
  requestAnimationFrame = window.requestAnimationFrame
@@ -48,7 +48,7 @@
48
48
 
49
49
  $allModules.each(function () {
50
50
  var
51
- settings = ($.isPlainObject(parameters))
51
+ settings = $.isPlainObject(parameters)
52
52
  ? $.extend(true, {}, $.fn.modal.settings, parameters)
53
53
  : $.extend({}, $.fn.modal.settings),
54
54
 
@@ -121,10 +121,14 @@
121
121
  }
122
122
  settings.actions.forEach(function (el) {
123
123
  var
124
- icon = el[fields.icon] ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
124
+ icon = el[fields.icon]
125
+ ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
126
+ : '',
125
127
  text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
126
128
  cls = module.helpers.deQuote(el[fields.class] || ''),
127
- click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {}
129
+ click = el[fields.click] && isFunction(el[fields.click])
130
+ ? el[fields.click]
131
+ : function () {}
128
132
  ;
129
133
  $actions.append($('<button/>', {
130
134
  html: icon + text,
@@ -422,7 +426,7 @@
422
426
  $target = $(event.target),
423
427
  isRtl = module.is.rtl()
424
428
  ;
425
- initialMouseDownInModal = ($target.closest(selector.modal).length > 0);
429
+ initialMouseDownInModal = $target.closest(selector.modal).length > 0;
426
430
  if (initialMouseDownInModal) {
427
431
  module.verbose('Mouse down event registered inside the modal');
428
432
  }
@@ -449,7 +453,7 @@
449
453
  }
450
454
  var
451
455
  $target = $(event.target),
452
- isInModal = ($target.closest(selector.modal).length > 0),
456
+ isInModal = $target.closest(selector.modal).length > 0,
453
457
  isInDOM = $.contains(document.documentElement, event.target)
454
458
  ;
455
459
  if (!isInModal && isInDOM && module.is.active() && $module.hasClass(className.front)) {
@@ -672,7 +676,7 @@
672
676
  },
673
677
 
674
678
  hideDimmer: function () {
675
- if ($dimmable.dimmer('is animating') || ($dimmable.dimmer('is active'))) {
679
+ if ($dimmable.dimmer('is animating') || $dimmable.dimmer('is active')) {
676
680
  module.unbind.scrollLock();
677
681
  $dimmable.dimmer('hide', function () {
678
682
  if (hadScrollbar) {
@@ -727,10 +731,10 @@
727
731
 
728
732
  others: {
729
733
  active: function () {
730
- return ($otherModals.filter('.' + className.active).length > 0);
734
+ return $otherModals.filter('.' + className.active).length > 0;
731
735
  },
732
736
  animating: function () {
733
- return ($otherModals.filter('.' + className.animating).length > 0);
737
+ return $otherModals.filter('.' + className.animating).length > 0;
734
738
  },
735
739
  },
736
740
 
@@ -914,12 +918,12 @@
914
918
  scrollHeight = module.cache.scrollHeight,
915
919
  height = module.cache.height,
916
920
  paddingHeight = settings.padding,
917
- startPosition = (verticalCenter + topOffset)
921
+ startPosition = verticalCenter + topOffset
918
922
  ;
919
923
 
920
- return (scrollHeight > height)
921
- ? (startPosition + scrollHeight + paddingHeight < contextHeight)
922
- : (height + (paddingHeight * 2) < contextHeight);
924
+ return scrollHeight > height
925
+ ? startPosition + scrollHeight + paddingHeight < contextHeight
926
+ : height + (paddingHeight * 2) < contextHeight;
923
927
  },
924
928
  },
925
929
  has: {
@@ -937,10 +941,10 @@
937
941
  ie: function () {
938
942
  if (module.cache.isIE === undefined) {
939
943
  var
940
- isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
941
- isIE = ('ActiveXObject' in window)
944
+ isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
945
+ isIE = 'ActiveXObject' in window
942
946
  ;
943
- module.cache.isIE = (isIE11 || isIE);
947
+ module.cache.isIE = isIE11 || isIE;
944
948
  }
945
949
 
946
950
  return module.cache.isIE;
@@ -994,7 +998,7 @@
994
998
  autofocus: function () {
995
999
  var
996
1000
  $autofocus = $inputs.filter('[autofocus]'),
997
- $input = ($autofocus.length > 0)
1001
+ $input = $autofocus.length > 0
998
1002
  ? $autofocus.first()
999
1003
  : ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
1000
1004
  ;
@@ -1048,7 +1052,7 @@
1048
1052
  dimmerSettings = $.extend(true, defaultSettings, settings.dimmerSettings)
1049
1053
  ;
1050
1054
  if (settings.inverted) {
1051
- dimmerSettings.variation = (dimmerSettings.variation !== undefined)
1055
+ dimmerSettings.variation = dimmerSettings.variation !== undefined
1052
1056
  ? dimmerSettings.variation + ' inverted'
1053
1057
  : 'inverted';
1054
1058
  }
@@ -1071,18 +1075,18 @@
1071
1075
  var canFit = module.can.fit();
1072
1076
  $module
1073
1077
  .css({
1074
- top: (!$module.hasClass('aligned') && canFit)
1078
+ top: !$module.hasClass('aligned') && canFit
1075
1079
  ? $document.scrollTop() + (module.cache.contextHeight - module.cache.height) / 2
1076
- : !canFit || $module.hasClass('top')
1080
+ : (!canFit || $module.hasClass('top')
1077
1081
  ? $document.scrollTop() + settings.padding
1078
- : $document.scrollTop() + (module.cache.contextHeight - module.cache.height - settings.padding),
1082
+ : $document.scrollTop() + (module.cache.contextHeight - module.cache.height - settings.padding)),
1079
1083
  marginLeft: -(module.cache.width / 2),
1080
1084
  })
1081
1085
  ;
1082
1086
  } else {
1083
1087
  $module
1084
1088
  .css({
1085
- marginTop: (!$module.hasClass('aligned') && module.can.fit())
1089
+ marginTop: !$module.hasClass('aligned') && module.can.fit()
1086
1090
  ? -(module.cache.height / 2)
1087
1091
  : settings.padding / 2,
1088
1092
  marginLeft: -(module.cache.width / 2),
@@ -1244,7 +1248,7 @@
1244
1248
  query = query.split(/[ .]/);
1245
1249
  maxDepth = query.length - 1;
1246
1250
  $.each(query, function (depth, value) {
1247
- var camelCaseValue = (depth != maxDepth)
1251
+ var camelCaseValue = depth != maxDepth
1248
1252
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1249
1253
  : query;
1250
1254
  if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
@@ -1308,7 +1312,7 @@
1308
1312
  }
1309
1313
  });
1310
1314
 
1311
- return (returnedValue !== undefined)
1315
+ return returnedValue !== undefined
1312
1316
  ? returnedValue
1313
1317
  : this;
1314
1318
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Modal
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Modal
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 - Nag
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Nag
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 - Nag
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Nag
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
 
@@ -28,13 +28,13 @@
28
28
  performance = [],
29
29
 
30
30
  query = arguments[0],
31
- methodInvoked = (typeof query === 'string'),
31
+ methodInvoked = typeof query === 'string',
32
32
  queryArguments = [].slice.call(arguments, 1),
33
33
  returnedValue
34
34
  ;
35
35
  $allModules.each(function () {
36
36
  var
37
- settings = ($.isPlainObject(parameters))
37
+ settings = $.isPlainObject(parameters)
38
38
  ? $.extend(true, {}, $.fn.nag.settings, parameters)
39
39
  : $.extend({}, $.fn.nag.settings),
40
40
 
@@ -47,7 +47,7 @@
47
47
 
48
48
  $module = $(this),
49
49
 
50
- $context = (settings.context)
50
+ $context = settings.context
51
51
  ? ([window, document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
52
52
  : $('body'),
53
53
 
@@ -409,7 +409,7 @@
409
409
  query = query.split(/[ .]/);
410
410
  maxDepth = query.length - 1;
411
411
  $.each(query, function (depth, value) {
412
- var camelCaseValue = (depth != maxDepth)
412
+ var camelCaseValue = depth != maxDepth
413
413
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
414
414
  : query
415
415
  ;
@@ -462,7 +462,7 @@
462
462
  }
463
463
  });
464
464
 
465
- return (returnedValue !== undefined)
465
+ return returnedValue !== undefined
466
466
  ? returnedValue
467
467
  : this;
468
468
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Nag
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Nag
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 - Loader
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Loader
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 - Loader
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Loader
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 - Popup
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Popup
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 - Popup
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Popup
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
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  moduleSelector = $allModules.selector || '',
30
30
 
31
- clickEvent = ('ontouchstart' in document.documentElement)
31
+ clickEvent = 'ontouchstart' in document.documentElement
32
32
  ? 'touchstart'
33
33
  : 'click',
34
34
 
@@ -36,14 +36,14 @@
36
36
  performance = [],
37
37
 
38
38
  query = arguments[0],
39
- methodInvoked = (typeof query === 'string'),
39
+ methodInvoked = typeof query === 'string',
40
40
  queryArguments = [].slice.call(arguments, 1),
41
41
 
42
42
  returnedValue
43
43
  ;
44
44
  $allModules.each(function () {
45
45
  var
46
- settings = ($.isPlainObject(parameters))
46
+ settings = $.isPlainObject(parameters)
47
47
  ? $.extend(true, {}, $.fn.popup.settings, parameters)
48
48
  : $.extend({}, $.fn.popup.settings),
49
49
 
@@ -60,7 +60,7 @@
60
60
  $context = [window, document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context),
61
61
  $scrollContext = [window, document].indexOf(settings.scrollContext) < 0 ? $document.find(settings.scrollContext) : $(settings.scrollContext),
62
62
  $boundary = [window, document].indexOf(settings.boundary) < 0 ? $document.find(settings.boundary) : $(settings.boundary),
63
- $target = (settings.target)
63
+ $target = settings.target
64
64
  ? ([window, document].indexOf(settings.target) < 0 ? $document.find(settings.target) : $(settings.target))
65
65
  : $module,
66
66
 
@@ -136,11 +136,11 @@
136
136
  ;
137
137
  }
138
138
  } else {
139
- $offsetParent = (settings.inline)
139
+ $offsetParent = settings.inline
140
140
  ? module.get.offsetParent($target)
141
- : module.has.popup()
141
+ : (module.has.popup()
142
142
  ? module.get.offsetParent($popup)
143
- : $body;
143
+ : $body);
144
144
  }
145
145
  if ($offsetParent.is('html') && $offsetParent[0] !== $body[0]) {
146
146
  module.debug('Setting page as offset parent');
@@ -179,7 +179,7 @@
179
179
  event: {
180
180
  start: function (event) {
181
181
  var
182
- delay = ($.isPlainObject(settings.delay))
182
+ delay = $.isPlainObject(settings.delay)
183
183
  ? settings.delay.show
184
184
  : settings.delay
185
185
  ;
@@ -190,7 +190,7 @@
190
190
  },
191
191
  end: function () {
192
192
  var
193
- delay = ($.isPlainObject(settings.delay))
193
+ delay = $.isPlainObject(settings.delay)
194
194
  ? settings.delay.hide
195
195
  : settings.delay
196
196
  ;
@@ -224,7 +224,7 @@
224
224
  var
225
225
  $target = $(event.target),
226
226
  isInDOM = $.contains(document.documentElement, event.target),
227
- inPopup = ($target.closest(selector.popup).length > 0)
227
+ inPopup = $target.closest(selector.popup).length > 0
228
228
  ;
229
229
  // don't close on clicks inside popup
230
230
  if (event && !inPopup && isInDOM) {
@@ -370,10 +370,10 @@
370
370
  return false;
371
371
  }
372
372
  if (settings.inline || settings.popup) {
373
- return (module.has.popup());
373
+ return module.has.popup();
374
374
  }
375
375
 
376
- return ($popup.closest($context).length > 0);
376
+ return $popup.closest($context).length > 0;
377
377
  },
378
378
 
379
379
  removePopup: function () {
@@ -408,7 +408,7 @@
408
408
  },
409
409
  supports: {
410
410
  svg: function () {
411
- return (typeof SVGGraphicsElement !== 'undefined');
411
+ return typeof SVGGraphicsElement !== 'undefined';
412
412
  },
413
413
  },
414
414
  animate: {
@@ -497,16 +497,16 @@
497
497
  var
498
498
  $popupOffsetParent = module.get.offsetParent($popup),
499
499
  targetElement = $target[0],
500
- isWindowEl = ($boundary[0] == window),
500
+ isWindowEl = $boundary[0] == window,
501
501
  targetOffset = $target.offset(),
502
502
  parentOffset = settings.inline || (settings.popup && settings.movePopup)
503
503
  ? $target.offsetParent().offset()
504
504
  : { top: 0, left: 0 },
505
- screenPosition = (isWindowEl)
505
+ screenPosition = isWindowEl
506
506
  ? { top: 0, left: 0 }
507
507
  : $boundary.offset(),
508
508
  calculations = {},
509
- scroll = (isWindowEl)
509
+ scroll = isWindowEl
510
510
  ? { top: $window.scrollTop(), left: $window.scrollLeft() }
511
511
  : { top: 0, left: 0 },
512
512
  screen
@@ -564,13 +564,13 @@
564
564
  }
565
565
 
566
566
  // add in margins if inline
567
- calculations.target.margin.top = (settings.inline)
567
+ calculations.target.margin.top = settings.inline
568
568
  ? parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10)
569
569
  : 0;
570
- calculations.target.margin.left = (settings.inline)
571
- ? module.is.rtl()
570
+ calculations.target.margin.left = settings.inline
571
+ ? (module.is.rtl()
572
572
  ? parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-right'), 10)
573
- : parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10)
573
+ : parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10))
574
574
  : 0;
575
575
  // calculate screen boundaries
576
576
  screen = calculations.screen;
@@ -623,10 +623,10 @@
623
623
 
624
624
  if (offset) {
625
625
  distanceFromBoundary = {
626
- top: (offset.top - boundary.top),
627
- left: (offset.left - boundary.left),
628
- right: (boundary.right - (offset.left + popup.width)),
629
- bottom: (boundary.bottom - (offset.top + popup.height)),
626
+ top: offset.top - boundary.top,
627
+ left: offset.left - boundary.left,
628
+ right: boundary.right - (offset.left + popup.width),
629
+ bottom: boundary.bottom - (offset.top + popup.height),
630
630
  };
631
631
  module.verbose('Distance from boundaries determined', offset, distanceFromBoundary);
632
632
  }
@@ -635,7 +635,7 @@
635
635
  },
636
636
  offsetParent: function ($element) {
637
637
  var
638
- element = ($element !== undefined)
638
+ element = $element !== undefined
639
639
  ? $element[0]
640
640
  : $target[0],
641
641
  parentNode = element.parentNode,
@@ -643,20 +643,20 @@
643
643
  ;
644
644
  if (parentNode) {
645
645
  var
646
- is2D = ($node.css('transform') === 'none'),
647
- isStatic = ($node.css('position') === 'static'),
646
+ is2D = $node.css('transform') === 'none',
647
+ isStatic = $node.css('position') === 'static',
648
648
  isBody = $node.is('body')
649
649
  ;
650
650
  while (parentNode && !isBody && isStatic && is2D) {
651
651
  parentNode = parentNode.parentNode;
652
652
  $node = $(parentNode);
653
- is2D = ($node.css('transform') === 'none');
654
- isStatic = ($node.css('position') === 'static');
653
+ is2D = $node.css('transform') === 'none';
654
+ isStatic = $node.css('position') === 'static';
655
655
  isBody = $node.is('body');
656
656
  }
657
657
  }
658
658
 
659
- return ($node && $node.length > 0)
659
+ return $node && $node.length > 0
660
660
  ? $node
661
661
  : $();
662
662
  },
@@ -698,7 +698,7 @@
698
698
  'bottom left': 'left center',
699
699
  'left center': 'top left',
700
700
  },
701
- adjacentsAvailable = (verticalPosition == 'top' || verticalPosition == 'bottom'),
701
+ adjacentsAvailable = verticalPosition == 'top' || verticalPosition == 'bottom',
702
702
  oppositeTried = false,
703
703
  adjacentTried = false,
704
704
  nextPosition = false
@@ -714,13 +714,13 @@
714
714
  if (settings.prefer === 'opposite') {
715
715
  nextPosition = [opposite[verticalPosition], horizontalPosition];
716
716
  nextPosition = nextPosition.join(' ');
717
- oppositeTried = (triedPositions[nextPosition] === true);
717
+ oppositeTried = triedPositions[nextPosition] === true;
718
718
  module.debug('Trying opposite strategy', nextPosition);
719
719
  }
720
720
  if ((settings.prefer === 'adjacent') && adjacentsAvailable) {
721
721
  nextPosition = [verticalPosition, adjacent[horizontalPosition]];
722
722
  nextPosition = nextPosition.join(' ');
723
- adjacentTried = (triedPositions[nextPosition] === true);
723
+ adjacentTried = triedPositions[nextPosition] === true;
724
724
  module.debug('Trying adjacent strategy', nextPosition);
725
725
  }
726
726
  if (adjacentTried || oppositeTried) {
@@ -765,11 +765,11 @@
765
765
  if (module.should.centerArrow(calculations)) {
766
766
  module.verbose('Adjusting offset to center arrow on small target element');
767
767
  if (position == 'top left' || position == 'bottom left') {
768
- offset += (target.width / 2);
768
+ offset += target.width / 2;
769
769
  offset -= settings.arrowPixelsFromEdge;
770
770
  }
771
771
  if (position == 'top right' || position == 'bottom right') {
772
- offset -= (target.width / 2);
772
+ offset -= target.width / 2;
773
773
  offset += settings.arrowPixelsFromEdge;
774
774
  }
775
775
  }
@@ -798,7 +798,7 @@
798
798
 
799
799
  if (module.is.rtl()) {
800
800
  position = position.replace(/left|right/g, function (match) {
801
- return (match == 'left')
801
+ return match == 'left'
802
802
  ? 'right'
803
803
  : 'left';
804
804
  });
@@ -910,7 +910,7 @@
910
910
  position = module.get.nextPosition(position);
911
911
  module.debug('Trying new position', position);
912
912
 
913
- return ($popup)
913
+ return $popup
914
914
  ? module.set.position(position, calculations)
915
915
  : false;
916
916
  }
@@ -1067,7 +1067,7 @@
1067
1067
 
1068
1068
  has: {
1069
1069
  popup: function () {
1070
- return ($popup && $popup.length > 0);
1070
+ return $popup && $popup.length > 0;
1071
1071
  },
1072
1072
  },
1073
1073
 
@@ -1109,13 +1109,13 @@
1109
1109
  return $module.hasClass(className.active);
1110
1110
  },
1111
1111
  animating: function () {
1112
- return ($popup !== undefined && $popup.hasClass(className.animating));
1112
+ return $popup !== undefined && $popup.hasClass(className.animating);
1113
1113
  },
1114
1114
  fluid: function () {
1115
- return ($popup !== undefined && $popup.hasClass(className.fluid));
1115
+ return $popup !== undefined && $popup.hasClass(className.fluid);
1116
1116
  },
1117
1117
  visible: function () {
1118
- return ($popup !== undefined && $popup.hasClass(className.popupVisible));
1118
+ return $popup !== undefined && $popup.hasClass(className.popupVisible);
1119
1119
  },
1120
1120
  dropdown: function () {
1121
1121
  return $module.hasClass(className.dropdown);
@@ -1248,7 +1248,7 @@
1248
1248
  query = query.split(/[ .]/);
1249
1249
  maxDepth = query.length - 1;
1250
1250
  $.each(query, function (depth, value) {
1251
- var camelCaseValue = (depth != maxDepth)
1251
+ var camelCaseValue = depth != maxDepth
1252
1252
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1253
1253
  : query
1254
1254
  ;
@@ -1299,7 +1299,7 @@
1299
1299
  }
1300
1300
  });
1301
1301
 
1302
- return (returnedValue !== undefined)
1302
+ return returnedValue !== undefined
1303
1303
  ? returnedValue
1304
1304
  : this;
1305
1305
  };