fomantic-ui 2.9.3-beta.5 → 2.9.3-beta.50

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 (269) hide show
  1. package/.all-contributorsrc +2 -2
  2. package/.github/FUNDING.yml +1 -1
  3. package/.github/auto_assign.yml +1 -1
  4. package/.github/workflows/ci.yml +2 -2
  5. package/CONTRIBUTORS.md +1 -1
  6. package/README.md +5 -2
  7. package/SECURITY.md +2 -1
  8. package/dist/components/accordion.css +1 -1
  9. package/dist/components/accordion.js +2 -2
  10. package/dist/components/accordion.min.css +1 -1
  11. package/dist/components/accordion.min.js +2 -2
  12. package/dist/components/ad.css +1 -1
  13. package/dist/components/ad.min.css +1 -1
  14. package/dist/components/api.js +3 -3
  15. package/dist/components/api.min.js +2 -2
  16. package/dist/components/breadcrumb.css +1 -1
  17. package/dist/components/breadcrumb.min.css +1 -1
  18. package/dist/components/button.css +2 -2
  19. package/dist/components/button.min.css +2 -2
  20. package/dist/components/calendar.css +1 -1
  21. package/dist/components/calendar.js +2 -2
  22. package/dist/components/calendar.min.css +1 -1
  23. package/dist/components/calendar.min.js +2 -2
  24. package/dist/components/card.css +1 -1
  25. package/dist/components/card.min.css +1 -1
  26. package/dist/components/checkbox.css +50 -6
  27. package/dist/components/checkbox.js +5 -3
  28. package/dist/components/checkbox.min.css +2 -2
  29. package/dist/components/checkbox.min.js +2 -2
  30. package/dist/components/comment.css +6 -1
  31. package/dist/components/comment.min.css +2 -2
  32. package/dist/components/container.css +62 -1
  33. package/dist/components/container.min.css +2 -2
  34. package/dist/components/dimmer.css +3 -3
  35. package/dist/components/dimmer.js +2 -2
  36. package/dist/components/dimmer.min.css +2 -2
  37. package/dist/components/dimmer.min.js +2 -2
  38. package/dist/components/divider.css +1 -1
  39. package/dist/components/divider.min.css +1 -1
  40. package/dist/components/dropdown.css +24 -3
  41. package/dist/components/dropdown.js +29 -21
  42. package/dist/components/dropdown.min.css +2 -2
  43. package/dist/components/dropdown.min.js +2 -2
  44. package/dist/components/embed.css +1 -1
  45. package/dist/components/embed.js +2 -2
  46. package/dist/components/embed.min.css +1 -1
  47. package/dist/components/embed.min.js +2 -2
  48. package/dist/components/emoji.css +697 -249
  49. package/dist/components/emoji.min.css +2 -2
  50. package/dist/components/feed.css +486 -5
  51. package/dist/components/feed.min.css +2 -2
  52. package/dist/components/flag.css +3 -2
  53. package/dist/components/flag.min.css +2 -2
  54. package/dist/components/flyout.css +1 -1
  55. package/dist/components/flyout.js +5 -3
  56. package/dist/components/flyout.min.css +1 -1
  57. package/dist/components/flyout.min.js +2 -2
  58. package/dist/components/form.css +53 -20
  59. package/dist/components/form.js +73 -32
  60. package/dist/components/form.min.css +2 -2
  61. package/dist/components/form.min.js +2 -2
  62. package/dist/components/grid.css +107 -107
  63. package/dist/components/grid.min.css +2 -2
  64. package/dist/components/header.css +1 -1
  65. package/dist/components/header.min.css +1 -1
  66. package/dist/components/icon.css +62 -62
  67. package/dist/components/icon.min.css +2 -2
  68. package/dist/components/image.css +1 -1
  69. package/dist/components/image.min.css +1 -1
  70. package/dist/components/input.css +3 -27
  71. package/dist/components/input.min.css +2 -2
  72. package/dist/components/item.css +6 -1
  73. package/dist/components/item.min.css +2 -2
  74. package/dist/components/label.css +21 -2
  75. package/dist/components/label.min.css +2 -2
  76. package/dist/components/list.css +13 -13
  77. package/dist/components/list.min.css +2 -2
  78. package/dist/components/loader.css +282 -282
  79. package/dist/components/loader.min.css +2 -2
  80. package/dist/components/menu.css +13 -7
  81. package/dist/components/menu.min.css +2 -2
  82. package/dist/components/message.css +1 -1
  83. package/dist/components/message.min.css +1 -1
  84. package/dist/components/modal.css +10 -3
  85. package/dist/components/modal.js +10 -10
  86. package/dist/components/modal.min.css +2 -2
  87. package/dist/components/modal.min.js +2 -2
  88. package/dist/components/nag.css +1 -1
  89. package/dist/components/nag.js +3 -3
  90. package/dist/components/nag.min.css +1 -1
  91. package/dist/components/nag.min.js +2 -2
  92. package/dist/components/placeholder.css +1 -1
  93. package/dist/components/placeholder.min.css +1 -1
  94. package/dist/components/popup.css +41 -40
  95. package/dist/components/popup.js +11 -9
  96. package/dist/components/popup.min.css +2 -2
  97. package/dist/components/popup.min.js +2 -2
  98. package/dist/components/progress.css +1 -1
  99. package/dist/components/progress.js +2 -2
  100. package/dist/components/progress.min.css +1 -1
  101. package/dist/components/progress.min.js +2 -2
  102. package/dist/components/rail.css +1 -1
  103. package/dist/components/rail.min.css +1 -1
  104. package/dist/components/rating.css +1 -1
  105. package/dist/components/rating.js +2 -2
  106. package/dist/components/rating.min.css +1 -1
  107. package/dist/components/rating.min.js +2 -2
  108. package/dist/components/reset.css +1 -1
  109. package/dist/components/reset.min.css +1 -1
  110. package/dist/components/reveal.css +1 -1
  111. package/dist/components/reveal.min.css +1 -1
  112. package/dist/components/search.css +26 -1
  113. package/dist/components/search.js +5 -4
  114. package/dist/components/search.min.css +2 -2
  115. package/dist/components/search.min.js +2 -2
  116. package/dist/components/segment.css +159 -33
  117. package/dist/components/segment.min.css +2 -2
  118. package/dist/components/shape.css +1 -1
  119. package/dist/components/shape.js +2 -2
  120. package/dist/components/shape.min.css +1 -1
  121. package/dist/components/shape.min.js +2 -2
  122. package/dist/components/sidebar.css +1 -1
  123. package/dist/components/sidebar.js +2 -2
  124. package/dist/components/sidebar.min.css +1 -1
  125. package/dist/components/sidebar.min.js +2 -2
  126. package/dist/components/site.css +1 -1
  127. package/dist/components/site.js +2 -2
  128. package/dist/components/site.min.css +1 -1
  129. package/dist/components/site.min.js +2 -2
  130. package/dist/components/slider.css +1 -1
  131. package/dist/components/slider.js +123 -27
  132. package/dist/components/slider.min.css +1 -1
  133. package/dist/components/slider.min.js +2 -2
  134. package/dist/components/state.js +2 -2
  135. package/dist/components/state.min.js +2 -2
  136. package/dist/components/statistic.css +1 -1
  137. package/dist/components/statistic.min.css +1 -1
  138. package/dist/components/step.css +1 -1
  139. package/dist/components/step.min.css +1 -1
  140. package/dist/components/sticky.css +1 -1
  141. package/dist/components/sticky.js +2 -2
  142. package/dist/components/sticky.min.css +1 -1
  143. package/dist/components/sticky.min.js +2 -2
  144. package/dist/components/tab.css +1 -1
  145. package/dist/components/tab.js +6 -4
  146. package/dist/components/tab.min.css +1 -1
  147. package/dist/components/tab.min.js +2 -2
  148. package/dist/components/table.css +65 -1
  149. package/dist/components/table.min.css +2 -2
  150. package/dist/components/text.css +1 -1
  151. package/dist/components/text.min.css +1 -1
  152. package/dist/components/toast.css +6 -1
  153. package/dist/components/toast.js +2 -2
  154. package/dist/components/toast.min.css +2 -2
  155. package/dist/components/toast.min.js +2 -2
  156. package/dist/components/transition.css +1 -1
  157. package/dist/components/transition.js +3 -3
  158. package/dist/components/transition.min.css +1 -1
  159. package/dist/components/transition.min.js +2 -2
  160. package/dist/components/visibility.js +2 -2
  161. package/dist/components/visibility.min.js +2 -2
  162. package/dist/semantic.css +2635 -959
  163. package/dist/semantic.js +303 -149
  164. package/dist/semantic.min.css +2 -2
  165. package/dist/semantic.min.js +2 -2
  166. package/package.json +3 -2
  167. package/src/definitions/behaviors/api.js +2 -2
  168. package/src/definitions/behaviors/form.js +72 -31
  169. package/src/definitions/behaviors/state.js +1 -1
  170. package/src/definitions/behaviors/visibility.js +1 -1
  171. package/src/definitions/collections/form.less +25 -12
  172. package/src/definitions/collections/grid.less +106 -106
  173. package/src/definitions/collections/menu.less +29 -22
  174. package/src/definitions/collections/table.less +66 -0
  175. package/src/definitions/elements/button.less +1 -1
  176. package/src/definitions/elements/container.less +63 -0
  177. package/src/definitions/elements/icon.less +5 -5
  178. package/src/definitions/elements/input.less +2 -2
  179. package/src/definitions/elements/label.less +21 -1
  180. package/src/definitions/elements/list.less +13 -13
  181. package/src/definitions/elements/loader.less +71 -71
  182. package/src/definitions/elements/segment.less +110 -13
  183. package/src/definitions/globals/site.js +1 -1
  184. package/src/definitions/modules/accordion.js +1 -1
  185. package/src/definitions/modules/calendar.js +1 -1
  186. package/src/definitions/modules/checkbox.js +4 -2
  187. package/src/definitions/modules/checkbox.less +61 -5
  188. package/src/definitions/modules/dimmer.js +1 -1
  189. package/src/definitions/modules/dimmer.less +2 -2
  190. package/src/definitions/modules/dropdown.js +28 -20
  191. package/src/definitions/modules/dropdown.less +33 -2
  192. package/src/definitions/modules/embed.js +1 -1
  193. package/src/definitions/modules/flyout.js +4 -2
  194. package/src/definitions/modules/modal.js +9 -9
  195. package/src/definitions/modules/modal.less +11 -2
  196. package/src/definitions/modules/nag.js +2 -2
  197. package/src/definitions/modules/popup.js +10 -8
  198. package/src/definitions/modules/popup.less +40 -38
  199. package/src/definitions/modules/progress.js +1 -1
  200. package/src/definitions/modules/rating.js +1 -1
  201. package/src/definitions/modules/search.js +4 -3
  202. package/src/definitions/modules/search.less +31 -0
  203. package/src/definitions/modules/shape.js +1 -1
  204. package/src/definitions/modules/sidebar.js +1 -1
  205. package/src/definitions/modules/slider.js +122 -26
  206. package/src/definitions/modules/sticky.js +1 -1
  207. package/src/definitions/modules/tab.js +5 -3
  208. package/src/definitions/modules/toast.js +1 -1
  209. package/src/definitions/modules/toast.less +7 -0
  210. package/src/definitions/modules/transition.js +2 -2
  211. package/src/definitions/views/comment.less +7 -0
  212. package/src/definitions/views/feed.less +238 -32
  213. package/src/definitions/views/item.less +7 -0
  214. package/src/themes/amazon/elements/button.variables +5 -1
  215. package/src/themes/bootstrap3/elements/button.variables +5 -1
  216. package/src/themes/chubby/elements/header.variables +6 -1
  217. package/src/themes/default/collections/message.variables +3 -9
  218. package/src/themes/default/collections/table.variables +3 -0
  219. package/src/themes/default/elements/button.variables +1 -3
  220. package/src/themes/default/elements/container.variables +3 -0
  221. package/src/themes/default/elements/emoji.variables +179 -67
  222. package/src/themes/default/elements/flag.variables +1 -1
  223. package/src/themes/default/elements/label.variables +5 -0
  224. package/src/themes/default/elements/segment.variables +8 -0
  225. package/src/themes/default/globals/site.variables +20 -1
  226. package/src/themes/default/globals/variation.variables +23 -1
  227. package/src/themes/default/modules/checkbox.variables +12 -0
  228. package/src/themes/default/modules/dropdown.variables +3 -0
  229. package/src/themes/default/modules/modal.variables +4 -0
  230. package/src/themes/default/modules/popup.variables +3 -1
  231. package/src/themes/default/modules/search.variables +3 -0
  232. package/src/themes/default/modules/toast.variables +1 -0
  233. package/src/themes/default/views/card.variables +4 -12
  234. package/src/themes/default/views/feed.variables +55 -1
  235. package/src/themes/github/elements/button.variables +5 -1
  236. package/src/themes/joypixels/elements/emoji.variables +182 -70
  237. package/src/themes/twitter/elements/button.variables +5 -1
  238. package/src/themes/twitter/elements/emoji.variables +178 -66
  239. package/tasks/admin/distributions/create.js +8 -3
  240. package/tasks/config/project/install.js +3 -0
  241. package/tasks/config/tasks.js +1 -8
  242. package/tasks/install.js +15 -5
  243. package/types/fomantic-ui-accordion.d.ts +244 -0
  244. package/types/fomantic-ui-api.d.ts +555 -0
  245. package/types/fomantic-ui-calendar.d.ts +766 -0
  246. package/types/fomantic-ui-checkbox.d.ts +332 -0
  247. package/types/fomantic-ui-dimmer.d.ts +408 -0
  248. package/types/fomantic-ui-dropdown.d.ts +1183 -0
  249. package/types/fomantic-ui-embed.d.ts +326 -0
  250. package/types/fomantic-ui-flyout.d.ts +525 -0
  251. package/types/fomantic-ui-form.d.ts +651 -0
  252. package/types/fomantic-ui-modal.d.ts +471 -0
  253. package/types/fomantic-ui-nag.d.ts +270 -0
  254. package/types/fomantic-ui-popup.d.ts +523 -0
  255. package/types/fomantic-ui-progress.d.ts +459 -0
  256. package/types/fomantic-ui-rating.d.ts +187 -0
  257. package/types/fomantic-ui-search.d.ts +496 -0
  258. package/types/fomantic-ui-shape.d.ts +274 -0
  259. package/types/fomantic-ui-sidebar.d.ts +402 -0
  260. package/types/fomantic-ui-slider.d.ts +316 -0
  261. package/types/fomantic-ui-sticky.d.ts +215 -0
  262. package/types/fomantic-ui-tab.d.ts +361 -0
  263. package/types/fomantic-ui-tests.ts +25 -0
  264. package/types/fomantic-ui-toast.d.ts +514 -0
  265. package/types/fomantic-ui-transition.d.ts +355 -0
  266. package/types/fomantic-ui-visibility.d.ts +355 -0
  267. package/types/index.d.ts +63 -0
  268. package/types/tsconfig.json +23 -0
  269. package/types/tslint.json +1 -0
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.3-beta.5+b6b51ca
2
+ * # Fomantic UI - 2.9.3-beta.50+d1f0dad
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Site
12
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -302,7 +302,7 @@
302
302
  });
303
303
  }
304
304
  clearTimeout(module.performance.timer);
305
- module.performance.timer = setTimeout(module.performance.display, 500);
305
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
306
306
  },
307
307
  display: function () {
308
308
  var
@@ -463,7 +463,7 @@
463
463
  })(jQuery, window, document);
464
464
 
465
465
  /*!
466
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Form Validation
466
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Form Validation
467
467
  * https://github.com/fomantic/Fomantic-UI/
468
468
  *
469
469
  *
@@ -541,6 +541,7 @@
541
541
  initialize: function () {
542
542
  // settings grabbed at run time
543
543
  module.get.settings();
544
+ $module.addClass(className.initial);
544
545
  if (methodInvoked) {
545
546
  if (instance === undefined) {
546
547
  module.instantiate();
@@ -594,10 +595,13 @@
594
595
  module.bindEvents();
595
596
  },
596
597
 
597
- submit: function () {
598
+ submit: function (event) {
598
599
  module.verbose('Submitting form', $module);
599
600
  submitting = true;
600
601
  $module.trigger('submit');
602
+ if (event) {
603
+ event.preventDefault();
604
+ }
601
605
  },
602
606
 
603
607
  attachEvents: function (selector, action) {
@@ -623,6 +627,7 @@
623
627
  .on('click' + eventNamespace, selector.reset, module.reset)
624
628
  .on('click' + eventNamespace, selector.clear, module.clear)
625
629
  ;
630
+ $field.on('invalid' + eventNamespace, module.event.field.invalid);
626
631
  if (settings.keyboardShortcuts) {
627
632
  $module.on('keydown' + eventNamespace, selector.field, module.event.field.keydown);
628
633
  }
@@ -738,8 +743,12 @@
738
743
  var
739
744
  allValid = true
740
745
  ;
741
- $.each(validation, function (fieldName, field) {
742
- if (!module.validate.field(field, fieldName, true)) {
746
+ $field.each(function (index, el) {
747
+ var $el = $(el),
748
+ validation = module.get.validation($el) || {},
749
+ identifier = module.get.identifier(validation, $el)
750
+ ;
751
+ if (!module.validate.field(validation, identifier, true)) {
743
752
  allValid = false;
744
753
  }
745
754
  });
@@ -895,9 +904,8 @@
895
904
  if (!event.ctrlKey && key === keyCode.enter && isInput && !isInDropdown && !isCheckbox) {
896
905
  if (!keyHeldDown) {
897
906
  $field.one('keyup' + eventNamespace, module.event.field.keyup);
898
- module.submit();
907
+ module.submit(event);
899
908
  module.debug('Enter pressed on input submitting form');
900
- event.preventDefault();
901
909
  }
902
910
  keyHeldDown = true;
903
911
  }
@@ -905,15 +913,18 @@
905
913
  keyup: function () {
906
914
  keyHeldDown = false;
907
915
  },
916
+ invalid: function (event) {
917
+ event.preventDefault();
918
+ },
908
919
  blur: function (event) {
909
920
  var
910
921
  $field = $(this),
911
- $fieldGroup = $field.closest($group),
912
- validationRules = module.get.validation($field)
922
+ validationRules = module.get.validation($field) || {},
923
+ identifier = module.get.identifier(validationRules, $field)
913
924
  ;
914
- if (validationRules && (settings.on === 'blur' || ($fieldGroup.hasClass(className.error) && settings.revalidate))) {
925
+ if (settings.on === 'blur' || (!$module.hasClass(className.initial) && settings.revalidate)) {
915
926
  module.debug('Revalidating field', $field, validationRules);
916
- module.validate.field(validationRules);
927
+ module.validate.field(validationRules, identifier);
917
928
  if (!settings.inline) {
918
929
  module.validate.form(false, true);
919
930
  }
@@ -922,14 +933,14 @@
922
933
  change: function (event) {
923
934
  var
924
935
  $field = $(this),
925
- $fieldGroup = $field.closest($group),
926
- validationRules = module.get.validation($field)
936
+ validationRules = module.get.validation($field) || {},
937
+ identifier = module.get.identifier(validationRules, $field)
927
938
  ;
928
- if (validationRules && (settings.on === 'change' || ($fieldGroup.hasClass(className.error) && settings.revalidate))) {
939
+ if (settings.on === 'change' || (!$module.hasClass(className.initial) && settings.revalidate)) {
929
940
  clearTimeout(module.timer);
930
941
  module.timer = setTimeout(function () {
931
942
  module.debug('Revalidating field', $field, validationRules);
932
- module.validate.field(validationRules);
943
+ module.validate.field(validationRules, identifier);
933
944
  if (!settings.inline) {
934
945
  module.validate.form(false, true);
935
946
  }
@@ -995,6 +1006,9 @@
995
1006
 
996
1007
  return fullFields;
997
1008
  },
1009
+ identifier: function (validation, $el) {
1010
+ return validation.identifier || $el.attr('id') || $el.attr('name') || $el.data(metadata.validate);
1011
+ },
998
1012
  prompt: function (rule, field) {
999
1013
  var
1000
1014
  ruleName = module.get.ruleName(rule),
@@ -1107,7 +1121,7 @@
1107
1121
  var $field = typeof identifier === 'string'
1108
1122
  ? module.get.field(identifier)
1109
1123
  : identifier,
1110
- $label = $field.closest(selector.group).find('label').eq(0)
1124
+ $label = $field.closest(selector.group).find('label:not(:empty)').eq(0)
1111
1125
  ;
1112
1126
 
1113
1127
  return $label.length === 1
@@ -1361,7 +1375,8 @@
1361
1375
  $field = module.get.field(identifier),
1362
1376
  $fieldGroup = $field.closest($group),
1363
1377
  $prompt = $fieldGroup.children(selector.prompt),
1364
- promptExists = $prompt.length > 0
1378
+ promptExists = $prompt.length > 0,
1379
+ canTransition = settings.transition && module.can.useElement('transition')
1365
1380
  ;
1366
1381
  module.verbose('Adding field error state', identifier);
1367
1382
  if (!internal) {
@@ -1370,8 +1385,22 @@
1370
1385
  ;
1371
1386
  }
1372
1387
  if (settings.inline) {
1388
+ if (promptExists) {
1389
+ if (canTransition) {
1390
+ if ($prompt.transition('is animating')) {
1391
+ $prompt.transition('stop all');
1392
+ }
1393
+ } else if ($prompt.is(':animated')) {
1394
+ $prompt.stop(true, true);
1395
+ }
1396
+ $prompt = $fieldGroup.children(selector.prompt);
1397
+ promptExists = $prompt.length > 0;
1398
+ }
1373
1399
  if (!promptExists) {
1374
1400
  $prompt = $('<div/>').addClass(className.label);
1401
+ if (!canTransition) {
1402
+ $prompt.css('display', 'none');
1403
+ }
1375
1404
  $prompt
1376
1405
  .appendTo($fieldGroup)
1377
1406
  ;
@@ -1380,7 +1409,7 @@
1380
1409
  .html(settings.templates.prompt(errors))
1381
1410
  ;
1382
1411
  if (!promptExists) {
1383
- if (settings.transition && module.can.useElement('transition')) {
1412
+ if (canTransition) {
1384
1413
  module.verbose('Displaying error with css transition', settings.transition);
1385
1414
  $prompt.transition(settings.transition + ' in', settings.duration);
1386
1415
  } else {
@@ -1389,9 +1418,9 @@
1389
1418
  .fadeIn(settings.duration)
1390
1419
  ;
1391
1420
  }
1392
- } else {
1393
- module.verbose('Inline errors are disabled, no inline error added', identifier);
1394
1421
  }
1422
+ } else {
1423
+ module.verbose('Inline errors are disabled, no inline error added', identifier);
1395
1424
  }
1396
1425
  },
1397
1426
  errors: function (errors) {
@@ -1438,7 +1467,7 @@
1438
1467
  $message.empty();
1439
1468
  },
1440
1469
  states: function () {
1441
- $module.removeClass(className.error).removeClass(className.success);
1470
+ $module.removeClass(className.error).removeClass(className.success).addClass(className.initial);
1442
1471
  if (!settings.inline) {
1443
1472
  module.remove.errors();
1444
1473
  }
@@ -1675,7 +1704,7 @@
1675
1704
  return rule.type === 'empty';
1676
1705
  }) !== 0
1677
1706
  : false,
1678
- identifier = validation.identifier || $el.attr('id') || $el.attr('name') || $el.data(metadata.validate)
1707
+ identifier = module.get.identifier(validation, $el)
1679
1708
  ;
1680
1709
  if (isRequired && !isDisabled && !hasEmptyRule && identifier !== undefined) {
1681
1710
  if (isCheckbox) {
@@ -1707,7 +1736,7 @@
1707
1736
  if (keyHeldDown) {
1708
1737
  return false;
1709
1738
  }
1710
-
1739
+ $module.removeClass(className.initial);
1711
1740
  // reset errors
1712
1741
  formErrors = [];
1713
1742
  if (module.determine.isValid()) {
@@ -1779,13 +1808,25 @@
1779
1808
  ? module.get.field(field.depends)
1780
1809
  : false,
1781
1810
  fieldValid = true,
1782
- fieldErrors = []
1811
+ fieldErrors = [],
1812
+ isDisabled = $field.filter(':not(:disabled)').length === 0,
1813
+ validationMessage = $field[0].validationMessage,
1814
+ errorLimit
1783
1815
  ;
1784
1816
  if (!field.identifier) {
1785
1817
  module.debug('Using field name as identifier', identifier);
1786
1818
  field.identifier = identifier;
1787
1819
  }
1788
- var isDisabled = $field.filter(':not(:disabled)').length === 0;
1820
+ if (validationMessage) {
1821
+ module.debug('Field is natively invalid', identifier);
1822
+ fieldErrors.push(validationMessage);
1823
+ fieldValid = false;
1824
+ if (showErrors) {
1825
+ $field.closest($group).addClass(className.error);
1826
+ }
1827
+ } else if (showErrors) {
1828
+ $field.closest($group).removeClass(className.error);
1829
+ }
1789
1830
  if (isDisabled) {
1790
1831
  module.debug('Field is disabled. Skipping', identifier);
1791
1832
  } else if (field.optional && module.is.blank($field)) {
@@ -1793,11 +1834,9 @@
1793
1834
  } else if (field.depends && module.is.empty($dependsField)) {
1794
1835
  module.debug('Field depends on another value that is not present or empty. Skipping', $dependsField);
1795
1836
  } else if (field.rules !== undefined) {
1796
- if (showErrors) {
1797
- $field.closest($group).removeClass(className.error);
1798
- }
1837
+ errorLimit = field.errorLimit || settings.errorLimit;
1799
1838
  $.each(field.rules, function (index, rule) {
1800
- if (module.has.field(identifier)) {
1839
+ if (module.has.field(identifier) && (!errorLimit || fieldErrors.length < errorLimit)) {
1801
1840
  var invalidFields = module.validate.rule(field, rule, true) || [];
1802
1841
  if (invalidFields.length > 0) {
1803
1842
  module.debug('Field is invalid', identifier, rule.type);
@@ -1812,7 +1851,7 @@
1812
1851
  }
1813
1852
  if (fieldValid) {
1814
1853
  if (showErrors) {
1815
- module.remove.prompt(identifier, fieldErrors);
1854
+ module.remove.prompt(identifier);
1816
1855
  settings.onValid.call($field);
1817
1856
  }
1818
1857
  } else {
@@ -1934,7 +1973,7 @@
1934
1973
  });
1935
1974
  }
1936
1975
  clearTimeout(module.performance.timer);
1937
- module.performance.timer = setTimeout(module.performance.display, 500);
1976
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
1938
1977
  },
1939
1978
  display: function () {
1940
1979
  var
@@ -2049,6 +2088,7 @@
2049
2088
  preventLeaving: false,
2050
2089
  errorFocus: true,
2051
2090
  dateHandling: 'date', // 'date', 'input', 'formatter'
2091
+ errorLimit: 0,
2052
2092
 
2053
2093
  onValid: function () {},
2054
2094
  onInvalid: function () {},
@@ -2102,8 +2142,8 @@
2102
2142
  isExactly: '{name} must be exactly "{ruleValue}"',
2103
2143
  not: '{name} cannot be set to "{ruleValue}"',
2104
2144
  notExactly: '{name} cannot be set to exactly "{ruleValue}"',
2105
- contain: '{name} must contain "{ruleValue}"',
2106
- containExactly: '{name} must contain exactly "{ruleValue}"',
2145
+ contains: '{name} must contain "{ruleValue}"',
2146
+ containsExactly: '{name} must contain exactly "{ruleValue}"',
2107
2147
  doesntContain: '{name} cannot contain "{ruleValue}"',
2108
2148
  doesntContainExactly: '{name} cannot contain exactly "{ruleValue}"',
2109
2149
  minLength: '{name} must be at least {ruleValue} characters',
@@ -2137,6 +2177,7 @@
2137
2177
  },
2138
2178
 
2139
2179
  className: {
2180
+ initial: 'initial',
2140
2181
  error: 'error',
2141
2182
  label: 'ui basic red pointing prompt label',
2142
2183
  pressed: 'down',
@@ -2577,7 +2618,7 @@
2577
2618
  })(jQuery, window, document);
2578
2619
 
2579
2620
  /*!
2580
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Accordion
2621
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Accordion
2581
2622
  * https://github.com/fomantic/Fomantic-UI/
2582
2623
  *
2583
2624
  *
@@ -3016,7 +3057,7 @@
3016
3057
  });
3017
3058
  }
3018
3059
  clearTimeout(module.performance.timer);
3019
- module.performance.timer = setTimeout(module.performance.display, 500);
3060
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
3020
3061
  },
3021
3062
  display: function () {
3022
3063
  var
@@ -3171,7 +3212,7 @@
3171
3212
  })(jQuery, window, document);
3172
3213
 
3173
3214
  /*!
3174
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Calendar
3215
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Calendar
3175
3216
  * https://github.com/fomantic/Fomantic-UI/
3176
3217
  *
3177
3218
  *
@@ -4651,7 +4692,7 @@
4651
4692
  });
4652
4693
  }
4653
4694
  clearTimeout(module.performance.timer);
4654
- module.performance.timer = setTimeout(module.performance.display, 500);
4695
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
4655
4696
  },
4656
4697
  display: function () {
4657
4698
  var
@@ -5182,7 +5223,7 @@
5182
5223
  })(jQuery, window, document);
5183
5224
 
5184
5225
  /*!
5185
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Checkbox
5226
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Checkbox
5186
5227
  * https://github.com/fomantic/Fomantic-UI/
5187
5228
  *
5188
5229
  *
@@ -5424,7 +5465,9 @@
5424
5465
  $input.trigger('blur');
5425
5466
  shortcutPressed = true;
5426
5467
  event.stopPropagation();
5427
- } else if (!event.ctrlKey && module.can.change()) {
5468
+ } else if (!module.can.change()) {
5469
+ shortcutPressed = true;
5470
+ } else if (!event.ctrlKey) {
5428
5471
  if (key === keyCode.space || (key === keyCode.enter && settings.enableEnterKey)) {
5429
5472
  module.verbose('Enter/space key pressed, toggling checkbox');
5430
5473
  module.toggle();
@@ -5906,7 +5949,7 @@
5906
5949
  });
5907
5950
  }
5908
5951
  clearTimeout(module.performance.timer);
5909
- module.performance.timer = setTimeout(module.performance.display, 500);
5952
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
5910
5953
  },
5911
5954
  display: function () {
5912
5955
  var
@@ -6063,7 +6106,7 @@
6063
6106
  })(jQuery, window, document);
6064
6107
 
6065
6108
  /*!
6066
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Dimmer
6109
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Dimmer
6067
6110
  * https://github.com/fomantic/Fomantic-UI/
6068
6111
  *
6069
6112
  *
@@ -6592,7 +6635,7 @@
6592
6635
  });
6593
6636
  }
6594
6637
  clearTimeout(module.performance.timer);
6595
- module.performance.timer = setTimeout(module.performance.display, 500);
6638
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
6596
6639
  },
6597
6640
  display: function () {
6598
6641
  var
@@ -6794,7 +6837,7 @@
6794
6837
  })(jQuery, window, document);
6795
6838
 
6796
6839
  /*!
6797
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Dropdown
6840
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Dropdown
6798
6841
  * https://github.com/fomantic/Fomantic-UI/
6799
6842
  *
6800
6843
  *
@@ -7158,7 +7201,7 @@
7158
7201
  module.verbose('Adding clear icon');
7159
7202
  $clear = $('<i />')
7160
7203
  .addClass('remove icon')
7161
- .insertBefore($text)
7204
+ .insertAfter($icon)
7162
7205
  ;
7163
7206
  }
7164
7207
  if (module.is.search() && !module.has.search()) {
@@ -7324,7 +7367,7 @@
7324
7367
  callback = isFunction(callback)
7325
7368
  ? callback
7326
7369
  : function () {};
7327
- if ((focused || iconClicked) && module.is.remote() && module.is.noApiCache()) {
7370
+ if ((focused || iconClicked) && module.is.remote() && module.is.noApiCache() && !module.has.maxSelections()) {
7328
7371
  module.clearItems();
7329
7372
  }
7330
7373
  if (!module.can.show() && module.is.remote()) {
@@ -7374,7 +7417,10 @@
7374
7417
  if ($subMenu.length > 0) {
7375
7418
  module.verbose('Hiding sub-menu', $subMenu);
7376
7419
  $subMenu.each(function () {
7377
- module.animate.hide(false, $(this));
7420
+ var $sub = $(this);
7421
+ if (!module.is.animating($sub)) {
7422
+ module.animate.hide(false, $sub);
7423
+ }
7378
7424
  });
7379
7425
  }
7380
7426
  }
@@ -7569,6 +7615,8 @@
7569
7615
  }
7570
7616
  ;
7571
7617
  if (settings.useLabels && module.has.maxSelections()) {
7618
+ module.show();
7619
+
7572
7620
  return;
7573
7621
  }
7574
7622
  if (settings.apiSettings) {
@@ -7892,8 +7940,8 @@
7892
7940
  notFoundTokens = []
7893
7941
  ;
7894
7942
  tokens.forEach(function (value) {
7895
- if (module.set.selected(module.escape.htmlEntities(value.trim()), null, true, true) === false) {
7896
- notFoundTokens.push(value);
7943
+ if (module.set.selected(module.escape.htmlEntities(value.trim()), null, false, true) === false) {
7944
+ notFoundTokens.push(value.trim());
7897
7945
  }
7898
7946
  });
7899
7947
  event.preventDefault();
@@ -8026,7 +8074,7 @@
8026
8074
  module.set.filtered();
8027
8075
  }
8028
8076
  clearTimeout(module.timer);
8029
- module.timer = setTimeout(module.search, settings.delay.search);
8077
+ module.timer = setTimeout(function () { module.search(); }, settings.delay.search);
8030
8078
  },
8031
8079
  label: {
8032
8080
  click: function (event) {
@@ -8202,11 +8250,13 @@
8202
8250
  if (settings.allowAdditions) {
8203
8251
  module.remove.userAddition();
8204
8252
  }
8205
- module.remove.filteredItem();
8253
+ if (!settings.keepSearchTerm) {
8254
+ module.remove.filteredItem();
8255
+ module.remove.searchTerm();
8256
+ }
8206
8257
  if (!module.is.visible() && $target.length > 0) {
8207
8258
  module.show();
8208
8259
  }
8209
- module.remove.searchTerm();
8210
8260
  if (!module.is.focusedOnSearch() && skipRefocus !== true) {
8211
8261
  module.focusSearch(true);
8212
8262
  }
@@ -8392,7 +8442,9 @@
8392
8442
  module.verbose('Selecting item from keyboard shortcut', $selectedItem);
8393
8443
  module.event.item.click.call($selectedItem, event);
8394
8444
  if (module.is.searchSelection()) {
8395
- module.remove.searchTerm();
8445
+ if (!settings.keepSearchTerm) {
8446
+ module.remove.searchTerm();
8447
+ }
8396
8448
  if (module.is.multiple()) {
8397
8449
  $search.trigger('focus');
8398
8450
  }
@@ -8609,7 +8661,7 @@
8609
8661
  ? value
8610
8662
  : text;
8611
8663
  if (module.can.activate($(element))) {
8612
- module.set.selected(value, $(element));
8664
+ module.set.selected(value, $(element), false, settings.keepSearchTerm);
8613
8665
  if (!module.is.multiple() && !(!settings.collapseOnActionable && $(element).hasClass(className.actionable))) {
8614
8666
  module.hideAndClear();
8615
8667
  }
@@ -8961,7 +9013,7 @@
8961
9013
  return;
8962
9014
  }
8963
9015
  if (isMultiple) {
8964
- if ($.inArray(module.escape.htmlEntities(String(optionValue)), value.map(String)) !== -1) {
9016
+ if ($.inArray(module.escape.htmlEntities(String(optionValue)), value.map(String).map(module.escape.htmlEntities)) !== -1) {
8965
9017
  $selectedItem = $selectedItem
8966
9018
  ? $selectedItem.add($choice)
8967
9019
  : $choice;
@@ -9022,7 +9074,7 @@
9022
9074
  return false;
9023
9075
  }
9024
9076
 
9025
- return true;
9077
+ return false;
9026
9078
  },
9027
9079
  disabled: function () {
9028
9080
  $search.attr('tabindex', module.is.disabled() ? -1 : 0);
@@ -9112,7 +9164,7 @@
9112
9164
  $.each(values, function (value, name) {
9113
9165
  module.set.text(name);
9114
9166
  });
9115
- } else {
9167
+ } else if (settings.useLabels) {
9116
9168
  $.each(values, function (value, name) {
9117
9169
  module.add.label(value, name);
9118
9170
  });
@@ -9259,7 +9311,7 @@
9259
9311
  valueIsSet = searchValue !== ''
9260
9312
  ;
9261
9313
  if (isMultiple && hasSearchValue) {
9262
- module.verbose('Adjusting input width', searchWidth, settings.glyphWidth);
9314
+ module.verbose('Adjusting input width', searchWidth);
9263
9315
  $search.css('width', searchWidth + 'px');
9264
9316
  }
9265
9317
  if (hasSearchValue || (isSearchMultiple && valueIsSet)) {
@@ -9558,7 +9610,7 @@
9558
9610
  return false;
9559
9611
  }
9560
9612
  module.debug('Setting selected menu item to', $selectedItem);
9561
- if (module.is.multiple()) {
9613
+ if (module.is.multiple() && !keepSearchTerm) {
9562
9614
  module.remove.searchWidth();
9563
9615
  }
9564
9616
  if (module.is.single()) {
@@ -10533,12 +10585,12 @@
10533
10585
  show: function () {
10534
10586
  module.verbose('Delaying show event to ensure user intent');
10535
10587
  clearTimeout(module.timer);
10536
- module.timer = setTimeout(module.show, settings.delay.show);
10588
+ module.timer = setTimeout(function () { module.show(); }, settings.delay.show);
10537
10589
  },
10538
10590
  hide: function () {
10539
10591
  module.verbose('Delaying hide event to ensure user intent');
10540
10592
  clearTimeout(module.timer);
10541
- module.timer = setTimeout(module.hide, settings.delay.hide);
10593
+ module.timer = setTimeout(function () { module.hide(); }, settings.delay.hide);
10542
10594
  },
10543
10595
  },
10544
10596
 
@@ -10664,7 +10716,7 @@
10664
10716
  });
10665
10717
  }
10666
10718
  clearTimeout(module.performance.timer);
10667
- module.performance.timer = setTimeout(module.performance.display, 500);
10719
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
10668
10720
  },
10669
10721
  display: function () {
10670
10722
  var
@@ -10801,6 +10853,7 @@
10801
10853
  forceSelection: false, // force a choice on blur with search selection
10802
10854
 
10803
10855
  allowAdditions: false, // whether multiple select should allow user added values
10856
+ keepSearchTerm: false, // whether the search value should be kept and menu stays filtered on item selection
10804
10857
  ignoreCase: false, // whether to consider case sensitivity when creating labels
10805
10858
  ignoreSearchCase: true, // whether to consider case sensitivity when filtering items
10806
10859
  hideAdditions: true, // whether or not to hide special message prompting a user they can enter a value
@@ -10820,8 +10873,6 @@
10820
10873
  duration: 200, // duration of transition
10821
10874
  displayType: false, // displayType of transition
10822
10875
 
10823
- glyphWidth: 1.037, // widest glyph width in em (W is 1.037 em) used to calculate multiselect input width
10824
-
10825
10876
  headerDivider: true, // whether option headers should have an additional divider line underneath when converted from <select> <optgroup>
10826
10877
 
10827
10878
  collapseOnActionable: true, // whether the dropdown should collapse upon selection of an actionable item
@@ -11144,7 +11195,7 @@
11144
11195
  })(jQuery, window, document);
11145
11196
 
11146
11197
  /*!
11147
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Embed
11198
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Embed
11148
11199
  * https://github.com/fomantic/Fomantic-UI/
11149
11200
  *
11150
11201
  *
@@ -11585,7 +11636,7 @@
11585
11636
  });
11586
11637
  }
11587
11638
  clearTimeout(module.performance.timer);
11588
- module.performance.timer = setTimeout(module.performance.display, 500);
11639
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
11589
11640
  },
11590
11641
  display: function () {
11591
11642
  var
@@ -11823,7 +11874,7 @@
11823
11874
  })(jQuery, window, document);
11824
11875
 
11825
11876
  /*!
11826
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Flyout
11877
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Flyout
11827
11878
  * https://github.com/fomantic/Fomantic-UI/
11828
11879
  *
11829
11880
  *
@@ -12349,7 +12400,9 @@
12349
12400
  $removedInputs = $(collectNodes(mutation.removedNodes)).filter('a[href], [tabindex], :input');
12350
12401
  if ($addedInputs.length > 0 || $removedInputs.length > 0) {
12351
12402
  shouldRefreshInputs = true;
12352
- ignoreAutofocus = false;
12403
+ if ($addedInputs.filter(':input').length > 0 || $removedInputs.filter(':input').length > 0) {
12404
+ ignoreAutofocus = false;
12405
+ }
12353
12406
  }
12354
12407
  }
12355
12408
 
@@ -13069,7 +13122,7 @@
13069
13122
  });
13070
13123
  }
13071
13124
  clearTimeout(module.performance.timer);
13072
- module.performance.timer = setTimeout(module.performance.display, 500);
13125
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
13073
13126
  },
13074
13127
  display: function () {
13075
13128
  var
@@ -13402,7 +13455,7 @@
13402
13455
  })(jQuery, window, document);
13403
13456
 
13404
13457
  /*!
13405
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Modal
13458
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Modal
13406
13459
  * https://github.com/fomantic/Fomantic-UI/
13407
13460
  *
13408
13461
  *
@@ -13693,7 +13746,9 @@
13693
13746
  $removedInputs = $(collectNodes(mutation.removedNodes)).filter('a[href], [tabindex], :input');
13694
13747
  if ($addedInputs.length > 0 || $removedInputs.length > 0) {
13695
13748
  shouldRefreshInputs = true;
13696
- ignoreAutofocus = false;
13749
+ if ($addedInputs.filter(':input').length > 0 || $removedInputs.filter(':input').length > 0) {
13750
+ ignoreAutofocus = false;
13751
+ }
13697
13752
  }
13698
13753
  }
13699
13754
 
@@ -13928,7 +13983,7 @@
13928
13983
  },
13929
13984
  debounce: function (method, delay) {
13930
13985
  clearTimeout(module.timer);
13931
- module.timer = setTimeout(method, delay);
13986
+ module.timer = setTimeout(function () { method(); }, delay);
13932
13987
  },
13933
13988
  keyboard: function (event) {
13934
13989
  var
@@ -14023,7 +14078,7 @@
14023
14078
  ignoreRepeatedEvents = false;
14024
14079
  if (settings.allowMultiple) {
14025
14080
  if (module.others.active()) {
14026
- $otherModals.filter('.' + className.active).find(selector.dimmer).addClass('active');
14081
+ $otherModals.filter('.' + className.active).find(selector.dimmer).removeClass('out').addClass('transition fade in active');
14027
14082
  }
14028
14083
 
14029
14084
  if (settings.detachable) {
@@ -14095,6 +14150,8 @@
14095
14150
  onStart: function () {
14096
14151
  if (!module.others.active() && !module.others.animating() && !keepDimmed) {
14097
14152
  module.hideDimmer();
14153
+ } else if (settings.allowMultiple) {
14154
+ (hideOthersToo ? $allModals : $previousModal).find(selector.dimmer).removeClass('in').addClass('out');
14098
14155
  }
14099
14156
  if (settings.keyboardShortcuts && !module.others.active()) {
14100
14157
  module.remove.keyboardShortcuts();
@@ -14107,11 +14164,7 @@
14107
14164
  $previousModal.addClass(className.front);
14108
14165
  $module.removeClass(className.front);
14109
14166
 
14110
- if (hideOthersToo) {
14111
- $allModals.find(selector.dimmer).removeClass('active');
14112
- } else {
14113
- $previousModal.find(selector.dimmer).removeClass('active');
14114
- }
14167
+ (hideOthersToo ? $allModals : $previousModal).find(selector.dimmer).removeClass('active');
14115
14168
  }
14116
14169
  if (isFunction(settings.onHidden)) {
14117
14170
  settings.onHidden.call(element);
@@ -14676,7 +14729,7 @@
14676
14729
  });
14677
14730
  }
14678
14731
  clearTimeout(module.performance.timer);
14679
- module.performance.timer = setTimeout(module.performance.display, 500);
14732
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
14680
14733
  },
14681
14734
  display: function () {
14682
14735
  var
@@ -15036,7 +15089,7 @@
15036
15089
  })(jQuery, window, document);
15037
15090
 
15038
15091
  /*!
15039
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Nag
15092
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Nag
15040
15093
  * https://github.com/fomantic/Fomantic-UI/
15041
15094
  *
15042
15095
  *
@@ -15125,7 +15178,7 @@
15125
15178
  }
15126
15179
 
15127
15180
  if (settings.displayTime > 0) {
15128
- setTimeout(module.hide, settings.displayTime);
15181
+ setTimeout(function () { module.hide(); }, settings.displayTime);
15129
15182
  }
15130
15183
  module.show();
15131
15184
  },
@@ -15414,7 +15467,7 @@
15414
15467
  });
15415
15468
  }
15416
15469
  clearTimeout(module.performance.timer);
15417
- module.performance.timer = setTimeout(module.performance.display, 500);
15470
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
15418
15471
  },
15419
15472
  display: function () {
15420
15473
  var
@@ -15597,7 +15650,7 @@
15597
15650
  })(jQuery, window, document);
15598
15651
 
15599
15652
  /*!
15600
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Popup
15653
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Popup
15601
15654
  * https://github.com/fomantic/Fomantic-UI/
15602
15655
  *
15603
15656
  *
@@ -15792,7 +15845,7 @@
15792
15845
  ;
15793
15846
  clearTimeout(module.hideTimer);
15794
15847
  if (!openedWithTouch || (openedWithTouch && settings.addTouchEvents)) {
15795
- module.showTimer = setTimeout(module.show, delay);
15848
+ module.showTimer = setTimeout(function () { module.show(); }, delay);
15796
15849
  }
15797
15850
  },
15798
15851
  end: function () {
@@ -15802,7 +15855,7 @@
15802
15855
  : settings.delay
15803
15856
  ;
15804
15857
  clearTimeout(module.showTimer);
15805
- module.hideTimer = setTimeout(module.hide, delay);
15858
+ module.hideTimer = setTimeout(function () { module.hide(); }, delay);
15806
15859
  },
15807
15860
  touchstart: function (event) {
15808
15861
  openedWithTouch = true;
@@ -15846,9 +15899,11 @@
15846
15899
  // generates popup html from metadata
15847
15900
  create: function () {
15848
15901
  var
15902
+ targetSibling = $target.next(selector.popup),
15903
+ contentFallback = !settings.popup && targetSibling.length === 0 ? $module.attr('title') : false,
15849
15904
  html = module.get.html(),
15850
15905
  title = module.get.title(),
15851
- content = module.get.content()
15906
+ content = module.get.content(contentFallback)
15852
15907
  ;
15853
15908
 
15854
15909
  if (html || content || title) {
@@ -15889,10 +15944,10 @@
15889
15944
  if (settings.hoverable) {
15890
15945
  module.bind.popup();
15891
15946
  }
15892
- } else if ($target.next(selector.popup).length > 0) {
15947
+ } else if (targetSibling.length > 0) {
15893
15948
  module.verbose('Pre-existing popup found');
15894
15949
  settings.inline = true;
15895
- settings.popup = $target.next(selector.popup).data(metadata.activator, $module);
15950
+ settings.popup = targetSibling.data(metadata.activator, $module);
15896
15951
  module.refresh();
15897
15952
  if (settings.hoverable) {
15898
15953
  module.bind.popup();
@@ -16082,10 +16137,10 @@
16082
16137
 
16083
16138
  return $module.data(metadata.title) || settings.title;
16084
16139
  },
16085
- content: function () {
16140
+ content: function (fallback) {
16086
16141
  $module.removeData(metadata.content);
16087
16142
 
16088
- return $module.data(metadata.content) || settings.content || $module.attr('title');
16143
+ return $module.data(metadata.content) || settings.content || fallback;
16089
16144
  },
16090
16145
  variation: function () {
16091
16146
  $module.removeData(metadata.variation);
@@ -16840,7 +16895,7 @@
16840
16895
  });
16841
16896
  }
16842
16897
  clearTimeout(module.performance.timer);
16843
- module.performance.timer = setTimeout(module.performance.display, 500);
16898
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
16844
16899
  },
16845
16900
  display: function () {
16846
16901
  var
@@ -17151,7 +17206,7 @@
17151
17206
  })(jQuery, window, document);
17152
17207
 
17153
17208
  /*!
17154
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Progress
17209
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Progress
17155
17210
  * https://github.com/fomantic/Fomantic-UI/
17156
17211
  *
17157
17212
  *
@@ -17943,7 +17998,7 @@
17943
17998
  });
17944
17999
  }
17945
18000
  clearTimeout(module.performance.timer);
17946
- module.performance.timer = setTimeout(module.performance.display, 500);
18001
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
17947
18002
  },
17948
18003
  display: function () {
17949
18004
  var
@@ -18129,7 +18184,7 @@
18129
18184
  })(jQuery, window, document);
18130
18185
 
18131
18186
  /*!
18132
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Slider
18187
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Slider
18133
18188
  * https://github.com/fomantic/Fomantic-UI/
18134
18189
  *
18135
18190
  *
@@ -18233,9 +18288,7 @@
18233
18288
  module.setup.layout();
18234
18289
  module.setup.labels();
18235
18290
 
18236
- if (!module.is.disabled()) {
18237
- module.bind.events();
18238
- }
18291
+ module.bind.events();
18239
18292
 
18240
18293
  module.read.metadata();
18241
18294
  module.read.settings();
@@ -18267,20 +18320,32 @@
18267
18320
  $module.attr('tabindex', 0);
18268
18321
  }
18269
18322
  if ($module.find('.inner').length === 0) {
18270
- $module.append("<div class='inner'>"
18271
- + "<div class='track'></div>"
18272
- + "<div class='track-fill'></div>"
18273
- + "<div class='thumb'></div>"
18323
+ $module.append('<div class="inner">'
18324
+ + '<div class="track"></div>'
18325
+ + '<div class="track-fill"></div>'
18326
+ + '<div class="thumb"></div>'
18274
18327
  + '</div>');
18275
18328
  }
18276
18329
  precision = module.get.precision();
18277
18330
  $thumb = $module.find('.thumb:not(.second)');
18331
+ if (settings.showThumbTooltip) {
18332
+ $thumb
18333
+ .attr('data-position', settings.tooltipConfig.position)
18334
+ .attr('data-variation', settings.tooltipConfig.variation)
18335
+ ;
18336
+ }
18278
18337
  $currThumb = $thumb;
18279
18338
  if (module.is.range()) {
18280
18339
  if ($module.find('.thumb.second').length === 0) {
18281
- $module.find('.inner').append("<div class='thumb second'></div>");
18340
+ $module.find('.inner').append('<div class="thumb second"></div>');
18282
18341
  }
18283
18342
  $secondThumb = $module.find('.thumb.second');
18343
+ if (settings.showThumbTooltip) {
18344
+ $secondThumb
18345
+ .attr('data-position', settings.tooltipConfig.position)
18346
+ .attr('data-variation', settings.tooltipConfig.variation)
18347
+ ;
18348
+ }
18284
18349
  }
18285
18350
  $track = $module.find('.track');
18286
18351
  $trackFill = $module.find('.track-fill');
@@ -18334,9 +18399,10 @@
18334
18399
  for (var i = 0, len = module.get.numLabels(); i <= len; i++) {
18335
18400
  var
18336
18401
  labelText = module.get.label(i),
18337
- $label = labelText !== ''
18402
+ showLabel = settings.restrictedLabels.length === 0 || settings.restrictedLabels.indexOf(labelText) >= 0,
18403
+ $label = labelText !== '' && (showLabel || settings.showLabelTicks === 'always')
18338
18404
  ? (!(i % module.get.gapRatio())
18339
- ? $('<li class="label">' + labelText + '</li>')
18405
+ ? $('<li class="label">' + (showLabel ? labelText : '') + '</li>')
18340
18406
  : $('<li class="halftick label"></li>'))
18341
18407
  : null,
18342
18408
  ratio = i / len
@@ -18480,6 +18546,18 @@
18480
18546
  ;
18481
18547
  $currThumb = initialPosition > newPos ? $thumb : $secondThumb;
18482
18548
  }
18549
+ if (module.is.range() && (settings.minRange || settings.maxRange)) {
18550
+ var currentRangeDiff = module.get.currentRangeDiff(value),
18551
+ isSecondThumb = $currThumb.hasClass('second')
18552
+ ;
18553
+ if ((settings.minRange && currentRangeDiff < settings.minRange)
18554
+ || (settings.maxRange && currentRangeDiff > settings.maxRange)
18555
+ || (settings.preventCrossover && !isSecondThumb && value > module.secondThumbVal)
18556
+ || (settings.preventCrossover && isSecondThumb && value < module.thumbVal)
18557
+ ) {
18558
+ return;
18559
+ }
18560
+ }
18483
18561
  if (module.get.step() === 0 || module.is.smooth()) {
18484
18562
  var
18485
18563
  thumbVal = module.thumbVal,
@@ -18515,6 +18593,17 @@
18515
18593
  return;
18516
18594
  }
18517
18595
  var value = module.determine.valueFromEvent(event);
18596
+ if (module.is.range() && (settings.minRange || settings.maxRange)) {
18597
+ if ($currThumb === undefined) {
18598
+ $currThumb = value <= module.get.currentThumbValue() ? $thumb : $secondThumb;
18599
+ }
18600
+ var currentRangeDiff = module.get.currentRangeDiff(value);
18601
+ if (settings.minRange && currentRangeDiff < settings.minRange) {
18602
+ value = module.get.edgeValue(value, settings.minRange);
18603
+ } else if (settings.maxRange && currentRangeDiff > settings.maxRange) {
18604
+ value = module.get.edgeValue(value, settings.maxRange);
18605
+ }
18606
+ }
18518
18607
  module.set.value(value);
18519
18608
  module.unbind.slidingEvents();
18520
18609
  touchIdentifier = undefined;
@@ -18531,6 +18620,9 @@
18531
18620
  }
18532
18621
  },
18533
18622
  keydown: function (event, first) {
18623
+ if (module.is.disabled()) {
18624
+ return;
18625
+ }
18534
18626
  if (settings.preventCrossover && module.is.range() && module.thumbVal === module.secondThumbVal) {
18535
18627
  $currThumb = undefined;
18536
18628
  }
@@ -18567,7 +18659,7 @@
18567
18659
  }
18568
18660
  },
18569
18661
  activateFocus: function (event) {
18570
- if (!module.is.focused() && module.is.hover() && module.determine.keyMovement(event) !== NO_STEP) {
18662
+ if (!module.is.disabled() && !module.is.focused() && module.is.hover() && module.determine.keyMovement(event) !== NO_STEP) {
18571
18663
  event.preventDefault();
18572
18664
  module.event.keydown(event, true);
18573
18665
  $module.trigger('focus');
@@ -18632,7 +18724,13 @@
18632
18724
 
18633
18725
  is: {
18634
18726
  range: function () {
18635
- return $module.hasClass(settings.className.range);
18727
+ var isRange = $module.hasClass(className.range);
18728
+ if (!isRange && (settings.minRange || settings.maxRange)) {
18729
+ $module.addClass(className.range);
18730
+ isRange = true;
18731
+ }
18732
+
18733
+ return isRange;
18636
18734
  },
18637
18735
  hover: function () {
18638
18736
  return isHover;
@@ -18641,23 +18739,56 @@
18641
18739
  return $module.is(':focus');
18642
18740
  },
18643
18741
  disabled: function () {
18644
- return $module.hasClass(settings.className.disabled);
18742
+ return $module.hasClass(className.disabled);
18645
18743
  },
18646
18744
  labeled: function () {
18647
- return $module.hasClass(settings.className.labeled);
18745
+ var isLabeled = $module.hasClass(className.labeled);
18746
+ if (!isLabeled && (settings.restrictedLabels.length > 0 || settings.showLabelTicks !== false)) {
18747
+ $module.addClass(className.labeled);
18748
+ isLabeled = true;
18749
+ }
18750
+
18751
+ return isLabeled;
18648
18752
  },
18649
18753
  reversed: function () {
18650
- return $module.hasClass(settings.className.reversed);
18754
+ return $module.hasClass(className.reversed);
18651
18755
  },
18652
18756
  vertical: function () {
18653
- return $module.hasClass(settings.className.vertical);
18757
+ return $module.hasClass(className.vertical);
18654
18758
  },
18655
18759
  smooth: function () {
18656
- return settings.smooth || $module.hasClass(settings.className.smooth);
18760
+ return settings.smooth || $module.hasClass(className.smooth);
18657
18761
  },
18658
18762
  },
18659
18763
 
18660
18764
  get: {
18765
+ currentRangeDiff: function (value) {
18766
+ var currentRangeDiff;
18767
+ if ($currThumb.hasClass('second')) {
18768
+ currentRangeDiff = module.thumbVal < value
18769
+ ? value - module.thumbVal
18770
+ : module.thumbVal - value;
18771
+ } else {
18772
+ currentRangeDiff = module.secondThumbVal > value
18773
+ ? module.secondThumbVal - value
18774
+ : value - module.secondThumbVal;
18775
+ }
18776
+
18777
+ return currentRangeDiff;
18778
+ },
18779
+ edgeValue: function (value, edgeValue) {
18780
+ if ($currThumb.hasClass('second')) {
18781
+ value = module.thumbVal < value
18782
+ ? module.thumbVal + edgeValue
18783
+ : module.thumbVal - edgeValue;
18784
+ } else {
18785
+ value = module.secondThumbVal < value
18786
+ ? module.secondThumbVal + edgeValue
18787
+ : module.secondThumbVal - edgeValue;
18788
+ }
18789
+
18790
+ return value;
18791
+ },
18661
18792
  trackOffset: function () {
18662
18793
  if (module.is.vertical()) {
18663
18794
  return $track.offset().top;
@@ -18861,13 +18992,10 @@
18861
18992
  return thumbDelta <= secondThumbDelta ? thumbPos : secondThumbPos;
18862
18993
  },
18863
18994
  thumbPos: function ($element) {
18864
- var
18865
- pos = module.is.vertical()
18866
- ? (module.is.reversed() ? $element.css('bottom') : $element.css('top'))
18867
- : (module.is.reversed() ? $element.css('right') : $element.css('left'))
18995
+ return module.is.vertical()
18996
+ ? (module.is.reversed() ? $element.css('bottom') : $element.css('top'))
18997
+ : (module.is.reversed() ? $element.css('right') : $element.css('left'))
18868
18998
  ;
18869
-
18870
- return pos;
18871
18999
  },
18872
19000
  positionFromValue: function (val) {
18873
19001
  var
@@ -18891,6 +19019,7 @@
18891
19019
  position = Math.round(ratio * trackLength),
18892
19020
  adjustedPos = step === 0 ? position : Math.round(position / step) * step
18893
19021
  ;
19022
+ module.verbose('Determined position: ' + position + ' from ratio: ' + ratio);
18894
19023
 
18895
19024
  return adjustedPos;
18896
19025
  },
@@ -19114,12 +19243,12 @@
19114
19243
  }
19115
19244
  if (!$currThumb.hasClass('second')) {
19116
19245
  if (settings.preventCrossover && module.is.range()) {
19117
- newValue = Math.min(module.secondThumbVal, newValue);
19246
+ newValue = Math.min(module.secondThumbVal - (settings.minRange || 0), newValue);
19118
19247
  }
19119
19248
  module.thumbVal = newValue;
19120
19249
  } else {
19121
19250
  if (settings.preventCrossover && module.is.range()) {
19122
- newValue = Math.max(module.thumbVal, newValue);
19251
+ newValue = Math.max(module.thumbVal + (settings.minRange || 0), newValue);
19123
19252
  }
19124
19253
  module.secondThumbVal = newValue;
19125
19254
  }
@@ -19138,6 +19267,10 @@
19138
19267
  thumbVal = module.thumbVal || module.get.min(),
19139
19268
  secondThumbVal = module.secondThumbVal || module.get.min()
19140
19269
  ;
19270
+ if (settings.showThumbTooltip) {
19271
+ var precision = module.get.precision();
19272
+ $targetThumb.attr('data-tooltip', Math.round(newValue * precision) / precision);
19273
+ }
19141
19274
  if (module.is.range()) {
19142
19275
  if (!$targetThumb.hasClass('second')) {
19143
19276
  position = newPos;
@@ -19226,6 +19359,14 @@
19226
19359
  settings: function () {
19227
19360
  if (settings.start !== false) {
19228
19361
  if (module.is.range()) {
19362
+ var rangeDiff = settings.end - settings.start;
19363
+ if (rangeDiff < 0
19364
+ || (settings.minRange && rangeDiff < settings.minRange)
19365
+ || (settings.maxRange && rangeDiff > settings.maxRange)
19366
+ || (settings.minRange && settings.maxRange && settings.minRange > settings.maxRange)
19367
+ ) {
19368
+ module.error(error.invalidRanges, settings.start, settings.end, settings.minRange, settings.maxRange);
19369
+ }
19229
19370
  module.debug('Start position set from settings', settings.start, settings.end);
19230
19371
  module.set.rangeValue(settings.start, settings.end);
19231
19372
  } else {
@@ -19306,7 +19447,7 @@
19306
19447
  });
19307
19448
  }
19308
19449
  clearTimeout(module.performance.timer);
19309
- module.performance.timer = setTimeout(module.performance.display, 500);
19450
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
19310
19451
  },
19311
19452
  display: function () {
19312
19453
  var
@@ -19418,6 +19559,7 @@
19418
19559
  error: {
19419
19560
  method: 'The method you called is not defined.',
19420
19561
  notrange: 'This slider is not a range slider',
19562
+ invalidRanges: 'Invalid range settings (start/end/minRange/maxRange)',
19421
19563
  },
19422
19564
 
19423
19565
  metadata: {
@@ -19430,6 +19572,8 @@
19430
19572
  step: 1,
19431
19573
  start: 0,
19432
19574
  end: 20,
19575
+ minRange: false,
19576
+ maxRange: false,
19433
19577
  labelType: 'number',
19434
19578
  showLabelTicks: false,
19435
19579
  smooth: false,
@@ -19466,6 +19610,13 @@
19466
19610
  downArrow: 40,
19467
19611
  },
19468
19612
 
19613
+ restrictedLabels: [],
19614
+ showThumbTooltip: false,
19615
+ tooltipConfig: {
19616
+ position: 'top center',
19617
+ variation: 'tiny black',
19618
+ },
19619
+
19469
19620
  labelTypes: {
19470
19621
  number: 'number',
19471
19622
  letter: 'letter',
@@ -19477,7 +19628,7 @@
19477
19628
  })(jQuery, window, document);
19478
19629
 
19479
19630
  /*!
19480
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Rating
19631
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Rating
19481
19632
  * https://github.com/fomantic/Fomantic-UI/
19482
19633
  *
19483
19634
  *
@@ -19846,7 +19997,7 @@
19846
19997
  });
19847
19998
  }
19848
19999
  clearTimeout(module.performance.timer);
19849
- module.performance.timer = setTimeout(module.performance.display, 500);
20000
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
19850
20001
  },
19851
20002
  display: function () {
19852
20003
  var
@@ -20016,7 +20167,7 @@
20016
20167
  })(jQuery, window, document);
20017
20168
 
20018
20169
  /*!
20019
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Search
20170
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Search
20020
20171
  * https://github.com/fomantic/Fomantic-UI/
20021
20172
  *
20022
20173
  *
@@ -20186,7 +20337,7 @@
20186
20337
  callback = function () {
20187
20338
  module.cancel.query();
20188
20339
  module.remove.focus();
20189
- module.timer = setTimeout(module.hideResults, settings.hideDelay);
20340
+ module.timer = setTimeout(function () { module.hideResults(); }, settings.hideDelay);
20190
20341
  }
20191
20342
  ;
20192
20343
  if (pageLostFocus) {
@@ -20578,6 +20729,7 @@
20578
20729
  if (cache) {
20579
20730
  module.debug('Reading result from cache', searchTerm);
20580
20731
  module.save.results(cache.results);
20732
+ settings.onResults.call(element, cache.results, true);
20581
20733
  module.addResults(cache.html);
20582
20734
  module.inject.id(cache.results);
20583
20735
  callback();
@@ -21187,7 +21339,7 @@
21187
21339
  });
21188
21340
  }
21189
21341
  clearTimeout(module.performance.timer);
21190
- module.performance.timer = setTimeout(module.performance.display, 500);
21342
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
21191
21343
  },
21192
21344
  display: function () {
21193
21345
  var
@@ -21362,7 +21514,7 @@
21362
21514
  onResultsAdd: false,
21363
21515
 
21364
21516
  onSearchQuery: function (query) {},
21365
- onResults: function (response) {},
21517
+ onResults: function (response, fromCache) {},
21366
21518
 
21367
21519
  onResultsOpen: function () {},
21368
21520
  onResultsClose: function () {},
@@ -21593,7 +21745,7 @@
21593
21745
  })(jQuery, window, document);
21594
21746
 
21595
21747
  /*!
21596
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Shape
21748
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Shape
21597
21749
  * https://github.com/fomantic/Fomantic-UI/
21598
21750
  *
21599
21751
  *
@@ -22217,7 +22369,7 @@
22217
22369
  });
22218
22370
  }
22219
22371
  clearTimeout(module.performance.timer);
22220
- module.performance.timer = setTimeout(module.performance.display, 500);
22372
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
22221
22373
  },
22222
22374
  display: function () {
22223
22375
  var
@@ -22389,7 +22541,7 @@
22389
22541
  })(jQuery, window, document);
22390
22542
 
22391
22543
  /*!
22392
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Sidebar
22544
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Sidebar
22393
22545
  * https://github.com/fomantic/Fomantic-UI/
22394
22546
  *
22395
22547
  *
@@ -23288,7 +23440,7 @@
23288
23440
  });
23289
23441
  }
23290
23442
  clearTimeout(module.performance.timer);
23291
- module.performance.timer = setTimeout(module.performance.display, 500);
23443
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
23292
23444
  },
23293
23445
  display: function () {
23294
23446
  var
@@ -23472,7 +23624,7 @@
23472
23624
  })(jQuery, window, document);
23473
23625
 
23474
23626
  /*!
23475
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Sticky
23627
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Sticky
23476
23628
  * https://github.com/fomantic/Fomantic-UI/
23477
23629
  *
23478
23630
  *
@@ -24219,7 +24371,7 @@
24219
24371
  });
24220
24372
  }
24221
24373
  clearTimeout(module.performance.timer);
24222
- module.performance.timer = setTimeout(module.performance.display, 0);
24374
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 0);
24223
24375
  },
24224
24376
  display: function () {
24225
24377
  var
@@ -24388,7 +24540,7 @@
24388
24540
  })(jQuery, window, document);
24389
24541
 
24390
24542
  /*!
24391
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Tab
24543
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Tab
24392
24544
  * https://github.com/fomantic/Fomantic-UI/
24393
24545
  *
24394
24546
  *
@@ -24488,7 +24640,7 @@
24488
24640
  module.bind.events();
24489
24641
 
24490
24642
  if (settings.history && !initializedHistory) {
24491
- module.initializeHistory();
24643
+ settings.history = module.initializeHistory();
24492
24644
  initializedHistory = true;
24493
24645
  }
24494
24646
 
@@ -24498,7 +24650,7 @@
24498
24650
  module.debug('No active tab detected, setting tab active', activeTab);
24499
24651
  module.changeTab(activeTab);
24500
24652
  }
24501
- if (activeTab !== null && settings.history) {
24653
+ if (activeTab !== null && settings.history && settings.historyType === 'state') {
24502
24654
  var autoUpdate = $.address.autoUpdate();
24503
24655
  $.address.autoUpdate(false);
24504
24656
  $.address.value(activeTab);
@@ -24591,6 +24743,8 @@
24591
24743
  $.address
24592
24744
  .bind('change', module.event.history.change)
24593
24745
  ;
24746
+
24747
+ return true;
24594
24748
  },
24595
24749
 
24596
24750
  event: {
@@ -25175,7 +25329,7 @@
25175
25329
  });
25176
25330
  }
25177
25331
  clearTimeout(module.performance.timer);
25178
- module.performance.timer = setTimeout(module.performance.display, 500);
25332
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
25179
25333
  },
25180
25334
  display: function () {
25181
25335
  var
@@ -25352,7 +25506,7 @@
25352
25506
  })(jQuery, window, document);
25353
25507
 
25354
25508
  /*!
25355
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Toast
25509
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Toast
25356
25510
  * https://github.com/fomantic/Fomantic-UI/
25357
25511
  *
25358
25512
  *
@@ -26055,7 +26209,7 @@
26055
26209
  });
26056
26210
  }
26057
26211
  clearTimeout(module.performance.timer);
26058
- module.performance.timer = setTimeout(module.performance.display, 500);
26212
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
26059
26213
  },
26060
26214
  display: function () {
26061
26215
  var
@@ -26313,7 +26467,7 @@
26313
26467
  })(jQuery, window, document);
26314
26468
 
26315
26469
  /*!
26316
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Transition
26470
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Transition
26317
26471
  * https://github.com/fomantic/Fomantic-UI/
26318
26472
  *
26319
26473
  *
@@ -26456,7 +26610,7 @@
26456
26610
  ? ($allModules.length - index) * interval
26457
26611
  : index * interval;
26458
26612
  module.debug('Delaying animation by', delay);
26459
- setTimeout(module.animate, delay);
26613
+ setTimeout(function () { module.animate(); }, delay);
26460
26614
  },
26461
26615
 
26462
26616
  animate: function (overrideSettings) {
@@ -27163,7 +27317,7 @@
27163
27317
  });
27164
27318
  }
27165
27319
  clearTimeout(module.performance.timer);
27166
- module.performance.timer = setTimeout(module.performance.display, 500);
27320
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
27167
27321
  },
27168
27322
  display: function () {
27169
27323
  var
@@ -27344,7 +27498,7 @@
27344
27498
  })(jQuery, window, document);
27345
27499
 
27346
27500
  /*!
27347
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - API
27501
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - API
27348
27502
  * https://github.com/fomantic/Fomantic-UI/
27349
27503
  *
27350
27504
  *
@@ -27991,7 +28145,7 @@
27991
28145
  module.debug('Adding error state');
27992
28146
  module.set.error();
27993
28147
  if (module.should.removeError()) {
27994
- setTimeout(module.remove.error, settings.errorDuration);
28148
+ setTimeout(function () { module.remove.error(); }, settings.errorDuration);
27995
28149
  }
27996
28150
  }
27997
28151
  module.debug('API Request failed', errorMessage, xhr);
@@ -28315,7 +28469,7 @@
28315
28469
  });
28316
28470
  }
28317
28471
  clearTimeout(module.performance.timer);
28318
- module.performance.timer = setTimeout(module.performance.display, 500);
28472
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
28319
28473
  },
28320
28474
  display: function () {
28321
28475
  var
@@ -28565,7 +28719,7 @@
28565
28719
  })(jQuery, window, document);
28566
28720
 
28567
28721
  /*!
28568
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - State
28722
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - State
28569
28723
  * https://github.com/fomantic/Fomantic-UI/
28570
28724
  *
28571
28725
  *
@@ -29048,7 +29202,7 @@
29048
29202
  });
29049
29203
  }
29050
29204
  clearTimeout(module.performance.timer);
29051
- module.performance.timer = setTimeout(module.performance.display, 500);
29205
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
29052
29206
  },
29053
29207
  display: function () {
29054
29208
  var
@@ -29261,7 +29415,7 @@
29261
29415
  })(jQuery, window, document);
29262
29416
 
29263
29417
  /*!
29264
- * # Fomantic-UI 2.9.3-beta.5+b6b51ca - Visibility
29418
+ * # Fomantic-UI 2.9.3-beta.50+d1f0dad - Visibility
29265
29419
  * https://github.com/fomantic/Fomantic-UI/
29266
29420
  *
29267
29421
  *
@@ -30350,7 +30504,7 @@
30350
30504
  });
30351
30505
  }
30352
30506
  clearTimeout(module.performance.timer);
30353
- module.performance.timer = setTimeout(module.performance.display, 500);
30507
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
30354
30508
  },
30355
30509
  display: function () {
30356
30510
  var