fomantic-ui 2.9.0-beta.302 → 2.9.0-beta.305

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 (161) hide show
  1. package/.all-contributorsrc +23 -1
  2. package/CONTRIBUTORS.md +5 -1
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1 -1
  10. package/dist/components/api.min.js +1 -1
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +6 -3
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +2 -1
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +1 -1
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +1 -1
  36. package/dist/components/dropdown.js +31 -18
  37. package/dist/components/dropdown.min.css +1 -1
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +12 -6
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +2 -2
  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/form.css +2 -2
  48. package/dist/components/form.js +1 -1
  49. package/dist/components/form.min.css +2 -2
  50. package/dist/components/form.min.js +1 -1
  51. package/dist/components/grid.css +1 -1
  52. package/dist/components/grid.min.css +1 -1
  53. package/dist/components/header.css +1 -1
  54. package/dist/components/header.min.css +1 -1
  55. package/dist/components/icon.css +1 -1
  56. package/dist/components/icon.min.css +1 -1
  57. package/dist/components/image.css +1 -1
  58. package/dist/components/image.min.css +1 -1
  59. package/dist/components/input.css +1 -1
  60. package/dist/components/input.min.css +1 -1
  61. package/dist/components/item.css +1 -1
  62. package/dist/components/item.min.css +1 -1
  63. package/dist/components/label.css +1 -1
  64. package/dist/components/label.min.css +1 -1
  65. package/dist/components/list.css +1 -1
  66. package/dist/components/list.min.css +1 -1
  67. package/dist/components/loader.css +1 -1
  68. package/dist/components/loader.min.css +1 -1
  69. package/dist/components/message.css +1 -1
  70. package/dist/components/message.min.css +1 -1
  71. package/dist/components/modal.css +1 -1
  72. package/dist/components/modal.js +4 -4
  73. package/dist/components/modal.min.css +1 -1
  74. package/dist/components/modal.min.js +2 -2
  75. package/dist/components/nag.css +1 -1
  76. package/dist/components/nag.js +1 -1
  77. package/dist/components/nag.min.css +1 -1
  78. package/dist/components/nag.min.js +1 -1
  79. package/dist/components/placeholder.css +1 -1
  80. package/dist/components/placeholder.min.css +1 -1
  81. package/dist/components/popup.css +1 -1
  82. package/dist/components/popup.js +3 -3
  83. package/dist/components/popup.min.css +1 -1
  84. package/dist/components/popup.min.js +2 -2
  85. package/dist/components/progress.css +1 -1
  86. package/dist/components/progress.js +1 -1
  87. package/dist/components/progress.min.css +1 -1
  88. package/dist/components/progress.min.js +1 -1
  89. package/dist/components/rail.css +1 -1
  90. package/dist/components/rail.min.css +1 -1
  91. package/dist/components/rating.css +1 -1
  92. package/dist/components/rating.js +7 -3
  93. package/dist/components/rating.min.css +1 -1
  94. package/dist/components/rating.min.js +2 -2
  95. package/dist/components/reset.css +1 -1
  96. package/dist/components/reset.min.css +1 -1
  97. package/dist/components/reveal.css +1 -1
  98. package/dist/components/reveal.min.css +1 -1
  99. package/dist/components/search.css +1 -1
  100. package/dist/components/search.js +5 -4
  101. package/dist/components/search.min.css +1 -1
  102. package/dist/components/search.min.js +2 -2
  103. package/dist/components/segment.css +1 -1
  104. package/dist/components/segment.min.css +1 -1
  105. package/dist/components/shape.css +1 -1
  106. package/dist/components/shape.js +1 -1
  107. package/dist/components/shape.min.css +1 -1
  108. package/dist/components/shape.min.js +1 -1
  109. package/dist/components/sidebar.css +1 -1
  110. package/dist/components/sidebar.js +1 -1
  111. package/dist/components/sidebar.min.css +1 -1
  112. package/dist/components/sidebar.min.js +1 -1
  113. package/dist/components/site.css +1 -1
  114. package/dist/components/site.js +1 -1
  115. package/dist/components/site.min.css +1 -1
  116. package/dist/components/site.min.js +1 -1
  117. package/dist/components/slider.js +1 -1
  118. package/dist/components/slider.min.js +1 -1
  119. package/dist/components/state.js +1 -1
  120. package/dist/components/state.min.js +1 -1
  121. package/dist/components/statistic.css +1 -1
  122. package/dist/components/statistic.min.css +1 -1
  123. package/dist/components/step.css +1 -1
  124. package/dist/components/step.min.css +1 -1
  125. package/dist/components/sticky.css +1 -1
  126. package/dist/components/sticky.js +1 -1
  127. package/dist/components/sticky.min.css +1 -1
  128. package/dist/components/sticky.min.js +1 -1
  129. package/dist/components/tab.css +1 -1
  130. package/dist/components/tab.js +1 -1
  131. package/dist/components/tab.min.css +1 -1
  132. package/dist/components/tab.min.js +1 -1
  133. package/dist/components/table.css +1 -1
  134. package/dist/components/table.min.css +1 -1
  135. package/dist/components/text.css +1 -1
  136. package/dist/components/text.min.css +1 -1
  137. package/dist/components/toast.css +1 -1
  138. package/dist/components/toast.js +1 -1
  139. package/dist/components/toast.min.css +1 -1
  140. package/dist/components/toast.min.js +1 -1
  141. package/dist/components/transition.css +1 -1
  142. package/dist/components/transition.js +3 -1
  143. package/dist/components/transition.min.css +1 -1
  144. package/dist/components/transition.min.js +2 -2
  145. package/dist/components/visibility.js +1 -1
  146. package/dist/components/visibility.min.js +1 -1
  147. package/dist/semantic.css +50 -50
  148. package/dist/semantic.js +89 -59
  149. package/dist/semantic.min.css +2 -2
  150. package/dist/semantic.min.js +2 -2
  151. package/package.json +1 -1
  152. package/src/definitions/collections/form.less +3 -4
  153. package/src/definitions/modules/calendar.js +5 -2
  154. package/src/definitions/modules/checkbox.js +1 -0
  155. package/src/definitions/modules/dropdown.js +30 -17
  156. package/src/definitions/modules/embed.js +11 -5
  157. package/src/definitions/modules/modal.js +3 -3
  158. package/src/definitions/modules/popup.js +2 -2
  159. package/src/definitions/modules/rating.js +6 -2
  160. package/src/definitions/modules/search.js +4 -3
  161. package/src/definitions/modules/transition.js +2 -0
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.302+091bcb0
2
+ * # Fomantic UI - 2.9.0-beta.305+4585cd0
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Site
12
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Site
13
13
  * http://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -503,7 +503,7 @@ $.extend($.expr[ ":" ], {
503
503
  })( jQuery, window, document );
504
504
 
505
505
  /*!
506
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Form Validation
507
507
  * http://github.com/fomantic/Fomantic-UI/
508
508
  *
509
509
  *
@@ -2584,7 +2584,7 @@ $.fn.form.settings = {
2584
2584
  })( jQuery, window, document );
2585
2585
 
2586
2586
  /*!
2587
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Accordion
2587
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Accordion
2588
2588
  * http://github.com/fomantic/Fomantic-UI/
2589
2589
  *
2590
2590
  *
@@ -3206,7 +3206,7 @@ $.extend( $.easing, {
3206
3206
 
3207
3207
 
3208
3208
  /*!
3209
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Calendar
3209
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Calendar
3210
3210
  * http://github.com/fomantic/Fomantic-UI/
3211
3211
  *
3212
3212
  *
@@ -3800,8 +3800,8 @@ $.fn.calendar = function(parameters) {
3800
3800
  },
3801
3801
  keydown: function (event) {
3802
3802
  var keyCode = event.which;
3803
- if (keyCode === 27 || keyCode === 9) {
3804
- //esc || tab
3803
+ if (keyCode === 9) {
3804
+ //tab
3805
3805
  module.popup('hide');
3806
3806
  }
3807
3807
 
@@ -3837,6 +3837,9 @@ $.fn.calendar = function(parameters) {
3837
3837
  //disable form submission:
3838
3838
  event.preventDefault();
3839
3839
  event.stopPropagation();
3840
+ } else if (keyCode === 27) {
3841
+ module.popup('hide');
3842
+ event.stopPropagation();
3840
3843
  }
3841
3844
  }
3842
3845
 
@@ -5095,7 +5098,7 @@ $.fn.calendar.settings = {
5095
5098
  })(jQuery, window, document);
5096
5099
 
5097
5100
  /*!
5098
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Checkbox
5101
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Checkbox
5099
5102
  * http://github.com/fomantic/Fomantic-UI/
5100
5103
  *
5101
5104
  *
@@ -5340,6 +5343,7 @@ $.fn.checkbox = function(parameters) {
5340
5343
  module.verbose('Escape key pressed blurring field');
5341
5344
  $input.blur();
5342
5345
  shortcutPressed = true;
5346
+ event.stopPropagation();
5343
5347
  }
5344
5348
  else if(!event.ctrlKey && module.can.change()) {
5345
5349
  if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
@@ -5978,7 +5982,7 @@ $.fn.checkbox.settings = {
5978
5982
  })( jQuery, window, document );
5979
5983
 
5980
5984
  /*!
5981
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Dimmer
5985
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Dimmer
5982
5986
  * http://github.com/fomantic/Fomantic-UI/
5983
5987
  *
5984
5988
  *
@@ -6741,7 +6745,7 @@ $.fn.dimmer.settings = {
6741
6745
  })( jQuery, window, document );
6742
6746
 
6743
6747
  /*!
6744
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Dropdown
6748
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Dropdown
6745
6749
  * http://github.com/fomantic/Fomantic-UI/
6746
6750
  *
6747
6751
  *
@@ -6853,6 +6857,7 @@ $.fn.dropdown = function(parameters) {
6853
6857
  module.error(error.noNormalize, element);
6854
6858
  }
6855
6859
 
6860
+ module.create.id();
6856
6861
  module.setup.layout();
6857
6862
 
6858
6863
  if(settings.values) {
@@ -6866,7 +6871,6 @@ $.fn.dropdown = function(parameters) {
6866
6871
  module.save.defaults();
6867
6872
  module.restore.selected();
6868
6873
 
6869
- module.create.id();
6870
6874
  module.bind.events();
6871
6875
 
6872
6876
  module.observeChanges();
@@ -7108,11 +7112,20 @@ $.fn.dropdown = function(parameters) {
7108
7112
  }
7109
7113
  if( module.is.search() && !module.has.search() ) {
7110
7114
  module.verbose('Adding search input');
7115
+ var
7116
+ labelNode = $module.prev('label')
7117
+ ;
7111
7118
  $search = $('<input />')
7112
7119
  .addClass(className.search)
7113
7120
  .prop('autocomplete', module.is.chrome() ? 'fomantic-search' : 'off')
7114
- .insertBefore($text)
7115
7121
  ;
7122
+ if (labelNode.length) {
7123
+ if (!labelNode.attr('id')) {
7124
+ labelNode.attr('id', module.get.id() + '_formLabel');
7125
+ }
7126
+ $search.attr('aria-labelledby', labelNode.attr('id'));
7127
+ }
7128
+ $search.insertBefore($text);
7116
7129
  }
7117
7130
  if( module.is.multiple() && module.is.searchSelection() && !module.has.sizer()) {
7118
7131
  module.create.sizer();
@@ -8432,6 +8445,7 @@ $.fn.dropdown = function(parameters) {
8432
8445
  if(pressedKey == keys.escape) {
8433
8446
  module.verbose('Escape key pressed, closing dropdown');
8434
8447
  module.hide();
8448
+ event.stopPropagation();
8435
8449
  }
8436
8450
 
8437
8451
  }
@@ -10990,7 +11004,8 @@ $.fn.dropdown.settings.templates = {
10990
11004
  var
10991
11005
  placeholder = select.placeholder || false,
10992
11006
  html = '',
10993
- escape = $.fn.dropdown.settings.templates.escape
11007
+ escape = $.fn.dropdown.settings.templates.escape,
11008
+ deQuote = $.fn.dropdown.settings.templates.deQuote
10994
11009
  ;
10995
11010
  html += '<i class="dropdown icon"></i>';
10996
11011
  if(placeholder) {
@@ -10999,7 +11014,7 @@ $.fn.dropdown.settings.templates = {
10999
11014
  else {
11000
11015
  html += '<div class="text"></div>';
11001
11016
  }
11002
- html += '<div class="'+className.menu+'">';
11017
+ html += '<div class="'+deQuote(className.menu)+'">';
11003
11018
  html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML,className);
11004
11019
  html += '</div>';
11005
11020
  return html;
@@ -11037,27 +11052,27 @@ $.fn.dropdown.settings.templates = {
11037
11052
  : '',
11038
11053
  hasDescription = (escape(option[fields.description] || '', preserveHTML) != '')
11039
11054
  ;
11040
- html += '<div class="'+ maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? deQuote(option[fields.class]) : className.item)+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
11055
+ html += '<div class="'+ deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? option[fields.class] : className.item))+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
11041
11056
  if (isMenu) {
11042
11057
  html += '<i class="'+ (itemType.indexOf('left') !== -1 ? 'left' : '') + ' dropdown icon"></i>';
11043
11058
  }
11044
11059
  if(option[fields.image]) {
11045
- html += '<img class="'+(option[fields.imageClass] ? deQuote(option[fields.imageClass]) : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
11060
+ html += '<img class="'+deQuote(option[fields.imageClass] ? option[fields.imageClass] : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
11046
11061
  }
11047
11062
  if(option[fields.icon]) {
11048
- html += '<i class="'+deQuote(option[fields.icon])+' '+(option[fields.iconClass] ? deQuote(option[fields.iconClass]) : className.icon)+'"></i>';
11063
+ html += '<i class="'+deQuote(option[fields.icon]+' '+(option[fields.iconClass] ? option[fields.iconClass] : className.icon))+'"></i>';
11049
11064
  }
11050
11065
  if(hasDescription){
11051
- html += '<span class="'+ className.description +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
11052
- html += (!isMenu) ? '<span class="'+ className.text + '">' : '';
11066
+ html += '<span class="'+ deQuote(className.description) +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
11067
+ html += (!isMenu) ? '<span class="'+ deQuote(className.text) + '">' : '';
11053
11068
  }
11054
11069
  if (isMenu) {
11055
- html += '<span class="' + className.text + '">';
11070
+ html += '<span class="' + deQuote(className.text) + '">';
11056
11071
  }
11057
11072
  html += escape(option[fields.name] || '', preserveHTML);
11058
11073
  if (isMenu) {
11059
11074
  html += '</span>';
11060
- html += '<div class="' + itemType + '">';
11075
+ html += '<div class="' + deQuote(itemType) + '">';
11061
11076
  html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
11062
11077
  html += '</div>';
11063
11078
  } else if(hasDescription){
@@ -11066,18 +11081,18 @@ $.fn.dropdown.settings.templates = {
11066
11081
  html += '</div>';
11067
11082
  } else if (itemType === 'header') {
11068
11083
  var groupName = escape(option[fields.name] || '', preserveHTML),
11069
- groupIcon = option[fields.icon] ? deQuote(option[fields.icon]) : className.groupIcon
11084
+ groupIcon = deQuote(option[fields.icon] ? option[fields.icon] : className.groupIcon)
11070
11085
  ;
11071
11086
  if(groupName !== '' || groupIcon !== '') {
11072
- html += '<div class="' + (option[fields.class] ? deQuote(option[fields.class]) : className.header) + '">';
11087
+ html += '<div class="' + deQuote(option[fields.class] ? option[fields.class] : className.header) + '">';
11073
11088
  if (groupIcon !== '') {
11074
- html += '<i class="' + groupIcon + ' ' + (option[fields.iconClass] ? deQuote(option[fields.iconClass]) : className.icon) + '"></i>';
11089
+ html += '<i class="' + deQuote(groupIcon + ' ' + (option[fields.iconClass] ? option[fields.iconClass] : className.icon)) + '"></i>';
11075
11090
  }
11076
11091
  html += groupName;
11077
11092
  html += '</div>';
11078
11093
  }
11079
11094
  if(option[fields.divider]){
11080
- html += '<div class="'+className.divider+'"></div>';
11095
+ html += '<div class="'+deQuote(className.divider)+'"></div>';
11081
11096
  }
11082
11097
  }
11083
11098
  });
@@ -11087,8 +11102,10 @@ $.fn.dropdown.settings.templates = {
11087
11102
  // generates label for multiselect
11088
11103
  label: function(value, text, preserveHTML, className) {
11089
11104
  var
11090
- escape = $.fn.dropdown.settings.templates.escape;
11091
- return escape(text,preserveHTML) + '<i class="'+className.delete+' icon"></i>';
11105
+ escape = $.fn.dropdown.settings.templates.escape,
11106
+ deQuote = $.fn.dropdown.settings.templates.deQuote
11107
+ ;
11108
+ return escape(text,preserveHTML) + '<i class="'+deQuote(className.delete)+' icon"></i>';
11092
11109
  },
11093
11110
 
11094
11111
 
@@ -11107,7 +11124,7 @@ $.fn.dropdown.settings.templates = {
11107
11124
  })( jQuery, window, document );
11108
11125
 
11109
11126
  /*!
11110
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Embed
11127
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Embed
11111
11128
  * http://github.com/fomantic/Fomantic-UI/
11112
11129
  *
11113
11130
  *
@@ -11779,26 +11796,32 @@ $.fn.embed.settings = {
11779
11796
  },
11780
11797
 
11781
11798
  templates: {
11799
+ deQuote: function(string, encode) {
11800
+ return String(string).replace(/"/g,encode ? "&quot;" : "");
11801
+ },
11782
11802
  iframe : function(url, parameters) {
11783
- var src = url;
11803
+ var src = url,
11804
+ deQuote = $.fn.embed.settings.templates.deQuote
11805
+ ;
11784
11806
  if (parameters) {
11785
11807
  src += '?' + parameters;
11786
11808
  }
11787
11809
  return ''
11788
- + '<iframe src="' + src + '"'
11810
+ + '<iframe src="' + deQuote(src) + '"'
11789
11811
  + ' width="100%" height="100%"'
11790
11812
  + ' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
11791
11813
  ;
11792
11814
  },
11793
11815
  placeholder : function(image, icon) {
11794
11816
  var
11795
- html = ''
11817
+ html = '',
11818
+ deQuote = $.fn.embed.settings.templates.deQuote
11796
11819
  ;
11797
11820
  if(icon) {
11798
- html += '<i class="' + icon + ' icon"></i>';
11821
+ html += '<i class="' + deQuote(icon) + ' icon"></i>';
11799
11822
  }
11800
11823
  if(image) {
11801
- html += '<img class="placeholder" src="' + image + '">';
11824
+ html += '<img class="placeholder" src="' + deQuote(image) + '">';
11802
11825
  }
11803
11826
  return html;
11804
11827
  }
@@ -11817,7 +11840,7 @@ $.fn.embed.settings = {
11817
11840
  })( jQuery, window, document );
11818
11841
 
11819
11842
  /*!
11820
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Modal
11843
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Modal
11821
11844
  * http://github.com/fomantic/Fomantic-UI/
11822
11845
  *
11823
11846
  *
@@ -12541,7 +12564,7 @@ $.fn.modal = function(parameters) {
12541
12564
  keyboardShortcuts: function() {
12542
12565
  module.verbose('Adding keyboard shortcuts');
12543
12566
  $document
12544
- .on('keyup' + eventNamespace, module.event.keyboard)
12567
+ .on('keydown' + eventNamespace, module.event.keyboard)
12545
12568
  ;
12546
12569
  }
12547
12570
  },
@@ -12621,7 +12644,7 @@ $.fn.modal = function(parameters) {
12621
12644
  keyboardShortcuts: function() {
12622
12645
  module.verbose('Removing keyboard shortcuts');
12623
12646
  $document
12624
- .off('keyup' + eventNamespace)
12647
+ .off('keydown' + eventNamespace)
12625
12648
  ;
12626
12649
  },
12627
12650
  scrolling: function() {
@@ -13325,7 +13348,7 @@ $.fn.modal.settings.templates = {
13325
13348
  denyFn = function(){args.handler(null)}
13326
13349
  ;
13327
13350
  if (input.length === 0) {
13328
- args.content += '<p><div class="'+settings.className.prompt+'"><input placeholder="'+this.helpers.deQuote(args.placeholder || '')+'" type="text" value="'+this.helpers.deQuote(args.defaultValue || '')+'"></div></p>';
13351
+ args.content += '<p><div class="'+this.helpers.deQuote(settings.className.prompt)+'"><input placeholder="'+this.helpers.deQuote(args.placeholder || '')+'" type="text" value="'+this.helpers.deQuote(args.defaultValue || '')+'"></div></p>';
13329
13352
  }
13330
13353
  return {
13331
13354
  title : args.title,
@@ -13348,7 +13371,7 @@ $.fn.modal.settings.templates = {
13348
13371
  })( jQuery, window, document );
13349
13372
 
13350
13373
  /*!
13351
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Nag
13374
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Nag
13352
13375
  * http://github.com/fomantic/Fomantic-UI/
13353
13376
  *
13354
13377
  *
@@ -13907,7 +13930,7 @@ $.extend( $.easing, {
13907
13930
  })( jQuery, window, document );
13908
13931
 
13909
13932
  /*!
13910
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Popup
13933
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Popup
13911
13934
  * http://github.com/fomantic/Fomantic-UI/
13912
13935
  *
13913
13936
  *
@@ -14029,7 +14052,7 @@ $.fn.popup = function(parameters) {
14029
14052
  },
14030
14053
 
14031
14054
  refresh: function() {
14032
- if(settings.popup && typeof settings.popup === 'string') {
14055
+ if(settings.popup) {
14033
14056
  $popup = $(document).find(settings.popup).eq(0);
14034
14057
  }
14035
14058
  else {
@@ -14194,7 +14217,7 @@ $.fn.popup = function(parameters) {
14194
14217
  }
14195
14218
  settings.onCreate.call($popup, element);
14196
14219
  }
14197
- else if(settings.popup && typeof settings.popup === 'string') {
14220
+ else if(settings.popup) {
14198
14221
  $(document).find(settings.popup).data(metadata.activator, $module);
14199
14222
  module.verbose('Used popup specified in settings');
14200
14223
  module.refresh();
@@ -15449,7 +15472,7 @@ $.fn.popup.settings = {
15449
15472
  })( jQuery, window, document );
15450
15473
 
15451
15474
  /*!
15452
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Progress
15475
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Progress
15453
15476
  * http://github.com/fomantic/Fomantic-UI/
15454
15477
  *
15455
15478
  *
@@ -16486,7 +16509,7 @@ $.fn.progress.settings = {
16486
16509
  })( jQuery, window, document );
16487
16510
 
16488
16511
  /*!
16489
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Slider
16512
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Slider
16490
16513
  * http://github.com/fomantic/Fomantic-UI/
16491
16514
  *
16492
16515
  *
@@ -17842,7 +17865,7 @@ $.fn.slider.settings = {
17842
17865
  })( jQuery, window, document );
17843
17866
 
17844
17867
  /*!
17845
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Rating
17868
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Rating
17846
17869
  * http://github.com/fomantic/Fomantic-UI/
17847
17870
  *
17848
17871
  *
@@ -18379,13 +18402,17 @@ $.fn.rating.settings = {
18379
18402
  },
18380
18403
 
18381
18404
  templates: {
18405
+ deQuote: function(string, encode) {
18406
+ return String(string).replace(/"/g,encode ? "&quot;" : "");
18407
+ },
18382
18408
  icon: function(maxRating, iconClass) {
18383
18409
  var
18384
18410
  icon = 1,
18385
- html = ''
18411
+ html = '',
18412
+ deQuote = $.fn.rating.settings.templates.deQuote
18386
18413
  ;
18387
18414
  while(icon <= maxRating) {
18388
- html += '<i class="'+iconClass+' icon"></i>';
18415
+ html += '<i class="'+deQuote(iconClass)+' icon"></i>';
18389
18416
  icon++;
18390
18417
  }
18391
18418
  return html;
@@ -18397,7 +18424,7 @@ $.fn.rating.settings = {
18397
18424
  })( jQuery, window, document );
18398
18425
 
18399
18426
  /*!
18400
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Search
18427
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Search
18401
18428
  * http://github.com/fomantic/Fomantic-UI/
18402
18429
  *
18403
18430
  *
@@ -18660,7 +18687,7 @@ $.fn.search = function(parameters) {
18660
18687
 
18661
18688
  resultsScrollTop = $results.scrollTop();
18662
18689
  resultsHeight = $results.height();
18663
-
18690
+
18664
18691
  if (elTop < 0) {
18665
18692
  $results.scrollTop(resultsScrollTop + elTop);
18666
18693
  }
@@ -18693,6 +18720,7 @@ $.fn.search = function(parameters) {
18693
18720
  if(keyCode == keys.escape) {
18694
18721
  module.verbose('Escape key pressed, blurring search field');
18695
18722
  module.hideResults();
18723
+ event.stopPropagation();
18696
18724
  resultsDismissed = true;
18697
18725
  }
18698
18726
  if( module.is.visible() ) {
@@ -19076,10 +19104,10 @@ $.fn.search = function(parameters) {
19076
19104
  ;
19077
19105
  if(fieldExists) {
19078
19106
  var text;
19079
- if (typeof content[field] === 'string'){
19107
+ if (typeof content[field] === 'string'){
19080
19108
  text = module.remove.diacritics(content[field]);
19081
19109
  } else {
19082
- text = content[field].toString();
19110
+ text = content[field].toString();
19083
19111
  }
19084
19112
  if( text.search(matchRegExp) !== -1) {
19085
19113
  // content starts with value (first in results)
@@ -19981,7 +20009,7 @@ $.fn.search.settings = {
19981
20009
  })( jQuery, window, document );
19982
20010
 
19983
20011
  /*!
19984
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Shape
20012
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Shape
19985
20013
  * http://github.com/fomantic/Fomantic-UI/
19986
20014
  *
19987
20015
  *
@@ -20830,7 +20858,7 @@ $.fn.shape.settings = {
20830
20858
  })( jQuery, window, document );
20831
20859
 
20832
20860
  /*!
20833
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Sidebar
20861
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Sidebar
20834
20862
  * http://github.com/fomantic/Fomantic-UI/
20835
20863
  *
20836
20864
  *
@@ -21869,7 +21897,7 @@ $.fn.sidebar.settings = {
21869
21897
  })( jQuery, window, document );
21870
21898
 
21871
21899
  /*!
21872
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Sticky
21900
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Sticky
21873
21901
  * http://github.com/fomantic/Fomantic-UI/
21874
21902
  *
21875
21903
  *
@@ -22827,7 +22855,7 @@ $.fn.sticky.settings = {
22827
22855
  })( jQuery, window, document );
22828
22856
 
22829
22857
  /*!
22830
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Tab
22858
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Tab
22831
22859
  * http://github.com/fomantic/Fomantic-UI/
22832
22860
  *
22833
22861
  *
@@ -23847,7 +23875,7 @@ $.fn.tab.settings = {
23847
23875
  })( jQuery, window, document );
23848
23876
 
23849
23877
  /*!
23850
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Toast
23878
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Toast
23851
23879
  * http://github.com/fomantic/Fomantic-UI/
23852
23880
  *
23853
23881
  *
@@ -24772,7 +24800,7 @@ $.extend( $.easing, {
24772
24800
  })( jQuery, window, document );
24773
24801
 
24774
24802
  /*!
24775
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Transition
24803
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Transition
24776
24804
  * http://github.com/fomantic/Fomantic-UI/
24777
24805
  *
24778
24806
  *
@@ -25471,11 +25499,13 @@ $.fn.transition = function() {
25471
25499
  .addClass(className.transition)
25472
25500
  .css('animationName')
25473
25501
  ;
25502
+ $clone.detach().insertAfter($module);
25474
25503
  inAnimation = $clone
25475
25504
  .addClass(className.inward)
25476
25505
  .css('animationName')
25477
25506
  ;
25478
25507
  if(!displayType) {
25508
+ $clone.detach().insertAfter($module);
25479
25509
  displayType = $clone
25480
25510
  .attr('class', elementClass)
25481
25511
  .removeAttr('style')
@@ -25887,7 +25917,7 @@ $.fn.transition.settings = {
25887
25917
  })( jQuery, window, document );
25888
25918
 
25889
25919
  /*!
25890
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - API
25920
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - API
25891
25921
  * http://github.com/fomantic/Fomantic-UI/
25892
25922
  *
25893
25923
  *
@@ -27124,7 +27154,7 @@ $.api.settings = {
27124
27154
  })( jQuery, window, document );
27125
27155
 
27126
27156
  /*!
27127
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - State
27157
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - State
27128
27158
  * http://github.com/fomantic/Fomantic-UI/
27129
27159
  *
27130
27160
  *
@@ -27836,7 +27866,7 @@ $.fn.state.settings = {
27836
27866
  })( jQuery, window, document );
27837
27867
 
27838
27868
  /*!
27839
- * # Fomantic-UI 2.9.0-beta.302+091bcb0 - Visibility
27869
+ * # Fomantic-UI 2.9.0-beta.305+4585cd0 - Visibility
27840
27870
  * http://github.com/fomantic/Fomantic-UI/
27841
27871
  *
27842
27872
  *