fomantic-ui 2.9.0-beta.308 → 2.9.0-beta.310
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 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- 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 +1 -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 +1 -1
- 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 +1 -1
- 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 +7 -1
- 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 +4 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/feed.css +1 -1
- 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/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- 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 +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- 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/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +5 -1
- 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 +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +4 -2
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- 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 +12 -5
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- 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.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 +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- 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 +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +3 -1
- 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 +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +49 -49
- package/dist/semantic.js +57 -30
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/modules/accordion.js +3 -0
- package/src/definitions/modules/dimmer.js +6 -0
- package/src/definitions/modules/dropdown.js +3 -0
- package/src/definitions/modules/modal.js +4 -0
- package/src/definitions/modules/popup.js +3 -1
- package/src/definitions/modules/search.js +11 -4
- package/src/definitions/modules/toast.js +2 -0
package/package.json
CHANGED
@@ -190,6 +190,7 @@ $.fn.accordion = function(parameters) {
|
|
190
190
|
useFailSafe : true,
|
191
191
|
debug : settings.debug,
|
192
192
|
verbose : settings.verbose,
|
193
|
+
silent : settings.silent,
|
193
194
|
duration : settings.duration,
|
194
195
|
skipInlineHidden : true,
|
195
196
|
onComplete: function() {
|
@@ -255,6 +256,7 @@ $.fn.accordion = function(parameters) {
|
|
255
256
|
useFailSafe : true,
|
256
257
|
debug : settings.debug,
|
257
258
|
verbose : settings.verbose,
|
259
|
+
silent : settings.silent,
|
258
260
|
duration : settings.duration,
|
259
261
|
skipInlineHidden : true
|
260
262
|
})
|
@@ -325,6 +327,7 @@ $.fn.accordion = function(parameters) {
|
|
325
327
|
useFailSafe : true,
|
326
328
|
debug : settings.debug,
|
327
329
|
verbose : settings.verbose,
|
330
|
+
silent : settings.silent,
|
328
331
|
duration : settings.duration,
|
329
332
|
skipInlineHidden : true
|
330
333
|
})
|
@@ -258,6 +258,9 @@ $.fn.dimmer = function(parameters) {
|
|
258
258
|
}
|
259
259
|
$dimmer
|
260
260
|
.transition({
|
261
|
+
debug : settings.debug,
|
262
|
+
verbose : settings.verbose,
|
263
|
+
silent : settings.silent,
|
261
264
|
displayType : settings.useFlex
|
262
265
|
? 'flex'
|
263
266
|
: 'block',
|
@@ -307,6 +310,9 @@ $.fn.dimmer = function(parameters) {
|
|
307
310
|
module.verbose('Hiding dimmer with css');
|
308
311
|
$dimmer
|
309
312
|
.transition({
|
313
|
+
debug : settings.debug,
|
314
|
+
verbose : settings.verbose,
|
315
|
+
silent : settings.silent,
|
310
316
|
displayType : settings.useFlex
|
311
317
|
? 'flex'
|
312
318
|
: 'block',
|
@@ -2891,6 +2891,7 @@ $.fn.dropdown = function(parameters) {
|
|
2891
2891
|
animation : settings.label.transition,
|
2892
2892
|
debug : settings.debug,
|
2893
2893
|
verbose : settings.verbose,
|
2894
|
+
silent : settings.silent,
|
2894
2895
|
duration : settings.label.duration
|
2895
2896
|
})
|
2896
2897
|
;
|
@@ -3679,6 +3680,7 @@ $.fn.dropdown = function(parameters) {
|
|
3679
3680
|
animation : transition + ' in',
|
3680
3681
|
debug : settings.debug,
|
3681
3682
|
verbose : settings.verbose,
|
3683
|
+
silent : settings.silent,
|
3682
3684
|
duration : settings.transition.showDuration || settings.duration,
|
3683
3685
|
queue : true,
|
3684
3686
|
onStart : start,
|
@@ -3726,6 +3728,7 @@ $.fn.dropdown = function(parameters) {
|
|
3726
3728
|
duration : settings.transition.hideDuration || settings.duration,
|
3727
3729
|
debug : settings.debug,
|
3728
3730
|
verbose : settings.verbose,
|
3731
|
+
silent : settings.silent,
|
3729
3732
|
queue : false,
|
3730
3733
|
onStart : start,
|
3731
3734
|
displayType: module.get.displayType(),
|
@@ -552,6 +552,8 @@ $.fn.modal = function(parameters) {
|
|
552
552
|
$module
|
553
553
|
.transition({
|
554
554
|
debug : settings.debug,
|
555
|
+
verbose : settings.verbose,
|
556
|
+
silent : settings.silent,
|
555
557
|
animation : (settings.transition.showMethod || settings.transition) + ' in',
|
556
558
|
queue : settings.queue,
|
557
559
|
duration : settings.transition.showDuration || settings.duration,
|
@@ -602,6 +604,8 @@ $.fn.modal = function(parameters) {
|
|
602
604
|
$module
|
603
605
|
.transition({
|
604
606
|
debug : settings.debug,
|
607
|
+
verbose : settings.verbose,
|
608
|
+
silent : settings.silent,
|
605
609
|
animation : (settings.transition.hideMethod || settings.transition) + ' out',
|
606
610
|
queue : settings.queue,
|
607
611
|
duration : settings.transition.hideDuration || settings.duration,
|
@@ -438,6 +438,7 @@ $.fn.popup = function(parameters) {
|
|
438
438
|
queue : false,
|
439
439
|
debug : settings.debug,
|
440
440
|
verbose : settings.verbose,
|
441
|
+
silent : settings.silent,
|
441
442
|
duration : settings.transition.showDuration || settings.duration,
|
442
443
|
onComplete : function() {
|
443
444
|
module.bind.close();
|
@@ -462,6 +463,7 @@ $.fn.popup = function(parameters) {
|
|
462
463
|
duration : settings.transition.hideDuration || settings.duration,
|
463
464
|
debug : settings.debug,
|
464
465
|
verbose : settings.verbose,
|
466
|
+
silent : settings.silent,
|
465
467
|
onComplete : function() {
|
466
468
|
module.reset();
|
467
469
|
callback.call($popup, element);
|
@@ -1135,7 +1137,7 @@ $.fn.popup = function(parameters) {
|
|
1135
1137
|
return !module.is.visible();
|
1136
1138
|
},
|
1137
1139
|
rtl: function () {
|
1138
|
-
return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
|
1140
|
+
return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl' || $body.attr('dir') === 'rtl' || $body.css('direction') === 'rtl' || $context.attr('dir') === 'rtl' || $context.css('direction') === 'rtl';
|
1139
1141
|
}
|
1140
1142
|
},
|
1141
1143
|
|
@@ -293,8 +293,12 @@ $.fn.search = function(parameters) {
|
|
293
293
|
;
|
294
294
|
// search shortcuts
|
295
295
|
if(keyCode == keys.escape) {
|
296
|
-
module.
|
297
|
-
|
296
|
+
if(!module.is.visible()) {
|
297
|
+
module.verbose('Escape key pressed, blurring search field');
|
298
|
+
$prompt.blur();
|
299
|
+
} else {
|
300
|
+
module.hideResults();
|
301
|
+
}
|
298
302
|
event.stopPropagation();
|
299
303
|
resultsDismissed = true;
|
300
304
|
}
|
@@ -531,8 +535,8 @@ $.fn.search = function(parameters) {
|
|
531
535
|
},
|
532
536
|
type: function(type) {
|
533
537
|
type = type || settings.type;
|
534
|
-
if(
|
535
|
-
$module.addClass(
|
538
|
+
if(className[type]) {
|
539
|
+
$module.addClass(className[type]);
|
536
540
|
}
|
537
541
|
},
|
538
542
|
buttonPressed: function() {
|
@@ -994,6 +998,7 @@ $.fn.search = function(parameters) {
|
|
994
998
|
animation : settings.transition + ' in',
|
995
999
|
debug : settings.debug,
|
996
1000
|
verbose : settings.verbose,
|
1001
|
+
silent : settings.silent,
|
997
1002
|
duration : settings.duration,
|
998
1003
|
onShow : function() {
|
999
1004
|
var $firstResult = $module.find(selector.result).eq(0);
|
@@ -1029,6 +1034,7 @@ $.fn.search = function(parameters) {
|
|
1029
1034
|
animation : settings.transition + ' out',
|
1030
1035
|
debug : settings.debug,
|
1031
1036
|
verbose : settings.verbose,
|
1037
|
+
silent : settings.silent,
|
1032
1038
|
duration : settings.duration,
|
1033
1039
|
onComplete : function() {
|
1034
1040
|
callback();
|
@@ -1351,6 +1357,7 @@ $.fn.search.settings = {
|
|
1351
1357
|
className: {
|
1352
1358
|
animating : 'animating',
|
1353
1359
|
active : 'active',
|
1360
|
+
category : 'category',
|
1354
1361
|
empty : 'empty',
|
1355
1362
|
focus : 'focus',
|
1356
1363
|
hidden : 'hidden',
|
@@ -391,6 +391,7 @@ $.fn.toast = function(parameters) {
|
|
391
391
|
queue : false,
|
392
392
|
debug : settings.debug,
|
393
393
|
verbose : settings.verbose,
|
394
|
+
silent : settings.silent,
|
394
395
|
duration : settings.transition.showDuration,
|
395
396
|
onComplete : function() {
|
396
397
|
callback.call($toastBox, element);
|
@@ -410,6 +411,7 @@ $.fn.toast = function(parameters) {
|
|
410
411
|
duration : settings.transition.hideDuration,
|
411
412
|
debug : settings.debug,
|
412
413
|
verbose : settings.verbose,
|
414
|
+
silent : settings.silent,
|
413
415
|
interval : 50,
|
414
416
|
|
415
417
|
onBeforeHide: function(callback){
|