fomantic-ui 2.9.0-beta.244 → 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 (162) 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 +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/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 +68 -52
  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/modal.js +5 -2
  154. package/src/definitions/modules/modal.less +6 -6
  155. package/src/definitions/modules/shape.js +2 -2
  156. package/src/definitions/modules/sidebar.js +6 -4
  157. package/src/definitions/modules/transition.js +20 -15
  158. package/src/themes/default/elements/emoji.overrides +1734 -1232
  159. package/src/themes/default/elements/flag.overrides +6 -0
  160. package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
  161. package/src/themes/joypixels/elements/emoji.variables +1 -1
  162. package/src/themes/twitter/elements/emoji.overrides +1734 -1232
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.244
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.244 - 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.244 - 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.244 - 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.244 - 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.244 - 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.244 - 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.244 - Dropdown
6719
+ * # Fomantic-UI 2.9.0-beta.245 - Dropdown
6714
6720
  * http://github.com/fomantic/Fomantic-UI/
6715
6721
  *
6716
6722
  *
@@ -11065,7 +11071,7 @@ $.fn.dropdown.settings.templates = {
11065
11071
  })( jQuery, window, document );
11066
11072
 
11067
11073
  /*!
11068
- * # Fomantic-UI 2.9.0-beta.244 - Embed
11074
+ * # Fomantic-UI 2.9.0-beta.245 - Embed
11069
11075
  * http://github.com/fomantic/Fomantic-UI/
11070
11076
  *
11071
11077
  *
@@ -11775,7 +11781,7 @@ $.fn.embed.settings = {
11775
11781
  })( jQuery, window, document );
11776
11782
 
11777
11783
  /*!
11778
- * # Fomantic-UI 2.9.0-beta.244 - Modal
11784
+ * # Fomantic-UI 2.9.0-beta.245 - Modal
11779
11785
  * http://github.com/fomantic/Fomantic-UI/
11780
11786
  *
11781
11787
  *
@@ -12290,6 +12296,10 @@ $.fn.modal = function(parameters) {
12290
12296
  : function(){}
12291
12297
  ;
12292
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
+ }
12293
12303
  module.showDimmer();
12294
12304
  module.cacheSizes();
12295
12305
  module.set.bodyMargin();
@@ -12319,7 +12329,6 @@ $.fn.modal = function(parameters) {
12319
12329
  $module.detach().appendTo($dimmer);
12320
12330
  }
12321
12331
  }
12322
- settings.onShow.call(element);
12323
12332
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
12324
12333
  module.debug('Showing modal with css animations');
12325
12334
  $module
@@ -12362,7 +12371,6 @@ $.fn.modal = function(parameters) {
12362
12371
  ? callback
12363
12372
  : function(){}
12364
12373
  ;
12365
- module.debug('Hiding modal');
12366
12374
  if(settings.onHide.call(element, $(this)) === false) {
12367
12375
  module.verbose('Hide callback returned false cancelling hide');
12368
12376
  ignoreRepeatedEvents = false;
@@ -12370,6 +12378,7 @@ $.fn.modal = function(parameters) {
12370
12378
  }
12371
12379
 
12372
12380
  if( module.is.animating() || module.is.active() ) {
12381
+ module.debug('Hiding modal');
12373
12382
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
12374
12383
  module.remove.active();
12375
12384
  $module
@@ -13303,7 +13312,7 @@ $.fn.modal.settings.templates = {
13303
13312
  })( jQuery, window, document );
13304
13313
 
13305
13314
  /*!
13306
- * # Fomantic-UI 2.9.0-beta.244 - Nag
13315
+ * # Fomantic-UI 2.9.0-beta.245 - Nag
13307
13316
  * http://github.com/fomantic/Fomantic-UI/
13308
13317
  *
13309
13318
  *
@@ -13862,7 +13871,7 @@ $.extend( $.easing, {
13862
13871
  })( jQuery, window, document );
13863
13872
 
13864
13873
  /*!
13865
- * # Fomantic-UI 2.9.0-beta.244 - Popup
13874
+ * # Fomantic-UI 2.9.0-beta.245 - Popup
13866
13875
  * http://github.com/fomantic/Fomantic-UI/
13867
13876
  *
13868
13877
  *
@@ -15404,7 +15413,7 @@ $.fn.popup.settings = {
15404
15413
  })( jQuery, window, document );
15405
15414
 
15406
15415
  /*!
15407
- * # Fomantic-UI 2.9.0-beta.244 - Progress
15416
+ * # Fomantic-UI 2.9.0-beta.245 - Progress
15408
15417
  * http://github.com/fomantic/Fomantic-UI/
15409
15418
  *
15410
15419
  *
@@ -16441,7 +16450,7 @@ $.fn.progress.settings = {
16441
16450
  })( jQuery, window, document );
16442
16451
 
16443
16452
  /*!
16444
- * # Fomantic-UI 2.9.0-beta.244 - Slider
16453
+ * # Fomantic-UI 2.9.0-beta.245 - Slider
16445
16454
  * http://github.com/fomantic/Fomantic-UI/
16446
16455
  *
16447
16456
  *
@@ -17780,7 +17789,7 @@ $.fn.slider.settings = {
17780
17789
  })( jQuery, window, document );
17781
17790
 
17782
17791
  /*!
17783
- * # Fomantic-UI 2.9.0-beta.244 - Rating
17792
+ * # Fomantic-UI 2.9.0-beta.245 - Rating
17784
17793
  * http://github.com/fomantic/Fomantic-UI/
17785
17794
  *
17786
17795
  *
@@ -18335,7 +18344,7 @@ $.fn.rating.settings = {
18335
18344
  })( jQuery, window, document );
18336
18345
 
18337
18346
  /*!
18338
- * # Fomantic-UI 2.9.0-beta.244 - Search
18347
+ * # Fomantic-UI 2.9.0-beta.245 - Search
18339
18348
  * http://github.com/fomantic/Fomantic-UI/
18340
18349
  *
18341
18350
  *
@@ -19903,7 +19912,7 @@ $.fn.search.settings = {
19903
19912
  })( jQuery, window, document );
19904
19913
 
19905
19914
  /*!
19906
- * # Fomantic-UI 2.9.0-beta.244 - Shape
19915
+ * # Fomantic-UI 2.9.0-beta.245 - Shape
19907
19916
  * http://github.com/fomantic/Fomantic-UI/
19908
19917
  *
19909
19918
  *
@@ -20030,7 +20039,7 @@ $.fn.shape = function(parameters) {
20030
20039
  module.reset();
20031
20040
  module.set.active();
20032
20041
  };
20033
- settings.beforeChange.call($nextSide[0]);
20042
+ settings.onBeforeChange.call($nextSide[0]);
20034
20043
  if(module.get.transitionEvent()) {
20035
20044
  module.verbose('Starting CSS animation');
20036
20045
  $module
@@ -20717,7 +20726,7 @@ $.fn.shape.settings = {
20717
20726
  height: 'initial',
20718
20727
 
20719
20728
  // callback occurs on side change
20720
- beforeChange : function() {},
20729
+ onBeforeChange : function() {},
20721
20730
  onChange : function() {},
20722
20731
 
20723
20732
  // allow animation to same side
@@ -20752,7 +20761,7 @@ $.fn.shape.settings = {
20752
20761
  })( jQuery, window, document );
20753
20762
 
20754
20763
  /*!
20755
- * # Fomantic-UI 2.9.0-beta.244 - Sidebar
20764
+ * # Fomantic-UI 2.9.0-beta.245 - Sidebar
20756
20765
  * http://github.com/fomantic/Fomantic-UI/
20757
20766
  *
20758
20767
  *
@@ -21124,6 +21133,10 @@ $.fn.sidebar = function(parameters) {
21124
21133
  : function(){}
21125
21134
  ;
21126
21135
  if(module.is.hidden()) {
21136
+ if(settings.onShow.call(element) === false) {
21137
+ module.verbose('Show callback returned false cancelling show');
21138
+ return;
21139
+ }
21127
21140
  module.refreshSidebars();
21128
21141
  if(settings.overlay) {
21129
21142
  module.error(error.overlay);
@@ -21148,10 +21161,9 @@ $.fn.sidebar = function(parameters) {
21148
21161
  }
21149
21162
  module.pushPage(function() {
21150
21163
  callback.call(element);
21151
- settings.onShow.call(element);
21164
+ settings.onVisible.call(element);
21152
21165
  });
21153
21166
  settings.onChange.call(element);
21154
- settings.onVisible.call(element);
21155
21167
  }
21156
21168
  else {
21157
21169
  module.debug('Sidebar is already visible');
@@ -21163,7 +21175,7 @@ $.fn.sidebar = function(parameters) {
21163
21175
  ? callback
21164
21176
  : function(){}
21165
21177
  ;
21166
- if(module.is.visible() || module.is.animating()) {
21178
+ if((module.is.visible() || module.is.animating()) && settings.onHide.call(element) !== false) {
21167
21179
  module.debug('Hiding sidebar', callback);
21168
21180
  module.refreshSidebars();
21169
21181
  module.pullPage(function() {
@@ -21171,7 +21183,6 @@ $.fn.sidebar = function(parameters) {
21171
21183
  settings.onHidden.call(element);
21172
21184
  });
21173
21185
  settings.onChange.call(element);
21174
- settings.onHide.call(element);
21175
21186
  }
21176
21187
  },
21177
21188
 
@@ -21789,7 +21800,7 @@ $.fn.sidebar.settings = {
21789
21800
  })( jQuery, window, document );
21790
21801
 
21791
21802
  /*!
21792
- * # Fomantic-UI 2.9.0-beta.244 - Sticky
21803
+ * # Fomantic-UI 2.9.0-beta.245 - Sticky
21793
21804
  * http://github.com/fomantic/Fomantic-UI/
21794
21805
  *
21795
21806
  *
@@ -22747,7 +22758,7 @@ $.fn.sticky.settings = {
22747
22758
  })( jQuery, window, document );
22748
22759
 
22749
22760
  /*!
22750
- * # Fomantic-UI 2.9.0-beta.244 - Tab
22761
+ * # Fomantic-UI 2.9.0-beta.245 - Tab
22751
22762
  * http://github.com/fomantic/Fomantic-UI/
22752
22763
  *
22753
22764
  *
@@ -23767,7 +23778,7 @@ $.fn.tab.settings = {
23767
23778
  })( jQuery, window, document );
23768
23779
 
23769
23780
  /*!
23770
- * # Fomantic-UI 2.9.0-beta.244 - Toast
23781
+ * # Fomantic-UI 2.9.0-beta.245 - Toast
23771
23782
  * http://github.com/fomantic/Fomantic-UI/
23772
23783
  *
23773
23784
  *
@@ -24688,7 +24699,7 @@ $.extend( $.easing, {
24688
24699
  })( jQuery, window, document );
24689
24700
 
24690
24701
  /*!
24691
- * # Fomantic-UI 2.9.0-beta.244 - Transition
24702
+ * # Fomantic-UI 2.9.0-beta.245 - Transition
24692
24703
  * http://github.com/fomantic/Fomantic-UI/
24693
24704
  *
24694
24705
  *
@@ -25460,6 +25471,10 @@ $.fn.transition = function() {
25460
25471
  },
25461
25472
 
25462
25473
  hide: function() {
25474
+ if(settings.onHide.call(element) === false) {
25475
+ module.verbose('Hide callback returned false cancelling hide');
25476
+ return false;
25477
+ }
25463
25478
  module.verbose('Hiding element');
25464
25479
  if( module.is.animating() ) {
25465
25480
  module.reset();
@@ -25467,35 +25482,32 @@ $.fn.transition = function() {
25467
25482
  element.blur(); // IE will trigger focus change if element is not blurred before hiding
25468
25483
  module.remove.display();
25469
25484
  module.remove.visible();
25470
- if($.isFunction(settings.onBeforeHide)){
25471
- settings.onBeforeHide.call(element,function(){
25472
- module.hideNow();
25473
- });
25474
- } else {
25475
- module.hideNow();
25476
- }
25477
-
25485
+ settings.onBeforeHide.call(element, module.hideNow);
25478
25486
  },
25479
25487
 
25480
25488
  hideNow: function() {
25481
25489
  module.set.hidden();
25482
25490
  module.force.hidden();
25483
- settings.onHide.call(element);
25491
+ settings.onHidden.call(element);
25484
25492
  settings.onComplete.call(element);
25485
25493
  // module.repaint();
25486
25494
  },
25487
25495
 
25488
25496
  show: function(display) {
25489
- module.verbose('Showing element', display);
25490
- if(module.force.visible()) {
25497
+ if(module.force.visible() && settings.onShow.call(element) !== false) {
25498
+ module.verbose('Showing element', display);
25491
25499
  module.remove.hidden();
25492
- module.set.visible();
25493
- settings.onShow.call(element);
25494
- settings.onComplete.call(element);
25495
- // module.repaint();
25500
+ settings.onBeforeShow.call(element, module.showNow);
25496
25501
  }
25497
25502
  },
25498
25503
 
25504
+ showNow: function(){
25505
+ module.set.visible();
25506
+ settings.onVisible.call(element);
25507
+ settings.onComplete.call(element);
25508
+ // module.repaint();
25509
+ },
25510
+
25499
25511
  toggle: function() {
25500
25512
  if( module.is.visible() ) {
25501
25513
  module.hide();
@@ -25744,7 +25756,11 @@ $.fn.transition.settings = {
25744
25756
  onStart : function() {},
25745
25757
  onComplete : function() {},
25746
25758
  onShow : function() {},
25759
+ onBeforeShow : function(callback) {callback.call(this)},
25760
+ onVisible : function() {},
25747
25761
  onHide : function() {},
25762
+ onHidden : function() {},
25763
+ onBeforeHide : function(callback) {callback.call(this)},
25748
25764
 
25749
25765
  // whether timeout should be used to ensure callback fires in cases animationend does not
25750
25766
  useFailSafe : true,
@@ -25798,7 +25814,7 @@ $.fn.transition.settings = {
25798
25814
  })( jQuery, window, document );
25799
25815
 
25800
25816
  /*!
25801
- * # Fomantic-UI 2.9.0-beta.244 - API
25817
+ * # Fomantic-UI 2.9.0-beta.245 - API
25802
25818
  * http://github.com/fomantic/Fomantic-UI/
25803
25819
  *
25804
25820
  *
@@ -26980,7 +26996,7 @@ $.api.settings = {
26980
26996
  })( jQuery, window, document );
26981
26997
 
26982
26998
  /*!
26983
- * # Fomantic-UI 2.9.0-beta.244 - State
26999
+ * # Fomantic-UI 2.9.0-beta.245 - State
26984
27000
  * http://github.com/fomantic/Fomantic-UI/
26985
27001
  *
26986
27002
  *
@@ -27692,7 +27708,7 @@ $.fn.state.settings = {
27692
27708
  })( jQuery, window, document );
27693
27709
 
27694
27710
  /*!
27695
- * # Fomantic-UI 2.9.0-beta.244 - Visibility
27711
+ * # Fomantic-UI 2.9.0-beta.245 - Visibility
27696
27712
  * http://github.com/fomantic/Fomantic-UI/
27697
27713
  *
27698
27714
  *