fomantic-ui 2.9.2-beta.7 → 2.9.2-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +4 -4
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +2 -2
  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 +3 -3
  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 -3
  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 +2 -2
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +2 -2
  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/flyout.css +1 -1
  46. package/dist/components/flyout.js +18 -30
  47. package/dist/components/flyout.min.css +1 -1
  48. package/dist/components/flyout.min.js +2 -2
  49. package/dist/components/form.css +1 -1
  50. package/dist/components/form.js +3 -3
  51. package/dist/components/form.min.css +1 -1
  52. package/dist/components/form.min.js +2 -2
  53. package/dist/components/grid.css +1 -1
  54. package/dist/components/grid.min.css +1 -1
  55. package/dist/components/header.css +1 -1
  56. package/dist/components/header.min.css +1 -1
  57. package/dist/components/icon.css +1 -1
  58. package/dist/components/icon.min.css +1 -1
  59. package/dist/components/image.css +1 -1
  60. package/dist/components/image.min.css +1 -1
  61. package/dist/components/input.css +1 -1
  62. package/dist/components/input.min.css +1 -1
  63. package/dist/components/item.css +1 -1
  64. package/dist/components/item.min.css +1 -1
  65. package/dist/components/label.css +1 -1
  66. package/dist/components/label.min.css +1 -1
  67. package/dist/components/list.css +1 -1
  68. package/dist/components/list.min.css +1 -1
  69. package/dist/components/loader.css +1 -1
  70. package/dist/components/loader.min.css +1 -1
  71. package/dist/components/message.css +1 -1
  72. package/dist/components/message.min.css +1 -1
  73. package/dist/components/modal.css +1 -1
  74. package/dist/components/modal.js +14 -8
  75. package/dist/components/modal.min.css +1 -1
  76. package/dist/components/modal.min.js +2 -2
  77. package/dist/components/nag.css +1 -1
  78. package/dist/components/nag.js +1 -1
  79. package/dist/components/nag.min.css +1 -1
  80. package/dist/components/nag.min.js +1 -1
  81. package/dist/components/placeholder.css +1 -1
  82. package/dist/components/placeholder.min.css +1 -1
  83. package/dist/components/popup.css +1 -1
  84. package/dist/components/popup.js +3 -3
  85. package/dist/components/popup.min.css +1 -1
  86. package/dist/components/popup.min.js +2 -2
  87. package/dist/components/progress.css +1 -1
  88. package/dist/components/progress.js +3 -29
  89. package/dist/components/progress.min.css +1 -1
  90. package/dist/components/progress.min.js +2 -2
  91. package/dist/components/rail.css +1 -1
  92. package/dist/components/rail.min.css +1 -1
  93. package/dist/components/rating.css +1 -1
  94. package/dist/components/rating.js +1 -1
  95. package/dist/components/rating.min.css +1 -1
  96. package/dist/components/rating.min.js +1 -1
  97. package/dist/components/reset.css +1 -1
  98. package/dist/components/reset.min.css +1 -1
  99. package/dist/components/reveal.css +1 -1
  100. package/dist/components/reveal.min.css +1 -1
  101. package/dist/components/search.css +1 -1
  102. package/dist/components/search.js +2 -2
  103. package/dist/components/search.min.css +1 -1
  104. package/dist/components/search.min.js +2 -2
  105. package/dist/components/segment.css +1 -1
  106. package/dist/components/segment.min.css +1 -1
  107. package/dist/components/shape.css +1 -1
  108. package/dist/components/shape.js +15 -37
  109. package/dist/components/shape.min.css +1 -1
  110. package/dist/components/shape.min.js +2 -2
  111. package/dist/components/sidebar.css +1 -1
  112. package/dist/components/sidebar.js +7 -27
  113. package/dist/components/sidebar.min.css +1 -1
  114. package/dist/components/sidebar.min.js +2 -2
  115. package/dist/components/site.css +1 -1
  116. package/dist/components/site.js +1 -1
  117. package/dist/components/site.min.css +1 -1
  118. package/dist/components/site.min.js +1 -1
  119. package/dist/components/slider.js +1 -1
  120. package/dist/components/slider.min.js +1 -1
  121. package/dist/components/state.js +1 -1
  122. package/dist/components/state.min.js +1 -1
  123. package/dist/components/statistic.css +1 -1
  124. package/dist/components/statistic.min.css +1 -1
  125. package/dist/components/step.css +1 -1
  126. package/dist/components/step.min.css +1 -1
  127. package/dist/components/sticky.css +1 -1
  128. package/dist/components/sticky.js +1 -1
  129. package/dist/components/sticky.min.css +1 -1
  130. package/dist/components/sticky.min.js +1 -1
  131. package/dist/components/tab.css +1 -1
  132. package/dist/components/tab.js +1 -1
  133. package/dist/components/tab.min.css +1 -1
  134. package/dist/components/tab.min.js +1 -1
  135. package/dist/components/table.css +1 -1
  136. package/dist/components/table.min.css +1 -1
  137. package/dist/components/text.css +1 -1
  138. package/dist/components/text.min.css +1 -1
  139. package/dist/components/toast.css +1 -1
  140. package/dist/components/toast.js +3 -3
  141. package/dist/components/toast.min.css +1 -1
  142. package/dist/components/toast.min.js +2 -2
  143. package/dist/components/transition.css +1 -1
  144. package/dist/components/transition.js +9 -57
  145. package/dist/components/transition.min.css +1 -1
  146. package/dist/components/transition.min.js +2 -2
  147. package/dist/components/visibility.js +1 -1
  148. package/dist/components/visibility.min.js +1 -1
  149. package/dist/semantic.css +50 -50
  150. package/dist/semantic.js +101 -223
  151. package/dist/semantic.min.css +1 -1
  152. package/dist/semantic.min.js +2 -2
  153. package/package.json +1 -1
  154. package/src/definitions/behaviors/form.js +2 -2
  155. package/src/definitions/modules/accordion.js +3 -3
  156. package/src/definitions/modules/dimmer.js +2 -2
  157. package/src/definitions/modules/dropdown.js +2 -2
  158. package/src/definitions/modules/embed.js +1 -1
  159. package/src/definitions/modules/flyout.js +17 -29
  160. package/src/definitions/modules/modal.js +13 -7
  161. package/src/definitions/modules/popup.js +2 -2
  162. package/src/definitions/modules/progress.js +2 -28
  163. package/src/definitions/modules/search.js +1 -1
  164. package/src/definitions/modules/shape.js +14 -36
  165. package/src/definitions/modules/sidebar.js +6 -26
  166. package/src/definitions/modules/toast.js +2 -2
  167. package/src/definitions/modules/transition.js +8 -56
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.2-beta.7+2015119
2
+ * # Fomantic UI - 2.9.2-beta.8+8838309
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Site
12
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -463,7 +463,7 @@
463
463
  })(jQuery, window, document);
464
464
 
465
465
  /*!
466
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Form Validation
466
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Form Validation
467
467
  * https://github.com/fomantic/Fomantic-UI/
468
468
  *
469
469
  *
@@ -1352,7 +1352,7 @@
1352
1352
  .html(settings.templates.prompt(errors))
1353
1353
  ;
1354
1354
  if (!promptExists) {
1355
- if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
1355
+ if (settings.transition && module.can.useElement('transition')) {
1356
1356
  module.verbose('Displaying error with css transition', settings.transition);
1357
1357
  $prompt.transition(settings.transition + ' in', settings.duration);
1358
1358
  } else {
@@ -1448,7 +1448,7 @@
1448
1448
  ;
1449
1449
  if (settings.inline && $prompt.is(':visible')) {
1450
1450
  module.verbose('Removing prompt for field', identifier);
1451
- if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
1451
+ if (settings.transition && module.can.useElement('transition')) {
1452
1452
  $prompt.transition(settings.transition + ' out', settings.duration, function () {
1453
1453
  $prompt.remove();
1454
1454
  });
@@ -2559,7 +2559,7 @@
2559
2559
  })(jQuery, window, document);
2560
2560
 
2561
2561
  /*!
2562
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Accordion
2562
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Accordion
2563
2563
  * https://github.com/fomantic/Fomantic-UI/
2564
2564
  *
2565
2565
  *
@@ -2735,7 +2735,7 @@
2735
2735
  .addClass(className.animating)
2736
2736
  ;
2737
2737
  if (settings.animateChildren) {
2738
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
2738
+ if ($.fn.transition !== undefined) {
2739
2739
  $activeContent
2740
2740
  .children()
2741
2741
  .transition({
@@ -2799,7 +2799,7 @@
2799
2799
  .addClass(className.animating)
2800
2800
  ;
2801
2801
  if (settings.animateChildren) {
2802
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
2802
+ if ($.fn.transition !== undefined) {
2803
2803
  $activeContent
2804
2804
  .children()
2805
2805
  .transition({
@@ -2868,7 +2868,7 @@
2868
2868
  .stop(true, true)
2869
2869
  ;
2870
2870
  if (settings.animateChildren) {
2871
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
2871
+ if ($.fn.transition !== undefined) {
2872
2872
  $openContents
2873
2873
  .children()
2874
2874
  .transition({
@@ -3157,7 +3157,7 @@
3157
3157
  })(jQuery, window, document);
3158
3158
 
3159
3159
  /*!
3160
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Calendar
3160
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Calendar
3161
3161
  * https://github.com/fomantic/Fomantic-UI/
3162
3162
  *
3163
3163
  *
@@ -5173,7 +5173,7 @@
5173
5173
  })(jQuery, window, document);
5174
5174
 
5175
5175
  /*!
5176
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Checkbox
5176
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Checkbox
5177
5177
  * https://github.com/fomantic/Fomantic-UI/
5178
5178
  *
5179
5179
  *
@@ -6058,7 +6058,7 @@
6058
6058
  })(jQuery, window, document);
6059
6059
 
6060
6060
  /*!
6061
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Dimmer
6061
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Dimmer
6062
6062
  * https://github.com/fomantic/Fomantic-UI/
6063
6063
  *
6064
6064
  *
@@ -6288,7 +6288,7 @@
6288
6288
  callback = isFunction(callback)
6289
6289
  ? callback
6290
6290
  : function () {};
6291
- if (settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
6291
+ if (settings.useCSS && $.fn.transition !== undefined) {
6292
6292
  if (settings.useFlex) {
6293
6293
  module.debug('Using flex dimmer');
6294
6294
  module.remove.legacy();
@@ -6347,7 +6347,7 @@
6347
6347
  callback = isFunction(callback)
6348
6348
  ? callback
6349
6349
  : function () {};
6350
- if (settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
6350
+ if (settings.useCSS && $.fn.transition !== undefined) {
6351
6351
  module.verbose('Hiding dimmer with css');
6352
6352
  $dimmer
6353
6353
  .transition({
@@ -6793,7 +6793,7 @@
6793
6793
  })(jQuery, window, document);
6794
6794
 
6795
6795
  /*!
6796
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Dropdown
6796
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Dropdown
6797
6797
  * https://github.com/fomantic/Fomantic-UI/
6798
6798
  *
6799
6799
  *
@@ -10431,7 +10431,7 @@
10431
10431
  displayType: module.get.displayType(),
10432
10432
  }).transition('show');
10433
10433
  callback.call(element);
10434
- } else if (module.can.useElement('transition') && $module.transition('is supported')) {
10434
+ } else if (module.can.useElement('transition')) {
10435
10435
  $currentMenu
10436
10436
  .transition({
10437
10437
  animation: transition + ' in',
@@ -10473,7 +10473,7 @@
10473
10473
  displayType: module.get.displayType(),
10474
10474
  }).transition('hide');
10475
10475
  callback.call(element);
10476
- } else if ($.fn.transition !== undefined && $module.transition('is supported')) {
10476
+ } else if ($.fn.transition !== undefined) {
10477
10477
  $currentMenu
10478
10478
  .transition({
10479
10479
  animation: transition + ' out',
@@ -11128,7 +11128,7 @@
11128
11128
  })(jQuery, window, document);
11129
11129
 
11130
11130
  /*!
11131
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Embed
11131
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Embed
11132
11132
  * https://github.com/fomantic/Fomantic-UI/
11133
11133
  *
11134
11134
  *
@@ -11784,7 +11784,7 @@
11784
11784
  return ''
11785
11785
  + '<iframe src="' + deQuote(src) + '"'
11786
11786
  + ' width="100%" height="100%"'
11787
- + ' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
11787
+ + ' msallowFullScreen allowFullScreen></iframe>';
11788
11788
  },
11789
11789
  placeholder: function (image, icon) {
11790
11790
  var
@@ -11812,7 +11812,7 @@
11812
11812
  })(jQuery, window, document);
11813
11813
 
11814
11814
  /*!
11815
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Flyout
11815
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Flyout
11816
11816
  * https://github.com/fomantic/Fomantic-UI/
11817
11817
  *
11818
11818
  *
@@ -11893,8 +11893,8 @@
11893
11893
  elementNamespace,
11894
11894
  id,
11895
11895
  observer,
11896
+ observeAttributes = false,
11896
11897
  currentScroll,
11897
- transitionEvent,
11898
11898
 
11899
11899
  module
11900
11900
  ;
@@ -11958,8 +11958,6 @@
11958
11958
  });
11959
11959
  }
11960
11960
 
11961
- transitionEvent = module.get.transitionEvent();
11962
-
11963
11961
  // avoids locking rendering if initialized in onReady
11964
11962
  if (settings.delaySetup) {
11965
11963
  requestAnimationFrame(module.setup.layout);
@@ -12311,7 +12309,7 @@
12311
12309
  ;
12312
12310
  mutations.every(function (mutation) {
12313
12311
  if (mutation.type === 'attributes') {
12314
- if (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input')) {
12312
+ if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').length > 0)) {
12315
12313
  shouldRefreshInputs = true;
12316
12314
  }
12317
12315
  } else {
@@ -12362,13 +12360,14 @@
12362
12360
  if (!settings.dimPage) {
12363
12361
  return;
12364
12362
  }
12365
- $inputs = $module.find('[tabindex], :input:enabled').filter(':visible').filter(function () {
12363
+ $inputs = $module.find('a[href], [tabindex], :input:enabled').filter(':visible').filter(function () {
12366
12364
  return $(this).closest('.disabled').length === 0;
12367
12365
  });
12368
- $module.removeAttr('tabindex');
12369
12366
  if ($inputs.length === 0) {
12370
12367
  $inputs = $module;
12371
12368
  $module.attr('tabindex', -1);
12369
+ } else {
12370
+ $module.removeAttr('tabindex');
12372
12371
  }
12373
12372
  $inputs.first()
12374
12373
  .on('keydown' + elementNamespace, module.event.inputKeyDown.first)
@@ -12465,6 +12464,7 @@
12465
12464
  }
12466
12465
  }
12467
12466
  module.set.dimmerStyles();
12467
+ module.set.observeAttributes(false);
12468
12468
  module.pushPage(function () {
12469
12469
  callback.call(element);
12470
12470
  settings.onVisible.call(element);
@@ -12473,6 +12473,7 @@
12473
12473
  }
12474
12474
  module.save.focus();
12475
12475
  module.refreshInputs();
12476
+ requestAnimationFrame(module.set.observeAttributes);
12476
12477
  });
12477
12478
  settings.onChange.call(element);
12478
12479
  } else {
@@ -12493,6 +12494,7 @@
12493
12494
  if (module.is.visible() || module.is.animating()) {
12494
12495
  module.debug('Hiding flyout', callback);
12495
12496
  module.refreshFlyouts();
12497
+ module.set.observeAttributes(false);
12496
12498
  module.pullPage(function () {
12497
12499
  callback.call(element);
12498
12500
  if (isFunction(settings.onHidden)) {
@@ -12565,13 +12567,13 @@
12565
12567
  };
12566
12568
  transitionEnd = function (event) {
12567
12569
  if (event.target === $module[0]) {
12568
- $module.off(transitionEvent + elementNamespace, transitionEnd);
12570
+ $module.off('transitionend' + elementNamespace, transitionEnd);
12569
12571
  module.remove.animating();
12570
12572
  callback.call(element);
12571
12573
  }
12572
12574
  };
12573
- $module.off(transitionEvent + elementNamespace);
12574
- $module.on(transitionEvent + elementNamespace, transitionEnd);
12575
+ $module.off('transitionend' + elementNamespace);
12576
+ $module.on('transitionend' + elementNamespace, transitionEnd);
12575
12577
  requestAnimationFrame(animate);
12576
12578
  if (settings.dimPage && !module.othersVisible()) {
12577
12579
  requestAnimationFrame(dim);
@@ -12606,7 +12608,7 @@
12606
12608
  };
12607
12609
  transitionEnd = function (event) {
12608
12610
  if (event.target === $module[0]) {
12609
- $module.off(transitionEvent + elementNamespace, transitionEnd);
12611
+ $module.off('transitionend' + elementNamespace, transitionEnd);
12610
12612
  module.remove.animating();
12611
12613
  module.remove.closing();
12612
12614
  module.remove.overlay();
@@ -12620,8 +12622,8 @@
12620
12622
  callback.call(element);
12621
12623
  }
12622
12624
  };
12623
- $module.off(transitionEvent + elementNamespace);
12624
- $module.on(transitionEvent + elementNamespace, transitionEnd);
12625
+ $module.off('transitionend' + elementNamespace);
12626
+ $module.on('transitionend' + elementNamespace, transitionEnd);
12625
12627
  requestAnimationFrame(animate);
12626
12628
  },
12627
12629
 
@@ -12644,6 +12646,9 @@
12644
12646
  },
12645
12647
 
12646
12648
  set: {
12649
+ observeAttributes: function (state) {
12650
+ observeAttributes = state !== false;
12651
+ },
12647
12652
  autofocus: function () {
12648
12653
  var
12649
12654
  $autofocus = $inputs.filter('[autofocus]'),
@@ -12786,23 +12791,6 @@
12786
12791
 
12787
12792
  return className.left;
12788
12793
  },
12789
- transitionEvent: function () {
12790
- var
12791
- element = document.createElement('element'),
12792
- transitions = {
12793
- transition: 'transitionend',
12794
- OTransition: 'oTransitionEnd',
12795
- MozTransition: 'transitionend',
12796
- WebkitTransition: 'webkitTransitionEnd',
12797
- },
12798
- transition
12799
- ;
12800
- for (transition in transitions) {
12801
- if (element.style[transition] !== undefined) {
12802
- return transitions[transition];
12803
- }
12804
- }
12805
- },
12806
12794
  id: function () {
12807
12795
  return id;
12808
12796
  },
@@ -13392,7 +13380,7 @@
13392
13380
  })(jQuery, window, document);
13393
13381
 
13394
13382
  /*!
13395
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Modal
13383
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Modal
13396
13384
  * https://github.com/fomantic/Fomantic-UI/
13397
13385
  *
13398
13386
  *
@@ -13475,6 +13463,7 @@
13475
13463
  elementEventNamespace,
13476
13464
  id,
13477
13465
  observer,
13466
+ observeAttributes = false,
13478
13467
  module
13479
13468
  ;
13480
13469
  module = {
@@ -13658,7 +13647,7 @@
13658
13647
  ;
13659
13648
  mutations.every(function (mutation) {
13660
13649
  if (mutation.type === 'attributes') {
13661
- if (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input')) {
13650
+ if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').length > 0)) {
13662
13651
  shouldRefreshInputs = true;
13663
13652
  }
13664
13653
  } else {
@@ -13717,10 +13706,11 @@
13717
13706
  $inputs = $module.find('a[href], [tabindex], :input:enabled').filter(':visible').filter(function () {
13718
13707
  return $(this).closest('.disabled').length === 0;
13719
13708
  });
13720
- $module.removeAttr('tabindex');
13721
13709
  if ($inputs.length === 0) {
13722
13710
  $inputs = $module;
13723
13711
  $module.attr('tabindex', -1);
13712
+ } else {
13713
+ $module.removeAttr('tabindex');
13724
13714
  }
13725
13715
  $inputs.first()
13726
13716
  .on('keydown' + elementEventNamespace, module.event.inputKeyDown.first)
@@ -13997,8 +13987,9 @@
13997
13987
  $module.detach().appendTo($dimmer);
13998
13988
  }
13999
13989
  }
14000
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
13990
+ if (settings.transition && $.fn.transition !== undefined) {
14001
13991
  module.debug('Showing modal with css animations');
13992
+ module.set.observeAttributes(false);
14002
13993
  $module
14003
13994
  .transition({
14004
13995
  debug: settings.debug,
@@ -14016,6 +14007,7 @@
14016
14007
  module.save.focus();
14017
14008
  module.set.active();
14018
14009
  module.refreshInputs();
14010
+ requestAnimationFrame(module.set.observeAttributes);
14019
14011
  callback();
14020
14012
  },
14021
14013
  })
@@ -14045,8 +14037,9 @@
14045
14037
 
14046
14038
  if (module.is.animating() || module.is.active()) {
14047
14039
  module.debug('Hiding modal');
14048
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
14040
+ if (settings.transition && $.fn.transition !== undefined) {
14049
14041
  module.remove.active();
14042
+ module.set.observeAttributes(false);
14050
14043
  $module
14051
14044
  .transition({
14052
14045
  debug: settings.debug,
@@ -14382,9 +14375,7 @@
14382
14375
  return module.cache.isIE;
14383
14376
  },
14384
14377
  animating: function () {
14385
- return $module.transition('is supported')
14386
- ? $module.transition('is animating')
14387
- : $module.is(':visible');
14378
+ return $module.transition('is animating');
14388
14379
  },
14389
14380
  scrolling: function () {
14390
14381
  return $dimmable.hasClass(className.scrolling);
@@ -14427,6 +14418,9 @@
14427
14418
  },
14428
14419
 
14429
14420
  set: {
14421
+ observeAttributes: function (state) {
14422
+ observeAttributes = state !== false;
14423
+ },
14430
14424
  autofocus: function () {
14431
14425
  var
14432
14426
  $autofocus = $inputs.filter('[autofocus]'),
@@ -15008,7 +15002,7 @@
15008
15002
  })(jQuery, window, document);
15009
15003
 
15010
15004
  /*!
15011
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Nag
15005
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Nag
15012
15006
  * https://github.com/fomantic/Fomantic-UI/
15013
15007
  *
15014
15008
  *
@@ -15561,7 +15555,7 @@
15561
15555
  })(jQuery, window, document);
15562
15556
 
15563
15557
  /*!
15564
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Popup
15558
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Popup
15565
15559
  * https://github.com/fomantic/Fomantic-UI/
15566
15560
  *
15567
15561
  *
@@ -15976,7 +15970,7 @@
15976
15970
  animate: {
15977
15971
  show: function (callback) {
15978
15972
  callback = isFunction(callback) ? callback : function () {};
15979
- if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
15973
+ if (settings.transition && module.can.useElement('transition')) {
15980
15974
  module.set.visible();
15981
15975
  $popup
15982
15976
  .transition({
@@ -15998,7 +15992,7 @@
15998
15992
  hide: function (callback) {
15999
15993
  callback = isFunction(callback) ? callback : function () {};
16000
15994
  module.debug('Hiding pop-up');
16001
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
15995
+ if (settings.transition && $.fn.transition !== undefined) {
16002
15996
  $popup
16003
15997
  .transition({
16004
15998
  animation: (settings.transition.hideMethod || settings.transition) + ' out',
@@ -17097,7 +17091,7 @@
17097
17091
  })(jQuery, window, document);
17098
17092
 
17099
17093
  /*!
17100
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Progress
17094
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Progress
17101
17095
  * https://github.com/fomantic/Fomantic-UI/
17102
17096
  *
17103
17097
  *
@@ -17157,7 +17151,6 @@
17157
17151
  instance = $module.data(moduleNamespace),
17158
17152
 
17159
17153
  animating = false,
17160
- transitionEnd,
17161
17154
  module
17162
17155
  ;
17163
17156
  module = {
@@ -17213,7 +17206,6 @@
17213
17206
 
17214
17207
  initialize: function () {
17215
17208
  module.set.duration();
17216
- module.set.transitionEvent();
17217
17209
  module.debug(element);
17218
17210
 
17219
17211
  module.read.metadata();
@@ -17293,17 +17285,14 @@
17293
17285
 
17294
17286
  bind: {
17295
17287
  transitionEnd: function (callback) {
17296
- var
17297
- transitionEnd = module.get.transitionEnd()
17298
- ;
17299
17288
  $bars
17300
- .one(transitionEnd + eventNamespace, function (event) {
17289
+ .one('transitionend' + eventNamespace, function (event) {
17301
17290
  clearTimeout(module.failSafeTimer);
17302
17291
  callback.call(this, event);
17303
17292
  })
17304
17293
  ;
17305
17294
  module.failSafeTimer = setTimeout(function () {
17306
- $bars.triggerHandler(transitionEnd);
17295
+ $bars.triggerHandler('transitionend');
17307
17296
  }, settings.duration + settings.failSafeDelay);
17308
17297
  module.verbose('Adding fail safe timer', module.timer);
17309
17298
  },
@@ -17428,24 +17417,6 @@
17428
17417
  : value;
17429
17418
  },
17430
17419
 
17431
- transitionEnd: function () {
17432
- var
17433
- element = document.createElement('element'),
17434
- transitions = {
17435
- transition: 'transitionend',
17436
- OTransition: 'oTransitionEnd',
17437
- MozTransition: 'transitionend',
17438
- WebkitTransition: 'webkitTransitionEnd',
17439
- },
17440
- transition
17441
- ;
17442
- for (transition in transitions) {
17443
- if (element.style[transition] !== undefined) {
17444
- return transitions[transition];
17445
- }
17446
- }
17447
- },
17448
-
17449
17420
  // gets current displayed percentage (if animating values this is the intermediary value)
17450
17421
  displayPercent: function (index) {
17451
17422
  var
@@ -17785,9 +17756,6 @@
17785
17756
  settings.onError.call(element, module.value, module.total);
17786
17757
  });
17787
17758
  },
17788
- transitionEvent: function () {
17789
- transitionEnd = module.get.transitionEnd();
17790
- },
17791
17759
  total: function (totalValue) {
17792
17760
  module.total = totalValue;
17793
17761
  },
@@ -18106,7 +18074,7 @@
18106
18074
  })(jQuery, window, document);
18107
18075
 
18108
18076
  /*!
18109
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Slider
18077
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Slider
18110
18078
  * https://github.com/fomantic/Fomantic-UI/
18111
18079
  *
18112
18080
  *
@@ -19459,7 +19427,7 @@
19459
19427
  })(jQuery, window, document);
19460
19428
 
19461
19429
  /*!
19462
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Rating
19430
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Rating
19463
19431
  * https://github.com/fomantic/Fomantic-UI/
19464
19432
  *
19465
19433
  *
@@ -20002,7 +19970,7 @@
20002
19970
  })(jQuery, window, document);
20003
19971
 
20004
19972
  /*!
20005
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Search
19973
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Search
20006
19974
  * https://github.com/fomantic/Fomantic-UI/
20007
19975
  *
20008
19976
  *
@@ -20411,7 +20379,7 @@
20411
20379
  return module.is.focused() && !module.is.visible() && !module.is.empty();
20412
20380
  },
20413
20381
  transition: function () {
20414
- return settings.transition && $.fn.transition !== undefined && $module.transition('is supported');
20382
+ return settings.transition && $.fn.transition !== undefined;
20415
20383
  },
20416
20384
  },
20417
20385
 
@@ -21583,7 +21551,7 @@
21583
21551
  })(jQuery, window, document);
21584
21552
 
21585
21553
  /*!
21586
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Shape
21554
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Shape
21587
21555
  * https://github.com/fomantic/Fomantic-UI/
21588
21556
  *
21589
21557
  *
@@ -21700,33 +21668,29 @@
21700
21668
  module.set.active();
21701
21669
  };
21702
21670
  settings.onBeforeChange.call($nextSide[0]);
21703
- if (module.get.transitionEvent()) {
21704
- module.verbose('Starting CSS animation');
21671
+ module.verbose('Starting CSS animation');
21672
+ $module
21673
+ .addClass(className.animating)
21674
+ ;
21675
+ $sides
21676
+ .css(propertyObject)
21677
+ .one('transitionend', callback)
21678
+ ;
21679
+ module.set.duration(settings.duration);
21680
+ requestAnimationFrame(function () {
21705
21681
  $module
21706
21682
  .addClass(className.animating)
21707
21683
  ;
21708
- $sides
21709
- .css(propertyObject)
21710
- .one(module.get.transitionEvent(), callback)
21684
+ $activeSide
21685
+ .addClass(className.hidden)
21711
21686
  ;
21712
- module.set.duration(settings.duration);
21713
- requestAnimationFrame(function () {
21714
- $module
21715
- .addClass(className.animating)
21716
- ;
21717
- $activeSide
21718
- .addClass(className.hidden)
21719
- ;
21720
- });
21721
- } else {
21722
- callback();
21723
- }
21687
+ });
21724
21688
  },
21725
21689
 
21726
21690
  queue: function (method) {
21727
21691
  module.debug('Queueing animation of', method);
21728
21692
  $sides
21729
- .one(module.get.transitionEvent(), function () {
21693
+ .one('transitionend', function () {
21730
21694
  module.debug('Executing queued animation');
21731
21695
  setTimeout(function () {
21732
21696
  $module.shape(method);
@@ -21996,24 +21960,6 @@
21996
21960
  },
21997
21961
  },
21998
21962
 
21999
- transitionEvent: function () {
22000
- var
22001
- element = document.createElement('element'),
22002
- transitions = {
22003
- transition: 'transitionend',
22004
- OTransition: 'oTransitionEnd',
22005
- MozTransition: 'transitionend',
22006
- WebkitTransition: 'webkitTransitionEnd',
22007
- },
22008
- transition
22009
- ;
22010
- for (transition in transitions) {
22011
- if (element.style[transition] !== undefined) {
22012
- return transitions[transition];
22013
- }
22014
- }
22015
- },
22016
-
22017
21963
  nextSide: function () {
22018
21964
  return $activeSide.next(selector.side).length > 0
22019
21965
  ? $activeSide.next(selector.side)
@@ -22405,7 +22351,7 @@
22405
22351
  })(jQuery, window, document);
22406
22352
 
22407
22353
  /*!
22408
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Sidebar
22354
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Sidebar
22409
22355
  * https://github.com/fomantic/Fomantic-UI/
22410
22356
  *
22411
22357
  *
@@ -22475,7 +22421,6 @@
22475
22421
  elementNamespace,
22476
22422
  id,
22477
22423
  currentScroll,
22478
- transitionEvent,
22479
22424
  initialBodyMargin = '',
22480
22425
  tempBodyMargin = '',
22481
22426
  hadScrollbar = false,
@@ -22490,8 +22435,6 @@
22490
22435
 
22491
22436
  module.create.id();
22492
22437
 
22493
- transitionEvent = module.get.transitionEvent();
22494
-
22495
22438
  // avoids locking rendering if initialized in onReady
22496
22439
  if (settings.delaySetup) {
22497
22440
  requestAnimationFrame(module.setup.layout);
@@ -22898,13 +22841,13 @@
22898
22841
  };
22899
22842
  transitionEnd = function (event) {
22900
22843
  if (event.target === $transition[0]) {
22901
- $transition.off(transitionEvent + elementNamespace, transitionEnd);
22844
+ $transition.off('transitionend' + elementNamespace, transitionEnd);
22902
22845
  module.remove.animating();
22903
22846
  callback.call(element);
22904
22847
  }
22905
22848
  };
22906
- $transition.off(transitionEvent + elementNamespace);
22907
- $transition.on(transitionEvent + elementNamespace, transitionEnd);
22849
+ $transition.off('transitionend' + elementNamespace);
22850
+ $transition.on('transitionend' + elementNamespace, transitionEnd);
22908
22851
  requestAnimationFrame(animate);
22909
22852
  if (settings.dimPage && !module.othersVisible()) {
22910
22853
  requestAnimationFrame(dim);
@@ -22938,7 +22881,7 @@
22938
22881
  };
22939
22882
  transitionEnd = function (event) {
22940
22883
  if (event.target === $transition[0]) {
22941
- $transition.off(transitionEvent + elementNamespace, transitionEnd);
22884
+ $transition.off('transitionend' + elementNamespace, transitionEnd);
22942
22885
  module.remove.animating();
22943
22886
  module.remove.closing();
22944
22887
  module.remove.transition();
@@ -22952,8 +22895,8 @@
22952
22895
  callback.call(element);
22953
22896
  }
22954
22897
  };
22955
- $transition.off(transitionEvent + elementNamespace);
22956
- $transition.on(transitionEvent + elementNamespace, transitionEnd);
22898
+ $transition.off('transitionend' + elementNamespace);
22899
+ $transition.on('transitionend' + elementNamespace, transitionEnd);
22957
22900
  requestAnimationFrame(animate);
22958
22901
  },
22959
22902
 
@@ -23128,23 +23071,6 @@
23128
23071
 
23129
23072
  return transition;
23130
23073
  },
23131
- transitionEvent: function () {
23132
- var
23133
- element = document.createElement('element'),
23134
- transitions = {
23135
- transition: 'transitionend',
23136
- OTransition: 'oTransitionEnd',
23137
- MozTransition: 'transitionend',
23138
- WebkitTransition: 'webkitTransitionEnd',
23139
- },
23140
- transition
23141
- ;
23142
- for (transition in transitions) {
23143
- if (element.style[transition] !== undefined) {
23144
- return transitions[transition];
23145
- }
23146
- }
23147
- },
23148
23074
  },
23149
23075
  has: {
23150
23076
  scrollbar: function () {
@@ -23501,7 +23427,7 @@
23501
23427
  })(jQuery, window, document);
23502
23428
 
23503
23429
  /*!
23504
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Sticky
23430
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Sticky
23505
23431
  * https://github.com/fomantic/Fomantic-UI/
23506
23432
  *
23507
23433
  *
@@ -24416,7 +24342,7 @@
24416
24342
  })(jQuery, window, document);
24417
24343
 
24418
24344
  /*!
24419
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Tab
24345
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Tab
24420
24346
  * https://github.com/fomantic/Fomantic-UI/
24421
24347
  *
24422
24348
  *
@@ -25372,7 +25298,7 @@
25372
25298
  })(jQuery, window, document);
25373
25299
 
25374
25300
  /*!
25375
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Toast
25301
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Toast
25376
25302
  * https://github.com/fomantic/Fomantic-UI/
25377
25303
  *
25378
25304
  *
@@ -25770,7 +25696,7 @@
25770
25696
  animate: {
25771
25697
  show: function (callback) {
25772
25698
  callback = isFunction(callback) ? callback : function () {};
25773
- if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
25699
+ if (settings.transition && module.can.useElement('transition')) {
25774
25700
  module.set.visible();
25775
25701
  $toastBox
25776
25702
  .transition({
@@ -25790,7 +25716,7 @@
25790
25716
  },
25791
25717
  close: function (callback) {
25792
25718
  callback = isFunction(callback) ? callback : function () {};
25793
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
25719
+ if (settings.transition && $.fn.transition !== undefined) {
25794
25720
  $toastBox
25795
25721
  .transition({
25796
25722
  animation: settings.transition.hideMethod + ' out',
@@ -26325,7 +26251,7 @@
26325
26251
  })(jQuery, window, document);
26326
26252
 
26327
26253
  /*!
26328
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Transition
26254
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Transition
26329
26255
  * https://github.com/fomantic/Fomantic-UI/
26330
26256
  *
26331
26257
  *
@@ -26372,7 +26298,6 @@
26372
26298
  error,
26373
26299
  className,
26374
26300
  metadata,
26375
- animationEnd,
26376
26301
 
26377
26302
  moduleNamespace,
26378
26303
  eventNamespace,
@@ -26395,9 +26320,6 @@
26395
26320
  moduleNamespace = 'module-' + settings.namespace;
26396
26321
  instance = $module.data(moduleNamespace) || module;
26397
26322
 
26398
- // get vendor specific events
26399
- animationEnd = module.get.animationEndEvent();
26400
-
26401
26323
  if (methodInvoked) {
26402
26324
  methodInvoked = module.invoke(query);
26403
26325
  }
@@ -26478,11 +26400,7 @@
26478
26400
 
26479
26401
  animate: function (overrideSettings) {
26480
26402
  settings = overrideSettings || settings;
26481
- if (!module.is.supported()) {
26482
- module.error(error.support);
26483
26403
 
26484
- return false;
26485
- }
26486
26404
  module.debug('Preparing animation', settings.animation);
26487
26405
  if (module.is.animating()) {
26488
26406
  if (settings.queue) {
@@ -26521,7 +26439,7 @@
26521
26439
  module.debug('Queueing animation of', animation);
26522
26440
  module.queuing = true;
26523
26441
  $module
26524
- .one(animationEnd + '.queue' + eventNamespace, function () {
26442
+ .one('animationend.queue' + eventNamespace, function () {
26525
26443
  module.queuing = false;
26526
26444
  module.repaint();
26527
26445
  module.animate.apply(this, settings);
@@ -26701,7 +26619,7 @@
26701
26619
  module.debug('Starting tween', animationClass);
26702
26620
  $module
26703
26621
  .addClass(animationClass)
26704
- .one(animationEnd + '.complete' + eventNamespace, module.complete)
26622
+ .one('animationend.complete' + eventNamespace, module.complete)
26705
26623
  ;
26706
26624
  if (settings.useFailSafe) {
26707
26625
  module.add.failSafe();
@@ -26750,7 +26668,7 @@
26750
26668
  duration = module.get.duration()
26751
26669
  ;
26752
26670
  module.timer = setTimeout(function () {
26753
- $module.triggerHandler(animationEnd);
26671
+ $module.triggerHandler('animationend');
26754
26672
  }, duration + settings.failSafeDelay);
26755
26673
  module.verbose('Adding fail safe timer', module.timer);
26756
26674
  },
@@ -26938,45 +26856,6 @@
26938
26856
  transitionExists: function (animation) {
26939
26857
  return $.fn.transition.exists[animation];
26940
26858
  },
26941
- animationStartEvent: function () {
26942
- var
26943
- element = document.createElement('div'),
26944
- animations = {
26945
- animation: 'animationstart',
26946
- OAnimation: 'oAnimationStart',
26947
- MozAnimation: 'mozAnimationStart',
26948
- WebkitAnimation: 'webkitAnimationStart',
26949
- },
26950
- animation
26951
- ;
26952
- for (animation in animations) {
26953
- if (element.style[animation] !== undefined) {
26954
- return animations[animation];
26955
- }
26956
- }
26957
-
26958
- return false;
26959
- },
26960
- animationEndEvent: function () {
26961
- var
26962
- element = document.createElement('div'),
26963
- animations = {
26964
- animation: 'animationend',
26965
- OAnimation: 'oAnimationEnd',
26966
- MozAnimation: 'mozAnimationEnd',
26967
- WebkitAnimation: 'webkitAnimationEnd',
26968
- },
26969
- animation
26970
- ;
26971
- for (animation in animations) {
26972
- if (element.style[animation] !== undefined) {
26973
- return animations[animation];
26974
- }
26975
- }
26976
-
26977
- return false;
26978
- },
26979
-
26980
26859
  },
26981
26860
 
26982
26861
  can: {
@@ -27076,7 +26955,8 @@
27076
26955
  return $module.css('visibility') === 'hidden';
27077
26956
  },
27078
26957
  supported: function () {
27079
- return animationEnd !== false;
26958
+ // keep method for backward compatibility until 2.10.0
26959
+ return true;
27080
26960
  },
27081
26961
  },
27082
26962
 
@@ -27127,13 +27007,13 @@
27127
27007
 
27128
27008
  stop: function () {
27129
27009
  module.debug('Stopping current animation');
27130
- $module.triggerHandler(animationEnd);
27010
+ $module.triggerHandler('animationend');
27131
27011
  },
27132
27012
 
27133
27013
  stopAll: function () {
27134
27014
  module.debug('Stopping all animation');
27135
27015
  module.remove.queueCallback();
27136
- $module.triggerHandler(animationEnd);
27016
+ $module.triggerHandler('animationend');
27137
27017
  },
27138
27018
 
27139
27019
  clear: {
@@ -27271,8 +27151,7 @@
27271
27151
  $.each(query, function (depth, value) {
27272
27152
  var camelCaseValue = depth !== maxDepth
27273
27153
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
27274
- : query
27275
- ;
27154
+ : query;
27276
27155
  if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
27277
27156
  object = object[camelCaseValue];
27278
27157
  } else if (object[camelCaseValue] !== undefined) {
@@ -27401,14 +27280,13 @@
27401
27280
  // possible errors
27402
27281
  error: {
27403
27282
  noAnimation: 'Element is no longer attached to DOM. Unable to animate. Use silent setting to suppress this warning in production.',
27404
- support: 'This browser does not support CSS animations',
27405
27283
  },
27406
27284
 
27407
27285
  };
27408
27286
  })(jQuery, window, document);
27409
27287
 
27410
27288
  /*!
27411
- * # Fomantic-UI 2.9.2-beta.7+2015119 - API
27289
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - API
27412
27290
  * https://github.com/fomantic/Fomantic-UI/
27413
27291
  *
27414
27292
  *
@@ -28623,7 +28501,7 @@
28623
28501
  })(jQuery, window, document);
28624
28502
 
28625
28503
  /*!
28626
- * # Fomantic-UI 2.9.2-beta.7+2015119 - State
28504
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - State
28627
28505
  * https://github.com/fomantic/Fomantic-UI/
28628
28506
  *
28629
28507
  *
@@ -29316,7 +29194,7 @@
29316
29194
  })(jQuery, window, document);
29317
29195
 
29318
29196
  /*!
29319
- * # Fomantic-UI 2.9.2-beta.7+2015119 - Visibility
29197
+ * # Fomantic-UI 2.9.2-beta.8+8838309 - Visibility
29320
29198
  * https://github.com/fomantic/Fomantic-UI/
29321
29199
  *
29322
29200
  *