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
@@ -153,13 +153,6 @@
153
153
  }
154
154
  },
155
155
 
156
- preventDefaultOnInputTarget: function () {
157
- if (event !== undefined && event !== null && $(event.target).is(selector.input)) {
158
- module.verbose('Preventing default check action after manual check action');
159
- event.preventDefault();
160
- }
161
- },
162
-
163
156
  event: {
164
157
  change: function (event) {
165
158
  if (!module.should.ignoreCallbacks()) {
@@ -262,7 +255,6 @@
262
255
  settings.onChecked.call(input);
263
256
  module.trigger.change();
264
257
  }
265
- module.preventDefaultOnInputTarget();
266
258
  },
267
259
 
268
260
  uncheck: function () {
@@ -275,7 +267,6 @@
275
267
  settings.onUnchecked.call(input);
276
268
  module.trigger.change();
277
269
  }
278
- module.preventDefaultOnInputTarget();
279
270
  },
280
271
 
281
272
  indeterminate: function () {
@@ -758,5 +758,4 @@
758
758
  });
759
759
  }
760
760
 
761
- // stylelint-disable no-invalid-position-at-import-rule
762
761
  @import (multiple, optional) "../../overrides.less";
@@ -387,5 +387,4 @@ body.dimmable > .dimmer {
387
387
  }
388
388
  }
389
389
 
390
- // stylelint-disable no-invalid-position-at-import-rule
391
390
  @import (multiple, optional) "../../overrides.less";
@@ -1044,7 +1044,7 @@
1044
1044
  const pasteValue = (event.originalEvent.clipboardData || window.clipboardData).getData('text');
1045
1045
  const tokens = pasteValue.split(settings.delimiter);
1046
1046
  const notFoundTokens = [];
1047
- tokens.forEach(function (value) {
1047
+ for (let value of tokens) {
1048
1048
  value = value.trim();
1049
1049
  const valueTrimmed = settings.preserveHTML
1050
1050
  ? settings.templates.escape(value)
@@ -1052,7 +1052,7 @@
1052
1052
  if (module.set.selected(valueTrimmed, null, false, true) === false) {
1053
1053
  notFoundTokens.push(valueTrimmed);
1054
1054
  }
1055
- });
1055
+ }
1056
1056
  event.preventDefault();
1057
1057
  if (notFoundTokens.length > 0) {
1058
1058
  const searchEl = $search[0];
@@ -1245,11 +1245,11 @@
1245
1245
  },
1246
1246
  class: {
1247
1247
  mutation: function (mutations) {
1248
- mutations.forEach(function (mutation) {
1248
+ for (const mutation of mutations) {
1249
1249
  if (mutation.attributeName === 'class') {
1250
1250
  module.check.disabled();
1251
1251
  }
1252
- });
1252
+ }
1253
1253
  },
1254
1254
  },
1255
1255
  select: {
@@ -1267,13 +1267,7 @@
1267
1267
  menu: {
1268
1268
  mutation: function (mutations) {
1269
1269
  const mutation = mutations[0];
1270
- const $addedNode = mutation.addedNodes
1271
- ? $(mutation.addedNodes[0])
1272
- : $(false);
1273
- const $removedNode = mutation.removedNodes
1274
- ? $(mutation.removedNodes[0])
1275
- : $(false);
1276
- const $changedNodes = $addedNode.add($removedNode);
1270
+ const $changedNodes = $([...mutation.addedNodes, ...mutation.removedNodes]);
1277
1271
  const isUserAddition = $changedNodes.is(selector.addition) || $changedNodes.closest(selector.addition).length > 0;
1278
1272
  const isMessage = $changedNodes.is(selector.message) || $changedNodes.closest(selector.message).length > 0;
1279
1273
  if (isUserAddition || isMessage) {
@@ -442,8 +442,7 @@ select.ui.dropdown {
442
442
 
443
443
  /* Selection Menu */
444
444
  .ui.selection.dropdown@{notUnlimited} .menu {
445
- overflow-x: hidden;
446
- overflow-y: auto;
445
+ overflow: hidden auto;
447
446
  overscroll-behavior: @overscrollBehavior;
448
447
  backface-visibility: hidden;
449
448
  }
@@ -798,8 +797,7 @@ select.ui.dropdown {
798
797
 
799
798
  /* Search Menu */
800
799
  .ui.search.dropdown@{notUnlimited} .menu {
801
- overflow-x: hidden;
802
- overflow-y: auto;
800
+ overflow: hidden auto;
803
801
  overscroll-behavior: @overscrollBehavior;
804
802
  backface-visibility: hidden;
805
803
  }
@@ -1375,8 +1373,7 @@ select.ui.dropdown {
1375
1373
  /* Selection Menu */
1376
1374
  .ui.scrolling.dropdown .menu,
1377
1375
  .ui.dropdown .scrolling.menu {
1378
- overflow-x: hidden;
1379
- overflow-y: auto;
1376
+ overflow: hidden auto;
1380
1377
  overscroll-behavior: @overscrollBehavior;
1381
1378
  backface-visibility: hidden;
1382
1379
  min-width: 100% !important;
@@ -1595,8 +1592,7 @@ select.ui.dropdown {
1595
1592
  /* Scrolling */
1596
1593
  .ui.simple.scrolling.active.dropdown > .menu,
1597
1594
  .ui.simple.scrolling.dropdown:hover > .menu {
1598
- overflow-x: hidden;
1599
- overflow-y: auto;
1595
+ overflow: hidden auto;
1600
1596
  overscroll-behavior: @overscrollBehavior;
1601
1597
  }
1602
1598
  }
@@ -1685,17 +1681,11 @@ select.ui.dropdown {
1685
1681
 
1686
1682
  /* Top Left Pointing */
1687
1683
  .ui.top.left.pointing.dropdown > .menu {
1688
- top: 100%;
1689
- bottom: auto;
1690
- left: 0;
1691
- right: auto;
1684
+ inset: 100% auto auto 0;
1692
1685
  margin: @pointingArrowDistanceFromEdge 0 0;
1693
1686
  }
1694
1687
  .ui.top.left.pointing.dropdown > .menu {
1695
- top: 100%;
1696
- bottom: auto;
1697
- left: 0;
1698
- right: auto;
1688
+ inset: 100% auto auto 0;
1699
1689
  margin: @pointingArrowDistanceFromEdge 0 0;
1700
1690
  }
1701
1691
  .ui.top.left.pointing.dropdown > .menu::after {
@@ -1708,10 +1698,7 @@ select.ui.dropdown {
1708
1698
 
1709
1699
  /* Top Right Pointing */
1710
1700
  .ui.top.right.pointing.dropdown > .menu {
1711
- top: 100%;
1712
- bottom: auto;
1713
- right: 0;
1714
- left: auto;
1701
+ inset: 100% 0 auto auto;
1715
1702
  margin: @pointingArrowDistanceFromEdge 0 0;
1716
1703
  }
1717
1704
  .ui.top.pointing.dropdown > .left.menu::after,
@@ -1766,10 +1753,7 @@ select.ui.dropdown {
1766
1753
 
1767
1754
  /* Bottom Pointing */
1768
1755
  .ui.bottom.pointing.dropdown > .menu {
1769
- top: auto;
1770
- bottom: 100%;
1771
- left: 0;
1772
- right: auto;
1756
+ inset: auto auto 100% 0;
1773
1757
  margin: 0 0 @pointingArrowDistanceFromEdge;
1774
1758
  }
1775
1759
  .ui.bottom.pointing.dropdown > .menu::after {
@@ -2101,5 +2085,4 @@ select.ui.dropdown {
2101
2085
  }
2102
2086
  }
2103
2087
 
2104
- // stylelint-disable no-invalid-position-at-import-rule
2105
2088
  @import (multiple, optional) "../../overrides.less";
@@ -155,5 +155,4 @@
155
155
  }
156
156
  }
157
157
 
158
- // stylelint-disable no-invalid-position-at-import-rule
159
158
  @import (multiple, optional) "../../overrides.less";
@@ -124,7 +124,7 @@
124
124
  } else {
125
125
  $actions.empty();
126
126
  }
127
- settings.actions.forEach(function (el) {
127
+ for (const el of settings.actions) {
128
128
  const icon = el[fields.icon]
129
129
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
130
130
  : '';
@@ -133,20 +133,22 @@
133
133
  const click = el[fields.click] && isFunction(el[fields.click])
134
134
  ? el[fields.click]
135
135
  : function () {};
136
+ const elementRef = element;
137
+ const $moduleRef = $module;
136
138
  $actions.append($('<button/>', {
137
139
  html: icon + text,
138
140
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
139
141
  class: className.button + ' ' + cls,
140
142
  on: {
141
143
  click: function () {
142
- if (click.call(element, $module) === false) {
144
+ if (click.call(elementRef, $moduleRef) === false) {
143
145
  return;
144
146
  }
145
147
  module.hide();
146
148
  },
147
149
  },
148
150
  }));
149
- });
151
+ }
150
152
  }
151
153
 
152
154
  // avoids locking rendering if initialized in onReady
@@ -926,7 +928,7 @@
926
928
  },
927
929
  bodyMargin: function () {
928
930
  initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
929
- initialBodyMarginInt = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
931
+ initialBodyMarginInt = Number.parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
930
932
  const bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
931
933
  tempBodyMargin = initialBodyMarginInt + bodyScrollbarWidth;
932
934
  },
@@ -948,7 +950,7 @@
948
950
  return module.cache.isFirefox;
949
951
  },
950
952
  iframe: function () {
951
- return !(self === top);
953
+ return !(window.self === window.top);
952
954
  },
953
955
  mobile: function () {
954
956
  const userAgent = navigator.userAgent;
@@ -651,5 +651,4 @@ body.pushable > .pusher {
651
651
  }
652
652
  }
653
653
 
654
- // stylelint-disable no-invalid-position-at-import-rule
655
654
  @import (multiple, optional) "../../overrides.less";
@@ -119,7 +119,7 @@
119
119
  } else {
120
120
  $actions.empty();
121
121
  }
122
- settings.actions.forEach(function (el) {
122
+ for (const el of settings.actions) {
123
123
  const icon = el[fields.icon]
124
124
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
125
125
  : '';
@@ -128,6 +128,8 @@
128
128
  const click = el[fields.click] && isFunction(el[fields.click])
129
129
  ? el[fields.click]
130
130
  : function () {};
131
+ const elementRef = element;
132
+ const $moduleRef = $module;
131
133
  $actions.append($('<button/>', {
132
134
  html: icon + text,
133
135
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
@@ -135,14 +137,14 @@
135
137
  on: {
136
138
  click: function () {
137
139
  const button = $(this);
138
- if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
140
+ if (button.is(selector.approve) || button.is(selector.deny) || click.call(elementRef, $moduleRef) === false) {
139
141
  return;
140
142
  }
141
143
  module.hide();
142
144
  },
143
145
  },
144
146
  }));
145
- });
147
+ }
146
148
  }
147
149
  module.cache = {};
148
150
  module.verbose('Initializing dimmer', $context);
@@ -778,7 +780,7 @@
778
780
  },
779
781
  bodyMargin: function () {
780
782
  initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
781
- initialBodyMarginInt = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
783
+ initialBodyMarginInt = Number.parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
782
784
  const bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
783
785
  tempBodyMargin = initialBodyMarginInt + bodyScrollbarWidth;
784
786
  },
@@ -956,7 +958,7 @@
956
958
  return module.cache.isFirefox;
957
959
  },
958
960
  iframe: function () {
959
- return !(self === top);
961
+ return !(window.self === window.top);
960
962
  },
961
963
  },
962
964
 
@@ -656,5 +656,4 @@
656
656
  }
657
657
  }
658
658
 
659
- // stylelint-disable no-invalid-position-at-import-rule
660
659
  @import (multiple, optional) "../../overrides.less";
@@ -212,5 +212,4 @@ a.ui.nag {
212
212
  }
213
213
  }
214
214
 
215
- // stylelint-disable no-invalid-position-at-import-rule
216
215
  @import (multiple, optional) "../../overrides.less";
@@ -206,16 +206,14 @@
206
206
  }
207
207
  },
208
208
  documentChanged: function (mutations) {
209
- Array.prototype.forEach.call(mutations, function (mutation) {
210
- if (mutation.removedNodes) {
211
- Array.prototype.forEach.call(mutation.removedNodes, function (node) {
212
- if (node === element || $(node).find(element).length > 0) {
213
- module.debug('Element removed from DOM, tearing down events');
214
- module.destroy();
215
- }
216
- });
209
+ for (const mutation of mutations) {
210
+ for (const node of mutation.removedNodes) {
211
+ if (node === element || $(node).find(element).length > 0) {
212
+ module.debug('Element removed from DOM, tearing down events');
213
+ module.destroy();
214
+ }
217
215
  }
218
- });
216
+ }
219
217
  },
220
218
  hideGracefully: function (event) {
221
219
  const $target = $(event.target);
@@ -543,12 +541,12 @@
543
541
 
544
542
  // add in margins if inline
545
543
  calculations.target.margin.top = settings.inline
546
- ? parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10)
544
+ ? Number.parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10)
547
545
  : 0;
548
546
  calculations.target.margin.left = settings.inline
549
547
  ? (module.is.rtl()
550
- ? parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-right'), 10)
551
- : parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10))
548
+ ? Number.parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-right'), 10)
549
+ : Number.parseInt(window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10))
552
550
  : 0;
553
551
  // calculate screen boundaries
554
552
  const screen = calculations.screen;
@@ -237,18 +237,12 @@
237
237
  /* Top Center (default) */
238
238
  [data-tooltip]:not([data-position])::after,
239
239
  [data-position="top center"][data-tooltip]::after {
240
- top: auto;
241
- right: auto;
242
- left: 50%;
243
- bottom: 100%;
240
+ inset: auto auto 100% 50%;
244
241
  margin-bottom: @tooltipDistanceAway;
245
242
  }
246
243
  [data-tooltip]:not([data-position])::before,
247
244
  [data-position="top center"][data-tooltip]::before {
248
- top: auto;
249
- right: auto;
250
- bottom: 100%;
251
- left: 50%;
245
+ inset: auto auto 100% 50%;
252
246
  background: @tooltipArrowTopBackground;
253
247
  margin-left: @tooltipArrowHorizontalOffset;
254
248
  margin-bottom: -@tooltipArrowVerticalOffset;
@@ -257,17 +251,11 @@
257
251
  & when (@variationPopupLeft) {
258
252
  /* Top Left */
259
253
  [data-position="top left"][data-tooltip]::after {
260
- top: auto;
261
- right: auto;
262
- left: 0;
263
- bottom: 100%;
254
+ inset: auto auto 100% 0;
264
255
  margin-bottom: @tooltipDistanceAway;
265
256
  }
266
257
  [data-position="top left"][data-tooltip]::before {
267
- top: auto;
268
- right: auto;
269
- bottom: 100%;
270
- left: @arrowDistanceFromEdge;
258
+ inset: auto auto 100% @arrowDistanceFromEdge;
271
259
  margin-left: @tooltipArrowHorizontalOffset;
272
260
  margin-bottom: -@tooltipArrowVerticalOffset;
273
261
  }
@@ -275,17 +263,11 @@
275
263
  & when (@variationPopupRight) {
276
264
  /* Top Right */
277
265
  [data-position="top right"][data-tooltip]::after {
278
- top: auto;
279
- left: auto;
280
- right: 0;
281
- bottom: 100%;
266
+ inset: auto 0 100% auto;
282
267
  margin-bottom: @tooltipDistanceAway;
283
268
  }
284
269
  [data-position="top right"][data-tooltip]::before {
285
- top: auto;
286
- left: auto;
287
- bottom: 100%;
288
- right: @arrowDistanceFromEdge;
270
+ inset: auto @arrowDistanceFromEdge 100% auto;
289
271
  margin-left: @tooltipArrowHorizontalOffset;
290
272
  margin-bottom: -@tooltipArrowVerticalOffset;
291
273
  }
@@ -300,17 +282,11 @@
300
282
  & when (@variationPopupCenter) {
301
283
  /* Bottom Center */
302
284
  [data-position="bottom center"][data-tooltip]::after {
303
- bottom: auto;
304
- right: auto;
305
- left: 50%;
306
- top: 100%;
285
+ inset: 100% auto auto 50%;
307
286
  margin-top: @tooltipDistanceAway;
308
287
  }
309
288
  [data-position="bottom center"][data-tooltip]::before {
310
- bottom: auto;
311
- right: auto;
312
- top: 100%;
313
- left: 50%;
289
+ inset: 100% auto auto 50%;
314
290
  margin-left: @tooltipArrowHorizontalOffset;
315
291
  margin-top: -@arrowOffset;
316
292
  }
@@ -323,10 +299,7 @@
323
299
  margin-top: @tooltipDistanceAway;
324
300
  }
325
301
  [data-position="bottom left"][data-tooltip]::before {
326
- bottom: auto;
327
- right: auto;
328
- top: 100%;
329
- left: @arrowDistanceFromEdge;
302
+ inset: 100% auto auto @arrowDistanceFromEdge;
330
303
  margin-left: @tooltipArrowHorizontalOffset;
331
304
  margin-top: -@tooltipArrowVerticalOffset;
332
305
  }
@@ -339,10 +312,7 @@
339
312
  margin-top: @tooltipDistanceAway;
340
313
  }
341
314
  [data-position="bottom right"][data-tooltip]::before {
342
- bottom: auto;
343
- left: auto;
344
- top: 100%;
345
- right: @arrowDistanceFromEdge;
315
+ inset: 100% @arrowDistanceFromEdge auto auto;
346
316
  margin-left: @tooltipArrowVerticalOffset;
347
317
  margin-top: -@tooltipArrowHorizontalOffset;
348
318
  }
@@ -548,10 +518,7 @@
548
518
  /* --- Below --- */
549
519
  .ui.bottom.center.popup::before {
550
520
  margin-left: @arrowOffset;
551
- top: @arrowOffset;
552
- left: 50%;
553
- right: auto;
554
- bottom: auto;
521
+ inset: @arrowOffset auto auto 50%;
555
522
  box-shadow: @bottomArrowBoxShadow;
556
523
  }
557
524
 
@@ -561,10 +528,7 @@
561
528
 
562
529
  /* rtl:rename */
563
530
  .ui.bottom.left.popup::before {
564
- top: @arrowOffset;
565
- left: @arrowDistanceFromEdge;
566
- right: auto;
567
- bottom: auto;
531
+ inset: @arrowOffset auto auto @arrowDistanceFromEdge;
568
532
  margin-left: 0;
569
533
  box-shadow: @bottomArrowBoxShadow;
570
534
  }
@@ -575,10 +539,7 @@
575
539
 
576
540
  /* rtl:rename */
577
541
  .ui.bottom.right.popup::before {
578
- top: @arrowOffset;
579
- right: @arrowDistanceFromEdge;
580
- bottom: auto;
581
- left: auto;
542
+ inset: @arrowOffset @arrowDistanceFromEdge auto auto;
582
543
  margin-left: 0;
583
544
  box-shadow: @bottomArrowBoxShadow;
584
545
  }
@@ -588,10 +549,7 @@
588
549
  /* --- Above --- */
589
550
  & when (@variationPopupCenter) {
590
551
  .ui.top.center.popup::before {
591
- top: auto;
592
- right: auto;
593
- bottom: @arrowOffset;
594
- left: 50%;
552
+ inset: auto auto @arrowOffset 50%;
595
553
  margin-left: @arrowOffset;
596
554
  }
597
555
  }
@@ -602,10 +560,7 @@
602
560
 
603
561
  /* rtl:rename */
604
562
  .ui.top.left.popup::before {
605
- bottom: @arrowOffset;
606
- left: @arrowDistanceFromEdge;
607
- top: auto;
608
- right: auto;
563
+ inset: auto auto @arrowOffset @arrowDistanceFromEdge;
609
564
  margin-left: 0;
610
565
  }
611
566
  }
@@ -616,10 +571,7 @@
616
571
 
617
572
  /* rtl:rename */
618
573
  .ui.top.right.popup::before {
619
- bottom: @arrowOffset;
620
- right: @arrowDistanceFromEdge;
621
- top: auto;
622
- left: auto;
574
+ inset: auto @arrowDistanceFromEdge @arrowOffset auto;
623
575
  margin-left: 0;
624
576
  }
625
577
  }
@@ -631,10 +583,7 @@
631
583
  /* rtl:rename */
632
584
  & when (@variationPopupLeft) {
633
585
  .ui.left.center.popup::before {
634
- top: 50%;
635
- right: @arrowOffset;
636
- bottom: auto;
637
- left: auto;
586
+ inset: 50% @arrowOffset auto auto;
638
587
  margin-top: @arrowOffset;
639
588
  box-shadow: @leftArrowBoxShadow;
640
589
  }
@@ -644,10 +593,7 @@
644
593
 
645
594
  /* rtl:rename */
646
595
  .ui.right.center.popup::before {
647
- top: 50%;
648
- left: @arrowOffset;
649
- bottom: auto;
650
- right: auto;
596
+ inset: 50% auto auto @arrowOffset;
651
597
  margin-top: @arrowOffset;
652
598
  box-shadow: @rightArrowBoxShadow;
653
599
  }
@@ -932,5 +878,4 @@
932
878
  });
933
879
  }
934
880
 
935
- // stylelint-disable no-invalid-position-at-import-rule
936
881
  @import (multiple, optional) "../../overrides.less";
@@ -99,7 +99,7 @@
99
99
  forceArray: function (element) {
100
100
  return Array.isArray(element)
101
101
  ? element
102
- : (!isNaN(element)
102
+ : (!Number.isNaN(Number(element))
103
103
  ? [element]
104
104
  : (typeof element === 'string' ? element.split(',') : [])); // eslint-disable-line unicorn/no-nested-ternary
105
105
  },
@@ -307,7 +307,7 @@
307
307
  const $bar = $($bars[index]);
308
308
  const barWidth = $bar.width();
309
309
  const totalWidth = $module.width();
310
- const minDisplay = parseInt($bar.css('min-width'), 10);
310
+ const minDisplay = Number.parseInt($bar.css('min-width'), 10);
311
311
  const displayPercent = barWidth > minDisplay
312
312
  ? (barWidth / totalWidth) * 100
313
313
  : module.percent;
@@ -422,9 +422,9 @@
422
422
  });
423
423
  }
424
424
 
425
- return parseFloat(value);
425
+ return Number.parseFloat(value);
426
426
  });
427
- values.forEach(function (_, index) {
427
+ for (const [index, _] of values.entries()) {
428
428
  const $bar = $($bars[index]);
429
429
  $bar.css({
430
430
  borderTopLeftRadius: index === firstNonZeroIndex ? '' : '0',
@@ -432,7 +432,7 @@
432
432
  borderTopRightRadius: index === lastNonZeroIndex ? '' : '0',
433
433
  borderBottomRightRadius: index === lastNonZeroIndex ? '' : '0',
434
434
  });
435
- });
435
+ }
436
436
  $module
437
437
  .attr('data-percent', percents);
438
438
  },
@@ -91,10 +91,7 @@
91
91
  position: @progressPosition;
92
92
  width: @progressWidth;
93
93
  font-size: @progressSize;
94
- top: @progressTop;
95
- right: @progressRight;
96
- left: @progressLeft;
97
- bottom: @progressBottom;
94
+ inset: @progressTop @progressRight @progressBottom @progressLeft;
98
95
  color: @progressColor;
99
96
  text-shadow: @progressTextShadow;
100
97
  margin-top: @progressOffset;
@@ -117,10 +114,7 @@
117
114
  position: absolute;
118
115
  width: @labelWidth;
119
116
  font-size: @labelSize;
120
- top: @labelTop;
121
- right: @labelRight;
122
- left: @labelLeft;
123
- bottom: @labelBottom;
117
+ inset: @labelTop @labelRight @labelBottom @labelLeft;
124
118
  color: @labelColor;
125
119
  font-weight: @labelFontWeight;
126
120
  text-shadow: @labelTextShadow;
@@ -352,10 +346,7 @@
352
346
  content: "";
353
347
  opacity: 0;
354
348
  position: absolute;
355
- top: 0;
356
- left: 0;
357
- right: 0;
358
- bottom: 0;
349
+ inset: 0;
359
350
  background: @activePulseColor;
360
351
  border-radius: @barBorderRadius;
361
352
  animation: progress-active @activePulseDuration @defaultEasing infinite;
@@ -668,5 +659,4 @@
668
659
  }
669
660
  }
670
661
 
671
- // stylelint-disable no-invalid-position-at-import-rule
672
662
  @import (multiple, optional) "../../overrides.less";
@@ -177,5 +177,4 @@
177
177
  });
178
178
  }
179
179
 
180
- // stylelint-disable no-invalid-position-at-import-rule
181
180
  @import (multiple, optional) "../../overrides.less";
@@ -402,8 +402,7 @@
402
402
  .ui.scrolling.search > .results,
403
403
  .ui.search.long > .results,
404
404
  .ui.search.short > .results {
405
- overflow-x: hidden;
406
- overflow-y: auto;
405
+ overflow: hidden auto;
407
406
  overscroll-behavior: @overscrollBehavior;
408
407
  backface-visibility: hidden;
409
408
  }
@@ -597,5 +596,4 @@
597
596
  }
598
597
  }
599
598
 
600
- // stylelint-disable no-invalid-position-at-import-rule
601
599
  @import (multiple, optional) "../../overrides.less";
@@ -143,5 +143,4 @@
143
143
  display: block;
144
144
  }
145
145
 
146
- // stylelint-disable no-invalid-position-at-import-rule
147
146
  @import (multiple, optional) "../../overrides.less";