fomantic-ui 2.10.0-beta.64 → 2.10.0-beta.66

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 (245) hide show
  1. package/.eslintrc.js +0 -3
  2. package/.stylelintrc.js +1 -13
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +2 -2
  10. package/dist/components/api.min.js +2 -2
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +21 -21
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +1 -10
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +1 -1
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +9 -25
  36. package/dist/components/dropdown.js +6 -12
  37. package/dist/components/dropdown.min.css +2 -2
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +1 -1
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +1 -1
  43. package/dist/components/emoji.css +1 -1
  44. package/dist/components/emoji.min.css +1 -1
  45. package/dist/components/feed.css +1 -1
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +1 -1
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +1 -1
  50. package/dist/components/flyout.js +8 -6
  51. package/dist/components/flyout.min.css +1 -1
  52. package/dist/components/flyout.min.js +2 -2
  53. package/dist/components/form.css +3 -5
  54. package/dist/components/form.js +2 -2
  55. package/dist/components/form.min.css +2 -2
  56. package/dist/components/form.min.js +2 -2
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +10 -37
  62. package/dist/components/icon.min.css +2 -2
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -3
  66. package/dist/components/input.min.css +2 -2
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +4 -13
  70. package/dist/components/label.min.css +2 -2
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +6 -21
  76. package/dist/components/menu.min.css +2 -2
  77. package/dist/components/message.css +1 -1
  78. package/dist/components/message.min.css +1 -1
  79. package/dist/components/modal.css +1 -1
  80. package/dist/components/modal.js +8 -6
  81. package/dist/components/modal.min.css +1 -1
  82. package/dist/components/modal.min.js +2 -2
  83. package/dist/components/nag.css +1 -1
  84. package/dist/components/nag.js +1 -1
  85. package/dist/components/nag.min.css +1 -1
  86. package/dist/components/nag.min.js +1 -1
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +19 -73
  90. package/dist/components/popup.js +11 -13
  91. package/dist/components/popup.min.css +2 -2
  92. package/dist/components/popup.min.js +2 -2
  93. package/dist/components/progress.css +4 -13
  94. package/dist/components/progress.js +6 -6
  95. package/dist/components/progress.min.css +2 -2
  96. package/dist/components/progress.min.js +2 -2
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +1 -1
  100. package/dist/components/rating.js +1 -1
  101. package/dist/components/rating.min.css +1 -1
  102. package/dist/components/rating.min.js +1 -1
  103. package/dist/components/reset.css +47 -208
  104. package/dist/components/reset.min.css +2 -2
  105. package/dist/components/reveal.css +2 -5
  106. package/dist/components/reveal.min.css +2 -2
  107. package/dist/components/search.css +2 -3
  108. package/dist/components/search.js +1 -1
  109. package/dist/components/search.min.css +2 -2
  110. package/dist/components/search.min.js +1 -1
  111. package/dist/components/segment.css +1 -1
  112. package/dist/components/segment.min.css +1 -1
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +1 -1
  115. package/dist/components/shape.min.css +1 -1
  116. package/dist/components/shape.min.js +1 -1
  117. package/dist/components/sidebar.css +1 -1
  118. package/dist/components/sidebar.js +3 -3
  119. package/dist/components/sidebar.min.css +1 -1
  120. package/dist/components/sidebar.min.js +2 -2
  121. package/dist/components/site.css +1 -1
  122. package/dist/components/site.js +1 -1
  123. package/dist/components/site.min.css +1 -1
  124. package/dist/components/site.min.js +1 -1
  125. package/dist/components/slider.css +1 -1
  126. package/dist/components/slider.js +6 -6
  127. package/dist/components/slider.min.css +1 -1
  128. package/dist/components/slider.min.js +2 -2
  129. package/dist/components/state.js +1 -1
  130. package/dist/components/state.min.js +1 -1
  131. package/dist/components/statistic.css +1 -1
  132. package/dist/components/statistic.min.css +1 -1
  133. package/dist/components/step.css +1 -1
  134. package/dist/components/step.min.css +1 -1
  135. package/dist/components/sticky.css +1 -1
  136. package/dist/components/sticky.js +12 -14
  137. package/dist/components/sticky.min.css +1 -1
  138. package/dist/components/sticky.min.js +2 -2
  139. package/dist/components/tab.css +1 -1
  140. package/dist/components/tab.js +1 -1
  141. package/dist/components/tab.min.css +1 -1
  142. package/dist/components/tab.min.js +1 -1
  143. package/dist/components/table.css +1 -1
  144. package/dist/components/table.min.css +1 -1
  145. package/dist/components/text.css +1 -1
  146. package/dist/components/text.min.css +1 -1
  147. package/dist/components/toast.css +1 -1
  148. package/dist/components/toast.js +8 -6
  149. package/dist/components/toast.min.css +1 -1
  150. package/dist/components/toast.min.js +2 -2
  151. package/dist/components/transition.css +1 -1
  152. package/dist/components/transition.js +3 -3
  153. package/dist/components/transition.min.css +1 -1
  154. package/dist/components/transition.min.js +2 -2
  155. package/dist/components/visibility.js +12 -14
  156. package/dist/components/visibility.min.js +2 -2
  157. package/dist/semantic.css +148 -457
  158. package/dist/semantic.js +120 -135
  159. package/dist/semantic.min.css +2 -2
  160. package/dist/semantic.min.js +2 -2
  161. package/package.json +3 -3
  162. package/src/definitions/behaviors/api.js +1 -1
  163. package/src/definitions/behaviors/form.js +1 -1
  164. package/src/definitions/behaviors/visibility.js +11 -13
  165. package/src/definitions/collections/breadcrumb.less +0 -1
  166. package/src/definitions/collections/form.less +1 -7
  167. package/src/definitions/collections/grid.less +0 -1
  168. package/src/definitions/collections/menu.less +5 -21
  169. package/src/definitions/collections/message.less +0 -1
  170. package/src/definitions/collections/table.less +0 -1
  171. package/src/definitions/elements/button.less +0 -1
  172. package/src/definitions/elements/container.less +0 -1
  173. package/src/definitions/elements/divider.less +0 -1
  174. package/src/definitions/elements/emoji.less +1 -1
  175. package/src/definitions/elements/flag.less +1 -1
  176. package/src/definitions/elements/header.less +0 -1
  177. package/src/definitions/elements/icon.less +10 -37
  178. package/src/definitions/elements/image.less +0 -1
  179. package/src/definitions/elements/input.less +0 -3
  180. package/src/definitions/elements/label.less +3 -13
  181. package/src/definitions/elements/list.less +0 -1
  182. package/src/definitions/elements/loader.less +0 -1
  183. package/src/definitions/elements/placeholder.less +0 -1
  184. package/src/definitions/elements/rail.less +0 -1
  185. package/src/definitions/elements/reveal.less +1 -5
  186. package/src/definitions/elements/segment.less +0 -1
  187. package/src/definitions/elements/step.less +0 -1
  188. package/src/definitions/elements/text.less +0 -1
  189. package/src/definitions/globals/reset.less +0 -1
  190. package/src/definitions/globals/site.less +0 -1
  191. package/src/definitions/modules/accordion.less +0 -1
  192. package/src/definitions/modules/calendar.js +20 -20
  193. package/src/definitions/modules/calendar.less +0 -1
  194. package/src/definitions/modules/checkbox.js +0 -9
  195. package/src/definitions/modules/checkbox.less +0 -1
  196. package/src/definitions/modules/dimmer.less +0 -1
  197. package/src/definitions/modules/dropdown.js +5 -11
  198. package/src/definitions/modules/dropdown.less +8 -25
  199. package/src/definitions/modules/embed.less +0 -1
  200. package/src/definitions/modules/flyout.js +7 -5
  201. package/src/definitions/modules/flyout.less +0 -1
  202. package/src/definitions/modules/modal.js +7 -5
  203. package/src/definitions/modules/modal.less +0 -1
  204. package/src/definitions/modules/nag.less +0 -1
  205. package/src/definitions/modules/popup.js +10 -12
  206. package/src/definitions/modules/popup.less +18 -73
  207. package/src/definitions/modules/progress.js +5 -5
  208. package/src/definitions/modules/progress.less +3 -13
  209. package/src/definitions/modules/rating.less +0 -1
  210. package/src/definitions/modules/search.less +1 -3
  211. package/src/definitions/modules/shape.less +0 -1
  212. package/src/definitions/modules/sidebar.js +2 -2
  213. package/src/definitions/modules/sidebar.less +0 -1
  214. package/src/definitions/modules/slider.js +5 -5
  215. package/src/definitions/modules/slider.less +0 -1
  216. package/src/definitions/modules/sticky.js +11 -13
  217. package/src/definitions/modules/sticky.less +0 -1
  218. package/src/definitions/modules/tab.less +0 -1
  219. package/src/definitions/modules/toast.js +7 -5
  220. package/src/definitions/modules/toast.less +0 -1
  221. package/src/definitions/modules/transition.js +2 -2
  222. package/src/definitions/modules/transition.less +0 -1
  223. package/src/definitions/views/ad.less +0 -1
  224. package/src/definitions/views/card.less +0 -1
  225. package/src/definitions/views/comment.less +0 -1
  226. package/src/definitions/views/feed.less +0 -1
  227. package/src/definitions/views/item.less +0 -1
  228. package/src/definitions/views/statistic.less +0 -1
  229. package/src/semantic.less +1 -1
  230. package/src/themes/amazon/elements/button.variables +0 -1
  231. package/src/themes/amazon/globals/site.variables +0 -1
  232. package/src/themes/bootstrap3/elements/button.variables +0 -1
  233. package/src/themes/default/collections/form.variables +0 -1
  234. package/src/themes/default/elements/button.variables +0 -1
  235. package/src/themes/default/globals/reset.overrides +45 -201
  236. package/src/themes/default/modules/accordion.variables +0 -1
  237. package/src/themes/default/views/card.variables +0 -1
  238. package/src/themes/default/views/item.variables +0 -1
  239. package/src/themes/github/modules/dropdown.variables +0 -2
  240. package/src/themes/twitter/elements/button.variables +0 -1
  241. package/tasks/admin/distributions/create.js +2 -2
  242. package/tasks/config/project/config.js +1 -1
  243. package/tasks/install.js +3 -1
  244. package/test/meteor/assets.js +2 -2
  245. package/test/meteor/fonts.js +10 -11
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.64+bcb9c73
2
+ * # Fomantic UI - 2.10.0-beta.66+beed92a
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.10.0-beta.64+bcb9c73 - Site
12
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -425,7 +425,7 @@
425
425
  })(jQuery, window, document);
426
426
 
427
427
  /*!
428
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Form Validation
428
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Form Validation
429
429
  * https://github.com/fomantic/Fomantic-UI/
430
430
  *
431
431
  *
@@ -2440,7 +2440,7 @@
2440
2440
  ];
2441
2441
  let sum = 0;
2442
2442
  while (length--) {
2443
- sum += producedValue[multiple][parseInt(cardNumber.charAt(length), 10)];
2443
+ sum += producedValue[multiple][Number.parseInt(cardNumber.charAt(length), 10)];
2444
2444
  multiple ^= 1; // eslint-disable-line no-bitwise
2445
2445
  }
2446
2446
 
@@ -2491,7 +2491,7 @@
2491
2491
  })(jQuery, window, document);
2492
2492
 
2493
2493
  /*!
2494
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Accordion
2494
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Accordion
2495
2495
  * https://github.com/fomantic/Fomantic-UI/
2496
2496
  *
2497
2497
  *
@@ -3039,7 +3039,7 @@
3039
3039
  })(jQuery, window, document);
3040
3040
 
3041
3041
  /*!
3042
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Calendar
3042
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Calendar
3043
3043
  * https://github.com/fomantic/Fomantic-UI/
3044
3044
  *
3045
3045
  *
@@ -3581,7 +3581,7 @@
3581
3581
  const tooltipWidth = window.getComputedStyle($cell[0], '::after').width.replace(/[^\d.]/g, '');
3582
3582
  const tooltipPosition = $cell.attr('data-position');
3583
3583
  // use a fallback width of 250 (calendar width) for IE/Edge (which return "auto")
3584
- const calcPosition = (winWidth - $cell.width() - (parseInt(tooltipWidth, 10) || 250)) > $cell.offset().left ? 'right' : 'left';
3584
+ const calcPosition = (winWidth - $cell.width() - (Number.parseInt(tooltipWidth, 10) || 250)) > $cell.offset().left ? 'right' : 'left';
3585
3585
  if (!tooltipPosition.includes(calcPosition)) {
3586
3586
  $cell.attr('data-position', tooltipPosition.replace(/(left|right)/, calcPosition));
3587
3587
  }
@@ -3758,11 +3758,11 @@
3758
3758
  },
3759
3759
  class: {
3760
3760
  mutation: function (mutations) {
3761
- mutations.forEach(function (mutation) {
3761
+ for (const mutation of mutations) {
3762
3762
  if (mutation.attributeName === 'class') {
3763
3763
  module.check.disabled();
3764
3764
  }
3765
- });
3765
+ }
3766
3766
  },
3767
3767
  },
3768
3768
  },
@@ -4363,7 +4363,7 @@
4363
4363
  if (!(date instanceof Date)) {
4364
4364
  date = parser.date('' + date, settings);
4365
4365
  }
4366
- if (!date || isNaN(date.getTime())) {
4366
+ if (!date || Number.isNaN(date.getTime())) {
4367
4367
  return null;
4368
4368
  }
4369
4369
 
@@ -4704,7 +4704,7 @@
4704
4704
  const textDate = new Date(text);
4705
4705
  const numberOnly = text.match(/^\d+$/) !== null;
4706
4706
  const isShortYear = text.match(/^(?:\d{1,2}[./-]){2}\d{1,2}$/) !== null;
4707
- if (!isShortYear && !numberOnly && !isNaN(textDate.getDate())) {
4707
+ if (!isShortYear && !numberOnly && !Number.isNaN(textDate.getDate())) {
4708
4708
  return textDate;
4709
4709
  }
4710
4710
  text = text.toLowerCase();
@@ -4742,8 +4742,8 @@
4742
4742
  if (hour < 0 || minute < 0) {
4743
4743
  parts = number.split(':');
4744
4744
  for (k = 0; k < Math.min(2, parts.length); k++) {
4745
- j = parseInt(parts[k], 10);
4746
- if (isNaN(j)) {
4745
+ j = Number.parseInt(parts[k], 10);
4746
+ if (Number.isNaN(j)) {
4747
4747
  j = 0;
4748
4748
  }
4749
4749
  if (k === 0) {
@@ -4779,8 +4779,8 @@
4779
4779
 
4780
4780
  // year > settings.centuryBreak
4781
4781
  for (i = 0; i < numbers.length; i++) {
4782
- j = parseInt(numbers[i], 10);
4783
- if (!isNaN(j) && j >= settings.centuryBreak && i === numbers.length - 1) {
4782
+ j = Number.parseInt(numbers[i], 10);
4783
+ if (!Number.isNaN(j) && j >= settings.centuryBreak && i === numbers.length - 1) {
4784
4784
  if (j <= 99) {
4785
4785
  j += settings.currentCentury - 100;
4786
4786
  }
@@ -4797,8 +4797,8 @@
4797
4797
  k = i > 1 || settings.monthFirst
4798
4798
  ? i
4799
4799
  : (i === 1 ? 0 : 1);
4800
- j = parseInt(numbers[k], 10);
4801
- if (!isNaN(j) && j >= 1 && j <= 12) {
4800
+ j = Number.parseInt(numbers[k], 10);
4801
+ if (!Number.isNaN(j) && j >= 1 && j <= 12) {
4802
4802
  month = j;
4803
4803
  numbers.splice(k, 1);
4804
4804
 
@@ -4809,8 +4809,8 @@
4809
4809
 
4810
4810
  // day
4811
4811
  for (i = 0; i < numbers.length; i++) {
4812
- j = parseInt(numbers[i], 10);
4813
- if (!isNaN(j) && j >= 1 && j <= 31) {
4812
+ j = Number.parseInt(numbers[i], 10);
4813
+ if (!Number.isNaN(j) && j >= 1 && j <= 31) {
4814
4814
  day = j;
4815
4815
  numbers.splice(i, 1);
4816
4816
 
@@ -4821,8 +4821,8 @@
4821
4821
  // year <= settings.centuryBreak
4822
4822
  if (year < 0) {
4823
4823
  for (i = numbers.length - 1; i >= 0; i--) {
4824
- j = parseInt(numbers[i], 10);
4825
- if (!isNaN(j)) {
4824
+ j = Number.parseInt(numbers[i], 10);
4825
+ if (!Number.isNaN(j)) {
4826
4826
  if (j <= 99) {
4827
4827
  j += settings.currentCentury;
4828
4828
  }
@@ -4839,8 +4839,8 @@
4839
4839
  // hour
4840
4840
  if (hour < 0) {
4841
4841
  for (i = 0; i < numbers.length; i++) {
4842
- j = parseInt(numbers[i], 10);
4843
- if (!isNaN(j) && j >= 0 && j <= 23) {
4842
+ j = Number.parseInt(numbers[i], 10);
4843
+ if (!Number.isNaN(j) && j >= 0 && j <= 23) {
4844
4844
  hour = j;
4845
4845
  numbers.splice(i, 1);
4846
4846
 
@@ -4852,8 +4852,8 @@
4852
4852
  // minute
4853
4853
  if (minute < 0) {
4854
4854
  for (i = 0; i < numbers.length; i++) {
4855
- j = parseInt(numbers[i], 10);
4856
- if (!isNaN(j) && j >= 0 && j <= 59) {
4855
+ j = Number.parseInt(numbers[i], 10);
4856
+ if (!Number.isNaN(j) && j >= 0 && j <= 59) {
4857
4857
  minute = j;
4858
4858
  numbers.splice(i, 1);
4859
4859
 
@@ -4899,7 +4899,7 @@
4899
4899
  date = new Date(year, month, 0, hour, minute);
4900
4900
  }
4901
4901
 
4902
- return isNaN(date.getTime()) ? null : date;
4902
+ return Number.isNaN(date.getTime()) ? null : date;
4903
4903
  },
4904
4904
  },
4905
4905
 
@@ -5000,7 +5000,7 @@
5000
5000
  })(jQuery, window, document);
5001
5001
 
5002
5002
  /*!
5003
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Checkbox
5003
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Checkbox
5004
5004
  * https://github.com/fomantic/Fomantic-UI/
5005
5005
  *
5006
5006
  *
@@ -5154,13 +5154,6 @@
5154
5154
  }
5155
5155
  },
5156
5156
 
5157
- preventDefaultOnInputTarget: function () {
5158
- if (event !== undefined && event !== null && $(event.target).is(selector.input)) {
5159
- module.verbose('Preventing default check action after manual check action');
5160
- event.preventDefault();
5161
- }
5162
- },
5163
-
5164
5157
  event: {
5165
5158
  change: function (event) {
5166
5159
  if (!module.should.ignoreCallbacks()) {
@@ -5263,7 +5256,6 @@
5263
5256
  settings.onChecked.call(input);
5264
5257
  module.trigger.change();
5265
5258
  }
5266
- module.preventDefaultOnInputTarget();
5267
5259
  },
5268
5260
 
5269
5261
  uncheck: function () {
@@ -5276,7 +5268,6 @@
5276
5268
  settings.onUnchecked.call(input);
5277
5269
  module.trigger.change();
5278
5270
  }
5279
- module.preventDefaultOnInputTarget();
5280
5271
  },
5281
5272
 
5282
5273
  indeterminate: function () {
@@ -5829,7 +5820,7 @@
5829
5820
  })(jQuery, window, document);
5830
5821
 
5831
5822
  /*!
5832
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Dimmer
5823
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Dimmer
5833
5824
  * https://github.com/fomantic/Fomantic-UI/
5834
5825
  *
5835
5826
  *
@@ -6516,7 +6507,7 @@
6516
6507
  })(jQuery, window, document);
6517
6508
 
6518
6509
  /*!
6519
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Dropdown
6510
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Dropdown
6520
6511
  * https://github.com/fomantic/Fomantic-UI/
6521
6512
  *
6522
6513
  *
@@ -7561,7 +7552,7 @@
7561
7552
  const pasteValue = (event.originalEvent.clipboardData || window.clipboardData).getData('text');
7562
7553
  const tokens = pasteValue.split(settings.delimiter);
7563
7554
  const notFoundTokens = [];
7564
- tokens.forEach(function (value) {
7555
+ for (let value of tokens) {
7565
7556
  value = value.trim();
7566
7557
  const valueTrimmed = settings.preserveHTML
7567
7558
  ? settings.templates.escape(value)
@@ -7569,7 +7560,7 @@
7569
7560
  if (module.set.selected(valueTrimmed, null, false, true) === false) {
7570
7561
  notFoundTokens.push(valueTrimmed);
7571
7562
  }
7572
- });
7563
+ }
7573
7564
  event.preventDefault();
7574
7565
  if (notFoundTokens.length > 0) {
7575
7566
  const searchEl = $search[0];
@@ -7762,11 +7753,11 @@
7762
7753
  },
7763
7754
  class: {
7764
7755
  mutation: function (mutations) {
7765
- mutations.forEach(function (mutation) {
7756
+ for (const mutation of mutations) {
7766
7757
  if (mutation.attributeName === 'class') {
7767
7758
  module.check.disabled();
7768
7759
  }
7769
- });
7760
+ }
7770
7761
  },
7771
7762
  },
7772
7763
  select: {
@@ -7784,13 +7775,7 @@
7784
7775
  menu: {
7785
7776
  mutation: function (mutations) {
7786
7777
  const mutation = mutations[0];
7787
- const $addedNode = mutation.addedNodes
7788
- ? $(mutation.addedNodes[0])
7789
- : $(false);
7790
- const $removedNode = mutation.removedNodes
7791
- ? $(mutation.removedNodes[0])
7792
- : $(false);
7793
- const $changedNodes = $addedNode.add($removedNode);
7778
+ const $changedNodes = $([...mutation.addedNodes, ...mutation.removedNodes]);
7794
7779
  const isUserAddition = $changedNodes.is(selector.addition) || $changedNodes.closest(selector.addition).length > 0;
7795
7780
  const isMessage = $changedNodes.is(selector.message) || $changedNodes.closest(selector.message).length > 0;
7796
7781
  if (isUserAddition || isMessage) {
@@ -10542,7 +10527,7 @@
10542
10527
  })(jQuery, window, document);
10543
10528
 
10544
10529
  /*!
10545
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Embed
10530
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Embed
10546
10531
  * https://github.com/fomantic/Fomantic-UI/
10547
10532
  *
10548
10533
  *
@@ -11189,7 +11174,7 @@
11189
11174
  })(jQuery, window, document);
11190
11175
 
11191
11176
  /*!
11192
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Flyout
11177
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Flyout
11193
11178
  * https://github.com/fomantic/Fomantic-UI/
11194
11179
  *
11195
11180
  *
@@ -11314,7 +11299,7 @@
11314
11299
  } else {
11315
11300
  $actions.empty();
11316
11301
  }
11317
- settings.actions.forEach(function (el) {
11302
+ for (const el of settings.actions) {
11318
11303
  const icon = el[fields.icon]
11319
11304
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
11320
11305
  : '';
@@ -11323,20 +11308,22 @@
11323
11308
  const click = el[fields.click] && isFunction(el[fields.click])
11324
11309
  ? el[fields.click]
11325
11310
  : function () {};
11311
+ const elementRef = element;
11312
+ const $moduleRef = $module;
11326
11313
  $actions.append($('<button/>', {
11327
11314
  html: icon + text,
11328
11315
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
11329
11316
  class: className.button + ' ' + cls,
11330
11317
  on: {
11331
11318
  click: function () {
11332
- if (click.call(element, $module) === false) {
11319
+ if (click.call(elementRef, $moduleRef) === false) {
11333
11320
  return;
11334
11321
  }
11335
11322
  module.hide();
11336
11323
  },
11337
11324
  },
11338
11325
  }));
11339
- });
11326
+ }
11340
11327
  }
11341
11328
 
11342
11329
  // avoids locking rendering if initialized in onReady
@@ -12116,7 +12103,7 @@
12116
12103
  },
12117
12104
  bodyMargin: function () {
12118
12105
  initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
12119
- initialBodyMarginInt = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
12106
+ initialBodyMarginInt = Number.parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
12120
12107
  const bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
12121
12108
  tempBodyMargin = initialBodyMarginInt + bodyScrollbarWidth;
12122
12109
  },
@@ -12138,7 +12125,7 @@
12138
12125
  return module.cache.isFirefox;
12139
12126
  },
12140
12127
  iframe: function () {
12141
- return !(self === top);
12128
+ return !(window.self === window.top);
12142
12129
  },
12143
12130
  mobile: function () {
12144
12131
  const userAgent = navigator.userAgent;
@@ -12592,7 +12579,7 @@
12592
12579
  })(jQuery, window, document);
12593
12580
 
12594
12581
  /*!
12595
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Modal
12582
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Modal
12596
12583
  * https://github.com/fomantic/Fomantic-UI/
12597
12584
  *
12598
12585
  *
@@ -12712,7 +12699,7 @@
12712
12699
  } else {
12713
12700
  $actions.empty();
12714
12701
  }
12715
- settings.actions.forEach(function (el) {
12702
+ for (const el of settings.actions) {
12716
12703
  const icon = el[fields.icon]
12717
12704
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
12718
12705
  : '';
@@ -12721,6 +12708,8 @@
12721
12708
  const click = el[fields.click] && isFunction(el[fields.click])
12722
12709
  ? el[fields.click]
12723
12710
  : function () {};
12711
+ const elementRef = element;
12712
+ const $moduleRef = $module;
12724
12713
  $actions.append($('<button/>', {
12725
12714
  html: icon + text,
12726
12715
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
@@ -12728,14 +12717,14 @@
12728
12717
  on: {
12729
12718
  click: function () {
12730
12719
  const button = $(this);
12731
- if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
12720
+ if (button.is(selector.approve) || button.is(selector.deny) || click.call(elementRef, $moduleRef) === false) {
12732
12721
  return;
12733
12722
  }
12734
12723
  module.hide();
12735
12724
  },
12736
12725
  },
12737
12726
  }));
12738
- });
12727
+ }
12739
12728
  }
12740
12729
  module.cache = {};
12741
12730
  module.verbose('Initializing dimmer', $context);
@@ -13371,7 +13360,7 @@
13371
13360
  },
13372
13361
  bodyMargin: function () {
13373
13362
  initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
13374
- initialBodyMarginInt = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
13363
+ initialBodyMarginInt = Number.parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
13375
13364
  const bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
13376
13365
  tempBodyMargin = initialBodyMarginInt + bodyScrollbarWidth;
13377
13366
  },
@@ -13549,7 +13538,7 @@
13549
13538
  return module.cache.isFirefox;
13550
13539
  },
13551
13540
  iframe: function () {
13552
- return !(self === top);
13541
+ return !(window.self === window.top);
13553
13542
  },
13554
13543
  },
13555
13544
 
@@ -14096,7 +14085,7 @@
14096
14085
  })(jQuery, window, document);
14097
14086
 
14098
14087
  /*!
14099
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Nag
14088
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Nag
14100
14089
  * https://github.com/fomantic/Fomantic-UI/
14101
14090
  *
14102
14091
  *
@@ -14619,7 +14608,7 @@
14619
14608
  })(jQuery, window, document);
14620
14609
 
14621
14610
  /*!
14622
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Popup
14611
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Popup
14623
14612
  * https://github.com/fomantic/Fomantic-UI/
14624
14613
  *
14625
14614
  *
@@ -14826,16 +14815,14 @@
14826
14815
  }
14827
14816
  },
14828
14817
  documentChanged: function (mutations) {
14829
- Array.prototype.forEach.call(mutations, function (mutation) {
14830
- if (mutation.removedNodes) {
14831
- Array.prototype.forEach.call(mutation.removedNodes, function (node) {
14832
- if (node === element || $(node).find(element).length > 0) {
14833
- module.debug('Element removed from DOM, tearing down events');
14834
- module.destroy();
14835
- }
14836
- });
14818
+ for (const mutation of mutations) {
14819
+ for (const node of mutation.removedNodes) {
14820
+ if (node === element || $(node).find(element).length > 0) {
14821
+ module.debug('Element removed from DOM, tearing down events');
14822
+ module.destroy();
14823
+ }
14837
14824
  }
14838
- });
14825
+ }
14839
14826
  },
14840
14827
  hideGracefully: function (event) {
14841
14828
  const $target = $(event.target);
@@ -15163,12 +15150,12 @@
15163
15150
 
15164
15151
  // add in margins if inline
15165
15152
  calculations.target.margin.top = settings.inline
15166
- ? parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10)
15153
+ ? Number.parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10)
15167
15154
  : 0;
15168
15155
  calculations.target.margin.left = settings.inline
15169
15156
  ? (module.is.rtl()
15170
- ? parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-right'), 10)
15171
- : parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10))
15157
+ ? Number.parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-right'), 10)
15158
+ : Number.parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10))
15172
15159
  : 0;
15173
15160
  // calculate screen boundaries
15174
15161
  const screen = calculations.screen;
@@ -16079,7 +16066,7 @@
16079
16066
  })(jQuery, window, document);
16080
16067
 
16081
16068
  /*!
16082
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Progress
16069
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Progress
16083
16070
  * https://github.com/fomantic/Fomantic-UI/
16084
16071
  *
16085
16072
  *
@@ -16179,7 +16166,7 @@
16179
16166
  forceArray: function (element) {
16180
16167
  return Array.isArray(element)
16181
16168
  ? element
16182
- : (!isNaN(element)
16169
+ : (!Number.isNaN(Number(element))
16183
16170
  ? [element]
16184
16171
  : (typeof element === 'string' ? element.split(',') : [])); // eslint-disable-line unicorn/no-nested-ternary
16185
16172
  },
@@ -16387,7 +16374,7 @@
16387
16374
  const $bar = $($bars[index]);
16388
16375
  const barWidth = $bar.width();
16389
16376
  const totalWidth = $module.width();
16390
- const minDisplay = parseInt($bar.css('min-width'), 10);
16377
+ const minDisplay = Number.parseInt($bar.css('min-width'), 10);
16391
16378
  const displayPercent = barWidth > minDisplay
16392
16379
  ? (barWidth / totalWidth) * 100
16393
16380
  : module.percent;
@@ -16502,9 +16489,9 @@
16502
16489
  });
16503
16490
  }
16504
16491
 
16505
- return parseFloat(value);
16492
+ return Number.parseFloat(value);
16506
16493
  });
16507
- values.forEach(function (_, index) {
16494
+ for (const [index, _] of values.entries()) {
16508
16495
  const $bar = $($bars[index]);
16509
16496
  $bar.css({
16510
16497
  borderTopLeftRadius: index === firstNonZeroIndex ? '' : '0',
@@ -16512,7 +16499,7 @@
16512
16499
  borderTopRightRadius: index === lastNonZeroIndex ? '' : '0',
16513
16500
  borderBottomRightRadius: index === lastNonZeroIndex ? '' : '0',
16514
16501
  });
16515
- });
16502
+ }
16516
16503
  $module
16517
16504
  .attr('data-percent', percents);
16518
16505
  },
@@ -17002,7 +16989,7 @@
17002
16989
  })(jQuery, window, document);
17003
16990
 
17004
16991
  /*!
17005
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Slider
16992
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Slider
17006
16993
  * https://github.com/fomantic/Fomantic-UI/
17007
16994
  *
17008
16995
  *
@@ -17818,9 +17805,9 @@
17818
17805
  : pagePos - module.get.trackOffset() - module.get.trackStartPos();
17819
17806
  },
17820
17807
  closestThumb: function (eventPos) {
17821
- const thumbPos = parseFloat(module.determine.thumbPos($thumb));
17808
+ const thumbPos = Number.parseFloat(module.determine.thumbPos($thumb));
17822
17809
  const thumbDelta = Math.abs(eventPos - thumbPos);
17823
- const secondThumbPos = parseFloat(module.determine.thumbPos($secondThumb));
17810
+ const secondThumbPos = Number.parseFloat(module.determine.thumbPos($secondThumb));
17824
17811
  const secondThumbDelta = Math.abs(eventPos - secondThumbPos);
17825
17812
  if (thumbDelta === secondThumbDelta && module.get.thumbValue() === module.get.min()) {
17826
17813
  return $secondThumb;
@@ -17829,9 +17816,9 @@
17829
17816
  return thumbDelta <= secondThumbDelta ? $thumb : $secondThumb;
17830
17817
  },
17831
17818
  closestThumbPos: function (eventPos) {
17832
- const thumbPos = parseFloat(module.determine.thumbPos($thumb));
17819
+ const thumbPos = Number.parseFloat(module.determine.thumbPos($thumb));
17833
17820
  const thumbDelta = Math.abs(eventPos - thumbPos);
17834
- const secondThumbPos = parseFloat(module.determine.thumbPos($secondThumb));
17821
+ const secondThumbPos = Number.parseFloat(module.determine.thumbPos($secondThumb));
17835
17822
  const secondThumbDelta = Math.abs(eventPos - secondThumbPos);
17836
17823
 
17837
17824
  return thumbDelta <= secondThumbDelta ? thumbPos : secondThumbPos;
@@ -17990,7 +17977,7 @@
17990
17977
  const $child = $(this);
17991
17978
  let attrValue = $child.attr('data-value');
17992
17979
  if (attrValue) {
17993
- attrValue = parseInt(attrValue, 10);
17980
+ attrValue = Number.parseInt(attrValue, 10);
17994
17981
  if (attrValue >= thumbVal && attrValue <= secondThumbVal) {
17995
17982
  $child.addClass(className.active);
17996
17983
  } else {
@@ -18452,7 +18439,7 @@
18452
18439
  })(jQuery, window, document);
18453
18440
 
18454
18441
  /*!
18455
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Rating
18442
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Rating
18456
18443
  * https://github.com/fomantic/Fomantic-UI/
18457
18444
  *
18458
18445
  *
@@ -18949,7 +18936,7 @@
18949
18936
  })(jQuery, window, document);
18950
18937
 
18951
18938
  /*!
18952
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Search
18939
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Search
18953
18940
  * https://github.com/fomantic/Fomantic-UI/
18954
18941
  *
18955
18942
  *
@@ -20469,7 +20456,7 @@
20469
20456
  })(jQuery, window, document);
20470
20457
 
20471
20458
  /*!
20472
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Shape
20459
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Shape
20473
20460
  * https://github.com/fomantic/Fomantic-UI/
20474
20461
  *
20475
20462
  *
@@ -21191,7 +21178,7 @@
21191
21178
  })(jQuery, window, document);
21192
21179
 
21193
21180
  /*!
21194
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Sidebar
21181
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Sidebar
21195
21182
  * https://github.com/fomantic/Fomantic-UI/
21196
21183
  *
21197
21184
  *
@@ -21516,7 +21503,7 @@
21516
21503
  save: {
21517
21504
  bodyMargin: function () {
21518
21505
  initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
21519
- initialBodyMarginInt = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
21506
+ initialBodyMarginInt = Number.parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
21520
21507
  const bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
21521
21508
  tempBodyMargin = initialBodyMarginInt + bodyScrollbarWidth;
21522
21509
  },
@@ -21864,7 +21851,7 @@
21864
21851
  return module.cache.isFirefox;
21865
21852
  },
21866
21853
  iframe: function () {
21867
- return !(self === top);
21854
+ return !(window.self === window.top);
21868
21855
  },
21869
21856
  mobile: function () {
21870
21857
  const userAgent = navigator.userAgent;
@@ -22144,7 +22131,7 @@
22144
22131
  })(jQuery, window, document);
22145
22132
 
22146
22133
  /*!
22147
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Sticky
22134
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Sticky
22148
22135
  * https://github.com/fomantic/Fomantic-UI/
22149
22136
  *
22150
22137
  *
@@ -22316,16 +22303,14 @@
22316
22303
  }, 100);
22317
22304
  },
22318
22305
  documentChanged: function (mutations) {
22319
- Array.prototype.forEach.call(mutations, function (mutation) {
22320
- if (mutation.removedNodes) {
22321
- Array.prototype.forEach.call(mutation.removedNodes, function (node) {
22322
- if (node === element || $(node).find(element).length > 0) {
22323
- module.debug('Element removed from DOM, tearing down events');
22324
- module.destroy();
22325
- }
22326
- });
22306
+ for (const mutation of mutations) {
22307
+ for (const node of mutation.removedNodes) {
22308
+ if (node === element || $(node).find(element).length > 0) {
22309
+ module.debug('Element removed from DOM, tearing down events');
22310
+ module.destroy();
22311
+ }
22327
22312
  }
22328
- });
22313
+ }
22329
22314
  },
22330
22315
  load: function () {
22331
22316
  module.verbose('Page contents finished loading');
@@ -22381,8 +22366,8 @@
22381
22366
  };
22382
22367
  const element = {
22383
22368
  margin: {
22384
- top: parseInt($module.css('margin-top'), 10),
22385
- bottom: parseInt($module.css('margin-bottom'), 10),
22369
+ top: Number.parseInt($module.css('margin-top'), 10),
22370
+ bottom: Number.parseInt($module.css('margin-bottom'), 10),
22386
22371
  },
22387
22372
  offset: $module.offset(),
22388
22373
  width: $module.outerWidth(),
@@ -22450,8 +22435,8 @@
22450
22435
  }
22451
22436
 
22452
22437
  return module.is.top()
22453
- ? Math.abs(parseInt($module.css('top'), 10)) || 0
22454
- : Math.abs(parseInt($module.css('bottom'), 10)) || 0;
22438
+ ? Math.abs(Number.parseInt($module.css('top'), 10)) || 0
22439
+ : Math.abs(Number.parseInt($module.css('bottom'), 10)) || 0;
22455
22440
  },
22456
22441
 
22457
22442
  elementScroll: function (scroll = $scroll.scrollTop()) {
@@ -22999,7 +22984,7 @@
22999
22984
  })(jQuery, window, document);
23000
22985
 
23001
22986
  /*!
23002
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Tab
22987
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Tab
23003
22988
  * https://github.com/fomantic/Fomantic-UI/
23004
22989
  *
23005
22990
  *
@@ -23869,7 +23854,7 @@
23869
23854
  })(jQuery, window, document);
23870
23855
 
23871
23856
  /*!
23872
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Toast
23857
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Toast
23873
23858
  * https://github.com/fomantic/Fomantic-UI/
23874
23859
  *
23875
23860
  *
@@ -24116,7 +24101,7 @@
24116
24101
  module.error(error.verticalCard);
24117
24102
  }
24118
24103
  }
24119
- settings.actions.forEach(function (el) {
24104
+ for (const el of settings.actions) {
24120
24105
  const icon = el[fields.icon]
24121
24106
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
24122
24107
  + ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
@@ -24126,6 +24111,8 @@
24126
24111
  const click = el[fields.click] && isFunction(el[fields.click])
24127
24112
  ? el[fields.click]
24128
24113
  : function () {};
24114
+ const elementRef = element;
24115
+ const $moduleRef = $module;
24129
24116
  $actions.append($('<button/>', {
24130
24117
  html: icon + text,
24131
24118
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
@@ -24133,14 +24120,14 @@
24133
24120
  on: {
24134
24121
  click: function () {
24135
24122
  const $button = $(this);
24136
- if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(element, $module) === false) {
24123
+ if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(elementRef, $moduleRef) === false) {
24137
24124
  return;
24138
24125
  }
24139
24126
  module.close();
24140
24127
  },
24141
24128
  },
24142
24129
  }));
24143
- });
24130
+ }
24144
24131
  }
24145
24132
  if ($actions && $actions.hasClass(className.vertical)) {
24146
24133
  $toast.addClass(className.vertical);
@@ -24435,9 +24422,9 @@
24435
24422
  const classes = selector.trim().split(/\s+/);
24436
24423
  let result = '';
24437
24424
 
24438
- classes.forEach(function (element) {
24425
+ for (const element of classes) {
24439
24426
  result += '.' + element;
24440
- });
24427
+ }
24441
24428
 
24442
24429
  return result;
24443
24430
  },
@@ -24782,7 +24769,7 @@
24782
24769
  })(jQuery, window, document);
24783
24770
 
24784
24771
  /*!
24785
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Transition
24772
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Transition
24786
24773
  * https://github.com/fomantic/Fomantic-UI/
24787
24774
  *
24788
24775
  *
@@ -25301,8 +25288,8 @@
25301
25288
 
25302
25289
  return typeof duration === 'string'
25303
25290
  ? (duration.includes('ms')
25304
- ? parseFloat(duration)
25305
- : parseFloat(duration) * 1000)
25291
+ ? Number.parseFloat(duration)
25292
+ : Number.parseFloat(duration) * 1000)
25306
25293
  : duration;
25307
25294
  },
25308
25295
  displayType: function (shouldDetermine = true) {
@@ -25738,7 +25725,7 @@
25738
25725
  })(jQuery, window, document);
25739
25726
 
25740
25727
  /*!
25741
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - API
25728
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - API
25742
25729
  * https://github.com/fomantic/Fomantic-UI/
25743
25730
  *
25744
25731
  *
@@ -26158,7 +26145,7 @@
26158
26145
  return;
26159
26146
  }
26160
26147
  const isCheckbox = $('[name="' + CSS.escape(el.name) + '"]', $form).attr('type') === 'checkbox';
26161
- const floatValue = parseFloat(el.value);
26148
+ const floatValue = Number.parseFloat(el.value);
26162
26149
  let value = (isCheckbox && el.value === 'on')
26163
26150
  || el.value === 'true'
26164
26151
  || (String(floatValue) === el.value
@@ -26851,7 +26838,7 @@
26851
26838
  })(jQuery, window, document);
26852
26839
 
26853
26840
  /*!
26854
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - State
26841
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - State
26855
26842
  * https://github.com/fomantic/Fomantic-UI/
26856
26843
  *
26857
26844
  *
@@ -27505,7 +27492,7 @@
27505
27492
  })(jQuery, window, document);
27506
27493
 
27507
27494
  /*!
27508
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Visibility
27495
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Visibility
27509
27496
  * https://github.com/fomantic/Fomantic-UI/
27510
27497
  *
27511
27498
  *
@@ -27682,16 +27669,14 @@
27682
27669
  }, 100);
27683
27670
  },
27684
27671
  contextChanged: function (mutations) {
27685
- Array.prototype.forEach.call(mutations, function (mutation) {
27686
- if (mutation.removedNodes) {
27687
- Array.prototype.forEach.call(mutation.removedNodes, function (node) {
27688
- if (node === element || $(node).find(element).length > 0) {
27689
- module.debug('Element removed from DOM, tearing down events');
27690
- module.destroy();
27691
- }
27692
- });
27672
+ for (const mutation of mutations) {
27673
+ for (const node of mutation.removedNodes) {
27674
+ if (node === element || $(node).find(element).length > 0) {
27675
+ module.debug('Element removed from DOM, tearing down events');
27676
+ module.destroy();
27677
+ }
27693
27678
  }
27694
- });
27679
+ }
27695
27680
  },
27696
27681
  resize: function () {
27697
27682
  module.debug('Window resized');
@@ -28332,8 +28317,8 @@
28332
28317
  // offset
28333
28318
  if (settings.includeMargin) {
28334
28319
  element.margin = {};
28335
- element.margin.top = parseInt($module.css('margin-top'), 10);
28336
- element.margin.bottom = parseInt($module.css('margin-bottom'), 10);
28320
+ element.margin.top = Number.parseInt($module.css('margin-top'), 10);
28321
+ element.margin.bottom = Number.parseInt($module.css('margin-bottom'), 10);
28337
28322
  element.top = element.offset.top - element.margin.top;
28338
28323
  element.bottom = element.offset.top + element.height + element.margin.bottom;
28339
28324
  } else {
@@ -28388,10 +28373,10 @@
28388
28373
  pixelsPassed: function (amount) {
28389
28374
  const element = module.get.elementCalculations();
28390
28375
  if (amount.search('%') > -1) {
28391
- return element.height * (parseInt(amount, 10) / 100);
28376
+ return element.height * (Number.parseInt(amount, 10) / 100);
28392
28377
  }
28393
28378
 
28394
- return parseInt(amount, 10);
28379
+ return Number.parseInt(amount, 10);
28395
28380
  },
28396
28381
  occurred: function (callback) {
28397
28382
  return module.cache.occurred !== undefined