fomantic-ui 2.10.0-beta.4 → 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 (166) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +30 -26
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +6 -6
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +6 -6
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +2 -2
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +21 -19
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +2 -2
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +8 -8
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +2 -2
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +53 -53
  156. package/dist/semantic.js +92 -86
  157. package/dist/semantic.min.css +1 -1
  158. package/dist/semantic.min.js +2 -2
  159. package/package.json +1 -1
  160. package/src/definitions/modules/dropdown.js +29 -25
  161. package/src/definitions/modules/flyout.js +5 -5
  162. package/src/definitions/modules/modal.js +5 -5
  163. package/src/definitions/modules/search.js +20 -18
  164. package/src/definitions/modules/toast.js +7 -7
  165. package/types/fomantic-ui-dropdown.d.ts +49 -0
  166. package/types/fomantic-ui-search.d.ts +6 -6
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Accordion
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Accordion
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Accordion
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Accordion
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Accordion
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Accordion
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.4+fcf090f
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
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Ad
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Ad
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Ad
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Ad
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - API
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - API
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.4+fcf090f
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
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Breadcrumb
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Breadcrumb
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Breadcrumb
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Breadcrumb
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Button
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Button
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Button
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Button
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Calendar
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Calendar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Calendar
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Calendar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Calendar
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Calendar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.4+fcf090f
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
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Card
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Card
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Card
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Card
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Checkbox
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Checkbox
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Checkbox
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Checkbox
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Checkbox
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Checkbox
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.4+fcf090f
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
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Comment
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Comment
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Comment
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Comment
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Container
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Container
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Container
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Container
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dimmer
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dimmer
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dimmer
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dimmer
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dimmer
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dimmer
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.4+fcf090f
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
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Divider
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Divider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Divider
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Divider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dropdown
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dropdown
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dropdown
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dropdown
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -416,7 +416,7 @@
416
416
  .attr('class', $input.attr('class'))
417
417
  .addClass(className.selection)
418
418
  .addClass(className.dropdown)
419
- .html(templates.dropdown(selectValues, fields, settings.preserveHTML, settings.className))
419
+ .html(templates.dropdown(selectValues, settings))
420
420
  .insertBefore($input)
421
421
  ;
422
422
  if ($input.hasClass(className.multiple) && $input.prop('multiple') === false) {
@@ -446,7 +446,7 @@
446
446
  module.refresh();
447
447
  },
448
448
  menu: function (values) {
449
- $menu.html(templates.menu(values, fields, settings.preserveHTML, settings.className));
449
+ $menu.html(templates.menu(values, settings));
450
450
  $item = $menu.find(selector.item);
451
451
  $divider = settings.hideDividers ? $item.parent().children(selector.divider) : $();
452
452
  },
@@ -1113,7 +1113,7 @@
1113
1113
  value = settings.templates.deQuote(item[fields.value]),
1114
1114
  name = settings.templates.escape(
1115
1115
  item[fields.name] || '',
1116
- settings.preserveHTML
1116
+ settings
1117
1117
  )
1118
1118
  ;
1119
1119
  $input.append('<option value="' + value + '"' + (item.selected === true ? ' selected' : '') + '>' + name + '</option>');
@@ -2902,7 +2902,7 @@
2902
2902
  $label = $('<a />')
2903
2903
  .addClass(className.label)
2904
2904
  .attr('data-' + metadata.value, escapedValue)
2905
- .html(templates.label(escapedValue, text, settings.preserveHTML, settings.className))
2905
+ .html(templates.label(escapedValue, text, settings))
2906
2906
  ;
2907
2907
  $label = settings.onLabelCreate.call($label, escapedValue, text);
2908
2908
 
@@ -4269,8 +4269,8 @@
4269
4269
  deQuote: function (string, encode) {
4270
4270
  return String(string).replace(/"/g, encode ? '&quot;' : '');
4271
4271
  },
4272
- escape: function (string, preserveHTML) {
4273
- if (preserveHTML) {
4272
+ escape: function (string, settings) {
4273
+ if (settings.preserveHTML) {
4274
4274
  return string;
4275
4275
  }
4276
4276
  var
@@ -4295,31 +4295,34 @@
4295
4295
  return string;
4296
4296
  },
4297
4297
  // generates dropdown from select values
4298
- dropdown: function (select, fields, preserveHTML, className) {
4298
+ dropdown: function (select, settings) {
4299
4299
  var
4300
4300
  placeholder = select.placeholder || false,
4301
- html = '',
4302
- escape = $.fn.dropdown.settings.templates.escape,
4303
- deQuote = $.fn.dropdown.settings.templates.deQuote
4301
+ html = '',
4302
+ className = settings.className,
4303
+ escape = settings.templates.escape,
4304
+ deQuote = settings.templates.deQuote
4304
4305
  ;
4305
4306
  html += '<i class="dropdown icon"></i>';
4306
4307
  html += placeholder
4307
- ? '<div class="default text">' + escape(placeholder, preserveHTML) + '</div>'
4308
+ ? '<div class="default text">' + escape(placeholder, settings) + '</div>'
4308
4309
  : '<div class="text"></div>';
4309
4310
  html += '<div class="' + deQuote(className.menu) + '">';
4310
- html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML, className);
4311
+ html += settings.templates.menu(select, settings);
4311
4312
  html += '</div>';
4312
4313
 
4313
4314
  return html;
4314
4315
  },
4315
4316
 
4316
4317
  // generates just menu from select
4317
- menu: function (response, fields, preserveHTML, className) {
4318
+ menu: function (response, settings) {
4318
4319
  var
4320
+ fields = settings.fields,
4319
4321
  values = response[fields.values] || [],
4320
- html = '',
4321
- escape = $.fn.dropdown.settings.templates.escape,
4322
- deQuote = $.fn.dropdown.settings.templates.deQuote
4322
+ html = '',
4323
+ className = settings.className,
4324
+ escape = settings.templates.escape,
4325
+ deQuote = settings.templates.deQuote
4323
4326
  ;
4324
4327
  $.each(values, function (index, option) {
4325
4328
  var
@@ -4353,7 +4356,7 @@
4353
4356
  maybeDescriptionVertical = option[fields.descriptionVertical]
4354
4357
  ? className.descriptionVertical + ' '
4355
4358
  : '',
4356
- hasDescription = escape(option[fields.description] || '', preserveHTML) !== ''
4359
+ hasDescription = escape(option[fields.description] || '', settings) !== ''
4357
4360
  ;
4358
4361
  html += '<div class="' + deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] || className.item)) + '" data-value="' + deQuote(option[fields.value], true) + '"' + maybeText + maybeData + '>';
4359
4362
  if (isMenu) {
@@ -4366,17 +4369,17 @@
4366
4369
  html += '<i class="' + deQuote(option[fields.icon] + ' ' + (option[fields.iconClass] || className.icon)) + '"></i>';
4367
4370
  }
4368
4371
  if (hasDescription) {
4369
- html += '<span class="' + deQuote(className.description) + '">' + escape(option[fields.description] || '', preserveHTML) + '</span>';
4372
+ html += '<span class="' + deQuote(className.description) + '">' + escape(option[fields.description] || '', settings) + '</span>';
4370
4373
  html += !isMenu ? '<span class="' + deQuote(className.text) + '">' : '';
4371
4374
  }
4372
4375
  if (isMenu) {
4373
4376
  html += '<span class="' + deQuote(className.text) + '">';
4374
4377
  }
4375
- html += escape(option[fields.name] || '', preserveHTML);
4378
+ html += escape(option[fields.name] || '', settings);
4376
4379
  if (isMenu) {
4377
4380
  html += '</span>';
4378
4381
  html += '<div class="' + deQuote(itemType) + '">';
4379
- html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
4382
+ html += settings.templates.menu(option, settings);
4380
4383
  html += '</div>';
4381
4384
  } else if (hasDescription) {
4382
4385
  html += '</span>';
@@ -4384,7 +4387,7 @@
4384
4387
  html += '</div>';
4385
4388
  } else if (itemType === 'header') {
4386
4389
  var
4387
- groupName = escape(option[fields.name] || '', preserveHTML),
4390
+ groupName = escape(option[fields.name] || '', settings),
4388
4391
  groupIcon = deQuote(option[fields.icon] || className.groupIcon)
4389
4392
  ;
4390
4393
  if (groupName !== '' || groupIcon !== '') {
@@ -4405,13 +4408,14 @@
4405
4408
  },
4406
4409
 
4407
4410
  // generates label for multiselect
4408
- label: function (value, text, preserveHTML, className) {
4411
+ label: function (value, text, settings) {
4409
4412
  var
4410
- escape = $.fn.dropdown.settings.templates.escape,
4411
- deQuote = $.fn.dropdown.settings.templates.deQuote
4413
+ className = settings.className,
4414
+ escape = settings.templates.escape,
4415
+ deQuote = settings.templates.deQuote
4412
4416
  ;
4413
4417
 
4414
- return escape(text, preserveHTML) + '<i class="' + deQuote(className.delete) + ' icon"></i>';
4418
+ return escape(text, settings) + '<i class="' + deQuote(className.delete) + ' icon"></i>';
4415
4419
  },
4416
4420
 
4417
4421
  // generates messages like "No results"
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dropdown
2
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dropdown
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *