fomantic-ui 2.9.4-beta.3 → 2.9.4-beta.30

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 (236) hide show
  1. package/.all-contributorsrc +20 -1
  2. package/.eslintrc.js +17 -0
  3. package/.github/workflows/ci.yml +5 -5
  4. package/.github/workflows/nightly.yml +1 -1
  5. package/.github/workflows/release.yml +1 -1
  6. package/CONTRIBUTORS.md +2 -0
  7. package/dist/components/accordion.css +1 -1
  8. package/dist/components/accordion.js +4 -2
  9. package/dist/components/accordion.min.css +1 -1
  10. package/dist/components/accordion.min.js +2 -2
  11. package/dist/components/ad.css +1 -1
  12. package/dist/components/ad.min.css +1 -1
  13. package/dist/components/api.js +7 -3
  14. package/dist/components/api.min.js +2 -2
  15. package/dist/components/breadcrumb.css +1 -1
  16. package/dist/components/breadcrumb.min.css +1 -1
  17. package/dist/components/button.css +19 -3
  18. package/dist/components/button.min.css +2 -2
  19. package/dist/components/calendar.css +1 -1
  20. package/dist/components/calendar.js +4 -2
  21. package/dist/components/calendar.min.css +1 -1
  22. package/dist/components/calendar.min.js +2 -2
  23. package/dist/components/card.css +1 -1
  24. package/dist/components/card.min.css +1 -1
  25. package/dist/components/checkbox.css +1 -1
  26. package/dist/components/checkbox.js +4 -2
  27. package/dist/components/checkbox.min.css +1 -1
  28. package/dist/components/checkbox.min.js +2 -2
  29. package/dist/components/comment.css +1 -1
  30. package/dist/components/comment.min.css +1 -1
  31. package/dist/components/container.css +1 -1
  32. package/dist/components/container.min.css +1 -1
  33. package/dist/components/dimmer.css +1 -1
  34. package/dist/components/dimmer.js +4 -2
  35. package/dist/components/dimmer.min.css +1 -1
  36. package/dist/components/dimmer.min.js +2 -2
  37. package/dist/components/divider.css +1 -1
  38. package/dist/components/divider.min.css +1 -1
  39. package/dist/components/dropdown.css +15 -17
  40. package/dist/components/dropdown.js +18 -8
  41. package/dist/components/dropdown.min.css +2 -2
  42. package/dist/components/dropdown.min.js +3 -3
  43. package/dist/components/embed.css +1 -1
  44. package/dist/components/embed.js +4 -2
  45. package/dist/components/embed.min.css +1 -1
  46. package/dist/components/embed.min.js +2 -2
  47. package/dist/components/emoji.css +1 -1
  48. package/dist/components/emoji.min.css +1 -1
  49. package/dist/components/feed.css +1 -1
  50. package/dist/components/feed.min.css +1 -1
  51. package/dist/components/flag.css +1 -1
  52. package/dist/components/flag.min.css +1 -1
  53. package/dist/components/flyout.css +1 -1
  54. package/dist/components/flyout.js +4 -2
  55. package/dist/components/flyout.min.css +1 -1
  56. package/dist/components/flyout.min.js +2 -2
  57. package/dist/components/form.css +15 -5
  58. package/dist/components/form.js +42 -17
  59. package/dist/components/form.min.css +2 -2
  60. package/dist/components/form.min.js +3 -3
  61. package/dist/components/grid.css +5 -5
  62. package/dist/components/grid.min.css +2 -2
  63. package/dist/components/header.css +4 -1
  64. package/dist/components/header.min.css +2 -2
  65. package/dist/components/icon.css +1 -1
  66. package/dist/components/icon.min.css +1 -1
  67. package/dist/components/image.css +1 -1
  68. package/dist/components/image.min.css +1 -1
  69. package/dist/components/input.css +30 -10
  70. package/dist/components/input.min.css +2 -2
  71. package/dist/components/item.css +1 -1
  72. package/dist/components/item.min.css +1 -1
  73. package/dist/components/label.css +1 -2
  74. package/dist/components/label.min.css +2 -2
  75. package/dist/components/list.css +1 -1
  76. package/dist/components/list.min.css +1 -1
  77. package/dist/components/loader.css +1 -1
  78. package/dist/components/loader.min.css +1 -1
  79. package/dist/components/menu.css +1 -2
  80. package/dist/components/menu.min.css +2 -2
  81. package/dist/components/message.css +1 -1
  82. package/dist/components/message.min.css +1 -1
  83. package/dist/components/modal.css +1 -1
  84. package/dist/components/modal.js +7 -3
  85. package/dist/components/modal.min.css +1 -1
  86. package/dist/components/modal.min.js +2 -2
  87. package/dist/components/nag.css +1 -1
  88. package/dist/components/nag.js +7 -3
  89. package/dist/components/nag.min.css +1 -1
  90. package/dist/components/nag.min.js +2 -2
  91. package/dist/components/placeholder.css +1 -1
  92. package/dist/components/placeholder.min.css +1 -1
  93. package/dist/components/popup.css +1 -2
  94. package/dist/components/popup.js +10 -4
  95. package/dist/components/popup.min.css +2 -2
  96. package/dist/components/popup.min.js +2 -2
  97. package/dist/components/progress.css +1 -1
  98. package/dist/components/progress.js +4 -2
  99. package/dist/components/progress.min.css +1 -1
  100. package/dist/components/progress.min.js +2 -2
  101. package/dist/components/rail.css +1 -1
  102. package/dist/components/rail.min.css +1 -1
  103. package/dist/components/rating.css +1 -1
  104. package/dist/components/rating.js +4 -2
  105. package/dist/components/rating.min.css +1 -1
  106. package/dist/components/rating.min.js +2 -2
  107. package/dist/components/reset.css +1 -1
  108. package/dist/components/reset.min.css +1 -1
  109. package/dist/components/reveal.css +1 -1
  110. package/dist/components/reveal.min.css +1 -1
  111. package/dist/components/search.css +1 -1
  112. package/dist/components/search.js +7 -3
  113. package/dist/components/search.min.css +1 -1
  114. package/dist/components/search.min.js +2 -2
  115. package/dist/components/segment.css +1 -1
  116. package/dist/components/segment.min.css +1 -1
  117. package/dist/components/shape.css +1 -1
  118. package/dist/components/shape.js +4 -2
  119. package/dist/components/shape.min.css +1 -1
  120. package/dist/components/shape.min.js +2 -2
  121. package/dist/components/sidebar.css +1 -1
  122. package/dist/components/sidebar.js +4 -2
  123. package/dist/components/sidebar.min.css +1 -1
  124. package/dist/components/sidebar.min.js +2 -2
  125. package/dist/components/site.css +1 -1
  126. package/dist/components/site.js +4 -2
  127. package/dist/components/site.min.css +1 -1
  128. package/dist/components/site.min.js +2 -2
  129. package/dist/components/slider.css +1 -1
  130. package/dist/components/slider.js +4 -2
  131. package/dist/components/slider.min.css +1 -1
  132. package/dist/components/slider.min.js +2 -2
  133. package/dist/components/state.js +4 -2
  134. package/dist/components/state.min.js +2 -2
  135. package/dist/components/statistic.css +1 -1
  136. package/dist/components/statistic.min.css +1 -1
  137. package/dist/components/step.css +1 -1
  138. package/dist/components/step.min.css +1 -1
  139. package/dist/components/sticky.css +1 -1
  140. package/dist/components/sticky.js +4 -2
  141. package/dist/components/sticky.min.css +1 -1
  142. package/dist/components/sticky.min.js +2 -2
  143. package/dist/components/tab.css +1 -1
  144. package/dist/components/tab.js +4 -2
  145. package/dist/components/tab.min.css +1 -1
  146. package/dist/components/tab.min.js +2 -2
  147. package/dist/components/table.css +1 -1
  148. package/dist/components/table.min.css +1 -1
  149. package/dist/components/text.css +1 -1
  150. package/dist/components/text.min.css +1 -1
  151. package/dist/components/toast.css +1 -1
  152. package/dist/components/toast.js +4 -2
  153. package/dist/components/toast.min.css +1 -1
  154. package/dist/components/toast.min.js +2 -2
  155. package/dist/components/transition.css +1 -1
  156. package/dist/components/transition.js +7 -3
  157. package/dist/components/transition.min.css +1 -1
  158. package/dist/components/transition.min.js +2 -2
  159. package/dist/components/visibility.js +4 -2
  160. package/dist/components/visibility.min.js +2 -2
  161. package/dist/semantic.css +143 -92
  162. package/dist/semantic.js +175 -80
  163. package/dist/semantic.min.css +3 -3
  164. package/dist/semantic.min.js +3 -3
  165. package/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  166. package/dist/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  167. package/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  168. package/dist/themes/github/assets/fonts/LICENSE.txt +94 -0
  169. package/dist/themes/material/assets/fonts/LICENSE.txt +202 -0
  170. package/package.json +3 -3
  171. package/src/definitions/behaviors/api.js +6 -2
  172. package/src/definitions/behaviors/form.js +41 -16
  173. package/src/definitions/behaviors/state.js +3 -1
  174. package/src/definitions/behaviors/visibility.js +3 -1
  175. package/src/definitions/collections/form.less +14 -4
  176. package/src/definitions/collections/grid.less +4 -4
  177. package/src/definitions/elements/button.less +25 -3
  178. package/src/definitions/elements/header.less +5 -0
  179. package/src/definitions/elements/input.less +14 -6
  180. package/src/definitions/globals/site.js +3 -1
  181. package/src/definitions/modules/accordion.js +3 -1
  182. package/src/definitions/modules/calendar.js +3 -1
  183. package/src/definitions/modules/checkbox.js +3 -1
  184. package/src/definitions/modules/dimmer.js +3 -1
  185. package/src/definitions/modules/dropdown.js +17 -7
  186. package/src/definitions/modules/dropdown.less +2 -2
  187. package/src/definitions/modules/embed.js +3 -1
  188. package/src/definitions/modules/flyout.js +3 -1
  189. package/src/definitions/modules/modal.js +6 -2
  190. package/src/definitions/modules/nag.js +6 -2
  191. package/src/definitions/modules/popup.js +9 -3
  192. package/src/definitions/modules/progress.js +3 -1
  193. package/src/definitions/modules/rating.js +3 -1
  194. package/src/definitions/modules/search.js +6 -2
  195. package/src/definitions/modules/shape.js +3 -1
  196. package/src/definitions/modules/sidebar.js +3 -1
  197. package/src/definitions/modules/slider.js +3 -1
  198. package/src/definitions/modules/sticky.js +3 -1
  199. package/src/definitions/modules/tab.js +3 -1
  200. package/src/definitions/modules/toast.js +3 -1
  201. package/src/definitions/modules/transition.js +6 -2
  202. package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
  203. package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  204. package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  205. package/src/themes/default/collections/form.variables +1 -0
  206. package/src/themes/default/elements/button.variables +2 -0
  207. package/src/themes/default/globals/variation.variables +1 -0
  208. package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
  209. package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
  210. package/types/fomantic-ui-accordion.d.ts +1 -1
  211. package/types/fomantic-ui-api.d.ts +9 -3
  212. package/types/fomantic-ui-calendar.d.ts +93 -8
  213. package/types/fomantic-ui-checkbox.d.ts +14 -4
  214. package/types/fomantic-ui-dimmer.d.ts +1 -1
  215. package/types/fomantic-ui-dropdown.d.ts +30 -35
  216. package/types/fomantic-ui-embed.d.ts +1 -1
  217. package/types/fomantic-ui-flyout.d.ts +24 -10
  218. package/types/fomantic-ui-form.d.ts +123 -15
  219. package/types/fomantic-ui-modal.d.ts +75 -5
  220. package/types/fomantic-ui-nag.d.ts +4 -4
  221. package/types/fomantic-ui-popup.d.ts +11 -11
  222. package/types/fomantic-ui-progress.d.ts +12 -6
  223. package/types/fomantic-ui-rating.d.ts +1 -1
  224. package/types/fomantic-ui-search.d.ts +31 -13
  225. package/types/fomantic-ui-shape.d.ts +2 -2
  226. package/types/fomantic-ui-sidebar.d.ts +4 -4
  227. package/types/fomantic-ui-slider.d.ts +1 -1
  228. package/types/fomantic-ui-sticky.d.ts +1 -1
  229. package/types/fomantic-ui-tab.d.ts +5 -5
  230. package/types/fomantic-ui-toast.d.ts +7 -2
  231. package/types/fomantic-ui-transition.d.ts +29 -1
  232. package/types/fomantic-ui-visibility.d.ts +3 -3
  233. package/types/index.d.ts +25 -25
  234. package/types/tests.ts +188 -0
  235. package/types/tsconfig.json +1 -1
  236. package/types/fomantic-ui-tests.ts +0 -25
package/dist/semantic.js CHANGED
@@ -1,15 +1,15 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.4-beta.3+9e5d2f7
2
+ * # Fomantic UI - 2.9.4-beta.30+09eee81
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
6
- * Copyright 2023 Contributors
6
+ * Copyright 2024 Contributors
7
7
  * Released under the MIT license
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Site
12
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -302,7 +302,9 @@
302
302
  });
303
303
  }
304
304
  clearTimeout(module.performance.timer);
305
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
305
+ module.performance.timer = setTimeout(function () {
306
+ module.performance.display();
307
+ }, 500);
306
308
  },
307
309
  display: function () {
308
310
  var
@@ -463,7 +465,7 @@
463
465
  })(jQuery, window, document);
464
466
 
465
467
  /*!
466
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Form Validation
468
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Form Validation
467
469
  * https://github.com/fomantic/Fomantic-UI/
468
470
  *
469
471
  *
@@ -1002,6 +1004,13 @@
1002
1004
  fullFields[name].rules.push({ type: rule });
1003
1005
  });
1004
1006
  }
1007
+
1008
+ $.each(fullFields[name].rules, function (index, rule) {
1009
+ var ruleName = module.get.ruleName(rule);
1010
+ if (ruleName === 'empty') {
1011
+ module.warn('*** DEPRECATED *** : Rule "empty" for field "' + name + '" will be removed in a future version. -> Use "notEmpty" rule instead.');
1012
+ }
1013
+ });
1005
1014
  });
1006
1015
 
1007
1016
  return fullFields;
@@ -1015,9 +1024,10 @@
1015
1024
  ancillary = module.get.ancillaryValue(rule),
1016
1025
  $field = module.get.field(field.identifier),
1017
1026
  value = $field.val(),
1018
- prompt = isFunction(rule.prompt)
1019
- ? rule.prompt(value)
1020
- : rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
1027
+ promptCheck = rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
1028
+ prompt = String(isFunction(promptCheck)
1029
+ ? promptCheck.call($field[0], value)
1030
+ : promptCheck),
1021
1031
  requiresValue = prompt.search('{value}') !== -1,
1022
1032
  requiresName = prompt.search('{name}') !== -1,
1023
1033
  parts,
@@ -1055,10 +1065,10 @@
1055
1065
  },
1056
1066
  settings: function () {
1057
1067
  if ($.isPlainObject(parameters)) {
1058
- if (parameters.fields) {
1059
- parameters.fields = module.get.fieldsFromShorthand(parameters.fields);
1060
- }
1061
1068
  settings = $.extend(true, {}, $.fn.form.settings, parameters);
1069
+ if (settings.fields) {
1070
+ settings.fields = module.get.fieldsFromShorthand(settings.fields);
1071
+ }
1062
1072
  validation = $.extend(true, {}, $.fn.form.settings.defaults, settings.fields);
1063
1073
  module.verbose('Extending settings', validation, settings);
1064
1074
  } else {
@@ -1175,7 +1185,7 @@
1175
1185
  var
1176
1186
  $field = $(field),
1177
1187
  $calendar = $field.closest(selector.uiCalendar),
1178
- name = $field.prop('name'),
1188
+ name = $field.prop('name') || $field.prop('id'),
1179
1189
  value = $field.val(),
1180
1190
  isCheckbox = $field.is(selector.checkbox),
1181
1191
  isRadio = $field.is(selector.radio),
@@ -1701,20 +1711,20 @@
1701
1711
  isRequired = $el.prop('required') || $elGroup.hasClass(className.required) || $elGroup.parent().hasClass(className.required),
1702
1712
  isDisabled = $el.is(':disabled') || $elGroup.hasClass(className.disabled) || $elGroup.parent().hasClass(className.disabled),
1703
1713
  validation = module.get.validation($el),
1704
- hasEmptyRule = validation
1714
+ hasNotEmptyRule = validation
1705
1715
  ? $.grep(validation.rules, function (rule) {
1706
- return rule.type === 'empty';
1707
- }) !== 0
1716
+ return ['notEmpty', 'checked', 'empty'].indexOf(rule.type) >= 0;
1717
+ }).length > 0
1708
1718
  : false,
1709
1719
  identifier = module.get.identifier(validation, $el)
1710
1720
  ;
1711
- if (isRequired && !isDisabled && !hasEmptyRule && identifier !== undefined) {
1721
+ if (isRequired && !isDisabled && !hasNotEmptyRule && identifier !== undefined) {
1712
1722
  if (isCheckbox) {
1713
1723
  module.verbose("Adding 'checked' rule on field", identifier);
1714
1724
  module.add.rule(identifier, 'checked');
1715
1725
  } else {
1716
- module.verbose("Adding 'empty' rule on field", identifier);
1717
- module.add.rule(identifier, 'empty');
1726
+ module.verbose("Adding 'notEmpty' rule on field", identifier);
1727
+ module.add.rule(identifier, 'notEmpty');
1718
1728
  }
1719
1729
  }
1720
1730
  });
@@ -1813,13 +1823,14 @@
1813
1823
  fieldErrors = [],
1814
1824
  isDisabled = $field.filter(':not(:disabled)').length === 0,
1815
1825
  validationMessage = $field[0].validationMessage,
1826
+ noNativeValidation = field.noNativeValidation || settings.noNativeValidation || $field.filter('[formnovalidate],[novalidate]').length > 0 || $module.filter('[novalidate]').length > 0,
1816
1827
  errorLimit
1817
1828
  ;
1818
1829
  if (!field.identifier) {
1819
1830
  module.debug('Using field name as identifier', identifier);
1820
1831
  field.identifier = identifier;
1821
1832
  }
1822
- if (validationMessage) {
1833
+ if (validationMessage && !noNativeValidation) {
1823
1834
  module.debug('Field is natively invalid', identifier);
1824
1835
  fieldErrors.push(validationMessage);
1825
1836
  fieldValid = false;
@@ -1955,6 +1966,12 @@
1955
1966
  module.error.apply(console, arguments);
1956
1967
  }
1957
1968
  },
1969
+ warn: function () {
1970
+ if (!settings.silent) {
1971
+ module.warn = Function.prototype.bind.call(console.warn, console, settings.name + ':');
1972
+ module.warn.apply(console, arguments);
1973
+ }
1974
+ },
1958
1975
  performance: {
1959
1976
  log: function (message) {
1960
1977
  var
@@ -1975,7 +1992,9 @@
1975
1992
  });
1976
1993
  }
1977
1994
  clearTimeout(module.performance.timer);
1978
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
1995
+ module.performance.timer = setTimeout(function () {
1996
+ module.performance.display();
1997
+ }, 500);
1979
1998
  },
1980
1999
  display: function () {
1981
2000
  var
@@ -2069,6 +2088,7 @@
2069
2088
  name: 'Form',
2070
2089
  namespace: 'form',
2071
2090
 
2091
+ silent: false,
2072
2092
  debug: false,
2073
2093
  verbose: false,
2074
2094
  performance: true,
@@ -2091,6 +2111,7 @@
2091
2111
  errorFocus: true,
2092
2112
  dateHandling: 'date', // 'date', 'input', 'formatter'
2093
2113
  errorLimit: 0,
2114
+ noNativeValidation: false,
2094
2115
 
2095
2116
  onValid: function () {},
2096
2117
  onInvalid: function () {},
@@ -2133,6 +2154,7 @@
2133
2154
  maxValue: '{name} must have a maximum value of {ruleValue}',
2134
2155
  minValue: '{name} must have a minimum value of {ruleValue}',
2135
2156
  empty: '{name} must have a value',
2157
+ notEmpty: '{name} must have a value',
2136
2158
  checked: '{name} must be checked',
2137
2159
  email: '{name} must be a valid e-mail',
2138
2160
  url: '{name} must be a valid url',
@@ -2265,10 +2287,15 @@
2265
2287
  rules: {
2266
2288
 
2267
2289
  // is not empty or blank string
2268
- empty: function (value) {
2290
+ notEmpty: function (value) {
2269
2291
  return !(value === undefined || value === '' || (Array.isArray(value) && value.length === 0));
2270
2292
  },
2271
2293
 
2294
+ /* Deprecated */
2295
+ empty: function (value) {
2296
+ return $.fn.form.settings.rules.notEmpty(value);
2297
+ },
2298
+
2272
2299
  // checkbox checked
2273
2300
  checked: function () {
2274
2301
  return $(this).filter(':checked').length > 0;
@@ -2620,7 +2647,7 @@
2620
2647
  })(jQuery, window, document);
2621
2648
 
2622
2649
  /*!
2623
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Accordion
2650
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Accordion
2624
2651
  * https://github.com/fomantic/Fomantic-UI/
2625
2652
  *
2626
2653
  *
@@ -3059,7 +3086,9 @@
3059
3086
  });
3060
3087
  }
3061
3088
  clearTimeout(module.performance.timer);
3062
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
3089
+ module.performance.timer = setTimeout(function () {
3090
+ module.performance.display();
3091
+ }, 500);
3063
3092
  },
3064
3093
  display: function () {
3065
3094
  var
@@ -3214,7 +3243,7 @@
3214
3243
  })(jQuery, window, document);
3215
3244
 
3216
3245
  /*!
3217
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Calendar
3246
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Calendar
3218
3247
  * https://github.com/fomantic/Fomantic-UI/
3219
3248
  *
3220
3249
  *
@@ -4694,7 +4723,9 @@
4694
4723
  });
4695
4724
  }
4696
4725
  clearTimeout(module.performance.timer);
4697
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
4726
+ module.performance.timer = setTimeout(function () {
4727
+ module.performance.display();
4728
+ }, 500);
4698
4729
  },
4699
4730
  display: function () {
4700
4731
  var
@@ -5225,7 +5256,7 @@
5225
5256
  })(jQuery, window, document);
5226
5257
 
5227
5258
  /*!
5228
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Checkbox
5259
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Checkbox
5229
5260
  * https://github.com/fomantic/Fomantic-UI/
5230
5261
  *
5231
5262
  *
@@ -5951,7 +5982,9 @@
5951
5982
  });
5952
5983
  }
5953
5984
  clearTimeout(module.performance.timer);
5954
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
5985
+ module.performance.timer = setTimeout(function () {
5986
+ module.performance.display();
5987
+ }, 500);
5955
5988
  },
5956
5989
  display: function () {
5957
5990
  var
@@ -6108,7 +6141,7 @@
6108
6141
  })(jQuery, window, document);
6109
6142
 
6110
6143
  /*!
6111
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Dimmer
6144
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Dimmer
6112
6145
  * https://github.com/fomantic/Fomantic-UI/
6113
6146
  *
6114
6147
  *
@@ -6637,7 +6670,9 @@
6637
6670
  });
6638
6671
  }
6639
6672
  clearTimeout(module.performance.timer);
6640
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
6673
+ module.performance.timer = setTimeout(function () {
6674
+ module.performance.display();
6675
+ }, 500);
6641
6676
  },
6642
6677
  display: function () {
6643
6678
  var
@@ -6839,7 +6874,7 @@
6839
6874
  })(jQuery, window, document);
6840
6875
 
6841
6876
  /*!
6842
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Dropdown
6877
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Dropdown
6843
6878
  * https://github.com/fomantic/Fomantic-UI/
6844
6879
  *
6845
6880
  *
@@ -8076,7 +8111,9 @@
8076
8111
  module.set.filtered();
8077
8112
  }
8078
8113
  clearTimeout(module.timer);
8079
- module.timer = setTimeout(function () { module.search(); }, settings.delay.search);
8114
+ module.timer = setTimeout(function () {
8115
+ module.search();
8116
+ }, settings.delay.search);
8080
8117
  },
8081
8118
  label: {
8082
8119
  click: function (event) {
@@ -8253,7 +8290,9 @@
8253
8290
  module.remove.userAddition();
8254
8291
  }
8255
8292
  if (!settings.keepSearchTerm) {
8256
- module.remove.filteredItem();
8293
+ if (module.is.multiple()) {
8294
+ module.remove.filteredItem();
8295
+ }
8257
8296
  module.remove.searchTerm();
8258
8297
  }
8259
8298
  if (!module.is.visible() && $target.length > 0) {
@@ -9427,7 +9466,7 @@
9427
9466
  } else {
9428
9467
  $combo.text(text);
9429
9468
  }
9430
- } else if (settings.action === 'activate') {
9469
+ } else if (settings.action === 'activate' || isFunction(settings.action)) {
9431
9470
  if (text !== module.get.placeholderText() || isNotPlaceholder) {
9432
9471
  $text.removeClass(className.placeholder);
9433
9472
  }
@@ -9646,8 +9685,8 @@
9646
9685
  module.save.remoteData(selectedText, selectedValue);
9647
9686
  }
9648
9687
  if (settings.useLabels) {
9649
- module.add.value(selectedValue, selectedText, $selected, preventChangeTrigger);
9650
9688
  module.add.label(selectedValue, selectedText, shouldAnimate);
9689
+ module.add.value(selectedValue, selectedText, $selected, preventChangeTrigger);
9651
9690
  module.set.activeItem($selected);
9652
9691
  module.filterActive();
9653
9692
  module.select.nextAvailable($selectedItem);
@@ -10587,12 +10626,16 @@
10587
10626
  show: function () {
10588
10627
  module.verbose('Delaying show event to ensure user intent');
10589
10628
  clearTimeout(module.timer);
10590
- module.timer = setTimeout(function () { module.show(); }, settings.delay.show);
10629
+ module.timer = setTimeout(function () {
10630
+ module.show();
10631
+ }, settings.delay.show);
10591
10632
  },
10592
10633
  hide: function () {
10593
10634
  module.verbose('Delaying hide event to ensure user intent');
10594
10635
  clearTimeout(module.timer);
10595
- module.timer = setTimeout(function () { module.hide(); }, settings.delay.hide);
10636
+ module.timer = setTimeout(function () {
10637
+ module.hide();
10638
+ }, settings.delay.hide);
10596
10639
  },
10597
10640
  },
10598
10641
 
@@ -10718,7 +10761,9 @@
10718
10761
  });
10719
10762
  }
10720
10763
  clearTimeout(module.performance.timer);
10721
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
10764
+ module.performance.timer = setTimeout(function () {
10765
+ module.performance.display();
10766
+ }, 500);
10722
10767
  },
10723
10768
  display: function () {
10724
10769
  var
@@ -11197,7 +11242,7 @@
11197
11242
  })(jQuery, window, document);
11198
11243
 
11199
11244
  /*!
11200
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Embed
11245
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Embed
11201
11246
  * https://github.com/fomantic/Fomantic-UI/
11202
11247
  *
11203
11248
  *
@@ -11638,7 +11683,9 @@
11638
11683
  });
11639
11684
  }
11640
11685
  clearTimeout(module.performance.timer);
11641
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
11686
+ module.performance.timer = setTimeout(function () {
11687
+ module.performance.display();
11688
+ }, 500);
11642
11689
  },
11643
11690
  display: function () {
11644
11691
  var
@@ -11876,7 +11923,7 @@
11876
11923
  })(jQuery, window, document);
11877
11924
 
11878
11925
  /*!
11879
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Flyout
11926
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Flyout
11880
11927
  * https://github.com/fomantic/Fomantic-UI/
11881
11928
  *
11882
11929
  *
@@ -13096,7 +13143,9 @@
13096
13143
  });
13097
13144
  }
13098
13145
  clearTimeout(module.performance.timer);
13099
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
13146
+ module.performance.timer = setTimeout(function () {
13147
+ module.performance.display();
13148
+ }, 500);
13100
13149
  },
13101
13150
  display: function () {
13102
13151
  var
@@ -13426,7 +13475,7 @@
13426
13475
  })(jQuery, window, document);
13427
13476
 
13428
13477
  /*!
13429
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Modal
13478
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Modal
13430
13479
  * https://github.com/fomantic/Fomantic-UI/
13431
13480
  *
13432
13481
  *
@@ -13954,7 +14003,9 @@
13954
14003
  },
13955
14004
  debounce: function (method, delay) {
13956
14005
  clearTimeout(module.timer);
13957
- module.timer = setTimeout(function () { method(); }, delay);
14006
+ module.timer = setTimeout(function () {
14007
+ method();
14008
+ }, delay);
13958
14009
  },
13959
14010
  keyboard: function (event) {
13960
14011
  var
@@ -14700,7 +14751,9 @@
14700
14751
  });
14701
14752
  }
14702
14753
  clearTimeout(module.performance.timer);
14703
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
14754
+ module.performance.timer = setTimeout(function () {
14755
+ module.performance.display();
14756
+ }, 500);
14704
14757
  },
14705
14758
  display: function () {
14706
14759
  var
@@ -15060,7 +15113,7 @@
15060
15113
  })(jQuery, window, document);
15061
15114
 
15062
15115
  /*!
15063
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Nag
15116
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Nag
15064
15117
  * https://github.com/fomantic/Fomantic-UI/
15065
15118
  *
15066
15119
  *
@@ -15149,7 +15202,9 @@
15149
15202
  }
15150
15203
 
15151
15204
  if (settings.displayTime > 0) {
15152
- setTimeout(function () { module.hide(); }, settings.displayTime);
15205
+ setTimeout(function () {
15206
+ module.hide();
15207
+ }, settings.displayTime);
15153
15208
  }
15154
15209
  module.show();
15155
15210
  },
@@ -15438,7 +15493,9 @@
15438
15493
  });
15439
15494
  }
15440
15495
  clearTimeout(module.performance.timer);
15441
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
15496
+ module.performance.timer = setTimeout(function () {
15497
+ module.performance.display();
15498
+ }, 500);
15442
15499
  },
15443
15500
  display: function () {
15444
15501
  var
@@ -15621,7 +15678,7 @@
15621
15678
  })(jQuery, window, document);
15622
15679
 
15623
15680
  /*!
15624
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Popup
15681
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Popup
15625
15682
  * https://github.com/fomantic/Fomantic-UI/
15626
15683
  *
15627
15684
  *
@@ -15816,7 +15873,9 @@
15816
15873
  ;
15817
15874
  clearTimeout(module.hideTimer);
15818
15875
  if (!openedWithTouch || (openedWithTouch && settings.addTouchEvents)) {
15819
- module.showTimer = setTimeout(function () { module.show(); }, delay);
15876
+ module.showTimer = setTimeout(function () {
15877
+ module.show();
15878
+ }, delay);
15820
15879
  }
15821
15880
  },
15822
15881
  end: function () {
@@ -15826,7 +15885,9 @@
15826
15885
  : settings.delay
15827
15886
  ;
15828
15887
  clearTimeout(module.showTimer);
15829
- module.hideTimer = setTimeout(function () { module.hide(); }, delay);
15888
+ module.hideTimer = setTimeout(function () {
15889
+ module.hide();
15890
+ }, delay);
15830
15891
  },
15831
15892
  touchstart: function (event) {
15832
15893
  openedWithTouch = true;
@@ -16866,7 +16927,9 @@
16866
16927
  });
16867
16928
  }
16868
16929
  clearTimeout(module.performance.timer);
16869
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
16930
+ module.performance.timer = setTimeout(function () {
16931
+ module.performance.display();
16932
+ }, 500);
16870
16933
  },
16871
16934
  display: function () {
16872
16935
  var
@@ -17177,7 +17240,7 @@
17177
17240
  })(jQuery, window, document);
17178
17241
 
17179
17242
  /*!
17180
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Progress
17243
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Progress
17181
17244
  * https://github.com/fomantic/Fomantic-UI/
17182
17245
  *
17183
17246
  *
@@ -17969,7 +18032,9 @@
17969
18032
  });
17970
18033
  }
17971
18034
  clearTimeout(module.performance.timer);
17972
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
18035
+ module.performance.timer = setTimeout(function () {
18036
+ module.performance.display();
18037
+ }, 500);
17973
18038
  },
17974
18039
  display: function () {
17975
18040
  var
@@ -18155,7 +18220,7 @@
18155
18220
  })(jQuery, window, document);
18156
18221
 
18157
18222
  /*!
18158
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Slider
18223
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Slider
18159
18224
  * https://github.com/fomantic/Fomantic-UI/
18160
18225
  *
18161
18226
  *
@@ -19423,7 +19488,9 @@
19423
19488
  });
19424
19489
  }
19425
19490
  clearTimeout(module.performance.timer);
19426
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
19491
+ module.performance.timer = setTimeout(function () {
19492
+ module.performance.display();
19493
+ }, 500);
19427
19494
  },
19428
19495
  display: function () {
19429
19496
  var
@@ -19604,7 +19671,7 @@
19604
19671
  })(jQuery, window, document);
19605
19672
 
19606
19673
  /*!
19607
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Rating
19674
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Rating
19608
19675
  * https://github.com/fomantic/Fomantic-UI/
19609
19676
  *
19610
19677
  *
@@ -19973,7 +20040,9 @@
19973
20040
  });
19974
20041
  }
19975
20042
  clearTimeout(module.performance.timer);
19976
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
20043
+ module.performance.timer = setTimeout(function () {
20044
+ module.performance.display();
20045
+ }, 500);
19977
20046
  },
19978
20047
  display: function () {
19979
20048
  var
@@ -20143,7 +20212,7 @@
20143
20212
  })(jQuery, window, document);
20144
20213
 
20145
20214
  /*!
20146
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Search
20215
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Search
20147
20216
  * https://github.com/fomantic/Fomantic-UI/
20148
20217
  *
20149
20218
  *
@@ -20313,7 +20382,9 @@
20313
20382
  callback = function () {
20314
20383
  module.cancel.query();
20315
20384
  module.remove.focus();
20316
- module.timer = setTimeout(function () { module.hideResults(); }, settings.hideDelay);
20385
+ module.timer = setTimeout(function () {
20386
+ module.hideResults();
20387
+ }, settings.hideDelay);
20317
20388
  }
20318
20389
  ;
20319
20390
  if (pageLostFocus) {
@@ -21315,7 +21386,9 @@
21315
21386
  });
21316
21387
  }
21317
21388
  clearTimeout(module.performance.timer);
21318
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
21389
+ module.performance.timer = setTimeout(function () {
21390
+ module.performance.display();
21391
+ }, 500);
21319
21392
  },
21320
21393
  display: function () {
21321
21394
  var
@@ -21721,7 +21794,7 @@
21721
21794
  })(jQuery, window, document);
21722
21795
 
21723
21796
  /*!
21724
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Shape
21797
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Shape
21725
21798
  * https://github.com/fomantic/Fomantic-UI/
21726
21799
  *
21727
21800
  *
@@ -22345,7 +22418,9 @@
22345
22418
  });
22346
22419
  }
22347
22420
  clearTimeout(module.performance.timer);
22348
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
22421
+ module.performance.timer = setTimeout(function () {
22422
+ module.performance.display();
22423
+ }, 500);
22349
22424
  },
22350
22425
  display: function () {
22351
22426
  var
@@ -22517,7 +22592,7 @@
22517
22592
  })(jQuery, window, document);
22518
22593
 
22519
22594
  /*!
22520
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Sidebar
22595
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Sidebar
22521
22596
  * https://github.com/fomantic/Fomantic-UI/
22522
22597
  *
22523
22598
  *
@@ -23389,7 +23464,9 @@
23389
23464
  });
23390
23465
  }
23391
23466
  clearTimeout(module.performance.timer);
23392
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
23467
+ module.performance.timer = setTimeout(function () {
23468
+ module.performance.display();
23469
+ }, 500);
23393
23470
  },
23394
23471
  display: function () {
23395
23472
  var
@@ -23570,7 +23647,7 @@
23570
23647
  })(jQuery, window, document);
23571
23648
 
23572
23649
  /*!
23573
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Sticky
23650
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Sticky
23574
23651
  * https://github.com/fomantic/Fomantic-UI/
23575
23652
  *
23576
23653
  *
@@ -24317,7 +24394,9 @@
24317
24394
  });
24318
24395
  }
24319
24396
  clearTimeout(module.performance.timer);
24320
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 0);
24397
+ module.performance.timer = setTimeout(function () {
24398
+ module.performance.display();
24399
+ }, 0);
24321
24400
  },
24322
24401
  display: function () {
24323
24402
  var
@@ -24486,7 +24565,7 @@
24486
24565
  })(jQuery, window, document);
24487
24566
 
24488
24567
  /*!
24489
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Tab
24568
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Tab
24490
24569
  * https://github.com/fomantic/Fomantic-UI/
24491
24570
  *
24492
24571
  *
@@ -25275,7 +25354,9 @@
25275
25354
  });
25276
25355
  }
25277
25356
  clearTimeout(module.performance.timer);
25278
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
25357
+ module.performance.timer = setTimeout(function () {
25358
+ module.performance.display();
25359
+ }, 500);
25279
25360
  },
25280
25361
  display: function () {
25281
25362
  var
@@ -25452,7 +25533,7 @@
25452
25533
  })(jQuery, window, document);
25453
25534
 
25454
25535
  /*!
25455
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Toast
25536
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Toast
25456
25537
  * https://github.com/fomantic/Fomantic-UI/
25457
25538
  *
25458
25539
  *
@@ -26155,7 +26236,9 @@
26155
26236
  });
26156
26237
  }
26157
26238
  clearTimeout(module.performance.timer);
26158
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
26239
+ module.performance.timer = setTimeout(function () {
26240
+ module.performance.display();
26241
+ }, 500);
26159
26242
  },
26160
26243
  display: function () {
26161
26244
  var
@@ -26413,7 +26496,7 @@
26413
26496
  })(jQuery, window, document);
26414
26497
 
26415
26498
  /*!
26416
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Transition
26499
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Transition
26417
26500
  * https://github.com/fomantic/Fomantic-UI/
26418
26501
  *
26419
26502
  *
@@ -26556,7 +26639,9 @@
26556
26639
  ? ($allModules.length - index) * interval
26557
26640
  : index * interval;
26558
26641
  module.debug('Delaying animation by', delay);
26559
- setTimeout(function () { module.animate(); }, delay);
26642
+ setTimeout(function () {
26643
+ module.animate();
26644
+ }, delay);
26560
26645
  },
26561
26646
 
26562
26647
  animate: function (overrideSettings) {
@@ -27263,7 +27348,9 @@
27263
27348
  });
27264
27349
  }
27265
27350
  clearTimeout(module.performance.timer);
27266
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
27351
+ module.performance.timer = setTimeout(function () {
27352
+ module.performance.display();
27353
+ }, 500);
27267
27354
  },
27268
27355
  display: function () {
27269
27356
  var
@@ -27444,7 +27531,7 @@
27444
27531
  })(jQuery, window, document);
27445
27532
 
27446
27533
  /*!
27447
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - API
27534
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - API
27448
27535
  * https://github.com/fomantic/Fomantic-UI/
27449
27536
  *
27450
27537
  *
@@ -28092,7 +28179,9 @@
28092
28179
  module.debug('Adding error state');
28093
28180
  module.set.error();
28094
28181
  if (module.should.removeError()) {
28095
- setTimeout(function () { module.remove.error(); }, settings.errorDuration);
28182
+ setTimeout(function () {
28183
+ module.remove.error();
28184
+ }, settings.errorDuration);
28096
28185
  }
28097
28186
  }
28098
28187
  module.debug('API Request failed', errorMessage, xhr);
@@ -28416,7 +28505,9 @@
28416
28505
  });
28417
28506
  }
28418
28507
  clearTimeout(module.performance.timer);
28419
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
28508
+ module.performance.timer = setTimeout(function () {
28509
+ module.performance.display();
28510
+ }, 500);
28420
28511
  },
28421
28512
  display: function () {
28422
28513
  var
@@ -28666,7 +28757,7 @@
28666
28757
  })(jQuery, window, document);
28667
28758
 
28668
28759
  /*!
28669
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - State
28760
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - State
28670
28761
  * https://github.com/fomantic/Fomantic-UI/
28671
28762
  *
28672
28763
  *
@@ -29149,7 +29240,9 @@
29149
29240
  });
29150
29241
  }
29151
29242
  clearTimeout(module.performance.timer);
29152
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
29243
+ module.performance.timer = setTimeout(function () {
29244
+ module.performance.display();
29245
+ }, 500);
29153
29246
  },
29154
29247
  display: function () {
29155
29248
  var
@@ -29362,7 +29455,7 @@
29362
29455
  })(jQuery, window, document);
29363
29456
 
29364
29457
  /*!
29365
- * # Fomantic-UI 2.9.4-beta.3+9e5d2f7 - Visibility
29458
+ * # Fomantic-UI 2.9.4-beta.30+09eee81 - Visibility
29366
29459
  * https://github.com/fomantic/Fomantic-UI/
29367
29460
  *
29368
29461
  *
@@ -30451,7 +30544,9 @@
30451
30544
  });
30452
30545
  }
30453
30546
  clearTimeout(module.performance.timer);
30454
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
30547
+ module.performance.timer = setTimeout(function () {
30548
+ module.performance.display();
30549
+ }, 500);
30455
30550
  },
30456
30551
  display: function () {
30457
30552
  var