fomantic-ui 2.9.0-beta.93 → 2.9.0-beta.97

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 (152) 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 +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  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/feed.css +1 -1
  42. package/dist/components/feed.min.css +1 -1
  43. package/dist/components/flag.css +1 -1
  44. package/dist/components/flag.min.css +1 -1
  45. package/dist/components/form.css +1 -1
  46. package/dist/components/form.js +1 -1
  47. package/dist/components/form.min.css +1 -1
  48. package/dist/components/form.min.js +1 -1
  49. package/dist/components/grid.css +1 -1
  50. package/dist/components/grid.min.css +1 -1
  51. package/dist/components/header.css +1 -1
  52. package/dist/components/header.min.css +1 -1
  53. package/dist/components/icon.css +1 -1
  54. package/dist/components/icon.min.css +1 -1
  55. package/dist/components/image.css +1 -1
  56. package/dist/components/image.min.css +1 -1
  57. package/dist/components/input.css +1 -1
  58. package/dist/components/input.min.css +1 -1
  59. package/dist/components/item.css +1 -1
  60. package/dist/components/item.min.css +1 -1
  61. package/dist/components/label.css +1 -1
  62. package/dist/components/label.min.css +1 -1
  63. package/dist/components/list.css +1 -1
  64. package/dist/components/list.min.css +1 -1
  65. package/dist/components/loader.css +1 -1
  66. package/dist/components/loader.min.css +1 -1
  67. package/dist/components/message.css +1 -1
  68. package/dist/components/message.min.css +1 -1
  69. package/dist/components/modal.css +1 -1
  70. package/dist/components/modal.js +1 -1
  71. package/dist/components/modal.min.css +1 -1
  72. package/dist/components/modal.min.js +1 -1
  73. package/dist/components/nag.css +1 -1
  74. package/dist/components/nag.js +1 -1
  75. package/dist/components/nag.min.css +1 -1
  76. package/dist/components/nag.min.js +1 -1
  77. package/dist/components/placeholder.css +1 -1
  78. package/dist/components/placeholder.min.css +1 -1
  79. package/dist/components/popup.css +1 -1
  80. package/dist/components/popup.js +1 -1
  81. package/dist/components/popup.min.css +1 -1
  82. package/dist/components/popup.min.js +1 -1
  83. package/dist/components/progress.css +1 -1
  84. package/dist/components/progress.js +1 -1
  85. package/dist/components/progress.min.css +1 -1
  86. package/dist/components/progress.min.js +1 -1
  87. package/dist/components/rail.css +1 -1
  88. package/dist/components/rail.min.css +1 -1
  89. package/dist/components/rating.css +1 -1
  90. package/dist/components/rating.js +1 -1
  91. package/dist/components/rating.min.css +1 -1
  92. package/dist/components/rating.min.js +1 -1
  93. package/dist/components/reset.css +1 -1
  94. package/dist/components/reset.min.css +1 -1
  95. package/dist/components/reveal.css +1 -1
  96. package/dist/components/reveal.min.css +1 -1
  97. package/dist/components/search.css +1 -1
  98. package/dist/components/search.js +1 -1
  99. package/dist/components/search.min.css +1 -1
  100. package/dist/components/search.min.js +1 -1
  101. package/dist/components/segment.css +1 -1
  102. package/dist/components/segment.min.css +1 -1
  103. package/dist/components/shape.css +1 -1
  104. package/dist/components/shape.js +1 -1
  105. package/dist/components/shape.min.css +1 -1
  106. package/dist/components/shape.min.js +1 -1
  107. package/dist/components/sidebar.css +1 -1
  108. package/dist/components/sidebar.js +1 -1
  109. package/dist/components/sidebar.min.css +1 -1
  110. package/dist/components/sidebar.min.js +1 -1
  111. package/dist/components/site.css +1 -1
  112. package/dist/components/site.js +1 -1
  113. package/dist/components/site.min.css +1 -1
  114. package/dist/components/site.min.js +1 -1
  115. package/dist/components/slider.js +1 -1
  116. package/dist/components/slider.min.js +1 -1
  117. package/dist/components/state.js +1 -1
  118. package/dist/components/state.min.js +1 -1
  119. package/dist/components/statistic.css +1 -1
  120. package/dist/components/statistic.min.css +1 -1
  121. package/dist/components/step.css +1 -1
  122. package/dist/components/step.min.css +1 -1
  123. package/dist/components/sticky.css +1 -1
  124. package/dist/components/sticky.js +1 -1
  125. package/dist/components/sticky.min.css +1 -1
  126. package/dist/components/sticky.min.js +1 -1
  127. package/dist/components/tab.css +1 -1
  128. package/dist/components/tab.js +1 -1
  129. package/dist/components/tab.min.css +1 -1
  130. package/dist/components/tab.min.js +1 -1
  131. package/dist/components/table.css +1 -1
  132. package/dist/components/table.min.css +1 -1
  133. package/dist/components/text.css +1 -1
  134. package/dist/components/text.min.css +1 -1
  135. package/dist/components/toast.css +33 -1
  136. package/dist/components/toast.js +50 -24
  137. package/dist/components/toast.min.css +2 -2
  138. package/dist/components/toast.min.js +2 -2
  139. package/dist/components/transition.css +1 -1
  140. package/dist/components/transition.js +1 -1
  141. package/dist/components/transition.min.css +1 -1
  142. package/dist/components/transition.min.js +1 -1
  143. package/dist/components/visibility.js +1 -1
  144. package/dist/components/visibility.min.js +1 -1
  145. package/dist/semantic.css +89 -49
  146. package/dist/semantic.js +74 -48
  147. package/dist/semantic.min.css +2 -2
  148. package/dist/semantic.min.js +2 -2
  149. package/package.json +1 -1
  150. package/src/definitions/modules/toast.js +49 -23
  151. package/src/definitions/modules/toast.less +29 -0
  152. package/src/themes/default/modules/toast.variables +3 -0
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.93
2
+ * # Fomantic UI - 2.9.0-beta.97
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.93 - Site
12
+ * # Fomantic-UI 2.9.0-beta.97 - 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.93 - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.97 - Form Validation
507
507
  * http://github.com/fomantic/Fomantic-UI/
508
508
  *
509
509
  *
@@ -2577,7 +2577,7 @@ $.fn.form.settings = {
2577
2577
  })( jQuery, window, document );
2578
2578
 
2579
2579
  /*!
2580
- * # Fomantic-UI 2.9.0-beta.93 - Accordion
2580
+ * # Fomantic-UI 2.9.0-beta.97 - Accordion
2581
2581
  * http://github.com/fomantic/Fomantic-UI/
2582
2582
  *
2583
2583
  *
@@ -3196,7 +3196,7 @@ $.extend( $.easing, {
3196
3196
 
3197
3197
 
3198
3198
  /*!
3199
- * # Fomantic-UI 2.9.0-beta.93 - Calendar
3199
+ * # Fomantic-UI 2.9.0-beta.97 - Calendar
3200
3200
  * http://github.com/fomantic/Fomantic-UI/
3201
3201
  *
3202
3202
  *
@@ -5068,7 +5068,7 @@ $.fn.calendar.settings = {
5068
5068
  })(jQuery, window, document);
5069
5069
 
5070
5070
  /*!
5071
- * # Fomantic-UI 2.9.0-beta.93 - Checkbox
5071
+ * # Fomantic-UI 2.9.0-beta.97 - Checkbox
5072
5072
  * http://github.com/fomantic/Fomantic-UI/
5073
5073
  *
5074
5074
  *
@@ -5951,7 +5951,7 @@ $.fn.checkbox.settings = {
5951
5951
  })( jQuery, window, document );
5952
5952
 
5953
5953
  /*!
5954
- * # Fomantic-UI 2.9.0-beta.93 - Dimmer
5954
+ * # Fomantic-UI 2.9.0-beta.97 - Dimmer
5955
5955
  * http://github.com/fomantic/Fomantic-UI/
5956
5956
  *
5957
5957
  *
@@ -6708,7 +6708,7 @@ $.fn.dimmer.settings = {
6708
6708
  })( jQuery, window, document );
6709
6709
 
6710
6710
  /*!
6711
- * # Fomantic-UI 2.9.0-beta.93 - Dropdown
6711
+ * # Fomantic-UI 2.9.0-beta.97 - Dropdown
6712
6712
  * http://github.com/fomantic/Fomantic-UI/
6713
6713
  *
6714
6714
  *
@@ -11035,7 +11035,7 @@ $.fn.dropdown.settings.templates = {
11035
11035
  })( jQuery, window, document );
11036
11036
 
11037
11037
  /*!
11038
- * # Fomantic-UI 2.9.0-beta.93 - Embed
11038
+ * # Fomantic-UI 2.9.0-beta.97 - Embed
11039
11039
  * http://github.com/fomantic/Fomantic-UI/
11040
11040
  *
11041
11041
  *
@@ -11745,7 +11745,7 @@ $.fn.embed.settings = {
11745
11745
  })( jQuery, window, document );
11746
11746
 
11747
11747
  /*!
11748
- * # Fomantic-UI 2.9.0-beta.93 - Modal
11748
+ * # Fomantic-UI 2.9.0-beta.97 - Modal
11749
11749
  * http://github.com/fomantic/Fomantic-UI/
11750
11750
  *
11751
11751
  *
@@ -13262,7 +13262,7 @@ $.fn.modal.settings.templates = {
13262
13262
  })( jQuery, window, document );
13263
13263
 
13264
13264
  /*!
13265
- * # Fomantic-UI 2.9.0-beta.93 - Nag
13265
+ * # Fomantic-UI 2.9.0-beta.97 - Nag
13266
13266
  * http://github.com/fomantic/Fomantic-UI/
13267
13267
  *
13268
13268
  *
@@ -13821,7 +13821,7 @@ $.extend( $.easing, {
13821
13821
  })( jQuery, window, document );
13822
13822
 
13823
13823
  /*!
13824
- * # Fomantic-UI 2.9.0-beta.93 - Popup
13824
+ * # Fomantic-UI 2.9.0-beta.97 - Popup
13825
13825
  * http://github.com/fomantic/Fomantic-UI/
13826
13826
  *
13827
13827
  *
@@ -15363,7 +15363,7 @@ $.fn.popup.settings = {
15363
15363
  })( jQuery, window, document );
15364
15364
 
15365
15365
  /*!
15366
- * # Fomantic-UI 2.9.0-beta.93 - Progress
15366
+ * # Fomantic-UI 2.9.0-beta.97 - Progress
15367
15367
  * http://github.com/fomantic/Fomantic-UI/
15368
15368
  *
15369
15369
  *
@@ -16397,7 +16397,7 @@ $.fn.progress.settings = {
16397
16397
  })( jQuery, window, document );
16398
16398
 
16399
16399
  /*!
16400
- * # Fomantic-UI 2.9.0-beta.93 - Slider
16400
+ * # Fomantic-UI 2.9.0-beta.97 - Slider
16401
16401
  * http://github.com/fomantic/Fomantic-UI/
16402
16402
  *
16403
16403
  *
@@ -17736,7 +17736,7 @@ $.fn.slider.settings = {
17736
17736
  })( jQuery, window, document );
17737
17737
 
17738
17738
  /*!
17739
- * # Fomantic-UI 2.9.0-beta.93 - Rating
17739
+ * # Fomantic-UI 2.9.0-beta.97 - Rating
17740
17740
  * http://github.com/fomantic/Fomantic-UI/
17741
17741
  *
17742
17742
  *
@@ -18291,7 +18291,7 @@ $.fn.rating.settings = {
18291
18291
  })( jQuery, window, document );
18292
18292
 
18293
18293
  /*!
18294
- * # Fomantic-UI 2.9.0-beta.93 - Search
18294
+ * # Fomantic-UI 2.9.0-beta.97 - Search
18295
18295
  * http://github.com/fomantic/Fomantic-UI/
18296
18296
  *
18297
18297
  *
@@ -19859,7 +19859,7 @@ $.fn.search.settings = {
19859
19859
  })( jQuery, window, document );
19860
19860
 
19861
19861
  /*!
19862
- * # Fomantic-UI 2.9.0-beta.93 - Shape
19862
+ * # Fomantic-UI 2.9.0-beta.97 - Shape
19863
19863
  * http://github.com/fomantic/Fomantic-UI/
19864
19864
  *
19865
19865
  *
@@ -20708,7 +20708,7 @@ $.fn.shape.settings = {
20708
20708
  })( jQuery, window, document );
20709
20709
 
20710
20710
  /*!
20711
- * # Fomantic-UI 2.9.0-beta.93 - Sidebar
20711
+ * # Fomantic-UI 2.9.0-beta.97 - Sidebar
20712
20712
  * http://github.com/fomantic/Fomantic-UI/
20713
20713
  *
20714
20714
  *
@@ -21745,7 +21745,7 @@ $.fn.sidebar.settings = {
21745
21745
  })( jQuery, window, document );
21746
21746
 
21747
21747
  /*!
21748
- * # Fomantic-UI 2.9.0-beta.93 - Sticky
21748
+ * # Fomantic-UI 2.9.0-beta.97 - Sticky
21749
21749
  * http://github.com/fomantic/Fomantic-UI/
21750
21750
  *
21751
21751
  *
@@ -22703,7 +22703,7 @@ $.fn.sticky.settings = {
22703
22703
  })( jQuery, window, document );
22704
22704
 
22705
22705
  /*!
22706
- * # Fomantic-UI 2.9.0-beta.93 - Tab
22706
+ * # Fomantic-UI 2.9.0-beta.97 - Tab
22707
22707
  * http://github.com/fomantic/Fomantic-UI/
22708
22708
  *
22709
22709
  *
@@ -23705,7 +23705,7 @@ $.fn.tab.settings = {
23705
23705
  })( jQuery, window, document );
23706
23706
 
23707
23707
  /*!
23708
- * # Fomantic-UI 2.9.0-beta.93 - Toast
23708
+ * # Fomantic-UI 2.9.0-beta.97 - Toast
23709
23709
  * http://github.com/fomantic/Fomantic-UI/
23710
23710
  *
23711
23711
  *
@@ -23775,12 +23775,14 @@ $.fn.toast = function(parameters) {
23775
23775
  element = this,
23776
23776
  instance = isToastComponent ? $module.data(moduleNamespace) : undefined,
23777
23777
 
23778
+ id,
23778
23779
  module
23779
23780
  ;
23780
23781
  module = {
23781
23782
 
23782
23783
  initialize: function() {
23783
23784
  module.verbose('Initializing element');
23785
+ module.create.id();
23784
23786
  if (!module.has.container()) {
23785
23787
  module.create.container();
23786
23788
  }
@@ -23830,17 +23832,22 @@ $.fn.toast = function(parameters) {
23830
23832
  },
23831
23833
 
23832
23834
  show: function(callback) {
23833
- callback = callback || function(){};
23834
- module.debug('Showing toast');
23835
23835
  if(settings.onShow.call($toastBox, element) === false) {
23836
23836
  module.debug('onShow callback returned false, cancelling toast animation');
23837
23837
  return;
23838
23838
  }
23839
+ callback = callback || function(){};
23840
+ module.debug('Showing toast');
23839
23841
  module.animate.show(callback);
23840
23842
  },
23841
23843
 
23842
23844
  close: function(callback) {
23845
+ if(settings.onHide.call($toastBox, element) === false) {
23846
+ module.debug('onHide callback returned false, cancelling toast animation');
23847
+ return;
23848
+ }
23843
23849
  callback = callback || function(){};
23850
+ module.debug('Closing toast');
23844
23851
  module.remove.visible();
23845
23852
  module.unbind.events();
23846
23853
  module.animate.close(callback);
@@ -23852,12 +23859,16 @@ $.fn.toast = function(parameters) {
23852
23859
  module.verbose('Creating container');
23853
23860
  $context.append($('<div/>',{class: settings.position + ' ' + className.container + ' ' +(settings.horizontal ? className.horizontal : '')}));
23854
23861
  },
23862
+ id: function() {
23863
+ id = (Math.random().toString(16) + '000000000').substr(2, 8);
23864
+ module.verbose('Creating unique id for element', id);
23865
+ },
23855
23866
  toast: function() {
23856
23867
  $toastBox = $('<div/>', {class: className.box});
23857
23868
  var iconClass = module.get.iconClass();
23858
23869
  if (!isToastComponent) {
23859
23870
  module.verbose('Creating toast');
23860
- $toast = $('<div/>');
23871
+ $toast = $('<div/>', {role: 'alert'});
23861
23872
  var $content = $('<div/>', {class: className.content});
23862
23873
  if (iconClass !== '') {
23863
23874
  $toast.append($('<i/>', {class: iconClass + ' ' + className.icon}));
@@ -23870,13 +23881,21 @@ $.fn.toast = function(parameters) {
23870
23881
  }));
23871
23882
  }
23872
23883
  if (settings.title !== '') {
23884
+ var titleId = '_' + module.get.id() + 'title';
23885
+ $toast.attr('aria-labelledby', titleId);
23873
23886
  $content.append($('<div/>', {
23874
23887
  class: className.title,
23875
- text: settings.title
23888
+ id: titleId,
23889
+ html: module.helpers.escape(settings.title, settings.preserveHTML)
23876
23890
  }));
23877
23891
  }
23878
-
23879
- $content.append($('<div/>', {class: className.message, html: module.helpers.escape(settings.message, settings.preserveHTML)}));
23892
+ var descId = '_' + module.get.id() + 'desc';
23893
+ $toast.attr('aria-describedby', descId);
23894
+ $content.append($('<div/>', {
23895
+ class: className.message,
23896
+ id: descId,
23897
+ html: module.helpers.escape(settings.message, settings.preserveHTML)
23898
+ }));
23880
23899
 
23881
23900
  $toast
23882
23901
  .addClass(settings.class + ' ' + className.toast)
@@ -23884,7 +23903,7 @@ $.fn.toast = function(parameters) {
23884
23903
  ;
23885
23904
  $toast.css('opacity', settings.opacity);
23886
23905
  if (settings.closeIcon) {
23887
- $close = $('<i/>', {class: className.close + ' ' + (typeof settings.closeIcon === 'string' ? settings.closeIcon : '')});
23906
+ $close = $('<i/>', {class: className.close + ' ' + (typeof settings.closeIcon === 'string' ? settings.closeIcon : ''), role: 'button', tabindex: 0, 'aria-label': settings.text.close});
23888
23907
  if($close.hasClass(className.left)) {
23889
23908
  $toast.prepend($close);
23890
23909
  } else {
@@ -23927,12 +23946,13 @@ $.fn.toast = function(parameters) {
23927
23946
  }
23928
23947
  }
23929
23948
  settings.actions.forEach(function (el) {
23930
- var icon = el[fields.icon] ? '<i class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
23949
+ var icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
23931
23950
  text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
23932
23951
  cls = module.helpers.deQuote(el[fields.class] || ''),
23933
23952
  click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {};
23934
23953
  $actions.append($('<button/>', {
23935
23954
  html: icon + text,
23955
+ 'aria-label': $('<div>'+(el[fields.text] || el[fields.icon] || '')+'</div>').text(),
23936
23956
  class: className.button + ' ' + cls,
23937
23957
  click: function () {
23938
23958
  var button = $(this);
@@ -24036,13 +24056,12 @@ $.fn.toast = function(parameters) {
24036
24056
  bind: {
24037
24057
  events: function() {
24038
24058
  module.debug('Binding events to toast');
24039
- if(settings.closeOnClick || settings.closeIcon) {
24040
- (settings.closeIcon ? $close : $toast)
24041
- .on('click' + eventNamespace, module.event.click)
24042
- ;
24059
+ if(settings.closeIcon) {
24060
+ $close.on('click' + eventNamespace, module.event.close);
24043
24061
  }
24062
+ $toast.on('click' + eventNamespace, module.event.click);
24044
24063
  if($animationObject) {
24045
- $animationObject.on('animationend' + eventNamespace, module.close);
24064
+ $animationObject.on('animationend' + eventNamespace, module.event.close);
24046
24065
  }
24047
24066
  $toastBox
24048
24067
  .on('click' + eventNamespace, selector.approve, module.event.approve)
@@ -24054,11 +24073,10 @@ $.fn.toast = function(parameters) {
24054
24073
  unbind: {
24055
24074
  events: function() {
24056
24075
  module.debug('Unbinding events to toast');
24057
- if(settings.closeOnClick || settings.closeIcon) {
24058
- (settings.closeIcon ? $close : $toast)
24059
- .off('click' + eventNamespace)
24060
- ;
24076
+ if(settings.closeIcon) {
24077
+ $close.off('click' + eventNamespace);
24061
24078
  }
24079
+ $toast.off('click' + eventNamespace);
24062
24080
  if($animationObject) {
24063
24081
  $animationObject.off('animationend' + eventNamespace);
24064
24082
  }
@@ -24090,11 +24108,6 @@ $.fn.toast = function(parameters) {
24090
24108
  },
24091
24109
  close: function(callback) {
24092
24110
  callback = $.isFunction(callback) ? callback : function(){};
24093
- module.debug('Closing toast');
24094
- if(settings.onHide.call($toastBox, element) === false) {
24095
- module.debug('onHide callback returned false, cancelling toast animation');
24096
- return;
24097
- }
24098
24111
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
24099
24112
  $toastBox
24100
24113
  .transition({
@@ -24164,6 +24177,9 @@ $.fn.toast = function(parameters) {
24164
24177
  },
24165
24178
 
24166
24179
  get: {
24180
+ id: function() {
24181
+ return id;
24182
+ },
24167
24183
  container: function() {
24168
24184
  return ($context.find(module.helpers.toClass(settings.position) + selector.container + (settings.horizontal ? module.helpers.toClass(className.horizontal) : ':not('+module.helpers.toClass(className.horizontal)+')'))[0]);
24169
24185
  },
@@ -24197,9 +24213,15 @@ $.fn.toast = function(parameters) {
24197
24213
  },
24198
24214
 
24199
24215
  event: {
24216
+ close: function(){
24217
+ module.close();
24218
+ },
24200
24219
  click: function(event) {
24201
24220
  if($(event.target).closest('a').length === 0) {
24202
- settings.onClick.call($toastBox, element);
24221
+ if(settings.onClick.call($toastBox, element) === false || !settings.closeOnClick) {
24222
+ module.verbose('Click callback returned false or close denied by setting cancelling close');
24223
+ return;
24224
+ }
24203
24225
  module.close();
24204
24226
  }
24205
24227
  },
@@ -24540,6 +24562,10 @@ $.fn.toast.settings = {
24540
24562
  unclickable : 'unclickable'
24541
24563
  },
24542
24564
 
24565
+ text: {
24566
+ close : 'Close'
24567
+ },
24568
+
24543
24569
  icons : {
24544
24570
  info : 'info',
24545
24571
  success : 'checkmark',
@@ -24599,7 +24625,7 @@ $.extend( $.easing, {
24599
24625
  })( jQuery, window, document );
24600
24626
 
24601
24627
  /*!
24602
- * # Fomantic-UI 2.9.0-beta.93 - Transition
24628
+ * # Fomantic-UI 2.9.0-beta.97 - Transition
24603
24629
  * http://github.com/fomantic/Fomantic-UI/
24604
24630
  *
24605
24631
  *
@@ -25709,7 +25735,7 @@ $.fn.transition.settings = {
25709
25735
  })( jQuery, window, document );
25710
25736
 
25711
25737
  /*!
25712
- * # Fomantic-UI 2.9.0-beta.93 - API
25738
+ * # Fomantic-UI 2.9.0-beta.97 - API
25713
25739
  * http://github.com/fomantic/Fomantic-UI/
25714
25740
  *
25715
25741
  *
@@ -26889,7 +26915,7 @@ $.api.settings = {
26889
26915
  })( jQuery, window, document );
26890
26916
 
26891
26917
  /*!
26892
- * # Fomantic-UI 2.9.0-beta.93 - State
26918
+ * # Fomantic-UI 2.9.0-beta.97 - State
26893
26919
  * http://github.com/fomantic/Fomantic-UI/
26894
26920
  *
26895
26921
  *
@@ -27601,7 +27627,7 @@ $.fn.state.settings = {
27601
27627
  })( jQuery, window, document );
27602
27628
 
27603
27629
  /*!
27604
- * # Fomantic-UI 2.9.0-beta.93 - Visibility
27630
+ * # Fomantic-UI 2.9.0-beta.97 - Visibility
27605
27631
  * http://github.com/fomantic/Fomantic-UI/
27606
27632
  *
27607
27633
  *