fomantic-ui 2.9.0-beta.242 → 2.9.0-beta.245

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 (164) 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 +11 -5
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +2 -2
  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 +3 -4
  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 +10145 -8137
  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 +4 -1
  46. package/dist/components/flag.min.css +2 -2
  47. package/dist/components/form.css +1 -1
  48. package/dist/components/form.js +1 -1
  49. package/dist/components/form.min.css +1 -1
  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 +7 -7
  72. package/dist/components/modal.js +6 -3
  73. package/dist/components/modal.min.css +2 -2
  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 +1 -1
  83. package/dist/components/popup.min.css +1 -1
  84. package/dist/components/popup.min.js +1 -1
  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 +1 -1
  93. package/dist/components/rating.min.css +1 -1
  94. package/dist/components/rating.min.js +1 -1
  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 +1 -1
  101. package/dist/components/search.min.css +1 -1
  102. package/dist/components/search.min.js +1 -1
  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 +3 -3
  107. package/dist/components/shape.min.css +1 -1
  108. package/dist/components/shape.min.js +2 -2
  109. package/dist/components/sidebar.css +1 -1
  110. package/dist/components/sidebar.js +7 -5
  111. package/dist/components/sidebar.min.css +1 -1
  112. package/dist/components/sidebar.min.js +2 -2
  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 +21 -16
  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 +10709 -8195
  148. package/dist/semantic.js +70 -55
  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/modules/dimmer.js +10 -4
  153. package/src/definitions/modules/dropdown.js +2 -3
  154. package/src/definitions/modules/modal.js +5 -2
  155. package/src/definitions/modules/modal.less +6 -6
  156. package/src/definitions/modules/shape.js +2 -2
  157. package/src/definitions/modules/sidebar.js +6 -4
  158. package/src/definitions/modules/transition.js +20 -15
  159. package/src/themes/default/elements/emoji.overrides +1734 -1232
  160. package/src/themes/default/elements/flag.overrides +6 -0
  161. package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
  162. package/src/themes/joypixels/elements/emoji.variables +1 -1
  163. package/src/themes/twitter/elements/emoji.overrides +1734 -1232
  164. package/tasks/install.js +1 -0
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.242
2
+ * # Fomantic UI - 2.9.0-beta.245
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.242 - Site
12
+ * # Fomantic-UI 2.9.0-beta.245 - 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.242 - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.245 - 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.242 - Accordion
2580
+ * # Fomantic-UI 2.9.0-beta.245 - 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.242 - Calendar
3199
+ * # Fomantic-UI 2.9.0-beta.245 - Calendar
3200
3200
  * http://github.com/fomantic/Fomantic-UI/
3201
3201
  *
3202
3202
  *
@@ -5070,7 +5070,7 @@ $.fn.calendar.settings = {
5070
5070
  })(jQuery, window, document);
5071
5071
 
5072
5072
  /*!
5073
- * # Fomantic-UI 2.9.0-beta.242 - Checkbox
5073
+ * # Fomantic-UI 2.9.0-beta.245 - Checkbox
5074
5074
  * http://github.com/fomantic/Fomantic-UI/
5075
5075
  *
5076
5076
  *
@@ -5953,7 +5953,7 @@ $.fn.checkbox.settings = {
5953
5953
  })( jQuery, window, document );
5954
5954
 
5955
5955
  /*!
5956
- * # Fomantic-UI 2.9.0-beta.242 - Dimmer
5956
+ * # Fomantic-UI 2.9.0-beta.245 - Dimmer
5957
5957
  * http://github.com/fomantic/Fomantic-UI/
5958
5958
  *
5959
5959
  *
@@ -6146,11 +6146,14 @@ $.fn.dimmer = function(parameters) {
6146
6146
  ? callback
6147
6147
  : function(){}
6148
6148
  ;
6149
- module.debug('Showing dimmer', $dimmer, settings);
6150
- module.set.variation();
6151
6149
  if( (!module.is.dimmed() || module.is.animating()) && module.is.enabled() ) {
6150
+ if(settings.onShow.call(element) === false) {
6151
+ module.verbose('Show callback returned false cancelling dimmer show');
6152
+ return;
6153
+ }
6154
+ module.debug('Showing dimmer', $dimmer, settings);
6155
+ module.set.variation();
6152
6156
  module.animate.show(callback);
6153
- settings.onShow.call(element);
6154
6157
  settings.onChange.call(element);
6155
6158
  }
6156
6159
  else {
@@ -6164,9 +6167,12 @@ $.fn.dimmer = function(parameters) {
6164
6167
  : function(){}
6165
6168
  ;
6166
6169
  if( module.is.dimmed() || module.is.animating() ) {
6170
+ if(settings.onHide.call(element) === false) {
6171
+ module.verbose('Hide callback returned false cancelling dimmer hide');
6172
+ return;
6173
+ }
6167
6174
  module.debug('Hiding dimmer', $dimmer);
6168
6175
  module.animate.hide(callback);
6169
- settings.onHide.call(element);
6170
6176
  settings.onChange.call(element);
6171
6177
  }
6172
6178
  else {
@@ -6710,7 +6716,7 @@ $.fn.dimmer.settings = {
6710
6716
  })( jQuery, window, document );
6711
6717
 
6712
6718
  /*!
6713
- * # Fomantic-UI 2.9.0-beta.242 - Dropdown
6719
+ * # Fomantic-UI 2.9.0-beta.245 - Dropdown
6714
6720
  * http://github.com/fomantic/Fomantic-UI/
6715
6721
  *
6716
6722
  *
@@ -8242,7 +8248,7 @@ $.fn.dropdown = function(parameters) {
8242
8248
  keydown: function(event) {
8243
8249
  var
8244
8250
  pressedKey = event.which,
8245
- isShortcutKey = module.is.inObject(pressedKey, keys)
8251
+ isShortcutKey = module.is.inObject(pressedKey, keys) || event.key === settings.delimiter
8246
8252
  ;
8247
8253
  if(isShortcutKey) {
8248
8254
  var
@@ -8260,7 +8266,7 @@ $.fn.dropdown = function(parameters) {
8260
8266
  hasSubMenu = ($subMenu.length> 0),
8261
8267
  hasSelectedItem = ($selectedItem.length > 0),
8262
8268
  selectedIsSelectable = ($selectedItem.not(selector.unselectable).length > 0),
8263
- delimiterPressed = (pressedKey == keys.delimiter && module.is.multiple()),
8269
+ delimiterPressed = (event.key === settings.delimiter && module.is.multiple()),
8264
8270
  isAdditionWithoutMenu = (settings.allowAdditions && settings.hideAdditions && (pressedKey == keys.enter || delimiterPressed) && selectedIsSelectable),
8265
8271
  $nextItem,
8266
8272
  isSubMenuItem,
@@ -10842,7 +10848,6 @@ $.fn.dropdown.settings = {
10842
10848
 
10843
10849
  keys : {
10844
10850
  backspace : 8,
10845
- delimiter : 188, // comma
10846
10851
  deleteKey : 46,
10847
10852
  enter : 13,
10848
10853
  escape : 27,
@@ -11066,7 +11071,7 @@ $.fn.dropdown.settings.templates = {
11066
11071
  })( jQuery, window, document );
11067
11072
 
11068
11073
  /*!
11069
- * # Fomantic-UI 2.9.0-beta.242 - Embed
11074
+ * # Fomantic-UI 2.9.0-beta.245 - Embed
11070
11075
  * http://github.com/fomantic/Fomantic-UI/
11071
11076
  *
11072
11077
  *
@@ -11776,7 +11781,7 @@ $.fn.embed.settings = {
11776
11781
  })( jQuery, window, document );
11777
11782
 
11778
11783
  /*!
11779
- * # Fomantic-UI 2.9.0-beta.242 - Modal
11784
+ * # Fomantic-UI 2.9.0-beta.245 - Modal
11780
11785
  * http://github.com/fomantic/Fomantic-UI/
11781
11786
  *
11782
11787
  *
@@ -12291,6 +12296,10 @@ $.fn.modal = function(parameters) {
12291
12296
  : function(){}
12292
12297
  ;
12293
12298
  if( module.is.animating() || !module.is.active() ) {
12299
+ if(settings.onShow.call(element) === false) {
12300
+ module.verbose('Show callback returned false cancelling show');
12301
+ return;
12302
+ }
12294
12303
  module.showDimmer();
12295
12304
  module.cacheSizes();
12296
12305
  module.set.bodyMargin();
@@ -12320,7 +12329,6 @@ $.fn.modal = function(parameters) {
12320
12329
  $module.detach().appendTo($dimmer);
12321
12330
  }
12322
12331
  }
12323
- settings.onShow.call(element);
12324
12332
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
12325
12333
  module.debug('Showing modal with css animations');
12326
12334
  $module
@@ -12363,7 +12371,6 @@ $.fn.modal = function(parameters) {
12363
12371
  ? callback
12364
12372
  : function(){}
12365
12373
  ;
12366
- module.debug('Hiding modal');
12367
12374
  if(settings.onHide.call(element, $(this)) === false) {
12368
12375
  module.verbose('Hide callback returned false cancelling hide');
12369
12376
  ignoreRepeatedEvents = false;
@@ -12371,6 +12378,7 @@ $.fn.modal = function(parameters) {
12371
12378
  }
12372
12379
 
12373
12380
  if( module.is.animating() || module.is.active() ) {
12381
+ module.debug('Hiding modal');
12374
12382
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
12375
12383
  module.remove.active();
12376
12384
  $module
@@ -13304,7 +13312,7 @@ $.fn.modal.settings.templates = {
13304
13312
  })( jQuery, window, document );
13305
13313
 
13306
13314
  /*!
13307
- * # Fomantic-UI 2.9.0-beta.242 - Nag
13315
+ * # Fomantic-UI 2.9.0-beta.245 - Nag
13308
13316
  * http://github.com/fomantic/Fomantic-UI/
13309
13317
  *
13310
13318
  *
@@ -13863,7 +13871,7 @@ $.extend( $.easing, {
13863
13871
  })( jQuery, window, document );
13864
13872
 
13865
13873
  /*!
13866
- * # Fomantic-UI 2.9.0-beta.242 - Popup
13874
+ * # Fomantic-UI 2.9.0-beta.245 - Popup
13867
13875
  * http://github.com/fomantic/Fomantic-UI/
13868
13876
  *
13869
13877
  *
@@ -15405,7 +15413,7 @@ $.fn.popup.settings = {
15405
15413
  })( jQuery, window, document );
15406
15414
 
15407
15415
  /*!
15408
- * # Fomantic-UI 2.9.0-beta.242 - Progress
15416
+ * # Fomantic-UI 2.9.0-beta.245 - Progress
15409
15417
  * http://github.com/fomantic/Fomantic-UI/
15410
15418
  *
15411
15419
  *
@@ -16442,7 +16450,7 @@ $.fn.progress.settings = {
16442
16450
  })( jQuery, window, document );
16443
16451
 
16444
16452
  /*!
16445
- * # Fomantic-UI 2.9.0-beta.242 - Slider
16453
+ * # Fomantic-UI 2.9.0-beta.245 - Slider
16446
16454
  * http://github.com/fomantic/Fomantic-UI/
16447
16455
  *
16448
16456
  *
@@ -17781,7 +17789,7 @@ $.fn.slider.settings = {
17781
17789
  })( jQuery, window, document );
17782
17790
 
17783
17791
  /*!
17784
- * # Fomantic-UI 2.9.0-beta.242 - Rating
17792
+ * # Fomantic-UI 2.9.0-beta.245 - Rating
17785
17793
  * http://github.com/fomantic/Fomantic-UI/
17786
17794
  *
17787
17795
  *
@@ -18336,7 +18344,7 @@ $.fn.rating.settings = {
18336
18344
  })( jQuery, window, document );
18337
18345
 
18338
18346
  /*!
18339
- * # Fomantic-UI 2.9.0-beta.242 - Search
18347
+ * # Fomantic-UI 2.9.0-beta.245 - Search
18340
18348
  * http://github.com/fomantic/Fomantic-UI/
18341
18349
  *
18342
18350
  *
@@ -19904,7 +19912,7 @@ $.fn.search.settings = {
19904
19912
  })( jQuery, window, document );
19905
19913
 
19906
19914
  /*!
19907
- * # Fomantic-UI 2.9.0-beta.242 - Shape
19915
+ * # Fomantic-UI 2.9.0-beta.245 - Shape
19908
19916
  * http://github.com/fomantic/Fomantic-UI/
19909
19917
  *
19910
19918
  *
@@ -20031,7 +20039,7 @@ $.fn.shape = function(parameters) {
20031
20039
  module.reset();
20032
20040
  module.set.active();
20033
20041
  };
20034
- settings.beforeChange.call($nextSide[0]);
20042
+ settings.onBeforeChange.call($nextSide[0]);
20035
20043
  if(module.get.transitionEvent()) {
20036
20044
  module.verbose('Starting CSS animation');
20037
20045
  $module
@@ -20718,7 +20726,7 @@ $.fn.shape.settings = {
20718
20726
  height: 'initial',
20719
20727
 
20720
20728
  // callback occurs on side change
20721
- beforeChange : function() {},
20729
+ onBeforeChange : function() {},
20722
20730
  onChange : function() {},
20723
20731
 
20724
20732
  // allow animation to same side
@@ -20753,7 +20761,7 @@ $.fn.shape.settings = {
20753
20761
  })( jQuery, window, document );
20754
20762
 
20755
20763
  /*!
20756
- * # Fomantic-UI 2.9.0-beta.242 - Sidebar
20764
+ * # Fomantic-UI 2.9.0-beta.245 - Sidebar
20757
20765
  * http://github.com/fomantic/Fomantic-UI/
20758
20766
  *
20759
20767
  *
@@ -21125,6 +21133,10 @@ $.fn.sidebar = function(parameters) {
21125
21133
  : function(){}
21126
21134
  ;
21127
21135
  if(module.is.hidden()) {
21136
+ if(settings.onShow.call(element) === false) {
21137
+ module.verbose('Show callback returned false cancelling show');
21138
+ return;
21139
+ }
21128
21140
  module.refreshSidebars();
21129
21141
  if(settings.overlay) {
21130
21142
  module.error(error.overlay);
@@ -21149,10 +21161,9 @@ $.fn.sidebar = function(parameters) {
21149
21161
  }
21150
21162
  module.pushPage(function() {
21151
21163
  callback.call(element);
21152
- settings.onShow.call(element);
21164
+ settings.onVisible.call(element);
21153
21165
  });
21154
21166
  settings.onChange.call(element);
21155
- settings.onVisible.call(element);
21156
21167
  }
21157
21168
  else {
21158
21169
  module.debug('Sidebar is already visible');
@@ -21164,7 +21175,7 @@ $.fn.sidebar = function(parameters) {
21164
21175
  ? callback
21165
21176
  : function(){}
21166
21177
  ;
21167
- if(module.is.visible() || module.is.animating()) {
21178
+ if((module.is.visible() || module.is.animating()) && settings.onHide.call(element) !== false) {
21168
21179
  module.debug('Hiding sidebar', callback);
21169
21180
  module.refreshSidebars();
21170
21181
  module.pullPage(function() {
@@ -21172,7 +21183,6 @@ $.fn.sidebar = function(parameters) {
21172
21183
  settings.onHidden.call(element);
21173
21184
  });
21174
21185
  settings.onChange.call(element);
21175
- settings.onHide.call(element);
21176
21186
  }
21177
21187
  },
21178
21188
 
@@ -21790,7 +21800,7 @@ $.fn.sidebar.settings = {
21790
21800
  })( jQuery, window, document );
21791
21801
 
21792
21802
  /*!
21793
- * # Fomantic-UI 2.9.0-beta.242 - Sticky
21803
+ * # Fomantic-UI 2.9.0-beta.245 - Sticky
21794
21804
  * http://github.com/fomantic/Fomantic-UI/
21795
21805
  *
21796
21806
  *
@@ -22748,7 +22758,7 @@ $.fn.sticky.settings = {
22748
22758
  })( jQuery, window, document );
22749
22759
 
22750
22760
  /*!
22751
- * # Fomantic-UI 2.9.0-beta.242 - Tab
22761
+ * # Fomantic-UI 2.9.0-beta.245 - Tab
22752
22762
  * http://github.com/fomantic/Fomantic-UI/
22753
22763
  *
22754
22764
  *
@@ -23768,7 +23778,7 @@ $.fn.tab.settings = {
23768
23778
  })( jQuery, window, document );
23769
23779
 
23770
23780
  /*!
23771
- * # Fomantic-UI 2.9.0-beta.242 - Toast
23781
+ * # Fomantic-UI 2.9.0-beta.245 - Toast
23772
23782
  * http://github.com/fomantic/Fomantic-UI/
23773
23783
  *
23774
23784
  *
@@ -24689,7 +24699,7 @@ $.extend( $.easing, {
24689
24699
  })( jQuery, window, document );
24690
24700
 
24691
24701
  /*!
24692
- * # Fomantic-UI 2.9.0-beta.242 - Transition
24702
+ * # Fomantic-UI 2.9.0-beta.245 - Transition
24693
24703
  * http://github.com/fomantic/Fomantic-UI/
24694
24704
  *
24695
24705
  *
@@ -25461,6 +25471,10 @@ $.fn.transition = function() {
25461
25471
  },
25462
25472
 
25463
25473
  hide: function() {
25474
+ if(settings.onHide.call(element) === false) {
25475
+ module.verbose('Hide callback returned false cancelling hide');
25476
+ return false;
25477
+ }
25464
25478
  module.verbose('Hiding element');
25465
25479
  if( module.is.animating() ) {
25466
25480
  module.reset();
@@ -25468,35 +25482,32 @@ $.fn.transition = function() {
25468
25482
  element.blur(); // IE will trigger focus change if element is not blurred before hiding
25469
25483
  module.remove.display();
25470
25484
  module.remove.visible();
25471
- if($.isFunction(settings.onBeforeHide)){
25472
- settings.onBeforeHide.call(element,function(){
25473
- module.hideNow();
25474
- });
25475
- } else {
25476
- module.hideNow();
25477
- }
25478
-
25485
+ settings.onBeforeHide.call(element, module.hideNow);
25479
25486
  },
25480
25487
 
25481
25488
  hideNow: function() {
25482
25489
  module.set.hidden();
25483
25490
  module.force.hidden();
25484
- settings.onHide.call(element);
25491
+ settings.onHidden.call(element);
25485
25492
  settings.onComplete.call(element);
25486
25493
  // module.repaint();
25487
25494
  },
25488
25495
 
25489
25496
  show: function(display) {
25490
- module.verbose('Showing element', display);
25491
- if(module.force.visible()) {
25497
+ if(module.force.visible() && settings.onShow.call(element) !== false) {
25498
+ module.verbose('Showing element', display);
25492
25499
  module.remove.hidden();
25493
- module.set.visible();
25494
- settings.onShow.call(element);
25495
- settings.onComplete.call(element);
25496
- // module.repaint();
25500
+ settings.onBeforeShow.call(element, module.showNow);
25497
25501
  }
25498
25502
  },
25499
25503
 
25504
+ showNow: function(){
25505
+ module.set.visible();
25506
+ settings.onVisible.call(element);
25507
+ settings.onComplete.call(element);
25508
+ // module.repaint();
25509
+ },
25510
+
25500
25511
  toggle: function() {
25501
25512
  if( module.is.visible() ) {
25502
25513
  module.hide();
@@ -25745,7 +25756,11 @@ $.fn.transition.settings = {
25745
25756
  onStart : function() {},
25746
25757
  onComplete : function() {},
25747
25758
  onShow : function() {},
25759
+ onBeforeShow : function(callback) {callback.call(this)},
25760
+ onVisible : function() {},
25748
25761
  onHide : function() {},
25762
+ onHidden : function() {},
25763
+ onBeforeHide : function(callback) {callback.call(this)},
25749
25764
 
25750
25765
  // whether timeout should be used to ensure callback fires in cases animationend does not
25751
25766
  useFailSafe : true,
@@ -25799,7 +25814,7 @@ $.fn.transition.settings = {
25799
25814
  })( jQuery, window, document );
25800
25815
 
25801
25816
  /*!
25802
- * # Fomantic-UI 2.9.0-beta.242 - API
25817
+ * # Fomantic-UI 2.9.0-beta.245 - API
25803
25818
  * http://github.com/fomantic/Fomantic-UI/
25804
25819
  *
25805
25820
  *
@@ -26981,7 +26996,7 @@ $.api.settings = {
26981
26996
  })( jQuery, window, document );
26982
26997
 
26983
26998
  /*!
26984
- * # Fomantic-UI 2.9.0-beta.242 - State
26999
+ * # Fomantic-UI 2.9.0-beta.245 - State
26985
27000
  * http://github.com/fomantic/Fomantic-UI/
26986
27001
  *
26987
27002
  *
@@ -27693,7 +27708,7 @@ $.fn.state.settings = {
27693
27708
  })( jQuery, window, document );
27694
27709
 
27695
27710
  /*!
27696
- * # Fomantic-UI 2.9.0-beta.242 - Visibility
27711
+ * # Fomantic-UI 2.9.0-beta.245 - Visibility
27697
27712
  * http://github.com/fomantic/Fomantic-UI/
27698
27713
  *
27699
27714
  *