fomantic-ui 2.10.0-beta.6 → 2.10.0-beta.7

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 (167) 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 +24 -37
  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 +11 -20
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +2 -2
  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 +11 -19
  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 +11 -19
  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 +11 -20
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +2 -2
  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 +11 -20
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +2 -2
  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 +15 -20
  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 +11 -19
  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 +120 -189
  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 +23 -36
  161. package/src/definitions/modules/embed.js +10 -19
  162. package/src/definitions/modules/flyout.js +10 -18
  163. package/src/definitions/modules/modal.js +10 -18
  164. package/src/definitions/modules/popup.js +10 -19
  165. package/src/definitions/modules/rating.js +10 -19
  166. package/src/definitions/modules/search.js +14 -19
  167. package/src/definitions/modules/toast.js +10 -18
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.6+42a411a
2
+ * # Fomantic UI - 2.10.0-beta.7+13b1bae
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.6+42a411a - Site
12
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - 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.6+42a411a - Form Validation
468
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - 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.6+42a411a - Accordion
2663
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - 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.6+42a411a - Calendar
3259
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - 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.6+42a411a - Checkbox
5305
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - 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.6+42a411a - Dimmer
6186
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - 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.6+42a411a - Dropdown
6919
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Dropdown
6920
6920
  * https://github.com/fomantic/Fomantic-UI/
6921
6921
  *
6922
6922
  *
@@ -8674,6 +8674,7 @@
8674
8674
  }
8675
8675
  // down arrow (open menu)
8676
8676
  if (pressedKey === keys.downArrow && !module.is.visible()) {
8677
+ focused = true;
8677
8678
  module.verbose('Down key pressed, showing dropdown');
8678
8679
  module.show();
8679
8680
  event.preventDefault();
@@ -10752,25 +10753,19 @@
10752
10753
  },
10753
10754
  htmlEntities: function (string, forceAmpersand) {
10754
10755
  forceAmpersand = typeof forceAmpersand === 'number' ? false : forceAmpersand;
10755
- var
10756
- badChars = /["'<>]/g,
10757
- shouldEscape = /["&'<>]/,
10758
- escape = {
10759
- '<': '&lt;',
10760
- '>': '&gt;',
10761
- '"': '&quot;',
10762
- "'": '&apos;',
10763
- },
10764
- escapedChar = function (chr) {
10765
- return escape[chr];
10766
- }
10767
- ;
10768
- if (shouldEscape.test(string)) {
10769
- string = string.replace(forceAmpersand ? /&/g : /&(?![\d#a-z]{1,12};)/gi, '&amp;');
10770
- string = string.replace(badChars, escapedChar);
10771
- }
10772
10756
 
10773
- return string;
10757
+ const badChars = forceAmpersand
10758
+ ? /["&'<>]/g
10759
+ : /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
10760
+ const escape = {
10761
+ '"': '&quot;',
10762
+ '&': '&amp;',
10763
+ "'": '&apos;',
10764
+ '<': '&lt;',
10765
+ '>': '&gt;',
10766
+ };
10767
+
10768
+ return string.replace(badChars, (chr) => escape[chr]);
10774
10769
  },
10775
10770
  },
10776
10771
 
@@ -11180,25 +11175,17 @@
11180
11175
  if (settings !== undefined && settings.preserveHTML) {
11181
11176
  return string;
11182
11177
  }
11183
- var
11184
- badChars = /["'<>]/g,
11185
- shouldEscape = /["&'<>]/,
11186
- escape = {
11187
- '<': '&lt;',
11188
- '>': '&gt;',
11189
- '"': '&quot;',
11190
- "'": '&apos;',
11191
- },
11192
- escapedChar = function (chr) {
11193
- return escape[chr];
11194
- }
11195
- ;
11196
- if (shouldEscape.test(string)) {
11197
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
11198
- string = string.replace(badChars, escapedChar);
11199
- }
11200
11178
 
11201
- return string;
11179
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
11180
+ const escape = {
11181
+ '"': '&quot;',
11182
+ '&': '&amp;',
11183
+ "'": '&apos;',
11184
+ '<': '&lt;',
11185
+ '>': '&gt;',
11186
+ };
11187
+
11188
+ return string.replace(badChars, (chr) => escape[chr]);
11202
11189
  },
11203
11190
  // generates dropdown from select values
11204
11191
  dropdown: function (select, settings) {
@@ -11335,7 +11322,7 @@
11335
11322
  })(jQuery, window, document);
11336
11323
 
11337
11324
  /*!
11338
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Embed
11325
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Embed
11339
11326
  * https://github.com/fomantic/Fomantic-UI/
11340
11327
  *
11341
11328
  *
@@ -11982,25 +11969,16 @@
11982
11969
 
11983
11970
  templates: {
11984
11971
  escape: function (string) {
11985
- var
11986
- badChars = /["'<>]/g,
11987
- shouldEscape = /["&'<>]/,
11988
- escape = {
11989
- '<': '&lt;',
11990
- '>': '&gt;',
11991
- '"': '&quot;',
11992
- "'": '&apos;',
11993
- },
11994
- escapedChar = function (chr) {
11995
- return escape[chr];
11996
- }
11997
- ;
11998
- if (shouldEscape.test(string)) {
11999
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
12000
- string = string.replace(badChars, escapedChar);
12001
- }
11972
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
11973
+ const escape = {
11974
+ '"': '&quot;',
11975
+ '&': '&amp;',
11976
+ "'": '&apos;',
11977
+ '<': '&lt;',
11978
+ '>': '&gt;',
11979
+ };
12002
11980
 
12003
- return string;
11981
+ return string.replace(badChars, (chr) => escape[chr]);
12004
11982
  },
12005
11983
  iframe: function (url, parameters) {
12006
11984
  var
@@ -12042,7 +12020,7 @@
12042
12020
  })(jQuery, window, document);
12043
12021
 
12044
12022
  /*!
12045
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Flyout
12023
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Flyout
12046
12024
  * https://github.com/fomantic/Fomantic-UI/
12047
12025
  *
12048
12026
  *
@@ -13126,25 +13104,17 @@
13126
13104
  if (settings !== undefined && settings.preserveHTML) {
13127
13105
  return string;
13128
13106
  }
13129
- var
13130
- badChars = /["'<>]/g,
13131
- shouldEscape = /["&'<>]/,
13132
- escape = {
13133
- '<': '&lt;',
13134
- '>': '&gt;',
13135
- '"': '&quot;',
13136
- "'": '&apos;',
13137
- },
13138
- escapedChar = function (chr) {
13139
- return escape[chr];
13140
- }
13141
- ;
13142
- if (shouldEscape.test(string)) {
13143
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
13144
- string = string.replace(badChars, escapedChar);
13145
- }
13146
13107
 
13147
- return string;
13108
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
13109
+ const escape = {
13110
+ '"': '&quot;',
13111
+ '&': '&amp;',
13112
+ "'": '&apos;',
13113
+ '<': '&lt;',
13114
+ '>': '&gt;',
13115
+ };
13116
+
13117
+ return string.replace(badChars, (chr) => escape[chr]);
13148
13118
  },
13149
13119
  },
13150
13120
 
@@ -13549,7 +13519,7 @@
13549
13519
  })(jQuery, window, document);
13550
13520
 
13551
13521
  /*!
13552
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Modal
13522
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Modal
13553
13523
  * https://github.com/fomantic/Fomantic-UI/
13554
13524
  *
13555
13525
  *
@@ -14481,25 +14451,17 @@
14481
14451
  if (settings !== undefined && settings.preserveHTML) {
14482
14452
  return string;
14483
14453
  }
14484
- var
14485
- badChars = /["'<>]/g,
14486
- shouldEscape = /["&'<>]/,
14487
- escape = {
14488
- '<': '&lt;',
14489
- '>': '&gt;',
14490
- '"': '&quot;',
14491
- "'": '&apos;',
14492
- },
14493
- escapedChar = function (chr) {
14494
- return escape[chr];
14495
- }
14496
- ;
14497
- if (shouldEscape.test(string)) {
14498
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
14499
- string = string.replace(badChars, escapedChar);
14500
- }
14501
14454
 
14502
- return string;
14455
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
14456
+ const escape = {
14457
+ '"': '&quot;',
14458
+ '&': '&amp;',
14459
+ "'": '&apos;',
14460
+ '<': '&lt;',
14461
+ '>': '&gt;',
14462
+ };
14463
+
14464
+ return string.replace(badChars, (chr) => escape[chr]);
14503
14465
  },
14504
14466
  },
14505
14467
  can: {
@@ -15158,7 +15120,7 @@
15158
15120
  })(jQuery, window, document);
15159
15121
 
15160
15122
  /*!
15161
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Nag
15123
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Nag
15162
15124
  * https://github.com/fomantic/Fomantic-UI/
15163
15125
  *
15164
15126
  *
@@ -15725,7 +15687,7 @@
15725
15687
  })(jQuery, window, document);
15726
15688
 
15727
15689
  /*!
15728
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Popup
15690
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Popup
15729
15691
  * https://github.com/fomantic/Fomantic-UI/
15730
15692
  *
15731
15693
  *
@@ -17241,25 +17203,16 @@
17241
17203
 
17242
17204
  templates: {
17243
17205
  escape: function (string) {
17244
- var
17245
- badChars = /["'<>]/g,
17246
- shouldEscape = /["&'<>]/,
17247
- escape = {
17248
- '<': '&lt;',
17249
- '>': '&gt;',
17250
- '"': '&quot;',
17251
- "'": '&apos;',
17252
- },
17253
- escapedChar = function (chr) {
17254
- return escape[chr];
17255
- }
17256
- ;
17257
- if (shouldEscape.test(string)) {
17258
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
17259
- string = string.replace(badChars, escapedChar);
17260
- }
17206
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
17207
+ const escape = {
17208
+ '"': '&quot;',
17209
+ '&': '&amp;',
17210
+ "'": '&apos;',
17211
+ '<': '&lt;',
17212
+ '>': '&gt;',
17213
+ };
17261
17214
 
17262
- return string;
17215
+ return string.replace(badChars, (chr) => escape[chr]);
17263
17216
  },
17264
17217
  popup: function (text) {
17265
17218
  var
@@ -17285,7 +17238,7 @@
17285
17238
  })(jQuery, window, document);
17286
17239
 
17287
17240
  /*!
17288
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Progress
17241
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Progress
17289
17242
  * https://github.com/fomantic/Fomantic-UI/
17290
17243
  *
17291
17244
  *
@@ -18265,7 +18218,7 @@
18265
18218
  })(jQuery, window, document);
18266
18219
 
18267
18220
  /*!
18268
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Slider
18221
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Slider
18269
18222
  * https://github.com/fomantic/Fomantic-UI/
18270
18223
  *
18271
18224
  *
@@ -19812,7 +19765,7 @@
19812
19765
  })(jQuery, window, document);
19813
19766
 
19814
19767
  /*!
19815
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Rating
19768
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Rating
19816
19769
  * https://github.com/fomantic/Fomantic-UI/
19817
19770
  *
19818
19771
  *
@@ -20332,25 +20285,16 @@
20332
20285
 
20333
20286
  templates: {
20334
20287
  escape: function (string) {
20335
- var
20336
- badChars = /["'<>]/g,
20337
- shouldEscape = /["&'<>]/,
20338
- escape = {
20339
- '<': '&lt;',
20340
- '>': '&gt;',
20341
- '"': '&quot;',
20342
- "'": '&apos;',
20343
- },
20344
- escapedChar = function (chr) {
20345
- return escape[chr];
20346
- }
20347
- ;
20348
- if (shouldEscape.test(string)) {
20349
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
20350
- string = string.replace(badChars, escapedChar);
20351
- }
20288
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
20289
+ const escape = {
20290
+ '"': '&quot;',
20291
+ '&': '&amp;',
20292
+ "'": '&apos;',
20293
+ '<': '&lt;',
20294
+ '>': '&gt;',
20295
+ };
20352
20296
 
20353
- return string;
20297
+ return string.replace(badChars, (chr) => escape[chr]);
20354
20298
  },
20355
20299
  icon: function (maxRating, iconClass) {
20356
20300
  var
@@ -20371,7 +20315,7 @@
20371
20315
  })(jQuery, window, document);
20372
20316
 
20373
20317
  /*!
20374
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Search
20318
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Search
20375
20319
  * https://github.com/fomantic/Fomantic-UI/
20376
20320
  *
20377
20321
  *
@@ -21847,25 +21791,20 @@
21847
21791
  if (settings !== undefined && settings.preserveHTML) {
21848
21792
  return string;
21849
21793
  }
21850
- var
21851
- badChars = /["'<>]/g,
21852
- shouldEscape = /["&'<>]/,
21853
- escape = {
21854
- '<': '&lt;',
21855
- '>': '&gt;',
21856
- '"': '&quot;',
21857
- "'": '&apos;',
21858
- },
21859
- escapedChar = function (chr) {
21860
- return escape[chr];
21861
- }
21862
- ;
21863
- if (shouldEscape.test(string)) {
21864
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
21865
- string = string.replace(badChars, escapedChar);
21866
- // FUI controlled HTML is still allowed
21867
- string = string.replace(/&lt;(\/)*mark&gt;/g, '<$1mark>');
21868
- }
21794
+
21795
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
21796
+ const escape = {
21797
+ '"': '&quot;',
21798
+ '&': '&amp;',
21799
+ "'": '&apos;',
21800
+ '<': '&lt;',
21801
+ '>': '&gt;',
21802
+ };
21803
+
21804
+ string = string.replace(badChars, (chr) => escape[chr]);
21805
+
21806
+ // FUI controlled HTML is still allowed
21807
+ string = string.replace(/&lt;(\/)*mark&gt;/g, '<$1mark>');
21869
21808
 
21870
21809
  return string;
21871
21810
  },
@@ -22010,7 +21949,7 @@
22010
21949
  })(jQuery, window, document);
22011
21950
 
22012
21951
  /*!
22013
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Shape
21952
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Shape
22014
21953
  * https://github.com/fomantic/Fomantic-UI/
22015
21954
  *
22016
21955
  *
@@ -22808,7 +22747,7 @@
22808
22747
  })(jQuery, window, document);
22809
22748
 
22810
22749
  /*!
22811
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Sidebar
22750
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Sidebar
22812
22751
  * https://github.com/fomantic/Fomantic-UI/
22813
22752
  *
22814
22753
  *
@@ -23822,7 +23761,7 @@
23822
23761
  })(jQuery, window, document);
23823
23762
 
23824
23763
  /*!
23825
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Sticky
23764
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Sticky
23826
23765
  * https://github.com/fomantic/Fomantic-UI/
23827
23766
  *
23828
23767
  *
@@ -24740,7 +24679,7 @@
24740
24679
  })(jQuery, window, document);
24741
24680
 
24742
24681
  /*!
24743
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Tab
24682
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Tab
24744
24683
  * https://github.com/fomantic/Fomantic-UI/
24745
24684
  *
24746
24685
  *
@@ -25705,7 +25644,7 @@
25705
25644
  })(jQuery, window, document);
25706
25645
 
25707
25646
  /*!
25708
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Toast
25647
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Toast
25709
25648
  * https://github.com/fomantic/Fomantic-UI/
25710
25649
  *
25711
25650
  *
@@ -26302,25 +26241,17 @@
26302
26241
  if (settings !== undefined && settings.preserveHTML) {
26303
26242
  return string;
26304
26243
  }
26305
- var
26306
- badChars = /["'<>]/g,
26307
- shouldEscape = /["&'<>]/,
26308
- escape = {
26309
- '<': '&lt;',
26310
- '>': '&gt;',
26311
- '"': '&quot;',
26312
- "'": '&apos;',
26313
- },
26314
- escapedChar = function (chr) {
26315
- return escape[chr];
26316
- }
26317
- ;
26318
- if (shouldEscape.test(string)) {
26319
- string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&amp;');
26320
- string = string.replace(badChars, escapedChar);
26321
- }
26322
26244
 
26323
- return string;
26245
+ const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
26246
+ const escape = {
26247
+ '"': '&quot;',
26248
+ '&': '&amp;',
26249
+ "'": '&apos;',
26250
+ '<': '&lt;',
26251
+ '>': '&gt;',
26252
+ };
26253
+
26254
+ return string.replace(badChars, (chr) => escape[chr]);
26324
26255
  },
26325
26256
  },
26326
26257
 
@@ -26665,7 +26596,7 @@
26665
26596
  })(jQuery, window, document);
26666
26597
 
26667
26598
  /*!
26668
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Transition
26599
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Transition
26669
26600
  * https://github.com/fomantic/Fomantic-UI/
26670
26601
  *
26671
26602
  *
@@ -27700,7 +27631,7 @@
27700
27631
  })(jQuery, window, document);
27701
27632
 
27702
27633
  /*!
27703
- * # Fomantic-UI 2.10.0-beta.6+42a411a - API
27634
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - API
27704
27635
  * https://github.com/fomantic/Fomantic-UI/
27705
27636
  *
27706
27637
  *
@@ -28926,7 +28857,7 @@
28926
28857
  })(jQuery, window, document);
28927
28858
 
28928
28859
  /*!
28929
- * # Fomantic-UI 2.10.0-beta.6+42a411a - State
28860
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - State
28930
28861
  * https://github.com/fomantic/Fomantic-UI/
28931
28862
  *
28932
28863
  *
@@ -29624,7 +29555,7 @@
29624
29555
  })(jQuery, window, document);
29625
29556
 
29626
29557
  /*!
29627
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Visibility
29558
+ * # Fomantic-UI 2.10.0-beta.7+13b1bae - Visibility
29628
29559
  * https://github.com/fomantic/Fomantic-UI/
29629
29560
  *
29630
29561
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.6+42a411a
2
+ * # Fomantic UI - 2.10.0-beta.7+13b1bae
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *