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
package/dist/semantic.js CHANGED
@@ -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
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - 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.4+fcf090f - 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
  *
@@ -2660,7 +2660,7 @@
2660
2660
  })(jQuery, window, document);
2661
2661
 
2662
2662
  /*!
2663
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Accordion
2663
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Accordion
2664
2664
  * https://github.com/fomantic/Fomantic-UI/
2665
2665
  *
2666
2666
  *
@@ -3256,7 +3256,7 @@
3256
3256
  })(jQuery, window, document);
3257
3257
 
3258
3258
  /*!
3259
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Calendar
3259
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Calendar
3260
3260
  * https://github.com/fomantic/Fomantic-UI/
3261
3261
  *
3262
3262
  *
@@ -5302,7 +5302,7 @@
5302
5302
  })(jQuery, window, document);
5303
5303
 
5304
5304
  /*!
5305
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Checkbox
5305
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Checkbox
5306
5306
  * https://github.com/fomantic/Fomantic-UI/
5307
5307
  *
5308
5308
  *
@@ -6183,7 +6183,7 @@
6183
6183
  })(jQuery, window, document);
6184
6184
 
6185
6185
  /*!
6186
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dimmer
6186
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dimmer
6187
6187
  * https://github.com/fomantic/Fomantic-UI/
6188
6188
  *
6189
6189
  *
@@ -6916,7 +6916,7 @@
6916
6916
  })(jQuery, window, document);
6917
6917
 
6918
6918
  /*!
6919
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Dropdown
6919
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Dropdown
6920
6920
  * https://github.com/fomantic/Fomantic-UI/
6921
6921
  *
6922
6922
  *
@@ -7333,7 +7333,7 @@
7333
7333
  .attr('class', $input.attr('class'))
7334
7334
  .addClass(className.selection)
7335
7335
  .addClass(className.dropdown)
7336
- .html(templates.dropdown(selectValues, fields, settings.preserveHTML, settings.className))
7336
+ .html(templates.dropdown(selectValues, settings))
7337
7337
  .insertBefore($input)
7338
7338
  ;
7339
7339
  if ($input.hasClass(className.multiple) && $input.prop('multiple') === false) {
@@ -7363,7 +7363,7 @@
7363
7363
  module.refresh();
7364
7364
  },
7365
7365
  menu: function (values) {
7366
- $menu.html(templates.menu(values, fields, settings.preserveHTML, settings.className));
7366
+ $menu.html(templates.menu(values, settings));
7367
7367
  $item = $menu.find(selector.item);
7368
7368
  $divider = settings.hideDividers ? $item.parent().children(selector.divider) : $();
7369
7369
  },
@@ -8030,7 +8030,7 @@
8030
8030
  value = settings.templates.deQuote(item[fields.value]),
8031
8031
  name = settings.templates.escape(
8032
8032
  item[fields.name] || '',
8033
- settings.preserveHTML
8033
+ settings
8034
8034
  )
8035
8035
  ;
8036
8036
  $input.append('<option value="' + value + '"' + (item.selected === true ? ' selected' : '') + '>' + name + '</option>');
@@ -9819,7 +9819,7 @@
9819
9819
  $label = $('<a />')
9820
9820
  .addClass(className.label)
9821
9821
  .attr('data-' + metadata.value, escapedValue)
9822
- .html(templates.label(escapedValue, text, settings.preserveHTML, settings.className))
9822
+ .html(templates.label(escapedValue, text, settings))
9823
9823
  ;
9824
9824
  $label = settings.onLabelCreate.call($label, escapedValue, text);
9825
9825
 
@@ -11186,8 +11186,8 @@
11186
11186
  deQuote: function (string, encode) {
11187
11187
  return String(string).replace(/"/g, encode ? '&quot;' : '');
11188
11188
  },
11189
- escape: function (string, preserveHTML) {
11190
- if (preserveHTML) {
11189
+ escape: function (string, settings) {
11190
+ if (settings.preserveHTML) {
11191
11191
  return string;
11192
11192
  }
11193
11193
  var
@@ -11212,31 +11212,34 @@
11212
11212
  return string;
11213
11213
  },
11214
11214
  // generates dropdown from select values
11215
- dropdown: function (select, fields, preserveHTML, className) {
11215
+ dropdown: function (select, settings) {
11216
11216
  var
11217
11217
  placeholder = select.placeholder || false,
11218
- html = '',
11219
- escape = $.fn.dropdown.settings.templates.escape,
11220
- deQuote = $.fn.dropdown.settings.templates.deQuote
11218
+ html = '',
11219
+ className = settings.className,
11220
+ escape = settings.templates.escape,
11221
+ deQuote = settings.templates.deQuote
11221
11222
  ;
11222
11223
  html += '<i class="dropdown icon"></i>';
11223
11224
  html += placeholder
11224
- ? '<div class="default text">' + escape(placeholder, preserveHTML) + '</div>'
11225
+ ? '<div class="default text">' + escape(placeholder, settings) + '</div>'
11225
11226
  : '<div class="text"></div>';
11226
11227
  html += '<div class="' + deQuote(className.menu) + '">';
11227
- html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML, className);
11228
+ html += settings.templates.menu(select, settings);
11228
11229
  html += '</div>';
11229
11230
 
11230
11231
  return html;
11231
11232
  },
11232
11233
 
11233
11234
  // generates just menu from select
11234
- menu: function (response, fields, preserveHTML, className) {
11235
+ menu: function (response, settings) {
11235
11236
  var
11237
+ fields = settings.fields,
11236
11238
  values = response[fields.values] || [],
11237
- html = '',
11238
- escape = $.fn.dropdown.settings.templates.escape,
11239
- deQuote = $.fn.dropdown.settings.templates.deQuote
11239
+ html = '',
11240
+ className = settings.className,
11241
+ escape = settings.templates.escape,
11242
+ deQuote = settings.templates.deQuote
11240
11243
  ;
11241
11244
  $.each(values, function (index, option) {
11242
11245
  var
@@ -11270,7 +11273,7 @@
11270
11273
  maybeDescriptionVertical = option[fields.descriptionVertical]
11271
11274
  ? className.descriptionVertical + ' '
11272
11275
  : '',
11273
- hasDescription = escape(option[fields.description] || '', preserveHTML) !== ''
11276
+ hasDescription = escape(option[fields.description] || '', settings) !== ''
11274
11277
  ;
11275
11278
  html += '<div class="' + deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] || className.item)) + '" data-value="' + deQuote(option[fields.value], true) + '"' + maybeText + maybeData + '>';
11276
11279
  if (isMenu) {
@@ -11283,17 +11286,17 @@
11283
11286
  html += '<i class="' + deQuote(option[fields.icon] + ' ' + (option[fields.iconClass] || className.icon)) + '"></i>';
11284
11287
  }
11285
11288
  if (hasDescription) {
11286
- 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>';
11287
11290
  html += !isMenu ? '<span class="' + deQuote(className.text) + '">' : '';
11288
11291
  }
11289
11292
  if (isMenu) {
11290
11293
  html += '<span class="' + deQuote(className.text) + '">';
11291
11294
  }
11292
- html += escape(option[fields.name] || '', preserveHTML);
11295
+ html += escape(option[fields.name] || '', settings);
11293
11296
  if (isMenu) {
11294
11297
  html += '</span>';
11295
11298
  html += '<div class="' + deQuote(itemType) + '">';
11296
- html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
11299
+ html += settings.templates.menu(option, settings);
11297
11300
  html += '</div>';
11298
11301
  } else if (hasDescription) {
11299
11302
  html += '</span>';
@@ -11301,7 +11304,7 @@
11301
11304
  html += '</div>';
11302
11305
  } else if (itemType === 'header') {
11303
11306
  var
11304
- groupName = escape(option[fields.name] || '', preserveHTML),
11307
+ groupName = escape(option[fields.name] || '', settings),
11305
11308
  groupIcon = deQuote(option[fields.icon] || className.groupIcon)
11306
11309
  ;
11307
11310
  if (groupName !== '' || groupIcon !== '') {
@@ -11322,13 +11325,14 @@
11322
11325
  },
11323
11326
 
11324
11327
  // generates label for multiselect
11325
- label: function (value, text, preserveHTML, className) {
11328
+ label: function (value, text, settings) {
11326
11329
  var
11327
- escape = $.fn.dropdown.settings.templates.escape,
11328
- deQuote = $.fn.dropdown.settings.templates.deQuote
11330
+ className = settings.className,
11331
+ escape = settings.templates.escape,
11332
+ deQuote = settings.templates.deQuote
11329
11333
  ;
11330
11334
 
11331
- return escape(text, preserveHTML) + '<i class="' + deQuote(className.delete) + ' icon"></i>';
11335
+ return escape(text, settings) + '<i class="' + deQuote(className.delete) + ' icon"></i>';
11332
11336
  },
11333
11337
 
11334
11338
  // generates messages like "No results"
@@ -11345,7 +11349,7 @@
11345
11349
  })(jQuery, window, document);
11346
11350
 
11347
11351
  /*!
11348
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Embed
11352
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Embed
11349
11353
  * https://github.com/fomantic/Fomantic-UI/
11350
11354
  *
11351
11355
  *
@@ -12034,7 +12038,7 @@
12034
12038
  })(jQuery, window, document);
12035
12039
 
12036
12040
  /*!
12037
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Flyout
12041
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Flyout
12038
12042
  * https://github.com/fomantic/Fomantic-UI/
12039
12043
  *
12040
12044
  *
@@ -12152,10 +12156,10 @@
12152
12156
  }
12153
12157
  $module.addClass(settings.class);
12154
12158
  if (settings.title !== '') {
12155
- $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);
12156
12160
  }
12157
12161
  if (settings.content !== '') {
12158
- $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);
12159
12163
  }
12160
12164
  if (module.has.configActions()) {
12161
12165
  var $actions = $module.find(selector.actions).addClass(settings.classActions);
@@ -12169,7 +12173,7 @@
12169
12173
  icon = el[fields.icon]
12170
12174
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
12171
12175
  : '',
12172
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
12176
+ text = module.helpers.escape(el[fields.text] || ''),
12173
12177
  cls = module.helpers.deQuote(el[fields.class] || ''),
12174
12178
  click = el[fields.click] && isFunction(el[fields.click])
12175
12179
  ? el[fields.click]
@@ -13117,8 +13121,8 @@
13117
13121
  deQuote: function (string) {
13118
13122
  return String(string).replace(/"/g, '');
13119
13123
  },
13120
- escape: function (string, preserveHTML) {
13121
- if (preserveHTML) {
13124
+ escape: function (string) {
13125
+ if (settings.preserveHTML) {
13122
13126
  return string;
13123
13127
  }
13124
13128
  var
@@ -13546,7 +13550,7 @@
13546
13550
  })(jQuery, window, document);
13547
13551
 
13548
13552
  /*!
13549
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Modal
13553
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Modal
13550
13554
  * https://github.com/fomantic/Fomantic-UI/
13551
13555
  *
13552
13556
  *
@@ -13658,10 +13662,10 @@
13658
13662
  }
13659
13663
  $module.addClass(settings.class);
13660
13664
  if (settings.title !== '') {
13661
- $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);
13662
13666
  }
13663
13667
  if (settings.content !== '') {
13664
- $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);
13665
13669
  }
13666
13670
  if (module.has.configActions()) {
13667
13671
  var $actions = $module.find(selector.actions).addClass(settings.classActions);
@@ -13675,7 +13679,7 @@
13675
13679
  icon = el[fields.icon]
13676
13680
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
13677
13681
  : '',
13678
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
13682
+ text = module.helpers.escape(el[fields.text] || ''),
13679
13683
  cls = module.helpers.deQuote(el[fields.class] || ''),
13680
13684
  click = el[fields.click] && isFunction(el[fields.click])
13681
13685
  ? el[fields.click]
@@ -14477,8 +14481,8 @@
14477
14481
  deQuote: function (string) {
14478
14482
  return String(string).replace(/"/g, '');
14479
14483
  },
14480
- escape: function (string, preserveHTML) {
14481
- if (preserveHTML) {
14484
+ escape: function (string) {
14485
+ if (settings.preserveHTML) {
14482
14486
  return string;
14483
14487
  }
14484
14488
  var
@@ -15160,7 +15164,7 @@
15160
15164
  })(jQuery, window, document);
15161
15165
 
15162
15166
  /*!
15163
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Nag
15167
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Nag
15164
15168
  * https://github.com/fomantic/Fomantic-UI/
15165
15169
  *
15166
15170
  *
@@ -15727,7 +15731,7 @@
15727
15731
  })(jQuery, window, document);
15728
15732
 
15729
15733
  /*!
15730
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Popup
15734
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Popup
15731
15735
  * https://github.com/fomantic/Fomantic-UI/
15732
15736
  *
15733
15737
  *
@@ -17289,7 +17293,7 @@
17289
17293
  })(jQuery, window, document);
17290
17294
 
17291
17295
  /*!
17292
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Progress
17296
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Progress
17293
17297
  * https://github.com/fomantic/Fomantic-UI/
17294
17298
  *
17295
17299
  *
@@ -18269,7 +18273,7 @@
18269
18273
  })(jQuery, window, document);
18270
18274
 
18271
18275
  /*!
18272
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Slider
18276
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Slider
18273
18277
  * https://github.com/fomantic/Fomantic-UI/
18274
18278
  *
18275
18279
  *
@@ -19816,7 +19820,7 @@
19816
19820
  })(jQuery, window, document);
19817
19821
 
19818
19822
  /*!
19819
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Rating
19823
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Rating
19820
19824
  * https://github.com/fomantic/Fomantic-UI/
19821
19825
  *
19822
19826
  *
@@ -20357,7 +20361,7 @@
20357
20361
  })(jQuery, window, document);
20358
20362
 
20359
20363
  /*!
20360
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Search
20364
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Search
20361
20365
  * https://github.com/fomantic/Fomantic-UI/
20362
20366
  *
20363
20367
  *
@@ -21498,7 +21502,7 @@
21498
21502
  });
21499
21503
  }
21500
21504
  if (isFunction(template)) {
21501
- html = template(response, fields, settings.preserveHTML);
21505
+ html = template(response, settings);
21502
21506
  } else {
21503
21507
  module.error(error.noTemplate, false);
21504
21508
  }
@@ -21834,8 +21838,8 @@
21834
21838
  },
21835
21839
 
21836
21840
  templates: {
21837
- escape: function (string, preserveHTML) {
21838
- if (preserveHTML) {
21841
+ escape: function (string, settings) {
21842
+ if (settings.preserveHTML) {
21839
21843
  return string;
21840
21844
  }
21841
21845
  var
@@ -21877,10 +21881,11 @@
21877
21881
 
21878
21882
  return html;
21879
21883
  },
21880
- category: function (response, fields, preserveHTML) {
21884
+ category: function (response, settings) {
21881
21885
  var
21882
21886
  html = '',
21883
- escape = $.fn.search.settings.templates.escape
21887
+ fields = settings.fields,
21888
+ escape = settings.templates.escape
21884
21889
  ;
21885
21890
  if (response[fields.categoryResults] !== undefined) {
21886
21891
  // each category
@@ -21889,7 +21894,7 @@
21889
21894
  html += '<div class="category">';
21890
21895
 
21891
21896
  if (category[fields.categoryName] !== undefined) {
21892
- html += '<div class="name">' + escape(category[fields.categoryName], preserveHTML) + '</div>';
21897
+ html += '<div class="name">' + escape(category[fields.categoryName], settings) + '</div>';
21893
21898
  }
21894
21899
 
21895
21900
  // each item inside category
@@ -21906,13 +21911,13 @@
21906
21911
  }
21907
21912
  html += '<div class="content">';
21908
21913
  if (result[fields.price] !== undefined) {
21909
- html += '<div class="price">' + escape(result[fields.price], preserveHTML) + '</div>';
21914
+ html += '<div class="price">' + escape(result[fields.price], settings) + '</div>';
21910
21915
  }
21911
21916
  if (result[fields.title] !== undefined) {
21912
- html += '<div class="title">' + escape(result[fields.title], preserveHTML) + '</div>';
21917
+ html += '<div class="title">' + escape(result[fields.title], settings) + '</div>';
21913
21918
  }
21914
21919
  if (result[fields.description] !== undefined) {
21915
- html += '<div class="description">' + escape(result[fields.description], preserveHTML) + '</div>';
21920
+ html += '<div class="description">' + escape(result[fields.description], settings) + '</div>';
21916
21921
  }
21917
21922
  html += ''
21918
21923
  + '</div>';
@@ -21927,11 +21932,11 @@
21927
21932
  html += fields.actionURL === false
21928
21933
  ? ''
21929
21934
  + '<div class="action">'
21930
- + escape(response[fields.action][fields.actionText], preserveHTML)
21935
+ + escape(response[fields.action][fields.actionText], settings)
21931
21936
  + '</div>'
21932
21937
  : ''
21933
21938
  + '<a href="' + response[fields.action][fields.actionURL].replace(/"/g, '') + '" class="action">'
21934
- + escape(response[fields.action][fields.actionText], preserveHTML)
21939
+ + escape(response[fields.action][fields.actionText], settings)
21935
21940
  + '</a>';
21936
21941
  }
21937
21942
 
@@ -21940,10 +21945,11 @@
21940
21945
 
21941
21946
  return false;
21942
21947
  },
21943
- standard: function (response, fields, preserveHTML) {
21948
+ standard: function (response, settings) {
21944
21949
  var
21945
21950
  html = '',
21946
- escape = $.fn.search.settings.templates.escape
21951
+ fields = settings.fields,
21952
+ escape = settings.templates.escape
21947
21953
  ;
21948
21954
  if (response[fields.results] !== undefined) {
21949
21955
  // each result
@@ -21959,13 +21965,13 @@
21959
21965
  }
21960
21966
  html += '<div class="content">';
21961
21967
  if (result[fields.price] !== undefined) {
21962
- html += '<div class="price">' + escape(result[fields.price], preserveHTML) + '</div>';
21968
+ html += '<div class="price">' + escape(result[fields.price], settings) + '</div>';
21963
21969
  }
21964
21970
  if (result[fields.title] !== undefined) {
21965
- html += '<div class="title">' + escape(result[fields.title], preserveHTML) + '</div>';
21971
+ html += '<div class="title">' + escape(result[fields.title], settings) + '</div>';
21966
21972
  }
21967
21973
  if (result[fields.description] !== undefined) {
21968
- html += '<div class="description">' + escape(result[fields.description], preserveHTML) + '</div>';
21974
+ html += '<div class="description">' + escape(result[fields.description], settings) + '</div>';
21969
21975
  }
21970
21976
  html += ''
21971
21977
  + '</div>';
@@ -21975,11 +21981,11 @@
21975
21981
  html += fields.actionURL === false
21976
21982
  ? ''
21977
21983
  + '<div class="action">'
21978
- + escape(response[fields.action][fields.actionText], preserveHTML)
21984
+ + escape(response[fields.action][fields.actionText], settings)
21979
21985
  + '</div>'
21980
21986
  : ''
21981
21987
  + '<a href="' + response[fields.action][fields.actionURL].replace(/"/g, '') + '" class="action">'
21982
- + escape(response[fields.action][fields.actionText], preserveHTML)
21988
+ + escape(response[fields.action][fields.actionText], settings)
21983
21989
  + '</a>';
21984
21990
  }
21985
21991
 
@@ -21999,7 +22005,7 @@
21999
22005
  })(jQuery, window, document);
22000
22006
 
22001
22007
  /*!
22002
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Shape
22008
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Shape
22003
22009
  * https://github.com/fomantic/Fomantic-UI/
22004
22010
  *
22005
22011
  *
@@ -22797,7 +22803,7 @@
22797
22803
  })(jQuery, window, document);
22798
22804
 
22799
22805
  /*!
22800
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Sidebar
22806
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Sidebar
22801
22807
  * https://github.com/fomantic/Fomantic-UI/
22802
22808
  *
22803
22809
  *
@@ -23811,7 +23817,7 @@
23811
23817
  })(jQuery, window, document);
23812
23818
 
23813
23819
  /*!
23814
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Sticky
23820
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Sticky
23815
23821
  * https://github.com/fomantic/Fomantic-UI/
23816
23822
  *
23817
23823
  *
@@ -24729,7 +24735,7 @@
24729
24735
  })(jQuery, window, document);
24730
24736
 
24731
24737
  /*!
24732
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Tab
24738
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Tab
24733
24739
  * https://github.com/fomantic/Fomantic-UI/
24734
24740
  *
24735
24741
  *
@@ -25694,7 +25700,7 @@
25694
25700
  })(jQuery, window, document);
25695
25701
 
25696
25702
  /*!
25697
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Toast
25703
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Toast
25698
25704
  * https://github.com/fomantic/Fomantic-UI/
25699
25705
  *
25700
25706
  *
@@ -25887,7 +25893,7 @@
25887
25893
  $content.append($('<div/>', {
25888
25894
  class: className.title,
25889
25895
  id: titleId,
25890
- html: module.helpers.escape(settings.title, settings.preserveHTML),
25896
+ html: module.helpers.escape(settings.title),
25891
25897
  }));
25892
25898
  }
25893
25899
  var descId = '_' + module.get.id() + 'desc';
@@ -25895,7 +25901,7 @@
25895
25901
  $content.append($('<div/>', {
25896
25902
  class: className.message,
25897
25903
  id: descId,
25898
- html: module.helpers.escape(settings.message, settings.preserveHTML),
25904
+ html: module.helpers.escape(settings.message),
25899
25905
  }));
25900
25906
 
25901
25907
  $toast
@@ -25927,10 +25933,10 @@
25927
25933
  $toast.find(selector.image).attr('src', settings.showImage).attr('alt', settings.alt || '');
25928
25934
  }
25929
25935
  if (settings.title !== '') {
25930
- $toast.find(selector.title).html(module.helpers.escape(settings.title, settings.preserveHTML));
25936
+ $toast.find(selector.title).html(module.helpers.escape(settings.title));
25931
25937
  }
25932
25938
  if (settings.message !== '') {
25933
- $toast.find(selector.message).html(module.helpers.escape(settings.message, settings.preserveHTML));
25939
+ $toast.find(selector.message).html(module.helpers.escape(settings.message));
25934
25940
  }
25935
25941
  }
25936
25942
  if ($toast.hasClass(className.compact)) {
@@ -25957,7 +25963,7 @@
25957
25963
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
25958
25964
  + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
25959
25965
  : '',
25960
- text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
25966
+ text = module.helpers.escape(el[fields.text] || ''),
25961
25967
  cls = module.helpers.deQuote(el[fields.class] || ''),
25962
25968
  click = el[fields.click] && isFunction(el[fields.click])
25963
25969
  ? el[fields.click]
@@ -26290,8 +26296,8 @@
26290
26296
  deQuote: function (string) {
26291
26297
  return String(string).replace(/"/g, '');
26292
26298
  },
26293
- escape: function (string, preserveHTML) {
26294
- if (preserveHTML) {
26299
+ escape: function (string) {
26300
+ if (settings.preserveHTML) {
26295
26301
  return string;
26296
26302
  }
26297
26303
  var
@@ -26659,7 +26665,7 @@
26659
26665
  })(jQuery, window, document);
26660
26666
 
26661
26667
  /*!
26662
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Transition
26668
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Transition
26663
26669
  * https://github.com/fomantic/Fomantic-UI/
26664
26670
  *
26665
26671
  *
@@ -27694,7 +27700,7 @@
27694
27700
  })(jQuery, window, document);
27695
27701
 
27696
27702
  /*!
27697
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - API
27703
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - API
27698
27704
  * https://github.com/fomantic/Fomantic-UI/
27699
27705
  *
27700
27706
  *
@@ -28920,7 +28926,7 @@
28920
28926
  })(jQuery, window, document);
28921
28927
 
28922
28928
  /*!
28923
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - State
28929
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - State
28924
28930
  * https://github.com/fomantic/Fomantic-UI/
28925
28931
  *
28926
28932
  *
@@ -29618,7 +29624,7 @@
29618
29624
  })(jQuery, window, document);
29619
29625
 
29620
29626
  /*!
29621
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Visibility
29627
+ * # Fomantic-UI 2.10.0-beta.5+789e0d0 - Visibility
29622
29628
  * https://github.com/fomantic/Fomantic-UI/
29623
29629
  *
29624
29630
  *
@@ -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
  *