fomantic-ui 2.9.2-beta.6 → 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.
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +4 -4
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +2 -2
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +7 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +2 -2
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +2 -2
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +3 -3
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +3 -3
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +2 -2
- package/dist/components/embed.js +2 -2
- package/dist/components/embed.min.css +2 -2
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +6 -0
- package/dist/components/feed.css +2 -2
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +7 -1
- package/dist/components/flyout.js +18 -30
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +3 -3
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +3 -3
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +2 -2
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -1
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +2 -2
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +15 -8
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +7 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +2 -2
- package/dist/components/popup.js +3 -3
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +3 -29
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +2 -2
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +3 -3
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +15 -37
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +7 -27
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +6 -0
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +2 -2
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +2 -2
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +7 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +7 -1
- package/dist/components/toast.js +3 -3
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +10 -61
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +96 -68
- package/dist/semantic.js +103 -227
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/behaviors/form.js +2 -2
- package/src/definitions/modules/accordion.js +3 -3
- package/src/definitions/modules/dimmer.js +2 -2
- package/src/definitions/modules/dropdown.js +2 -2
- package/src/definitions/modules/embed.js +1 -1
- package/src/definitions/modules/flyout.js +17 -29
- package/src/definitions/modules/modal.js +13 -7
- package/src/definitions/modules/popup.js +2 -2
- package/src/definitions/modules/progress.js +2 -28
- package/src/definitions/modules/search.js +1 -1
- package/src/definitions/modules/shape.js +14 -36
- package/src/definitions/modules/sidebar.js +6 -26
- package/src/definitions/modules/toast.js +2 -2
- package/src/definitions/modules/transition.js +8 -56
- package/tasks/install.js +2 -2
@@ -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(
|
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(
|
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(
|
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
|
-
|
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(
|
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(
|
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
|
};
|
package/tasks/install.js
CHANGED
@@ -77,8 +77,8 @@ module.exports = function (callback) {
|
|
77
77
|
return;
|
78
78
|
}
|
79
79
|
|
80
|
-
if (!
|
81
|
-
console.log('\u001B[92mgulp install\u001B[0m must run inside \u001B[92mnode_modules' + path.sep + 'fomantic-ui\u001B[0m');
|
80
|
+
if (!fs.existsSync(source.site)) {
|
81
|
+
console.log('Missing _site folder. \u001B[92mgulp install\u001B[0m must run inside \u001B[92mnode_modules' + path.sep + 'fomantic-ui\u001B[0m');
|
82
82
|
console.error('Aborting.');
|
83
83
|
callback();
|
84
84
|
|