fomantic-ui 2.9.0-beta.296 → 2.9.0-beta.299
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 +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- 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 +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- 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 +17 -6
- 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 +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- 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 +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- 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 +22 -6
- 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 +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- 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 +62 -35
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/modules/dropdown.js +16 -5
- package/src/definitions/modules/search.js +21 -5
package/dist/semantic.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.0-beta.
|
2
|
+
* # Fomantic UI - 2.9.0-beta.299+f49946a
|
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.
|
12
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - 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.
|
506
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Form Validation
|
507
507
|
* http://github.com/fomantic/Fomantic-UI/
|
508
508
|
*
|
509
509
|
*
|
@@ -2584,7 +2584,7 @@ $.fn.form.settings = {
|
|
2584
2584
|
})( jQuery, window, document );
|
2585
2585
|
|
2586
2586
|
/*!
|
2587
|
-
* # Fomantic-UI 2.9.0-beta.
|
2587
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Accordion
|
2588
2588
|
* http://github.com/fomantic/Fomantic-UI/
|
2589
2589
|
*
|
2590
2590
|
*
|
@@ -3206,7 +3206,7 @@ $.extend( $.easing, {
|
|
3206
3206
|
|
3207
3207
|
|
3208
3208
|
/*!
|
3209
|
-
* # Fomantic-UI 2.9.0-beta.
|
3209
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Calendar
|
3210
3210
|
* http://github.com/fomantic/Fomantic-UI/
|
3211
3211
|
*
|
3212
3212
|
*
|
@@ -5095,7 +5095,7 @@ $.fn.calendar.settings = {
|
|
5095
5095
|
})(jQuery, window, document);
|
5096
5096
|
|
5097
5097
|
/*!
|
5098
|
-
* # Fomantic-UI 2.9.0-beta.
|
5098
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Checkbox
|
5099
5099
|
* http://github.com/fomantic/Fomantic-UI/
|
5100
5100
|
*
|
5101
5101
|
*
|
@@ -5978,7 +5978,7 @@ $.fn.checkbox.settings = {
|
|
5978
5978
|
})( jQuery, window, document );
|
5979
5979
|
|
5980
5980
|
/*!
|
5981
|
-
* # Fomantic-UI 2.9.0-beta.
|
5981
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Dimmer
|
5982
5982
|
* http://github.com/fomantic/Fomantic-UI/
|
5983
5983
|
*
|
5984
5984
|
*
|
@@ -6741,7 +6741,7 @@ $.fn.dimmer.settings = {
|
|
6741
6741
|
})( jQuery, window, document );
|
6742
6742
|
|
6743
6743
|
/*!
|
6744
|
-
* # Fomantic-UI 2.9.0-beta.
|
6744
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Dropdown
|
6745
6745
|
* http://github.com/fomantic/Fomantic-UI/
|
6746
6746
|
*
|
6747
6747
|
*
|
@@ -7556,20 +7556,28 @@ $.fn.dropdown = function(parameters) {
|
|
7556
7556
|
throttle : settings.throttle,
|
7557
7557
|
urlData : {
|
7558
7558
|
query: query
|
7559
|
-
}
|
7560
|
-
|
7559
|
+
}
|
7560
|
+
},
|
7561
|
+
apiCallbacks = {
|
7562
|
+
onError: function(errorMessage, $module, xhr) {
|
7561
7563
|
module.add.message(message.serverError);
|
7562
7564
|
iconClicked = false;
|
7563
7565
|
focused = false;
|
7564
7566
|
callback.apply(null, callbackParameters);
|
7567
|
+
if(typeof settings.apiSettings.onError === 'function') {
|
7568
|
+
settings.apiSettings.onError.call(this, errorMessage, $module, xhr);
|
7569
|
+
}
|
7565
7570
|
},
|
7566
|
-
onFailure: function() {
|
7571
|
+
onFailure: function(response, $module, xhr) {
|
7567
7572
|
module.add.message(message.serverError);
|
7568
7573
|
iconClicked = false;
|
7569
7574
|
focused = false;
|
7570
7575
|
callback.apply(null, callbackParameters);
|
7576
|
+
if(typeof settings.apiSettings.onFailure === 'function') {
|
7577
|
+
settings.apiSettings.onFailure.call(this, response, $module, xhr);
|
7578
|
+
}
|
7571
7579
|
},
|
7572
|
-
onSuccess : function(response) {
|
7580
|
+
onSuccess : function(response, $module, xhr) {
|
7573
7581
|
var
|
7574
7582
|
values = response[fields.remoteValues]
|
7575
7583
|
;
|
@@ -7594,13 +7602,16 @@ $.fn.dropdown = function(parameters) {
|
|
7594
7602
|
iconClicked = false;
|
7595
7603
|
focused = false;
|
7596
7604
|
callback.apply(null, callbackParameters);
|
7605
|
+
if(typeof settings.apiSettings.onSuccess === 'function') {
|
7606
|
+
settings.apiSettings.onSuccess.call(this, response, $module, xhr);
|
7607
|
+
}
|
7597
7608
|
}
|
7598
7609
|
}
|
7599
7610
|
;
|
7600
7611
|
if( !$module.api('get request') ) {
|
7601
7612
|
module.setup.api();
|
7602
7613
|
}
|
7603
|
-
apiSettings = $.extend(true, {}, apiSettings, settings.apiSettings);
|
7614
|
+
apiSettings = $.extend(true, {}, apiSettings, settings.apiSettings, apiCallbacks);
|
7604
7615
|
$module
|
7605
7616
|
.api('setting', apiSettings)
|
7606
7617
|
.api('query')
|
@@ -11096,7 +11107,7 @@ $.fn.dropdown.settings.templates = {
|
|
11096
11107
|
})( jQuery, window, document );
|
11097
11108
|
|
11098
11109
|
/*!
|
11099
|
-
* # Fomantic-UI 2.9.0-beta.
|
11110
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Embed
|
11100
11111
|
* http://github.com/fomantic/Fomantic-UI/
|
11101
11112
|
*
|
11102
11113
|
*
|
@@ -11806,7 +11817,7 @@ $.fn.embed.settings = {
|
|
11806
11817
|
})( jQuery, window, document );
|
11807
11818
|
|
11808
11819
|
/*!
|
11809
|
-
* # Fomantic-UI 2.9.0-beta.
|
11820
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Modal
|
11810
11821
|
* http://github.com/fomantic/Fomantic-UI/
|
11811
11822
|
*
|
11812
11823
|
*
|
@@ -13337,7 +13348,7 @@ $.fn.modal.settings.templates = {
|
|
13337
13348
|
})( jQuery, window, document );
|
13338
13349
|
|
13339
13350
|
/*!
|
13340
|
-
* # Fomantic-UI 2.9.0-beta.
|
13351
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Nag
|
13341
13352
|
* http://github.com/fomantic/Fomantic-UI/
|
13342
13353
|
*
|
13343
13354
|
*
|
@@ -13896,7 +13907,7 @@ $.extend( $.easing, {
|
|
13896
13907
|
})( jQuery, window, document );
|
13897
13908
|
|
13898
13909
|
/*!
|
13899
|
-
* # Fomantic-UI 2.9.0-beta.
|
13910
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Popup
|
13900
13911
|
* http://github.com/fomantic/Fomantic-UI/
|
13901
13912
|
*
|
13902
13913
|
*
|
@@ -15438,7 +15449,7 @@ $.fn.popup.settings = {
|
|
15438
15449
|
})( jQuery, window, document );
|
15439
15450
|
|
15440
15451
|
/*!
|
15441
|
-
* # Fomantic-UI 2.9.0-beta.
|
15452
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Progress
|
15442
15453
|
* http://github.com/fomantic/Fomantic-UI/
|
15443
15454
|
*
|
15444
15455
|
*
|
@@ -16475,7 +16486,7 @@ $.fn.progress.settings = {
|
|
16475
16486
|
})( jQuery, window, document );
|
16476
16487
|
|
16477
16488
|
/*!
|
16478
|
-
* # Fomantic-UI 2.9.0-beta.
|
16489
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Slider
|
16479
16490
|
* http://github.com/fomantic/Fomantic-UI/
|
16480
16491
|
*
|
16481
16492
|
*
|
@@ -17831,7 +17842,7 @@ $.fn.slider.settings = {
|
|
17831
17842
|
})( jQuery, window, document );
|
17832
17843
|
|
17833
17844
|
/*!
|
17834
|
-
* # Fomantic-UI 2.9.0-beta.
|
17845
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Rating
|
17835
17846
|
* http://github.com/fomantic/Fomantic-UI/
|
17836
17847
|
*
|
17837
17848
|
*
|
@@ -18386,7 +18397,7 @@ $.fn.rating.settings = {
|
|
18386
18397
|
})( jQuery, window, document );
|
18387
18398
|
|
18388
18399
|
/*!
|
18389
|
-
* # Fomantic-UI 2.9.0-beta.
|
18400
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Search
|
18390
18401
|
* http://github.com/fomantic/Fomantic-UI/
|
18391
18402
|
*
|
18392
18403
|
*
|
@@ -18754,20 +18765,36 @@ $.fn.search = function(parameters) {
|
|
18754
18765
|
urlData : {
|
18755
18766
|
query : searchTerm
|
18756
18767
|
},
|
18757
|
-
|
18768
|
+
},
|
18769
|
+
apiCallbacks = {
|
18770
|
+
onSuccess : function(response, $module, xhr) {
|
18758
18771
|
module.parse.response.call(element, response, searchTerm);
|
18759
18772
|
callback();
|
18773
|
+
if(settings.apiSettings && typeof settings.apiSettings.onSuccess === 'function') {
|
18774
|
+
settings.apiSettings.onSuccess.call(this, response, $module, xhr);
|
18775
|
+
}
|
18760
18776
|
},
|
18761
|
-
onFailure : function() {
|
18777
|
+
onFailure : function(response, $module, xhr) {
|
18762
18778
|
module.displayMessage(error.serverError);
|
18763
18779
|
callback();
|
18780
|
+
if(settings.apiSettings && typeof settings.apiSettings.onFailure === 'function') {
|
18781
|
+
settings.apiSettings.onFailure.call(this, response, $module, xhr);
|
18782
|
+
}
|
18764
18783
|
},
|
18765
|
-
onAbort : function(
|
18784
|
+
onAbort : function(status, $module, xhr) {
|
18785
|
+
if(settings.apiSettings && typeof settings.apiSettings.onAbort === 'function') {
|
18786
|
+
settings.apiSettings.onAbort.call(this, status, $module, xhr);
|
18787
|
+
}
|
18766
18788
|
},
|
18767
|
-
onError : module
|
18789
|
+
onError : function(errorMessage, $module, xhr){
|
18790
|
+
module.error();
|
18791
|
+
if(settings.apiSettings && typeof settings.apiSettings.onError === 'function') {
|
18792
|
+
settings.apiSettings.onError.call(this, errorMessage, $module, xhr);
|
18793
|
+
}
|
18794
|
+
}
|
18768
18795
|
}
|
18769
18796
|
;
|
18770
|
-
$.extend(true, apiSettings, settings.apiSettings);
|
18797
|
+
$.extend(true, apiSettings, settings.apiSettings, apiCallbacks);
|
18771
18798
|
module.verbose('Setting up API request', apiSettings);
|
18772
18799
|
$module.api(apiSettings);
|
18773
18800
|
}
|
@@ -19954,7 +19981,7 @@ $.fn.search.settings = {
|
|
19954
19981
|
})( jQuery, window, document );
|
19955
19982
|
|
19956
19983
|
/*!
|
19957
|
-
* # Fomantic-UI 2.9.0-beta.
|
19984
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Shape
|
19958
19985
|
* http://github.com/fomantic/Fomantic-UI/
|
19959
19986
|
*
|
19960
19987
|
*
|
@@ -20803,7 +20830,7 @@ $.fn.shape.settings = {
|
|
20803
20830
|
})( jQuery, window, document );
|
20804
20831
|
|
20805
20832
|
/*!
|
20806
|
-
* # Fomantic-UI 2.9.0-beta.
|
20833
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Sidebar
|
20807
20834
|
* http://github.com/fomantic/Fomantic-UI/
|
20808
20835
|
*
|
20809
20836
|
*
|
@@ -21842,7 +21869,7 @@ $.fn.sidebar.settings = {
|
|
21842
21869
|
})( jQuery, window, document );
|
21843
21870
|
|
21844
21871
|
/*!
|
21845
|
-
* # Fomantic-UI 2.9.0-beta.
|
21872
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Sticky
|
21846
21873
|
* http://github.com/fomantic/Fomantic-UI/
|
21847
21874
|
*
|
21848
21875
|
*
|
@@ -22800,7 +22827,7 @@ $.fn.sticky.settings = {
|
|
22800
22827
|
})( jQuery, window, document );
|
22801
22828
|
|
22802
22829
|
/*!
|
22803
|
-
* # Fomantic-UI 2.9.0-beta.
|
22830
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Tab
|
22804
22831
|
* http://github.com/fomantic/Fomantic-UI/
|
22805
22832
|
*
|
22806
22833
|
*
|
@@ -23820,7 +23847,7 @@ $.fn.tab.settings = {
|
|
23820
23847
|
})( jQuery, window, document );
|
23821
23848
|
|
23822
23849
|
/*!
|
23823
|
-
* # Fomantic-UI 2.9.0-beta.
|
23850
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Toast
|
23824
23851
|
* http://github.com/fomantic/Fomantic-UI/
|
23825
23852
|
*
|
23826
23853
|
*
|
@@ -24745,7 +24772,7 @@ $.extend( $.easing, {
|
|
24745
24772
|
})( jQuery, window, document );
|
24746
24773
|
|
24747
24774
|
/*!
|
24748
|
-
* # Fomantic-UI 2.9.0-beta.
|
24775
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Transition
|
24749
24776
|
* http://github.com/fomantic/Fomantic-UI/
|
24750
24777
|
*
|
24751
24778
|
*
|
@@ -25860,7 +25887,7 @@ $.fn.transition.settings = {
|
|
25860
25887
|
})( jQuery, window, document );
|
25861
25888
|
|
25862
25889
|
/*!
|
25863
|
-
* # Fomantic-UI 2.9.0-beta.
|
25890
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - API
|
25864
25891
|
* http://github.com/fomantic/Fomantic-UI/
|
25865
25892
|
*
|
25866
25893
|
*
|
@@ -27097,7 +27124,7 @@ $.api.settings = {
|
|
27097
27124
|
})( jQuery, window, document );
|
27098
27125
|
|
27099
27126
|
/*!
|
27100
|
-
* # Fomantic-UI 2.9.0-beta.
|
27127
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - State
|
27101
27128
|
* http://github.com/fomantic/Fomantic-UI/
|
27102
27129
|
*
|
27103
27130
|
*
|
@@ -27809,7 +27836,7 @@ $.fn.state.settings = {
|
|
27809
27836
|
})( jQuery, window, document );
|
27810
27837
|
|
27811
27838
|
/*!
|
27812
|
-
* # Fomantic-UI 2.9.0-beta.
|
27839
|
+
* # Fomantic-UI 2.9.0-beta.299+f49946a - Visibility
|
27813
27840
|
* http://github.com/fomantic/Fomantic-UI/
|
27814
27841
|
*
|
27815
27842
|
*
|
package/dist/semantic.min.css
CHANGED