fomantic-ui 2.9.0-beta.309 → 2.9.0-beta.311
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 +3 -1
- 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 +7 -3
- package/dist/components/sidebar.js +104 -27
- package/dist/components/sidebar.min.css +2 -2
- 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.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 +56 -51
- package/dist/semantic.js +151 -52
- package/dist/semantic.min.css +2 -2
- 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 +2 -0
- package/src/definitions/modules/sidebar.js +103 -26
- package/src/definitions/modules/sidebar.less +6 -2
- package/src/definitions/modules/toast.js +2 -0
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.311+116f84b
|
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.311+116f84b - 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.311+116f84b - 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.311+116f84b - Accordion
|
2588
2588
|
* http://github.com/fomantic/Fomantic-UI/
|
2589
2589
|
*
|
2590
2590
|
*
|
@@ -2775,6 +2775,7 @@ $.fn.accordion = function(parameters) {
|
|
2775
2775
|
useFailSafe : true,
|
2776
2776
|
debug : settings.debug,
|
2777
2777
|
verbose : settings.verbose,
|
2778
|
+
silent : settings.silent,
|
2778
2779
|
duration : settings.duration,
|
2779
2780
|
skipInlineHidden : true,
|
2780
2781
|
onComplete: function() {
|
@@ -2840,6 +2841,7 @@ $.fn.accordion = function(parameters) {
|
|
2840
2841
|
useFailSafe : true,
|
2841
2842
|
debug : settings.debug,
|
2842
2843
|
verbose : settings.verbose,
|
2844
|
+
silent : settings.silent,
|
2843
2845
|
duration : settings.duration,
|
2844
2846
|
skipInlineHidden : true
|
2845
2847
|
})
|
@@ -2910,6 +2912,7 @@ $.fn.accordion = function(parameters) {
|
|
2910
2912
|
useFailSafe : true,
|
2911
2913
|
debug : settings.debug,
|
2912
2914
|
verbose : settings.verbose,
|
2915
|
+
silent : settings.silent,
|
2913
2916
|
duration : settings.duration,
|
2914
2917
|
skipInlineHidden : true
|
2915
2918
|
})
|
@@ -3206,7 +3209,7 @@ $.extend( $.easing, {
|
|
3206
3209
|
|
3207
3210
|
|
3208
3211
|
/*!
|
3209
|
-
* # Fomantic-UI 2.9.0-beta.
|
3212
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Calendar
|
3210
3213
|
* http://github.com/fomantic/Fomantic-UI/
|
3211
3214
|
*
|
3212
3215
|
*
|
@@ -5098,7 +5101,7 @@ $.fn.calendar.settings = {
|
|
5098
5101
|
})(jQuery, window, document);
|
5099
5102
|
|
5100
5103
|
/*!
|
5101
|
-
* # Fomantic-UI 2.9.0-beta.
|
5104
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Checkbox
|
5102
5105
|
* http://github.com/fomantic/Fomantic-UI/
|
5103
5106
|
*
|
5104
5107
|
*
|
@@ -5982,7 +5985,7 @@ $.fn.checkbox.settings = {
|
|
5982
5985
|
})( jQuery, window, document );
|
5983
5986
|
|
5984
5987
|
/*!
|
5985
|
-
* # Fomantic-UI 2.9.0-beta.
|
5988
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dimmer
|
5986
5989
|
* http://github.com/fomantic/Fomantic-UI/
|
5987
5990
|
*
|
5988
5991
|
*
|
@@ -6241,6 +6244,9 @@ $.fn.dimmer = function(parameters) {
|
|
6241
6244
|
}
|
6242
6245
|
$dimmer
|
6243
6246
|
.transition({
|
6247
|
+
debug : settings.debug,
|
6248
|
+
verbose : settings.verbose,
|
6249
|
+
silent : settings.silent,
|
6244
6250
|
displayType : settings.useFlex
|
6245
6251
|
? 'flex'
|
6246
6252
|
: 'block',
|
@@ -6290,6 +6296,9 @@ $.fn.dimmer = function(parameters) {
|
|
6290
6296
|
module.verbose('Hiding dimmer with css');
|
6291
6297
|
$dimmer
|
6292
6298
|
.transition({
|
6299
|
+
debug : settings.debug,
|
6300
|
+
verbose : settings.verbose,
|
6301
|
+
silent : settings.silent,
|
6293
6302
|
displayType : settings.useFlex
|
6294
6303
|
? 'flex'
|
6295
6304
|
: 'block',
|
@@ -6745,7 +6754,7 @@ $.fn.dimmer.settings = {
|
|
6745
6754
|
})( jQuery, window, document );
|
6746
6755
|
|
6747
6756
|
/*!
|
6748
|
-
* # Fomantic-UI 2.9.0-beta.
|
6757
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dropdown
|
6749
6758
|
* http://github.com/fomantic/Fomantic-UI/
|
6750
6759
|
*
|
6751
6760
|
*
|
@@ -9637,6 +9646,7 @@ $.fn.dropdown = function(parameters) {
|
|
9637
9646
|
animation : settings.label.transition,
|
9638
9647
|
debug : settings.debug,
|
9639
9648
|
verbose : settings.verbose,
|
9649
|
+
silent : settings.silent,
|
9640
9650
|
duration : settings.label.duration
|
9641
9651
|
})
|
9642
9652
|
;
|
@@ -10425,6 +10435,7 @@ $.fn.dropdown = function(parameters) {
|
|
10425
10435
|
animation : transition + ' in',
|
10426
10436
|
debug : settings.debug,
|
10427
10437
|
verbose : settings.verbose,
|
10438
|
+
silent : settings.silent,
|
10428
10439
|
duration : settings.transition.showDuration || settings.duration,
|
10429
10440
|
queue : true,
|
10430
10441
|
onStart : start,
|
@@ -10472,6 +10483,7 @@ $.fn.dropdown = function(parameters) {
|
|
10472
10483
|
duration : settings.transition.hideDuration || settings.duration,
|
10473
10484
|
debug : settings.debug,
|
10474
10485
|
verbose : settings.verbose,
|
10486
|
+
silent : settings.silent,
|
10475
10487
|
queue : false,
|
10476
10488
|
onStart : start,
|
10477
10489
|
displayType: module.get.displayType(),
|
@@ -11124,7 +11136,7 @@ $.fn.dropdown.settings.templates = {
|
|
11124
11136
|
})( jQuery, window, document );
|
11125
11137
|
|
11126
11138
|
/*!
|
11127
|
-
* # Fomantic-UI 2.9.0-beta.
|
11139
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Embed
|
11128
11140
|
* http://github.com/fomantic/Fomantic-UI/
|
11129
11141
|
*
|
11130
11142
|
*
|
@@ -11840,7 +11852,7 @@ $.fn.embed.settings = {
|
|
11840
11852
|
})( jQuery, window, document );
|
11841
11853
|
|
11842
11854
|
/*!
|
11843
|
-
* # Fomantic-UI 2.9.0-beta.
|
11855
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Modal
|
11844
11856
|
* http://github.com/fomantic/Fomantic-UI/
|
11845
11857
|
*
|
11846
11858
|
*
|
@@ -12393,6 +12405,8 @@ $.fn.modal = function(parameters) {
|
|
12393
12405
|
$module
|
12394
12406
|
.transition({
|
12395
12407
|
debug : settings.debug,
|
12408
|
+
verbose : settings.verbose,
|
12409
|
+
silent : settings.silent,
|
12396
12410
|
animation : (settings.transition.showMethod || settings.transition) + ' in',
|
12397
12411
|
queue : settings.queue,
|
12398
12412
|
duration : settings.transition.showDuration || settings.duration,
|
@@ -12443,6 +12457,8 @@ $.fn.modal = function(parameters) {
|
|
12443
12457
|
$module
|
12444
12458
|
.transition({
|
12445
12459
|
debug : settings.debug,
|
12460
|
+
verbose : settings.verbose,
|
12461
|
+
silent : settings.silent,
|
12446
12462
|
animation : (settings.transition.hideMethod || settings.transition) + ' out',
|
12447
12463
|
queue : settings.queue,
|
12448
12464
|
duration : settings.transition.hideDuration || settings.duration,
|
@@ -13371,7 +13387,7 @@ $.fn.modal.settings.templates = {
|
|
13371
13387
|
})( jQuery, window, document );
|
13372
13388
|
|
13373
13389
|
/*!
|
13374
|
-
* # Fomantic-UI 2.9.0-beta.
|
13390
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Nag
|
13375
13391
|
* http://github.com/fomantic/Fomantic-UI/
|
13376
13392
|
*
|
13377
13393
|
*
|
@@ -13930,7 +13946,7 @@ $.extend( $.easing, {
|
|
13930
13946
|
})( jQuery, window, document );
|
13931
13947
|
|
13932
13948
|
/*!
|
13933
|
-
* # Fomantic-UI 2.9.0-beta.
|
13949
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Popup
|
13934
13950
|
* http://github.com/fomantic/Fomantic-UI/
|
13935
13951
|
*
|
13936
13952
|
*
|
@@ -14369,6 +14385,7 @@ $.fn.popup = function(parameters) {
|
|
14369
14385
|
queue : false,
|
14370
14386
|
debug : settings.debug,
|
14371
14387
|
verbose : settings.verbose,
|
14388
|
+
silent : settings.silent,
|
14372
14389
|
duration : settings.transition.showDuration || settings.duration,
|
14373
14390
|
onComplete : function() {
|
14374
14391
|
module.bind.close();
|
@@ -14393,6 +14410,7 @@ $.fn.popup = function(parameters) {
|
|
14393
14410
|
duration : settings.transition.hideDuration || settings.duration,
|
14394
14411
|
debug : settings.debug,
|
14395
14412
|
verbose : settings.verbose,
|
14413
|
+
silent : settings.silent,
|
14396
14414
|
onComplete : function() {
|
14397
14415
|
module.reset();
|
14398
14416
|
callback.call($popup, element);
|
@@ -15066,7 +15084,7 @@ $.fn.popup = function(parameters) {
|
|
15066
15084
|
return !module.is.visible();
|
15067
15085
|
},
|
15068
15086
|
rtl: function () {
|
15069
|
-
return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
|
15087
|
+
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';
|
15070
15088
|
}
|
15071
15089
|
},
|
15072
15090
|
|
@@ -15472,7 +15490,7 @@ $.fn.popup.settings = {
|
|
15472
15490
|
})( jQuery, window, document );
|
15473
15491
|
|
15474
15492
|
/*!
|
15475
|
-
* # Fomantic-UI 2.9.0-beta.
|
15493
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Progress
|
15476
15494
|
* http://github.com/fomantic/Fomantic-UI/
|
15477
15495
|
*
|
15478
15496
|
*
|
@@ -16509,7 +16527,7 @@ $.fn.progress.settings = {
|
|
16509
16527
|
})( jQuery, window, document );
|
16510
16528
|
|
16511
16529
|
/*!
|
16512
|
-
* # Fomantic-UI 2.9.0-beta.
|
16530
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Slider
|
16513
16531
|
* http://github.com/fomantic/Fomantic-UI/
|
16514
16532
|
*
|
16515
16533
|
*
|
@@ -17865,7 +17883,7 @@ $.fn.slider.settings = {
|
|
17865
17883
|
})( jQuery, window, document );
|
17866
17884
|
|
17867
17885
|
/*!
|
17868
|
-
* # Fomantic-UI 2.9.0-beta.
|
17886
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Rating
|
17869
17887
|
* http://github.com/fomantic/Fomantic-UI/
|
17870
17888
|
*
|
17871
17889
|
*
|
@@ -18424,7 +18442,7 @@ $.fn.rating.settings = {
|
|
18424
18442
|
})( jQuery, window, document );
|
18425
18443
|
|
18426
18444
|
/*!
|
18427
|
-
* # Fomantic-UI 2.9.0-beta.
|
18445
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Search
|
18428
18446
|
* http://github.com/fomantic/Fomantic-UI/
|
18429
18447
|
*
|
18430
18448
|
*
|
@@ -19423,6 +19441,7 @@ $.fn.search = function(parameters) {
|
|
19423
19441
|
animation : settings.transition + ' in',
|
19424
19442
|
debug : settings.debug,
|
19425
19443
|
verbose : settings.verbose,
|
19444
|
+
silent : settings.silent,
|
19426
19445
|
duration : settings.duration,
|
19427
19446
|
onShow : function() {
|
19428
19447
|
var $firstResult = $module.find(selector.result).eq(0);
|
@@ -19458,6 +19477,7 @@ $.fn.search = function(parameters) {
|
|
19458
19477
|
animation : settings.transition + ' out',
|
19459
19478
|
debug : settings.debug,
|
19460
19479
|
verbose : settings.verbose,
|
19480
|
+
silent : settings.silent,
|
19461
19481
|
duration : settings.duration,
|
19462
19482
|
onComplete : function() {
|
19463
19483
|
callback();
|
@@ -20014,7 +20034,7 @@ $.fn.search.settings = {
|
|
20014
20034
|
})( jQuery, window, document );
|
20015
20035
|
|
20016
20036
|
/*!
|
20017
|
-
* # Fomantic-UI 2.9.0-beta.
|
20037
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Shape
|
20018
20038
|
* http://github.com/fomantic/Fomantic-UI/
|
20019
20039
|
*
|
20020
20040
|
*
|
@@ -20863,7 +20883,7 @@ $.fn.shape.settings = {
|
|
20863
20883
|
})( jQuery, window, document );
|
20864
20884
|
|
20865
20885
|
/*!
|
20866
|
-
* # Fomantic-UI 2.9.0-beta.
|
20886
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Sidebar
|
20867
20887
|
* http://github.com/fomantic/Fomantic-UI/
|
20868
20888
|
*
|
20869
20889
|
*
|
@@ -20892,6 +20912,7 @@ $.fn.sidebar = function(parameters) {
|
|
20892
20912
|
$allModules = $(this),
|
20893
20913
|
$window = $(window),
|
20894
20914
|
$document = $(document),
|
20915
|
+
$body = $('body'),
|
20895
20916
|
$html = $('html'),
|
20896
20917
|
$head = $('head'),
|
20897
20918
|
|
@@ -20930,7 +20951,8 @@ $.fn.sidebar = function(parameters) {
|
|
20930
20951
|
moduleNamespace = 'module-' + namespace,
|
20931
20952
|
|
20932
20953
|
$module = $(this),
|
20933
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $
|
20954
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $body,
|
20955
|
+
isBody = $context[0] === $body[0],
|
20934
20956
|
|
20935
20957
|
$sidebars = $module.children(selector.sidebar),
|
20936
20958
|
$fixed = $context.children(selector.fixed),
|
@@ -20944,6 +20966,9 @@ $.fn.sidebar = function(parameters) {
|
|
20944
20966
|
id,
|
20945
20967
|
currentScroll,
|
20946
20968
|
transitionEvent,
|
20969
|
+
initialBodyMargin = '',
|
20970
|
+
tempBodyMargin = '',
|
20971
|
+
hadScrollbar = false,
|
20947
20972
|
|
20948
20973
|
module
|
20949
20974
|
;
|
@@ -21049,9 +21074,12 @@ $.fn.sidebar = function(parameters) {
|
|
21049
21074
|
scrollLock: function() {
|
21050
21075
|
if(settings.scrollLock) {
|
21051
21076
|
module.debug('Disabling page scroll');
|
21052
|
-
|
21053
|
-
|
21054
|
-
|
21077
|
+
hadScrollbar = module.has.scrollbar();
|
21078
|
+
if(hadScrollbar) {
|
21079
|
+
module.save.bodyMargin();
|
21080
|
+
module.set.bodyMargin();
|
21081
|
+
}
|
21082
|
+
$context.addClass(className.locked);
|
21055
21083
|
}
|
21056
21084
|
module.verbose('Adding events to contain sidebar scroll');
|
21057
21085
|
$document
|
@@ -21069,8 +21097,11 @@ $.fn.sidebar = function(parameters) {
|
|
21069
21097
|
},
|
21070
21098
|
scrollLock: function() {
|
21071
21099
|
module.verbose('Removing scroll lock from page');
|
21100
|
+
if(hadScrollbar) {
|
21101
|
+
module.restore.bodyMargin();
|
21102
|
+
}
|
21103
|
+
$context.removeClass(className.locked);
|
21072
21104
|
$document.off(elementNamespace);
|
21073
|
-
$window.off(elementNamespace);
|
21074
21105
|
$module.off('scroll' + eventNamespace);
|
21075
21106
|
}
|
21076
21107
|
},
|
@@ -21228,7 +21259,22 @@ $.fn.sidebar = function(parameters) {
|
|
21228
21259
|
module.error(error.notFound, selector);
|
21229
21260
|
}
|
21230
21261
|
},
|
21231
|
-
|
21262
|
+
can: {
|
21263
|
+
leftBodyScrollbar: function () {
|
21264
|
+
if (module.cache.leftBodyScrollbar === undefined) {
|
21265
|
+
module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
|
21266
|
+
}
|
21267
|
+
return module.cache.leftBodyScrollbar;
|
21268
|
+
}
|
21269
|
+
},
|
21270
|
+
save: {
|
21271
|
+
bodyMargin: function() {
|
21272
|
+
initialBodyMargin = $context.css((isBody ? 'margin-':'padding-')+(module.can.leftBodyScrollbar() ? 'left':'right'));
|
21273
|
+
var bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, '')),
|
21274
|
+
bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
|
21275
|
+
tempBodyMargin = bodyMarginRightPixel + bodyScrollbarWidth;
|
21276
|
+
}
|
21277
|
+
},
|
21232
21278
|
show: function(callback) {
|
21233
21279
|
callback = $.isFunction(callback)
|
21234
21280
|
? callback
|
@@ -21339,9 +21385,13 @@ $.fn.sidebar = function(parameters) {
|
|
21339
21385
|
? callback
|
21340
21386
|
: function(){}
|
21341
21387
|
;
|
21342
|
-
if(settings.
|
21388
|
+
if(settings.returnScroll) {
|
21389
|
+
currentScroll = (isBody ? $window : $context).scrollTop();
|
21390
|
+
}
|
21391
|
+
if(settings.transition === 'scale down') {
|
21343
21392
|
module.scrollToTop();
|
21344
21393
|
}
|
21394
|
+
module.bind.scrollLock();
|
21345
21395
|
module.set.transition(transition);
|
21346
21396
|
module.repaint();
|
21347
21397
|
animate = function() {
|
@@ -21357,7 +21407,6 @@ $.fn.sidebar = function(parameters) {
|
|
21357
21407
|
if( event.target == $transition[0] ) {
|
21358
21408
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
21359
21409
|
module.remove.animating();
|
21360
|
-
module.bind.scrollLock();
|
21361
21410
|
callback.call(element);
|
21362
21411
|
}
|
21363
21412
|
};
|
@@ -21401,7 +21450,7 @@ $.fn.sidebar = function(parameters) {
|
|
21401
21450
|
module.remove.animating();
|
21402
21451
|
module.remove.transition();
|
21403
21452
|
module.remove.inlineCSS();
|
21404
|
-
if(transition
|
21453
|
+
if(transition === 'scale down' || settings.returnScroll) {
|
21405
21454
|
module.scrollBack();
|
21406
21455
|
}
|
21407
21456
|
callback.call(element);
|
@@ -21414,14 +21463,13 @@ $.fn.sidebar = function(parameters) {
|
|
21414
21463
|
|
21415
21464
|
scrollToTop: function() {
|
21416
21465
|
module.verbose('Scrolling to top of page to avoid animation issues');
|
21417
|
-
currentScroll = $(window).scrollTop();
|
21418
21466
|
$module.scrollTop(0);
|
21419
|
-
window.scrollTo(0, 0);
|
21467
|
+
(isBody ? $window : $context)[0].scrollTo(0, 0);
|
21420
21468
|
},
|
21421
21469
|
|
21422
21470
|
scrollBack: function() {
|
21423
21471
|
module.verbose('Scrolling back to original page position');
|
21424
|
-
window.scrollTo(0, currentScroll);
|
21472
|
+
(isBody ? $window : $context)[0].scrollTo(0, currentScroll);
|
21425
21473
|
},
|
21426
21474
|
|
21427
21475
|
clear: {
|
@@ -21432,7 +21480,16 @@ $.fn.sidebar = function(parameters) {
|
|
21432
21480
|
},
|
21433
21481
|
|
21434
21482
|
set: {
|
21435
|
-
|
21483
|
+
bodyMargin: function() {
|
21484
|
+
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
21485
|
+
$context.css((isBody ? 'margin-':'padding-')+position, tempBodyMargin + 'px');
|
21486
|
+
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
21487
|
+
var el = $(this),
|
21488
|
+
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
21489
|
+
;
|
21490
|
+
el.css(attribute, 'calc(' + el.css(attribute) + ' + ' + tempBodyMargin + 'px)');
|
21491
|
+
});
|
21492
|
+
},
|
21436
21493
|
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
21437
21494
|
// (This is no longer necessary in latest iOS)
|
21438
21495
|
ios: function() {
|
@@ -21518,7 +21575,18 @@ $.fn.sidebar = function(parameters) {
|
|
21518
21575
|
$module.removeClass(className.overlay);
|
21519
21576
|
}
|
21520
21577
|
},
|
21521
|
-
|
21578
|
+
restore: {
|
21579
|
+
bodyMargin: function() {
|
21580
|
+
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
21581
|
+
$context.css((isBody ? 'margin-':'padding-')+position, initialBodyMargin);
|
21582
|
+
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
21583
|
+
var el = $(this),
|
21584
|
+
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
21585
|
+
;
|
21586
|
+
el.css(attribute, '');
|
21587
|
+
});
|
21588
|
+
}
|
21589
|
+
},
|
21522
21590
|
get: {
|
21523
21591
|
direction: function() {
|
21524
21592
|
if($module.hasClass(className.top)) {
|
@@ -21566,15 +21634,42 @@ $.fn.sidebar = function(parameters) {
|
|
21566
21634
|
}
|
21567
21635
|
}
|
21568
21636
|
},
|
21569
|
-
|
21637
|
+
has: {
|
21638
|
+
scrollbar: function() {
|
21639
|
+
return isBody || $context.css('overflow-y') !== 'hidden';
|
21640
|
+
}
|
21641
|
+
},
|
21570
21642
|
is: {
|
21571
|
-
|
21643
|
+
safari: function() {
|
21644
|
+
if(module.cache.isSafari === undefined) {
|
21645
|
+
module.cache.isSafari = /constructor/i.test(window.HTMLElement) || !!window.ApplePaySession;
|
21646
|
+
}
|
21647
|
+
return module.cache.isSafari;
|
21648
|
+
},
|
21649
|
+
edge: function(){
|
21650
|
+
if(module.cache.isEdge === undefined) {
|
21651
|
+
module.cache.isEdge = !!window.setImmediate && !module.is.ie();
|
21652
|
+
}
|
21653
|
+
return module.cache.isEdge;
|
21654
|
+
},
|
21655
|
+
firefox: function(){
|
21656
|
+
if(module.cache.isFirefox === undefined) {
|
21657
|
+
module.cache.isFirefox = !!window.InstallTrigger;
|
21658
|
+
}
|
21659
|
+
return module.cache.isFirefox;
|
21660
|
+
},
|
21661
|
+
iframe: function() {
|
21662
|
+
return !(self === top);
|
21663
|
+
},
|
21572
21664
|
ie: function() {
|
21573
|
-
|
21574
|
-
|
21575
|
-
|
21576
|
-
|
21577
|
-
|
21665
|
+
if(module.cache.isIE === undefined) {
|
21666
|
+
var
|
21667
|
+
isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
|
21668
|
+
isIE = ('ActiveXObject' in window)
|
21669
|
+
;
|
21670
|
+
module.cache.isIE = (isIE11 || isIE);
|
21671
|
+
}
|
21672
|
+
return module.cache.isIE;
|
21578
21673
|
},
|
21579
21674
|
|
21580
21675
|
ios: function() {
|
@@ -21624,12 +21719,12 @@ $.fn.sidebar = function(parameters) {
|
|
21624
21719
|
animating: function() {
|
21625
21720
|
return $context.hasClass(className.animating);
|
21626
21721
|
},
|
21627
|
-
rtl: function
|
21628
|
-
if(module.cache.
|
21629
|
-
module.cache.
|
21722
|
+
rtl: function() {
|
21723
|
+
if(module.cache.isRTL === undefined) {
|
21724
|
+
module.cache.isRTL = $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl' || $body.attr('dir') === 'rtl' || $body.css('direction') === 'rtl' || $context.attr('dir') === 'rtl' || $context.css('direction') === 'rtl';
|
21630
21725
|
}
|
21631
|
-
return module.cache.
|
21632
|
-
}
|
21726
|
+
return module.cache.isRTL;
|
21727
|
+
},
|
21633
21728
|
},
|
21634
21729
|
|
21635
21730
|
setting: function(name, value) {
|
@@ -21866,6 +21961,7 @@ $.fn.sidebar.settings = {
|
|
21866
21961
|
animating : 'animating',
|
21867
21962
|
dimmed : 'dimmed',
|
21868
21963
|
ios : 'ios',
|
21964
|
+
locked : 'locked',
|
21869
21965
|
pushable : 'pushable',
|
21870
21966
|
pushed : 'pushed',
|
21871
21967
|
right : 'right',
|
@@ -21876,6 +21972,7 @@ $.fn.sidebar.settings = {
|
|
21876
21972
|
},
|
21877
21973
|
|
21878
21974
|
selector: {
|
21975
|
+
bodyFixed: '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close',
|
21879
21976
|
fixed : '.fixed',
|
21880
21977
|
omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',
|
21881
21978
|
pusher : '.pusher',
|
@@ -21902,7 +21999,7 @@ $.fn.sidebar.settings = {
|
|
21902
21999
|
})( jQuery, window, document );
|
21903
22000
|
|
21904
22001
|
/*!
|
21905
|
-
* # Fomantic-UI 2.9.0-beta.
|
22002
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Sticky
|
21906
22003
|
* http://github.com/fomantic/Fomantic-UI/
|
21907
22004
|
*
|
21908
22005
|
*
|
@@ -22860,7 +22957,7 @@ $.fn.sticky.settings = {
|
|
22860
22957
|
})( jQuery, window, document );
|
22861
22958
|
|
22862
22959
|
/*!
|
22863
|
-
* # Fomantic-UI 2.9.0-beta.
|
22960
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Tab
|
22864
22961
|
* http://github.com/fomantic/Fomantic-UI/
|
22865
22962
|
*
|
22866
22963
|
*
|
@@ -23880,7 +23977,7 @@ $.fn.tab.settings = {
|
|
23880
23977
|
})( jQuery, window, document );
|
23881
23978
|
|
23882
23979
|
/*!
|
23883
|
-
* # Fomantic-UI 2.9.0-beta.
|
23980
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Toast
|
23884
23981
|
* http://github.com/fomantic/Fomantic-UI/
|
23885
23982
|
*
|
23886
23983
|
*
|
@@ -24272,6 +24369,7 @@ $.fn.toast = function(parameters) {
|
|
24272
24369
|
queue : false,
|
24273
24370
|
debug : settings.debug,
|
24274
24371
|
verbose : settings.verbose,
|
24372
|
+
silent : settings.silent,
|
24275
24373
|
duration : settings.transition.showDuration,
|
24276
24374
|
onComplete : function() {
|
24277
24375
|
callback.call($toastBox, element);
|
@@ -24291,6 +24389,7 @@ $.fn.toast = function(parameters) {
|
|
24291
24389
|
duration : settings.transition.hideDuration,
|
24292
24390
|
debug : settings.debug,
|
24293
24391
|
verbose : settings.verbose,
|
24392
|
+
silent : settings.silent,
|
24294
24393
|
interval : 50,
|
24295
24394
|
|
24296
24395
|
onBeforeHide: function(callback){
|
@@ -24805,7 +24904,7 @@ $.extend( $.easing, {
|
|
24805
24904
|
})( jQuery, window, document );
|
24806
24905
|
|
24807
24906
|
/*!
|
24808
|
-
* # Fomantic-UI 2.9.0-beta.
|
24907
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Transition
|
24809
24908
|
* http://github.com/fomantic/Fomantic-UI/
|
24810
24909
|
*
|
24811
24910
|
*
|
@@ -25922,7 +26021,7 @@ $.fn.transition.settings = {
|
|
25922
26021
|
})( jQuery, window, document );
|
25923
26022
|
|
25924
26023
|
/*!
|
25925
|
-
* # Fomantic-UI 2.9.0-beta.
|
26024
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - API
|
25926
26025
|
* http://github.com/fomantic/Fomantic-UI/
|
25927
26026
|
*
|
25928
26027
|
*
|
@@ -27159,7 +27258,7 @@ $.api.settings = {
|
|
27159
27258
|
})( jQuery, window, document );
|
27160
27259
|
|
27161
27260
|
/*!
|
27162
|
-
* # Fomantic-UI 2.9.0-beta.
|
27261
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - State
|
27163
27262
|
* http://github.com/fomantic/Fomantic-UI/
|
27164
27263
|
*
|
27165
27264
|
*
|
@@ -27871,7 +27970,7 @@ $.fn.state.settings = {
|
|
27871
27970
|
})( jQuery, window, document );
|
27872
27971
|
|
27873
27972
|
/*!
|
27874
|
-
* # Fomantic-UI 2.9.0-beta.
|
27973
|
+
* # Fomantic-UI 2.9.0-beta.311+116f84b - Visibility
|
27875
27974
|
* http://github.com/fomantic/Fomantic-UI/
|
27876
27975
|
*
|
27877
27976
|
*
|