fomantic-ui 2.9.0-beta.317 → 2.9.0-beta.319
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 +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- 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/flyout.css +57 -23
- package/dist/components/flyout.js +223 -40
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- 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 +6 -6
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +2 -2
- 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 +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- 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 +11 -3
- package/dist/components/sidebar.js +27 -7
- 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 +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 +133 -78
- package/dist/semantic.js +274 -71
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/modules/flyout.js +222 -39
- package/src/definitions/modules/flyout.less +114 -68
- package/src/definitions/modules/modal.less +3 -3
- package/src/definitions/modules/sidebar.js +26 -6
- package/src/definitions/modules/sidebar.less +11 -0
- package/src/themes/default/globals/variation.variables +8 -0
- package/src/themes/default/modules/flyout.variables +56 -1
- package/src/themes/default/modules/modal.variables +2 -2
- package/src/themes/default/modules/sidebar.variables +4 -1
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.319+0740de8
|
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.319+0740de8 - 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.319+0740de8 - Form Validation
|
507
507
|
* http://github.com/fomantic/Fomantic-UI/
|
508
508
|
*
|
509
509
|
*
|
@@ -2579,7 +2579,7 @@ $.fn.form.settings = {
|
|
2579
2579
|
})( jQuery, window, document );
|
2580
2580
|
|
2581
2581
|
/*!
|
2582
|
-
* # Fomantic-UI 2.9.0-beta.
|
2582
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Accordion
|
2583
2583
|
* http://github.com/fomantic/Fomantic-UI/
|
2584
2584
|
*
|
2585
2585
|
*
|
@@ -3204,7 +3204,7 @@ $.extend( $.easing, {
|
|
3204
3204
|
|
3205
3205
|
|
3206
3206
|
/*!
|
3207
|
-
* # Fomantic-UI 2.9.0-beta.
|
3207
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Calendar
|
3208
3208
|
* http://github.com/fomantic/Fomantic-UI/
|
3209
3209
|
*
|
3210
3210
|
*
|
@@ -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.319+0740de8 - Checkbox
|
5099
5099
|
* http://github.com/fomantic/Fomantic-UI/
|
5100
5100
|
*
|
5101
5101
|
*
|
@@ -5979,7 +5979,7 @@ $.fn.checkbox.settings = {
|
|
5979
5979
|
})( jQuery, window, document );
|
5980
5980
|
|
5981
5981
|
/*!
|
5982
|
-
* # Fomantic-UI 2.9.0-beta.
|
5982
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Dimmer
|
5983
5983
|
* http://github.com/fomantic/Fomantic-UI/
|
5984
5984
|
*
|
5985
5985
|
*
|
@@ -6745,7 +6745,7 @@ $.fn.dimmer.settings = {
|
|
6745
6745
|
})( jQuery, window, document );
|
6746
6746
|
|
6747
6747
|
/*!
|
6748
|
-
* # Fomantic-UI 2.9.0-beta.
|
6748
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Dropdown
|
6749
6749
|
* http://github.com/fomantic/Fomantic-UI/
|
6750
6750
|
*
|
6751
6751
|
*
|
@@ -11101,7 +11101,7 @@ $.fn.dropdown.settings.templates = {
|
|
11101
11101
|
})( jQuery, window, document );
|
11102
11102
|
|
11103
11103
|
/*!
|
11104
|
-
* # Fomantic-UI 2.9.0-beta.
|
11104
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Embed
|
11105
11105
|
* http://github.com/fomantic/Fomantic-UI/
|
11106
11106
|
*
|
11107
11107
|
*
|
@@ -11815,7 +11815,7 @@ $.fn.embed.settings = {
|
|
11815
11815
|
})( jQuery, window, document );
|
11816
11816
|
|
11817
11817
|
/*!
|
11818
|
-
* # Fomantic-UI 2.9.0-beta.
|
11818
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Flyout
|
11819
11819
|
* http://github.com/fomantic/Fomantic-UI/
|
11820
11820
|
*
|
11821
11821
|
*
|
@@ -11839,7 +11839,7 @@ window = (typeof window != 'undefined' && window.Math == Math)
|
|
11839
11839
|
: Function('return this')()
|
11840
11840
|
;
|
11841
11841
|
|
11842
|
-
$.fn.flyout = function(parameters) {
|
11842
|
+
$.flyout = $.fn.flyout = function(parameters) {
|
11843
11843
|
var
|
11844
11844
|
$allModules = $(this),
|
11845
11845
|
$window = $(window),
|
@@ -11884,15 +11884,19 @@ $.fn.flyout = function(parameters) {
|
|
11884
11884
|
moduleNamespace = 'module-' + namespace,
|
11885
11885
|
|
11886
11886
|
$module = $(this),
|
11887
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $
|
11888
|
-
$
|
11887
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body,
|
11888
|
+
$closeIcon = $module.find(selector.close),
|
11889
|
+
$inputs,
|
11890
|
+
$focusedElement,
|
11889
11891
|
|
11890
11892
|
$flyouts = $module.children(selector.flyout),
|
11891
11893
|
$pusher = $context.children(selector.pusher),
|
11892
11894
|
$style,
|
11893
11895
|
|
11896
|
+
isFlyoutComponent = $module.hasClass('flyout'),
|
11897
|
+
|
11894
11898
|
element = this,
|
11895
|
-
instance =
|
11899
|
+
instance = isFlyoutComponent ? $module.data(moduleNamespace) : undefined,
|
11896
11900
|
|
11897
11901
|
ignoreRepeatedEvents = false,
|
11898
11902
|
isBody = $context[0] === $body[0],
|
@@ -11902,6 +11906,7 @@ $.fn.flyout = function(parameters) {
|
|
11902
11906
|
|
11903
11907
|
elementNamespace,
|
11904
11908
|
id,
|
11909
|
+
observer,
|
11905
11910
|
currentScroll,
|
11906
11911
|
transitionEvent,
|
11907
11912
|
|
@@ -11913,7 +11918,8 @@ $.fn.flyout = function(parameters) {
|
|
11913
11918
|
initialize: function() {
|
11914
11919
|
module.debug('Initializing flyout', parameters);
|
11915
11920
|
|
11916
|
-
|
11921
|
+
module.create.id();
|
11922
|
+
if(!isFlyoutComponent) {
|
11917
11923
|
module.create.flyout();
|
11918
11924
|
if(!$.isFunction(settings.onHidden)) {
|
11919
11925
|
settings.onHidden = function () {
|
@@ -11921,6 +11927,9 @@ $.fn.flyout = function(parameters) {
|
|
11921
11927
|
$module.remove();
|
11922
11928
|
};
|
11923
11929
|
}
|
11930
|
+
if(!settings.autoShow) {
|
11931
|
+
settings.autoShow = true;
|
11932
|
+
}
|
11924
11933
|
}
|
11925
11934
|
$module.addClass(settings.class);
|
11926
11935
|
if (settings.title !== '') {
|
@@ -11938,13 +11947,14 @@ $.fn.flyout = function(parameters) {
|
|
11938
11947
|
}
|
11939
11948
|
settings.actions.forEach(function (el) {
|
11940
11949
|
var
|
11941
|
-
icon = el[fields.icon] ? '<i class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
|
11950
|
+
icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
|
11942
11951
|
text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
|
11943
11952
|
cls = module.helpers.deQuote(el[fields.class] || ''),
|
11944
11953
|
click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {}
|
11945
11954
|
;
|
11946
11955
|
$actions.append($('<button/>', {
|
11947
11956
|
html: icon + text,
|
11957
|
+
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
|
11948
11958
|
class: className.button + ' ' + cls,
|
11949
11959
|
click: function () {
|
11950
11960
|
if (click.call(element, $module) === false) {
|
@@ -11956,8 +11966,6 @@ $.fn.flyout = function(parameters) {
|
|
11956
11966
|
});
|
11957
11967
|
}
|
11958
11968
|
|
11959
|
-
module.create.id();
|
11960
|
-
|
11961
11969
|
transitionEvent = module.get.transitionEvent();
|
11962
11970
|
|
11963
11971
|
// avoids locking rendering if initialized in onReady
|
@@ -11976,6 +11984,9 @@ $.fn.flyout = function(parameters) {
|
|
11976
11984
|
module.setup.heights();
|
11977
11985
|
module.bind.resize();
|
11978
11986
|
}
|
11987
|
+
module.refreshInputs();
|
11988
|
+
module.bind.events();
|
11989
|
+
module.observeChanges();
|
11979
11990
|
module.instantiate();
|
11980
11991
|
|
11981
11992
|
if(settings.autoShow){
|
@@ -11994,30 +12005,37 @@ $.fn.flyout = function(parameters) {
|
|
11994
12005
|
create: {
|
11995
12006
|
flyout: function() {
|
11996
12007
|
module.verbose('Programmaticaly create flyout', $context);
|
11997
|
-
$module = $('<div/>', {class: className.flyout});
|
12008
|
+
$module = $('<div/>', {class: className.flyout, role: 'dialog', 'aria-modal': settings.dimPage});
|
11998
12009
|
if (settings.closeIcon) {
|
11999
|
-
$
|
12000
|
-
$module.append($
|
12010
|
+
$closeIcon = $('<i/>', {class: className.close, role: 'button', tabindex: 0, 'aria-label': settings.text.close})
|
12011
|
+
$module.append($closeIcon);
|
12001
12012
|
}
|
12002
12013
|
if (settings.title !== '') {
|
12003
|
-
|
12014
|
+
var titleId = '_' + module.get.id() + 'title';
|
12015
|
+
$module.attr('aria-labelledby', titleId);
|
12016
|
+
$('<div/>', {class: className.header, id: titleId}).appendTo($module);
|
12004
12017
|
}
|
12005
12018
|
if (settings.content !== '') {
|
12006
|
-
|
12019
|
+
var descId = '_' + module.get.id() + 'desc';
|
12020
|
+
$module.attr('aria-describedby', descId);
|
12021
|
+
$('<div/>', {class: className.content, id: descId}).appendTo($module);
|
12007
12022
|
}
|
12008
12023
|
if (module.has.configActions()) {
|
12009
12024
|
$('<div/>', {class: className.actions}).appendTo($module);
|
12010
12025
|
}
|
12011
|
-
$
|
12026
|
+
$module.prependTo($context);
|
12012
12027
|
},
|
12013
12028
|
id: function() {
|
12014
|
-
id = (Math.random().toString(16) + '000000000').
|
12029
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
12015
12030
|
elementNamespace = '.' + id;
|
12016
12031
|
module.verbose('Creating unique id for element', id);
|
12017
12032
|
}
|
12018
12033
|
},
|
12019
12034
|
|
12020
12035
|
destroy: function() {
|
12036
|
+
if (observer) {
|
12037
|
+
observer.disconnect();
|
12038
|
+
}
|
12021
12039
|
module.verbose('Destroying previous module for', $module);
|
12022
12040
|
$module
|
12023
12041
|
.off(eventNamespace)
|
@@ -12026,6 +12044,10 @@ $.fn.flyout = function(parameters) {
|
|
12026
12044
|
if(module.is.ios()) {
|
12027
12045
|
module.remove.ios();
|
12028
12046
|
}
|
12047
|
+
$closeIcon.off(elementNamespace);
|
12048
|
+
if($inputs) {
|
12049
|
+
$inputs.off(elementNamespace);
|
12050
|
+
}
|
12029
12051
|
// bound by uuid
|
12030
12052
|
$context.off(elementNamespace);
|
12031
12053
|
$window.off(elementNamespace);
|
@@ -12033,6 +12055,21 @@ $.fn.flyout = function(parameters) {
|
|
12033
12055
|
},
|
12034
12056
|
|
12035
12057
|
event: {
|
12058
|
+
keyboard: function(event) {
|
12059
|
+
var
|
12060
|
+
keyCode = event.which
|
12061
|
+
;
|
12062
|
+
if(keyCode === settings.keys.escape) {
|
12063
|
+
if(settings.closable) {
|
12064
|
+
module.debug('Escape key pressed hiding flyout');
|
12065
|
+
module.hide();
|
12066
|
+
}
|
12067
|
+
else {
|
12068
|
+
module.debug('Escape key pressed, but closable is set to false');
|
12069
|
+
}
|
12070
|
+
event.preventDefault();
|
12071
|
+
}
|
12072
|
+
},
|
12036
12073
|
resize: function() {
|
12037
12074
|
module.setup.heights();
|
12038
12075
|
},
|
@@ -12055,6 +12092,34 @@ $.fn.flyout = function(parameters) {
|
|
12055
12092
|
close: function(event) {
|
12056
12093
|
module.hide();
|
12057
12094
|
},
|
12095
|
+
closeKeyUp: function(event){
|
12096
|
+
var
|
12097
|
+
keyCode = event.which
|
12098
|
+
;
|
12099
|
+
if (keyCode === settings.keys.enter || keyCode === settings.keys.space) {
|
12100
|
+
module.hide();
|
12101
|
+
}
|
12102
|
+
},
|
12103
|
+
inputKeyDown: {
|
12104
|
+
first: function(event) {
|
12105
|
+
var
|
12106
|
+
keyCode = event.which
|
12107
|
+
;
|
12108
|
+
if (keyCode === settings.keys.tab && event.shiftKey) {
|
12109
|
+
$inputs.last().focus();
|
12110
|
+
event.preventDefault();
|
12111
|
+
}
|
12112
|
+
},
|
12113
|
+
last: function(event) {
|
12114
|
+
var
|
12115
|
+
keyCode = event.which
|
12116
|
+
;
|
12117
|
+
if (keyCode === settings.keys.tab && !event.shiftKey) {
|
12118
|
+
$inputs.first().focus();
|
12119
|
+
event.preventDefault();
|
12120
|
+
}
|
12121
|
+
}
|
12122
|
+
},
|
12058
12123
|
approve: function(event) {
|
12059
12124
|
if (ignoreRepeatedEvents || settings.onApprove.call(module.element, $(this)) === false) {
|
12060
12125
|
module.verbose('Approve callback returned false cancelling close');
|
@@ -12098,16 +12163,23 @@ $.fn.flyout = function(parameters) {
|
|
12098
12163
|
module.verbose('Adding resize event to window', $window);
|
12099
12164
|
$window.on('resize' + elementNamespace, module.event.resize);
|
12100
12165
|
},
|
12166
|
+
events: function() {
|
12167
|
+
module.verbose('Attaching events');
|
12168
|
+
$module
|
12169
|
+
.on('click' + eventNamespace, selector.close, module.event.close)
|
12170
|
+
.on('click' + eventNamespace, selector.approve, module.event.approve)
|
12171
|
+
.on('click' + eventNamespace, selector.deny, module.event.deny)
|
12172
|
+
;
|
12173
|
+
$closeIcon
|
12174
|
+
.on('keyup' + elementNamespace, module.event.closeKeyUp)
|
12175
|
+
;
|
12176
|
+
},
|
12101
12177
|
clickaway: function() {
|
12102
12178
|
module.verbose('Adding clickaway events to context', $context);
|
12103
12179
|
$context
|
12104
12180
|
.on('click' + elementNamespace, module.event.clickaway)
|
12105
12181
|
.on('touchend' + elementNamespace, module.event.clickaway)
|
12106
12182
|
;
|
12107
|
-
|
12108
|
-
$module.on('click' + elementNamespace, settings.selector.close, module.event.close);
|
12109
|
-
$module.on('click' + elementNamespace, settings.selector.approve, module.event.approve);
|
12110
|
-
$module.on('click' + elementNamespace, settings.selector.deny, module.event.deny);
|
12111
12183
|
},
|
12112
12184
|
scrollLock: function() {
|
12113
12185
|
if(settings.scrollLock) {
|
@@ -12194,7 +12266,7 @@ $.fn.flyout = function(parameters) {
|
|
12194
12266
|
if(direction === 'left' || direction === 'right') {
|
12195
12267
|
module.debug('Adding CSS rules for animation distance', width);
|
12196
12268
|
style += ''
|
12197
|
-
+ ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher
|
12269
|
+
+ ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
|
12198
12270
|
+ ' -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);'
|
12199
12271
|
+ ' transform: translate3d('+ distance[direction] + 'px, 0, 0);'
|
12200
12272
|
+ ' }'
|
@@ -12202,7 +12274,7 @@ $.fn.flyout = function(parameters) {
|
|
12202
12274
|
}
|
12203
12275
|
else if(direction === 'top' || direction == 'bottom') {
|
12204
12276
|
style += ''
|
12205
|
-
+ ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher
|
12277
|
+
+ ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
|
12206
12278
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
12207
12279
|
+ ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
12208
12280
|
+ ' }'
|
@@ -12210,8 +12282,8 @@ $.fn.flyout = function(parameters) {
|
|
12210
12282
|
}
|
12211
12283
|
/* opposite sides visible forces content overlay */
|
12212
12284
|
style += ''
|
12213
|
-
+ ' body.pushable > .ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .pusher
|
12214
|
-
+ ' body.pushable > .ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .pusher
|
12285
|
+
+ ' body.pushable > .ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .pusher::after,'
|
12286
|
+
+ ' body.pushable > .ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .pusher::after {'
|
12215
12287
|
+ ' -webkit-transform: translate3d(0, 0, 0);'
|
12216
12288
|
+ ' transform: translate3d(0, 0, 0);'
|
12217
12289
|
+ ' }'
|
@@ -12222,13 +12294,30 @@ $.fn.flyout = function(parameters) {
|
|
12222
12294
|
.appendTo($head)
|
12223
12295
|
;
|
12224
12296
|
module.debug('Adding sizing css to head', $style);
|
12297
|
+
},
|
12298
|
+
keyboardShortcuts: function() {
|
12299
|
+
module.verbose('Adding keyboard shortcuts');
|
12300
|
+
$document
|
12301
|
+
.on('keydown' + eventNamespace, module.event.keyboard)
|
12302
|
+
;
|
12303
|
+
}
|
12304
|
+
},
|
12305
|
+
observeChanges: function() {
|
12306
|
+
if('MutationObserver' in window) {
|
12307
|
+
observer = new MutationObserver(function(mutations) {
|
12308
|
+
module.refreshInputs();
|
12309
|
+
});
|
12310
|
+
observer.observe(element, {
|
12311
|
+
childList : true,
|
12312
|
+
subtree : true
|
12313
|
+
});
|
12314
|
+
module.debug('Setting up mutation observer', observer);
|
12225
12315
|
}
|
12226
12316
|
},
|
12227
|
-
|
12228
12317
|
refresh: function() {
|
12229
12318
|
module.verbose('Refreshing selector cache');
|
12230
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $
|
12231
|
-
|
12319
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body;
|
12320
|
+
module.refreshFlyouts();
|
12232
12321
|
$pusher = $context.children(selector.pusher);
|
12233
12322
|
module.clear.cache();
|
12234
12323
|
},
|
@@ -12238,11 +12327,24 @@ $.fn.flyout = function(parameters) {
|
|
12238
12327
|
$flyouts = $context.children(selector.flyout);
|
12239
12328
|
},
|
12240
12329
|
|
12241
|
-
|
12242
|
-
|
12243
|
-
|
12244
|
-
|
12245
|
-
|
12330
|
+
refreshInputs: function(){
|
12331
|
+
if($inputs){
|
12332
|
+
$inputs
|
12333
|
+
.off('keydown' + elementNamespace)
|
12334
|
+
;
|
12335
|
+
}
|
12336
|
+
if(!settings.dimPage){
|
12337
|
+
return;
|
12338
|
+
}
|
12339
|
+
$inputs = $module.find('[tabindex], :input').filter(':visible').filter(function() {
|
12340
|
+
return $(this).closest('.disabled').length === 0;
|
12341
|
+
});
|
12342
|
+
$inputs.first()
|
12343
|
+
.on('keydown' + elementNamespace, module.event.inputKeyDown.first)
|
12344
|
+
;
|
12345
|
+
$inputs.last()
|
12346
|
+
.on('keydown' + elementNamespace, module.event.inputKeyDown.last)
|
12347
|
+
;
|
12246
12348
|
},
|
12247
12349
|
|
12248
12350
|
setup: {
|
@@ -12314,7 +12416,10 @@ $.fn.flyout = function(parameters) {
|
|
12314
12416
|
: function(){}
|
12315
12417
|
;
|
12316
12418
|
if(module.is.hidden()) {
|
12317
|
-
|
12419
|
+
if(settings.onShow.call(element) === false) {
|
12420
|
+
module.verbose('Show callback returned false cancelling show');
|
12421
|
+
return;
|
12422
|
+
}
|
12318
12423
|
module.refresh();
|
12319
12424
|
if(module.othersActive()) {
|
12320
12425
|
module.debug('Other flyouts currently visible');
|
@@ -12324,12 +12429,19 @@ $.fn.flyout = function(parameters) {
|
|
12324
12429
|
ignoreRepeatedEvents = false;
|
12325
12430
|
}
|
12326
12431
|
}
|
12432
|
+
module.set.dimmerStyles();
|
12327
12433
|
module.pushPage(function() {
|
12328
12434
|
callback.call(element);
|
12329
|
-
settings.
|
12435
|
+
settings.onVisible.call(element);
|
12436
|
+
if(settings.keyboardShortcuts) {
|
12437
|
+
module.add.keyboardShortcuts();
|
12438
|
+
}
|
12439
|
+
module.save.focus();
|
12440
|
+
if(settings.autofocus) {
|
12441
|
+
module.set.autofocus();
|
12442
|
+
}
|
12330
12443
|
});
|
12331
12444
|
settings.onChange.call(element);
|
12332
|
-
settings.onVisible.call(element);
|
12333
12445
|
}
|
12334
12446
|
else {
|
12335
12447
|
module.debug('Flyout is already visible');
|
@@ -12354,6 +12466,7 @@ $.fn.flyout = function(parameters) {
|
|
12354
12466
|
if($.isFunction(settings.onHidden)) {
|
12355
12467
|
settings.onHidden.call(element);
|
12356
12468
|
}
|
12469
|
+
module.restore.focus();
|
12357
12470
|
});
|
12358
12471
|
settings.onChange.call(element);
|
12359
12472
|
}
|
@@ -12407,7 +12520,6 @@ $.fn.flyout = function(parameters) {
|
|
12407
12520
|
: function(){}
|
12408
12521
|
;
|
12409
12522
|
module.set.overlay();
|
12410
|
-
module.repaint();
|
12411
12523
|
if(settings.returnScroll) {
|
12412
12524
|
currentScroll = (isBody ? $window : $context).scrollTop();
|
12413
12525
|
}
|
@@ -12450,18 +12562,25 @@ $.fn.flyout = function(parameters) {
|
|
12450
12562
|
module.unbind.clickaway();
|
12451
12563
|
if(!module.othersActive()) {
|
12452
12564
|
module.unbind.scrollLock();
|
12565
|
+
if( settings.keyboardShortcuts ) {
|
12566
|
+
module.remove.keyboardShortcuts();
|
12567
|
+
}
|
12453
12568
|
}
|
12454
12569
|
|
12570
|
+
|
12455
12571
|
animate = function() {
|
12456
12572
|
module.set.overlay();
|
12457
12573
|
module.set.animating();
|
12574
|
+
if(settings.dimPage && !module.othersVisible()) {
|
12575
|
+
module.set.closing();
|
12576
|
+
}
|
12458
12577
|
module.remove.visible();
|
12459
|
-
|
12460
12578
|
};
|
12461
12579
|
transitionEnd = function(event) {
|
12462
12580
|
if( event.target == $module[0] ) {
|
12463
12581
|
$module.off(transitionEvent + elementNamespace, transitionEnd);
|
12464
12582
|
module.remove.animating();
|
12583
|
+
module.remove.closing();
|
12465
12584
|
module.remove.overlay();
|
12466
12585
|
module.remove.inlineCSS();
|
12467
12586
|
if(settings.returnScroll) {
|
@@ -12497,6 +12616,25 @@ $.fn.flyout = function(parameters) {
|
|
12497
12616
|
},
|
12498
12617
|
|
12499
12618
|
set: {
|
12619
|
+
autofocus: function() {
|
12620
|
+
var
|
12621
|
+
$autofocus = $inputs.filter('[autofocus]'),
|
12622
|
+
$input = ($autofocus.length > 0)
|
12623
|
+
? $autofocus.first()
|
12624
|
+
: ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
|
12625
|
+
;
|
12626
|
+
if($input.length > 0) {
|
12627
|
+
$input.focus();
|
12628
|
+
}
|
12629
|
+
},
|
12630
|
+
dimmerStyles: function() {
|
12631
|
+
if(settings.blurring) {
|
12632
|
+
$pusher.addClass(className.blurring);
|
12633
|
+
}
|
12634
|
+
else {
|
12635
|
+
$pusher.removeClass(className.blurring);
|
12636
|
+
}
|
12637
|
+
},
|
12500
12638
|
bodyMargin: function() {
|
12501
12639
|
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
12502
12640
|
$context.css((isBody ? 'margin-':'padding-')+position, tempBodyMargin + 'px');
|
@@ -12534,6 +12672,9 @@ $.fn.flyout = function(parameters) {
|
|
12534
12672
|
animating: function() {
|
12535
12673
|
$module.addClass(className.animating);
|
12536
12674
|
},
|
12675
|
+
closing: function() {
|
12676
|
+
$pusher.addClass(className.closing);
|
12677
|
+
},
|
12537
12678
|
direction: function(direction) {
|
12538
12679
|
direction = direction || module.get.direction();
|
12539
12680
|
$module.addClass(className[direction]);
|
@@ -12553,6 +12694,12 @@ $.fn.flyout = function(parameters) {
|
|
12553
12694
|
$style.remove();
|
12554
12695
|
}
|
12555
12696
|
},
|
12697
|
+
keyboardShortcuts: function() {
|
12698
|
+
module.verbose('Removing keyboard shortcuts');
|
12699
|
+
$document
|
12700
|
+
.off('keydown' + eventNamespace)
|
12701
|
+
;
|
12702
|
+
},
|
12556
12703
|
|
12557
12704
|
// ios scroll on html not document
|
12558
12705
|
ios: function() {
|
@@ -12574,6 +12721,9 @@ $.fn.flyout = function(parameters) {
|
|
12574
12721
|
animating: function() {
|
12575
12722
|
$module.removeClass(className.animating);
|
12576
12723
|
},
|
12724
|
+
closing: function() {
|
12725
|
+
$pusher.removeClass(className.closing);
|
12726
|
+
},
|
12577
12727
|
direction: function(direction) {
|
12578
12728
|
direction = direction || module.get.direction();
|
12579
12729
|
$module.removeClass(className[direction]);
|
@@ -12587,7 +12737,6 @@ $.fn.flyout = function(parameters) {
|
|
12587
12737
|
},
|
12588
12738
|
|
12589
12739
|
get: {
|
12590
|
-
|
12591
12740
|
direction: function() {
|
12592
12741
|
if($module.hasClass(className.top)) {
|
12593
12742
|
return className.top;
|
@@ -12617,6 +12766,12 @@ $.fn.flyout = function(parameters) {
|
|
12617
12766
|
}
|
12618
12767
|
}
|
12619
12768
|
},
|
12769
|
+
id: function() {
|
12770
|
+
return id;
|
12771
|
+
},
|
12772
|
+
element: function() {
|
12773
|
+
return $module;
|
12774
|
+
},
|
12620
12775
|
settings: function() {
|
12621
12776
|
return settings;
|
12622
12777
|
}
|
@@ -12632,6 +12787,15 @@ $.fn.flyout = function(parameters) {
|
|
12632
12787
|
},
|
12633
12788
|
|
12634
12789
|
save: {
|
12790
|
+
focus: function() {
|
12791
|
+
var
|
12792
|
+
$activeElement = $(document.activeElement),
|
12793
|
+
inCurrentFlyout = $activeElement.closest($module).length > 0
|
12794
|
+
;
|
12795
|
+
if(!inCurrentFlyout) {
|
12796
|
+
$focusedElement = $(document.activeElement).blur();
|
12797
|
+
}
|
12798
|
+
},
|
12635
12799
|
bodyMargin: function() {
|
12636
12800
|
initialBodyMargin = $context.css((isBody ? 'margin-':'padding-')+(module.can.leftBodyScrollbar() ? 'left':'right'));
|
12637
12801
|
var bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, '')),
|
@@ -12727,6 +12891,11 @@ $.fn.flyout = function(parameters) {
|
|
12727
12891
|
},
|
12728
12892
|
|
12729
12893
|
restore: {
|
12894
|
+
focus: function() {
|
12895
|
+
if($focusedElement && $focusedElement.length > 0 && settings.restoreFocus) {
|
12896
|
+
$focusedElement.focus();
|
12897
|
+
}
|
12898
|
+
},
|
12730
12899
|
bodyMargin: function() {
|
12731
12900
|
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
12732
12901
|
$context.css((isBody ? 'margin-':'padding-')+position, initialBodyMargin);
|
@@ -12762,7 +12931,7 @@ $.fn.flyout = function(parameters) {
|
|
12762
12931
|
}
|
12763
12932
|
;
|
12764
12933
|
if(shouldEscape.test(string)) {
|
12765
|
-
string = string.replace(/&(?![a-z0-9#]{1,
|
12934
|
+
string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&");
|
12766
12935
|
return string.replace(badChars, escapedChar);
|
12767
12936
|
}
|
12768
12937
|
return string;
|
@@ -12980,12 +13149,16 @@ $.fn.flyout.settings = {
|
|
12980
13149
|
context : 'body',
|
12981
13150
|
exclusive : false,
|
12982
13151
|
closable : true,
|
13152
|
+
autofocus : true,
|
13153
|
+
restoreFocus : true,
|
12983
13154
|
dimPage : true,
|
12984
13155
|
scrollLock : false,
|
12985
13156
|
returnScroll : false,
|
12986
13157
|
delaySetup : false,
|
12987
13158
|
autoShow : false,
|
12988
13159
|
|
13160
|
+
keyboardShortcuts: true,
|
13161
|
+
|
12989
13162
|
//dynamic content
|
12990
13163
|
title : '',
|
12991
13164
|
content : '',
|
@@ -13014,6 +13187,13 @@ $.fn.flyout.settings = {
|
|
13014
13187
|
onApprove : function(){},
|
13015
13188
|
onDeny : function(){},
|
13016
13189
|
|
13190
|
+
keys : {
|
13191
|
+
space : 32,
|
13192
|
+
enter : 13,
|
13193
|
+
escape : 27,
|
13194
|
+
tab : 9,
|
13195
|
+
},
|
13196
|
+
|
13017
13197
|
className : {
|
13018
13198
|
flyout : 'ui flyout',
|
13019
13199
|
close : 'close icon',
|
@@ -13022,6 +13202,8 @@ $.fn.flyout.settings = {
|
|
13022
13202
|
actions : 'actions',
|
13023
13203
|
active : 'active',
|
13024
13204
|
animating : 'animating',
|
13205
|
+
blurring : 'blurring',
|
13206
|
+
closing : 'closing',
|
13025
13207
|
dimmed : 'dimmed',
|
13026
13208
|
ios : 'ios',
|
13027
13209
|
locked : 'locked',
|
@@ -13070,7 +13252,8 @@ $.fn.flyout.settings = {
|
|
13070
13252
|
|
13071
13253
|
text: {
|
13072
13254
|
ok : 'Ok',
|
13073
|
-
cancel : 'Cancel'
|
13255
|
+
cancel : 'Cancel',
|
13256
|
+
close : 'Close'
|
13074
13257
|
}
|
13075
13258
|
};
|
13076
13259
|
|
@@ -13162,7 +13345,7 @@ $.fn.flyout.settings.templates = {
|
|
13162
13345
|
})( jQuery, window, document );
|
13163
13346
|
|
13164
13347
|
/*!
|
13165
|
-
* # Fomantic-UI 2.9.0-beta.
|
13348
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Modal
|
13166
13349
|
* http://github.com/fomantic/Fomantic-UI/
|
13167
13350
|
*
|
13168
13351
|
*
|
@@ -14718,7 +14901,7 @@ $.fn.modal.settings.templates = {
|
|
14718
14901
|
})( jQuery, window, document );
|
14719
14902
|
|
14720
14903
|
/*!
|
14721
|
-
* # Fomantic-UI 2.9.0-beta.
|
14904
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Nag
|
14722
14905
|
* http://github.com/fomantic/Fomantic-UI/
|
14723
14906
|
*
|
14724
14907
|
*
|
@@ -15277,7 +15460,7 @@ $.extend( $.easing, {
|
|
15277
15460
|
})( jQuery, window, document );
|
15278
15461
|
|
15279
15462
|
/*!
|
15280
|
-
* # Fomantic-UI 2.9.0-beta.
|
15463
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Popup
|
15281
15464
|
* http://github.com/fomantic/Fomantic-UI/
|
15282
15465
|
*
|
15283
15466
|
*
|
@@ -16813,7 +16996,7 @@ $.fn.popup.settings = {
|
|
16813
16996
|
})( jQuery, window, document );
|
16814
16997
|
|
16815
16998
|
/*!
|
16816
|
-
* # Fomantic-UI 2.9.0-beta.
|
16999
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Progress
|
16817
17000
|
* http://github.com/fomantic/Fomantic-UI/
|
16818
17001
|
*
|
16819
17002
|
*
|
@@ -17850,7 +18033,7 @@ $.fn.progress.settings = {
|
|
17850
18033
|
})( jQuery, window, document );
|
17851
18034
|
|
17852
18035
|
/*!
|
17853
|
-
* # Fomantic-UI 2.9.0-beta.
|
18036
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Slider
|
17854
18037
|
* http://github.com/fomantic/Fomantic-UI/
|
17855
18038
|
*
|
17856
18039
|
*
|
@@ -19204,7 +19387,7 @@ $.fn.slider.settings = {
|
|
19204
19387
|
})( jQuery, window, document );
|
19205
19388
|
|
19206
19389
|
/*!
|
19207
|
-
* # Fomantic-UI 2.9.0-beta.
|
19390
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Rating
|
19208
19391
|
* http://github.com/fomantic/Fomantic-UI/
|
19209
19392
|
*
|
19210
19393
|
*
|
@@ -19763,7 +19946,7 @@ $.fn.rating.settings = {
|
|
19763
19946
|
})( jQuery, window, document );
|
19764
19947
|
|
19765
19948
|
/*!
|
19766
|
-
* # Fomantic-UI 2.9.0-beta.
|
19949
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Search
|
19767
19950
|
* http://github.com/fomantic/Fomantic-UI/
|
19768
19951
|
*
|
19769
19952
|
*
|
@@ -21358,7 +21541,7 @@ $.extend($.easing, {
|
|
21358
21541
|
})( jQuery, window, document );
|
21359
21542
|
|
21360
21543
|
/*!
|
21361
|
-
* # Fomantic-UI 2.9.0-beta.
|
21544
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Shape
|
21362
21545
|
* http://github.com/fomantic/Fomantic-UI/
|
21363
21546
|
*
|
21364
21547
|
*
|
@@ -22207,7 +22390,7 @@ $.fn.shape.settings = {
|
|
22207
22390
|
})( jQuery, window, document );
|
22208
22391
|
|
22209
22392
|
/*!
|
22210
|
-
* # Fomantic-UI 2.9.0-beta.
|
22393
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Sidebar
|
22211
22394
|
* http://github.com/fomantic/Fomantic-UI/
|
22212
22395
|
*
|
22213
22396
|
*
|
@@ -22275,7 +22458,7 @@ $.fn.sidebar = function(parameters) {
|
|
22275
22458
|
moduleNamespace = 'module-' + namespace,
|
22276
22459
|
|
22277
22460
|
$module = $(this),
|
22278
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $
|
22461
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body,
|
22279
22462
|
isBody = $context[0] === $body[0],
|
22280
22463
|
|
22281
22464
|
$sidebars = $module.children(selector.sidebar),
|
@@ -22513,8 +22696,8 @@ $.fn.sidebar = function(parameters) {
|
|
22513
22696
|
|
22514
22697
|
refresh: function() {
|
22515
22698
|
module.verbose('Refreshing selector cache');
|
22516
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $
|
22517
|
-
|
22699
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body;
|
22700
|
+
module.refreshSidebars();
|
22518
22701
|
$pusher = $context.children(selector.pusher);
|
22519
22702
|
$fixed = $context.children(selector.fixed);
|
22520
22703
|
module.clear.cache();
|
@@ -22609,7 +22792,6 @@ $.fn.sidebar = function(parameters) {
|
|
22609
22792
|
module.verbose('Show callback returned false cancelling show');
|
22610
22793
|
return;
|
22611
22794
|
}
|
22612
|
-
module.refreshSidebars();
|
22613
22795
|
if(settings.overlay) {
|
22614
22796
|
module.error(error.overlay);
|
22615
22797
|
settings.transition = 'overlay';
|
@@ -22631,6 +22813,7 @@ $.fn.sidebar = function(parameters) {
|
|
22631
22813
|
settings.transition = 'overlay';
|
22632
22814
|
}
|
22633
22815
|
}
|
22816
|
+
module.set.dimmerStyles();
|
22634
22817
|
module.pushPage(function() {
|
22635
22818
|
callback.call(element);
|
22636
22819
|
settings.onVisible.call(element);
|
@@ -22763,20 +22946,24 @@ $.fn.sidebar = function(parameters) {
|
|
22763
22946
|
animate = function() {
|
22764
22947
|
module.set.transition(transition);
|
22765
22948
|
module.set.animating();
|
22766
|
-
module.remove.visible();
|
22767
22949
|
if(settings.dimPage && !module.othersVisible()) {
|
22768
|
-
|
22950
|
+
module.set.closing();
|
22769
22951
|
}
|
22952
|
+
module.remove.visible();
|
22770
22953
|
};
|
22771
22954
|
transitionEnd = function(event) {
|
22772
22955
|
if( event.target == $transition[0] ) {
|
22773
22956
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
22774
22957
|
module.remove.animating();
|
22958
|
+
module.remove.closing();
|
22775
22959
|
module.remove.transition();
|
22776
22960
|
module.remove.inlineCSS();
|
22777
22961
|
if(transition === 'scale down' || settings.returnScroll) {
|
22778
22962
|
module.scrollBack();
|
22779
22963
|
}
|
22964
|
+
if(settings.dimPage && !module.othersVisible()) {
|
22965
|
+
$pusher.removeClass(className.dimmed);
|
22966
|
+
}
|
22780
22967
|
callback.call(element);
|
22781
22968
|
}
|
22782
22969
|
};
|
@@ -22814,6 +23001,14 @@ $.fn.sidebar = function(parameters) {
|
|
22814
23001
|
el.css(attribute, 'calc(' + el.css(attribute) + ' + ' + tempBodyMargin + 'px)');
|
22815
23002
|
});
|
22816
23003
|
},
|
23004
|
+
dimmerStyles: function() {
|
23005
|
+
if(settings.blurring) {
|
23006
|
+
$pusher.addClass(className.blurring);
|
23007
|
+
}
|
23008
|
+
else {
|
23009
|
+
$pusher.removeClass(className.blurring);
|
23010
|
+
}
|
23011
|
+
},
|
22817
23012
|
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
22818
23013
|
// (This is no longer necessary in latest iOS)
|
22819
23014
|
ios: function() {
|
@@ -22840,6 +23035,9 @@ $.fn.sidebar = function(parameters) {
|
|
22840
23035
|
animating: function() {
|
22841
23036
|
$module.addClass(className.animating);
|
22842
23037
|
},
|
23038
|
+
closing: function() {
|
23039
|
+
$pusher.addClass(className.closing);
|
23040
|
+
},
|
22843
23041
|
transition: function(transition) {
|
22844
23042
|
transition = transition || module.get.transition();
|
22845
23043
|
$module.addClass(transition);
|
@@ -22884,6 +23082,9 @@ $.fn.sidebar = function(parameters) {
|
|
22884
23082
|
animating: function() {
|
22885
23083
|
$module.removeClass(className.animating);
|
22886
23084
|
},
|
23085
|
+
closing: function() {
|
23086
|
+
$pusher.removeClass(className.closing);
|
23087
|
+
},
|
22887
23088
|
transition: function(transition) {
|
22888
23089
|
transition = transition || module.get.transition();
|
22889
23090
|
$module.removeClass(transition);
|
@@ -23281,6 +23482,8 @@ $.fn.sidebar.settings = {
|
|
23281
23482
|
className : {
|
23282
23483
|
active : 'active',
|
23283
23484
|
animating : 'animating',
|
23485
|
+
blurring : 'blurring',
|
23486
|
+
closing : 'closing',
|
23284
23487
|
dimmed : 'dimmed',
|
23285
23488
|
ios : 'ios',
|
23286
23489
|
locked : 'locked',
|
@@ -23321,7 +23524,7 @@ $.fn.sidebar.settings = {
|
|
23321
23524
|
})( jQuery, window, document );
|
23322
23525
|
|
23323
23526
|
/*!
|
23324
|
-
* # Fomantic-UI 2.9.0-beta.
|
23527
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Sticky
|
23325
23528
|
* http://github.com/fomantic/Fomantic-UI/
|
23326
23529
|
*
|
23327
23530
|
*
|
@@ -24272,7 +24475,7 @@ $.fn.sticky.settings = {
|
|
24272
24475
|
})( jQuery, window, document );
|
24273
24476
|
|
24274
24477
|
/*!
|
24275
|
-
* # Fomantic-UI 2.9.0-beta.
|
24478
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Tab
|
24276
24479
|
* http://github.com/fomantic/Fomantic-UI/
|
24277
24480
|
*
|
24278
24481
|
*
|
@@ -25292,7 +25495,7 @@ $.fn.tab.settings = {
|
|
25292
25495
|
})( jQuery, window, document );
|
25293
25496
|
|
25294
25497
|
/*!
|
25295
|
-
* # Fomantic-UI 2.9.0-beta.
|
25498
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Toast
|
25296
25499
|
* http://github.com/fomantic/Fomantic-UI/
|
25297
25500
|
*
|
25298
25501
|
*
|
@@ -26219,7 +26422,7 @@ $.extend( $.easing, {
|
|
26219
26422
|
})( jQuery, window, document );
|
26220
26423
|
|
26221
26424
|
/*!
|
26222
|
-
* # Fomantic-UI 2.9.0-beta.
|
26425
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Transition
|
26223
26426
|
* http://github.com/fomantic/Fomantic-UI/
|
26224
26427
|
*
|
26225
26428
|
*
|
@@ -27334,7 +27537,7 @@ $.fn.transition.settings = {
|
|
27334
27537
|
})( jQuery, window, document );
|
27335
27538
|
|
27336
27539
|
/*!
|
27337
|
-
* # Fomantic-UI 2.9.0-beta.
|
27540
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - API
|
27338
27541
|
* http://github.com/fomantic/Fomantic-UI/
|
27339
27542
|
*
|
27340
27543
|
*
|
@@ -28571,7 +28774,7 @@ $.api.settings = {
|
|
28571
28774
|
})( jQuery, window, document );
|
28572
28775
|
|
28573
28776
|
/*!
|
28574
|
-
* # Fomantic-UI 2.9.0-beta.
|
28777
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - State
|
28575
28778
|
* http://github.com/fomantic/Fomantic-UI/
|
28576
28779
|
*
|
28577
28780
|
*
|
@@ -29283,7 +29486,7 @@ $.fn.state.settings = {
|
|
29283
29486
|
})( jQuery, window, document );
|
29284
29487
|
|
29285
29488
|
/*!
|
29286
|
-
* # Fomantic-UI 2.9.0-beta.
|
29489
|
+
* # Fomantic-UI 2.9.0-beta.319+0740de8 - Visibility
|
29287
29490
|
* http://github.com/fomantic/Fomantic-UI/
|
29288
29491
|
*
|
29289
29492
|
*
|