fomantic-ui 2.9.1-beta.22 → 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 (256) 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 +13 -70
  5. package/.stylelintrc.js +5 -7
  6. package/dist/components/accordion.css +1 -1
  7. package/dist/components/accordion.js +26 -26
  8. package/dist/components/accordion.min.css +1 -1
  9. package/dist/components/accordion.min.js +2 -2
  10. package/dist/components/ad.css +1 -1
  11. package/dist/components/ad.min.css +1 -1
  12. package/dist/components/api.js +95 -94
  13. package/dist/components/api.min.js +2 -2
  14. package/dist/components/breadcrumb.css +1 -1
  15. package/dist/components/breadcrumb.min.css +1 -1
  16. package/dist/components/button.css +1 -1
  17. package/dist/components/button.min.css +1 -1
  18. package/dist/components/calendar.css +3 -3
  19. package/dist/components/calendar.js +181 -151
  20. package/dist/components/calendar.min.css +2 -2
  21. package/dist/components/calendar.min.js +2 -2
  22. package/dist/components/card.css +1 -1
  23. package/dist/components/card.min.css +1 -1
  24. package/dist/components/checkbox.css +1 -1
  25. package/dist/components/checkbox.js +14 -14
  26. package/dist/components/checkbox.min.css +1 -1
  27. package/dist/components/checkbox.min.js +2 -2
  28. package/dist/components/comment.css +1 -1
  29. package/dist/components/comment.min.css +1 -1
  30. package/dist/components/container.css +1 -1
  31. package/dist/components/container.min.css +1 -1
  32. package/dist/components/dimmer.css +1 -1
  33. package/dist/components/dimmer.js +23 -25
  34. package/dist/components/dimmer.min.css +1 -1
  35. package/dist/components/dimmer.min.js +2 -2
  36. package/dist/components/divider.css +1 -1
  37. package/dist/components/divider.min.css +1 -1
  38. package/dist/components/dropdown.css +1 -1
  39. package/dist/components/dropdown.js +252 -254
  40. package/dist/components/dropdown.min.css +1 -1
  41. package/dist/components/dropdown.min.js +2 -2
  42. package/dist/components/embed.css +1 -1
  43. package/dist/components/embed.js +27 -33
  44. package/dist/components/embed.min.css +1 -1
  45. package/dist/components/embed.min.js +2 -2
  46. package/dist/components/feed.css +1 -1
  47. package/dist/components/feed.min.css +1 -1
  48. package/dist/components/flag.css +1 -1
  49. package/dist/components/flag.min.css +1 -1
  50. package/dist/components/flyout.css +2 -2
  51. package/dist/components/flyout.js +50 -44
  52. package/dist/components/flyout.min.css +1 -1
  53. package/dist/components/flyout.min.js +2 -2
  54. package/dist/components/form.css +2 -2
  55. package/dist/components/form.js +187 -163
  56. package/dist/components/form.min.css +2 -2
  57. package/dist/components/form.min.js +2 -2
  58. package/dist/components/grid.css +1 -1
  59. package/dist/components/grid.min.css +1 -1
  60. package/dist/components/header.css +1 -1
  61. package/dist/components/header.min.css +1 -1
  62. package/dist/components/icon.css +1 -1
  63. package/dist/components/icon.min.css +1 -1
  64. package/dist/components/image.css +1 -1
  65. package/dist/components/image.min.css +1 -1
  66. package/dist/components/input.css +1 -1
  67. package/dist/components/input.min.css +1 -1
  68. package/dist/components/item.css +1 -1
  69. package/dist/components/item.min.css +1 -1
  70. package/dist/components/label.css +1 -1
  71. package/dist/components/label.min.css +1 -1
  72. package/dist/components/list.css +1 -1
  73. package/dist/components/list.min.css +1 -1
  74. package/dist/components/loader.css +1 -1
  75. package/dist/components/loader.min.css +1 -1
  76. package/dist/components/message.css +1 -1
  77. package/dist/components/message.min.css +1 -1
  78. package/dist/components/modal.css +1 -1
  79. package/dist/components/modal.js +49 -45
  80. package/dist/components/modal.min.css +1 -1
  81. package/dist/components/modal.min.js +2 -2
  82. package/dist/components/nag.css +1 -1
  83. package/dist/components/nag.js +22 -20
  84. package/dist/components/nag.min.css +1 -1
  85. package/dist/components/nag.min.js +2 -2
  86. package/dist/components/placeholder.css +1 -1
  87. package/dist/components/placeholder.min.css +1 -1
  88. package/dist/components/popup.css +1 -1
  89. package/dist/components/popup.js +71 -71
  90. package/dist/components/popup.min.css +1 -1
  91. package/dist/components/popup.min.js +2 -2
  92. package/dist/components/progress.css +1 -1
  93. package/dist/components/progress.js +46 -46
  94. package/dist/components/progress.min.css +1 -1
  95. package/dist/components/progress.min.js +2 -2
  96. package/dist/components/rail.css +1 -1
  97. package/dist/components/rail.min.css +1 -1
  98. package/dist/components/rating.css +1 -1
  99. package/dist/components/rating.js +15 -15
  100. package/dist/components/rating.min.css +1 -1
  101. package/dist/components/rating.min.js +2 -2
  102. package/dist/components/reset.css +1 -1
  103. package/dist/components/reset.min.css +1 -1
  104. package/dist/components/reveal.css +1 -1
  105. package/dist/components/reveal.min.css +1 -1
  106. package/dist/components/search.css +1 -1
  107. package/dist/components/search.js +69 -74
  108. package/dist/components/search.min.css +1 -1
  109. package/dist/components/search.min.js +2 -2
  110. package/dist/components/segment.css +1 -1
  111. package/dist/components/segment.min.css +1 -1
  112. package/dist/components/shape.css +1 -1
  113. package/dist/components/shape.js +39 -39
  114. package/dist/components/shape.min.css +1 -1
  115. package/dist/components/shape.min.js +2 -2
  116. package/dist/components/sidebar.css +1 -1
  117. package/dist/components/sidebar.js +39 -37
  118. package/dist/components/sidebar.min.css +1 -1
  119. package/dist/components/sidebar.min.js +2 -2
  120. package/dist/components/site.css +1 -1
  121. package/dist/components/site.js +22 -21
  122. package/dist/components/site.min.css +1 -1
  123. package/dist/components/site.min.js +2 -2
  124. package/dist/components/slider.js +69 -64
  125. package/dist/components/slider.min.js +2 -2
  126. package/dist/components/state.js +15 -15
  127. package/dist/components/state.min.js +2 -2
  128. package/dist/components/statistic.css +1 -1
  129. package/dist/components/statistic.min.css +1 -1
  130. package/dist/components/step.css +1 -1
  131. package/dist/components/step.min.css +1 -1
  132. package/dist/components/sticky.css +1 -1
  133. package/dist/components/sticky.js +25 -25
  134. package/dist/components/sticky.min.css +1 -1
  135. package/dist/components/sticky.min.js +2 -2
  136. package/dist/components/tab.css +1 -1
  137. package/dist/components/tab.js +55 -57
  138. package/dist/components/tab.min.css +1 -1
  139. package/dist/components/tab.min.js +2 -2
  140. package/dist/components/table.css +1 -1
  141. package/dist/components/table.min.css +1 -1
  142. package/dist/components/text.css +1 -1
  143. package/dist/components/text.min.css +1 -1
  144. package/dist/components/toast.css +1 -1
  145. package/dist/components/toast.js +57 -30
  146. package/dist/components/toast.min.css +1 -1
  147. package/dist/components/toast.min.js +2 -2
  148. package/dist/components/transition.css +7 -7
  149. package/dist/components/transition.js +45 -39
  150. package/dist/components/transition.min.css +1 -1
  151. package/dist/components/transition.min.js +2 -2
  152. package/dist/components/visibility.js +25 -25
  153. package/dist/components/visibility.min.js +2 -2
  154. package/dist/semantic.css +60 -60
  155. package/dist/semantic.js +1518 -1427
  156. package/dist/semantic.min.css +2 -2
  157. package/dist/semantic.min.js +2 -2
  158. package/examples/responsive.html +1 -1
  159. package/gulpfile.js +1 -1
  160. package/package.json +2 -1
  161. package/scripts/nightly-version.js +6 -4
  162. package/src/definitions/behaviors/api.js +94 -93
  163. package/src/definitions/behaviors/form.js +186 -162
  164. package/src/definitions/behaviors/state.js +14 -14
  165. package/src/definitions/behaviors/visibility.js +24 -24
  166. package/src/definitions/collections/menu.less +2 -2
  167. package/src/definitions/elements/button.less +2 -2
  168. package/src/definitions/elements/loader.less +4 -4
  169. package/src/definitions/elements/step.less +1 -1
  170. package/src/definitions/globals/site.js +21 -20
  171. package/src/definitions/modules/accordion.js +25 -25
  172. package/src/definitions/modules/calendar.js +180 -150
  173. package/src/definitions/modules/calendar.less +2 -2
  174. package/src/definitions/modules/checkbox.js +13 -13
  175. package/src/definitions/modules/dimmer.js +22 -24
  176. package/src/definitions/modules/dimmer.less +10 -10
  177. package/src/definitions/modules/dropdown.js +251 -253
  178. package/src/definitions/modules/embed.js +26 -32
  179. package/src/definitions/modules/flyout.js +49 -43
  180. package/src/definitions/modules/flyout.less +1 -1
  181. package/src/definitions/modules/modal.js +48 -44
  182. package/src/definitions/modules/nag.js +21 -19
  183. package/src/definitions/modules/popup.js +70 -70
  184. package/src/definitions/modules/progress.js +45 -45
  185. package/src/definitions/modules/rating.js +14 -14
  186. package/src/definitions/modules/search.js +68 -73
  187. package/src/definitions/modules/shape.js +38 -38
  188. package/src/definitions/modules/sidebar.js +38 -36
  189. package/src/definitions/modules/slider.js +68 -63
  190. package/src/definitions/modules/sticky.js +24 -24
  191. package/src/definitions/modules/tab.js +54 -56
  192. package/src/definitions/modules/toast.js +56 -29
  193. package/src/definitions/modules/transition.js +44 -38
  194. package/src/themes/amazon/elements/button.overrides +7 -7
  195. package/src/themes/default/collections/form.variables +1 -1
  196. package/src/themes/default/elements/reveal.variables +1 -1
  197. package/src/themes/default/globals/site.variables +1 -1
  198. package/src/themes/default/modules/dimmer.variables +6 -6
  199. package/src/themes/default/modules/modal.variables +1 -1
  200. package/src/themes/default/modules/slider.variables +4 -4
  201. package/src/themes/default/modules/toast.variables +2 -2
  202. package/src/themes/default/modules/transition.overrides +12 -12
  203. package/src/themes/flat/collections/form.overrides +2 -2
  204. package/src/themes/flat/globals/site.variables +1 -1
  205. package/src/themes/github/collections/form.overrides +2 -2
  206. package/src/themes/github/collections/menu.variables +1 -1
  207. package/src/themes/github/collections/message.overrides +3 -3
  208. package/src/themes/github/elements/input.overrides +2 -2
  209. package/src/themes/timeline/views/feed.overrides +3 -3
  210. package/src/themes/twitter/elements/button.overrides +2 -2
  211. package/tasks/README.md +1 -3
  212. package/tasks/admin/components/create.js +9 -16
  213. package/tasks/admin/components/init.js +7 -7
  214. package/tasks/admin/components/update.js +10 -10
  215. package/tasks/admin/distributions/create.js +16 -18
  216. package/tasks/admin/distributions/init.js +7 -7
  217. package/tasks/admin/distributions/update.js +10 -10
  218. package/tasks/admin/publish.js +1 -3
  219. package/tasks/admin/register.js +6 -6
  220. package/tasks/admin/release.js +1 -3
  221. package/tasks/build/assets.js +2 -2
  222. package/tasks/build/css.js +8 -3
  223. package/tasks/build/javascript.js +3 -1
  224. package/tasks/build.js +1 -1
  225. package/tasks/check-install.js +1 -1
  226. package/tasks/clean.js +1 -1
  227. package/tasks/collections/README.md +3 -5
  228. package/tasks/collections/admin.js +1 -1
  229. package/tasks/collections/docs.js +1 -1
  230. package/tasks/collections/install.js +1 -1
  231. package/tasks/collections/rtl.js +1 -1
  232. package/tasks/collections/various.js +1 -1
  233. package/tasks/config/admin/github.js +6 -8
  234. package/tasks/config/admin/templates/css-package.js +1 -1
  235. package/tasks/config/admin/templates/less-package.js +1 -1
  236. package/tasks/config/npm/gulpfile.js +7 -7
  237. package/tasks/config/project/config.js +14 -19
  238. package/tasks/config/project/install.js +35 -34
  239. package/tasks/config/project/release.js +15 -16
  240. package/tasks/config/tasks.js +18 -20
  241. package/tasks/config/user.js +5 -3
  242. package/tasks/docs/build.js +5 -3
  243. package/tasks/docs/metadata.js +7 -8
  244. package/tasks/docs/serve.js +6 -3
  245. package/tasks/install.js +39 -39
  246. package/tasks/rtl/build.js +1 -3
  247. package/tasks/rtl/watch.js +1 -3
  248. package/tasks/version.js +1 -3
  249. package/tasks/watch.js +1 -1
  250. package/test/.eslintrc.js +0 -4
  251. package/test/meteor/assets.js +1 -1
  252. package/test/modules/module.spec.js +15 -15
  253. package/test/modules/popup.spec.js +1 -1
  254. package/test/modules/search.spec.js +1 -1
  255. package/test/modules/tab.spec.js +1 -1
  256. package/test/modules/transition.spec.js +1 -1
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (typeof window != 'undefined' && window.Math == Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -25,18 +25,18 @@
25
25
 
26
26
  moduleSelector = $allModules.selector || '',
27
27
 
28
- time = new Date().getTime(),
28
+ time = Date.now(),
29
29
  performance = [],
30
30
 
31
31
  query = arguments[0],
32
- methodInvoked = (typeof query == 'string'),
32
+ methodInvoked = typeof query === 'string',
33
33
  queryArguments = [].slice.call(arguments, 1),
34
34
 
35
35
  returnedValue
36
36
  ;
37
37
  $allModules.each(function () {
38
38
  var
39
- settings = ($.isPlainObject(parameters))
39
+ settings = $.isPlainObject(parameters)
40
40
  ? $.extend(true, {}, $.fn.state.settings, parameters)
41
41
  : $.extend({}, $.fn.state.settings),
42
42
 
@@ -130,7 +130,7 @@
130
130
  return $module.hasClass(className.loading);
131
131
  },
132
132
  inactive: function () {
133
- return !($module.hasClass(className.active));
133
+ return !$module.hasClass(className.active);
134
134
  },
135
135
  state: function (state) {
136
136
  if (className[state] === undefined) {
@@ -141,13 +141,13 @@
141
141
  },
142
142
 
143
143
  enabled: function () {
144
- return !($module.is(settings.filter.active));
144
+ return !$module.is(settings.filter.active);
145
145
  },
146
146
  disabled: function () {
147
- return ($module.is(settings.filter.active));
147
+ return $module.is(settings.filter.active);
148
148
  },
149
149
  textEnabled: function () {
150
- return !($module.is(settings.filter.text));
150
+ return !$module.is(settings.filter.text);
151
151
  },
152
152
 
153
153
  // definitions for automatic type detection
@@ -339,7 +339,7 @@
339
339
 
340
340
  get: {
341
341
  text: function () {
342
- return (settings.selector.text)
342
+ return settings.selector.text
343
343
  ? $module.find(settings.selector.text).text()
344
344
  : $module.html();
345
345
  },
@@ -464,7 +464,7 @@
464
464
  previousTime
465
465
  ;
466
466
  if (settings.performance) {
467
- currentTime = new Date().getTime();
467
+ currentTime = Date.now();
468
468
  previousTime = time || currentTime;
469
469
  executionTime = currentTime - previousTime;
470
470
  time = currentTime;
@@ -515,11 +515,11 @@
515
515
  ;
516
516
  passedArguments = passedArguments || queryArguments;
517
517
  context = context || element;
518
- if (typeof query == 'string' && object !== undefined) {
519
- query = query.split(/[\. ]/);
518
+ if (typeof query === 'string' && object !== undefined) {
519
+ query = query.split(/[ .]/);
520
520
  maxDepth = query.length - 1;
521
521
  $.each(query, function (depth, value) {
522
- var camelCaseValue = (depth != maxDepth)
522
+ var camelCaseValue = depth != maxDepth
523
523
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
524
524
  : query
525
525
  ;
@@ -572,7 +572,7 @@
572
572
  }
573
573
  });
574
574
 
575
- return (returnedValue !== undefined)
575
+ return returnedValue !== undefined
576
576
  ? returnedValue
577
577
  : this;
578
578
  };
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (typeof window != 'undefined' && window.Math == Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -24,11 +24,11 @@
24
24
  $allModules = $(this),
25
25
  moduleSelector = $allModules.selector || '',
26
26
 
27
- time = new Date().getTime(),
27
+ time = Date.now(),
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
 
@@ -38,7 +38,7 @@
38
38
 
39
39
  $allModules.each(function () {
40
40
  var
41
- settings = ($.isPlainObject(parameters))
41
+ settings = $.isPlainObject(parameters)
42
42
  ? $.extend(true, {}, $.fn.visibility.settings, parameters)
43
43
  : $.extend({}, $.fn.visibility.settings),
44
44
 
@@ -227,7 +227,7 @@
227
227
  },
228
228
 
229
229
  precache: function (images, callback) {
230
- if (!(images instanceof Array)) {
230
+ if (!Array.isArray(images)) {
231
231
  images = [images];
232
232
  }
233
233
  var
@@ -427,21 +427,21 @@
427
427
  },
428
428
  verticallyScrollableContext: function () {
429
429
  var
430
- overflowY = ($context[0] !== window)
430
+ overflowY = $context[0] !== window
431
431
  ? $context.css('overflow-y')
432
432
  : false
433
433
  ;
434
434
 
435
- return (overflowY == 'auto' || overflowY == 'scroll');
435
+ return overflowY == 'auto' || overflowY == 'scroll';
436
436
  },
437
437
  horizontallyScrollableContext: function () {
438
438
  var
439
- overflowX = ($context[0] !== window)
439
+ overflowX = $context[0] !== window
440
440
  ? $context.css('overflow-x')
441
441
  : false
442
442
  ;
443
443
 
444
- return (overflowX == 'auto' || overflowX == 'scroll');
444
+ return overflowX == 'auto' || overflowX == 'scroll';
445
445
  },
446
446
  },
447
447
 
@@ -515,7 +515,7 @@
515
515
  if (amount && newCallback) {
516
516
  settings.onPassed[amount] = newCallback;
517
517
  } else if (amount !== undefined) {
518
- return (module.get.pixelsPassed(amount) > calculations.pixelsPassed);
518
+ return module.get.pixelsPassed(amount) > calculations.pixelsPassed;
519
519
  } else if (calculations.passing) {
520
520
  $.each(settings.onPassed, function (amount, callback) {
521
521
  if (calculations.bottomVisible || calculations.pixelsPassed > module.get.pixelsPassed(amount)) {
@@ -873,7 +873,7 @@
873
873
  ;
874
874
  module.verbose('Saving element position');
875
875
  // (quicker than $.extend)
876
- element.fits = (element.height < screen.height);
876
+ element.fits = element.height < screen.height;
877
877
  element.offset = $module.offset();
878
878
  element.width = $module.outerWidth();
879
879
  element.height = $module.outerHeight();
@@ -907,21 +907,21 @@
907
907
  }
908
908
 
909
909
  // visibility
910
- element.topPassed = (screen.top >= element.top);
911
- element.bottomPassed = (screen.top >= element.bottom);
910
+ element.topPassed = screen.top >= element.top;
911
+ element.bottomPassed = screen.top >= element.bottom;
912
912
  element.topVisible = (screen.bottom >= element.top) && !element.topPassed;
913
913
  element.bottomVisible = (screen.bottom >= element.bottom) && !element.bottomPassed;
914
914
  element.pixelsPassed = 0;
915
915
  element.percentagePassed = 0;
916
916
 
917
917
  // meta calculations
918
- element.onScreen = ((element.topVisible || element.passing) && !element.bottomPassed);
919
- element.passing = (element.topPassed && !element.bottomPassed);
920
- element.offScreen = (!element.onScreen);
918
+ element.onScreen = (element.topVisible || element.passing) && !element.bottomPassed;
919
+ element.passing = element.topPassed && !element.bottomPassed;
920
+ element.offScreen = !element.onScreen;
921
921
 
922
922
  // passing calculations
923
923
  if (element.passing) {
924
- element.pixelsPassed = (screen.top - element.top);
924
+ element.pixelsPassed = screen.top - element.top;
925
925
  element.percentagePassed = (screen.top - element.top) / element.height;
926
926
  }
927
927
  module.cache.element = element;
@@ -957,13 +957,13 @@
957
957
  element = module.get.elementCalculations()
958
958
  ;
959
959
  if (amount.search('%') > -1) {
960
- return (element.height * (parseInt(amount, 10) / 100));
960
+ return element.height * (parseInt(amount, 10) / 100);
961
961
  }
962
962
 
963
963
  return parseInt(amount, 10);
964
964
  },
965
965
  occurred: function (callback) {
966
- return (module.cache.occurred !== undefined)
966
+ return module.cache.occurred !== undefined
967
967
  ? module.cache.occurred[callback] || false
968
968
  : false;
969
969
  },
@@ -1072,7 +1072,7 @@
1072
1072
  previousTime
1073
1073
  ;
1074
1074
  if (settings.performance) {
1075
- currentTime = new Date().getTime();
1075
+ currentTime = Date.now();
1076
1076
  previousTime = time || currentTime;
1077
1077
  executionTime = currentTime - previousTime;
1078
1078
  time = currentTime;
@@ -1123,11 +1123,11 @@
1123
1123
  ;
1124
1124
  passedArguments = passedArguments || queryArguments;
1125
1125
  context = context || element;
1126
- if (typeof query == 'string' && object !== undefined) {
1127
- query = query.split(/[\. ]/);
1126
+ if (typeof query === 'string' && object !== undefined) {
1127
+ query = query.split(/[ .]/);
1128
1128
  maxDepth = query.length - 1;
1129
1129
  $.each(query, function (depth, value) {
1130
- var camelCaseValue = (depth != maxDepth)
1130
+ var camelCaseValue = depth != maxDepth
1131
1131
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1132
1132
  : query
1133
1133
  ;
@@ -1182,7 +1182,7 @@
1182
1182
  }
1183
1183
  });
1184
1184
 
1185
- return (returnedValue !== undefined)
1185
+ return returnedValue !== undefined
1186
1186
  ? returnedValue
1187
1187
  : this;
1188
1188
  };
@@ -1665,13 +1665,13 @@ Floated Menu / Item
1665
1665
  width: 14.285%;
1666
1666
  }
1667
1667
  .ui.menu.eight.item .item {
1668
- width: 12.500%;
1668
+ width: 12.5%;
1669
1669
  }
1670
1670
  .ui.menu.nine.item .item {
1671
1671
  width: 11.11%;
1672
1672
  }
1673
1673
  .ui.menu.ten.item .item {
1674
- width: 10.0%;
1674
+ width: 10%;
1675
1675
  }
1676
1676
  .ui.menu.eleven.item .item {
1677
1677
  width: 9.09%;
@@ -1343,7 +1343,7 @@
1343
1343
  }
1344
1344
 
1345
1345
  .ui.eight.buttons > .button {
1346
- width: 12.500%;
1346
+ width: 12.5%;
1347
1347
  }
1348
1348
 
1349
1349
  .ui.nine.buttons {
@@ -1416,7 +1416,7 @@
1416
1416
  }
1417
1417
 
1418
1418
  .ui.eight.vertical.buttons > .button {
1419
- height: 12.500%;
1419
+ height: 12.5%;
1420
1420
  }
1421
1421
 
1422
1422
  .ui.nine.vertical.buttons > .button {
@@ -320,15 +320,15 @@
320
320
  .ui.elastic.loading.loading .input > i.icon::after,
321
321
  .ui.elastic.loading.loading > i.icon::after,
322
322
  .ui.elastic.loader.loader::after {
323
- animation: loader 1s infinite cubic-bezier(.27, 1.05, .92, .61);
323
+ animation: loader 1s infinite cubic-bezier(0.27, 1.05, 0.92, 0.61);
324
324
  animation-delay: 0.3s;
325
325
  }
326
326
  .ui.elastic.loading.loading.loading:not(.form):not(.segment):not(.segments):not(.card)::before,
327
327
  .ui.elastic.loading.loading.loading .input > i.icon::before,
328
328
  .ui.elastic.loading.loading.loading > i.icon::before,
329
329
  .ui.elastic.loader.loader::before {
330
- animation: elastic-loader 1s infinite cubic-bezier(.27, 1.05, .92, .61);
331
- -moz-animation: currentcolor-elastic-loader 1s infinite cubic-bezier(.27, 1.05, .92, .61);
330
+ animation: elastic-loader 1s infinite cubic-bezier(0.27, 1.05, 0.92, 0.61);
331
+ -moz-animation: currentcolor-elastic-loader 1s infinite cubic-bezier(0.27, 1.05, 0.92, 0.61);
332
332
  border-right-color: transparent;
333
333
  }
334
334
  & when (@variationLoaderInline) {
@@ -355,7 +355,7 @@
355
355
  .ui.fast.elastic.loading.loading > i.icon::after,
356
356
  .ui.fast.elastic.loader.loader::after {
357
357
  animation-duration: 0.66s;
358
- animation-delay: 0.20s;
358
+ animation-delay: 0.2s;
359
359
  }
360
360
  .ui.fast.elastic.loading.loading.loading:not(.form):not(.segment):not(.segments):not(.card)::before,
361
361
  .ui.fast.elastic.loading.loading.loading .input > i.icon::before,
@@ -532,7 +532,7 @@
532
532
  width: 14.285%;
533
533
  }
534
534
  .ui.eight.steps > .step {
535
- width: 12.500%;
535
+ width: 12.5%;
536
536
  }
537
537
  }
538
538
 
@@ -15,20 +15,20 @@
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
 
22
- $.site = $.fn.site = function (parameters) {
22
+ $.fn.site = function (parameters) {
23
23
  var
24
- time = new Date().getTime(),
24
+ time = Date.now(),
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
 
@@ -71,13 +71,13 @@
71
71
  module.verbose('Console not available, normalizing events');
72
72
  module.disable.console();
73
73
  }
74
- if (typeof console.group == 'undefined' || typeof console.groupEnd == 'undefined' || typeof console.groupCollapsed == 'undefined') {
74
+ if (console.group === undefined || console.groupEnd === undefined || console.groupCollapsed === undefined) {
75
75
  module.verbose('Console group not available, normalizing events');
76
76
  window.console.group = function () {};
77
77
  window.console.groupEnd = function () {};
78
78
  window.console.groupCollapsed = function () {};
79
79
  }
80
- if (typeof console.markTimeline == 'undefined') {
80
+ if (console.markTimeline === undefined) {
81
81
  module.verbose('Mark timeline not available, normalizing events');
82
82
  window.console.markTimeline = function () {};
83
83
  }
@@ -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) {
@@ -309,7 +309,7 @@
309
309
  previousTime
310
310
  ;
311
311
  if (settings.performance) {
312
- currentTime = new Date().getTime();
312
+ currentTime = Date.now();
313
313
  previousTime = time || currentTime;
314
314
  executionTime = currentTime - previousTime;
315
315
  time = currentTime;
@@ -357,11 +357,11 @@
357
357
  ;
358
358
  passedArguments = passedArguments || queryArguments;
359
359
  context = context || element;
360
- if (typeof query == 'string' && object !== undefined) {
361
- query = query.split(/[\. ]/);
360
+ if (typeof query === 'string' && object !== undefined) {
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,10 +413,11 @@
413
413
  module.initialize();
414
414
  }
415
415
 
416
- return (returnedValue !== undefined)
416
+ return returnedValue !== undefined
417
417
  ? returnedValue
418
418
  : this;
419
419
  };
420
+ $.site = $.fn.site;
420
421
 
421
422
  $.site.settings = {
422
423
 
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (typeof window != 'undefined' && window.Math == Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -23,18 +23,18 @@
23
23
  var
24
24
  $allModules = $(this),
25
25
 
26
- time = new Date().getTime(),
26
+ time = Date.now(),
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
  returnedValue
34
34
  ;
35
35
  $allModules.each(function () {
36
36
  var
37
- settings = ($.isPlainObject(parameters))
37
+ settings = $.isPlainObject(parameters)
38
38
  ? $.extend(true, {}, $.fn.accordion.settings, parameters)
39
39
  : $.extend({}, $.fn.accordion.settings),
40
40
 
@@ -121,16 +121,16 @@
121
121
 
122
122
  toggle: function (query) {
123
123
  var
124
- $activeTitle = (query !== undefined)
125
- ? (typeof query === 'number')
124
+ $activeTitle = query !== undefined
125
+ ? (typeof query === 'number'
126
126
  ? $title.eq(query)
127
- : $(query).closest(selector.title)
127
+ : $(query).closest(selector.title))
128
128
  : $(this).closest(selector.title),
129
129
  $activeContent = $activeTitle.next($content),
130
130
  isAnimating = $activeContent.hasClass(className.animating),
131
131
  isActive = $activeContent.hasClass(className.active),
132
- isOpen = (isActive && !isAnimating),
133
- isOpening = (!isActive && isAnimating)
132
+ isOpen = isActive && !isAnimating,
133
+ isOpening = !isActive && isAnimating
134
134
  ;
135
135
  module.debug('Toggling visibility of content', $activeTitle);
136
136
  if (isOpen || isOpening) {
@@ -146,15 +146,15 @@
146
146
 
147
147
  open: function (query) {
148
148
  var
149
- $activeTitle = (query !== undefined)
150
- ? (typeof query === 'number')
149
+ $activeTitle = query !== undefined
150
+ ? (typeof query === 'number'
151
151
  ? $title.eq(query)
152
- : $(query).closest(selector.title)
152
+ : $(query).closest(selector.title))
153
153
  : $(this).closest(selector.title),
154
154
  $activeContent = $activeTitle.next($content),
155
155
  isAnimating = $activeContent.hasClass(className.animating),
156
156
  isActive = $activeContent.hasClass(className.active),
157
- isOpen = (isActive || isAnimating)
157
+ isOpen = isActive || isAnimating
158
158
  ;
159
159
  if (isOpen) {
160
160
  module.debug('Accordion already open, skipping', $activeContent);
@@ -216,16 +216,16 @@
216
216
 
217
217
  close: function (query) {
218
218
  var
219
- $activeTitle = (query !== undefined)
220
- ? (typeof query === 'number')
219
+ $activeTitle = query !== undefined
220
+ ? (typeof query === 'number'
221
221
  ? $title.eq(query)
222
- : $(query).closest(selector.title)
222
+ : $(query).closest(selector.title))
223
223
  : $(this).closest(selector.title),
224
224
  $activeContent = $activeTitle.next($content),
225
225
  isAnimating = $activeContent.hasClass(className.animating),
226
226
  isActive = $activeContent.hasClass(className.active),
227
- isOpening = (!isActive && isAnimating),
228
- isClosing = (isActive && isAnimating)
227
+ isOpening = !isActive && isAnimating,
228
+ isClosing = isActive && isAnimating
229
229
  ;
230
230
  if ((isActive || isOpening) && !isClosing) {
231
231
  module.debug('Closing accordion content', $activeContent);
@@ -278,7 +278,7 @@
278
278
 
279
279
  closeOthers: function (index) {
280
280
  var
281
- $activeTitle = (index !== undefined)
281
+ $activeTitle = index !== undefined
282
282
  ? $title.eq(index)
283
283
  : $(this).closest(selector.title),
284
284
  $parentTitles = $activeTitle.parents(selector.content).prev(selector.title),
@@ -298,7 +298,7 @@
298
298
  $openTitles = $openTitles.not($nestedTitles);
299
299
  $openContents = $openTitles.next($content);
300
300
  }
301
- if (($openTitles.length > 0)) {
301
+ if ($openTitles.length > 0) {
302
302
  module.debug('Exclusive enabled, closing other content', $openTitles);
303
303
  $openTitles
304
304
  .removeClass(className.active)
@@ -427,7 +427,7 @@
427
427
  previousTime
428
428
  ;
429
429
  if (settings.performance) {
430
- currentTime = new Date().getTime();
430
+ currentTime = Date.now();
431
431
  previousTime = time || currentTime;
432
432
  executionTime = currentTime - previousTime;
433
433
  time = currentTime;
@@ -478,11 +478,11 @@
478
478
  ;
479
479
  passedArguments = passedArguments || queryArguments;
480
480
  context = context || element;
481
- if (typeof query == 'string' && object !== undefined) {
482
- query = query.split(/[\. ]/);
481
+ if (typeof query === 'string' && object !== undefined) {
482
+ query = query.split(/[ .]/);
483
483
  maxDepth = query.length - 1;
484
484
  $.each(query, function (depth, value) {
485
- var camelCaseValue = (depth != maxDepth)
485
+ var camelCaseValue = depth != maxDepth
486
486
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
487
487
  : query;
488
488
  if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
@@ -533,7 +533,7 @@
533
533
  }
534
534
  });
535
535
 
536
- return (returnedValue !== undefined)
536
+ return returnedValue !== undefined
537
537
  ? returnedValue
538
538
  : this;
539
539
  };