fomantic-ui 2.10.0-beta.3 → 2.10.0-beta.5

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 (249) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/CONTRIBUTING.md +4 -1
  3. package/CONTRIBUTORS.md +1 -0
  4. package/FAQ.md +7 -2
  5. package/README.md +1 -4
  6. package/ROADMAP.md +4 -4
  7. package/SECURITY.md +8 -7
  8. package/dist/components/accordion.css +1 -1
  9. package/dist/components/accordion.js +1 -1
  10. package/dist/components/accordion.min.css +1 -1
  11. package/dist/components/accordion.min.js +1 -1
  12. package/dist/components/ad.css +1 -1
  13. package/dist/components/ad.min.css +1 -1
  14. package/dist/components/api.js +1 -1
  15. package/dist/components/api.min.js +1 -1
  16. package/dist/components/breadcrumb.css +1 -1
  17. package/dist/components/breadcrumb.min.css +1 -1
  18. package/dist/components/button.css +1 -2
  19. package/dist/components/button.min.css +2 -2
  20. package/dist/components/calendar.css +1 -2
  21. package/dist/components/calendar.js +2 -2
  22. package/dist/components/calendar.min.css +2 -2
  23. package/dist/components/calendar.min.js +2 -2
  24. package/dist/components/card.css +1 -1
  25. package/dist/components/card.min.css +1 -1
  26. package/dist/components/checkbox.css +1 -2
  27. package/dist/components/checkbox.js +1 -9
  28. package/dist/components/checkbox.min.css +2 -2
  29. package/dist/components/checkbox.min.js +2 -2
  30. package/dist/components/comment.css +1 -1
  31. package/dist/components/comment.min.css +1 -1
  32. package/dist/components/container.css +2 -4
  33. package/dist/components/container.min.css +2 -2
  34. package/dist/components/dimmer.css +1 -11
  35. package/dist/components/dimmer.js +1 -1
  36. package/dist/components/dimmer.min.css +2 -2
  37. package/dist/components/dimmer.min.js +1 -1
  38. package/dist/components/divider.css +1 -2
  39. package/dist/components/divider.min.css +2 -2
  40. package/dist/components/dropdown.css +24 -47
  41. package/dist/components/dropdown.js +32 -32
  42. package/dist/components/dropdown.min.css +2 -2
  43. package/dist/components/dropdown.min.js +2 -2
  44. package/dist/components/embed.css +1 -1
  45. package/dist/components/embed.js +1 -1
  46. package/dist/components/embed.min.css +1 -1
  47. package/dist/components/embed.min.js +1 -1
  48. package/dist/components/emoji.css +1 -1
  49. package/dist/components/emoji.min.css +1 -1
  50. package/dist/components/feed.css +1 -1
  51. package/dist/components/feed.min.css +1 -1
  52. package/dist/components/flag.css +1 -1
  53. package/dist/components/flag.min.css +1 -1
  54. package/dist/components/flyout.css +2 -3
  55. package/dist/components/flyout.js +8 -48
  56. package/dist/components/flyout.min.css +2 -2
  57. package/dist/components/flyout.min.js +2 -2
  58. package/dist/components/form.css +1 -91
  59. package/dist/components/form.js +1 -6
  60. package/dist/components/form.min.css +2 -2
  61. package/dist/components/form.min.js +2 -2
  62. package/dist/components/grid.css +2 -58
  63. package/dist/components/grid.min.css +2 -2
  64. package/dist/components/header.css +1 -1
  65. package/dist/components/header.min.css +1 -1
  66. package/dist/components/icon.css +4 -4
  67. package/dist/components/icon.min.css +2 -2
  68. package/dist/components/image.css +1 -1
  69. package/dist/components/image.min.css +1 -1
  70. package/dist/components/input.css +1 -536
  71. package/dist/components/input.min.css +2 -2
  72. package/dist/components/item.css +1 -1
  73. package/dist/components/item.min.css +1 -1
  74. package/dist/components/label.css +1 -1
  75. package/dist/components/label.min.css +1 -1
  76. package/dist/components/list.css +1 -3
  77. package/dist/components/list.min.css +2 -2
  78. package/dist/components/loader.css +1 -1
  79. package/dist/components/loader.min.css +1 -1
  80. package/dist/components/menu.css +1 -9
  81. package/dist/components/menu.min.css +2 -2
  82. package/dist/components/message.css +1 -1
  83. package/dist/components/message.min.css +1 -1
  84. package/dist/components/modal.css +5 -9
  85. package/dist/components/modal.js +10 -34
  86. package/dist/components/modal.min.css +2 -2
  87. package/dist/components/modal.min.js +2 -2
  88. package/dist/components/nag.css +1 -1
  89. package/dist/components/nag.js +1 -1
  90. package/dist/components/nag.min.css +1 -1
  91. package/dist/components/nag.min.js +1 -1
  92. package/dist/components/placeholder.css +1 -1
  93. package/dist/components/placeholder.min.css +1 -1
  94. package/dist/components/popup.css +1 -2
  95. package/dist/components/popup.js +1 -1
  96. package/dist/components/popup.min.css +2 -2
  97. package/dist/components/popup.min.js +1 -1
  98. package/dist/components/progress.css +1 -1
  99. package/dist/components/progress.js +1 -1
  100. package/dist/components/progress.min.css +1 -1
  101. package/dist/components/progress.min.js +1 -1
  102. package/dist/components/rail.css +1 -1
  103. package/dist/components/rail.min.css +1 -1
  104. package/dist/components/rating.css +1 -1
  105. package/dist/components/rating.js +1 -1
  106. package/dist/components/rating.min.css +1 -1
  107. package/dist/components/rating.min.js +1 -1
  108. package/dist/components/reset.css +1 -1
  109. package/dist/components/reset.min.css +1 -1
  110. package/dist/components/reveal.css +1 -1
  111. package/dist/components/reveal.min.css +1 -1
  112. package/dist/components/search.css +2 -9
  113. package/dist/components/search.js +22 -20
  114. package/dist/components/search.min.css +2 -2
  115. package/dist/components/search.min.js +2 -2
  116. package/dist/components/segment.css +2 -7
  117. package/dist/components/segment.min.css +2 -2
  118. package/dist/components/shape.css +1 -2
  119. package/dist/components/shape.js +1 -1
  120. package/dist/components/shape.min.css +2 -2
  121. package/dist/components/shape.min.js +1 -1
  122. package/dist/components/sidebar.css +2 -3
  123. package/dist/components/sidebar.js +2 -43
  124. package/dist/components/sidebar.min.css +2 -2
  125. package/dist/components/sidebar.min.js +2 -2
  126. package/dist/components/site.css +9 -25
  127. package/dist/components/site.js +1 -1
  128. package/dist/components/site.min.css +2 -2
  129. package/dist/components/site.min.js +1 -1
  130. package/dist/components/slider.css +1 -1
  131. package/dist/components/slider.js +1 -1
  132. package/dist/components/slider.min.css +1 -1
  133. package/dist/components/slider.min.js +1 -1
  134. package/dist/components/state.js +1 -1
  135. package/dist/components/state.min.js +1 -1
  136. package/dist/components/statistic.css +1 -1
  137. package/dist/components/statistic.min.css +1 -1
  138. package/dist/components/step.css +1 -1
  139. package/dist/components/step.min.css +1 -1
  140. package/dist/components/sticky.css +1 -1
  141. package/dist/components/sticky.js +1 -1
  142. package/dist/components/sticky.min.css +1 -1
  143. package/dist/components/sticky.min.js +1 -1
  144. package/dist/components/tab.css +1 -1
  145. package/dist/components/tab.js +1 -1
  146. package/dist/components/tab.min.css +1 -1
  147. package/dist/components/tab.min.js +1 -1
  148. package/dist/components/table.css +3 -37
  149. package/dist/components/table.min.css +2 -2
  150. package/dist/components/text.css +1 -1
  151. package/dist/components/text.min.css +1 -1
  152. package/dist/components/toast.css +1 -3
  153. package/dist/components/toast.js +9 -9
  154. package/dist/components/toast.min.css +1 -1
  155. package/dist/components/toast.min.js +2 -2
  156. package/dist/components/transition.css +1 -1
  157. package/dist/components/transition.js +2 -2
  158. package/dist/components/transition.min.css +1 -1
  159. package/dist/components/transition.min.js +1 -1
  160. package/dist/components/visibility.js +1 -1
  161. package/dist/components/visibility.min.js +1 -1
  162. package/dist/semantic.css +88 -1096
  163. package/dist/semantic.js +105 -221
  164. package/dist/semantic.min.css +2 -2
  165. package/dist/semantic.min.js +2 -2
  166. package/package.json +3 -4
  167. package/src/definitions/behaviors/form.js +0 -5
  168. package/src/definitions/collections/form.less +0 -12
  169. package/src/definitions/collections/grid.less +1 -61
  170. package/src/definitions/collections/menu.less +0 -11
  171. package/src/definitions/collections/table.less +1 -35
  172. package/src/definitions/elements/input.less +1 -61
  173. package/src/definitions/elements/segment.less +0 -6
  174. package/src/definitions/globals/site.less +2 -18
  175. package/src/definitions/modules/calendar.js +1 -1
  176. package/src/definitions/modules/checkbox.js +0 -8
  177. package/src/definitions/modules/dimmer.less +0 -9
  178. package/src/definitions/modules/dropdown.js +31 -31
  179. package/src/definitions/modules/dropdown.less +20 -42
  180. package/src/definitions/modules/flyout.js +7 -47
  181. package/src/definitions/modules/modal.js +9 -33
  182. package/src/definitions/modules/modal.less +1 -1
  183. package/src/definitions/modules/search.js +21 -19
  184. package/src/definitions/modules/search.less +0 -3
  185. package/src/definitions/modules/sidebar.js +1 -42
  186. package/src/definitions/modules/toast.js +8 -8
  187. package/src/definitions/modules/toast.less +1 -1
  188. package/src/definitions/modules/transition.js +1 -1
  189. package/src/theme.less +0 -13
  190. package/src/themes/basic/elements/icon.variables +1 -1
  191. package/src/themes/default/collections/grid.variables +0 -30
  192. package/src/themes/default/collections/table.variables +1 -5
  193. package/src/themes/default/elements/icon.variables +3 -3
  194. package/src/themes/default/globals/site.variables +8 -15
  195. package/src/themes/default/globals/variation.variables +0 -1
  196. package/src/themes/github/elements/icon.variables +1 -1
  197. package/src/themes/material/elements/icon.variables +1 -1
  198. package/tasks/README.md +1 -1
  199. package/tasks/admin/components/create.js +1 -14
  200. package/tasks/admin/components/init.js +12 -37
  201. package/tasks/admin/components/update.js +7 -11
  202. package/tasks/admin/distributions/create.js +1 -11
  203. package/tasks/admin/distributions/init.js +10 -35
  204. package/tasks/admin/distributions/update.js +7 -8
  205. package/tasks/admin/publish.js +1 -1
  206. package/tasks/admin/register.js +3 -4
  207. package/tasks/admin/release.js +2 -2
  208. package/tasks/build/css.js +5 -5
  209. package/tasks/build/javascript.js +3 -3
  210. package/tasks/check-install.js +0 -1
  211. package/tasks/clean.js +5 -5
  212. package/tasks/collections/admin.js +1 -1
  213. package/tasks/collections/docs.js +2 -2
  214. package/tasks/config/admin/github.js +2 -10
  215. package/tasks/config/admin/templates/README.md +2 -2
  216. package/tasks/config/admin/templates/bower.json +2 -4
  217. package/tasks/config/admin/templates/composer.json +1 -1
  218. package/tasks/config/admin/templates/css-package.js +0 -1
  219. package/tasks/config/project/config.js +6 -6
  220. package/tasks/config/project/install.js +3 -4
  221. package/tasks/config/project/release.js +1 -1
  222. package/tasks/config/tasks.js +2 -9
  223. package/tasks/config/user.js +2 -4
  224. package/tasks/docs/metadata.js +8 -11
  225. package/tasks/docs/serve.js +3 -1
  226. package/tasks/install.js +14 -20
  227. package/tasks/rtl/watch.js +1 -1
  228. package/tasks/watch.js +4 -2
  229. package/types/fomantic-ui-calendar.d.ts +1 -1
  230. package/types/fomantic-ui-dropdown.d.ts +50 -1
  231. package/types/fomantic-ui-flyout.d.ts +1 -1
  232. package/types/fomantic-ui-form.d.ts +0 -7
  233. package/types/fomantic-ui-modal.d.ts +1 -1
  234. package/types/fomantic-ui-search.d.ts +12 -6
  235. package/types/fomantic-ui-toast.d.ts +1 -1
  236. package/src/themes/basic/assets/fonts/icons.woff +0 -0
  237. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  238. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  239. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  240. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  241. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  242. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  243. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  244. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  245. package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
  246. package/src/themes/default/assets/fonts/icons.woff +0 -0
  247. package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
  248. package/src/themes/github/assets/fonts/octicons.woff +0 -0
  249. package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -439,18 +439,6 @@ select.ui.dropdown {
439
439
  opacity: @selectionIconOpacity;
440
440
  transition: @selectionIconTransition;
441
441
  }
442
- & when (@variationDropdownCompact) {
443
- /* Compact */
444
- .ui.compact.selection.dropdown {
445
- min-width: 0;
446
- & > .menu {
447
- width: auto;
448
- &:not(.multiline) {
449
- width: max-content;
450
- }
451
- }
452
- }
453
- }
454
442
 
455
443
  /* Selection Menu */
456
444
  .ui.selection.dropdown@{notUnlimited} .menu {
@@ -712,7 +700,21 @@ select.ui.dropdown {
712
700
  }
713
701
  }
714
702
  }
715
-
703
+ & when (@variationDropdownCompact) {
704
+ /* Compact */
705
+ .ui.compact.dropdown {
706
+ min-width: 0;
707
+ & > .menu {
708
+ width: auto;
709
+ &:not(.multiline) {
710
+ width: max-content;
711
+ }
712
+ }
713
+ & .menu > .item {
714
+ white-space: normal;
715
+ }
716
+ }
717
+ }
716
718
  & when (@variationDropdownSearch) {
717
719
  /* --------------
718
720
  Searchable
@@ -1395,15 +1397,6 @@ select.ui.dropdown {
1395
1397
  .ui.dropdown > .visible.menu .scrolling.menu {
1396
1398
  display: block;
1397
1399
  }
1398
- & when (@supportIE) {
1399
- /* Scrollbar in IE */
1400
- @media all and (-ms-high-contrast: none) {
1401
- .ui.scrolling.dropdown .menu,
1402
- .ui.dropdown .scrolling.menu {
1403
- min-width: e(%("calc(100%% - %d)", @scrollbarWidth));
1404
- }
1405
- }
1406
- }
1407
1400
  @media only screen and (max-width: @largestMobileScreen) {
1408
1401
  .ui.scrolling.dropdown .menu,
1409
1402
  .ui.dropdown .scrolling.menu {
@@ -1519,12 +1512,6 @@ select.ui.dropdown {
1519
1512
  }
1520
1513
  .ui.simple.dropdown .menu {
1521
1514
  position: absolute;
1522
- & when (@supportIE) {
1523
- /* IE hack to make dropdown icons appear inline */
1524
- // stylelint-disable-next-line value-no-vendor-prefix
1525
- display: -ms-inline-flexbox !important;
1526
- }
1527
-
1528
1515
  display: block;
1529
1516
  overflow: hidden;
1530
1517
  top: -9999px;
@@ -1814,15 +1801,15 @@ select.ui.dropdown {
1814
1801
  }
1815
1802
 
1816
1803
  /* Upward pointing */
1817
- .ui.pointing.upward.dropdown .menu,
1818
- .ui.top.pointing.upward.dropdown .menu {
1804
+ .ui.pointing.upward.dropdown > .menu,
1805
+ .ui.top.pointing.upward.dropdown > .menu {
1819
1806
  top: auto !important;
1820
1807
  bottom: 100% !important;
1821
1808
  margin: 0 0 @pointingMenuDistance;
1822
1809
  border-radius: @pointingUpwardMenuBorderRadius;
1823
1810
  }
1824
- .ui.pointing.upward.dropdown .menu::after,
1825
- .ui.top.pointing.upward.dropdown .menu::after {
1811
+ .ui.pointing.upward.dropdown > .menu::after,
1812
+ .ui.top.pointing.upward.dropdown > .menu::after {
1826
1813
  top: 100% !important;
1827
1814
  bottom: auto !important;
1828
1815
  box-shadow: @pointingUpwardArrowBoxShadow;
@@ -2075,16 +2062,7 @@ select.ui.dropdown {
2075
2062
  .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:hover {
2076
2063
  background: @thumbInvertedHoverBackground;
2077
2064
  }
2078
- & when (@supportIE) {
2079
- .ui.dropdown .inverted.menu,
2080
- .ui.inverted.dropdown .menu {
2081
- /* IE11 */
2082
- scrollbar-face-color: @thumbInvertedBackgroundHex;
2083
- scrollbar-shadow-color: @thumbInvertedBackgroundHex;
2084
- scrollbar-track-color: @trackInvertedBackgroundHex;
2085
- scrollbar-arrow-color: @trackInvertedBackgroundHex;
2086
- }
2087
- }
2065
+
2088
2066
  @supports (-moz-appearance: none) {
2089
2067
  .ui.dropdown .inverted.menu,
2090
2068
  .ui.inverted.dropdown .menu {
@@ -117,10 +117,10 @@
117
117
  }
118
118
  $module.addClass(settings.class);
119
119
  if (settings.title !== '') {
120
- $module.find(selector.header).html(module.helpers.escape(settings.title, settings.preserveHTML)).addClass(settings.classTitle);
120
+ $module.find(selector.header).html(module.helpers.escape(settings.title)).addClass(settings.classTitle);
121
121
  }
122
122
  if (settings.content !== '') {
123
- $module.find(selector.content).html(module.helpers.escape(settings.content, settings.preserveHTML)).addClass(settings.classContent);
123
+ $module.find(selector.content).html(module.helpers.escape(settings.content)).addClass(settings.classContent);
124
124
  }
125
125
  if (module.has.configActions()) {
126
126
  var $actions = $module.find(selector.actions).addClass(settings.classActions);
@@ -134,7 +134,7 @@
134
134
  icon = el[fields.icon]
135
135
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
136
136
  : '',
137
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
137
+ text = module.helpers.escape(el[fields.text] || ''),
138
138
  cls = module.helpers.deQuote(el[fields.class] || ''),
139
139
  click = el[fields.click] && isFunction(el[fields.click])
140
140
  ? el[fields.click]
@@ -460,28 +460,6 @@
460
460
  + ' }';
461
461
  }
462
462
 
463
- /* IE is only browser not to create context with transforms */
464
- /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */
465
- if (module.is.ie()) {
466
- if (direction === 'left' || direction === 'right') {
467
- module.debug('Adding CSS rules for animation distance', width);
468
- style += ''
469
- + ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
470
- + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
471
- + ' }';
472
- } else if (direction === 'top' || direction === 'bottom') {
473
- style += ''
474
- + ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
475
- + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
476
- + ' }';
477
- }
478
- /* opposite sides visible forces content overlay */
479
- style += ''
480
- + ' body.pushable > .ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .pusher::after,'
481
- + ' body.pushable > .ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .pusher::after {'
482
- + ' transform: translate3d(0, 0, 0);'
483
- + ' }';
484
- }
485
463
  style += '</style>';
486
464
  $style = $(style)
487
465
  .appendTo($head)
@@ -994,7 +972,7 @@
994
972
  can: {
995
973
  leftBodyScrollbar: function () {
996
974
  if (module.cache.leftBodyScrollbar === undefined) {
997
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
975
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
998
976
  }
999
977
 
1000
978
  return module.cache.leftBodyScrollbar;
@@ -1029,13 +1007,6 @@
1029
1007
 
1030
1008
  return module.cache.isSafari;
1031
1009
  },
1032
- edge: function () {
1033
- if (module.cache.isEdge === undefined) {
1034
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
1035
- }
1036
-
1037
- return module.cache.isEdge;
1038
- },
1039
1010
  firefox: function () {
1040
1011
  if (module.cache.isFirefox === undefined) {
1041
1012
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -1046,17 +1017,6 @@
1046
1017
  iframe: function () {
1047
1018
  return !(self === top);
1048
1019
  },
1049
- ie: function () {
1050
- if (module.cache.isIE === undefined) {
1051
- var
1052
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
1053
- isIE = 'ActiveXObject' in window
1054
- ;
1055
- module.cache.isIE = isIE11 || isIE;
1056
- }
1057
-
1058
- return module.cache.isIE;
1059
- },
1060
1020
  mobile: function () {
1061
1021
  var
1062
1022
  userAgent = navigator.userAgent,
@@ -1122,8 +1082,8 @@
1122
1082
  deQuote: function (string) {
1123
1083
  return String(string).replace(/"/g, '');
1124
1084
  },
1125
- escape: function (string, preserveHTML) {
1126
- if (preserveHTML) {
1085
+ escape: function (string) {
1086
+ if (settings.preserveHTML) {
1127
1087
  return string;
1128
1088
  }
1129
1089
  var
@@ -1366,7 +1326,7 @@
1366
1326
  classActions: '',
1367
1327
  closeIcon: false,
1368
1328
  actions: false,
1369
- preserveHTML: true,
1329
+ preserveHTML: false,
1370
1330
 
1371
1331
  fields: {
1372
1332
  class: 'class',
@@ -111,10 +111,10 @@
111
111
  }
112
112
  $module.addClass(settings.class);
113
113
  if (settings.title !== '') {
114
- $module.find(selector.title).html(module.helpers.escape(settings.title, settings.preserveHTML)).addClass(settings.classTitle);
114
+ $module.find(selector.title).html(module.helpers.escape(settings.title)).addClass(settings.classTitle);
115
115
  }
116
116
  if (settings.content !== '') {
117
- $module.find(selector.content).html(module.helpers.escape(settings.content, settings.preserveHTML)).addClass(settings.classContent);
117
+ $module.find(selector.content).html(module.helpers.escape(settings.content)).addClass(settings.classContent);
118
118
  }
119
119
  if (module.has.configActions()) {
120
120
  var $actions = $module.find(selector.actions).addClass(settings.classActions);
@@ -128,7 +128,7 @@
128
128
  icon = el[fields.icon]
129
129
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
130
130
  : '',
131
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
131
+ text = module.helpers.escape(el[fields.text] || ''),
132
132
  cls = module.helpers.deQuote(el[fields.class] || ''),
133
133
  click = el[fields.click] && isFunction(el[fields.click])
134
134
  ? el[fields.click]
@@ -930,8 +930,8 @@
930
930
  deQuote: function (string) {
931
931
  return String(string).replace(/"/g, '');
932
932
  },
933
- escape: function (string, preserveHTML) {
934
- if (preserveHTML) {
933
+ escape: function (string) {
934
+ if (settings.preserveHTML) {
935
935
  return string;
936
936
  }
937
937
  var
@@ -960,18 +960,16 @@
960
960
  can: {
961
961
  leftBodyScrollbar: function () {
962
962
  if (module.cache.leftBodyScrollbar === undefined) {
963
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
963
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
964
964
  }
965
965
 
966
966
  return module.cache.leftBodyScrollbar;
967
967
  },
968
968
  useFlex: function () {
969
969
  if (settings.useFlex === 'auto') {
970
- return settings.detachable && !module.is.ie();
970
+ return settings.detachable;
971
971
  }
972
- if (settings.useFlex && module.is.ie()) {
973
- module.debug('useFlex true is not supported in IE');
974
- } else if (settings.useFlex && !settings.detachable) {
972
+ if (settings.useFlex && !settings.detachable) {
975
973
  module.debug('useFlex true in combination with detachable false is not supported');
976
974
  }
977
975
 
@@ -1005,27 +1003,12 @@
1005
1003
  active: function () {
1006
1004
  return $module.hasClass(className.active);
1007
1005
  },
1008
- ie: function () {
1009
- if (module.cache.isIE === undefined) {
1010
- var
1011
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
1012
- isIE = 'ActiveXObject' in window
1013
- ;
1014
- module.cache.isIE = isIE11 || isIE;
1015
- }
1016
-
1017
- return module.cache.isIE;
1018
- },
1019
1006
  animating: function () {
1020
1007
  return $module.transition('is animating');
1021
1008
  },
1022
1009
  scrolling: function () {
1023
1010
  return $dimmable.hasClass(className.scrolling);
1024
1011
  },
1025
- modernBrowser: function () {
1026
- // appName for IE11 reports 'Netscape' can no longer use
1027
- return !(window.ActiveXObject || 'ActiveXObject' in window);
1028
- },
1029
1012
  rtl: function () {
1030
1013
  if (module.cache.isRTL === undefined) {
1031
1014
  module.cache.isRTL = $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl' || $body.attr('dir') === 'rtl' || $body.css('direction') === 'rtl' || $context.attr('dir') === 'rtl' || $context.css('direction') === 'rtl';
@@ -1040,13 +1023,6 @@
1040
1023
 
1041
1024
  return module.cache.isSafari;
1042
1025
  },
1043
- edge: function () {
1044
- if (module.cache.isEdge === undefined) {
1045
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
1046
- }
1047
-
1048
- return module.cache.isEdge;
1049
- },
1050
1026
  firefox: function () {
1051
1027
  if (module.cache.isFirefox === undefined) {
1052
1028
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -1443,7 +1419,7 @@
1443
1419
  classActions: '',
1444
1420
  closeIcon: false,
1445
1421
  actions: false,
1446
- preserveHTML: true,
1422
+ preserveHTML: false,
1447
1423
 
1448
1424
  fields: {
1449
1425
  class: 'class',
@@ -477,7 +477,7 @@
477
477
  top: @scrollingTop;
478
478
  }
479
479
 
480
- /* Fix for Firefox, Edge, IE11 */
480
+ /* Fix for Firefox, Edge */
481
481
  .modals.dimmer .ui.scrolling.modal:not([class*="overlay fullscreen"])::after {
482
482
  content: "\00A0";
483
483
  position: absolute;
@@ -1140,7 +1140,7 @@
1140
1140
  });
1141
1141
  }
1142
1142
  if (isFunction(template)) {
1143
- html = template(response, fields, settings.preserveHTML);
1143
+ html = template(response, settings);
1144
1144
  } else {
1145
1145
  module.error(error.noTemplate, false);
1146
1146
  }
@@ -1395,7 +1395,7 @@
1395
1395
  showNoResults: true,
1396
1396
 
1397
1397
  // preserve possible html of resultset values
1398
- preserveHTML: true,
1398
+ preserveHTML: false,
1399
1399
 
1400
1400
  // transition settings
1401
1401
  transition: 'scale',
@@ -1476,8 +1476,8 @@
1476
1476
  },
1477
1477
 
1478
1478
  templates: {
1479
- escape: function (string, preserveHTML) {
1480
- if (preserveHTML) {
1479
+ escape: function (string, settings) {
1480
+ if (settings.preserveHTML) {
1481
1481
  return string;
1482
1482
  }
1483
1483
  var
@@ -1519,10 +1519,11 @@
1519
1519
 
1520
1520
  return html;
1521
1521
  },
1522
- category: function (response, fields, preserveHTML) {
1522
+ category: function (response, settings) {
1523
1523
  var
1524
1524
  html = '',
1525
- escape = $.fn.search.settings.templates.escape
1525
+ fields = settings.fields,
1526
+ escape = settings.templates.escape
1526
1527
  ;
1527
1528
  if (response[fields.categoryResults] !== undefined) {
1528
1529
  // each category
@@ -1531,7 +1532,7 @@
1531
1532
  html += '<div class="category">';
1532
1533
 
1533
1534
  if (category[fields.categoryName] !== undefined) {
1534
- html += '<div class="name">' + escape(category[fields.categoryName], preserveHTML) + '</div>';
1535
+ html += '<div class="name">' + escape(category[fields.categoryName], settings) + '</div>';
1535
1536
  }
1536
1537
 
1537
1538
  // each item inside category
@@ -1548,13 +1549,13 @@
1548
1549
  }
1549
1550
  html += '<div class="content">';
1550
1551
  if (result[fields.price] !== undefined) {
1551
- html += '<div class="price">' + escape(result[fields.price], preserveHTML) + '</div>';
1552
+ html += '<div class="price">' + escape(result[fields.price], settings) + '</div>';
1552
1553
  }
1553
1554
  if (result[fields.title] !== undefined) {
1554
- html += '<div class="title">' + escape(result[fields.title], preserveHTML) + '</div>';
1555
+ html += '<div class="title">' + escape(result[fields.title], settings) + '</div>';
1555
1556
  }
1556
1557
  if (result[fields.description] !== undefined) {
1557
- html += '<div class="description">' + escape(result[fields.description], preserveHTML) + '</div>';
1558
+ html += '<div class="description">' + escape(result[fields.description], settings) + '</div>';
1558
1559
  }
1559
1560
  html += ''
1560
1561
  + '</div>';
@@ -1569,11 +1570,11 @@
1569
1570
  html += fields.actionURL === false
1570
1571
  ? ''
1571
1572
  + '<div class="action">'
1572
- + escape(response[fields.action][fields.actionText], preserveHTML)
1573
+ + escape(response[fields.action][fields.actionText], settings)
1573
1574
  + '</div>'
1574
1575
  : ''
1575
1576
  + '<a href="' + response[fields.action][fields.actionURL].replace(/"/g, '') + '" class="action">'
1576
- + escape(response[fields.action][fields.actionText], preserveHTML)
1577
+ + escape(response[fields.action][fields.actionText], settings)
1577
1578
  + '</a>';
1578
1579
  }
1579
1580
 
@@ -1582,10 +1583,11 @@
1582
1583
 
1583
1584
  return false;
1584
1585
  },
1585
- standard: function (response, fields, preserveHTML) {
1586
+ standard: function (response, settings) {
1586
1587
  var
1587
1588
  html = '',
1588
- escape = $.fn.search.settings.templates.escape
1589
+ fields = settings.fields,
1590
+ escape = settings.templates.escape
1589
1591
  ;
1590
1592
  if (response[fields.results] !== undefined) {
1591
1593
  // each result
@@ -1601,13 +1603,13 @@
1601
1603
  }
1602
1604
  html += '<div class="content">';
1603
1605
  if (result[fields.price] !== undefined) {
1604
- html += '<div class="price">' + escape(result[fields.price], preserveHTML) + '</div>';
1606
+ html += '<div class="price">' + escape(result[fields.price], settings) + '</div>';
1605
1607
  }
1606
1608
  if (result[fields.title] !== undefined) {
1607
- html += '<div class="title">' + escape(result[fields.title], preserveHTML) + '</div>';
1609
+ html += '<div class="title">' + escape(result[fields.title], settings) + '</div>';
1608
1610
  }
1609
1611
  if (result[fields.description] !== undefined) {
1610
- html += '<div class="description">' + escape(result[fields.description], preserveHTML) + '</div>';
1612
+ html += '<div class="description">' + escape(result[fields.description], settings) + '</div>';
1611
1613
  }
1612
1614
  html += ''
1613
1615
  + '</div>';
@@ -1617,11 +1619,11 @@
1617
1619
  html += fields.actionURL === false
1618
1620
  ? ''
1619
1621
  + '<div class="action">'
1620
- + escape(response[fields.action][fields.actionText], preserveHTML)
1622
+ + escape(response[fields.action][fields.actionText], settings)
1621
1623
  + '</div>'
1622
1624
  : ''
1623
1625
  + '<a href="' + response[fields.action][fields.actionURL].replace(/"/g, '') + '" class="action">'
1624
- + escape(response[fields.action][fields.actionText], preserveHTML)
1626
+ + escape(response[fields.action][fields.actionText], settings)
1625
1627
  + '</a>';
1626
1628
  }
1627
1629
 
@@ -309,9 +309,6 @@
309
309
  .ui.search.loading > .icon.input > .remove.icon {
310
310
  display: none;
311
311
  }
312
- .ui.search > .icon.input > input:-ms-input-placeholder ~ .remove.icon when (@supportIE) {
313
- display: none;
314
- }
315
312
  }
316
313
 
317
314
  & when (@variationSearchCategory) {
@@ -252,28 +252,6 @@
252
252
  + ' }';
253
253
  }
254
254
 
255
- /* IE is only browser not to create context with transforms */
256
- /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */
257
- if (module.is.ie()) {
258
- if (direction === 'left' || direction === 'right') {
259
- module.debug('Adding CSS rules for animation distance', width);
260
- style += ''
261
- + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
262
- + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
263
- + ' }';
264
- } else if (direction === 'top' || direction === 'bottom') {
265
- style += ''
266
- + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
267
- + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
268
- + ' }';
269
- }
270
- /* opposite sides visible forces content overlay */
271
- style += ''
272
- + ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
273
- + ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
274
- + ' transform: translate3d(0, 0, 0);'
275
- + ' }';
276
- }
277
255
  style += '</style>';
278
256
  $style = $(style)
279
257
  .appendTo($head)
@@ -355,7 +333,7 @@
355
333
  can: {
356
334
  leftBodyScrollbar: function () {
357
335
  if (module.cache.leftBodyScrollbar === undefined) {
358
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
336
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
359
337
  }
360
338
 
361
339
  return module.cache.leftBodyScrollbar;
@@ -730,13 +708,6 @@
730
708
 
731
709
  return module.cache.isSafari;
732
710
  },
733
- edge: function () {
734
- if (module.cache.isEdge === undefined) {
735
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
736
- }
737
-
738
- return module.cache.isEdge;
739
- },
740
711
  firefox: function () {
741
712
  if (module.cache.isFirefox === undefined) {
742
713
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -747,18 +718,6 @@
747
718
  iframe: function () {
748
719
  return !(self === top);
749
720
  },
750
- ie: function () {
751
- if (module.cache.isIE === undefined) {
752
- var
753
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
754
- isIE = 'ActiveXObject' in window
755
- ;
756
- module.cache.isIE = isIE11 || isIE;
757
- }
758
-
759
- return module.cache.isIE;
760
- },
761
-
762
721
  mobile: function () {
763
722
  var
764
723
  userAgent = navigator.userAgent,
@@ -192,7 +192,7 @@
192
192
  $content.append($('<div/>', {
193
193
  class: className.title,
194
194
  id: titleId,
195
- html: module.helpers.escape(settings.title, settings.preserveHTML),
195
+ html: module.helpers.escape(settings.title),
196
196
  }));
197
197
  }
198
198
  var descId = '_' + module.get.id() + 'desc';
@@ -200,7 +200,7 @@
200
200
  $content.append($('<div/>', {
201
201
  class: className.message,
202
202
  id: descId,
203
- html: module.helpers.escape(settings.message, settings.preserveHTML),
203
+ html: module.helpers.escape(settings.message),
204
204
  }));
205
205
 
206
206
  $toast
@@ -232,10 +232,10 @@
232
232
  $toast.find(selector.image).attr('src', settings.showImage).attr('alt', settings.alt || '');
233
233
  }
234
234
  if (settings.title !== '') {
235
- $toast.find(selector.title).html(module.helpers.escape(settings.title, settings.preserveHTML));
235
+ $toast.find(selector.title).html(module.helpers.escape(settings.title));
236
236
  }
237
237
  if (settings.message !== '') {
238
- $toast.find(selector.message).html(module.helpers.escape(settings.message, settings.preserveHTML));
238
+ $toast.find(selector.message).html(module.helpers.escape(settings.message));
239
239
  }
240
240
  }
241
241
  if ($toast.hasClass(className.compact)) {
@@ -262,7 +262,7 @@
262
262
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
263
263
  + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
264
264
  : '',
265
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
265
+ text = module.helpers.escape(el[fields.text] || ''),
266
266
  cls = module.helpers.deQuote(el[fields.class] || ''),
267
267
  click = el[fields.click] && isFunction(el[fields.click])
268
268
  ? el[fields.click]
@@ -595,8 +595,8 @@
595
595
  deQuote: function (string) {
596
596
  return String(string).replace(/"/g, '');
597
597
  },
598
- escape: function (string, preserveHTML) {
599
- if (preserveHTML) {
598
+ escape: function (string) {
599
+ if (settings.preserveHTML) {
600
600
  return string;
601
601
  }
602
602
  var
@@ -840,7 +840,7 @@
840
840
  closeOnClick: true,
841
841
  cloneModule: true,
842
842
  actions: false,
843
- preserveHTML: true,
843
+ preserveHTML: false,
844
844
  showImage: false,
845
845
  alt: false,
846
846
 
@@ -561,7 +561,7 @@
561
561
  }
562
562
  & > .ui.image when (@variationToastImage) {
563
563
  align-self: flex-start;
564
- flex-shrink: 0; /* IE11 fix */
564
+ flex-shrink: 0;
565
565
  }
566
566
  & when (@variationToastImage) or (@variationToastIcon) {
567
567
  & > .centered.image,
@@ -719,7 +719,7 @@
719
719
  if (module.is.animating()) {
720
720
  module.reset();
721
721
  }
722
- element.blur(); // IE will trigger focus change if element is not blurred before hiding
722
+ element.blur();
723
723
  module.remove.display();
724
724
  module.remove.visible();
725
725
  settings.onBeforeHide.call(element, module.hideNow);
package/src/theme.less CHANGED
@@ -75,16 +75,3 @@
75
75
  });
76
76
  }
77
77
  }
78
-
79
- /* ------------------
80
- Overrides
81
- ------------------- */
82
-
83
- // Keep empty mixin in case of custom components using it so they dont break
84
- .loadUIOverrides() {
85
- /* loadUIOverrides mixin is deprecated and will be removed in 2.10.0
86
- Replace mixin call by
87
- @import (multiple, optional) "../../overrides.less";
88
- instead
89
- */
90
- }
@@ -7,7 +7,7 @@
7
7
  @fonts: {
8
8
  @solid: {
9
9
  font-family: @fontName;
10
- src: url("@{fontPath}/@{fontName}.woff2") format("woff2") if(@supportIE, e(",") url("@{fontPath}/@{fontName}.woff") format("woff"));
10
+ src: url("@{fontPath}/@{fontName}.woff2") format("woff2");
11
11
  font-style: normal;
12
12
  font-weight: @normal;
13
13
  font-variant: normal;