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

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 (169) 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 +147 -2
  84. package/dist/components/popup.js +20 -8
  85. package/dist/components/popup.min.css +2 -2
  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 +229 -51
  150. package/dist/semantic.js +118 -228
  151. package/dist/semantic.min.css +2 -2
  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 +19 -7
  162. package/src/definitions/modules/popup.less +47 -3
  163. package/src/definitions/modules/progress.js +2 -28
  164. package/src/definitions/modules/search.js +1 -1
  165. package/src/definitions/modules/shape.js +14 -36
  166. package/src/definitions/modules/sidebar.js +6 -26
  167. package/src/definitions/modules/toast.js +2 -2
  168. package/src/definitions/modules/transition.js +8 -56
  169. package/src/themes/default/modules/popup.variables +8 -0
@@ -69,7 +69,6 @@
69
69
  elementNamespace,
70
70
  id,
71
71
  currentScroll,
72
- transitionEvent,
73
72
  initialBodyMargin = '',
74
73
  tempBodyMargin = '',
75
74
  hadScrollbar = false,
@@ -84,8 +83,6 @@
84
83
 
85
84
  module.create.id();
86
85
 
87
- transitionEvent = module.get.transitionEvent();
88
-
89
86
  // avoids locking rendering if initialized in onReady
90
87
  if (settings.delaySetup) {
91
88
  requestAnimationFrame(module.setup.layout);
@@ -492,13 +489,13 @@
492
489
  };
493
490
  transitionEnd = function (event) {
494
491
  if (event.target === $transition[0]) {
495
- $transition.off(transitionEvent + elementNamespace, transitionEnd);
492
+ $transition.off('transitionend' + elementNamespace, transitionEnd);
496
493
  module.remove.animating();
497
494
  callback.call(element);
498
495
  }
499
496
  };
500
- $transition.off(transitionEvent + elementNamespace);
501
- $transition.on(transitionEvent + elementNamespace, transitionEnd);
497
+ $transition.off('transitionend' + elementNamespace);
498
+ $transition.on('transitionend' + elementNamespace, transitionEnd);
502
499
  requestAnimationFrame(animate);
503
500
  if (settings.dimPage && !module.othersVisible()) {
504
501
  requestAnimationFrame(dim);
@@ -532,7 +529,7 @@
532
529
  };
533
530
  transitionEnd = function (event) {
534
531
  if (event.target === $transition[0]) {
535
- $transition.off(transitionEvent + elementNamespace, transitionEnd);
532
+ $transition.off('transitionend' + elementNamespace, transitionEnd);
536
533
  module.remove.animating();
537
534
  module.remove.closing();
538
535
  module.remove.transition();
@@ -546,8 +543,8 @@
546
543
  callback.call(element);
547
544
  }
548
545
  };
549
- $transition.off(transitionEvent + elementNamespace);
550
- $transition.on(transitionEvent + elementNamespace, transitionEnd);
546
+ $transition.off('transitionend' + elementNamespace);
547
+ $transition.on('transitionend' + elementNamespace, transitionEnd);
551
548
  requestAnimationFrame(animate);
552
549
  },
553
550
 
@@ -722,23 +719,6 @@
722
719
 
723
720
  return transition;
724
721
  },
725
- transitionEvent: function () {
726
- var
727
- element = document.createElement('element'),
728
- transitions = {
729
- transition: 'transitionend',
730
- OTransition: 'oTransitionEnd',
731
- MozTransition: 'transitionend',
732
- WebkitTransition: 'webkitTransitionEnd',
733
- },
734
- transition
735
- ;
736
- for (transition in transitions) {
737
- if (element.style[transition] !== undefined) {
738
- return transitions[transition];
739
- }
740
- }
741
- },
742
722
  },
743
723
  has: {
744
724
  scrollbar: function () {
@@ -397,7 +397,7 @@
397
397
  animate: {
398
398
  show: function (callback) {
399
399
  callback = isFunction(callback) ? callback : function () {};
400
- if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
400
+ if (settings.transition && module.can.useElement('transition')) {
401
401
  module.set.visible();
402
402
  $toastBox
403
403
  .transition({
@@ -417,7 +417,7 @@
417
417
  },
418
418
  close: function (callback) {
419
419
  callback = isFunction(callback) ? callback : function () {};
420
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
420
+ if (settings.transition && $.fn.transition !== undefined) {
421
421
  $toastBox
422
422
  .transition({
423
423
  animation: settings.transition.hideMethod + ' out',
@@ -46,7 +46,6 @@
46
46
  error,
47
47
  className,
48
48
  metadata,
49
- animationEnd,
50
49
 
51
50
  moduleNamespace,
52
51
  eventNamespace,
@@ -69,9 +68,6 @@
69
68
  moduleNamespace = 'module-' + settings.namespace;
70
69
  instance = $module.data(moduleNamespace) || module;
71
70
 
72
- // get vendor specific events
73
- animationEnd = module.get.animationEndEvent();
74
-
75
71
  if (methodInvoked) {
76
72
  methodInvoked = module.invoke(query);
77
73
  }
@@ -152,11 +148,7 @@
152
148
 
153
149
  animate: function (overrideSettings) {
154
150
  settings = overrideSettings || settings;
155
- if (!module.is.supported()) {
156
- module.error(error.support);
157
151
 
158
- return false;
159
- }
160
152
  module.debug('Preparing animation', settings.animation);
161
153
  if (module.is.animating()) {
162
154
  if (settings.queue) {
@@ -195,7 +187,7 @@
195
187
  module.debug('Queueing animation of', animation);
196
188
  module.queuing = true;
197
189
  $module
198
- .one(animationEnd + '.queue' + eventNamespace, function () {
190
+ .one('animationend.queue' + eventNamespace, function () {
199
191
  module.queuing = false;
200
192
  module.repaint();
201
193
  module.animate.apply(this, settings);
@@ -375,7 +367,7 @@
375
367
  module.debug('Starting tween', animationClass);
376
368
  $module
377
369
  .addClass(animationClass)
378
- .one(animationEnd + '.complete' + eventNamespace, module.complete)
370
+ .one('animationend.complete' + eventNamespace, module.complete)
379
371
  ;
380
372
  if (settings.useFailSafe) {
381
373
  module.add.failSafe();
@@ -424,7 +416,7 @@
424
416
  duration = module.get.duration()
425
417
  ;
426
418
  module.timer = setTimeout(function () {
427
- $module.triggerHandler(animationEnd);
419
+ $module.triggerHandler('animationend');
428
420
  }, duration + settings.failSafeDelay);
429
421
  module.verbose('Adding fail safe timer', module.timer);
430
422
  },
@@ -612,45 +604,6 @@
612
604
  transitionExists: function (animation) {
613
605
  return $.fn.transition.exists[animation];
614
606
  },
615
- animationStartEvent: function () {
616
- var
617
- element = document.createElement('div'),
618
- animations = {
619
- animation: 'animationstart',
620
- OAnimation: 'oAnimationStart',
621
- MozAnimation: 'mozAnimationStart',
622
- WebkitAnimation: 'webkitAnimationStart',
623
- },
624
- animation
625
- ;
626
- for (animation in animations) {
627
- if (element.style[animation] !== undefined) {
628
- return animations[animation];
629
- }
630
- }
631
-
632
- return false;
633
- },
634
- animationEndEvent: function () {
635
- var
636
- element = document.createElement('div'),
637
- animations = {
638
- animation: 'animationend',
639
- OAnimation: 'oAnimationEnd',
640
- MozAnimation: 'mozAnimationEnd',
641
- WebkitAnimation: 'webkitAnimationEnd',
642
- },
643
- animation
644
- ;
645
- for (animation in animations) {
646
- if (element.style[animation] !== undefined) {
647
- return animations[animation];
648
- }
649
- }
650
-
651
- return false;
652
- },
653
-
654
607
  },
655
608
 
656
609
  can: {
@@ -750,7 +703,8 @@
750
703
  return $module.css('visibility') === 'hidden';
751
704
  },
752
705
  supported: function () {
753
- return animationEnd !== false;
706
+ // keep method for backward compatibility until 2.10.0
707
+ return true;
754
708
  },
755
709
  },
756
710
 
@@ -801,13 +755,13 @@
801
755
 
802
756
  stop: function () {
803
757
  module.debug('Stopping current animation');
804
- $module.triggerHandler(animationEnd);
758
+ $module.triggerHandler('animationend');
805
759
  },
806
760
 
807
761
  stopAll: function () {
808
762
  module.debug('Stopping all animation');
809
763
  module.remove.queueCallback();
810
- $module.triggerHandler(animationEnd);
764
+ $module.triggerHandler('animationend');
811
765
  },
812
766
 
813
767
  clear: {
@@ -945,8 +899,7 @@
945
899
  $.each(query, function (depth, value) {
946
900
  var camelCaseValue = depth !== maxDepth
947
901
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
948
- : query
949
- ;
902
+ : query;
950
903
  if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
951
904
  object = object[camelCaseValue];
952
905
  } else if (object[camelCaseValue] !== undefined) {
@@ -1075,7 +1028,6 @@
1075
1028
  // possible errors
1076
1029
  error: {
1077
1030
  noAnimation: 'Element is no longer attached to DOM. Unable to animate. Use silent setting to suppress this warning in production.',
1078
- support: 'This browser does not support CSS animations',
1079
1031
  },
1080
1032
 
1081
1033
  };
@@ -109,7 +109,15 @@
109
109
  States
110
110
  -------------------- */
111
111
 
112
+ @loadingOpacity: 0.3;
113
+ @loadingColoredPercent: 30%;
114
+ @loadingPointerEvents: none;
112
115
  @loadingZIndex: -1;
116
+ @loaderSize: 2em;
117
+ @loaderLineZIndex: 101;
118
+
119
+ /* backward compatible just in case */
120
+ @invisibleZIndex: @loadingZIndex;
113
121
 
114
122
  /* -------------------
115
123
  Variations