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
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.3+f3fff7f
2
+ * # Fomantic UI - 2.10.0-beta.5+789e0d0
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.3+f3fff7f - Site
12
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -465,7 +465,7 @@
465
465
  })(jQuery, window, document);
466
466
 
467
467
  /*!
468
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Form Validation
468
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Form Validation
469
469
  * https://github.com/fomantic/Fomantic-UI/
470
470
  *
471
471
  *
@@ -2309,11 +2309,6 @@
2309
2309
  return !(value === undefined || value === '' || (Array.isArray(value) && value.length === 0));
2310
2310
  },
2311
2311
 
2312
- /* Deprecated */
2313
- empty: function (value) {
2314
- return $.fn.form.settings.rules.notEmpty(value);
2315
- },
2316
-
2317
2312
  // checkbox checked
2318
2313
  checked: function () {
2319
2314
  return $(this).filter(':checked').length > 0;
@@ -2665,7 +2660,7 @@
2665
2660
  })(jQuery, window, document);
2666
2661
 
2667
2662
  /*!
2668
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Accordion
2663
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Accordion
2669
2664
  * https://github.com/fomantic/Fomantic-UI/
2670
2665
  *
2671
2666
  *
@@ -3261,7 +3256,7 @@
3261
3256
  })(jQuery, window, document);
3262
3257
 
3263
3258
  /*!
3264
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Calendar
3259
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Calendar
3265
3260
  * https://github.com/fomantic/Fomantic-UI/
3266
3261
  *
3267
3262
  *
@@ -4890,7 +4885,7 @@
4890
4885
  constantHeight: true, // add rows to shorter months to keep day calendar height consistent (6 rows)
4891
4886
  today: false, // show a 'today/now' button at the bottom of the calendar
4892
4887
  closable: true, // close the popup after selecting a date/time
4893
- monthFirst: true, // month before day when parsing date from a text
4888
+ monthFirst: false, // month before day when parsing date from a text
4894
4889
  touchReadonly: true, // set input to readonly on touch devices
4895
4890
  inline: false, // create the calendar inline instead of inside a popup
4896
4891
  on: null, // when to show the popup (defaults to 'focus' for input, 'click' for others)
@@ -5307,7 +5302,7 @@
5307
5302
  })(jQuery, window, document);
5308
5303
 
5309
5304
  /*!
5310
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Checkbox
5305
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Checkbox
5311
5306
  * https://github.com/fomantic/Fomantic-UI/
5312
5307
  *
5313
5308
  *
@@ -5641,8 +5636,6 @@
5641
5636
  module.set.enabled();
5642
5637
  if (!module.should.ignoreCallbacks()) {
5643
5638
  settings.onEnable.call(input);
5644
- // preserve legacy callbacks
5645
- settings.onEnabled.call(input);
5646
5639
  }
5647
5640
  },
5648
5641
 
@@ -5656,8 +5649,6 @@
5656
5649
  module.set.disabled();
5657
5650
  if (!module.should.ignoreCallbacks()) {
5658
5651
  settings.onDisable.call(input);
5659
- // preserve legacy callbacks
5660
- settings.onDisabled.call(input);
5661
5652
  }
5662
5653
  },
5663
5654
 
@@ -6167,10 +6158,6 @@
6167
6158
  onEnable: function () {},
6168
6159
  onDisable: function () {},
6169
6160
 
6170
- // preserve misspelled callbacks (will be removed in 3.0)
6171
- onEnabled: function () {},
6172
- onDisabled: function () {},
6173
-
6174
6161
  className: {
6175
6162
  checked: 'checked',
6176
6163
  indeterminate: 'indeterminate',
@@ -6196,7 +6183,7 @@
6196
6183
  })(jQuery, window, document);
6197
6184
 
6198
6185
  /*!
6199
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Dimmer
6186
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dimmer
6200
6187
  * https://github.com/fomantic/Fomantic-UI/
6201
6188
  *
6202
6189
  *
@@ -6929,7 +6916,7 @@
6929
6916
  })(jQuery, window, document);
6930
6917
 
6931
6918
  /*!
6932
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Dropdown
6919
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dropdown
6933
6920
  * https://github.com/fomantic/Fomantic-UI/
6934
6921
  *
6935
6922
  *
@@ -7346,7 +7333,7 @@
7346
7333
  .attr('class', $input.attr('class'))
7347
7334
  .addClass(className.selection)
7348
7335
  .addClass(className.dropdown)
7349
- .html(templates.dropdown(selectValues, fields, settings.preserveHTML, settings.className))
7336
+ .html(templates.dropdown(selectValues, settings))
7350
7337
  .insertBefore($input)
7351
7338
  ;
7352
7339
  if ($input.hasClass(className.multiple) && $input.prop('multiple') === false) {
@@ -7376,7 +7363,7 @@
7376
7363
  module.refresh();
7377
7364
  },
7378
7365
  menu: function (values) {
7379
- $menu.html(templates.menu(values, fields, settings.preserveHTML, settings.className));
7366
+ $menu.html(templates.menu(values, settings));
7380
7367
  $item = $menu.find(selector.item);
7381
7368
  $divider = settings.hideDividers ? $item.parent().children(selector.divider) : $();
7382
7369
  },
@@ -8043,7 +8030,7 @@
8043
8030
  value = settings.templates.deQuote(item[fields.value]),
8044
8031
  name = settings.templates.escape(
8045
8032
  item[fields.name] || '',
8046
- settings.preserveHTML
8033
+ settings
8047
8034
  )
8048
8035
  ;
8049
8036
  $input.append('<option value="' + value + '"' + (item.selected === true ? ' selected' : '') + '>' + name + '</option>');
@@ -8366,7 +8353,6 @@
8366
8353
  hasSubMenu = $subMenu.length > 0,
8367
8354
  isBubbledEvent = $subMenu.find($target).length > 0
8368
8355
  ;
8369
- // prevents IE11 bug where menu receives focus even though `tabindex=-1`
8370
8356
  if (document.activeElement.tagName.toLowerCase() !== 'input') {
8371
8357
  $(document.activeElement).trigger('blur');
8372
8358
  }
@@ -8852,7 +8838,7 @@
8852
8838
  $sizer.text(value);
8853
8839
 
8854
8840
  // prevent rounding issues
8855
- return Math.ceil($sizer.width() + (module.is.edge() ? 3 : 1));
8841
+ return Math.ceil($sizer.width() + 1);
8856
8842
  },
8857
8843
  selectionCount: function () {
8858
8844
  var
@@ -9833,7 +9819,7 @@
9833
9819
  $label = $('<a />')
9834
9820
  .addClass(className.label)
9835
9821
  .attr('data-' + metadata.value, escapedValue)
9836
- .html(templates.label(escapedValue, text, settings.preserveHTML, settings.className))
9822
+ .html(templates.label(escapedValue, text, settings))
9837
9823
  ;
9838
9824
  $label = settings.onLabelCreate.call($label, escapedValue, text);
9839
9825
 
@@ -10380,9 +10366,6 @@
10380
10366
  bubbledIconClick: function (event) {
10381
10367
  return $(event.target).closest($icon).length > 0;
10382
10368
  },
10383
- edge: function () {
10384
- return !!window.chrome && !!window.StyleMedia;
10385
- },
10386
10369
  empty: function () {
10387
10370
  return $module.hasClass(className.empty);
10388
10371
  },
@@ -11000,7 +10983,7 @@
11000
10983
  hideDividers: false, // Whether to hide any divider elements (specified in selector.divider) that are sibling to any items when searched (set to true will hide all dividers, set to 'empty' will hide them when they are not followed by a visible item)
11001
10984
 
11002
10985
  placeholder: 'auto', // whether to convert blank <select> values to the placeholder text
11003
- preserveHTML: true, // preserve HTML when selecting value
10986
+ preserveHTML: false, // preserve HTML when selecting value
11004
10987
  sortSelect: false, // sort selection on init
11005
10988
 
11006
10989
  forceSelection: false, // force a choice on blur with search selection
@@ -11203,8 +11186,8 @@
11203
11186
  deQuote: function (string, encode) {
11204
11187
  return String(string).replace(/"/g, encode ? '&quot;' : '');
11205
11188
  },
11206
- escape: function (string, preserveHTML) {
11207
- if (preserveHTML) {
11189
+ escape: function (string, settings) {
11190
+ if (settings.preserveHTML) {
11208
11191
  return string;
11209
11192
  }
11210
11193
  var
@@ -11229,31 +11212,34 @@
11229
11212
  return string;
11230
11213
  },
11231
11214
  // generates dropdown from select values
11232
- dropdown: function (select, fields, preserveHTML, className) {
11215
+ dropdown: function (select, settings) {
11233
11216
  var
11234
11217
  placeholder = select.placeholder || false,
11235
- html = '',
11236
- escape = $.fn.dropdown.settings.templates.escape,
11237
- deQuote = $.fn.dropdown.settings.templates.deQuote
11218
+ html = '',
11219
+ className = settings.className,
11220
+ escape = settings.templates.escape,
11221
+ deQuote = settings.templates.deQuote
11238
11222
  ;
11239
11223
  html += '<i class="dropdown icon"></i>';
11240
11224
  html += placeholder
11241
- ? '<div class="default text">' + escape(placeholder, preserveHTML) + '</div>'
11225
+ ? '<div class="default text">' + escape(placeholder, settings) + '</div>'
11242
11226
  : '<div class="text"></div>';
11243
11227
  html += '<div class="' + deQuote(className.menu) + '">';
11244
- html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML, className);
11228
+ html += settings.templates.menu(select, settings);
11245
11229
  html += '</div>';
11246
11230
 
11247
11231
  return html;
11248
11232
  },
11249
11233
 
11250
11234
  // generates just menu from select
11251
- menu: function (response, fields, preserveHTML, className) {
11235
+ menu: function (response, settings) {
11252
11236
  var
11237
+ fields = settings.fields,
11253
11238
  values = response[fields.values] || [],
11254
- html = '',
11255
- escape = $.fn.dropdown.settings.templates.escape,
11256
- deQuote = $.fn.dropdown.settings.templates.deQuote
11239
+ html = '',
11240
+ className = settings.className,
11241
+ escape = settings.templates.escape,
11242
+ deQuote = settings.templates.deQuote
11257
11243
  ;
11258
11244
  $.each(values, function (index, option) {
11259
11245
  var
@@ -11287,7 +11273,7 @@
11287
11273
  maybeDescriptionVertical = option[fields.descriptionVertical]
11288
11274
  ? className.descriptionVertical + ' '
11289
11275
  : '',
11290
- hasDescription = escape(option[fields.description] || '', preserveHTML) !== ''
11276
+ hasDescription = escape(option[fields.description] || '', settings) !== ''
11291
11277
  ;
11292
11278
  html += '<div class="' + deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] || className.item)) + '" data-value="' + deQuote(option[fields.value], true) + '"' + maybeText + maybeData + '>';
11293
11279
  if (isMenu) {
@@ -11300,17 +11286,17 @@
11300
11286
  html += '<i class="' + deQuote(option[fields.icon] + ' ' + (option[fields.iconClass] || className.icon)) + '"></i>';
11301
11287
  }
11302
11288
  if (hasDescription) {
11303
- html += '<span class="' + deQuote(className.description) + '">' + escape(option[fields.description] || '', preserveHTML) + '</span>';
11289
+ html += '<span class="' + deQuote(className.description) + '">' + escape(option[fields.description] || '', settings) + '</span>';
11304
11290
  html += !isMenu ? '<span class="' + deQuote(className.text) + '">' : '';
11305
11291
  }
11306
11292
  if (isMenu) {
11307
11293
  html += '<span class="' + deQuote(className.text) + '">';
11308
11294
  }
11309
- html += escape(option[fields.name] || '', preserveHTML);
11295
+ html += escape(option[fields.name] || '', settings);
11310
11296
  if (isMenu) {
11311
11297
  html += '</span>';
11312
11298
  html += '<div class="' + deQuote(itemType) + '">';
11313
- html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
11299
+ html += settings.templates.menu(option, settings);
11314
11300
  html += '</div>';
11315
11301
  } else if (hasDescription) {
11316
11302
  html += '</span>';
@@ -11318,7 +11304,7 @@
11318
11304
  html += '</div>';
11319
11305
  } else if (itemType === 'header') {
11320
11306
  var
11321
- groupName = escape(option[fields.name] || '', preserveHTML),
11307
+ groupName = escape(option[fields.name] || '', settings),
11322
11308
  groupIcon = deQuote(option[fields.icon] || className.groupIcon)
11323
11309
  ;
11324
11310
  if (groupName !== '' || groupIcon !== '') {
@@ -11339,13 +11325,14 @@
11339
11325
  },
11340
11326
 
11341
11327
  // generates label for multiselect
11342
- label: function (value, text, preserveHTML, className) {
11328
+ label: function (value, text, settings) {
11343
11329
  var
11344
- escape = $.fn.dropdown.settings.templates.escape,
11345
- deQuote = $.fn.dropdown.settings.templates.deQuote
11330
+ className = settings.className,
11331
+ escape = settings.templates.escape,
11332
+ deQuote = settings.templates.deQuote
11346
11333
  ;
11347
11334
 
11348
- return escape(text, preserveHTML) + '<i class="' + deQuote(className.delete) + ' icon"></i>';
11335
+ return escape(text, settings) + '<i class="' + deQuote(className.delete) + ' icon"></i>';
11349
11336
  },
11350
11337
 
11351
11338
  // generates messages like "No results"
@@ -11362,7 +11349,7 @@
11362
11349
  })(jQuery, window, document);
11363
11350
 
11364
11351
  /*!
11365
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Embed
11352
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Embed
11366
11353
  * https://github.com/fomantic/Fomantic-UI/
11367
11354
  *
11368
11355
  *
@@ -12051,7 +12038,7 @@
12051
12038
  })(jQuery, window, document);
12052
12039
 
12053
12040
  /*!
12054
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Flyout
12041
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Flyout
12055
12042
  * https://github.com/fomantic/Fomantic-UI/
12056
12043
  *
12057
12044
  *
@@ -12169,10 +12156,10 @@
12169
12156
  }
12170
12157
  $module.addClass(settings.class);
12171
12158
  if (settings.title !== '') {
12172
- $module.find(selector.header).html(module.helpers.escape(settings.title, settings.preserveHTML)).addClass(settings.classTitle);
12159
+ $module.find(selector.header).html(module.helpers.escape(settings.title)).addClass(settings.classTitle);
12173
12160
  }
12174
12161
  if (settings.content !== '') {
12175
- $module.find(selector.content).html(module.helpers.escape(settings.content, settings.preserveHTML)).addClass(settings.classContent);
12162
+ $module.find(selector.content).html(module.helpers.escape(settings.content)).addClass(settings.classContent);
12176
12163
  }
12177
12164
  if (module.has.configActions()) {
12178
12165
  var $actions = $module.find(selector.actions).addClass(settings.classActions);
@@ -12186,7 +12173,7 @@
12186
12173
  icon = el[fields.icon]
12187
12174
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
12188
12175
  : '',
12189
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
12176
+ text = module.helpers.escape(el[fields.text] || ''),
12190
12177
  cls = module.helpers.deQuote(el[fields.class] || ''),
12191
12178
  click = el[fields.click] && isFunction(el[fields.click])
12192
12179
  ? el[fields.click]
@@ -12512,28 +12499,6 @@
12512
12499
  + ' }';
12513
12500
  }
12514
12501
 
12515
- /* IE is only browser not to create context with transforms */
12516
- /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */
12517
- if (module.is.ie()) {
12518
- if (direction === 'left' || direction === 'right') {
12519
- module.debug('Adding CSS rules for animation distance', width);
12520
- style += ''
12521
- + ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
12522
- + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
12523
- + ' }';
12524
- } else if (direction === 'top' || direction === 'bottom') {
12525
- style += ''
12526
- + ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
12527
- + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
12528
- + ' }';
12529
- }
12530
- /* opposite sides visible forces content overlay */
12531
- style += ''
12532
- + ' body.pushable > .ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .pusher::after,'
12533
- + ' body.pushable > .ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .pusher::after {'
12534
- + ' transform: translate3d(0, 0, 0);'
12535
- + ' }';
12536
- }
12537
12502
  style += '</style>';
12538
12503
  $style = $(style)
12539
12504
  .appendTo($head)
@@ -13046,7 +13011,7 @@
13046
13011
  can: {
13047
13012
  leftBodyScrollbar: function () {
13048
13013
  if (module.cache.leftBodyScrollbar === undefined) {
13049
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
13014
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
13050
13015
  }
13051
13016
 
13052
13017
  return module.cache.leftBodyScrollbar;
@@ -13081,13 +13046,6 @@
13081
13046
 
13082
13047
  return module.cache.isSafari;
13083
13048
  },
13084
- edge: function () {
13085
- if (module.cache.isEdge === undefined) {
13086
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
13087
- }
13088
-
13089
- return module.cache.isEdge;
13090
- },
13091
13049
  firefox: function () {
13092
13050
  if (module.cache.isFirefox === undefined) {
13093
13051
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -13098,17 +13056,6 @@
13098
13056
  iframe: function () {
13099
13057
  return !(self === top);
13100
13058
  },
13101
- ie: function () {
13102
- if (module.cache.isIE === undefined) {
13103
- var
13104
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
13105
- isIE = 'ActiveXObject' in window
13106
- ;
13107
- module.cache.isIE = isIE11 || isIE;
13108
- }
13109
-
13110
- return module.cache.isIE;
13111
- },
13112
13059
  mobile: function () {
13113
13060
  var
13114
13061
  userAgent = navigator.userAgent,
@@ -13174,8 +13121,8 @@
13174
13121
  deQuote: function (string) {
13175
13122
  return String(string).replace(/"/g, '');
13176
13123
  },
13177
- escape: function (string, preserveHTML) {
13178
- if (preserveHTML) {
13124
+ escape: function (string) {
13125
+ if (settings.preserveHTML) {
13179
13126
  return string;
13180
13127
  }
13181
13128
  var
@@ -13418,7 +13365,7 @@
13418
13365
  classActions: '',
13419
13366
  closeIcon: false,
13420
13367
  actions: false,
13421
- preserveHTML: true,
13368
+ preserveHTML: false,
13422
13369
 
13423
13370
  fields: {
13424
13371
  class: 'class',
@@ -13603,7 +13550,7 @@
13603
13550
  })(jQuery, window, document);
13604
13551
 
13605
13552
  /*!
13606
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Modal
13553
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Modal
13607
13554
  * https://github.com/fomantic/Fomantic-UI/
13608
13555
  *
13609
13556
  *
@@ -13715,10 +13662,10 @@
13715
13662
  }
13716
13663
  $module.addClass(settings.class);
13717
13664
  if (settings.title !== '') {
13718
- $module.find(selector.title).html(module.helpers.escape(settings.title, settings.preserveHTML)).addClass(settings.classTitle);
13665
+ $module.find(selector.title).html(module.helpers.escape(settings.title)).addClass(settings.classTitle);
13719
13666
  }
13720
13667
  if (settings.content !== '') {
13721
- $module.find(selector.content).html(module.helpers.escape(settings.content, settings.preserveHTML)).addClass(settings.classContent);
13668
+ $module.find(selector.content).html(module.helpers.escape(settings.content)).addClass(settings.classContent);
13722
13669
  }
13723
13670
  if (module.has.configActions()) {
13724
13671
  var $actions = $module.find(selector.actions).addClass(settings.classActions);
@@ -13732,7 +13679,7 @@
13732
13679
  icon = el[fields.icon]
13733
13680
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
13734
13681
  : '',
13735
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
13682
+ text = module.helpers.escape(el[fields.text] || ''),
13736
13683
  cls = module.helpers.deQuote(el[fields.class] || ''),
13737
13684
  click = el[fields.click] && isFunction(el[fields.click])
13738
13685
  ? el[fields.click]
@@ -14534,8 +14481,8 @@
14534
14481
  deQuote: function (string) {
14535
14482
  return String(string).replace(/"/g, '');
14536
14483
  },
14537
- escape: function (string, preserveHTML) {
14538
- if (preserveHTML) {
14484
+ escape: function (string) {
14485
+ if (settings.preserveHTML) {
14539
14486
  return string;
14540
14487
  }
14541
14488
  var
@@ -14564,18 +14511,16 @@
14564
14511
  can: {
14565
14512
  leftBodyScrollbar: function () {
14566
14513
  if (module.cache.leftBodyScrollbar === undefined) {
14567
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
14514
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
14568
14515
  }
14569
14516
 
14570
14517
  return module.cache.leftBodyScrollbar;
14571
14518
  },
14572
14519
  useFlex: function () {
14573
14520
  if (settings.useFlex === 'auto') {
14574
- return settings.detachable && !module.is.ie();
14521
+ return settings.detachable;
14575
14522
  }
14576
- if (settings.useFlex && module.is.ie()) {
14577
- module.debug('useFlex true is not supported in IE');
14578
- } else if (settings.useFlex && !settings.detachable) {
14523
+ if (settings.useFlex && !settings.detachable) {
14579
14524
  module.debug('useFlex true in combination with detachable false is not supported');
14580
14525
  }
14581
14526
 
@@ -14609,27 +14554,12 @@
14609
14554
  active: function () {
14610
14555
  return $module.hasClass(className.active);
14611
14556
  },
14612
- ie: function () {
14613
- if (module.cache.isIE === undefined) {
14614
- var
14615
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
14616
- isIE = 'ActiveXObject' in window
14617
- ;
14618
- module.cache.isIE = isIE11 || isIE;
14619
- }
14620
-
14621
- return module.cache.isIE;
14622
- },
14623
14557
  animating: function () {
14624
14558
  return $module.transition('is animating');
14625
14559
  },
14626
14560
  scrolling: function () {
14627
14561
  return $dimmable.hasClass(className.scrolling);
14628
14562
  },
14629
- modernBrowser: function () {
14630
- // appName for IE11 reports 'Netscape' can no longer use
14631
- return !(window.ActiveXObject || 'ActiveXObject' in window);
14632
- },
14633
14563
  rtl: function () {
14634
14564
  if (module.cache.isRTL === undefined) {
14635
14565
  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';
@@ -14644,13 +14574,6 @@
14644
14574
 
14645
14575
  return module.cache.isSafari;
14646
14576
  },
14647
- edge: function () {
14648
- if (module.cache.isEdge === undefined) {
14649
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
14650
- }
14651
-
14652
- return module.cache.isEdge;
14653
- },
14654
14577
  firefox: function () {
14655
14578
  if (module.cache.isFirefox === undefined) {
14656
14579
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -15047,7 +14970,7 @@
15047
14970
  classActions: '',
15048
14971
  closeIcon: false,
15049
14972
  actions: false,
15050
- preserveHTML: true,
14973
+ preserveHTML: false,
15051
14974
 
15052
14975
  fields: {
15053
14976
  class: 'class',
@@ -15241,7 +15164,7 @@
15241
15164
  })(jQuery, window, document);
15242
15165
 
15243
15166
  /*!
15244
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Nag
15167
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Nag
15245
15168
  * https://github.com/fomantic/Fomantic-UI/
15246
15169
  *
15247
15170
  *
@@ -15808,7 +15731,7 @@
15808
15731
  })(jQuery, window, document);
15809
15732
 
15810
15733
  /*!
15811
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Popup
15734
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Popup
15812
15735
  * https://github.com/fomantic/Fomantic-UI/
15813
15736
  *
15814
15737
  *
@@ -17370,7 +17293,7 @@
17370
17293
  })(jQuery, window, document);
17371
17294
 
17372
17295
  /*!
17373
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Progress
17296
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Progress
17374
17297
  * https://github.com/fomantic/Fomantic-UI/
17375
17298
  *
17376
17299
  *
@@ -18350,7 +18273,7 @@
18350
18273
  })(jQuery, window, document);
18351
18274
 
18352
18275
  /*!
18353
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Slider
18276
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Slider
18354
18277
  * https://github.com/fomantic/Fomantic-UI/
18355
18278
  *
18356
18279
  *
@@ -19897,7 +19820,7 @@
19897
19820
  })(jQuery, window, document);
19898
19821
 
19899
19822
  /*!
19900
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Rating
19823
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Rating
19901
19824
  * https://github.com/fomantic/Fomantic-UI/
19902
19825
  *
19903
19826
  *
@@ -20438,7 +20361,7 @@
20438
20361
  })(jQuery, window, document);
20439
20362
 
20440
20363
  /*!
20441
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Search
20364
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Search
20442
20365
  * https://github.com/fomantic/Fomantic-UI/
20443
20366
  *
20444
20367
  *
@@ -21579,7 +21502,7 @@
21579
21502
  });
21580
21503
  }
21581
21504
  if (isFunction(template)) {
21582
- html = template(response, fields, settings.preserveHTML);
21505
+ html = template(response, settings);
21583
21506
  } else {
21584
21507
  module.error(error.noTemplate, false);
21585
21508
  }
@@ -21834,7 +21757,7 @@
21834
21757
  showNoResults: true,
21835
21758
 
21836
21759
  // preserve possible html of resultset values
21837
- preserveHTML: true,
21760
+ preserveHTML: false,
21838
21761
 
21839
21762
  // transition settings
21840
21763
  transition: 'scale',
@@ -21915,8 +21838,8 @@
21915
21838
  },
21916
21839
 
21917
21840
  templates: {
21918
- escape: function (string, preserveHTML) {
21919
- if (preserveHTML) {
21841
+ escape: function (string, settings) {
21842
+ if (settings.preserveHTML) {
21920
21843
  return string;
21921
21844
  }
21922
21845
  var
@@ -21958,10 +21881,11 @@
21958
21881
 
21959
21882
  return html;
21960
21883
  },
21961
- category: function (response, fields, preserveHTML) {
21884
+ category: function (response, settings) {
21962
21885
  var
21963
21886
  html = '',
21964
- escape = $.fn.search.settings.templates.escape
21887
+ fields = settings.fields,
21888
+ escape = settings.templates.escape
21965
21889
  ;
21966
21890
  if (response[fields.categoryResults] !== undefined) {
21967
21891
  // each category
@@ -21970,7 +21894,7 @@
21970
21894
  html += '<div class="category">';
21971
21895
 
21972
21896
  if (category[fields.categoryName] !== undefined) {
21973
- html += '<div class="name">' + escape(category[fields.categoryName], preserveHTML) + '</div>';
21897
+ html += '<div class="name">' + escape(category[fields.categoryName], settings) + '</div>';
21974
21898
  }
21975
21899
 
21976
21900
  // each item inside category
@@ -21987,13 +21911,13 @@
21987
21911
  }
21988
21912
  html += '<div class="content">';
21989
21913
  if (result[fields.price] !== undefined) {
21990
- html += '<div class="price">' + escape(result[fields.price], preserveHTML) + '</div>';
21914
+ html += '<div class="price">' + escape(result[fields.price], settings) + '</div>';
21991
21915
  }
21992
21916
  if (result[fields.title] !== undefined) {
21993
- html += '<div class="title">' + escape(result[fields.title], preserveHTML) + '</div>';
21917
+ html += '<div class="title">' + escape(result[fields.title], settings) + '</div>';
21994
21918
  }
21995
21919
  if (result[fields.description] !== undefined) {
21996
- html += '<div class="description">' + escape(result[fields.description], preserveHTML) + '</div>';
21920
+ html += '<div class="description">' + escape(result[fields.description], settings) + '</div>';
21997
21921
  }
21998
21922
  html += ''
21999
21923
  + '</div>';
@@ -22008,11 +21932,11 @@
22008
21932
  html += fields.actionURL === false
22009
21933
  ? ''
22010
21934
  + '<div class="action">'
22011
- + escape(response[fields.action][fields.actionText], preserveHTML)
21935
+ + escape(response[fields.action][fields.actionText], settings)
22012
21936
  + '</div>'
22013
21937
  : ''
22014
21938
  + '<a href="' + response[fields.action][fields.actionURL].replace(/"/g, '') + '" class="action">'
22015
- + escape(response[fields.action][fields.actionText], preserveHTML)
21939
+ + escape(response[fields.action][fields.actionText], settings)
22016
21940
  + '</a>';
22017
21941
  }
22018
21942
 
@@ -22021,10 +21945,11 @@
22021
21945
 
22022
21946
  return false;
22023
21947
  },
22024
- standard: function (response, fields, preserveHTML) {
21948
+ standard: function (response, settings) {
22025
21949
  var
22026
21950
  html = '',
22027
- escape = $.fn.search.settings.templates.escape
21951
+ fields = settings.fields,
21952
+ escape = settings.templates.escape
22028
21953
  ;
22029
21954
  if (response[fields.results] !== undefined) {
22030
21955
  // each result
@@ -22040,13 +21965,13 @@
22040
21965
  }
22041
21966
  html += '<div class="content">';
22042
21967
  if (result[fields.price] !== undefined) {
22043
- html += '<div class="price">' + escape(result[fields.price], preserveHTML) + '</div>';
21968
+ html += '<div class="price">' + escape(result[fields.price], settings) + '</div>';
22044
21969
  }
22045
21970
  if (result[fields.title] !== undefined) {
22046
- html += '<div class="title">' + escape(result[fields.title], preserveHTML) + '</div>';
21971
+ html += '<div class="title">' + escape(result[fields.title], settings) + '</div>';
22047
21972
  }
22048
21973
  if (result[fields.description] !== undefined) {
22049
- html += '<div class="description">' + escape(result[fields.description], preserveHTML) + '</div>';
21974
+ html += '<div class="description">' + escape(result[fields.description], settings) + '</div>';
22050
21975
  }
22051
21976
  html += ''
22052
21977
  + '</div>';
@@ -22056,11 +21981,11 @@
22056
21981
  html += fields.actionURL === false
22057
21982
  ? ''
22058
21983
  + '<div class="action">'
22059
- + escape(response[fields.action][fields.actionText], preserveHTML)
21984
+ + escape(response[fields.action][fields.actionText], settings)
22060
21985
  + '</div>'
22061
21986
  : ''
22062
21987
  + '<a href="' + response[fields.action][fields.actionURL].replace(/"/g, '') + '" class="action">'
22063
- + escape(response[fields.action][fields.actionText], preserveHTML)
21988
+ + escape(response[fields.action][fields.actionText], settings)
22064
21989
  + '</a>';
22065
21990
  }
22066
21991
 
@@ -22080,7 +22005,7 @@
22080
22005
  })(jQuery, window, document);
22081
22006
 
22082
22007
  /*!
22083
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Shape
22008
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Shape
22084
22009
  * https://github.com/fomantic/Fomantic-UI/
22085
22010
  *
22086
22011
  *
@@ -22878,7 +22803,7 @@
22878
22803
  })(jQuery, window, document);
22879
22804
 
22880
22805
  /*!
22881
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Sidebar
22806
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Sidebar
22882
22807
  * https://github.com/fomantic/Fomantic-UI/
22883
22808
  *
22884
22809
  *
@@ -23131,28 +23056,6 @@
23131
23056
  + ' }';
23132
23057
  }
23133
23058
 
23134
- /* IE is only browser not to create context with transforms */
23135
- /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */
23136
- if (module.is.ie()) {
23137
- if (direction === 'left' || direction === 'right') {
23138
- module.debug('Adding CSS rules for animation distance', width);
23139
- style += ''
23140
- + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
23141
- + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
23142
- + ' }';
23143
- } else if (direction === 'top' || direction === 'bottom') {
23144
- style += ''
23145
- + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
23146
- + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
23147
- + ' }';
23148
- }
23149
- /* opposite sides visible forces content overlay */
23150
- style += ''
23151
- + ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
23152
- + ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
23153
- + ' transform: translate3d(0, 0, 0);'
23154
- + ' }';
23155
- }
23156
23059
  style += '</style>';
23157
23060
  $style = $(style)
23158
23061
  .appendTo($head)
@@ -23234,7 +23137,7 @@
23234
23137
  can: {
23235
23138
  leftBodyScrollbar: function () {
23236
23139
  if (module.cache.leftBodyScrollbar === undefined) {
23237
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
23140
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
23238
23141
  }
23239
23142
 
23240
23143
  return module.cache.leftBodyScrollbar;
@@ -23609,13 +23512,6 @@
23609
23512
 
23610
23513
  return module.cache.isSafari;
23611
23514
  },
23612
- edge: function () {
23613
- if (module.cache.isEdge === undefined) {
23614
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
23615
- }
23616
-
23617
- return module.cache.isEdge;
23618
- },
23619
23515
  firefox: function () {
23620
23516
  if (module.cache.isFirefox === undefined) {
23621
23517
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -23626,18 +23522,6 @@
23626
23522
  iframe: function () {
23627
23523
  return !(self === top);
23628
23524
  },
23629
- ie: function () {
23630
- if (module.cache.isIE === undefined) {
23631
- var
23632
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
23633
- isIE = 'ActiveXObject' in window
23634
- ;
23635
- module.cache.isIE = isIE11 || isIE;
23636
- }
23637
-
23638
- return module.cache.isIE;
23639
- },
23640
-
23641
23525
  mobile: function () {
23642
23526
  var
23643
23527
  userAgent = navigator.userAgent,
@@ -23933,7 +23817,7 @@
23933
23817
  })(jQuery, window, document);
23934
23818
 
23935
23819
  /*!
23936
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Sticky
23820
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Sticky
23937
23821
  * https://github.com/fomantic/Fomantic-UI/
23938
23822
  *
23939
23823
  *
@@ -24851,7 +24735,7 @@
24851
24735
  })(jQuery, window, document);
24852
24736
 
24853
24737
  /*!
24854
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Tab
24738
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Tab
24855
24739
  * https://github.com/fomantic/Fomantic-UI/
24856
24740
  *
24857
24741
  *
@@ -25816,7 +25700,7 @@
25816
25700
  })(jQuery, window, document);
25817
25701
 
25818
25702
  /*!
25819
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Toast
25703
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Toast
25820
25704
  * https://github.com/fomantic/Fomantic-UI/
25821
25705
  *
25822
25706
  *
@@ -26009,7 +25893,7 @@
26009
25893
  $content.append($('<div/>', {
26010
25894
  class: className.title,
26011
25895
  id: titleId,
26012
- html: module.helpers.escape(settings.title, settings.preserveHTML),
25896
+ html: module.helpers.escape(settings.title),
26013
25897
  }));
26014
25898
  }
26015
25899
  var descId = '_' + module.get.id() + 'desc';
@@ -26017,7 +25901,7 @@
26017
25901
  $content.append($('<div/>', {
26018
25902
  class: className.message,
26019
25903
  id: descId,
26020
- html: module.helpers.escape(settings.message, settings.preserveHTML),
25904
+ html: module.helpers.escape(settings.message),
26021
25905
  }));
26022
25906
 
26023
25907
  $toast
@@ -26049,10 +25933,10 @@
26049
25933
  $toast.find(selector.image).attr('src', settings.showImage).attr('alt', settings.alt || '');
26050
25934
  }
26051
25935
  if (settings.title !== '') {
26052
- $toast.find(selector.title).html(module.helpers.escape(settings.title, settings.preserveHTML));
25936
+ $toast.find(selector.title).html(module.helpers.escape(settings.title));
26053
25937
  }
26054
25938
  if (settings.message !== '') {
26055
- $toast.find(selector.message).html(module.helpers.escape(settings.message, settings.preserveHTML));
25939
+ $toast.find(selector.message).html(module.helpers.escape(settings.message));
26056
25940
  }
26057
25941
  }
26058
25942
  if ($toast.hasClass(className.compact)) {
@@ -26079,7 +25963,7 @@
26079
25963
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
26080
25964
  + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
26081
25965
  : '',
26082
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
25966
+ text = module.helpers.escape(el[fields.text] || ''),
26083
25967
  cls = module.helpers.deQuote(el[fields.class] || ''),
26084
25968
  click = el[fields.click] && isFunction(el[fields.click])
26085
25969
  ? el[fields.click]
@@ -26412,8 +26296,8 @@
26412
26296
  deQuote: function (string) {
26413
26297
  return String(string).replace(/"/g, '');
26414
26298
  },
26415
- escape: function (string, preserveHTML) {
26416
- if (preserveHTML) {
26299
+ escape: function (string) {
26300
+ if (settings.preserveHTML) {
26417
26301
  return string;
26418
26302
  }
26419
26303
  var
@@ -26657,7 +26541,7 @@
26657
26541
  closeOnClick: true,
26658
26542
  cloneModule: true,
26659
26543
  actions: false,
26660
- preserveHTML: true,
26544
+ preserveHTML: false,
26661
26545
  showImage: false,
26662
26546
  alt: false,
26663
26547
 
@@ -26781,7 +26665,7 @@
26781
26665
  })(jQuery, window, document);
26782
26666
 
26783
26667
  /*!
26784
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Transition
26668
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Transition
26785
26669
  * https://github.com/fomantic/Fomantic-UI/
26786
26670
  *
26787
26671
  *
@@ -27501,7 +27385,7 @@
27501
27385
  if (module.is.animating()) {
27502
27386
  module.reset();
27503
27387
  }
27504
- element.blur(); // IE will trigger focus change if element is not blurred before hiding
27388
+ element.blur();
27505
27389
  module.remove.display();
27506
27390
  module.remove.visible();
27507
27391
  settings.onBeforeHide.call(element, module.hideNow);
@@ -27816,7 +27700,7 @@
27816
27700
  })(jQuery, window, document);
27817
27701
 
27818
27702
  /*!
27819
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - API
27703
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - API
27820
27704
  * https://github.com/fomantic/Fomantic-UI/
27821
27705
  *
27822
27706
  *
@@ -29042,7 +28926,7 @@
29042
28926
  })(jQuery, window, document);
29043
28927
 
29044
28928
  /*!
29045
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - State
28929
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - State
29046
28930
  * https://github.com/fomantic/Fomantic-UI/
29047
28931
  *
29048
28932
  *
@@ -29740,7 +29624,7 @@
29740
29624
  })(jQuery, window, document);
29741
29625
 
29742
29626
  /*!
29743
- * # Fomantic-UI 2.10.0-beta.3+f3fff7f - Visibility
29627
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Visibility
29744
29628
  * https://github.com/fomantic/Fomantic-UI/
29745
29629
  *
29746
29630
  *